PageSourceSearch

http://wals-intersect.com/js/default7490.js

js wals-intersect.com collected 2026-10-10 02:17:56 UTC 1,846,922 bytes, 2 lines download raw bytes

1/*! For license information please see default.js.LICENSE.txt */
2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("fusion:prop-types"),require("fusion:jsx:context"),require("fusion:environment"),require("fusion:jsx:content"),require("prop-types"),require("styled-components"),require("react-dom"),require("fusion:jsx:layout"),require("fusion:jsx:quarantine"),require("fusion:unpack"),require("fusion:jsx:static")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,],t):"object"==typeof exports?exports.components=t(require("react"),require("fusion:prop-types"),require("fusion:jsx:context"),require("fusion:environment"),require("fusion:jsx:content"),require("prop-types"),require("styled-components"),require("react-dom"),require("fusion:jsx:layout"),require("fusion:jsx:quarantine"),require("fusion:unpack"),require("fusion:jsx:static")):(e.Fusion=e.Fusion||{},e.Fusion.components=t(e.React,e.PropTypes,e.Fusion.Context,e.Fusion.environment,e.Fusion.Content,e.PropTypes,e.StyledComponents,e.ReactDOM,e.Fusion.Layout,e.Fusion.Quarantine,e.Fusion.unpack,e.Fusion.Static))}(this,(function(__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__20__,__WEBPACK_EXTERNAL_MODULE__26__,__WEBPACK_EXTERNAL_MODULE__29__,__WEBPACK_EXTERNAL_MODULE__52__,__WEBPACK_EXTERNAL_MODULE__75__,__WEBPACK_EXTERNAL_MODULE__337__,__WEBPACK_EXTERNAL_MODULE__338__,__WEBPACK_EXTERNAL_MODULE__339__,__WEBPACK_EXTERNAL_MODULE__517__){return function(e){function t(t){for(var r,i,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&c.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(l&&l(t);c.length;)c.shift()()}var r={},n={75:0,81:0};function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,i){r=n[e]=[t,i]}));t.push(r[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({}[e]||e)+".chunk.js?d=1076&mxId=00000000"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var r=n[e];if(0!==r){if(r){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,r[1](l)}n[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/pf/dist/components/combinations/",i.oe=function(e){throw console.error(e),e};var o=this.webpackJsonp=this.webpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;return i(i.s=663)}([function(e,t,r){"use strict";e.exports=r(341)},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(e,t,r){"use strict";r.d(t,"a",(function(){return ch})),r.d(t,"b",(function(){return uh})),r.d(t,"c",(function(){return dh})),r.d(t,"d",(function(){return yc})),r.d(t,"e",(function(){return vc})),r.d(t,"f",(function(){return Mc})),r.d(t,"g",(function(){return rh})),r.d(t,"h",(function(){return lh})),r.d(t,"i",(function(){return sh})),r.d(t,"j",(function(){return Tc}
2)),r.d(t,"k",(function(){return Lc})),r.d(t,"l",(function(){return Vc})),r.d(t,"m",(function(){return Gc})),r.d(t,"n",(function(){return jc})),r.d(t,"o",(function(){return Jc})),r.d(t,"p",(function(){return eu})),r.d(t,"q",(function(){return Ac})),r.d(t,"r",(function(){return xc})),r.d(t,"s",(function(){return au})),r.d(t,"t",(function(){return Yc})),r.d(t,"u",(function(){return pu})),r.d(t,"v",(function(){return zc})),r.d(t,"w",(function(){return Xc})),r.d(t,"x",(function(){return bu})),r.d(t,"y",(function(){return Qf})),r.d(t,"z",(function(){return mu})),r.d(t,"A",(function(){return rf})),r.d(t,"B",(function(){return nf})),r.d(t,"C",(function(){return Vf})),r.d(t,"D",(function(){return Wf})),r.d(t,"E",(function(){return Dc})),r.d(t,"F",(function(){return eh})),r.d(t,"G",(function(){return th})),r.d(t,"H",(function(){return qf})),r.d(t,"I",(function(){return Yf})),r.d(t,"J",(function(){return Kf})),r.d(t,"K",(function(){return Jf})),r.d(t,"L",(function(){return Xf})),r.d(t,"M",(function(){return kc})),r.d(t,"N",(function(){return su})),r.d(t,"O",(function(){return Zf}));var n=r(1),i=r.n(n),o=r(70),a=r.n(o),s=function(e,t){var r=a()({},e,t);for(var n in e){var i;e[n]&&"object"==typeof t[n]&&a()(r,((i={})[n]=a()(e[n],t[n]),i))}return r},l={breakpoints:[40,52,64].map((function(e){return e+"em"}))},c=function(e){return"@media screen and (min-width: "+e+")"},u=function(e,t){return d(t,e,e)},d=function(e,t,r,n,i){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e},f=function e(t){var r={},n=function(e){var n,i,o={},u=!1,f=e.theme&&e.theme.disableStyledSystemCache;for(var b in e)if(t[b]){var m=t[b],g=e[b],v=d(e.theme,m.scale,m.defaults);if("object"!=typeof g)a()(o,m(g,v,e));else{if(r.breakpoints=!f&&r.breakpoints||d(e.theme,"breakpoints",l.breakpoints),Array.isArray(g)){r.media=!f&&r.media||[null].concat(r.breakpoints.map(c)),o=s(o,h(r.media,m,v,g,e));continue}null!==g&&(o=s(o,p(r.breakpoints,m,v,g,e)),u=!0)}}return u&&(n=o,i={},Object.keys(n).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){i[e]=n[e]})),o=i),o};n.config=t,n.propNames=Object.keys(t),n.cache=r;var i=Object.keys(t).filter((function(e){return"config"!==e}));return i.length>1&&i.forEach((function(r){var i;n[r]=e(((i={})[r]=t[r],i))})),n},h=function(e,t,r,n,i){var o={};return n.slice(0,e.length).forEach((function(n,s){var l,c=e[s],u=t(n,r,i);c?a()(o,((l={})[c]=a()({},o[c],u),l)):a()(o,u)})),o},p=function(e,t,r,n,i){var o={};for(var s in n){var l=e[s],u=t(n[s],r,i);if(l){var d,f=c(l);a()(o,((d={})[f]=a()({},o[f],u),d))}else a()(o,u)}return o},b=function(e){var t=e.properties,r=e.property,n=e.scale,i=e.transform,o=void 0===i?u:i,a=e.defaultScale;t=t||[r];var s=function(e,r,n){var i={},a=o(e,r,n);if(null!==a)return t.forEach((function(e){i[e]=a})),i};return s.scale=n,s.defaults=a,s},m=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(r){var n=e[r];t[r]=!0!==n?"function"!=typeof n?b(n):n:b({property:r,scale:r})})),f(t)},g=function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){t&&t.config&&a()(e,t.config)})),f(e)};function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}var y=function(e,t,r,n,i){for(t=t&&t.split?t.split("."):[t],n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e},w=[40,52,64].map((function(e){return e+"em"})),O={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},j={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},x={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},_={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},S=function(e,t){if("number"!=typeof t||t>=0)return y(e,t,t);var r=Math.abs(t),n=y(e,r,r);return"string"==typeof n?"-"+n:-1*n},E=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","to
2p","bottom","left","right"].reduce((function(e,t){var r;return v({},e,((r={})[t]=S,r))}),{}),k=function e(t){return function(r){void 0===r&&(r={});var n=v({},O,{},r.theme||r),i={},o=function(e){return function(t){var r={},n=y(t,"breakpoints",w),i=[null].concat(n.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var o in e){var a="function"==typeof e[o]?e[o](t):e[o];if(null!=a)if(Array.isArray(a))for(var s=0;s<a.slice(0,i.length).length;s++){var l=i[s];l?(r[l]=r[l]||{},null!=a[s]&&(r[l][o]=a[s])):r[o]=a[s]}else r[o]=a}return r}}("function"==typeof t?t(n):t)(n);for(var a in o){var s=o[a],l="function"==typeof s?s(n):s;if("variant"!==a)if(l&&"object"==typeof l)i[a]=e(l)(n);else{var c=y(j,a,a),u=y(_,c),d=y(n,u,y(n,c,{})),f=y(E,c,y)(d,l,l);if(x[c])for(var h=x[c],p=0;p<h.length;p++)i[h[p]]=f;else i[c]=f}else i=v({},i,{},e(y(n,l))(n))}return i}};function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}m({fill:{property:"fill",scale:"colors"}});const $=m({display:!0}),T=m({overflow:!0}),I=m({boxShadow:{property:"boxShadow",scale:"shadows"}}),A=m({opacity:!0}),R=m({border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderRightColor:{property:"borderRightColor",scale:"colors"},borderBottomColor:{property:"borderBottomColor",scale:"colors"},borderLeftColor:{property:"borderLeftColor",scale:"colors"},borderTop:{property:"borderTop",scale:"borders"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}}),D=m({borderRadius:{property:"borderRadius",scale:"radii"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"}}),L={property:"backgroundColor",scale:"colors"},N=m({backgroundColor:L,bg:L}),B={height:{property:"height",scale:"sizes"}};m(B);const z={maxHeight:{property:"maxHeight",scale:"sizes"}};m(z);const F={maxWidth:{property:"maxWidth",scale:"sizes"}};m(F);const U={minHeight:{property:"minHeight",scale:"sizes"}};m(U);const H={minWidth:{property:"minWidth",scale:"sizes"}};m(H);const V={width:{property:"width",scale:"sizes"}};m(V);const G=m(P({},B,{},F,{},z,{},U,{},H,{},V)),W=e=>"number"==typeof e&&!Number.isNaN(e),q=(e,t)=>{if(!W(e))return d(t,e,e);const r=e<0,n=Math.abs(e),i=d(t,n,n);return W(i)?i*(r?-1:1):r?`-${i}`:i},K={scale:"space",transform:q},Y={margin:P({},K,{property:"margin"}),m:P({},K,{property:"margin"}),marginTop:P({},K,{property:"marginTop"}),mt:P({},K,{property:"marginTop"}),marginRight:P({},K,{property:"marginRight"}),mr:P({},K,{property:"marginRight"}),marginBottom:P({},K,{property:"marginBottom"}),mb:P({},K,{property:"marginBottom"}),marginLeft:P({},K,{property:"marginLeft"}),ml:P({},K,{property:"marginLeft"}),marginX:P({},K,{properties:["marginLeft","marginRight"]}),mx:P({},K,{properties:["marginLeft","marginRight"]}),marginY:P({},K,{properties:["marginTop","marginBottom"]}),my:P({},K,{properties:["marginTop","marginBottom"]})},X=(m(Y),{scale:"space"}),J={padding:P({},X,{property:"padding"}),p:P({},X,{property:"padding"}),paddingTop:P({},X,{property:"paddingTop"}),pt:P({},X,{property:"paddingTop"}),paddingRight:P({},X,{property:"paddingRight"}),pr:P({},X,{property:"paddingRight"}),paddingBottom:P({},X,{property:"paddingBottom"}),pb:P({},X,{property:"paddingBottom"}),paddingLeft:P({},X,{property:"paddingLeft"}),pl:P({},X,{property:"paddingLeft"}),paddingX:P({},X,{properties:["paddingLeft","paddingRight"]}),px:P({},X,{properties:["paddingLeft","paddingRight"]}),paddingY:P({},X,{properties:["paddingTop","paddingBottom"]}),py:P({},X,{properties:["paddingTop","paddingBottom"]})},Z=(m(J),m(P({},Y,{},J))),Q={fontFamily:{property:"fontFamily",scale:"fonts"}};
2m(Q);const ee={fontSize:{property:"fontSize",scale:"fontSizes"}};m(ee);const te={fontStyle:!0};m(te);const re={fontWeight:{property:"fontWeight",scale:"fontWeights"}};m(re);const ne={letterSpacing:{property:"letterSpacing",scale:"letterSpacings"}};m(ne);const ie={lineHeight:{property:"lineHeight",scale:"lineHeights"}};m(ie);const oe={textAlign:!0};m(oe);const ae={textColor:{property:"color",scale:"colors"}};m(ae);const se={textTransform:{property:"textTransform"}};m(se);const le=m(P({},Q,{},ee,{},te,{},re,{},ne,{},ie,{},oe,{},ae,{},se)),ce={alignContent:!0};m(ce);const ue={alignItems:!0};m(ue);const de={flexDirection:!0};m(de);const fe={flexWrap:!0};m(fe);const he={justifyContent:!0};m(he);const pe={justifyItems:!0};m(pe);const be=m(P({},ce,{},ue,{},de,{},fe,{},he,{},pe)),me={flex:!0};m(me);const ge={flexGrow:!0};m(ge);const ve={flexShrink:!0};m(ve);const ye={flexBasis:!0};m(ye);const we={alignSelf:!0};m(we);const Oe={justifySelf:!0};m(Oe);const je={order:!0};m(je);const xe=m(P({},me,{},ge,{},ve,{},ye,{},we,{},Oe,{},je)),_e={position:!0};m(_e);const Se={zIndex:{property:"zIndex",scale:"zIndices"}};m(Se);const Ee={top:{property:"top",scale:"space",transform:q}};m(Ee);const ke={right:{property:"right",scale:"space",transform:q}};m(ke);const Ce={bottom:{property:"bottom",scale:"space",transform:q}};m(Ce);const Pe={left:{property:"left",scale:"space",transform:q}};m(Pe);const Me=m(P({},_e,{},Se,{},Ee,{},ke,{},Ce,{},Pe)),$e={gridGap:{property:"gridGap",scale:"space"}};m($e);const Te={gridColumnGap:{property:"gridColumnGap",scale:"space"}};m(Te);const Ie={gridRowGap:{property:"gridRowGap",scale:"space"}};m(Ie);const Ae={gridColumn:!0};m(Ae);const Re={gridRow:!0};m(Re);const De={gridAutoFlow:!0};m(De);const Le={gridAutoColumns:!0};m(Le);const Ne={gridAutoRows:!0};m(Ne);const Be={gridTemplateColumns:!0};m(Be);const ze={gridTemplateRows:!0};m(ze);const Fe={gridTemplateAreas:!0};m(Fe);const Ue={gridArea:!0};m(Ue);const He={placeContent:!0};m(He);const Ve=m(P({},$e,{},Te,{},Ie,{},Ae,{},Re,{},De,{},Le,{},Ne,{},Be,{},ze,{},Fe,{},Ue,{},He)),Ge=({sx:e,theme:t})=>k(e)(t),We=(e,t)=>(e=>"number"==typeof e?`${e}px`:e)(t[e]||e),qe=({scale:e,prop:t="variant",variants:r={},key:n})=>{let i;i=Object.keys(r).length?(e,t,r)=>k(d(t,e))(r.theme):(e,t)=>d(t,e),i.scale=e||n,i.defaults=r;return f({[t]:i})};var Ke=r(52),Ye=r.n(Ke);function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||nt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){if(e){if("string"==typeof e)return it(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(e,t):void 0}}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ot=function(){},at={},st={},lt=null,ct={mark:ot,measure:ot};try{"undefined"!=typeof window&&(at=window),"undefined"!=typeof document&&(st=document),"undefined"!=typeof MutationObserver&&(lt=MutationObserver),"undefined"!=typeof performance&&(ct=performance)}catch(Do){}var ut,dt,ft,ht,pt,bt=(at.navigator||{}).userAgent,mt=void 0===bt?"":bt,gt=at,vt=st,yt=lt,wt=ct,Ot=(gt.document,!!vt.documentElement&&!!vt.head&&"function"==typeof vt.addEventListener&&"function"==typeof vt.createElement),jt=~mt.indexOf("MSIE")||~mt.indexOf("Trident/"),xt="___FONT_AWESOME___",_t=16,St="fa",Et="svg-inline--fa",kt="data-fa-i2svg",Ct="data-fa-pseudo-element",Pt="data-fa-pseudo-element-pending",Mt="data-prefix",$t="data-icon",Tt="fontawesome-i2svg",It="async",At=["HTML","HEAD","STYLE","SCRIPT"],Rt=function(){try{return!0}catch(e){return!1}}(),Dt="classic",Lt="sharp",Nt=[Dt,Lt];function Bt(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Dt]}})}var zt=Bt((et(ut={},Dt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),et(ut,Lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}
2),ut)),Ft=Bt((et(dt={},Dt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),et(dt,Lt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),dt)),Ut=Bt((et(ft={},Dt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),et(ft,Lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),ft)),Ht=Bt((et(ht={},Dt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),et(ht,Lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),ht)),Vt=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Gt="fa-layers-text",Wt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,qt=Bt((et(pt={},Dt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),et(pt,Lt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),pt)),Kt=[1,2,3,4,5,6,7,8,9,10],Yt=Kt.concat([11,12,13,14,15,16,17,18,19,20]),Xt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Jt={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Zt=new Set;Object.keys(Ft[Dt]).map(Zt.add.bind(Zt)),Object.keys(Ft[Lt]).map(Zt.add.bind(Zt));var Qt=[].concat(Nt,rt(Zt),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Jt.GROUP,Jt.SWAP_OPACITY,Jt.PRIMARY,Jt.SECONDARY]).concat(Kt.map((function(e){return"".concat(e,"x")}))).concat(Yt.map((function(e){return"w-".concat(e)}))),er=gt.FontAwesomeConfig||{};if(vt&&"function"==typeof vt.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=tt(e,2),r=t[0],n=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=vt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(r));null!=i&&(er[n]=i)}))}var tr={styleDefault:"solid",familyDefault:"classic",cssPrefix:St,replacementClass:Et,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};er.familyPrefix&&(er.cssPrefix=er.familyPrefix);var rr=Je(Je({},tr),er);rr.autoReplaceSvg||(rr.observeMutations=!1);var nr={};Object.keys(tr).forEach((function(e){Object.defineProperty(nr,e,{enumerable:!0,set:function(t){rr[e]=t,ir.forEach((function(e){return e(nr)}))},get:function(){return rr[e]}})})),Object.defineProperty(nr,"familyPrefix",{enumerable:!0,set:function(e){rr.cssPrefix=e,ir.forEach((function(e){return e(nr)}))},get:function(){return rr.cssPrefix}}),gt.FontAwesomeConfig=nr;var ir=[];var or=_t,ar={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};var sr="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lr(){for(var e=12,t="";e-- >0;)t+=sr[62*Math.random()|0];return t}function cr(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function ur(e){return e.classList?cr(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function dr(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fr(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")}),"")}function hr(e){return e.size!==ar.size||e.x!==ar.x||e.y!==ar.y||e.rotate!==ar.rotate||e.flipX||e.flipY}var p
vendor: 20,627 bytes, line 2
2r=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    -webkit-transition-delay: 0s;\n            transition-delay: 0s;\n    -webkit-transition-duration: 0s;\n            transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, 
20));\n          transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';function br(){var e=St,t=Et,r=nr.cssPrefix,n=nr.replacementClass,i=pr;if(r!==e||n!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(r,"-")).replace(a,"--".concat(r,"-")).replace(s,".".concat(n))}return i}var mr=!1;function gr(){nr.autoAddCss&&!mr&&(!function(e){if(e&&Ot){var t=vt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=vt.head.childNodes,n=null,i=r.length-1;i>-1;i--){var o=r[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=o)}vt.head.insertBefore(t,n)}}(br()),mr=!0)}var vr={mixout:function(){return{dom:{css:br,insertCss:gr}}},hooks:function(){return{beforeDOMElementCreation:function(){gr()},beforeI2svg:function(){gr()}}}},yr=gt||{};yr[xt]||(yr[xt]={}),yr[xt].styles||(yr[xt].styles={}),yr[xt].hooks||(yr[xt].hooks={}),yr[xt].shims||(yr[xt].shims=[]);var wr=yr[xt],Or=[],jr=!1;function xr(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?dr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(dr(e[r]),'" ')}),"").trim()}(n),">").concat(o.map(xr).join(""),"</").concat(t,">")}function _r(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}Ot&&((jr=(vt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(vt.readyState))||vt.addEventListener("DOMContentLoaded",(function e(){vt.removeEventListener("DOMContentLoaded",e),jr=1,Or.map((function(e){return e()}))})));var Sr=function(e,t,r,n){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==n?function(e,t){return function(r,n,i,o){return e.call(t,r,n,i,o)}}(t,n):t;for(void 0===r?(i=1,a=e[s[0]]):(i=0,a=r);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function Er(e){var t=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function kr(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return!!n.icon?t[n.iconName]=n.icon:t[r]=n,t}),{})}function Cr(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==r&&r,i=kr(t);"function"!=typeof wr.hooks.addPack||n?wr.styles[e]=Je(Je({},wr.styles[e]||{}),i):wr.hooks.addPack(e,kr(t)),"fas"===e&&Cr("fa",t)}var Pr,Mr,$r,Tr=wr.styles,Ir=wr.shims,Ar=(et(Pr={},Dt,Object.values(Ut[Dt])),et(Pr,Lt,Object.values(Ut[Lt])),Pr),Rr=null,Dr={},Lr={},Nr={},Br={},zr={},Fr=(et(Mr={},Dt,Object.keys(zt[Dt])),et(Mr,Lt,Object.keys(zt[Lt])),Mr);function Ur(e,t){var r,n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i!==e||""===o||(r=o,~Qt.indexOf(r))?null:o}var Hr,Vr=function(){var e=function(e){return Sr(Tr,(function(t,r,n){return t[n]=Sr(r,e,{}),t}),{})};Dr=e((function(e,t,r){(t[3]&&(e[t[3]]=r),t[2])&&t[2].filter((function(e){return"number"==typeof e}
2)).forEach((function(t){e[t.toString(16)]=r}));return e})),Lr=e((function(e,t,r){(e[r]=r,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=r}));return e})),zr=e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in Tr||nr.autoFetchSvg,r=Sr(Ir,(function(e,r){var n=r[0],i=r[1],o=r[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});Nr=r.names,Br=r.unicodes,Rr=Xr(nr.styleDefault,{family:nr.familyDefault})};function Gr(e,t){return(Dr[e]||{})[t]}function Wr(e,t){return(zr[e]||{})[t]}function qr(e){return Nr[e]||{prefix:null,iconName:null}}function Kr(){return Rr}Hr=function(e){Rr=Xr(e.styleDefault,{family:nr.familyDefault})},ir.push(Hr),Vr();var Yr=function(){return{prefix:null,iconName:null,rest:[]}};function Xr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,r=void 0===t?Dt:t,n=zt[r][e],i=Ft[r][e]||Ft[r][n],o=e in wr.styles?e:null;return i||o||null}var Jr=(et($r={},Dt,Object.keys(Ut[Dt])),et($r,Lt,Object.keys(Ut[Lt])),$r);function Zr(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==r&&r,i=(et(t={},Dt,"".concat(nr.cssPrefix,"-").concat(Dt)),et(t,Lt,"".concat(nr.cssPrefix,"-").concat(Lt)),t),o=null,a=Dt;(e.includes(i[Dt])||e.some((function(e){return Jr[Dt].includes(e)})))&&(a=Dt),(e.includes(i[Lt])||e.some((function(e){return Jr[Lt].includes(e)})))&&(a=Lt);var s=e.reduce((function(e,t){var r=Ur(nr.cssPrefix,t);if(Tr[t]?(t=Ar[a].includes(t)?Ht[a][t]:t,o=t,e.prefix=t):Fr[a].indexOf(t)>-1?(o=t,e.prefix=Xr(t,{family:a})):r?e.iconName=r:t!==nr.replacementClass&&t!==i[Dt]&&t!==i[Lt]&&e.rest.push(t),!n&&e.prefix&&e.iconName){var s="fa"===o?qr(e.iconName):{},l=Wr(e.prefix,e.iconName);s.prefix&&(o=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Tr.far||!Tr.fas||nr.autoFetchSvg||(e.prefix="fas")}return e}),Yr());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||a!==Lt||!Tr.fass&&!nr.autoFetchSvg||(s.prefix="fass",s.iconName=Wr(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==o||(s.prefix=Kr()||"fas"),s}var Qr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.reduce(this._pullDefinitions,{});
vendor: 8,536 bytes, line 2
2Object.keys(i).forEach((function(t){e.definitions[t]=Je(Je({},e.definitions[t]||{}),i[t]),Cr(t,i[t]);var r=Ut[Dt][t];r&&Cr(r,i[t]),Vr()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((function(t){var n=r[t],i=n.prefix,o=n.iconName,a=n.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=a)})),e[i][o]=a})),e}}],r&&Qe(t.prototype,r),n&&Qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),en=[],tn={},rn={},nn=Object.keys(rn);function on(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(tn[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(n))})),t}function an(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(tn[e]||[]).forEach((function(e){e.apply(null,r)}))}function sn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return rn[e]?rn[e].apply(null,t):void 0}function ln(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Kr();if(t)return t=Wr(r,t)||t,_r(cn.definitions,r,t)||_r(wr.styles,r,t)}var cn=new Qr,un={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ot?(an("beforeI2svg",e),sn("pseudoElements2svg",e),sn("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.autoReplaceSvgRoot;!1===nr.autoReplaceSvg&&(nr.autoReplaceSvg=!0),nr.observeMutations=!0,e=function(){fn({autoReplaceSvgRoot:r}),an("watch",t)},Ot&&(jr?setTimeout(e,0):Or.push(e))}},dn={noAuto:function(){nr.autoReplaceSvg=!1,nr.observeMutations=!1,an("noAuto")},config:nr,dom:un,parse:{icon:function(e){if(null===e)return null;if("object"===Ze(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Wr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=Xr(e[0]);return{prefix:r,iconName:Wr(r,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(nr.cssPrefix,"-"))>-1||e.match(Vt))){var n=Zr(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Kr(),iconName:Wr(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var i=Kr();return{prefix:i,iconName:Wr(i,e)||e}}}},library:cn,findIconDefinition:ln,toHtml:xr},fn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?vt:e;(Object.keys(wr.styles).length>0||nr.autoFetchSvg)&&Ot&&nr.autoReplaceSvg&&dn.dom.i2svg({node:t})};function hn(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return xr(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Ot){var t=vt.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function pn(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,f=e.watchable,h=void 0!==f&&f,p=n.found?n:r,b=p.width,m=p.height,g="fak"===i,v=[nr.replacementClass,o?"".concat(nr.cssPrefix,"-").concat(o):""].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),y={children:[],attributes:Je(Je({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(m)})},w=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(b/m*16*.0625,"em")}:{};h&&(y.attributes[kt]=""),l&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(u||lr())},children:[l]}),delete y.attributes.title);var O=Je(Je({},y),{},{prefix:i,iconName:o,main:r,mask:n,maskId:c,transform:a,symbol:s,styles:Je(Je({},w),d.styles)}),j=n.found&&r.found?sn("generateAbstractMask",O)||{children:[],attributes:{}}:sn("generateAbstractIcon",O)||{children:[],attributes:{}},x=j.children,_=j.attributes;return O.children=x,O.attributes=_,s?function(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,o=e.symbol,a=!0===o?"".concat(t,"-").concat(nr.cssPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Je(Je({},i),{},{id:a}),children:n}]}]}(O):function(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(hr(a)&&r.found&&!n.found){var s={x:r.width/r.height/2,y:.5};i.style=fr(Je(Je({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(O)}function bn(e){var t=e.content,r=e.width,n=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,c=Je(Je(Je({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(c[kt]="");var u=Je({},a.styles);hr(i)&&(u.transform=function(e){var t=e.transform,r=e.width,n=void 0===r?_t:r,i=e.height,o=void 0===i?_t:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&jt?"translate(".concat(t.x/or-n/2,"em, ").concat(t.y/or-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/or,"em), calc(-50% + ").concat(t.y/or,"em)) "):"translate(".concat(t.x/or,"em, ").concat(t.y/or,"em) "),l+="scale(".concat(t.size/or*(t.flipX?-1:1),", ").concat(t.size/or*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:r,height:n}),u["-webkit-transform"]=u.transform);var d=fr(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}var mn=wr.styles;function gn(e){var t=e[0],r=e[1],n=tt(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(nr.cssPrefix,"-").concat(Jt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(nr.cssPrefix,"-").concat(Jt.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(nr.cssPrefix,"-").concat(Jt.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var vn={found:!1,width:512,height:512};function yn(e,t){var r=t;return"fa"===t&&null!==nr.styleDefault&&(t=Kr()),new Promise((function(n,i){sn("missingIconAbstract");if("fa"===r){var o=qr(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&mn[t]&&mn[t][e])return n(gn(mn[t][e]));!function(e,t){Rt||nr.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(Je(Je({},vn),{},{icon:nr.showMissingIcons&&e&&sn("missingIconAbstract")||{}}))}))}var wn=function(){},On=nr.measurePerformance&&wt&&wt.mark&&wt.measure?wt:{mark:wn,measure:wn},jn='FA "6.5.2"',xn=function(e){On.mark("".concat(jn," ").concat(e," ends")),On.measure("".concat(jn," ").concat(e),"".concat(jn," ").concat(e," begins"),"".concat(jn," ").concat(e," ends"))},_n={begin:function(e){return On.mark("".concat(jn," ").concat(e," begins")),function(){return xn(e)}},end:xn},Sn=function(){};function En(e){return"string"==typeof(e.getAttribute?e.getAttribute(kt):null)}function kn(e){return vt.createElementNS("http://www.w3.org/2000/svg",e)}function Cn(e){return vt.createElement(e)}function Pn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,r=void 0===t?"svg"===e.tag?kn:Cn:t;if("string"==typeof e)return vt.createTextNode(e);var n=r(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){n.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){n.appendChild(Pn(e,{ceFn:r}))})),n}var Mn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Pn(e),t)})),null===t.getAttribute(kt)&&nr.keepOriginalSource){var r=vt.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~ur(t).indexOf(nr.replacementClass))return Mn.replace(e);var n=new RegExp("".concat(nr.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce((function(e,t){return t===nr.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=r.map((function(e){return xr(e)})).join("\n");t.setAttribute(kt,""),t.innerHTML=o}};function $n(e){e()}function Tn(e,t){var r="function"==typeof t?t:Sn;
2if(0===e.length)r();else{var n=$n;nr.mutateApproach===It&&(n=gt.requestAnimationFrame||$n),n((function(){var t=!0===nr.autoReplaceSvg?Mn.replace:Mn[nr.autoReplaceSvg]||Mn.replace,n=_n.begin("mutate");e.map(t),n(),r()}))}}var In=!1;function An(){In=!0}function Rn(){In=!1}var Dn=null;function Ln(e){if(yt&&nr.observeMutations){var t=e.treeCallback,r=void 0===t?Sn:t,n=e.nodeCallback,i=void 0===n?Sn:n,o=e.pseudoElementsCallback,a=void 0===o?Sn:o,s=e.observeMutationsRoot,l=void 0===s?vt:s;Dn=new yt((function(e){if(!In){var t=Kr();cr(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!En(e.addedNodes[0])&&(nr.searchPseudoElements&&a(e.target),r(e.target)),"attributes"===e.type&&e.target.parentNode&&nr.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&En(e.target)&&~Xt.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Mt):null,r=e.getAttribute?e.getAttribute($t):null;return t&&r}(e.target)){var n=Zr(ur(e.target)),o=n.prefix,s=n.iconName;e.target.setAttribute(Mt,o||t),s&&e.target.setAttribute($t,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(nr.replacementClass)&&i(e.target);var l}))}})),Ot&&Dn.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Nn(e){var t,r,n=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",a=Zr(ur(e));return a.prefix||(a.prefix=Kr()),n&&i&&(a.prefix=n,a.iconName=i),a.iconName&&a.prefix||(a.prefix&&o.length>0&&(a.iconName=(t=a.prefix,r=e.innerText,(Lr[t]||{})[r]||Gr(a.prefix,Er(e.innerText)))),!a.iconName&&nr.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},r=Nn(e),n=r.iconName,i=r.prefix,o=r.rest,a=function(e){var t=cr(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return nr.autoA11y&&(r?t["aria-labelledby"]="".concat(nr.replacementClass,"-title-").concat(n||lr()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=on("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce((function(e,t){var r=t.split(":"),n=r[0],i=r.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e}),{})),r}(e):[];return Je({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ar,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var zn=wr.styles;function Fn(e){var t="nest"===nr.autoReplaceSvg?Bn(e,{styleParser:!1}):Bn(e);return~t.extra.classes.indexOf(Gt)?sn("generateLayersText",e,t):sn("generateSvgReplacementMutation",e,t)}var Un=new Set;function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Ot)return Promise.resolve();var r=vt.documentElement.classList,n=function(e){return r.add("".concat(Tt,"-").concat(e))},i=function(e){return r.remove("".concat(Tt,"-").concat(e))},o=nr.autoFetchSvg?Un:Nt.map((function(e){return"fa-".concat(e)})).concat(Object.keys(zn));o.includes("fa")||o.push("fa");var a=[".".concat(Gt,":not([").concat(kt,"])")].concat(o.map((function(e){return".".concat(e,":not([").concat(kt,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=cr(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();n("pending"),i("complete");var l=_n.begin("onTree"),c=s.reduce((function(e,t){try{var r=Fn(t);r&&e.push(r)}catch(e){Rt||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,r){Promise.all(c).then((function(r){Tn(r,(function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((function(e){l(),r(e)}))}))}function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Fn(e).then((function(e){e&&Tn([e],t)}))}Nt.map((function(e){Un.add("fa-".concat(e))})),Object.keys(zt[Dt]).map(Un.add.bind(Un)),Object.keys(zt[Lt]).map(Un.add.bind(Un)),Un=rt(Un);var Gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ar:r,i=t.symbol,o=void 0!==i&&i,a=t.mask,s=void 0===a?null:a,l=t.maskId,c=void 0===l?null:l,u=t.title,d=void 0===u?null:u,f=t.titleId,h=void 0===f?null:f,p=t.classes,b=void 0===p?[]:p,m=t.attributes,g=void 0===m?{}
2:m,v=t.styles,y=void 0===v?{}:v;if(e){var w=e.prefix,O=e.iconName,j=e.icon;return hn(Je({type:"icon"},e),(function(){return an("beforeDOMElementCreation",{iconDefinition:e,params:t}),nr.autoA11y&&(d?g["aria-labelledby"]="".concat(nr.replacementClass,"-title-").concat(h||lr()):(g["aria-hidden"]="true",g.focusable="false")),pn({icons:{main:gn(j),mask:s?gn(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:O,transform:Je(Je({},ar),n),symbol:o,title:d,maskId:c,titleId:h,extra:{attributes:g,styles:y,classes:b}})}))}},Wn={mixout:function(){return{icon:(e=Gn,function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:ln(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:ln(i||{})),e(n,Je(Je({},r),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Hn,e.nodeCallback=Vn,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,r=void 0===t?vt:t,n=e.callback;return Hn(r,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var r=t.iconName,n=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,c=t.maskId,u=t.extra;return new Promise((function(t,d){Promise.all([yn(r,o),l.iconName?yn(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var d=tt(l,2),f=d[0],h=d[1];t([e,pn({icons:{main:f,mask:h},prefix:o,iconName:r,transform:a,symbol:s,maskId:c,title:n,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){var t,r=e.children,n=e.attributes,i=e.main,o=e.transform,a=fr(e.styles);return a.length>0&&(n.style=a),hr(o)&&(t=sn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(t||i.icon),{children:r,attributes:n}}}},qn={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.classes,n=void 0===r?[]:r;return hn({type:"layer"},(function(){an("beforeDOMElementCreation",{assembler:e,params:t});var r=[];return e((function(e){Array.isArray(e)?e.map((function(e){r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(nr.cssPrefix,"-layers")].concat(rt(n)).join(" ")},children:r}]}))}}}},Kn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.title,n=void 0===r?null:r,i=t.classes,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,l=t.styles,c=void 0===l?{}:l;return hn({type:"counter",content:e},(function(){return an("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,r=e.title,n=e.extra,i=Je(Je(Je({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),o=fr(n.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),r&&a.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),a}({content:e.toString(),title:n,extra:{attributes:s,styles:c,classes:["".concat(nr.cssPrefix,"-layers-counter")].concat(rt(o))}})}))}}}},Yn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ar:r,i=t.title,o=void 0===i?null:i,a=t.classes,s=void 0===a?[]:a,l=t.attributes,c=void 0===l?{}:l,u=t.styles,d=void 0===u?{}:u;return hn({type:"text",content:e},(function(){return an("beforeDOMElementCreation",{content:e,params:t}),bn({content:e,transform:Je(Je({},ar),n),title:o,extra:{attributes:c,styles:d,classes:["".concat(nr.cssPrefix,"-layers-text")].concat(rt(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var r=t.title,n=t.transform,i=t.extra,o=null,a=null;if(jt){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return nr.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,bn({content:e.innerHTML,width:o,height:a,transform:n,title:r,extra:i,watchable:!0})])}}},Xn=new RegExp('"',"ug"),Jn=[1105920,1112319];function Zn(e,t){var r="".concat(Pt).concat(t.replace(":","-"));return new Promise((function(n,i){if(null!==e.getAttribute(r))return n();var o,a,s,l=cr(e.children).filter((function(e){return e.getAttribute(Ct)===t}))[0],c=gt.getComputedStyle(e,t),u=c.getPropertyValue("font-family").match(Wt),d=c.getPropertyValue("font-weight"),f=c.getPropertyValue("content");
2if(l&&!u)return e.removeChild(l),n();if(u&&"none"!==f&&""!==f){var h=c.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?Lt:Dt,b=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Ft[p][u[2].toLowerCase()]:qt[p][d],m=function(e){var t,r,n,i,o,a=e.replace(Xn,""),s=(r=0,i=(t=a).length,(o=t.charCodeAt(r))>=55296&&o<=56319&&i>r+1&&(n=t.charCodeAt(r+1))>=56320&&n<=57343?1024*(o-55296)+n-56320+65536:o),l=s>=Jn[0]&&s<=Jn[1],c=2===a.length&&a[0]===a[1];return{value:Er(c?a[0]:a),isSecondary:l||c}}(h),g=m.value,v=m.isSecondary,y=u[0].startsWith("FontAwesome"),w=Gr(b,g),O=w;if(y){var j=(a=Br[o=g],s=Gr("fas",o),a||(s?{prefix:"fas",iconName:s}:null)||{prefix:null,iconName:null});j.iconName&&j.prefix&&(w=j.iconName,b=j.prefix)}if(!w||v||l&&l.getAttribute(Mt)===b&&l.getAttribute($t)===O)n();else{e.setAttribute(r,O),l&&e.removeChild(l);var x={iconName:null,title:null,titleId:null,prefix:null,transform:ar,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},_=x.extra;_.attributes[Ct]=t,yn(w,b).then((function(i){var o=pn(Je(Je({},x),{},{icons:{main:i,mask:Yr()},prefix:b,iconName:O,extra:_,watchable:!0})),a=vt.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map((function(e){return xr(e)})).join("\n"),e.removeAttribute(r),n()})).catch(i)}}else n()}))}function Qn(e){return Promise.all([Zn(e,"::before"),Zn(e,"::after")])}function ei(e){return!(e.parentNode===document.head||~At.indexOf(e.tagName.toUpperCase())||e.getAttribute(Ct)||e.parentNode&&"svg"===e.parentNode.tagName)}function ti(e){if(Ot)return new Promise((function(t,r){var n=cr(e.querySelectorAll("*")).filter(ei).map(Qn),i=_n.begin("searchPseudoElements");An(),Promise.all(n).then((function(){i(),Rn(),t()})).catch((function(){i(),Rn(),r()}))}))}var ri=!1,ni=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],i=r.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ii={mixout:function(){return{parse:{transform:function(e){return ni(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-transform");return r&&(e.transform=ni(r)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,r=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Je({},c.outer),children:[{tag:"g",attributes:Je({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Je(Je({},t.icon.attributes),c.path)}]}]}}}},oi={x:0,y:0,width:"100%",height:"100%"};function ai(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var si={hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-mask"),n=r?Zr(r.split(" ").map((function(e){return e.trim()}))):Yr();return n.prefix||(n.prefix=Kr()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,r=e.children,n=e.attributes,i=e.main,o=e.mask,a=e.maskId,s=e.transform,l=i.width,c=i.icon,u=o.width,d=o.icon,f=function(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:u,iconWidth:l}),h={tag:"rect",attributes:Je(Je({},oi),{},{fill:"white"})},p=c.children?{children:c.children.map(ai)}:{},b={tag:"g",attributes:Je({},f.inner),children:[ai(Je({tag:c.tag,attributes:Je(Je({},c.attributes),f.path)},p))]},m={tag:"g",attributes:Je({},f.outer),children:[b]},g="mask-".concat(a||lr()),v="clip-".concat(a||lr()),y={tag:"mask",attributes:Je(Je({},oi),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=d,"g"===t.tag?t.children:[t])},y]};return r.push(w,{tag:"rect",attributes:Je({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")")},oi)}
vendor: 2,951 bytes, line 2
2),{children:r,attributes:n}}}},li={provides:function(e){var t=!1;gt.matchMedia&&(t=gt.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Je(Je({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Je(Je({},n),{},{attributeName:"opacity"}),o={tag:"circle",attributes:Je(Je({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:Je(Je({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Je(Je({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:Je(Je({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Je(Je({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Je(Je({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Je(Je({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var r=t.mixoutsTo;en=e,tn={},Object.keys(rn).forEach((function(e){-1===nn.indexOf(e)&&delete rn[e]}
2)),en.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(r[e]=t[e]),"object"===Ze(t[e])&&Object.keys(t[e]).forEach((function(n){r[e]||(r[e]={}),r[e][n]=t[e][n]}))})),e.hooks){var n=e.hooks();Object.keys(n).forEach((function(e){tn[e]||(tn[e]=[]),tn[e].push(n[e])}))}e.provides&&e.provides(rn)}))}([vr,Wn,qn,Kn,Yn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=ti,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,r=void 0===t?vt:t;nr.searchPseudoElements&&ti(r)}}},{mixout:function(){return{dom:{unwatch:function(){An(),ri=!0}}}},hooks:function(){return{bootstrap:function(){Ln(on("mutationObserverCallbacks",{}))},noAuto:function(){Dn&&Dn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;ri?Rn():Ln(on("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ii,si,li,{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-symbol"),n=null!==r&&(""===r||r);return e.symbol=n,e}}}}],{mixoutsTo:dn});var ci=dn.parse,ui=dn.icon,di=r(29),fi=r.n(di);function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(r),!0).forEach((function(t){mi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function mi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gi(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vi(e){return function(e){if(Array.isArray(e))return yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wi(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Oi=["style"];var ji=!1;try{ji=!0}catch(Do){}function xi(e){return e&&"object"===bi(e)&&e.prefix&&e.iconName&&e.icon?e:ci.icon?ci.icon(e):null===e?null:e&&"object"===bi(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function _i(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?mi({},e,t):{}}var Si={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ei=i.a.forwardRef((function(e,t){var r=pi(pi({},Si),e),n=r.icon,i=r.mask,o=r.symbol,a=r.className,s=r.title,l=r.titleId,c=r.maskId,u=xi(n),d=_i("classes",[].concat(vi(function(e){var t,r=e.beat,n=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,h=e.inverse,p=e.border,b=e.listItem,m=e.flip,g=e.size,v=e.rotation,y=e.pull,w=(mi(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":h,"fa-border":p,"fa-li":b,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vert
2ical":"vertical"===m||"both"===m},"fa-".concat(g),null!=g),mi(t,"fa-rotate-".concat(v),null!=v&&0!==v),mi(t,"fa-pull-".concat(y),null!=y),mi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(r)),vi((a||"").split(" ")))),f=_i("transform","string"==typeof r.transform?ci.transform(r.transform):r.transform),h=_i("mask",xi(i)),p=ui(u,pi(pi(pi(pi({},d),f),h),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!p)return function(){var e;!ji&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var b=p.abstract,m={ref:t};return Object.keys(r).forEach((function(e){Si.hasOwnProperty(e)||(m[e]=r[e])})),ki(b[0],m)}));Ei.displayName="FontAwesomeIcon",Ei.propTypes={beat:fi.a.bool,border:fi.a.bool,beatFade:fi.a.bool,bounce:fi.a.bool,className:fi.a.string,fade:fi.a.bool,flash:fi.a.bool,mask:fi.a.oneOfType([fi.a.object,fi.a.array,fi.a.string]),maskId:fi.a.string,fixedWidth:fi.a.bool,inverse:fi.a.bool,flip:fi.a.oneOf([!0,!1,"horizontal","vertical","both"]),icon:fi.a.oneOfType([fi.a.object,fi.a.array,fi.a.string]),listItem:fi.a.bool,pull:fi.a.oneOf(["right","left"]),pulse:fi.a.bool,rotation:fi.a.oneOf([0,90,180,270]),shake:fi.a.bool,size:fi.a.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fi.a.bool,spinPulse:fi.a.bool,spinReverse:fi.a.bool,symbol:fi.a.oneOfType([fi.a.bool,fi.a.string]),title:fi.a.string,titleId:fi.a.string,transform:fi.a.oneOfType([fi.a.string,fi.a.object]),swapOpacity:fi.a.bool};var ki=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var i=(r.children||[]).map((function(r){return e(t,r)})),o=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),i=wi(t.slice(0,n)),o=t.slice(n+1).trim();return i.startsWith("webkit")?e[(r=i,r.charAt(0).toUpperCase()+r.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[wi(t)]=n}return e}),{attrs:{}}),a=n.style,s=void 0===a?{}:a,l=gi(n,Oi);return o.attrs.style=pi(pi({},o.attrs.style),s),t.apply(void 0,[r.tag,pi(pi({},o.attrs),l)].concat(vi(i)))}.bind(null,i.a.createElement),Ci=r(47),Pi=r(7),Mi=r(40);function $i(e,t,r,i){let o=Object(Mi.a)(r);Object(n.useEffect)((()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}),[e,t,i])}var Ti=r(18);function Ii(){let e=Object(n.useRef)(!1);return Object(Ti.a)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}var Ai=r(82);function Ri(e){let t=Object(Pi.a)(e),r=Object(n.useRef)(!1);Object(n.useEffect)((()=>(r.current=!1,()=>{r.current=!0,Object(Ai.a)((()=>{r.current&&t()}))})),[t])}var Di,Li=r(65),Ni=r(73),Bi=r(19),zi=r(162),Fi=((Di=Fi||{})[Di.Forwards=0]="Forwards",Di[Di.Backwards=1]="Backwards",Di);var Ui=r(96),Hi=r(41),Vi=r(98),Gi=r(13),Wi=r(21),qi=r(8);function Ki(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Yi(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var Xi=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Xi||{});let Ji=Object(qi.d)((function(e,t){let r=Object(n.useRef)(null),o=Object(Bi.b)(r,t),{initialFocus:a,containers:s,features:l=30}=e,c=Ki(e,["initialFocus","containers","features"]);Object(Ni.a)()||(l=1);let u=Object(Li.a)(r);!function({ownerDocument:e},t){let r=function(e=!0){let t=Object(n.useRef)(Vi.a.slice());return Object(Ui.a)((([e],[r])=>{!0===r&&!1===e&&Object(Ai.a)((()=>{t.current.splice(0)})),!1===r&&!0===e&&(t.current=Vi.a.slice())}),[e,Vi.a,t]),Object(Pi.a)((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Object(Ui.a)((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Object(Gi.d)(r())}),[t]),Ri((()=>{t&&Object(Gi.d)(r())}
2))}({ownerDocument:u},Boolean(16&l));let d=function({ownerDocument:e,container:t,initialFocus:r},i){let o=Object(n.useRef)(null),a=Ii();return Object(Ui.a)((()=>{if(!i)return;let n=t.current;n&&Object(Ai.a)((()=>{if(!a.current)return;let t=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===t)return void(o.current=t)}else if(n.contains(t))return void(o.current=t);null!=r&&r.current?Object(Gi.d)(r.current):Object(Gi.f)(n,Gi.a.First)===Gi.b.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[i]),o}({ownerDocument:u,container:r,initialFocus:a},Boolean(2&l));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},i){let o=Ii();$i(null==e?void 0:e.defaultView,"focus",(e=>{if(!i||!o.current)return;let a=Yi(r);t.current instanceof HTMLElement&&a.add(t.current);let s=n.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?Qi(a,l)?(n.current=l,Object(Gi.d)(l)):(e.preventDefault(),e.stopPropagation(),Object(Gi.d)(s)):Object(Gi.d)(n.current)}),!0)}({ownerDocument:u,container:r,containers:s,previousActiveElement:d},Boolean(8&l));let f=function(){let e=Object(n.useRef)(0);return Object(zi.a)("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),h=Object(Pi.a)((e=>{let t=r.current;t&&Object(Wi.a)(f.current,{[Fi.Forwards]:()=>{Object(Gi.f)(t,Gi.a.First,{skipElements:[e.relatedTarget]})},[Fi.Backwards]:()=>{Object(Gi.f)(t,Gi.a.Last,{skipElements:[e.relatedTarget]})}})})),p=Object(Ci.a)(),b=Object(n.useRef)(!1),m={ref:o,onKeyDown(e){"Tab"==e.key&&(b.current=!0,p.requestAnimationFrame((()=>{b.current=!1})))},onBlur(e){let t=Yi(s);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(Qi(t,n)||(b.current?Object(Gi.f)(r.current,Object(Wi.a)(f.current,{[Fi.Forwards]:()=>Gi.a.Next,[Fi.Backwards]:()=>Gi.a.Previous})|Gi.a.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Object(Gi.d)(e.target)))}};return i.a.createElement(i.a.Fragment,null,Boolean(4&l)&&i.a.createElement(Hi.b,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:Hi.a.Focusable}),Object(qi.e)({ourProps:m,theirProps:c,defaultTag:"div",name:"FocusTrap"}),Boolean(4&l)&&i.a.createElement(Hi.b,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:Hi.a.Focusable}))})),Zi=Object.assign(Ji,{features:Xi});function Qi(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var eo=r(75),to=r.n(eo);let ro=Object(n.createContext)(!1);function no(e){return i.a.createElement(ro.Provider,{value:e.force},e.children)}var io=r(63);function oo(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ao(e){let t=Object(n.useContext)(ro),r=Object(n.useContext)(co),i=Object(Li.a)(e),[o,a]=Object(n.useState)((()=>{if(!t&&null!==r||io.a.isServer)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let n=i.createElement("div");return n.setAttribute("id","headlessui-portal-root"),i.body.appendChild(n)}));return Object(n.useEffect)((()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))}),[o,i]),Object(n.useEffect)((()=>{t||null!==r&&a(r.current)}),[r,a,t]),o}let so=n.Fragment;let lo=n.Fragment,co=Object(n.createContext)(null);let uo=Object(n.createContext)(null);let fo=Object(qi.d)((function(e,t){let r=e,i=Object(n.useRef)(null),o=Object(Bi.b)(Object(Bi.a)((e=>{i.current=e})),t),a=Object(Li.a)(i),s=ao(i),[l]=Object(n.useState)((()=>{var e;return io.a.isServer?null:null!=(e=null==a?void 0:a.createElement("div"))?e:null})),c=Object(n.useContext)(uo),u=Object(Ni.a)();return Object(Ti.a)((()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))}),[s,l]),Object(Ti.a)((()=>
2{if(l&&c)return c.register(l)}),[c,l]),Ri((()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),u&&s&&l?Object(eo.createPortal)(Object(qi.e)({ourProps:{ref:o},theirProps:r,defaultTag:so,name:"Portal"}),l):null})),ho=Object(qi.d)((function(e,t){let{target:r}=e,n=oo(e,["target"]),o={ref:Object(Bi.b)(t)};return i.a.createElement(co.Provider,{value:r},Object(qi.e)({ourProps:o,theirProps:n,defaultTag:lo,name:"Popover.Group"}))})),po=Object.assign(fo,{Group:ho});const bo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:mo,useEffect:go,useLayoutEffect:vo,useDebugValue:yo}=n;function wo(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!bo(r,e)}catch{return!0}}const Oo=!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement)?function(e,t,r){return t()}:function(e,t,r){const n=t(),[{inst:i},o]=mo({inst:{value:n,getSnapshot:t}});return vo((()=>{i.value=n,i.getSnapshot=t,wo(i)&&o({inst:i})}),[e,n,t]),go((()=>(wo(i)&&o({inst:i}),e((()=>{wo(i)&&o({inst:i})})))),[e]),yo(n),n},jo="useSyncExternalStore"in n?n.useSyncExternalStore:Oo;var xo=r(44);function _o(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,i=n.clientWidth-n.offsetWidth,o=e-i;r.style(n,"paddingRight",`${o}px`)}}}var So=r(111);function Eo(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let ko=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...i){let o=t[e].call(r,...i);o&&(r=o,n.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Object(xo.a)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:Eo(r)},i=[Object(So.a)()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Object(xo.a)();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let i=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:i}=new URL(r.href),a=e.querySelector(i);a&&!n(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},_o(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(n))),i.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Co(e,t,r){let n=jo((a=ko).subscribe,a.getSnapshot,a.getSnapshot),i=e?n.get(e):void 0,o=!!i&&i.count>0;var a;return Object(Ti.a)((()=>{if(e&&t)return ko.dispatch("PUSH",e,r),()=>ko.dispatch("POP",e,r)}),[t,e]),o}ko.subscribe((()=>{let e=ko.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&ko.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&ko.dispatch("TEARDOWN",r)}}));var Po=r(35);let Mo=new Map,$o=new Map;function To(e,t=!0){Object(Ti.a)((()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=$o.get(n))?r:0;return $o.set(n,i+1),0!==i||(Mo.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=$o.get(n))?e:1;if(1===t?$o.delete(n):$o.set(n,t-1),1!==t)return;let r=Mo.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,Mo.delete(n))}}),[e,t])}var Io=r(89);var Ao=r(24);let Ro=Object(n.createContext)((()=>{}));Ro.displayName="StackContext";var Do,Lo=((Do=Lo||{})[Do.Add=0]="Add",Do[Do.Remove=1]="Remove",Do);function No({children:e,onUpdate:t,type:r,element:o,enabled:a}){let s=Object(n.useContext)(Ro),l=Object(Pi.a)(((...e)=>{null==t||t(...e),s(...e)}));return Object(Ti.a)((()=>{let e=void 0===a||!0===a;return e&&l(0,r,o),()=>{e&&l(1,r,o)}}),[l,r,o,a]),i.a.createElement(Ro.Provider,{value:l},e)}var Bo=r(58);function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uo(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let Ho=Object(n.createContext)(null);function Vo(){let e=Object(n.useContext)(Ho);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vo),e}return e}function Go(){let[e,t]=Object(n.useState)([]);return[e.length>0?e.join(" "):void 0,Object(n.useMemo)((()=>function(e){let r=Object(Pi.a)((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),o=Object(n.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return i.a.createElement(Ho.Provider,{value:o},e.children)}),[t])]}let Wo=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:n=`headlessui-description-${r}`}=e,i=Uo(e,["id"]),o=Vo(),a=Object(Bi.b)(t);Object(Ti.a)((()=>o.register(n)),[n,o.register]);let s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?zo(Object(r),!0).forEach((function(t){Fo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:a},o.props,{id:n});return Object(qi.e)({ourProps:s,theirProps:i,slot:o.slot||{},defaultTag:"p",name:o.name||"Description"})})),qo=Object.assign(Wo,{});var Ko=r(11);function Yo(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Zo||{}),Qo=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Qo||{});let ea={0:(e,t)=>e.titleId===t.id?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(r),!0).forEach((function(t){Jo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{titleId:t.id})},ta=Object(n.createContext)(null);function ra(e){let t=Object(n.useContext)(ta);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ra),t}return t}function na(e,t){return Object(Wi.a)(t.type,ea,e,t)}ta.displayName="DialogContext";let ia=qi.a.RenderStrategy|qi.a.Static;let oa=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:o=`headlessui-dialog-${r}`,open:a,onClose:s,initialFocus:l,role:c="dialog",__demoMode:u=!1}=e,d=Yo(e,["id","open","onClose","initialFocus","role","__demoMode"]),[f,h]=Object(n.useState)(0),p=Object(n.useRef)(!1);c="dialog"===c||"alertdialog"===c?c:(p.current||(p.current=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let b=Object(Ao.c)();void 0===a&&null!==b&&(a=(b&Ao.b.Open)===Ao.b.Open);let m=Object(n.useRef)(null),g=Object(Bi.b)(m,t),v=Object(Li.a)(m),y=e.hasOwnProperty("open")||null!==b,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof a)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let O=a?0:1,[j,x]=Object(n.useReducer)(na,{titleId:null,descriptionId:null,panelRef:Object(n.createRef)()}),_=Object(Pi.a)((()=>s(!1))),S=Object(Pi.a)((e=>x({type:0,id:e}))),E=!!Object(Ni.a)()&&(!u&&0===O),k=f>1,C=null!==Object(n.useContext)(ta),[P,M]=function(){let e=Object(n.useContext)(uo),t=Object(n.useRef)([]),r=Object(Pi.a)((r=>(t.current.push(r),e&&e.register(r),()=>o(r)))),o=Object(Pi.a)((r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)})),a=Object(n.useMemo)((()=>({register:r,unregister:o,portals:t})),[r,o,t]);return[t,Object(n.useMemo)((()=>function({children:e}){return i.a.createElement(uo.Provider,{value:a},e)}),[a])]}(),$={get current(){var e;return null!=(e=j.panelRef.current)?e:m.current}},{resolveContainers:T,mainTreeNodeRef:I,MainTreeNode:A}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var o;let a=Object(n.useRef)(null!=(o=null==r?void 0:r.current)?o:null),s=Object(Li.a)(a),l=Object(Pi.a)((()=>{var r,n,i;let o=[];for(let t of e)null!==t&&(t instanceof HTMLElement?o.push(t):"current"in t&&t.current instanceof HTMLElement&&o.push(t.current));if(null!=t&&t.current)for(let e of t.current)o.push(e);for(let e of null!=(r=null==s?void 0:s.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(a.current)||e.contains(null==(i=null==(n=a.current)?void 0:n.getRootNode())?void 0:i.host)||o.some((t=>e.contains(t)))||o.push(e));return o}
2));return{resolveContainers:l,contains:Object(Pi.a)((e=>l().some((t=>t.contains(e))))),mainTreeNodeRef:a,MainTreeNode:Object(n.useMemo)((()=>function(){return null!=r?null:i.a.createElement(Hi.b,{features:Hi.a.Hidden,ref:a})}),[a,r])}}({portals:P,defaultContainers:[$]}),R=k?"parent":"leaf",D=null!==b&&(b&Ao.b.Closing)===Ao.b.Closing,L=!C&&!D&&E;To(Object(n.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==v?void 0:v.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(I.current)&&e instanceof HTMLElement))))?t:null}),[I]),L);let N=!!k||E;To(Object(n.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==v?void 0:v.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(I.current)&&e instanceof HTMLElement)))?t:null}),[I]),N);let B=!(!E||k);Object(Io.a)(T,(e=>{e.preventDefault(),_()}),B);let z=!(k||0!==O);$i(null==v?void 0:v.defaultView,"keydown",(e=>{z&&(e.defaultPrevented||e.key===Ko.a.Escape&&(e.preventDefault(),e.stopPropagation(),_()))})),function(e,t,r=(()=>[document.body])){Co(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(v,!(D||0!==O||C),T),Object(n.useEffect)((()=>{if(0!==O||!m.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&_()}}));return e.observe(m.current),()=>e.disconnect()}),[O,m,_]);let[F,U]=Go(),H=Object(n.useMemo)((()=>[{dialogState:O,close:_,setTitleId:S},j]),[O,j,_,S]),V=Object(n.useMemo)((()=>({open:0===O})),[O]),G={ref:g,id:o,role:c,"aria-modal":0===O||void 0,"aria-labelledby":j.titleId,"aria-describedby":F};return i.a.createElement(No,{type:"Dialog",enabled:0===O,element:m,onUpdate:Object(Pi.a)(((e,t)=>{"Dialog"===t&&Object(Wi.a)(e,{[Lo.Add]:()=>h((e=>e+1)),[Lo.Remove]:()=>h((e=>e-1))})}))},i.a.createElement(no,{force:!0},i.a.createElement(po,null,i.a.createElement(ta.Provider,{value:H},i.a.createElement(po.Group,{target:m},i.a.createElement(no,{force:!1},i.a.createElement(U,{slot:V,name:"Dialog.Description"},i.a.createElement(Zi,{initialFocus:l,containers:T,features:E?Object(Wi.a)(R,{parent:Zi.features.RestoreFocus,leaf:Zi.features.All&~Zi.features.FocusLock}):Zi.features.None},i.a.createElement(M,null,Object(qi.e)({ourProps:G,theirProps:d,slot:V,defaultTag:"div",features:ia,visible:0===O,name:"Dialog"}))))))))),i.a.createElement(A,null))})),aa=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:o=`headlessui-dialog-backdrop-${r}`}=e,a=Yo(e,["id"]),[{dialogState:s},l]=ra("Dialog.Backdrop"),c=Object(Bi.b)(t);Object(n.useEffect)((()=>{if(null===l.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[l.panelRef]);let u=Object(n.useMemo)((()=>({open:0===s})),[s]);return i.a.createElement(no,{force:!0},i.a.createElement(po,null,Object(qi.e)({ourProps:{ref:c,id:o,"aria-hidden":!0},theirProps:a,slot:u,defaultTag:"div",name:"Dialog.Backdrop"})))})),sa=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-dialog-panel-${r}`}=e,o=Yo(e,["id"]),[{dialogState:a},s]=ra("Dialog.Panel"),l=Object(Bi.b)(t,s.panelRef),c=Object(n.useMemo)((()=>({open:0===a})),[a]),u=Object(Pi.a)((e=>{e.stopPropagation()}));return Object(qi.e)({ourProps:{ref:l,id:i,onClick:u},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),la=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-dialog-overlay-${r}`}=e,o=Yo(e,["id"]),[{dialogState:a,close:s}]=ra("Dialog.Overlay"),l=Object(Bi.b)(t),c=Object(Pi.a)((e=>{if(e.target===e.currentTarget){if(Object(Bo.a)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}})),u=Object(n.useMemo)((()=>({open:0===a})),[a]);return Object(qi.e)({ourProps:{ref:l,id:i,"aria-hidden":!0,onClick:c},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Overlay"})})),ca=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-dialog-title-${r}`}=e,o=Yo(e,["id"]),[{dialogState:a,setTitleId:s}]=ra("Dialog.Title"),l=Object(Bi.b)(t);Object(n.useEffect)((()=>(s(i),()=>s(null))),[i,s]);let c=Object(n.useMemo)((()=>({open:0===a})),[a]);return Object(qi.e)({ourProps:{ref:l,id:i},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),ua=Object.assign(oa,{Backdrop:aa,Panel:sa,Overlay:la,Title:ca,Description:qo});var da=r(69);let fa=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ha(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let a=o?null!=(r=i.innerText)?r:"":n;return fa.test(a)&&(a=a.replace(fa,"")),a}function pa(e){let t=Object(n.useRef)(""),r=Object(n.useRef)("");return Object(Pi.a)((()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():ha(t).trim()}return null}
2)).filter(Boolean);if(e.length>0)return e.join(", ")}return ha(e).trim()}(n).trim().toLowerCase();return t.current=i,r.current=o,o}))}var ba=r(113),ma=r(112),ga=r(22);function va(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){Oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ja,xa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xa||{}),_a=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_a||{}),Sa=((ja=Sa||{})[ja.OpenMenu=0]="OpenMenu",ja[ja.CloseMenu=1]="CloseMenu",ja[ja.GoToItem=2]="GoToItem",ja[ja.Search=3]="Search",ja[ja.ClearSearch=4]="ClearSearch",ja[ja.RegisterItem=5]="RegisterItem",ja[ja.UnregisterItem=6]="UnregisterItem",ja);function Ea(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=Object(Gi.i)(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=r?n.indexOf(r):null;return-1===i&&(i=null),{items:n,activeItemIndex:i}}let ka={1:e=>1===e.menuState?e:wa({},e,{activeItemIndex:null,menuState:1}),0:e=>0===e.menuState?e:wa({},e,{__demoMode:!1,menuState:0}),2:(e,t)=>{var r;let n=Ea(e),i=Object(ga.b)(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return wa({},e,{},n,{searchQuery:"",activeItemIndex:i,activationTrigger:null!=(r=t.trigger)?r:1})},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?wa({},e,{searchQuery:n}):wa({},e,{searchQuery:n,activeItemIndex:o,activationTrigger:1})},4:e=>""===e.searchQuery?e:wa({},e,{searchQuery:"",searchActiveItemIndex:null}),5:(e,t)=>wa({},e,{},Ea(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]))),6:(e,t)=>wa({},e,{},Ea(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e})),{activationTrigger:1})},Ca=Object(n.createContext)(null);function Pa(e){let t=Object(n.useContext)(Ca);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pa),t}return t}function Ma(e,t){return Object(Wi.a)(t.type,ka,e,t)}Ca.displayName="MenuContext";let $a=n.Fragment;let Ta=qi.a.RenderStrategy|qi.a.Static;let Ia=n.Fragment;let Aa=Object(qi.d)((function(e,t){let{__demoMode:r=!1}=e,o=va(e,["__demoMode"]),a=Object(n.useReducer)(Ma,{__demoMode:r,menuState:r?0:1,buttonRef:Object(n.createRef)(),itemsRef:Object(n.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:s,itemsRef:l,buttonRef:c},u]=a,d=Object(Bi.b)(t);Object(Io.a)([c,l],((e,t)=>{var r;u({type:1}),Object(Gi.g)(t,Gi.c.Loose)||(e.preventDefault(),null==(r=c.current)||r.focus())}),0===s);let f=Object(Pi.a)((()=>{u({type:1})})),h=Object(n.useMemo)((()=>({open:0===s,close:f})),[s,f]),p={ref:d};return i.a.createElement(Ca.Provider,{value:a},i.a.createElement(Ao.a,{value:Object(Wi.a)(s,{0:Ao.b.Open,1:Ao.b.Closed})},Object(qi.e)({ourProps:p,theirProps:o,slot:h,defaultTag:$a,name:"Menu"})))})),Ra=Object(qi.d)((function(e,t){var r;let i=Object(Po.a)(),{id:o=`headlessui-menu-button-${i}`}=e,a=va(e,["id"]),[s,l]=Pa("Menu.Button"),c=Object(Bi.b)(s.buttonRef,t),u=Object(Ci.a)(),d=Object(Pi.a)((e=>{switch(e.key){case Ko.a.Space:case Ko.a.Enter:case Ko.a.ArrowDown:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:ga.a.First})));break;case Ko.a.ArrowUp:e.preventDefault(),e.stopPropagation(),l({type:0}),u.nextFrame((()=>l({type:2,focus:ga.a.Last})))}})),f=Object(Pi.a)((e=>{if(e.key===Ko.a.Space)e.preventDefault()})),h=Object(Pi.a)((t=>{if(Object(Bo.a)(t.currentTarget))return t.preventDefault();e.disabled||(0===s.menuState?(l({type:1}),u.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
2))):(t.preventDefault(),l({type:0})))})),p=Object(n.useMemo)((()=>({open:0===s.menuState})),[s]),b={ref:c,id:o,type:Object(da.a)(e,s.buttonRef),"aria-haspopup":"menu","aria-controls":null==(r=s.itemsRef.current)?void 0:r.id,"aria-expanded":0===s.menuState,onKeyDown:d,onKeyUp:f,onClick:h};return Object(qi.e)({ourProps:b,theirProps:a,slot:p,defaultTag:"button",name:"Menu.Button"})})),Da=Object(qi.d)((function(e,t){var r,i;let o=Object(Po.a)(),{id:a=`headlessui-menu-items-${o}`}=e,s=va(e,["id"]),[l,c]=Pa("Menu.Items"),u=Object(Bi.b)(l.itemsRef,t),d=Object(Li.a)(l.itemsRef),f=Object(Ci.a)(),h=Object(Ao.c)(),p=null!==h?(h&Ao.b.Open)===Ao.b.Open:0===l.menuState;Object(n.useEffect)((()=>{let e=l.itemsRef.current;e&&0===l.menuState&&e!==(null==d?void 0:d.activeElement)&&e.focus({preventScroll:!0})}),[l.menuState,l.itemsRef,d]),Object(ma.a)({container:l.itemsRef.current,enabled:0===l.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let b=Object(Pi.a)((e=>{var t,r;switch(f.dispose(),e.key){case Ko.a.Space:if(""!==l.searchQuery)return e.preventDefault(),e.stopPropagation(),c({type:3,value:e.key});case Ko.a.Enter:if(e.preventDefault(),e.stopPropagation(),c({type:1}),null!==l.activeItemIndex){let{dataRef:e}=l.items[l.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}Object(Gi.h)(l.buttonRef.current);break;case Ko.a.ArrowDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:ga.a.Next});case Ko.a.ArrowUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:ga.a.Previous});case Ko.a.Home:case Ko.a.PageUp:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:ga.a.First});case Ko.a.End:case Ko.a.PageDown:return e.preventDefault(),e.stopPropagation(),c({type:2,focus:ga.a.Last});case Ko.a.Escape:e.preventDefault(),e.stopPropagation(),c({type:1}),Object(xo.a)().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
2));break;case Ko.a.Tab:e.preventDefault(),e.stopPropagation(),c({type:1}),Object(xo.a)().nextFrame((()=>{Object(Gi.e)(l.buttonRef.current,e.shiftKey?Gi.a.Previous:Gi.a.Next)}));break;default:1===e.key.length&&(c({type:3,value:e.key}),f.setTimeout((()=>c({type:4})),350))}})),m=Object(Pi.a)((e=>{if(e.key===Ko.a.Space)e.preventDefault()})),g=Object(n.useMemo)((()=>({open:0===l.menuState})),[l]),v={"aria-activedescendant":null===l.activeItemIndex||null==(r=l.items[l.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(i=l.buttonRef.current)?void 0:i.id,id:a,onKeyDown:b,onKeyUp:m,role:"menu",tabIndex:0,ref:u};return Object(qi.e)({ourProps:v,theirProps:s,slot:g,defaultTag:"div",features:Ta,visible:p,name:"Menu.Items"})})),La=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-menu-item-${r}`,disabled:o=!1}=e,a=va(e,["id","disabled"]),[s,l]=Pa("Menu.Item"),c=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===i,u=Object(n.useRef)(null),d=Object(Bi.b)(t,u);Object(Ti.a)((()=>{if(s.__demoMode||0!==s.menuState||!c||0===s.activationTrigger)return;let e=Object(xo.a)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[s.__demoMode,u,c,s.menuState,s.activationTrigger,s.activeItemIndex]);let f=pa(u),h=Object(n.useRef)({disabled:o,domRef:u,get textValue(){return f()}});Object(Ti.a)((()=>{h.current.disabled=o}),[h,o]),Object(Ti.a)((()=>(l({type:5,id:i,dataRef:h}),()=>l({type:6,id:i}))),[h,i]);let p=Object(Pi.a)((()=>{l({type:1})})),b=Object(Pi.a)((e=>{if(o)return e.preventDefault();l({type:1}),Object(Gi.h)(s.buttonRef.current)})),m=Object(Pi.a)((()=>{if(o)return l({type:2,focus:ga.a.Nothing});l({type:2,focus:ga.a.Specific,id:i})})),g=Object(ba.a)(),v=Object(Pi.a)((e=>g.update(e))),y=Object(Pi.a)((e=>{g.wasMoved(e)&&(o||c||l({type:2,focus:ga.a.Specific,id:i,trigger:0}))})),w=Object(Pi.a)((e=>{g.wasMoved(e)&&(o||c&&l({type:2,focus:ga.a.Nothing}))})),O=Object(n.useMemo)((()=>({active:c,disabled:o,close:p})),[c,o,p]);return Object(qi.e)({ourProps:{id:i,ref:d,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,disabled:void 0,onClick:b,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:O,defaultTag:Ia,name:"Menu.Item"})})),Na=Object.assign(Aa,{Button:Ra,Items:Da,Item:La});function Ba(e=0){let[t,r]=Object(n.useState)(e),i=Ii(),o=Object(n.useCallback)((e=>{i.current&&r((t=>t|e))}),[t,i]),a=Object(n.useCallback)((e=>Boolean(t&e)),[t]),s=Object(n.useCallback)((e=>{i.current&&r((t=>t&~e))}),[r,i]),l=Object(n.useCallback)((e=>{i.current&&r((t=>t^e))}),[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:s,toggleFlag:l}}function za(e,...t){e&&t.length>0&&e.classList.add(...t)}function Fa(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Ua(e,t,r,n){let i=r?"enter":"leave",o=Object(xo.a)(),a=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let s=Object(Wi.a)(i,{enter:()=>t.enter,leave:()=>t.leave}),l=Object(Wi.a)(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Object(Wi.a)(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Fa(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),za(e,...t.base,...s,...c),o.nextFrame((()=>{Fa(e,...t.base,...s,...c),za(e,...t.base,...s,...l),function(e,t){let r=Object(xo.a)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=o+a;if(0!==s){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),s),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Fa(e,...t.base,...s),za(e,...t.base,...t.entered),a())))})),o.dispose}var Ha=r(115);function Va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Va(Object(r),!0).forEach((function(t){Wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qa(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ka(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Ya=Object(n.createContext)(null);Ya.displayName="TransitionContext";var Xa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Xa||{});let Ja=Object(n.createContext)(null);function Za(e){return"children"in e?Za(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Qa(e,t){let r=Object(Mi.a)(e),i=Object(n.useRef)([]),o=Ii(),a=Object(Ci.a)(),s=Object(Pi.a)(((e,t=qi.b.Hidden)=>{let n=i.current.findIndex((({el:t})=>t===e));-1!==n&&(Object(Wi.a)(t,{[qi.b.Unmount](){i.current.splice(n,1)},[qi.b.Hidden](){i.current[n].state="hidden"}}),a.microTask((()=>{var e;!Za(i)&&o.current&&(null==(e=r.current)||e.call(r))})))})),l=Object(Pi.a)((e=>{let t=i.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):i.current.push({el:e,state:"visible"}),()=>s(e,qi.b.Unmount)})),c=Object(n.useRef)([]),u=Object(n.useRef)(Promise.resolve()),d=Object(n.useRef)({enter:[],leave:[],idle:[]}),f=Object(Pi.a)(((e,r,n)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(d.current[r].map((([e,t])=>t))).then((()=>e()))}
2))]),"enter"===r?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),h=Object(Pi.a)(((e,t,r)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return Object(n.useMemo)((()=>({children:i,register:l,unregister:s,onStart:f,onStop:h,wait:u,chains:d})),[l,s,i,f,h,d,u])}function es(){}Ja.displayName="NestingContext";let ts=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rs(e){var t;let r={};for(let n of ts)r[n]=null!=(t=e[n])?t:es;return r}let ns=qi.a.RenderStrategy;let is=Object(qi.d)((function(e,t){let{show:r,appear:o=!1,unmount:a=!0}=e,s=qa(e,["show","appear","unmount"]),l=Object(n.useRef)(null),c=Object(Bi.b)(l,t);Object(Ni.a)();let u=Object(Ao.c)();if(void 0===r&&null!==u&&(r=(u&Ao.b.Open)===Ao.b.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=Object(n.useState)(r?"visible":"hidden"),h=Qa((()=>{f("hidden")})),[p,b]=Object(n.useState)(!0),m=Object(n.useRef)([r]);Object(Ti.a)((()=>{!1!==p&&m.current[m.current.length-1]!==r&&(m.current.push(r),b(!1))}),[m,r]);let g=Object(n.useMemo)((()=>({show:r,appear:o,initial:p})),[r,o,p]);Object(n.useEffect)((()=>{if(r)f("visible");else if(Za(h)){let e=l.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&f("hidden")}else f("hidden")}),[r,h]);let v={unmount:a},y=Object(Pi.a)((()=>{var t;p&&b(!1),null==(t=e.beforeEnter)||t.call(e)})),w=Object(Pi.a)((()=>{var t;p&&b(!1),null==(t=e.beforeLeave)||t.call(e)}));return i.a.createElement(Ja.Provider,{value:h},i.a.createElement(Ya.Provider,{value:g},Object(qi.e)({ourProps:Ga({},v,{as:n.Fragment,children:i.a.createElement(os,Ga({ref:c},v,{},s,{beforeEnter:y,beforeLeave:w}))}),theirProps:{},defaultTag:n.Fragment,features:ns,visible:"visible"===d,name:"Transition"})))})),os=Object(qi.d)((function(e,t){var r,o;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:f,entered:h,leave:p,leaveFrom:b,leaveTo:m}=e,g=qa(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),v=Object(n.useRef)(null),y=Object(Bi.b)(v,t),w=null==(r=g.unmount)||r?qi.b.Unmount:qi.b.Hidden,{show:O,appear:j,initial:x}=function(){let e=Object(n.useContext)(Ya);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[_,S]=Object(n.useState)(O?"visible":"hidden"),E=function(){let e=Object(n.useContext)(Ja);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:C}=E;Object(n.useEffect)((()=>k(v)),[k,v]),Object(n.useEffect)((()=>{if(w===qi.b.Hidden&&v.current)return O&&"visible"!==_?void S("visible"):Object(Wi.a)(_,{hidden:()=>C(v),visible:()=>k(v)})}),[_,v,k,C,O,w]);let P=Object(Mi.a)({base:Ka(g.className),enter:Ka(u),enterFrom:Ka(d),enterTo:Ka(f),entered:Ka(h),leave:Ka(p),leaveFrom:Ka(b),leaveTo:Ka(m)}),M=function(e){let t=Object(n.useRef)(rs(e));return Object(n.useEffect)((()=>{t.current=rs(e)}),[e]),t}({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),$=Object(Ni.a)();Object(n.useEffect)((()=>{if($&&"visible"===_&&null===v.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[v,_,$]);let T=j&&O&&x,I=!$||x&&!j?"idle":O?"enter":"leave",A=Ba(0),R=Object(Pi.a)((e=>Object(Wi.a)(e,{enter:()=>{A.addFlag(Ao.b.Opening),M.current.beforeEnter()},leave:()=>{A.addFlag(Ao.b.Closing),M.current.beforeLeave()},idle:()=>{}}))),D=Object(Pi.a)((e=>Object(Wi.a)(e,{enter:()=>{A.removeFlag(Ao.b.Opening),M.current.afterEnter()},leave:()=>{A.removeFlag(Ao.b.Closing),M.current.afterLeave()},idle:()=>{}}))),L=Qa((()=>{S("hidden"),C(v)}),E),N=Object(n.useRef)(!1);!function({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=Ii(),s=Object(Ci.a)(),l=Object(Mi.a)(r);Object(Ti.a)((()=>{e&&(l.current="enter")}),[e]),Object(Ti.a)((()=>{let e=Object(xo.a)();s.add(e.dispose);let r=t.current;if(r&&"idle"!==l.current&&a.current)return e.dispose(),i.current(l.current),e.add(Ua(r,n.current,"enter"===l.current,(()=>{e.dispose(),o.current(l.current)}))),e.dispose}),[r])}({immediate:T,container:v,classes:P,direction:I,onStart:Object(Mi.a)((e=>{N.current=!0,L.onStart(v,e,R)})),onStop:Object(Mi.a)((e=>{N.current=!1,L.onStop(v,e,D),"leave"===e&&!Za(L)&&(S("hidden"),C(v))}))});let B=g,z={ref:y};return T?B=Ga({},B,{className:Object(Ha.a)(g.className,...P.current.enter,...P.current.enterFrom)}):N.current&&(B.className=Object(Ha.a)(g.className,null==(o=v.current)?void 0:o.className),""===B.className&&delete B.className),i.a.createElement(Ja.Provider,{value:L},i.a.createElement(Ao.a,{value:Object(Wi.a)(_,{visible:Ao.b.Open,hidden:Ao.b.Closed})|A.flags},Object(qi.e)({ourProps:z,theirProps:B,defaultTag:"div",features:ns,visible:"visible"===_,name:"Transition.Child"})))})),as=Object(qi.d)((function(e,t){let r=null!==Object(n.useContext)(Ya),o=null!==Object(Ao.c)();return i.a.createElement(i.a.Fragment,null,!r&&o?i.a.createElement(is,Ga({ref:t},e)):i.a.createElement(os,Ga({ref:t},e)))})),ss=Object.assign(is,{Child:as,Root:is});var ls=r(97),cs=r(87),us=r(83),ds=r(57);function fs(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ps(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?hs(Object(r),!0).forEach((function(t){bs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ms,gs=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(gs||{}),vs=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(vs||{}),ys=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ys||{}),ws=((ms=ws||{})[ms.OpenListbox=0]="OpenListbox",ms[ms.CloseListbox=1]="CloseListbox",ms[ms.GoToOption=2]="GoToOption",ms[ms.Search=3]="Search",ms[ms.ClearSearch=4]="ClearSearch",ms[ms.RegisterOption=5]="RegisterOption",ms[ms.UnregisterOption=6]="UnregisterOption",ms[ms.RegisterLabel=7]="RegisterLabel",ms);function Os(e,t=(e=>e)){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=Object(Gi.i)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),i=r?n.indexOf(r):null;return-1===i&&(i=null),{options:n,activeOptionIndex:i}}let js={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:ps({},e,{activeOptionIndex:null,listboxState:1}),0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==n&&(t=n),ps({},e,{listboxState:0,activeOptionIndex:t})},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=Os(e),i=Object(ga.b)(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return ps({},e,{},n,{searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(r=t.trigger)?r:1})},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))})),o=i?e.options.indexOf(i):-1;return-1===o||o===e.activeOptionIndex?ps({},e,{searchQuery:n}):ps({},e,{searchQuery:n,activeOptionIndex:o,activationTrigger:1})},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:ps({},e,{searchQuery:""}),5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Os(e,(e=>[...e,r]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),ps({},e,{},n)},6:(e,t)=>{let r=Os(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return ps({},e,{},r,{activationTrigger:1})},7:(e,t)=>ps({},e,{labelId:t.id})},xs=Object(n.createContext)(null);function _s(e){let t=Object(n.useContext)(xs);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_s),t}return t}xs.displayName="ListboxActionsContext";let Ss=Object(n.createContext)(null);function Es(e){let t=Object(n.useContext)(Ss);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Es),t}return t}function ks(e,t){return Object(Wi.a)(t.type,js,e,t)}Ss.displayName="ListboxDataContext";let Cs=n.Fragment;let Ps=qi.a.RenderStrategy|qi.a.Static;let Ms=Object(qi.d)((function(e,t){let{value:r,defaultValue:o,form:a,name:s,onChange:l,by:c=((e,t)=>e===t),disabled:u=!1,horizontal:d=!1,multiple:f=!1}=e,h=fs(e,["value","defaultValue","form","name","onChange","by","disabled","horizontal","multiple"]);const p=d?"horizontal":"vertical";let b=Object(Bi.b)(t),[m=(f?[]:void 0),g]=Object(cs.a)(r,l,o),[v,y]=Object(n.useReducer)(ks,{dataRef:Object(n.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=Object(n.useRef)({static:!1,hold:!1}),O=Object(n.useRef)(null),j=Object(n.useRef)(null),x=Object(n.useRef)(null),_=Object(Pi.a)("string"==typeof c?(e,t)=>{let r=c;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:c),S=Object(n.useCallback)((e=>Object(Wi.a)(E.mode,{1:()=>m.some((t=>_(t,e))),0:()=>_(m,e)})),[m]),E=Object(n.useMemo)((()=>ps({},v,{value:m,disabled:u,mode:f?1:0,orientation:p,compare:_,isSelected:S,optionsPropsRef:w,labelRef:O,buttonRef:j,optionsRef:x})),[m,u,f,v]);Object(Ti.a)((()=>{v.dataRef.current=E}),[E]),Object(Io.a)([E.buttonRef,E.optionsRef],((e,t)=>{var r;y({type:1}),Object(Gi.g)(t,Gi.c.Loose)||(e.preventDefault(),null==(r=E.buttonRef.current)||r.focus())}),0===E.listboxState);let k=Object(n.useMemo)((()=>({open:0===E.listboxState,disabled:u,value:m})),[E,u,m]),C=Object(Pi.a)((e=>{let t=E.options.find((t=>t.id===e));t&&R(t.dataRef.current.value)})),P=Object(Pi.a)((()=>
2{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];R(e.current.value),y({type:2,focus:ga.a.Specific,id:t})}})),M=Object(Pi.a)((()=>y({type:0}))),$=Object(Pi.a)((()=>y({type:1}))),T=Object(Pi.a)(((e,t,r)=>e===ga.a.Specific?y({type:2,focus:ga.a.Specific,id:t,trigger:r}):y({type:2,focus:e,trigger:r}))),I=Object(Pi.a)(((e,t)=>(y({type:5,id:e,dataRef:t}),()=>y({type:6,id:e})))),A=Object(Pi.a)((e=>(y({type:7,id:e}),()=>y({type:7,id:null})))),R=Object(Pi.a)((e=>Object(Wi.a)(E.mode,{0:()=>null==g?void 0:g(e),1(){let t=E.value.slice(),r=t.findIndex((t=>_(t,e)));return-1===r?t.push(e):t.splice(r,1),null==g?void 0:g(t)}}))),D=Object(Pi.a)((e=>y({type:3,value:e}))),L=Object(Pi.a)((()=>y({type:4}))),N=Object(n.useMemo)((()=>({onChange:R,registerOption:I,registerLabel:A,goToOption:T,closeListbox:$,openListbox:M,selectActiveOption:P,selectOption:C,search:D,clearSearch:L})),[]),B={ref:b},z=Object(n.useRef)(null),F=Object(Ci.a)();return Object(n.useEffect)((()=>{z.current&&void 0!==o&&F.addEventListener(z.current,"reset",(()=>{null==g||g(o)}))}),[z,g]),i.a.createElement(xs.Provider,{value:N},i.a.createElement(Ss.Provider,{value:E},i.a.createElement(Ao.a,{value:Object(Wi.a)(E.listboxState,{0:Ao.b.Open,1:Ao.b.Closed})},null!=s&&null!=m&&Object(us.b)({[s]:m}).map((([e,t],r)=>i.a.createElement(Hi.b,ps({features:Hi.a.Hidden,ref:0===r?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0},Object(qi.c)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:a,disabled:u,name:e,value:t}))))),Object(qi.e)({ourProps:B,theirProps:h,slot:k,defaultTag:Cs,name:"Listbox"}))))})),$s=Object(qi.d)((function(e,t){var r;let i=Object(Po.a)(),{id:o=`headlessui-listbox-button-${i}`}=e,a=fs(e,["id"]),s=Es("Listbox.Button"),l=_s("Listbox.Button"),c=Object(Bi.b)(s.buttonRef,t),u=Object(Ci.a)(),d=Object(Pi.a)((e=>{switch(e.key){case Ko.a.Space:case Ko.a.Enter:case Ko.a.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{s.value||l.goToOption(ga.a.First)}));break;case Ko.a.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{s.value||l.goToOption(ga.a.Last)}))}})),f=Object(Pi.a)((e=>{if(e.key===Ko.a.Space)e.preventDefault()})),h=Object(Pi.a)((e=>{if(Object(Bo.a)(e.currentTarget))return e.preventDefault();0===s.listboxState?(l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
2))):(e.preventDefault(),l.openListbox())})),p=Object(ls.a)((()=>{if(s.labelId)return[s.labelId,o].join(" ")}),[s.labelId,o]),b=Object(n.useMemo)((()=>({open:0===s.listboxState,disabled:s.disabled,value:s.value})),[s]),m={ref:c,id:o,type:Object(da.a)(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=s.optionsRef.current)?void 0:r.id,"aria-expanded":0===s.listboxState,"aria-labelledby":p,disabled:s.disabled,onKeyDown:d,onKeyUp:f,onClick:h};return Object(qi.e)({ourProps:m,theirProps:a,slot:b,defaultTag:"button",name:"Listbox.Button"})})),Ts=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-listbox-label-${r}`}=e,o=fs(e,["id"]),a=Es("Listbox.Label"),s=_s("Listbox.Label"),l=Object(Bi.b)(a.labelRef,t);Object(Ti.a)((()=>s.registerLabel(i)),[i]);let c=Object(Pi.a)((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=Object(n.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return Object(qi.e)({ourProps:{ref:l,id:i,onClick:c},theirProps:o,slot:u,defaultTag:"label",name:"Listbox.Label"})})),Is=Object(qi.d)((function(e,t){var r;let i=Object(Po.a)(),{id:o=`headlessui-listbox-options-${i}`}=e,a=fs(e,["id"]),s=Es("Listbox.Options"),l=_s("Listbox.Options"),c=Object(Bi.b)(s.optionsRef,t),u=Object(Ci.a)(),d=Object(Ci.a)(),f=Object(Ao.c)(),h=null!==f?(f&Ao.b.Open)===Ao.b.Open:0===s.listboxState;Object(n.useEffect)((()=>{var e;let t=s.optionsRef.current;t&&0===s.listboxState&&t!==(null==(e=Object(ds.a)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[s.listboxState,s.optionsRef]);let p=Object(Pi.a)((e=>{switch(d.dispose(),e.key){case Ko.a.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case Ko.a.Enter:if(e.preventDefault(),e.stopPropagation(),null!==s.activeOptionIndex){let{dataRef:e}=s.options[s.activeOptionIndex];l.onChange(e.current.value)}0===s.mode&&(l.closeListbox(),Object(xo.a)().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
2)));break;case Object(Wi.a)(s.orientation,{vertical:Ko.a.ArrowDown,horizontal:Ko.a.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(ga.a.Next);case Object(Wi.a)(s.orientation,{vertical:Ko.a.ArrowUp,horizontal:Ko.a.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(ga.a.Previous);case Ko.a.Home:case Ko.a.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(ga.a.First);case Ko.a.End:case Ko.a.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(ga.a.Last);case Ko.a.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Ko.a.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),d.setTimeout((()=>l.clearSearch()),350))}})),b=Object(ls.a)((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.id}),[s.buttonRef.current]),m=Object(n.useMemo)((()=>({open:0===s.listboxState})),[s]),g={"aria-activedescendant":null===s.activeOptionIndex||null==(r=s.options[s.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===s.mode||void 0,"aria-labelledby":b,"aria-orientation":s.orientation,id:o,onKeyDown:p,role:"listbox",tabIndex:0,ref:c};return Object(qi.e)({ourProps:g,theirProps:a,slot:m,defaultTag:"ul",features:Ps,visible:h,name:"Listbox.Options"})})),As=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-listbox-option-${r}`,disabled:o=!1,value:a}=e,s=fs(e,["id","disabled","value"]),l=Es("Listbox.Option"),c=_s("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===i,d=l.isSelected(a),f=Object(n.useRef)(null),h=pa(f),p=Object(Mi.a)({disabled:o,value:a,domRef:f,get textValue(){return h()}}),b=Object(Bi.b)(t,f);Object(Ti.a)((()=>{if(0!==l.listboxState||!u||0===l.activationTrigger)return;let e=Object(xo.a)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Object(Ti.a)((()=>c.registerOption(i,p)),[p,i]);let m=Object(Pi.a)((e=>{if(o)return e.preventDefault();c.onChange(a),0===l.mode&&(c.closeListbox(),Object(xo.a)().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
2)))})),g=Object(Pi.a)((()=>{if(o)return c.goToOption(ga.a.Nothing);c.goToOption(ga.a.Specific,i)})),v=Object(ba.a)(),y=Object(Pi.a)((e=>v.update(e))),w=Object(Pi.a)((e=>{v.wasMoved(e)&&(o||u||c.goToOption(ga.a.Specific,i,0))})),O=Object(Pi.a)((e=>{v.wasMoved(e)&&(o||u&&c.goToOption(ga.a.Nothing))})),j=Object(n.useMemo)((()=>({active:u,selected:d,disabled:o})),[u,d,o]);return Object(qi.e)({ourProps:{id:i,ref:b,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":d,disabled:void 0,onClick:m,onFocus:g,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:O,onMouseLeave:O},theirProps:s,slot:j,defaultTag:"li",name:"Listbox.Option"})})),Rs=Object.assign(Ms,{Button:$s,Label:Ts,Options:Is,Option:As});function Ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ls(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ns(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let Bs=Object(n.createContext)(null);function zs(){let e=Object(n.useContext)(Bs);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,zs),e}return e}function Fs(){let[e,t]=Object(n.useState)([]);return[e.length>0?e.join(" "):void 0,Object(n.useMemo)((()=>function(e){let r=Object(Pi.a)((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),o=Object(n.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return i.a.createElement(Bs.Provider,{value:o},e.children)}),[t])]}let Us=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:n=`headlessui-label-${r}`,passive:i=!1}=e,o=Ns(e,["id","passive"]),a=zs(),s=Object(Bi.b)(t);Object(Ti.a)((()=>a.register(n)),[n,a.register]);let l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(r),!0).forEach((function(t){Ls(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:s},a.props,{id:n});return i&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in o&&delete o.onClick),Object(qi.e)({ourProps:l,theirProps:o,slot:a.slot||{},defaultTag:"label",name:a.name||"Label"})})),Hs=Object.assign(Us,{});function Vs(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ws(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(r),!0).forEach((function(t){qs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ks,Ys=((Ks=Ys||{})[Ks.RegisterOption=0]="RegisterOption",Ks[Ks.UnregisterOption=1]="UnregisterOption",Ks);let Xs={0(e,t){let r=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return Ws({},e,{options:Object(Gi.i)(r,(e=>e.element.current))})},1(e,t){let r=e.options.slice(),n=e.options.findIndex((e=>e.id===t.id));return-1===n?e:(r.splice(n,1),Ws({},e,{options:r}))}},Js=Object(n.createContext)(null);function Zs(e){let t=Object(n.useContext)(Js);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zs),t}return t}Js.displayName="RadioGroupDataContext";let Qs=Object(n.createContext)(null);function el(e){let t=Object(n.useContext)(Qs);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,el),t}return t}function tl(e,t){return Object(Wi.a)(t.type,Xs,e,t)}Qs.displayName="RadioGroupActionsContext";var rl=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(rl||{});let nl=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:o=`headlessui-radiogroup-${r}`,value:a,defaultValue:s,form:l,name:c,onChange:u,by:d=((e,t)=>e===t),disabled:f=!1}=e,h=Vs(e,["id","value","defaultValue","form","name","onChange","by","disabled"]),p=Object(Pi.a)("string"==typeof d?(e,t)=>{let r=d;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:d),[b,m]=Object(n.useReducer)(tl,{options:[]}),g=b.options,[v,y]=Fs(),[w,O]=Go(),j=Object(n.useRef)(null),x=Object(Bi.b)(j,t),[_,S]=Object(cs.a)(a,u,s),E=Object(n.useMemo)((()=>g.find((e=>!e.propsRef.current.disabled))),[g]),k=Object(n.useMemo)((()=>g.some((e=>p(e.propsRef.current.value,_)))),[g,_]),C=Object(Pi.a)((e=>{var t;if(f||p(e,_))return!1;let r=null==(t=g.find((t=>p(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==r||!r.disabled)&&(null==S||S(e),!0)}));Object(ma.a)({container:j.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let P=Object(Pi.a)((e=>{let t=j.current;if(!t)return;let r=Object(ds.a)(t),n=g.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case Ko.a.Enter:Object(us.a)(e.currentTarget);break;case Ko.a.ArrowLeft:case Ko.a.ArrowUp:if(e.preventDefault(),e.stopPropagation(),Object(Gi.f)(n,Gi.a.Previous|Gi.a.WrapAround)===Gi.b.Success){let e=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&C(e.propsRef.current.value)}break;case Ko.a.ArrowRight:case Ko.a.ArrowDown:if(e.preventDefault(),e.stopPropagation(),Object(Gi.f)(n,Gi.a.Next|Gi.a.WrapAround)===Gi.b.Success){let e=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&C(e.propsRef.current.value)}break;case Ko.a.Space:{e.preventDefault(),e.stopPropagation();let t=g.find((e=>e.element.current===(null==r?void 0:r.activeElement)));t&&C(t.propsRef.current.value)}}})),M=Object(Pi.a)((e=>(m(Ws({type:0},e)),()=>m({type:1,id:e.id})))),$=Object(n.useMemo)((()=>Ws({value:_,firstOption:E,containsCheckedOption:k,disabled:f,compare:p},b)),[_,E,k,f,p,b]),T=Object(n.useMemo)((()=>({registerOption:M,change:C})),[M,C]),I={ref:x,id:o,role:"radiogroup","aria-labelledby":v,"aria-describedby":w,onKeyDown:P},A=Object(n.useMemo)((()=>({value:_})),[_]),R=Object(n.useRef)(null),D=Object(Ci.a)();return Object(n.useEffect)((()=>{R.current&&void 0!==s&&D.addEventListener(R.current,"reset",(()=>{C(s)}))}),[R,C]),i.a.createElement(O,{name:"RadioGroup.Description"},i.a.createElement(y,{name:"RadioGroup.Label"},i.a.createElement(Qs.Provider,{value:T},i.a.createElement(Js.Provider,{value:$},null!=c&&null!=_&&Object(us.b)({[c]:_}).map((([e,t],r)=>i.a.createElement(Hi.b,Ws({features:Hi.a.Hidden,ref:0===r?e=>{var t;R.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0},Object(qi.c)({key:e,as:"input",type:"radio",checked:null!=t,hidden:!0,readOnly:!0,form:l,disabled:f,name:e,value:t}))))),Object(qi.e)({ourProps:I,theirProps:h,slot:A,defaultTag:"div",name:"RadioGroup"})))))}
2)),il=Object(qi.d)((function(e,t){var r;let o=Object(Po.a)(),{id:a=`headlessui-radiogroup-option-${o}`,value:s,disabled:l=!1}=e,c=Vs(e,["id","value","disabled"]),u=Object(n.useRef)(null),d=Object(Bi.b)(u,t),[f,h]=Fs(),[p,b]=Go(),{addFlag:m,removeFlag:g,hasFlag:v}=Ba(1),y=Object(Mi.a)({value:s,disabled:l}),w=Zs("RadioGroup.Option"),O=el("RadioGroup.Option");Object(Ti.a)((()=>O.registerOption({id:a,element:u,propsRef:y})),[a,O,u,y]);let j=Object(Pi.a)((e=>{var t;if(Object(Bo.a)(e.currentTarget))return e.preventDefault();O.change(s)&&(m(2),null==(t=u.current)||t.focus())})),x=Object(Pi.a)((e=>{if(Object(Bo.a)(e.currentTarget))return e.preventDefault();m(2)})),_=Object(Pi.a)((()=>g(2))),S=(null==(r=w.firstOption)?void 0:r.id)===a,E=w.disabled||l,k=w.compare(w.value,s),C={ref:d,id:a,role:"radio","aria-checked":k?"true":"false","aria-labelledby":f,"aria-describedby":p,"aria-disabled":!!E||void 0,tabIndex:E?-1:k||!w.containsCheckedOption&&S?0:-1,onClick:E?void 0:j,onFocus:E?void 0:x,onBlur:E?void 0:_},P=Object(n.useMemo)((()=>({checked:k,disabled:E,active:v(2)})),[k,E,v]);return i.a.createElement(b,{name:"RadioGroup.Description"},i.a.createElement(h,{name:"RadioGroup.Label"},Object(qi.e)({ourProps:C,theirProps:c,slot:P,defaultTag:"div",name:"RadioGroup.Option"})))})),ol=Object.assign(nl,{Option:il,Label:Hs,Description:qo});function al({onFocus:e}){let[t,r]=Object(n.useState)(!0),o=Ii();return t?i.a.createElement(Hi.b,{as:"button",type:"button",features:Hi.a.Focusable,onFocus:t=>{t.preventDefault();let n,i=50;n=requestAnimationFrame((function t(){if(i--<=0)n&&cancelAnimationFrame(n);else if(e()){if(cancelAnimationFrame(n),!o.current)return;r(!1)}else n=requestAnimationFrame(t)}))}}):null}const sl=n.createContext(null);function ll({children:e}){let t=n.useRef({groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=null!=(r=n.get(t))?r:0;return n.set(t,i+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return n.createElement(sl.Provider,{value:t},e)}function cl(e){let t=n.useContext(sl);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let r=function(){var e,t,r;let i=null!=(r=null==(t=null==(e=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?r:null;if(!i)return Symbol();let o=[],a=i;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[i,o]=t.current.get(e,r);return n.useEffect((()=>o),[]),i}function ul(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(r),!0).forEach((function(t){hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pl,bl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(bl||{}),ml=((pl=ml||{})[pl.Less=-1]="Less",pl[pl.Equal=0]="Equal",pl[pl.Greater=1]="Greater",pl),gl=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(gl||{});let vl={0(e,t){var r;let n=Object(Gi.i)(e.tabs,(e=>e.current)),i=Object(Gi.i)(e.panels,(e=>e.current)),o=n.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a=fl({},e,{tabs:n,panels:i});if(t.index<0||t.index>n.length-1){let r=Object(Wi.a)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Object(Wi.a)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return a;let i=Object(Wi.a)(r,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return fl({},a,{selectedIndex:-1===i?e.selectedIndex:i})}let s=n.slice(0,t.index),l=[...n.slice(t.index),...s].find((e=>o.includes(e)));if(!l)return a;let c=null!=(r=n.indexOf(l))?r:e.selectedIndex;return-1===c&&(c=e.selectedIndex),fl({},a,{selectedIndex:c})},1(e,t){if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],n=Object(Gi.i)([...e.tabs,t.tab],(e=>e.current)),i=e.selectedIndex;return e.info.current.isControlled||(i=n.indexOf(r),-1===i&&(i=e.selectedIndex)),fl({},e,{tabs:n,selectedIndex:i})},2:(e,t)=>fl({},e,{tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>
2e.panels.includes(t.panel)?e:fl({},e,{panels:Object(Gi.i)([...e.panels,t.panel],(e=>e.current))}),4:(e,t)=>fl({},e,{panels:e.panels.filter((e=>e!==t.panel))})},yl=Object(n.createContext)(null);function wl(e){let t=Object(n.useContext)(yl);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wl),t}return t}yl.displayName="TabsDataContext";let Ol=Object(n.createContext)(null);function jl(e){let t=Object(n.useContext)(Ol);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jl),t}return t}function xl(e,t){return Object(Wi.a)(t.type,vl,e,t)}Ol.displayName="TabsActionsContext";let _l=n.Fragment;let Sl=qi.a.RenderStrategy|qi.a.Static;let El=Object(qi.d)((function(e,t){var r,i;let o=Object(Po.a)(),{id:a=`headlessui-tabs-tab-${o}`}=e,s=ul(e,["id"]),{orientation:l,activation:c,selectedIndex:u,tabs:d,panels:f}=wl("Tab"),h=jl("Tab"),p=wl("Tab"),b=Object(n.useRef)(null),m=Object(Bi.b)(b,t);Object(Ti.a)((()=>h.registerTab(b)),[h,b]);let g=cl("tabs"),v=d.indexOf(b);-1===v&&(v=g);let y=v===u,w=Object(Pi.a)((e=>{var t;let r=e();if(r===Gi.b.Success&&"auto"===c){let e=null==(t=Object(ds.a)(b))?void 0:t.activeElement,r=p.tabs.findIndex((t=>t.current===e));-1!==r&&h.change(r)}return r})),O=Object(Pi.a)((e=>{let t=d.map((e=>e.current)).filter(Boolean);if(e.key===Ko.a.Space||e.key===Ko.a.Enter)return e.preventDefault(),e.stopPropagation(),void h.change(v);switch(e.key){case Ko.a.Home:case Ko.a.PageUp:return e.preventDefault(),e.stopPropagation(),w((()=>Object(Gi.f)(t,Gi.a.First)));case Ko.a.End:case Ko.a.PageDown:return e.preventDefault(),e.stopPropagation(),w((()=>Object(Gi.f)(t,Gi.a.Last)))}return w((()=>Object(Wi.a)(l,{vertical:()=>e.key===Ko.a.ArrowUp?Object(Gi.f)(t,Gi.a.Previous|Gi.a.WrapAround):e.key===Ko.a.ArrowDown?Object(Gi.f)(t,Gi.a.Next|Gi.a.WrapAround):Gi.b.Error,horizontal:()=>e.key===Ko.a.ArrowLeft?Object(Gi.f)(t,Gi.a.Previous|Gi.a.WrapAround):e.key===Ko.a.ArrowRight?Object(Gi.f)(t,Gi.a.Next|Gi.a.WrapAround):Gi.b.Error})))===Gi.b.Success?e.preventDefault():void 0})),j=Object(n.useRef)(!1),x=Object(Pi.a)((()=>{var e;j.current||(j.current=!0,null==(e=b.current)||e.focus({preventScroll:!0}),h.change(v),Object(Ai.a)((()=>{j.current=!1})))})),_=Object(Pi.a)((e=>{e.preventDefault()})),S=Object(n.useMemo)((()=>{var t;return{selected:y,disabled:null!=(t=e.disabled)&&t}}),[y,e.disabled]),E={ref:m,onKeyDown:O,onMouseDown:_,onClick:x,id:a,role:"tab",type:Object(da.a)(e,b),"aria-controls":null==(i=null==(r=f[v])?void 0:r.current)?void 0:i.id,"aria-selected":y,tabIndex:y?0:-1};return Object(qi.e)({ourProps:E,theirProps:s,slot:S,defaultTag:"button",name:"Tabs.Tab"})})),kl=Object(qi.d)((function(e,t){let{defaultIndex:r=0,vertical:o=!1,manual:a=!1,onChange:s,selectedIndex:l=null}=e,c=ul(e,["defaultIndex","vertical","manual","onChange","selectedIndex"]);const u=o?"vertical":"horizontal",d=a?"manual":"auto";let f=null!==l,h=Object(Mi.a)({isControlled:f}),p=Object(Bi.b)(t),[b,m]=Object(n.useReducer)(xl,{info:h,selectedIndex:null!=l?l:r,tabs:[],panels:[]}),g=Object(n.useMemo)((()=>({selectedIndex:b.selectedIndex})),[b.selectedIndex]),v=Object(Mi.a)(s||(()=>{})),y=Object(Mi.a)(b.tabs),w=Object(n.useMemo)((()=>fl({orientation:u,activation:d},b)),[u,d,b]),O=Object(Pi.a)((e=>(m({type:1,tab:e}),()=>m({type:2,tab:e})))),j=Object(Pi.a)((e=>(m({type:3,panel:e}),()=>m({type:4,panel:e})))),x=Object(Pi.a)((e=>{_.current!==e&&v.current(e),f||m({type:0,index:e})})),_=Object(Mi.a)(f?e.selectedIndex:b.selectedIndex),S=Object(n.useMemo)((()=>({registerTab:O,registerPanel:j,change:x})),[]);Object(Ti.a)((()=>{m({type:0,index:null!=l?l:r})}),[l]),Object(Ti.a)((()=>{if(void 0===_.current||b.tabs.length<=0)return;let e=Object(Gi.i)(b.tabs,(e=>e.current));e.some(((e,t)=>b.tabs[t]!==e))&&x(e.indexOf(b.tabs[_.current]))}));let E={ref:p};return i.a.createElement(ll,null,i.a.createElement(Ol.Provider,{value:S},i.a.createElement(yl.Provider,{value:w},w.tabs.length<=0&&i.a.createElement(al,{onFocus:()=>{var e,t;for(let r of y.current)if(0===(null==(e=r.current)?void 0:e.tabIndex))return null==(t=r.current)||t.focu
2s(),!0;return!1}}),Object(qi.e)({ourProps:E,theirProps:c,slot:g,defaultTag:_l,name:"Tabs"}))))})),Cl=Object(qi.d)((function(e,t){let{orientation:r,selectedIndex:n}=wl("Tab.List"),i=Object(Bi.b)(t);return Object(qi.e)({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})})),Pl=Object(qi.d)((function(e,t){let{selectedIndex:r}=wl("Tab.Panels"),i=Object(Bi.b)(t),o=Object(n.useMemo)((()=>({selectedIndex:r})),[r]);return Object(qi.e)({ourProps:{ref:i},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})})),Ml=Object(qi.d)((function(e,t){var r,o,a,s;let l=Object(Po.a)(),{id:c=`headlessui-tabs-panel-${l}`,tabIndex:u=0}=e,d=ul(e,["id","tabIndex"]),{selectedIndex:f,tabs:h,panels:p}=wl("Tab.Panel"),b=jl("Tab.Panel"),m=Object(n.useRef)(null),g=Object(Bi.b)(m,t);Object(Ti.a)((()=>b.registerPanel(m)),[b,m,c]);let v=cl("panels"),y=p.indexOf(m);-1===y&&(y=v);let w=y===f,O=Object(n.useMemo)((()=>({selected:w})),[w]),j={ref:g,id:c,role:"tabpanel","aria-labelledby":null==(o=null==(r=h[y])?void 0:r.current)?void 0:o.id,tabIndex:w?u:-1};return w||null!=(a=d.unmount)&&!a||null!=(s=d.static)&&s?Object(qi.e)({ourProps:j,theirProps:d,slot:O,defaultTag:"div",features:Sl,visible:w,name:"Tabs.Panel"}):i.a.createElement(Hi.b,fl({as:"span","aria-hidden":"true"},j))})),$l=Object.assign(El,{Group:kl,List:Cl,Panels:Pl,Panel:Ml});function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Il(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Al(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let Rl=Object(n.createContext)(null);Rl.displayName="GroupContext";let Dl=n.Fragment;let Ll=Object(qi.d)((function(e,t){var r;let o=Object(Po.a)(),{id:a=`headlessui-switch-${o}`,checked:s,defaultChecked:l=!1,onChange:c,disabled:u=!1,name:d,value:f,form:h}=e,p=Al(e,["id","checked","defaultChecked","onChange","disabled","name","value","form"]),b=Object(n.useContext)(Rl),m=Object(n.useRef)(null),g=Object(Bi.b)(m,t,null===b?null:b.setSwitch),[v,y]=Object(cs.a)(s,c,l),w=Object(Pi.a)((()=>null==y?void 0:y(!v))),O=Object(Pi.a)((e=>{if(Object(Bo.a)(e.currentTarget))return e.preventDefault();e.preventDefault(),w()})),j=Object(Pi.a)((e=>{e.key===Ko.a.Space?(e.preventDefault(),w()):e.key===Ko.a.Enter&&Object(us.a)(e.currentTarget)})),x=Object(Pi.a)((e=>e.preventDefault())),_=Object(n.useMemo)((()=>({checked:v})),[v]),S={id:a,ref:g,role:"switch",type:Object(da.a)(e,m),tabIndex:-1===e.tabIndex?0:null!=(r=e.tabIndex)?r:0,"aria-checked":v,"aria-labelledby":null==b?void 0:b.labelledby,"aria-describedby":null==b?void 0:b.describedby,disabled:u,onClick:O,onKeyUp:j,onKeyPress:x},E=Object(Ci.a)();return Object(n.useEffect)((()=>{var e;let t=null==(e=m.current)?void 0:e.closest("form");t&&void 0!==l&&E.addEventListener(t,"reset",(()=>{y(l)}))}),[m,y]),i.a.createElement(i.a.Fragment,null,null!=d&&v&&i.a.createElement(Hi.b,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(r),!0).forEach((function(t){Il(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({features:Hi.a.Hidden},Object(qi.c)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:u,form:h,checked:v,name:d,value:f}
2))),Object(qi.e)({ourProps:S,theirProps:p,slot:_,defaultTag:"button",name:"Switch"}))})),Nl=function(e){var t;let[r,o]=Object(n.useState)(null),[a,s]=Fs(),[l,c]=Go(),u=Object(n.useMemo)((()=>({switch:r,setSwitch:o,labelledby:a,describedby:l})),[r,o,a,l]),d=e;return i.a.createElement(c,{name:"Switch.Description"},i.a.createElement(s,{name:"Switch.Label",props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){r&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},i.a.createElement(Rl.Provider,{value:u},Object(qi.e)({ourProps:{},theirProps:d,defaultTag:Dl,name:"Switch.Group"}))))},Bl=Object.assign(Ll,{Group:Nl,Label:Hs,Description:qo});var zl,Fl=r(596);let Ul=null!=(zl=i.a.startTransition)?zl:function(e){e()};function Hl(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(r),!0).forEach((function(t){Wl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ql,Kl=((ql=Kl||{})[ql.Open=0]="Open",ql[ql.Closed=1]="Closed",ql),Yl=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Yl||{});let Xl={0:e=>Gl({},e,{disclosureState:Object(Wi.a)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:Gl({},e,{disclosureState:1}),4:e=>!0===e.linkedPanel?e:Gl({},e,{linkedPanel:!0}),5:e=>!1===e.linkedPanel?e:Gl({},e,{linkedPanel:!1}),2:(e,t)=>e.buttonId===t.buttonId?e:Gl({},e,{buttonId:t.buttonId}),3:(e,t)=>
2e.panelId===t.panelId?e:Gl({},e,{panelId:t.panelId})},Jl=Object(n.createContext)(null);function Zl(e){let t=Object(n.useContext)(Jl);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zl),t}return t}Jl.displayName="DisclosureContext";let Ql=Object(n.createContext)(null);function ec(e){let t=Object(n.useContext)(Ql);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ec),t}return t}Ql.displayName="DisclosureAPIContext";let tc=Object(n.createContext)(null);function rc(e,t){return Object(Wi.a)(t.type,Xl,e,t)}tc.displayName="DisclosurePanelContext";let nc=n.Fragment;let ic=qi.a.RenderStrategy|qi.a.Static;let oc=Object(qi.d)((function(e,t){let{defaultOpen:r=!1}=e,o=Hl(e,["defaultOpen"]),a=Object(n.useRef)(null),s=Object(Bi.b)(t,Object(Bi.a)((e=>{a.current=e}),void 0===e.as||e.as===n.Fragment)),l=Object(n.useRef)(null),c=Object(n.useRef)(null),u=Object(n.useReducer)(rc,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:c,panelRef:l,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:f},h]=u,p=Object(Pi.a)((e=>{h({type:1});let t=Object(ds.a)(a);if(!t||!f)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(f):t.getElementById(f);null==r||r.focus()})),b=Object(n.useMemo)((()=>({close:p})),[p]),m=Object(n.useMemo)((()=>({open:0===d,close:p})),[d,p]),g={ref:s};return i.a.createElement(Jl.Provider,{value:u},i.a.createElement(Ql.Provider,{value:b},i.a.createElement(Ao.a,{value:Object(Wi.a)(d,{0:Ao.b.Open,1:Ao.b.Closed})},Object(qi.e)({ourProps:g,theirProps:o,slot:m,defaultTag:nc,name:"Disclosure"}))))})),ac=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:i=`headlessui-disclosure-button-${r}`}=e,o=Hl(e,["id"]),[a,s]=Zl("Disclosure.Button"),l=Object(n.useContext)(tc),c=null!==l&&l===a.panelId,u=Object(n.useRef)(null),d=Object(Bi.b)(u,t,c?null:a.buttonRef),f=Object(qi.f)();Object(n.useEffect)((()=>{if(!c)return s({type:2,buttonId:i}),()=>{s({type:2,buttonId:null})}}),[i,s,c]);let h=Object(Pi.a)((e=>{var t;if(c){if(1===a.disclosureState)return;switch(e.key){case Ko.a.Space:case Ko.a.Enter:e.preventDefault(),e.stopPropagation(),s({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Ko.a.Space:case Ko.a.Enter:e.preventDefault(),e.stopPropagation(),s({type:0})}})),p=Object(Pi.a)((e=>{if(e.key===Ko.a.Space)e.preventDefault()})),b=Object(Pi.a)((t=>{var r;Object(Bo.a)(t.currentTarget)||e.disabled||(c?(s({type:0}),null==(r=a.buttonRef.current)||r.focus()):s({type:0}))})),m=Object(n.useMemo)((()=>({open:0===a.disclosureState})),[a]),g=Object(da.a)(e,u),v=c?{ref:d,type:g,onKeyDown:h,onClick:b}:{ref:d,id:i,type:g,"aria-expanded":0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:h,onKeyUp:p,onClick:b};return Object(qi.e)({mergeRefs:f,ourProps:v,theirProps:o,slot:m,defaultTag:"button",name:"Disclosure.Button"})})),sc=Object(qi.d)((function(e,t){let r=Object(Po.a)(),{id:o=`headlessui-disclosure-panel-${r}`}=e,a=Hl(e,["id"]),[s,l]=Zl("Disclosure.Panel"),{close:c}=ec("Disclosure.Panel"),u=Object(qi.f)(),d=Object(Bi.b)(t,s.panelRef,(e=>{Ul((()=>l({type:e?4:5})))}));Object(n.useEffect)((()=>(l({type:3,panelId:o}),()=>{l({type:3,panelId:null})})),[o,l]);let f=Object(Ao.c)(),h=null!==f?(f&Ao.b.Open)===Ao.b.Open:0===s.disclosureState,p=Object(n.useMemo)((()=>({open:0===s.disclosureState,close:c})),[s,c]),b={ref:d,id:o};return i.a.createElement(tc.Provider,{value:s.panelId},Object(qi.e)({mergeRefs:u,ourProps:b,theirProps:a,slot:p,defaultTag:"div",features:ic,visible:h,name:"Disclosure.Panel"}))})),lc=Object.assign(oc,{Button:ac,Panel:sc});function cc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?cc(Object(r),!0).forEach((function(t){dc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fc(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var hc={exports:{}};var pc,bc={};hc.exports=function(){if(pc)return bc;pc=1;var e=i.a,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,i){var s,l={},c=null,u=null;for(s in void 0!==i&&(c=""+i),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!a.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return bc.Fragment=r,bc.jsx=s,bc.jsxs=s,bc}();var mc=hc.exports;const gc=g(N,R,D,$,I,be,xe,T,A,Me,G,Z,le),vc=Ye()("div").withConfig({shouldForwardProp:(e,t)=>!["color","direction","flexDirection","display","height","fontFamily","fontSize","fontWeight","width","overflow"].includes(e)&&t(e),displayName:"dist__Box",componentId:"sc-1fnzlkn-0"})(gc,Ge);vc.displayName="Box";const yc=n.forwardRef(((e,t)=>{let{as:r="div",children:n,ratio:i,sx:o}=e,a=fc(e,["as","children","ratio","sx"]);const s=((e,t)=>{const r=(e,t)=>t?r(t,e%t):e,n=r(e,t);return[e/n,t/n]})(parseInt(i.split(":")[0],10),parseInt(i.split(":")[1],10)||1);return mc.jsx(vc,uc({ref:t,as:r,sx:uc({position:"relative",overflow:"hidden",aspectRatio:`${s[0]} / ${s[1]}`,"@supports not (aspect-ratio: 1)":{height:"0",paddingBottom:`calc((${s[1]} / ${s[0]}) * 100%)`},"& > *":{objectFit:"cover",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",height:"$full",width:"$full"}},o)},a,{children:n}))}));yc.displayName="AspectRatio";const wc="undefined"!=typeof window?i.a.useLayoutEffect:i.a.useEffect,Oc=Ye()(vc).withConfig({displayName:"dist__FlexBase",componentId:"sc-1fnzlkn-1"})(m({placeContent:{properties:["alignItems","justifyContent"]},direction:{property:"flexDirection"}}));Oc.displayName="FlexBase";const jc=n.forwardRef(((e,t)=>{let{as:r,sx:n}=e,i=fc(e,["as","sx"]);return mc.jsx(Oc,uc({ref:t,as:r,sx:uc({display:"flex"},n)},i))}));jc.displayName="Flex";const xc=n.forwardRef(((e,t)=>{let{as:r,icon:n,fixedWidth:i=!1,spin:o=!1,listItem:a=!1,iconBorder:s=!1,mask:l,sx:c,title:u,onClick:d}=e,f=fc(e,["as","icon","fixedWidth","spin","listItem","iconBorder","mask","sx","title","onClick"]);return mc.jsx(vc,uc({as:r,sx:uc({display:"inline-flex"},c)},f,{children:mc.jsx(Ei,{ref:t,border:s,fixedWidth:i,icon:n,listItem:a,mask:l,spin:o,title:u,onClick:d})}))}));xc.displayName="Icon";const _c=Ye()(vc).withConfig({displayName:"dist__Loader",componentId:"sc-1fnzlkn-2"})(['&.spcircle{width:1rem;height:1rem;border:0.125rem solid var(--spinner-border);border-top:0.5rem solid var(--spinner-color);border-radius:50%;animation:spCircRot 0.6s infinite linear;}@keyframes spCircRot{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}&.spballs,&.spballs:before,&.spballs:after{border-radius:50%;background-color:var(--spinner-color);width:1rem;height:1rem;transform-origin:center center;display:block;}&.spballs{position:relative;background-color:var(--spinner-color);opacity:1;animation:spScaleAlpha 1s infinite linear;}&.spballs:before,&.spballs:after{content:"";position:relative;opacity:0.25;}&.spballs:before{left:32px;top:0;animation:spScaleAlphaAfter 1s infinite linear;}&.spballs:after{left:64px;top:-16px;animation:spScaleAlphaBefore 1s infinite linear;}@keyframes spScaleAlpha{0%{opacity:1;}33%{opacity:0.25;}66%{opacity:0.25;}100%{opacity:1;}}@keyframes spScaleAlphaBefore{0%{opacity:0.25;}33%{opacity:1;}66%{opacity:0.25;}}@keyframes spScaleAlphaAfter{33%{opacity:0.25;}66%{opacity:1;}100%{opacity:0.25;}}']);_c.displayName="Loader";const Sc=n.forwardRef((({spinner:e="circle",spinnerBorderColor:t="rgba(255, 255, 255, 0.75)",spinnerColor:r="white"},n)=>mc.jsx(_c,{ref:n,className:`sp${e}`,style:{"--spinner-border":t,"--spinner-color":r}})));Sc.displayName="Spinner";const Ec=Ye()(vc).withConfig({displayName:"dist__TextBase",componentId:"sc-1fnzlkn-3"})(qe({scale:"textStyles",prop:"variant",variants:{_:{}}}));Ec.displayName="TextBase";const kc=n.forwardRef(((e,t)=>{let{as:r="p",innerContent:n,children:i,textColor:o="inherit",sx:a}=e,s=fc(e,["as","innerContent","children","textColor","sx"]);return n||i?!n&&i?mc.jsx(Ec,uc({ref:t,as:r,sx:a,textColor:o},s,{children:i})):mc.jsx(Ec,uc({ref:t,as:r,dangerouslySetInnerHTML:{__html:n},sx:uc({a:{textDecoration:"none",color:"$blue.600",fontWeight:"$black","&:hover":{color:"$blue.700"},"&:visited":{color:"$blue.800"}}},a),textColor:o},s)):null}));kc.displayName="Text";const Cc=g(N,R,D,$,I,be,xe,T,A,Me,G,Z,le),Pc=Ye()("button").withConfig({shouldForwardProp:(e,t)=>!["color","direction","flexDirection","display","height","fontFamily","fontSize","fontWeight","width","overflow"].includes(e)&&t(e),displayName:"dist__BaseButton",componentId:"sc-1fnzlkn-4"})({alignItems:"center",transition:"color, background 300ms cubic-bezier(0.25, 0.8, 0.25, 1)"},qe({scale:"buttonStyles",prop:"variant",variants:{_:{}}}),Cc,Ge);Pc.displayName="BaseButton";const Mc=n.forwardRef(((e,t)=>{let{as:r="button",children:i,className:o,iconLeft:a,iconRight:s,size:l="rg",variant:c="$primary",onClick:u,loading:d=!1,justifyContent:f,spinner:h="circle",spinnerColor:p,spinnerBorderColor:b,sx:m,disabled:g=!1}=e,v=fc(e,["as","children","className","iconLeft","iconRight","size","variant","onClick","loading","justifyContent","spinner","spinnerColor","spinnerBorderColor","sx","disabled"]);const[y,w]=n.useState(0),[O,j]=n.useState(0),[x,_]=n.useState(!1),S=n.useRef(null),E=n.Children.toArray(i).length>0;return n.useEffect((()=>
2{if(d&&_(!0),!d&&_){const e=setTimeout((()=>{_(!1)}),400);return()=>{clearTimeout(e)}}}),[d,_]),wc((()=>{if(S.current){const{current:e}=S;if(e.getBoundingClientRect().width){const{width:t,height:r}=e.getBoundingClientRect();w(t),j(r)}}}),[]),"sm"===l?mc.jsx(Pc,uc({ref:t,as:r,className:o,disabled:g,sx:uc({display:"flex",justifyContent:"center",fontSize:["$0","$1"],px:"$2",py:"$1",cursor:"pointer"},m),variant:c,onClick:u},v,{children:x?mc.jsx(jc,{placeContent:"center",sx:O&&y?{height:O,width:y}:{},children:mc.jsx(Sc,{spinner:h,spinnerBorderColor:b,spinnerColor:p})}):mc.jsxs(kc,{ref:S,alignItems:"center",as:"span",display:"flex",justifyContent:f||"center",width:"$full",children:[a&&mc.jsx(xc,{className:"buttonIcon",icon:a,mr:E?"$1":"$0",fixedWidth:!0}),i,s&&mc.jsx(xc,{className:"buttonIcon",icon:s,ml:E?"$1":"$0",fixedWidth:!0})]})})):"rg"===l?mc.jsx(Pc,uc({ref:t,as:r,className:o,disabled:g,sx:uc({display:"flex",justifyContent:"center",fontSize:["$1",null,"$2"],px:"$3",py:"$2",cursor:"pointer"},m),variant:c,onClick:u},v,{children:x?mc.jsx(jc,{placeContent:"center",sx:O&&y?{height:O,width:y}:{},children:mc.jsx(Sc,{spinner:h,spinnerBorderColor:b,spinnerColor:p})}):mc.jsxs(kc,{ref:S,alignItems:"center",as:"span",display:"flex",justifyContent:f||"center",width:"$full",children:[a&&mc.jsx(xc,{className:"buttonIcon",icon:a,mr:E?"$1":"$0",fixedWidth:!0}),i,s&&mc.jsx(xc,{className:"buttonIcon",icon:s,ml:E?"$1":"$0",fixedWidth:!0})]})})):"lg"===l?mc.jsx(Pc,uc({ref:t,as:r,className:o,disabled:g,sx:uc({display:"flex",justifyContent:"center",fontSize:["$1",null,"$3"],py:"$3",px:"$5",cursor:"pointer"},m),variant:c,onClick:u},v,{children:x?mc.jsx(jc,{placeContent:"center",sx:O&&y?{height:O,width:y}:{},children:mc.jsx(Sc,{spinner:h,spinnerBorderColor:b,spinnerColor:p})}):mc.jsxs(kc,{ref:S,alignItems:"center",as:"span",display:"flex",justifyContent:f||"center",width:"$full",children:[a&&mc.jsx(xc,{className:"buttonIcon",icon:a,mr:E?"$2":"$0",fixedWidth:!0}),i,s&&mc.jsx(xc,{className:"buttonIcon",icon:s,ml:E?"$2":"$0",fixedWidth:!0})]})})):null}));Mc.displayName="Button";const $c=Ye()(vc).withConfig({displayName:"dist__ContainerBase",componentId:"sc-1fnzlkn-5"})(qe({scale:"containerStyles",prop:"size",variants:{_:{}}}));$c.displayName="ContainerBase";const Tc=n.forwardRef(((e,t)=>{let{as:r="div",size:n="$4"}=e,i=fc(e,["as","size"]);return mc.jsx($c,uc({ref:t,as:r,size:n},i))}));Tc.displayName="Container";const Ic=Ye()(vc).withConfig({displayName:"dist__HeadingBase",componentId:"sc-1fnzlkn-6"})(qe({scale:"headingStyles",prop:"variant",variants:{_:{}}}));Ic.displayName="HeadingBase";const Ac=n.forwardRef(((e,t)=>{let{children:r,level:n=2,innerContent:i,textColor:o="$blueGray.900",sx:a,variant:s}=e,l=fc(e,["children","level","innerContent","textColor","sx","variant"]);return i||r?!i&&r?mc.jsx(Ic,uc({ref:t,as:n?`h${null==n?void 0:n.toString()}`:"h2",sx:a,textColor:o,variant:s},l,{children:r})):mc.jsx(Ic,uc({ref:t,as:n?`h${n.toString()}`:"h2",dangerouslySetInnerHTML:{__html:i},sx:uc({"& > a":{color:"$blue.600",fontWeight:"$bold","&:hover":{color:"$blue.700"},"&:visited":{color:"$blue.800"}}},a),textColor:o,variant:s},l)):null}));Ac.displayName="Heading";const Rc=Ye()(vc).withConfig({displayName:"dist__StackBase",componentId:"sc-1fnzlkn-7"})(m({gap:{property:"> * + *",scale:"space",transform:(e,t)=>({"--stack-gap":t[e]})}}),m({flexDirection:{property:"&&",transform:e=>e?{flexDirection:e,"> * + *":{marginTop:"column"===e?"var(--stack-gap)":0,marginBottom:"column-reverse"===e?"var(--stack-gap)":0,marginLeft:"row"===e?"var(--stack-gap)":0,marginRight:"row-reverse"===e?"var(--stack-gap)":0}}:null}}));Rc.displayName="StackBase";const Dc=n.forwardRef(((e,t)=>{let{as:r,className:n,gap:i,direction:o,flexDirection:a="column",children:s,marginCollapse:l=!1,sx:c}=e,u=fc(e,["as","className","gap","direction","flexDirection","children","marginCollapse","sx"]);const d=o||a;return mc.jsx(Rc,uc({ref:t,as:r,className:n,flexDirection:d,gap:i,sx:uc({},l?{display:"block"}:{display:"flex"},{},c)},u,{children:s}))}));Dc.displayName="Stack";const Lc=({children:e,isOpen:t,setIsOpen:r,title:i,description:o,successText:a,successVariant:s="$primary",successFn:l,cancelText:c,cancelFn:u,cancelVariant:d="$gray",initialFocus:f,loading:h=!1,actionAlignment:p="left",sx:b})=>{const m=n.useRef(null);return mc.jsx(ua,{className:"dialog",initialFocus:f||m,open:t,onClose:r,children:mc.jsxs(vc,{sx:{position:"relative"},children:[mc.jsx(ua.Overlay,{as:vc,className:"overlay",sx:{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"9998",backgroundColor:"$black.900",opacity:"0.75",backdropFilter:"saturate(180%) blur(2px)"},onClick:u}),mc.jsx(vc,{bg:"$blueGray.50",borderRadius:"$lg",p:"$4",sx:uc({position:"fixed",top:"50%",left:"50%",zIndex:9999,maxWidth:"95vw",maxHeight:"95vh",overflowY:"scroll",width:"$128",transform:"translate(-50%, -50%)"},b),textColor:"$blueGray.900",children:mc.jsxs(Dc,{gap:"$3",children:[mc.jsxs(Dc,{gap:"$2",children:[mc.jsx(ua.Title,{as:Ac,fontSize:"$5",level:2,textColor:"$blueGray.900",children:i}),o?mc.jsx(ua.Description,{as:kc,fontSize:"$1",fontWeight:"$semibold",textColor:"$blueGray.500",children:o}):null,e]}
2),mc.jsxs(Dc,{direction:"row",gap:"$3",justifyContent:{center:"center",left:"flex-start",right:"flex-end"}[p],children:[mc.jsx(Mc,{ref:m,size:"rg",variant:d,onClick:u,children:c}),mc.jsx(Mc,{loading:h,size:"rg",variant:s,onClick:async()=>{await l()},children:a})]})]})})]})})};Lc.displayName="DialogBox";const Nc=e=>{let{open:t,onClose:r,children:n,initialFocus:i,className:o,static:a=!1,sx:s}=e,l=fc(e,["open","onClose","children","initialFocus","className","static","sx"]);return mc.jsx(ua,uc({as:vc,className:o,initialFocus:i,open:t,static:a,sx:s,onClose:r},l,{children:n}))};Nc.displayName="Dialog";const Bc=n.forwardRef(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(ua.Panel,uc({ref:t,as:vc,sx:n},i,{children:r}))}));Bc.displayName="DialogPanel";n.forwardRef(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(ua.Title,uc({ref:t,as:vc,sx:n},i,{children:r}))})).displayName="DialogTitle";n.forwardRef(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(ua.Description,uc({ref:t,as:vc,sx:n},i,{children:r}))})).displayName="DialogDescription";const zc=e=>{let{open:t,onClose:r,children:n,panelProps:i,initialFocus:o,className:a,static:s=!1,sx:l}=e,c=fc(e,["open","onClose","children","panelProps","initialFocus","className","static","sx"]);return mc.jsx(Nc,uc({className:a,initialFocus:o,open:t,static:s,sx:l,onClose:r},c,{children:mc.jsx(Bc,uc({},i,{children:n}))}))};zc.displayName="MenuDialog";const Fc={height:"$0",border:"0",borderBottom:"1px solid currentColor"},Uc={$gray100:uc({},Fc,{color:"$blueGray.100"}),$gray200:uc({},Fc,{color:"$blueGray.200"}),$gray300:uc({},Fc,{color:"$blueGray.300"}),$gray400:uc({},Fc,{color:"$blueGray.400"}),$gray900:uc({},Fc,{color:"$blueGray.900"}),$red:{color:"$red.500",border:"0",borderBottom:"4px solid currentColor"}},Hc=Ye()(vc).withConfig({displayName:"dist__BaseDivider",componentId:"sc-1fnzlkn-8"})(qe({variants:Uc}));Hc.displayName="BaseDivider";const Vc=n.forwardRef(((e,t)=>{let{as:r="hr",mx:n="$0",my:i="$2",className:o,variant:a,sx:s}=e,l=fc(e,["as","mx","my","className","variant","sx"]);return mc.jsx(Hc,uc({ref:t,as:r,className:o,mx:n,my:i,sx:s,variant:a},l))}));Vc.displayName="Divider";const Gc=({alignment:e="right",buttonText:t,children:r,clickFunction:n,buttonIcon:i,mobileIcon:o,"aria-label":a,variant:s="$primary",size:l="rg",sx:c,mobileTab:u,tabletIcon:d,dropUp:f})=>mc.jsx(Na,{children:({open:h})=>mc.jsxs(vc,{sx:uc({position:"relative",display:"inline-block"},c),children:[mc.jsxs(Na.Button,{"aria-label":a,as:Mc,className:"headlessButton",iconRight:i,size:l,sx:uc({color:"$white","&:focus":uc({outline:"none",boxShadow:"$primaryButtonFocus"},!0===u?{borderRadius:"0"}:{borderRadius:"$md"})},u?{py:"$2","& > span":{flexDirection:"column-reverse"}}:void 0),variant:s,onMouseDown:n?()=>{n()}:void 0,children:[t?mc.jsx(kc,{as:"span",sx:uc({},o?{display:["none","flex"]}:void 0,{},u?{fontSize:"$-1"}:void 0),children:t}):void 0,o?mc.jsx(xc,{icon:o,sx:{color:"inherit",fontSize:"$4",dis
2play:["flex",d?"flex":"none","none"]}}):void 0]}),mc.jsx(ss,{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",show:h,children:mc.jsx(Na.Items,{as:vc,className:"headlessItems",sx:uc({display:"flex",flexDirection:"column",position:"absolute",zIndex:"9999",width:"15.5rem",backgroundColor:"$black.500",border:"1px solid",borderColor:"$black.300"},!0===u?{borderRadius:"0"}:{borderRadius:"$md"},{color:"$white",fontSize:"$1",lineHeight:"$none",overflow:"hidden"},"left"===e?{left:"$0"}:{right:"$0"},{},!0===u?{bottom:f}:{marginTop:"$2"},{"&:focus":{outline:"none",boxShadow:"0 0 0 1px #303236"}}),static:!0,children:r})})]})});Gc.displayName="Dropdown";const Wc={textDecoration:"none"},qc={$base:uc({},Wc,{color:"$blueGray.500"}),$primary:uc({},Wc,{color:"$blue.600"}),$red:uc({},Wc,{color:"$red.500"})},Kc=Ye()(vc).withConfig({displayName:"dist__LinkBase",componentId:"sc-1fnzlkn-9"})(qe({variants:qc}));Kc.displayName="LinkBase";const Yc=n.forwardRef(((e,t)=>{let{as:r="a",href:n,gaTag:i,className:o,children:a,innerContent:s,onClick:l,target:c,title:u,rel:d,variant:f,sx:h}=e,p=fc(e,["as","href","gaTag","className","children","innerContent","onClick","target","title","rel","variant","sx"]);return s||null!==a?i?s?mc.jsx(Kc,uc({as:"span",className:o,sx:uc({},f?{fontWeight:"$bold"}:void 0,{},h),variant:f},p,{children:mc.jsx("a",uc({dangerouslySetInnerHTML:{__html:s},ref:t,href:n,rel:d,target:c,title:u,onClick:l},i,{children:a}))})):mc.jsx(Kc,uc({as:"span",className:o,sx:uc({},f?{fontWeight:"$bold"}:void 0,{},h),variant:f},p,{children:mc.jsx("a",uc({href:n,rel:d,target:c,title:u},i,{ref:t,onClick:l,children:a}))})):s?mc.jsx(Kc,uc({ref:t,as:r,dangerouslySetInnerHTML:{__html:s},href:n,rel:d,sx:uc({},f?{fontWeight:"$bold"}:void 0,{},h),target:c,title:u,onClick:l},p)):mc.jsx(Kc,uc({ref:t,as:r,className:o,href:n,rel:d,sx:uc({},f?{fontWeight:"$bold"}:void 0,{},h),target:c,title:u,variant:f,onClick:l},p,{children:a})):null}));Yc.displayName="Link";const Xc=({children:e,href:t,disabled:r=!1,icon:n,onClick:i,sx:o})=>mc.jsx(Na.Item,{disabled:r,children:({active:a})=>mc.jsxs(Yc,{href:t,sx:uc({fontWeight:"inherit",color:"inherit",textDecoration:"none",cursor:r?null:"pointer",display:"flex",alignItems:"center",px:"$3",py:"$2",backgroundColor:a?"$black.300":null,"&:focus":{outline:"1px solid",outlineColor:"$black.100"}},o),onClick:i,children:[n&&mc.jsx(xc,{icon:n,sx:{mr:"$2"},fixedWidth:!0}),mc.jsx(kc,{as:"span",sx:{width:"$full"},children:e})]})});Xc.displayName="MenuItem";const Jc=n.forwardRef(((e,t)=>{let{action:r,children:n,className:i,disabled:o=!1,encType:a,id:s,method:l,name:c,onSubmit:u,role:d,sx:f}=e,h=fc(e,["action","children","className","disabled","encType","id","method","name","onSubmit","role","sx"]);return mc.jsx(vc,uc({ref:t,action:r,as:"form",className:i,disabled:o,encType:a,id:s,method:l,name:c,role:d,sx:f,onSubmit:u},h,{children:n}))}));Jc.displayName="Form";const Zc=g(Ve),Qc=Ye()(vc).withConfig({displayName:"dist__GridBase",componentId:"sc-1fnzlkn-10"})(m({minColumnWidth:{property:"gridTemplateColumns",scale:"sizes",transform:(e,t)=>e?`repeat(auto-fit, minmax(${We(e,t)}, 1fr))`:null},columns:{property:"gridTemplateColumns",transform:e=>e?`repeat(${e}, minmax(0, 1fr))`:null},gap:{property:"gridGap",scale:"space"},xGap:{property:"gridColumnGap",scale:"space"},yGap:{property:"gridRowGap",scale:"space"}}),Zc);Qc.displayName="GridBase";const eu=n.forwardRef(((e,t)=>{let{as:r,sx:n}=e,i=fc(e,["as","sx"]);return mc.jsx(Qc,uc({ref:t,as:r,sx:uc({display:"grid"},n)},i))}));eu.displayName="Grid";const tu=n.forwardRef(((e,t)=>{let{children:r,htmlFor:n,sx:i}=e,o=fc(e,["children","htmlFor","sx"]);return mc.jsx(vc,uc({ref:t,as:"label",htmlFor:n,sx:uc({fontFamily:"$primary",fontSize:"$1"},i),textColor:"$blueGray.700"},o,{children:r}))}));tu.displayName="Label";const ru=Ye()(vc).withConfig({displayName:"dist__BaseFileInput",componentId:"sc-1fnzlkn-11"})({appearance:"none",outline:"none"},qe({variants:{$light:{color:"$blueGray.900",bg:"$white",fontSize:"$1",borderRadius:"$rg",border:"2px s
2olid",borderColor:"$blueGray.200",py:"$2",px:"$3","&:hover":{borderColor:"$blue.200"},"&:focus-visible":{borderColor:"$blue.500"},"&:disabled":{color:"$blueGray.400"}},$dark:{color:"$white",bg:"$black.300",fontSize:"$1",borderRadius:"$rg",border:"2px solid",borderColor:"$blueGray.600",py:"$2",px:"$3","&:hover":{borderColor:"$red.300"},"&:focus-visible":{borderColor:"$red.500"},"& label":{color:"$white"}}}}));n.forwardRef(((e,t)=>{let{id:r,required:i=!1,variant:o="$light",label:a="Choose a file:",onChange:s}=e,l=fc(e,["id","required","variant","label","onChange"]);const c=n.useId();return mc.jsxs(Dc,{className:"fileUpload",gap:"$1",id:r,children:[a?mc.jsx(tu,{htmlFor:c,children:a}):null,mc.jsx(ru,uc({ref:t,as:"input",id:c,required:i,type:"file",variant:o,onChange:s},l))]})})).displayName="FileInput";const nu=Ye()(vc).withConfig({displayName:"dist__BaseInput",componentId:"sc-1fnzlkn-12"})({appearance:"none",outline:"none"},qe({variants:{$light:{borderRadius:"$rg",border:"1px solid",borderColor:"$blueGray.200",color:"$black.100",px:"$2",py:"$1","&:hover":{borderColor:"$blue.200"},"&:focus-visible":{borderColor:"$blue.500"}},$dark:{borderRadius:"$rg",px:"$3",py:"$2",backgroundColor:"$black.300",border:"1px solid",borderColor:"$black.100",color:"$white","&:hover":{},"&:focus-visible":{},"&:active":{}}}})),iu={$sm:"$8",$rg:"$10",$lg:"$12"},ou={$sm:"$0",$rg:"$2",$lg:"$2"},au=n.forwardRef(((e,t)=>{let{variant:r="$light",label:i,placeholder:o,size:a,name:s,sx:l,type:c,value:u,id:d}=e,f=fc(e,["variant","label","placeholder","size","name","sx","type","value","id"]);const h=n.useId();return mc.jsxs(Dc,{className:"inputWrapper",gap:"$1",id:d,sx:l,children:[i&&mc.jsx(tu,{htmlFor:h,children:i}),mc.jsx(nu,uc({ref:t,as:"input",id:h,name:s,placeholder:o,size:a,sx:{position:"relative",height:iu[a]||"$10",fontSize:ou[a]},type:c,value:u,variant:r},f))]})}));au.displayName="Input";const su=n.forwardRef(((e,t)=>{let{id:r,name:i,rows:o=4,cols:a=50,value:s="",label:l,variant:c="$light",sx:u}=e,d=fc(e,["id","name","rows","cols","value","label","variant","sx"]);const f=n.useId();return mc.jsxs(Dc,{className:"textareaWrap",gap:"$1",id:r,sx:u,children:[l&&mc.jsx(tu,{htmlFor:f,children:l}),mc.jsx(nu,uc({ref:t,as:"textarea",cols:a,foorwardedAs:"textarea",id:f,name:i,rows:o,sx:{position:"relative",fontFamily:"$secondary"},value:s,variant:c},d))]})}));su.displayName="TextArea";const lu={textDecoration:"none"},cu={$base:uc({},lu,{color:"$blueGray.500"}),$primary:uc({},lu,{color:"$blue.600"}),$red:uc({},lu,{color:"$red.500"}),$white:uc({},lu,{color:"$white"})},uu=g(N,R,D,$,I,be,xe,T,A,Me,G,Z,le),du=Ye()("a").withConfig({shouldForwardProp:(e,t)=>!["sx","variant","color","direction","flexDirection","display","height","fontFamily","fontSize","fontWeight","width","overflow"].includes(e)&&t(e),displayName:"dist__AnchorBase",componentId:"sc-1fnzlkn-13"})(qe({variants:cu}),uu,Ge);du.displayName="AnchorBase";const fu=Object(n.forwardRef)(((e,t)=>{let{href:r,className:n,innerContent:o,target:a,title:s,rel:l,onClick:c,variant:u,sx:d,children:f,gaTag:h}=e,p=fc(e,["href","className","innerContent","target","title","rel","onClick","variant","sx","children","gaTag"]);return Boolean(o)||i.a.Children.count(f)>0?mc.jsx(du,uc({ref:t,className:n,href:r,rel:l,sx:d,target:a,title:s,variant:u},h,{},p,{},o?{dangerouslySetInnerHTML:{__html:o}}:void 0,{onClick:c,children:o?null:f})):null}));fu.displayName="AnchorLink";const hu=n.forwardRef(((e,t)=>{let{children:r}=e,n=fc(e,["children"]);return mc.jsx(vc,uc({ref:t,as:"ul"},n,{children:r}))}));hu.displayName="ListWrapper";const pu=n.forwardRef(((e,t)=>{let{value:r,label:i,defaultValue:o="...",disabled:a=!1,onChange:s,options:l,buttonIcon:c,selectedIcon:u,variant:d="$white",multiple:f,sx:h}=e,p=fc(e,["value","label","defaultValue","disabled","onChange","options","buttonIcon","selectedIcon","variant","multiple","sx"]);const b=n.useId();return mc.jsx(vc,uc({sx:uc({width:"$full"},h)},p,{children:mc.jsxs(Rs,{disabled:a,multiple:f,value:r,onChange:s,children:[i&&mc.jsx(Rs.Label,{as:tu,htmlFor:b,sx:{fontSize:"$1",mb:"$1",display:"block"},children:i}),mc.jsxs(vc,{sx:{position:"relative"},children:[mc.jsx(Rs.Button,{ref:t,as:Mc,iconRight:c,id:b,justifyContent:"space-between",size:"rg",sx:{fontFamily:"$secondary",letterSpacing:"$n
2ormal",position:"relative",width:"$full",height:"$10",justifyContent:"space-between",cursor:"default"},variant:d,children:"object"==typeof r?(null==r?void 0:r.length)>1?"Multiple selected":r[0]||o:r||o}),mc.jsx(Rs.Options,{as:hu,sx:{listStyle:"none",position:"absolute",zIndex:"100",top:"42px",left:"0",maxHeight:"15rem",overflow:"scroll",width:"$full",py:"$1",px:"$0",m:"$0",fontSize:"$0",lineHeight:"$tight",borderRadius:"$lg",bg:"$blueGray.50",color:"$white",boxShadow:"$xs","&:focus":{outline:"2px solid #0000",outlineOffset:"2px"}},children:l?l.map((e=>mc.jsx(Rs.Option,{as:n.Fragment,disabled:0===(null==e?void 0:e.status),value:e.name,children:({active:t,selected:r})=>mc.jsxs(vc,{as:"li",sx:uc({pl:r?"$2":"$5",pr:"$3",py:"$2",display:"flex",alignItems:"center","& svg":{color:"$blue.500"}},1===e.status?{bg:"$white",color:"$blueGray.700"}:{bg:"$blueGray.50",color:"$blueGray.400",cursor:"not-allowed"},{},t?{bg:"$blue.500",color:"$white","& svg":{color:"$white"}}:null),children:[r&&mc.jsx(xc,{icon:u,sx:{mr:"$2"},fixedWidth:!0}),mc.jsx(kc,{as:"span",sx:{cursor:"default"},children:e.name})]})},e.id))):null})]})]})}))}));pu.displayName="Listbox";const bu=({open:e,onClose:t,initialFocus:r,hideOverlay:i=!1,children:o,sx:a})=>(n.useEffect((()=>{document.documentElement.style.scrollBehavior=e?"auto":"smooth"}),[e]),mc.jsxs(ua,{as:vc,initialFocus:r,open:e,sx:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0"},onClose:t,children:[!i&&mc.jsx(ua.Overlay,{as:vc,className:"overlay",sx:{position:"fixed",inset:"0",zIndex:9998,backgroundColor:"$black.900",opacity:"0.75",backdropFilter:"saturate(180%) blur(2px)"},onClick:t}),mc.jsx(vc,{bg:"$blueGray.50",borderRadius:"$lg",p:"$4",sx:uc({position:"fixed",top:"50%",left:"50%",zIndex:9999,maxWidth:"95vw",maxHeight:"95vh",overflowY:"scroll",transform:"translate(-50%, -50%)"},a),textColor:"$blueGray.900",children:o})]})),mu=n.forwardRef(((e,t)=>{var r;let{container:i,lockScroll:o}=e,a=fc(e,["container","lockScroll"]);const[s,l]=n.useState(!1);n.useEffect((()=>{if(l(!0),o&&"undefined"!=typeof document){const e=window.innerWidth-document.documentElement.clientWidth,{body:t}=document,{scrollY:r}=window;return t.style.position="fixed",t.style.inset=`-${r}px 0 0 0`,t.style.overflow="hidden",t.style.paddingRight=`${e}px`,t.style.overscrollBehavior="none",()=>{t.style.position="",t.style.inset="",t.style.overflow="",t.style.paddingRight="",t.style.overscrollBehavior="",window.scrollTo({top:r,behavior:"instant"})}}return()=>l(!1)}),[o]);const c=i||s&&(null===(r=globalThis.document)||void 0===r?void 0:r.body);return c?Object(eo.createPortal)(mc.jsx(vc,uc({},a,{ref:t})),c):null}));function gu(e,t=[]){let r=[];const i=()=>{const t=r.map((e=>n.createContext(e)));return function(r){const i=(null==r?void 0:r[e])||t;return n.useMemo((()=>({[`__scope${e}`]:uc({},r,{[e]:i})})),[r,i])}};return i.scopeName=e,[function(t,i){const o=n.createContext(i),a=r.length;r=[...r,i];const s=t=>{var r;const{scope:i,children:s}=t,l=fc(t,["scope","children"]),c=(null==i||null===(r=i[e])||void 0===r?void 0:r[a])||o,u=n.useMemo((()=>l),Object.values(l));return mc.jsx(c.Provider,{value:u,children:s})};return s.displayName=t+"Provider",[s,function(r,s){var l;const c=(null==s||null===(l=s[e])||void 0===l?void 0:l[a])||o,u=n.useContext(c);if(u)return u;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},vu(i,...t)]}function vu(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=r.reduce(((t,{useScope:r,scopeName:n})=>uc({},t,{},r(e)[`__scope${n}`])),{});return n.useMemo((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return r.scopeName=t.scopeName,r}function yu(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function wu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ou(...e){return t=>{let r=!1;const n=e.map((e=>{const n=wu(e,t);return r||"function"!=typeof n||(r=!0),n}));if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():wu(e[t],null)}}}}function ju(...e){return n.useCallback(Ou(...e),e)}function xu(e){const t=_u(e),r=n.forwardRef(((e,r)=>{const{children:i}=e,o=fc(e,["children"]),a=n.Children.toArray(i),s=a.find(Eu);if(s){const e=s.props.children,i=a.map((t=>t===s?n.Children.count(e)>
21?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t));return mc.jsx(t,uc({},o,{ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null}))}return mc.jsx(t,uc({},o,{ref:r,children:i}))}));return r.displayName=`${e}.Slot`,r}function _u(e){const t=n.forwardRef(((e,t)=>{const{children:r}=e,i=fc(e,["children"]);if(n.isValidElement(r)){const e=function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;if(i)return e.ref;if(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r=uc({},t);for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]=uc({},i,{},o):"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return uc({},e,{},r)}(i,r.props);return r.type!==n.Fragment&&(o.ref=t?Ou(t,e):e),n.cloneElement(r,o)}return n.Children.count(r)>1?n.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}mu.displayName="Portal";var Su=Symbol("radix.slottable");function Eu(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Su}var ku=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const r=xu(`Primitive.${t}`),i=n.forwardRef(((e,n)=>{const{asChild:i}=e,o=fc(e,["asChild"]),a=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),mc.jsx(a,uc({},o,{ref:n}))}));return i.displayName=`Primitive.${t}`,uc({},e,{[t]:i})}),{});function Cu(e,t){e&&eo.flushSync((()=>e.dispatchEvent(t)))}var Pu=(null===globalThis||void 0===globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{},Mu=n[" useInsertionEffect ".trim().toString()]||Pu;function $u({prop:e,defaultProp:t,onChange:r=(()=>{}),caller:i}){const[o,a,s]=function({defaultProp:e,onChange:t}){const[r,i]=n.useState(e),o=n.useRef(r),a=n.useRef(t);return Mu((()=>{a.current=t}),[t]),n.useEffect((()=>{var e;o.current!==r&&(null===(e=a.current)||void 0===e||e.call(a,r),o.current=r)}),[r,o]),[r,i,a]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:o;{const t=n.useRef(void 0!==e);n.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,i])}const u=n.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;var r;if(n!==e)null===(r=s.current)||void 0===r||r.call(s,n)}else a(t)}),[l,e,a,s]);return[c,u]}var Tu=n.createContext(void 0);function Iu(e){const t=n.useContext(Tu);return e||t||"ltr"}var Au=e=>{const{present:t,children:r}=e,i=function(e){const[t,r]=n.useState(),i=n.useRef(null),o=n.useRef(e),a=n.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return n.useReducer(((e,r)=>{const n=t[e][r];return null!=n?n:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect((()=>{const e=Ru(i.current);a.current="mounted"===l?e:"none"}),[l]),Pu((()=>{const t=i.current,r=o.current;if(r!==e){const n=a.current,i=Ru(t);if(e)c("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),Pu((()=>{if(t){var e;let r;const n=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,s=e=>{const a=Ru(i.current).includes(CSS.escape(e.animationName));if(e.target===t&&a&&(c("ANIMATION_END"),!o.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",r=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)}))}},l=e=>{e.target===t&&(a.current=Ru(i.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(r),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:n.useCallback((e=>{i.current=e?getComputedStyle(e):null,r(e)}),[])}}(t),o="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),a=ju(i.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;if(i)return e.ref;if(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||i.isPresent?n.cloneElement(o,{ref:a}):null};function Ru(e){return(null==e?void 0:e.animationName)||"none"}Au.displayName="Presence";var Du=n[" useId ".trim().toString()]||(()=>{}),Lu=0;function Nu(e){const[t,r]=n.useState(Du());return Pu((()=>{e||r((e=>null!=e?e:String(Lu++)))}),[e]),e||(t?`radix-${t}`:"")}function Bu(e){const t=e+"CollectionProvider",[r,n]=gu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:r}=e,n=i.a.useRef(null),a=i.a.useRef(new Map).current;return mc.jsx(o,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;const l=e+"CollectionSlot",c=xu(l),u=i.a.forwardRef(((e,t)=>{const{scope:r,children:n}=e,i=ju(t,a(l,r).collectionRef);return mc.jsx(c,{ref:i,children:n})}));u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=xu(d),p=i.a.forwardRef(((e,t)=>{const{scope:r,children:n}=e,o=fc(e,["scope","children"]),s=i.a.useRef(null),l=ju(t,s),c=a(d,r);return i.a.useEffect((()=>(c.itemMap.set(s,uc({ref:s},o)),()=>{c.itemMap.delete(s)}))),mc.jsx(h,uc({},{[f]:""},{ref:l,children:n}))}));return p.displayName=d,[{Provider:s,Slot:u,ItemSlot:p},function(t){const r=a(e+"CollectionConsumer",t),n=i.a.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return n}),[r.collectionRef,r.itemMap]);return n},n]}function zu(e){const t=n.useRef(e);return n.useEffect((()=>{t.current=e})),n.useMemo((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}var Fu,Uu="dismissableLayer.update",Hu="dismissableLayer.pointerDownOutside",Vu="dismissableLayer.focusOutside",Gu=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wu=n.forwardRef(((e,t)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c}
2=e,u=fc(e,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),d=n.useContext(Gu),[f,h]=n.useState(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=n.useState({}),m=ju(t,(e=>h(e))),g=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),w=f?g.indexOf(f):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,j=w>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=zu(e),i=n.useRef(!1),o=n.useRef((()=>{}));return n.useEffect((()=>{const e=e=>{if(e.target&&!i.current){let n=function(){Ku(Hu,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);i.current=!1},n=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,r]),{onPointerDownCapture:()=>i.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));j&&!r&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())}),p),_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=zu(e),i=n.useRef(!1);return n.useEffect((()=>{const e=e=>{if(e.target&&!i.current){Ku(Vu,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=zu(e);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}((e=>{w===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),n.useEffect((()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Fu=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qu(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Fu)}}),[f,p,i,d]),n.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qu())}),[f,d]),n.useEffect((()=>{const e=()=>b({});return document.addEventListener(Uu,e),()=>document.removeEventListener(Uu,e)}),[]),mc.jsx(ku.div,uc({},u,{ref:m,style:uc({pointerEvents:O?j?"auto":"none":void 0},e.style),onFocusCapture:yu(e.onFocusCapture,_.onFocusCapture),onBlurCapture:yu(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:yu(e.onPointerDownCapture,x.onPointerDownCapture)}))}));Wu.displayName="DismissableLayer";function qu(){const e=new CustomEvent(Uu);document.dispatchEvent(e)}function Ku(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Cu(i,o):i.dispatchEvent(o)}function Yu(e){const t=n.useRef({value:e,previous:e});return n.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}n.forwardRef(((e,t)=>{const r=n.useContext(Gu),i=n.useRef(null),o=ju(t,i);return n.useEffect((()=>{const e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),mc.jsx(ku.div,uc({},e,{ref:o}))})).displayName="DismissableLayerBranch";var Xu=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ju=n.forwardRef(((e,t)=>mc.jsx(ku.span,uc({},e,{ref:t,style:uc({},Xu,{},e.style)}))));Ju.displayName="VisuallyHidden";var Zu=Ju,Qu="NavigationMenu",[ed,td,rd]=Bu(Qu),[nd,id,od]=Bu(Qu),[ad,sd]=gu(Qu,[rd,od]),[ld,cd]=ad(Qu),[ud,dd]=ad(Qu),fd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:u}=e,d=fc(e,["__scopeNavigationMenu","value","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir"]),[f,h]=n.useState(null),p=ju(t,(e=>h(e))),b=Iu(u),m=n.useRef(0),g=n.useRef(0),v=n.useRef(0),[y,w]=n.useState(!0),[O,j]=$u({prop:i,onChange:e=>{const t=l>0;""!==e?(window.clearTimeout(v.current),t&&w(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout((()=>w(!0)),l)),null==o||o(e)},defaultProp:null!=a?a:"",caller:Qu}),x=n.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>j("")),150)}),[j]),_=n.useCallback((e=>{window.clearTimeout(g.current),j(e)}),[j]),S=n.useCallback((e=>{O===e?window.clearTimeout(g.current):m.current=window.setTimeout((()=>{window.clearTimeout(g.current),j(e)}),s)}),[O,j,s]);return n.useEffect((()=>()=>{window.clearTimeout(m.current),window.clearTimeout(g.current),window.clearTimeout(v.current)}),[]),mc.jsx(bd,{scope:r,isRootMenu:!0,value:O,dir:b,orientation:c,rootNavigationMenu:f,onTriggerEnter:e=>{window.clearTimeout(m.current),y?S(e):_(e)},onTriggerLeave:()=>{window.clearTimeout(m.current),x()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:x,onItemSelect:e=>{j((t=>t===e?"":e))},onItemDismiss:()=>j(""),children:mc.jsx(ku.nav,uc({"aria-label":"Main","data-orientation":c,dir:b},d,{ref:p}))})}));fd.displayName=Qu;var hd="NavigationMenuSub",pd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal"}=e,s=fc(e,["__scopeNavigationMenu","value","onValueChange","defaultValue","orientation"]),l=cd(hd,r),[c,u]=$u({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:hd});return mc.jsx(bd,{scope:r,isRootMenu:!1,value:c,dir:l.dir,orientation:a,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>u(e),onItemSelect:e=>u(e),onItemDismiss:()=>u(""),children:mc.jsx(ku.div,uc({"data-orientation":a},s,{ref:t}))})}));pd.displayName=hd;var bd=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:a,children:s,value:l,onItemSelect:c,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:h,onContentLeave:p}=e,[b,m]=n.useState(null),[g,v]=n.useState(new Map),[y,w]=n.useState(null);return mc.jsx(ld,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:l,previousValue:Yu(l),baseId:Nu(),dir:o,orientation:a,viewport:b,onViewportChange:m,indicatorTrack:y,onIndicatorTrackChange:w,onTriggerEnter:zu(d),onTriggerLeave:zu(f),onContentEnter:zu(h),onContentLeave:zu(p),onItemSelect:zu(c),onItemDismiss:zu(u),onViewportContentChange:n.useCallback(((e,t)=>{v((r=>(r.set(e,t),new Map(r))))}),[]),onViewportContentRemove:n.useCallback((e=>{v((t=>t.has(e)?(t.delete(e),new Map(t)):t))}),[]),children:mc.jsx(ed.Provider,{scope:t,children:mc.jsx(ud,{scope:t,items:g,children:s})})})},md="NavigationMenuList",gd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r}=e,n=fc(e,["__scopeNavigationMenu"]),i=cd(md,r),o=mc.jsx(ku.ul,u
2c({"data-orientation":i.orientation},n,{ref:t}));return mc.jsx(ku.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:mc.jsx(ed.Slot,{scope:r,children:i.isRootMenu?mc.jsx(Ld,{asChild:!0,children:o}):o})})}));gd.displayName=md;var vd="NavigationMenuItem",[yd,wd]=ad(vd),Od=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,value:i}=e,o=fc(e,["__scopeNavigationMenu","value"]),a=Nu(),s=i||a||"LEGACY_REACT_AUTO_VALUE",l=n.useRef(null),c=n.useRef(null),u=n.useRef(null),d=n.useRef((()=>{})),f=n.useRef(!1),h=n.useCallback(((e="start")=>{if(l.current){d.current();const t=zd(l.current);t.length&&Fd("start"===e?t:t.reverse())}}),[]),p=n.useCallback((()=>{if(l.current){const e=zd(l.current);e.length&&(d.current=function(e){return e.forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})),()=>{e.forEach((e=>{const t=e.dataset.tabindex;e.setAttribute("tabindex",t)}))}}(e))}}),[]);return mc.jsx(yd,{scope:r,value:s,triggerRef:c,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:mc.jsx(ku.li,uc({},o,{ref:t}))})}));Od.displayName=vd;var jd="NavigationMenuTrigger",xd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,disabled:i}=e,o=fc(e,["__scopeNavigationMenu","disabled"]),a=cd(jd,e.__scopeNavigationMenu),s=wd(jd,e.__scopeNavigationMenu),l=n.useRef(null),c=ju(l,s.triggerRef,t),u=Vd(a.baseId,s.value),d=Gd(a.baseId,s.value),f=n.useRef(!1),h=n.useRef(!1),p=s.value===a.value;return mc.jsxs(mc.Fragment,{children:[mc.jsx(ed.ItemSlot,{scope:r,value:s.value,children:mc.jsx(Bd,{asChild:!0,children:mc.jsx(ku.button,uc({id:u,disabled:i,"data-disabled":i?"":void 0,"data-state":Hd(p),"aria-expanded":p,"aria-controls":d},o,{ref:c,onPointerEnter:yu(e.onPointerEnter,(()=>{h.current=!1,s.wasEscapeCloseRef.current=!1})),onPointerMove:yu(e.onPointerMove,Wd((()=>{i||h.current||s.wasEscapeCloseRef.current||f.current||(a.onTriggerEnter(s.value),f.current=!0)}))),onPointerLeave:yu(e.onPointerLeave,Wd((()=>{i||(a.onTriggerLeave(),f.current=!1)}))),onClick:yu(e.onClick,(()=>{a.onItemSelect(s.value),h.current=p})),onKeyDown:yu(e.onKeyDown,(e=>{const t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];p&&e.key===t&&(s.onEntryKeyDown(),e.preventDefault())}))}))})}),p&&mc.jsxs(mc.Fragment,{children:[mc.jsx(Zu,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:e=>{const t=s.contentRef.current,r=e.relatedTarget,n=r===l.current,i=null==t?void 0:t.contains(r);!n&&i||s.onFocusProxyEnter(n?"start":"end")}}),a.viewport&&mc.jsx("span",{"aria-owns":d})]})]})}));xd.displayName=jd;var _d="navigationMenu.linkSelect",Sd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:i}=e,o=fc(e,["__scopeNavigationMenu","active","onSelect"]);return mc.jsx(Bd,{asChild:!0,children:mc.jsx(ku.a,uc({"data-active":n?"":void 0,"aria-current":n?"page":void 0},o,{ref:t,onClick:yu(e.onClick,(e=>{const t=e.target,r=new CustomEvent(_d,{bubbles:!0,cancelable:!0});if(t.addEventListener(_d,(e=>null==i?void 0:i(e)),{once:!0}),Cu(t,r),!r.defaultPrevented&&!e.metaKey){Cu(t,new CustomEvent(Td,{bubbles:!0,cancelable:!0}))}}),{checkForDefaultPrevented:!1})}))})}));Sd.displayName="NavigationMenuLink";var Ed="NavigationMenuIndicator",kd=n.forwardRef(((e,t)=>{const{forceMount:r}=e,n=fc(e,["forceMount"]),i=cd(Ed,e.__scopeNavigationMenu),o=Boolean(i.value);return i.indicatorTrack?to.a.createPortal(mc.jsx(Au,{present:r||o,children:mc.jsx(Cd,uc({},n,{ref:t}))}),i.indicatorTrack):null}));kd.displayName=Ed;var Cd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r}=e,i=fc(e,["__scopeNavigationMenu"]),o=cd(Ed,r),a=td(r),[s,l]=n.useState(null),[c,u]=n.useState(null),d="horizontal"===o.orientation,f=Boolean(o.value);n.useEffect((()=>{var e;const t=null===(e=a().find((e=>e.value===o.value)))||void 0===e?void 0:e.ref.current;t&&l(t)}),[a,o.value]);const h=()=>{s&&u({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})};return Ud(s,h),Ud(o.indicatorTrack,h),c?mc.jsx(ku.div,uc({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},i,{ref:t,style:uc({position:"absolute"},d?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},{},i.style)})):null})),Pd="NavigationMenuContent",Md=n.forwardRef(((e,t)=>{const{forceMount:r}=e,n=fc(e,["forceMount"]),i=cd(Pd,e.__scopeNavigationMenu),o=wd(Pd,e.__scopeNavigationMenu),a=ju(o.contentRef,t),s=o.value===i.value,l=uc({value:o.value,triggerRef:o.triggerRef,focu
2sProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose},n);return i.viewport?mc.jsx($d,uc({forceMount:r},l,{ref:a})):mc.jsx(Au,{present:r||s,children:mc.jsx(Id,uc({"data-state":Hd(s)},l,{ref:a,onPointerEnter:yu(e.onPointerEnter,i.onContentEnter),onPointerLeave:yu(e.onPointerLeave,Wd(i.onContentLeave)),style:uc({pointerEvents:!s&&i.isRootMenu?"none":void 0},l.style)}))})}));Md.displayName=Pd;var $d=n.forwardRef(((e,t)=>{const r=cd(Pd,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:i}=r;return Pu((()=>{n(e.value,uc({ref:t},e))}),[e,t,n]),Pu((()=>()=>i(e.value)),[e.value,i]),null})),Td="navigationMenu.rootContentDismiss",Id=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:l,onContentFocusOutside:c}=e,u=fc(e,["__scopeNavigationMenu","value","triggerRef","focusProxyRef","wasEscapeCloseRef","onRootContentClose","onContentFocusOutside"]),d=cd(Pd,r),f=n.useRef(null),h=ju(f,t),p=Vd(d.baseId,i),b=Gd(d.baseId,i),m=td(r),g=n.useRef(null),{onItemDismiss:v}=d;n.useEffect((()=>{const e=f.current;if(d.isRootMenu&&e){const t=()=>{var t;v(),l(),e.contains(document.activeElement)&&(null===(t=o.current)||void 0===t||t.focus())};return e.addEventListener(Td,t),()=>e.removeEventListener(Td,t)}}),[d.isRootMenu,e.value,o,v,l]);const y=n.useMemo((()=>{const e=m().map((e=>e.value));"rtl"===d.dir&&e.reverse();const t=e.indexOf(d.value),r=e.indexOf(d.previousValue),n=i===d.value,o=r===e.indexOf(i);if(!n&&!o)return g.current;const a=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return g.current=a,a}),[d.previousValue,d.value,d.dir,m,i]);return mc.jsx(Ld,{asChild:!0,children:mc.jsx(Wu,uc({id:b,"aria-labelledby":p,"data-motion":y,"data-orientation":d.orientation},u,{ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;const t=new Event(Td,{bubbles:!0,cancelable:!0});null===(e=f.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:yu(e.onFocusOutside,(e=>{var t;c();const r=e.target;(null===(t=d.rootNavigationMenu)||void 0===t?void 0:t.contains(r))&&e.preventDefault()})),onPointerDownOutside:yu(e.onPointerDownOutside,(e=>{var t;const r=e.target,n=m().some((e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)})),i=d.isRootMenu&&(null===(t=d.viewport)||void 0===t?void 0:t.contains(r));(n||i||!d.isRootMenu)&&e.preventDefault()})),onKeyDown:yu(e.onKeyDown,(e=>{const t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){const t=zd(e.currentTarget),n=document.activeElement,i=t.findIndex((e=>e===n));var r;if(Fd(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else null===(r=a.current)||void 0===r||r.focus()}})),onEscapeKeyDown:yu(e.onEscapeKeyDown,(e=>{s.current=!0}))}))})})),Ad="NavigationMenuViewport",Rd=n.forwardRef(((e,t)=>{const{forceMount:r}=e,n=fc(e,["forceMount"]),i=cd(Ad,e.__scopeNavigationMenu),o=Boolean(i.value);return mc.jsx(Au,{present:r||o,children:mc.jsx(Dd,uc({},n,{ref:t}))})}));Rd.displayName=Ad;var Dd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r,children:i}=e,o=fc(e,["__scopeNavigationMenu","children"]),a=cd(Ad,r),s=ju(t,a.onViewportChange),l=dd(Pd,e.__scopeNavigationMenu),[c,u]=n.useState(null),[d,f]=n.useState(null),h=c?(null==c?void 0:c.width)+"px":void 0,p=c?(null==c?void 0:c.height)+"px":void 0,b=Boolean(a.value),m=b?a.value:a.previousValue;return Ud(d,(()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})})),mc.jsx(ku.div,uc({"data-state":Hd(b),"data-orientation":a.orientation},o,{ref:s,style:uc({pointerEvents:!b&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p},o.style),onPointerEnter:yu(e.onPointerEnter,a.onContentEnter),onPointerLeave:yu(e.onPointerLeave,Wd(a.onContentLeave)),children:Array.from(l.items).map((([e,t])=>{let{ref:r,forceMount:n}=t,i=fc(t,["ref","forceMount"]);const o=m===e;return mc.jsx(Au,{present:n||o,children:mc.jsx(Id,uc({},i,{ref:Ou(r,(e=>{o&&e&&f(e)}))}))},e)}))}))})),Ld=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r}=e,n=fc(e,["__scopeNavigationMenu"]),i=cd("FocusGroup",r);return mc.jsx(nd.Provider,{scope:r,children:mc.jsx(nd.Slot,{scope:r,children:mc.jsx(ku.div,uc({dir:i.dir},n,{ref:t}))})})})),Nd=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Bd=n.forwardRef(((e,t)=>{const{__scopeNavigationMenu:r}=e,n=fc(e,["__scopeNavigationMenu"]),i=id(r),o=cd("FocusGroupItem",r);return mc.jsx(nd.ItemSlot,{scope:r,children:mc.jsx(ku.button,uc({},n,{ref:t,onKeyDown:yu(e.onKeyDown,(e=>
2{if(["Home","End",...Nd].includes(e.key)){let t=i().map((e=>e.ref.current));if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),Nd.includes(e.key)){const r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout((()=>Fd(t))),e.preventDefault()}}))}))})}));function zd(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Fd(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}function Ud(e,t){const r=zu(t);Pu((()=>{let t=0;if(e){const n=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)}));return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}}),[e,r])}function Hd(e){return e?"open":"closed"}function Vd(e,t){return`${e}-trigger-${t}`}function Gd(e,t){return`${e}-content-${t}`}function Wd(e){return t=>"mouse"===t.pointerType?e(t):void 0}var qd=fd,Kd=pd,Yd=gd,Xd=Od,Jd=xd,Zd=Sd,Qd=kd,ef=Md,tf=Rd;Object(n.forwardRef)(((e,t)=>{let{as:r="nav",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(qd,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},{display:"block",width:"$full"},{},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuRoot";Object(n.forwardRef)(((e,t)=>{let{as:r="ul",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(Yd,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},{m:0,p:0,listStyle:"none",display:"flex",gap:"$2",alignItems:"center"},{},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuList";Object(n.forwardRef)(((e,t)=>{let{as:r="li",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(Xd,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},{position:"relative"},{},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuItem";Object(n.forwardRef)(((e,t)=>{let{as:r="div",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(Kd,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuSub";Object(n.forwardRef)(((e,t)=>{let{as:r="div",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(tf,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},{bg:"$white",borderRadius:"$md",boxShadow:"$md",overflow:"hidden"},{},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuViewport";Object(n.forwardRef)(((e,t)=>{let{children:r,buttonProps:n,disabled:i,sx:o}=e,a=fc(e,["children","buttonProps","disabled","sx"]);return mc.jsx(Jd,uc({},a,{disabled:i,asChild:!0,children:mc.jsx(Mc,uc({ref:t,disabled:i,type:"button"},n||{},{sx:uc({},{display:"flex",alignItems:"center",margin:"$1"},{},(null==n?void 0:n.sx)||{},{},o||{}),children:r}))}))})).displayName="NavigationMenuTrigger";Object(n.forwardRef)(((e,t)=>{let{as:r="div",boxProps:n,sx:i,children:o}=e,a=fc(e,["as","boxProps","sx","children"]);const s=n||{},{sx:l}=s,c=fc(s,["sx"]);return mc.jsx(ef,uc({asChild:!0},a,{children:mc.jsx(vc,uc({ref:t,as:r,sx:uc({},{bg:"$white",margin:"$1",borderRadius:"$md",boxShadow:"$sm",p:"$3"},{},l||{},{},i||{})},c,{children:o}))}))})).displayName="NavigationMenuContent";Object(n.forwardRef)(((e,t)=>{let{sx:r}=e,n=fc(e,["sx"]);return mc.jsx(Qd,uc({asChild:!0},n,{children:mc.jsx(vc,{ref:t,sx:uc({},{height:"2px",borderRadius:"$full"},{},r||{})})}))})).displayName="NavigationMenuIndicator";Object(n.forwardRef)(((e,t)=>{let{children:r,href:n,onSelect:i,active:o}=e,a=fc(e,["children","href","onSelect","active"]);return mc.jsx(Zd,{active:o,asChild:!0,onSelect:i,children:mc.jsx(fu,uc({ref:t,href:n},a,{children:r}))})})).displayName="NavigationMenuLink";const rf=e=>{let{children:t,label:r,sx:n}=e,i=fc(e,["children","label","sx"]);return mc.jsx(ol,uc({},i,{children:mc.jsxs(Dc,{gap:"$3",sx:n,children:[r&&mc.jsxs(mc.Fragment,{children:[mc.jsx(ol.Label,{as:kc,fontFamily:"$primary",fontWeight:"$semibold",textAlign:"center",textColor:"$blueGray.700",variant:"$rg",children:r}),mc.jsx(Vc,{variant:"$gray300"})]}),t]})}
2))},nf=({value:e,icon:t,sx:r})=>mc.jsx(ol.Option,{as:n.Fragment,value:e,children:({active:n,checked:i})=>mc.jsxs(Dc,{direction:"row",gap:"$3",justifyContent:"space-between",sx:uc({display:"flex",alignItems:"center",borderRadius:"$rg",py:"$2",px:"$3",cursor:"pointer","&:hover":{backgroundColor:"$blueGray.50",outline:"1px solid",outlineOffset:"2px",outlineColor:"$blueGray.300"},"&:focus":{outline:"2px solid",outlineOffset:"2px",outlineColor:"$blue.500"}},n?{backgroundColor:"$blueGray.100"}:void 0,{},i?{outline:"2px solid",outlineOffset:"2px",outlineColor:"$blue.500","&:hover":{outline:"2px solid",outlineOffset:"2px",outlineColor:"$blue.500"}}:void 0,{},r),children:[mc.jsxs(Dc,{gap:"$1",children:[mc.jsx(kc,{fontFamily:"$primary",fontWeight:"$medium",textColor:"$blueGray.600",variant:"$base",children:e.title}),mc.jsx(kc,{textColor:"$blueGray.500",variant:"$sm",children:e.description})]}),mc.jsx(vc,{sx:{width:"1.25rem",height:"1.25rem",borderRadius:"$full",border:"1px solid",borderColor:i?"$blue.700":"$blue.500",backgroundColor:i?"$blue.500":"none",display:"flex",alignItems:"center",justifyContent:"center"},children:mc.jsx(xc,{icon:t,sx:{color:"$white",fontSize:"$1",display:i?"initial":"none"}})})]})},e.id);var of="ScrollArea",[af,sf]=gu(of),[lf,cf]=af(of),uf=n.forwardRef(((e,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:a=600}=e,s=fc(e,["__scopeScrollArea","type","dir","scrollHideDelay"]),[l,c]=n.useState(null),[u,d]=n.useState(null),[f,h]=n.useState(null),[p,b]=n.useState(null),[m,g]=n.useState(null),[v,y]=n.useState(0),[w,O]=n.useState(0),[j,x]=n.useState(!1),[_,S]=n.useState(!1),E=ju(t,(e=>c(e))),k=Iu(o);return mc.jsx(lf,{scope:r,type:i,dir:k,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:d,content:f,onContentChange:h,scrollbarX:p,onScrollbarXChange:b,scrollbarXEnabled:j,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:_,onScrollbarYEnabledChange:S,onCornerWidthChange:y,onCornerHeightChange:O,children:mc.jsx(ku.div,uc({dir:k},s,{ref:E,style:uc({position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px"},e.style)}))})}));uf.displayName=of;var df="ScrollAreaViewport",ff=n.forwardRef(((e,t)=>{const{__scopeScrollArea:r,children:i,nonce:o}=e,a=fc(e,["__scopeScrollArea","children","nonce"]),s=cf(df,r),l=ju(t,n.useRef(null),s.onViewportChange);return mc.jsxs(mc.Fragment,{children:[mc.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),mc.jsx(ku.div,uc({"data-radix-scroll-area-viewport":""},a,{ref:l,style:uc({overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden"},e.style),children:mc.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:i})}))]})}));ff.displayName=df;var hf="ScrollAreaScrollbar",pf=n.forwardRef(((e,t)=>{const{forceMount:r}=e,i=fc(e,["forceMount"]),o=cf(hf,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return n.useEffect((()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)})),[l,a,s]),"hover"===o.type?mc.jsx(bf,uc({},i,{ref:t,forceMount:r})):"scroll"===o.type?mc.jsx(mf,uc({},i,{ref:t,forceMount:r})):"auto"===o.type?mc.jsx(gf,uc({},i,{ref:t,forceMount:r})):"always"===o.type?mc.jsx(vf,uc({},i,{ref:t})):null}));pf.displayName=hf;var bf=n.forwardRef(((e,t)=>{const{forceMount:r}=e,i=fc(e,["forceMount"]),o=cf(hf,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect((()=>{const e=o.scrollArea;let t=0;if(e){const r=()=>{window.clearTimeout(t),s(!0)},n=()=>{t=window.setTimeout((()=>s(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}}),[o.scrollArea,o.scrollHideDelay]),mc.jsx(Au,{present:r||a,children:mc.jsx(gf,uc({"data-state":a?"visible":"hidden"},i,{ref:t}))})})),mf=n.forwardRef(((e,t)=>{const{forceMount:r}=e,i=fc(e,["forceMount"]),o=cf(hf,e.__scopeScrollArea),a="horizontal"===e.orientation,s=Lf((()=>c("SCROLL_END")),100),[l,c]=(u="hidden",d={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer(((e,t)=>{const r=d[e][t];return null!=r?r:e}),u));var u,d;return n.useEffect((()=>
vendor: 4,090 bytes, line 2
2{if("idle"===l){const e=window.setTimeout((()=>c("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[l,o.scrollHideDelay,c]),n.useEffect((()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t];const n=()=>{const n=e[t];r!==n&&(c("SCROLL"),s()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}}),[o.viewport,a,c,s]),mc.jsx(Au,{present:r||"hidden"!==l,children:mc.jsx(vf,uc({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:yu(e.onPointerEnter,(()=>c("POINTER_ENTER"))),onPointerLeave:yu(e.onPointerLeave,(()=>c("POINTER_LEAVE")))}))})})),gf=n.forwardRef(((e,t)=>{const r=cf(hf,e.__scopeScrollArea),{forceMount:i}=e,o=fc(e,["forceMount"]),[a,s]=n.useState(!1),l="horizontal"===e.orientation,c=Lf((()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;s(l?e:t)}}),10);return Nf(r.viewport,c),Nf(r.content,c),mc.jsx(Au,{present:i||a,children:mc.jsx(vf,uc({"data-state":a?"visible":"hidden"},o,{ref:t}))})})),vf=n.forwardRef(((e,t)=>{const{orientation:r="vertical"}=e,i=fc(e,["orientation"]),o=cf(hf,e.__scopeScrollArea),a=n.useRef(null),s=n.useRef(0),[l,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=$f(l.viewport,l.content),d=uc({},i,{sizes:l,onSizesChange:c,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e});function f(e,t){return function(e,t,r,n="ltr"){const i=Tf(r),o=i/2,a=t||o,s=i-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-s,u=r.content-r.viewport,d="ltr"===n?[0,u]:[-1*u,0];return Af([l,c],d)(e)}(e,s.current,l,t)}return"horizontal"===r?mc.jsx(yf,uc({},d,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=If(o.viewport.scrollLeft,l,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}})):"vertical"===r?mc.jsx(wf,uc({},d,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=If(o.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}})):null})),yf=n.forwardRef(((e,t)=>{const{sizes:r,onSizesChange:i}=e,o=fc(e,["sizes","onSizesChange"]),a=cf(hf,e.__scopeScrollArea),[s,l]=n.useState(),c=n.useRef(null),u=ju(t,c,a.onScrollbarXChange);return n.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),mc.jsx(xf,uc({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:uc({bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Tf(r)+"px"},e.style),onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){const n=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),Rf(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Mf(s.paddingLeft),paddingEnd:Mf(s.paddingRight)}})}}))})),wf=n.forwardRef(((e,t)=>{const{sizes:r,onSizesChange:i}=e,o=fc(e,["sizes","onSizesChange"]),a=cf(hf,e.__scopeScrollArea),[s,l]=n.useState(),c=n.useRef(null),u=ju(t,c,a.onScrollbarYChange);return n.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),mc.jsx(xf,uc({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:uc({top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Tf(r)+"px"},e.style),onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){const n=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),Rf(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&i({content:a.viewport.scrollHeight,viewport:
vendor: 4,500 bytes, line 2
2a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Mf(s.paddingTop),paddingEnd:Mf(s.paddingBottom)}})}}))})),[Of,jf]=af(hf),xf=n.forwardRef(((e,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:f}=e,h=fc(e,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),p=cf(hf,r),[b,m]=n.useState(null),g=ju(t,(e=>m(e))),v=n.useRef(null),y=n.useRef(""),w=p.viewport,O=i.content-i.viewport,j=zu(d),x=zu(c),_=Lf(f,10);function S(e){if(v.current){const t=e.clientX-v.current.left,r=e.clientY-v.current.top;u({x:t,y:r})}}return n.useEffect((()=>{const e=e=>{const t=e.target;(null==b?void 0:b.contains(t))&&j(e,O)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[w,b,O,j]),n.useEffect(x,[i,x]),Nf(b,_),Nf(p.content,_),mc.jsx(Of,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:zu(a),onThumbPointerUp:zu(s),onThumbPositionChange:x,onThumbPointerDown:zu(l),children:mc.jsx(ku.div,uc({},h,{ref:g,style:uc({position:"absolute"},h.style),onPointerDown:yu(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=b.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),S(e)}})),onPointerMove:yu(e.onPointerMove,S),onPointerUp:yu(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null}))}))})})),_f="ScrollAreaThumb",Sf=n.forwardRef(((e,t)=>{const{forceMount:r}=e,n=fc(e,["forceMount"]),i=jf(_f,e.__scopeScrollArea);return mc.jsx(Au,{present:r||i.hasThumb,children:mc.jsx(Ef,uc({ref:t},n))})})),Ef=n.forwardRef(((e,t)=>{const{__scopeScrollArea:r,style:i}=e,o=fc(e,["__scopeScrollArea","style"]),a=cf(_f,r),s=jf(_f,r),{onThumbPositionChange:l}=s,c=ju(t,(e=>s.onThumbChange(e))),u=n.useRef(void 0),d=Lf((()=>{u.current&&(u.current(),u.current=void 0)}),100);return n.useEffect((()=>{const e=a.viewport;if(e){const t=()=>{if(d(),!u.current){const t=Df(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[a.viewport,d,l]),mc.jsx(ku.div,uc({"data-state":s.hasThumb?"visible":"hidden"},o,{ref:c,style:uc({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},i),onPointerDownCapture:yu(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;s.onThumbPointerDown({x:r,y:n})})),onPointerUp:yu(e.onPointerUp,s.onThumbPointerUp)}))}));Sf.displayName=_f;var kf="ScrollAreaCorner",Cf=n.forwardRef(((e,t)=>{const r=cf(kf,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?mc.jsx(Pf,uc({},e,{ref:t})):null}));Cf.displayName=kf;var Pf=n.forwardRef(((e,t)=>{const{__scopeScrollArea:r}=e,i=fc(e,["__scopeScrollArea"]),o=cf(kf,r),[a,s]=n.useState(0),[l,c]=n.useState(0),u=Boolean(a&&l);return Nf(o.scrollbarX,(()=>{var e;const t=(null===(e=o.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;o.onCornerHeightChange(t),c(t)})),Nf(o.scrollbarY,(()=>{var e;const t=(null===(e=o.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;o.onCornerWidthChange(t),s(t)})),u?mc.jsx(ku.div,uc({},i,{ref:t,style:uc({width:a,height:l,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0},e.style)})):null}));function Mf(e){return e?parseInt(e,10):0}function $f(e,t){const r=e/t;return isNaN(r)?0:r}function Tf(e){const t=$f(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function If(e,t,r="ltr"){const n=Tf(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-n,l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,a]:[-1*a,0]);return Af([0,a],[0,s])(l)}function Af(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Rf(e,t){return e>0&&e<t}var Df=(e,t=(()=>{}))=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;
2(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function Lf(e,t){const r=zu(e),i=n.useRef(0);return n.useEffect((()=>()=>window.clearTimeout(i.current)),[]),n.useCallback((()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)}),[r,t])}function Nf(e,t){const r=zu(t);Pu((()=>{let t=0;if(e){const n=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)}));return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}}),[e,r])}var Bf=uf,zf=ff,Ff=pf,Uf=Sf,Hf=Cf;const Vf=n.forwardRef(((e,t)=>{let{as:r,children:n,orientation:i="both",type:o="scroll",height:a,width:s,sx:l}=e,c=fc(e,["as","children","orientation","type","height","width","sx"]);return mc.jsx(vc,uc({as:r,sx:uc({height:a,width:s,overflow:"hidden"},l)},c,{children:mc.jsxs(Bf,{ref:t,type:o,children:[mc.jsx(zf,{children:n}),["horizontal","both"].includes(i)?mc.jsx(Ff,{orientation:"horizontal",asChild:!0,children:mc.jsx(vc,{sx:{display:"flex",flexDirection:"column",height:8,borderRadius:8,padding:2,background:"rgba(255, 255, 255, 0.15)",transition:"background 160ms ease-out","&:hover":{background:"rgba(255, 255, 255, 0.25)"}},children:mc.jsx(Uf,{asChild:!0,children:mc.jsx(vc,{sx:{flex:1,position:"relative",borderRadius:8,background:"rgba(255, 255, 255, 0.5)",transition:"background 160ms ease-out","&:hover":{background:"rgba(255, 255, 255, 0.75)"},"&::before":{content:"''",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:[26,null,44]}}})})})}):null,["vertical","both"].includes(i)?mc.jsx(Ff,{orientation:"vertical",asChild:!0,children:mc.jsx(vc,{sx:{display:"flex",width:8,padding:2,background:"rgba(255, 255, 255, 0.15)",transition:"background 160ms ease-out","&:hover":{background:"rgba(255, 255, 255, 0.25)"}},children:mc.jsx(Uf,{asChild:!0,children:mc.jsx(vc,{sx:{flex:1,position:"relative",borderRadius:8,background:"rgba(255, 255, 255, 0.5)",transition:"background 160ms ease-out","&:hover":{background:"rgba(255, 255, 255, 0.75)"},"&::before":{content:"''",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:[26,null,44]}}})})})}):null,mc.jsx(Hf,{asChild:!0,children:mc.jsx(vc,{sx:{background:"rgba(255, 255, 255, 0.5)",position:"relative","&::after":{content:"''",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"rgba(255, 255, 255, 0.5)",width:8,height:8,borderRadius:8}}})})]})}))}));Vf.displayName="ScrollArea";const Gf=Ye()(vc).withConfig({displayName:"dist__ShiftBase",componentId:"sc-1fnzlkn-14"})(m({x:{property:"transform",scale:"space",transform:(e,t)=>e?`translateX(${We(e,t)})`:null},y:{property:"transform",scale:"space",transform:(e,t)=>e?`translateY(${We(e,t)})`:null}}));Gf.displayName="ShiftBase";const Wf=n.forwardRef(((e,t)=>{let{as:r,children:n,className:i,sx:o,x:a,y:s}=e,l=fc(e,["as","children","className","sx","x","y"]);return mc.jsx(Gf,uc({ref:t,as:r,className:i,sx:o,x:a,y:s},l,{children:n}))}));Wf.displayName="ShiftBy";const qf=Object(n.forwardRef)(((e,t)=>{let{children:r}=e,n=fc(e,["children"]);return mc.jsx($l.Group,uc({ref:t,as:vc},n,{sx:uc({},n.sx),children:r}))}));qf.displayName="TabGroup";const Kf=Object(n.forwardRef)(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx($l.List,uc({ref:t,as:vc,sx:uc({display:"flex",width:"100%",justifyContent:"space-between",gap:"$2",paddingY:"$3",paddingX:"$3",scrollPadding:"0 1rem",scrollSnapType:"x mandatory",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},borderBottom:"1px solid",borderColor:"$blueGray.200"},n)},i,{children:r}))}));Kf.displayName="TabList";const Yf=Object(n.forwardRef)(((e,t)=>{let{children:r}=e,n=fc(e,["children"]);return mc.jsx($l,uc({ref:t,as:Mc,sx:uc({display:"flex",width:"100%",scrollSnapAlign:"start","&[data-headlessui-state='selected']":{backgroundColor:"$blueGray.300"}},n.sx)},n,{children:r}))}));Yf.displayName="TabItem";const Xf=Object(n.forwardRef)(((e,t)=>{let{children:r}=e,n=fc(e,["children"]);return mc.jsx($l.Panels,uc({ref:t,as:vc,sx:{paddingY:"$3",paddingX:"$3",width:"100%"}},n,{children:r}))}));Xf.displayName="TabPanels";const Jf=Object(n.forwardRef)(((e,t)=>{let{children:r,gap:n="$3"}=e,i=fc(e,["children","gap"]);return mc.jsx($l.Panel,uc({ref:t,as:Dc,gap:n},i,{children:r}))}));Jf.displayName="TabPanel";function Zf(e){let{children:t}=e,r=fc(e,["children"]);return mc.jsx(vc,uc({as:"span"},r,{sx:uc({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},r.sx),children:t}))}n.forwardRef(((e,t)=>{let{autoPlay:r=!1,controls:n=!0,loop:i=!1,src:o,sx:a,type:s="video/mp4"}=e,l=fc(e,["autoPlay","controls","loop","src","sx","type"]);return mc.jsx(vc,{className:"videoWrapper",sx:uc({bg:"$blueGray.100","& > video":{height:"$full",width:"$full"}},a),children:mc.jsx("video",uc({ref:t,autoPlay:r,controls:n,loop:i},l,{children:mc.jsx("source",{src:o,type:s})}))})})).displayName="Video";const Qf=({theme:e,children:t})=>mc.jsx(Ke.ThemeProvider,{theme:e,children:t}),eh=e=>{let{children:t}=e,r=fc(e,["children"]);return mc.jsx(Bl.Group,uc({},r,{alignItems:"center",as:vc,display:"flex",sx:{gap:"$2"},children:t}))},th=e=>{let{children:t}=e,r=fc(e,["children"]);return mc.jsx(Bl.Label,uc({},r,{as:tu,children:t}))},rh=e=>{let{checked:t,onChange:r}=e,n=fc(e,["checked","onChange"]);return mc.jsx(Bl,uc({as:Mc,checked:t,height:"$6",sx:{padding:"$1"},variant:"$white",width:"$6",onChange:r},n,{children:({checked:e})=>mc.jsx(mc.Fragment,{children:e&&mc.jsx("svg",{fill:"none",height:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"16",xmlns:"http://www.w3.org/2000/svg",children:mc.jsx("path",{d:"M20 6L9 17l-5-5"})})})}))},nh=Object(n.forwardRef)(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(vc,uc({ref:t,as:"ul"},i,{sx:uc({backgroundColor:"$white"},n),children:r}))}));nh.displayName="List";const ih=Object(n.forwardRef)(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(vc,uc({ref:t,as:"li"},i,{sx:uc({listStyle:"none"},n),children:r}))}));ih.displayName="ListItem";const oh=Object(n.forwardRef)(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(tu,uc({ref:t},i,{sx:uc({display:"block",marginBottom:"$1"},n),children:r}))}));oh.displayName="SearchLabel";const ah=Object(n.forwardRef)(((e,t)=>{let{children:r,sx:n}=e,i=fc(e,["children","sx"]);return mc.jsx(Mc,uc({ref:t,sx:n},i,{variant:"$wrapper",children:r}))}));ah.displayName="DropdownButton";const sh=({children:e,value:t,selectedIcon:r,disabled:i=!1})=>mc.jsx(Fl.a.Option,{as:n.Fragment,disabled:i,value:t,children:({selected:t})=>mc.jsxs(ih,{sx:{position:"relative",display:"flex",alignItems:"center",fontSize:"$1",lineHeight:"1",paddingRight:"$3",paddingY:"$3",paddingLeft:"$6","&:not(:last-child)":{borderBottom:"1px solid",borderColor:"$blueGray.200"},"&:hover, &:focus, &[data-headlessui-state~=active]":{backgroundColor:"$blueGray.50"},"&[data-headlessui-state~=selected]":{backgroundColor:"$blue.400","& p":{color:"$white"}}},children:[e,t&&r&&mc.jsx(xc,{icon:r,sx:{position:"absolute",left:0,top:0,bottom:0,alignItems:"center",fontSize:"$2",paddingLeft:"0.75rem",color:"$white"}})]})});function lh({children:e,label:t,placeholder:r="Search...",selected:n,setSelected:i,onChange:o,buttonIcon:a,search:s}
2){return mc.jsxs(Fl.a,{as:vc,by:"id",value:n,nullable:!0,onChange:i,children:[t&&mc.jsx(Fl.a.Label,{as:oh,children:t}),mc.jsxs(vc,{position:"relative",children:[mc.jsx(Fl.a.Input,{as:au,displayValue:e=>(null==e?void 0:e.name)||s,placeholder:r,size:"$rg",onChange:o}),s||n?mc.jsx(Fl.a.Button,{as:ah,sx:{position:"absolute",right:"$2",top:"50%",transform:"translateY(-50%)",color:"$blueGray.400"},children:mc.jsx(xc,{icon:a})}):null,mc.jsx(Fl.a.Options,{as:nh,sx:{position:"absolute",width:"100%",border:"1px solid",borderColor:"$blueGray.200",borderRadius:"$rg",maxHeight:"300px",overflowY:"auto",padding:"0",margin:"0",marginTop:"$1",zIndex:"100",boxShadow:"$md"},children:e})]})]})}const ch=Object(n.forwardRef)(((e,t)=>{let{children:r,defaultOpen:n,width:i="$full",sx:o}=e,a=fc(e,["children","defaultOpen","width","sx"]);return mc.jsx(lc,uc({ref:t,as:vc,defaultOpen:n,sx:o,width:i},a,{children:r}))}));ch.displayName="Accordion";const uh=Object(n.forwardRef)(((e,t)=>{let{children:r,icon:n,iconMotion:i="flipY",transitionDuration:o=150,variant:a="$gray",display:s="flex",alignItems:l="center",justifyContent:c="space-between",width:u="$full",size:d="rg",sx:f}=e,h=fc(e,["children","icon","iconMotion","transitionDuration","variant","display","alignItems","justifyContent","width","size","sx"]);return mc.jsx(lc.Button,uc({ref:t,alignItems:l,as:Mc,display:s,iconRight:n,justifyContent:c,size:d,sx:uc({"&[data-headlessui-state='open'] .buttonIcon svg":{transform:"none"!==i?(p=i,{flipY:"scaleY(-1)",rotate45:"rotate(45deg)",rotate90:"rotate(90deg)",rotate180:"rotate(180deg)",none:"none"}[p||"flipY"]):"none"},"& .buttonIcon svg":{transition:"none"!==i?`transform ${o}ms ease`:"none"}},f),type:"button",variant:a,width:u},h,{children:r}));var p}));uh.displayName="AccordionButton";const dh=Object(n.forwardRef)(((e,t)=>{let{children:r,width:n="$full",padding:i="$3",backgroundColor:o="$white",transitionDuration:a=150,disableAnimation:s=!1,sx:l}=e,c=fc(e,["children","width","padding","backgroundColor","transitionDuration","disableAnimation","sx"]);return mc.jsx(lc.Panel,uc({ref:t,as:vc,backgroundColor:o,padding:i,sx:uc({overflow:"hidden",transition:s?"none":`opacity ${a}ms cubic-bezier(0.4, 0, 0.2, 1), transform ${a}ms cubic-bezier(0.4, 0, 0.2, 1)`,transformOrigin:"top","&[data-headlessui-state='closed']":{opacity:0,transform:"scaleY(0.95)"},"&[data-headlessui-state='open']":{opacity:1,transform:"scaleY(1)"}},l),width:n},c,{children:r}))}));dh.displayName="AccordionPanel"},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return o})),r.d(t,"__rest",(function(){return a})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return l})),r.d(t,"__esDecorate",(function(){return c})),r.d(t,"__runInitializers",(function(){return u})),r.d(t,"__propKey",(function(){return d})),r.d(t,"__setFunctionName",(function(){return f})),r.d(t,"__metadata",(function(){return h})),r.d(t,"__awaiter",(function(){return p})),r.d(t,"__generator",(function(){return b})),r.d(t,"__createBinding",(function(){return m})),r.d(t,"__exportStar",(function(){return g})),r.d(t,"__values",(function(){return v})),r.d(t,"__read",(function(){return y})),r.d(t,"__spread",(function(){return w})),r.d(t,"__spreadArrays",(function(){return O})),r.d(t,"__spreadArray",(function(){return j})),r.d(t,"__await",(function(){return x})),r.d(t,"__asyncGenerator",(function(){return _})),r.d(t,"__asyncDelegator",(function(){return S})),r.d(t,"__asyncValues",(function(){return E}
vendor: 9,355 bytes, line 2
2)),r.d(t,"__makeTemplateObject",(function(){return k})),r.d(t,"__importStar",(function(){return M})),r.d(t,"__importDefault",(function(){return $})),r.d(t,"__classPrivateFieldGet",(function(){return T})),r.d(t,"__classPrivateFieldSet",(function(){return I})),r.d(t,"__classPrivateFieldIn",(function(){return A})),r.d(t,"__addDisposableResource",(function(){return R})),r.d(t,"__disposeResources",(function(){return L})),r.d(t,"__rewriteRelativeImportExtension",(function(){return N}));var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,h=r.length-1;h>=0;h--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var m=(0,r[h])("accessor"===l?{get:d.get,set:d.set}:d[c],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(d.get=s),(s=a(m.set))&&(d.set=s),(s=a(m.init))&&i.unshift(s)}else(s=a(m))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function b(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function O(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function j(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function _(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=i[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},P(e)};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=P(e),n=0;n<r.length;n++)"default"!==r[n]&&m(t,e,r[n]);return C(t,e),t}function $(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function A(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");
vendor: 1,368 bytes, line 2
2i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function L(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,(function(e){return t(e),i()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function N(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e})):e}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:h,__awaiter:p,__generator:b,__createBinding:m,__exportStar:g,__values:v,__read:y,__spread:w,__spreadArrays:O,__spreadArray:j,__await:x,__asyncGenerator:_,__asyncDelegator:S,__asyncValues:E,__makeTemplateOb
vendor: 4,565 bytes, line 2
2ject:k,__importStar:M,__importDefault:$,__classPrivateFieldGet:T,__classPrivateFieldSet:I,__classPrivateFieldIn:A,__addDisposableResource:R,__disposeResources:L,__rewriteRelativeImportExtension:N}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__5__},function(e,t,r){"use strict";(function(e,n,i){var o=r(163);const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:l,toStringTag:c}=Symbol,u=(d=Object.create(null),e=>{const t=a.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const f=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,b=h("undefined");function m(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=f("ArrayBuffer");const v=h("string"),y=h("function"),w=h("number"),O=e=>null!==e&&"object"==typeof e,j=e=>{if("object"!==u(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||c in e||l in e)},x=f("Date"),_=f("File"),S=f("Blob"),E=f("FileList"),k=f("URLSearchParams"),[C,P,M,$]=["ReadableStream","Request","Response","Headers"].map(f);function T(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),p(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(m(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(n=0;n<o;n++)a=i[n],t.call(null,e[a],a,e)}}function I(e,t){if(m(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,R=e=>!b(e)&&e!==A;const D=(L="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>L&&e instanceof L);var L;const N=f("HTMLFormElement"),B=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),z=f("RegExp"),F=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};T(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)};const U=f("AsyncFunction"),H=(V="function"==typeof n,G=y(A.postMessage),V?n:G?(W=`axios@${Math.random()}`,q=[],A.addEventListener("message",(({source:e,data:t})=>{e===A&&t===W&&q.length&&q.shift()()}),!1),e=>{q.push(e),A.postMessage(W,"*")}):e=>setTimeout(e));var V,G,W,q;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(A):void 0!==i&&i.nextTick||H;t.a={isArray:p,isArrayBuffer:g,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:v,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:j,isEmptyObject:e=>{if(!O(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:C,isRequest:P,isResponse:M,isHeaders:$,isUndefined:b,isDate:x,isFile:_,isBlob:S,isRegExp:z,isFunction:y,isStream:e=>O(e)&&y(e.pipe),isURLSearchParams:k,isTypedArray:D,isFileList:E,forEach:T,merge:function e(){const{caseless:t,skipUndefined:r}=R(this)&&this||{},n={},i=(i,o)=>{const a=t&&I(n,o)||o;j(n[a])&&j(i)?n[a]=e(n[a],i):j(i)?n[a]=e({},i):p(i)?n[a]=i.slice():r&&b(i)||(n[a]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(T(t,((t,n)=>{r&&y(t)?e[n]=Object(o.a)(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==r&&s(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:f,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[l]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>
2{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:N,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];y(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return p(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:A,isContextDefined:R,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[c]&&e[l])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;const i=p(e)?[]:{};return T(e,((e,t)=>{const o=r(e,n+1);!b(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:U,isThenable:e=>e&&(O(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:H,asap:K,isIterable:e=>null!=e&&y(e[l])}}).call(this,r(60),r(256).setImmediate,r(53))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),i=r.n(n),o=r(40);let a=function(e){let t=Object(o.a)(e);return i.a.useCallback(((...e)=>t.current(...e)),[t])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return v})),r.d(t,"e",(function(){return h})),r.d(t,"f",(function(){return b}));var n=r(1),i=r(115),o=r(21);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var c,u,d=((u=d||{})[u.None=0]="None",u[u.RenderStrategy=1]="RenderStrategy",u[u.Static=2]="Static",u),f=((c=f||{})[c.Unmount=0]="Unmount",c[c.Hidden=1]="Hidden",c);function h({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:c=!0,name:u,mergeRefs:d}){d=null!=d?d:m;let f=g(t,e);if(c)return p(f,r,n,u,d);let h=null!=i?i:0;if(2&h){let{static:e=!1}=f,t=l(f,["static"]);if(e)return p(t,r,n,u,d)}if(1&h){let{unmount:e=!0}=f,t=l(f,["unmount"]);return Object(o.a)(e?0:1,{0:()=>null,1:()=>p(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{hidden:!0,style:{display:"none"}}),r,n,u,d)})}return p(f,r,n,u,d)}function p(e,t={},r,o,a){let s=w(e,["unmount","static"]),{as:c=r,children:u,refName:d="ref"}=s,f=l(s,["as","children","refName"]),h=void 0!==e.ref?{[d]:e.ref}:{},p="function"==typeof u?u(t):u;"className"in f&&f.className&&"function"==typeof f.className&&(f.className=f.className(t));let b={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(b["data-headlessui-state"]=r.join(" "))}if(c===n.Fragment&&Object.keys(y(f)).length>0){if(!Object(n.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Object(i.a)(null==e?void 0:e.className(...t),f.className):Object(i.a)(null==e?void 0:e.className,f.className),r=t?{className:t}:{};return Object(n.cloneElement)(p,Object.assign({},g(p.props,y(w(f,["ref"]))),b,h,{ref:a(p.ref,h.ref)},r))}return Object(n.createElement)(c,Object.assign({},w(f,["ref"]),c!==n.Fragment&&h,c!==n.Fragment&&b),p)}function b(){let e=Object(n.useRef)([]),t=Object(n.useCallback)((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}),[]);return(...r)=>{if(!r.every((e=>null==e)))return e.current=r,t}}function m(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function g(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let i=r[e];for(let e of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function v(e){var t;return Object.assign(Object(n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function y(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function w(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},function(e,t,r){"use strict";r.d(t,"a",(function(){return X})),r.d(t,"b",(function(){return M})),r.d(t,"c",(function(){return $})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return Y})),r.d(t,"f",(function(){return v})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return V})),r.d(t,"i",(function(){return _})),r.d(t,"j",(function(){return W})),r.d(t,"k",(function(){return N})),r.d(t,"l",(function(){return F})),r.d(t,"m",(function(){return f})),r.d(t,"n",(function(){return d})),r.d(t,"o",(function(){return h})),r.d(t,"p",(function(){return T})),r.d(t,"q",(function(){return z})),r.d(t,"r",(function(){return D})),r.d(t,"s",(function(){return ne})),r.d(t,"t",(function(){return I})),r.d(t,"u",(function(){return ee})),r.d(t,"v",(function(){return re})),r.d(t,"w",(function(){return ie}));var n=r(1),i=r.n(n);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=()=>{},c=l(),u=Object,d=e=>e===c,f=e=>"function"==typeof e,h=(e,t)=>a({},e,{},t),p=e=>f(e.then),b=new WeakMap;let m=0;const g=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(u(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=b.get(e),i)return i;if(i=++m+"~",b.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=g(e[o])+",";b.set(e,i)}if(r==u){i="#";const t=u.keys(e).sort();for(;!d(o=t.pop());)d(e[o])||(i+=o+":"+g(e[o])+",");b.set(e,i)}}return i},v=new WeakMap,y={},w={},O="undefined",j=typeof window!=O,x=typeof document!=O,_=(e,t)=>{const r=v.get(e);return[()=>!d(t)&&e.get(t)||y,n=>{if(!d(t)){const i=e.get(t);t in w||(w[t]=i),r[5](t,h(i,n),i||y)}},r[6],()=>!d(t)&&t in w?w[t]:!d(t)&&e.get(t)||y]};let S=!0;const[E,k]=j&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],C={isOnline:()=>S,isVisible:()=>{const e=x&&document.visibilityState;return d(e)||"hidden"!==e}},P={initFocus:e=>(x&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{x&&document.removeEventListener("visibilitychange",e),k("focus",e)}),initReconnect:e=>{const t=()=>{S=!0,e()},r=()=>{S=!1};return E("online",t),E("offline",r),()=>{k("online",t),k("offline",r)}}},M=!i.a.useId,$=!j||"Deno"in window,T=e=>j&&typeof window.requestAnimationFrame!=O?window.requestAnimationFrame(e):setTimeout(e,1),I=$?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,R=!$&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),D=e=>{if(f(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]};let L=0;const N=()=>++L,B=2;var z={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:B,RECONNECT_EVENT:1};async function F(...e){const[t,r,n,i]=e,o=h({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const u=o.throwOnError;
2if(f(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(b))}return b(r);async function b(r){const[i]=D(r);if(!i)return;const[h,b]=_(t,i),[m,g,y,w]=v.get(t),O=()=>{const e=m[i];return(f(o.revalidate)?o.revalidate(h().data,r):!1!==o.revalidate)&&(delete y[i],delete w[i],e&&e[0])?e[0](B).then((()=>h().data)):h().data};if(e.length<3)return O();let j,x=n;const S=N();g[i]=[S,0];const E=!d(l),k=h(),C=k.data,P=k._c,M=d(P)?C:P;if(E&&(l=f(l)?l(M,C):l,b({data:l,_c:M})),f(x))try{x=x(M)}catch(e){j=e}if(x&&p(x)){if(x=await x.catch((e=>{j=e})),S!==g[i][0]){if(j)throw j;return x}j&&E&&(e=>"function"==typeof s?s(e):!1!==s)(j)&&(a=!0,b({data:M,_c:c}))}if(a&&!j)if(f(a)){const e=a(x,M);b({data:e,error:c,_c:c})}else b({data:x,error:c,_c:c});if(g[i][1]=N(),Promise.resolve(O()).then((()=>{b({_c:c})})),!j)return x;if(u)throw j}}const U=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},H=(e,t)=>{if(!v.has(e)){const r=h(P,t),n={},i=F.bind(c,e);let o=l;const a={},s=(e,t)=>{const r=a[e]||[];return a[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},u=(t,r,n)=>{e.set(t,r);const i=a[t];if(i)for(const e of i)e(r,n)},d=()=>{if(!v.has(e)&&(v.set(e,[n,{},{},{},i,u,s]),!$)){const t=r.initFocus(setTimeout.bind(c,U.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,U.bind(c,n,1)));o=()=>{t&&t(),i&&i(),v.delete(e)}}};return d(),[e,i,d,o]}return[e,v.get(e)[4]]},[V,G]=H(new Map),W=h({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,r,n,i)=>{const o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!d(o)&&a>o||setTimeout(n,s,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>g(e)==g(t),isPaused:()=>!1,cache:V,mutate:G,fallback:{}},C),q=(e,t)=>{const r=h(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=h(i,a))}return r},K=Object(n.createContext)({}),Y=e=>{const{value:t}=e,r=Object(n.useContext)(K),i=f(t),o=Object(n.useMemo)((()=>i?t(r):t),[i,r,t]),a=Object(n.useMemo)((()=>i?o:q(r,o)),[i,r,o]),s=o&&o.provider,l=Object(n.useRef)(c);s&&!l.current&&(l.current=H(s(a.cache||V),o));const u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),I((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),Object(n.createElement)(K.Provider,h(e,{value:a}))},X="$inf$",J=j&&window.__SWR_DEVTOOLS_USE__,Z=J?window.__SWR_DEVTOOLS_USE__:[],Q=e=>f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],ee=()=>h(W,Object(n.useContext)(K)),te=Z.concat((e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=D(t),[,,,i]=v.get(V);if(n.startsWith(X))return r(...e);const o=i[n];return d(o)?r(...e):(delete i[n],o)}),n))),re=e=>function(...t){const r=ee(),[n,i,o]=Q(t),a=q(r,o);let s=e;const{use:l}=a,c=(l||[]).concat(te);for(let e=c.length;e--;)s=c[e](s);return s(n,i||a.fetcher||null,a)},ne=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},ie=(e,t)=>(...r)=>{const[n,i,o]=Q(r),s=(o.use||[]).concat(t);return e(n,i,a({},o,{use:s}))};J&&(window.__SWR_DEVTOOLS_REACT__=i.a)},function(e,t,r){"use strict";r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"e",(function(){return d})),r.d(t,"a",(function(){return f})),r.d(t,"f",(function(){return h}));var n=r(3),i=r(76);const o={keys:Object.keys(i.a.fontSizes),labels:{"$-1":"10px",$0:"12px",$1:"14px",$2:"16px",$3:"20px",$4:"24px",$5:"32px",$6:"40px",$7:"48px",$8:"64px",$9:"72px"}},a={keys:Object.keys(i.a.fontWeights),labels:{$light:"Light",$normal:"Regular",$medium:"Medium",$semibold:"Semibold",$bold:"Bold",$black:"Black"}},s=(Object.keys(i.a.lineHeights),i.a.lineHeights,{keys:Object.keys(i.a.space),labels:{"$-7":"-48px","$-6":"-40px","$-5":"-32px","$-4":"-24px","$-3":"-16px","$-2":"-8px","$-1":"-4px",$0:"0",$1:"4px",$2:"8px",$3:"16px",$4:"24px",$5:"32px",$6:"40px",$7:"48px",$8:"64px",$9:"72px",$10:"96px",$11:"128px",$12:"248px",$13:"512px",$px:"1px"}}
2),l=({name:e="Background Color",description:t="See documentation",defaultValue:r="transparent",group:i="Typography Options",ordered:o=!0})=>Object(n.oneOf)([...a.keys]).tag({name:e,description:t,labels:a.labels,defaultValue:r,group:i,ordered:o}),c=({name:e="REPLACE_ME",description:t,defaultValue:r,group:i="Typography Options",ordered:a=!0})=>Object(n.oneOf)([...o.keys]).tag({name:e,description:t,labels:o.labels,defaultValue:r,group:i,ordered:a}),u=({name:e="REPLACE_ME",description:t,defaultValue:r,group:i="Grid Options",ordered:o=!0})=>Object(n.oneOf)([1,2,3,4,5,6,7,8,9,10,11,12]).tag({name:e,description:t,labels:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},defaultValue:r,group:i,ordered:o}),d=({name:e="REPLACE_ME",description:t,defaultValue:r,group:i="Grid Options",ordered:o=!0})=>Object(n.oneOf)([...s.keys]).tag({name:e,description:t,labels:s.labels,defaultValue:r,group:i,ordered:o}),f=({name:e="REPLACE_ME",description:t,defaultValue:r,group:i="Color Options",ordered:o=!0})=>n.string.tag({name:e,description:t,defaultValue:r,group:i,ordered:o}),h={dividerHeadingGC:n.boolean.tag({name:"Use Global Content for header text",defaultValue:!1,description:"Display the topic or section name from global content",group:"Header Options"}),dividerHeadingContent:n.string.tag({name:"Header text",defaultValue:void 0,group:"Header Options"}),dividerHeadingLink:n.string.tag({name:"Header link",group:"Header Options"}),dividerMobileHeadingSize:c({name:"Mobile Header Size",description:void 0,defaultValue:"$2",group:"Header Options"}),dividerTabletHeadingSize:c({name:"Tablet Header Size",description:void 0,defaultValue:void 0,group:"Header Options"}),dividerDesktopHeadingSize:c({name:"Desktop Header Size",description:void 0,defaultValue:"$4",group:"Header Options"}),dividerHeadingWeight:l({name:"Header Weight",description:void 0,defaultValue:"$bold",group:"Header Options"}),dividerHeaderColor:f({name:"Header Color",description:"See Documentation",defaultValue:"$blueGray.900",group:"Header Options"}),dividerColor:f({name:"Divider Color",description:"See Documentation",defaultValue:"$red.500",group:"Header Options"}),bgColor:f({name:"Background Color",description:"See documentation",defaultValue:"transparent",group:"Header Options"}),horizontalAlignment:Object(n.oneOf)(["left","center","right"]).tag({name:"Horizontal Text Alignment",description:"...",defaultValue:"left",group:"Header Options"}),verticalAlignment:Object(n.oneOf)(["top","center"]).tag({name:"Vertical Text Alignment",description:"...",defaultValue:"top",group:"Header Options"}),livePillColor:f({name:"Live Pill Color",description:"This will override the default live pill border color and text color",defaultValue:"$red.600",group:"Header Options"})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n,i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},function(e,t,r){"use strict";r.d(t,"p",(function(){return m})),r.d(t,"c",(function(){return g})),r.d(t,"b",(function(){return v})),r.d(t,"d",(function(){return y})),r.d(t,"k",(function(){return w})),r.d(t,"f",(function(){return j})),r.d(t,"g",(function(){return x})),r.d(t,"i",(function(){return _})),r.d(t,"h",(function(){return S})),r.d(t,"o",(function(){return E})),r.d(t,"n",(function(){return k})),r.d(t,"m",(function(){return M})),r.d(t,"j",(function(){return $})),r.d(t,"e",(function(){return T})),r.d(t,"a",(function(){return I})),r.d(t,"l",(function(){return A}));var n=r(43),i=r.n(n),o=r(38),a=r(64),s=r(144),l=r(20),c=r(301),u=r(50),d=r(61);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b={"click2houston.com":"wdiv","ksat.com":"ksat","clickondetroit.com":"wdiv","news4jax.com":"wjxt","clickorlando.com":"wkmg","local10.com":"wplg","wsls.com":"wsls"},m={"clickorlando.com":{prod:"00000000-0000-4000-8000-e45065cfa5e2",sbox:"00000000-0000-4000-8000-09ab86770825"},"clickondetroit.com":{prod:"00000000-0000-4000-8000-57a6fb5ed05f",sbox:"00000000-0000-4000-8000-03858b2535c3"},"news4jax.com":{prod:"00000000-0000-4000-8000-052737eae856",sbox:"00000000-0000-4000-8000-09a4fb934575"},"click2houston.com":{prod:"00000000-0000-4000-8000-7b38cb75125c",sbox:"00000000-0000-4000-8000-08cb8acbf371"},"wsls.com":{prod:"00000000-0000-4000-8000-9c47d751ab86",sbox:"00000000-0000-4000-8000-03e15f379da9"},"ksat.com":{prod:"00000000-0000-4000-8000-f41528791ab0",sbox:"00000000-0000-4000-8000-05ea6087e664"},"local10.com":{prod:"00000000-0000-4000-8000-698956718ae8",sbox:"00000000-0000-4000-8000-05ea6087e664"}};function g(e,t){const r=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});document.dispatchEvent(r)}const v=()=>{if("undefined"!=typeof window){if(window.adCheckPassed)return!0;window.dataLayer=window.dataLayer||[];const e={event:"AdBlockCheck",adblock:!1};if(window.dataLayer.push(e),window.dataLayer.includes(e))return window.adCheckPassed=!0,!0}return!0},y=e=>{const t=document.cookie.split("; ").find((t=>t.startsWith(`${e}=`)));if(t){const[,e]=t.split("=");return decodeURIComponent(e)}return null},w=(e,t,r)=>{var n;const i=(null==r?void 0:r.expires)||(()=>{const e=new Date;return e.setTime(e.getTime()+31536e6),e})(),o=(null==r?void 0:r.domain)||(null===(n=window.location.hostname.match(/\.(.+)\.com/))||void 0===n?void 0:n[0]),a=(null==r?void 0:r.path)||"/",s=(null==r?void 0:r.sameSite)||("localhost"!==l.ENVIRONMENT?"None":"Lax"),c=(void 0!==(null==r?void 0:r.secure)?r.secure:"localhost"!==l.ENVIRONMENT)?";secure":"",u=s?`;SameSite=${s}`:"",d=o?`;domain=${o}`:"";document.cookie=`${e}=${t};path=${a};expires=${i.toUTCString()}${d}${u}${c}`},O=e=>{var t;const r=null===(t=window.location.hostname.match(/\.(.+)\.com/))||void 0===t?void 0:t[0],n="localhost"!==l.ENVIRONMENT?";SameSite=None;secure":"";document.cookie=`${e}=; path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT};domain=${r}${n}`};const j=async()=>{if(!v())throw new Error("adblock");return i.a.isLoggedIn()};async function x(){if("undefined"==typeof window)throw new Error("Window is undefined");return new Promise((e=>{window.vfQ=window.vfQ||[],e(!0)}))}const _=e=>{var t;null===(t=window.vf)||void 0===t||t.$publish("tray","toggle",null,e)},S=()=>{var e;null===(e=window.vf)||void 0===e||e.$publish("tray","open",null,"vf-settings")},E=async e=>{try{var t,n,o,a;Object(d.a)(),e&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_logout",arc_id:e.arcSubs.uuid,blueconic_id:y("BCSessionID"),newspassid:y("newspassid"),email:e.arcSubs.email})),null===(t=window.vf)||void 0===t||null===(n=t.session)||void 0===n||null===(o=n.logout)||void 0===o||o.call(n),await i.a.logout().catch((e=>{console.error("[Identity] Error logging out",e)})),localStorage.removeItem("gmg_uo"),localStorage.removeItem("ArcId.USER_INFO"),localStorage.removeItem("ArcP"),localStorage.removeItem("ArcId.USER_PROFILE"),O("loggedinCookie_sid"),O("gmg_as_sid"),O("VfRefresh"),"undefined"!=typeof window&&(null===(a=window.gmg)||void 0===a?void 0:a.uid2)&&(window.gmg.uid2.advertisingToken=void 0),localStorage.removeItem("gmg_uid2_identity"),O("gmg_uid2_identity"),O("__uid2_advertising_token");const{destroy:s}=await r.e(0).then(r.bind(null,220));s(),function(e){const t=[],r=Object.keys(localStorage);for(const n of r)n.match(e)&&t.push(n);t.forEach((e=>localStorage.removeItem(e)))}("ab.*"),function(e){var t;const r=document.cookie.split("; "),n=null===(t=window.location.hostname.match(/\.(.+)\.com/))||void 0===t?void 0:t[0],i="localhost"!==l.ENVIRONMENT?";SameSite=None;secure":"";for(const t of r){const[r]=t.split("=");r&&r.match(e)&&(document.cookie=`${r}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=${n}${i}`)}}("ab.*")}catch(e){console.error("[userLogoutNoPrompt] Error logging out",e)}},k=()=>{confirm("Are you sure you want to sign out?")&&E()};async function C(e){const t=["localhost","gmg-sandbox"].includes(l.ENVIRONMENT)?"sbox":"prod",n=b[e].toUpperCase(),{lastVfId:i}=window||{};let o;const a=await Object(d.b)();a&&(o={at:a,origin:window.location.hostname}),await x(),await async function(){if("undefined"==typeof window)throw new Error("Window is undefined");try{const e=await Object(d.b)();if(!e)throw new Error("No access token returned");const t={at:e,origin:window.location.hostname};window.vfQ.push((()=>{var e;null===(e=window.vf)||void 0===e||e.session.login.cookie(encodeURIComponent(btoa(JSON.stringify(t))))}))}catch(e){throw console.error("[viafouraLogin] Error logging in (try/catch)",e),e}}();let s,c=0;const u=async()=>{const a=window.location.hostname,l=await fetch(`https://api.viafoura.co/v2/${a}/users/login/cookie`,{method:"POST",body:JSON.stringify({section:"",session:"false",token:encodeURIComponent(btoa(JSON.stringify(o)))})});if(401===l.status&&s&&"error"in s){if(console.error("[viafouraLogin] Error logging in",s),"Banned"===s.error){console.error("[viafouraLogin] User is banned");const{reason:e,end_date:t,permanent:r}=s.api_code_data;return{error:{error:s.error,reason:e,end_date:1e3*t,permanent:Boolean(r)}}}if(c<3)return c+=1,u();throw new Error("Max retries exceeded")}if(s=await l.json(),"error"in s){const{reason:e,end_date:t,permanent:r}=s.api_code_data;return{error:{error:s.error,reason:e,end_date:1e3*t,permanent:Boolean(r)}}}if(w("gmg_as_sid",btoa(JSON.stringify(o))),s){const[o,a]=await Promise.all([fetch(`https://livecomments.viafoura.co/v4/livecomments/${m[e][t]}/${s.result.uuid}/profile\n        `,{method:"GET",headers:{"Content-Type":"application/json"}}),r.e(0).then(r.bind(null,220))]),l=await o.json(),{likes_received:c=0,content_created:u=0}=l,{id:d=0,uuid:f=null,name:p=null,pic_large:b=null}=s.result;if(0===d)return console.error("[viafouraLogin] User is banned"),{error:{reason:"Banned",end_date:1,permanent:!0}};if(f){const e=h({},s.result);e.comments_made=u,e.likes_received=c,e.updatedFromApi=!0;const{getUser:t}=a,r=t();if(r&&(r.setCustomUserAttribute("viafoura_id",d.toString()),r.setCustomUserAttribute("viafoura_uuid",f),r.setCustomUserAttribute("viafoura_avatar",b),r.setCustomUserAttribute("avatar",b)),i!==d){const e={event:"viafoura_user_info",viafoura_id:d,viafoura_uuid:f,viafoura_displayName:p,viafoura_avatar:b,[`${n}_viafoura_id`]:d,[`${n}_viafoura_uuid`]:f};window.dataLayer=window.dataLayer||[],window.dataLayer.push(e),window.lastVfId=d}return e}}return{}};return await u()}const P=async()=>{var e;const t=await Object(d.b)();if(!t)throw new Error("No access token returned");const r=Object(u.b)(),n=await s.a.get(`${r}/gmg-auth/v3/uo`,{headers:{Authorization:`Bearer ${t}`}}).catch((e=>(console.error("[fetchUserObject] Error fetching user data",e),null))),o=await i.a.getUserProfile().then((e=>{if("code"in e)throw new Error(`Error getting user profile: ${e.message}`);return e}));return h({},null==n?void 0:n.data,{arcSubs:h({},null==n||null===(e=n.data)||void 0===e?void 0:e.arcSubs,{},o)})};async function M(e){const t=decodeURIComponent(atob(localStorage.getItem("gmg_uo")||"")),[r,n]=await Promise.allSettled([P(),a.a.getAllActiveSubscriptions()]),i="rejected"===r.status?r.reason:null,s="rejected"===n.status?n.reason:null;if(i)return console.error("[getUserObject] Error fetching user data",i),void E();s&&console.error("[getUserObject] Error fetching subs data",s);const l="fulfilled"===r.status?r.value:null,c="fulfilled"===n.status?Object(o.isAPIErrorResponse)(n.value)?null:n.value:null,u=!0===(null==l?void 0:l.arcSubs.emailVerified)?await C(e).catch((e=>(console.error("[getUserObject] Error fetching viafoura data",e),null))):null;if(Object.assign(l||{},{subscriptions:null!=c?c:null,viafoura:null!=u?u:null}),["3001001","100011"].includes((null==l?void 0:l.arcSubs.code)||""))console.error("User is not logged in"),E();else{const e=JSON.stringify(l);e!==t&&(g("gmg_uo_updated",l),localStorage.setItem("gmg_uo",btoa(encodeURIComponent(e))))}}const $=()=>{if("undefined"==typeof window||!localStorage)return null;try{const e=localStorage.getItem("gmg_uo");if(e)return JSON.parse(decodeURIComponent(atob(e)))}catch(e){console.error("[readCachedUserData] Error reading cached user data",e)}return null},T=async e=>{if(M(e),localStorage){const e=localStorage.getItem("gmg_uo");if(e){return JSON.parse(decodeURIComponent(atob(e)))}}return null},I=["https://www.clickondetroit.com","https://www.ksat.com","https://www.click2houston.com","https://www.clickorlando.com","https://www.local10.com","https://www.news4jax.com","https://www.wsls.com","https://www.whizti.com","app://www.whizti.com","https://d1g13mnkm2yxqz.cloudfront.net/redirect"];function A(e){try{const t=function(e){if("string"!=typeof e||""===e.trim())throw new TypeError("[hashEmail]: email must be a non-empty string");const t=e.trim().normalize("NFC").toLowerCase();return Object(c.createHash)("sha256").update(t,"utf8").digest("hex")}(e);w("gmg_e",t)}catch(e){console.error("[setHashedEmailCookie] Error setting hashed email cookie",e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return p})),r.d(t,"d",(function(){return v})),r.d(t,"e",(function(){return O})),r.d(t,"f",(function(){return j})),r.d(t,"g",(function(){return b})),r.d(t,"h",(function(){return m})),r.d(t,"i",(function(){return w}));var n=r(44),i=r(21),o=r(57);let a=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var s,l,c,u=((c=u||{})[c.First=1]="First",c[c.Previous=2]="Previous",c[c.Next=4]="Next",c[c.Last=8]="Last",c[c.WrapAround=16]="WrapAround",c[c.NoScroll=32]="NoScroll",c),d=((l=d||{})[l.Error=0]="Error",l[l.Overflow=1]="Overflow",l[l.Success=2]="Success",l[l.Underflow=3]="Underflow",l),f=((s=f||{})[s.Previous=-1]="Previous",s[s.Next=1]="Next",s);function h(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(a)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var p=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(p||{});function b(e,t=0){var r;return e!==(null==(r=Object(o.a)(e))?void 0:r.body)&&Object(i.a)(t,{0:()=>e.matches(a),1(){let t=e;for(;null!==t;){if(t.matches(a))return!0;t=t.parentElement}return!1}})}function m(e){let t=Object(o.a)(e);Object(n.a)().nextFrame((()=>{t&&!b(t.activeElement,0)&&v(e)}))}var g=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(g||{});function v(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let y=["textarea","input"].join(",");function w(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function O(e,t){return j(h(),t,{relativeTo:e})}function j(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?w(e):e
2:h(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.includes(e)))),n=null!=n?n:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,y))&&r}(s)&&s.select(),2}},function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"n",(function(){return o})),r.d(t,"m",(function(){return a})),r.d(t,"b",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"a",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"l",(function(){return d})),r.d(t,"h",(function(){return f})),r.d(t,"g",(function(){return b})),r.d(t,"i",(function(){return m})),r.d(t,"k",(function(){return g})),r.d(t,"e",(function(){return v})),r.d(t,"j",(function(){return y}));var n=r(20);const i=e=>0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1),o=e=>e.replace(/_/g," ").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.substring(1))).join(" ");function a(e,t){return!!t&&(!Number.isNaN(new Date(e).getTime())&&!Number.isNaN(new Date(t).getTime())&&Boolean(new Date(t).getTime()-new Date(e).getTime()>3e5))}const s={kprc:"www.click2houston.com",ksat:"www.ksat.com",wdiv:"www.clickondetroit.com",wjxt:"www.news4jax.com",wkmg:"www.clickorlando.com",wplg:"www.local10.com",wsls:"www.wsls.com",demo:""},l={"click2houston.com":"click2houston.com","KPRC - Archive Import":"click2houston.com","ksat.com":"ksat.com","KSAT - Archive Import":"ksat.com","clickondetroit.com":"clickondetroit.com","WDIV - Archive Import":"clickondetroit.com","news4jax.com":"news4jax.com","WJXT - Archive Import":"news4jax.com","clickorlando.com":"clickorlando.com","WKMG - Archive Import":"clickorlando.com","local10.com":"local10.com","WPLG - Archive Import":"local10.com","wsls.com":"wsls.com","WSLS - Archive Import":"wsls.com"},c={"https://d1vhqlrjc8h82r.cloudfront.net/":"arc-cf/","https://cloudfront-us-east-1.images.arcpublishing.com/":"media/","https://gmg-gmg-prod.cdn.arcpublishing.com/":"media/","https://bobcat-prod.s3.amazonaws.com/":"media/pins/","https://media.grahamdigital.com/":"media/grahamdigital/","https://arc-anglerfish-arc2-sandbox-sandbox-gmg.s3.amazonaws.com/":"sandbox/","https://t.gmg.io/":"media/t.gmg.io/","https://s3.amazonaws.com/":"media/s3/","https://arc-anglerfish-arc2-prod-gmg.s3.amazonaws.com/":"production/","https://cdn5.anyclip.com/":"media/anyclip/","https://cdn5-fstl-tf.anyclip.com/":"media/anyclip/fstl-tf/","https://author-service-images-prod-us-east-1.publishing.aws.arc.pub/":"media/author-service/"},u=(e,t)=>{const r=e.length;return`${r} ${"wdiv"===t?"school ":""} closing${r>1?"s":""} or delay${r>1?"s":""} reported`},d=e=>{if(!e)return;const t=[];return Array.isArray(e)?(e.forEach((e=>{t.push(`${encodeURIComponent(e)}`)})),encodeURIComponent(t.join(","))):(Object.keys(e).forEach((r=>{e.hasOwnProperty(r)&&t.push(`${encodeURIComponent(r)}=${encodeURIComponent(e[r])}`)})),t.join("&"))};function f({time:e,limit:t=3}){const r=Date.now()-new Date(e).getTime(),n=1e3,i=6e4,o=36e5,a=864e5,s=(t+1)*a;if(r<n)return"just now";if(r<i){const e=Math.floor(r/n);return`${e} second${1===e?"":"s"} ago`}if(r<o){const e=Math.floor(r/i);return`${e} minute${1===e?"":"s"} ago`}if(r<a){const e=Math.floor(r/o);return`${e} hour${1===e?"":"s"} ago`}if(r<s){const e=Math.floor(r/a);return`${e} day${1===e?"":"s"} ago`}const l=new Date(e);return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(l)}const h=e=>{try{const t=e.match(/(?:^|[^%])\?|(?!%3F)\?/);let r=-1;if(t&&(r=e.indexOf("?",t.index)),-1===r)return e;const n=e.substring(0,r),i=e.substring(r+1),o=new URLSearchParams(i);if(o.has("ref")){o.delete("ref");const e=o.toString();return e?`${n}?${e}`:n}const a=i.indexOf("?ref=");if(-1!==a){const e=i.lastIndexOf("&",a);if(!i.substring(e+1,a).includes("://"))return`${n}?${i.substring(0,a)}`}return e}catch{return e}},p=e=>{if("string"!=typeof e||!e)throw new Error("'to' must be a valid string URL");if("undefined"==typeof window)return e;try{const t=e.startsWith("/")?window.location.origin+e:e,r=new URL(t),n=new URLSearchParams(window.location.search),i=new URLSearchParams(r.
2search);if(n.has("ref")&&!i.has("ref")){const e=n.get("ref"),t=h(e);i.set("ref",t)}else if(i.has("ref")){const e=i.get("ref"),t=h(e);i.set("ref",t)}return r.search=i.toString(),r.toString()}catch(t){return e}};function b({link:e,arcSite:t}){if("string"!=typeof e||!e)return e;if("undefined"==typeof window)return p(e);try{if("localhost"===n.ENVIRONMENT){const r=new URL(p(e),window.location.origin),n=r.pathname.endsWith("/"),i=new URLSearchParams(r.search);i.set("_website",t);const o=new URLSearchParams(window.location.search);return o.has("disable")&&!i.has("disable")&&i.set("disable",o.get("disable")),r.search=i.toString(),r.pathname=n?r.pathname:`${r.pathname}/`,r.toString()}}catch(t){return e}return p(e)}function m(e){return void 0!==e&&"object"==typeof e&&"type"in e&&["image","video","gallery"].includes(e.type)}function g(e,t,r){const n=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return e.replace(n,r)}function v(e){const t=Math.floor(e/1e3),r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60,o=i<10?`0${i.toString()}`:i.toString(),a=r>0&&n<10?`0${n.toString()}`:n.toString();return r>0?`${r.toString()}:${a}:${o}`:`${n.toString()}:${o}`}function y(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4);t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:return[4,e.text()];case 1:t=r.sent();try{return[2,JSON.parse(t)]}catch(r){return 2==(e.status/100|0)?[2,Promise.resolve({message:t})]:[2,Promise.resolve({code:e.status,message:t,httpStatus:e.status,error:!0})]}return[2]}}
2))}))}},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(48);class i extends n.a{constructor(e){super(e),this.val=e}getValue(){return this.val}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(63);let o=(e,t)=>{i.a.isServer?Object(n.useEffect)(e,t):Object(n.useLayoutEffect)(e,t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(1),i=r(7);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=Object(n.useRef)(e);Object(n.useEffect)((()=>{t.current=e}),[e]);let r=Object(i.a)((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[o])))?void 0:r}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__20__},function(e,t,r){"use strict";function n(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,n),i}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n,i=((n=i||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n);function o(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}},function(e,t,r){"use strict";var n=r(6);function i(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}n.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.a.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(e,t,r,a,s,l)=>{const c=Object.create(o);n.a.toFlatObject(e,c,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const u=e&&e.message?e.message:"Error",d=null==t&&e?e.code:t;return i.call(c,u,d,r,a,s),e&&null==c.cause&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",l&&Object.assign(c,l),c},t.a=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l}));var n=r(1),i=r.n(n);let o=Object(n.createContext)(null);o.displayName="OpenClosedContext";var a,s=((a=s||{})[a.Open=1]="Open",a[a.Closed=2]="Closed",a[a.Closing=4]="Closing",a[a.Opening=8]="Opening",a);function l(){return Object(n.useContext)(o)}function c({value:e,children:t}){return i.a.createElement(o.Provider,{value:e},t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}
2));var n=r(48),i=r(138);class o extends i.a{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof n.a?this.qualifierValue=t:(this.qualifierValue=new n.a,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__26__},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});const a=r(532),s=r(1),{lazy:l,Suspense:c,PureComponent:u}=s,d=r(534),{isStatic:f}=r(535);class h extends u{constructor(e){super(e),this.state={error:null}}componentDidCatch(e,t){console.error(e,t),this.setState({error:e})}render(){return this.state.error?this.props.fallback:this.props.children}}e.exports=(e,t,r)=>{if(r)return e=>{const t=l(r),n=(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:Fusion.lazyElements[e.id]||""}});return(0,a.jsx)(h,{fallback:n,children:(0,a.jsx)(c,{fallback:n,children:(0,a.jsx)(t,i({},e))})})};if(!e||!d(e,t)||f(e,t))return e;const n=t=>(0,a.jsx)("div",{"data-fusion-lazy-id":t.id,children:(0,a.jsx)(e,i({},t))});for(const t in e)n[t]=e[t];return n}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(48),i=r(25);class o extends i.a{constructor(e,t){let r;r=t?new n.a([e,`${t}`]).setDelimiter(":"):e,super("fl",r),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__29__},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(34),o=r(345),a=n.__importStar(r(335)),s=n.__importDefault(r(245)),l=n.__importDefault(r(348)),c=n.__importDefault(r(349)),u=r(350),d=n.__importDefault(r(351)),f=n.__importDefault(r(352)),h=n.__importDefault(r(247)),p=n.__importDefault(r(248)),b=n.__importDefault(r(353)),m=n.__importDefault(r(354)),g=n.__importDefault(r(356)),v=r(357),y=n.__importDefault(r(358)),w=n.__importDefault(r(359)),O=n.__importDefault(r(360)),j=n.__importDefault(r(361)),x=n.__importDefault(r(362)),_=n.__importDefault(r(363)),S=r(243),E=n.__importStar(r(364)),k=r(365),C=n.__importDefault(r(366)),P=n.__importDefault(r(367)),M=n.__importDefault(r(368)),$=n.__importDefault(r(370)),T=n.__importStar(r(189)),I=n.__importDefault(r(372)),A=n.__importDefault(r(373)),R=n.__importDefault(r(374)),D=n.__importDefault(r(375)),L=n.__importDefault(r(376)),N=n.__importDefault(r(377)),B=n.__importDefault(r(378)),z=n.__importStar(r(154)),F=n.__importDefault(r(379)),U=n.__importDefault(r(380)),H=n.__importDefault(r(381)),V=n.__importDefault(r(250)),G=n.__importDefault(r(382)),W=n.__importDefault(r(383)),q=n.__importDefault(r(242)),K=function(){function e(){}return Object.defineProperty(e,"userIdentity",{get:function(){return!this._userIdentity&&this._userIdentityStorage&&(this._userIdentity=JSON.parse(this._userIdentityStorage.getItem(i.IDENTITY_STORAGE_KEY)||"{}")),this._userIdentity},set:function(e){(0,o.shouldStorageChange)(this._userIdentityStorage,this._isSession,i.IDENTITY_STORAGE_KEY)&&(this._userIdentityStorage instanceof q.default&&this._userIdentityStorage.removeItem(i.IDENTITY_STORAGE_KEY),this._userIdentityStorage=(0,o.initStorage)(this._baseDomain,this._isSession)),e.uuid||e.accessToken||e.refreshToken||e.impersonator||this._userIdentityStorage.removeItem(i.IDENTITY_STORAGE_KEY),this._userIdentityStorage.setItem(i.IDENTITY_STORAGE_KEY,JSON.stringify(e)),this._userIdentity=e}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e,"userProfile",{get:function(){return this._userProfile||(this._userProfile=JSON.parse(this._selectedStorage.getItem(i.PROFILE_STORAGE_KEY)||null)),this._userProfile},set:function(e){var t,r;null===e&&this._selectedStorage.removeItem(i.PROFILE_STORAGE_KEY),(0,o.shouldStorageChange)(this._selectedStorage,this._isSession,i.PROFILE_STORAGE_KEY)&&(this._selectedStorage instanceof q.default&&this._selectedStorage.removeItem(i.PROFILE_STORAGE_KEY),this._selectedStorage=(0,o.initStorage)(this._baseDomain,this._isSession,null===(t=this._profileStorageOpt)||void 0===t?void 0:t.storageExp)),(null===(r=this._profileStorageOpt)||void 0===r?void 0:r.ignoreProfile)?this._selectedStorage.removeItem(i.PROFILE_STORAGE_KEY):this._selectedStorage.setItem(i.PROFILE_STORAGE_KEY,JSON.stringify(e)),this._userProfile=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"userSegments",{get:function(){return this._userSegments||(this._userSegments=JSON.parse(this._selectedStorage.getItem(i.USER_SEGMENTS_STORAGE_KEY)||null)),this._userSegments},set:function(e){this._selectedStorage.setItem(i.USER_SEGMENTS_STORAGE_KEY,JSON.stringify(e)),this._userSegments=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"configOptions",{get:function(){return this._configOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"userSettings",{get:function(){return this._userSettings||this._userSettings||(this._userSettings=JSON.parse(this._selectedStorage.getItem(i.USER_SETTINGS_STORAGE_KEY)||null)),this._userSettings},set:function(e){null===e&&this._selectedStorage.removeItem(i.USER_SETTINGS_STORAGE_KEY),this._selectedStorage.setItem(i.USER_SETTINGS_STORAGE_KEY,JSON.stringify(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"baseDomain",{set:function(e){this._userIdentityStorage=(0,o.initStorage)(e),this._baseDomain=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ampReaderId",{get:function(){return this._ampReaderId||(this._ampReaderId=JSON.parse(this._selectedStorage.getItem(i.AMP_ID_STORAGE_KEY)||null)),this._ampReaderId},set:function(e){null==e?this._selectedStorage.removeItem(i.AMP_ID_STORAGE_KEY):e&&this._selectedStorage.setItem(i.AMP_ID_STORAGE_KEY,JSON.stringify(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"profileStorageOpt",{get:function(){return this._profileStorageOpt},set:function(e){e&&(this._profileStorageOpt=e)},enumerable:!1,configurable:!0}),e._version=r(384).version,e._userIdentityStorage=(0,o.initStorage)(),e._selectedStorage=(0,o.initStorage)(),e.apiOrigin="",e._baseDomain="",e._google={useCustomButton:!1},e._useCustomFBButton=!1,e.options=f.default,e.login=a.default,e.isLoggedIn=a.isLoggedIn,e.extendSession=u.extendSession,e.clearSession=d.default,e.heartbeat=u.heartbeat,e.logout=s.default,e.getUserSettings=k.getUserSettings,e.getUserProfile=b.default,e.getUserSegments=m.default,e.updateUserProfile=g.default,e.uploadAvatar=v.uploadAvatar,e.deleteAvatar=v.deleteAvatar,e.signUp=y.default,e.updatePassword=w.default,e.requestResetPassword=O.default,e.resetPassword=j.default,e.requestDeleteAccount=E.default,e.approveDeleteAccount=E.approveDeleteAccount,e.declineDeleteAccount=E.declineDeleteAccount,e.getConfig=S.getConfig,e.initFacebookLogin=$.default,e.facebookSignOn=B.default,e.initGoogleLogin=T.default,e.initGoogleAuthSDK=T.initGoogleAuthSDK,e.initGoogleAuth=T.initGoogleAuth,e.initiateOIDC=A.default,e.signInWithOIDC=R.default,e.signInWithOIDCPKCE=D.default,e.loginWithArcIdentityAsOIDCProvider=L.default,e.unlinkOIDC=N.default,e.googleSignOn=z.default,e.signInWithGoogle=F.default,e.initAppleSignOn=I.default,e.appleSignOn=U.default,e.requestMagicLink=l.default,e.redeemMagicLink=c.default,e.requestVerifyEmail=x.default,e.verifyEmail=_.default,e.listGdprReports=P.default,e.getGdprReport=M.default,e.getThirdPartyTokens=C.default,e.unlinkSocialIdentity=H.default,e.requestOTALink=h.default,e.redeemOTALink=p.default,e.getSwgAccessToken=V.default,e.checkSwgLogin=G.default,e.relinkGoogleAccount=W.default,e.signOnSwgUser=z.signOnSwgUser,e}();t.default=K},function(e,t,r){"use strict";r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return p})),r.d(t,"a",(function(){return f}));var n=r(1),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=Object(n.createContext)(void 0),c=Object(n.createContext)(void 0),u={status:"loading",data:{arcSubs:{},subscriptions:null,viafoura:{},cognito:{},braze:{}}},d=(e,{type:t,payload:r})=>{const n={SET_USER_DATA:{data:a({},e.data,{},r)},LOG_IN:{status:"loggedIn"},LOG_OUT:{status:"loggedOut",data:u.data},SET_LOADING:{status:"loading"}};try{return a({},e,{},n[t])}catch(e){throw new Error(`Unhandled type: ${t}`)}},f=({children:e})=>{const[t,r]=Object(n.useReducer)(d,u),o=Object(n.useMemo)((()=>({state:t,dispatch:r})),[t]);return Object(i.jsx)(l.Provider,{value:o.state,children:Object(i.jsx)(c.Provider,{value:o.dispatch,children:e})})},h=()=>{const e=Object(n.useContext)(l);if(void 0===e)throw new Error("useUserContext must be used within a UserDataProvider");return e},p=()=>{const e=Object(n.useContext)(c);if(void 0===e)throw new Error("useUserDispatch must be used within a UserDataProvider");return e}},function(e,t,r){var n=r(51),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";var n=r(187),i=r(526),o=r(186),a=r(238),s=r(525),l=r(49),c=r(25);class u extends l.a{constructor(){super(),this._actionModel={actionType:"trimVideo"}}parseVal(e){return"number"==typeof e?e:e.replace("%","p")}startOffset(e){return this._actionModel.startOffset=d(e)||+e,this.addQualifier(new c.a("so",this.parseVal(e)))}endOffset(e){return this._actionModel.endOffset=d(e)||+e,this.addQualifier(new c.a("eo",this.parseVal(e)))}duration(e){return this._actionModel.duration=e,this.addQualifier(new c.a("du",this.parseVal(e)))}static fromJson(e){const{duration:t,startOffset:r,endOffset:n}=e,i=new this;return null!=t&&i.duration(t),null!=r&&i.startOffset(r),null!=n&&i.endOffset(n),i}}const d=e=>"auto"===e?e:null;var f=u,h=(r(137),r(138));h.a;r(17),r(236);h.a;r(90);l.a;r(48);l.a;r(102);l.a;function p(){return new f}var b=r(2),m=r(1),g=r(14),v=r(222),y=r(0);const w=Object(m.lazy)((async()=>({default:(await Promise.resolve().then(r.bind(null,222))).AdvancedImage})));function O({alt:e,altText:t,cldImage:r,lazy:n=!0,imgClassName:i,width:o,height:a,responsive:s=!0}){var l;if("undefined"==typeof window)return null;const c=s?[Object(v.responsive)({steps:[640,900,1200,2560]})]:void 0;return Object(y.jsx)(m.Suspense,{fallback:null,children:Object(y.jsx)(w,{loading:n?"lazy":void 0,cldImg:r,plugins:c,alt:(null!==(l=null!=e?e:t)&&void 0!==l?l:"").slice(0,150),className:i,width:o,height:a})})}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?j(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=(new Date).getTime(),E=({condition:e,wrapper:t,children:r})=>e?t(r):r;t.a=({id:e,caption:t="",copyright:r,captionClassName:l,credits:c,creditsClassName:u,captionPosition:d="bottom",imgClassName:f,placeholderImage:h="",separator:v=", ",url:w,publicId:j,width:_,alt:k,height:C,link:P,lazy:M=!0,videoPoster:$=!1,layout:T="responsive",objectFit:I="cover",placeholder:A="$blueGray.100",shouldBeStatic:R=!1,invalidateVersion:D=!1,scaleDirection:L="width",responsive:N=!0,fallbackImage:B,sx:z})=>{var F,U,H,V;const G=Object(m.useId)(),W=w||h;if(!W&&!j)return null;const q=new o.a({cloud:{cloudName:"graham-media-group"}}),K=[null==c||null===(F=c.by)||void 0===F?void 0:F.map((e=>e.byline||e.name||void 0)).filter(Boolean).join(`${v} `),r].filter((e=>e&&null!==e&&""!==e)).join(`${v} `),Y=!(!t&&!K),X=k||t||"";let J;if(!j){var Z;const r=null===(Z=W.match(/https?:\/\/[a-zA-Z0-9.-]*\//))||void 0===Z?void 0:Z[0],n=W.match(/^https:\/\/res\.cloudinary\.com\/graham-media-group\/.*\/v\d+\/([^?]+)\.[^/.]+(\?|$)/),i=null==n?void 0:n[1],o=r&&r in g.a?g.a[r]:void 0;if(o&&r)J=q.image(W.replace(r,o)),J.setDeliveryType("upload");else{if(!n)return Object(y.jsxs)(b.E,{as:"figure",gap:Y?"$1":"$0",id:e,className:f,sx:x({position:"relative",overflow:"hidden",height:"$full",".imageWrapper img:-moz-loading":{visibility:"hidden"}},"fill"===T&&{height:"$full",img:{width:"$full",height:"$full",position:"absolute",objectFit:I}},{},"fixed"===T&&{height:C,width:_},{},z),children:[Object(y.jsx)(E,{condition:!!P,wrapper:e=>Object(y.jsx)("a",{href:P,children:e}),children:C&&_&&"fixed"!==T?Object(y.jsx)(b.d,{className:"imageWrapper",bg:A,ratio:`${_}:${C}`,children:Object(y.jsx)("img",{id:e,alt:X||t||"",src:W,width:_,height:C,className:f,loading:M?"lazy":"eager",decoding:"async",style:{objectFit:I}})}):Object(y.jsx)("img",{id:e,alt:X,src:W,width:_,height:C,className:f,loading:M?"lazy":"eager",decoding:"async",style:{objectFit:I}})}),Y?Object(y.jsxs)(b.e,{as:"figcaption",className:l,lineHeight:"$normal",textColor:"$blueGray.500",px:["$4",null,"$0"],sx:{fontSize:"$0",fontStyle:"italic"},children:[Object(y.jsx)(b.M,{as:"span",innerContent:t}),K.length>0?Object(y.jsx)(b.M,{as:"span",className:u,children:` (${K})`}):null]}):null]});J=q.image(i)}}var Q,ee,te,re,ne;if(j&&(J=q.image(j)),R&&C&&_)return Object(y.jsx)(E,{condition:!!P,wrapper:e=>Object(y.jsx)("a",{href:P,children:e}),children:Object(y.jsx)(b.d,{as:"figure",className:f,ratio:`${_}:${C}`,sx:x({},z),children:Object(y.jsx)("img",{id:e,alt:X,src:null===(Q=J)||void 0===Q?void 0:Q.resize(Object(i.a)().width(640)).toURL(),width:640,height:Math.round(640/(_/C)+Number.EPSILON)})})});B?null===(ee=J)||void 0===ee||ee.delivery(Object(n.b)(Object(a.a)())).delivery(Object(n.c)(Object(s.a)())).delivery(Object(n.a)(B.replace(/\//g,":"))):null===(te=J)||void 0===te||te.delivery(Object(n.b)(Object(a.a)())).delivery(Object(n.c)(Object(s.a)()));(_&&"width"===L&&!N&&(null===(U=J)||void 0===U||U.resize(Object(i.a)().width(_))),C&&"height"===L&&!N&&(null===(H=J)||void 0===H||H.resize(Object(i.a)().height(C))),D&&(null===(V=J)||void 0===V||V.setVersion(S)),$)&&(null===(re=J)||void 0===re||re.setAssetType("video"),null===(ne=J)||void 0===ne||ne.addAction(p().startOffset(0)));return Object(y.jsxs)(b.E,{as:"figure","aria-labelledby":G,gap:Y?"$1":"$0",id:e,className:f,sx:x({position:"relative",overflow:"hidden",height:"100%",".imageWrapper img:-moz-loading":{visibility:"hidden"}},"fill"===T&&{height:"$full",img:{width:"$full",height:"$full",position:"absolute",objectFit:I}},{},"fixed"===T&&{height:C,width:_},{},z),children:[Y?null:Object(y.jsx)(b.M,{id:G,as:"figcaption",innerContent:X&&X.length>0?X:"No description found",sx:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}),Object(y.jsx)(E,{condition:!!P,wrapper:e=>Object(y.jsx)("a",{href:P,children:e}),children:C&&_&&"fixed"!==T?Object(y.jsx)(b.d,{className:"imageWrapper",bg:A,ratio:`${_}:${C}`,children:Object(y.jsx)(O,{cldImage:J,alt:"",lazy:M,width:_,height:C,responsive:N})}):Object(y.jsx)(m.Suspense,{fallback:null,children:Object(y.jsx)(O,{cldImage:J,alt:"",lazy:M,width:_,height:C,responsive:N})})}),Y?Object(y.jsxs)(b.e,{as:"figcaption",id:G,className:l,lineHeight:"$normal",textColor:"$blueGray.500",px:["$4",null,"$0"],sx:x({fontSize:"$0",fontStyle:"italic"},"overlay"===d&&{padding:"0",position:"absolute",bottom:"$2",left:"$3",zIndex:1,color:"$white"}),children:[Object(y.jsx)(b.M,{as:"span",innerContent:t}),K.length>0&&Object(y.jsx)(b.M,{as:"span",className:u,children:` (${K})`})]}):null]})}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.USER_SEGMENTS_STORAGE_KEY=t.logPrefix=t.headers=t.AMP_ID_STORAGE_KEY=t.USER_SETTINGS_STORAGE_KEY=t.PROFILE_STORAGE_KEY_EXPIRED_TIME=t.PROFILE_STORAGE_KEY=t.IDENTITY_STORAGE_KEY=void 0,t.IDENTITY_STORAGE_KEY="ArcId.USER_INFO",t.PROFILE_STORAGE_KEY="ArcId.USER_PROFILE",t.PROFILE_STORAGE_KEY_EXPIRED_TIME="ArcId.USER_PROFILE_EXPIRED_TIME",t.USER_SETTINGS_STORAGE_KEY="ArcId.USER_SETTINGS",t.AMP_ID_STORAGE_KEY="ArcId.AMP_READER_ID",t.headers={"Content-Type":"application/json"},t.logPrefix="[Arc Identity SDK]",t.USER_SEGMENTS_STORAGE_KEY="ArcId.USER_SEGMENTS"},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n,i=r(1),o=r.n(i),a=r(63),s=r(18),l=r(73);let c=null!=(n=o.a.useId)?n:function(){let e=Object(l.a)(),[t,r]=o.a.useState(e?()=>a.a.nextId():null);return Object(s.a)((()=>{null===t&&r(a.a.nextId())}),[t]),null!=t?""+t:void 0}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=r(75);function c(e){return e&&e.__esModule?e:{default:e}}var u=c(s),d=c(l);const f=Array(12).fill(0),h=({visible:e,className:t})=>u.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},u.default.createElement("div",{className:"sonner-spinner"},f.map(((e,t)=>u.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`}))))),p=u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},u.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),b=u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},u.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),m=u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},u.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),g=u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},u.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v=u.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},u.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let y=1;const w=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
2{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:r}=e,n=a(e,["message"]),o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:y++,s=this.toasts.find((e=>e.id===o)),l=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map((t=>t.id===o?(this.publish(i({},t,{},e,{id:o,title:r})),i({},t,{},e,{id:o,dismissible:l,title:r})):t)):this.addToast(i({title:r},n,{dismissible:l,id:o})),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame((()=>this.subscribers.forEach((t=>t({id:e,dismiss:!0})))))):this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),e),this.message=(e,t)=>this.create(i({},t,{message:e})),this.error=(e,t)=>this.create(i({},t,{message:e,type:"error"})),this.success=(e,t)=>this.create(i({},t,{type:"success",message:e})),this.info=(e,t)=>this.create(i({},t,{type:"info",message:e})),this.warning=(e,t)=>this.create(i({},t,{type:"warning",message:e})),this.loading=(e,t)=>
2this.create(i({},t,{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create(i({},t,{promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0})));const n=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==r;const s=n.then((async e=>{o=["resolve",e];if(u.default.isValidElement(e))a=!1,this.create({id:r,type:"default",message:e});else if(O(e)&&!e.ok){a=!1;const n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,s="object"==typeof n&&!u.default.isValidElement(n)?n:{message:n};this.create(i({id:r,type:"error",description:o},s))}else if(e instanceof Error){a=!1;const n="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"==typeof n&&!u.default.isValidElement(n)?n:{message:n};this.create(i({id:r,type:"error",description:o},s))}else if(void 0!==t.success){a=!1;const n="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,s="object"==typeof n&&!u.default.isValidElement(n)?n:{message:n};this.create(i({id:r,type:"success",description:o},s))}})).catch((async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const n="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"==typeof n&&!u.default.isValidElement(n)?n:{message:n};this.create(i({id:r,type:"error",description:o},s))}})).finally((()=>{a&&(this.dismiss(r),r=void 0),null==t.finally||t.finally.call(t)})),l=()=>new Promise(((e,t)=>s.then((()=>"reject"===o[0]?t(o[1]):e(o[1]))).catch(t)));return"string"!=typeof r&&"number"!=typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||y++;return this.create(i({jsx:e(r),id:r},t)),r},this.getActiveToasts=()=>this.toasts.filter((e=>!this.dismissedToasts.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},O=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,j=(e,t)=>{const r=(null==t?void 0:t.id)||y++;return w.addToast(i({title:e},t,{id:r})),r},x=Object.assign(j,{success:w.success,info:w.info,warning:w.warning,error:w.error,custom:w.custom,message:w.message,promise:w.promise,dismiss:w.dismiss,loading:w.loading},{getHistory:()=>w.toasts,getToasts:()=>w.getActiveToasts()});function _(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,504 bytes, line 2
2}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
2const S=3,E=14;function k(...e){return e.filter(Boolean).join(" ")}const C=e=>{var t,r,n,o,a,s,l,c,d;const{invert:f,toast:y,unstyled:w,interacting:O,setHeights:j,visibleToasts:x,heights:S,index:E,toasts:C,expanded:P,removeToast:M,defaultRichColors:$,closeButton:T,style:I,cancelButtonStyle:A,actionButtonStyle:R,className:D="",descriptionClassName:L="",duration:N,position:B,gap:z,expandByDefault:F,classNames:U,icons:H,closeButtonAriaLabel:V="Close toast"}=e,[G,W]=u.default.useState(null),[q,K]=u.default.useState(null),[Y,X]=u.default.useState(!1),[J,Z]=u.default.useState(!1),[Q,ee]=u.default.useState(!1),[te,re]=u.default.useState(!1),[ne,ie]=u.default.useState(!1),[oe,ae]=u.default.useState(0),[se,le]=u.default.useState(0),ce=u.default.useRef(y.duration||N||4e3),ue=u.default.useRef(null),de=u.default.useRef(null),fe=0===E,he=E+1<=x,pe=y.type,be=!1!==y.dismissible,me=y.className||"",ge=y.descriptionClassName||"",ve=u.default.useMemo((()=>S.findIndex((e=>e.toastId===y.id))||0),[S,y.id]),ye=u.default.useMemo((()=>{var e;return null!=(e=y.closeButton)?e:T}),[y.closeButton,T]),we=u.default.useMemo((()=>y.duration||N||4e3),[y.duration,N]),Oe=u.default.useRef(0),je=u.default.useRef(0),xe=u.default.useRef(0),_e=u.default.useRef(null),[Se,Ee]=B.split("-"),ke=u.default.useMemo((()=>S.reduce(((e,t,r)=>r>=ve?e:e+t.height),0)),[S,ve]),Ce=(()=>{const[e,t]=u.default.useState(document.hidden);return u.default.useEffect((()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e})(),Pe=y.invert||f,Me="loading"===pe;je.current=u.default.useMemo((()=>ve*z+ke),[ve,ke]),u.default.useEffect((()=>{ce.current=we}),[we]),u.default.useEffect((()=>{X(!0)}),[]),u.default.useEffect((()=>{const e=de.current;if(e){const t=e.getBoundingClientRect().height;return le(t),j((e=>[{toastId:y.id,height:t,position:y.position},...e])),()=>j((e=>e.filter((e=>e.toastId!==y.id))))}}),[j,y.id]),u.default.useLayoutEffect((()=>
2{if(!Y)return;const e=de.current,t=e.style.height;e.style.height="auto";const r=e.getBoundingClientRect().height;e.style.height=t,le(r),j((e=>e.find((e=>e.toastId===y.id))?e.map((e=>e.toastId===y.id?i({},e,{height:r}):e)):[{toastId:y.id,height:r,position:y.position},...e]))}),[Y,y.title,y.description,j,y.id]);const $e=u.default.useCallback((()=>{Z(!0),ae(je.current),j((e=>e.filter((e=>e.toastId!==y.id)))),setTimeout((()=>{M(y)}),200)}),[y,M,j,je]);u.default.useEffect((()=>{if(y.promise&&"loading"===pe||y.duration===1/0||"loading"===y.type)return;let e;return P||O||Ce?(()=>{if(xe.current<Oe.current){const e=(new Date).getTime()-Oe.current;ce.current=ce.current-e}xe.current=(new Date).getTime()})():ce.current!==1/0&&(Oe.current=(new Date).getTime(),e=setTimeout((()=>{null==y.onAutoClose||y.onAutoClose.call(y,y),$e()}),ce.current)),()=>clearTimeout(e)}),[P,O,y,pe,Ce,$e]),u.default.useEffect((()=>{y.delete&&$e()}),[$e,y.delete]);const Te=y.icon||(null==H?void 0:H[pe])||(e=>{switch(e){case"success":return p;case"info":return m;case"warning":return b;case"error":return g;default:return null}})(pe);var Ie,Ae;return u.default.createElement("li",{tabIndex:0,ref:de,className:k(D,me,null==U?void 0:U.toast,null==y||null==(t=y.classNames)?void 0:t.toast,null==U?void 0:U.default,null==U?void 0:U[pe],null==y||null==(r=y.classNames)?void 0:r[pe]),"data-sonner-toast":"","data-rich-colors":null!=(Ie=y.richColors)?Ie:$,"data-styled":!Boolean(y.jsx||y.unstyled||w),"data-mounted":Y,"data-promise":Boolean(y.promise),"data-swiped":ne,"data-removed":J,"data-visible":he,"data-y-position":Se,"data-x-position":Ee,"data-index":E,"data-front":fe,"data-swiping":Q,"data-dismissible":be,"data-type":pe,"data-invert":Pe,"data-swipe-out":te,"data-swipe-direction":q,"data-expanded":Boolean(P||F&&Y),style:i({"--index":E,"--toasts-before":E,"--z-index":C.length-E,"--offset":`${J?oe:je.current}px`,"--initial-height":F?"auto":`${se}px`},I,{},y.style),onDragEnd:()=>{ee(!1),W(null),_e.current=null},onPointerDown:e=>{!Me&&be&&(ue.current=new Date,ae(je.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ee(!0),_e.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r;if(te||!be)return;_e.current=null;const n=Number((null==(e=de.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),i=Number((null==(t=de.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(r=ue.current)?void 0:r.getTime()),a="x"===G?n:i,s=Math.abs(a)/o;if(Math.abs(a)>=45||s>.11)return ae(je.current),null==y.onDismiss||y.onDismiss.call(y,y),K("x"===G?n>0?"right":"left":i>0?"down":"up"),$e(),void re(!0);var l,c;null==(l=de.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=de.current)||c.style.setProperty("--swipe-amount-y","0px"),ie(!1),ee(!1),W(null)},onPointerMove:t=>{var r,n,i;if(!_e.current||!be)return;if((null==(r=window.getSelection())?void 0:r.toString().length)>0)return;const o=t.clientY-_e.current.y,a=t.clientX-_e.current.x;var s;const l=null!=(s=e.swipeDirections)?s:function(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(B);!G&&(Math.abs(a)>1||Math.abs(o)>1)&&W(Math.abs(a)>Math.abs(o)?"x":"y");let c={x:0,y:0};const u=e=>1/(1.5+Math.abs(e)/20);if("y"===G){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&o<0||l.includes("bottom")&&o>0)c.y=o;else{const e=o*u(o);c.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===G&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&a<0||l.includes("right")&&a>0)c.x=a;else{const e=a*u(a);c.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&ie(!0),null==(n=de.current)||n.style.setProperty("--swipe-amount-x",`${c.x}px`),null==(i=de.current)||i.style.setProperty("--swipe-amount-y",`${c.y}px`)}},ye&&!y.jsx&&"loading"!==pe?u.default.createElement("button",{"aria-label":V,"data-disabled":Me,"data-close-button":!0,onClick:Me||!be?()=>{}:()=>{$e(),null==y.onDismiss||y.onDismiss.call(y,y)},className:k(null==U?void 0:U.closeButton,null==y||null==(n=y.classNames)?void 0:n.closeButton)},null!=(Ae=null==H?void 0:H.close)?Ae:v):null,(pe||y.icon||y.promise)&&null!==y.icon&&(null!==(null==H?void 0:H[pe])||y.icon)?u.default.createElement("div",{"data-icon":"",className:k(null==U?void 0:U.icon,null==y||null==(o=y.classNames)?void 0:o.icon)},y.promise||"loading"===y.type&&!y.icon?y.icon||function(){var e,t;return(null==H?void 0:H.loading)?u.default.createElement("div",{className:k(null==U?void 0:U.loader,null==y||null==(t=y.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===pe},H.loading):u.default.createElement(h,{className:k(null==U?void 0:U.loader,null==y||null==(e=y.classNames)?void 0:e.loader),visible:"loading"===pe})}():null,"loading"!==y.type?Te:null):null,u.default.createElement("div",{"data-content":"",className:k(null==U?void 0:U.content,null==y||null==(a=y.classNames)?void 0:a.content)},u.default.createElement("div",{"data-title":"",className:k(null==U?void 0:U.title,null==y||null==(s=y.classNames)?void 0:s.title)},y.jsx?y.jsx:"function"==typeof y.title?y.title():y.title),y.description?u.default.createElement("div",{"data-description":"",className:k(L,ge,null==U?void 0:U.description,null==y||null==(l=y.classNames)?void 0:l.description)},"function"==typeof y.description?y.description():y.description):null),u.default.isValidElement(y.cancel)?y.cancel:y.cancel&&_(y.cancel)?u.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||A,onClick:e=>{_(y.cancel)&&be&&(null==y.cancel.onClick||y.cancel.onClick.call(y.cancel,e),$e())},className:k(null==U?void 0:U.cancelButton,null==y||null==(c=y.classNames)?void 0:c.cancelButton)},y.cancel.label):null,u.default.isValidElement(y.action)?y.action:y.action&&_(y.action)?u.default.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||R,onClick:e=>{_(y.action)&&(null==y.action.onClick||y.action.onClick.call(y.action,e),e.defaultPrevented||$e())},className:k(null==U?void 0:U.actionButton,null==y||null==(d=y.classNames)?void 0:d.actionButton)},y.action.label):null)};function P(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function M(e,t){const r={};return[e,t].forEach(((e,t)=>{const n=1===t,i=n?"--mobile-offset":"--offset",o=n?"16px":"24px";function a(e){["top","right","bottom","left"].forEach((t=>{r[`${i}-${t}`]="number"==typeof e?`${e}px`:e}))}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach((t=>{void 0===e[t]?r[`${i}-${t}`]=o:r[`${i}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]})):a(o)})),r}const $=u.default.forwardRef((function(e,t){const{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:c,mobileOffset:f,theme:h="light",richColors:p,duration:b,style:m,visibleToasts:g=S,toastOptions:v,dir:y=P(),gap:O=E,icons:j,containerAriaLabel:x="Notifications"}=e,[_,k]=u.default.useState([]),$=u.default.useMemo((()=>Array.from(new Set([n].concat(_.filter((e=>e.position)).map((e=>e.position)))))),[_,n]),[T,I]=u.default.useState([]),[A,R]=u.default.useState(!1),[D,L]=u.default.useState(!1),[N,B]=u.default.useState("system"!==h?h:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),z=u.default.useRef(null),F=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=u.default.useRef(null),H=u.default.useRef(!1),V=u.default.useCallback((e=>{k((t=>{var r;return(null==(r=t.find((t=>t.id===e.id)))?void 0:r.delete)||w.dismiss(e.id),t.filter((({id:t})=>t!==e.id))}))}),[]);return u.default.useEffect((()=>w.subscribe((e=>{e.dismiss?requestAnimationFrame((()=>{k((t=>t.map((t=>t.id===e.id?i({},t,{delete:!0}):t))))})):setTimeout((()=>{d.default.flushSync((()=>{k((t=>{const r=t.findIndex((t=>t.id===e.id));return-1!==r?[...t.slice(0,r),i({},t[r],{},e),...t.slice(r+1)]:[e,...t]}))}))}))}))),[_]),u.default.useEffect((()=>{if("system"!==h)return void B(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",(({matches:e})=>{B(e?"dark":"light")}))}catch(t){e.addListener((({matches:e})=>{try{B(e?"dark":"light")}catch(e){console.error(e)}}))}}),[h]),u.default.useEffect((()=>{_.length<=1&&R(!1)}),[_]),u.default.useEffect((()=>{const e=e=>{var t;var r;o.every((t=>e[t]||e.code===t))&&(R(!0),null==(r=z.current)||r.focus());"Escape"!==e.code||document.activeElement!==z.current&&!(null==(t=z.current)?void 0:t.contains(document.activeElement))||R(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[o]),u.default.useEffect((()=>{if(z.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,H.current=!1)}}),[z.current]),u.default.createElement("section",{ref:t,"aria-label":`${x} ${F}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map(((t,n)=>{var o;const[d,h]=t.split("-");return _.length?u.default.createElement("ol",{key:t,dir:"auto"===y?P():y,tabIndex:-1,ref:z,className:l,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":d,"data-lifted":A&&_.length>1&&!a,"data-x-position":h,style:i({"--front-toast-height":`${(null==(o=T[0])?void 0:o.height)||0}px`,"--width":"356px","--gap":`${O}px`},m,{},M(c,f)),onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||H.current||(H.current=!0,U.current=e.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{D||R(!1)},onDragEnd:()=>R(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},_.filter((e=>!e.position&&0===n||e.position===t)).map(((n,i)=>{var o,l;return u.default.createElement(C,{key:n.id,icons:j,index:i,toast:n,defaultRichColors:p,duration:null!=(o=null==v?void 0:v.duration)?o:b,className:null==v?void 0:v.className,descriptionClassName:null==v?void 0:v.descriptionClassName,invert:r,visibleToasts:g,closeButton:null!=(l=null==v?void 0:v.closeButton)?l:s,interacting:D,position:t,style:null==v?void 0:v.style,unstyled:null==v?void 0:v.unstyled,classNames:null==v?void 0:v.classNames,cancelButtonStyle:null==v?void 0:v.cancelButtonStyle,actionButtonStyle:null==v?void 0:v.actionButtonStyle,closeButtonAriaLabel:null==v?void 0:v.closeButtonAriaLabel,removeToast:V,toasts:_.filter((e=>e.position==n.position)),heights:T.filter((e=>e.position==n.position)),setHeights:I,expandByDefault:a,gap:O,expanded:A,swipeDirections:e.swipeDirections})}))):null})))}));t.Toaster=$,t.toast=x,t.useSonner=function(){const[e,t]=u.default.useState([]);return u.default.useEffect((()=>w.subscribe((e=>{e.dismiss?setTimeout((()=>{d.default.flushSync((()=>{t((t=>t.filter((t=>t.id!==e.id))))}))})):setTimeout((()=>{d.default.flushSync((()=>{t((t=>{const r=t.findIndex((t=>t.id===e.id));return-1!==r?[...t.slice(0,r),i({},t[r],{},e),...t.slice(r+1)]:[e,...t]}))}))}))}))),[]),{toasts:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAPIErrorResponse=void 0,t.isAPIErrorResponse=function(e){return void 0!==e.code&&void 0!==e.message}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(4);t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:return[4,e.clone().text()];case 1:t=r.sent();try{return[2,JSON.parse(t)]}catch(r){return 2==(e.status/100|0)?[2,Promise.resolve({message:t})]:[2,Promise.resolve({code:e.status,message:t,httpStatus:e.status,error:!0})]}return[2]}}))}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(18);function o(e){let t=Object(n.useRef)(e);return Object(i.a)((()=>{t.current=e}),[e]),t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(8);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l,c=((l=c||{})[l.None=1]="None",l[l.Focusable=2]="Focusable",l[l.Hidden=4]="Hidden",l);let u=Object(n.d)((function(e,t){var r;let{features:i=1}=e,a=s(e,["features"]),l={ref:t,"aria-hidden":2==(2&i)||(null!=(r=a["aria-hidden"])?r:void 0),hidden:4==(4&i)||void 0,style:o({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},4==(4&i)&&2!=(2&i)&&{display:"none"})};return Object(n.e)({ourProps:l,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})}))},function(e,t,r){"use strict";let n;function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"c",(function(){return u})),r.d(t,"h",(function(){return f})),r.d(t,"e",(function(){return h})),r.d(t,"d",(function(){return p})),r.d(t,"g",(function(){return b})),r.d(t,"f",(function(){return m})),r.d(t,"j",(function(){return g})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return y})),r.d(t,"k",(function(){return w})),r.d(t,"i",(function(){return O})),function(e){e.RelativeTime="relativetime",e.AbsoluteTime="absolutetime"}(n||(n={}));const s=30,l={type:"content",assetid:"",program:"",title:"",length:0,airdate:"",isfullepisode:"n",adloadtype:"2",segB:""},c={type:"ad",assetid:""};function u(e){return Number.isFinite(e)?e:0}const d=e=>Math.floor(e/1e3),f=e=>{const t=null==e?void 0:e.player.currentTime();var r;return r=t,Math.floor(r)},h=(e,t,r)=>{if(!e)return l;const{mediaid:n,title:i,duration:a,created:s}=e,c=(e=>{var t;
2const r=`meta[name="anyclip:video:${e}"]`,n=document.querySelector(r);return null!==(t=null==n?void 0:n.content)&&void 0!==t?t:null})(n)||i,f=null!=a?a:null,h=null!=s?s:null,p=null!==f?u(f):null,b=null!==p&&p>0?d(p):null,m=null!==h?u(h):null,g=null!==m?new Date(m).toISOString().split(".")[0]:"",v=c.length>25?c.substring(0,25):c,y=i.length>40?i.substring(0,40):i;return o({},l,{assetid:n,program:v,title:y,length:null!=b?b:null,airdate:g,isfullepisode:null!==b&&b>=900?"y":"n",segB:t,segC:r})},p=(e,t,r)=>{if(!e)return c;const{mediaid:n,duration:i}=e,a=null!=i?i:null,s=null!==a?u(a):null;if(null===s||0===s)return o({},c,{assetid:n,type:"ad"});const l=d(s);return o({},c,{assetid:n,type:t<=1||r<=1?"preroll":r>=l-1?"postroll":r>1?"midroll":"ad"})};function b(e,t){e&&"ad"===e.currentMode&&"ad"===t&&(e.adTime=0,e.adType=null,e.isRunning=!1,e.currentMode="idle")}function m(e,t,r,n,i=!1){e&&e.isRunning&&null!==e.intervalId&&(i||("video"===r?t(n):"ad"===r&&t(e.adTime)),"ad"===e.currentMode&&b(e,r),clearInterval(e.intervalId),e.intervalId=null,e.isRunning=!1)}function g(e,t,r,n){if(e.isRunning||null!==e.intervalId)return;const{sessionId:i}=n;e.isRunning=!0,e.currentMode=r,e.intervalId=window.setInterval((()=>{if(e.totalElapsedTime=e.totalElapsedTime+1,"video"===r){var n,o;const a=null===(n=window.anyclip)||void 0===n||null===(o=n.getWidget)||void 0===o?void 0:o.call(n,null,i);if(a){const r=f(a);e.videoTime=r,t(u(r))}else m(e,t,r,e.videoTime)}else"ad"===r&&(e.adTime<s?(e.adTime=e.adTime+1,t(e.adTime)):m(e,t,r,e.adTime))}),1e3)}const v=(e,t,r,n,i=!1)=>{const a=r||`video-${Date.now()}`,s=(null==e?void 0:e.substring(0,25))||"",c=(null==n?void 0:n.substring(0,40))||"";return o({},l,{assetid:a,program:s,title:c,length:i?0:null,airdate:(new Date).toISOString().split(".")[0],isfullepisode:i?"y":"n",adloadtype:"2",segB:e,segC:t})},y=(e,t)=>{let r="midroll";if(e){r=u(e.getCurrentTime())<=1?"preroll":"midroll"}return o({},c,{type:r,assetid:t||`ad-${Date.now()}`})},w=e=>{e&&(null!=e.intervalRef&&(clearInterval(e.intervalRef),e.intervalRef=null),e.isRunning=!1)},O=(e,t,r,i)=>{if(!e||!t)return;(null!=e.intervalRef||e.isRunning)&&w(e),e.isRunning=!0;let o=0;e.intervalRef=window.setInterval((()=>{if(!t||t.isPaused()||t.isStalled()||e.currentMode!==i)w(e);else if(o+=1,o>=86400)w(e);else try{const e=t.getCurrentTime(n.AbsoluteTime);r(e)}catch(t){w(e)}}),1e3)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4).__importDefault(r(30));t.default=n.default},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(82);function i(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add((()=>e.removeEventListener(r,n,i)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return Object(n.a)((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=i();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f}));r(305);var n=r(1),i=r.n(n),o=r(171),a=r(9);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"c",(function(){return a.u}));const c=i.a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>
2{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),u={dedupe:!0},d=a.d.defineProperty(a.e,"defaultValue",{value:a.j}),f=Object(a.v)(((e,t,r)=>{const{cache:i,compare:d,suspense:f,fallbackData:h,revalidateOnMount:p,revalidateIfStale:b,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:v,keepPreviousData:y}=r,[w,O,j,x]=a.f.get(i),[_,S]=Object(a.r)(e),E=Object(n.useRef)(!1),k=Object(n.useRef)(!1),C=Object(n.useRef)(_),P=Object(n.useRef)(t),M=Object(n.useRef)(r),$=()=>M.current,T=()=>$().isVisible()&&$().isOnline(),[I,A,R,D]=Object(a.i)(i,_),L=Object(n.useRef)({}).current,N=Object(a.n)(h)?r.fallback[_]:h,B=(e,t)=>{for(const r in L){const n=r;if("data"===n){if(!d(e[n],t[n])){if(!Object(a.n)(e[n]))return!1;if(!d(K,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},z=Object(n.useMemo)((()=>{const e=!!_&&!!t&&(Object(a.n)(p)?!$().isPaused()&&!f&&(!!Object(a.n)(b)||b):p),r=t=>{const r=Object(a.o)(t);return delete r._k,e?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({isValidating:!0,isLoading:!0},r):r},n=I(),i=D(),o=r(n),c=n===i?o:r(i);let u=o;return[()=>{const e=r(I());return B(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>c]}),[i,_]),F=Object(o.useSyncExternalStore)(Object(n.useCallback)((e=>R(_,((t,r)=>{B(r,t)||e()}))),[i,_]),z[0],z[1]),U=!E.current,H=w[_]&&w[_].length>0,V=F.data,G=Object(a.n)(V)?N:V,W=F.error,q=Object(n.useRef)(G),K=y?Object(a.n)(V)?q.current:V:G,Y=!(H&&!Object(a.n)(W))&&(U&&!Object(a.n)(p)?p:!$().isPaused()&&(f?!Object(a.n)(G)&&b:Object(a.n)(G)||b)),X=!!(_&&t&&U&&Y),J=Object(a.n)(F.isValidating)?X:F.isValidating,Z=Object(a.n)(F.isLoading)?X:F.isLoading,Q=Object(n.useCallback)((async e=>{const t=P.current;if(!_||!t||k.current||$().isPaused())return!1;let n,i,o=!0;const s=e||{},l=!j[_]||!s.dedupe,c=()=>a.b?!k.current&&_===C.current&&E.current:_===C.current,u={isValidating:!1,isLoading:!1},f=()=>{A(u)},h=()=>{const e=j[_];e&&e[1]===i&&delete j[_]},p={isValidating:!0};Object(a.n)(I().data)&&(p.isLoading=!0);try{if(l&&(A(p),r.loadingTimeout&&Object(a.n)(I().data)&&setTimeout((()=>{o&&c()&&$().onLoadingSlow(_,r)}),r.loadingTimeout),j[_]=[t(S),Object(a.k)()]),[n,i]=j[_],n=await n,l&&setTimeout(h,r.dedupingInterval),!j[_]||j[_][1]!==i)return l&&c()&&$().onDiscarded(_),!1;u.error=a.g;const e=O[_];if(!Object(a.n)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&c()&&$().onDiscarded(_),!1;const s=I().data;u.data=d(s,n)?s:n,l&&c()&&$().onSuccess(n,_,r)}catch(e){h();const t=$(),{shouldRetryOnError:r}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===r||Object(a.m)(r)&&r(e))&&($().revalidateOnFocus&&$().revalidateOnReconnect&&!T()||t.onErrorRetry(e,_,t,(e=>{const t=w[_];t&&t[0]&&t[0](a.q.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,f(),!0}),[_,i]),ee=Object(n.useCallback)(((...e)=>Object(a.l)(i,C.current,...e)),[]);if(Object(a.t)((()=>{P.current=t,M.current=r,Object(a.n)(V)||(q.current=V)})),Object(a.t)((()=>{if(!_)return;const e=Q.bind(a.g,u);let t=0;const r=Object(a.s)(_,w,((r,n={})=>{if(r==a.q.FOCUS_EVENT){const r=Date.now();$().revalidateOnFocus&&r>t&&T()&&(t=r+$().focusThrottleInterval,e())}else if(r==a.q.RECONNECT_EVENT)$().revalidateOnReconnect&&T()&&e();else{if(r==a.q.MUTATE_EVENT)return Q();if(r==a.q.ERROR_REVALIDATE_EVENT)return Q(n)}}));return k.current=!1,C.current=_,E.current=!0,A({_k:S}),Y&&(Object(a.n)(G)||a.c?e():Object(a.p)(e)),()=>{k.current=!0,r()}}),[_]),Object(a.t)((()=>{let e;function t(){const t=Object(a.m)(m)?m(I().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){I().error||!g&&!$().isVisible()||!v&&!$().isOnline()?t():Q(u).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,g,v,_]),Object(n.useDebugValue)(K),f&&Object(a.n)(G)&&_){if(!a.b&&a.c)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,M.current=r,k.current=!1;const e=x[_];if(!Object(a.n)(e)){const t=ee(e);c(t)}if(!Object(a.n)(W))throw W;{const e=Q(u);Object(a.n)(K)||(e.status="fulfilled",e.value=!0),c(e)}}return{mutate:ee,get data(){return L.data=!0,K},get error(){return L.error=!0,W},get isValidating(){return L.isValidating=!0,J},get isLoading(){return L.isLoading=!0,Z}}}))},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"c",(function(){return o}
2)),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return c})),r.d(t,"a",(function(){return u}));const o=e=>{var t;if(!e)return;const{type:r,content_elements:a=[],promo_items:{basic:s,social_image:l}={}}=e;if("gallery"===r&&a.length>0)return o(a[0]);if(s&&"reference"!==s.type)return o(s);if("reference"===(null==s?void 0:s.type)&&"image"===(null===(t=s.referent)||void 0===t?void 0:t.type))return o(s.referent);if(l&&"reference"!==l.type)return o(l);if("custom_embed"===r){var c,u;if(null===(c=e.embed)||void 0===c||null===(u=c.config)||void 0===u?void 0:u.resourceType){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return t.publicId=e.embed.id,t.videoPoster="video"===e.embed.config.resourceType,t}if("video_clip"===e.subtype){return{height:e.embed.config.poster.height,width:e.embed.config.poster.width,url:e.embed.url}}return e}return"image"===r?e:r?void 0:e},a=(e,t,r)=>{const n=["globalContent","0PB_CollectionStoryCard","0PB_TroveStoryCard","0PB_ContentStoryCard","content-api","recommendations"],{renderables:i}=e,{id:o}=t,a={};let s=0,l=null;for(const e of i){const{customFields:{useGlobalContent:t=!1,useRecommendations:r=!1,collectionId:i="",topicEntity:o="",tagName:c="",sectionName:u="",articleIdOrUrl:d="",authorId:f="",amount:h}={}}=e.props;if("features"===e.collection&&("global/story-list"===e.type||"global/story-list-v2"===e.type||"global/marquee"===e.type||"global/homepage-marquee"===e.type||"global/story-list-global-content"===e.type||"account/loggedInMarque"===e.type)){s+=1;const p=[t,i&&""!==i,o&&""!==o,c&&""!==c||u&&""!==u||f&&""!==f,!!d,r];"global/story-list-global-content"===e.type&&(p[0]=!0);switch(n[p.indexOf(!0)]){case"0PB_CollectionStoryCard":l=`collection:${i}`;break;case"0PB_TroveStoryCard":l=`topic:${o}`;break;case"0PB_ContentStoryCard":l=`feed:${u}:${c}:${f}`;break;case"content-api":l="content-api";break;case"globalContent":l="globalContent";break;case"recommendations":l="recommendations";break;default:l=null}l in a||(a[l]={},a[l].storyCount=0),a[l][e.props.id]={pos:s,start:a[l].storyCount};let b=6;h?b=parseInt(h,10):"global/marquee"===e.type||"account/loggedInMarque"===e.type?b=3:"global/homepage marquee"===e.type?b=2:"global/story-list-global-content"===e.type&&(b=150),a[l].storyCount=a[l].storyCount+b}}return r in a&&o in a[r]?a[r][o].start:"refreshNeeded"};function s(e){const t=e.match(/([^ >]+)/gi);return t.shift(),t.pop(),t}function l(e,t={}){const{current:r}=t,n=r||document.getElementsByTagName("head")[0],i=document.createElement("script"),o=/([^=]+)="(.*)"/;for(let t=0;t<e.length;t+=1){const r=e[t];if("object"==typeof r){const[e]=Object.keys(r);i[e]=r[e]}else{const e=r.match(o);if(e){const[,t,r]=e;i[t]=r}else i[r]=r}}i.dataset.new="true",n.append(i)}function c(e,t={}){const r=function(e){const t=/^<script[^>]*src=["']([^"']+)["'][^>]*>/i,r=/<script.*?>([\s\S]*?)<\/script>/i,n={syncScripts:[],asyncScripts:[],codeBlocks:[]},i=e.match(/<script[\s\S]*?>([\0-\uFFFF]*?)<\/script>/gi);if(!i)return n;for(let e=0;e<i.length;e+=1){const o=i[e];if(o.match(t)){const e=s(o);e.includes("async")?n.asyncScripts.push(e):n.syncScripts.push(e)}else{const e=o.match(r);e&&n.codeBlocks.push(e[1])}}return n}(e),{asyncScripts:n,syncScripts:i,codeBlocks:o}=r;let a=0;window.gmgLoadNext=()=>{a+=1,l(i[a],t)},window.gmgRunBlocks=()=>{o.forEach((e=>{-1===e.indexOf("document.write")?window.eval(e):function(e,t){const r=/document.write\((.*)\);?/,[,n]=e.match(r);if(n){c(window.eval(n),t)}}(e,t)}))},n.length>0&&n.forEach((e=>{l(e,t)})),i.length>0?(i.forEach(((e,t)=>{const r=t<i.length-1?gmgLoadNext:gmgRunBlocks;e.push({onload:r})})),l(i[0],t)):window.gmgRunBlocks()}const u={wsls:{sbox:"gmg-wsls-sandbox.cdn.arcpublishing.com",prod:"www.wsls.com"},kprc:{sbox:"gmg-kprc-sandbox.cdn.arcpublishing.com",prod:"www.click2houston.com"},ksat:{sbox:"gmg-ksat-sandbox.cdn.arcpublishing.com",prod:"www.ksat.com"}
2,wdiv:{sbox:"gmg-wdiv-sandbox.cdn.arcpublishing.com",prod:"www.clickondetroit.com"},wjxt:{sbox:"gmg-wjxt-sandbox.cdn.arcpublishing.com",prod:"www.news4jax.com"},wkmg:{sbox:"gmg-wkmg-sandbox.cdn.arcpublishing.com",prod:"www.clickorlando.com"},wplg:{sbox:"gmg-wplg-sandbox.cdn.arcpublishing.com",prod:"local10.com"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(44);function o(){let[e]=Object(n.useState)(i.a);return Object(n.useEffect)((()=>()=>e.dispose()),[e]),e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));class n{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(28),i=r(25);var o=r(136);function a(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,i=null===(r=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===r?void 0:r.error;return i&&i instanceof Error?{error:i}:n?this._actionModel:{error:Object(o.a)(`unsupported action ${this.constructor.name}`)}}class s{constructor(){this._actionModel={}}toJson(){return a.apply(this)}}class l extends s{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const r=Array.from(e.entries());return t.forEach((e=>{r.push(["fl",e])})),r.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new n.a(r)):this.qualifiers.set(t,new i.a(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new n.a(e)):e instanceof n.a&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n=r(20);const i=e=>{if(!e)return;const t=["localhost","gmg-sandbox"].includes(n.ENVIRONMENT)?"sandbox":"prod",r={wdiv:{prod:"https://subs.api.clickondetroit.com",sandbox:"https://api-gmg-wdiv-sandbox.cdn.arcpublishing.com"},ksat:{prod:"https://subs.api.ksat.com",sandbox:"https://api-gmg-ksat-sandbox.cdn.arcpublishing.com"},kprc:{prod:"https://subs.api.click2houston.com",sandbox:"https://api-gmg-kprc-sandbox.cdn.arcpublishing.com"},wjxt:{prod:"https://subs.api.news4jax.com",sandbox:"https://api-gmg-wjxt-sandbox.cdn.arcpublishing.com"},wkmg:{prod:"https://subs.api.clickorlando.com",sandbox:"https://api-gmg-wkmg-sandbox.cdn.arcpublishing.com"},wplg:{prod:"https://subs.api.local10.com",sandbox:"https://api-gmg-wplg-sandbox.cdn.arcpublishing.com"},wsls:{prod:"https://subs.api.wsls.com",sandbox:"https://api-gmg-wsls-sandbox.cdn.arcpublishing.com"},demo:{prod:"https://api-gmg-demo-prod.cdn.arcpublishing.com",sandbox:"https://api-gmg-demo-sandbox.cdn.arcpublishing.com"}};try{return`${r[e][t]}`}catch(e){return}},o=()=>{const e="localhost"===n.ENVIRONMENT,t=["localhost","gmg-sandbox"].includes(n.ENVIRONMENT);return e?"https://n7hsqyavz55vgobpuwughwzzzm0slmye.lambda-url.us-east-1.on.aws":t?"https://dev-auth.gmg.io":"https://auth.gmg.io"}},function(e,t,r){"use strict";(function(e){var n=r(343),i=r(344),o=r(241);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r);e=s(e,n);var i=e.write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?
vendor: 5,498 bytes, line 2
2s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function y(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return H(F(t,e.length-r),e,r,n)}function O(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return O(e,t,r,n)}function x(e,t,r,n){return H(U(t),e,r,n)}function _(e,t,r,n){return H(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=k));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return c(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return u(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)}
vendor: 4,712 bytes, line 2
2,l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):b.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),u=e.slice(t,r),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=z(e[o]);return i}function $(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function A(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>
vendor: 7,071 bytes, line 2
2>8*(n?i:3-i)&255}function D(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,o){return o||D(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return o||D(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;r=new l(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||I(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=l.isBuffer(e)?e:F(new l(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>
2-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(60))},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__52__},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function b(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(3),i=r(1),o=r(0);const a=({level:e=4,children:t,innerContent:r,className:n,style:i,title:a})=>{if(!r&&null===t)return null;const s=`h${e}`;return r?Object(o.jsx)(s,{className:n,style:i,title:a,dangerouslySetInnerHTML:{__html:r}}):Object(o.jsx)(s,{className:n,style:i,title:a,children:t})};a.propTypes={children:n.node,innerContent:n.string,level:n.number,className:n.string,style:n.shape(),title:n.string},t.a=Object(i.memo)(a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return d}));var n=r(43),i=r.n(n),o=r(144),a=r(61);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=async(e,t)=>{if(await i.a.isLoggedIn()){const r=localStorage.getItem("ArcId.USER_INFO");let n;if(r&&"{}"!==r)n=JSON.parse(r).accessToken;else{const e=await Object(a.d)();n=null==e?void 0:e.replace(/^sbox_/,"")}if(!n)throw new Error("No access token found");return(await o.a.get(e,l({},t,{headers:l({},null==t?void 0:t.headers,{Authorization:`Bearer ${n}`})}))).data}return(await o.a.get(e,l({},t,{withCredentials:!0}))).data};async function d(e,{arg:t}){const r=await Object(a.d)();if(r){const n=await fetch(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}});if(!n.ok){const e=new Error("An error occurred while fetching the data");throw e.info=await n.json(),e.status=n.status,e}return await n.json()}throw new Error("No credentials found")}t.a=async(e,t)=>{const r=await o.a.get(e,t);if("pe"in r.data)throw new Error(r.data.pe.message);return r.data}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(10),s=r(0);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=({children:e,showLive:t=!1,customFields:{dividerHeadingGC:r=!1,dividerHeadingContent:o,dividerHeadingLink:l,dividerColor:u="$red.500",dividerMobileHeadingSize:d="$2",dividerTabletHeadingSize:f,dividerDesktopHeadingSize:h="$3",dividerHeadingWeight:p="$bold",dividerHeaderColor:b="$blueGray.900",horizontalAlignment:m="left",verticalAlignment:g="top",bgColor:v="$transparent",livePillColor:y="$red.600",dividerHeadingLevel:w=4,dividerHeadingIsH1:O=!1},id:j})=>{var x,_,S;const{globalContent:{tag:E,section:k,taxonomy:{primary_section:C}={}}={}}=Object(i.useAppContext)(),P=null===(x=o||e)||void 0===x?void 0:x.toUpperCase(),M=null===(_=E||k||(null==C?void 0:C.name))||void 0===_||null===(S=_.replace(/_/g," "))||void 0===S?void 0:S.toUpperCase(),$=P||M,T=O?1:w;let I;return l?I=l:r&&!P?(C&&(I=C.path),E&&(I=`/topic/${E.replace(/\s+/g,"_")}/`),k&&(I=`/${k.replace(/\s+/g,"_")}/`)):r&&P&&(I=void 0),Object(s.jsx)(n.E,{gap:"top"===g?"$1":"$0",sx:"center"===g?{position:"relative",zIndex:"10",whiteSpace:"nowrap",height:[d?a.g.labels[d]:null,null,h?a.g.labels[h]:null]}:null,children:$||r&&M?Object(s.jsxs)(s.Fragment,{children:[Object(s.jsxs)(n.q,{level:T,id:j,sx:c({letterSpacing:"$wide",fontSize:[d,f,h],fontWeight:p,color:b,textAlign:m},"center"===g?{position:"absolute",top:"50%",transform:"translateY(-50%)",backgroundColor:v,px:"$3",zIndex:"1"}:void 0,{},"center"===m&&"center"===g?{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}:void 0,{},"right"===m&&"center"===g?{top:"50%",right:"0",transform:"translateY(-50%)",pr:"$0"}:void 0,{},"left"===m&&"center"===g?{pl:"$0"}:void 0,{},t?{display:"flex",alignItems:"center",gap:"$2"}:void 0),children:[I?Object(s.jsx)(n.t,{href:I,children:$}):$,t?Object(s.jsx)(n.e,{as:"span",sx:{fontSize:"$0",borderRadius:"$full",borderColor:y,borderWidth:"$1",borderStyle:"solid",color:y,px:"$2",py:"$1"},children:"LIVE"}):null]}),u?Object(s.jsx)(n.l,{variant:null,sx:c({color:u,border:"0",mb:"$0",borderBottom:"4px solid currentColor"},"center"===g?{position:"absolute",width:"$full",top:"50%",left:"0",transform:"translateY(-50%)",zIndex:"0"}:{})}):null]}):null})};d.propTypes={customFields:o.shape(c({},a.f,{dividerHeadingLevel:o.oneOf([1,2,3,4,5,6]).tag({name:"Heading Level",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},defaultValue:4,group:"Header Options"}),dividerHeadingIsH1:o.boolean.tag({name:"Page Title (H1)",description:"This overrides the heading level to H1 for proper semantics when titling the page",defaultValue:!1,group:"Header Options"})}))},t.default=d},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(63);function i(e){return n.a.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return L}));var n=r(1),i=r(31),o=r(20),a=r(14),s=r(12);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=(e,t,r,n,i,o,a=!1)=>{if(e)return"/15466288/TEST";const s="15466288",l=t.toUpperCase(),c=`Web_${r}_Video_Preroll`,u=n.slice(1).replaceAll("/","_").toLowerCase()||i.replaceAll("_","-").replaceAll(" ","-").toLowerCase()||"";return a?`/${s}/Remnant/Video/Preroll/${"Desktop"===r?"Desktop":"Mobile_Web"}_Preroll/${l}_${"Desktop"===r?"Desktop":"Mobile_Web"}_Preroll`:`/${s}/${l}/${c}${u?`/${u}`:""}/${o}`};async function f(e,t,r=null,n=null,i=null,l=!1){var u,f;console.log("[ANYCLIP]: useBuildAdTag params",{arcSite:e,videoId:t,contentCoid:r,contentSection:n,contentTags:i,programmaticOnly:l});const h=["sandbox","gmg-sandbox"].includes(o.ENVIRONMENT),p=window.innerWidth>=970?"Desktop":"Mobile";let b=n||"";const m=b.split("/").pop()||"";b=b.startsWith("/")?b:`/${b}`,b=b.endsWith("/")?b.slice(0,-1):b;const g=null===(u=document.querySelector("meta[name='atdlayout']"))||void 0===u||null===(f=u.getAttribute("content"))||void 0===f?void 0:f.split("_")[0];if(l){var v;const t=d(h,e,p,b,m,g||"other",l),r=new URL("https://pubads.g.doubleclick.net/gampad/ads"),n=null!==(v=Object(s.d)("newspassid"))&&void 0!==v?v:"",i=new URLSearchParams({iu:t,env:"vp",ad_type:"video",hl:"en",plcmt:"1",vpa:"auto",vpmute:"1",wta:"1",vpos:"preroll",impl:"s",tfcd:"0",npa:"0",gdfp_req:"1",output:"vast",sz:"640x480",unviewed_position_start:"1",max_ad_duration:"30000",ppid:n,dc_vpm:"6"}),o=window.location.href;i.append("url",o),i.append("description_url",o),r.search=i.toString();const a=r.toString();return console.log("[ANYCLIP]: Built Programmatic AdTag: ",a),a}const y="localhost"===o.ENVIRONMENT,w=new URLSearchParams(c({},y&&{_website:e},{query:JSON.stringify({distributionId:t,"arc-site":e,published:!0})})),O=`${y?"http://www.gmg-local.com":h?`https://gmg-${e}-sandbox.cdn.arcpublishing.com`:`https://${a.b[e]}`}/pf/api/v3/content/fetch/anyclip?${w}`;let j={};try{var x,_,S;if(t){const e=await fetch(O);if(!e.ok)throw new Error(404===e.status?"Not Found":`Fetch Error: ${e.status}`);j=await e.json()}const o=(j&&"data"in j?j.data:[])[0],l=o&&"feedDescription"in o?o.feedDescription:void 0,u=o&&"labels"in o&&o.labels?o.labels.filter((e=>"Publisher Tags"===e.name)).map((e=>e.value)):[],f=o&&"labels"in o?null===(x=o.labels)||void 0===x||null===(_=x.find((e=>"canonical_url"===e.name)))||void 0===_?void 0:_.value:void 0,v=d(h,e,p,b,m,g||"other"),y=null!==(S=Object(s.d)("newspassid"))&&void 0!==S?S:"",w=new URL("https://pubads.g.doubleclick.net/gampad/ads"),E=new URLSearchParams({iu:v,env:"vp",ad_type:"video",vpos:"preroll",hl:"en",plcmt:"1",vpa:"click",vpmute:"0",wta:"1",impl:"s",tfcd:"0",npa:"0",gdfp_req:"1",output:"vast",sz:"640x480",unviewed_position_start:"1",max_ad_duration:"30000",ppid:y,dc_vpm:"6"}),k=l&&a.d[l]?`https://www.${a.d[l]}${f}`:window.location.href;E.append("url",window.location.href),E.append("description_url",k);const C=new URLSearchParams(c({},u.length>0&&{tags:u.join(",")},{},t&&{coid:t},{ppid:y}));r&&r!==t&&C.append("content_coid",r),n&&C.append("content_section",n.startsWith("/")?n:`/${n}`),i&&C.append("content_tags",Object(a.k)(i,", ",",").toLowerCase()),E.append("cust_params",C.toString()),w.search=E.toString();const P=w.toString();return console.log("[ANYCLIP]: Built Video AdTag: ",P),P}catch(e){throw console.error("[ANYCLIP]:",e),e}}var h=r(2),p=r(5),b=r(37),m=r(45),g=r(76),v=r(94),y=r(179),w=r(26);const O=()=>{const{renderables:e,arcSite:t}=Object(p.useAppContext)(),r=e.some((e=>"global/story-list-v2"===e.type&&void 0!==e.props.customFields.livestreamPositionIndex&&null!==e.props.customFields.livestreamPositionIndex)),i=Object(w.useContent)(void 0!==r?{source:"all-livestreams"}:void 0),o=Object(n.useMemo)((()=>!!((null==i?void 0:i.assets)&&i.assets.length>0)&&i.assets.some((e=>e.canonical_website===t&&"epg"===e.stream_source&&e.distribution.includes("web_homepage")))),[t,null==i?void 0:i.assets]);return Object(n.useMemo)((()=>{const t=["globalContent","0PB_CollectionStoryCard","0PB_TroveStoryCard","0PB_ContentStoryCard","content-api","recommendations","anyclip"],r={};let n=0,i=null;for(const a of e){const{customFields:{useGlobalContent:e=!1,useRecommendations:s=!1,collectionId:l="",topicEntity:c="",tagName:u="",sectionName:d="",videos:f,articleIdOrUrl:h="",authorId:p="",amount:b}={}}=a.props;if("features"===a.collection&&("global/story-list"===a.type||"global/story-list-v2"===a.type||"global/marquee"===a.type||"global/homepage-marquee"===a.type||"global/story-list-global-content"===a.type||"account/loggedInMarque"===a.type)){n+=1;const m=[e,l&&""!==l,c&&""!==c,!(f||!(u&&""!==u||d&&""!==d||p&&""!==p)),!!h,s,!(!f||!(null!==u&&""!==u||null!==d&&""!==d))];"global/story-list-global-content"===a.type&&(m[0]=!0);switch(t[m.indexOf(!0)]){case"0PB_CollectionStoryCard":i=`collection:${l}`;break;case"0PB_TroveStoryCard":i=`topic:${c}`;break;case"0PB_ContentStoryCard":i=`feed:${d}:${u}:${p}`;break;case"content-api":i="content-api";break;case"anyclip":i=`anyclip:${d}:${u.toLowerCase()}`;break;case"globalContent":i="globalContent";break;
2case"recommendations":i="recommendations";break;default:i=null}if(null!==i){i in r||(r[i]={features:{},meta:{storyCount:0}},r[i].meta={storyCount:0}),r[i].features[a.props.id]={pos:n,start:r[i].meta.storyCount,amount:Number(b)},void 0!==a.props.customFields.livestreamPositionIndex&&null!==a.props.customFields.livestreamPositionIndex&&(r[i].meta.hasLivestream=!0);let e=6;o&&r[i].meta.hasLivestream&&1!==r[i].features[a.props.id].pos?(e=Number(b),r[i].features[a.props.id].amount=Number(b),r[i].features[a.props.id].start=r[i].features[a.props.id].start-1):o&&r[i].meta.hasLivestream&&1===r[i].features[a.props.id].pos?e=Number(b):b?e=parseInt(b,10):"global/marquee"===a.type||"account/loggedInMarque"===a.type?e=3:"global/homepage-marquee"===a.type?e=2:"global/story-list-global-content"===a.type&&(e=150),r[i].meta.storyCount=r[i].meta.storyCount+e}}}return r}),[o,e])};async function j(e){const{isInitialized:t,getUser:n}=await r.e(0).then(r.bind(null,220));if(t()){const t=n();t&&t.setCustomUserAttribute("usprivacy",e)}}var x=r(61);async function _(){return"localhost"===o.ENVIRONMENT?"https://hegusumex5oi6mcugum24kukrm0nrdjn.lambda-url.us-east-1.on.aws/newspassid/uid2":"gmg-sandbox"===o.ENVIRONMENT?"https://npid-braze-dev.gmg.io/newspassid/uid2":"https://npid-braze.gmg.io/newspassid/uid2"}async function S(e,t){const r=await Object(x.b)(),n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(null!=t?t:{}),credentials:"include"});if(!n.ok){const e=await n.text().catch((()=>""));throw new Error(`[UID2] Request failed ${n.status}: ${e}`)}return await n.json()}async function E(e){const t=await _(),r=e.trim().toLowerCase();try{return await S(`${t}/token/generate`,{email:r})}catch(e){return console.error("[UID2] generateIdentityByEmail error",e),null}}async function k(e){try{const t=await _();return await S(`${t}/token/refresh`,{refresh_token:e.refresh_token,refresh_response_key:e.refresh_response_key})}catch(e){return console.error("[UID2] refreshIdentity error",e),null}}function C(e){"undefined"!=typeof window&&(window.gmg=window.gmg||{},e&&e.advertising_token?window.gmg.uid2={advertisingToken:e.advertising_token}:window.gmg.uid2={advertisingToken:void 0})}function P(e){const{siteProperties:{uid2:t}}=Object(p.useAppContext)(),[r,i]=Object(n.useState)(null),[o,a]=Object(n.useState)(!1),[l,c]=Object(n.useState)(!1),[u,d]=Object(n.useState)(null),f=Object(n.useRef)(void 0),h=Object(n.useRef)(null),b=Object(n.useRef)(!1),m=Object(n.useRef)(!1),g=Object(n.useRef)(null==e?void 0:e.onUpdate);Object(n.useEffect)((()=>{g.current=null==e?void 0:e.onUpdate}),[null==e?void 0:e.onUpdate]);const v=Object(n.useCallback)((e=>{var t;Object(s.c)("gmg_uid2_updated",e),null===(t=g.current)||void 0===t||t.call(g,e)}),[]),y=!1!==(null==e?void 0:e.autoRefresh)&&!1!==(null==t?void 0:t.refreshViaProxy),w=Object(n.useCallback)((e=>{if(e){const r=JSON.stringify(e);localStorage.setItem("gmg_uid2_identity",r),Object(s.k)("__uid2_advertising_token",e.advertising_token,{expires:new Date(e.refresh_from),domain:null==t?void 0:t.cookieDomain,path:"/",sameSite:"Lax",secure:"https:"===window.location.protocol})}else localStorage.removeItem("gmg_uid2_identity"),Object(s.k)("__uid2_advertising_token","",{expires:new Date(0),domain:null==t?void 0:t.cookieDomain,path:"/",sameSite:"Lax",secure:"https:"===window.location.protocol})}),[null==t?void 0:t.cookieDomain]),O=Object(n.useCallback)((()=>{f.current&&(clearTimeout(f.current),f.current=void 0)}),[]),j=Object(n.useCallback)((async()=>{if(!r||m.current)return r;if(!(null==t?void 0:t.apiBase))return console.error("[UID2] No API base URL configured for refresh"),r;m.current=!0,c(!0),d(null);try{const e=Date.now();if(r.refresh_expires<=e)return i(null),C(null),w(null),O(),v(null),null;const t=await k({refresh_token:r.refresh_token,refresh_response_key:r.refresh_response_key});return t?(h.current=t,i(t),C(t),w(t),v(t),t):(d("Failed to refresh UID2 identity"),r)}catch(e){console.error("[UID2] Refresh error",e),d(e instanceof Error?e.message:"Failed to refresh UID2");const t=Date.now();return r.refresh_expires<=t?(i(null),C(null),w(null),O(),v(null),null):r}finally{m.current=!1,c(!1)}}),[O,null==t?void 0:t.apiBase,r,v,w]),x=Object(n.useCallback)((e=>{if(!y)return;O();const r=Date.now(),n=e.refresh_from||r+9e5,o=Math.floor(5e3*Math.random()),a=Math.max(0,n-r+o);f.current=setTimeout((async()=>{try{const e=h.current;if(!e)return;if(!(null==t?void 0:t.apiBase))return;if(m.current)return;
2m.current=!0,c(!0),d(null);const r=Date.now();if(e.refresh_expires<=r)return h.current=null,i(null),C(null),w(null),void v(null);const n=await k({refresh_token:e.refresh_token,refresh_response_key:e.refresh_response_key});n&&(h.current=n,i(n),C(n),w(n),v(n),x(n))}catch(e){console.error("[UID2] Scheduled refresh error",e),d(e instanceof Error?e.message:"Failed to refresh UID2")}finally{m.current=!1,c(!1)}}),a)}),[y,O,null==t?void 0:t.apiBase,v,w]),_=Object(n.useCallback)(((e,t=!1)=>{O(),h.current=e,i(e),C(e),w(e),v(e),t&&e&&x(e)}),[O,v,w,x]),S=Object(n.useCallback)((async e=>{if(!1===(null==t?void 0:t.enabled))return null;if(!(null==t?void 0:t.apiBase))return console.error("[UID2] No API base URL configured"),d("UID2 API base URL not configured"),null;if(b.current)return h.current;b.current=!0,a(!0),d(null);try{let t=null;const r=localStorage.getItem("gmg_uid2_identity")||Object(s.d)("gmg_uid2_identity");if(r)try{const e=JSON.parse(r);(function(e){const t=Date.now();return e.identity_expires>t})(e)&&(t=e)}catch(e){console.error("[UID2] Failed to parse cached identity",e)}let n=t;if(n||(n=await E(e)),n){const t=Date.now();if(n.refresh_from&&n.refresh_from<=t){try{const e=await k({refresh_token:n.refresh_token,refresh_response_key:n.refresh_response_key});if(e)return _(e,!0),e}catch(e){console.error("[UID2] Failed to refresh cached identity:",e)}return n=await E(e),n?(_(n,!0),n):(d("Failed to refresh or generate UID2 identity"),null)}return _(n,!0),n}return d("Failed to generate UID2 identity"),null}catch(e){return console.error("[UID2] Initialize error",e),d(e instanceof Error?e.message:"Failed to initialize UID2"),null}finally{b.current=!1,a(!1)}}),[t,_]),P=Object(n.useCallback)((e=>{_(e,!0)}),[_]),M=Object(n.useCallback)((()=>{_(null)}),[_]);return Object(n.useEffect)((()=>()=>{O()}),[O]),{identity:r,isInitializing:o,isRefreshing:l,error:u,initialize:S,refresh:j,setIdentity:P,clear:M,cancelScheduledRefresh:O}}const M=["gmg-sandbox","localhost"].includes(o.ENVIRONMENT);function $(){var e;const t=Object(n.useRef)(!1),{arcSite:o,siteProperties:{siteDomain:a,braze:l}}=Object(p.useAppContext)(),{data:c,status:u}=Object(i.b)(),d=Object(i.c)(),{initialize:f,clear:h}=P();Object(n.useEffect)((()=>{(async()=>{try{const r=Object(s.j)();if(r){var e;d({type:"SET_USER_DATA",payload:r}),d({type:"LOG_IN"}),(null===(e=r.arcSubs)||void 0===e?void 0:e.email)&&Object(s.l)(r.arcSubs.email),Object(s.f)().then((e=>{e?Object(s.e)(a):d({type:"LOG_OUT"})})).catch((()=>{d({type:"LOG_OUT"})}))}else{if(await Object(s.f)()){const e=await Object(s.e)(a);var t;if(e)d({type:"SET_USER_DATA",payload:e}),d({type:"LOG_IN"}),(null===(t=e.arcSubs)||void 0===t?void 0:t.email)&&Object(s.l)(e.arcSubs.email);else d({type:"LOG_OUT"})}else d({type:"LOG_OUT"})}}catch(e){d({type:"LOG_OUT"})}})()}),[a,d]),Object(n.useEffect)((()=>{if("loggedOut"!==u)try{var e,t;const r=null===(e=c.arcSubs)||void 0===e||null===(t=e.email)||void 0===t?void 0:t.trim().toLowerCase();r&&f(r).catch((e=>{console.error("[UID2][use-subs-auth] initialization error",e)}))}catch(e){console.error("[UID2][use-subs-auth] error",e)}}),[null===(e=c.arcSubs)||void 0===e?void 0:e.email,u,f]),Object(n.useEffect)((()=>{var e;let n=null;const i=Object(s.d)("npid_segments")||localStorage.getItem("npid_segments"),a=null==i?void 0:i.includes("should_load_sdk");return t.current||!a&&!(null===(e=c.arcSubs)||void 0===e?void 0:e.email)||(n=setTimeout((()=>{(async()=>{if(!t.current){t.current=!0;try{const{initialize:e,openSession:t,changeUser:n,getUser:i,getDeviceId:a,isInitialized:u}=await r.e(0).then(r.bind(null,220));u()||e(M?l.sandboxApiKey:l.prodApiKey,{baseUrl:l.sdkEndpoint,enableLogging:!!M});const d=Object(s.d)("newspassid")||localStorage.getItem("newspassid"),f=Object(s.d)("BCSessionID"),h=a();h&&localStorage.setItem("gmg_device_id",h);const p=i();if(void 0!==p){const e=p.getUserId();(!e&&c.arcSubs.uuid||c.arcSubs.uuid&&e!==c.arcSubs.uuid)&&n(c.arcSubs.uuid),p.setCustomUserAttribute(`station_${o}`,!0),p.setCustomUserAttribute("last_seen_at",(new Date).toISOString()),d&&(p.addAlias(d,"npid"),p.setCustomUserAttribute("npid",d)),f&&(p.addAlias(f,"blueconic_id"),p.setCustomUserAttribute("blueconic_id",f)),c.arcSubs.email&&p.addAlias(c.arcSubs.email,"email"),c.arcSubs.emailVerified&&p.setCustomUserAttribute(`${o}_insider`,!0),c.arcSubs.email&&p.setEmail(c.arcSubs.email),c.arcSubs.uuid&&(p.addAlias(c.arcSubs.uuid,"arc_subs_id"),p.setCustomUserAttribute("arc_subs_id",c.arcSubs.uuid)),c.viafoura&&"object"==typeof c.viafoura&&!("error"in c.viafoura)&&c.viafoura.uuid&&(p.addAlias(c.viafoura.uuid,"viafoura_id"),p.setCustomUserAttribute("viafoura_id",c.viafoura.uuid))}
2t()}catch(e){console.error("[useSubsAuth] Error initializing Braze",e),t.current=!1}}})()}),100)),()=>{n&&clearTimeout(n)}}),[o,l.prodApiKey,l.sandboxApiKey,l.sdkEndpoint,c.arcSubs.email,c.arcSubs.emailVerified,c.arcSubs.uuid,c.viafoura,u]),Object(n.useEffect)((()=>{const e=e=>{d({type:"SET_USER_DATA",payload:e.detail}),d({type:"LOG_IN"})};return document.addEventListener("gmg_uo_updated",e),()=>{document.removeEventListener("gmg_uo_updated",e)}}),[d]),Object(n.useEffect)((()=>{var e;null===(e=window.vf)||void 0===e||e.$subscribe("authentication","logout",(()=>{Object(s.o)(c),h(),d({type:"LOG_OUT"})}));const t=()=>{Object(s.o)(c),h(),d({type:"LOG_OUT"})};return document.addEventListener("gmg_logout",t),()=>{document.removeEventListener("gmg_logout",t)}}),[d,c,h])}var T=r(55),I=r(177),A=r(169),R=r(0);function D({children:e}){const{arcSite:t,siteProperties:{enableNielsen:r}}=Object(p.useAppContext)();Object(n.useEffect)((()=>{const e=Object(s.d)("whizUserAccessToken"),t=Object(s.d)("whizUserRefreshToken"),r=Object(s.d)("whizUserId");e&&t&&r&&window.localStorage.setItem("ArcId.USER_INFO",JSON.stringify({uuid:r,accessToken:e,refreshToken:t}))}),[]),Object(n.useEffect)((()=>{const e=Object(s.d)("X-Baron-Access-Token"),t=Object(s.d)("X-Baron-Refresh-Token"),r=Object(s.d)("X-Baron-UUID");e&&t&&r&&window.localStorage.setItem("ArcId.USER_INFO",JSON.stringify({uuid:r,accessToken:e,refreshToken:t}))}),[]),$(),Object(n.useEffect)((()=>{var e;if(!(null===(e=window)||void 0===e?void 0:e.Osano))return;const t=window.Osano.cm;if(!t)return;const r=async e=>{if(window.dataLayer=window.dataLayer||[],"ACCEPT"===e.OPT_OUT){const e="1YYY";window.dataLayer.push({BC_usprivacy:e}),Object(s.k)("usprivacy",e),j(e)}else if("DENY"===e.OPT_OUT){const e="1YNY";window.dataLayer.push({BC_usprivacy:e}),Object(s.k)("usprivacy",e),j(e)}};return t.addEventListener("osano-cm-consent-saved",r),()=>{t.removeEventListener("osano-cm-consent-saved",r)}}),[]);const i=O();return Object(R.jsx)(h.y,{theme:g.a,children:Object(R.jsx)(m.a,{value:{fetcher:T.a},children:Object(R.jsx)(I.a,{children:Object(R.jsx)(v.a,{children:Object(R.jsx)(A.a,{disabled:"wplg"===t||!r,children:Object(R.jsxs)(y.a,{initialFeatures:i,children:[e,Object(R.jsx)(b.Toaster,{swipeDirections:["bottom","left","right","top"]})]})})})})})})}function L({children:e}){return Object(n.useEffect)((()=>{window.anyClipBuildAdTag=f}),[]),Object(R.jsx)(i.a,{children:Object(R.jsx)(D,{children:e})})}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"d",(function(){return h})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return b}));var n=r(43),i=r.n(n),o=r(20);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l=null,c=null,u=0;const d=async()=>c||(null!==l&&Date.now()-u<12e4&&l?l:(c=i.a.extendSession().then((e=>{if("code"in e)return console.error("[fetchSessionData] Error from Identity.extendSession:",e),e;if(!e.accessToken)return{code:"NO_ACCESS_TOKEN",message:"No access token in response"};const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({accessToken:e.accessToken,refreshToken:e.refreshToken,uuid:e.uuid,email:e.email},e);return l=t,u=Date.now(),t})).catch((e=>(console.error("[fetchSessionData] Error calling Identity.extendSession:",e),{code:"SESSION_ERROR",message:e.message||"Failed to extend session"}))).finally((()=>{c=null})),c)),f=()=>{l=null,c=null,u=0},h=async(e=!0)=>{try{const t=await d();if("code"in t||!("accessToken"in t)||!t.accessToken)return null;return`${["localhost","gmg-sandbox"].includes(o.ENVIRONMENT)&&e?"sbox_":""}${t.accessToken}`}catch(e){return console.error("[getSubsAT] Error",{error:e}),null}},p=async()=>{try{const e=await d();return!("code"in e)&&"accessToken"in e&&e.accessToken?e.accessToken:null}catch(e){return console.error("[getAccessToken] Error",{error:e}),null}},b=async()=>{try{const e=await d();return"code"in e?(console.error("[getSessionResponse] Error getting user profile:",e),null):e}catch(e){return console.error("[getSessionResponse] Error",{error:e}),null}}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.isAPIErrorResponse=void 0,t.isAPIErrorResponse=function(e){return void 0!==e.code&&void 0!==e.message}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let o=new class{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},function(e,t,r){"use strict";var n=r(43),i=r.n(n).a;var o={"Content-Type":"application/json"},a="[Arc Sales SDK]";function s(e){e?(ue.apiOrigin=e&&e.apiOrigin&&e.apiOrigin.replace(/\/$/,"")||ue.apiOrigin,e.Identity&&function(e){return!!e.heartbeat&&void 0===e._selectedStorage}(e.Identity)||e.Identity&&function(e){return!!e.heartbeat&&void 0!==e._selectedStorage}(e.Identity)?ue._Identity=e.Identity:(i.options({apiOrigin:ue.apiOrigin}),ue._Identity=i,console.warn("".concat(a," No Identity provided to Sales.options.")))):console.warn("".concat(a," No options specified when calling Sales.options"))}var l=r(4),c=r(62),u=r(15),d=r.n(u);function f(){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(e){return ue._configOptions?[2,ue._configOptions]:[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/config"),{method:"GET",cache:"no-cache",headers:Object(l.__assign)({},o)}).then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return ue._configOptions=e,e}))]}))}))}function h(e){return!!e.subscriptionID||0===e.subscriptionID}function p(e){return!!(null==e?void 0:e.subscriptionID)||0===(null==e?void 0:e.subscriptionID)}function b(e){return ue.subscriptions.find((function(t){return t.subscriptionID===e}))}function m(e,t){var r=e.find((function(e){return e.subscriptionID===t.subscriptionID})),n=e.filter((function(e){return e.subscriptionID!==t.subscriptionID})),i=Object(l.__assign)(Object(l.__assign)({},r),t);return Object(l.__spreadArray)(Object(l.__spreadArray)([],Object(l.__read)(n),!1),[i],!1)}function g(e,t){return t.reduce((function(e,t){return m(e,t)}),e)}function v(e,t){return t.reduce((function(e,t){return function(e,t){var r=e.find((function(e){return e.subscriptionID===t.subscriptionID})),n=e.filter((function(e){return e.subscriptionID!==t.subscriptionID})),i=Object(l.__assign)(Object(l.__assign)({},r),t);return Object(l.__spreadArray)(Object(l.__spreadArray)([],Object(l.__read)(n),!1),[i],!1)}(e,t)}),e)}function y(e,t){var r=e.find((function(e){return e.orderNumber===t.orderNumber})),n=e.filter((function(e){return e.orderNumber!==t.orderNumber})),i=Object(l.__assign)(Object(l.__assign)({},r),t);return Object(l.__spreadArray)(Object(l.__spreadArray)([],Object(l.__read)(n),!1),[i],!1)}function w(e){return void 0===e&&(e={}),Object(l.__awaiter)(this,void 0,void 0,(function(){var t,r;return Object(l.__generator)(this,(function(n){switch(n.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:return t=n.sent(),r=Object(l.__assign)(Object(l.__assign)({},e),{headers:t?Object(l.__assign)(Object(l.__assign)({},e.headers),{Authorization:ue._Identity.userIdentity.accessToken}):Object(l.__assign)({},e.headers)}),t||(r=Object(l.__assign)(Object(l.__assign)({},r),{credentials:"include"})),[2,r]}}))}))}function O(e){var t={};return Object.keys(e).forEach((function(r){t[r]=e[r]||void 0})),t}function j(e,t,r){return Object(l.__awaiter)(this,void 0,void 0,(function(){var n;return Object(l.__generator)(this,(function(i){switch(i.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!i.sent())throw new Error("".concat(a," Missing or invalid jwt"));return n=JSON.stringify({reason:t,reasonCode:r}),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/cancel"),{method:"PUT",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o),body:n}).then(d.a).then((function(t){if(h(t)){var r=b(e);return ue.subscriptions=m(ue.subscriptions,Object(l.__assign)(Object(l.__assign)({},r),{subscriptionID:t.subscriptionID,status:3})),t}throw t}))]}}))}))}function x(){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(e){switch(e.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/allactive"),{method:"GET",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(Array.isArray(e)){var t=e.map((function(e){var t=e.statusID,r
2=Object(l.__rest)(e,["statusID"]);return Object(l.__assign)(Object(l.__assign)({},r),{status:t})}));return ue.subscriptions=g(ue.subscriptions,t),t}throw e}))]}}))}))}function _(){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(e){switch(e.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/all"),{method:"GET",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(Array.isArray(e)){var t=e.map((function(e){var t=e.statusID,r=Object(l.__rest)(e,["statusID"]);return Object(l.__assign)(Object(l.__assign)({},r),{status:t})}));return ue.subscriptions=g(ue.subscriptions,t),t}throw e}))]}}))}))}function S(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/details"),{method:"GET",cache:"no-cache",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(p(e))return ue.subscriptions=m(ue.subscriptions,e),e;throw e}))]}}))}))}function E(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/sharing"),{method:"GET",cache:"no-cache",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(t=e,Array.isArray(t.sharedSubscriptions))return ue.sharedSubscriptions=v(ue.sharedSubscriptions,e.sharedSubscriptions),e;throw e;var t}))]}}))}))}function k(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/stopshare"),{method:"PUT",headers:{Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)}}).then(d.a).then((function(e){if(h(e))return ue.sharedSubscriptions=ue.sharedSubscriptions.filter((function(t){return t.subscriptionID!==e.subscriptionID})),e;throw e}))]}}))}))}function C(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/share"),{method:"PUT",body:JSON.stringify({email:t}),headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(void 0!==e.redeemCode)return e;throw e}))]}}))}))}function P(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t=this;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/redeem"),{method:"POST",body:JSON.stringify({token:e}),headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){return Object(l.__awaiter)(t,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return h(e)?[4,ue.getSubscriptionDetails(e.subscriptionID)]:[3,2];case 1:return t.sent(),[2,e];case 2:throw e}}))}))}))]}}))}))}function M(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t=this;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v2/subscriptions/enterprise"),{method:"POST",body:JSON.stringify({nonce:e}),headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){return Object(l.__awaiter)(t,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return h(e)?[4,ue.getSubscriptionDetail
2s(e.subscriptionID)]:[3,2];case 1:return t.sent(),[2,e];case 2:throw e}}))}))}))]}}))}))}function $(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/").concat(e,"/rescue"),{method:"PUT",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o),body:JSON.stringify({})}).then(d.a).then((function(t){if(h(t)){var r=b(e);return ue.subscriptions=m(ue.subscriptions,Object(l.__assign)(Object(l.__assign)({},r),{subscriptionID:t.subscriptionID,status:1})),t}throw t}))]}}))}))}function T(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){var r;return Object(l.__generator)(this,(function(n){switch(n.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!n.sent())throw new Error("".concat(a," Missing or invalid jwt"));return r=JSON.stringify({billingAddress:e,subscriptionID:t}),[2,ue.getSubscriptionDetails(t).then((function(e){if(p(e))return fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/address"),{method:"PUT",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o),body:r}).then(d.a).then((function(r){if(r.country)return ue.subscriptions=m(ue.subscriptions,Object(l.__assign)(Object(l.__assign)({},e),{subscriptionID:t,billingAddress:r})),r;throw r}));throw e}))]}}))}))}function I(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/gift/").concat(e),{method:"PUT",body:JSON.stringify(t),headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if((t=e).subscriptionID&&void 0!==t.redeemCode)return e;throw e;var t}))]}}))}))}function A(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t=this;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/subscription/gift/redeem"),{method:"POST",body:JSON.stringify({token:e}),headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){return Object(l.__awaiter)(t,void 0,void 0,(function(){return Object(l.__generator)(this,(function(t){if(h(e))return[2,e];throw e}))}))}))]}}))}))}function R(e){return!!e.orderNumber}function D(e){return!!e.items}function L(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[4,w({method:"GET",headers:o,cache:"no-cache"})];case 2:return t=r.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/order/detail/").concat(e),t).then(d.a).then((function(e){if(R(e))return ue.orders=y(ue.orders,e),e;throw e}))]}}))}))}function N(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=10),void 0===r&&(r={}),Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(n){switch(n.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!n.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/order/history?pageSize=").concat(t,"&start=").concat(e).concat(r.status?"&status=".concat(r.status):""),{method:"GET",cache:"no-cache",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(void 0!==(r=e).start&&Array.isArray(r.orders))return ue.orders=(t=ue.orders,e.orders.reduce((function(e,t){return y(e,t)}),t)),e;throw e;var t,r}))]}}))}))}function B(){return Object(l.__awaiter)(this,void 0,void 0,(function(){var e;return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,w({method:"GET",headers:o})];case 1:return e=t.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/cart"),e).then(d.a).then((function(e){if(D(e))return ue.cart=e,e;throw e}))]}}))}))}var z=r(300),F=r.n(z);function U(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){var r;return Object(l.__generator)(this,(function(n){switch(n.label){case 0:return[4,w({method:"POST",headers:o,body:JSON.stringify({items:e,billingAddress:t})})];case 1:return r=n.sent(),[2,F()(ue.apiOrigin,r).then((function(e){if(D(e))return ue.cart=e,e;throw e}))]}}))}))}function H(e){return ue._Identity.heartbeat().then((function(){return fetch("".concat(ue.apiOrigin,"/sales/public/v1/cart/item/").concat(e),{method:"DELETE",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)})})).then(d.a).then((function(e){if(D(e))return ue.cart=e,e;throw e}))}function V(){return Object(l.__awaiter)(this,void 0,void 0,(function(){var e;return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,w({method:"DELETE",headers:o})];case 1:return e=t.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/cart/clear"),e).then(d.a).then((function(e){if(D(e))return ue.cart=e,e;throw e}))]}}))}))}function G(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,ue.getConfig()];case 1:if(t=r.sent(),void 0!==t.checkoutRecaptchaEnabled&&t.checkoutRecaptchaEnabled&&!e)throw{code:"130001",message:"Captcha token invalid"};return[2,!0]}}))}))}function W(e,t,r,n,i,o,a,s){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(l){return[2,q(r,e,t,n,i,o,a,s)]}))}))}
2function q(e,t,r,n,i,a,s,c){return Object(l.__awaiter)(this,void 0,void 0,(function(){var u=this;return Object(l.__generator)(this,(function(f){return[2,G(c).then((function(){return Object(l.__awaiter)(u,void 0,void 0,(function(){var u,f;return Object(l.__generator)(this,(function(l){switch(l.label){case 0:return u=JSON.stringify(O({email:t,phone:r,billingAddress:e,firstName:n,lastName:i,secondLastName:a,shippingAddress:s,"recaptcha-token":c})),[4,w({method:"POST",headers:o,body:u})];case 1:return f=l.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/checkout/order"),f).then(d.a).then((function(e){if(R(e))return ue.currentOrder=e,e;throw e}))]}}))}))}))]}))}))}function K(){return Object(l.__awaiter)(this,void 0,void 0,(function(){var e;return Object(l.__generator)(this,(function(t){switch(t.label){case 0:return[4,w({method:"GET",cache:"no-cache",headers:o})];case 1:return e=t.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/checkout/payment/options"),e).then(d.a).then((function(e){if(Array.isArray(e))return ue._paymentOptions=e,e;throw e}))]}}))}))}function Y(){return Object(l.__awaiter)(this,void 0,void 0,(function(){return Object(l.__generator)(this,(function(e){switch(e.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(a," Missing or invalid jwt"));return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/checkout/addresses"),{method:"GET",headers:Object(l.__assign)({Authorization:"Bearer ".concat(ue._Identity.userIdentity.accessToken)},o)}).then(d.a).then((function(e){if(Array.isArray(e))return ue.addresses=e,e;throw e}))]}}))}))}var X=new Set;function J(e,t,r){return void 0===t&&(t={}),X[r]?Promise.reject("".concat(a," ").concat(r," cannot be called until the previous to ").concat(r," completes")):(X[r]=!0,fetch(e,t).finally((function(){X[r]=!1})))}function Z(e,t,r){return Object(l.__awaiter)(this,void 0,void 0,(function(){var n,i;return Object(l.__generator)(this,(function(a){switch(a.label){case 0:return n="".concat(ue.apiOrigin,"/sales/public/v1/checkout/order/").concat(e,"/payment/").concat(t),r&&r.applePayValidationUrl&&(n+="?validationURL=".concat(r.applePayValidationUrl)),[4,w({method:"GET",headers:o,options:r})];case 1:return i=a.sent(),[2,J(n,i,"initializePayment").then(d.a).then((function(e){if(e.orderNumber)return e;throw e}))]}}))}))}function Q(e,t,r,n,i){return Object(l.__awaiter)(this,void 0,void 0,(function(){var a=this;return Object(l.__generator)(this,(function(s){return[2,G(i).then((function(){return Object(l.__awaiter)(a,void 0,void 0,(function(){var a;return Object(l.__generator)(this,(function(s){switch(s.label){case 0:return[4,w({method:"PUT",headers:o,body:JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r,"recaptcha-token":i}))})];case 1:return a=s.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/checkout/order/").concat(e,"/payment/").concat(t),a,"finalizePayment").then(d.a).then((function(e){if(R(e))return ue.currentOrder=e,e;throw e}))]}}))}))}))]}))}))}function ee(e,t,r,n,i){return Object(l.__awaiter)(this,void 0,void 0,(function(){var a=this;return Object(l.__generator)(this,(function(s){return[2,G(i).then((function(){return Object(l.__awaiter)(a,void 0,void 0,(function(){var a;return Object(l.__generator)(this,(function(s){switch(s.label){case 0:return[4,w({method:"PUT",headers:o,body:JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r,"recaptcha-token":i}))})];case 1:return a=s.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/checkout/order/").concat(e,"/payment/").concat(t),a,"finalizePayment").then(d.a).then((function(e){if(R(e))return ue.currentOrder=e,e;throw e}))]}}))}))}))]}))}))}function te(e,t,r,n,i){return Object(l.__awaiter)(this,void 0,void 0,(function(){var a,s;return Object(l.__generator)(this,(function(c){switch(c.label){case 0:return a=i?JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r,SPREEDLY_SUCCEEDED:!0})):JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r})),[4,w({method:"PUT",headers:o,body:a})];case 1:return s=c.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/checkout/3ds/order/").concat(e,"/payment/").concat(t),s,"finalize3DS").then(d.a).then((function(e){if(R(e))return ue.currentOrder=e,e;throw e}))]}}))}))}function re(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){var r,n;return Object(l.__generator)(this,(function(i){switch(i.label){case 0:return r="".concat(ue.apiOrigin,"/sales/public/v1/paymentmethod/").concat(e,"/provider/").concat(t),[4,w({method:"PUT",headers:o,body:JSON.stringify({})})];
2case 1:return n=i.sent(),[2,J(r,n,"initializePaymentUpdate").then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}function ne(e,t,r,n,i){return Object(l.__awaiter)(this,void 0,void 0,(function(){var a=this;return Object(l.__generator)(this,(function(s){return[2,G(i).then((function(){return Object(l.__awaiter)(a,void 0,void 0,(function(){var a;return Object(l.__generator)(this,(function(s){switch(s.label){case 0:return[4,w({method:"PUT",headers:o,body:JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r,"recaptcha-token":i}))})];case 1:return a=s.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/paymentmethod/").concat(e,"/provider/").concat(t,"/finalize"),a,"finalizePaymentUpdate").then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}))]}))}))}function ie(e,t,r,n,i){return Object(l.__awaiter)(this,void 0,void 0,(function(){var a,s;return Object(l.__generator)(this,(function(u){switch(u.label){case 0:return a=i?JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r,SPREEDLY_SUCCEEDED:!0})):JSON.stringify(Object(l.__assign)(Object(l.__assign)({},n),{token:r})),[4,w({method:"PUT",headers:o,body:a})];case 1:return s=u.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/paymentmethod/").concat(e,"/provider/").concat(t,"/finalize3ds"),s,"finalizePaymentUpdate3ds").then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}function oe(e,t,r,n){return Object(l.__awaiter)(this,void 0,void 0,(function(){var i,s;return Object(l.__generator)(this,(function(l){switch(l.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!l.sent())throw new Error("".concat(a," Missing or invalid jwt"));return i=JSON.stringify(O({subscriptionId:e,newPriceCode:t,productChanges:r,currentTerm:n})),[4,w({method:"POST",headers:o,body:i})];case 2:return s=l.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/subscription/upgradedowngrade"),s,"initializePaymentUpdate").then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}function ae(e,t){return Object(l.__awaiter)(this,void 0,void 0,(function(){var r,n;return Object(l.__generator)(this,(function(i){switch(i.label){case 0:return[4,ue._Identity.isLoggedIn()];case 1:if(!i.sent())throw new Error("".concat(a," Missing or invalid jwt"));return r=JSON.stringify(O({sessionId:e,reasonCode:t})),[4,w({method:"PUT",headers:o,body:r})];case 2:return n=i.sent(),[2,J("".concat(ue.apiOrigin,"/sales/public/v1/subscription/upgradedowngrade"),n,"finalizePaymentUpdate").then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}function se(e){return Object(l.__awaiter)(this,void 0,void 0,(function(){var t;return Object(l.__generator)(this,(function(r){switch(r.label){case 0:return[4,w({method:"POST",headers:o,body:e})];case 1:return t=r.sent(),[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/swg/purchase"),t).then(d.a).then((function(e){if(Object(c.isAPIErrorResponse)(e))throw e}))]}}))}))}var le=function(e){var t=e.subscriptionToken,r=e.findOrCreate,n=void 0!==r&&r;return Object(l.__awaiter)(void 0,void 0,void 0,(function(){return Object(l.__generator)(this,(function(e){return[2,fetch("".concat(ue.apiOrigin,"/sales/public/v1/swg/loginexists"),{method:"POST",headers:o,body:JSON.stringify(Object(l.__assign)(Object(l.__assign)({},JSON.parse(t)),{findOrCreate:n}))}).then(d.a).then((function(e){if(function(e){return"boolean"==typeof e.exists}(e))return e;throw e}))]}))}))},ce=function(){function e(){}return Object.defineProperty(e,"subscriptions",{get:function(){return this._subscriptions},set:function(e){this._subscriptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"sharedSubscriptions",{get:function(){return this._sharedSubscriptions},set:function(e){this._sharedSubscriptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"orders",{get:function(){return this._orders},set:function(e){this._orders=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cart",{get:function(){return this._cart},set:function(e){this._cart=e}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e,"currentOrder",{get:function(){return this._currentOrder},set:function(e){this._currentOrder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"paymentOptions",{get:function(){return this._paymentOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"addresses",{get:function(){return this._addresses},set:function(e){this._addresses=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"configOptions",{get:function(){return this._configOptions},enumerable:!1,configurable:!0}),e.apiOrigin="",e._subscriptions=[],e._sharedSubscriptions=[],e._orders=[],e._addresses=[],e._paymentOptions=[],e._version=r(385).version,e.options=s,e.getConfig=f,e.cancelSubscription=j,e.rescueSubscription=$,e.getAllActiveSubscriptions=x,e.getAllSubscriptions=_,e.getSubscriptionDetails=S,e.getSubscriptionSharingDetails=E,e.stopSharing=k,e.shareSubscription=C,e.redeemAssociateInvitation=P,e.redeemEnterpriseSubscription=M,e.setGiftRecipient=I,e.redeemGiftSubscription=A,e.getOrderDetails=L,e.getOrderHistory=N,e.getCart=B,e.addItemToCart=U,e.removeItemFromCart=H,e.clearCart=V,e.createOrder=W,e.createNewOrder=q,e.getPaymentOptions=K,e.getAddresses=Y,e.initializePayment=Z,e.finalizePayment=Q,e.finalizePaymentPayU=ee,e.finalizePayment3ds=te,e.initializePaymentUpdate=re,e.finalizePaymentUpdate=ne,e.finalizePaymentUpdate3ds=ie,e.updateBillingAddress=T,e.onSwgPurchase=se,e.checkSwgSubscriptionToken=le,e.enforceRecaptcha=G,e.initializeSubscriptionChange=oe,e.finalizeSubscriptionChange=ae,e}(),ue=ce;"undefined"!=typeof window&&/localhost/.test(location.href)&&(window.Identity=i),"undefined"!=typeof window&&window.addEventListener("ArcSDK.logout",(function(){ce.subscriptions=[],ce.sharedSubscriptions=[],ce.orders=[],ce.addresses=[],ce.currentOrder={},ce.cart={}}));t.a=ue},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(57);function o(...e){return Object(n.useMemo)((()=>Object(i.a)(...e)),[...e])}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,i=r(80),o=r(66),a=r(283);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),a=0==(1&l)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==c?l:-l,r[0].push(a),s=0==(1&c)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==l?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";r(1);var n=r(3),i=r(16),o=r.n(i),a=r(54),s=r(178),l=r(0);const c=({children:e,className:t,marginBottom:r,headerColor:n,level:i=4,isPageHeader:c=!1,textAlign:u,showDivider:d=!0,supportText:f,textTransform:h="uppercase",underlineType:p})=>{const b=c?"1.5rem":null,m="string"==typeof i?parseInt(i,10):i,g=o()("mb-sm",t,u,n);return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(a.a,{level:m,className:o()(g,t),style:{fontSize:b,textTransform:h},children:e}),f?Object(l.jsx)("p",{className:u,dangerouslySetInnerHTML:{__html:f}}):null,Object(l.jsx)(s.a,{showDivider:d,underlineType:p,marginBottom:r})]})};c.propTypes={children:n.node,className:n.string,marginBottom:n.number,headerColor:n.string,level:n.oneOfType([n.string,n.number]),isPageHeader:n.bool,textAlign:n.string,showDivider:n.bool,supportText:n.string,textTransform:n.string,underlineType:n.string},t.a=c},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),i=r(18);function o(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function a(e,t){let[r,a]=Object(n.useState)((()=>o(e)));return Object(i.a)((()=>{a(o(e))}),[e.type,e.as]),Object(i.a)((()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")}),[r,t]),r}},function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(s[c]=r[c]);if(n){a=n(r);for(var u=0;u<a.length;u++)o.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(16),o=r.n(i),a=r(5),s=r(3),l=r(1),c=r(234),u=r(0);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const b=e=>{var t,r;let{customFields:{videoId:i,distributionId:s,playlistId:d,isFeaturedSpot:h=!0,type:b="featured",autoPlay:m=!0,muted:g=!0,floating:v=!1,loopFirstVideo:y=!1,placeholderColor:w="$blueGray.100",startFullScreen:O=!1},className:j,sx:x,borderRadius:_=["$none",null,"$rg"]}=e,S=p(e,["customFields","className","sx","borderRadius"]);const{outputType:E,arcSite:k,requestUri:C,siteProperties:{anyclipFeaturedWidgetname:P,anyclipAutoPlayWidgetname:M,anyclipBodyWidgetname:$,anyclipChumboxWidgetname:T,anyclipSponsoredWidgetname:I,anyclipVerticalWidgetname:A,anyclipFeaturedPubname:R,anyclipBodyPubname:D},globalContent:{taxonomy:L,type:N}={}}=Object(a.useAppContext)(),B=new URLSearchParams(C.split("?")[1]).get("disable"),z=(null==B?void 0:B.split(","))||[],F=z.includes("anyclip"),U=z.includes(`anyclip-${b}`),H="/weather"===(null==L||null===(t=L.primary_section)||void 0===t?void 0:t._id)&&"story"===N,V=Object(l.useRef)(null),G=i||s||d,W=["recommended","chumbox"].includes(b),[q,K]=Object(l.useState)(!1);Object(l.useEffect)((()=>{const e=()=>{K(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const Y="wsls"===k&&"body"===b,{widget:X}=Object(c.b)({widgetId:G,floating:v,loopFirstVideo:y,isWeatherArticle:H,type:b});return Object(c.a)(X,b),Object(l.useEffect)((()=>{var e,t;const r=V.current;if(!(r&&D&&R&&P&&$))return;const n=null!==(e=null!==(t=null!=i?i:s)&&void 0!==t?t:d)&&void 0!==e?e:"other";let o=document.querySelector(`script[id="${null!=n?n:s}"]`);return o||(o=document.createElement("script"),o.src="https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js",o.setAttribute("data-custom-wid",n),o.async=!0,Y||o.setAttribute("data-ar","vertical"===b?"9:16":"16:9"),d?o.setAttribute("data-plid",d):s?o.setAttribute("data-tm-preids",JSON.stringify([s])):i&&!["anyclip-autoplayer-script","anyclip-chumbox-script"].includes(i)&&o.setAttribute("data-plguid",i),o.setAttribute("pubname",h||"recommended"===b?R:D),o.setAttribute("widgetname","sponsored"===b?I:h?P:"recommended"===b?M:"chumbox"===b?T:"vertical"===b?A:$),["recommended","chumbox"].includes(b)||!h||H?o.setAttribute("data-cr","0"):o.setAttribute("data-cr",h?"1":"0"),o.setAttribute("data-ap",m?"on":"off"),o.setAttribute("data-snd",g?"false":"true"),o.setAttribute("data-fs",O?"true":"false"),r.appendChild(o)),()=>{var e,t,n;null===(e=o)||void 0===e||e.remove(),r.innerHTML="",null===(t=window.anyclip)||void 0===t||null===(n=t.destroy)||void 0===n||n.call(t),window.anyclip=void 0}}),[M,D,$,T,R,P,I,A,m,s,Y,h,H,g,d,O,b,i]),"nonav"===E&&"chumbox"===b||F||U?null:Object(u.jsxs)(n.e,f({id:`anyClipWrapper-${null!==(r=null!=i?i:s)&&void 0!==r?r:"other"}`,className:o()("anyClipWrapper",j),display:"grid",sx:f({gridTemplateRows:"auto","& .acw .video-js":{backgroundColor:"transparent"},"& .acw .brand-container":{display:"none"},"& .lre-cancel-float.font-fix":{left:[null,null,"0"]},"& .ac-logobrand-image-destination":{display:"none"},"& .acw .ac-player-wrapper.ac-floated-player":{left:["8px !important",null,"24px !important"],bottom:["unset !important","24px !important"],top:["80px",null,"unset"],width:["calc(100% - 16px) !important","400px !important"]},"& .acw .ac-lre-round-corners.ac-lre-vui-active:not(.vui-fullscreen):not(#fake):not(#fake) .ac-player-wrapper, .acw .ac-lre-round-corners:not(.theater-mode-active):not(.ac-lre-fullscreen) div.ac-lre-player>div":{borderRadius:_}},W&&{gap:"$1"},{},Y&&q&&{px:"$3"},{},x)},S,{children:[W?Object(u.jsxs)(n.n,{placeContent:"center",position:"relative",children:[Object(u.jsx)(n.M,{variant:"$xs",textColor:"$blueGray.500",backgroundColor:"$white",px:"$1",position:"relative",zIndex:1,sx:{fontStyle:"italic"},children:"Recommended Videos"}),Object(u.jsx)(n.l,{position:"absolute",width:"$full",margin:"$0",height:"1px"})]}):null,Object(u.jsx)(n.e,{ref:V,borderRadius:_,overflow:"hidden",sx:{gridArea:"-1 / 1"}}),Object(u.jsxs)(n.e,{bg:w,borderRadius:_,sx:f({gridArea:"-1 / 1"},W&&{display:"flex",gap:"$2"}),children:[Object(u.jsx)(n.e,{sx:{aspectRatio:"vertical"===b?"9 / 16":"16 / 9",flexGrow:1}}),!h||H||["recommended","chumbox"].includes(b)?null:Object(u.jsx)(n.e,{height:"100px"})]}),W?Object(u.jsx)(n.l,{width:"$full",marginBottom:"$0",height:"1px"}):null]}))};b.propTypes={customFields:s.shape({videoId:s.string.tag({name:"ARC ID"}),distributionId:s.string.tag({name:"AnyClip Distribution ID"}),playlistId:s.string.tag({name:"AnyClip Playlist ID"}),autoPlay:s.bool.tag({name:"Autoplay"}),muted:s.bool.tag({name:"Start Muted"}),type:s.oneOf(["featured","recommended","video-detail","body","chumbox","vertical","sponsored"]).tag({name:"Player Type",description:"Type of player to render",labels:{featured:"Featured",recommended:"Recommended","video-detail":"Video Detail",body:"Body",chumbox:"Chumbox",vertical:"Vertical",sponsored:"Sponsored"},defaultValue:"featured"}),isFeaturedSpot:s.bool.tag({name:"Is The Featured Player"}),floating:s.bool.tag({name:"Floating"}),startFullScreen:s.bool.tag({name:"Start In Full Screen",defaultValue:!1,description:"If true, the player will start in full screen — used for vertical players in apps"}),loopFirstVideo:s.bool.tag({name:"Replay Only The First Video In Playlist"}),placeholderColor:s.string.tag({name:"Placeholder Color",description:"Color of the placeholder for the video",defaultValue:"$blueGray.100"})})},t.default=b},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}
2)),r.d(t,"c",(function(){return a}));const n=/^[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])?)+$/;function i(e){return e.trim().toLowerCase()}function o(e){return encodeURIComponent(i(e))}function a(e){return"string"==typeof e&&0!==e.length&&(t=i(e),n.test(t));var t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(63);function o(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in n&&n.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=n.useState(i.a.isHandoffComplete);return t&&!1===i.a.isHandoffComplete&&r(!1),n.useEffect((()=>{!0!==t&&r(!0)}),[t]),n.useEffect((()=>i.a.handoff()),[]),!e&&t}},function(e,t,r){"use strict";var n=r(66),i=r(36);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=l(i.toString(16))}return r},t.zero2=s,t.zero8=l,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,l=t;s<a.length;s++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+r+i+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+s>>>0)<s?1:0,e+r+i+a+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__75__},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=["'Gibson'","-apple-system","'Seegoee UI'","'Helvetica Neue'","Arial","sans-serif"].join(", "),s=["'OpenSans'","-apple-system","'Seegoee UI'","'Helvetica Neue'","Arial","sans-serif"].join(", "),l={fontWeight:"$bold",lineHeight:"$none"},c={fontFamily:"$gibson",lineHeight:"$none",appearance:"none",outline:"none",border:"none","&:disabled":{cursor:"not-allowed"}},u={ml:"auto",mr:"auto",px:"$4"},d={fonts:{$openSans:s,$gibson:a,$primary:a,$secondary:s},space:{"$-7":"-3rem","$-6":"-2.5rem","$-5":"-2rem","$-4":"-1.5rem","$-3":"-1rem","$-2":"-0.5rem","$-1":"-0.25rem",$0:"0",$1:"0.25rem",$2:"0.5rem",$3:"1rem",$4:"1.5rem",$5:"2rem",$6:"2.5rem",$7:"3rem",$8:"4rem",$9:"4.5rem",$10:"6rem",$11:"8rem",$12:"16rem",$13:"32rem",$px:"1px",$auto:"auto"},sizes:{$0:"0",$1:"0.25rem",$2:"0.5rem",$3:"0.75rem","$3.5":"0.875rem",$4:"1rem",$5:"1.25rem",$6:"1.5rem",$8:"2rem",$10:"2.5rem",$12:"3rem",$14:"3.5rem",$16:"4rem",$20:"5rem",$24:"6rem",$32:"8rem",$40:"10rem",$48:"12rem",$56:"14rem",$64:"16rem",$72:"18rem",$80:"20rem",$128:"32rem",$max:"78rem",$auto:"auto",$px:"1px","$1/2":"50%","$1/3":"33.333333%","$2/3":"66.666667%","$1/4":"25%","$2/4":"50%","$3/4":"75%","$1/5":"20%","$2/5":"40%","$3/5":"60%","$4/5":"80%","$1/6":"16.666667%","$2/6":"33.333333%","$3/6":"50%","$4/6":"66.666667%","$5/6":"83.333333%","$1/12":"8.333333%","$2/12":"16.666667%","$3/12":"25%","$4/12":"33.333333%","$5/12":"41.666667%","$6/12":"50%","$7/12":"58.333333%","$8/12":"66.666667%","$9/12":"75%","$10/12":"83.333333%","$11/12":"91.666667%",$full:"100%",$screenWidth:"100vw",$screenHeight:"100vh"},fontSizes:{"$-1":"0.625rem",$0:"0.75rem",$1:"0.875rem",$2:"1rem",$3:"1.25rem",$4:"1.5rem",$5:"2rem",$6:"2.5rem",$7:"3rem",$8:"4rem",$9:"4.5rem"},fontWeights:{$light:"200",$normal:"400",$medium:"500",$semibold:"600",$bold:"700",$black:"900"},lineHeights:{$none:"1",$tight:"1.25",$snug:"1.375",$normal:"1.5",$relaxed:"1.625",$loose:"2"},letterSpacings:{$tighter:"-0.05em",$tight:"-0.025em",$normal:"0",$wide:"0.025em",$wider:"0.05em",$widest:"0.1em"},colors:{$white:"#fff",$transparent:"rgba(0, 0, 0, 0)",$black:{100:"#3c3e42",200:"#303236",300:"#23262b",400:"#171a1f",500:"#0b0e13",900:"#000"},$text:{50:"#d3d3d3",100:"#545454",200:"#474747",300:"#3a3a3a",400:"#2e2e2e",500:"#212121"},$rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},$pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},$fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},$purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},$violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},$indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},$blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},$lightBlue:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},$cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},$teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},$emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},$green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},$lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},$yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},$amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},$orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},$red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"}
2,$warmGray:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},$trueGray:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},$gray:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},$coolGray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},$blueGray:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"}},borderWidths:{$0:"0",$1:"1px",$2:"2px",$4:"4px",$8:"8px",$default:"1px"},borderStyles:{$solid:"solid",$dotted:"dotted",$dashed:"dashed"},breakpoints:["641px","970px","1025px","1248px"],radii:{$none:"0",$sm:"0.125rem",$rg:"0.25rem",$md:"0.375rem",$lg:"0.5rem",$xl:"1rem",$full:"9999px"},shadows:{$xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",$sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",$default:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",$md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",$lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",$xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",$2xl:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",$inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",$outline:"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, 0 2px 8px 0 rgba(0, 0, 0, 0.15), 0 0 4px 2px rgba(0, 0, 0, 0.02)",$transparentButtonFocus:"0 0 0 2px hsl(0deg 0% 100% / 50%)",$grayButtonFocus:"0 0 0 2px #94a3b8",$darkButtonFocus:"0 0 0 2px #3a3a3a",$primaryButtonFocus:"0 0 0 2px #1d4ed8",$redButtonFocus:"0 0 0 2px #b91c1c",$orangeButtonFocus:"0 0 0 2px #c2410c",$none:"none"},zIndices:{$0:"0",$1:"1",$10:"10",$20:"20",$30:"30",$40:"40",$50:"50",$100:"100",$1000:"1000",$auto:"auto"},containerStyles:{$1:i({},u,{maxWidth:"512px"}),$2:i({},u,{maxWidth:"800px"}),$3:i({},u,{maxWidth:"1024px"}),$4:i({},u,{maxWidth:"1248px"}),$none:i({},u,{maxWidth:"none"})},headingStyles:{$xl:i({},l,{fontSize:["$4",null,"$7"]}),$lg:i({},l,{fontSize:["$4",null,"$5"]}),$md:i({},l,{fontSize:"$4"}),$rg:i({},l,{fontSize:"$3"}),$sm:i({},l,{fontSize:"$2",fontWeight:"$semibold"}),$xs:i({},l,{fontSize:"$1",fontWeight:"$medium"})},textStyles:{$xl:{fontSize:"$7",fontWeight:"$semibold"},$lg:{fontSize:"$5"},$md:{fontSize:"$4"},$rg:{fontSize:"$3"},$base:{fontSize:["$1",null,"$2"]},$sm:{fontSize:"$1"},$xs:{fontSize:"$0",fontWeight:"$light"}},buttonStyles:{$icon:i({},c,{fontSize:"$5",color:"inherit",padding:"$1",backgroundColor:"transparent",borderRadius:"$md","&:hover":{backgroundColor:"$black.400"},"&:focus":{backgroundColor:"$black.400",boxShadow:"$darkButtonFocus"},"&:active":{backgroundColor:"$black.400",boxShadow:"$darkButtonFocus"},"& .buttonIcon":{margin:"$0"},"& .buttonIcon > svg":{width:"1em"}}),$wrapper:i({},c,{bg:"transparent",color:"inherit"}),$transparent:i({},c,{color:"$white",backgroundColor:"transparent",borderRadius:"$md","& svg":{color:"$white"},":hover, :focus, :active":{boxShadow:"$transparentButtonFocus"}}),$primary:i({},c,{fontWeight:"$semibold",color:"$white",backgroundColor:"$blue.600",borderRadius:"$md","& svg":{color:"$white"},"&:hover":{backgroundColor:"$blue.700"},"&:focus":{backgroundColor:"$blue.700"},"&:active":{backgroundColor:"$blue.800"}}),$primaryOutline:i({},c,{fontWeight:"$semibold",color:"$blueGray.900",backgroundColor:"transparent",borderRadius:"$md",boxShadow:"$primaryButtonFocus","& svg":{color:"$blueGray.900"},"&:hover":{backgroundColor:"$blue.50"},"&:focus":{backgroundColor:"$blue.100"},"&:active":{backgroundColor:"$blue.300"}}),$red:i({},c,{fontWeight:"$semibold",color:"$white",backgroundColor:"$red.600",borderRadius:"$md","& svg":{color:"$white"},"&:hover":{backgroundColor:"$red.700"},"&:focus":{backgroundColor:"$red.700",boxShadow:"$redButtonFocus"},"&:active":{backgroundColor:"$red.800",boxShadow:"$redButtonFocus"}}),$orange:i({},c,{fontWeight:"$semibold",color:"$white",backgroundColor:"$orange.400",borderRadius:"$md","& svg":{color:"$white"},"&:hover":{backgroundColor:"$orange.500"},"&:focus":{backgroundColor:"$orange.500",boxShadow:"$orangeButtonFocus"},"&:active":{backgroundColor:"$orange.600",boxShadow:"$orangeButtonFocus"}}),$gray:i({},c,{fontWeight:"$medium",letterSpacing:"$wide",color:"$blueGray.700",backgroundColor:"$blueGray.100",borderRadius:"$rg","& svg":{color:"$blueGray.700"},"&:hover":{backgroundColor:"$blueGray.200"},"&:focus":{backgroundColor:"$blueGray.200",boxShadow:"$grayButtonFocus"},"&:active":{backgroundColor:"$blueGray.300",boxShadow:"$grayButtonFocus"}}),$white:i({},c,{fontWeight:"$medium",letterSpacing:"$wide",color:"$blueGray.700",backgroundColor:"$white",borderRadius:"$rg",border:"1px solid",borderColor:"$blueGray.300","& svg":{color:"$blueGray.400"},"&:hover":{borderColor:"$blue.200"},"&:focus":{borderColor:"$blue.500"},"&:active":{borderColor:"$blue.500"}}),$ghost:i({},c,{backgroundColor:"transparent",borderRadius:"$md","&:hover":{backgroundColor:"$blueGray.100"},"&:focus":{backgroundColor:"$blueGray.100",boxShadow:"$grayButtonFocus"},"&:active":{backgroundColor:"$blueGray.200",boxShadow:"$grayButtonFocus"}}),$ghostWhite:i({},c,{color:"$white",fontWeight:"$semibold",backgroundColor:"transparent",borderRadius:"$md","&:hover":{backgroundColor:"$black.400"},"&:focus":{backgroundColor:"$black.400",boxShadow:"$darkButtonFocus"},"&:active":{backgroundColor:"$black.400",boxShadow:"$darkButtonFocus"}})}};t.a=d},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n=r(1),i=r.n(n),o=(r(305),r(171)),a=r(9);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=i.a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>
2{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),u={dedupe:!0};a.d.defineProperty(a.e,"defaultValue",{value:a.j});const d=Object(a.v)(((e,t,r)=>{const{cache:i,compare:d,suspense:f,fallbackData:h,revalidateOnMount:p,revalidateIfStale:b,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:v,keepPreviousData:y}=r,[w,O,j,x]=a.f.get(i),[_,S]=Object(a.r)(e),E=Object(n.useRef)(!1),k=Object(n.useRef)(!1),C=Object(n.useRef)(_),P=Object(n.useRef)(t),M=Object(n.useRef)(r),$=()=>M.current,T=()=>$().isVisible()&&$().isOnline(),[I,A,R,D]=Object(a.i)(i,_),L=Object(n.useRef)({}).current,N=Object(a.n)(h)?r.fallback[_]:h,B=(e,t)=>{for(const r in L){const n=r;if("data"===n){if(!d(e[n],t[n])){if(!Object(a.n)(e[n]))return!1;if(!d(K,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},z=Object(n.useMemo)((()=>{const e=!!_&&!!t&&(Object(a.n)(p)?!$().isPaused()&&!f&&(!!Object(a.n)(b)||b):p),r=t=>{const r=Object(a.o)(t);return delete r._k,e?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({isValidating:!0,isLoading:!0},r):r},n=I(),i=D(),o=r(n),c=n===i?o:r(i);let u=o;return[()=>{const e=r(I());return B(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>c]}),[i,_]),F=Object(o.useSyncExternalStore)(Object(n.useCallback)((e=>R(_,((t,r)=>{B(r,t)||e()}))),[i,_]),z[0],z[1]),U=!E.current,H=w[_]&&w[_].length>0,V=F.data,G=Object(a.n)(V)?N:V,W=F.error,q=Object(n.useRef)(G),K=y?Object(a.n)(V)?q.current:V:G,Y=!(H&&!Object(a.n)(W))&&(U&&!Object(a.n)(p)?p:!$().isPaused()&&(f?!Object(a.n)(G)&&b:Object(a.n)(G)||b)),X=!!(_&&t&&U&&Y),J=Object(a.n)(F.isValidating)?X:F.isValidating,Z=Object(a.n)(F.isLoading)?X:F.isLoading,Q=Object(n.useCallback)((async e=>{const t=P.current;if(!_||!t||k.current||$().isPaused())return!1;let n,i,o=!0;const s=e||{},l=!j[_]||!s.dedupe,c=()=>a.b?!k.current&&_===C.current&&E.current:_===C.current,u={isValidating:!1,isLoading:!1},f=()=>{A(u)},h=()=>{const e=j[_];e&&e[1]===i&&delete j[_]},p={isValidating:!0};Object(a.n)(I().data)&&(p.isLoading=!0);try{if(l&&(A(p),r.loadingTimeout&&Object(a.n)(I().data)&&setTimeout((()=>{o&&c()&&$().onLoadingSlow(_,r)}),r.loadingTimeout),j[_]=[t(S),Object(a.k)()]),[n,i]=j[_],n=await n,l&&setTimeout(h,r.dedupingInterval),!j[_]||j[_][1]!==i)return l&&c()&&$().onDiscarded(_),!1;u.error=a.g;const e=O[_];if(!Object(a.n)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&c()&&$().onDiscarded(_),!1;const s=I().data;u.data=d(s,n)?s:n,l&&c()&&$().onSuccess(n,_,r)}catch(e){h();const t=$(),{shouldRetryOnError:r}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,_,t),(!0===r||Object(a.m)(r)&&r(e))&&($().revalidateOnFocus&&$().revalidateOnReconnect&&!T()||t.onErrorRetry(e,_,t,(e=>{const t=w[_];t&&t[0]&&t[0](a.q.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,f(),!0}),[_,i]),ee=Object(n.useCallback)(((...e)=>Object(a.l)(i,C.current,...e)),[]);if(Object(a.t)((()=>{P.current=t,M.current=r,Object(a.n)(V)||(q.current=V)})),Object(a.t)((()=>{if(!_)return;const e=Q.bind(a.g,u);let t=0;const r=Object(a.s)(_,w,((r,n={})=>{if(r==a.q.FOCUS_EVENT){const r=Date.now();$().revalidateOnFocus&&r>t&&T()&&(t=r+$().focusThrottleInterval,e())}else if(r==a.q.RECONNECT_EVENT)$().revalidateOnReconnect&&T()&&e();else{if(r==a.q.MUTATE_EVENT)return Q();if(r==a.q.ERROR_REVALIDATE_EVENT)return Q(n)}}));return k.current=!1,C.current=_,E.current=!0,A({_k:S}),Y&&(Object(a.n)(G)||a.c?e():Object(a.p)(e)),()=>{k.current=!0,r()}}),[_]),Object(a.t)((()=>{let e;function t(){const t=Object(a.m)(m)?m(I().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){I().error||!g&&!$().isVisible()||!v&&!$().isOnline()?t():Q(u).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,g,v,_]),Object(n.useDebugValue)(K),f&&Object(a.n)(G)&&_){if(!a.b&&a.c)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,M.current=r,k.current=!1;const e=x[_];if(!Object(a.n)(e)){const t=ee(e);c(t)}if(!Object(a.n)(W))throw W;{const e=Q(u);Object(a.n)(K)||(e.status="fulfilled",e.value=!0),c(e)}}return{mutate:ee,get data(){return L.data=!0,K},get error(){return L.error=!0,W},get isValidating(){return L.isValidating=!0,J},get isLoading(){return L.isLoading=!0,Z}}})),f=a.b?e=>{e()}:i.a.startTransition,h=Object(a.w)(d,(()=>(e,t,r={})=>{const{mutate:i}=Object(a.u)(),o=Object(n.useRef)(e),s=Object(n.useRef)(t),l=Object(n.useRef)(r),c=Object(n.useRef)(0),[u,d,h]=(e=>{const[,t]=Object(n.useState)({}),r=Object(n.useRef)(!1),i=Object(n.useRef)(e),o=Object(n.useRef)({data:!1,error:!1,isValidating:!1}),s=Object(n.useCallback)((e=>{let n=!1;const a=i.current;for(const t in e){const r=t;a[r]!==e[r]&&(a[r]=e[r],o.current[r]&&(n=!0))}n&&!r.current&&t({})}),[]);return Object(a.t)((()=>(r.current=!1,()=>{r.current=!0}))),[i,o.current,s]})({data:a.g,error:a.g,isMutating:!1}),p=u.current,b=Object(n.useCallback)((async(e,t)=>{const[r,n]=Object(a.r)(o.current);if(!s.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!r)throw new Error("Can’t trigger the mutation: missing key.");const u=Object(a.o)(Object(a.o)({populateCache:!1,throwOnError:!0},l.current),t),d=Object(a.k)();c.current=d,h({isMutating:!0});try{const t=await i(r,s.current(n,{arg:e}),Object(a.o)(u,{throwOnError:!0}));return c.current<=d&&(f((()=>h({data:t,isMutating:!1,error:void 0}))),null==u.onSuccess||u.onSuccess.call(u,t,r,u)),t}catch(e){if(c.current<=d&&(f((()=>h({error:e,isMutating:!1}))),null==u.onError||u.onError.call(u,e,r,u),u.throwOnError))throw e}}),[]),m=Object(n.useCallback)((()=>{c.current=Object(a.k)(),h({data:a.g,error:a.g,isMutating:!1})}),[]);return Object(a.t)((()=>{o.current=e,s.current=t,l.current=r})),{trigger:b,reset:m,get data(){return d.data=!0,p.data},get error(){return d.error=!0,p.error},get isMutating(){return d.isMutating=!0,p.isMutating}}}))},function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach((r=>{t[e[r]]=r})),t}r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}
vendor: 5,408 bytes, line 2
2)),r.d(t,"d",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"h",(function(){return d}));const i={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},o={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},a={444:"CHROMA_444",420:"CHROMA_420"},s={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},l=n(a),c=n(s),u=n(i),d=n({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});n({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),n(o),n({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"})},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(418).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 12,751 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:c[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,O=y>>>13,j=0|a[4],x=8191&j,_=j>>>13,S=0|a[5],E=8191&S,k=S>>>13,C=0|a[6],P=8191&C,M=C>>>13,$=0|a[7],T=8191&$,I=$>>>13,A=0|a[8],R=8191&A,D=A>>>13,L=0|a[9],N=8191&L,B=L>>>13,z=0|s[0],F=8191&z,U=z>>>13,H=0|s[1],V=8191&H,G=H>>>13,W=0|s[2],q=8191&W,K=W>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,U))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,U))+Math.imul(b,F)|0,o=Math.imul(b,U);var ge=(c+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,U))+Math.imul(v,F)|0,o=Math.imul(v,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0;var ve=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,U))+Math.imul(O,F)|0,o=Math.imul(O,U),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var ye=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,F),i=(i=Math.imul(x,U))+Math.imul(_,F)|0,o=Math.imul(_,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var we=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,F),i=(i=Math.imul(E,U))+Math.imul(k,F)|0,o=Math.imul(k,U),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var Oe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,U))+Math.imul(M,F)|0,o=Math.imul(M,U),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var je=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,U))+Math.imul(I,F)|0,o=Math.imul(I,U),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,U))+Math.imul(D,F)|0,o=Math.imul(D,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0;var _e=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,F),i=(i=Math.imul(N,U))+Math.imul(B,F)|0,o=Math.imul(B,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Se=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,be)|0)+Math.imul(f,pe)|0)
vendor: 8,202 bytes, line 2
2)<<13)|0;c=((o=o+Math.imul(f,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,V),i=(i=Math.imul(N,G))+Math.imul(B,V)|0,o=Math.imul(B,G),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,fe)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,K))+Math.imul(B,q)|0,o=Math.imul(B,K),n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var ke=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,X),i=(i=Math.imul(N,J))+Math.imul(B,X)|0,o=Math.imul(B,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,fe)|0;var Ce=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,Q),i=(i=Math.imul(N,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Pe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(N,oe),i=(i=Math.imul(N,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var $e=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(N,le),i=(i=Math.imul(N,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(N,de),i=(i=Math.imul(N,fe))+Math.imul(B,de)|0,o=Math.imul(B,fe);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(D,pe)|0))<<13)|0;c=((o=o+Math.imul(D,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ae=(c+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,be))+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=me,l[1]=ge,l[2]=ve,l[3]=ye,l[4]=we,l[5]=Oe,l[6]=je,l[7]=xe,l[8]=_e,l[9]=Se,l[10]=Ee,l[11]=ke,l[12]=Ce,l[13]=Pe,l[14]=Me,l[15]=$e,l[16]=Te,l[17]=Ie,l[18]=Ae,0!==c&&(l[19]=c,r.length++),r};function p(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?h(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t),r},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],b=n[u+h],m=r[u+h+a],g=n[u+h+a],v=d*m-f*g;g=d*g+f*m,m=v,r[u+h]=p+m,n[u+h]=b+g,r[u+h+a]=p-m,n[u+h+a]=b-g,h!==s&&(v=l*d-c*f,f=l*f+c*d,d=v)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r
vendor: 4,670 bytes, line 2
2=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(
vendor: 13,427 bytes, line 2
2a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new j(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(y,g),i(w,g),i(O,g),O.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return m[e]=t,t},j.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},j.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m<p);var g=this.pow(d,new o(1).iushln(p-m-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=m}return f},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,j),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(159)(e))},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;
vendor: 4,184 bytes, line 2
2"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(435).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,u=r;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 12,657 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:u[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,O=y>>>13,j=0|a[4],x=8191&j,_=j>>>13,S=0|a[5],E=8191&S,k=S>>>13,C=0|a[6],P=8191&C,M=C>>>13,$=0|a[7],T=8191&$,I=$>>>13,A=0|a[8],R=8191&A,D=A>>>13,L=0|a[9],N=8191&L,B=L>>>13,z=0|s[0],F=8191&z,U=z>>>13,H=0|s[1],V=8191&H,G=H>>>13,W=0|s[2],q=8191&W,K=W>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,U))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,U))+Math.imul(b,F)|0,o=Math.imul(b,U);var ge=(c+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,U))+Math.imul(v,F)|0,o=Math.imul(v,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0;var ve=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,U))+Math.imul(O,F)|0,o=Math.imul(O,U),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var ye=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,F),i=(i=Math.imul(x,U))+Math.imul(_,F)|0,o=Math.imul(_,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var we=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,F),i=(i=Math.imul(E,U))+Math.imul(k,F)|0,o=Math.imul(k,U),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var Oe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,U))+Math.imul(M,F)|0,o=Math.imul(M,U),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var je=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,U))+Math.imul(I,F)|0,o=Math.imul(I,U),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,U))+Math.imul(D,F)|0,o=Math.imul(D,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0;var _e=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,F),i=(i=Math.imul(N,U))+Math.imul(B,F)|0,o=Math.imul(B,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Se=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,be)|0)+Math.imul(f,pe)|0)
vendor: 8,202 bytes, line 2
2)<<13)|0;c=((o=o+Math.imul(f,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,V),i=(i=Math.imul(N,G))+Math.imul(B,V)|0,o=Math.imul(B,G),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,fe)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,K))+Math.imul(B,q)|0,o=Math.imul(B,K),n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var ke=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,X),i=(i=Math.imul(N,J))+Math.imul(B,X)|0,o=Math.imul(B,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,fe)|0;var Ce=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,Q),i=(i=Math.imul(N,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Pe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(N,oe),i=(i=Math.imul(N,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var $e=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(N,le),i=(i=Math.imul(N,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(N,de),i=(i=Math.imul(N,fe))+Math.imul(B,de)|0,o=Math.imul(B,fe);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(D,pe)|0))<<13)|0;c=((o=o+Math.imul(D,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ae=(c+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,be))+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=me,l[1]=ge,l[2]=ve,l[3]=ye,l[4]=we,l[5]=Oe,l[6]=je,l[7]=xe,l[8]=_e,l[9]=Se,l[10]=Ee,l[11]=ke,l[12]=Ce,l[13]=Pe,l[14]=Me,l[15]=$e,l[16]=Te,l[17]=Ie,l[18]=Ae,0!==c&&(l[19]=c,r.length++),r};function b(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):b(this,e,t),r},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],b=n[u+h],m=r[u+h+a],g=n[u+h+a],v=d*m-f*g;g=d*g+f*m,m=v,r[u+h]=p+m,n[u+h]=b+g,r[u+h+a]=p-m,n[u+h+a]=b-g,h!==s&&(v=l*d-c*f,f=l*f+c*d,d=v)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r
vendor: 4,670 bytes, line 2
2=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(
vendor: 13,601 bytes, line 2
2a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function O(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function j(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,v),i(O,v),i(j,v),j.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new O;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new j}return g[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m<p);var g=this.pow(d,new o(1).iushln(p-m-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=m}return f},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,x),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(159)(e))},function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"g",(function(){return l})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return d})),r.d(t,"c",(function(){return f}));var n=r(20);const i=["localhost","gmg-sandbox"],o=48,a=e=>{const t=i.includes(n.ENVIRONMENT)?"-dev":"";return`https://api.${e.toLowerCase()}/pins${t}-v2`};function s(e,t,r,n){return i=>(t||r)&&n?`${e}/pins/filteredByRegion?${r?`channelIds=${r}`:`categoryIds=${t}`}&neLatitude=${n.neLatitude}
2&neLongitude=${n.neLongitude}&swLatitude=${n.swLatitude}&swLongitude=${n.swLongitude}&status=1&page=${i}&size=${o}`:null}function l(e,t){switch(t){case"wdiv":return e>=640?9:8;case"wkmg":return e>=640?8.3:8.2;case"wsls":return 8;default:return 10}}const c={kprc:"c4f8d0a5-9c4b-4533-a42e-59a3f73d3541",ksat:"5397ffa2-99de-4d29-a1d2-37c7ee9d5bd2",wdiv:"8cc1ebc6-c57d-4461-a8cb-dcbb10ad00b2",wjxt:"8f4f9eb8-a9fc-4001-9905-299507dee12c",wkmg:"a79a6ecd-1b4b-4a98-b55e-f8f573f42855",wplg:"ede97465-b566-4930-9afc-83c0a89dfcbc",wsls:"e80af1c0-c851-4e34-a25b-d92034a6d8a8",demo:"8cc1ebc6-c57d-4461-a8cb-dcbb10ad00b2"},u={kprc:{neLatitude:31.36136511329951,neLongitude:-94.05979665106639,swLatitude:28.505614047405015,swLongitude:-96.69651540106639},ksat:{neLatitude:30.881707565498722,neLongitude:-96.71848805731639,swLatitude:28.012091948772422,swLongitude:-99.35520680731639},wdiv:{neLatitude:43.326295546089774,neLongitude:-82.44018309250441,swLatitude:40.88145663140021,swLongitude:-85.07690184250441},wjxt:{neLatitude:31.32060943897876,neLongitude:-80.44305788545398,swLatitude:28.463672188432064,swLongitude:-83.07977663545398},wkmg:{neLatitude:29.72126414370491,neLongitude:-80.30023561982898,swLatitude:26.8189756352428,swLongitude:-82.93695436982898},wplg:{neLatitude:27.356939815753638,neLongitude:-79.76190554170398,swLatitude:24.391933352295915,swLongitude:-82.39862429170398},wsls:{neLatitude:38.419251421154286,neLongitude:-78.74178212671688,swLatitude:35.79117084623518,swLongitude:-81.37850087671688},world:{neLatitude:90,neLongitude:180,swLatitude:-90,swLongitude:-180},demo:{neLatitude:43.326295546089774,neLongitude:-82.44018309250441,swLatitude:40.88145663140021,swLongitude:-85.07690184250441}},d={kprc:{lat:29.69032450336949,lng:-95.52756396100625},ksat:{lat:29.43734284317207,lng:-98.48444008857957},wdiv:{lat:42.33493092952122,lng:-83.05206153395537},wjxt:{lat:30.330272505909434,lng:-81.60660178919744},wkmg:{lat:28.533948333145176,lng:-81.36561313672321},wplg:{lat:25.773536859818236,lng:-80.26881314263683},wsls:{lat:37.27957617225229,lng:-79.93403112148681},demo:{lat:42.31042473351255,lng:-83.06075025182741},wdivMobile:{lat:42.475136,lng:-83.221275}};function f(e){if(!(e&&e.neLatitude&&e.neLongitude&&e.swLatitude&&e.swLongitude))return null;return{lat:(e.neLatitude+e.swLatitude)/2,lng:(e.neLongitude+e.swLongitude)/2}}},function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))o(r,i(t,n),a);return r}function i(e,t){return e?e+"["+t+"]":t}function o(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())o(e,i(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):n(r,t,e)}function a(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"e",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return l}));const n=new Set,i=[];function o(e){return e&&"string"==typeof e&&e.replace(/^https?:\/\//,"").trim()||""}function a(e,t){return document.getElementById(e)?Promise.resolve(!0):new Promise((r=>{const n=document.createElement("script");n.type="text/javascript",n.id=e,n.async=!0,n.src=t,n.onload=()=>r(!0),n.onerror=()=>r(!1);const i=document.getElementsByTagName("script")[0];i&&i.parentNode?i.parentNode.insertBefore(n,i):document.head.appendChild(n)}))}function s(e){if(!e.sessionId)return!1;if(n.has(e.sessionId))return!0;if(!window._cbv)return!1;try{return window._cbv.push(e),n.add(e.sessionId),!0}catch(t){return console.error("[Chartbeat:pushWidget]","Failed to push widget",{sessionId:e.sessionId,error:t}),!1}}
2function l(){i.forEach((e=>s(e.widget))),i.length=0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUserIdentity=t.isUpdatePasswordSuccessResponse=void 0,t.isUpdatePasswordSuccessResponse=function(e){return void 0!==e.userName},t.isUserIdentity=function(e){return void 0!==e.uuid}},function(e,t,r){var n=r(32).Buffer,i=r(252).Transform,o=r(126).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(36)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(7);function o(e,t,r){let[o,a]=Object(n.useState)(r),s=void 0!==e,l=Object(n.useRef)(s),c=Object(n.useRef)(!1),u=Object(n.useRef)(!1);return!s||l.current||c.current?!s&&l.current&&!u.current&&(u.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:o,Object(i.a)((e=>(s||a(e),null==t?void 0:t(e))))]}},function(e,t,r){"use strict";(function(e){var n=r(6),i=r(23),o=r(164);function a(e){return n.a.isPlainObject(e)||n.a.isArray(e)}function s(e){return n.a.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,r){return e?e.concat(t).map((function(e,t){return e=s(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const c=n.a.toFlatObject(n.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,r,u){if(!n.a.isObject(t))throw new TypeError("target must be an object");r=r||new(o.a||FormData);const d=(u=n.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!n.a.isUndefined(t[e])}))).metaTokens,f=u.visitor||g,h=u.dots,p=u.indexes,b=(u.Blob||"undefined"!=typeof Blob&&Blob)&&n.a.isSpecCompliantForm(r);if(!n.a.isFunction(f))throw new TypeError("visitor must be a function");function m(t){if(null===t)return"";if(n.a.isDate(t))return t.toISOString();if(n.a.isBoolean(t))return t.toString();if(!b&&n.a.isBlob(t))throw new i.a("Blob is not supported. Use a Buffer instead.");return n.a.isArrayBuffer(t)||n.a.isTypedArray(t)?b&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function g(e,t,i){let o=e;if(e&&!i&&"object"==typeof e)if(n.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(n.a.isArray(e)&&function(e){return n.a.isArray(e)&&!e.some(a)}(e)||(n.a.isFileList(e)||n.a.endsWith(t,"[]"))&&(o=n.a.toArray(e)))return t=s(t),o.forEach((function(e,i){!n.a.isUndefined(e)&&null!==e&&r.append(!0===p?l([t],i,h):null===p?t:t+"[]",m(e))})),!1;return!!a(e)||(r.append(l(i,t,h),m(e)),!1)}const v=[],y=Object.assign(c,{defaultVisitor:g,convertValue:m,isVisitable:a});if(!n.a.isObject(t))throw new TypeError("data must be an object");return function e(t,i){if(!n.a.isUndefined(t)){if(-1!==v.indexOf(t))throw Error("Circular reference detected in "+i.join("."));v.push(t),n.a.forEach(t,(function(t,o){!0===(!(n.a.isUndefined(t)||null===t)&&f.call(r,t,n.a.isString(o)?o.trim():o,i,y))&&e(t,i?i.concat(o):[o])})),v.pop()}}(t),r}}).call(this,r(51).Buffer)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(1),i=r(13),o=r(111),a=r(40);function s(e,t,r){let i=Object(a.a)(t);Object(n.useEffect)((()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)}),[e,r])}var l=r(162);function c(e,t,r=!0){let a=Object(n.useRef)(!1);function c(r,n){if(!a.current||r.defaultPrevented)return;let o=n(r);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||r.composed&&r.composedPath().includes(t))return}return!Object(i.g)(o,i.c.Loose)&&-1!==o.tabIndex&&r.preventDefault(),t(r,o)}Object(n.useEffect)((()=>{requestAnimationFrame((()=>{a.current=r}))}),[r]);let u=Object(n.useRef)(null);s("pointerdown",(e=>{var t,r;a.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),s("mousedown",(e=>{var t,r;a.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),s("click",(e=>{Object(o.b)()||u.current&&(c(e,(()=>u.current)),u.current=null)}),!0),s("touchend",(e=>c(e,(()=>
2e.target instanceof HTMLElement?e.target:null))),!0),Object(l.a)("blur",(e=>c(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}},function(e,t,r){"use strict";function n(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFacebookLoginResponse=t.isGoogleCredentialResponse=t.isLegacyGoogleSetting=void 0,t.isLegacyGoogleSetting=function(e){return void 0!==e.auth2},t.isGoogleCredentialResponse=function(e){return void 0!==e.credential},t.isFacebookLoginResponse=function(e){return void 0!==e.status}},function(e,t,r){"use strict";var n=r(156),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(125));o.inherits=r(36);var a=r(253),s=r(192);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";const n={ForgotSuccess:{tone:"positive",message:{general:'If we have an account for that email address you will receive an email with a link to reset your password. Click on the "Reset Password" button in the email to choose a new password.'}},CAPTCHA_FAIL:{tone:"error",message:{general:'We encountered an error processing this request - please try again. If you continue to see this error, please contact <a href="mailto:[email protected]">[email protected]</a>.'}},BAD_REQUEST:{tone:"error",message:{general:'We encountered an error processing this request - please try again. If you continue to see this error, please contact <a href="mailto:[email protected]">[email protected]</a>.'}},DB_CHECK_FAIL:{tone:"error",message:{general:'We encountered an error processing this request - please try again. If you continue to see this error, please contact <a href="mailto:[email protected]">[email protected]</a>.'}},UNKNOWN:{tone:"error",message:{general:'We encountered an error processing this request - please try again. If you continue to see this error, please contact <a href="mailto:[email protected]">[email protected]</a>.'}},NoEmailToken:{tone:"error",message:{general:"<a href=\"/account/forgot_password/\">It looks like you're trying to reset your password but didn't request a password reset link. Click here to request one</a>."}},UNCONFIRMED:{tone:"error",message:{general:"It looks like this email address has never been verified. You should have received an email from us containing a link to verify your account (maybe it went to your Spam folder?). If you can't find it, click the link below to request a new one."}},AWS_ERROR:{tone:"error",message:{general:'Sorry, we were unable to authorize your account for uploading pins. Please refresh and try again. If you continue to receive this error, contact <a href="mailto:[email protected]">[email protected]</a>.'}},PIN_UPLOAD_ERROR:{tone:"error",message:{general:'Sorry, we were unable to upload your pin. Please refresh and try again. If you continue to receive this error, contact <a href="mailto:[email protected]">[email protected]</a>.'}},CLOUDINARY_UPLOAD_ERROR:{tone:"error",message:{general:'Sorry, we were unable to upload your file. Please refresh and try again. If you continue to receive this error, contact <a href="mailto:[email protected]">[email protected]</a>.'}},CATEGORY_REQUIRED_ERROR:{tone:"error",message:{general:"Category is required for upload. Please select a category and try again."}},PIN_LOCATION_REQUIRED_ERROR:{tone:"error",message:{general:"Location is required for upload. Please select a location on the map and try again."}},PIN_FILE_REQUIRED_ERROR:{tone:"error",message:{general:"No file selected. Please select a file to upload."}},PIN_DESCRIPTION_REQUIRED_ERROR:{tone:"error",message:{general:"Your description must be greater than 3 characters. Please enter a description and try again."}},SOCIAL_ONLY:{tone:"warning",message:{general:"It looks like you used a social network to log in.<br/>Unfortunately we no longer support social logins.<br/>Click the button below and we'll send you a link to a page where you can set a password."}},NO_ACCOUNT_EXISTS:{tone:"error",message:{user:"We don't seem to have an account for that email address. Please check your email address and try again."}},NO_EMAIL:{tone:"error",message:{user:"We don't seem to have an account for that email address. Please check your email address and try again."}},INCORRECT_PW:{tone:"error",message:{pass:"That's not the password we have for that email address. Please try again."}},PW_MUST_BE_RESET:{tone:"error",message:{general:'You must reset your password before you can log in. Please check your email for a link to reset your password or click "I forgot my password" below.'}},LOGIN_SUCCESS:{tone:"positive",message:{general:"Login successful! Welc
2ome!"},wdiv:{general:'<h2>Welcome to WDIV Insider!</h2><br/>Thank you for your support. Learn more about Insider at: <a href="https://www.clickondetroit.com/insider">https://www.clickondetroit.com/insider</a>'},wjxt:{general:'<h2>Welcome to News4JAX Insider!</h2><br/>Thank you for your support. Learn more about Insider at: <a href="https://www.news4jax.com/insider">https://www.news4jax.com/insider</a>'}},PIN_UPLOAD_SUCCESS:{tone:"positive",message:{general:"Your Pin was uploaded successfully!"}},RESEND_SUCCESS:{tone:"positive",message:{general:"Please check your email and click on the link to verify your address."}},PINS_LOCATION_ERROR:{tone:"error",message:{general:"There was a problem loading pins at this location. Please expand your search area."}},PINS_RESEND_SUCCESS:{tone:"positive",message:{general:"We have resent your confirmation link. Please click on the button in the email to confirm your email address."}},PINS_CONFIRM_SUCCESS:{tone:"positive",message:{general:"Thank you for confirming your email address. You can now upload, comment on, and like Pins."}},REGISTER_SUCCESS:{tone:"neutral",message:{general:'To complete your registration, please open the email and click the "Verify Account" button.'},wdiv:{general:'To complete your registration, please open the email and click the "Verify Account" button. See you soon, Insider!'},wjxt:{general:'To complete your registration, please open the email and click the "Verify Account" button. See you soon, Insider!'}},UsernameExistsException:{tone:"error",message:{email:"We already have an account under this email address. If you forgot your password, click the link below to request a new one."}},DISPLAY_NAME_EXISTS:{tone:"error",message:{user:"Someone else is already using that Display Name, please choose another."}},SAILTHRU_OPTOUT_ALL:{tone:"error",message:{general:"You have opted out of receiving emails from us. In order for us to send you account-related emails you'll need to opt back in."}},NO_PASSWORD_CODE:{tone:"error",message:{general:"Something is wrong with this link. If you copied it from your browser, make sure you copied the whole thing. "}},PW_RESET_SUCCESS:{tone:"positive",message:{general:"Your password was successfully updated. You will be able to log in with this password from now on. "}},CodeMismatchException:{tone:"error",message:{general:"Something is wrong with this link. If you copied it from your browser, make sure you copied the whole thing. "}},ExpiredCodeException:{tone:"error",message:{general:"This password reset link has expired (they only last one hour). Click the button below and we'll send another."}},ExpiredSubsCode:{tone:"error",message:{general:"This password reset code has expired (they can only be used once and they only last an hour)."}},InvalidPasswordException:{tone:"error",message:{pass:"Sorry, that password is too short. Please create a password that is six characters or longer."}},EMAIL_AS_USERNAME:{tone:"error",message:{user:"Sorry, for privacy reasons we do not allow Display Names to be an email address."}},LimitExceededException:{tone:"error",message:{general:"It seems you have tried to reset your password too many times in a short period. Please wait 15 minutes and try again."}},UserNotConfirmedException:{tone:"error",message:{general:"It looks like this email address has never been verified. You should have an email from us with a link to verify your account (maybe it went to your Spam folder?). If you can't find it, click the link below and we'll send another."}},UserNotFoundException:{tone:"error",message:{general:"We don't seem to have an account for that email address. Please check your email address and try again. "}},PASSWORD_MISMATCH:{tone:"error",message:{pass:"These passwords don't match, please enter them again."}},ACCOUNT_LOCKED:{tone:"error",message:{general:"You have entered too many incorrect passwords in a short period of time. As a security precaution, your account has been locked for 10 minutes."}},PASSWORD_TOO_SHORT:{tone:"error",message:{pass:"Sorry that password is too short. Please create a password that is six or more characters."}},BAD_RESET_LINK:{tone:"error",message:{general:"Something is wrong with this link. If you copied it from your browser, make sure you copied the whole thing."}},VERIFICATION_SUCCESS:{tone:"positive",message:{general:"Thanks! Your email has been verified."}},VERIFICATION_ERROR:{tone:"error",message:{general:"Sorry! It seems that confirmation code has expired (they only last 24 hours). Please click the button below to send a new one."}},VERIFICATION_RESEND_SUCCESS:{tone:"positive",message:{general:'Success! To complete your registration, please open the email we\'ve just sent you and click the "Verify Account" button.'}}
2,ACCESS_DENIED:{tone:"error",message:{general:"You must be logged in to modify your account."}},NO_DELETE_TOKEN:{tone:"error",message:{general:"<a href=\"/account/delete/\">It looks like you're trying to delete your account but don't have a valid link. Click here to request one.</a>"}},DELETE_SEND_SUCCESS:{tone:"success",message:{general:"A delete account confirmation email has been sent to the email on file. Please follow the link in the email to delete your account."}},DELETE_DECLINE_SUCCESS:{tone:"success",message:{general:"The delete request has been canceled."}},DELETE_CONFIRM_SUCCESS:{tone:"success",message:{general:"Your account has been deleted and you will be logged out. Thank you for being an Insider!"}},ACTIVE_SUBSCRIPTION:{tone:"error",message:{general:'<a href="/account/settings">Profile with an active subscription cannot be deleted. Click here to cancel your subscription first</a>.'}},EMAIL_ADDRESS_ERROR:{tone:"error",message:{email:"Please enter a valid email address. Example: [email protected]"}},LEGAL_DISCLAIMER_REQUIRED_ERROR:{tone:"error",message:{general:"Please accept the Terms of Use to upload"}}};t.a=n},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return O})),r.d(t,"c",(function(){return w}));var n=r(26),i=r(5),o=r(1),a=r(166),s=r(12),l=r(99),c=r(299),u=r(302),d=r(31),f=r(0);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m=(e,t)=>{const{type:r,payload:n}=t;if("ADD"===r){const{reactId:t,position:r,defined:i}=n,o=p({},e),a=r in o.nameCount?o.nameCount[r]+1:1;return o.nameCount[r]=a,o.ads[t]={divId:`${r}${a}`,reactId:t,defined:i},o}if("SET_DEFINED"===r){const{reactId:t,defined:r}=n,i=p({},e);return i.ads[t].defined=r,i}if("SET_VIEWPORT_SIZE"===r){const{viewportSize:t}=n,r=p({},e);return r.viewportSize=t,r}if("SET_SECTION"===r){const{section:t}=n,r=p({},e);return r.section=t,r}if("SET_ALL_DEFINED"===r){const{allDefined:t}=n,r=p({},e);return r.allDefined=t,r}if("REMOVE"===r){const{reactId:t}=n,r=p({},e);return delete r.ads[t],r}return e},g=Object(o.createContext)(void 0),v=Object(o.createContext)(void 0),y=({children:t})=>{const{isAdmin:r}=Object(i.useAppContext)(),h=Object(u.a)(),b=Object(o.useRef)(!1),[y,w]=Object(o.useReducer)(m,p({},h,{viewportSize:void 0,allDefined:!1})),{arcSite:O,metaValue:j,requestUri:x,globalContent:{_id:_,type:S,taxonomy:E}={},siteProperties:{GamNetworkId:k,enableMile:C,weatherLocation:P}}=Object(i.useAppContext)(),{status:M}=Object(d.b)(),$=Object(n.useContent)({source:"baron-weather",query:{source:"wplg"===O?"wsi":"baron",product:"metar",lat:null==P?void 0:P[0],lng:null==P?void 0:P[1]}}),T=Object(n.useContent)({source:"baron-weather",query:{source:"wplg"===O?"wsi":"baron",product:"extended",days:"3",lat:null==P?void 0:P[0],lng:null==P?void 0:P[1]}}),I=("story"===S?"article":x.startsWith("/topic/")&&"topic")||j("pageType")||j("type")||"website",A=x.split("?")[0],R="undefined"==typeof window?e.from(A).toString("base64"):btoa(A),D=["article","ugc","video"].includes(I)?_:R.replaceAll("=","").replaceAll("+","-").replaceAll("/","_"),L=Object(n.useContent)({source:"header-nav",query:{hierarchy_name:"ad-units"}});return Object(o.useEffect)((()=>
2{if(!C)return;const e=()=>{w({type:"SET_VIEWPORT_SIZE",payload:{viewportSize:window.innerWidth>=970?"Desktop":"Mobile"}})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[C]),Object(o.useEffect)((()=>{var e,t,n,i,o,u;if(!C||!y.viewportSize||r)return;const d=j("atdlayout")||"story"===S&&"article"||"video"===S&&"video"||"topic"===S&&"topic"||x.startsWith("/topic/")&&"topic"||j("pageType")||"section",{primary_section:f,sections:h}=E||{},{path:m,name:g}=f||{},[{name:v,path:_}={name:void 0,path:void 0}]=h||[];let P=m||_||j("section_path");(null===(e=P)||void 0===e?void 0:e.startsWith("/"))&&(P=P.slice(1)),(null===(t=P)||void 0===t?void 0:t.endsWith("/"))&&(P=P.slice(0,-1));const A=g||v||j("section"),R=`${null!==(n=null===(i=P)||void 0===i?void 0:i.replaceAll("/","_"))&&void 0!==n?n:null==A?void 0:A.replaceAll("_","-").replaceAll(" ","-").toLowerCase()}`||"other";y.section!==R&&w({type:"SET_SECTION",payload:{section:R}});const N=[];null==L||null===(o=L.children)||void 0===o||o.forEach((e=>{N.push({path:e._id,name:e.name||""})})),N.push({path:"/top_stories",name:"Top Stories"});const B=N.some((e=>(e.path.startsWith("/")?e.path.slice(1):e.path).replaceAll("/","_").startsWith(R.toLowerCase())));window.googletag=window.googletag||{cmd:[]};const z=(null===(u=y.tags)||void 0===u?void 0:u.replaceAll("'","").split(", "))||[],F=Object(s.d)("BCSessionID");let U=[];try{let e=null,t=null,r=null;if($&&"source"in $&&(e={curTemp:$.curTemp,sky:$.sky,iconCode:$.iconCode}),T&&Array.isArray(T)&&T.length>0){const e=T[0];t=e?p({},e,{daytime:e.daytime?p({},e.daytime,{temperature:e.daytime.temperature?p({},e.daytime.temperature,{value:Object(l.a)(e.daytime.temperature.value)}):void 0}):void 0,temperature:e.temperature?{max:Object(l.a)(e.temperature.max),min:Object(l.a)(e.temperature.min)}:void 0}):null;const n=T.length>1?T[1]:null;r=n?p({},n,{daytime:n.daytime?p({},n.daytime,{temperature:n.daytime.temperature?p({},n.daytime.temperature,{value:Object(l.a)(n.daytime.temperature.value)}):void 0}):void 0,temperature:n.temperature?{max:Object(l.a)(n.temperature.max),min:Object(l.a)(n.temperature.min)}:void 0}):null}U=Object(c.a)(e,t,r)}catch(e){console.error("[AdContext] Error generating weather ad tags:",e),U=[]}googletag.cmd.push((()=>{googletag.pubads().setTargeting("tags",z),googletag.pubads().setTargeting("page_type",I),googletag.pubads().setTargeting("userSignedIn","loggedIn"===M?"true":"false"),F&&googletag.pubads().setTargeting("ppid",F),U.length>0&&googletag.pubads().setTargeting("wx",U)})),D&&googletag.cmd.push((()=>{googletag.pubads().setTargeting("coid",D)})),Object.values(y.ads).forEach((e=>{if(e.defined)return;const t=y.viewportSize?`MileTech_${e.divId}_${y.viewportSize.toUpperCase()}`:void 0;let r;if(e.divId.startsWith("PROMO"))return"article"===d&&"Mobile"===y.viewportSize||(r=`/${k}/Promos/${O.toUpperCase()}`,googletag.cmd.push((()=>{var n,i;null===(n=googletag.defineSlot(r,a.a[e.divId.replace(/\d+$/,"")][null===(i=y.viewportSize)||void 0===i?void 0:i.toLowerCase()],t))||void 0===n||n.addService(googletag.pubads()).setTargeting("pos",e.divId)}))),void w({type:"SET_DEFINED",payload:{reactId:e.reactId,defined:!0}});r=`/${k}/${O.toUpperCase()}/Web_${y.viewportSize}_Display/${B?R:"other"}/${d}/${e.divId}`,"article"===d&&"Mobile"===y.viewportSize&&["DISPLAY"].includes(e.divId.slice(0,-1))||"Mobile"===y.viewportSize&&e.divId.startsWith("FOOTER")?w({type:"SET_DEFINED",payload:{reactId:e.reactId,defined:!0}}):"Desktop"!==y.viewportSize||!e.divId.startsWith("TOP")&&!e.divId.startsWith("EOA")?(googletag.cmd.push((()=>{var n,i,o;null===(n=googletag.defineSlot(r,e.divId.startsWith("LEADER_BOARD")?a.a[e.divId][null===(i=y.viewportSize)||void 0===i?void 0:i.toLowerCase()]:a.a[e.divId.replace(/\d+$/,"")][null===(o=y.viewportSize)||void 0===o?void 0:o.toLowerCase()],t))||void 0===n||n.addService(googletag.pubads()).setTargeting("pos",e.divId)})),w({type:"SET_DEFINED",payload:{reactId:e.reactId,defined:!0}})):w({type:"SET_DEFINED",payload:{reactId:e.reactId,defined:!0}})}));Object.values(y.ads).every((e=>e.defined))&&!b.current&&(b.current=!0,w({type:"SET_ALL_DEFINED",payload:{allDefined:!0}}),googletag.cmd.push((()=>{"sponsored"!==R&&(googletag.pubads().disableInitialLoad(),googletag.pubads().enableSingleRequest()),googletag.enableServices()})))}),[k,null==L?void 0:L.children,O,$,C,T,r,j,D,I,x,y.ads,y.section,y.tags,y.viewportSize,E,S,M]),Object(f.jsx)(g.Provider,{value:y,children:Object(f.jsx)(v.Provider,{value:w,children:t})})},w=()=>{const e=Object(o.useContext)(g);if(void 0===e)throw new Error("useAdsContext must be used within a AdProvider");return e},O=()=>{const e=Object(o.useContext)(v);if(void 0===e)throw new Error("useAdDispatch must be used within a AdProvider");return e}}).call(this,r(51).Buffer)},function(e,t,r){"use strict";var n=r(0);
2t.a=({timeZone:e="America/New_York",className:t,dateString:r})=>{const i=new Date(r.replace(/(\d{4})-(\d{1,2})-(\d{1,2}) /,"$2/$3/$1 ")),o=i.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZone:e});return Object(n.jsx)("time",{dateTime:i.toISOString(),className:t,children:o})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(7);function o(e,t){let r=Object(n.useRef)([]),o=Object(i.a)(e);Object(n.useEffect)((()=>{let e=[...r.current];for(let[n,i]of t.entries())if(r.current[n]!==i){let n=o(t,e);return r.current=t,n}}),[o,...t])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),i=r(18),o=r(40);function a(e,t){let[r,a]=Object(n.useState)(e),s=Object(o.a)(e);return Object(i.a)((()=>a(s.current)),[s,a,...t]),r}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));let n=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&n[0]!==e.target&&(n.unshift(e.target),n=n.filter((e=>null!=e&&e.isConnected)),n.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}))},function(e,t,r){"use strict";function n(e){return Math.round(9*e/5+32)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l={display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"$gibson",fontWeight:"$semibold",borderRadius:"$full"},c={xs:{height:"$4",minWidth:"$4",px:"$1",fontSize:"$-1",fontWeight:"$semibold"},sm:{height:"$5",minWidth:"$5",px:"$1",fontSize:"$0",fontWeight:"$semibold"},md:{height:"$6",minWidth:"$6",px:["$1","$2"],fontSize:"$1",fontWeight:"$bold"},lg:{height:"$8",minWidth:"$8",px:"$2",fontSize:"$2",fontWeight:"$bold"}},u={primary:{backgroundColor:"$blue.600",color:"$white",border:"none"},red:{backgroundColor:"$red.600",color:"$white",border:"none"},orange:{backgroundColor:"$orange.600",color:"$white",border:"none"},green:{backgroundColor:"$green.600",color:"$white",border:"none"},gray:{backgroundColor:"$blueGray.100",color:"$blueGray.700",border:"none"},black:{backgroundColor:"$black.200",color:"$white",border:"none"},white:{backgroundColor:"$white",color:"$blueGray.700",border:"none"},ghost:{backgroundColor:"transparent",color:"$blueGray.700",border:"none"},ghostWhite:{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"$white",border:"none"}};t.a=({count:e,maxCount:t=99,variant:r="red",size:o="md",className:s,sx:d})=>{if(e<0)return null;const f=e>t?`${t}+`:String(e);return Object(i.jsx)(n.e,{"aria-hidden":"true",className:s,sx:a({},l,{},c[o],{},u[r],{},d),children:f})}},function(e,t,r){"use strict";r.r(t),r.d(t,"AD_BANNER_IDS",(function(){return _})),r.d(t,"default",(function(){return S}));var n=r(141),i=r(2),o=r(5),a=r(3),s=r(1),l=r(94);const c=/^[1][nNyY-][nNyY-][nNyY-]$/;var u=class{constructor(){this.version=1,this.baseString=null}getUsprivacyString(){return this.baseString}setUsprivacyString(e){let t=!1;return c.test(e)&&(this.baseString=e,t=!0),t}getVersion(){return this.version}},d=function(e){let t=[];const r=new u;function n(e,t){if("function"==typeof t){if(null!=e&&1!==e)return void("function"==typeof t&&t(null,!1));const n=function(e){const t=`${e}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e+=1){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return""}("usprivacy");n.length&&(r.setUsprivacyString(n)||console.warn("Warning: uspString not set."));const i=r.getUsprivacyString();
2i?t({version:r.getVersion(),uspString:i},!0):t({version:null,uspString:null},!1)}else console.error("__uspapi: callback parameter not a function")}function i(e){"function"==typeof e&&t.push({command:"registerDeletion",callback:e})}e.__uspapi=new function(e){return e.__uspapi&&(t=e.__uspapi()||t),function(e,...r){if(!e||!e.length)return t;try{return{getUSPData:n,registerDeletion:i,__uspapi:()=>!0}[e].apply(null,r)}catch(t){console.error("__uspapi: Invalid command: ",e)}return null}}(e),e.addEventListener("message",(function(t){const r=t&&t.data&&t.data.__uspapiCall;r&&e.__uspapi(r.command,r.version,((e,n)=>{t.source.postMessage({__uspapiReturn:{returnValue:e,success:n,callId:r.callId}},"*")}))}),!1)},f=r(130),h=r(0);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=({className:e,domId:t,sx:r})=>{const{globalContent:n,metaValue:a,requestUri:c,isAdmin:u}=Object(o.useAppContext)(),{viewportSize:d,section:p,allDefined:m}=Object(l.c)(),{ref:g,inView:v}=Object(f.a)({root:null,initialInView:!1,fallbackInView:!1,rootMargin:"0px",threshold:.25,triggerOnce:!0}),y=d?`MileTech_${t}_${d.toUpperCase()}`:void 0;Object(s.useEffect)((()=>{!1===m||u||(window.googletag=window.googletag||{cmd:[]},v&&y&&googletag.cmd.push((()=>{if(!window.googletag||!window.googletag.apiReady)return void console.error("[MileTech] GPT is not ready");if("sponsored"!==p&&!t.startsWith("PIXEL")&&!t.startsWith("PROMO"))return;const e=googletag.pubads().getSlots().find((e=>e.getSlotElementId()===y));e&&(googletag.display(y),googletag.pubads().refresh([e]))})))}),[m,y,t,v,u,p]);const w=a("atdlayout")||"story"===(null==n?void 0:n.type)&&"article"||"video"===(null==n?void 0:n.type)&&"video"||"topic"===(null==n?void 0:n.type)&&"topic"||c.startsWith("/topic/")&&"topic"||a("pageType")||"section";return!d||"Mobile"===d&&"article"===w&&["DISPLAY","PROMO"].includes(t.slice(0,-1))||t.startsWith("adbefore")||t.startsWith("adafter")?null:Object(h.jsx)(i.e,{ref:g,id:y,className:e,sx:b({},r,{},u?{"&:before":{content:`"AdUnit ${y}"`,position:"absolute",fontSize:"$0",top:"50%",left:"50%",transform:"translate(-50%, -50%)",lineHeight:"1",color:"$blueGray.900"}}:{})})};function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}g.displayName="AdUnit";const O={PIXEL:{minHeight:"0"},LEADER_BOARD:{LEADER_BOARD1:{minHeight:["50px",null,"250px"]},LEADER_BOARD2:{minHeight:"250px"},LEADER_BOARD3:{minHeight:["50px","250px"]},DEFAULT:{minHeight:["250px",null,"90px","250px"]}},PREMIUM_BANNER:{LEADER_BOARD1:{minHeight:["50px",null,"250px"]},LEADER_BOARD2:{minHeight:"250px"},LEADER_BOARD3:{minHeight:["50px","250px"]},DEFAULT:{minHeight:["50px",null,"250px"]}},PREMIUM:{minHeight:"250px"},DISPLAY:{minHeight:"600px"},RIGHT:{minHeight:"600px"},PROMO:{minHeight:"600px"},AUTO_INCREASE:{minHeight:"250px"},TOP:{minHeight:"50px"},EOA:{minHeight:"250px"},FOOTER:{minHeight:"90px"}},j=(e,t)=>{if("LEADER_BOARD"===e||"PREMIUM_BANNER"===e){if("LEADER_BOARD1"===t||"LEADER_BOARD2"===t||"LEADER_BOARD3"===t){return O[e][t]}return O[e].DEFAULT}return O[e]};const x=(e,{type:t})=>{const r={STICK:{sticky:"stuck"},UNSTICK:{sticky:"unstuck"},DISABLE:{sticky:"unstuck",hasStuck:!0}
2,RESET:{sticky:"unstuck",hasStuck:!1}};try{return y({},e,{},r[t])}catch(e){throw new Error(`Unhandled type: ${t}`)}},_=["LEADER_BOARD","PREMIUM_BANNER","TOP"];function S({customFields:{adPath:e,pos:t,extraClasses:r="",mobileSticky:a=!0,fullWidth:c=!1,stopAdRefresh:u=!1},id:f,sx:p}){const{isAdmin:b,layout:m,requestUri:v,siteProperties:{enableMile:w}}=Object(o.useAppContext)(),O=new URLSearchParams(v.split("?")[1]).get("disable"),S=null==O?void 0:O.split(",").includes("ads"),E=Object(l.c)(),k=Object(l.b)(),{ads:C}=E||{},P=Object(s.useRef)(null),M="simple-dark"===m,$=(null==C?void 0:C[f])?C[f].divId:f;let T=t;"PREMIUM_BANNER"===t?T="LEADER_BOARD":"PREMIUM"===t&&(T="RIGHT");let I=`fixedAd fixedAd-${T} fixedAd-rendered ${r}`;(null==$?void 0:$.startsWith("PROMO"))&&(I=`${I} promo`);const A=Object(s.useMemo)((()=>_.includes(T)),[T]),[R,D]=Object(s.useReducer)(x,{sticky:"stuck",hasStuck:!1}),[L,N]=Object(s.useState)(!1),B=Object(s.useMemo)((()=>E.viewportSize?`MileTech_${$}_${E.viewportSize.toUpperCase()}`:void 0),[E.viewportSize,$]);Object(s.useEffect)((()=>{"AUTO_INCREASE"===T&&k({type:"ADD",payload:{position:T,reactId:f,defined:!1}})}),[k,T,f]),Object(s.useEffect)((()=>{function e(e){window.googletag=window.googletag||{cmd:[]};const{slot:t}=e;if(t.getSlotElementId()===B){var r;if(u)null===(r=document.getElementById($))||void 0===r||r.setAttribute("data-refresh","false");N(!0)}}return $.startsWith("adafter")||$.startsWith("adbefore")||googletag.cmd.push((()=>{googletag.pubads().addEventListener("slotRenderEnded",e)})),()=>{googletag.cmd.push((()=>{googletag.pubads().removeEventListener("slotRenderEnded",e)}))}}),[T,$,u,w,B]),Object(s.useEffect)((()=>{if(!function(e){if(e.__uspapi)try{if(e.__uspapi("__uspapi"))return!0}catch(e){return!1}return!1}(window))try{d(window)}catch(e){console.error("Error initializing CCPA",e)}}),[]);const z=Object(s.useMemo)((()=>j(T,$).minHeight),[T,$]);return S?null:"FOOTER"===t?"Desktop"===E.viewportSize?Object(h.jsx)(h.Fragment,{children:"stuck"!==R.sticky||R.hasStuck||b?null:Object(h.jsxs)(i.n,{ref:P,className:"floatingWrapper",width:"$full",position:"fixed",zIndex:1200,bottom:"0",left:"0",right:"0",placeContent:"center",minHeight:L?z:0,maxHeight:L?z:0,sx:{backgroundColor:"rgba(11, 14, 19, 0.85)",boxShadow:"0px -8px 16px 0px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(2px)","&:before":{content:"'Advertisement'",position:"absolute",zIndex:0,fontSize:"$0",fontFamily:"$openSans",fontStyle:"italic",fontWeight:"$normal",color:"$blueGray.400"}},children:[L&&Object(h.jsx)(i.f,{variant:"$icon",iconLeft:n.faTimesCircle,onClick:()=>{D({type:"DISABLE"}),k({type:"REMOVE",payload:{reactId:f}})},display:"inline-flex",position:"absolute",top:"-32px",right:"0",zIndex:"$100",sx:{color:"$black.500","&:hover":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent",boxShadow:"none"}},children:Object(h.jsx)(i.O,{children:"Close"})}),Object(h.jsx)(g,{className:I,domId:$,sx:{zIndex:1}})]})}):null:"TOP"===t?"Desktop"===E.viewportSize?null:Object(h.jsx)(i.n,{className:"adWrapper",ref:P,"aria-label":"Advertisement",justifyContent:"center",textColor:M?"$gray.700":"$blueGray.200",position:"relative",sx:y({display:["flex",null,"none"],width:"$full"},A?{minHeight:z,height:b?z:void 0,"&:before":{content:"'Advertisement'",position:"absolute",fontSize:"$0",fontStyle:"italic",color:"$blueGray.400"}}:{minHeight:`calc(${z} + 17px)`,height:b?`calc(${z} + 17px)`:void 0,borderTop:"1px solid",paddingTop:"$3","&:before":{content:"'Advertisement'",position:"absolute",fontSize:"$0",top:"-7px",lineHeight:"1",backgroundColor:M?"$black.400":"$white",paddingX:"$2",color:"$blueGray.400",fontStyle:"italic"}},{},c?{gridColumn:"-1 / 1"}:void 0,{},M?{bg:b?"$black.400":void 0,borderColor:"$blueGray.700"}:{bg:b?"$blueGray.100":void 0,borderColor:"$blueGray.200"},{},p),children:Object(h.jsx)(g,{className:I,domId:$,sx:{position:"sticky !important",top:"100px",width:"100%",height:b?"100%":"min-content"}})}):"EOA"===t&&"Mobile"!==E.viewportSize?null:Object(h.jsx)(h.Fragment,{children:!a||"LEADER_BOARD1"!==$||"stuck"!==R.sticky||R.hasStuck||b?Object(h.jsx)(h.Fragment,{children:R.hasStuck?null:Object(h.jsx)(i.n,{className:"adWra
2pper",ref:P,"aria-label":"Advertisement",justifyContent:"center",textColor:M?"$gray.700":"$blueGray.200",position:"relative",sx:y({display:c?"none":"flex",width:"$full"},A?{minHeight:z,height:b?z:void 0,"&:before":{content:"'Advertisement'",position:"absolute",fontSize:"$0",fontStyle:"italic",color:"$blueGray.400"}}:{minHeight:`calc(${z} + 17px)`,height:b?`calc(${z} + 17px)`:void 0,borderTop:"1px solid",paddingTop:"$3","&:before":{content:"'Advertisement'",position:"absolute",fontSize:"$0",top:"-7px",lineHeight:"1",backgroundColor:M?"$black.400":"$white",paddingX:"$2",color:"$blueGray.400",fontStyle:"italic"}},{},c?{gridColumn:"-1 / 1"}:void 0,{},M?{bg:b?"$black.400":void 0,borderColor:"$blueGray.700"}:{bg:b?"$blueGray.100":void 0,borderColor:"$blueGray.200"},{},"PIXEL"===t?{position:"fixed",display:"block",top:"0",left:"0",height:"1px",width:"1px",border:"none",zIndex:"-100"}:null,{},p),children:Object(h.jsx)(g,{className:I,domId:$,sx:"PIXEL"!==t?{position:"sticky !important",top:"100px",height:b?"100%":"min-content",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}:void 0})})}):Object(h.jsxs)(i.n,{ref:P,className:"floatingWrapper",textColor:M?"$gray.700":"$blueGray.200",placeContent:"center",sx:{fontFamily:"$gibson",fontWeight:"$bold",position:["fixed","static"],zIndex:["$1000","initial"],width:"$full",minHeight:z,bottom:["0","initial"],left:["0","initial"],right:["0","initial"],maxWidth:"75rem"},children:[Object(h.jsx)(i.f,{variant:"$icon",iconLeft:n.faTimesCircle,onClick:()=>D({type:"DISABLE"}),display:["inline-flex","none"],position:"absolute",top:"-32px",right:"0",zIndex:"$100",sx:{color:"$black.500","&:hover":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent",boxShadow:"none"}},children:Object(h.jsx)(i.O,{children:"Close"})}),Object(h.jsx)(i.n,{placeContent:"center",sx:{width:"$full",minHeight:z,alignItems:"center",justifyContent:"center","&:before":{content:"'Advertisement'",position:"absolute",zIndex:0,fontSize:"$0",fontFamily:"$openSans",fontStyle:"italic",fontWeight:"$normal",color:"$blueGray.400"}},children:Object(h.jsx)(g,{className:I,domId:$,sx:{zIndex:1}})}),Object(h.jsx)(i.e,{className:"adOverlay",sx:{display:[null,"none"],position:"absolute",zIndex:"-1",inset:"0",width:"$screenWidth",backgroundColor:"rgba(11, 14, 19, 0.85)",boxShadow:"0px -8px 16px 0px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(2px)"}})]})})}S.propTypes={customFields:a.shape({adPath:a.string.tag({name:"Ad Unit",description:"The Ad Unit Path. For example: WDIV/Web/News",defaultValue:"{{arcSite}}/Web/{{content.taxonomy.primary_section.path}}"}),pos:a.oneOf(["LEADER_BOARD","RIGHT","DISPLAY","AUTO_INCREASE","PIXEL","PREMIUM_BANNER","PREMIUM","PROMO","TOP","EOA","FOOTER"]).tag({defaultValue:"LEADER_BOARD",labels:{LEADER_BOARD:"Leaderboard",RIGHT:"Right",DISPLAY:"Display",AUTO_INCREASE:"Banner",PROMO:"Promo Display",TOP:"Top",EOA:"EOA",FOOTER:"Footer"},name:"Position"}).isRequired,extraClasses:a.string.tag({name:"Extra Classes",description:"Extra Classes to be added to the container div"}),mobileSticky:a.bool.tag({name:"Enable Mobile Sticky Behavior",description:"For use with LEADER_BOARD1 position",defaultValue:!1}),fullWidth:a.bool.tag({name:"Full Width",description:"Span the full grid, for use with Premium Leaderboard outside of chain",defaultValue:!1}),stopAdRefresh:a.bool.tag({name:"Stop Ad Refresh Behavoir",description:"Will cause long-term problems",defaultValue:!1})}),id:a.string.isRequired,sx:a.shape({})}},function(e,t,r){"use strict";function n(e){const t=e.toString();if(t.match(/[A-Z]/gi))return t;if(t.length>1&&"0"===t[0])return t;return!isNaN(parseFloat(t))&&-1===t.indexOf(":")&&-1===t.indexOf(".")?`${t}.0`:t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(104),i=r(117),o=r(28);class a extends o.a{constructor(e){super("progressive",e)}}class s extends i.a{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(Object(n.b)()),this}progressive(e){return e instanceof a?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(Object(n.d)(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Object(n.c)()),this}static fromJson(e){const{formatType:t,lossy:r,progressive:n,preserveTransparency:i}=e;let o;return o=t?new this("f",t):new this("f"),n&&(n.mode?o.progressive(n.mode):o.progressive()),r&&o.lossy(),i&&o.preserveTransparency(),o}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o}
vendor: 4,343 bytes, line 2
2)),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return l})),r.d(t,"a",(function(){return i}));var n=r(28);function i(){return new n.a("ignore_aspect_ratio")}function o(){return new n.a("lossy")}function a(){return new n.a("preserve_transparency")}function s(e){return new n.a("progressive",e)}function l(){return new n.a("region_relative")}function c(){return new n.a("relative")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(476);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faCheckCircle=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";(function(t,n){var i=65536,o=4294967295;var a=r(32).Buffer,s=t.crypto||t.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var l=0;l<e;l+=i)s.getRandomValues(r.slice(l,l+i));else s.getRandomValues(r);if("function"==typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(60),r(53))},function(e,t,r){var n=r(32).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var l=a%i,c=Math.min(o-s,i-l),u=0;u<c;u++)r[l+u]=e[s+u];s+=c,(a+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_
2UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(277),o=r(281);r(109)(c,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var l=a[s];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(53))},function(e,t,r){"use strict";function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),i=r(57),o=r(18);function a({container:e,accept:t,walk:r,enabled:a=!0}){let s=Object(n.useRef)(t),l=Object(n.useRef)(r);Object(n.useEffect)((()=>{s.current=t,l.current=r}),[t,r]),Object(o.a)((()=>{if(!e||!a)return;let t=Object(i.a)(e);if(!t)return;let r=s.current,n=l.current,o=Object.assign((e=>r(e)),{acceptNode:r}),c=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1);for(;c.nextNode();)n(c.currentNode)}),[e,a,s,l])}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function i(e){return[e.screenX,e.screenY]}function o(){let e=Object(n.useRef)([-1,-1]);return{wasMoved(t){let r=i(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=i(t)}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(101),i=r(0);const o=["global/story-list","global/story-list-v2","weather/baron-7-day","global/HTML-embed","weather/baron-hourly"];function a(e,t){const r={pos:"AUTO_INCREASE",extraClasses:"autoad"},a=[...t];let s=1;if(e&&e.length>0&&e.every(((e,t,l)=>"ads/basic"!==e.type&&(o.includes(e.type)&&l.length>t+1&&o.includes(l[t+1].type)&&(a.splice(t+s,0,Object(i.jsx)(n.default,{customFields:r,id:`adafter-${e.id}`},`adafter-${e.id}`)),s+=1),!0)))){if(0===s){const t=e[e.length-1].id;a.push(Object(i.jsx)(n.default,{customFields:r,id:`adafter-${t}`},`adafter-${t}`))}return a}return t}},function(e,t,r){"use strict";function n(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(187),i=r(526),o=r(186),a=r(238),s=r(525),l=r(2),c=r(1),u=r(14),d=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const m=Object(c.lazy)((async()=>({default:(await Promise.resolve().then(r.bind(null,222))).AdvancedVideo}))),g=(new Date).getTime();t.a=e=>{let{className:t,publicId:r,lazy:f,shouldBeStatic:p=!1,autoPlay:v,placeholder:y="$blueGray.100",poster:w,url:O,width:j,height:x,layout:_="responsive",objectFit:S="cover",sx:E,invalidateVersion:k=!1}=e,C=b(e,["className","publicId","lazy","shouldBeStatic","autoPlay","placeholder","poster","url","width","height","layout","objectFit","sx","invalidateVersion"]);if(!O&&!r)return null;const P=new o.a({cloud:{cloudName:"graham-media-group"}});let M;if(O){var $;const e=null===($=O.match(/https?:\/\/[a-zA-Z0-9.-]*\//))||void 0===$?void 0:$[0],t=e?u.a[e]:void 0;M=P.video(t&&e?O.replace(e,t):O),t||M.setDeliveryType("fetch")}return!O&&r&&(M=P.video(r)),M?(j&&M.resize(Object(i.a)().width(j)),M.delivery(Object(n.c)(Object(s.a)())),k&&M.setVersion(g),p&&x&&j?Object(d.jsx)(l.d,{className:t,ratio:`${j}:${x}`,bg:y,sx:h({position:"relative"},E),children:Object(d.jsxs)("video",h({},C,{autoPlay:v,poster:w,children:[Object(d.jsx)("source",{src:`${M.delivery(Object(n.b)(Object(a.b)())).toURL()}`,type:"video/mp4"}),Object(d.jsx)("source",{src:`${M.delivery(Object(n.b)(Object(a.d)())).toURL()}`,type:"video/webm"}),Object(d.jsx)("source",{src:`${M.delivery(Object(n.b)(Object(a.c)())).toURL()}`,type:"video/ogg"})]}))}):Object(d.jsx)(l.e,{className:t,sx:h({position:"relative"},"fill"===_&&{height:"auto","& video":{width:"$full",height:"$full",position:"absolute",objectFit:S}},{},"fixed"===_&&{height:x,width:j},{},E),children:x&&j&&"fixed"!==_?Object(d.jsx)(l.d,{ratio:`${j}:${x}`,bg:y,children:Object(d.jsx)(c.Suspense,{fallback:null,children:Object(d.jsx)(m,h({cldVid:M,poster:w,autoPlay:v,preload:f?"none":"auto"},C))})}):Object(d.jsx)(c.Suspense,{fallback:Object(d.jsx)(l.d,{ratio:j&&x?`${j}:${x}`:"16:9",bg:y}),children:Object(d.jsx)(m,h({cldVid:M,poster:w,autoPlay:v,preload:f?"none":"auto"},C))})})):null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(49),i=r(17),o=r(25),a=r(78);class s extends n.a{constructor(e,t,r){let n;super(),this._actionModel={},n=t instanceof i.a?t.getValue():t,this._actionModel.actionType=a.h[e],this._actionModel[r]=n,this.addQualifier(new o.a(e,t))}}},function(e,t,r){"use strict";var n=r(492),i=r(496),o=r(16),a=r.n(o),s=r(1),l=r(2),c=r(143),u=r(495),d=r(334),f=r(105),h=r(0);var p=({message:e="",tone:t="neutral"})=>{const r={neutral:{color:"color_gray"},error:{color:"color_error",icon:u.faExclamationCircle},warning:{color:"color_warning",icon:d.faExclamationTriangle},positive:{color:"color_blue",icon:f.faCheckCircle}},n=r[t]||r.neutral;return Object(h.jsxs)("div",{className:a()("fieldMessage","display_flex","text_left","font_regular",n.color),children:[n.icon&&("positive"===t||"error"===t||"warning"===t)&&Object(h.jsx)(l.r,{icon:n.icon,className:"mr-xsm"}),Object(h.jsx)("span",{style:{transform:"translateY(-5px)"},children:e})]})},b=r(486);const m=Object(s.forwardRef)((({autoComplete:e,className:t,disabled:r,id:o,label:u,marginBottom:
2d,message:f,name:m,onChange:g,placeholder:v,popOut:y=!1,required:w,size:O="rg",style:j,tone:x="neutral",value:_="",type:S="text",showToggle:E=!1},k)=>{const[C,P]=Object(s.useState)(!1),M=null!==d?{marginBottom:`${d}rem`}:"";return Object(h.jsxs)("div",{className:a()("textFieldWrap","relative","font_gibson","font_regular",t,x),style:Object.assign(M,j),children:[E?Object(h.jsx)(l.r,{className:"transition-300",icon:C?i.faEyeSlash:n.faEye,sx:{color:C?"$blue.500":"$blueGray.400",position:"absolute",right:"$3",top:"$3",cursor:"pointer","&:hover":{color:"$blue.500"}},onClick:()=>P(!C),fixedWidth:!0}):null,Object(h.jsx)(b.a,{autoComplete:e,className:a()(O,{"mb-sm":f}),disabled:r,id:o,name:m,onChange:g,placeholder:v,popOut:y,ref:k,required:w,type:C?"text":S,value:_||""}),Object(h.jsx)(c.a,{className:"absolute font_gibson font_medium",htmlFor:o,label:u,popOut:y}),f&&Object(h.jsx)(p,{tone:x,message:f})]})}));m.displayName="TextField";t.a=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="envelope",i=[128386,9993,61443],o="f0e0",a="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faEnvelope=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(522);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faFacebookSquare=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";r.r(t);var n=r(43),i=r.n(n),o=r(38),a=r(2),s=r(5),l=r(20),c=r(3),u=r(1),d=r(45),f=r(93),h=r(31),p=r(12),b=r(140),m=r(0);const g={kprc:"<a href='https://www.click2houston.com/contact'>www.click2houston.com/contact</a>",ksat:"<a href='mailto:[email protected]'>[email protected]</a>",wdiv:"<a href='mailto:[email protected]'>[email protected]</a>",wjxt:"<a href='mailto:[email protected]'>[email protected]</a>",wkmg:"<a href='mailto:[email protected]'>[email protected]</a>",wplg:"<a href='mailto:[email protected]'>[email protected]</a>",wsls:"<a href='mailto:[email protected]'>[email protected]</a>",demo:"<a href='mailto:[email protected]'>[email protected]</a>"},v=["localhost","gmg-sandbox"].includes(l.ENVIRONMENT)?"sbox":"prod",y=({contentId:e,limit:t,paginationLimit:r,paginationReplyLimit:n,replyLimit:i,sort:o,featuredTabActiveThreshold:l,initialHeight:c=600})=>{const{requestUri:u,globalContent:{_id:d}={}}=Object(s.useAppContext)(),f=new URLSearchParams(u.split("?")[1]).get("disable");return(null==f?void 0:f.split(",").includes("comments"))?null:Object(m.jsx)("div",{style:{minHeight:c},children:Object(m.jsx)(a.e,{id:"gmgComments",className:"viafoura",fontFamily:"$gibson",position:"relative",children:Object(m.jsx)("vf-conversations",{"vf-container-id":e||d,limit:t,"pagination-limit":r,"pagination-reply-limit":n,"reply-limit":i,sort:o,"featured-tab-active-threshold":l,"initial-height":c})})})};function w({guidelines:e,guidelinesIcon:t,guidelinesText:r}){return e?Object(m.jsxs)(a.e,{as:"section","aria-label":"Community Guidelines",sx:{dis
2play:"flex",backgroundColor:"#f0f9ff",borderRadius:".25rem",border:"1px solid #dbeafe",marginBottom:"2rem"},children:[Object(m.jsx)(a.t,{as:"a",href:e,target:"_blank","aria-label":"Read our Community Guidelines",sx:{display:"flex",alignItems:"center",fill:"#cbd5e1",padding:"1rem"},children:t?Object(m.jsx)("svg",{dangerouslySetInnerHTML:{__html:t},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"2rem",height:"2rem","aria-hidden":"true"}):Object(m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"2rem",height:"2rem","aria-hidden":"true",children:Object(m.jsx)("path",{d:"M511.1 63.1v287.1c0 35.25-28.75 63.1-64 63.1h-144l-124.9 93.68c-7.875 5.75-19.12 .0497-19.12-9.7v-83.98h-96c-35.25 0-64-28.75-64-63.1V63.1c0-35.25 28.75-63.1 64-63.1h384C483.2 0 511.1 28.75 511.1 63.1z"})})}),Object(m.jsx)(a.t,{as:"a",href:e,textColor:"$blueGray.700",target:"_blank",sx:{display:"flex",alignItems:"center",fontFamily:"$gibson",fontSize:"$1",width:"100%",padding:"1rem 1rem 1rem 0",lineHeight:"1.5"},children:r?Object(m.jsx)(a.M,{children:r}):Object(m.jsx)(a.M,{children:"Click here to take a moment and familiarize yourself with our Community Guidelines."})})]}):null}const O=({customFields:{guidelines:e,guidelinesText:t,guidelinesTop:r,guidelinesBottom:n,guidelinesIcon:l,contentId:c,limit:O,paginationLimit:j,paginationReplyLimit:x,replyLimit:_,sort:S,featuredTabActiveThreshold:E,initialHeight:k}={},sx:C})=>{var P,M;const{siteProperties:{siteDomain:$},globalContent:{_id:T}={},arcSite:I,isAdmin:A}=Object(s.useAppContext)(),{status:R,data:{viafoura:D,arcSubs:{emailVerified:L,email:N}}}=Object(h.b)(),B=c||T,{data:z}=Object(d.b)(`https://livecomments.viafoura.co/v4/livecomments/${p.p[$][v]}/contentcontainer/id?container_id=${B}`,{revalidateOnFocus:!1,refreshInterval:0}),[F,U]=Object(u.useState)(!1),[H,V]=Object(u.useState)(!1),[G,W]=Object(u.useState)(!1),[q,K]=Object(u.useState)({message:{general:null,user:null,pass:null},tone:null});let Y="[email protected]";I in g&&(Y=g[I]);const X=Object(u.useCallback)((e=>{const t=f.a[e]||f.a.UNKNOWN;return"tone"in t&&"error"===t.tone&&(e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Error",gaCategory:"NTG account",gaAction:"Web Comments Error",gaLabel:e})})(e),K({message:I in t?t[I]:t.message,tone:t.tone})}),[I]);"loggedIn"!==R||G||W(!0);return(null==z?void 0:z.settings.is_hidden)&&D&&!("error"in D)&&!["moderator","administrator"].includes(D.user_privilege)?null:Object(p.b)()?Object(m.jsxs)(a.e,{id:"commentDiv",sx:C,children:[r?Object(m.jsx)(w,{guidelines:e,guidelinesIcon:l,guidelinesText:t}):null,Object(m.jsxs)("div",{id:"comments",children:[!A&&D&&"error"in D&&"Banned"===D.error.error?Object(m.jsxs)(a.E,{as:"section","aria-label":"Comment Ban Notice",className:"editorsNote",gap:"$2",px:"$3",py:"$2",backgroundColor:"$blue.100",sx:{borderLeftWidth:"$4",borderLeftStyle:"solid",borderLeftColor:"$blue.600"},children:[Object(m.jsxs)(a.M,{className:"copyright",fontFamily:"$gibson",fontStyle:"italic",fontSize:"$1",lineHeight:"$snug",textColor:"$blue.900",children:["Your commenting privileges have been suspended for violating our comment guidelines. If you believe this suspension was made in error, please contact us at ",Object(m.jsx)(a.M,{as:"span",innerContent:Y})]}),D.error.reason?Object(m.jsxs)(a.M,{fontFamily:"$gibson",fontStyle:"italic",fontSize:"$1",lineHeight:"$snug",textColor:"$blue.900",children:["Reason: ",Object(m.jsx)("em",{children:`${D.error.reason}`})]}):null,D.error.permanent?null:Object(m.jsxs)(a.M,{fontFamily:"$gibson",fontStyle:"italic",fontSize:"$1",lineHeight:"$snug",textColor:"$blue.900",sx:{"& em":{textDecoration:"underline"}},children:["Your ban will expire on ",Object(m.jsx)("em",{children:`${new Date(D.error.end_date).toLocaleDateString()}`})," at ",Object(m.jsx)("em",{children:`${new Date(D.error.end_date).toLocaleTimeString()}`})]})]}):null,(null===(P=q.message)||void 0===P?void 0:P.general)||"loggedIn"===R&&!L&&!H?Object(m.jsxs)(a.E,{as:"section","aria-label":"User Notifications",className:"stormPins",gap:"$5",sx:{maxWidth:"$max",mx:"auto",py:["$5",null,"$7"]},children:[Object(m.jsx)(b.a,{message:null===(M=q.message)||void 0===M?void 0:M.general,tone
2:q.tone}),G&&"loggedIn"===R&&!L&&!H&&Object(m.jsxs)(a.E,{gap:"$3",sx:{borderRadius:"$md",maxWidth:"$max",mx:"auto",p:"$4",backgroundColor:"$blue.50"},children:[Object(m.jsx)(a.q,{level:2,sx:{fontSize:"$4"},children:"You have not yet confirmed your email address."}),Object(m.jsx)(a.M,{sx:{fontSize:"$1",lineHeight:"$tight"},children:'You must confirm your email address before you can post comments. You should have received an email from us with the subject "Please Confirm Your Account". Click on the link inside that email to confirm your account.'}),Object(m.jsx)(a.e,{children:Object(m.jsx)(a.f,{onClick:async()=>{U(!0),K({message:{general:null,user:null,pass:null},tone:null});try{if(N){await i.a.requestVerifyEmail(N)?(V(!0),X("VERIFICATION_RESEND_SUCCESS")):X("UNKNOWN")}X("NO_EMAIL")}catch(e){if(console.error(e),Object(o.isAPIErrorResponse)(e)){const{code:t}=e;X("300020"===t?"UserNotFoundException":"UNKNOWN")}else X("UNKNOWN")}finally{U(!1)}},loading:F||H,disabled:F||H,children:"Send me another Confirmation Email"})})]})]}):null,D&&"error"in D?null:Object(m.jsx)(y,{contentId:B,limit:O,paginationLimit:j,paginationReplyLimit:x,replyLimit:_,sort:S,featuredTabActiveThreshold:E,initialHeight:k})]}),n?Object(m.jsx)(w,{guidelines:e,guidelinesIcon:l,guidelinesText:t}):null]}):Object(m.jsx)("div",{children:"Ad-blocking software is preventing comments from loading, please disable it to comment."})};O.propTypes={customFields:c.shape({customId:c.string.tag({name:"Custom Content ID",description:"Use this field if you want to include the same conversation on more than one page.  Conversation widgets that have the same Content ID will have the same content.  Pick something that you can be sure will be unique."}),limit:c.number.tag({name:"Limit",description:"Defines the number of comments that are initially loaded before paginating.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),paginationLimit:c.number.tag({name:"Pagination Limit",description:"Defines the number of comments that are loaded when the user clicks to load more comments.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),replyLimit:c.number.tag({name:"Reply Limit",description:"Defines the number of replies that are initially loaded for top-level comments.",defaultValue:2,min:0,max:100,group:"Advanced Options"}),paginationReplyLimit:c.number.tag({name:"Pagination Reply Limit",description:"Defines the number of replies that are loaded when the user clicks to load more replies.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),sort:c.oneOf(["newest","oldest","num_likes_desc","num_replies_desc"]).tag({name:"Sort",description:"Defines the sort order for top-level comments (not including replies).",labels:{newest:"Newest",oldest:"Oldest",num_likes_desc:"Number of Likes (Most to Least)",num_replies_desc:"Number of Replies (Most to Least)"},defaultValue:"newest",group:"Advanced Options"}),featuredTabActiveThreshold:c.number.tag({name:"Featured Tab Active Threshold",description:'Defines the minimum number of "featured" comments that are needed to automatically load the "Featured Comments" tab as default.',defaultValue:3,group:"Advanced Options"}),initialHeight:c.number.tag({name:"Initial Height",description:'Determines the initial widget height (in pixels). The component can increase if the user clicks on "View More Comments".',group:"Advanced Options"}),guidelines:c.string.tag({name:"Community Guidelines URL",group:"Community Guidelines"}),guidelinesText:c.string.tag({name:"Community Guidelines Text",group:"Community Guidelines"}),guidelinesIcon:c.string.tag({name:"Community Guidelines Icon",group:"Community Guidelines"}),guidelinesTop:c.bool.tag({name:"Display Above?",description:"This will render the diagloge at the TOP of the Comments feature. You can use both.",group:"Community Guidelines"}),guidelinesBottom:c.bool.tag({name:"Display Below?",description:"This will render the diagloge at the BOTTOM of the Comments feature. You can use both.",group:"Community Guidelines"})}),sx:c.shape({})},t.default=O},function(e,t,r){"use strict";r.r(t);var n=r(26),i=r(5),o=r(20),a=r(3),s=r(45),l=r(2),c=r(16),u=r.n(c),d=r(1);r(144),r(12);function f(e,t){const{featured:r,votes:n,incumbent:i,won:o}=e,{featured:a,votes:s,incumbent:l,won:c}=t;return o!==c?o?-1:1:r!==a?r?-1:1:n!==s?parseInt(String(s).replace(/,/g,""),10)-parseInt(String(n).replace(/,/g,""),10):i!==l?i?-1:1:0}var h=r(0);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g={sm:"calc(50% - 38px)",lg:["calc(50% - 38px)",null,"calc(50% - 60px)"]},v=({hasHeadshot:e=!0,popularVote:t=!1,size:r="sm"})=>Object(h.jsxs)(l.E,{gap:"$3",direction:"row",className:"labels",sx:{justifyContent:"space-between",pr:"$3",fontSize:"$0",fontWeight:"$bold",color:"$blueGray.500",width:e?"$full":null},style:e?{}:{width:"100%"},children:[Object(h.jsx)(l.e,{sx:{width:"$1/2"},children:Object(h.jsx)("span",{children:"Candidate"})}),Object(h.jsxs)(l.E,{gap:"$3",direction:"row",justifyContent:"space-between",sx:{width:e?g[r]:"$1/2"},pl:"$2",children:[Object(h.jsx)(l.M,{sx:b({width:"$full"},t?{textAlign:"right"}:void 0),children:"Votes"}),!t&&Object(h.jsx)(l.M,{className:"text_right",children:"%"})]})]});v.propTypes={hasHeadshot:a.bool,popularVote:a.bool,size:a.string};var y=Object(d.memo)(v),w=r(105),O=r(33);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S={Democrat:"$blue.500",Republican:"$red.500",Libertarian:"$orange.500",Green:"$green.500",Independent:"$blueGray.500","Liberation Party":"$yellow.500","Natural Law":"$yellow.300","Workers Party":"$gray.500","U.S. Taxpayers Party":"$gray.500",Reform:"$gray.500",default:"$blueGray.500"},E={lg:["$14",null,"$24"],sm:"$14"},k=({data:{percent:e=0,candidate:t,headshot:r,incumbent:n,party:i,party_short:o,votes:a=0,won:s=!1},size:c="sm",popularVote:d,showHeadshots:f,isFeatured:p,isGroup:b=!1})=>Object(h.jsxs)(l.E,{direction:"row",gap:"sm"===c?"$1":["$1",null,"$2"],justifyContent:"space-between",sx:{height:E[c]},className:u()("raceRow",c),children:[f&&Object(h.jsx)(l.e,{sx:{width:E[c],height:E[c],"* > img":{height:E[c],width:E[c]}},children:Object(h.jsx)(O.a,x({alt:t,height:"lg"===c?96:56,width:"lg"===c?96:56},r?{url:r}:{publicId:"media/grahamdigital/elections/blank"}))}),Object(h.jsxs)(l.n,{className:u()("details",o),sx:{alignItems:"center",bg:"$white",borderTopRightRadius:"$rg",borderBottomRightRadius:"$rg",borderWidth:"$1",borderStyle:"$solid",borderColor:"$blueGray.200",flex:"1",height:E[c],justifyContent:"space-between",marginLeft:f?void 0:"$0",position:"relative",px:"$3"},children:[Object(h.jsx)(l.e,{sx:{bg:S[i||"default"]||"$blueGray.500",height:"calc(100% + 2px)",left:"-1px",position:"absolute",width:"$1"}}),Object(h.jsxs)(l.n,{className:"name",sx:{flexDirection:p?"column":"row",flex:p?"1":void 0,width:"$1/2"},children:[Object(h.jsxs)(l.q,{level:b?5:4,sx:{fontSize:"lg"===c?["$0","$1","$3"]:["$0","$1","$2"],fontFamily:"$gibson",lineHeight:"$none",fontWeight:"$semibold",width:"$full"},children:[s&&Object(h.jsx)(l.r,{icon:w.faCheckCircle,className:"mr-xsm",sx:{color:"$green.700",maxHeight:"$5",maxWidth:"$5",verticalAlign:"bottom"}}),t,!p&&n&&Object(h.jsx)("span",{children:"*"}),i?Object(h.jsx)(l.M,{as:"span",className:"party",textColor:S[i]||"$blueGray.900",marginLeft:"$1",sx:{fontWeight:"$semibold"},children:`(${i.charAt(0)})`}):null]}),p&&n&&Object(h.jsx)(l.M,{as:"span",className:"incumbent",sx:{color:"$blueGray.500",fontSize:["$0",null,"$1"],lineHeight:"$none",marginTop:"$1"},children:"Incumbent"})]}),Object(h.jsxs)(l.E,{gap:"$3",direction:"row",className:"data",sx:{width:p?"$auto":"$1/2",flex:p?"1":null,justifyContent:"space-between",pl:"$2"},children:[Object(h.jsx)(l.M,{as:"span",className:"votes",sx:{fontSize:"lg"===c?["$1",null,"$3"]:["$0",null,"$2"],width:"$full",fontWeight:"$semibold",textAlign:d?"right":void 0}
2,children:(null==a?void 0:a.toLocaleString("en-us"))||"0"}),!d&&Object(h.jsx)(l.M,{as:"span",className:"percent",sx:{fontSize:"lg"===c?["$1",null,"$3"]:["$0",null,"$2"],minWidth:"$10",width:"$full",textAlign:"right",fontWeight:"$semibold"},children:`${e}%`||"0%"})]})]})]}),C=(e,t)=>e.data.votes===t.data.votes&&e.data.won===t.data.won&&e.data.percent===t.data.percent;var P=Object(d.memo)(k,C);function M({icon:e}){const{deployment:t,contextPath:r}=Object(i.useAppContext)();return Object(h.jsx)("img",{alt:e,"aria-hidden":"true",src:t(`${r}/resources/images/shared/${e}.svg`)})}const $=({raceData:{raceId:e,total:t=0,percent:r=0,reporting:n=0,candidates:i=[],reporting_label:o="Reporting",additional_context:a,name:s},fullWidth:c,isFeatured:p,popularVote:b,size:m,showHeadshots:g=!0,showContext:v=!1,showLabels:w,url:O="",headingLink:j,openInNewWindow:x=!1,state:_,isGroup:S=!1})=>{const E=0!==t&&""!==o,k=i.some((e=>e.featured)),C=i.map((e=>e.featured)).includes(!1),$=g?i.some((e=>e.headshot)):void 0,T=i.some((e=>e.incumbent)),[I,A]=Object(d.useState)(!k);i.sort(f);const R=I?i:i.filter((e=>"featured"in e&&!0===e.featured));Object(d.useEffect)((()=>{document.location.hash===`#r${e}`&&setTimeout((()=>{document.location=`#r${e}`}),2500)}));const D=R.map((t=>Object(h.jsx)(P,{data:t,popularVote:b,size:m,showHeadshots:$,isFeatured:p,isGroup:S},`${e}-${t.candidate.replace(/ /g,"")}`)));return Object(h.jsxs)(l.E,{gap:"$3",className:u()("electionResult relative",{isFeatured:p,"full-bleed":c}),children:[Object(h.jsxs)(l.E,{gap:"$2",children:[Object(h.jsxs)(l.q,{level:S?4:3,sx:{fontSize:["$2",null,"$3"],fontWeight:"$semibold",zIndex:"$1",display:_&&"flex",alignItems:_&&"flex-end","& > img":{marginRight:"$2",height:"$8"}},children:[_&&Object(h.jsx)(M,{icon:_}),Object(h.jsx)(l.t,{id:`r${e}`,href:j||(O?`${O}#r${e}`:`#r${e}`),target:x?"_blank":void 0,innerContent:s.replace(/[\r\n]+/g,"<br />"),sx:{scrollMarginTop:"4.5rem"}})]}),v&&a&&Object(h.jsx)(l.M,{textColor:"$blueGray.500",innerContent:a,sx:{fontSize:["$0","$1"],lineHeight:"$normal"}})]}),Object(h.jsxs)(l.p,{columns:1,gridRowGap:"$2",sx:{zIndex:"$1"},className:u()("candidate",m),children:[!p&&w&&Object(h.jsx)(y,{hasHeadshot:$,popularVote:b,size:m}),Object(h.jsx)(l.p,{className:"candidates",columns:p?[1,null,2]:1,gridRowGap:"$1",gridColumnGap:p?"$5":null,sx:{zIndex:"$1"},children:D}),Object(h.jsxs)(l.E,{gap:"$2",direction:"row",className:"reporting",sx:{fontFamily:"$gibson",fontSize:["$0",null,"$1"],color:"$blueGray.500",justifyContent:"space-between"},children:[T&&!p&&Object(h.jsx)("span",{children:"*Incumbent"}),E&&Object(h.jsxs)(l.E,{direction:"row",gap:"$1",className:"reporting",sx:{marginLeft:"auto",alignItems:"baseline"},children:[Object(h.jsx)(l.M,{as:"span",children:`${r}% of ${o} `}),Object(h.jsx)(l.M,{sx:{fontSize:"$0",color:"$blueGray.600"},children:`(${n.toLocaleString("en-us")} / ${t.toLocaleString("en-us")})`})]})]})]}),k&&C&&Object(h.jsx)(l.f,{variant:"$gray",size:"rg",className:"display_block align_right",sx:{zIndex:"$1"},onClick:()=>{A((e=>!e))},children:I?"View Featured Candidates":"View All Candidates"})]})};function T(e,t){return e+Number(t.votes)+Number(t.elect_won)+Number(t.won)}const I=(e,t)=>{const{candidates:r}=e.raceData,{candidates:n}=t.raceData;return(null==r?void 0:r.reduce(T,0))===n.reduce(T,0)};var A=Object(d.memo)($,I);const R=({customFields:{electionId:e,raceId:t=0,fullWidth:r=!1,popularVote:a=!1,size:l="sm",isFeatured:c=!1,showHeadshots:u=!0,showContext:d=!0,showLabels:f=!0,state:p,headingLink:b,openInNewWindow:m=!1},elexData:g,url:v})=>{const{globalContent:y,siteProperties:{siteName:w}}=Object(i.useAppContext)(),O="localhost"===o.ENVIRONMENT?"http://www.gmg-local.com":`https://www.${w.toLowerCase()}`,j=e||(null==y?void 0:y.electionId),x=t||(null==y?void 0:y.raceId),_=Object(n.useContent)(g?void 0:{source:"elections_race",query:{electionId:j,raceId:x}}),{data:S}=Object(s.b)(g?null:`${O}/pf/api/v3/content/fetch/elections_race?query={${encodeURIComponent(`"electionId": ${j}, "raceId": ${x}`)}}`,{revalidateOnFocus:!0,refreshInterval:6e4,fallbackData:null!=_?_:g});return S?Object(h.jsx)(A,{raceData:S,url:v,headingLink:b,openInNewWindow:m,fullWidth:r,isFeatured:c,popularVote:a,size:l,showHeadshots:u,showContext:d,showLabels:f,state:p,isGroup:!!g}):null};R.propTypes={customFields:a.shape({electionId:a.number.tag({name:"Election Id"}).isRequired,raceId:a.number.tag({name:"Race Id"}).isRequired,size:a.oneOf(["sm","lg"]).tag({name:"Size",labels:{sm:"Small",lg:"Large"},defaultValue:"sm"}),fullWidth:a.bool.tag({name:"Make full-width (break out of grid structure)",defaultValue:!1}),isFeatured:a.bool.tag({name:"Featured Race",description:"Two column, full-width layout",defaultValue:!1}),popularVote:a.bool.tag({name:"Popular Vote Only",description:"Hide the Percent field",defaultValue:!1}),showHeadshots:a.bool.tag({name:"Show Headshots",defaultValue:!0}),showContext:a.bool.tag({name:"Show Additional Context",defaultValue:!0}),showLabels:a.bool.tag({name:"Show Labels",defaultValue:!0}),state:a.oneOf(["michigan","texas","florida","georgia","virginia"]).tag({name:"State Icon",labels:{michigan:"Michigan",texas:"Texas",florida:"Florida",georgia:"Georgia",virginia:"Virginia"}}),headingLink:a.string.tag({name:"Heading Link",description:"A custom link for the heading",defaultValue:void 0}),openInNewWindow:a.bool.tag({name:"Open link in new window",defaultValue:!1})})},R.lazy=!0;t.default=R},function(e,t,r){"use strict";
vendor: 4,339 bytes, line 2
2var n=r(36),i=r(190),o=r(193),a=r(194),s=r(86);function l(e){s.call(this,"digest"),this._hash=e}n(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){var i,o,a,s;if(c(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length)}function b(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=m(l,c);for(r=0;r<c;++r)o(u[r],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,a;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
vendor: 6,488 bytes, line 2
2("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(51).Buffer)},function(e,t,r){"use strict";var n=r(32).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r(51).Buffer)},function(e,t,r){"use strict";var n=r(74),i=r(66);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
2t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t,r){"use strict";const n=r(36),i=r(208).Reporter,o=r(206).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.DecoderBuffer=a,a.isDecoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){const t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.isEncoderBuffer=function(e){if(e instanceof s)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s=Object.defineProperty,l=(e,t,r)=>(((e,t,r)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),c=new Map,u=new WeakMap,d=0,f=void 0;function h(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(u.has(r)||(d+=1,u.set(r,d.toString())),u.get(r)):"0"):e[t]}`;var r})).toString()}function p(e,t,r={},n=f){if(void 0===window.IntersectionObserver&&void 0!==n){const i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:a}=function(e){const t=h(e);let r=c.get(t);if(!r){const n=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}
2))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:n},c.set(t,r)}return r}(r),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),o.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),c.delete(i))}}n.Component;function b({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:o,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[f,h]=n.useState(null),b=n.useRef(),[m,g]=n.useState({inView:!!l,entry:void 0});b.current=u,n.useEffect((()=>{if(s||!f)return;let n;return n=p(f,((e,t)=>{g({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:o,rootMargin:i,threshold:e,trackVisibility:r,delay:t},c),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,f,o,i,a,s,r,c,t]);const v=null==(d=m.entry)?void 0:d.target,y=n.useRef();f||!v||a||s||y.current===v||(y.current=v,g({inView:!!l,entry:void 0}));const w=[h,m.inView,m.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="chevron-down",i=[],o="f078",a="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faChevronDown=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="instagram",i=[],o="f16d",a="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z";t.definition={prefix:"fab",iconName:n,icon:[448,512,i,o,a]},t.faInstagram=t.definition,t.prefix="fab",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(2),a=r(5),s=r(14),l=r(0);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=Object(l.jsx)(o.e,{as:"span",sx:{color:"$slate.300",userSelect:"none",fontSize:"inherit",mx:"2px"},"aria-hidden":"true",children:"•"}),f={color:"$blue.600",textDecoration:"none",fontWeight:"$medium",transition:"all 150ms ease",borderRadius:"$xs",padding:"2px 4px",margin:"-2px -4px","&:hover":{color:"$blue.700",backgroundColor:"$blue.50"},"&:focus":{outline:"2px solid $blue.200",outlineOffset:"2px",color:"$blue.700",backgroundColor:"$blue.50"}};t.a=({tags:e=[],variant:t="comma"})=>{const{arcSite:r}=Object(a.useAppContext)(),n=Array.from(new Set(e.map((e=>e.text))));if(0===n.length)return null;const h=n.map((e=>{const n=Object(s.g)({link:`/topic/${e.replace(/ /g,"_")}/`,arcSite:r}),i={gacategory:"Article Rail",gaaction:"Tag Link",galabel:e};return Object(l.jsx)(o.t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({href:n,gaTag:i,title:`View more stories about ${e}`},"middot"===t?{sx:f}:{},{children:e}),e)}));return Object(l.jsxs)(o.e,{as:"nav","aria-label":"Tags",sx:{color:"$blueGray.600",fontSize:"$1"},children:["Tags: ","comma"===t?Object(l.jsx)(o.M,{as:"span",sx:{fontWeight:"$semibold",lineHeight:"$snug",color:"$blueGray.600",textTransform:"capitalize"},children:(p=h,b=", ",p.reduce(((e,t,r)=>{if(r>0){const n=`sep-${String(p[r-1].key)}-${String(t.key)}`,o=i.a.isValidElement(b)?i.a.cloneElement(b,{key:n}):Object(l.jsx)("span",{children:b},n);e.push(o)}return e.push(t),e}),[]))}):h.map(((e,t)=>{const r=t===h.length-1;return Object(l.jsxs)(i.a.Fragment,{children:[e,!r&&d]},n[t])}))]});var p,b}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l="The advertiser paid a fee to promote this sponsored article and may have influenced or authored the content. The views expressed in this article are those of the advertiser and do not necessarily reflect those of this site or affiliated companies.";function c({children:e,sx:t}){return Object(i.jsx)(n.e,{className:"branded",sx:a({backgroundColor:"$blue.100",borderLeftWidth:"$4",borderLeftStyle:"solid",borderLeftColor:"$blue.700",borderTopRightRadius:"$rg",borderBottomRightRadius:"$rg"},t),children:Object(i.jsx)(n.M,{className:"copyright",sx:{fontFamily:"$gibson",fontStyle:"italic",fontSize:"$1",lineHeight:"$snug",py:"$2",px:"$3",color:"$blueGray.700"},children:e||l})})}},function(e,t,r){"use strict";function n(e,t,r){let n=t>>0,i=String(void 0!==r?r:" ");return e.length>n?String(e):(n-=e.length,n>i.length&&(i+=function(e,t){let r=t,n="";for(;r>0;)n+=e,r--;return n}(i,n/i.length)),i.slice(0,n)+String(e))}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class n extends Error{constructor(e="Unsupported"){super(e)}}function i(e){return new n(e)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(49),i=r(48),o=r(25),a=r(90);class s extends n.a{constructor(e){super(),this._actionModel={},this.addQualifier(new o.a("b",new i.a(Object(a.a)(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}var l=r(28),c=r(136);class u{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:Object(c.a)(`unsupported action ${this.constructor.name}`)}}}var d=r(103);class f{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new u(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof f?this.actions=this.actions.concat(e.actions):this.actions.push(new u(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new d.a("q",e)),this}format(e){return this.addAction(new d.a("f",e)),this}
2roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new s(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new n.a;let r=e;return"string"==typeof e&&(r=new l.a(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if("error"in(t=n)&&t.error)return n;e.push(n)}var t;return{actions:e}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(136);function i(){return this._qualifierModel||{error:Object(n.a)(`unsupported qualifier ${this.constructor.name}`)}}class o{constructor(){this._qualifierModel={}}toJson(){return i.apply(this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="heart",i=[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],o="f004",a="M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faHeart=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(2),i=r(16),o=r.n(i),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const d={fontFamily:"$gibson",fontSize:"$1",fontWeight:"$semibold",lineHeight:"$normal",color:"$white",borderRadius:"$rg",py:"$2",px:"$3","&.warning":{backgroundColor:"$orange.500"},"&.error":{backgroundColor:"$red.500"},"&.positive":{backgroundColor:"$blue.500"},"&.success":{backgroundColor:"$green.300",color:"$green.900",fontWeight:"$medium",fontSize:"1rem"},"&.neutral":{backgroundColor:"$blueGray.100",color:"$blueGray.600",fontWeight:"$medium"}};function f(e){let{className:t,message:r=null,tone:i,sx:s}=e,c=u(e,["className","message","tone","sx"]);return r?Object(a.jsx)(n.e,l({className:o()("gmg_alert",t,i),sx:l({},d,{},s),dangerouslySetInnerHTML:{__html:r}},c)):null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(336);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faTimesCircle=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="circle",i=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],o="f111",a="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faCircle=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r(1);var n=r(3),i=r(16),o=r.n(i),a=r(0);const s=({className:e="",htmlFor:t="",label:r="",popOut:n=!1,style:i={}})=>{const s=o()("transition-100","text_left",e,{popOut:n});return Object(a.jsx)("label",{htmlFor:t,className:s,style:i,children:r})};s.propTypes={className:n.string,htmlFor:n.string,label:n.string,popOut:n.bool,style:n.shape({})},t.a=s},function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"hasBrowserEnv",(function(){return g})),r.d(n,"hasStandardBrowserWebWorkerEnv",(function(){return w})),r.d(n,"hasStandardBrowserEnv",(function(){return y})),r.d(n,"navigator",(function(){return v})),r.d(n,"origin",(function(){return O}));var i=r(6),o=r(163),a=r(88);function s(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function l(e,t){this._pairs=[],e&&Object(a.a)(e,this,t)}const c=l.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){const t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var u=l;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function f(e,t,r){if(!t)return e;const n=r&&r.encode||d;i.a.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(a=o?o(t,r):i.a.isURLSearchParams(t)?t.toString():new u(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var h=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},p=r(23),b={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const g="undefined"!=typeof window&&"undefined"!=typeof document,v="object"==typeof navigator&&navigator||void 0,y=g&&(!v||["ReactNative","NativeScript","NS"].indexOf(v.product)<0),w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,O=g&&window.location.href||"http://localhost";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{},m);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){return Object(a.a)(e,new _.classes.URLSearchParams,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,581 bytes, line 2
2t%2?S(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({visitor:function(e,t,r,n){return _.isNode&&i.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}var C=function(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),l=o>=e.length;if(a=!a&&i.a.isArray(n)?n.length:a,l)return i.a.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!s;n[a]&&i.a.isObject(n[a])||(n[a]=[]);return t(e,r,n[a],o)&&i.a.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[a])),!s}if(i.a.isFormData(e)&&i.a.isFunction(e.entries)){const r={};return i.a.forEachEntry(e,((e,n)=>{t(function(e){return i.a.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const P={transitional:b,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=i.a.isObject(e);o&&i.a.isHTMLForm(e)&&(e=new FormData(e));if(i.a.isFormData(e))return n?JSON.stringify(C(e)):e;if(i.a.isArrayBuffer(e)||i.a.isBuffer(e)||i.a.isStream(e)||i.a.isFile(e)||i.a.isBlob(e)||i.a.isReadableStream(e))return e;if(i.a.isArrayBufferView(e))return e.buffer;if(i.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return k(e,this.formSerializer).toString();if((s=i.a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(a.a)(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(i.a.isString(e))try{return(t||JSON.parse)(e),i.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||P.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(i.a.isResponse(e)||i.a.isReadableStream(e))return e;if(e&&i.a.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw p.a.from(e,p.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.a.forEach(["delete","get","head","post","put","patch"],(e=>{P.headers[e]={}}));var M=P;const $=i.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const T=Symbol("internals");function I(e){return e&&String(e).trim().toLowerCase()}function A(e){return!1===e||null==e?e:i.a.isArray(e)?e.map(A):String(e)}function R(e,t,r,n,o){return i.a.isFunction(n)?n.call(this,t,r):(o&&(t=r),i.a.isString(t)?i.a.isString(n)?-1!==t.indexOf(n):i.a.isRegExp(n)?n.test(t):void 0:void 0)}class D{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=I(t);if(!o)throw new Error("header name must be a non-empty string");const a=i.a.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=A(e))}const a=(e,t)=>i.a.forEach(e,((e,r)=>o(e,r,t)));if(i.a.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(i.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&$[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(i.a.isObject(e)&&i.a.isIterable(e)){let r,n,o={};for(const t of e){if(!i.a.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?i.a.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=I(e)){const r=i.a.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(i.a.isFunction(t))return t.call(this,e,r);if(i.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=I(e)){const r=i.a.findKey(this,e);return!(!r||void 0===this[r]||t&&!R(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=I(e)){const o=i.a.findKey(r,e);!o||t&&!R(0,r[o],o,t)||(delete r[o],n=!0)}}return i.a.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!R(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return i.a.forEach(this,((n,o)=>{const a=i.a.findKey(r,o);if(a)return t[a]=A(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=A(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return i.a.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&i.a.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[T]=this[T]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=I(e);t[n]||(!function(e,t){const r=i.a.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return i.a.isArray(e)?e.forEach(n):n(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.a.reduceDescriptors(D.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),i.a.freezeMethods(D);var L=D;function N(e,t){const r=this||M,n=t||r,o=L.from(n.headers);let a=n.data;return i.a.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function B(e){return!(!e||!e.__CANCEL__)}function z(e,t,r){p.a.call(this,null==e?"canceled":e,p.a.ERR_CANCELED,t,r),this.name="CanceledError"}i.a.inherits(z,p.a,{__CANCEL__:!0});var F=z,U=r(164);function H(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new p.a("Request failed with status code "+r.status,[p.a.ERR_BAD_REQUEST,p.a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}var V=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=n[a];i||(i=l),r[o]=s,n[o]=l;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};var G=function(e,t){let r,n,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout((()=>{n=null,a(r)}),o-s)))},()=>r&&a(r)]};const W=(e,t,r=3)=>{let n=0;const i=V(50,250);return G((r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},q=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},K=e=>(...t)=>i.a.asap((()=>e(...t)));var Y,X,J=_.hasStandardBrowserEnv?(Y=new URL(_.origin),X=_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent),e=>(e=new URL(e,_.origin),Y.protocol===e.protocol&&Y.host===e.host&&(X||Y.port===e.port))):()=>
2!0,Z=_.hasStandardBrowserEnv?{write(e,t,r,n,o,a,s){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];i.a.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),i.a.isString(n)&&l.push(`path=${n}`),i.a.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),i.a.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Q(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ne=e=>e instanceof L?te({},e):e;function ie(e,t){t=t||{};const r={};function n(e,t,r,n){return i.a.isPlainObject(e)&&i.a.isPlainObject(t)?i.a.merge.call({caseless:n},e,t):i.a.isPlainObject(t)?i.a.merge({},t):i.a.isArray(t)?t.slice():t}function o(e,t,r,o){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function a(e,t){if(!i.a.isUndefined(t))return n(void 0,t)}function s(e,t){return i.a.isUndefined(t)?i.a.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(e,t,r)=>o(ne(e),ne(t),0,!0)};return i.a.forEach(Object.keys(te({},e,{},t)),(function(n){const a=c[n]||o,s=a(e[n],t[n],n);i.a.isUndefined(s)&&a!==l||(r[n]=s)})),r}var oe=e=>{const t=ie({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=L.from(s),t.url=f(Q(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),i.a.isFormData(r))if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(i.a.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)}))}if(_.hasStandardBrowserEnv&&(n&&i.a.isFunction(n)&&(n=n(t)),n||!1!==n&&J(t.url))){const e=o&&a&&Z.read(a);e&&s.set(o,e)}return t};var ae="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=oe(e);let o=n.data;const a=L.from(n.headers).normalize();let s,l,c,u,d,{responseType:f,onUploadProgress:h,onDownloadProgress:m}=n;function g(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let v=new XMLHttpRequest;function y(){if(!v)return;const n=L.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());H((function(e){t(e),g()}),(function(e){r(e),g()}),{data:f&&"text"!==f&&"json"!==f?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v}),v=null}v.open(n.method.toUpperCase(),n.url,!0),v.timeout=n.timeout,"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(y)},v.onabort=function(){v&&(r(new p.a("Request aborted",p.a.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new p.a(n,p.a.ERR_NETWORK,e,v);i.event=t||null,r(i),v=null},v.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||b;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new p.a(t,i.clarifyTimeoutError?p.a.ETIMEDOUT:p.a.ECONNABORTED,e,v)),v=null},void 0===o&&a.setContentType(null),"setRequestHeader"in v&&i.a.forEach(a.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),i.a.isUndefined(n.withCredentials)||(v.withCredentials=!!n.withCredentials),f&&"json"!==f&&(v.responseType=n.responseType),m&&([c,d]=W(m,!0),v.addEventListener("progress",c)),h&&v.upload&&([l,u]=W(h),v.upload.addEventListener("progress",l),v.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{v&&(r(!t||t.type?new F(null,e,v):t),v.abort(),v=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const w=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);w&&-1===_.protocols.indexOf(w)?r(new p.a("Unsupported protocol "+w+":",p.a.ERR_BAD_REQUEST,e)):v.send(o||null)}))};var se=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof p.a?t:new F(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,o(new p.a(`timeout ${t} of ms exceeded`,p.a.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>
2e.addEventListener("abort",o)));const{signal:l}=n;return l.unsubscribe=()=>i.a.asap(s),l}};const le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},ce=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ue=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of ce(e))yield*le(r,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return s(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})};function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{isFunction:he}=i.a,pe=(({Request:e,Response:t})=>({Request:e,Response:t}))(i.a.global),{ReadableStream:be,TextEncoder:me}=i.a.global,ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ve=e=>{e=i.a.merge.call({skipUndefined:!0},pe,e);const{fetch:t,Request:r,Response:n}=e,o=t?he(t):"function"==typeof fetch,a=he(r),s=he(n);if(!o)return!1;const l=o&&he(be),c=o&&("function"==typeof me?(u=new me,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const d=a&&l&&ge((()=>{let e=!1;const t=new r(_.origin,{body:new be,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=s&&l&&ge((()=>i.a.isReadableStream(new n("").body))),h={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!h[e]&&(h[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new p.a(`Response type '${e}' is not supported`,p.a.ERR_NOT_SUPPORT,r)})}));const b=async(e,t)=>{const n=i.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(i.a.isBlob(e))return e.size;if(i.a.isSpecCompliantForm(e)){const t=new r(_.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return i.a.isArrayBufferView(e)||i.a.isArrayBuffer(e)?e.byteLength:(i.a.isURLSearchParams(e)&&(e+=""),i.a.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:l,signal:c,cancelToken:u,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:y,headers:w,withCredentials:O="same-origin",fetchOptions:j}=oe(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let _=se([c,u&&u.toAbortSignal()],m),S=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(v&&d&&"get"!==s&&"head"!==s&&0!==(k=await b(w,l))){let e,t=new r(o,{method:"POST",body:l,duplex:"half"});if(i.a.isFormData(l)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,r]=q(k,W(K(v)));l=ue(t.body,65536,e,r)}}i.a.isString(O)||(O=O?"include":"omit");const t=a&&"credentials"in r.prototype,c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?de(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):de(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},j,{signal:_,method:s.toUpperCase(),headers:w.normalize().toJSON(),body:l,duplex:"half",credentials:t?O:void 0});S=a&&new r(o,c);let u=await(a?x(S,j):x(o,c));const p=f&&("stream"===y||"response"===y);if(f&&(g||p&&E)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=u[t]}));const t=i.a.toFiniteNumber(u.headers.get("content-length")),[r,o]=g&&q(t,W(K(g),!0))||[];u=new n(ue(u.body,65536,r,(()=>{o&&o(),E&&E()})),e)}y=y||"text";let m=await h[i.a.findKey(h,y)||"text"](u,e);return!p&&E&&E(),await new Promise(((t,r)=>{H(t,r,{data:m,headers:L.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})}))}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new p.a("Network Error",p.a.ERR_NETWORK,e,S),{cause:t.cause||t});throw p.a.from(t,t&&t.code,e,S)}}},ye=new Map,we=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let a,s,l=o.length,c=ye;for(;l--;)a=o[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:ve(t)),c=s;return s};we();const Oe={http:U.a,xhr:ae,fetch:{get:we}};i.a.forEach(Oe,((e,t)=>
vendor: 5,521 bytes, line 2
2{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const je=e=>`- ${e}`,xe=e=>i.a.isFunction(e)||null===e||!1===e;var _e={getAdapter:function(e,t){e=i.a.isArray(e)?e:[e];const{length:r}=e;let n,o;const a={};for(let s=0;s<r;s++){let r;if(n=e[s],o=n,!xe(n)&&(o=Oe[(r=String(n)).toLowerCase()],void 0===o))throw new p.a(`Unknown adapter '${r}'`);if(o&&(i.a.isFunction(o)||(o=o.get(t))))break;a[r||"#"+s]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=r?e.length>1?"since :\n"+e.map(je).join("\n"):" "+je(e[0]):"as no adapter specified";throw new p.a("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Oe};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new F(null,e)}function Ee(e){Se(e),e.headers=L.from(e.headers),e.data=N.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _e.getAdapter(e.adapter||M.adapter,e)(e).then((function(t){return Se(e),t.data=N.call(e,e.transformResponse,t),t.headers=L.from(t.headers),t}),(function(t){return B(t)||(Se(e),t&&t.response&&(t.response.data=N.call(e,e.transformResponse,t.response),t.response.headers=L.from(t.response.headers))),Promise.reject(t)}))}const ke="1.13.2",Ce={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Pe={};Ce.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ke+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new p.a(n(i," has been removed"+(t?" in "+t:"")),p.a.ERR_DEPRECATED);return t&&!Pe[i]&&(Pe[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},Ce.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Me={assertOptions:function(e,t,r){if("object"!=typeof e)throw new p.a("options must be an object",p.a.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new p.a("option "+o+" must be "+r,p.a.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new p.a("Unknown option "+o,p.a.ERR_BAD_OPTION)}},validators:Ce};const $e=Me.validators;class Te{constructor(e){this.defaults=e||{},this.interceptors={request:new h,response:new h}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ie(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Me.assertOptions(r,{silentJSONParsing:$e.transitional($e.boolean),forcedJSONParsing:$e.transitional($e.boolean),clarifyTimeoutError:$e.transitional($e.boolean)},!1),null!=n&&(i.a.isFunction(n)?t.paramsSerializer={serialize:n}:Me.assertOptions(n,{encode:$e.function,serialize:$e.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Me.assertOptions(t,{baseUrl:$e.spelling("baseURL"),withXsrfToken:$e.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&i.a.merge(o.common,o[t.method]);o&&i.a.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=L.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,f=0;if(!l){const e=[Ee.bind(this),void 0];for(e.unshift(...s),e.push(...c),d=e.length,u=Promise.resolve(t);f<d;)u=u.then(e[f++],e[f++]);return u}d=s.length;let h=t;for(;f<d;){const e=s[f++],t=s[f++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=Ee.call(this,h)}catch(e){return Promise.reject(e)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(e){return f(Q((e=ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}i.a.forEach(["delete","get","head","options"],(function(e){Te.prototype[e]=function(t,r){return this.request(ie(r||{},{method:e,url:t,data:(r||{}).data}))}})),i.a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(ie(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Te.prototype[e]=t(),Te.prototype[e+"Form"]=t(!0)}));var Ie=Te;class Ae{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new F(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ae((function(t){e=t})),cancel:e}}}var Re=Ae;const De={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(De).forEach((([e,t])=>{De[t]=e}));var Le=De;const Ne=function e(t){const r=new Ie(t),n=Object(o.a)(Ie.prototype.request,r);return i.a.extend(n,Ie.prototype,r,{allOwnKeys:!0}),i.a.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ie(t,r))},n}(M);Ne.Axios=Ie,Ne.CanceledError=F,Ne.CancelToken=Re,Ne.isCancel=B,Ne.VERSION=ke,Ne.toFormData=a.a,Ne.AxiosError=p.a,Ne.Cancel=Ne.CanceledError,Ne.all=function(e){return Promise.all(e)},Ne.spread=function(e){return function(t){return e.apply(null,t)}},Ne.isAxiosError=function(e){return i.a.isObject(e)&&!0===e.isAxiosError},Ne.mergeConfig=ie,Ne.AxiosHeaders=L,Ne.formToJSON=e=>C(i.a.isHTMLForm(e)?new FormData(e):e),Ne.getAdapter=_e.getAdapter,Ne.HttpStatusCode=Le,Ne.default=Ne;t.a=Ne},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="map-pin",i=[128205],o="f276",a="M16 144a144 144 0 1 1 288 0A144 144 0 1 1 16 144zM160 80c8.8 0 16-7.2 16-16s-7.2-16-16-16c-53 0-96 43-96 96c0 8.8 7.2 16 16 16s16-7.2 16-16c0-35.3 28.7-64 64-64zM128 480V317.1c10.4 1.9 21.1 2.9 32 2.9s21.6-1 32-2.9V480c0 17.7-14.3 32-32 32s-32-14.3-32-32z";t.definition={prefix:"fas",iconName:n,icon:[320,512,i,o,a]},t.faMapPin=t.definition,t.prefix="fas",t.iconName=n,t.width=320,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="play",i=[9654],o="f04b",a="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z";t.definition={prefix:"fas",iconName:n,icon:[384,512,i,o,a]},t.faPlay=t.definition,t.prefix="fas",t.iconName=n,t.width=384,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);function i(e){const[t,r]=Object(n.useState)(e?"loading":"idle");return Object(n.useEffect)((()=>{if(!e)return void r("idle");let t=document.querySelector(`script[src="${e}"]`);if(t)r(t.getAttribute("data-status"));else{t=document.createElement("script"),t.src=e,t.async=!0,t.setAttribute("data-status","loading"),document.body.appendChild(t);const r=e=>{var r;null===(r=t)||void 0===r||r.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",r),t.addEventListener("error",r)}const n=e=>{r("load"===e.type?"ready":"error")};return t.addEventListener("load",n),t.addEventListener("error",n),()=>{t&&(t.removeEventListener("load",n),t.removeEventListener("error",n))}}),[e]),t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=(e,t)=>({href:"/"===e.charAt(e.length-1)?e:`${e}/`,rel:"http"===e.slice(0,4)&&e.slice(0,t.length)!==t?"nofollow":void 0})},function(e,t,r){"use strict";r.r(t),r.d(t,"HTMLEntities",(function(){return $}
2)),r.d(t,"storyGridStyles",(function(){return I})),r.d(t,"getStoryCard",(function(){return R}));var n=r(2);function i(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var o
vendor: 24,156 bytes, line 2
2=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]]
2;function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=(e,t)=>{for(const[r,n]of t)e=e.replace(new RegExp(i(r),"g"),n);return e};function c(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({customReplacements:[]},t);const r=new Map([...o,...t.customReplacements]);return e=e.normalize(),e=(e=l(e,r)).normalize("NFD").replace(/[\^`\xA8\xAF\xB4\xB7\xB8\u02B0-\u034E\u0350-\u0357\u035D-\u0362\u0374\u0375\u037A\u0384\u0385\u0483-\u0487\u0559\u0591-\u05A1\u05A3-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0657\u0658\u06DF\u06E0\u06E5\u06E6\u06EA-\u06EC\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F5\u0818\u0819\u08E3-\u08FE\u093C\u094D\u0951-\u0954\u0971\u09BC\u09CD\u0A3C\u0A4D\u0ABC\u0ACD\u0AFD-\u0AFF\u0B3C\u0B4D\u0BCD\u0C4D\u0CBC\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E47-\u0E4C\u0E4E\u0EBA\u0EC8-\u0ECC\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F82-\u0F84\u0F86\u0F87\u0FC6\u1037\u1039\u103A\u1063\u1064\u1069-\u106D\u1087-\u108D\u108F\u109A\u109B\u135D-\u135F\u17C9-\u17D3\u17DD\u1939-\u193B\u1A75-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B34\u1B44\u1B6B-\u1B73\u1BAA\u1BAB\u1C36\u1C37\u1C78-\u1C7D\u1CD0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1D2C-\u1D6A\u1DC4-\u1DCF\u1DF5-\u1DF9\u1DFD-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2CEF-\u2CF1\u2E2F\u302A-\u302F\u3099-\u309C\u30FC\uA66F\uA67C\uA67D\uA67F\uA69C\uA69D\uA6F0\uA6F1\uA700-\uA721\uA788-\uA78A\uA7F8\uA7F9\uA8C4\uA8E0-\uA8F1\uA92B-\uA92E\uA953\uA9B3\uA9C0\uA9E5\uAA7B-\uAA7D\uAABF-\uAAC2\uAAF6\uAB5B-\uAB5F\uABEC\uABED\uFB1E\uFE20-\uFE2F\uFF3E\uFF40\uFF70\uFF9E\uFF9F\uFFE3\u{102E0}\u{10AE5}\u{10AE6}\u{10D22}-\u{10D27}\u{10F46}-\u{10F50}\u{110B9}\u{110BA}\u{11133}\u{11134}\u{11173}\u{111C0}\u{111CA}-\u{111CC}\u{11235}\u{11236}\u{112E9}\u{112EA}\u{1133C}\u{1134D}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11442}\u{11446}\u{114C2}\u{114C3}\u{115BF}\u{115C0}\u{1163F}\u{116B6}\u{116B7}\u{1172B}\u{11839}\u{1183A}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D42}\u{11D44}\u{11D45}\u{11D97}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F8F}-\u{16F9F}\u{1D167}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E946}\u{1E948}-\u{1E94A}]/gu,"").normalize()}var u=[["&"," and "],["🦄"," unicorn "],["♥"," love "]];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),p=(e,t)=>{const r=i(t);return e.replace(new RegExp(`${r}{2,}`,"g"),t).replace(new RegExp(`^${r}|${r}$`,"g"),"")},b=e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const r of e.preserveCharacters){if(r===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=i(r)}return new RegExp(`[^${t}]+`,"g")};function m(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[]},t);const r=t.preserveLeadingUnderscore&&e.startsWith("_"),n=t.preserveTrailingDash&&e.endsWith("-");e=c(e,{customReplacements:new Map([...u,...t.customReplacements])}),t.decamelize&&(e=h(e));const i=b(t);return t.lowercase&&(e=e.toLowerCase()),e=(e=(e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(i,t.separator)).replace(/\\/g,""),t.separator&&(e=p(e,t.separator)),r&&(e=`_${e}`),n&&(e=`${e}-`),e}var g=r(26),v=r(5),y=r(3),w=r(1),O=r(179),j=r(10),x=r(14),_=r(46),S=r(211),E=r(56),k=r(0);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e){try{const t=new Set(e.match(/&#x([^;]+);/gm));let r=e;return t.forEach((e=>{const t=parseInt(e.replace("&#x","").replace(";",""),16),n=String.fromCharCode(t);r=r.replace(new RegExp(`${e}`,"g"),n)})),r}catch(t){return console.error(t),e}}const T={position:["relative","static"],width:["$screenWidth","initial"],left:["50%","0"],right:["50%","0"],margin:["0 -50vw","auto"]},I={top:T,right:void 0,bottom:T,left:void 0,overlay:void 0},A={first:0,second:1,third:2,0:0,1:1,2:2};function R(e,t){var r,i,o,a,s,l,c,u;const{amount:d,arcSite:f,siteName:h,shouldBeStatic:p,isAdmin:b,sourceId:m,mobileHeadingSize:g,tabletHeadingSize:v,desktopHeadingSize:y,headingColor:O,headingWeight:j,showDividers:E,metaTitleSize:C,metaTitleColor:M,metaTitleWeight:$,mobileDescriptionSize:T,tabletDescriptionSize:I,desktopDescriptionSize:A,descriptionWeight:R,descriptionColor:D,timelineDotColor:L,timelineLineColor:N,readMoreSize:B,readMoreColor:z,readMoreWeight:F,headlineLines:U,descriptionLines:H,showDescription:V,showLivestreamPromo:G,adTagUrl:W,autoPlay:q,muted:K,enablePreRoll:Y,enableLinkOverlay:X,livestreamPositionIndex:J,livestreamSticky:Z,livestreamStickyPosition:Q,livestreamInitialInView:ee,showImage:te,showVideoIcon:re,showTime:ne,horizontalScroll:ie,placeholderColor:oe,textLocation:ae,timelineList:se,showReadMore:le,marquee:ce}=this,ue={heading:{fontSize:[g,v,ce&&0===t?"$5":y],fontWeight:j,color:O},metaTitle:{fontSize:C,fontWeight:$,color:M},description:{fontSize:[T,I,A],fontWeight:R,color:D},readMore:{fontSize:B,fontWeight:F,color:z},timeline:{dotColor:L,lineColor:N},horizontalScroll:ie,placeholderColor:oe};if("stream_source"in e)return Object(k.jsxs)(w.Fragment,{children:[Object(k.jsx)(S.a,P({href:e.canonical_url,textLocation:ce&&0===t?"overlay":ae,decorations:{timelineList:se,showReadMore:le},pbStyles:ue,gaTag:{gaaction:"Story List",gacategory:"Story Card",galabel:e.canonical_url,gavalue:t}},J===t?{livestream:{hls:e.promo_url||e.url,poster:e.image,id:e.promo_dai_asset_key||e.daiAssetKey||e.id,daiAssetKey:e.promo_dai_asset_key||e.daiAssetKey,title:e.title,url:Object(x.g)({link:e.canonical_url,arcSite:f}),stickyEnabled:Z,stickyPosition:Q,initialInView:ee,canonical_website:e.canonical_website,enableLinkOverlay:X,enablePreRoll:Y,adTagUrl:W,autoPlay:q,muted:K}}:void 0)),E&&t<d-1?Object(k.jsx)(n.l,{variant:"$gray100",sx:{margin:"$0"}}):null]},e.title);const{owner:{sponsored:de}={},headlines:fe,subheadlines:he,description:{basic:pe}={},websites:be}=e;let me=!1;var ge,ve,ye,we,Oe,je,xe,_e,Se,Ee;Object(x.i)(null===(r=e.promo_items)||void 0===r?void 0:r.basic)?me="video"===(null===(ge=e.promo_items)||void 0===ge||null===(ve=ge.basic)||void 0===ve?void 0:ve.type)||"video"===e.type||"video"===(null===(ye=e.promo_items)||void 0===ye||null===(we=ye.livestream)||void 0===we?void 0:we.type):me="custom_embed"===(null===(Oe=e.promo_items)||void 0===Oe||null===(je=Oe.basic)||void 0===je?void 0:je.type)&&"video_clip"===(null===(xe=e.promo_items)||void 0===xe||null===(_e=xe.basic)||void 0===_e?void 0:_e.
2subtype)||"reference"===(null===(Se=e.promo_items)||void 0===Se||null===(Ee=Se.basic)||void 0===Ee?void 0:Ee.type);const ke=Object(x.i)(null===(i=e.promo_items)||void 0===i?void 0:i.basic)?null===(o=e.promo_items)||void 0===o?void 0:o.basic:"custom_embed"===(null===(a=e.promo_items)||void 0===a||null===(s=a.basic)||void 0===s?void 0:s.type)&&"video_clip"===(null===(l=e.promo_items)||void 0===l||null===(c=l.basic)||void 0===c?void 0:c.subtype)?{url:e.promo_items.basic.embed.config.poster.file,height:e.promo_items.basic.embed.config.poster.height,width:e.promo_items.basic.embed.config.poster.width,_id:e.promo_items.basic._id,canonical_website:f,type:"image"}:Object(_.c)(e),Ce=Object(x.m)(e.display_date,e.publish_date)?new Date(e.publish_date):new Date(e.display_date),Pe=null==be?void 0:be[f],Me=(null==Pe?void 0:Pe.website_url)||e.canonical_url,$e=e.canonical_url||"",Te=$e.indexOf("http://")>=0||$e.indexOf("https://")>=0?new URL($e).hostname.replace("www.",""):void 0,Ie=(null==Te?void 0:Te.includes(h.toLowerCase()))?void 0:Te,Ae=(null==e||null===(u=e.promo_items)||void 0===u?void 0:u.livestream)&&"subtype"in e.promo_items.livestream&&"livestream"===e.promo_items.livestream.subtype?{hls:e.promo_items.livestream.embed.config.hls,poster:e.promo_items.livestream.embed.config.poster,adTagUrl:W||e.promo_items.livestream.embed.config.adTag_preroll,id:e.promo_items.livestream.embed.id,daiAssetKey:e.promo_items.livestream.embed.config.daiAssetKey,canonical_website:e.promo_items.livestream.embed.config.canonical_website,title:e.promo_items.livestream.embed.config.title,url:Me,stickyEnabled:Z,stickyPosition:Q,initialInView:ee,enablePreRoll:Y,enableLinkOverlay:X,muted:K,autoPlay:q}:void 0;return Object(k.jsxs)(w.Fragment,{children:[Object(k.jsx)(S.a,P({id:e._id,href:Me,promo:ke,headlines:fe,subheadlines:he,description:V||ce&&V&&0!==t?pe:void 0,displayDate:ne?Ce:void 0,showSource:b&&0===t?m:void 0,headlineLines:U,descriptionLines:H,thirdPartySource:Ie,shouldBeStatic:p,gaTag:{gaaction:"Story List",gacategory:"Story Card",galabel:Me,gavalue:t},lazy:!ce,sponsored:de,showImage:te,textLocation:ce&&0===t?"overlay":ae,decorations:{timelineList:se,showReadMore:le},pbStyles:P({},ue,{showVideoIcon:me&&re})},Ae&&G?{livestream:Ae}:void 0)),E&&t<d-1?Object(k.jsx)(n.l,{variant:"$gray100",sx:{margin:"$0"}}):null]},e._id)}const D=({customFields:{startFrom:e,amount:t=6,mobileColumns:r=1,tabletColumns:i=2,desktopColumns:o=null,collectionId:a="",topicEntity:s="",tagName:l="",sectionName:c="",articleIdOrUrl:u,stories:d=!0,videos:f=!1,useGlobalContent:h=!1,authorId:p="",xGap:b="$3",yGap:y="$5",marquee:j=!1,showDividers:_=!1,gap:S="$3",mobileHeadingSize:C="$2",tabletHeadingSize:M=null,desktopHeadingSize:$="$3",headingColor:T,headingWeight:D="$bold",metaTitleSize:L="$0",metaTitleColor:N="$red.600",metaTitleWeight:B="$medium",mobileDescriptionSize:z="$1",tabletDescriptionSize:F=null,desktopDescriptionSize:U=null,descriptionWeight:H="$normal",descriptionColor:V="$blueGray.600",timelineDotColor:G="$red.600",timelineLineColor:W="$blueGray.300",readMoreSize:q="$0",readMoreWeight:K="$semibold",readMoreColor:Y="$red.600",bottomLinkText:X="Read More",bottomLinkUrl:J,bottomLinkSize:Z="$1",bottomLinkColor:Q="$blueGray.600",bottomLinkWeight:ee="$semibold",headlineLines:te,descriptionLines:re=3,livestreamSticky:ne,livestreamStickyPosition:ie="top",livestreamInitialInView:oe=!0,showLivestreamPromo:ae=!1,enablePreRoll:se=!1,autoPlay:le=!0,muted:ce=!0,enableLinkOverlay:ue=!0,livestreamPositionIndex:de,showImage:fe=!0,showTime:he=!0,showDescription:pe=!0,showVideoIcon:be=!0,horizontalScroll:me=!1,placeholderColor:ge="$blueGray.100",textLocation:ve="bottom",timelineList:ye,showLive:we,showReadMore:Oe,showBottomLink:je,dividerHeadingGC:xe=!1,dividerHeadingContent:_e,dividerHeadingLink:Se,dividerColor:Ee="$red.500",dividerMobileHeadingSize:ke="$2",dividerTabletHeadingSize:Ce=null,dividerDesktopHeadingSize:Pe="$3",dividerHeadingWeight:Me="$bold",dividerHeaderColor:$e="$blueGray.900",horizontalAlignment:Te="left",verticalAlignment:Ie="top",bgColor:Ae="$transparent",scrollOverlay:Re="linear-gradient(to left, #f0fdfa, rgba(240, 253, 250, 0))",galleries:De=!1,livePillColor:Le="$red.600"}})=>{var Ne;const{id:Be}=Object(v.useComponentContext)(),{siteProperties:{siteName:ze},globalContent:Fe,globalContentConfig:{source:Ue,query:{author_id:He=null}={}}={},arcSite:Ve,isAdmin:Ge}=Object(v.useAppContext)(),We=He,qe=de?A[de]:void 0,Ke=Se||xe||!c?Se:`https://${ze.toLowerCase()}/${m(c,{separator:"_",lowercase:!1})}`,Ye=Se||xe||!l&&!s?void 0:`https://www.${ze.toLowerCase()}/topic/${m(Object(x.n)(l||s),{separator:"_",lowercase:!1})}/`,Xe=[h&&"author-by-id"!==Ue,null!==a&&""!==a,null!==s&&""!==s,
2!h&&!f&&(null!==l&&""!==l||null!==c&&""!==c||null!==p&&""!==p)||h&&"author-by-id"===Ue,!!u,!(!f||!(null!==l&&""!==l||null!==c&&""!==c))],Je=["globalContent","0PB_CollectionStoryCard","0PB_TroveStoryCard","0PB_ContentStoryCard","content-api","anyclip"][Xe.indexOf(!0)];let Ze,Qe=null;switch(Je){case"0PB_CollectionStoryCard":Qe={collection_id:a,from:0,size:0},Ze=`collection:${a}`;break;case"0PB_TroveStoryCard":Qe={entity:Object(x.c)(s),stories:d,videos:f,galleries:De},Ze=`topic:${s}`;break;case"0PB_ContentStoryCard":Qe={stories:d,videos:f,galleries:De,section:"",tag:"",authorId:""},c&&(Qe.section=c),l&&(Qe.tag=l),p?Qe.authorId=p.replace("%20"," "):h&&We&&(Qe.authorId=We.replace("%20"," ")),Ze=h&&We?"globalContent":`feed:${c||""}:${l||""}:${p||""}`;break;case"content-api":Ze="content-api",Qe=(null==u?void 0:u.startsWith("/"))?{website_url:u}:{_id:u};break;case"anyclip":Ze=`anyclip:${c}:${l.toLowerCase()}`,Qe={section:c,tag:l.toLowerCase(),transformResponse:"true"};break;case"globalContent":Ze="globalContent";break;default:Qe=null}const et=Object(g.useContent)(void 0!==qe?{source:"all-livestreams"}:void 0),tt=Object(w.useMemo)((()=>{if((null==et?void 0:et.assets)&&0!==et.assets.length)return et.assets.filter((e=>e.canonical_website===Ve&&"epg"===e.stream_source&&e.distribution.includes("web_homepage")))}),[Ve,null==et?void 0:et.assets]),{features:rt}=Object(O.b)();let nt=0,it=t;var ot,at,st,lt;Ze&&(nt=e?e-1:(null===(ot=rt[Ze])||void 0===ot?void 0:ot.features[Be])?rt[Ze].features[Be].start:"refreshNeeded",it=null!==(at=null===(st=rt[Ze])||void 0===st||null===(lt=st.features[Be])||void 0===lt?void 0:lt.amount)&&void 0!==at?at:t);Qe&&"refreshNeeded"!==nt&&(Qe.from=nt,Qe.size=it);const ct=Object(g.useContent)(["globalContent","content-api","anyclip"].includes(Je)?void 0:{source:Je,query:Qe}),ut=Object(g.useContent)("anyclip"===Je?{source:Je,query:P({},Qe,{limit:(null===(Ne=Qe)||void 0===Ne?void 0:Ne.size)||t})}:void 0),dt=ut&&"content_elements"in ut?ut.content_elements:void 0;let ft;"anyclip"===Je&&dt&&(ft=dt);const ht=Object(g.useContent)(u?{source:"content-api",query:Qe}:void 0),pt="globalContent"===Je?null==Fe?void 0:Fe.content_elements:null;let bt;bt=ht?[ht]:ft||(pt||(null==ct?void 0:ct.content_elements)||null);const mt=Xe.filter((e=>e));if(Ge&&1!==mt.length){const e=0===mt.length?"Choose a content source for this story list":"Choose only one content source for this story";return Object(k.jsxs)(n.E,{as:"section",gap:"$2",sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",gridColumn:"-1 / 1",borderRadius:"$md"},children:[Object(k.jsx)(n.q,{level:3,sx:{fontSize:"$4"},children:"Story List:"}),Object(k.jsx)(n.M,{sx:{color:"$lightBlue.900"},children:e})]})}if(Ge&&"refreshNeeded"===nt)return Object(k.jsxs)(n.E,{as:"section",gap:"$2",sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",gridColumn:"-1 / 1",borderRadius:"$md"},children:[Object(k.jsx)(n.q,{level:3,sx:{fontSize:"$4"},children:"Story List:"}),Object(k.jsx)(n.M,{sx:{color:"$lightBlue.900"},children:"Refresh to see content"})]});if(!bt)return null;const gt=h&&"refreshNeeded"!==nt?nt:0,vt=h&&"refreshNeeded"!==nt?nt+t:t,yt={amount:t,descriptionLines:re,headlineLines:te,arcSite:Ve,siteName:ze,isAdmin:Ge,sourceId:Ze,showDividers:_,mobileHeadingSize:C,tabletHeadingSize:M,desktopHeadingSize:$,headingColor:T,headingWeight:D,metaTitleSize:L,metaTitleColor:N,metaTitleWeight:B,mobileDescriptionSize:z,tabletDescriptionSize:F,desktopDescriptionSize:U,descriptionWeight:H,descriptionColor:V,timelineDotColor:G,timelineLineColor:W,readMoreSize:q,readMoreWeight:K,readMoreColor:Y,showDescription:pe,showLivestreamPromo:ae,livestreamSticky:ne,livestreamStickyPosition:ie,livestreamInitialInView:oe,enableLinkOverlay:ue,livestreamPositionIndex:qe,autoPlay:le,muted:ce,enablePreRoll:se,showImage:fe,showVideoIcon:be,showTime:he,horizontalScroll:me,placeholderColor:ge,textLocation:ve,timelineList:ye,showReadMore:Oe,marquee:j};let wt=[];if("number"==typeof qe&&(null==tt?void 0:tt[0])){const e=[...bt];e.splice(qe,0,tt[0]),wt=e.slice(gt,vt).map(R,yt)}else wt=bt.slice(gt,vt).map(R,yt);if(j){if(3===t)return Object(k.jsxs)(n.E,{gap:S,className:"marqueeNext",children:[_e||xe?Object(k.jsx)(E.default,{showLive:we,customFields:{divi
2derHeadingGC:xe,dividerHeadingContent:_e,dividerHeadingLink:Ke||Ye||Se,dividerColor:Ee,dividerMobileHeadingSize:ke,dividerTabletHeadingSize:Ce,dividerDesktopHeadingSize:Pe,dividerHeadingWeight:Me,dividerHeaderColor:$e,horizontalAlignment:Te,verticalAlignment:Ie,bgColor:Ae,livePillColor:Le,dividerHeadingLevel:xe?1:2},children:_e}):null,Object(k.jsx)("div",{className:"storyListNext",children:Object(k.jsx)(n.p,{className:"marqueeWrapper",gap:"$3",columns:[1,2,3],sx:{width:["100vw","$full"],position:["relative","static"],left:["50%","0"],right:["50%","0"],margin:["0 -50vw","auto"],gridTemplateRows:["1fr",null,"repeat(2, 1fr)"],"& > :first-child":{aspectRatio:["16 / 9",null,"initial"],gridColumn:[null,"-1 / 1","1 / 3"],gridRow:[null,null,"1 / 3"],".imageWrapper":{height:"100%"}}},children:wt})})]});if(5===t)return Object(k.jsxs)(n.E,{gap:S,className:"marqueeNext",children:[_e||xe?Object(k.jsx)(E.default,{showLive:we,customFields:{dividerHeadingGC:xe,dividerHeadingContent:_e,dividerHeadingLink:Se||Ke||Ye,dividerColor:Ee,dividerMobileHeadingSize:ke,dividerTabletHeadingSize:Ce,dividerDesktopHeadingSize:Pe,dividerHeadingWeight:Me,dividerHeaderColor:$e,horizontalAlignment:Te,verticalAlignment:Ie,bgColor:Ae,livePillColor:Le,dividerHeadingLevel:xe?1:2},children:_e}):null,Object(k.jsx)("div",{className:"storyListNext",children:Object(k.jsx)(n.p,{className:"marqueeWrapper",xGap:[null,"$3"],yGap:"$5",sx:{width:["100vw","$full"],position:["relative","static"],left:["50%","0"],right:["50%","0"],margin:["0 -50vw","auto"],gridTemplateColumns:["1fr","repeat(2, 1fr)",null,"repeat(6, 1fr)"],gridTemplateRows:["1fr",null,null,"repeat(2, 1fr)"],"& > article .flexWrapper":{height:["initial",null,null,"100%"]},"& > :first-child":{marginBottom:[null,"$-3","initial"],gridColumn:["initial","-1 / 1",null,"2 / span 4"],gridRow:["initial",null,null,"1 / span 2"],".imageWrapper":{height:"100%"},".storyImage a:before":{display:["none","block"]},".storyText":{width:["unset","$full"],position:["unset","absolute"],bottom:["unset","$3"],zIndex:["unset","2"],px:["$4","$3"]},".time span":{color:[N,"white"]},".storyHeadline":{color:[T,"white"],fontWeight:[D,null,"$bold"]},".storyDescription":{color:[V,"white"]}},"& > :nth-child(2)":{gridColumn:["initial",null,null,"1 / span 1"],gridRow:["initial",null,null,"1 / span 1"],alignSelf:[null,null,null,"flex-start"]},"& > :nth-child(3)":{gridColumn:["initial",null,null,"1 / span 1"],gridRow:["initial",null,null,"2 / span 1"],alignSelf:[null,null,null,"flex-end"]},"& > :nth-child(4)":{gridColumn:["initial",null,null,"6 / span 1"],gridRow:["initial",null,null,"1 / span 1"],alignSelf:[null,null,null,"flex-start"]},"& > :nth-child(5)":{gridColumn:["initial",null,null,"6 / span 1"],gridRow:["initial",null,null,"2 / span 1"],alignSelf:[null,null,null,"flex-end"]}},children:wt})})]})}return Object(k.jsxs)(n.E,{gap:S,className:"storyListWrapper",sx:me?{overflowX:"hidden",position:"relative"}:null,children:[_e||xe?Object(k.jsx)(E.default,{showLive:we,customFields:{dividerHeadingGC:xe,dividerHeadingContent:_e,dividerHeadingLink:Ke||Ye||Se,dividerColor:Ee,dividerMobileHeadingSize:ke,dividerTabletHeadingSize:Ce,dividerDesktopHeadingSize:Pe,dividerHeadingWeight:Me,dividerHeaderColor:$e,horizontalAlignment:Te,verticalAlignment:Ie,bgColor:Ae,livePillColor:Le,dividerHeadingLevel:xe?1:2}}):null,Object(k.jsx)(n.e,{className:"storyListNext",height:"$full",sx:me?{overflow:"scroll",scrollSnapAlign:"start",scrollSnapType:"x proximity",scrollPadding:"0","&::-webkit-scrollbar":{display:"none"}}:null,children:Object(k.jsx)(n.p,{columns:me?t:[r,i,o],xGap:b,yGap:y,height:"$full",sx:me?{width:["80rem",null,null,null,"75rem"],"&:before":{content:'""',position:"absolute",top:"0",right:"0",width:"$1/4",zIndex:"1",pointerEvents:"none",background:[Re,null,null,null,"transparent"]}}:I[ve],children:wt})}),je?Object(k.jsx)(n.t,{className:"transition-300",href:J||Ke||Ye,px:"$2",py:"$1",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"$white",borderRadius:"$md",border:"1px solid",borderColor:"$blueGray.200",textColor:Q,fontWeight:ee,fontSize:Z,sx:{"&:hover":{borderColor:"$blue.300",color:"$blue.600"},"&:focus":{outline:"none"}},children:X}):null]})};D.propTypes={customFields:y.shape(P({sourceLabel:y.label.tag({name:"Get Stories From:",description:"Choose one of the following options to specify a\n        content source for the stories that feed this story list."}),useGlobalContent:y.bool.tag({name:"GlobalContent",description:"Use this page's GlobalContent source (set below)\n        to populate the stories from this collection"}),collectionId:y.string.tag({name:"Collection ID",description:"Enter a collection ID from WebSked use populate this\n        feature with stories from the collection"}),topicEntity:y.string.tag({name:"Topic",description:"Enter a topic name to populate this feature with stories from the topics feed (will contain a mix of first and third party stories)"}),authorId:y.string.tag({name:"Author ID",description:"Enter an author ID to populate this feature with articles written by that author.  (Can be used in combination with a section name and/or article tag)"}),tagName:y.string.tag({name:"Article/Video Tag",description:"Enter an article or video tag to populate this feature with articles containing that tag.  (Can be used in combination with a section name and/or author ID)"}),sectionName:y.string.tag({name:"Section Name",description:"Enter an section name to populate this feature with articles from that site section.  (Can be used in combination with a article tag and/or author ID)"}),articleIdOrUrl:y.string.tag({name:"Article ID / URL Slug",description:"An ID or URL slug to source a single story card"}),stories:y.boolean.tag({name:"Include Stories?",defaultValue:!0}),videos:y.boolean.tag({name:"Include Videos?",defaultValue:!1}),galleries:y.boolean.tag({name:"Include Galleries?",defaultValue:!1}),divider:y.label.tag({name:"------------------"}),startFrom:y.number.tag({name:"Start From (optional)",description:"If you want to start from a specific position\n        in the story feed enter the startng position here."}),amount:y.number.tag({name:"Amount of Stories",description:"Choose a number divisible by your desktop column number",defaultValue:6}),configLabel:y.label.tag({name:"Configuration Options"}),divider2:y.label.tag({name:"------------------"}),showImage:y.bool.tag({name:"Show Image",defaultValue:!0,group:"Display Options"}),showVideoIcon:y.bool.tag({name:"Show Video Icon",defaultValue:!0,group:"Display Options"}),showDescription:y.bool.tag({name:"Show Description",defaultValue:!0,group:"Display Options"}),showTime:y.bool.tag({name:"Show Time",defaultValue:!0,group:"Display Options"}),marquee:y.bool.tag({name:"Marquee",defaultValue:!1,group:"Display Options"}),horizontalScroll:y.bool.tag({name:"Horizontal Scroll",defaultValue:!1,group:"Display Options"}),showDividers:y.bool.tag({name:"Show Dividers",defaultValue:!1,group:"Display Options"}),timelineList:y.bool.tag({name:"Timeline List",defaultValue:!1,group:"Display Options"}),showLive:y.bool.tag({name:"Show Live",defaultValue:!1,group:"Display Options"}),showReadMore:y.bool.tag({name:"Show Read More",defaultValue:!1,group:"Display Options"}),showBottomLink:y.bool.tag({name:"Show Bottom Link",defaultValue:!1,group:"Display Options"}),scrollOverlay:y.string.tag({name:"Horizontal Scroll Fade Gradient",description:"...",defaultValue:"linear-gradient(to left, #f0fdfa, rgba(240, 253, 250, 0))",group:"Display Options"}),textLocation:y.oneOf(["overlay","top","right","bottom","left"]).tag({name:"Text Location",description:"...",labels:{overlay:"overlay",top:"top",right:"right",bottom:"bottom",left:"left"},defaultValue:"bottom",group:"Display Options"}),placeholderColor:Object(j.a)({name:"Placeholder Color",description:"Color of the placeholder image",defaultValue:"$blueGray.100",group:"Display Options"})},j.f,{gap:Object(j.e)({name:"Headline Gap",defaultValue:"$3",group:"Header Options"}),mobileColumns:Object(j.b)({name:"Mobile Column Count",description:"Mobile columns",defaultValue:1,group:"Grid Options"}),tabletColumns:Object(j.b)({name:"Tablet Column Count",description:"Tablet columns",defaultValue:2,group:"Grid Options"}),desktopColumns:Object(j.b)({name:"Desktop Column Count",description:"Desktop columns",defaultValue:null,group:"Grid Options"}),xGap:Object(j.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(j.e)({name:"Row Gap (y-axis)",defaultValue:"$5",group:"Grid Options"}),mobileHeadingSize:Object(j.c)({name:"Mobile Headline Size",defaultValue:"$2",group:"Typography Options"}),tabletHeadingSize:Object(j.c)({name:"Tablet Headline Size",defaultValue:null,group:"Typography Options"}),desktopHeadingSize:Object(j.c)({name:"Desktop Headline Size",defaultValue:"$3",group:"Typography Options"}),headingWeight:Object(j.d)({name:"Heading Weight",defaultValue:"$bold",group:"Typography Options"}),headingColor:Object(j.a)({name:"Heading Color",defaultValue:"$blueGray.900",group:"Typography Options"}),metaTitleSize:Object(j.c)({name:"Meta Title Size",defaultValue:"$0",group:"Typography Options"}),metaTitleColor:Object(j.a)({name:"Meta Title Color",defaultValue:"$red.600",group:"Typography Options"}),metaTitleWeight:Object(j.d)({name:"Meta Title Weight",defaultValue:"$medium",group:"Typography Options"}),mobileDescriptionSize:Object(j.c)({name:"Mobile Description Size",defaultValue:"$0",group:"Typography Options"}),tabletDescriptionSize:Object(j.c)({name:"Tablet Description Size",defaultValue:null,group:"Typography Options"}),desktopDescriptionSize:Object(j.c)({name:"Desktop Description Size",defaultValue:"$1",group:"Typography Options"}),descriptionWeight:Object(j.d)({name:"Description Weight",defaultValue:"$normal",group:"Typography Options"}),descriptionColor:Object(j.a)({name:"Description Color",defaultValue:"$blueGray.600",group:"Typography Options"}),timelineDotColor:Object(j.a)({name:"Timeline Dot Color",description:"Refers to Timeline List - default is $red.600",defaultValue:"$red.600",group:"Typography Options"}),timelineLineColor:Object(j.a)({name:"Timeline Line Color",description:"Refers to Timeline List - default is $blueGray.300",defaultValue:"$blueGray.300",group:"Typography Options"}),showLivestreamPromo:y.boolean.tag({name:"Show Livestream Featured Media",description:"If you want to show livestreams as the story card",group:"Livestream Options",defaultValue:!1}),livestreamSticky:y.bool.tag({name:"Sticky Livestream",description:"Choose whether the livestream should be sticky.",group:"Livestream Options",defaultValue:!1}),livestreamInitialInView:y.bool.tag({name:"Livestream Above the Fold",de
2scription:"Choose whether the livestream is above the fold or not.",group:"Livestream Options",defaultValue:!0}),livestreamStickyPosition:y.oneOf(["top","bottom"]).tag({name:"Livestream Sticky Position",description:"Choose whether the livestream should be sticky at the top or bottom of the viewport.",labels:{top:"Top",bottom:"Bottom"},group:"Livestream Options",defaultValue:"top"}),autoPlay:y.bool.tag({name:"Player Auto Play",description:"Choose whether the livestream should autoplay.",group:"Livestream Options",defaultValue:!0}),muted:y.bool.tag({name:"Player Muted",description:"Choose whether the livestream should be muted.",group:"Livestream Options",defaultValue:!0}),enablePreRoll:y.bool.tag({name:"Enable Pre-Roll Ads",description:"Choose whether the livestream should have pre-roll ads.",group:"Livestream Options",defaultValue:!1}),enableLinkOverlay:y.bool.tag({name:"Enable Link Overlay",description:"Choose whether the livestream should have a link overlay to the canonical article.",group:"Livestream Options",defaultValue:!0}),livestreamPositionIndex:y.oneOf(["first","second","third"]).tag({name:"EPG Livestream Position",description:"Choose the position of the EPG livestream in the story list.",group:"Livestream Options",ordered:!1,labels:{first:"First",second:"Second",third:"Third"}}),adTagUrl:y.string.tag({name:"Ad Tag URL",description:"VAST Ad Tag URL for the player",group:"Livestream Options"}),headlineLines:y.number.tag({name:"Headline line limit (optional)",description:"Manipulates the line limit on article headlines. A default is applied if blank.",defaultValue:void 0,group:"Advanced Options"}),descriptionLines:y.number.tag({name:"Description line limit (optional)",description:"Manipulates the line limit on article descriptions. A default is applied if blank.",defaultValue:3,group:"Advanced Options"}),readMoreSize:Object(j.c)({name:"Read More Size",defaultValue:"$0",group:"Typography Options"}),readMoreWeight:Object(j.d)({name:"Read More Weight",defaultValue:"$semibold",group:"Typography Options"}),readMoreColor:Object(j.a)({name:"Read More Color",defaultValue:"$red.400",group:"Typography Options"}),bottomLinkText:y.string.tag({name:"Bottom link Label",description:"This will present as 'Read More' unless customized.",defaultValue:"Read More",group:"Display Options"}),bottomLinkUrl:y.string.tag({name:"Bottom link URL",description:"This will match the Header url unless customized.",group:"Display Options"}),bottomLinkSize:Object(j.c)({name:"Bottom Link Size",defaultValue:"$1",group:"Typography Options"}),bottomLinkWeight:Object(j.d)({name:"Bottom Link Weight",defaultValue:"$semibold",group:"Typography Options"}),bottomLinkColor:Object(j.a)({name:"Bottom Link Color",defaultValue:"$blueGray.600",group:"Typography Options"})}))};t.default=D},function(e,t,r){(function(t){var r=1/0,n="[object Symbol]",i="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")(),s=Object.prototype,l=0,c=s.toString,u=a.Symbol,d=u?u.prototype:void 0,f=d?d.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&c.call(e)==n}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}e.exports=function(e){var t,r=++l;return(null==(t=e)?"":h(t))+r}}).call(this,r(60))},function(e,t,r){"use strict";var n=r(2),i=r(1),o=r.n(i),a=r(326),s=r(167);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d={data:void 0,photo:0,fullscreen:"closed",isInViewport:!1,numItems:0},f=o.a.createContext(d),h=o.a.createContext(void 0),p=(e,t)=>{if("SET_IN_VIEW"!==t.type&&(!e.isInViewport||0===e.numItems))return e;switch(t.type){case"NEXT":return e.photo===e.numItems-1?c({},e,{photo:0}):c({},e,{photo:e.photo+1});case"PREV":return 0===e.photo?c({},e,{photo:e.numItems-1}):c({},e,{photo:e.photo-1});case"FULLSCREEN":return"open"===e.fullscreen?c({},e,{fullscreen:"closed"}):c({},e,{fullscreen:"open"});case"CLOSE":return"closed"===e.fullscreen?c({},e):c({},e,{fullscreen:"closed"});case"SET_IN_VIEW":return c({},e,{isInViewport:!0});case"SET_OUT_VIEW":return c({},e,{isInViewport:!1});default:throw new Error(`Unhandled type: ${t.type}`)}},b=()=>{const e=o.a.useContext(f);if(void 0===e)throw new Error("useGalleryContext must be used within a GalleryContextProvider");return e},m=()=>{const e=o.a.useContext(h);if(void 0===e)throw new Error("useGalleryDispatch must be used within a GalleryContextProvider");return e};var g=r(0);const v=o.a.memo((()=>{var e;const{data:t,fullscreen:r,photo:i}=b();return(null==t?void 0:t[i].caption)?Object(g.jsxs)(n.E,{gap:"$2",sx:"open"===r?{maxHeight:"$64",overflow:"scroll",padding:"$3",paddingBottom:"$5",borderTop:"2px solid",borderTopColor:"$trueGray.700"}:{paddingX:["$4",null,"$0"]},children:[(null===(e=t[i])||void 0===e?void 0:e.copyright)&&Object(g.jsx)(n.M,{lineHeight:"$tight",textColor:"open"===r?"$trueGray.50":"$blueGray.600",sx:{fontSize:"$0",fontStyle:"italic"},innerContent:t[i].copyright}),Object(g.jsx)(n.M,{textColor:"open"===r?"$trueGray.50":"$blueGray.500",lineHeight:"$normal",sx:{fontSize:"$1",a:{textDecoration:"underline"}},innerContent:t[i].caption})]}):null}));v.displayName="GalleryCaption";var y=v,w=r(325),O=r(141);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?j(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=o.a.memo((()=>{const{data:e,fullscreen:t,photo:r}=b(),i=m();return Object(g.jsxs)(n.E,{className:"photoInfo",direction:"row",gap:"$3",justifyContent:"space-between",alignItems:"baseline",fontFamily:"$gibson",fontSize:"$2",fontWeight:"$semibold",paddingX:["$3",null,"$0"],sx:x({},"open"===t?{color:"$trueGray.50",padding:"$3",borderBottom:"2px solid",borderBottomColor:"$trueGray.700"}:{color:"$blueGray.600"}),children:[Object(g.jsx)(n.f,{variant:"open"===t?"$ghostWhite":"$gray",iconLeft:"open"===t?O.faTimesCircle:w.faExpandAlt,onClick:()=>i({type:"FULLSCREEN"}),children:"open"===t?"Close Full Screen":"Full Screen"}),Object(g.jsx)(n.M,{as:"span",children:`${r+1} / ${null==e?void 0:e.length}`})]})}));S.displayName="GalleryControls";var E=S,k=r(212),C=r(213),P=r(130),M=r(33);function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=()=>{var e;const t=b(),r=m(),{ref:i,inView:a}=Object(P.a)({root:null,rootMargin:"0px",threshold:1});return o.a.useEffect((()=>r(a?{type:"SET_IN_VIEW"}:{type:"SET_OUT_VIEW"})),[r,a]),Object(g.jsxs)(n.e,{ref:i,className:"gallery",bg:"$blueGray.100",sx:{position:"relative",width:"$full",height:"$0",overflow:"hidden",flex:"open"===t.fullscreen?"1":null,paddingBottom:"open"===t.fullscreen?null:"66.67%"},children:[Object(g.jsx)(n.e,{sx:{position:"absolute",zIndex:"$1",left:"$3",top:"50%",transform:"translateY(-50%)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25))"},children:Object(g.jsx)(n.f,{variant:"$icon",iconLeft:k.faChevronLeft,onClick:()=>r({type:"PREV"}),sx:{color:"$white",fontSize:"$5",padding:"$2"},children:Object(g.jsx)(n.O,{children:"Previous photo"})})}),Object(g.jsx)(n.e,{sx:{position:"absolute",zIndex:"$1",right:"$3",top:"50%",transform:"translateY(-50%)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25))"},children:Object(g.jsx)(n.f,{variant:"$icon",iconLeft:C.faChevronRight,onClick:()=>r({type:"NEXT"}),sx:{color:"$white",fontSize:"$5",padding:"$2"},children:Object(g.jsx)(n.O,{children:"Next photo"})})}),Object(g.jsx)(n.e,{sx:{position:"absolute",width:"$full",height:"$full"},children:Object(g.jsx)(n.E,{gap:"$0",className:"slider transition-500",direction:"row",style:{transform:`translateX(-${t.photo}00%)`},sx:T({height:"100%",".imageWrapper > img":{bg:"$blueGray.200"}},"open"===t.fullscreen&&{"& > figure":{bg:"$black.900"}}),children:null===(e=t.data)||void 0===e?void 0:e.map((({_id:e,caption:t,height:r,width:n,url:i,additional_properties:{galleryOrder:o}={}},a)=>Object(g.jsx)(M.a,{alt:t||"",lazy:0!==a,height:r,width:n,url:i,sx:{flex:"1 0 100%",display:"inline-block",position:"relative",height:"100%",width:"100%",order:o,".imageWrapper":{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:"$full"}}},`slide-${e||a}`)))})})]})};function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?R(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a=({data:e,sx:t,className:r})=>{const o=Object(s.a)("Escape"),l=Object(s.a)("ArrowLeft"),c=Object(s.a)("ArrowRight"),u=Object(s.a)("f"),d={data:e,photo:0,fullscreen:"closed",isInViewport:!1,numItems:e.length},[b,m]=Object(i.useReducer)(p,d),v=Object(a.useSwipeable)({onSwipedLeft:()=>m({type:"NEXT"}),onSwipedRight:()=>m({type:"PREV"}),preventDefaultTouchmoveEvent:!0,trackMouse:!0});Object(i.useEffect)((()=>{u&&m({type:"FULLSCREEN"})}),[u,m]),Object(i.useEffect)((()=>{o&&m({type:"CLOSE"})}),[o,m]),Object(i.useEffect)((()=>{l&&m({type:"PREV"})}),[l,m]),Object(i.useEffect)((()=>{c&&m({type:"NEXT"})}),[c,m]);const w=D({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",margin:"0 !important",backgroundColor:"$trueGray.900",zIndex:"$1000"},t);return Object(g.jsx)(n.E,D({gap:"open"===b.fullscreen?"$0":"$2",sx:"open"===b.fullscreen?w:t,className:r},v,{children:Object(g.jsx)(f.Provider,{value:b,children:Object(g.jsxs)(h.Provider,{value:m,children:[Object(g.jsx)(E,{}),Object(g.jsx)(A,{}),Object(g.jsx)(y,{})]})})}))}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecaptchaMethod=void 0;var n,i=r(4),o=i.__importDefault(r(30)),a=r(243);!function(e){e.SIGN_IN="SIGN_IN",e.SIGN_UP="SIGN_UP",e.MAGIC_LINK="MAGIC_LINK",e.RESET_PASSWORD="RESET_PASSWORD"}(n||(t.RecaptchaMethod=n={})),t.default=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,o.default.getConfig()];case 1:if(r=i.sent(),(0,a.isConfigOptions)(r)&&(e===n.MAGIC_LINK&&r.magicLinkRecaptcha||e===n.SIGN_IN&&r.signinRecaptcha||e===n.SIGN_UP&&r.signupRecaptcha||e===n.RESET_PASSWORD&&r.resetPasswordRecaptcha)&&!t)throw{code:"130001",message:"Captcha token invalid"};return[2,!0]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signOnSwgUser=t.googleSignOn=t.deprecationMessage=void 0;var n=r(4),i=r(155),o=r(91),a=r(189),s=n.__importDefault(r(30));t.deprecationMessage="Legacy Google Sign In will be deprecated on Dec 31, 2022. Use the new Arc Identity & Sign In With Google SDKs.";t.googleSignOn=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var r,i,c,u;return n.__generator(this,(function(n){switch(n.label){case 0:if(console.error(t.deprecationMessage),e)return[2,l(e)];n.label=1;case 1:return n.trys.push([1,7,,8]),(0,o.isLegacyGoogleSetting)(s.default._google)?s.default._google.authInstance?[3,3]:[4,(0,a.getGoogleAuthInstance)()]:[3,5];case 2:n.sent(),n.label=3;case 3:return(r=s.default._google.authInstance)&&r.isSignedIn.get()?[2,l(r.currentUser.get())]:[4,null===(u=s.default._google.authInstance)||void 0===u?void 0:u.signIn({prompt:"select_account"})];case 4:return i=n.sent(),[2,l(i)];case 5:throw c=new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method."),console.error(c),c;case 6:return[3,8];case 7:throw n.sent();case 8:return[2]}}
2))}))};t.signOnSwgUser=function(e){var r=e.idToken,l=e.swgSubscriptionTokenResponse;return n.__awaiter(void 0,void 0,void 0,(function(){var e,c,u,d,f;return n.__generator(this,(function(n){switch(n.label){case 0:return console.error(t.deprecationMessage),r?[2,(0,i.socialLogin)("google",{credentials:r})]:[3,1];case 1:return l?(s.default.userIdentity={uuid:l.profileId,accessToken:l.accessToken,refreshToken:l.refreshToken},[2,s.default.heartbeat()]):[3,2];case 2:return[4,(0,a.getGoogleAuthInstance)()];case 3:if(n.sent(),(0,o.isLegacyGoogleSetting)(s.default._google)){if(null===(d=s.default._google.authInstance)||void 0===d?void 0:d.isSignedIn.get())return e=null===(f=s.default._google.authInstance)||void 0===f?void 0:f.currentUser.get(),c=e.getAuthResponse().id_token,[2,(0,i.socialLogin)("google",{credentials:c})];throw new Error("[Arc Identity SDK] - No google user logged in.")}throw u=new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method."),console.error(u),u;case 4:return[2]}}
2))}))};var l=function(e){console.error(t.deprecationMessage);var r=e.getAuthResponse().id_token;if((0,o.isLegacyGoogleSetting)(s.default._google))return(0,i.socialLogin)("google",{credentials:r}).then((function(e){if((0,o.isLegacyGoogleSetting)(s.default._google))return s.default._google.onSuccess&&s.default._google.onSuccess(),e;throw new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method.")})).catch((function(e){throw(0,o.isLegacyGoogleSetting)(s.default._google)?(s.default._google.onFailure&&s.default._google.onFailure(),e):new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method.")}));throw new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method.")};t.default=t.googleSignOn},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialLogin=void 0;var n=r(4),i=n.__importDefault(r(30)),o=r(85),a=r(34),s=n.__importDefault(r(39));t.socialLogin=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){var r;return n.__generator(this,(function(l){switch(l.label){case 0:return r=n.__assign({},a.headers),i.default.userIdentity&&i.default.userIdentity.accessToken&&i.default.userIdentity.refreshToken?[4,i.default.heartbeat()]:[3,2];case 1:l.sent(),r.Authorization="Bearer ".concat(i.default.userIdentity.accessToken),l.label=2;case 2:return[2,fetch("".concat(i.default.apiOrigin,"/identity/public/v1/auth/login"),{method:"POST",headers:r,body:JSON.stringify(n.__assign(n.__assign({},t),{userName:"",grantType:e}))}).then(s.default).then((function(t){if((0,o.isUserIdentity)(t))return localStorage.removeItem(a.PROFILE_STORAGE_KEY_EXPIRED_TIME),i.default.userIdentity=t,window.postMessage({type:"ARC_LOGIN_SUCCESS",grantType:e},"*"),t;throw t}))]}}))}))}},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r(53))},function(e,t,r){var n=r(32).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,l,c=r[0],u=r[1],d=r[2],f=r[3],h=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],m=e[3]^t[3],g=4,v=1;v<i;v++)o=c[h>>>24]^u[p>>>16&255]^d[b>>>8&255]^f[255&m]^t[g++],a=c[p>>>24]^u[b>>>16&255]^d[m>>>8&255]^f[255&h]^t[g++],s=c[b>>>24]^u[m>>>16&255]^d[h>>>8&255]^f[255&p]^t[g++],l=c[m>>>24]^u[h>>>16&255]^d[p>>>8&255]^f[255&b]^t[g++],h=o,p=a,b=s,m=l;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&m])^t[g++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[g++],s=(n[b>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++],l=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[g++],[o>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var u=e[a],d=e[u],f=e[d],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*u^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],u=0;u<n;u++){var d=n-u,f=i[d-(u%4?0:4)];c[u]=u<4||d<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nR
vendor: 5,173 bytes, line 2
2ounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,r){var n=r(32).Buffer,i=r(190);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),l=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,c.length),c.copy(s,f,0,d),a-=d}if(d<c.length&&o>0){var h=l.length-o,p=Math.min(o,c.length-d);c.copy(l,h,d,d+p),o-=p}}return c.fill(0),{key:s,iv:l}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=r(80),i=r(67),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,l,c=[];for(a=0;a<n.length;a+=r.step){l=0;for(var u=a+r.step-1;u>=a;u--)l=(l<<1)+n[u];c.push(l)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(l=c[a])===h?f=f.mixedAdd(r.points[a]):l===-h&&(f=f.mixedAdd(r.points[a].neg()));d=d.add(f)}return d.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var u=0;c>=0&&0===a[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=a[c];s(0!==d),l="affine"===e.type?d>0?l.mixedAdd(i[d-1>>1]):l.mixedAdd(i[-d-1>>1].neg()):d>0?l.add(i[d-1>>1]):l.add(i[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){var s,l,c,u=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);u[s]=p.wnd,d[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,m=s;if(1===u[b]&&1===u[m]){var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[b],r[m]);for(h=Math.max(y[0].length,h),f[b]=new Array(h),f[m]=new Array(h),l=0;l<h;l++){var w=0|y[0][l],O=0|y[1][l];f[b][l]=v[3*(w+1)+(O+1)],f[m][l]=0,d[b]=g}}else f[b]=o(r[b],u[b],this._bitLength),f[m]=o(r[m],u[m],this._bitLength),h=Math.max(f[b].length,h),h=Math.max(f[m].length,h)}var j=this.jpoint(null,null,null),x=this._wnafT4;for(s=h;s>=0;s--){for(var _=0;s>=0;){var S=!0;for(l=0;l<n;l++)x[l]=0|f[l][s],0!==x[l]&&(S=!1);if(!S)break;_++,s--}if(s>=0&&_++,j=j.dblp(_),s<0)break;for(l=0;l<n;l++){var E=x[l];0!==E&&(E>0?c=d[l][E-1>>1]:E<0&&(c=d[l][-E-1>>1].neg()),j="affine"===c.type?j.mixedAdd(c):j.add(c))}}for(s=0;s<n;s++)d[s]=null;return i?j:j.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)}
2,c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){var n=r(454),i=r(461),o=r(462),a=r(196),s=r(264),l=r(32).Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var r,c,u=o(e,t),d=u.tag,f=u.data;switch(d){case"CERTIFICATE":c=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(f,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,d,"sha1"),h=a.createDecipheriv(o,f,c),p=[];return p.push(h.update(u)),p.push(h.final()),l.concat(p)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=c,c.signature=n.signature},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=r(40);function o(e,t,r){let o=Object(i.a)(t);Object(n.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)}),[e,r])}},function(e,t,r){"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";t.a=null},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(135);const i={};let o=0;"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((e=>{let t=o.toString(2);t=Object(n.a)(t,6,"0"),i[t]=e,o++}))},function(e,t,r){"use strict";t.a={LEADER_BOARD1:{desktop:[[970,250],[970,90],[728,90],"fluid"],mobile:[[320,50],"fluid"]},LEADER_BOARD2:{desktop:[[970,250],[970,90],[728,90],"fluid"],mobile:[[320,50],[300,250],"fluid"]},LEADER_BOARD3:{desktop:[[728,90],"fluid"],mobile:[[320,50],[300,250],"fluid"]},LEADER_BOARD4:{desktop:[[728,90],"fluid"],mobile:[[320,50],[300,250],"fluid"]},AUTO_INCREASE:{mobile:[[320,50],[300,250],"fluid"],desktop:[[300,250],[728,90],"fluid"]},PROMO:{mobile:[[320,50],[300,250],"fluid"],desktop:[[300,250],[300,600],"fluid"]},RIGHT:{mobile:[[300,250],[300,600],"fluid"],desktop:[[300,250],[300,600],"fluid"]},DISPLAY:{mobile:[[300,250],[300,600],"fluid"],desktop:[[300,250],[300,600],"fluid"]},PIXEL:{mobile:[[1,1]],desktop:[[1,1]]},FOOTER:{mobile:[[1,1]],desktop:[[970,90],[728,90]]},TOP:{mobile:[[320,50]],desktop:[]},EOA:{mobile:[[320,50],[300,250],"fluid"],desktop:[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);function i(e){const[t,r]=Object(n.useState)(!1),i=Object(n.useCallback)((({key:t})=>{t===e&&r(!0)}),[e]),o=Object(n.useCallback)((({key:t})=>{t===e&&r(!1)}),[e]);return Object(n.useEffect)((()=>
2{if("object"==typeof window)return window.addEventListener("keydown",i),window.addEventListener("keyup",o),()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",o)}})),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="x-twitter",i=[],o="e61b",a="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z";t.definition={prefix:"fab",iconName:n,icon:[512,512,i,o,a]},t.faXTwitter=t.definition,t.prefix="fab",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return d}));var n=r(5),i=r(1),o=r(170),a=r(0);const s="nielsen-sdk-script",l={sdkInstance:null,isAnalyticsAllowed:!1,loadMetadata:()=>!1,updateMetadata:()=>{},setPlayheadPosition:()=>{},stopTracking:()=>{},endTracking:()=>{},handleBeforeUnload:()=>{}},c=Object(i.createContext)(l),u=({children:e,disabled:t=!1})=>{const{arcSite:r,siteProperties:{nielsenAppId:u}}=Object(n.useAppContext)(),d=Object(o.a)(),[f,h]=Object(i.useState)(!1),[p,b]=Object(i.useState)(null),m=Object(i.useRef)(null);Object(i.useEffect)((()=>{if(t||!d)return;if(!u)return;const e=u;return window.NOLBUNDLE||(()=>{if(document.getElementById(s))return;const e=document.createElement("script");e.id=s,e.type="text/javascript",e.innerHTML='!function (e, n) {\n    function t(e) {\n      return "object" == typeof e ? JSON.parse(JSON.stringify(e)) : e;\n    }\n    e[n] = e[n] || {\n      nlsQ: function (o, r, c) {\n        var s = e.document,\n          a = s.createElement("script");\n        a.async = 1;\n        a.src = (("http:" === e.location.protocol ? "http:" : "https:") +\n          "//cdn-gl.imrworldwide.com/conf/" +\n          o +\n          ".js#name=" +\n          r +\n          "&ns=" +\n          n);\n        var i = s.getElementsByTagName("script")[0];\n        i.parentNode.insertBefore(a, i);\n        e[n][r] = e[n][r] || {\n          g: c || {},\n          ggPM: function (o, c, s, a, i) {\n            e[n][r].q = e[n][r].q || [];\n            try {\n              var l = t([o, c, s, a, i]);\n              e[n][r].q.push(l);\n            } catch (e) {\n              console?.log?.("Error: Cannot register event in Nielsen SDK queue.");\n            }\n          },\n          trackEvent: function (o) {\n            e[n][r].te = e[n][r].te || [];\n            try {\n              var c = t(o);\n              e[n][r].te.push(c);\n            } catch (e) {\n              console?.log?.("Error: Cannot register event in Nielsen SDK queue.");\n            }\n          },\n        };\n        return e[n][r];\n      },\n    };\n}(window, "NOLBUNDLE");',document.head.appendChild(e),m.current=e})(),(()=>{const t=`${r}-nlsn-instance`,n={optout:!d},i=window.NOLBUNDLE.nlsQ(e,t,n);b(i),h(!0)})(),()=>{m.current&&document.head.contains(m.current)&&document.head.removeChild(m.current)}}),[r,u,d,t]);const g=Object(i.useMemo)((()=>{if(t)return l;const e=p&&f&&"function"==typeof p.ggPM;return{sdkInstance:p,isAnalyticsAllowed:d,loadMetadata:t=>!!e&&(null==p||p.ggPM("loadMetadata",t),!0),updateMetadata:t=>{e&&(null==p||p.ggPM("updateMetadata",t))},setPlayheadPosition:t=>{e&&(null==p||p.ggPM("setPlayheadPosition",t))},stopTracking:t=>{e&&(null==p||p.ggPM("stop",t))},endTracking:t=>{e&&(null==p||p.ggPM("end",t))},handleBeforeUnload:(t,r)=>{e&&("ad"===r||null==p||p.ggPM("end",t),null==p||p.ggPM("stop",t))}}}),[p,f,d,t]);return Object(a.jsx)(c.Provider,{value:g,children:e})},d=()=>{const e=Object(i.useContext)(c);if(void 0===e)throw new Error("useNielsenContext must be used within a NielsenProvider");return e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);function i(){const[e,t]=Object(n.useState)(!1);return Object(n.useEffect)((()=>{var e,r;if(!(null===(e=window)||void 0===e?void 0:e.Osano))return;const n=window.Osano.cm;if(!n)return;const i=()=>{t(n.analytics)};return i(),null===(r=n.addEventListener)||void 0===r||r.call(n,"osano-cm-consent-changed",i),()=>{var e;null===(e=n.removeEventListener)||void 0===e||e.call(n,"osano-cm-consent-changed",i)}}),[]),e}},function(e,t,r){"use strict";e.exports=r(477)},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="user",i=[128100,62144],o="f007",a="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z";t.definition={prefix:"fas",iconName:n,icon:[448,512,i,o,a]},t.faUser=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";var n=r(2),i=r(0);t.a=({label:e,backgroundColor:t})=>Object(i.jsx)(n.e,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:["$4","$6"],px:["$2","$3"],borderRadius:"$sm",backgroundColor:t,whiteSpace:"nowrap",flexShrink:0},children:Object(i.jsx)(n.M,{as:"span",sx:{fontSize:["$-1","$0"],fontWeight:"$bold",letterSpacing:"$wider",textTransform:"uppercase",lineHeight:"$1",color:"$white"},children:e})})},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(1),i=r(26),o=r(5),a=r(14);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=({showClosings:e=!1,showWeatherAlerts:t=!0}={})=>{var r,c;const{arcSite:u}=Object(o.useAppContext)(),d=Object(i.useContent)({source:"0PB_CollectionStoryCard",query:{alias:`${u}-breaking`},filter:"\n{\n  tag\n  section\n  content_elements {\n   [\n      promo_image {[\n        focal_point {\n          x\n          y\n        }\n        caption\n        width\n        height\n        copyright\n        url\n        resizedUrls {[\n          url\n          height\n          width\n        ]}\n      ]}\n      canonical_url\n      website_url\n      display_date\n      publish_date\n      _id\n      type\n      owner {\n        sponsored\n      }\n      description {\n        basic\n      }\n      headlines {\n        basic\n        meta_title\n      }\n      subheadlines {\n        basic\n      }\n      taxonomy {\n        tags {[\n          text\n          slug\n        ]}\n        sections {[\n          _id\n          name\n          path\n        ]}\n        primary_section {\n          _id\n          name\n          path\n        }\n      }\n      promo_items {\n        livestream {\n          embed {\n            config {\n              canonical_website\n              canonical_url\n              hls\n              poster\n              title\n              adTag_preroll\n              adTag_midroll\n              daiAssetKey\n            }\n            id\n            url\n          }\n          subtype\n          _id\n          type\n          referent {\n            type\n            id\n            provider\n          }\n          subtype\n          canonical_url\n          canonical_website\n          short_url\n          created_date\n          display_date\n          status\n          headlines {\n            basic\n          }\n          subheadlines {\n            basic\n          }\n          taxonomy {\n            primary_section {\n              _id\n              name\n              path\n            }\n          }\n          promo_items {\n            basic {\n              type\n              credits {\n                by {[\n                  type\n                  _id\n                  name\n                  description\n                }]\n              }\n              url\n              width\n              height\n            }\n          }\n          streams {[\n            height\n            width\n            url\n          ]}\n        }\n        basic {\n          focal_point {\n            x\n            y\n          }\n          caption\n          width\n          height\n          promo_image {\n            url\n            width\n            height\n          }\n          streams {[\n            url\n          ]}\n          type\n          subtype\n          url\n          _id\n          embed {\n            id\n            url\n            config {\n              resourceType\n              distributionId\n              name\n              poster {\n                file\n                height\n                width\n              }\n            }\n          }\n          content_elements {[\n            focal_point {\n              x\n              y\n            }\n            type\n            url\n            caption\n            additional_properties {\n              resizeUrl\n              thumbnailResizeUrl\n            }\n          ]}\n          promo_items {\n            basic {\n              focal_point {\n                x\n                y\n              }\n              caption\n              width\n              height\n              type\n              url\n              content_elements [{\n                focal_point {\n                  x\n                  y\n                }\n                caption\n                type\n                url\n              }]\n            }\n          }\n          additional_properties {\n            thumbnailResizeUrl\n          }\n        }\n        social_image {\n          focal_point {\n            x\n            y\n          }\n          caption\n          width\n          height\n          promo_image {\n            url\n            width\n            height\n          }\n          streams {[\n            url\n          ]}\n          type\n          url\n          _id\n          content_elements {[\n            focal_point {\n              x\n              y\n            }\n            type\n            url\n            caption\n            additional_properties {\n              resizeUrl\n              thumbnailResizeUrl\n            }\n          ]}\n          promo_items {\n            basic {\n              caption\n              width\n              height\n              type\n              url\n              focal_point {\n                x\n                y\n              }\n              content_elements [{\n                caption\n                type\n                url\n              }]\n            }\n          }\n          additional_properties {\n            thumbnailResizeUrl\n          }\n        }\n      }\n      _id\n      websites {\n        wdiv {\n          website_url\n        }\n        wsls {\n          website_url\n        }\n        wplg {\n          website_url\n        }\n        wkmg {\n          website_url\n        }\n        wjxt {\n          website_url\n        }\n        ksat {\n          website_url\n        }\n        kprc {\n          website_url\n        }\n      }\n   ]\n  }\n}\n"}),f=Object(i.useContent)({source:"weather-alerts"}),h=Object(i.useContent)(e&&["wdiv","wsls"].includes(u)?{source:"school-closings"}:void 0),p=Object(n.useMemo)((()=>{var r,n;const i=[];var o;((null==d?void 0:d.content_elements)&&i.push(...d.content_elements.map((e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{alertClass:"breaking"})))),t&&(null==f?void 0:f.alerts)&&Object.keys(f.alerts).length>0&&i.push({_id:"bn-wx",canonical_url:"/weather/alerts",showImage:!1,description:{basic:"See the complete list"},headlines:{basic:f.text.replace("Weather Alert:","")},alertClass:"weather",alertTag:"WEATHER ALERT"}),e&&(null!==(r=null==h||null===(n=h.schools)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>5)&&i.push({_id:"bn-sc",canonical_url:"/school_closings",showImage:!1,description:{basic:"See the complete closing list"},headlines:{basic:Object(a.f)(null!==(o=null==h?void 0:h.schools)&&void 0!==o?o:[],u)},alertClass:"school",alertTag:"wdiv"===u?"SCHOOL CLOSINGS":"CLOSINGS/DELAYS"});return i}),[u,null==d?void 0:d.content_elements,null==h?void 0:h.schools,e,t,null==f?void 0:f.alerts,null==f?void 0:f.text]),b=Object(n.useMemo)((()=>p.filter((e=>{var t;return"INSIDER"===e.alertTag||(null===(t=e.headlines)||void 0===t?void 0:t.basic.length)>1||e.canonical_url.length>1}))),[p]),m=Object(n.useMemo)((()=>{var e,t,r,n;const i=null!==(e=null==d||null===(t=d.content_elements)||void 0===t?void 0:t.length)&&void 0!==e?e:0,o=(null==f?void 0:f.alerts)&&Object.keys(f.alerts).length>0?1:0,a=(null!==(r=null==h||null===(n=h.schools)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>5?1:0;return{breaking:i,weather:o,school:a,total:i+o+a}}),[null==d||null===(r=d.content_elements)||void 0===r?void 0:r.length,null==f?void 0:f.alerts,null==h||null===(c=h.schools)||void 0===c?void 0:c.length]),g=Object(n.useMemo)((()=>{var e;return(null==h||null===(e=h.schools)||void 0===e?void 0:e.length)?Object(a.f)(h.schools,u):""}),[null==h?void 0:h.schools,u]);return{filteredStories:b,isLoading:!d||t&&!f||e&&!h,breakingNewsContent:d,weatherAlerts:f,schoolClosings:h,alertCounts:m,schoolClosingText:g}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c}));var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const c=(e,t=3)=>{if(!t)return!0;const r=new Date,n=new Date(e),i=Math.floor((r.getTime()-n.getTime())/1e3),o=Math.floor(i/86400);return!(Number(t)>0&&o>Number(t)||i<=0)&&o>=0};t.a=e=>{let{dayLimit:t=3,dateString:r,fromNow:o=!1,sx:s}=e,c=l(e,["dayLimit","dateString","fromNow","sx"]);if(!r)return null;const u=function(e){const r=((new Date).getTime()-e.getTime())/1e3;let n=Math.floor(r/86400);return Number(t)>0&&n>Number(t)||r<=0?null:n>=1?o?`${n}d`:1===n?`${n} day ago`:`${n} days ago`:(n=Math.floor(r/3600),n>=1?null:(n=Math.floor(r/60),n>=1?o?`${n}m`:1===n?`${n} minute ago`:`${n} minutes ago`:o?`${Math.floor(r)} s`:`${Math.floor(r)} seconds ago`))}(new Date(r));return Object(i.jsx)(i.Fragment,{children:null!==u?Object(i.jsx)(n.M,a({as:"span",textColor:"inherit",sx:a({textTransform:o?void 0:"uppercase"},s)},c,{children:u})):null})}},function(e,t,r){"use strict";var n=r(2),i=r(5),o=r(3),a=r(1),s=r.n(a),l=r(101),c=r(71),u=r(151),d=r(33),f=r(215),h=r(217),p=r(218),b=r(54),m=r(320),g=r(0);function v({url:e,content:t,className:r}){return e&&t?Object(g.jsxs)(n.E,{direction:"row",gap:"$2",alignItems:"center",padding:"$3",bg:"$blueGray.100",textColor:"$blueGray.500",border:"1px solid",borderColor:"$blueGray.300",borderRadius:"$md",position:"relative",children:[Object(g.jsx)(n.r,{icon:m.faSquareArrowUpRight,borderRight:"1px solid",borderColor:"$blueGray.300",paddingRight:"$2"}),Object(g.jsx)(n.t,{href:e,className:r,"aria-label":"url",dangerouslySetInnerHTML:{__html:t},sx:{"&:before":{content:"''",position:"absolute",inset:"0"}}})]}):null}v.propTypes={url:o.string.isRequired,content:o.string.isRequired,className:o.string};var y=v;const w=e=>{const{title:t="",items:r=[]}=e,n=r.map((e=>{const t=e.url.match(/^[a-zA-Z]+:\/\//)?e.url:`http://${e.url}`;return Object(g.jsxs)("li",{children:[Object(g.jsx)("a",{href:t,children:e.content}
2),Object(g.jsx)("p",{className:"no-margin",children:e.description.content})]},e._id)}));return Object(g.jsxs)("div",{className:"link-list",children:[Object(g.jsx)(b.a,{level:4,children:t}),Object(g.jsx)("ul",{children:n})]})};w.propTypes={title:o.string,items:o.arrayOf(o.shape({content:o.string.isRequired,description:o.shape({content:o.string}),image:o.shape({resizeUrl:o.string}),type:o.string.isRequired,url:o.string}))};var O=w;const j={unordered:"ul",ordered:"ol",ul:"ul",ol:"ol"},x=e=>{const{type:t}=e;return"list"===t},_=({listType:e="ul",className:t=null,items:r=[{_id:null,content:null,type:null}],isChild:o=!1})=>{const{outputType:a}=Object(i.useAppContext)(),s="default"===a;if(0===r.length)return null;const l=j[e]||e;return Object(g.jsx)(n.e,{as:l,className:t,sx:{listStyle:"ul"===e?"none":null,color:"$blueGray.900",fontSize:["$1",null,"$2"],lineHeight:"$loose",paddingLeft:o?"$4":"$0","& > li:not(:first-child)":{marginTop:"$3"}},children:r.map(((t,i)=>{if("<br/>"===t.content)return null;if(x(t)&&r[i-1]&&!x(r[i-1]))return null;if(x(t))return Object(g.jsx)(_,{listType:j[t.list_type]||"ul",items:t.items},`${i}_${(new Date).getTime()}`);const o=r[i+1];return((e,t,r,i,o={})=>{const{content:a}=e,s=j[o.list_type],l=x(o);return Object(g.jsxs)(n.E,{as:"li",gap:"$3",children:[Object(g.jsxs)(n.E,{direction:"row",gap:"$3",alignItems:"baseline",sx:"ol"===t?{display:"list-item",listStylePosition:"inside"}:null,children:["ol"!==t&&i&&Object(g.jsx)("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:"translateY(-3px)",minHeight:"6px",minWidth:"6px"},"aria-hidden":"true",role:"presentation",children:Object(g.jsx)("circle",{cx:"3",cy:"3",r:"3",fill:"#212121"})}),Object(g.jsx)(n.M,{as:"span",sx:{ml:"ol"===t?"$2":"$0"},innerContent:a})]}),l&&Object(g.jsx)(_,{items:o.items,listType:s,isChild:!0},r)]},r)})(t,e,i,s,o)}))})};
2_.propTypes={listType:o.string,items:o.arrayOf(o.shape({_id:o.string,content:o.string,type:o.string})),isChild:o.boolean,className:o.string};var S=_;const E=({rawOembed:e,className:t="",subtype:r})=>{const i=Object(a.useRef)(null);Object(a.useEffect)((()=>{"twitter"===r&&async function(e){if(window.twttr)window.twttr.widgets.load(e);else{const t=document.createElement("script");t.src="https://platform.twitter.com/widgets.js",t.async=!0,t.onload=()=>{window.twttr&&window.twttr.widgets.load(e)},document.head.appendChild(t)}}(i.current)}),[r]);const o="youtube"===r;let s=e.html;return o&&(s=e.html.replace("iframe w",'iframe class="content" w')),Object(g.jsx)(n.e,{"data-oembed-type":r,ref:"twitter"===r?i:null,className:`${t} mb-med ${o?"yt":""}`,dangerouslySetInnerHTML:{__html:s},backgroundColor:[null,"$blueGray.100","initial","$blueGray.100"],borderRadius:[null,"$md","$none","$md"],padding:[null,"$3","0","$3"],sx:{"& > *":{margin:"auto !important"}}})};E.propTypes={rawOembed:o.shape({html:o.string,className:o.string}).isRequired,className:o.string,subtype:o.string.isRequired};var k=E,C=r(150),P=r.n(C);const M=({ansData:{_id:e,citation:t={content:""},content_elements:r=[]}={}})=>Object(g.jsxs)(n.E,{as:"blockquote",className:"block-quote",gap:"$3",bg:"$white",textColor:"$blueGray.800",lineHeight:"$loose",p:"$3",mx:"$0",borderTopRightRadius:"$lg",borderBottomRightRadius:"$lg",sx:{fontFamily:"$gibson",fontSize:["$1",null,"$2"],width:"$full",borderColor:"$blueGray.50",borderStyle:"solid",borderWidth:"2px",boxShadow:"-4px 0 0 #ef4444"},children:[r.length&&r.map((e=>"<br/>"===e.content?null:Object(g.jsx)(n.M,{innerContent:e.content},P()("blockquote")))),t.content&&Object(g.jsx)(n.M,{as:"cite",innerContent:t.content,sx:{fontSize:"$0",color:"$blueGray.700","&::before":{content:"'— '"}}})]},e),$=({ansData:e})=>Object(g.jsx)("aside",{children:Object(g.jsx)(M,{ansData:e})}),T={ansData:o.shape({_id:o.string.isRequired,citation:o.shape({content:o.string}),content_elements:o.arrayOf(o.shape({content:o.string.isRequired}))})};M.propTypes=T,$.propTypes=T;var I=r(122),A=r(46);var R=({content:e,className:t,shouldBeStatic:r=!1})=>{Object(a.useEffect)((()=>{r||Object(A.d)(e)}),[r,e]);const[,n,i]=e.match(/<script.+gmg\.static\/elections\/race.js.+data-election=["']([0-9]+)["'].+data-race=["']r?([0-9]+)["']/)||[];return n&&i?Object(g.jsx)(I.default,{customFields:{electionId:Number(n),raceId:Number(i)}}):Object(g.jsx)("div",{className:t||"",children:Object(g.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})};const D=({header:e=[],rows:t,className:r})=>{const i=null==e?void 0:e.map((e=>Object(g.jsx)(n.e,{as:"th","aria-label":"table header",dangerouslySetInnerHTML:{__html:e.content},sx:{fontFamily:"$gibson",fontSize:["$0","$2"],fontWeight:"$semibold",color:"$blueGray.900",paddingX:"$2",paddingBottom:["$2",null,"$3"],textAlign:"left",lineHeight:"$none",display:"table-cell","&:first-child":{paddingLeft:"$0"},"&:last-child":{paddingRight:"$0"}}},e._id))),o=null==t?void 0:t.map((t=>{const r=t.map(((t,r)=>{var i;return Object(g.jsx)(n.e,{as:"td","data-label":e?null===(i=e[r])||void 0===i?void 0:i.content.replace(/(<[^>]+>)/g,""):null,dangerouslySetInnerHTML:{__html:t.content},sx:{verticalAlign:"top",justifyContent:"space-between",color:"$blueGray.900",fontSize:["$0","$1"],textAlign:"left",paddingX:"$2",paddingY:["$2",null,"$3"],"&:first-child":{pl:"$0"},"&:last-child":{pr:"$0",pb:"$0"}}},t._id)}));return Object(g.jsx)(n.e,{as:"tr",sx:{borderBottom:"1px dashed",borderColor:"$blueGray.200","&:last-child":{border:"none"}},children:r},t[0]._id)}));return Object(g.jsx)(n.e,{className:"tableWrapper",sx:{bg:"$white",paddingX:"$3",paddingBottom:"$3",paddingTop:"$4",border:"1px solid",borderColor:"$blueGray.200",borderRadius:"$lg"},children:Object(g.jsxs)(n.e,{as:"table",className:r,sx:{borderCollapse:"collapse",width:"$full"},children:[e.length>0?Object(g.jsx)(n.e,{as:"thead",children:Object(g.jsx)(n.e,{as:"tr",sx:{borderBottom:"1px dashed",borderColor:"$blueGray.200"},children:i})}):null,o?Object(g.jsx)("tbody",{className:"font_openSans",children:o}):null]})})};D.propTypes={header:o.arrayOf(o.shape({_id:o.string.isRequired,content:o.oneOfType([o.string,o.number]),type:o.str
2ing})),rows:o.arrayOf(o.arrayOf(o.shape({_id:o.string.isRequired,content:o.oneOfType([o.string,o.number]),type:o.string}))).isRequired,className:o.string};var L=D;function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F({data:e=[],isAdmin:t=!1,isSponsored:r=!1,hideSharebar:o=!1,shouldBeStatic:m=!1,isVideoArticle:v=!1,recommendedVideos:w=!0,omne:j=!1,location:x,storyAdFrequency:_=0}){let E=0;const{requestUri:C,outputType:P}=Object(i.useAppContext)();const T=[...e];T&&T.length>0&&("image"===T[0].type?T.splice(1,0,{type:"sharebar"}):T.splice(0,0,{type:"sharebar"}));let I=function(e,i){const{_id:s,content:l,type:j,list_type:_,raw_oembed:T,subtype:I,items:A=[],text:D,level:N,element:z,embed:F}=e;let U="";const H=l&&r?l.replace(/<a /g,"<a rel='sponsored' "):l,V=a=>{switch(a){case"gallery":return Object(g.jsx)(u.a,{data:e.content_elements,className:"galleryWrapper full-width"},e._id);case"sharebar":return o?null:Object(g.jsx)("div",{className:"mobileOnly",children:Object(g.jsx)(f.a,{})},"shareBar");case"link_list":return Object(g.jsx)(O,B({},e),s);case"text":{var v;U=H,0===E&&x?U=`<strong>${x}</strong> – ${H}`:"<br/>"===H&&(U=null);const t=U.replace(/<[^>]*>/g,"").length;return E+=t,Object(g.jsx)(n.M,{className:"article-text",innerContent:U,variant:"$base",textColor:"$blueGray.900",lineHeight:"$loose",sx:{textAlign:null!==(v=e.alignment)&&void 0!==v?v:void 0}},`${s}-${i}`)}case"image":var w;return Object(g.jsx)(d.a,{id:s,caption:e.caption,copyright:e.copyright,credits:e.credits,height:e.height,width:e.width,url:e.url,link:null===(w=e.additional_properties)||void 0===w?void 0:w.link,imgClassName:"full-width",lazy:!m,shouldBeStatic:m,sx:{"& img":{borderRadius:["$none","$rg"],overflow:"hidden"}}},s);case"oembed_response":return Object(g.jsx)(k,{rawOembed:T,subtype:I},s);case"header":return U=H,"<br/>"===e.content&&(U=null),Object(g.jsx)(n.q,{className:"article-header",level:N,innerContent:U,textColor:"$blueGray.900",lineHeight:"$normal",sx:{fontSize:["$3",null,"$4"]}},s);case"list":return"<br/>"===A[0].content?null:Object(g.jsx)(S,{className:"font_openSans articleList",listType:"unordered"===_?"ul":"ol",items:A},s);case"correction":return Object(g.jsx)(h.a,{children:D},s);case"quote":return"pullquote"===e.subtype?Object(g.jsx)($,{ansData:e},s):Object(g.jsx)(M,{ansData:e},s);case"interstitial_link":return Object(g.jsx)(y,{url:e.url,content:l},s);case"inline_element":return z;case"raw_html":return Object(g.jsx)(R,{id:s,content:H,shouldBeStatic:m},s);case"video":return Object(g.jsx)("div",{children:Object(g.jsx)(c.default,{className:"full-width",customFields:{type:r?"sponsored":j,videoId:s,autoPlay:!1,muted:!1,isFeaturedSpot:!1,recommendedPlayer:!1,shouldBeStatic:m}})},s);case"divider":return Object(g.jsx)(n.l,{variant:"$blueGray.100"},s);case"custom_embed":return Object(g.jsx)(p.a,{subtype:I,embed:F,shouldBeStatic:m,isSponsored:r},s);case"table":return Object(g.jsx)(L,B({},e),s);default:return t?Object(g.jsx)(b.a,{level:3,children:`No element of type ${j} found`}):null}};if("default"===P&&3===i&&!r&&!v&&w){return["/station/","/sponsored/","/careers/","/contests/","/deals/","/solutionaries/"].some((e=>C.includes(e)))?V(j):Object(g.jsxs)(a.Fragment,{children:[Object(g.jsx)("div",{children:Object(g.jsx)(c.default,{className:"full-width",customFields:{type:"recommended",isFeaturedSpot:!1,videoId:"anyclip-autoplayer-script"}})}),V(j)]},s)}return V(j)};var A;return _&&_>0&&(A=I,I=(e,t)=>{const{_id:r,type:n}=e,i=T[t-1];if("text"!==n||"text"!==(null==i?void 0:i.type))return A(e,t);if(E>_){E=1;
2const n={pos:"AUTO_INCREASE",extraClasses:"autoad"};return Object(g.jsxs)(s.a.Fragment,{children:[Object(g.jsx)(l.default,{id:`adbefore-${r}`,customFields:n},`adbefore-${r}`),A(e,t)]},`adbefore-${r}`)}return A(e,t)}),Object(a.useEffect)((()=>{if(j){const e=document.createElement("script");return e.type="text/javascript",e.async=!0,e.innerHTML="!function(p,r,e,s,b,d){p.pbq||(s=p.pbq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);},s.version='1.0',s.queue=[],b=r.createElement(e),b.async=!0,b.src='https://sr.studiostack.com/v3/services',d=r.getElementsByTagName(e)[0],d.parentNode.insertBefore(b,d))}(window,document,'script');pbq('init','250872');pbq('set','story');",document.head.appendChild(e),()=>{document.head.removeChild(e)}}}),[j]),Object(g.jsx)(n.E,{as:"section",gap:"$3",className:"articleBody",sx:{"&.articleBody > h1, &.articleBody > h2, &.articleBody > h3, &.articleBody > h4, &.articleBody > h5, &.articleBody > h6":{marginTop:"$5"},"& > hr:not(:first-child)":{marginY:"$5"},"& > .tableWrapper":{marginY:"$5"},"& > blockquote:not(:first-child), & > aside > blockquote":{marginY:"$5"},"&.articleBody > .adWrapper":{marginY:"$5"},"& > figure.full-width":{marginY:"$5",marginX:["-50vw",null,"0"]},"& > .videoWrapper.full-width":{marginY:"$5",marginX:["-50vw",null,"0"]},"& > .galleryWrapper.full-width":{marginY:"$5",marginX:["-50vw",null,"0"]},"&.articleBody > .customEmbed":{marginY:"$5"}},itemProp:"articleBody",marginCollapse:!0,children:T&&T.map(I)})}F.propTypes={data:o.arrayOf(o.shape()),location:o.string,isAdmin:o.bool,hideSharebar:o.bool,isSponsored:o.bool,shouldBeStatic:o.bool,storyAdFrequency:o.number,isVideoArticle:o.bool,recommendedVideos:o.bool,omne:o.bool};t.a=Object(a.memo)(F)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return b}));var n=r(43),i=r.n(n),o=r(38),a=r(64),s=r(26),l=r(5),c=r(1),u=r(50),d=r(0);const f=Object(c.createContext)(null),h=({children:e})=>{const{arcSite:t}=Object(l.useAppContext)(),r=Object(u.a)(t),n=Object(s.useContent)({source:"identity-config",query:{"arc-site":t}}),[h,p]=Object(c.useState)({status:"loading",apiOrigin:r,config:null!=n?n:{}});return Object(c.useEffect)((()=>{(async()=>{if(i.a.options({apiOrigin:r}),r&&(i.a.apiOrigin=r),a.a.options({Identity:i(),apiOrigin:r}),Object(o.isAPIErrorResponse)(n))throw new Error(n.message);return{status:"ready",apiOrigin:r,config:n}})().then((e=>{p(e)})).catch((e=>{p({status:"error",error:e,apiOrigin:r,config:{}})}))}),[r,n]),Object(d.jsx)(f.Provider,{value:h,children:e})},p=Object(c.memo)(h);function b(){const e=Object(c.useContext)(f);if(!e)throw new Error("useIdentitySdks must be used within <SDKProvider>");return e}},function(e,t,r){"use strict";r(1);var n=r(3),i=r(16),o=r.n(i),a=r(0);const s=({className:e,underlineType:t="regular",marginBottom:r,showDivider:n=!0,style:i})=>{const s=null!==r&&{marginBottom:`${r}rem`};return Object(a.jsx)("hr",{className:o()(e,t,{display_none:!n}),style:Object.assign(s,i)})};s.propTypes={marginBottom:n.number,className:n.string,showDivider:n.bool,underlineType:n.string,style:n.shape({})},t.a=s},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(1),i=r(0);const o=Object(n.createContext)(void 0),a=({children:e,initialFeatures:t})=>{const[r,a]=Object(n.useState)(t||{}),s=Object(n.useMemo)((()=>({features:r,setFeatures:a})),[r,a]);return Object(i.jsx)(o.Provider,{value:s,children:e})},s=()=>{const e=Object(n.useContext)(o);if(void 0===e)throw new Error("useStoryListContext must be used within a StoryListContextProvider");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="messages",i=["comments-alt"],o="f4b6",a="M48 72c0-13.3 10.7-24 24-24H344c13.3 0 24 10.7 24 24V248c0 13.3-10.7 24-24 24H216c-4.7 0-9.4 1.4-13.3 4L144 315.2V296c0-13.3-10.7-24-24-24H72c-13.3 0-24-10.7-24-24V72zM72 0C32.2 0 0 32.2 0 72V248c0 39.8 32.2 72 72 72H96v40c0 8.9 4.9 17 12.7 21.2s17.3 3.7 24.6-1.2l90-60H344c39.8 0 72-32.2 72-72V72c0-39.8-32.2-72-72-72H72zM256 376c0 39.8 32.2 72 72 72h88.7l90 60c7.4 4.9 16.8 5.4 24.6 1.2S544 496.9 544 488V448h24c39.8 0 72-32.2 72-72V200c0-39.8-32.2-72-72-72H448v48H568c13.3 0 24 10.7 24 24V376c0 13.3-10.7 24-24 24H52
20c-13.3 0-24 10.7-24 24v19.2L437.3 404c-3.9-2.6-8.6-4-13.3-4H328c-13.3 0-24-10.7-24-24V352H256v24z";t.definition={prefix:"far",iconName:n,icon:[640,512,i,o,a]},t.faMessages=t.definition,t.prefix="far",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(524);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faCommentsAlt=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="clock",i=[128339,"clock-four"],o="f017",a="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faClock=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="heart",i=[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],o="f004",a="M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z";t.definition={prefix:"far",iconName:n,icon:[512,512,i,o,a]},t.faHeart=t.definition,t.prefix="far",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(5),i=r(20),o=r(1);function a(){const{siteProperties:{hostname:e}}=Object(n.useAppContext)();Object(o.useEffect)((()=>{const t=()=>{const t=document.documentElement.scrollHeight;window.parent.postMessage({type:"iframe-height",height:t},e[i.ENVIRONMENT])};t();const r=new ResizeObserver(t);return r.observe(document.body),()=>{r.disconnect()}}),[e])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="share",i=["mail-forward"],o="f064",a="M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faShare=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r(137);class i extends n.a{}var o=class{filterOutNonSupportedKeys(e,t){const r=Object.create({});return"object"!=typeof(n=e)||n instanceof Array?Object.create({}):(Object.keys(e).forEach((n=>{t.indexOf(n)>=0?r[n]=e[n]:console.warn("Warning - unsupported key provided to configuration: ",n)})),r);var n}};const a=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class s extends o{constructor(e){super();const t=this.filterOutNonSupportedKeys(e,a);Object.assign(this,{secure:!0},t)}extend(e){const t=this.filterOutNonSupportedKeys(e,a);return new s(Object.assign({},this,t))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}var l=s,c=r(235);const u={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class d{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new l(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}
2setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){const e=function(e){return e||"image"}(this.assetType),t=function(e){return e||"upload"}(this.deliveryType),r=!!this.suffix,n=`${e}/${t}`,i=u[`${e}/${t}`],o=this.urlConfig.useRootPath,a=this.urlConfig.shorten;if(o){if("image/upload"===n)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${n} instead`)}if(a&&"image/upload"===n)return"iu";if(r){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(u).join(", ")}, Provided: ${n} instead`)}return n}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=function(e,t){const r=t.secure,n=t.privateCdn,i=t.cname,o=t.secureDistribution;return r||i?r&&!o&&n?`https://${e}-res.cloudinary.com`:r&&!o?`https://res.cloudinary.com/${e}`:r&&o&&n?`https://${o}`:r&&o?`https://${o}/${e}`:!r&&i?`http://${i}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),n=e?e.toString():"",i=function(e,t,r){const n=!1!==r;return t?`v${t}`:function(e){return e.match(/^v[0-9]+/)}(e)||function(e){return e.match(/^https?:\//)}(e)||function(e){return e.indexOf("/")<0}(e)?"":n?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if("string"==typeof e){return[r,this.getResourceType(),this.getSignature(),n,i,o.replace(/,/g,"%2C"),this.suffix].filter((e=>e)).join("/")}{const e=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(n),i,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((e=>e)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),a=!1!==this.urlConfig.analytics&&!o.includes("?");let s="";if("object"==typeof this.urlConfig.queryParams)try{const e=new URLSearchParams(this.urlConfig.queryParams);a&&e.set("_a",Object(c.a)(t)),s=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else s=this.urlConfig.queryParams||"",a&&(s+=`${s.length>0?"&":""}_a=${Object(c.a)(t)}`);return s?`${e}?${s}`:e}}}var f=r(103);class h extends d{constructor(e,t,r,n){super(e,t,r),this.transformation=n}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new f.a("q",e)),this}format(e){return this.addAction(new f.a("f",e)),this}
2roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class p extends h{constructor(e,t,r){super(e,t,r,new i)}}class b extends n.a{}class m extends h{constructor(e,t,r){super(e,t,r,new b),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class g{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new p(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new m(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return d})),r.d(t,"a",(function(){return f}));var n=r(103),i=r(48),o=r(25),a=r(117),s=r(78);class l extends a.a{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=s.d[e];const t=new i.a([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new o.a("q",t))}quantization(e){this._actionModel.quantization=e;const t=new i.a([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new o.a("q",t))}static fromJson(e){const{level:t,chromaSubSampling:r,quantization:n}=e,i=new this(s.b[t]||t);if(r){const e=s.c[r.toUpperCase()];e&&i.chromaSubSampling(+e)}return n&&i.quantization(n),i}}var c=r(49);c.a;c.a;r(102);c.a;function u(e){return new n.a("f",e)}function d(e){return new l(e)}function f(e){return new a.a("d",e,"defaultImage")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSignUpResponse=t.isUserProfile=void 0,t.isUserProfile=function(e){return void 0!==e.uuid},t.isSignUpResponse=function(e){return void 0!==e.uuid}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initGoogleLogin=t.initGoogleAuthSDK=t.initGoogleAuth=t.getGoogleAuthInstance=t.loadGoogleAuthSDK=t.GOOGLE_SDK_URL=void 0;var n=r(4),i=r(154),o=r(91),a=n.__importDefault(r(30)),s=r(154);t.GOOGLE_SDK_URL="https://apis.google.com/js/platform.js";t.loadGoogleAuthSDK=function(e){return console.error(s.deprecationMessage),new Promise((function(r,i){return n.__awaiter(void 0,void 0,void 0,(function(){var s,l;return n.__generator(this,(function(c){switch(c.label){case 0:return document.querySelector('[src="'.concat(t.GOOGLE_SDK_URL,'"]'))?[3,1]:((s=document.createElement("script")).onload=function(){var t=this;window.gapi.load("auth2",(function(){return n.__awaiter(t,void 0,void 0,(function(){var t,s,l,c;return n.__generator(this,(function(u){switch(u.label){case 0:if(a.default._google=n.__assign(n.__assign({},a.default._google),{auth2:null!==(l=null===(s=window.gapi)||void 0===s?void 0:s.auth2)&&void 0!==l?l:(0,o.isLegacyGoogleSetting)(a.default._google)&&(null===(c=a.default._google)||void 0===c?void 0:c.auth2)}),!e)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e()];case 2:return u.sent(),[3,4];case 3:return t=u.sent(),[2,i(t)];case 4:return[2,r()]}}))}))}))},s.onerror=function(){i("[Arc Identity SDK] - Error loading Google SDK")},s.async=!0,s.src=t.GOOGLE_SDK_URL,document.head.appendChild(s),[3,7]);case 1:return window.gapi?window.gapi.auth2?[3,2]:(window.gapi.load("auth2",(function(){return n.__awaiter(void 0,void 0,void 0,(function(){var t;return n.__generator(this,(function(n){switch(n.label){case 0:if(!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e()];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),[2,i(t)];case 4:return[2,r()]}}))}))})),[3,7]):[2,i("[Arc Identity SDK] - Error loading Google SDK")];case 2:if(!e)return[3,6];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,e()];case 4:return c.sent(),[3,6];case 5:return l=c.sent(),[2,i(l)];case 6:return[2,r()];case 7:return[2]}}
2))}))}))};t.getGoogleAuthInstance=function(){return console.error(s.deprecationMessage),new Promise((function(e,r){return n.__awaiter(void 0,void 0,void 0,(function(){var i;return n.__generator(this,(function(n){switch(n.label){case 0:return(0,o.isLegacyGoogleSetting)(a.default._google)?a.default._google.authInstance?(e(),[3,5]):[3,1]:[3,6];case 1:return a.default._google.auth2?(a.default._google.authInstance=a.default._google.auth2.getAuthInstance(),e(),[3,5]):[3,2];case 2:return n.trys.push([2,4,,5]),[4,(0,t.initGoogleAuthSDK)(a.default._google.clientId)];case 3:return n.sent(),e(),[3,5];case 4:return i=n.sent(),console.error("Error getting Google Auth instance."),r(i),[3,5];case 5:return[3,7];case 6:r("This method should only be used with the legacy Google Sign In. Migrate to the new Sign In With Google"),n.label=7;case 7:return[2]}}))}))}))};t.initGoogleAuth=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var t,r,i,l,c,u,d,f,h,p,b,m,g,v;return n.__generator(this,(function(y){switch(y.label){case 0:if(console.error(s.deprecationMessage),a.default._google=n.__assign(n.__assign({},a.default._google),{auth2:null!==(l=null===(i=window.gapi)||void 0===i?void 0:i.auth2)&&void 0!==l?l:(0,o.isLegacyGoogleSetting)(a.default._google)&&(null===(c=a.default._google)||void 0===c?void 0:c.auth2),clientId:null!=e?e:(0,o.isLegacyGoogleSetting)(a.default._google)?null===(u=a.default._google)||void 0===u?void 0:u.clientId:void 0}),!(null===(d=a.default._google)||void 0===d?void 0:d.auth2))throw new Error("[Arc Identity SDK] - Error loading Google SDK");return(null===(f=a.default._google)||void 0===f?void 0:f.clientId)||a.default.configOptions&&(!a.default.configOptions||a.default.configOptions.googleClientId)?[3,2]:[4,a.default.getConfig()];case 1:y.sent(),y.label=2;case 2:if(a.default._google.clientId=null!==(p=null===(h=a.default._google)||void 0===h?void 0:h.clientId)&&void 0!==p?p:null===(g=null===(m=null===(b=a.default.configOptions)||void 0===b?void 0:b.googleClientId)||void 0===m?void 0:m.split(","))||void 0===g?void 0:g[0],!a.default._google.clientId)throw new Error("[Arc Identity SDK] - Google Client ID not found, please add one in settings or explicitly pass one to the initGoogleLogin method.");try{(t=null!==(v=a.default._google.authInstance)&&void 0!==v?v:a.default._google.auth2.getAuthInstance())?a.default._google.authInstance=t:(r=a.default._google.auth2.init({client_id:"".concat(a.default._google.clientId.replace(".apps.googleusercontent.com",""),".apps.googleusercontent.com")}),a.default._google.authInstance=r)}catch(e){throw console.error("Error while initializing Google sdk:"),e}return[2]}}
2))}))};function l(e,r,l,c){var u,d;return void 0===e&&(e=""),void 0===r&&(r={width:240,height:50,longtitle:!0,theme:"dark",scope:["profile","email"]}),void 0===l&&(l="google-sign-in-button"),n.__awaiter(this,void 0,void 0,(function(){var f,h,p,b;return n.__generator(this,(function(m){switch(m.label){case 0:console.error(s.deprecationMessage),m.label=1;case 1:return m.trys.push([1,6,,7]),(0,o.isLegacyGoogleSetting)(a.default._google)?(e&&e!==a.default._google.clientId&&(a.default._google.clientId=e),a.default._google.auth2&&a.default._google.authInstance?[3,3]:[4,(0,t.initGoogleAuthSDK)(a.default._google.clientId)]):[3,4];case 2:m.sent(),m.label=3;case 3:if(!a.default._google.authInstance)throw new Error("[Arc Identity SDK] - Error initializing Google Auth2 SDK");return f=function(e){(0,i.googleSignOn)(e).then((function(){r&&"function"==typeof r.onSuccess&&r.onSuccess(e)}))},r&&"function"==typeof r.onSuccess&&(a.default._google.onSuccess=r.onSuccess,"function"==typeof r.onFailure&&(a.default._google.onFailure=r.onFailure)),c&&(a.default._google.useCustomButton=!0),!c&&r?(a.default._google.authInstance.attachClickHandler(l,{scope:(null!==(u=null==r?void 0:r.scope)&&void 0!==u?u:["profile","email"]).join(" "),prompt:"select_account"},f,r&&r.onFailure||console.error),h={width:240,height:50,longtitle:!0,theme:"dark"},p=n.__assign(n.__assign(n.__assign({},h),r),{scope:(null!==(d=null==r?void 0:r.scope)&&void 0!==d?d:["profile","email"]).join(" ")}),[2,window.gapi.signin2.render(l,p)]):[3,5];case 4:throw new Error("[Arc Identity SDK] - This method will only work with the legacy Google Sign In. Discontinue use of this method.");case 5:return[3,7];case 6:throw b=m.sent(),console.error("Error while initializing Google login:"),b;case 7:return[2]}}
2))}))}t.initGoogleAuthSDK=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var r,i;return n.__generator(this,(function(n){switch(n.label){case 0:if(console.error(s.deprecationMessage),!(0,o.isLegacyGoogleSetting)(a.default._google))return[3,5];e&&e!==(null===(i=a.default._google)||void 0===i?void 0:i.clientId)&&(a.default._google.clientId=e),r=a.default._google.clientId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,t.loadGoogleAuthSDK)((function(){return(0,t.initGoogleAuth)(r)}))];case 2:return n.sent(),[3,4];case 3:throw n.sent();case 4:return[3,6];case 5:throw new Error("This method should only be used with legacy Google Sign In. Discontinue use & migrate to new Sign In With Google");case 6:return[2]}}))}))},t.initGoogleLogin=l,t.default=l},function(e,t,r){"use strict";var n=r(36),i=r(251),o=r(32).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return l(e+(t&r|~t&n)+i+o|0,a)+t|0}function u(e,t,r,n,i,o,a){return l(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return l(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return l(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=u(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,r,n,i,e[6],3225465664,9),i=u(i,o,r,n,e[11],643717713,14),n=u(n,i,o,r,e[0],3921069994,20),r=u(r,n,i,o,e[5],3593408605,5),o=u(o,r,n,i,e[10],38016083,9),i=u(i,o,r,n,e[15],3634488961,14),n=u(n,i,o,r,e[4],3889429448,20),r=u(r,n,i,o,e[9],568446438,5),o=u(o,r,n,i,e[14],3275163606,9),i=u(i,o,r,n,e[3],4107603335,14),n=u(n,i,o,r,e[8],1163531501,20),r=u(r,n,i,o,e[13],2850285829,5),o=u(o,r,n,i,e[2],4243563512,9),i=u(i,o,r,n,e[7],1735328473,14),r=d(r,n=u(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=f(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=f(o,r,n,i,e[7],1126891415,10),i=f(i,o,r,n,e[14],2878612391,15),n=f(n,i,o,r,e[5],4237533241,21),r=f(r,n,i,o,e[12],1700485571,6),o=f(o,r,n,i,e[3],2399980690,10),i=f(i,o,r,n,e[10],4293915773,15),n=f(n,i,o,r,e[1],2240044497,21),r=f(r,n,i,o,e[8],1873313359,6),o=f(o,r,n,i,e[15],4264355552,10),i=f(i,o,r,n,e[6],2734768916,15),n=f(n,i,o,r,e[13],1309151649,21),r=f(r,n,i,o,e[4],4149444226,6),o=f(o,r,n,i,e[11],3174756917,10),i=f(i,o,r,n,e[2],718787259,15),n=f(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){(t=e.exports=r(253)).Stream=t,t.Readable=t,t.Writable=r(192),t.Duplex=r(92),t.Transform=r(258),t.PassThrough=r(390)},function(e,t,r){"use strict";(function(t,n,i){var o=r(156);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}
vendor: 8,101 bytes, line 2
2e.exports=v;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=g;var c=Object.create(r(125));c.inherits=r(36);var u={deprecate:r(257)},d=r(254),f=r(32).Buffer,h=i.Uint8Array||function(){};var p,b=r(255);function m(){}function g(e,t){s=s||r(92),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),_(e,t))}(e,r,n,t,i);else{var a=j(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?l(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(92),!(p.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),_(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),_(e,t)}))}function _(e,t){var r=j(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(v,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,f.isBuffer(n)||n instanceof h);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=m),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,i,o);return l}(this,i,s,e,t,r)),a},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||O(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,_(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(53),r(256).setImmediate,r(60))},function(e,t,r){"use strict";var n=r(51).Buffer,i=r(36),o=r(251),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function b(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}
vendor: 17,200 bytes, line 2
2function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,O=0|this._b,j=0|this._c,x=0|this._d,_=0|this._e,S=0;S<80;S+=1){var E,k;S<16?(E=b(r,n,i,o,h,e[s[S]],d[0],c[S]),k=y(w,O,j,x,_,e[l[S]],f[0],u[S])):S<32?(E=m(r,n,i,o,h,e[s[S]],d[1],c[S]),k=v(w,O,j,x,_,e[l[S]],f[1],u[S])):S<48?(E=g(r,n,i,o,h,e[s[S]],d[2],c[S]),k=g(w,O,j,x,_,e[l[S]],f[2],u[S])):S<64?(E=v(r,n,i,o,h,e[s[S]],d[3],c[S]),k=m(w,O,j,x,_,e[l[S]],f[3],u[S])):(E=y(r,n,i,o,h,e[s[S]],d[4],c[S]),k=b(w,O,j,x,_,e[l[S]],f[4],u[S])),r=h,h=o,o=p(i,10),i=n,n=E,w=_,_=x,x=p(j,10),j=O,O=k}var C=this._b+i+x|0;this._b=this._c+o+_|0,this._c=this._d+h+w|0,this._d=this._e+r+O|0,this._e=this._a+n+j|0,this._a=C},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(395),t.sha1=r(396),t.sha224=r(397),t.sha256=r(259),t.sha384=r(398),t.sha512=r(260)},function(e,t,r){"use strict";var n=r(66);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){var n=r(407),i=r(415),o=r(272);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(408),CBC:r(409),CFB:r(410),CFB8:r(411),CFB1:r(412),OFB:r(413),CTR:r(270),GCM:r(270)},i=r(272);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(419);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,r){var n=r(51),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";var n=r(108).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){s=!1,c=!0,a||o.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",u),t.on("abort",p),t.req?b():t.on("request",b)),t.on("end",f),t.on("finish",u),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){(function(t){var n=r(432),i=r(106);function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,r){var i=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),a=r.modulus.byteLength(),s=new n(e).mul(i.blinder).umod(r.modulus),l=s.toRed(n.mont(r.prime1)),c=s.toRed(n.mont(r.prime2)),u=r.coefficient,d=r.prime1,f=r.prime2,h=l.redPow(r.exponent1).fromRed(),p=c.redPow(r.exponent2).fromRed(),b=h.isub(p).imul(u).umod(d).imul(f);return p.iadd(b).imul(i.unblinder).umod(r.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,r(51).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(434).version,n.utils=r(67),n.rand=r(198),n.curve=r(284),n.curves=r(204),n.ec=r(446),n.eddsa=r(450)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";var n,i=t,o=r(205),a=r(284),s=r(67).assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(445)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t;n.utils=r(74),n.common=r(128),n.sha=r(439),n.ripemd=r(443),n.hmac=r(444),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var n,i=r(51),o=i.Buffer,a={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=i[n]);var s=a.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=o[n]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,r)}),s.alloc||(s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=o(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a}).call(this,r(53))},function(e,t,r){"use strict";const n=r(208).Reporter,i=r(129).EncoderBuffer,o=r(129).DecoderBuffer,a=r(66),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;l.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}
vendor: 5,111 bytes, line 2
2)),s.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some((function(o){const a=e.save(),s=r.choice[o];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);
2if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";const n=r(36);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(494);const o={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function a(e={}){let t,r,n,i,s,l=0,c=!1,u=!1;function d(){if(n)return;if(c)return;r.emit("autoScroll:play");const e=r.internalEngine(),{ownerWindow:o}=e;l=o.setTimeout((()=>{e.scrollBody=function(e){const{location:n,previousLocation:i,offsetLocation:o,target:a,scrollTarget:s,index:l,indexPrevious:c,limit:{reachedMin:u,reachedMax:d,constrain:h},options:{loop:p}}=e,b="forward"===t.direction?-1:1,m=()=>x;let g=0,v=0,y=n.get(),w=0,O=!1;function j(){let e=0;i.set(n),g=b*t.speed,y+=g,n.add(g),a.set(n),e=y-w,v=Math.sign(e),w=y;const m=s.byDistance(0,!1).index;l.get()!==m&&(c.set(l.get()),l.set(m),r.emit("select"));const j="forward"===t.direction?u(o.get()):d(o.get());if(!p&&j){O=!0;const e=h(n.get());n.set(e),a.set(n),f()}return x}const x={direction:()=>v,duration:()=>-1,velocity:()=>g,settled:()=>O,seek:j,useBaseFriction:m,useBaseDuration:m,useFriction:m,useDuration:m};return x}(e),e.animation.start()}),i),c=!0}function f(){if(n)return;if(!c)return;r.emit("autoScroll:stop");const e=r.internalEngine(),{ownerWindow:t}=e;e.scrollBody=s,t.clearTimeout(l),l=0,c=!1}function h(){u||f()}function p(){u||v()}function b(){u=!0,f()}function m(){u=!1,d()}function g(){r.off("settle",g),d()}function v(){r.on("settle",g)}return{name:"autoScroll",options:e,init:function(l,c){r=l;const{mergeOptions:u,optionsAtMedia:g}=c,v=u(o,a.globalOptions),y=u(v,e);if(t=g(y),r.scrollSnapList().length<=1)return;i=t.startDelay,n=!1,s=r.internalEngine().scrollBody;const{eventStore:w}=r.internalEngine(),O=!!r.internalEngine().options.watchDrag,j=function(e,t){const r=e.rootNode();return t&&t(r)||r}(r,t.rootNode);
2O&&r.on("pointerDown",h),O&&!t.stopOnInteraction&&r.on("pointerUp",p),t.stopOnMouseEnter&&w.add(j,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&w.add(j,"mouseleave",m),t.stopOnFocusIn&&r.on("slideFocusStart",f),t.stopOnFocusIn&&!t.stopOnInteraction&&w.add(r.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){r.off("pointerDown",h).off("pointerUp",p).off("slideFocusStart",f).off("settle",g),f(),n=!0,c=!1},play:function(e){void 0!==e&&(i=e),d()},stop:function(){c&&f()},reset:function(){c&&(f(),v())},isPlaying:function(){return c}}}a.globalOptions=void 0;var s=r(5),l=r(2),c=r(212),u=r(213),d=r(26),f=r(173);const h="$violet.600";var p=r(500),b=r(14),m=r(148),g=r(0);var v=({story:e,index:t,arcSite:r,gmg:n})=>{const i=Object(m.a)(e.path,n),o=Object(b.g)({link:i.href,arcSite:r});return Object(g.jsxs)(l.n,{className:"embla__slide",alignItems:"center",sx:{flex:"0 0 auto",whiteSpace:"nowrap",height:"$full"},children:[Object(g.jsx)(l.t,{className:"gaevent",href:o,rel:i.rel,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"TrendingBarClickEvent",element:"TrendingStoriesBar",clickTarget:o,position:t+1,label:e.title,category:"trending_stories_bar",itemType:"story",itemPath:e.path,itemSource:e.source}))},sx:{color:"$white",fontSize:["$-1",null,"$0"],fontWeight:"$semibold",textDecoration:"none",whiteSpace:"nowrap",px:"$1",py:"$1",display:"inline-block","&:hover":{opacity:.85,textDecoration:"none"},"&:focus":{outline:"2px solid $white",outlineOffset:"2px"}},innerContent:e.title}),Object(g.jsx)(l.r,{"aria-hidden":"true",icon:p.faPipe,sx:{color:h,width:"$3",height:"$3",alignItems:"center",display:"flex",justifyContent:"center",mx:"$2",my:0,p:0,lineHeight:1,flexShrink:0}})]})};const y="(prefers-reduced-motion: reduce)",w=e=>{if("undefined"==typeof window||!window.matchMedia)return()=>{};const t=window.matchMedia(y);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},O=()=>!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia(y).matches,j=()=>!1;var x=()=>Object(n.useSyncExternalStore)(w,O,j);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.default=({showCarouselControls:e=!0,enableAutoScroll:t=!0,scrollSpeed:r=.8,sx:o})=>{const{arcSite:p,siteProperties:{hostname:{gmg:b=""}={}}}=Object(s.useAppContext)(),m=x(),y=Object(d.useContent)({source:"trending-stories",query:{"arc-site":p}}),w=null!=y?y:[],O=Object(n.useRef)(null),j=Object(n.useRef)(null),[_,E]=Object(i.a)({loop:!0,align:"start",skipSnaps:!1,containScroll:"trimSnaps",watchDrag:!0,dragFree:!1,watchSlides:!0},m?[]:[a({speed:r,startDelay:1500,playOnInit:!1,stopOnInteraction:!1,stopOnMouseEnter:!0,stopOnFocusIn:!0,direction:"forward"})]),k=Object(n.useCallback)((()=>{var e;if(!m)return null==E||null===(e=E.plugins())||void 0===e?void 0:e.autoScroll}),[E,m]),C=Object(n.useCallback)((()=>{m||(j.current&&clearTimeout(j.current),j.current=setTimeout((()=>{const e=k();e&&!e.isPlaying()&&e.play()}),1e3))}),[k,m]),P=Object(n.useCallback)((()=>{if(m)return;const e=k();(null==e?void 0:e.isPlaying())&&e.stop(),j.current&&clearTimeout(j.current)}),[k,m]);Object(n.useEffect)((()=>
2{if(!E||!t||m)return;const e=k();if(!e)return;const r=setTimeout((()=>{e.isPlaying()||e.play()}),100);return()=>{clearTimeout(r)}}),[E,t,m,k]),Object(n.useEffect)((()=>{if(!E)return;const e=k();e&&(t&&!m||e.stop())}),[E,t,m,k]),Object(n.useEffect)((()=>{if(!E||!t||m)return;const e=()=>{j.current&&clearTimeout(j.current),C()};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[E,t,m,C]),Object(n.useEffect)((()=>()=>{j.current&&clearTimeout(j.current)}),[]);const M=Object(n.useCallback)((e=>{E&&("ArrowLeft"===e.key&&(e.preventDefault(),P(),E.scrollPrev(),C()),"ArrowRight"===e.key&&(e.preventDefault(),P(),E.scrollNext(),C()))}),[E,P,C]),$=Object(n.useCallback)((e=>{const t=e.relatedTarget;(null==t?void 0:t.closest(".embla__controls"))||C()}),[C]),T=Object(n.useCallback)((()=>{E&&(P(),E.scrollPrev(),C())}),[E,P,C]),I=Object(n.useCallback)((()=>{E&&(P(),E.scrollNext(),C())}),[E,P,C]);return w.length<=1?null:Object(g.jsx)(l.e,{ref:O,id:"trending-stories-bar",className:"trending-stories-bar",sx:S({width:"$full",height:["$8","$10"],backgroundColor:"$black.400",borderTop:"1px solid",borderBottom:"1px solid",borderBottomColor:"$gray.600",borderTopColor:"$gray.600"},o),children:Object(g.jsxs)(l.E,{direction:"row",gap:"$1",px:["$2","$4"],mx:"auto",alignItems:"center",sx:{width:"$full",maxWidth:"$max",height:"$full"},children:[Object(g.jsx)(f.a,{label:"Trending",backgroundColor:h}),Object(g.jsxs)(l.e,{role:"region","aria-roledescription":"carousel","aria-label":"Trending stories carousel",className:"embla",sx:{position:"relative",height:"$full",overflow:"hidden",display:"flex",alignItems:"center",gap:"$1",flex:"1 1 auto",minWidth:["$16","$0"]},children:[Object(g.jsx)(l.e,{tabIndex:0,ref:_,onKeyDown:M,className:"embla__viewport",sx:{position:"relative",flex:"1 1 auto",height:"$full",overflow:"hidden",color:"$black.400","&::before":{content:'""',position:"absolute",inset:"0 auto 0 0",width:"$2",pointerEvents:"none",backgroundImage:"linear-gradient(to right, currentColor 0%, rgba(0,0,0,0) 100%)",zIndex:1},"&::after":{content:'""',position:"absolute",inset:"0 0 0 auto",width:"$2",pointerEvents:"none",backgroundImage:"linear-gradient(to left, currentColor 0%, rgba(0,0,0,0) 100%)",zIndex:1}},children:Object(g.jsx)(l.n,{className:"embla__container",alignItems:"center",sx:{height:"$full",willChange:"transform"},children:w.map(((e,t)=>Object(g.jsx)(v,{story:e,index:t,arcSite:p,gmg:b},`${e.id}-${e.source}-trending-stories-bar`)))})}),e&&Object(g.jsxs)(l.E,{className:"embla__controls",direction:"row",gap:"$1",marginX:"$1",sx:{display:["none","none","flex"]},children:[Object(g.jsx)(l.f,{variant:"$transparent",size:"sm",title:"Previous trending story",iconLeft:c.faChevronLeft,"aria-label":"Previous trending story",onClick:T,onBlur:$,className:"embla__prev",borderRadius:"$full"}),Object(g.jsx)(l.f,{variant:"$transparent",size:"sm",title:"Next trending story",iconLeft:u.faChevronRight,"aria-label":"Next trending story",onClick:I,onBlur:$,className:"embla__next",borderRadius:"$full"})]})]})]})})}},function(e,t,r){"use strict";var n=r(146),i=r(2),o=r(5),a=r(1),s=r(14),l=r(46),c=r(33),u=r(175),d=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=Object(a.lazy)((()=>r.e(6).then(r.bind(null,531)))),m={heading:{fontSize:["$2",null,"$3"],fontWeight:"$bold",color:"$blueGray.900"},metaTitle:{fontSize:"$0",fontWeight:"$medium",color:"$red.600"},description:{fontSize:["$0",null,"$1"],fontWeight:"$normal",color:"$blueGray.600"},readMore:{fontSize:"$0",fontWeight:"$semibold",color:"$red.600"},timeline:{dotColor:"$red.600",lineColor:"$blueGray.300"},horizontalScroll:!1,imageStyles:{},placeholderColor:"$blueGray.100",gap:["$2","$1"],showVideoIcon:!0}
2,g=({id:e,description:t,descriptionLines:r=3,displayDate:f,headlines:{basic:p,meta_title:g}={},subheadlines:{basic:v}={},headlineLines:y,href:w,className:O,livestream:j,shouldBeStatic:x=!1,lazy:_=!0,decorations:{timelineList:S=!1,showReadMore:E=!1}={},gaTag:k,pbStyles:C=m,textLocation:P="bottom",thirdPartySource:M,showSource:$,promo:T,showImage:I=!0,sponsored:A=!1,sx:R,style:D})=>{var L,N,B;const{arcSite:z,layout:F,siteProperties:{placeholderImage:U}}=Object(o.useAppContext)(),H=Object(a.useId)(),V=Object(s.g)({link:w,arcSite:z}),G=Object(l.c)(T),{heading:{fontSize:W,fontWeight:q,color:K},metaTitle:{fontSize:Y,color:X,fontWeight:J},description:{fontSize:Z,fontWeight:Q,color:ee},readMore:{fontSize:te,fontWeight:re,color:ne}={},timeline:{dotColor:ie,lineColor:oe}={},horizontalScroll:ae,imageStyles:se,placeholderColor:le,gap:ce=["$2","$1"],showVideoIcon:ue}=C,de={top:"column-reverse",right:"row",bottom:"column",left:"row-reverse",overlay:void 0};return Object(d.jsxs)(i.E,{"aria-labelledby":H,as:"article",gap:"$1",sx:h({},$?{position:"relative"}:null,{},R),style:D,className:O,"data-article-id":e,children:[g&&ae?Object(d.jsx)(i.E,{gap:"$0",flexDirection:"row",sx:{justifyContent:"space-between"},children:Object(d.jsx)(i.M,{m:"$0",sx:{fontFamily:"$gibson",fontSize:Y,color:X,fontWeight:J},children:g})}):null,$?Object(d.jsx)(i.e,{className:"storySource",sx:{position:"absolute",top:"0",left:"0",fontSize:"10px",backgroundColor:"rgba(255, 255, 255, 0.75)",p:"$1",zIndex:"10"},children:$}):null,Object(d.jsxs)(i.E,{className:"flexWrapper",flexDirection:"overlay"===P?void 0:de[P],gap:(null==j?void 0:j.hls)?"$0":["left","right"].includes(P)?"$3":["$3",null,"$2"],sx:h({textAlign:"left"===P?"right":"left"},ae?{scrollSnapAlign:"start"}:null,{},"overlay"===P?{position:"relative",height:"$full"}:null),children:[I&&(G||U)&&!(null==j?void 0:j.hls)?Object(d.jsxs)(i.t,{className:"storyImage",as:"div",href:V,gaTag:k,sx:h({position:"relative",display:"block",width:"$full",height:"$full","& > a":{display:"block",height:"$full"}},["left","right"].includes(P)?{flex:"0.5",overflow:"hidden"}:null,{},"overlay"!==P||j?null:{"> a::before":{content:"''",background:"linear-gradient(to top, #222 0%, #0000 100%)",width:"$full",height:"$1/2",position:"absolute",bottom:"1px",zIndex:"1",borderBottomLeftRadius:["$none","$rg"],borderBottomRightRadius:["$none","$rg"]}},{},x?{"& img":{width:"$full",height:"auto"}}:void 0,{},se),children:[Object(d.jsx)(c.a,h({},(null==G?void 0:G.publicId)?{publicId:G.publicId}:{url:(null==G?void 0:G.url)||U},{width:1280,height:720,lazy:_,alt:(null==G?void 0:G.caption)||v||"No description available",placeholder:le,shouldBeStatic:x,videoPoster:null!==(L=null==G?void 0:G.videoPoster)&&void 0!==L&&L,sx:{"& img":{borderRadius:["$none","$rg"],overflow:"hidden"}}})),!["left","right"].includes(P)&&ue?Object(d.jsx)(i.r,{icon:n.faPlay,sx:{position:"absolute",top:["$4","$3"],right:["$4","$3"],color:"$white",fontSize:"$4",filter:"drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.75))"}}):null]}):null,(null==j?void 0:j.hls)?Object(d.jsx)(a.Suspense,{fallback:Object(d.jsx)(i.e,{width:"$full",height:"$full",bg:"$blueGray.100",borderRadius:["$none","$rg"]}),children:Object(d.jsx)(b,{layout:"overlay"===P?"fill":void 0,canonicalWebsite:j.canonical_website,setAdPlaying:()=>{},gaTag:k,customFields:{id:j.id,autoPlay:null===(N=j.autoPlay)||void 0===N||N,muted:null===(B=j.muted)||void 0===B||B,hls:j.hls,daiAssetKey:j.daiAssetKey,poster:j.poster,title:j.title,url:j.url,adTagUrl:j.adTagUrl,enablePreRoll:j.enablePreRoll,stickyEnabled:j.stickyEnabled,initialInView:j.initialInView,stickyPosition:j.stickyPosition,enableLinkOverlay:j.enableLinkOverlay},isLive:!0})}):null,j?null:Object(d.jsx)(i.e,{className:"storyText",flex:["left","right"].includes(P)?"1":void 0,sx:h({px:ae||["left","right"].includes(P)?null:["$4","$0"]},"overlay"===P?{width:"$full",position:"absolute",bottom:"$3",zIndex:"2",px:"$3"}:null),children:Object(d.jsxs)(i.E,{gap:ce,sx:S?{position:"relative",pl:"$3","&:before":{position:"absolute",content:'"•"',left:"0",lineHeight:"10px",color:ie},"&:after":{backgroundColor:oe,content:'" "',width:"1px",height:"auto",position:"absolute",left:"3px",top:"1rem",bottom:"0"}}:null,children:[f&&!A&&!ae&&Object(u.b)(f,3)?Object(d.jsx)(i.t,{as:"div",className:"time gaevent",href:V,gaTag:k,sx:h({},"left"===P?{alignSelf:"flex-end"}:null,{display:"inline-flex","& > a":{display:"inline-flex"}}),children:Object(d.jsx)(u.a,{dateString:f,dayLimit:3,sx:{fontFamily:"$gibson",display:"inline",color:"overlay"===P?"$white":X,fontSize:Y,fontWeight:J,letterSpacing:"$wide",textTransform:"uppercase"}})}):null,A?Object(d.jsx)(i.t,{as:"div",className:"time gaevent",sx:{fontFamily:"$gibson",display:"block",color:"overlay"===P?"$white":X,fontSize:Y,fontWeight:"$normal",letterSpacing:"$wide",textTransform:"uppercase"},href:V,gaTag:k,children:"Sponsored"}):null,Object(d.jsxs)(i.t,{as:"div",href:V,gaTag:k,children:[Object(d.jsx)(i.q,{id:H,level:"article"===F?3:2,className:"storyHeadline",title:y?p:void 0,innerContent:p,sx:h({fontSize:W,fontWeight:q,color:"overlay"===P?"$white":K,lineHeight:"$tight"},y?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${y}`}:null)}),Object(d.jsx)(i.O,{children:`Read full article: ${p}`})]}),t?Object(d.jsx)(i.t,{href:V,title:r?t:void 0,children:Object(d.jsx)(i.M,{className:"storyDescription",innerContent:t,sx:h({m:"$0",fontSize:Z,fontWeight:Q,color:"overlay"===P?"$white":ee,lineHeight:"$snug"},r?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${r}`}:null)})}):null,M?Object(d.jsx)(i.t,{textColor:"$blue.400",href:V,mt:"$2",sx:{fontFamily:"$gibson",fontSize:"$-1"},children:M}):null,E?Object(d.jsx)(i.t,{pt:"$2",fontFamily:"$gibson",lineHeight:"$snug",textColor:ne,href:V,fontWeight:re,fontSize:te,children:"▸ Read more"}):null]})})]})]})};t.a=Object(a.memo)(g)},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="chevron-left",i=[9001],o="f053",a="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";t.definition={prefix:"fas",iconName:n,icon:[320,512,i,o,a]},t.faChevronLeft=t.definition,t.prefix="fas",t.iconName=n,t.width=320,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="chevron-right",i=[9002],o="f054",a="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";t.definition={prefix:"fas",iconName:n,icon:[320,512,i,o,a]},t.faChevronRight=t.definition,t.prefix="fas",t.iconName=n,t.width=320,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(5),i=r(45),o=r(72),a=r(50),s=r(31);function l(e,t){var r;const{arcSite:l}=Object(n.useAppContext)(),{data:c}=Object(s.b)(),u=e||(null==c||null===(r=c.arcSubs)||void 0===r?void 0:r.email),d=Object(a.b)(),f=u?`${d}/email/subscriptions/${l}/${Object(o.b)(u)}`:null,{data:h,isLoading:p,error:b,mutate:m}=Object(i.b)(f,t);return{data:h,isLoading:p,error:b,mutate:m}}},function(e,t,r){"use strict";var n=r(1),i=r(5),o=r(2),a=r(321),s=r(0);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a=({params:e,shareButtonText:t,copyButtonText:r})=>{var l;const{globalContent:u,arcSite:d,siteProperties:{siteName:f},globalContentConfig:{source:h}={}}=Object(i.useAppContext)(),{subtype:p,canonical_url:b,headlines:m,description:g,websites:v}=u,y="full-width"===p,w=null==m?void 0:m.basic,O=null==g?void 0:g.basic,j=null==v||null===(l=v[d])||void 0===l?void 0:l.website_url,x=`https://www.${f.toLowerCase()}${j||b}`,_=Object(n.useMemo)((()=>{if(!e)return x;const t=new URL(x),r=new URLSearchParams(t.search);return Object.entries(e).forEach((([e,t])=>{null!=t&&""!==t&&r.set(e,t)})),t.search=r.toString(),t.toString()}),[x,e]);return"preview"===h?Object(s.jsx)(o.E,{p:"$1",mb:"$2",bg:"$blueGray.100",sx:{fontStyle:"italic"},alignItems:"center",justifyContent:"center",gap:"$0",children:Object(s.jsx)(o.M,{fontSize:"$3",textColor:"$blueGray.700",children:"Sharebar will go here"})}):Object(s.jsx)(o.E,{className:"share-bar",direction:"row",alignItems:"center",gap:"$2",sx:c({},y&&{width:["100%","640px","640px"],marginX:"auto",paddingX:["$3","$0","$0"],justifyContent:"center"}),children:Object(s.jsx)(a.a,{url:_,title:w,description:O,shareButtonText:t,copyButtonText:r})})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="square-x-twitter",i=[],o="e61a",a="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z";t.definition={prefix:"fab",iconName:n,icon:[448,512,i,o,a]},t.faSquareXTwitter=t.definition,t.prefix="fab",t.iconName=n,t.width=448,t.he
2ight=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";var n=r(2),i=r(16),o=r.n(i),a=r(14),s=r(0);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a=({list:e=[],type:t="correction",children:r,className:i,sx:l})=>0!==e.length||r?(r&&e.unshift({correction_type:t,text:r.toString()}),Object(s.jsx)(n.E,{gap:"$3",className:o()("correction",i),bg:"$blue.100",borderTopRightRadius:"$sm",borderBottomRightRadius:"$sm",px:"$3",py:"$2",sx:c({borderLeftWidth:"$4",borderLeftStyle:"solid",borderLeftColor:"$blue.600"},l),children:e.map((e=>Object(s.jsxs)(n.E,{gap:"$1",children:[Object(s.jsx)(n.M,{variant:"$sm",textTransform:"capitalize",textColor:"$blue.900",sx:{fontFamily:"$gibson",fontStyle:"italic"},children:`${Object(a.c)(e.correction_type)}:`}),Object(s.jsx)(n.M,{variant:"$sm",innerContent:e.text,textColor:"$blueGray.900",sx:{fontFamily:"$gibson",fontStyle:"italic"}})]},e.text)))})):null},function(e,t,r){"use strict";r.d(t,"a",(function(){return V}));var n=r(3),i=r(2),o=r(1),a=r(182),s=r(139),l=r(183),c=r(181),u=r(180),d=r(145),f=r(146),h=r(26),p=r(5),b=r(316),m=r(317),g=r(31),v=r(14),y=r(116),w=r(33),O=r(12),j=r(0);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E({id:e,dayLimit:t=1,showVideo:r=!0,showInfo:n=!0,shouldBeStatic:o=!1,sx:x}){const{arcSite:S,outputType:E}=Object(p.useAppContext)(),{status:k,data:{braze:{custom_attributes:{pins_user_id:C}={}}}}=Object(g.b)(),P=Object(h.useContent)({source:"stormpins-by-id",query:{id:e}}),{hasUserLikedPin:M,totalPinLikeCount:$,handlePinLike:T,isLikeLoading:I,isLikeMutating:A}=Object(b.a)({pinId:e,pinUserId:C,fallbackData:P}),{hasUserCommented:R,totalCommentCount:D,isCommentLoading:L}=Object(m.a)({pinId:e,pinUserId:C,fallbackData:P});if(!P)return null;const N="rawHTML"===E,B=3===(null==P?void 0:P.mediaType),z=Object(v.g)({link:`/pins/user/${P.user.id}`,arcSite:S}),F=Object(v.g)({link:`/pins/p/${e}`,arcSite:S});return Object(j.jsxs)(i.E,{gap:"$0",bg:"$white",boxShadow:"$sm",sx:_({overflow:"hidden",borderRadius:n?"$lg":"$rg","&:hover":{boxShadow:"$rg"},"&:focus":{outline:"none",boxShadow:"$primaryButtonFocus"},"& .lightboxButton":{padding:0,margin:0,border:"none",outline:"none"}},x),className:"relative transition-300","data-id":e,children:[Object(j.jsx)("a",{href:F,target:"_blank",rel:"noreferrer",title:B?"View video in new tab":"View image in new tab",children:B&&r?Object(j.jsx)(y.a,{publicId:`media/pins/${e}`,width:400,height:400,autoPlay:!1,shouldBeStatic:o,sx:{height:"100%",width:"100%"},poster:`https://res.cloudinary.com/graham-media-group/video/upload/so_0/f_auto/q_auto/c_scale,w_1280/v1/media/pins/${e}.jpg`,lazy:!0,controls:!0,loop:!0,muted:!0}
2):B&&!r?Object(j.jsxs)(i.e,{position:"relative",children:[Object(j.jsx)(i.r,{icon:f.faPlay,textColor:"$white",fontSize:["$8","$7"],sx:{position:"absolute",top:"50%",left:"50%",zIndex:"10",transform:"translate(-50%, -50%)"}}),Object(j.jsx)(w.a,{publicId:`media/pins/${e}`,layout:"responsive",height:400,width:400,alt:P.description.basic||"Pin media image",shouldBeStatic:o,videoPoster:!0,lazy:!0})]}):Object(j.jsx)(w.a,{publicId:`media/pins/${e}`,layout:"responsive",height:400,width:400,alt:P.description.basic||"Pin media image",shouldBeStatic:o,lazy:!0})}),n?Object(j.jsxs)(i.E,{className:"bottomTab",gap:"$4",p:"$3",bg:"$white",flexGrow:1,justifyContent:"space-between",children:[Object(j.jsx)(i.E,{className:"picTitleDesc",flexDirection:"row",gap:"$3",children:Object(j.jsxs)(i.E,{gap:"$1",sx:{fontSize:"$1"},children:[Object(j.jsx)(i.t,{href:z,target:"_blank",className:"userName",variant:"$base",width:"max-content",title:`View ${P.user.userName}'s profile`,children:Object(j.jsx)(i.q,{level:5,textColor:"$blueGray.900",fontSize:"$2",width:"max-content",children:P.user.userName})}),P.description.basic?Object(j.jsx)(i.M,{sx:{fontSize:"$0",color:"$blueGray.600",overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3"},children:P.description.basic}):null]})}),N?null:Object(j.jsxs)(i.E,{direction:"row",gap:"$3",justifyContent:"space-between",alignItems:"center",sx:{fontSize:"$0",lineHeight:"$none"},children:[Object(j.jsxs)(i.E,{direction:"row",gap:"$3",children:[Object(j.jsxs)(i.t,{href:F,sx:{display:"flex",alignItems:"center",gap:"$1",fontFamily:"$gibson",color:"$blueGray.500"},title:"View pin details",children:[Object(j.jsx)(i.r,{icon:a.faClock,textColor:"$blueGray.500"}),Object(j.jsx)("time",{dateTime:new Date(P.created).toISOString(),title:new Date(P.created).toLocaleString(),children:Object(v.h)({time:P.created,limit:t})})]}),Object(j.jsx)(i.E,{direction:"row",gap:"$2",alignItems:"center",className:"likes",children:Object(j.jsx)(i.f,{"aria-label":M?"Unlike pin":"Like pin",title:M?"Unlike pin":"Like pin",variant:"$wrapper",iconLeft:M||(null!=$?$:0)>0?s.faHeart:l.faHeart,size:"sm",loading:A,disabled:"loggedIn"===k&&(I||A),spinnerColor:"#64748b",spinnerBorderColor:"#e2e8f0",onClick:e=>{e.stopPropagation(),"loggedIn"===k?T():Object(O.c)("gmg_open_login_modal")},sx:{fontSize:"$0",color:"$blueGray.500","& svg":{color:M?"$red.600":"$blueGray.500"}},children:null!=$?$:0})}),Object(j.jsx)(i.E,{direction:"row",gap:"$2",alignItems:"center",className:"comments",children:Object(j.jsxs)(i.t,{href:F,sx:{display:"flex",alignItems:"center",gap:"$1",fontFamily:"$gibson",color:"$blueGray.500",opacity:L?.5:1},title:(null!=D?D:0)>0?`View ${D} comments`:"Be the first to comment!",children:[Object(j.jsx)(i.r,{icon:(null!=D?D:0)>0?c.faCommentsAlt:u.faMessages,sx:{color:R?"$blue.600":"$blueGray.500"}}),L?"...":null!=D?D:0]})})]}),Object(j.jsxs)(i.E,{direction:"row",gap:"$2",sx:{alignItems:"center"},children:[Object(j.jsx)(i.r,{icon:d.faMapPin,sx:{color:"$blueGray.500"}}),Object(j.jsx)(i.M,{as:"span",title:"Unknown"!==P.city&&P.city?P.city:P.administrativeArea,sx:{fontFamily:"$gibson",fontSize:"$0",color:"$blueGray.700",maxWidth:["80px","72px","120px","80px","120px"],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"Unknown"!==P.city&&P.city?P.city:P.administrativeArea})]})]})]}):null]})}var k=r(313),C=r(298),P=r(310),M=r(311),$=r(122),T=r(312),I=r(71),A=r(144),R=r(20),D=r(72),L=r(214),N=r(50);const B=["localhost","gmg-sandbox"].includes(R.ENVIRONMENT);var z=({buttonText:e,copy:t,newsletterId:n,newsletterName:a})=>{var s;const{arcSite:l,siteProperties:{braze:c}}=Object(p.useAppContext)(),{data:u}=Object(g.b)(),{data:d,isLoading:f,error:h,mutate:b}=Object(L.a)(),m=!!(null==d?void 0:d.braze.subscriptions[n]),[v,y]=Object(o.useState)(!1),[x,_]=Object(o.useState)(!1),[S,E]=Object(o.useState)("");return h?(console.error("Error fetching user subscriptions",h),null):Object(j.jsxs)(i.E,{gap:"$3",className:"customEmbed newsletter-signup",my:"$5",p:"$3",bg:"$blueGray.50",borderRadius:"$lg",border:"1px solid",borderColor:"$blueGray.300",children:[Object(j.jsx)(w.a,{publicId:`media/newsletters/${l}/${n}`,width:234,height:50,layout:"fixed",alt:a||"",sx:{borderRadius:"$md",alignSelf:"center"}}),Object(j.jsx)(i.M,{fontSize:["$2",null,"$3"],textColor:"$blueGray.700",textAlign:"center",children:t||"More Stories Like This In Our Email Newsletter"}),Object(j.jsxs)(i.o,{onSubmit:async e=>{var t;e.preventDefault(),y(!0);const i=(null==u||null===(t=u.arcSubs)||void 0===t?void 0:t.email)||S,o=Object(D.b)(i),a=Object(D.a)(i),{initialize:s,isInitialized:d,openSession:f,getUser:h,getDeviceId:p}=await r.e(0).then(r.bind(null,220));d()||(s(B?c.sandboxApiKey:c.prodApiKey,{baseUrl:c.sdkEndpoint,enableLogging:!!B}),f());
2const m=h(),g=p(),v=Object(O.d)("BCSessionID"),w=Object(O.d)("newspassid");g&&localStorage.setItem("gmg_device_id",g),m&&(m.setEmail(a),m.addAlias(a,"email"),v&&(m.addAlias(v,"blueconic_id"),m.setCustomUserAttribute("blueconic_id",v)),w&&(m.addAlias(w,"npid"),m.setCustomUserAttribute("npid",w)),m.setCustomUserAttribute("last_seen_at",(new Date).toISOString()),m.setCustomUserAttribute(l,!0));const j=Object(N.b)(),x=`${j}/email/subscriptions/${l}/${o}`;try{var E;if(!(null==u||null===(E=u.arcSubs)||void 0===E?void 0:E.email)&&""!==S){if((await A.a.get(x)).data.braze.subscriptions[n])return y(!1),void _(!0)}200===(await A.a.post(`${j}/email/newsletters/update`,{email:a,site:l,subscribes:{[n]:!0}})).status&&(Object(O.l)(a),b(),_(!0))}catch(e){console.error("Error signing up for newsletter",e)}y(!1)},display:"flex",flexDirection:"column",sx:{gap:"$2"},children:[(null==u||null===(s=u.arcSubs)||void 0===s?void 0:s.email)?null:Object(j.jsx)(i.s,{id:"newsletter_signup",size:"$rg",label:"Email Address",type:"email",disabled:x||f,value:S,onChange:e=>E(e.target.value),required:!0}),Object(j.jsx)(i.f,{loading:v,disabled:m||x||f,children:x?"Thanks for signing up!":m?"You're already subscribed!":e||"Sign Me Up"})]})]})},F=r(240);const U=Object(o.lazy)((()=>r.e(71).then(r.bind(null,528)))),H=Object(o.lazy)((()=>Promise.all([r.e(6),r.e(81)]).then(r.bind(null,531))));function V({subtype:e,embed:t,shouldBeStatic:r=!1,isSponsored:n=!1}){var a,s,l,c;const{config:{raceId:u,groupId:d,electionId:f,showHeadshots:h=!0,showContext:p=!0,message:b,placeholder:m,isFeatured:g,popularVote:v,showLabels:O=!0,profilePicture:x,userName:_,description:S,city:A,mediaFileName:R,created:D=Date.now(),mediaType:L=1,likeCount:N=0,commentCount:B=0,copyText:V,btnText:G,thumbnailFileName:W,newsletterId:q,newsletterName:K,resourceType:Y}}=t,X=null==G?void 0:G.replace(/\+/g," "),J=null==V?void 0:V.replace(/\+/g," ");if(r)switch(e){case"elections_race":case"election_race":return Object(j.jsx)(i.e,{mb:"$4",className:"customEmbed race",children:Object(j.jsx)(T.default,{customFields:{electionId:f,raceId:u,showHeadshots:h,showContext:p,isFeatured:g,popularVote:v,showLabels:O}})});case"elections_group":case"election_group":return Object(j.jsx)(i.E,{gap:"$7",className:"customEmbed group",children:Object(j.jsx)(P.default,{customFields:{groupId:Number(d),showHeadshots:h,showContext:p}})});case"elections_picker":case"election_picker":return Object(j.jsx)(i.e,{mb:"$4",className:"customEmbed picker",children:Object(j.jsx)(M.default,{customFields:{groupId:Number(d),message:b,placeholder:m}})});case"pins":return Object(j.jsx)(i.e,{className:"customEmbed pin",sx:{my:"$5",padding:["$0",null,"$3"],bg:"$blueGray.50",borderRadius:"$lg"},children:Object(j.jsx)(k.a,{dayLimit:3,lazy:!1,pinData:{id:t.id,thumbnailFileName:W,user:{profilePicture:x,userName:_},description:S,city:A,mediaFileName:R,created:D,mediaType:L,likeCount:N,commentCount:B},sx:{width:["$full",null,"$2/3"],borderRadius:"$lg",ml:"auto",mr:"auto"},showVideo:!0,shouldBeStatic:!0},t.id)});case"cloudinary_picker":return"video"===Y?Object(j.jsx)(i.e,{className:"customEmbed cloudinaryPicker",sx:{my:"$5",bg:"$blueGray.50",borderRadius:"$sm",overflow:"hidden"},children:Object(j.jsx)(y.a,{publicId:t.id,width:640,height:360,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,shouldBeStatic:!0})}):Object(j.jsx)(i.e,{className:"customEmbed cloudinaryPicker",sx:{my:"$5",bg:"$blueGray.50",borderRadius:"$sm",overflow:"hidden"},children:Object(j.jsx)(w.a,{publicId:t.id,width:1280,height:720,shouldBeStatic:!0})});case"video_clip":return Object(j.jsx)(I.default,{customFields:{type:n?"sponsored":t.config.isFeaturedSpot?"featured":"body",videoId:t.config.refId,distributionId:t.config.distributionId,autoPlay:null!==(a=t.config.autoPlay)&&void 0!==a&&a,muted:null!==(s=t.config.muted)&&void 0!==s&&s,isFeaturedSpot:null!==(l=t.config.isFeaturedSpot)&&void 0!==l&&l,shouldBeStatic:!0}});default:return null}else switch(e){case"elections_race":case"election_race":return Object(j.jsx)(i.e,{mb:"$4",className:"customEmbed race",children:Object(j.jsx)($.default,{customFields:{electionId:parseInt(f,10),raceId:parseInt(u,10),showHeadshots:h,showContext:p,isFeatured:g,popularVote:v,showLabels:O}})});case"elections_group":case"election_group":return Object(j.jsx)(i.E,{gap:"$7",mb:"$4",className:"customEmbed group",children:Object(j.jsx)(C.default,{customFields:{groupId:parseInt(d,10),electionId:parseInt(f,10),showHeadshots:h,showContext:p}})});case"elections_picker":case"election_picker":return Object(j.jsx)(i.e,{mb:"$4",className:"customEmbed picker",children:Object(j.jsx)(o.Suspense,{fallback:Object(j.jsx)(i.e,{sx:{minHeight:"128px"}}),children:Object(j.jsx)(U,{customFields:{groupId:Number(d),message:b,placeholder:m}})})});case"pins":return Object(j.jsx)(i.e,{className:"customEmbed pin",sx:{my:"$5",padding:["$0",null,"$3"],bg:"$blueGray.50",borderRadius:"$lg"},children:Object(j.jsx)(E,{id:t.id,sx:{width:["$full",null,"$2/3"],borderRadius:"$lg",ml:"auto",mr:"auto"}})});case"newsletter_signup":return Object(j.jsx)(z,{buttonText:X,copy:J,newsletterId:q.toLowerCase(),newsletterName:K});case"livestream":return Object(j.jsx)("div",{children:Object(j.jsx)(o.Suspense,{fallback:Object(j.jsx)(i.d,{ratio:"16:9",bg:"$blueGray.100",borderRadius:["$none","$rg"]}),children:Object(j.jsx)(H,{className:"customEmbed full-width",sx:{my:"$5"},canonicalWebsite:t.config.canonical_website,customFields:{id:t.id,hls:t.config.hls,poster:t.config.poster,title:t.config.title,adTagUrl:t.config.adTag_preroll,url:t.config.canonical_url,autoPlay:!1,muted:!1,stickyEnabled:!1},isLive:!0})})});case"video_clip":return Object(j.jsx)("div",{children:Object(j.jsx)(I.default,{className:"full-width",customFields:{type:n?"sponsored":t.config.isFeaturedSpot?"featured":"body",distributionId:t.config.distributionId,isFeaturedSpot:null!==(c=t.config.isFeaturedSpot)&&void 0!==c&&c,autoPlay:!1,muted:!1}})});
2case"audience_io":return Object(j.jsx)(i.e,{className:"customEmbed audienceIo",children:Object(j.jsx)(F.default,{customFields:{widgetId:t.config.appId,widgetType:"experience"===t.config.appType?"experience":"app",appType:t.config.appType}})});case"conversation_starter":return Object(j.jsx)(i.e,{className:"customEmbed viafoura",minHeight:"270px",children:Object(j.jsx)("vf-conversation-starter",{target:"comments",title:t.config.question,description:t.config.blurb})});case"cloudinary_picker":return"video"===Y?Object(j.jsx)(i.e,{className:"customEmbed cloudinaryPicker",sx:{my:"$5",bg:"$blueGray.50",borderRadius:"$sm",overflow:"hidden"},children:Object(j.jsx)(y.a,{publicId:t.id,width:1280,height:720,autoPlay:!0,muted:!0,loop:!0,playsInline:!0})}):Object(j.jsx)(i.e,{className:"customEmbed cloudinaryPicker",sx:{my:"$5",padding:["$0",null,"$3"],bg:"$blueGray.50",borderRadius:"$sm",overflow:"hidden"},children:Object(j.jsx)(w.a,{publicId:t.id,width:1280,height:720})});default:return null}}V.propTypes={subtype:n.string.isRequired,embed:n.shape().isRequired,shouldBeStatic:n.bool,isSponsored:n.bool}},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r.n(n),o=r(142),a=r(105),s=r(2),l=r(0);const c=({complete:e=!1,customFields:{description:t,link:r}})=>{const n=Object(l.jsx)(s.r,{icon:a.faCheckCircle,sx:{color:"$green.600"}}),i=Object(l.jsx)(s.r,{icon:o.faCircle,sx:{color:"$trueGray.300"}});return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsxs)(s.E,{direction:"row",gap:"$3",py:"$3",className:"task",children:[Object(l.jsx)(s.e,{as:"div",mr:"$3",sx:{fontSize:"$4"},children:e&&n||i}),Object(l.jsx)(s.e,{as:"div",children:r?Object(l.jsx)(s.t,{href:r,target:"_blank",rel:"noreferrer",children:Object(l.jsx)(s.M,{variant:"$base",m:"$0",lineHeight:"$loose",children:t})}):Object(l.jsx)(s.M,{variant:"$base",m:"$0",lineHeight:"$loose",children:t})})]}),Object(l.jsx)(s.l,{variant:"$gray400",m:"$0"})]})};c.propTypes={customFields:i.a.shape({description:i.a.string.tag({name:"Description"}),checkVar:i.a.string.tag({name:"User Variable Path"}),condition:i.a.string.tag({name:"Success Condition",description:"User object variable value that indicates success (leave empty if you just want the variable to exist).  Use >,<,<=, >= to do numerical comparisons."}),link:i.a.url.tag({name:"Link (optional)"})}),complete:i.a.bool},c.lazy=!0,t.default=c},,function(e,t,r){"use strict";var n=r(172),i=r(2),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a=({className:e,sx:t})=>Object(o.jsx)(i.n,{bg:"$blue.500",placeContent:"center",textColor:"$white",borderRadius:"$full",sx:s({width:"$16",height:"$16"},t),children:Object(o.jsx)(i.r,{className:e,icon:n.faUser,px:"$3",sx:{fontSize:"$5"}})})},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"AdvancedImage",(function(){return Zt})),r.d(t,"AdvancedVideo",(function(){return er})),r.d(t,"accessibility",(function(){return Ut})),r.d(t,"lazyload",(function(){return zt})),r.d(t,"placeholder",(function(){return Vt})),r.d(t,"responsive",(function(){return Dt}));var n=r(1),i=r.n(n),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},a={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",c="[object GeneratorFunction]",u="[object Map]",d="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",b="[object Set]",m="[object String]",g="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",O="[object Float32Array]",j="[object Float64Array
2]",x="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",k="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]",M=/\w*$/,$=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,I={};I[i]=I["[object Array]"]=I[y]=I[w]=I[a]=I[s]=I[O]=I[j]=I[x]=I[_]=I[S]=I[u]=I[d]=I[f]=I[p]=I[b]=I[m]=I[g]=I[E]=I[k]=I[C]=I[P]=!0,I["[object Error]"]=I[l]=I[v]=!1;var A="object"==typeof o&&o&&o.Object===Object&&o,R="object"==typeof self&&self&&self.Object===Object&&self,D=A||R||Function("return this")(),L=t&&!t.nodeType&&t,N=L&&e&&!e.nodeType&&e,B=N&&N.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function U(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function G(e,t){return function(r){return e(t(r))}}function W(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var q,K=Array.prototype,Y=Function.prototype,X=Object.prototype,J=D["__core-js_shared__"],Z=(q=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",Q=Y.toString,ee=X.hasOwnProperty,te=X.toString,re=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=B?D.Buffer:void 0,ie=D.Symbol,oe=D.Uint8Array,ae=G(Object.getPrototypeOf,Object),se=Object.create,le=X.propertyIsEnumerable,ce=K.splice,ue=Object.getOwnPropertySymbols,de=ne?ne.isBuffer:void 0,fe=G(Object.keys,Object),he=Ne(D,"DataView"),pe=Ne(D,"Map"),be=Ne(D,"Promise"),me=Ne(D,"Set"),ge=Ne(D,"WeakMap"),ve=Ne(Object,"create"),ye=He(he),we=He(pe),Oe=He(be),je=He(me),xe=He(ge),_e=ie?ie.prototype:void 0,Se=_e?_e.valueOf:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ce(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){this.__data__=new ke(e)}function Me(e,t){var r=Ge(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var a in e)!t&&!ee.call(e,a)||o&&("length"==a||Fe(a,n))||r.push(a);return r}function $e(e,t,r){var n=e[t];ee.call(e,t)&&Ve(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Te(e,t){for(var r=e.length;r--;)if(Ve(e[r][0],t))return r;return-1}function Ie(e,t,r,n,o,h,v){var $;if(n&&($=h?n(e,o,h,v):n(e)),void 0!==$)return $;if(!Ye(e))return e;var T=Ge(e);if(T){if($=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(e,$)}else{var A=ze(e),R=A==l||A==c;if(qe(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(A==f||A==i||R&&!h){if(H(e))return h?e:{};if($=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ae(e),Ye(t)?se(t):{});var t}(R?{}:e),!t)return function(e,t){return De(e,Be(e),t)}(e,function(e,t){return e&&De(t,Xe(t),e)}($,e))}else{if(!I[A])return h?e:{};$=function(e,t,r,n){var i=e.constructor;switch(t){case y:return Re(e);case a:case s:return new i(+e);case w:return function(e,t){var r=t?Re(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case O:case j:case x:case _:case S:case E:case k:case C:case P:return function(e,t){var r=t?Re(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case u:return function(e,t,r){var n=t?r(V(e),!0):V(e);return U(n,z,new e.constructor)}(e,n,r);case d:case m:return new i(e);case p:return function(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return function(e,t,r){var n=t?r(W(e),!0):W(e);return U(n,F,new e.constructor)}(e,n,r);case g:return o=e,Se?Object(Se.call(o)):{}}var o}(e,A,Ie,t)}}v||(v=new Pe);var D=v.get(e);if(D)return D;if(v.set(e,$),!T)var L=r?function(e){return function(e,t,r){var n=t(e);return Ge(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;
vendor: 3,554 bytes, line 2
2)e[i+r]=t[r];return e}(n,r(e))}(e,Xe,Be)}(e):Xe(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(L||e,(function(i,o){L&&(i=e[o=i]),$e($,o,Ie(i,t,r,n,o,e,v))})),$}function Ae(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(Ke(e)||H(e)?re:$).test(He(e));var t}function Re(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function De(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=n?n(r[a],e[a],a,r,e):void 0;$e(r,a,void 0===s?e[a]:s)}return r}function Le(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Ne(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ae(r)?r:void 0}Ee.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ee.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:ee.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?r:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():ce.call(t,r,1),!0)},ke.prototype.get=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]},ke.prototype.has=function(e){return Te(this.__data__,e)>-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||ke),string:new Ee}},Ce.prototype.delete=function(e){return Le(this,e).delete(e)},Ce.prototype.get=function(e){return Le(this,e).get(e)},Ce.prototype.has=function(e){return Le(this,e).has(e)},Ce.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new ke},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!pe||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ce(n)}return r.set(e,t),this};var Be=ue?G(ue,Object):function(){return[]},ze=function(e){return te.call(e)};function Fe(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||X)}function He(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(he&&ze(new he(new ArrayBuffer(1)))!=w||pe&&ze(new pe)!=u||be&&ze(be.resolve())!=h||me&&ze(new me)!=b||ge&&ze(new ge)!=v)&&(ze=function(e){var t=te.call(e),r=t==f?e.constructor:void 0,n=r?He(r):void 0;if(n)switch(n){case ye:return w;case we:return u;case Oe:return h;case je:return b;case xe:return v}return t});var Ge=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!Ke(e)}var qe=de||function(){return!1};function Ke(e){var t=Ye(e)?te.call(e):"";return t==l||t==c}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Xe(e){return We(e)?Me(e):function(e){if(!Ue(e))return fe(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ie(e,!0,!0)}}
2(a,a.exports);var s=a.exports,l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function c(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function u(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function d(e,t,r,n,i){return c(this,void 0,void 0,(function(){var o,a;return u(this,(function(s){switch(s.label){case 0:if(void 0===r)return[2];a=0,s.label=1;case 1:return a<r.length?[4,r[a](e,t,n,i,r)]:[3,4];case 2:if("canceled"===(o=s.sent()))return[3,4];s.label=3;case 3:return a++,[3,1];case 4:return"canceled"!==o?[2,o]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var f=function(e,t){return void 0===t&&(t={}),e?{trackedAnalytics:l({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},h=function(){function e(e,t,r,n){var i=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=s(t);d(e,o,r,this.htmlPluginState,n).then((function(e){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach((function(e){e()}));var t=f(n,e);i.imgElement.setAttribute("src",o.toURL(t))}}))}return e.prototype.update=function(e,t,r){var n=this,i=s(e);d(this.imgElement,i,t,this.htmlPluginState).then((function(e){if(n.isMounted){var t=f(r,e);n.imgElement.setAttribute("src",i.toURL(t))}}))},e.prototype.unmount=function(){this.isMounted=!1},e}();class p{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}class b extends Error{constructor(e="Unsupported"){super(e)}}function m(e){return new b(e)}function g(){return this._qualifierModel||{error:m(`unsupported qualifier ${this.constructor.name}`)}}class v{constructor(){this._qualifierModel={}}toJson(){return g.apply(this)}}class y extends v{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof p?this.qualifierValue=t:(this.qualifierValue=new p,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class w extends y{constructor(e,t){let r;r=t?new p([e,`${t}`]).setDelimiter(":"):e,super("fl",r),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function O(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,i=null===(r=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===r?void 0:r.error;return i&&i instanceof Error?{error:i}:n?this._actionModel:{error:m(`unsupported action ${this.constructor.name}`)}}class j{constructor(){this._actionModel={}}toJson(){return O.apply(this)}}
2class x extends j{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const r=Array.from(e.entries());return t.forEach((e=>{r.push(["fl",e])})),r.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new w(r)):this.qualifiers.set(t,new y(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new w(e)):e instanceof w&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class _ extends x{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class S extends _{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new y("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new y("h",e)),this}static fromJson(e){const t=new S;return e.width&&t.width(e.width),e.height&&t.height(e.height),e.x&&t.x(e.x),e.y&&t.y(e.y),t}}function E(){return new _("faces")}class k extends x{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";if("_region"in this){this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new y("e",`blur_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new y("e",`blur_region${e}`)),this.addQualifier(new y("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new y("e",`blur_faces${e}`))}else this.addQualifier(new y("e",`blur${e}`))}static fromJson(e){const{strength:t,region:r}=e,n=new this(t);return t&&n.strength(t),r&&"faces"===r.regionType&&n.region(E()),r&&"ocr_text"===r.regionType&&n.region(new _("ocr_text")),r&&"custom"===r.regionType&&n.region(S.fromJson(r)),n}}function C(e){const t={};return Object.keys(e).forEach((r=>{t[e[r]]=r})),t}const P={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},M={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},$={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},T={444:"CHROMA_444",420:"CHROMA_420"},I=C(T);C({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const A=C(P),R=C({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),D=C(M);C($),C({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class L extends x{constructor(e,t){super(),this._actionModel={},this._actionModel.actionType=D[e]||e;const r=this.createEffectQualifier(e,t);this.addQualifier(r)}createEffectQualifier(e,t){let r;return r=t?new p([e,`${t}`]).setDelimiter(":"):new p(e),new y("e",r)}static fromJson(e){const{actionType:t,level:r,strength:n}=e;return new this(M[t]||t,r||n)}}class N extends L{constructor(e,t){super(e,t),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=D[e]||e,t&&this.setLevel(t)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const t=this.createEffectQualifier(this.effectType,e);return this.addQualifier(t),this}}function B(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}class z extends x{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new p(`colors:${this._numOfColors}`).toString()}
2`),this._detailsLevel&&(e+=`:${new p(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new p(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new p(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new p(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new y("e",e))}static fromJson(e){const{actionType:t,paths:r,cornersLevel:n,despeckleLevel:i,detailLevel:o,numOfColors:a}=e,s=new this;return r&&s.paths(r),n&&s.cornersLevel(n),i&&s.despeckleLevel(i),o&&s.detailsLevel(o),a&&s.numOfColors(a),s}}class F extends N{level(e){return this._actionModel.level=e,this.setLevel(e)}}class U extends x{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new y("e",new p("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new y("e",new p(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new y("e",new p(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:t,type:r,stripesStrength:n}=e,i=new this;return"xray"===r&&i.xray(),"stripes"===r&&n&&i.stripesStrength(n),i}}class H extends F{color(e){return this._actionModel.color=e,this.addQualifier(new y("co",new p(B(e))))}static fromJson(e){const{actionType:t,level:r,color:n}=e,i=new this(t,r);return n&&i.color(n),i}}class V extends x{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";if("_region"in this){this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new y("e",`pixelate_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new y("e",`pixelate_region${e}`)),this.addQualifier(new y("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new y("e",`pixelate_faces${e}`))}else this.addQualifier(new y("e",`pixelate${e}`))}static fromJson(e){const{region:t,squareSize:r}=e,n=new this(r);return r&&n.squareSize(r),t&&"faces"===t.regionType&&n.region(E()),t&&"custom"===t.regionType&&n.region(new S),n}}const G=/[!'()*~_.-]/g,W={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},q=e=>e.replace(G,(e=>{var t;return null!==(t=W[e])&&void 0!==t?t:e})),K=e=>e.replace(/%20/g," "),Y=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function X(e){return new H("colorize",e)}class J extends x{constructor(e){super(),this._actionModel={},this.addQualifier(new y("b",new p(B(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}class Z{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:m(`unsupported action ${this.constructor.name}`)}}}class Q extends p{constructor(e){super(e),this.val=e}getValue(){return this.val}}class ee extends x{constructor(e,t,r){let n;super(),this._actionModel={},n=t instanceof Q?t.getValue():t,this._actionModel.actionType=R[e],this._actionModel[r]=n,this.addQualifier(new y(e,t))}}class te extends w{constructor(e){super("progressive",e)}}class re extends ee{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new w("lossy")),this}progressive(e){return e instanceof te?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(function(e){return new w("progressive",e)}(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new w("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:r,progressive:n,preserveTransparency:i}=e;let o;return o=t?new this("f",t):new this("f"),n&&(n.mode?o.progressive(n.mode):o.progressive()),r&&o.lossy(),i&&o.preserveTransparency(),o}}class ne{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new Z(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof ne?this.actions=this.actions.concat(e.actions):this.actions.push(new Z(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new re("q",e)),this}format(e){return this.addAction(new re("f",e)),this}
2roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new J(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new x;let r=e;return"string"==typeof e&&(r=new w(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if("error"in(t=n)&&t.error)return n;e.push(n)}var t;return{actions:e}}}function ie(e){const t=e.toString();if(t.match(/[A-Z]/gi))return t;if(t.length>1&&"0"===t[0])return t;return!isNaN(parseFloat(t))&&-1===t.indexOf(":")&&-1===t.indexOf(".")?`${t}.0`:t}class oe extends p{}class ae extends x{constructor(e,t,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=A[e]||e,this.addQualifier(new y("c",e)),t&&this.width(t),r&&this.height(r)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new y("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new y("w",e))}aspectRatio(e){return e instanceof oe?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new y("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=ie(e),this.addQualifier(new y("ar",ie(e)))):e instanceof w?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new w("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new w("region_relative"))}static fromJson(e){const{actionType:t,dimensions:r,relative:n,regionRelative:i}=e,{aspectRatio:o,width:a,height:s}=r,l=new this(P[t]||t,a,s);return o&&l.aspectRatio("ignore_aspect_ratio"===o?new w("ignore_aspect_ratio"):o),n&&l.relative(),i&&l.regionRelative(),l}}class se extends y{constructor(e){super("g",new p(e))}}class le extends se{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class ce extends se{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class ue extends se{constructor(e){super(e)}}function de(...e){const t=[...e];return new ce(t)}function fe(){return new le}class he extends p{constructor(e){super(),this.name=e}toString(){return this.name}}function pe(e){return`${e}`.replace("g_","")}function be(e){const t=e.toString().split("_"),r={object:t[0]};return t.length>1&&("avoid"===t[1]?r.avoid=!0:r.weight=+t[1]),r}function me(e){let t;const r="auto"===e?new le:e;t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):r.qualifierValue.values.filter((e=>"auto"!==e));return{gravityType:"auto",autoFocus:t.map(be)}}function ge(e){return function(e){const t=pe(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?function(e){return{compass:pe(e),gravityType:"direction"}}(e):function(e){return"ocr_text"===pe(e)}(e)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?me(e):function(e){const t=`${e}`.split(":").includes("auto"),r=e.qualifierValue.values,n={gravityType:"object",focusOnObjects:(t?r.slice(0,r.length-1):r).map((e=>`${e}`))};if(t){const e=r[r.length-1].values.slice(1),t=fe().autoFocus(...e);n.fallbackGravity=me(t)}return n}("string"==typeof e?function(e){const t=e.split(":").map((e=>new he(e)));return new ce(t)}(e):e)}class ve extends p{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){const r=e instanceof he?e:new he(e);return new ve(r,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}
2getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class ye extends p{constructor(e){super(),this.val=e}toString(){return this.val}}function we(e){const{object:t,weight:r,avoid:n}=e,i=new ve(new he(t));return(r||0===r)&&i.weight(r),n&&i.avoid(),i}function Oe(e){const t=(e.autoFocus||[]).map(we);return fe().autoFocus(...t)}function je(e){return function(e){return"direction"===e.gravityType}(e)?new ue(new ye(e.compass)):function(e){return"ocr"===e.gravityType}(e)?de(new he("ocr_text")):function(e){return"auto"===e.gravityType}(e)?Oe(e):function(e){const t=de(...(e.focusOnObjects||[]).map((e=>new he(e))));if(e.fallbackGravity){const r=Oe(e.fallbackGravity);t.fallbackGravity(r)}return t}(e)}class xe extends ae{gravity(e){this._actionModel.gravity=ge(e);const t="string"==typeof e?new y("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(je(e.gravity)),t}}class _e extends y{constructor(e){super("b"),e&&this.addValue(e)}}const Se=100,Ee=0;var ke=class extends _e{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:${Se}:${this.brightnessLevel}`:""}`}};class Ce extends _e{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>B(e))),this}}class Pe extends Ce{toString(){return`\n    b_auto:border\n    ${this._contrast?"_contrast":""}\n    ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n    `.replace(/\s+/g,"")}}class Me extends Ce{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class $e extends Me{toString(){return`\n    b_auto:border_gradient\n    ${this._contrast?"_contrast":""}\n    ${this._gradientColors?`:${this._gradientColors}`:""}\n    ${this._gradientDirection?`:${this._gradientDirection}`:""}\n    ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n    `.replace(/\s+/g,"")}}class Te extends Me{toString(){return`\n    b_auto:predominant_gradient\n    ${this._contrast?"_contrast":""}\n    ${this._gradientColors?`:${this._gradientColors}`:""}\n    ${this._gradientDirection?`:${this._gradientDirection}`:""}\n    ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n    `.replace(/\s+/g,"")}}class Ie extends Ce{toString(){return`\n    b_auto:predominant\n    ${this._contrast?"_contrast":""}\n    ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n    `.replace(/\s+/g,"")}}class Ae extends _e{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){try{this._prompt=decodeURIComponent(e)}catch(t){this._prompt=e}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${e=this._prompt,Y(encodeURIComponent,q,K)(e)}`:"");var e}}function Re(e){return`${e}`.replace("b_","")}function De(e){const t=e._contrast,r=e._palette,n={backgroundType:""};return t&&(n.contrast=!0),r&&(n.palette=r),n}function Le(e){const t=e._gradientColors,r=`${e._gradientDirection}`,n=De(e);return t&&(n.gradientColors=t),r&&(n.gradientDirection=r),n}function Ne(e){return"auto"===Re(e)?{backgroundType:"auto"}:e instanceof ke?function(e){const{intensityLevel:t,brightnessLevel:r}=e,n={backgroundType:"blurred"};return(t||0===t)&&(n.intensity=t),(r||0===r)&&(n.brightness=r),n}(e):e instanceof Pe?function(e){return Object.assign(Object.assign({},De(e)),{backgroundType:"border"})}(e):e instanceof $e?function(e){return Object.assign(Object.assign({},Le(e)),{backgroundType:"borderGradient"})}(e):e instanceof Ie?function(e){return Object.assign(Object.assign({},De(e)),{backgroundType:"predominant"})}(e):e instanceof Te?function(e){return Object.assign(Object.assign({},Le(e)),{backgroundType:"predominantGradient"})}(e):e instanceof Ae?function(e){return Object.assign({backgroundType:e.getBackgroun
2dType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:Re(e)}}(e)}function Be(){return new Q("auto")}function ze(){return new Pe}function Fe(){return new _e("auto")}function Ue(){return new $e}function He(){return new Te}function Ve(){return new Ie}function Ge(e){return new _e(B(e))}function We(){return new Ae}const qe={auto:Fe,border:ze,borderGradient:Ue,predominantGradient:He,predominant:Ve,color:Ge,blurred:function(){return new ke},generativeFill:We};function Ke(e,t){const{gradientColors:r,gradientDirection:n,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),r&&e.gradientColors(+r),n&&e.gradientDirection(n),e}function Ye(e,t){const{contrast:r,palette:n}=t;return r&&e.contrast(),n&&e.palette(...n),e}function Xe(e){const{backgroundType:t}=e;switch(t){case"auto":return Fe();case"blurred":return function(e){const{brightness:t,intensity:r}=e,n=qe.blurred();return n.brightness(null!=t?t:Ee),n.intensity(null!=r?r:Se),n}(e);case"border":return Ye(ze(),e);case"borderGradient":return Ke(Ue(),e);case"predominant":return Ye(Ve(),e);case"predominantGradient":return Ke(He(),e);case"generativeFill":return function(e,t){const{prompt:r}=t;return r&&e.prompt(r),e}(We(),e);default:return Ge(e.color)}}class Je extends xe{background(e){return this._actionModel.background=Ne(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(Xe(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}class Ze extends ae{liquidRescaling(){return this.addQualifier(new se("liquid"))}}class Qe extends xe{x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new y("z",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),e.zoom&&t.zoom(e.zoom),t}}class et extends xe{x(e){return this._actionModel.x=e,this.addQualifier(new y("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new y("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class tt extends ee{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=T[e];const t=new p([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new y("q",t))}quantization(e){this._actionModel.quantization=e;const t=new p([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new y("q",t))}static fromJson(e){const{level:t,chromaSubSampling:r,quantization:n}=e,i=new this($[t]||t);if(r){const e=I[r.toUpperCase()];e&&i.chromaSubSampling(+e)}return n&&i.quantization(n),i}}function rt(e){return new re("f",e)}function nt(e){return new tt(e)}var it,ot,at,st,lt,ct={darkmode:X(70).color("black"),brightmode:X(40).color("white"),monochrome:new L("grayscale"),colorblind:new U},ut={vectorize:(new ne).effect(new z).delivery(nt("auto")).delivery(rt(new Q("svg"))),pixelate:(new ne).effect(new V(it)).delivery(nt("auto")).delivery(rt(Be())),blur:(new ne).effect((ot=2e3,new k(ot))).delivery(nt("auto")).delivery(rt(Be())),"predominant-color":(new ne).resize((st="iw_div_2",new Je("pad",st,lt)).aspectRatio(1).background(qe.auto())).resize(function(e,t){return new Qe("crop",e,t)}(1,1).gravity((at=new ye("north_east"),new ue(at)))).resize(function(e,t){return new et("fill",e,t)}().height("ih").width("iw")).delivery(nt("auto")).delivery(rt(Be()))},dt="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ft={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},ht="?_a=",pt=function(){function e(e,t,r,n,i,o,a){var l=this;this.mimeType="video",this.mimeSubTypes=ft,this.videoElement=e,this.originalVideo=t,this.videoOptions=a,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var c=s(t);d(e,t,n,this.htmlPluginState).then((function(){l.htmlPluginState.pluginEventSubscription.forEach((function(e){e()}
2)),l.setVideoAttributes(i,o),l.handleSourceToVideo(c,r)}))}return e.prototype.handleSourceToVideo=function(e,t){var r=this;if(t)this.generateUserSources(e,t);else{["webm","mp4","ogv"].forEach((function(t){r.appendSourceTag(s(e),t)}))}},e.prototype.generateUserSources=function(e,t){var r=this;t.map((function(t){var n=t.type,i=t.codecs,o=t.transcode;return r.appendSourceTag(s(e).transcode(o),n,r.buildMimeType(n,i))}))},e.prototype.appendSourceTag=function(e,t,r){var n,i=document.createElement("source"),o=null===(n=this.videoOptions)||void 0===n?void 0:n.useFetchFormat;o&&e.format(t);var a=e.toURL().split(ht),s=a[1]?"".concat(ht).concat(a[1]):"",l=o?"":".".concat(t);i.src="".concat(a[0]).concat(l).concat(s),i.type=r||"video/".concat(ft[t]||t),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(e,t){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return t&&(r+="; codecs="+(Array.isArray(t)?t.join(", "):t)),r},e.prototype.setVideoAttributes=function(e,t){var r;if(void 0===e&&(e={}),"auto"===t){var n=s(this.originalVideo);e.poster=n.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else t&&(e.poster=null===(r=t.toURL)||void 0===r?void 0:r.call(t));for(var i=0,o=Object.entries(e);i<o.length;i++){var a=o[i],l=a[0],c=a[1];c&&this.videoElement.setAttribute(l,"poster"===l?c:"")}},e.prototype.update=function(e,t,r,n,i){var o=this;if(e!==this.originalVideo){for(var a=this.videoElement.getElementsByTagName("SOURCE");a[0];)a[0].parentNode.removeChild(a[0]);d(this.videoElement,e,r,this.htmlPluginState).then((function(){o.setVideoAttributes(n,i),o.handleSourceToVideo(e,t),o.videoElement.load()}))}},e}(),bt=NaN,mt="[object Symbol]",gt=/^\s+|\s+$/g,vt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,wt=/^0o[0-7]+$/i,Ot=parseInt,jt="object"==typeof o&&o&&o.Object===Object&&o,xt="object"==typeof self&&self&&self.Object===Object&&self,_t=jt||xt||Function("return this")(),St=Object.prototype.toString,Et=Math.max,kt=Math.min,Ct=function(){return _t.Date.now()};function Pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Mt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&St.call(e)==mt}(e))return bt;if(Pt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Pt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(gt,"");var r=yt.test(e);return r||wt.test(e)?Ot(e.slice(2),r?2:8):vt.test(e)?bt:+e}var $t=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function p(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=o}function b(){var e=Ct();if(p(e))return m(e);s=setTimeout(b,function(e){var r=t-(e-l);return d?kt(r,o-(e-c)):r}(e))}function m(e){return s=void 0,f&&n?h(e):(n=i=void 0,a)}function g(){var e=Ct(),r=p(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(b,t),u?h(e):a}(l);if(d)return s=setTimeout(b,t),h(l)}return void 0===s&&(s=setTimeout(b,t)),a}return t=Mt(t)||0,Pt(r)&&(u=!!r.leading,o=(d="maxWait"in r)?Et(Mt(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},g.flush=function(){return void 0===s?a:m(Ct())},g};function Tt(){return"undefined"!=typeof window}function It(e){return e instanceof HTMLImageElement}var At={accessibility:!1,lazyload:!1,placeholder:!1,responsive:!1},Rt=function(e,t){return void 0===e&&(e=[]),e.reduce((function(e,t){var r,n=t.name;return l(l({},e),((r={})[function(e){return e.replace("bound ","").replace("Plugin","")}(n)]=!0,r))}),At)[t]};function Dt(e){var t=(void 0===e?{}:e).steps;return Lt.bind(null,t)}function Lt(e,t,r,n,i,o){return!Tt()||(It(t)?new Promise((function(a){n.cleanupCallbacks.push((function(){window.removeEventListener("resize",s),a("canceled")}));var s,l=f(i,{responsive:!0});r.addAction((new x).setActionTag("responsive")),!Rt(o,"placeholder")?Nt(e,t,r,l):Bt(e,t,r),n.pluginEventSubscription.push((function(){window.addEventListener("resize",s=$t((function(){Nt(e,t,r,l)}),100))})),a({responsive:!0})}
2)):void 0)}function Nt(e,t,r,n){Bt(e,t,r),t.src=r.toURL(n)}function Bt(e,t,r){var n=t.parentElement.clientWidth;if("number"==typeof e){var i=e;n=Math.ceil(n/i)*i}else Array.isArray(e)&&(n=e.reduce((function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e})));r.transformation.actions.forEach((function(e,t){e instanceof x&&"responsive"===e.getActionTag()&&(r.transformation.actions[t]=function(e,t){return new Ze("scale",e,t)}(n).setActionTag("responsive"))}))}function zt(e){var t=void 0===e?{}:e,r=t.rootMargin,n=void 0===r?"0px":r,i=t.threshold,o=void 0===i?.1:i;return Ft.bind(null,n,o)}function Ft(e,t,r,n,i,o){return void 0===e&&(e="0px"),void 0===t&&(t=.1),!!Tt()&&new Promise((function(n){var o=function(e,t,r,n){try{if(!window||!("IntersectionObserver"in window))return t(),function(){};var i=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(i.unobserve(e.target),t())}))}),{rootMargin:r,threshold:n});return i.observe(e),function(){e&&i.observe(e)}}catch(e){t()}}(r,(function(){return n({lazyload:!0})}),e,t);i.cleanupCallbacks.push((function(){o(),n("canceled")}))}))}function Ut(e){var t=(void 0===e?{}:e).mode,r=void 0===t?"darkmode":t;return Ht.bind(null,r)}function Ht(e,t,r,n,i){if(Tt()){if(!It(t))return;return new Promise((function(t){n.cleanupCallbacks.push((function(){t("canceled")})),ct[e]||(e="darkmode"),r.effect(ct[e]),t({accessibility:!0})}))}return r.effect(ct[e]),!0}function Vt(e){var t=(void 0===e?{}:e).mode,r=void 0===t?"vectorize":t;return Gt.bind(null,r)}function Gt(e,t,r,n,i,o){ut[e]||(e="vectorize");var a=ut[e].actions,l=s(r);if(a.forEach((function(e){l.addAction(e)})),!Tt())return r.transformation=l.transformation,!0;if(It(t)){l.transformation.actions.forEach((function(e,t){e instanceof x&&"responsive"===e.getActionTag()&&delete l.transformation.actions[t]}));var c=f(i,{placeholder:!0});return t.src=l.toURL(c),t.onerror=function(){t.src=dt},new Promise((function(e){t.onload=function(){e()}})).then((function(){return new Promise((function(e){n.cleanupCallbacks.push((function(){t.src=dt,e("canceled")}));var i=new Image;i.src=r.toURL(c),i.onload=function(){e({placeholder:!0})},i.onerror=function(){e({placeholder:!0})}}))}))}}function Wt(e){e.cleanupCallbacks.forEach((function(e){e()}))}var qt=function(e,t){return qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},qt(e,t)};function Kt(e,t){function r(){this.constructor=e}qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Yt=function(){return Yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yt.apply(this,arguments)};function Xt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var Jt={sdkSemver:"1.14.3",techVersion:i.a.version,sdkCode:"J"},Zt=function(e){function t(t){var r=e.call(this,t)||this;return r.imageRef=i.a.createRef(),r}return Kt(t,e),t.prototype.componentDidMount=function(){this.htmlLayerInstance=new h(this.imageRef.current,this.props.cldImg,this.props.plugins,Jt)},t.prototype.componentDidUpdate=function(){Wt(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Jt)},t.prototype.componentWillUnmount=function(){Wt(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var e=this.props;e.cldImg,e.plugins;var t=Xt(e,["cldImg","plugins"]);if(Tt())return i.a.createElement("img",Yt({suppressHydrationWarning:!0},t,{ref:this.imageRef}));var r=function(e,t,r){var n=s(t);if(e)for(var i=0;i<e.length&&e[i](null,n);i++);return n.toURL(r?{trackedAnalytics:r}:null)}(this.props.plugins,this.props.cldImg,Jt);return i.a.createElement("img",Yt({},t,{src:r}))},t}(i.a.Component),Qt=["controls","loop","muted","poster","preload","auto
2play","playsinline"],er=function(e){function t(t){var r=e.call(this,t)||this;return r.videoRef=Object(n.createRef)(),r.attachRef=r.attachRef.bind(r),r}return Kt(t,e),t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new pt(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){Wt(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Wt(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var e=this,t={};return Qt.forEach((function(r){r in e.props&&(t[r]=e.props[r])})),t},t.prototype.attachRef=function(e){this.videoRef.current=e;var t=this.props.innerRef;t&&(t instanceof Function?t(e):t.current=e)},t.prototype.render=function(){var e=this.props;e.cldVid,e.cldPoster,e.plugins,e.sources,e.innerRef,e.useFetchFormat;var t=Xt(e,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return i.a.createElement("video",Yt({},t,{ref:this.attachRef}))},t}(n.Component)}.call(this,r(60))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(539);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faSignOut=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l({note:e,tone:t="warning",sx:r}){return e?Object(i.jsx)(n.e,{className:"editorsNote",bg:"warning"===t?"$red.100":"$blue.100",borderTopRightRadius:"$sm",borderBottomRightRadius:"$sm",sx:a({borderLeftWidth:"$4",borderLeftStyle:"solid",borderLeftColor:"warning"===t?"$red.600":"$blue.600"},r),children:Object(i.jsx)(n.M,{className:"copyright",innerContent:e,sx:{fontFamily:"$gibson",fontStyle:"italic",fontSize:"$1",lineHeight:"$snug",py:"$2",px:"$3",color:"$red.900"}})}):null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="circle",i=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],o="f111",a="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";t.definition={prefix:"far",iconName:n,icon:[512,512,i,o,a]},t.faCircle=t.definition,t.prefix="far",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);function i({children:e,limit:t}){return e.length>t?Object(n.jsx)("span",{title:e,children:`${e.substring(0,t)}...`}):Object(n.jsx)("span",{title:e,children:e})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(43),i=r.n(n),o=r(38),a=r(1),s=r(177),l=r(147);function c({onSuccess:e,onError:t,mode:r}){const{config:n,status:c}=Object(s.b)(),u=Object(l.a)("https://accounts.google.com/gsi/client"),[d,f]=Object(a.useState)(!1),[h,p]=Object(a.useState)(!1),[b,m]=Object(a.useState)(null),g=Object(a.useRef)(!1),v=n&&"googleClientId"in n&&!!n.googleClientId;Object(a.useEffect)((()=>{!async function(){var a;if(!v)return;if("ready"!==u)return;if("ready"!==c)return;if(g.current)return;if(!(null===(a=google)||void 0===a?void 0:a.accounts)){const e=new Error("Google client library is not loaded");return console.error(`[GOOGLE_SIGN_IN] ${e.message}`),void m(e)}const s=n;
2if("code"in s){const e=new Error("Google client ID is not set (error response)");return console.error(`[GOOGLE_SIGN_IN] ${e.message}`),void m(e)}const{googleClientId:l}=s;try{const n={client_id:l,callback:async n=>{p(!0),m(null);try{const t=await i.a.signInWithGoogle({credential:n.credential,select_by:n.select_by});if(Object(o.isAPIErrorResponse)(t))throw new Error(`Error signing in with Google: ${t.message}`);if(!t.accessToken||!t.refreshToken)throw new Error("Missing required tokens from Google Sign-In response");await e({accessToken:t.accessToken,refreshToken:t.refreshToken})}catch(e){const n=e instanceof Error?e:new Error(String(e));console.error(`[GOOGLE_SIGN_IN] Error during ${r}:`,n),m(n),null==t||t(n)}finally{p(!1)}},ux_mode:"popup",auto_select:!1};google.accounts.id.initialize(n),g.current=!0,f(!0);const a=document.getElementById("arc-siwg-hidden-button");a?(a.innerHTML="",google.accounts.id.renderButton(a,{type:"standard",theme:"outline",size:"large",text:"signin_with",shape:"rectangular",logo_alignment:"left"})):console.warn("[GOOGLE_SIGN_IN] Hidden button container not found")}catch(e){const t=e instanceof Error?e:new Error(String(e));console.error("[GOOGLE_SIGN_IN] Error initializing Google Sign-In:",t),m(t)}}()}),[u,c,v,n,e,t,r]);const y=Object(a.useCallback)((()=>{try{var e,r;if(!g.current||!(null===(e=google)||void 0===e||null===(r=e.accounts)||void 0===r?void 0:r.id)){const e=new Error("Google Sign-In not initialized or not available");return console.error("[GOOGLE_SIGN_IN]",e.message),m(e),void(null==t||t(e))}const n=document.querySelector("#arc-siwg-hidden-button div[role='button']");if(n)n.click();else{const e=new Error("Hidden Google button not found in DOM");console.error("[GOOGLE_SIGN_IN]",e.message),m(e)}}catch(e){const r=e instanceof Error?e:new Error(String(e));console.error("[GOOGLE_SIGN_IN] Error triggering Google Sign-In:",r),m(r),null==t||t(r)}}),[t]);return{isInitialized:d,isLoading:h,error:b,isConfigured:v,triggerGoogleSignIn:y}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);const i=()=>Object(n.jsx)("div",{id:"arc-siwg-hidden-button",style:{display:"none"}})},function(e,t,r){"use strict";var n=r(2),i=r(5),o=r(14),a=r(0);const s=({authorList:e})=>{const{arcSite:t}=Object(i.useAppContext)(),r=e.map(((e,r)=>{const{_id:i=null,additional_properties:{original:{role:s,status:l}={role:void 0,status:void 0}}={},name:c,org:u}=e,d=i&&!0===l,f={gacategory:"Article Rail",gaaction:"Author Link",galabel:c,gavalue:r};return Object(a.jsxs)(n.M,{className:"author",m:"$0",sx:{color:"$blueGray.700",fontSize:"$1",lineHeight:"$none"},children:[d?Object(a.jsx)(n.t,{className:"gaevent",textColor:"$red.600",sx:{color:"$red.600",fontWeight:"$semibold"},href:Object(o.g)({link:`/team/${i}/`,arcSite:t}),gaTag:f,title:`View ${c}'s author page`,children:c}):c,s&&`, ${s}`,u&&`, ${u} `]},c)}));return r.length?Object(a.jsx)(n.E,{gap:"$2",className:"byline",children:r}):null};s.displayName="Byline",t.a=s},function(e,t,r){"use strict";var n=r(1),i=r(2),o=r(14),a=r(0);const s=({filteredStories:e,currentIndex:t,arcSite:r,setCondensedCardFocused:n,onBlurResume:s})=>{var l,c;if(0===e.length||t>=e.length)return null;const u=e[t],d=u.canonical_url,f=d?Object(o.g)({link:d,arcSite:r}):void 0,h="string"==typeof u.headlines.basic&&u.headlines.basic.length>1?u.headlines.basic:(null===(l=u.description)||void 0===l||null===(c=l.basic)||void 0===c?void 0:c.length)?u.description.basic:null,p=t+1;return Object(a.jsx)(i.E,{as:"article",gap:"$0",flex:"1 1 auto",width:"$full",position:"absolute",sx:{left:100*t+"vw"},children:Object(a.jsx)(i.t,{href:f,padding:["$2","$3"],gaTag:{gaaction:u.alertClass,gacategory:"Alert Bar",gavalue:p},onFocus:()=>{n(!0)},onBlur:()=>{n(!1),s()},sx:{fontSize:["$-1",null,"$0"],fontWeight:"$semibold",lineHeight:"$tight",color:"$white",width:"$full",alignItems:"center","> a":{alignItems:"center",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"1",overflow:"hidden",textOverflow:"ellipsis",width:"$full",whiteSpace:"nowrap"}},children:h})},u._id)};s.displayName="CondensedAlerts",t.a=Object(n.memo)(s)},function(e,t,r){"use strict";var n=r(1);t.a=({pauseDuration:e,shouldPreventResume:t})=>{const[r,i]=Object(n.useState)(!0),o=Object(n.useRef)(null),a=Object(n.useCallback)((()=>{o.current&&clearTimeout(o.current),i(!1),o.current=setTimeout((()=>{var e;null!==(e=null==t?void 0:t())&&void 0!==e&&e||i(!0),o.current=null}),e)}),[e,t]),s=Object(n.useCallback)((()=>{o.current&&clearTimeout(o.current),o.current=null,i(!1)}),[]),l=Object(n.useCallback)((()=>{o.current&&clearTimeout(o.current),o.current=null,i(!0)}),[]);return Object(n.useEffect)((()=>()=>{o.current&&clearTimeout(o.current)}
2),[]),{isScrolling:r,pause:a,stop:s,start:l}}},function(e,t,r){"use strict";r(1);var n=r(3),i=r(16),o=r.n(i),a=r(2),s=r(20),l=r(5),c=r(226),u=r(33),d=r(175),f=r(46),h=r(54),p=r(0);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const v=({className:e="",promo:t,description:r,textOverlay:n,displayDate:i,textOnly:b=!1,style:g={},list:v="",lazy:y=!0,thirdPartySource:w="",gaCategory:O="",gaAction:j="",gaValue:x="",articleLink:_,showCount:S=null,showSource:E="",headline:k="",wordLimit:C=170,readMore:P=!1,timeline:M=!1,sponsored:$=!1})=>{const{arcSite:T}=Object(l.useAppContext)();let I=null;const A=["livestream","horizontal"].some((e=>v.includes(e)));if(t){const e="resizedUrls"in t?t:Object(f.c)(t);let r={};const{url:n,width:i=800,height:o=450,sizeProps:a={},resizedUrls:s,caption:l=""}=e||{},c=k||null;r={url:n,width:i,height:o,resizedUrls:s,sizeProps:a,lazy:y,alt:c},r.sizeProps.aspectRatio=16/9,r.imgClassName="width_full height_full",I=Object(p.jsx)(u.a,{url:n,width:1280,height:720,lazy:y,placeholder:y,alt:c||l})}const R="localhost"===s.ENVIRONMENT?`${_}?_website=${T}`:_,D={gacategory:O||"Story Card",gaaction:j,galabel:R,gavalue:x},L=b?null:Object(p.jsx)(a.t,{className:"gaevent",sx:{display:"block",width:v.includes("mainContentList")?["$full",null,"$5/12"]:A?"$auto":"$full",height:!n&&"$full"},href:R,target:w?"_blank":"_self",gaTag:D,children:Object(p.jsx)("div",{className:"image relative height_full",children:I})}),N=i&&Object(d.b)(i,3)?Object(p.jsx)(a.t,{className:"time gaevent",sx:{display:"block",color:n||A?"$red.600":"$white",fontFamily:"$gibson",fontWeight:"$semibold",fontSize:"$0",letterSpacing:"$wide",textTransform:"uppercase"},href:R,target:w?"_blank":"_self",gaTag:D,"aria-label":"Go to Article Page",children:Object(p.jsx)(d.a,{dateString:i})}):null,B=Object(p.jsx)(a.t,{className:"time gaevent",sx:{display:"block",color:n||A?"$red.600":"$white",fontFamily:"$gibson",fontWeight:"$semibold",fontSize:"$0",letterSpacing:"$wide",textTransform:"uppercase"},href:R,target:w?"_blank":"_self",gaTag:D,children:"Sponsored"}),z=r&&n?Object(p.jsx)(a.t,{className:"gaevent",href:R,target:w?"_blank":"_self",gaTag:D,children:Object(p.jsx)(a.M,{sx:{fontSize:"$2",lineHeight:"$normal",color:"livestream"===v&&"$white"},children:Object(p.jsx)(c.a,{limit:C,children:r})})}):null,F=P?Object(p.jsxs)("a",{className:"readMore font_semibold font_gibson",href:R,children:[Object(p.jsx)("span",{className:"entity color_light-gray mr-sm",children:"▸"}),Object(p.jsx)("span",{className:"color_red",children:"READ MORE"})]}):null,U=M?Object(p.jsxs)("div",{className:"display_flex column align_items_center",children:[Object(p.jsx)("div",{children:Object(p.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mb-xsm",children:Object(p.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#617083"})})}),Object(p.jsx)("div",{className:"line absolute"})]}):null,H=M?"display_flex row":null;return Object(p.jsxs)("article",{className:o()("storyCard mb-norm",e),style:g,children:[S?Object(p.jsx)("div",{className:"storyCount",style:{fontFamily:"Gibson",fontWeight:"500",fontSize:"1rem",position:"absolute",padding:".25rem .5rem",backgroundColor:"rgba(216, 216, 216, .75)",zIndex:10},children:S}):null,E?Object(p.jsx)("div",{className:"storySource",style:{fontFamily:"Gibson",fontWeight:"500",fontSize:".75rem",position:"absolute",padding:".25rem .5rem",top:0,right:0,backgroundColor:"rgba(216, 216, 216, .75)",zIndex:10},children:E}):null,Object(p.jsxs)(a.E,{gap:A?"$0":v.includes("mainContentList")?["$3",null,"$0"]:"$3",direction:A||v.includes("mainContentList")?["column",null,"row"]:"column",alignItems:A||v.includes("mainContentList")?"center":"flex-start",sx:{height:n?void 0:"$full"},className:o()("relative min",v,H),children:[L,U,Object(p.jsxs)(a.E,{gap:"$1",className:"articleMeta width_full",children:[$?B:N,Object(p.jsx)("a",m({className:"display_block gaevent",href:R,target:w?"_blank":"_self"},D,{children:Object(p.jsx)(h.a,{level:3,className:"no-margin",innerContent:k})})),z,w?Object(p.jsx)("a",{className:"display_block",href:R,children:Object(p.jsx)("p",{className:o()("thirdParty font_gibson font_medium",{color_blue:n,color_white:!n}),children:w})}):null,F]})]})]})};v.propTypes={articleLink:n.string.isRequired,className:n.string,
2style:n.shape(),description:n.string,displayDate:n.string,headline:n.string,isHero:n.bool,textOnly:n.bool,list:n.string,promo:n.shape(),textOverlay:n.bool,sizeProps:n.shape(),lazy:n.bool,showCount:n.oneOfType([n.number,n.string]),showSource:n.string,thirdPartySource:n.string,gaCategory:n.string,gaAction:n.string,gaValue:n.oneOfType([n.number,n.string]),popOut:n.bool,wordLimit:n.oneOfType([n.string,n.number]),readMore:n.bool,timeline:n.bool,sponsored:n.bool},t.a=v},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l({style:e}){return Object(i.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",xmlnsXlink:"http://www.w3.org/1999/xlink",style:a({display:"block",height:"20px",width:"20px"},e),children:[Object(i.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),Object(i.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),Object(i.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),Object(i.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),Object(i.jsx)("path",{fill:"none",d:"M0 0h48v48H0z"})]})}const c=({onClick:e,disabled:t=!1,isLoading:r=!1,text:o="Sign in with Google",variant:a="login",display:s})=>Object(i.jsxs)(n.f,{variant:"$white",size:"sm",height:"$10",flex:"1",type:"button",display:s,disabled:t,loading:r,spinnerColor:"black",spinnerBorderColor:"black",sx:{fontSize:"$1",lineHeight:"20px",padding:"10px 12px"},onClick:e,"data-variant":a,children:[Object(i.jsx)(l,{style:{marginRight:"10px"}}),o]})},function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return A}));var n=r(1),i=r(5);const o=new Map,a=(e,t)=>{o.set(e,t)},s={AD:"ad",CONTENT:"ct"},l={UNPLAYED:"s1",PLAYED:"s2",STOPPED:"s3",COMPLETED:"s4"};class c{constructor(e){this._player=void 0,this._viewStartTime=void 0,this._playStartTime=null,this._adPlayStartTime=null,this._isPlaying=!1,this._isPaused=!1,this._isCompleted=!1,this._isAdPlaying=!1,this._eventHandlers=[],this._cachedPlaylistItem=null,this._cacheTimestamp=0,this._setupEventListeners=()=>{const e=()=>{this._isPlaying=!0,this._isPaused=!1,this._playStartTime||(this._playStartTime=Date.now()),this._clearCache()};this._player.subscribe(e,"playerPlay"),this._eventHandlers.push({handler:e,eventType:"playerPlay"});const t=()=>{this._isPlaying=!1,this._isPaused=!0};this._player.subscribe(t,"playerPause"),this._eventHandlers.push({handler:t,eventType:"playerPause"});const r=()=>{this._isPlaying=!1,this._isPaused=!1,this._isCompleted=!0};this._player.subscribe(r,"playerClipComplete"),this._eventHandlers.push({handler:r,eventType:"playerClipComplete"});const n=()=>{this._isPlaying=!1,this._isPaused=!1,this._isCompleted=!0};this._player.subscribe(n,"playerPlaylistComplete"),this._eventHandlers.push({handler:n,eventType:"playerPlaylistComplete"});const i=()=>{this._isCompleted=!1,this._isPlaying=!1,this._isPaused=!1,this._playStartTime=null,this._clearCache()};this._player.subscribe(i,"playerItemChange"),this._eventHandlers.push({handler:i,eventType:"playerItemChange"});const o=()=>{this._adPlayStartTime=Date.now(),this._isAdPlaying=!0};this._player.subscribe(o,"adImpression"),this._eventHandlers.push({handler:o,eventType:"adImpression"});const a=()=>{this._isAdPlaying=!1};this._player.subscribe(a,"adComplete"),this._eventHandlers.push({handler:a,eventType:"adComplete"});const s=()=>{this._isAdPlaying=!1};this._player.subscribe(s,"adSkipped"),this._eventHandlers.push({handler:s,eventType:"adSkipped"})},this._cleanup=()=>
2{this._eventHandlers.forEach((({handler:e,eventType:t})=>{this._player.unsubscribe(e,t)})),this._eventHandlers=[],this._clearCache()},this._clearCache=()=>{this._cachedPlaylistItem=null,this._cacheTimestamp=0},this._getCurrentPlaylistItem=()=>{const e=Date.now();if(this._cachedPlaylistItem&&e-this._cacheTimestamp<c.CACHE_DURATION)return this._cachedPlaylistItem;try{var t,r;return this._cachedPlaylistItem=null===(t=this._player)||void 0===t||null===(r=t.getCurrentPlaylistItem)||void 0===r?void 0:r.call(t),this._cacheTimestamp=e,this._cachedPlaylistItem}catch(e){return null}},this.isReady=()=>{var e;const t=!(!this._player||!this._player.sessionId),r=this._getCurrentPlaylistItem(),n=!!r,i=!!((null==r?void 0:r.title)&&(null==r?void 0:r.mediaid)&&((null==r?void 0:r.image)||(null==r?void 0:r.hiResImage)||(null==r||null===(e=r.images)||void 0===e?void 0:e.length)));return t&&n&&i},this.getTitle=()=>{const e=this._getCurrentPlaylistItem();if(!e)return"";return(e.title||e.plot||"").trim()},this.getVideoPath=()=>{const e=this._getCurrentPlaylistItem();if(!e)return"";const t=e.mediaid||e.ac_mediaid||e.videoId||"";return t?`/anyclip/video/${t}`:e.refId?`/anyclip/video/ref/${e.refId}`:""},this.getContentType=()=>this._isAdPlaying?s.AD:s.CONTENT,this.getTotalDuration=()=>{const e=this._getCurrentPlaylistItem();return(null==e?void 0:e.duration)||0},this.getState=()=>{var e,t,r,n,i,o;return this._player.isDestroyed()?(this._cleanup(),l.STOPPED):this._isCompleted?l.COMPLETED:this._isPlaying?l.PLAYED:this._isPaused||(null===(e=this._player)||void 0===e||null===(t=e.player)||void 0===t||null===(r=t.paused)||void 0===r?void 0:r.call(t))?l.STOPPED:(null===(n=this._player)||void 0===n||null===(i=n.player)||void 0===i||null===(o=i.paused)||void 0===o?void 0:o.call(i))?l.UNPLAYED:l.PLAYED},this.getCurrentPlayTime=()=>{try{var e,t,r;const n=null===(e=this._player)||void 0===e||null===(t=e.player)||void 0===t||null===(r=t.currentTime)||void 0===r?void 0:r.call(t);return null!=n?n:0}catch(e){return 0}},this.getBitrate=()=>{const e=this._player.playlist(),t=this._player.playlistCurrentIndex();if(!e||!e[t])return 0;const r=e[t].sources||[];if(r.length>0&&r[0].files){const{files:e}=r[0],t=e[e.length-1];if(null==t?void 0:t.width){if(t.width>=1920)return 5e3;if(t.width>=1280)return 3e3;if(t.width>=852)return 1500;if(t.width>=640)return 1e3}}return 0},this.getThumbnailPath=()=>{const e=this._getCurrentPlaylistItem();if(!e)return"";if(e.image&&!e.image.startsWith("blob:"))return e.image;if(e.images&&Array.isArray(e.images)){const t=e.images.filter((e=>e.file&&!e.file.startsWith("blob:")));if(t.length>0){return t.sort(((e,t)=>{const r=(e.width||0)*(e.height||0);return(t.width||0)*(t.height||0)-r}))[0].file}}return""},this.getPlayerType=()=>{var e;const t=null===(e=this._player)||void 0===e?void 0:e.sessionId;if(t){const e=(e=>o.get(e))(t);if(e)return`anyclip-${e}`}return"anyclip"},this.getViewStartTime=()=>Date.now()-this._viewStartTime,this.getViewPlayTime=()=>this._playStartTime?Date.now()-this._playStartTime:0,this.getViewAdPlayTime=()=>this._adPlayStartTime?Date.now()-this._adPlayStartTime:0,this.destroy=()=>{this._cleanup()},this._player=e,this._viewStartTime=Date.now(),this._setupEventListeners()}static getAdPosition(){return""}static verify(e){return!!(e&&"function"==typeof e.getCurrentPlaylistItem&&"function"==typeof e.play&&"function"==typeof e.pause&&e.player&&e.sessionId&&e.widgetId)}}c.CACHE_DURATION=1e3,c.ContentType=s,c.AdPosition={PREROLL:"a1",MIDROLL:"a2",POSTROLL:"a3",OVERLAY:"a4",SPECIAL:"a5"},c.VideoState=l;const u=["playerReady","playerPlaylistLoaded","playerItemChange","playerOutOfPort","playerFullscreen","playerVolume","playerMute","playerPause","playerPlay","CarouselItemClick","playerClickNext","playerSeek","FloatingPlayerClosed","landingPageClick","CloseCaptionsChangedOnClick","ChapterStart","ChapterEnd","ChapterClick","adImpression","adSkipped","adFirstQuartile","adMidpoint","adThirdQuartile","adComplete","adClick","adPaused","adPlayed","playerPlaylistComplete","playerClipImpression","playerFirstQuartile","playerMidpoint","playerThirdQuartile","playerClipComplete","playerDisplayClick","ClipSeek","ShareScreenOpen","playerTheaterModeShare","ShareVideoClicked","SocialLikeClicked","SocialUnlikeClicked","firstPlayClickedOnClickToPlay","playerPFS"];var d=r(42),f=r(169);
2const h="anyclip:video:",p={};let b=!1,m=0;const g=(e,t)=>{if("undefined"==typeof document)return;const r=(e=>`${h}${e}`)(e);if(p[r]===t)return;let n=document.head.querySelector(`meta[name="${r}"]`);n||(n=document.createElement("meta"),n.name=r,document.head.appendChild(n)),n.content=t,p[r]=t},v=()=>{Object(n.useEffect)((()=>(m+=1,(()=>{if("undefined"==typeof document||b)return;b=!0,document.head.querySelectorAll(`meta[name^="${h}"]`).forEach((e=>{p[e.name]=e.content,e.setAttribute("data-server-rendered","true")}))})(),()=>{m-=1,"undefined"!=typeof document&&(Object.keys(p).forEach((e=>{const t=document.head.querySelector(`meta[name="${e}"]`);t&&!t.dataset.serverRendered&&t.remove()})),Object.keys(p).forEach((e=>{delete p[e]})))})),[]);return{syncMetaTag:Object(n.useCallback)(((e,t)=>{g(e,t)}),[])}},y=["adImpression","adComplete","adSkipped","adClick","adPaused","adPlayed","playerClipImpression","playerClipComplete","playerItemChange","playerPause","playerPlay","playerOutOfPort","playerPlaylistComplete"],w=()=>{var e,t,r,o,a,s,l,c;const{globalContent:u}=Object(i.useAppContext)(),{loadMetadata:h,setPlayheadPosition:p,stopTracking:b,endTracking:m,handleBeforeUnload:g,sdkInstance:w,isAnalyticsAllowed:O}=Object(f.b)(),{syncMetaTag:j}=v(),x=(null==u?void 0:u.section)||(null==u||null===(e=u.taxonomy)||void 0===e||null===(t=e.primary_section)||void 0===t?void 0:t.name)||(null==u||null===(r=u.taxonomy)||void 0===r||null===(o=r.sections)||void 0===o||null===(a=o[0])||void 0===a?void 0:a.name)||"Local News",_=(null==u?void 0:u.tag)||((null==u||null===(s=u.taxonomy)||void 0===s||null===(l=s.tags)||void 0===l?void 0:l.length)?null==u||null===(c=u.taxonomy)||void 0===c?void 0:c.tags.map((e=>e.text)).join(", "):"General News"),S=Object(n.useRef)({}),E=Object(n.useCallback)((e=>{const t={isRunning:!1,totalElapsedTime:0,videoTime:0,adTime:0,currentMode:"idle",intervalId:null,adType:null,hasContentLoaded:!1};return S.current[e]=t,t}),[]),k=Object(n.useCallback)((async(e,t,r)=>{if(!(t&&r&&r.sessionId&&O))return;const{sessionId:n}=r,i=S.current[n]||E(n);if(y.includes(e))switch(e){case"playerClipImpression":if(i.isRunning&&"video"!==i.currentMode&&Object(d.f)(i,b,i.currentMode,i.videoTime),!i.isRunning){if("video"!==i.currentMode&&i.totalElapsedTime>0){const e=Object(d.e)(t,x,_);i.hasContentLoaded=h(e),i.currentMode="video",j(t.mediaid,e.program)}i.hasContentLoaded&&(Object(d.j)(i,p,"video",r),i.currentMode="video")}break;case"adImpression":{const e=Object(d.c)(Object(d.h)(r));if(i.isRunning&&"ad"!==i.currentMode&&Object(d.f)(i,b,i.currentMode,e),!i.hasContentLoaded){const e=Object(d.e)(t,x,_);i.hasContentLoaded=h(e)}i.videoTime=e;const n=Object(d.d)(t,e,i.videoTime);i.adType=n.type,h(n),Object(d.j)(i,p,"ad",r);break}case"playerPlay":if(!i.isRunning&&"idle"===i.currentMode&&0===i.videoTime&&!i.hasContentLoaded){const e=Object(d.e)(t,x,_);i.hasContentLoaded=h(e),Object(d.j)(i,p,"video",r)}if(!i.isRunning&&i.hasContentLoaded&&"video"===i.currentMode&&i.videoTime>0){const e=Object(d.e)(t,x,_);h(e),Object(d.j)(i,p,"video",r)}break;case"playerPause":if(i.isRunning&&"video"===i.currentMode){const e=Object(d.c)(Object(d.h)(r));Object(d.f)(i,b,i.currentMode,e)}break;case"adComplete":case"adSkipped":i.isRunning&&"ad"===i.currentMode&&(Object(d.f)(i,b,i.currentMode,i.adTime),Object(d.g)(i,i.currentMode));break;case"adClick":case"adPaused":i.isRunning&&"ad"===i.currentMode&&Object(d.f)(i,b,i.currentMode,i.adTime);break;case"adPlayed":i.isRunning&&"ad"===i.currentMode&&Object(d.j)(i,p,"ad",r);break;case"playerClipComplete":case"playerItemChange":{if("video"===i.currentMode){const e=Object(d.c)(Object(d.h)(r));m(e),Object(d.f)(i,b,i.currentMode,e)}const e=Object(d.e)(t,x,_);j(t.mediaid,e.program),E(n);break}case"playerPlaylistComplete":E(n);break;case"playerOutOfPort":if("video"===i.currentMode||"ad"===i.currentMode){const e=Object(d.c)(Object(d.h)(r)),t="video"===i.currentMode?e:i.adTime;Object(d.f)(i,b,i.currentMode,t)}break;default:console.error(`[NIELS] Unhandled event: ${e} for widget ${n}`)}}),[O,E,b,x,_,h,j,p,m]),C=Object(n.useCallback)((e=>{const t=S.current[e];if(t){if(t.isRunning&&Object(d.f)(t,b,t.currentMode,t.videoTime,!0),"ad"===t.currentMode&&"midroll"===t.adType)g(t.adTime,t.currentMode);else if("video"===t.currentMode){var r,n;const i=null===(r=window.anyclip)||void 0===r||null===(n=r.getWidget)||void 0===n?void 0:n.call(r,null,e),o=i?Object(d.c)(Object(d.h)(i)):t.videoTime;g(o,t.currentMode)}delete S.current[e]}}),[g,b]);return Object(n.useEffect)((()=>{!O&&w&&(Object.keys(S.current).forEach((e=>{C(e)})),S.current={})}),[O,C,w]),{handleAnyClipEventsForNielsen:k,cleanUpNielsen:C}};
2var O=r(170),j=r(20),x=r(31),_=r(84);const S=["gmg-sandbox","localhost"].includes(j.ENVIRONMENT),E="chartbeat-mab-script",k="//static.chartbeat.com/js/chartbeat_mab.js",C="chartbeat-video-script",P="//static.chartbeat.com/js/chartbeat_video.js",M="No Author Found",$="General News Section";const T=["featured","body","sponsored","recommended"];function I(e,t){const{arcSite:r,siteProperties:o}=Object(i.useAppContext)(),a=Object(O.a)(),{handleAnyClipEventsForNielsen:s,cleanUpNielsen:l}=w(),c=!!r&&"wplg"!==r&&!!(null==o?void 0:o.enableNielsen),d=!!t&&T.includes(t);Object(n.useEffect)((()=>{if(!a||!(null==e?void 0:e.sessionId)||!c)return;const t=()=>{(null==e?void 0:e.sessionId)&&d&&l(e.sessionId)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[a,d,null==e?void 0:e.sessionId,c,l]),Object(n.useEffect)((()=>{if(!e)return;const r=[];return u.forEach((n=>{const i=()=>{((t,r)=>{const n=e.getCurrentPlaylistItem(),{mediaid:i,title:o,refId:l,videoId:u}=n;e.sessionId&&d&&a&&c&&s(t,n,e),"CarouselItemClick"!==t&&"adSkipped"!==t||e.player.muted(!1);const{dataLayer:f=[]}=window,h={event:`anyClipVideoEvent_${t}`,anyClipEvent:t,arcVideoId:l,anyClipDistroId:i,anyClipId:u,videoTitle:o,anyClipPlayer:r};f.push(h)})(n,t)};e.subscribe(i,n),r.push({handler:i,event:n})})),()=>{r.forEach((({handler:t,event:r})=>{e.unsubscribe(t,r)}))}}),[a,s,d,t,e,c])}function A({widgetId:e,floating:t=!1,loopFirstVideo:r=!1,isWeatherArticle:o=!1,type:s}){const[l,u]=Object(n.useState)(),d=Object(n.useRef)(),{pushWidget:f}=function(){var e,t,r,o,a,s;const l="undefined"!=typeof window,{siteProperties:u,globalContent:d}=Object(i.useAppContext)(),{uid:f}=null!==(e=null==u?void 0:u.chartbeat)&&void 0!==e?e:{},{status:h}=Object(x.b)(),[p,b]=Object(n.useState)(!1),m=Object(n.useRef)(!1),g=S?Object(_.a)(null==u||null===(t=u.hostname)||void 0===t?void 0:t.sandbox):Object(_.a)(null==u||null===(r=u.hostname)||void 0===r?void 0:r.gmg),v=Object(n.useMemo)((()=>{var e;return(null==d||null===(e=d.credits)||void 0===e?void 0:e.by)&&d.credits.by.map((e=>e.name)).filter((e=>e&&e.trim())).join(",")||M}),[null==d||null===(o=d.credits)||void 0===o?void 0:o.by]),y=Object(n.useMemo)((()=>{var e,t;return(null==d||null===(e=d.taxonomy)||void 0===e||null===(t=e.primary_section)||void 0===t?void 0:t.name)||$}),[null==d||null===(a=d.taxonomy)||void 0===a||null===(s=a.primary_section)||void 0===s?void 0:s.name]);Object(n.useEffect)((()=>{l&&f&&g&&(m.current||(m.current=!0,async function(){try{if(window._sf_startpt=Date.now(),window._cbv||(window._cbv=[]),window._cbv_strategies||(window._cbv_strategies=[]),window._cbq||(window._cbq=[]),"string"!=typeof f||"string"!=typeof g)throw new Error("Chartbeat configuration failed: uid or domain is not a string");window._sf_async_config={uid:f,domain:g,useCanonical:!0,useCanonicalDomain:!0,flickerControl:!1,autoDetect:!1,sections:y,authors:v};const e="loggedIn"===h?"lgdin":"anon";window._cbq.push(["_acct",e]),window._cbv_strategies.some((e=>e===c||"AnyClipChartbeatStrategy"===(null==e?void 0:e.name)))||window._cbv_strategies.push(c);const[t,r]=await Promise.all([Object(_.b)(E,k),Object(_.b)(C,P)]);if(!t||!r)throw new Error("One or more Chartbeat scripts failed to load");_.e.length>0&&Object(_.c)(),b(!0)}catch(e){console.error("[Chartbeat:init]","Chartbeat initialization failed",e),m.current=!1,b(!1)}}()))}),[l,f,g,v,y,h]);const w=Object(n.useCallback)((e=>!!(null==e?void 0:e.sessionId)&&(p?Object(_.d)(e):(_.e.some((t=>t.widget.sessionId===e.sessionId))||_.e.push({widget:e}),!1))),[p]);return Object(n.useMemo)((()=>({isChartbeatReady:p,pushWidget:w})),[p,w])}();Object(n.useEffect)((()=>{const n=[],i=i=>{if(window.anyclip&&i.data&&"string"==typeof i.data&&0===i.data.indexOf("lre:playerReady://")){const l=JSON.parse(i.data.slice(18)),c=window.anyclip.getWidget(null,l.sessionId);if(!c||c.customWidgetId!==e)return;if(c.floatingModeToggle(t),"vertical"===s&&c.pauseMon(),s&&c.sessionId&&a(c.sessionId,s),(r||o)&&c){const e=e=>{if("playerClipComplete"===e.type){const e=c.getCurrentPlaylistItem();e&&c.setPlaylist([e])}};c.subscribe(e,"playerClipComplete"),n.push({handler:e,event:"playerClipComplete"})}d.current=c,u(c),f(c)}};return window.addEventListener("message",i),()=>
2{window.removeEventListener("message",i),n.forEach((({handler:e,event:t})=>{var r;null===(r=d.current)||void 0===r||r.unsubscribe(e,t)})),d.current=void 0}}),[t,o,r,f,s,e]);return Object(n.useCallback)((()=>({widget:l,play:()=>{null==l||l.play()},isPaused:()=>null==l?void 0:l.player.paused(),pause:()=>{null==l||l.pause()},mute:()=>{null==l||l.player.muted(!0)},isMuted:()=>null==l?void 0:l.player.muted(),unmute:()=>{null==l||l.player.muted(!1)},goIdle:()=>{null==l||l.goIdle()},goActive:()=>{null==l||l.goActive()},fullscreen:e=>{e?null==l||l.setPseudoFS(e):null==l||l.setPseudoFS(!1)},hideUI:e=>{e?null==l||l.hideUI(e):null==l||l.hideUI()},playlistCurrentIndex:e=>{null==l||l.playlistCurrentIndex(e)},getCurrentPlaylistItem:()=>null==l?void 0:l.getCurrentPlaylistItem(),getPlaylist:()=>null==l?void 0:l.getTMplaylist(),setPlaylist:(e,t)=>{null==l||l.setPlaylist(e,t)},floatingModeToggle:e=>{null==l||l.floatingModeToggle(e)},currentTime:()=>null==l?void 0:l.player.currentTime(),setCurrentTime:e=>{null==l||l.setCurrentTime(e)}})),[l])()}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(237),i=r(323),o=r(322),a=r(324);function s(){const t="0.0.0";if("undefined"!=typeof window)return t;try{return e.versions.node||t}catch(e){return t}}function l(e){const t=function(e){const t={techVersion:s(),sdkCode:"T",sdkSemver:o.a.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e),r=Object(i.a)(t);try{const e=function(e){const t=e.split(".");return`${t[0]}.${t[1]}`}(r.techVersion),t=Object(n.a)(r.sdkSemver),i=Object(n.a)(e),o=Object(a.a)(r.osVersion),s=r.feature,l=r.sdkCode,{product:c,osType:u}=r;return`${"D"}${c}${l}${t}${i}${u}${o}${s}`}catch(e){return"E"}}}).call(this,r(53))},function(e,t,r){"use strict";(function(e){function n(t){let r="";return r="undefined"!=typeof window?btoa(encodeURI(decodeURI(t))):e.Buffer.from(t).toString("base64"),r.replace(/\+/g,"-").replace(/\//g,"_")}r.d(t,"a",(function(){return n}))}).call(this,r(60))},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(165),i=r(135);function o(e){let t="";const r=6*e.split(".").length,o=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e),a=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map((e=>{const t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return Object(i.a)(e,2,"0")})).join(".")}(o);let s=parseInt(a.split(".").join("")).toString(2);if(s=Object(i.a)(s,r,"0"),s.length%6!=0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach((e=>{t+=n.a[e]})),t}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s}));var n=r(17);function i(){return new n.a("auto")}function o(){return new n.a("mp4")}function a(){return new n.a("ogv")}function s(){return new n.a("webm")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="circle-exclamation",i=["exclamation-circle"],o="f06a",a="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faCircleExclamation=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(3),o=r(1),a=r(0);const s=({customFields:{widgetId:e,widgetType:t="app",appType:r="proform",minHeight:i=757}})=>(Object(o.useEffect)((()=>{let e=null;return"app"===t&&(e=document.createElement("script"),e.src="https://xp.audience.io/widget.js",e.async=!0,document.body.appendChild(e)),"experience"===t&&(e=document.createElement("script"),e.src="https://xp.audience.io/sdk.js",e.async=!0,e.defer=!0,document.body.appendChild(e)),()=>{e&&document.body.removeChild(e)}}),[t]),"app"===t?Object(a.jsx)(n.e,{className:"aptivada-widget","data-widget-id":e,"data-widget-type":t,minHeight:`${i}px`,children:Object(a.jsxs)("div",{children:[Object(a.jsx)("div",{style:{background:'#ffffff url
2("https://cdn3.aptivada.com/images/iframeLoader.gif") no-repeat center',minHeight:`${i}px`}}),Object(a.jsx)("a",{style:{display:"block",maxWidth:"fit-content",marginLeft:"auto",marginRight:"auto"},target:"_blank",href:`https://xp.audience.io/${r}/${e}`,rel:"noopener noreferrer",children:"Campaign not loading? Click here"})]})}):"experience"===t?Object(a.jsx)("div",{className:"audience-container","data-load-enabled":"true","data-load-behavior":"embed","data-load-revisit-enabled":"true","data-load-revisit-behavior":"embed","data-id":e,"data-type":t}):void 0);s.propTypes={customFields:i.shape({widgetId:i.string.isRequired,widgetType:i.oneOf(["app","experience"]).tag({name:"Widget Type",description:"The type of widget to load, should be set to 'experience' if you want to load an experience otherwise it should be set to 'app'",labels:{app:"App",experience:"Experience"},defaultValue:"app"}),appType:i.oneOf(["contest","gallery","sport","quiz","poll","instant","award","proform","experience","popularity","countdown"]).tag({name:"App Type",description:"The type of app to load as found in the Audience.io dashboard",labels:{contest:"Contest",gallery:"Gallery",sport:"Sport",quiz:"Quiz",poll:"Poll",instant:"Instant",award:"Award",proform:"Proform",experience:"Experience",popularity:"Popularity",countdown:"Countdown"},defaultValue:"proform"}),minHeight:i.number})},t.default=s},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34),i=function(){function e(e,t,r){void 0===e&&(e=""),this.sessionIndicator=".session",this.length=1,this.baseDomain=e,this.cookieString=t?this.sessionIndicator:"",this.doc=document,this.expDate=r}return e.prototype.isSession=function(e){var t="".concat(e).concat(this.sessionIndicator);return document.cookie.indexOf(t)>=0||this.cookieString.indexOf(this.sessionIndicator)>=0},e.prototype.getItem=function(e){if(!e||!this._has(e))return null;var t="(?:^|.*;\\s*)"+encodeURIComponent("".concat(e).concat(this.isSession(e)?this.sessionIndicator:"")).replace(/[-.+*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return JSON.parse(decodeURIComponent(this.doc.cookie.replace(new RegExp(t),"$1")))},e.prototype.setItem=function(e,t){if(e){var r=encodeURIComponent(JSON.stringify(t)),i=encodeURIComponent("".concat(e).concat(this.isSession(e)?this.sessionIndicator:"")),o=this.expDate&&e===n.PROFILE_STORAGE_KEY?new Date(this.expDate).toUTCString():"Tue, 19 Jan 2038 03:14:07 GMT";if(this.cookieString="".concat(i,"=").concat(r,"; ").concat(this.isSession(e)?"":"expires="+o+"; ",";").concat(this.baseDomain?"domain=".concat(this.baseDomain,";"):""," path=/"),!(t&&r.length>4e3))return this.doc.cookie=this.cookieString,t;console.warn("".concat(n.logPrefix,' Unable to save data to key "').concat(e,'" due to the size of the data (').concat(this.cookieString.length," bytes is greater than maximum allowed 4 KB)"))}},e.prototype.removeItem=function(e){e&&this._has(e)&&(this.doc.cookie=encodeURIComponent("".concat(e).concat(this.isSession(e)?this.sessionIndicator:""))+"=; Max-Age=-99999999;".concat(this.baseDomain?"domain=".concat(this.baseDomain,";"):""," path=/"))},e.prototype.clear=function(){console.warn("".concat(n.logPrefix," unsupported method, please use .removeItem(key) instead."))},e.prototype.key=function(e){return console.warn("".concat(n.logPrefix," unsupported method, please use getItem(key) instead.")),"N/A"},e.prototype._has=function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[-.+*]/g,"\\$&")+"\\s*\\=").test(this.doc.cookie)||new RegExp("(?:^|;\\s*)"+encodeURIComponent(e+this.sessionIndicator).replace(/[-.+*]/g,"\\$&")+"\\s*\\=").test(this.doc.cookie)},e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.isConfigOptions=void 0;var n=r(4),i=r(34),o=n.__importDefault(r(30)),a=n.__importDefault(r(39)),s=r(38);function l(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return o.default._configOptions?[2,o.default._configOptions]:[2,fetch("".concat(o.default.apiOrigin,"/identity/public/v1/config"),{method:"GET",cac
2he:"no-cache",headers:n.__assign({},i.headers)}).then(a.default).then((function(e){if((0,s.isAPIErrorResponse)(e))throw e;return o.default._configOptions=e,e}))]}))}))}t.isConfigOptions=function(e){return void 0!==e.signinRecaptcha},t.getConfig=l,t.default=l},function(e,t,r){"use strict";function n(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(window.atob(t))}catch(t){console.error("[ArcSDK] Error parsing JWT: ".concat(e,"\n    ").concat(t))}}Object.defineProperty(t,"__esModule",{value:!0}),t.jwtHasExp=t.isJwtExpired=t.parseJwt=void 0,t.parseJwt=n,t.isJwtExpired=function(e){return 1e3*n(e).exp<=Date.now()},t.jwtHasExp=function(e){return!!n(e).exp}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchLogoutEvent=t.facebookSignOut=void 0;var n=r(4),i=r(38),o=n.__importDefault(r(30)),a=r(34),s=n.__importDefault(r(39)),l=n.__importDefault(r(246)),c=r(91),u=r(347);t.default=function(){return n.__awaiter(this,void 0,void 0,(function(){var e,r=this;return n.__generator(this,(function(l){switch(l.label){case 0:return o.default.userIdentity.accessToken?[2,o.default.heartbeat().then((function(){return fetch("".concat(o.default.apiOrigin,"/identity/public/v1/auth/token"),{method:"DELETE",headers:n.__assign({Authorization:"Bearer ".concat(o.default.userIdentity.accessToken)},a.headers)}).then(s.default).then((function(e){return n.__awaiter(r,void 0,void 0,(function(){return n.__generator(this,(function(r){switch(r.label){case 0:return o.default.clearSession(),(0,t.dispatchLogoutEvent)(),[4,(0,t.facebookSignOut)()];case 1:if(r.sent(),globalThis.gapi)try{globalThis.gapi.auth2.getAuthInstance().signOut()}catch(e){console.error("error signing out of google",e)}if(globalThis.google)try{globalThis.google.accounts.id.disableAutoSelect()}catch(e){console.error("[Arc Identity SDK]: error signing out of google",e)}if((0,i.isAPIErrorResponse)(e))throw e;return[2,null]}}))}))})).catch((function(e){return Promise.reject(e)}))}))]:[3,1];case 1:if(o.default.clearSession(),(0,t.dispatchLogoutEvent)(),globalThis.gapi)try{globalThis.gapi.auth2.getAuthInstance().signOut()}catch(e){console.error("error signing out of google",e)}if(globalThis.google)try{globalThis.google.accounts.id.disableAutoSelect()}catch(e){console.error("[Arc Identity SDK]: error signing out of google",e)}l.label=2;case 2:return l.trys.push([2,4,,5]),[4,(0,t.facebookSignOut)()];case 3:return l.sent(),[3,5];case 4:return e=l.sent(),console.error("error signing out of facebook",e),[3,5];case 5:throw new Error("No access token found, user is already logged out")}}))}))};t.facebookSignOut=function(){return n.__awaiter(void 0,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return window.FB?[4,(0,l.default)()]:[3,2];case 1:if(e=t.sent(),(0,c.isFacebookLoginResponse)(e)&&"connected"===e.status)try{return[2,window.FB.logout((function(){return Promise.resolve(null)}))]}catch(e){return[2,Promise.reject(e)]}t.label=2;case 2:return[2,Promise.resolve(null)]}}))}))};t.dispatchLogoutEvent=function(){return(0,u.fireEvent)("ArcSDK.logout")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFacebookLoginStatus=void 0;t.getFacebookLoginStatus=function(e){return new Promise((function(t,r){try{window.FB.getLoginStatus((function(e){if(!e)throw new Error("Failed to get a response from FB");t(e)}),e)}catch(e){r(e)}}))},t.default=t.getFacebookLoginStatus},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(38),o=n.__importDefault(r(39)),a=n.__importDefault(r(30)),s=n.__importStar(r(153)),l=r(34);t.default=function(e,t){return(0,s.default)(s.RecaptchaMethod.MAGIC_LINK,t).then((function(){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/auth/magiclink"),{method:"POST",headers:l.headers,body:JSON.stringify({email:e,recaptchaToken:t})}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return!0}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(85),o=n.__importDefault(r(39)),a=n.__importDefault(r(30)),s=r(34);t.default=function(e){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/auth/magiclink/").concat(e),{method:"GET",headers:s.headers}).then(o.default).then((function(e){if((0,i.isUserIdentity)(e))return a.default.userIdentity=e,a.default.userIdentity;throw e}))}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.ONGOING_FETCHES=void 0;var n=r(34);t.ONGOING_FETCHES=new Map,t.default=function(e,r,i){if(void 0===r&&(r={}),t.ONGOING_FETCHES.has(i))return console.info("".concat(n.logPrefix," ").concat(i," cannot be called until the previous to ").concat(i," completes")),t.ONGOING_FETCHES.get(i);var o=fetch(e,r).finally((function(){t.ONGOING_FETCHES.delete(i)}));return t.ONGOING_FETCHES.set(i,o),o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSwgAccessToken=t.isSwgAccessTokenResponse=void 0;var n=r(4),i=n.__importDefault(r(39)),o=r(34),a=n.__importDefault(r(30));function s(e){return void 0!==e.accessToken}t.isSwgAccessTokenResponse=s;t.getSwgAccessToken=function(){return n.__awaiter(void 0,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return e=n.__assign({},o.headers),a.default.userIdentity&&a.default.userIdentity.accessToken&&a.default.userIdentity.refreshToken?[4,a.default.heartbeat()]:[3,2];case 1:t.sent(),e.Authorization="Bearer ".concat(a.default.userIdentity.accessToken),t.label=2;case 2:return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/swg/accesstoken"),{method:"GET",headers:e}).then(i.default).then((function(e){if(s(e))return e;throw e}))]}}))}))},t.default=t.getSwgAccessToken},function(e,t,r){"use strict";var n=r(32).Buffer,i=r(252).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(36)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){e.exports=i;var n=r(124).EventEmitter;function i(){n.call(this)}r(36)(i,n),i.Readable=r(191),i.Writable=r(391),i.Duplex=r(392),i.Transform=r(393),i.PassThrough=r(394),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var i=r(156);e.exports=y;var o,a=r(241);y.ReadableState=v;r(124).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=r(254),c=r(32).Buffer,u=t.Uint8Array||function(){};var d=Object.create(r(125));d.inherits=r(36);var f=r(386),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,b=r(387),m=r(255);d.inherits(y,l);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};
vendor: 5,654 bytes, line 2
2var n=t instanceof(o=o||r(92));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(126).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||r(92),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,_(e)}(e,a)):(i||(o=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):O(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?O(e,a,t,!1):E(e,a)):O(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),E(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},y.prototype.unshift=function(e){return w(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return p||(p=r(126).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var j=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),M(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function C(e){h("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function $(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function T(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):_(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;
vendor: 6,590 bytes, line 2
2return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?$(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:y;function c(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",d),e.removeListener("error",m),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",b),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){h("onend"),e.end()}o.endEmitted?i.nextTick(l):r.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",d);var f=!1;var p=!1;function b(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==A(o.pipes,e))&&!f&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){h("onerror",t),y(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),y()}function v(){h("onfinish"),e.removeListener("close",g),y()}function y(){h("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=A(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&_(this):i.nextTick(C,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(P,e,t))}(this,e)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=$}).call(this,r(60),r(53))},function(e,t,r){e.exports=r(124).EventEmitter},function(e,t,r){"use strict";var n=r(156);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(389),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(60))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}
vendor: 5,556 bytes, line 2
2e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(60))},function(e,t,r){"use strict";e.exports=a;var n=r(92),i=Object.create(r(125));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(36),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){var n=r(36),i=r(107),o=r(32).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var v=0;v<64;++v){var y=m+f(l)+c(l,p,b)+a[v]+r[v]|0,w=d(n)+u(n,i,o)|0;m=b,b=p,p=l,l=s+y|0,s=o,o=i,i=n,n=y+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,r){var n=r(36),i=r(107),o=r(32).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
vendor: 18,150 bytes, line 2
21322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,O=0|this._bl,j=0|this._cl,x=0|this._dl,_=0|this._el,S=0|this._fl,E=0|this._gl,k=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var P=t[C-30],M=t[C-30+1],$=h(P,M),T=p(M,P),I=b(P=t[C-4],M=t[C-4+1]),A=m(M,P),R=t[C-14],D=t[C-14+1],L=t[C-32],N=t[C-32+1],B=T+D|0,z=$+R+g(B,T)|0;z=(z=z+I+g(B=B+A|0,A)|0)+L+g(B=B+N|0,N)|0,t[C]=z,t[C+1]=B}for(var F=0;F<160;F+=2){z=t[F],B=t[F+1];var U=u(r,n,i),H=u(w,O,j),V=d(r,w),G=d(w,r),W=f(s,_),q=f(_,s),K=a[F],Y=a[F+1],X=c(s,l,v),J=c(_,S,E),Z=k+q|0,Q=y+W+g(Z,k)|0;Q=(Q=(Q=Q+X+g(Z=Z+J|0,J)|0)+K+g(Z=Z+Y|0,Y)|0)+z+g(Z=Z+B|0,B)|0;var ee=G+H|0,te=V+U+g(ee,G)|0;y=v,k=E,v=l,E=S,l=s,S=_,s=o+Q+g(_=x+Z|0,x)|0,o=i,x=j,i=n,j=O,n=r,O=w,r=Q+te+g(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+O|0,this._cl=this._cl+j|0,this._dl=this._dl+x|0,this._el=this._el+_|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+k|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,O)|0,this._ch=this._ch+i+g(this._cl,j)|0,this._dh=this._dh+o+g(this._dl,x)|0,this._eh=this._eh+s+g(this._el,_)|0,this._fh=this._fh+l+g(this._fl,S)|0,this._gh=this._gh+v+g(this._gl,E)|0,this._hh=this._hh+y+g(this._hl,k)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,r){"use strict";var n=r(36),i=r(399),o=r(86),a=r(32).Buffer,s=r(262),l=r(193),c=r(194),u=a.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,u],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,o),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},function(e,t,r){var n=r(190);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,r){t.pbkdf2=r(401),t.pbkdf2Sync=r(267)},function(e,t,r){(function(t){var r=Math.pow(2,30)-1;function n(e,r){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(r+" must be a buffer or string")}e.exports=function(e,t,i,o){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>r||o!=o)throw new TypeError("Bad key length")}}).call(this,r(51).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(53))},function(e,t,r){var n=r(262),i=r(193),o=r(194),a=r(265),s=r(266),l=r(32).Buffer,c=l.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var a=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=l.concat([t,c],s));for(var d=l.allocUnsafe(s+u[e]),f=l.allocUnsafe(s+u[e]),h=0;h<s;h++)d[h]=54^t[h],f[h]=92^t[h];var p=l.allocUnsafe(s+r+4);d.copy(p,0,0,s),this.ipad1=p,this.ipad2=d,this.opad=f,this.alg=e,this.blocksize=s,this.hash=a,this.size=u[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){a(e,t,r,n),l.isBuffer(e)||(e=l.from(e,s)),l.isBuffer(t)||(t=l.from(t,s));var o=new d(i=i||"sha1",e,t.length),c=l.allocUnsafe(n),f=l.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var h=0,p=u[i],b=Math.ceil(n/p),m=1;m<=b;m++){f.writeUInt32BE(m,t.length);for(var g=o.run(f,o.ipad1),v=g,y=1;y<r;y++){v=o.run(v,o.ipad2);for(var w=0;w<p;w++)g[w]^=v[w]}g.copy(c,h),h+=p}return c}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,l=0;l<s;l++)o<<=1,o|=e>>>n[l]&1;for(l=s;l<n.length;l++)a<<=1,a|=t>>>n[l]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(66),i=r(36),o=r(268),a=r(195);function s(){this.tmp=new Array(2),this.keys=null}function l(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,a),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},l.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},l.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];o.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),f=s;s=(a^o.permute(d))>>>0,a=f}o.rip(s,a,n,i)},l.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];o.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),f=a;a=(s^o.permute(d))>>>0,s=f}o.rip(a,s,n,i)}},function(e,t,r){var n=r(127),i=r(32).Buffer,o=r(271);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var l=a(e),c=o+16*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,r){var n=r(157),i=r(32).Buffer,o=r(86),a=r(36),s=r(414),l=r(127),c=r(271);function u(e,t,r,a){o.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=i.from(e._finID);return c(d),d}(this,r,u),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(u,o),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,r){var n=r(157),i=r(32).Buffer,o=r(86);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(36)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,r){var n=r(106);e.exports=v,v.simpleSieve=m,v.fermatTest=g;
vendor: 5,827 bytes, line 2
2var i=r(79),o=new i(24),a=new(r(276)),s=new i(1),l=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),d=new i(3),f=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function b(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function m(e){for(var t=b(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function g(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(d);)r.iadd(h)}else for(;r.mod(o).cmp(f);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){var n=r(79),i=r(198);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(o);t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var f=d.toRed(o).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(u)){for(var h=1;h<l;h++){if(0===(f=f.redSqr()).cmp(a))return!1;if(0===f.cmp(u))break}if(h===l)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),c=a.toRed(i);t>0;t--){var u=this._randrange(new n(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var f=u.toRed(i).redPow(l);if(0!==f.cmp(o)&&0!==f.cmp(c)){for(var h=1;h<s;h++){if(0===(f=f.redSqr()).cmp(o))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(c))break}if(h===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";(function(t,n){var i;e.exports=S,S.ReadableState=_;r(124).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=r(278),s=r(51).Buffer,l=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=r(424);c=u&&u.debuglog?u.debuglog("stream"):function(){};var d,f,h,p=r(425),b=r(279),m=r(280).getHighWaterMark,g=r(108).codes,v=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,O=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(109)(S,a);var j=b.errorOrDestroy,x=["error","close","destroy","pause","resume"];function _(e,t,n){i=i||r(110),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(126).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function S(e){if(i=i||r(110),!(this instanceof S))return new S(e);var t=this instanceof i;this._readableState=new _(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function E(e,t,r,n,i){c("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,$(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)j(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?j(e,new O):k(e,a,t,!0);else if(a.ended)j(e,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):T(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,T(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),T(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){d||(d=r(126).StringDecoder);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,740 bytes, line 2
2for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var C=1073741824;function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick($,e))}function $(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function A(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){c("readable nexttick read 0"),e.read(0)}function D(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):M(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){j(this,new w("_read()"))},S.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:m;function s(t,n){c("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",f),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){c("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",u);var d=!1;function f(t){c("ondata");var n=e.write(t);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!d&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){c("onerror",t),m(),e.removeListener("error",h),0===o(e,"error")&&j(e,t)}function p(){e.removeListener("finish",b),m()}function b(){c("onfinish"),e.removeListener("close",p),m()}function m(){c("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 24,301 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",b),e.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?M(this):i.reading||n.nextTick(R,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(A,this),r},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(A,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(D,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(427)),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=N,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===h&&(h=r(428)),h(S,e,t)})}).call(this,r(60),r(53))},function(e,t,r){e.exports=r(124).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):o?(t.nextTick(n,a),o(e)):t.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(53))},function(e,t,r){"use strict";var n=r(108).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=S,S.WritableState=_;var a={deprecate:r(257)},s=r(278),l=r(51).Buffer,c=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,d=r(279),f=r(280).getHighWaterMark,h=r(108).codes,p=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,O=h.ERR_UNKNOWN_ENCODING,j=d.errorOrDestroy;function x(){}function _(e,t,a){o=o||r(110),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick($,e,t),e._writableState.errorEmitted=!0,j(e,i)):(o(i),e._writableState.errorEmitted=!0,j(e,i),$(e,t))}(e,r,i,t,o);else{var a=P(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||C(e,r),i?n.nextTick(k,e,r,a,o):k(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(e){var t=this instanceof(o=o||r(110));if(!t&&!u.call(S,this))return new S(e);this._writableState=new _(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function E(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function k(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),$(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,E(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&j(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)}))}function $(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(109)(S,s),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===S&&(e&&e._writableState instanceof _)}})):u=function(e){return e instanceof this},S.prototype.pipe=function(){j(this,new g)},S.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof c);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=x),o.ending?function(e,t){var r=new w;j(e,r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o;return null===r?o=new y:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(j(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,r)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new O(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new b("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(60),r(53))},function(e,t,r){"use strict";e.exports=u;var n=r(108).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(110);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(109)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(160),n.short=r(436),n.mont=r(437),n.edwards=r(438)},function(e,t,r){"use strict";var n=r(74).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(74),i=r(128),o=r(285),a=r(66),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,d=o.maj32,f=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,m=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(v,m),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],O=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var j=c(O,h(v),u(v,y,w),this.k[n],r[n]),x=s(f(i),d(i,o,m));O=w,w=y,y=v,v=s(g,j),g=m,m=o,o=i,i=s(j,x)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],O)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(74),i=r(128),o=r(66),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,m=n.sum64_5_lo,g=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function O(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function j(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function x(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function _(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function $(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,g),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=M(r[n-4],r[n-3]),o=$(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=C(r[n-30],r[n-29]),c=P(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=h(i,o,a,s,l,c,u,d),r[n+1]=p(i,o,a,s,l,c,u,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],v=this.h[9],y=this.h[10],C=this.h[11],P=this.h[12],M=this.h[13],$=this.h[14],T=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var A=$,R=T,D=E(g,v),L=k(g,v),N=w(g,v,y,C,P),B=O(g,v,y,C,P,M),z=this.k[I],F=this.k[I+1],U=r[I],H=r[I+1],V=b(A,R,D,L,N,B,z,F,U,H),G=m(A,R,D,L,N,B,z,F,U,H);A=_(n,i),R=S(n,i),D=j(n,i,a,s,l),L=x(n,i,a,s,l,c);var W=d(A,R,D,L),q=f(A,R,D,L);$=P,T=M,P=y,M=C,y=g,C=v,g=d(h,p,V,G),v=f(p,p,V,G),h=l,p=c,l=a,c=s,a=n,s=i,n=d(V,G,W,q),i=f(V,G,W,q)}u(this.h,0,n,i),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,h,p),u(this.h,8,g,v),u(this.h,10,y,C),u(this.h,12,P,M),u(this.h,14,$,T)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(453).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function l(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 28,671 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,u=r;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,O=y>>>13,j=0|a[4],x=8191&j,_=j>>>13,S=0|a[5],E=8191&S,k=S>>>13,C=0|a[6],P=8191&C,M=C>>>13,$=0|a[7],T=8191&$,I=$>>>13,A=0|a[8],R=8191&A,D=A>>>13,L=0|a[9],N=8191&L,B=L>>>13,z=0|s[0],F=8191&z,U=z>>>13,H=0|s[1],V=8191&H,G=H>>>13,W=0|s[2],q=8191&W,K=W>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,U))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,U))+Math.imul(b,F)|0,o=Math.imul(b,U);var ge=(c+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,U))+Math.imul(v,F)|0,o=Math.imul(v,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0;var ve=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,U))+Math.imul(O,F)|0,o=Math.imul(O,U),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var ye=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,F),i=(i=Math.imul(x,U))+Math.imul(_,F)|0,o=Math.imul(_,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var we=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,F),i=(i=Math.imul(E,U))+Math.imul(k,F)|0,o=Math.imul(k,U),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var Oe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,U))+Math.imul(M,F)|0,o=Math.imul(M,U),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var je=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,U))+Math.imul(I,F)|0,o=Math.imul(I,U),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,U))+Math.imul(D,F)|0,o=Math.imul(D,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0;var _e=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,F),i=(i=Math.imul(N,U))+Math.imul(B,F)|0,o=Math.imul(B,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Se=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,be)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,V),i=(i=Math.imul(N,G))+Math.imul(B,V)|0,o=Math.imul(B,G),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,fe)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,K))+Math.imul(B,q)|0,o=Math.imul(B,K),n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var ke=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,X),i=(i=Math.imul(N,J))+Math.imul(B,X)|0,o=Math.imul(B,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,fe)|0;var Ce=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,Q),i=(i=Math.imul(N,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Pe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(N,oe),i=(i=Math.imul(N,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var $e=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(N,le),i=(i=Math.imul(N,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(N,de),i=(i=Math.imul(N,fe))+Math.imul(B,de)|0,o=Math.imul(B,fe);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(D,pe)|0))<<13)|0;c=((o=o+Math.imul(D,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ae=(c+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,be))+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=me,l[1]=ge,l[2]=ve,l[3]=ye,l[4]=we,l[5]=Oe,l[6]=je,l[7]=xe,l[8]=_e,l[9]=Se,l[10]=Ee,l[11]=ke,l[12]=Ce,l[13]=Pe,l[14]=Me,l[15]=$e,l[16]=Te,l[17]=Ie,l[18]=Ae,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return g(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?b(this,e,t):r<1024?g(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],b=n[u+h],m=r[u+h+a],g=n[u+h+a],v=d*m-f*g;g=d*g+f*m,m=v,r[u+h]=p+m,n[u+h]=b+g,r[u+h+a]=p-m,n[u+h+a]=b-g,h!==s&&(v=l*d-c*f,f=l*f+c*d,d=v)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(
vendor: 22,674 bytes, line 2
2a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function O(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},O.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},O.prototype.split=function(e,t){e.iushrn(this.n,0,t)},O.prototype.imulK=function(e){return e.imul(this.k)},i(j,O),j.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,O),i(_,O),i(S,O),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new j;else if("p224"===e)t=new x;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m<p);var g=this.pow(d,new o(1).iushln(p-m-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=m}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(159)(e))},function(e,t,r){"use strict";const n=t;n.bignum=r(79),n.define=r(455).define,n.base=r(458),n.constants=r(459),n.decoders=r(292),n.encoders=r(290)},function(e,t,r){"use strict";const n=t;n.der=r(291),n.pem=r(456)},function(e,t,r){"use strict";const n=r(36),i=r(206).Buffer,o=r(207),a=r(209);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,o),l.prototype._encodeComposite=function(e,t,r,n){const o=function(e,t,r,n){let i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128){const e=i.alloc(2);return e[0]=o,e[1]=n.length,this._createEncoderBuffer([e,n])}let s=1;for(let e=n.length;e>=256;e>>=8)s++;const l=i.alloc(2+s);l[0]=o,l[1]=128|s;for(let e=1+s,t=n.length;t>0;e--,t>>=8)l[e]=255&t;return this._createEncoderBuffer([l,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t<e.length;t++){let r=e[t];for(n++;r>=128;r>>=7)n++}const o=i.alloc(n);let a=o.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(o[a--]=127&r;(r>>=7)>0;)o[a--]=128|127&r}return this._createEncoderBuffer(o)},l.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},function(e,t,r){"use strict";const n=t;n.der=r(293),n.pem=r(457)},function(e,t,r){"use strict";const n=r(36),i=r(79),o=r(129).DecoderBuffer,a=r(207),s=r(209);function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function u(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function d(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t<i;t++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}e.exports=l,l.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},n(c,a),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){const n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let i=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){const r=u(e,t);if(e.isError(r))return r;const n=d(e,r.primitive,t);if(e.isError(n))return n;let i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=r.decode(e,"der",n);if(e.isError(o)&&t)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){let n;const i=[];let o=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,l=i[0]%40;if(n=r?i:[s,l].concat(i.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},c.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,i,o,a,s,l;if("gentime"===t)n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),l=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,l,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){const r=e.raw();let n=new i(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,r){var n=r(123),i=r(32).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){var n=r(79),i=r(32).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(26),o=r(5),a=r(20),s=r(3),l=r(1),c=r(45),u=r(122),d=r
2(0);const f=Object(l.lazy)((()=>r.e(71).then(r.bind(null,528)))),h=({customFields:{groupId:e,electionId:t,showHeadshots:r=!0,showContext:s=!1,canBePicker:p=!1},groupData:b,electionData:m})=>{const{globalContent:{groupId:g,electionId:v}={},globalContentConfig:{source:y},requestUri:w,siteProperties:{siteName:O},isAdmin:j}=Object(o.useAppContext)(),x="localhost"===a.ENVIRONMENT?"http://www.gmg-local.com":`https://www.${O.toLowerCase()}`;let _,S;_="string"==typeof e?Number(e):e||g,S="string"==typeof t?Number(t):t||v;const E="elections_groups"===y||"elections_race"===y,k=Object(i.useContent)(b?void 0:{source:"elections_groups",query:{groupId:_}}),C=Object(i.useContent)(!m&&S?{source:"elections",query:{electionId:S}}:void 0),{data:P}=Object(c.b)(!m&&_&&S?`${x}/pf/api/v3/content/fetch/elections?query={${encodeURIComponent(`"electionId": ${S}`)}}`:null,{revalidateOnFocus:!0,refreshInterval:6e4,fallbackData:null!=m?m:C});let M;if(m?M=m:(null==P?void 0:P.data)&&(M=P),p&&w.match(/\??.+(picker=true)/))return Object(d.jsx)(l.Suspense,{fallback:"Loading...",children:Object(d.jsx)(f,{customFields:{groupId:_},openVisible:!0})});const{name:$,url:T,electionId:I,children:A=[]}=b||k||{},R=A.map((e=>{const{raceId:t,group_id:i}=e;if(t){var o;const e=null===(o=M)||void 0===o?void 0:o.data.find((e=>e.raceId===t));return!e&&j?Object(d.jsxs)(n.E,{as:"section",gap:"$2",sx:{backgroundColor:"$red.100",color:"$red.900",py:"$5",px:"$4",gridColumn:"-1 / 1",borderRadius:"$md"},children:[Object(d.jsx)(n.q,{level:3,sx:{fontSize:"$4"},children:"Race:"}
2),Object(d.jsx)(n.M,{sx:{color:"$red.900"},children:`Race ${t} is not in election ${S}`})]},t):Object(d.jsx)(u.default,{elexData:e,url:T,customFields:{electionId:I,raceId:t,showHeadshots:r,showContext:E||s}},t)}return i?Object(d.jsx)(h,{customFields:{groupId:i,electionId:I,showHeadshots:r,showContext:E||s,canBePicker:p},groupData:e,electionData:M},i):null}));return Object(d.jsxs)(n.E,{gap:"$4",className:"group-embed",children:[Object(d.jsx)(n.q,{className:"full-bleed",level:3,sx:{py:E&&!b?"$0":"$3",letterSpacing:"$wide",textAlign:E?"left":"center",fontWeight:E&&b?"$normal":"$semibold",fontSize:E&&b?"$3":"$4",borderTop:E&&!b?null:"1px dashed",borderBottom:E&&!b?null:"1px dashed",borderColor:"$blueGray.100",background:E&&!b?"none":"radial-gradient(circle, white 0%, #fcfcfd 100%)"},children:Object(d.jsx)("a",{href:T,children:$})},`GroupHeader${_}`),E?Object(d.jsx)(n.E,{gap:"$7",children:R}):R]})};h.lazy=!0,h.propTypes={customFields:s.shape({groupId:s.number.tag({name:"Group Id"}),electionId:s.number.tag({name:"Election Id"}),showHeadshots:s.bool.tag({name:"Show Headshots",defaultValue:!0}),showContext:s.bool.tag({name:"Show Additional Context",defaultValue:!1}),canBePicker:s.bool.tag({name:"Can be Picker",defaultValue:!1})}),groupData:s.shape({})},t.default=h},function(e,t,r){"use strict";function n(e,t){if(!e&&!t)return null;const r=String(null!=e?e:"").trim(),n=(t||"").toLowerCase(),i=Number(r);if(!Number.isNaN(i)){const e=new Set([21,22,23,2021,2022,2023,9201]),t=new Set([12,13,14,19,20,24,25,26,27,28,29,30,2012,2013,2014,2019,2020,2024,2025,2026,2027,2028,2029,2030,9200]),r=new Set([9e3,9001,9002,9003]);if(e.has(i))return"storm";if(t.has(i))return"rain";if(r.has(i))return"clear"}const o=r.toLowerCase();return o.includes("storm")||o.includes("thunder")||o.includes("tstorm")||n.includes("storm")||n.includes("thunder")?"storm":o.includes("rain")||o.includes("drizzle")||o.includes("shower")||o.includes("sleet")||o.includes("freezing")||o.includes("mixed")||n.includes("rain")||n.includes("drizzle")||n.includes("shower")||n.includes("sleet")||n.includes("freezing")||n.includes("mixed")?"rain":o.includes("clear")||o.includes("sunny")||o.includes("fair")||o.includes("mostly clear")||o.includes("partly cloudy")||n.includes("clear")||n.includes("sunny")||n.includes("fair")||n.includes("mostly clear")||n.includes("partly cloudy")?"clear":null}function i(e,t){return"number"!=typeof t?null:t<10?`${e}_lt_10`:t<20?`${e}_lt_20`:t<=32?`${e}_lte_32`:t>90?`${e}_gt_90`:t>80?`${e}_gt_80`:t>70?`${e}_gt_70`:t>60?`${e}_gt_60`:null}function o(e,t){return"number"!=typeof t?null:0===t?`${e}_0`:t>90?`${e}_gt_90`:t>50?`${e}_gt_50`:t>=20?`${e}_gte_20`:t>0?`${e}_lt_20`:null}function a(e,t,r){const a=[];if(!e&&!t&&!r)return a;
2if(e){const{curTemp:t,sky:r,iconCode:o}=e,s=i("temp",t);s&&a.push(s);const l=n(o,r);"clear"===l&&a.push("cond_clear"),"rain"===l&&a.push("cond_rain"),"storm"===l&&a.push("cond_storm")}if(t){var s,l,c,u,d;const{daytime:e,temperature:r}=t,f=i("today_temp",(null==r?void 0:r.max)||(null==e||null===(s=e.temperature)||void 0===s?void 0:s.value));f&&a.push(f);const h=o("today_pop",null==e||null===(l=e.precipitation)||void 0===l||null===(c=l.probability)||void 0===c?void 0:c.value);h&&a.push(h);const p=n(null==e||null===(u=e.weather_code)||void 0===u?void 0:u.value,null==e||null===(d=e.weather_code)||void 0===d?void 0:d.text);"clear"===p&&a.push("today_cond_clear"),"rain"===p&&a.push("today_cond_rain"),"storm"===p&&a.push("today_cond_storm")}if(r){var f,h,p,b,m;const{daytime:e}=r,{temperature:t}=r,s=i("tomorrow_temp",(null==t?void 0:t.max)||(null==e||null===(f=e.temperature)||void 0===f?void 0:f.value));s&&a.push(s);const l=o("tomorrow_pop",null==e||null===(h=e.precipitation)||void 0===h||null===(p=h.probability)||void 0===p?void 0:p.value);l&&a.push(l);const c=n(null==e||null===(b=e.weather_code)||void 0===b?void 0:b.value,null==e||null===(m=e.weather_code)||void 0===m?void 0:m.text);"clear"===c&&a.push("tomorrow_cond_clear"),"rain"===c&&a.push("tomorrow_cond_rain"),"storm"===c&&a.push("tomorrow_cond_storm")}return a}r.d(t,"a",(function(){return a}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(15));t.default=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(r){return[2,fetch("".concat(e,"/sales/public/v1/cart/item"),t).then(i.default)]}))}))}},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(106),t.createHash=t.Hash=r(123),t.createHmac=t.Hmac=r(261);var n=r(400),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(264);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(402);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var l=r(417);t.DiffieHellmanGroup=l.DiffieHellmanGroup,t.createDiffieHellmanGroup=l.createDiffieHellmanGroup,t.getDiffieHellman=l.getDiffieHellman,t.createDiffieHellman=l.createDiffieHellman,t.DiffieHellman=l.DiffieHellman;var c=r(422);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=r(464);var u=r(465);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var d=r(468);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(5),i=r(1);const o=()=>{var e;const{globalContent:{taxonomy:t,tag:r}={},siteProperties:{GamNetworkId:o,station:a},renderables:s,metaValue:l}=Object(n.useAppContext)(),{primary_section:c,sections:u}=t||{},{path:d}=c||{},[{path:f}]=u||[{}],h=l("section_path")||d||f;let p=`/${o}/${a}/Web`;h&&h.length&&(p=`${p}/${h}`),p=p.replace("//","/"),p.endsWith("/")&&(p=p.slice(0,-1));const b=null==t||null===(e=t.tags)||void 0===e?void 0:e.map((e=>e.text)).join(", "),m=l("tags");return Object(i.useMemo)((()=>s.reduce(((e,t)=>{if("ads/basic"===t.type){var r;let n=null===(r=t.props.customFields)||void 0===r?void 0:r.pos;"PREMIUM_BANNER"===n?n="LEADER_BOARD":"PREMIUM"===n&&(n="RIGHT");const i=n in e.nameCount?e.nameCount[n]+1:1;if(["AUTO_INCREASE"].includes(n))return e;e.nameCount[n]=i,e.ads[t.props.id]={divId:["FOOTER","EOA","TOP"].includes(n)?n:`${n}${i}`.replace("RIGHT","DISPLAY").replace("PIXEL1","PIXEL"),reactId:t.props.id,defined:!1}}return e}),{ads:{},nameCount:{},adUnitPath:p.toUpperCase(),tags:m||b||r})),[p,r,b,m,s])}},function(e,t,r){"use strict";var n=r(1),i=r(3),o=r(16),a=r.n(o),s=r(143),l=r(0);const c=Object(n.forwardRef)((({className:e=null,percentComplete:t=0},r)=>{const n={zIndex:"1",left:`${t}%`,transform:"translateX(-3.5rem)",color:"#FFF",lineHeight:"1.5",opacity:t>5?"1":"0"};return Object(l.jsxs)("div",{ref:r,className:a()("progressBar relative",e),children:[Object(l.jsx)(s.a,{htmlFor:"pBar",className:"absolute font_gibson font_bold",label:`${t}%`,style:n}),Object(l.jsx)("progress",{id:"progressBar",className:"transition-100",max:"100",value:t,children:Object(l.jsx)("span",{children:t})})]})}));c.displayName="ProgressBar",c.propTypes={className:i.string,percentComplete:i.number},t.a=c},function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(1),i=r(75);function o(e,t,r){var n;let i,o=null!==(n=r.initialDeps)&&void 0!==n?n:[];return()=>{var n,a,s,l;let c;r.key&&(null==(n=r.debug)?void 0:n.call(r))&&(c=Date.now());const u=e();if(!(u.length!==o.length||u.some(((e,t)=>o[t]!==e))))return i;let d;if(o=u,r.key&&(null==(a=r.debug)?void 0:a.call(r))&&(d=Date.now()),i=t(...u),r.key&&(null==(s=r.debug)?void 0:s.call(r))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-d))/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return null==(l=null==r?void 0:r.onChange)||l.call(r,i),i}}function a(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const s=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout((()=>t.apply(this,i)),r)}};function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=e=>e,d=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},f=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=e=>{const{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void i({width:e.inlineSize,height:e.blockSize})}i(r.getBoundingClientRect())}
2));return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},h={passive:!0},p="undefined"==typeof window||"onscrollend"in window,b=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const o=p?()=>{}:s(n,(()=>{t(i,!1)}),e.options.isScrollingResetDelay),a=n=>()=>{i=r[e.options.horizontal?"scrollLeft":"scrollTop"],o(),t(i,n)},l=a(!0),c=a(!1);return c(),r.addEventListener("scroll",l,h),r.addEventListener("scrollend",c,h),()=>{r.removeEventListener("scroll",l),r.removeEventListener("scrollend",c)}},m=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},g=(e,{adjustments:t=0,behavior:r},n)=>{var i,o;const a=e+t;null==(o=null==(i=n.scrollElement)?void 0:i.scrollTo)||o.call(i,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class v{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var e;return null==(e=t())?void 0:e.disconnect()},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,r])=>{void 0===r&&delete e[t]})),this.options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:u,rangeExtractor:d,onChange:()=>{},measureElement:m,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0},e)},this.notify=(e,t)=>{var r,n,i;const{startIndex:o,endIndex:a}=null!==(r=this.range)&&void 0!==r?r:{startIndex:void 0,endIndex:void 0},s=this.calculateRange();(e||o!==(null==s?void 0:s.startIndex)||a!==(null==s?void 0:s.endIndex))&&(null==(i=(n=this.options).onChange)||i.call(n,this,t))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.notify(!1,!1);var r;if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement)this.targetWindow=this.scrollElement.ownerDocument.defaultView;else this.targetWindow=null!==(r=null==(e=this.scrollElement)?void 0:e.window)&&void 0!==r?r:null;this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.notify(!1,!1)}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e;const r=this.isScrolling;this.isScrolling=t,this.notify(r!==t,t)})))}}
2,this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=null!==(e=this.scrollRect)&&void 0!==e?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=null!==(e=this.scrollOffset)&&void 0!==e?e:"function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{const r=new Map,n=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(r.has(t.lane))continue;const o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=o((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,r,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i})),{key:!1}),this.getMeasurements=o((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i},o)=>{var a;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){let e=null==(a=this.measurementsCache[i])?void 0:a.measureElement;e||(e=e=>{const t=n(i),r=this.elementsCache.get(t);e?(r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(t,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,void 0,this))):r&&(this.observer.unobserve(r),this.elementsCache.delete(t))});const s=n(i),c=1===this.options.lanes?l[i-1]:this.getFurthestMeasurement(l,i),u=c?c.end+this.options.gap:t+r,d=o.get(s),f="number"==typeof d?d:this.options.estimateSize(i),h=u+f,p=c?c.lane:i%this.options.lanes;l[i]={index:i,start:u,size:f,end:h,key:s,lane:p,measureElement:e}}return this.measurementsCache=l,l}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=o((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((e,t,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=t=>e[t].start,o=y(0,n,i,r);let a=o;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:o,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:r}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=o((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,r,n)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:r,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const r=this.indexFromElement(e),n=this.getMeasurements()[r];if(!n||!e.isConnected)return void this.elementsCache.forEach(((t,r)=>{t===e&&(this.observer.unobserve(e),this.elementsCache.delete(r))}));const i=this.elementsCache.get(n.key);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(n.key,e)),this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var r;const n=this.getMeasurements()[e];if(!n)return;const i=t-(null!==(r=this.itemSizeCache.get(n.key))&&void 0!==r?r:n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!0,!1))},this.measureElement=e=>{e&&this._measureElement(e,void 0)},this.getVirtualItems=o((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const r=[];for(let n=0,i=e.length;n<i;n++){const i=t[e[n]];r.push(i)}return r}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return a(t[y(0,t.length-1,(e=>a(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>
2{const r=this.getSize(),n=this.getScrollOffset();"auto"===t&&(t=e<=n?"start":e>=n+r?"end":"start"),"start"===t||("end"===t?e-=r:"center"===t&&(e-=r/2));const i=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getMeasurements()[e];if(!r)return;const n=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(r.end>=i+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}const o="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(e,t);if(!n)return;const[i,o]=n;this._scrollToOffset(i,{adjustments:void 0,behavior:r}),"smooth"!==r&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[i]=a(this.getOffsetForIndex(e,o));t=i,n=this.getScrollOffset(),Math.abs(t-n)<1||this.scrollToIndex(e,{align:o,behavior:r})}else this.scrollToIndex(e,{align:o,behavior:r});var t,n})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
2stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let r;var n;0===t.length?r=this.options.paddingStart:r=1===this.options.lanes?null!==(n=null==(e=t[t.length-1])?void 0:e.end)&&void 0!==n?n:0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end)));return r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{var e,t;this.itemSizeCache=new Map,null==(t=(e=this.options).onChange)||t.call(e,this,!1)},this.setOptions(e)}}const y=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,o=r(i);if(o<n)e=i+1;else{if(!(o>n))return i;t=i-1}}return e>0?e-1:0};function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function _(e){const t=n.useReducer((()=>({})),{})[1],r=O({},e,{onChange:(r,n)=>{var o;n?Object(i.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,r,n)}}),[o]=n.useState((()=>new v(r)));return o.setOptions(r),n.useEffect((()=>o._didMount()),[]),x((()=>o._willUpdate())),o}function S(e){return _(O({observeElementRect:f,observeElementOffset:b,scrollToFn:g},e))}},function(e,t){},function(e,t,r){"use strict";r.r(t);var n=r(43),i=r.n(n),o=r(38),a=r(119),s=r(2),l=r(16),c=r.n(l),u=r(5),d=r(20),f=r(3),h=r(1),p=r(37),b=r(93),m=r(491),g=r(227),v=r(31),y=r(72),w=r(61),O=r(14),j=r(12),x=r(50),_=r(140),S=r(118),E=r(488),k=r(233),C=r(228),P=r(221),M=r(0);function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const A=["gmg-sandbox","localhost"].includes(d.ENVIRONMENT),R=Object(h.forwardRef)((({customFields:{blurb:e,customClasses:t,redirectTo:n="/"}={},closeModal:l,showUserIcon:d=!1,sx:f,modalPrompt:$},I)=>{var R,D,L;const{siteProperties:{siteDomain:N,siteName:B,braze:z},arcSite:F,requestUri:U}=Object(u.useAppContext)(),{status:H,data:V}=Object(v.b)(),G=Object(v.c)(),{loginWithArcIdentityAsOIDCProvider:W}=Object(m.a)(),[q,K]=Object(h.useState)({fmLogin:!0,fmFields:!0,fmPassword:!0,fmResend:!1,fmSent:!1,fmSuccess:!1,fmOTA:!1}),[Y,X]=Object(h.useState)(!1),[J,Z]=Object(h.useState)(""),[Q,ee]=Object(h.useState)(""),[te,re]=Object(h.useState)({reg_prompt:null,callback_url:null,ref:null}),[ne,ie]=Object(h.useState)(null),[oe,ae]=Object(h.useState)(!1),[se,le]=Object(h.useState)({message:{user:null,pass:null},tone:null}),[ce,ue]=Object(h.useState)(!1),[de,fe]=Object(h.useState)(!1),[he,pe]=Object(h.useState)(!1),[be,me]=Object(h.useState)(null),ge=Object(h.useRef)(null),ve=U.split("?")[1],ye=Object(h.useMemo)((()=>new URLSearchParams(ve)),[ve]),we="off"===ye.get("nav"),Oe=["baron","cityspark","cityspark-local"].includes(ye.get("
2client_id")||""),je=Oe?ye.get("redirect_uri"):null,xe="happyfox"===ye.get("client_id"),_e=Object(h.useCallback)((async()=>{try{const e=await Object(w.c)();if(!e)throw new Error("Failed to get user profile");const{accessToken:t}=e,r=Object(x.b)(),n=await fetch(`${r}/happyfox/jwt`,{headers:{Authorization:`Bearer ${t}`}}),i=await n.json();i.redirect_url&&(window.location.href=i.redirect_url)}catch(e){console.error("[HAPPYFOX] Error logging in with HappyFox",e),p.toast.error("There was an error while logging in with your account.",{description:"If this issue persists, please contact support."})}}),[]),Se=Object(h.useCallback)((async()=>{await W()}),[W]);Object(h.useEffect)((()=>{xe&&"loggedIn"===H&&!de&&_e()}),[xe,_e,H,de]),Object(h.useEffect)((()=>{Oe&&"loggedIn"===H&&!de&&Se()}),[F,Oe,Se,ye,H,de]);const Ee=Object(h.useCallback)((()=>{te.callback_url?window.location.href=te.callback_url:te.ref&&"/account/login/"!==te.ref?window.location.href=te.ref:window.location.href=Object(O.g)({link:n||"/",arcSite:F})}),[te.callback_url,te.ref,n,F]),ke=Object(h.useCallback)((async e=>{try{K((e=>T({},e,{fmSuccess:!0})));const[t,n]=await Promise.all([i.a.getUserProfile(),r.e(0).then(r.bind(null,220))]);if("code"in t)throw new Error(`Error getting user profile: ${t.message}`);const{email:o,uuid:a,displayName:s}=t;let c,u;o&&Object(j.l)(o),c=Oe?Se:xe?_e:!l||te.callback_url&&!["/account/delete/","/account/confirm-delete/"].includes(window.location.pathname)?Ee:l,te.callback_url&&o&&j.a.includes(te.callback_url)&&e&&(u=`${te.callback_url}?access_token=${e.accessToken}&refresh_token=${e.refreshToken}&user=${Object(y.b)(o||"")}&id=${a||""}`);const{initialize:d,changeUser:f,getUser:h,requestImmediateDataFlush:p}=n,b=new Promise((e=>{d(A?z.sandboxApiKey:z.prodApiKey,{baseUrl:z.sdkEndpoint,enableLogging:!!A}),a&&f(a);const r=h();r&&(r.setEmail(o||""),r.setCustomUserAttribute("last_login",(new Date).toISOString()),r.setCustomUserAttribute(`station_${F}`,!0),t.emailVerified&&r.setCustomUserAttribute(`${F}_insider`,!0),s&&r.setCustomUserAttribute("display_name",s)),p(),e()}));return await Promise.all([b,Object(j.m)(N)]),G({type:"LOG_IN"}),u&&!["/account/delete/","/account/confirm-delete/"].includes(window.location.pathname)?(le({message:{general:"Success! You are now logged in."},tone:"success"}),ie(u),ue(!0),fe(!1),X(!1),K(T({},q,{fmFields:!1,fmLogin:!1,fmPassword:!1}))):(ue(!0),"function"==typeof c?await c():(X(!1),fe(!1),await Promise.resolve()))}catch(e){throw X(!1),fe(!1),G({type:"LOG_OUT"}),K((e=>T({},e,{fmSuccess:!1}))),e}}),[Oe,xe,Se,_e,l,te.callback_url,Ee,z.sandboxApiKey,z.prodApiKey,z.sdkEndpoint,F,q,N,G]),{isInitialized:Ce,isLoading:Pe,triggerGoogleSignIn:Me,isConfigured:$e}=Object(g.a)({onSuccess:ke,onError:e=>{console.error("[LOGIN] error logging in with Google",e),ue(!1),K((e=>T({},e,{fmSuccess:!1,fmFields:!0,fmPassword:!0,fmLogin:!0}))),G({type:"LOG_OUT"}),p.toast.error("There was an error signing in with Google.")},mode:"login"});Object(h.useEffect)((()=>{const e=ye.get("nonce"),t=ye.get("client_id");if(!e||de||"loggedIn"===H||be===e||t)return;(async()=>{try{me(e),fe(!0),ue(!0),K((e=>T({},e,{fmSuccess:!0,fmFields:!1,fmOTA:!1}))),G({type:"SET_LOADING"}),i.a.options({apiOrigin:Object(x.a)(F)});const t=await i.a.redeemOTALink(e);if(Object(o.isAPIErrorResponse)(t))throw new Error(`Error redeeming OTA link: ${t.message}`);window.dataLayer.push({event:"clickEvent",gaCategory:"NTG account",gaAction:"login",gaLabel:"One-time-access"}),await ke({accessToken:t.accessToken,refreshToken:t.refreshToken})}catch(e){console.error("Error redeeming OTA link:",e),p.toast.error("This link is invalid or has expired. Please request a new one.");const t=new URL(window.location.href);t.searchParams.delete("nonce"),window.history.replaceState({},"",t.toString()),fe(!1),ue(!1),K((e=>T({},e,{fmSuccess:!1,fmFields:!0,fmOTA:!1,fmLogin:!0,fmPassword:!0}))),G({type:"LOG_OUT"})}})()}),[ye,de,H,be,ke,G,F]),Object(h.useEffect)((()=>{if(Oe)return;"1"!==Object(j.d)("whizUserAuthorized")||oe||(ae(!0),K(T({},q,{fmFields:!1})))}),[q,Oe,oe]),Object(h.useEffect)((()=>{if(Oe)return;const e=new URLSearchParams(window.location.search);let t=null;t=e.get("ref");const r=e.get("callback_url"),n=e.get("reg_prompt");re({reg_prompt:$||n,callback_url:r,ref:t||window.location.pathname})}),[Oe,$]),Object(h.useEffect)((()=>
2{if(Oe)return;te.callback_url&&(async()=>{if(te.callback_url&&V.arcSubs.email&&j.a.includes(te.callback_url)){const e=await Object(w.c)();if(!e)throw new Error("Failed to get user profile");ie(`${te.callback_url}?access_token=${e.accessToken}&refresh_token=${e.refreshToken}&user=${Object(y.b)(V.arcSubs.email)}&id=${V.arcSubs.uuid}`)}})()}),[Oe,te.callback_url,V.arcSubs.email,V.arcSubs.uuid]);const Te=e=>{const t=b.a[e]||b.a.UNKNOWN;return"tone"in t&&"error"===t.tone&&(e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Error",gaCategory:"NTG account",gaAction:"Login Error",gaLabel:e})})(e),le({message:F in t?t[F]:t.message,tone:t.tone})},Ie=e=>{"error"===se.tone&&le({message:{},tone:null});const t=e.target.value.toLowerCase().trim();Z(t),sessionStorage.setItem("gmg_e",btoa(t))};return"object"!=typeof window||Object(j.b)()?Object(M.jsxs)(s.E,{gap:"$3",id:"loginPanel",className:c()(t),justifyContent:"center",borderRadius:"$md",bg:"$white",py:"$7",px:"$4",boxShadow:"$lg",sx:T({width:"$full",maxWidth:"$128",textAlign:"center","& > *":{width:"$full"}},f),children:[d?Object(M.jsx)(s.n,{justifyContent:"center",children:Object(M.jsx)(P.a,{})}):null,"loggedIn"===H&&!ce&&ne?Object(M.jsxs)(s.E,{gap:"$3",children:[Object(M.jsx)(s.q,{level:3,variant:"$lg",textColor:"$blueGray.700",children:"Welcome Back"}),Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:"You are already logged in. Press the button below to continue."}),Object(M.jsxs)(s.E,{gap:"$2",children:[Object(M.jsx)(s.f,{as:"a",size:"lg",href:ne,children:`Continue as ${V.arcSubs.displayName||V.arcSubs.email}`}),Object(M.jsx)(s.f,{variant:"$gray",onClick:()=>Object(j.o)(V),children:"Choose a Different Account"})]})]}):Object(M.jsx)(M.Fragment,{children:q.fmSuccess?Object(M.jsxs)(s.E,{gap:"$3",alignItems:"center",children:[Object(M.jsx)(E.a,{}),Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:"Success! Getting your profile ready..."})]}):Object(M.jsxs)(M.Fragment,{children:[Object(M.jsxs)(s.E,{gap:"$3",alignItems:"center",children:[q.fmLogin&&Object(M.jsx)(s.q,{level:3,variant:"$lg",textColor:"$blueGray.700",children:e||"Sign In"}),Object(M.jsx)(_.a,{message:null===(R=se.message)||void 0===R?void 0:R.general,tone:se.tone}),oe?Object(M.jsxs)(M.Fragment,{children:[Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:`Press the button below to log in with your ${B} account.`}),Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:"You will be redirected to the login page."}),Object(M.jsx)(s.f,{as:"a",size:"lg",href:"/_login_activity_",width:"$full",children:"Sign In with Your Account"})]}):null,ne&&"loggedIn"===H&&Object(M.jsxs)(M.Fragment,{children:[Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:"Click the button below to finish logging in and return to the app."}),Object(M.jsx)(s.f,{as:"a",size:"lg",href:ne,width:"$full",children:"Continue"})]}),Object(M.jsxs)(s.M,{variant:"$sm",textColor:"$blueGray.600",style:q.fmFields?void 0:{display:"none"},children:["Don't have an account? ",Object(M.jsx)(s.t,{href:Object(O.g)({link:`/account/register/?${new URLSearchParams(T({},we?{nav:"off"}:void 0,{},te.ref?{ref:te.ref}:void 0,{},te.reg_prompt?{reg_prompt:te.reg_prompt}:void 0,{},te.callback_url?{callback_url:te.callback_url}:void 0,{},je?{response_type:ye.get("response_type")||"code",state:ye.get("state")||"",code_challenge:ye.get("code_challenge")||"",client_id:ye.get("client_id")||"cityspark",scope:ye.get("scope")||"openid email",code_challenge_method:ye.get("code_challenge_method")||"",redirect_uri:je}:void 0))}`,arcSite:F}),variant:"$primary",sx:{fontFamily:"$openSans",fontWeight:"$semibold",fontSize:"$1"},children:"Create an account"})]})]}),Object(M.jsx)(s.o,{id:"loginForm",method:"post",action:"/",disabled:!0,onSubmit:e=>{(async e=>{e.preventDefault(),X(!0),fe(!0),G({type:"SET_LOADING"});const t=T({},q);J&&Q?i.a.login(J,Q,{rememberMe:!0}).then((e=>{if(Object(o.isAPIErrorResponse)(e)){const{code:t}=e,r={300040:"INCORRECT_PW",300037:"PW_MUST_BE_RESET",130051:"UNCONFIRMED",100014:"ACCOUNT_LOCKED",300009:"EMAIL_ADDRESS_E
2RROR"},n=t in r?r[t]:"UNKNOWN";Te(n),X(!1),fe(!1),G({type:"LOG_OUT"})}else{const{accessToken:r,refreshToken:n}=e;if(t.fmFields=!1,t.fmLogin=!1,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"clickEvent",gaCategory:"NTG account",gaAction:"login",gaLabel:"Email"}),!r||!n||!J)throw new Error("Missing required fields for handlePostLoginSuccess");ke({accessToken:r,refreshToken:n}).catch((e=>{console.error("Error during user profile handling:",e),Te("UNKNOWN"),X(!1),fe(!1),G({type:"LOG_OUT"})}))}})).catch((e=>{const{code:t}=e,r={300040:"INCORRECT_PW",300037:"PW_MUST_BE_RESET",130051:"UNCONFIRMED",100014:"ACCOUNT_LOCKED",300009:"EMAIL_ADDRESS_ERROR"};Te(t in r?r[t]:"UNKNOWN"),X(!1),fe(!1),G({type:"LOG_OUT"})})):(fe(!1),Te("NO_EMAIL"))})(e)},name:"loginForm",className:c()({display_none:!q.fmFields}),children:Object(M.jsxs)(s.E,{gap:"$3",children:[Object(M.jsxs)(s.E,{gap:"$2",children:[Object(M.jsx)(S.a,{className:c()({display_none:!q.fmFields}),label:"Email Address",autoComplete:"email",id:"lfUserName",name:"username",tone:se.tone,message:null===(D=se.message)||void 0===D?void 0:D.user,placeholder:"Email Address",type:"email",onChange:Ie,popOut:!0,ref:I,required:!0,value:J}),Object(M.jsx)(S.a,{className:c()({display_none:!q.fmPassword||!q.fmFields}),autoComplete:"off",label:"Password",id:"lfPassword",name:"password",tone:se.tone,message:null===(L=se.message)||void 0===L?void 0:L.pass,placeholder:"Password",type:"password",onChange:e=>{"error"===se.tone&&le({message:{},tone:null}),ee(e.target.value)},popOut:!0,ref:ge,value:Q,required:!0,showToggle:!0})]}),Object(M.jsx)(s.f,{variant:"$primary",type:"submit",loading:Y,value:"Continue",style:!q.fmPassword||q.fmPassword?{display:"none"}:void 0,children:"Continue"}),Object(M.jsxs)(s.E,{gap:"$2",children:[Object(M.jsx)(s.f,{variant:"$primary",type:"submit",loading:Y,value:"Log In",style:q.fmPassword&&q.fmFields?void 0:{display:"none"},children:"Log In"}),Object(M.jsxs)(s.E,{direction:"row",gap:"$1",alignItems:"center",justifyContent:"center",position:"relative",children:[Object(M.jsx)(s.M,{as:"span",variant:"$sm",textColor:"$blueGray.600",backgroundColor:"$white",zIndex:1,paddingX:"$2",children:"OR"}),Object(M.jsx)(s.l,{variant:"$gray300",position:"absolute",left:"0",right:"0"})]}),Object(M.jsxs)(s.E,{gap:["$2","$1"],direction:["column","row"],children:[Object(M.jsxs)(s.f,{variant:"$white",size:"sm",height:"$10",flex:"1",type:"button",display:q.fmFields&&q.fmPassword?void 0:"none",sx:{fontSize:"$1",lineHeight:"20px",padding:"10px 12px"},onClick:()=>{K((e=>T({},e,{fmOTA:!0,fmFields:!1,fmPassword:!1})))},children:[Object(M.jsx)(s.r,{icon:a.faEnvelope,fontSize:"20px",marginRight:"10px",fixedWidth:!0}),"Email login link"]}),$e&&Object(M.jsx)(k.a,{onClick:Me,disabled:!Ce,isLoading:Pe,text:"Sign in with Google",variant:"login",display:q.fmFields&&q.fmPassword?void 0:"none"})]})]}),Object(M.jsx)(s.t,{href:Object(O.g)({link:"/account/forgot_password/",arcSite:F}),variant:"$primary",sx:{fontFamily:"$gibson",fontWeight:"$semibold"},style:{display:q.fmFields&&q.fmPassword?void 0:"none"},children:"I forgot my password"})]})}),Object(M.jsx)(s.o,{id:"otaForm",method:"post",action:"/",disabled:!0,onSubmit:async e=>{if(e.preventDefault(),J)try{pe(!0),window.dataLayer.push({event:"clickEvent",gaCategory:"NTG account",gaAction:"Login Request",gaLabel:"One-time-access"}),await i.a.requestOTALink(J),p.toast.success("If your email exists, we sent a one-time link."),K((e=>T({},e,{fmFields:!1,fmOTA:!1,fmSent:!0})))}catch(e){console.error("Error requesting OTA link:",e),p.toast.error("We couldn't send the link. Please try again.")}finally{pe(!1)}else p.toast.error("Please enter your email address.")},name:"otaForm",className:c()({display_none:!q.fmOTA}),children:Object(M.jsxs)(s.E,{gap:"$3",children:[Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:"Enter your email address and we’ll send you a one-time link to sign in."}),Object(M.jsx)(S.a,{label:"Email Address",autoComplete:"email",id:"otaEmail",name:"email",placeholder:"Email Address",type:"email",onChange:Ie,popOut:!0,required:!0,value:J}),Object(M.jsxs)(s.E,{gap:"$1",children:[Object(M.jsx)(s.f,{variant:"$primary",type:"submit",loading:he,disabled:he,children:"Send One-Time-Access Link"}),Object(M.jsx)(s.f,{variant:"$gray",type:"button",onClick:()=>{K((e=>T({},e,{fmOTA:!1,fmFields:!0,fmPassword:!0})))},children:"Back to Password Login"})]})]})}),q.fmSent?Object(M.jsx)(s.M,{variant:"$sm",textColor:"$blueGray.600",children:`We've sent a confirmation email to ${J}`}):null,Object(M.jsx)(s.f,{variant:"$primary",size:"lg",type:"submit",disabled:Y||q.fmSent,loading:Y,onClick:e=>{(e=>{"preventDefault"in e&&e.preventDefault(),X(!0),le({message:{},tone:null}),J&&i.a.requestVerifyEmail(J).then((()=>{Te("RESEND_SUCCESS"),K(T({},q,{fmSent:!0}))})).catch((e=>{const{code:t}=e,r={300020:"UserNotFoundException"};Te(t in r?r[t]:"UNKNOWN")})).finally((()=>{X(!1)}))})(e)},value:"Continue",sx:q.fmResend?void 0:{display:"none"},children:q.fmSent?"Email send success":"Resend the confirmation email."})]})}),$e&&Object(M.jsx)(C.a,{})]}):Object(M.jsx)("div",{children:"Ad-blocking software is preventing login from working, please disable it to log in."})}));R.displayName="LoginForm",R.propTypes={customFields:f.shape({blurb
2:f.string.tag({name:"Login Panel Text"}),customClasses:f.string,redirectTo:f.string}),closeModal:f.func,showUserIcon:f.boolean,sx:f.shape({}),modalPrompt:f.string},t.default=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="gear",i=[9881,"cog"],o="f013",a="M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faGear=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return u}));var n=r(2),i=r(5),o=r(95),a=r(14),s=r(229),l=r(133),c=r(0);function u({mobileMetadata:e,desktopMetadata:t}){const{siteProperties:{timeZone:r},globalContent:{display_date:u,publish_date:d,taxonomy:{tags:f=[]}={},credits:{by:h=[]}={}}}=Object(i.useAppContext)();return Object(c.jsxs)(n.E,{gap:"$3",className:"metadata",sx:{display:[e,null,t],fontFamily:"$gibson"},children:[Object(c.jsx)(s.a,{authorList:h}),Object(c.jsxs)(n.e,{className:"time",display:["block",null,"flex"],sx:{fontSize:"$1",lineHeight:"$tight",color:"$blueGray.700"},children:[u?Object(c.jsxs)(n.M,{as:"time",sx:{display:"block"},dateTime:u,children:["Published: ",Object(c.jsx)(n.M,{as:"span",sx:{color:"$blueGray.600",lineHeight:"$snug",fontWeight:"$semibold"},children:Object(c.jsx)(o.a,{dateString:u,timeZone:r})})]}):null,Object(a.m)(u,d)?Object(c.jsxs)(n.M,{as:"time",sx:{display:"block"},dateTime:d,children:["Updated: ",Object(c.jsx)(n.M,{as:"span",sx:{color:"$blueGray.600",lineHeight:"$snug",fontWeight:"$semibold"},children:Object(c.jsx)(o.a,{dateString:d,timeZone:r})})]}):null]}),Object(c.jsx)(l.a,{tags:f})]})}},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(3),o=r(5),a=r(2),s=r(0);const l=({customFields:{hearkenId:e,minHeight:t}})=>{const{arcSite:r,isAdmin:i}=Object(o.useAppContext)(),l=Object(n.useRef)(null);return Object(n.useEffect)((()=>{if("object"==typeof window&&l.current){const{current:t}=l,n=document.createElement("script");return n.src=`https://modules.wearehearken.com/${r}/embed/${e}.js`,n.async=!0,t.appendChild(n),()=>{t.removeChild(n)}}}),[e,r]),!e&&i?Object(s.jsx)(a.e,{sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",gridColumn:"-1 / 1",borderRadius:"$md"},children:"Please supply a Hearken ID in the custom fields."}):Object(s.jsx)(a.e,{ref:l,bg:"$blueGray.100",sx:t?{minHeight:`${t}px`}:null,className:"hearkenEmbed"})};l.propTypes={customFields:i.shape({hearkenId:i.string.tag({name:" Hearken Id"}).isRequired,minHeight:i.string.tag({name:"Min Height"})}).isRequired},t.default=l},function(e,t,r){"use strict";r.r(t);var n=r(5),i=r(20),o=r(3),a=r(46),s=r(184),l=r(0);const c=({customFields:{groupId:e=null}={}})=>{var t,r;const{globalContent:o,arcSite:c}=Object(n.useAppContext)(),u=e||o.groupId,d=["localhost","gmg-sandbox"].includes(i.ENVIRONMENT)?null===(t=a.a[c])||void 0===t?void 0:t.sbox:null===(r=a.a[c])||void 0===r?void 0:r.prod;return Object(s.a)(),Object(l.jsx)("div",{style:{width:"100%",position:"relative",overflow:"auto",padding:"0"},children:Object(l.jsx)("iframe",{src:`https://${d}
2/meta/iframe/group/${u}/?outputType=bare`,title:String(u),height:"640",width:"100%",style:{border:"0"}})})};c.propTypes={customFields:o.shape({groupId:o.number.tag({name:"Group Id",label:"Group Id"}),electionId:o.number.tag({name:"Election Id",label:"Election Id"}),showHeadshots:o.bool.tag({name:"Show Headshots",label:"Show Headshots",defaultValue:!0}),showContext:o.bool.tag({name:"Show Additional Context",label:"Show Additional Context",defaultValue:!1}),canBePicker:o.bool.tag({name:"Can be Picker",label:"Can be Picker",defaultValue:!1})}),groupData:o.shape({})},t.default=c},function(e,t,r){"use strict";r.r(t);var n=r(5),i=r(26),o=r(3),a=r(0);const s=({customFields:{groupId:e,message:t="Local Races that Matter",placeholder:r="Find Race Results…"}})=>{const{globalContent:o}=Object(n.useAppContext)(),s=e||o.groupId,l=Object(i.useContent)({source:"elections_groups",query:{groupId:s}}),{url:c}=l||{};return Object(a.jsxs)("div",{className:"ampPicker",style:{margin:"1rem 0"},children:[Object(a.jsxs)("div",{className:"text_center",children:[Object(a.jsxs)("div",{className:"stars",style:{marginBottom:"0.5rem"},children:[Object(a.jsx)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(a.jsx)("path",{d:"M13 0L15.9187 8.98278H25.3637L17.7225 14.5344L20.6412 23.5172L13 17.9656L5.35879 23.5172L8.27747 14.5344L0.636266 8.98278H10.0813L13 0Z",fill:"#EBEBEB"})}),Object(a.jsx)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(a.jsx)("path",{d:"M13 0L15.9187 8.98278H25.3637L17.7225 14.5344L20.6412 23.5172L13 17.9656L5.35879 23.5172L8.27747 14.5344L0.636266 8.98278H10.0813L13 0Z",fill:"#EBEBEB"})}),Object(a.jsx)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(a.jsx)("path",{d:"M13 0L15.9187 8.98278H25.3637L17.7225 14.5344L20.6412 23.5172L13 17.9656L5.35879 23.5172L8.27747 14.5344L0.636266 8.98278H10.0813L13 0Z",fill:"#EBEBEB"})})]}),t&&Object(a.jsx)("h4",{className:"uppercase",style:{margin:"0.5rem 0"},children:t})]}),Object(a.jsx)("div",{className:"amp-wrapper",style:{height:"3rem",background:"#fcfcfd",backgroundImage:"linear-gradient(180deg, #fcfcfd 0%, #f7f7fa 100%)",boxShadow:"2px 2px 8px rgba(0, 0, 0, 0.05)",border:"2px solid #d9d9e1",padding:"0 1rem",display:"flex",alignItems:"center",borderRadius:"6px"},children:Object(a.jsx)("a",{href:c,style:{display:"block",width:"100%",height:"100%",lineHeight:"2.75rem"},children:r})})]})};s.propTypes={customFields:o.shape({groupId:o.number.tag({name:"Group Id"}),message:o.string.tag({name:"Message",defaultValue:"<span class='font_light'>Live Results: </span>Find Race Results"}),placeholder:o.string.tag({name:"Placeholder",defaultValue:"Find race results…"})})},t.default=s},function(e,t,r){"use strict";r.r(t);var n=r(5),i=r(20),o=r(3),a=r(184),s=r(46),l=r(0);const c=({customFields:{raceId:e=null,electionId:t=null}})=>{var r,o;const{globalContent:c,arcSite:u}=Object(n.useAppContext)(),d=e||c.raceId,f=t||c.electionId,h=["localhost","gmg-sandbox"].includes(i.ENVIRONMENT)?null===(r=s.a[u])||void 0===r?void 0:r.sbox:null===(o=s.a[u])||void 0===o?void 0:o.prod;return Object(a.a)(),Object(l.jsx)("div",{style:{width:"100%",position:"relative",overflow:"auto",padding:"0"},children:Object(l.jsx)("iframe",{src:`https://${h}/meta/iframe/race/${f}/${d}/?outputType=bare`,title:String(d),height:"320",width:"100%",style:{border:"0"}})})};c.propTypes={customFields:o.shape({electionId:o.number.tag({name:"Election Id"}).isRequired,raceId:o.number.tag({name:"Race Id"}).isRequired,size:o.oneOf(["sm","lg"]).tag({name:"Size",labels:{sm:"Small",lg:"Large"},defaultValue:"sm"}),fullWidth:o.bool.tag({name:"Make full-width (break out of grid structure)",defaultValue:!1}),isFeatured:o.bool.tag({name:"Featured Race",description:"Two column, full-width layout",defaultValue:!1}),popularVote:o.bool.tag({name:"Popular Vote Only",description:"Hide the Percent field",defaultValue:!1}),showHeadshots:o.bool.tag({name:"Show Headshots",defaultValue:!0}),showContext:o.bool.tag({name:"Show Additional Context",defaultValue:!0}),showLabels:o.bool.tag({name:"Show Labels",defaultValue:!0}),state:o.oneOf(["michigan","texas","florida","georgia","virginia"]).tag({name:"State Icon",labels:{michigan:"Michigan",texas:"Texas",florida:"Florida",georgia:"Georgia",virginia:"Virginia"}}),headingLink:o.string.tag({name:"Heading Link",description:"A custom link for the heading",defaultValue:void 0}),openInNewWindow:o.bool.tag({name:"Open link in new window",defaultValue:!1})})},t.default=c},function(e,t,r){"use strict";var n=r(182),i=r(181),o=r(180),a=r(139),s=r(183),l=r(145),c=r(146),u=r(2),d=r(5),f=r(20),h=r(1),p=r(31),b=r(318),m=r(319),g=r(14),v=r(116),y=r(33),w=r(315),O=r(12),j=r(0);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const E=Object(h.forwardRef)((({showVideo:e=!1,dayLimit:t=1,lazy:r=!1,showInfo:h=!0,showMenu:x=!0,pinData:S,onClick:E=(()=>null),sx:k,shouldBeStatic:C=!1,serializedKey:P},M)=>{const{status:$,data:{braze:{custom_attributes:{pins_user_id:T}={}}}}=Object(p.b)(),{id:I,created:A,mediaType:R,description:D,administrativeArea:L,city:N,user:{id:B,userName:z}}=S,{hasUserLikedPin:F,totalPinLikeCount:U,handlePinLike:H,isLikeLoading:V,isLikeMutating:G}=Object(b.a)({pinId:I,pinUserId:T,serializedKey:P}),{hasUserCommented:W,totalCommentCount:q,isCommentLoading:K}=Object(m.a)({pinId:I,pinUserId:T,serializedKey:P}),{outputType:Y,arcSite:X}=Object(d.useAppContext)(),J="rawHTML"===Y,Z=3===Number(R),Q="localhost"===f.ENVIRONMENT?`/pins/user/${B}/?_website=${X}`:`/pins/user/${B}`,ee=Object(g.g)({link:`/pins/p/${I}`,arcSite:X});return Object(j.jsxs)(u.E,{ref:M,gap:"$0",bg:"$white",boxShadow:"$sm",sx:_({"&:hover":{boxShadow:"$rg"},"&:focus":{outline:"none",boxShadow:"$primaryButtonFocus"},"& .lightboxButton":{overflow:"hidden",borderTopRightRadius:h?"$lg":"$rg",borderTopLeftRadius:h?"$lg":"$rg",padding:0,margin:0,border:"none",outline:"none"}},k),className:"relative transition-300","data-id":I,onKeyUp:e=>"Enter"===e.key&&E(),children:[Object(j.jsx)("button",{type:"button",onClick:E,className:"lightboxButton","aria-label":Z?e?"Enlarge video and comment":"Preview video and comment":"Enlarge image and comment",children:Z&&e?Object(j.jsx)(v.a,{publicId:`media/pins/${I}`,width:400,height:400,autoPlay:!1,shouldBeStatic:C,sx:{height:"100%",width:"100%"},poster:`https://res.cloudinary.com/graham-media-group/video/upload/so_0/f_auto/q_auto/c_scale,w_1280/v1/media/pins/${I}.jpg`,lazy:!0,controls:!0,loop:!0,muted:!0}):Z&&!e?Object(j.jsxs)(u.e,{position:"relative",children:[Object(j.jsx)(u.r,{icon:c.faPlay,textColor:"$white",fontSize:["$8","$7"],sx:{position:"absolute",top:"50%",left:"50%",zIndex:"10",transform:"translate(-50%, -50%)"}}),Object(j.jsx)(y.a,{publicId:`media/pins/${I}`,lazy:r,layout:"responsive",height:400,width:400,alt:D||"",shouldBeStatic:C,videoPoster:Z,sx:{cursor:"pointer"}})]}):Object(j.jsx)(y.a,{publicId:`media/pins/${I}`,lazy:r,layout:"responsive",height:400,width:400,alt:D||"",shouldBeStatic:C,videoPoster:Z,sx:{cursor:"pointer"}})}),h&&Object(j.jsxs)(u.n,{className:"bottomTab",flexDirection:"column",justifyContent:"space-between",flexGrow:1,p:"$3",bg:"$white",position:"relative",borderBottomRightRadius:h?"$lg":"$rg",borderBottomLeftRadius:h?"$lg":"$rg",sx:{gap:"$4"},children:[x&&Object(j.jsx)(u.e,{position:"absolute",top:"$2",right:"$2",children:Object(j.jsx)(w.a,{id:I,alignment:"right"})}),Object(j.jsx)(u.E,{className:"picTitleDesc",flexDirection:"row",gap:"$3",children:Object(j.jsxs)(u.E,{gap:"$1",sx:{fontSize:"$1"},children:[z&&Object(j.jsx)(u.t,{href:Q,className:"userName",variant:"$base",width:"max-content",title:`View ${z}'s profile`,children:Object(j.jsx)(u.q,{level:5,textColor:"$blueGray.900",fontSize:"$2",width:"max-content",children:z})}),D&&Object(j.jsx)(u.M,{sx:{fontSize:"$0",color:"$blueGray.600",overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3"},children:D})]})}),!J&&Object(j.jsxs)(u.E,{direction:"row",gap:"$3",justifyContent:"space-between",alignItems:"center",sx:{fontSize:"$0",lineHeight:"$none"},children:[Object(j.jsxs)(u.E,{direction:"row",gap:"$3",children:[Object(j.jsxs)(u.t,{href:ee,sx:{dis
2play:"flex",alignItems:"center",gap:"$1",fontFamily:"$gibson",color:"$blueGray.500"},title:"View pin details",children:[Object(j.jsx)(u.r,{icon:n.faClock,textColor:"$blueGray.500"}),Object(j.jsx)("time",{dateTime:new Date(A).toISOString(),title:new Date(A).toLocaleString(),children:Object(g.h)({time:A,limit:t})})]}),Object(j.jsx)(u.E,{direction:"row",gap:"$2",alignItems:"center",className:"likes",children:Object(j.jsx)(u.f,{"aria-label":F?"Unlike pin":"Like pin",title:F?"Unlike pin":"Like pin",variant:"$wrapper",iconLeft:F||(null!=U?U:0)>0?a.faHeart:s.faHeart,size:"sm",loading:G,disabled:"loggedIn"===$&&(V||G),spinnerColor:"#64748b",spinnerBorderColor:"#e2e8f0",onClick:e=>{e.stopPropagation(),"loggedIn"===$?H():Object(O.c)("gmg_open_login_modal")},sx:{fontSize:"$0",color:"$blueGray.500","& svg":{color:F?"$red.600":"$blueGray.500"}},children:null!=U?U:0})}),Object(j.jsx)(u.E,{direction:"row",gap:"$2",alignItems:"center",className:"comments",children:Object(j.jsxs)(u.t,{href:ee,sx:{display:"flex",alignItems:"center",gap:"$1",fontFamily:"$gibson",color:"$blueGray.500",opacity:K?.5:1},title:(null!=q?q:0)>0?`View ${q} comments`:"Be the first to comment!",children:[Object(j.jsx)(u.r,{icon:(null!=q?q:0)>0?i.faCommentsAlt:o.faMessages,sx:{color:W?"$blue.600":"$blueGray.500"}}),K?"...":null!=q?q:0]})})]}),Object(j.jsxs)(u.E,{direction:"row",gap:"$2",sx:{alignItems:"center"},children:[Object(j.jsx)(u.r,{icon:l.faMapPin,sx:{color:"$blueGray.500"}}),Object(j.jsx)(u.M,{as:"span",title:"Unknown"!==N&&N?N:L,sx:{fontFamily:"$gibson",fontSize:"$0",color:"$blueGray.700",maxWidth:["80px","72px","120px","80px","120px"],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"Unknown"!==N&&N?N:L})]})]})]})]})}));E.displayName="Pin",t.a=Object(h.memo)(E)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="comments",i=[128490,61670],o="f086",a="M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2 0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.3-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9l0 0 0 0-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z";t.definition={prefix:"fas",iconName:n,icon:[640,512,i,o,a]},t.faComments=t.definition,t.prefix="fas",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return w}));var n=r(330),i=r(329),o=r(331),a=r(332),s=r(185),l=r(2),c=r(5),u=r(77),d=r(37),f=r(81),h=r(55);var p=r(14),b=r(31),m=r(0);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function w(e){let{id:t,linkToPin:r=!0}=e,w=y(e,["id","linkToPin"]);const{arcSite:O,siteProperties:{siteDomain:j}}=Object(c.useAppContext)(),{status:x}=Object(b.b)(),{sendReport:_}=function({id:e}){const{siteProperties:{siteName:t},arcSite:r}=Object(c.useAppContext)(),n=Object(f.f)(t),{trigger:i}=Object(u.a)(`${n}/pins/abuse-reports/${f.a[r]}/report/${e}`,h.c,{onSuccess(){d.toast.success("Pin reported successfully")},onError(e){var t;d.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to report pin")}});return{sendReport:i}}({id:t});return Object(m.jsx)(l.m,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({alignment:"left",buttonIcon:i.faEllipsisVertical,"aria-label":"View More Options",sx:{width:"2rem",height:"2rem",zIndex:10,"& > button":{borderRadius:"$full",overflow:"hidden",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center","&:focus":{borderRadius:"$full"},"&:hover":{backgroundColor:"$blueGray.200"}},"& .buttonIcon":{marginLeft:"1px",color:"$blueGray.500"}},variant:"$wrapper"},w,{children:Object(m.jsxs)(l.e,{borderBottom:"1px solid",borderColor:"$black.200",py:"$1",children:[Object(m.jsx)(l.w,{icon:s.faShare,onClick:async()=>{try{await navigator.share({url:Object(p.g)({link:`/pins/p/${t}`,arcSite:O})})}catch(e){console.error(e)}},children:"Share Link"}),Object(m.jsx)(l.w,{icon:n.faCopy,onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(`https://www.${j}/pins/p/${t}`)},children:"Copy Link"}),r?Object(m.jsx)(l.w,{icon:o.faLocationPin,href:Object(p.g)({link:`/pins/p/${t}`,arcSite:O}),onClick:()=>null,children:"Go to Pin"}):null,"loggedIn"===x&&Object(m.jsx)(l.w,{icon:a.faFlag,onClick:()=>_(),children:"Report Pin"})]})}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n=r(1),i=r(5),o=r(45),a=r(77),s=r(37),l=r(81),c=r(55);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h({pinId:e,pinUserId:t,fallbackData:r}){var u,f;const{siteProperties:{siteName:h}}=Object(i.useAppContext)(),p=Object(n.useMemo)((()=>Object(l.f)(h)),[h]),b=e?`${p}/pins/${e}`:null,m=e&&t?`${p}/pins/${e}/likes/likedBy/${t}`:null,{data:g,mutate:v}=Object(o.b)(b,{fallbackData:r}),{data:y,mutate:w}=Object(o.b)(m,{revalidateOnFocus:!0}),O=null!==(u=null==g?void 0:g.likeCount)&&void 0!==u?u:0,j=null!==(f=null==y?void 0:y.userLikedPin.value)&&void 0!==f&&f,x=Object(n.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Like",gaCategory:"Pins",gaAction:"Liked",gaLabel:`https://www.${h.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${h.toLowerCase()}/pins/${e}/`})}),[h,e]),_=Object(n.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Unlike",gaCategory:"Pins",gaAction:"Unliked",gaLabel:`https://www.${h.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${h.toLowerCase()}/pins/${e}/`})}),[h,e]),{trigger:S,isMutating:E}=Object(a.a)(e?`${p}/pins/${e}/likes`:null,c.c,{onSuccess:()=>{x(),s.toast.success("Pin liked successfully")},onError:e=>{var t;s.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to like pin")},rollbackOnError:!0}),{trigger:k,isMutating:C}=Object(a.a)(t?`${p}/pins/${e}/likes/deleteLikedBy/${t}`:null,c.c,{onSuccess:()=>{_(),s.toast.success("Pin unliked successfully")},onError:e=>{var t;s.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to unlike pin")},rollbackOnError:!0});return{hasUserLikedPin:j,totalPinLikeCount:O,handlePinLike:async()=>
2{if(!t||!g)return;const e=!j,r=e?O+1:Math.max(O-1,0);v(d({},g,{likeCount:r}),{optimisticData:d({},g,{likeCount:r}),rollbackOnError:!0,revalidate:!1}),await w({userLikedPin:{value:e}},{optimisticData:{userLikedPin:{value:e}},rollbackOnError:!0,revalidate:!1});try{e?await S({text:""}):await k()}catch(e){console.error("[handlePinLike] Error:",e)}},isLikeLoading:!g||void 0===y,isLikeMutating:E||C}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(1),i=r(5),o=r(45),a=r(77),s=r(37),l=r(81),c=r(55),u=r(31);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p({pinId:e,pinUserId:t,fallbackData:r}){var d;const{siteProperties:{siteName:h}}=Object(i.useAppContext)(),{data:p}=Object(u.b)(),b=Object(n.useMemo)((()=>Object(l.f)(h)),[h]),m=e?`${b}/pins/${e}`:null,{data:g,mutate:v}=Object(o.b)(m,{fallbackData:r}),y=null!==(d=null==g?void 0:g.commentCount)&&void 0!==d?d:0,w=Object(n.useMemo)((()=>{var e;return null!==(e=null==g?void 0:g.comments)&&void 0!==e?e:[]}),[null==g?void 0:g.comments]),O=Object(n.useMemo)((()=>!(!t||!w.length)&&w.some((e=>e.userId===t))),[t,w]),j=Object(n.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Comment",gaCategory:"Pins",gaAction:"Comment",gaLabel:`https://www.${h.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${h.toLowerCase()}/pins/${e}/`})}),[h,e]),{trigger:x,isMutating:_}=Object(a.a)(e?`${b}/pins/${e}/comments`:null,c.c,{onSuccess:()=>{j(),s.toast.success("Comment added successfully")},onError:e=>{var t;s.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to add comment")},rollbackOnError:!0});return{hasUserCommented:O,totalCommentCount:y,comments:w,handlePinComment:async r=>{var n,i;if(!t||!g||!r.trim())return;const o={id:`temp_${Date.now()}`,text:r.trim(),userId:t,pinId:e,status:1,created:Date.now(),modified:Date.now(),user:{id:t,userName:(null===(n=p.braze)||void 0===n||null===(i=n.custom_attributes)||void 0===i?void 0:i.display_name)||"Pins User",firstName:"",lastName:""}},a=y+1,s=[o,...w];v(f({},g,{commentCount:a,comments:s}),{optimisticData:f({},g,{commentCount:a,comments:s}),rollbackOnError:!0,revalidate:!1});try{await x({text:r})}catch(e){console.error("[handlePinComment] Error:",e)}},isCommentLoading:!g,isCommentMutating:_}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(5),i=r(45),o=r(77),a=r(1),s=r(20),l=r(37),c=r(81),u=r(55);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=["localhost","gmg-sandbox"].includes(s.ENVIRONMENT);function b({pinId:e,pinUserId:t,serializedKey:r}){var s;const{siteProperties:{siteName:d}}=Object(n.useAppContext)(),h=Object(a.useMemo)((()=>Object(c.f)(d)),[d]),b=Object(a.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Like",gaCategory:"Pins",gaAction:"Liked",gaLabel:`https://www.${d.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${d.toLowerCase()}/pins/${e}/`})}),[d,e]),m=Object(a.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Unlike",gaCategory:"Pins",gaAction:"Unliked",gaLabel:`https://www.${d.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${d.toLowerCase()}/pins/${e}/`})}),[d,e]),g=e&&t?`${h}/pins/${e}/likes/likedBy/${t}`:null,{cache:v,mutate:y}=Object(i.c)(),{data:w,mutate:O}=Object(i.b)(g,{revalidateOnFocus:!0}),{trigger:j,isMutating:x}=Object(o.a)(e?`${h}/pins/${e}/likes`:null,u.c,{onSuccess:()=>{b(),l.toast.success("Pin liked successfully")},onError:e=>{var t;l.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to like pin")},rollbackOnError:!0}),{trigger:_,isMutating:S}=Object(o.a)(t?`${h}/pins/${e}/likes/deleteLikedBy/${t}`:null,u.c,{onSuccess:()=>{m(),l.toast.success("Pin unliked successfully")},onError:e=>{var t;l.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to unlike pin")},rollbackOnError:!0});
2if(!r)return p&&console.error("usePinLike: serializedKey is not provided. This may affect caching behavior."),{hasUserLikedPin:!1,totalPinLikeCount:void 0,handlePinLike:()=>Promise.resolve(),isLikeLoading:!1,isLikeMutating:!1};const E=v.get(r),k=null==E?void 0:E.data,C=null==k?void 0:k.flatMap((e=>e.mapPins)).find((t=>t.id===e)),P=null==C?void 0:C.likeCount,M=null!==(s=null==w?void 0:w.userLikedPin.value)&&void 0!==s&&s;return{hasUserLikedPin:M,totalPinLikeCount:P,handlePinLike:async()=>{if(!t||!C)return;const n=!M,i=(t=[])=>t.map((t=>f({},t,{mapPins:t.mapPins.map((t=>{if(t.id!==e)return t;return f({},t,{likeCount:n?t.likeCount+1:Math.max(t.likeCount-1,0)})}))})));y(r,(e=>i(e)),{optimisticData:i,rollbackOnError:!0,revalidate:!1}),await O({userLikedPin:{value:n}},{optimisticData:{userLikedPin:{value:n}},rollbackOnError:!0,revalidate:!1});try{n?await j({text:""}):await _()}catch(e){console.error("[handlePinLike] Error:",e)}},isLikeLoading:void 0===w,isLikeMutating:x||S}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r(5),i=r(45),o=r(77),a=r(1),s=r(20),l=r(527),c=r(37),u=r(81),d=r(55),f=r(31);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m=["localhost","gmg-sandbox"].includes(s.ENVIRONMENT);function g({pinId:e,pinUserId:t,serializedKey:r}){const{siteProperties:{siteName:s}}=Object(n.useAppContext)(),{data:h}=Object(f.b)(),b=Object(a.useMemo)((()=>Object(u.f)(s)),[s]),g=Object(a.useCallback)((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"PinEvent_Comment",gaCategory:"Pins",gaAction:"Comment",gaLabel:`https://www.${s.toLowerCase()}/pins/${e}/`,pin_id:e,pin_url:`https://www.${s.toLowerCase()}/pins/${e}/`})}),[s,e]),{trigger:v,isMutating:y}=Object(o.a)(e?`${b}/pins/${e}/comments`:null,d.c,{onSuccess:()=>{g(),c.toast.success("Comment added successfully")},onError:e=>{var t;c.toast.error((null==e||null===(t=e.info)||void 0===t?void 0:t.error)||"Failed to add comment")},rollbackOnError:!0}),{data:w,mutate:O}=Object(i.b)(e?`${b}/pins/${e}`:null),{cache:j,mutate:x}=Object(i.c)(),_=Object(a.useMemo)((()=>{var e;return null!==(e=null==w?void 0:w.comments)&&void 0!==e?e:[]}),[null==w?void 0:w.comments]),S=Object(a.useMemo)((()=>!(!t||!_.length)&&_.some((e=>e.userId===t))),[t,_]);if(!r)return m&&console.error("usePinComment: serializedKey is not provided. This may affect caching behavior."),{hasUserCommented:!1,totalCommentCount:void 0,comments:[],handlePinComment:()=>Promise.resolve(),isCommentLoading:!1,isCommentMutating:!1};const E=j.get(r),k=null==E?void 0:E.data,C=null==k?void 0:k.flatMap((e=>e.mapPins)).find((t=>t.id===e)),P=null==C?void 0:C.commentCount;return{hasUserCommented:S,totalCommentCount:P,comments:_,handlePinComment:async n=>{var i,o;if(!t||!C||!n.trim())return;const a={id:`temp_${Object(l.a)()}`,text:n.trim(),userId:t,pinId:e,status:1,created:Date.now(),modified:Date.now(),user:{id:t,userName:(null===(i=h.braze)||void 0===i||null===(o=i.custom_attributes)||void 0===o?void 0:o.display_name)||"Pins User",firstName:"",lastName:""}},s=(t=[])=>t.map((t=>p({},t,{mapPins:t.mapPins.map((t=>t.id!==e?t:p({},t,{commentCount:t.commentCount+1,comments:[a,...t.comments]})))})));x(r,(e=>s(e)),{optimisticData:s,rollbackOnError:!0,revalidate:!1}),await O((e=>e?p({},e,{commentCount:e.commentCount+1,comments:[a,...e.comments]}):e),{optimisticData:w?p({},w,{commentCount:w.commentCount+1,comments:[a,...w.comments]}):void 0,rollbackOnError:!0,revalidate:!1});try{await v({text:n})}catch(e){console.error("[handlePinComment] Error:",e)}},isCommentLoading:!w||void 0===P,isCommentMutating:y}}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="square-arrow-up-right",i=["external-link-square"],o="f14c",a="M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zm64 16c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z";t.definition={prefix:"far",iconName:n,icon:[448,512,i,o,a]},t.faSquareArrowUpRight=t.definition,t.prefix="far",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";var n=r(2),i=r(185),o=r(1),a=r(37),s=r(119),l=r(120),c=r(216),u=r(239),d=r(327),f=r(328);const h=[{name:"facebook",icon:l.faFacebookSquare,ariaLabel:"Share on Facebook",buildShareUrl:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`},{name:"twitter",icon:c.faSquareXTwitter,ariaLabel:"Share on Twitter",buildShareUrl:(e,t)=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t||"")}`},{name:"email",icon:s.faEnvelope,ariaLabel:"Share by Email",buildShareUrl:(e,t,r)=>{const n=`${r?`${r} \n\n`:""}${e}`;return`mailto:?subject=${encodeURIComponent(t||"Check this out")}&body=${encodeURIComponent(n)}`}}],p=e=>{switch(e){case"success":return"$green.300";case"error":return"$red.300";default:return}},b=e=>{switch(e){case"success":return d.faClipboardCheck;case"error":return u.faCircleExclamation;default:return f.faCopy}},m=e=>{switch(e){case"success":return"Link copied to clipboard";case"error":return"Copy failed — manual copy link provided";default:return"Copy link"}};var g=r(0);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=({url:e,buttonText:t,sx:r,onCopySuccess:i})=>{const[s,l]=Object(o.useState)("idle");Object(o.useEffect)((()=>{const e="success"===s||"error"===s?setTimeout((()=>l("idle")),5e3):void 0;return()=>e&&clearTimeout(e)}),[s]);return Object(g.jsx)(n.f,{variant:"$gray",fontSize:"$2",onClick:async()=>{l("copying");try{await navigator.clipboard.writeText(e),l("success"),null==i||i(),a.toast.success("Link copied to clipboard")}catch{a.toast.error("Copy failed. Here's the link to copy:",{description:e,duration:1/0,closeButton:!0}),l("error")}},"aria-label":m(s),title:m(s),iconLeft:b(s),disabled:"copying"===s,borderRadius:"$rg",sx:y({},r,{},(c=p(s),c?{backgroundColor:c,"&:hover":{backgroundColor:c},"&:focus":{backgroundColor:c},"&:active":{backgroundColor:c}}:{}),{transition:"background-color 0.3s ease"}),children:t&&("success"===s?"Copied":t)});var c},j=r(314);const x={display:"flex",flex:1,justifyContent:"center",alignItems:"center",paddingY:"$2",paddingX:"$2",fontSize:"$2",boxSizing:"border-box",backgroundColor:"$blueGray.100",border:"1px solid $blueGray.200",borderRadius:"$rg",fontWeight:"$medium",letterSpacing:"$wide",color:"$blueGray.700",transition:"color 300ms ease, background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), border 300ms ease","&:hover":{backgroundColor:"$blueGray.200",border:"1px solid $blueGray.300"},"&:focus":{backgroundColor:"$blueGray.200",boxShadow:"$grayButtonFocus",border:"1px solid $blueGray.300",outline:"none"},"&:active":{backgroundColor:"$blueGray.300",boxShadow:"$grayButtonFocus",border:"1px solid $blueGray.400"}};var _=r(100);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?S(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C=()=>{const[e,t]=Object(o.useState)(0);Object(o.useEffect)((()=>{const e=()=>{const e=document.querySelector("span.vf-comments-count, span.vf-counter");if(e){const r=parseInt(e.textContent||"0",10);t(r)}};e();const r=new MutationObserver(e),n=document.querySelector(".comment-count-wrapper");return n&&r.observe(n,{childList:!0,subtree:!0,characterData:!0}),()=>r.disconnect()}),[]);const r=e>0,i=1===e?"comment":"comments";return Object(g.jsxs)(n.t,{href:"#commentDiv","aria-label":r?`View ${e} ${i}`:"View comments",sx:E({position:"relative"},x),children:[Object(g.jsx)(n.r,{icon:j.faComments,sx:{fontSize:"$2",color:"$blueGray.700"}}),r&&Object(g.jsx)(_.a,{count:e,variant:"red",size:"xs",sx:{position:"absolute",top:"-6px",right:"-6px"}}),Object(g.jsx)(n.e,{className:"comment-count-wrapper",sx:{position:"absolute",width:0,height:0,overflow:"hidden",visibility:"hidden"},children:Object(g.jsx)("vf-conversations-count",{className:"vf-counter"})})]})};var P=({url:e,onShareSuccess:t})=>{const r=Object(o.useRef)(),[n,i]=Object(o.useState)(!1),[a,s]=Object(o.useState)(!1);return Object(o.useEffect)((()=>()=>{r.current&&clearTimeout(r.current)}),[]),{handleShare:async()=>{var r,n;const o="undefined"!=typeof window,a={url:e};if(o&&(null===(r=(n=navigator).canShare)||void 0===r?void 0:r.call(n,a))&&window.innerWidth<=1024)try{await navigator.share(a),null==t||t()}catch(e){"AbortError"!==e.name&&i(!0)}else i(!0)},showFallback:n,isClosing:a,closeFallback:()=>{r.current&&clearTimeout(r.current),a||(s(!0),r.current=window.setTimeout((()=>{i(!1),s(!1)}),300))}}};function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a=({url:e,title:t,description:r,onShareSuccess:a,shareButtonText:s,copyButtonText:l,sx:c,showCommentButton:u=!0})=>{const d=Object(o.useRef)(null),[f,p]=Object(o.useState)(!1),{handleShare:b,showFallback:m,isClosing:v,closeFallback:y}=P({url:e,onShareSuccess:a});Object(o.useEffect)((()=>{if("undefined"==typeof window)return;const e=()=>{const e=document.getElementById("commentDiv");p(!!e)};e();const t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>{t.disconnect()}}),[]),Object(o.useEffect)((()=>{m&&d.current&&d.current.focus()}),[m]);const w=u&&f;return Object(g.jsx)(n.E,{direction:"row",gap:"$2",alignItems:"center",width:"100%",sx:$({},c,{opacity:v?0:1,transition:"opacity 0.3s ease-in-out",pointerEvents:v?"none":"auto"}),children:m?Object(g.jsxs)(g.Fragment,{children:[h.map(((i,o)=>Object(g.jsx)(n.t,{ref:0===o?d:void 0,href:i.buildShareUrl(e,t,r),onClick:()=>{null==a||a(),y()},"aria-label":i.ariaLabel,title:i.ariaLabel,target:"_blank",rel:"noopener noreferrer",variant:"$base",sx:x,children:Object(g.jsx)(n.r,{icon:i.icon,fontSize:"$2",textColor:"$blueGray.700"})},i.name))),Object(g.jsx)(O,{url:e,buttonText:l,sx:x,onCopySuccess:a}),w&&Object(g.jsx)(C,{})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(n.f,{variant:"$gray",fontSize:"$2",onClick:b,"aria-label":"Share content",title:"Share content",flex:"1",borderRadius:"$rg",iconLeft:i.faShare,sx:x,children:s}),Object(g.jsx)(O,{url:e,buttonText:l,sx:x,onCopySuccess:a}),w&&Object(g.jsx)(C,{})]})})}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="1.21.0"},function(e,t,r){"use strict";function n(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(165);function i(e){const[t,r]=e.split("."),i=parseInt(t).toString(2),o=parseInt(r).toString(2),a=i.padStart(6,"0"),s=o.padStart(6,"0");return n.a[a]+n.a[s]}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(523);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faExpandAlt=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){!function(e,t){function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,t}var n=r(t);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}var o="Left",a="Right",s="Up",l="Down",c={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},u={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},d="mousemove",f="mouseup",h="touchend",p="touchmove",b="touchstart";function m(e,t,r,n){return e>t?r>0?a:o:n>0?l:s}function g(e,t){if(0===t)return e;var r=Math.PI/180*t;return[e[0]*Math.cos(r)+e[1]*Math.sin(r),e[1]*Math.cos(r)-e[0]*Math.sin(r)]}function v(e,t){var r=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,r){r.trackMouse&&(document.addEventListener(d,n),document.addEventListener(f,s));var o="touches"in t?t.touches[0]:t,a=g([o.clientX,o.clientY],r.rotationAngle);return i({},e,u,{initial:[].concat(a),xy:a,start:t.timeStamp||0})}))},n=function(t){e((function(e,r){if("touches"in t&&t.touches.length>1)return e;var n="touches"in t?t.touches[0]:t,o=g([n.clientX,n.clientY],r.rotationAngle),a=o[0],s=o[1],l=a-e.xy[0],u=s-e.xy[1],d=Math.abs(l),f=Math.abs(u),h=(t.timeStamp||0)-e.start,p=Math.sqrt(d*d+f*f)/(h||1),b=[l/(h||1),u/(h||1)],v=m(d,f,l,u),y="number"==typeof r.delta?r.delta:r.delta[v.toLowerCase()]||c.delta;if(d<y&&f<y&&!e.swiping)return e;var w={absX:d,absY:f,deltaX:l,deltaY:u,dir:v,event:t,first:e.first,initial:e.initial,velocity:p,vxvy:b};w.first&&r.onSwipeStart&&r.onSwipeStart(w),r.onSwiping&&r.onSwiping(w);var O=!1;return(r.onSwiping||r.onSwiped||"onSwiped"+v in r)&&(O=!0),O&&r.preventDefaultTouchmoveEvent&&r.trackTouch&&t.cancelable&&t.preventDefault(),i({},e,{first:!1,eventData:w,swiping:!0})}))},o=function(t){e((function(e,r){var n;if(e.swiping&&e.eventData){n=i({},e.eventData,{event:t}),r.onSwiped&&r.onSwiped(n);var o=r["onSwiped"+n.dir];o&&o(n)}else r.onTap&&r.onTap({event:t});return i({},e,u,{eventData:n})}))},a=function(){document.removeEventListener(d,n),document.removeEventListener(f,s)},s=function(e){a(),o(e)},l=function(e,t){var i=function(){};if(e&&e.addEventListener){var a=[[b,r],[p,n],[h,o]];a.forEach((function(r){var n=r[0],i=r[1];return e.addEventListener(n,i,{passive:t})})),i=function(){return a.forEach((function(t){var r=t[0],n=t[1];return e.removeEventListener(r,n)}))}}return i},v={ref:function(t){null!==t&&e((function(e,r){if(e.el===t)return e;var n={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),n.cleanUpTouch=void 0),r.trackTouch&&t&&(n.cleanUpTouch=l(t,!r.preventDefaultTouchmoveEvent)),i({},e,{el:t},n)}))}};return t.trackMouse&&(v.onMouseDown=r),[v,l]}function y(e,t,r){var n={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),n.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(n.cleanUpTouch=r(e.el,!t.preventDefaultTouchmoveEvent)),i({},e,n)}function w(e){var t=e.trackMouse,r=n.useRef(i({},u)),o=n.useRef(i({},c));o.current=i({},c,e,{delta:void 0===e.delta?c.delta:e.delta,rotationAngle:void 0===e.rotationAngle?c.rotationAngle:e.rotationAngle,trackTouch:void 0===e.trackTouch?c.trackTouch:e.trackTouch});var a=n.useMemo((function(){return v((function(e){return r.current=e(r.current,o.current)}),{trackMouse:t})}),[t]),s=a[0],l=a[1];return r.current=y(r.current,o.current,l),s}e.DOWN=l,e.LEFT=o,e.RIGHT=a,e.UP=s,e.useSwipeable=w}(t,r(1))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="clipboard-check",i=[],o="f46c",a="M192 0c-41.8 0-77.4 26.7-90.5 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H282.5C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM305 273L177 401c-9.4 9.4-24.6 9.4-33.9 0L79 337c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L271 239c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";t.definition={prefix:"fas",iconName:n,icon:[384,512,i,o,a]},t.faClipboardCheck=t.definition,t.prefix="fas",t.iconName=n,t.width=384,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="copy",i=[],o="f0c5",a="M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z";t.definition={prefix:"fas",iconName:n,icon:[448,512,i,o,a]},t.faCopy=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="ellipsis-vertical",i=["ellipsis-v"],o="f142",a="M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z";t.definition={prefix:"far",iconName:n,icon:[128,512,i,o,a]},t.faEllipsisVertical=t.definition,t.prefix="far",t.iconName=n,t.width=128,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="copy",i=[],o="f0c5",a="M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z";t.definition={prefix:"far",iconName:n,icon:[448,512,i,o,a]},t.faCopy=t.definition,t.prefix="far",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="location-pin",i=["map-marker"],o="f041",a="M320.7 249.2c-10.5 24.8-25.4 52.2-42.5 79.9C249.8 375.3 216.8 420 192 451.7c-24.8-31.8-57.8-76.4-86.2-122.6c-17.1-27.7-32-55.1-42.5-79.9C52.5 223.6 48 204.4 48 192c0-79.5 64.5-144 144-144s144 64.5 144 144c0 12.4-4.5 31.6-15.3 57.2zm-105 250C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0z";t.definition={prefix:"far",iconName:n,icon:[384,512,i,o,a]},t.faLocationPin=t.definition,t.prefix="far",t.iconName=n,t.width=384,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="flag",i=[127988,61725],o="f024",a="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 368 480c0 17.7 14.3 32 32 32s32-14.3 32-32V352l64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30V66.1c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48V32z";t.definition={prefix:"fas",iconName:n,icon:[448,512,i,o,a]},t.faFlag=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"q",(function(){return u})),r.d(t,"r",(function(){return d})),r.d(t,"g",(function(){return f})),r.d(t,"m",(function(){return h})),r.d(t,"h",(function(){return p})),r.d(t,"l",(function(){return b})),r.d(t,"i",(function(){return m})),r.d(t,"b",(function(){return g})),r.d(t,"j",(function(){return v})),r.d(t,"p",(function(){return y})),r.d(t,"d",(function(){return w})),r.d(t,"c",(function(){return O})),r.d(t,"n",(function(){return x})),r.d(t,"e",(function(){return _})),r.d(t,"f",(function(){return S})),r.d(t,"k",(function(){return E})),r.d(t,"a",(function(){return k}));r(43);var n=r(38),i=r(64),o=r(26),a=r(45),s=r(55),l=r(50);const c=({offerName:e,site:t})=>{const r=Object(o.useContent)({source:"subscription-offer",query:{offerName:e}}),n=Object(l.a)(t),{data:i,error:c,isLoading:u,isValidating:d}=Object(a.b)(`${n}/retail/public/v1/offer/live/${e}`,s.a,{revalidateOnFocus:!1,refreshInterval:0,fallbackData:r});return{offers:i,error:c,isLoading:u,isValidating:d}},u=e=>{const{sku:t,site:r}=e||{},n=Object(l.a)(r),{data:i,error:o,isLoading:c}=Object(a.b)(n&&t?`${n}
2/retail/public/v1/product/${t}`:null,s.a,{revalidateOnFocus:!1,refreshInterval:0});return{product:i,error:o,isLoading:c}},d=({id:e,site:t})=>{const r=Object(l.a)(t),{data:n,error:i,isLoading:o,mutate:c}=Object(a.b)(e?`${r}/sales/public/v1/subscription/${e}/details`:null,s.b,{revalidateOnFocus:!1,refreshInterval:0});return{subscriptions:n,error:i,isLoading:o,mutate:c}},f=async()=>{try{const e=await i.a.getAllActiveSubscriptions();if(Object(n.isAPIErrorResponse)(e))throw new Error(e.message);return e}catch(e){if(console.error("[getAllActiveSubscriptions] Error getting active subscriptions",e),e instanceof Error)throw new Error(e.message);throw new Error("Error getting active subscriptions")}},h=e=>{const t=Object(l.a)(e);return{cancelSubscription:async(e,r,n)=>{const i=localStorage.getItem("ArcId.USER_INFO");if(!i||"{}"===i)throw new Error("No access token found");const{accessToken:o}=JSON.parse(i),a=await fetch(`${t}/sales/public/v1/subscription/${e}/cancel`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify({reason:r,reasonCode:n})});if(200!==a.status)throw new Error("Error canceling subscription");return await a.json()}}},p=async()=>{try{const e=await i.a.getPaymentOptions();if(Object(n.isAPIErrorResponse)(e))throw new Error(e.message);return e}catch(e){if(console.error("[getPaymentOptions] Error getting payment options",e),e instanceof Error)throw new Error(e.message);throw new Error("Error getting payment options")}},b=async(e,t)=>{try{const r=await i.a.updateBillingAddress(e,t);if(Object(n.isAPIErrorResponse)(r))throw new Error(r.message);return r}catch(e){if(console.error("[updateBillingAddress] Error updating billing address",e),e instanceof Error)throw new Error(e.message);throw new Error("Error updating billing address")}},m=async(e,t)=>{try{const r=await i.a.initializePayment(e,t);if(Object(n.isAPIErrorResponse)(r))throw new Error(r.message);return r}catch(e){if(console.error("[initializePayment] Error initializing payment",e),e instanceof Error)throw new Error(e.message);throw new Error("Error initializing payment")}},g=async(e,t,r)=>{try{const o=await i.a.createNewOrder(e,r,null,t.firstName,t.lastName);if(Object(n.isAPIErrorResponse)(o))throw new Error(o.message);return o}catch(e){if(console.error("[createNewOrder] Error creating new order",e),Object(n.isAPIErrorResponse)(e))throw new Error(e.message);throw new Error("Error creating new order")}},v=async(e,t)=>{try{const r=await i.a.initializePaymentUpdate(e,t);if(Object(n.isAPIErrorResponse)(r))throw new Error(r.message);return r}catch(e){if(console.error("[initializePaymentUpdate] Error initializing payment update",e),e instanceof Error)throw new Error(e.message);throw new Error("Error initializing payment update")}},y=({orderNumber:e,site:t})=>{const r=Object(l.a)(t),{data:n,error:i,isLoading:o,mutate:c}=Object(a.b)(e?`${r}/sales/public/v1/order/detail/${e}`:null,s.b,{refreshInterval:0,errorRetryCount:3});return{orderDetails:n,error:i,isLoading:o,mutate:c}},w=async(e,t,r,o)=>{try{const a=await i.a.finalizePaymentUpdate(e,t,r,o);if(Object(n.isAPIErrorResponse)(a))throw new Error(a.message);return a}catch(e){if(console.error("[finalizePaymentUpdate] Error finalizing payment update",e),e instanceof Error)throw new Error(e.message);throw new Error("Error finalizing payment update")}},O=async(e,t,r,o)=>{try{const a=await i.a.finalizePayment(e,t,r,o);if(Object(n.isAPIErrorResponse)(a))throw new Error(a.message);return a}catch(e){if(console.error("[finalizePayment] Error finalizing payment",e),e instanceof Error)throw new Error(e.message);throw new Error("Error finalizing payment")}},j=e=>async t=>{try{const r=await i.a.removeItemFromCart(t);if(Object(n.isAPIErrorResponse)(r))throw new Error(r.message);e()}catch(e){console.error("[useRemoveFromCart] Error removing item from cart",e)}},x=e=>{const{cart:t,error:r,isLoading:o,mutate:c}=(e=>{const t=Object(l.a)(e),{data:r,error:n,isLoading:i,mutate:o}=Object(a.b)(`${t}/sales/public/v1/cart`,s.b);return{cart:r,error:n,isLoading:i,mutate:o}})(e);return{useGetCart:()=>({cart:t,error:r,isLoading:o,mutate:c}),addToCart:(u=c,async e=>{try{const t=await i.a.addItemToCart(e);if(Object(n.isAPIErrorResponse)(t))throw new Error(t.message);u()}catch(e){console.error("[useAddToCart] Error adding item to cart",e)}}),removeFromCart:j(c),clearCart:async e=>{await(async e=>{try{const t=await i.a.clearCart();if(Object(n.isAPIErrorResponse)(t))throw new Error(t.message);null==e||e()}catch(e){console.error("[useClearCart] Error clearing cart",e)}})(e?c:void 0)}};var u};function _(e){if(!e)return"";const t=new Date(e);return`${new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"numeric"}).format(t)} at ${new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric",hour12:!0}).format(t)}`}function S(e){return`${e.slice(0,2)}/${e.slice(2)}`}function E(e){return e.replace(/<[^>]*>/g,"")}const k={gmg:"https://api.wsls.com/pins-contest/brg","gmg-sandbox":"https://api.wsls.com/pins-contest-dev/brg",localhost:"https://api.wsls.com/pins-contest-kenny/brg"}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(537);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faExclamationTriangle=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLoggedIn=void 0;var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=r(85),s=r(34),l=n.__importStar(r(153)),c=r(244);t.default=function(e,t,r){return void 0===r&&(r={}),o.default._isSession=!r.rememberMe,(0,l.default)(l.RecaptchaMethod.SIGN_IN,r.recaptchaToken).then((function(){return fetch("".concat(o.default.apiOrigin,"/identity/public/v1/auth/login").concat(r.cookie?"?cookie=true":""),{method:"POST",headers:s.headers,body:JSON.stringify({userName:e,credentials:t,grantType:"password",rememberMe:r.rememberMe,recaptchaToken:r.recaptchaToken})})})).then(i.default).then((function(e){if((0,a.isUserIdentity)(e))return o.default.userIdentity=e,window.postMessage({type:"ARC_LOGIN_SUCCESS",grantType:"password"},"*"),o.default.userIdentity;throw e}))};var u=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name="HttpError",n.code=t,n}return n.__extends(t,e),t}(Error);t.isLoggedIn=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return o.default.userIdentity&&o.default.userIdentity.accessToken&&o.default.userIdentity.refreshToken?[3,1]:[2,!1];case 1:if(!(0,c.isJwtExpired)(o.default.userIdentity.accessToken)&&(0,c.jwtHasExp)(o.default.userIdentity.accessToken))return[3,6];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,o.default.extendSession()];case 3:return t.sent(),[2,!0];case 4:return(e=t.sent())instanceof u&&console.warn("".concat(s.logPrefix,' code:"').concat(e.code,'", message:"').concat(e.message,'"')),[2,!1];case 5:return[3,7];case 6:return[2,!0];case 7:return[2]}}
2))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="circle-xmark",i=[61532,"times-circle","xmark-circle"],o="f057",a="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faCircleXmark=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__337__},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__338__},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__339__},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(68),o=r(0);const a=e=>{const{customFields:{gridColumns:t,gridHeader:r,bgColor:n,bgImage:a,level:s,underlineType:l,headerColor:c,headerColorClass:u="",anchor:d,innerGrid:f,noAd:h,userPadding:p},id:b,children:m}=e,g=parseInt(s,10);let v=null;switch(parseInt(t,10)){case 2:v="twoCol";break;case 3:v="threeCol";break;case 4:v="fourCol";break;case 5:v="fiveCol";break;default:v="oneCol"}let y=u;if(!y.length>0)switch(c){case"2":y="color_white";break;case"3":y="color_blue";break;case"4":y="color_red";break;case"5":y="color_medium-gray";break;default:y="color_black"}const w=d?Object(o.jsx)("div",{id:d}):null;let O=null;O=f?"inner-grid":"";const j={};a&&(j.backgroundImage=`url('${a}')`),n&&(j.backgroundColor=n);const x={};return p&&(x.padding=p),Object(o.jsxs)("section",{className:"fw-bkg",style:j,children:[w,Object(o.jsxs)("div",{className:`scGrid ${v} full-width ${h?"noAd":""}`,id:b,style:Object.assign({maxWidth:"1200px"},x),children:[r?Object(o.jsx)(i.a,{level:g,underlineType:l,marginBottom:1,headerColor:y,children:r}):null,Object(o.jsx)("div",{className:`${O}`,children:m})]})]})};a.propTypes={customFields:n.shape({warning:n.label.tag({label:"WARNING: This feature is being depreciated and should not be used. Replace any found installations with either the Full Width Chain or Main Content Chain."}),noAd:n.boolean.tag({defaultValue:!1,name:"Disallow ads inside of this chain?",description:"When checked, no ads will appear within the content of this chain"}),gridHeader:n.string.tag({name:"Section Header",group:"Section Header (Optional)"}),level:n.oneOf([1,2,3,4,5]).tag({name:"Heading Tag",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4,group:"Section Header (Optional)"}),headerColor:n.disabled,headerColorClass:n.oneOf(["color_black","color_white","color_blue","color_red","color_medium_gray"]).tag({name:"Heading Color preferred",description:"Adjust the color of your Heading depending on your background",labels:{color_black:"Black",color_white:"White",color_blue:"Blue",color_red:"Red",color_medium_gray:"Gray"},defaultValue:"color_black",group:"Section Header (Optional)"}),underlineType:n.oneOf(["regular","bold"]).tag({name:"Header Underline Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title",group:"Section Header (Optional)"}),bgColor:n.string.tag({name:"Background Color Hex Code (optional)",desription:"Enter a hex code to set the background color of this chain"}),bgImage:n.string.tag({name:"Background Image URL (optional)",description:"Enter the url of an image to set a background image for this chain"}),gridColumns:n.oneOf([1,2,3,4,5]).tag({defaultValue:2,labels:{1:"One column",2:"Two columns",3:"Three columns",4:"Four columns",5:"Five columns"},description:"This will affect the layout of your articles.",name:"Amount of Columns"}),anchor:n.string.tag({name:"Anchor",description:"To be used with the Internal Navigation Feature.",group:"Internal Page Anchor (Optional)"}),innerGrid:n.boolean.tag({defaultValue:!1,name:"Using this for Media Tiles? (Ex: Weather maps)",description:"Check this box if you're using this chain\n        for the Global Media Tile or Video Player feature."}),userPadding:n.string.tag({label:"Custom Padding",description:"Overrides existing padding (top, bottom, left, right)",group:"Custom Padding"})}).isRequired,children:n.node.isRequired,id:n.string.isRequired},t.default=a},function(e,t,r){"use strict";var n=r(1),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(16),o=r.n(i),a=r(5),s=r(3),l=r(114),c=r(68),u=r(10),d=r(0);const f=(e,t)=>{switch(e){case 1:return t?["repeat(2, 1fr)",null,"1fr"]:"1fr";case 2:return t?["repeat(2, 1fr)",null,"repeat(2, 1fr)"]:"repeat(2, 1fr)";case 3:return t?["repeat(2, 1fr)",null,"repeat(3, 1fr)"]:"repeat(3, 1fr)";case 4:return t?["repeat(2, 1fr)",null,"repeat(4, 1fr)"]:"repeat(4, 1fr)";case 5:return t?["repeat(2, 1fr)",null,"repeat(5, 1fr)"]:"repeat(5, 1fr)";case 6:return["1fr",null,"1fr 2fr"];case 7:return["1fr",null,"2fr 1fr"];default:return["1fr",null,e.toString()]}},h=({customFields:{anchor:e,gridColumns:t=1,xGap:r="$3",yGap:i="$3",bgColor:s,bgImage:u,gridHeader:h,level:p=4,fullWidth:b=!1,storyListOverride:m=!1,innerGrid:g=!1,centerContent:v=!0,fwPadding:y="$2",noAd:w=!1,underlineType:O="bold",borderTop:j=!1,borderBottom:x=!1,borderColor:_,mobileTwoGrid:S=!1},children:E,childProps:k})=>{const{metaValue:C}=Object(a.useAppContext)(),P=!w&&"noAd"!==C("bodyClass"),M="string"==typeof p?parseInt(p,10):p;if(!E)return null;const $=P?Object(l.a)(k,E):E,T=m?"string"==typeof t?parseInt(t,10):t:null;return Object(d.jsx)(n.e,{as:"section",className:o()("fw-bkg",{noAd:w}),id:e,sx:{gridColumn:b?"-1 / 1":void 0,backgroundImage:u?`url(${u})`:void 0,backgroundColor:s,borderTop:j?"2px solid":void 0,borderBottom:x?"2px solid":void 0,borderColor:_,py:y,"& .adWrapper .fixedAd":{padding:"0"}},children:Object(d.jsxs)(n.E,{className:T?o()("scGrid full-width",{oneCol:1===T||Number.isNaN(T),twoCol:2===T,threeCol:3===T,fourCol:4===T,fiveCol:5===T,oneThirdCol:6===T,twoThirdCol:7===T}):void 0,gap:"$3",sx:Object.assign(v?{maxWidth:"$max",mx:"auto"}:{},b?{}:{px:"$4"}),children:[h&&Object(d.jsx)(n.e,{children:Object(d.jsx)(c.a,{level:M,underlineType:O,children:h})}),g?Object(d.jsx)(n.p,{gridTemplateColumns:f(t,S),xGap:r,yGap:i,children:$}):$]})})};h.propTypes={customFields:s.shape({gridHeader:s.string.tag({name:"Section Header",group:"Section Header (Optional)"}),level:s.oneOf([1,2,3,4,5]).tag({name:"Heading Tag",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},group:"Section Header (Optional)"}),underlineType:s.oneOf(["regular","bold"]).tag({name:"Header Underline Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title",group:"Section Header (Optional)"}),gridColumns:s.oneOf([1,2,3,4,5,"1fr 2fr","2fr 1fr"]).tag({defaultValue:1,labels:{1:"One column",2:"Two columns",3:"Three columns",4:"Four columns",5:"Five columns","1fr 2fr":"2-Items 1/3 & 2/3 Width","2fr 1fr":"2-Items 2/3 & 1/3 Width"},description:"This will affect the layout of your features.",name:"Amount of Columns"}),xGap:Object(u.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(u.e)({name:"Row Gap (y-axis)",defaultValue:"$3",group:"Grid Options"}),noAd:s.boolean.tag({defaultValue:!1,name:"Disallow ads inside of this chain?",description:"When checked, no ads will appear within the content of this chain"}),anchor:s.string.tag({name:"Anchor",description:"To be used with the Internal Navigation Feature.",group:"Internal Anchor (Optional)"}),fullWidth:s.boolean.tag({defaultValue:!1,name:"Full width",description:"Makes the chain full width when using inside the `body` section"}),storyListOverride:s.boolean.tag({defaultValue:!1,name:"Story List Grid",description:"Allow the grid columns option to control the Story List feature"}),innerGrid:s.boolean.tag({defaultValue:!1,name:"Apply an inner grid?",description:"Some single-item features require an additional inner grid.\n        Apply this if features are not laying out as expected."}),centerContent:s.boolean.tag({defaultValue:!0,name:"Center content and apply max-width",description:"If this is off, child content will will the viewport"}),mobileTwoGrid:s.boolean.tag({defaultValue:!1,name:"Two Column Mobile",description:"Default to two column grid on mobile?"}),borderTop:s.boolean.tag({defaultValue:!1,name:"Apply a border to the top?",description:"Style option, apply a 2px border along the top. Please specify color in the option below",group:"Borders (Optional)"}),borderBottom:s.boolean.tag({defaultValue:!1,name:"Apply a border to the bottom?",description:"Style option, apply a 2px border along the bottom.\n        Please specify color in the option below",group:"Borders (Optional)"}),borderColor:s.string.tag({name:"Border Color Hex Code",description:"Enter a hex code to set the border color of this chain.\n        Applies to both borders. Required if borders are in use.",group:"Borders (Optional)"}
2),bgColor:s.string.tag({name:"Background Color Hex Code",description:"Enter a hex code to set the background color of this chain",group:"Backgrounds (Optional)"}),bgImage:s.string.tag({name:"Background Image URL",description:"Enter the url of an image to set a background image for this chain",group:"Backgrounds (Optional)"}),fwPadding:Object(u.e)({name:"Padding",defaultValue:"$2",group:"Padding"})}),childProps:s.arrayOf(s.shape({})).isRequired},t.default=h},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=l(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(c(e,s,s+a>l?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*b}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldStorageChange=t.initStorage=void 0;var n=r(4),i=n.__importDefault(r(242)),o=n.__importDefault(r(346)),a=r(34);t.initStorage=function(e,t,r){void 0===e&&(e="");var n=t;if("undefined"==typeof window)return new o.default;var s=new i.default(void 0,void 0,r);if(e){var l=new i.default(e,t,r);return localStorage.removeItem(a.IDENTITY_STORAGE_KEY),sessionStorage.removeItem(a.IDENTITY_STORAGE_KEY),l}if(void 0===n)if(sessionStorage.getItem(a.IDENTITY_STORAGE_KEY)&&"{}"!==sessionStorage.getItem(a.IDENTITY_STORAGE_KEY))n=!0;else if(localStorage.getItem(a.IDENTITY_STORAGE_KEY)&&"{}"!==localStorage.getItem(a.IDENTITY_STORAGE_KEY))n=!1;else{l=new i.default(e,void 0,r);var c=JSON.parse(l.getItem(a.IDENTITY_STORAGE_KEY)||"{}");n=!!(c&&Object.keys(c).length>0)&&l.isSession(a.IDENTITY_STORAGE_KEY)}try{var u="ArcId.test";return n?(sessionStorage.setItem(u,"testValue"),sessionStorage.removeItem(u),localStorage.removeItem(a.IDENTITY_STORAGE_KEY),s.removeItem(a.IDENTITY_STORAGE_KEY),sessionStorage):(localStorage.setItem(u,"testValue"),localStorage.removeItem(u),sessionStorage.removeItem(a.IDENTITY_STORAGE_KEY),s.removeItem(a.IDENTITY_STORAGE_KEY),localStorage)}catch(t){return localStorage.removeItem(a.IDENTITY_STORAGE_KEY),sessionStorage.removeItem(a.IDENTITY_STORAGE_KEY),new i.default(e,n,r)}},t.shouldStorageChange=function(e,t,r){return!e||e instanceof i.default&&e.isSession(r)!==t||e===sessionStorage&&!t||e===localStorage&&t}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._memoryStorage={}}return e.prototype.length=function(){return Object.keys(this._memoryStorage).length},e.prototype.getItem=function(e){return this._memoryStorage[e]},e.prototype.setItem=function(e,t){if(e)return this._memoryStorage[e]=t,t},e.prototype.removeItem=function(e){e&&this._memoryStorage[e]&&(this._memoryStorage[e]=void 0)},e.prototype.clear=function(){this._memoryStorage={}},e.prototype.key=function(e){return console.warn("[ArcId] unsupported method, please use getItem(key) instead."),"N/A"},e}();t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fireEvent=void 0;var n=function(e,t){if(void 0===t&&(t={bubbles:!1,cancelable:!1,detail:null}),document){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r}};"undefined"!=typeof Event&&(n.prototype=Event.prototype);t.fireEvent=function(e,t){if(void 0===t&&(t={}),"undefined"!=typeof window){window.CustomEvent&&"function"==typeof window.CustomEvent||(window.CustomEvent=n);var r=new(CustomEvent||window.CustomEvent)(e,t);window.dispatchEvent(r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4).__importDefault(r(247));t.default=function(e,t){return console.warn("[Arc Identity SDK]: requestMagicLink is deprecated"),(0,n.default)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4).__importDefault(r(248));t.default=function(e){return console.warn("[Arc Identity SDK]: redeemMagicLink is deprecated"),(0,n.default)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heartbeat=t.extendSession=void 0;var n=r(4),i=r(34),o=n.__importDefault(r(39)),a=n.__importDefault(r(249)),s=r(85),l=n.__importDefault(r(30)),c=r(244);t.extendSession=function(){if(l.default.userIdentity.refreshToken&&l.default.userIdentity.accessToken&&!(0,c.isJwtExpired)(l.default.userIdentity.refreshToken))return(0,a.default)("".concat(l.default.apiOrigin,"/identity/public/v1/auth/token"),{method:"POST",headers:i.headers,body:JSON.stringify({token:l.default.userIdentity.refreshToken,grantType:"refresh-token"})},"extendSession").then(o.default).then((function(e){if((0,s.isUserIdentity)(e)){var t=n.__assign(n.__assign({},l.default.userIdentity),{accessToken:e.accessToken,refreshToken:e.refreshToken||l.default.userIdentity.refreshToken});return l.default.userIdentity=t,l.default.userIdentity}throw e.code&&console.warn("".concat(i.logPrefix,' code:"').concat(e.code,'", message:"').concat(e.message,'"')),l.default.clearSession(),e}));throw l.default.userIdentity.refreshToken&&(0,c.isJwtExpired)(l.default.userIdentity.refreshToken)?(l.default.clearSession(),new Error("".concat(i.logPrefix," Refresh token is expired"))):(l.default.clearSession(),new Error("".concat(i.logPrefix," No refresh token found for this session")))},t.heartbeat=function(){return l.default.userIdentity.refreshToken&&l.default.userIdentity.accessToken&&((0,c.isJwtExpired)(l.default.userIdentity.accessToken)||!(0,c.jwtHasExp)(l.default.userIdentity.accessToken))?l.default.extendSession():Promise.resolve(l.default.userIdentity)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearSession=void 0;var n=r(4).__importDefault(r(30));function i(){try{n.default.userSegments=null,n.default.userIdentity={},n.default.userProfile=null}catch(e){throw new Error("Error clearing session.")}}t.clearSession=i,t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(30)),o=r(34),a=r(91);t.default=function(e){var t,r,s,l,c,u;e?(i.default.apiOrigin=e.apiOrigin&&e.apiOrigin.replace(/\/$/,"")||i.default.apiOrigin,i.default.baseDomain=e.baseDomain||i.default._baseDomain,e.google&&((0,a.isLegacyGoogleSetting)(e.google)?i.default._google=n.__assign(n.__assign({},i.default._google),e.google):i.default._google=null!==(t=e.google)&&void 0!==t?t:i.default._google),i.default.profileStorageOpt={storageExp:(null===(r=e.profileStorageOpt)||void 0===r?void 0:r.storageExp)||(null===(s=i.default._profileStorageOpt)||void 0===s?void 0:s.storageExp),ignoreProfile:void 0!==(null===(l=e.profileStorageOpt)||void 0===l?void 0:l.ignoreProfile)?null===(c=e.profileStorageOpt)||void 0===c?void 0:c.ignoreProfile:null===(u=i.default._profileStorageOpt)||void 0===u?void 0:u.ignoreProfile},i.default.ampReaderId=e.ampReaderId||i.default.ampReaderId):console.warn("".concat(o.logPrefix," No options specified when calling Identity.options"))}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(249)),a=r(188),s=n.__importDefault(r(30)),l=r(34);t.default=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return[4,s.default.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(l.logPrefix," Missing or invalid jwt"));return e=localStorage.getItem(l.PROFILE_STORAGE_KEY_EXPIRED_TIME),(null===s.default||void 0===s.default?void 0:s.default.userProfile)&&e&&new Date(e)>new Date?[2,s.default.userProfile]:[2,(0,o.default)("".concat(s.default.apiOrigin,"/identity/public/v1/profile"),{method:"GET",cache:"no-cache",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},l.headers)},"getUserProfile").then(i.default).then((function(e){if((0,a.isUserProfile)(e)){var t=new Date(Date.now()+6e5);return localStorage.setItem(l.PROFILE_STORAGE_KEY_EXPIRED_TIME,t.toISOString()),s.default.userProfile=e,s.default.userProfile}throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(34),o=n.__importDefault(r(39)),a=r(38),s=n.__importDefault(r(30)),l=r(355);t.default=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,s.default.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(i.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(s.default.apiOrigin,"/identity/public/v2/identity/segmentation"),{method:"GET",cache:"no-cache",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},i.headers)}).then(o.default).then((function(e){var t={updated:new Date,uuid:s.default.userIdentity.uuid,segments:{}};if((0,l.isUserSegment)(e))return s.default.userSegments=n.__assign(n.__assign({},t),{segments:e}),e;if((0,a.isAPIErrorResponse)(e))throw e;return s.default.userSegments=t,{}}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUserSegment=void 0,t.isUserSegment=function(e){return void 0!==e.segment}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=r(188),a=n.__importDefault(r(30)),s=r(34);t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,a.default.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(s.logPrefix," Missing or invalid jwt"));return(0,o.isUserProfile)(e)&&delete e.uuid,[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/profile"),{method:"PATCH",headers:n.__assign({Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},s.headers),body:JSON.stringify(e)}).then(i.default).then((function(e){if((0,o.isUserProfile)(e))return a.default.userProfile=e,a.default.userProfile;throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteAvatar=t.uploadAvatar=void 0;var n=r(4),i=r(38),o=n.__importDefault(r(39)),a=n.__importDefault(r(30)),s=r(34);t.uploadAvatar=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){return console.warn("[Arc Identity SDK]: uploadAvatar is deprecated"),[2,a.default.heartbeat().then((function(){var t;if(t="string"==typeof e?document.getElementById(e.replace(/^#/,"")):e){if(t.files&&t.files.length){if("image/jpeg"!==t.files[0].type)throw{message:"Image type not supported",code:"UNSUPPORTED_IMAGE_TYPE"};if(t.files[0].size>3e6)throw{message:"Image too big. Only images up to 3 MB are supported.",code:"IMAGE_TOO_LARGE"};var r=t.files[0],n=new FormData;return n.append("avatar",r),a.default.heartbeat().then((function(){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/avatar"),{method:"PUT",headers:{Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},body:n}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return t.value="",a.default.userProfile=e,e}))}))}throw{message:"No image found in the input field provided ".concat("string"==typeof e?"(".concat(e,")"):"","."),code:"MISSING_IMAGE"}}throw Error("".concat(s.logPrefix," element provided not found ").concat("string"==typeof e?"(".concat(e,")"):"","."))}))]}))}))},t.deleteAvatar=function(){return console.warn("[Arc Identity SDK]: deleteAvatar is deprecated"),a.default.heartbeat().then((function(){return a.default.heartbeat().then((function(){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/avatar"),{method:"DELETE",headers:n.__assign({Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},s.headers)}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return a.default.userProfile&&(a.default.userProfile.picture=""),e}))}))}))}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=r(188),a=n.__importDefault(r(30)),s=r(34),l=n.__importStar(r(153));t.default=function(e,t,r,c,u){return(0,l.default)(l.RecaptchaMethod.SIGN_UP,u).then((function(){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/signup"),{method:"POST",headers:s.headers,body:JSON.stringify({identity:e,profile:t,recaptchaToken:u})})})).then(i.default).then((function(e){if((0,o.isSignUpResponse)(e)){a.default._isSession=!c;var t=e.identities,r=e.profile,i=e.uuid,s=n.__rest(e,["identities","profile","uuid"]);return a.default.userProfile=n.__assign(n.__assign({},r),{identities:t,uuid:i}),a.default.userIdentity=n.__assign({uuid:i},s),e}throw e}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=r(85),a=n.__importDefault(r(30)),s=r(34);t.default=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(r){switch(r.label){case 0:return[4,a.default.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(s.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/password"),{method:"PUT",headers:n.__assign({Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},s.headers),body:JSON.stringify({oldPassword:e,newPassword:t})}).then(i.default).then((function(e){if((0,o.isUpdatePasswordSuccessResponse)(e))return!0;throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=n.__importStar(r(153)),s=r(34);t.default=function(e,t){return(0,a.default)(a.RecaptchaMethod.RESET_PASSWORD,t).then((function(){return fetch("".concat(o.default.apiOrigin,"/identity/public/v1/password/reset"),{method:"POST",headers:s.headers,body:JSON.stringify({userName:e,recaptchaToken:t})}).then(i.default).then((function(e){if(e.success)return!0;throw e}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(38),o=n.__importDefault(r(39)),a=n.__importDefault(r(30)),s=r(34);t.default=function(e,t){return fetch("".concat(a.default.apiOrigin,"/identity/public/v1/password/reset/").concat(e),{method:"PUT",headers:s.headers,body:JSON.stringify({newPassword:t})}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return!0}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=r(34);t.default=function(e){return fetch("".concat(o.default.apiOrigin,"/identity/public/v1/email/verify"),{method:"POST",headers:a.headers,body:JSON.stringify({email:e})}).then(i.default).then((function(e){if(e.success)return!0;throw e}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=r(34);t.default=function(e){return fetch("".concat(o.default.apiOrigin,"/identity/public/v1/email/verify/").concat(e),{method:"GET",headers:a.headers}).then(i.default).then((function(e){if(e.success)return!0;throw e}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declineDeleteAccount=t.approveDeleteAccount=void 0;var n=r(4),i=r(38),o=n.__importDefault(r(39)),a=r(245),s=n.__importDefault(r(30)),l=r(34);t.default=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,s.default.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(l.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(s.default.apiOrigin,"/identity/public/v1/user/anonymize"),{method:"DELETE",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},l.headers)}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return e}))]}}))}))},t.approveDeleteAccount=function(e){return s.default.heartbeat().then((function(){return fetch("".concat(s.default.apiOrigin,"/identity/public/v1/user/anonymize/approve/").concat(e),{method:"PUT",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},l.headers),body:JSON.stringify({})})})).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return s.default.clearSession(),(0,a.dispatchLogoutEvent)(),e}))},t.declineDeleteAccount=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(r){switch(r.label){case 0:return[4,s.default.isLoggedIn()];case 1:if(!r.sent())throw new Error("".concat(l.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(s.default.apiOrigin,"/identity/public/v1/user/anonymize/decline/").concat(e),{method:"PUT",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},l.headers),body:JSON.stringify({reason:t})}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return e}))]}}))}))}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.getUserSettings=void 0;var n=r(4),i=r(34),o=n.__importDefault(r(30)),a=n.__importDefault(r(39)),s=r(38);function l(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return o.default.userSettings?[3,2]:[4,o.default.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(i.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(o.default.apiOrigin,"/identity/public/v1/user/settings"),{method:"GET",cache:"no-cache",headers:n.__assign({Authorization:"Bearer ".concat(o.default.userIdentity.accessToken)},i.headers)}).then(a.default).then((function(e){if((0,s.isAPIErrorResponse)(e))throw e;return o.default.userSettings=e,e}))];case 2:return[2,o.default.userSettings]}}))}))}t.getUserSettings=l,t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getThirdPartyTokens=void 0;var n=r(4),i=r(34),o=n.__importDefault(r(30));function a(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){if("DISQUS"===e)return[2,s()];throw new Error("".concat(i.logPrefix," Unsupported third party service requested."))}))}))}function s(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return o.default.userSettings?[3,2]:[4,o.default.getUserSettings()];case 1:e.sent(),e.label=2;case 2:return o.default.configOptions?[3,4]:[4,o.default.getConfig()];case 3:e.sent(),e.label=4;case 4:return o.default.configOptions&&o.default.userSettings&&o.default.configOptions.disqus&&o.default.configOptions.disqus.enabled?[2,{enabled:!0,publicKey:o.default.configOptions.disqus.publicKey,ssoToken:o.default.userSettings.disqus&&o.default.userSettings.disqus.ssoKey}]:[2,{enabled:!1}]}}))}))}t.getThirdPartyTokens=a,t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=r(34);t.default=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,o.default.isLoggedIn()];case 1:if(!e.sent())throw new Error("".concat(a.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(o.default.apiOrigin,"/identity/public/v1/gdpr?_=").concat(Date.now()),{method:"GET",headers:n.__assign({Authorization:"Bearer ".concat(o.default.userIdentity.accessToken)},a.headers)}).then(i.default).then((function(e){if(Array.isArray(e))return e;throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=n.__importDefault(r(39)),o=n.__importDefault(r(30)),a=r(34),s=r(369);t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,o.default.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(a.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(o.default.apiOrigin,"/identity/public/v1/gdpr/").concat(e),{method:"GET",cache:"no-cache",headers:n.__assign({Authorization:"Bearer ".concat(o.default.userIdentity.accessToken)},a.headers)}).then(i.default).then((function(e){if((0,s.isGdprReport)(e))return e;throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGdprReport=void 0,t.isGdprReport=function(e){return void 0!==e.data}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFacebookLogin=t.loadFacebookSDK=void 0;var n=r(4),i=r(371),o=n.__importDefault(r(30)),a="facebook-jssdk";function s(e,r,a){return n.__awaiter(this,void 0,void 0,(function(){var s,l,c;return n.__generator(this,(function(n){switch(n.label){case 0:return e||o.default.configOptions?[3,2]:[4,o.default.getConfig()];case 1:n.sent(),n.label=2;case 2:if(s=e||(o.default.configOptions&&o.default.configOptions.facebookAppId?o.default.configOptions.facebookAppId.split(",")[0]:null))return[3,3];throw new Error("[Arc Identity SDK] - Facebook App ID not found, please add one in settings or explicitly pass one to the initFacebookLogin method.");case 3:return l=r||(0,i.getBrowserLocale)(),c=(0,i.bestFacebookLocaleFor)(l),[4,(0,t.loadFacebookSDK)(c)];case 4:n.sent(),a&&(o.default._useCustomFBButton=!0),window.FB.init({appId:s,autoLogAppEvents:!0,xfbml:!0,status:!0,version:"v20.0"}),n.label=5;case 5:return[2]}}
2))}))}t.loadFacebookSDK=function(e){return new Promise((function(t,r){if(document.getElementById(a))t();else{var n=document.createElement("script");n.onload=function(){t("https://connect.facebook.net/".concat(e,"/sdk.js"))},n.onerror=function(){r("Error loading Facebook SDK")},n.async=!0,n.id=a,n.src="https://connect.facebook.net/".concat(e,"/sdk.js"),document.body.appendChild(n)}}))},t.initFacebookLogin=s,t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBrowserLocale=t.bestFacebookLocaleFor=void 0;var n=["af_ZA","ak_GH","am_ET","ar_AR","as_IN","ay_BO","az_AZ","be_BY","bg_BG","bn_IN","br_FR","bs_BA","ca_ES","cb_IQ","ck_US","co_FR","cs_CZ","cx_PH","cy_GB","de_DE","da_DK","el_GR","en_GB","en_IN","en_PI","en_UD","en_US","eo_EO","es_LA","es_CL","es_CO","es_ES","es_MX","es_VE","et_EE","eu_ES","fa_IR","fb_LT","ff_NG","fi_FI","fo_FO","fr_FR","fr_CA","fy_NL","ga_IE","gl_ES","gn_PY","gu_IN","gx_GR","ha_NG","he_IL","hi_IN","hr_HR","hu_HU","hy_AM","id_ID","ig_NG","is_IS","it_IT","ja_JP","ja_KS","jv_ID","ka_GE","kk_KZ","km_KH","kn_IN","ko_KR","ku_TR","la_VA","lg_UG","li_NL","ln_CD","lo_LA","lt_LT","lv_LV","mg_MG","mk_MK","ml_IN","mn_MN","mr_IN","ms_MY","mt_MT","my_MM","nb_NO","nd_ZW","ne_NP","nl_BE","nl_NL","nn_NO","ny_MW","or_IN","pa_IN","pl_PL","ps_AF","pt_BR","pt_PT","qu_PE","rm_CH","ro_RO","ru_RU","rw_RW","sa_IN","sc_IT","se_NO","si_LK","sk_SK","sl_SI","sn_ZW","so_SO","sq_AL","sr_RS","sv_SE","sw_KE","sy_SY","sz_PL","ta_IN","te_IN","tg_TJ","th_TH","tk_TM","tl_PH","tl_ST","tr_TR","tt_RU","tz_MA","uk_UA","ur_PK","uz_UZ","vi_VN","wo_SN","xh_ZA","yi_DE","yo_NG","zh_CN","zh_HK","zh_TW","zu_ZA","zz_TR"],i={es_AR:"es_LA",es_PE:"es_LA",es_EC:"es_LA",es_GT:"es_LA",es_CU:"es_LA",es_BO:"es_LA",es_DO:"es_LA",es_HN:"es_LA",es_PY:"es_LA",es_SV:"es_LA",es_NI:"es_LA",es_CR:"es_LA",es_PR:"es_LA",es_PA:"es_LA",es_UY:"es_LA",es_GQ:"es_LA",ar_DZ:"ar_AR",ar_BH:"ar_AR",ar_TD:"ar_AR",ar_KM:"ar_AR",ar_DJ:"ar_AR",ar_EG:"ar_AR",ar_ER:"ar_AR",ar_GM:"ar_AR",ar_IQ:"ar_AR",ar_IL:"ar_AR",ar_JO:"ar_AR",ar_KW:"ar_AR",ar_LB:"ar_AR",ar_LY:"ar_AR",ar_MR:"ar_AR",ar_MA:"ar_AR",ar_OM:"ar_AR",ar_PS:"ar_AR",ar_QA:"ar_AR",ar_SA:"ar_AR",ar_SO:"ar_AR",ar_SD:"ar_AR",ar_SY:"ar_AR",ar_TN:"ar_AR",ar_AE:"ar_AR",ar_YE:"ar_AR"};t.bestFacebookLocaleFor=function(e){var t=e.replace("-","_");if(n.indexOf(t)>-1)return t;if(i[t])return i[t];var r=t.substring(0,2),o=n.find((function(e){return e.substring(0,2)===r}));return o||"en_US"};t.getBrowserLocale=function(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en_US"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAppleSignOn=void 0;var n=r(4),i=r(34),o=r(38),a=n.__importDefault(r(30)),s=n.__importDefault(r(39));t.initAppleSignOn=function(){return n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/apple/authurl"),{method:"GET",cache:"no-cache",headers:n.__assign({},i.headers)}).then(s.default).then((function(e){if((0,o.isAPIErrorResponse)(e))throw e;var t=encodeURIComponent("".concat(a.default.apiOrigin,"/identity/public/v1/apple/auth"));window.location.href="".concat(e,"&redirect_uri=").concat(t)}))]}))}))},t.default=t.initAppleSignOn},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initiateOIDC=void 0;var n=r(4),i=r(34),o=r(38),a=n.__importDefault(r(30)),s=n.__importDefault(r(39));t.initiateOIDC=function(e,t,r,l){return void 0===r&&(r=!0),void 0===l&&(l=!1),n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(c){return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v2/oidc/").concat(e,"/initiate"),{method:"GET",headers:n.__assign({},i.headers)}).then(s.default).then((function(e){if((0,o.isAPIErrorResponse)(e))throw e;if(!r)return e;if(t&&t.length){var n=new URL(e.url);n.searchParams.set("scope",t.join(" ")),l&&n.searchParams.set("response_mode","form_post"),window.location.href=n.toString()}else window.location.href=e.url}))]}))}))},t.default=t.initiateOIDC},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(34),o=n.__importDefault(r(30)),a=r(85),s=n.__importDefault(r(39));t.default=function(e,t){return n.__awaiter(this,void 0,void 0,(function(){var r,l;return n.__generator(this,(function(c){switch(c.label){case 0:return r=n.__assign({},i.headers),o.default.userIdentity&&o.default.userIdentity.accessToken&&o.default.userIdentity.refreshToken?[4,o.default.heartbeat()]:[3,2];case 1:c.sent(),r.Authorization="Bearer ".concat(o.default.userIdentity.accessToken),c.label=2;case 2:return l=function(){var r={code:e};return t&&(r=n.__assign(n.__assign({},r),{state:t})),new URLSearchParams(r).toString()},[2,fetch("".concat(o.default.apiOrigin,"/identity/public/v2/oidc/signin?").concat(l()),{method:"GET",headers:n.__assign({},r)}).then(s.default).then((function(e){if(localStorage.removeItem(i.PROFILE_STORAGE_KEY_EXPIRED_TIME),(0,a.isUserIdentity)(e))return o.default.userIdentity=e,window.postMessage({type:"ARC_LOGIN_SUCCESS",grantType:"OIDC"},"*"),o.default.userIdentity;throw e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOIDCToken=void 0;var n=r(4),i=r(34),o=n.__importDefault(r(30)),a=r(85),s=n.__importDefault(r(39));function l(e){return void 0!==e.access_token}t.isOIDCToken=l,t.default=function(e){var t=e.client_id,r=e.code_verifier,c=e.redirect_uri,u=e.code;return n.__awaiter(this,void 0,void 0,(function(){var e,d,f,h,p;return n.__generator(this,(function(b){switch(b.label){case 0:return e=n.__assign({},i.headers),o.default.userIdentity&&o.default.userIdentity.accessToken&&o.default.userIdentity.refreshToken?[4,o.default.heartbeat()]:[3,2];case 1:b.sent(),e.Authorization="Bearer ".concat(o.default.userIdentity.accessToken),b.label=2;case 2:(d=new FormData).append("grant_type","authorization_code"),d.append("client_id",t),d.append("code_verifier",r),d.append("redirect_uri",c),d.append("code",u),b.label=3;case 3:return b.trys.push([3,6,,7]),[4,fetch("".concat(o.default.apiOrigin,"/identity/public/v2/oidc/provider/token"),{method:"POST",headers:new Headers,body:d}).then(s.default)];case 4:if(!l(f=b.sent()))throw f;return o.default.userIdentity={accessToken:f.access_token,refreshToken:f.refresh_token,idToken:f.id_token,expiresIn:f.expires_in},window.postMessage({type:"ARC_LOGIN_SUCCESS",grantType:"OIDC"},"*"),[4,fetch("".concat(o.default.apiOrigin,"/identity/public/v1/auth/token"),{method:"POST",headers:e,body:JSON.stringify({token:f.refresh_token,grantType:"refresh-token"})}).then(s.default)];case 5:if(h=b.sent(),(0,a.isUserIdentity)(h))return p=n.__assign(n.__assign({},o.default.userIdentity),{uuid:h.uuid,accessToken:h.accessToken,refreshToken:h.refreshToken||o.default.userIdentity.refreshToken}),o.default.userIdentity=p,[2,o.default.userIdentity];throw h.code&&console.warn("".concat(i.logPrefix,' code:"').concat(h.code,'", message:"').concat(h.message,'"')),o.default.clearSession(),h;case 6:throw b.sent();case 7:return[2]}}
2))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loginWithArcIdentityAsOIDCProvider=void 0;var n=r(4),i=r(34),o=r(38),a=n.__importDefault(r(30)),s=n.__importDefault(r(39));t.loginWithArcIdentityAsOIDCProvider=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v2/oidc/provider/login?")+new URLSearchParams(e),{method:"GET",headers:n.__assign({Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},i.headers)}).then(s.default).then((function(e){if((0,o.isAPIErrorResponse)(e))throw e;window.location.href=null==e?void 0:e.message}))]}))}))},t.default=t.loginWithArcIdentityAsOIDCProvider},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(34),o=n.__importDefault(r(39)),a=r(38),s=n.__importDefault(r(30));t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,s.default.isLoggedIn()];case 1:if(!t.sent())throw new Error("".concat(i.logPrefix," Missing or invalid jwt"));return[2,fetch("".concat(s.default.apiOrigin,"/identity/public/v2/oidc/unlink"),{method:"PUT",headers:n.__assign({Authorization:"Bearer ".concat(s.default.userIdentity.accessToken)},i.headers),body:JSON.stringify({identifier:e})}).then(o.default).then((function(e){if((0,a.isAPIErrorResponse)(e))throw e;return localStorage.removeItem(i.PROFILE_STORAGE_KEY_EXPIRED_TIME),e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customButtonFacebookSignOn=t.facebookSignOn=void 0;var n=r(4),i=n.__importDefault(r(30)),o=r(155),a=n.__importDefault(r(246)),s=r(91);function l(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return[4,(0,a.default)(!0)];case 1:return e=t.sent(),(0,s.isFacebookLoginResponse)(e)?"connected"!==e.status?[3,3]:[4,(0,o.socialLogin)("facebook",{credentials:e.authResponse.accessToken})]:[3,5];case 2:return[2,t.sent()];case 3:if(i.default._useCustomFBButton)return[2,c()];throw new Error("User canceled login, did not fully authorize, or is not logged in to Facebook: ".concat(e));case 4:return[3,6];case 5:throw new Error("Error getting login status. Please try again. ".concat(e));case 6:return[2]}}
2))}))}function c(){return n.__awaiter(this,void 0,void 0,(function(){var e=this;return n.__generator(this,(function(t){return[2,window.FB.login((function(t){return n.__awaiter(e,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return"connected"!==t.status?[3,2]:[4,(0,o.socialLogin)("facebook",{credentials:t.authResponse.accessToken})];case 1:return[2,e.sent()];case 2:throw new Error("User canceled login, did not fully authorize, or is not logged in to Facebook: ".concat(t))}}))}))}))]}))}))}t.facebookSignOn=l,t.customButtonFacebookSignOn=c,t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(155),o=r(91);t.default=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return(0,o.isGoogleCredentialResponse)(e)?[4,(0,i.socialLogin)("google",{credentials:e.credential})]:[3,2];case 1:return[2,t.sent()];case 2:throw new Error("[Arc Identity SDK]: Error getting google jwt credential. ".concat(e))}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appleSignOn=void 0;var n=r(4),i=r(155);t.appleSignOn=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(t){return[2,(0,i.socialLogin)("apple",{credentials:e})]}))}))},t.default=t.appleSignOn},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(38),o=n.__importDefault(r(39)),a=n.__importDefault(r(30)),s=r(34);t.default=function(e){var t,r,l,c;return n.__awaiter(this,void 0,void 0,(function(){var u;return n.__generator(this,(function(d){switch(d.label){case 0:return[4,a.default.isLoggedIn()];case 1:if(!d.sent())throw new Error("".concat(s.logPrefix," Missing or invalid jwt"));if(globalThis.google&&"google"===e){u=null!==(c=null===(l=null===(r=null===(t=null===a.default||void 0===a.default?void 0:a.default.userProfile)||void 0===t?void 0:t.identities)||void 0===r?void 0:r.find((function(e){return"Google"===e.type})))||void 0===l?void 0:l.userName)&&void 0!==c?c:"";try{globalThis.google.accounts.id.revoke(u)}catch(e){throw new Error("[Arc Identity SDK]: Error revoking sign in with google user consent. ".concat(e))}}return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/identity/").concat(e),{method:"DELETE",headers:n.__assign({Authorization:"Bearer ".concat(a.default.userIdentity.accessToken)},s.headers)}).then(o.default).then((function(e){if((0,i.isAPIErrorResponse)(e))throw e;return localStorage.removeItem(s.PROFILE_STORAGE_KEY_EXPIRED_TIME),e}))]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSwgLogin=t.isCheckSwgLoginResponse=void 0;var n=r(4),i=n.__importDefault(r(39)),o=r(34),a=n.__importDefault(r(30)),s=r(189),l=r(91);function c(e){return void 0!==e.identityExists}t.isCheckSwgLoginResponse=c;t.checkSwgLogin=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var t,r,u,d,f,h;return n.__generator(this,(function(n){switch(n.label){case 0:return(t=e)?[3,2]:[4,(0,s.getGoogleAuthInstance)()];case 1:n.sent(),(0,l.isLegacyGoogleSetting)(a.default._google)&&(t=null===(h=null===(f=null===(d=null===(u=null===(r=a.default._google)||void 0===r?void 0:r.authInstance)||void 0===u?void 0:u.currentUser)||void 0===d?void 0:d.get())||void 0===f?void 0:f.getAuthResponse())||void 0===h?void 0:h.id_token),n.label=2;case 2:return t?[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/swg/checkloginexists"),{method:"POST",headers:o.headers,body:JSON.stringify({token:t})}).then(i.default).then((function(e){if(c(e))return e;throw e}))]:(console.error("No Google ID token found. Either the user is not logged in with Google, or the Google Auth2 SDK is incorrectly loaded."),[2,{identityExists:!1}])}}))}))},t.default=t.checkSwgLogin},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.relinkGoogleAccount=void 0;var n=r(4),i=n.__importDefault(r(39)),o=r(34),a=n.__importDefault(r(30)),s=r(85),l=r(250),c=r(154);t.relinkGoogleAccount=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(u){switch(u.label){case 0:return console.error(c.deprecationMessage),t=n.__assign({},o.headers),a.default.userIdentity&&a.default.userIdentity.accessToken&&a.default.userIdentity.refreshToken?[4,a.default.heartbeat()]:[3,2];case 1:return u.sent(),t.Authorization="Bearer ".concat(a.default.userIdentity.accessToken),[3,3];case 2:throw new Error("[Arc Identity SDK] no logged in user found.");case 3:return[4,a.default.getSwgAccessToken()];case 4:if(r=u.sent(),!(0,l.isSwgAccessTokenResponse)(r))throw r;return[2,fetch("".concat(a.default.apiOrigin,"/identity/public/v1/swg/").concat(r.accessToken,"/relink/").concat(e),{method:"GET",headers:t}).then(i.default).then((function(e){if((0,s.isUserIdentity)(e))return a.default.userIdentity=e,e;throw e}))]}}))}))},t.default=t.relinkGoogleAccount},function(e){e.exports=JSON.parse('{"name":"@arc-publishing/sdk-identity","version":"1.94.0","description":"JS Identity SDK for working with Identity API","keywords":["identity","arc","washingtonpost","sdk","typescript"],"author":{"name":"Arc Subscriptions","url":"http://arcpublishing.com/"},"homepage":"https://github.com/WPMedia/arc-subs-ui/tree/master/packages/sdk-identity#readme","license":"ISC","main":"lib/index.js","module":"lib-esm/index.esm.js","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"repository":{"type":"git","url":"git+https://github.com/WPMedia/arc-subs-ui.git"},"scripts":{"start":"npm run build:umd && webpack-dev-server --colors --progress --host 0.0.0.0","build":"npm run clean && tsc && tsc -m es6 --outDir lib-esm && webpack","build:umd":"webpack","clean":"shx rm -rf umd lib lib-esm lib-umd test-report.html","test":"jest --colors","test:ci":"JEST_JUNIT_OUTPUT=../../reports/jest/sdk-identity.xml jest --ci --colors --reporters=default --reporters=\\"jest-ju
2nit\\" --no-cache --runInBand","test:watch":"jest --watch","test:coverage":"jest --coverage --colors","prepare":"npm run build"},"engines":{"node":">=8"},"devDependencies":{"@types/babel__traverse":"7.18.2","@types/fetch-mock":"^7.2.2","@types/gapi":"^0.0.47","@types/gapi.auth2":"^0.0.53","@types/google.accounts":"0.0.2","@types/jest":"^29.5.12","@types/node":"^20.11.7","awesome-typescript-loader":"^5.2.1","fetch-mock":"^7.3.0","html-webpack-exclude-assets-plugin":"0.0.7","html-webpack-plugin":"^3.2.0","jest":"^29.1.2","jest-junit":"^6.4.0","node-fetch":"^2.3.0","shx":"^0.3.2","terser-webpack-plugin":"^1.2.1","ts-jest":"^29.1.2","ts-loader":"^8.2.0","typescript":"^5.3.3","webpack":"^4.28.4","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14"},"nx":{"includedScripts":["test","build","test:ci"]},"gitHead":"b5750af66a3fa540d85a2d467c2b9e3e43749d36"}')},function(e){e.exports=JSON.parse('{"name":"@arc-publishing/sdk-sales","version":"1.94.0","description":"JS Sales SDK for working with Arc Subs Sales API","keywords":["arc","washingtonpost","sdk","typescript"],"author":{"name":"Arc Subscriptions","url":"http://arcpublishing.com/"},"homepage":"https://github.com/WPMedia/arc-subs-ui/tree/master/packages/sdk-sales#readme","license":"ISC","main":"lib/index.js","module":"lib-esm/index.js","repository":{"type":"git","url":"git+https://github.com/WPMedia/arc-subs-ui.git"},"scripts":{"start":"npm run build:umd && webpack-dev-server --colors --progress --host 0.0.0.0","build":"npm run clean && tsc && tsc -m es6 --outDir lib-esm && webpack","build:umd":"webpack","clean":"shx rm -rf umd lib lib-esm lib-umd test-report.html","test":"jest --colors","test:ci":"JEST_JUNIT_OUTPUT=../../reports/jest/sdk-sales.xml jest --ci --colors --reporters=default --reporters=\\"jest-junit\\" --no-cache --runInBand","test:watch":"jest --watch","test:coverage":"jest --coverage --colors && jest-coverage-badges --output \'./badges\'","prepare":"npm run build"},"engines":{"node":">=8"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"devDependencies":{"@babel/types":"^7.3.4","@types/babel__traverse":"7.18.2","@types/fetch-mock":"^7.2.3","@types/jest":"^29.5.12","@types/node":"^20.11.7","babel-core":"^6.26.3","babel-loader":"^8.0.5","fetch-mock":"^7.3.1","html-webpack-exclude-
2assets-plugin":"0.0.7","html-webpack-plugin":"^3.2.0","jest":"^29.1.2","jest-coverage-badges":"^1.1.2","jest-junit":"^6","shx":"^0.3.2","terser-webpack-plugin":"^1.2.1","ts-jest":"^29.1.2","ts-loader":"^8.2.0","typescript":"^5.3.3","webpack":"^4.28.4","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14"},"dependencies":{"@arc-publishing/sdk-identity":"^1.94.0","@arc-publishing/sdk-subs-core":"^1.94.0","tslib":"^2.8.1"},"nx":{"includedScripts":["test","build","test:ci"]},"gitHead":"b5750af66a3fa540d85a2d467c2b9e3e43749d36"}')},function(e,t){},function(e,t,r){"use strict";var n=r(32).Buffer,i=r(388);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,a,s,l=1,c={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[l]=i,n(l),l++},f.clearImmediate=h}function h(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(60),r(53))},function(e,t,r){"use strict";e.exports=o;var n=r(258),i=Object.create(r(125));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(36),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(192)},function(e,t,r){e.exports=r(92)},function(e,t,r){e.exports=r(191).Transform},function(e,t,r){e.exports=r(191).PassThrough},function(e,t,r){var n=r(36),i=r(107),o=r(32).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+u(h,i,o,s)+l+r[f]+a[h];l=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,r){var n=r(36),i=r(107),o=r(32).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),b=c(n)+d(p,i,o,s)+l+r[h]+a[p]|0;l=s,s=o,o=u(i),i=n,n=b}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,r){var n=r(36),i=r(259),o=r(107),a=r(32).Buffer,s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,r){var n=r(36),i=r(260),o=r(107),a=r(32).Buffer,s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,r){"use strict";var n=r(36),i=r(32).Buffer,o=r(86),a=i.alloc(128),s=64;
vendor: 4,704 bytes, line 2
2function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),l=0;l<s;l++)r[l]=54^t[l],n[l]=92^t[l];this._hash=[r]}n(l,o),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=l},function(e,t,r){"use strict";e.exports=r(263)},function(e,t,r){(function(t,n){var i,o=r(265),a=r(266),s=r(267),l=r(32).Buffer,c=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(e,t,r,n,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return l.from(e)}))}e.exports=function(e,r,h,p,b,m){"function"==typeof b&&(m=b,b=void 0);var g=u[(b=b||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return n.nextTick((function(){var t;try{t=s(e,r,h,p,b)}catch(e){return m(e)}m(null,t)}));if(o(e,r,h,p),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");l.isBuffer(e)||(e=l.from(e,a)),l.isBuffer(r)||(r=l.from(r,a)),function(e,t){e.then((function(e){n.nextTick((function(){t(null,e)}))}),(function(e){n.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var r=f(i=i||l.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=r,r}(g).then((function(t){return t?f(e,r,h,p,g):s(e,r,h,p,b)})),m)}}).call(this,r(60),r(53))},function(e,t,r){var n=r(403),i=r(196),o=r(197),a=r(416),s=r(158);function l(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return l(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){var n=r(86),i=r(404),o=r(36),a=r(32).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(268),t.Cipher=r(195),t.DES=r(269),t.CBC=r(405),t.EDE=r(406)},function(e,t,r){"use strict";var n=r(66),i=r(36),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,r){"use strict";var n=r(66),i=r(36),o=r(195),a=r(269);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}
vendor: 12,422 bytes, line 2
2),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function l(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,o),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},function(e,t,r){var n=r(197),i=r(273),o=r(32).Buffer,a=r(274),s=r(86),l=r(157),c=r(158);function u(e,t,r){s.call(this),this._cache=new f,this._cipher=new l.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(36)(u,s),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new u(s.module,t,r)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(127);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){var n=r(32).Buffer,i=r(127);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},function(e,t,r){var n=r(32).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){var n=r(32).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},function(e,t,r){(function(e){var n=r(127);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r(51).Buffer)},function(e,t,r){var n=r(32).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(273),i=r(32).Buffer,o=r(197),a=r(274),s=r(86),l=r(157),c=r(158);function u(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new u(s.module,t,r)}r(36)(u,s),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(275),i=r(420),o=r(421);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,l){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",l=l||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,l)),"number"==typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(51).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){(function(t){var n=r(79),i=new(r(276)),o=new n(24),a=new n(11),s=new n(10),l=new n(3),c=new n(7),u=r(275),d=r(106);function f(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function m(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return f+=1,f+="02"===r||"05"===r?8:4,p[n]=f,f;switch(i.test(e.shrn(1))||(f+=2),r){case"02":e.mod(o).cmp(a)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(c)&&(f+=8);break;default:f+=4}return p[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},b.prototype.getPublicKey=function(e){return m(this._pub,e)},b.prototype.getPrivateKey=function(e){return m(this._priv,e)},b.prototype.getPrime=function(e){return m(this.__prime,e)},b.prototype.getGenerator=function(e){return m(this._gen,e)},b.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(51).Buffer)},function(e,t,r){"use strict";
vendor: 13,031 bytes, line 2
2var n=r(199).Buffer,i=r(123),o=r(423),a=r(109),s=r(431),l=r(463),c=r(263);function u(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function h(e){return new d(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(u,o.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},u.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},d.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return l(i,o,e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},function(e,t,r){(t=e.exports=r(277)).Stream=t,t.Readable=t,t.Writable=r(281),t.Duplex=r(110),t.Transform=r(282),t.PassThrough=r(429),t.finished=r(200),t.pipeline=r(430)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=r(51).Buffer,c=r(426).inspect,u=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,i=l.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,l.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(200),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[u]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function b(e){t.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[l]?n(e[l]):r(h(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(h(void 0,!0)):t[d](r,n)}),n)}}(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(g,(i(t={},f,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[f].read();n?(r[u]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[u]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[u]=null,r[a]=null,r[s]=null,t(e)),void(r[l]=e)}var n=r[a];null!==n&&(r[u]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}}).call(this,r(53))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=i;var n=r(282);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(109)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n;var i=r(108).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var u,d=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var f=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(200)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var l=!1;return function(t){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){u||(u=e),e&&f.forEach(l),o||(f.forEach(l),d(u))}))}));return t.reduce(c)}},function(e,t,r){"use strict";var n=r(199).Buffer,i=r(261),o=r(201),a=r(202).ec,s=r(288),l=r(161),c=r(294);function u(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,l=function(e,t){e=d(e,t),e=e.mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(s);c.fill(1);var u=n.alloc(s);return u=i(o,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),{k:u=i(o,u).update(c).update(n.from([1])).update(e).update(l).digest(),v:c=i(o,u).update(c).digest()}}function d(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function f(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=d(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,p){var b=l(t);if(b.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey),o=i.sign(e);return n.from(o.toDER())}(e,b)}if("dsa"===b.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,o=t.params.priv_key,a=t.params.p,l=t.params.q,c=t.params.g,p=new s(0),b=d(e,l).mod(l),m=!1,g=u(o,l,e,r);for(;!1===m;)p=h(c,i=f(l,g,r),a,l),0===(m=i.invm(l).imul(b.add(o.mul(p))).mod(l)).cmpn(0)&&(m=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=e.length+t.length+4,i=[48,r,2,e.length];return i=i.concat(e,[2,t.length],t),n.from(i)}(p,m)}(e,b,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==t.padding&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=n.concat([p,e]);for(var m=b.modulus.byteLength(),g=[0,1];e.length+g.length+1<m;)g.push(255);g.push(0);for(var v=-1;++v<e.length;)g.push(e[v]);return o(g,b)},e.exports.getKey=u,e.exports.makeKey=f},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(433).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function l(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 28,671 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,u=r;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?b+r:f[c-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],g=8191&m,v=m>>>13,y=0|a[3],w=8191&y,O=y>>>13,j=0|a[4],x=8191&j,_=j>>>13,S=0|a[5],E=8191&S,k=S>>>13,C=0|a[6],P=8191&C,M=C>>>13,$=0|a[7],T=8191&$,I=$>>>13,A=0|a[8],R=8191&A,D=A>>>13,L=0|a[9],N=8191&L,B=L>>>13,z=0|s[0],F=8191&z,U=z>>>13,H=0|s[1],V=8191&H,G=H>>>13,W=0|s[2],q=8191&W,K=W>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,U))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,U))+Math.imul(b,F)|0,o=Math.imul(b,U);var ge=(c+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,F),i=(i=Math.imul(g,U))+Math.imul(v,F)|0,o=Math.imul(v,U),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,G)|0;var ve=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,U))+Math.imul(O,F)|0,o=Math.imul(O,U),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,K)|0;var ye=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,F),i=(i=Math.imul(x,U))+Math.imul(_,F)|0,o=Math.imul(_,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0;var we=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,F),i=(i=Math.imul(E,U))+Math.imul(k,F)|0,o=Math.imul(k,U),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var Oe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((o=o+Math.imul(f,ne)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,U))+Math.imul(M,F)|0,o=Math.imul(M,U),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var je=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,U))+Math.imul(I,F)|0,o=Math.imul(I,U),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,U))+Math.imul(D,F)|0,o=Math.imul(D,U),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0;var _e=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,F),i=(i=Math.imul(N,U))+Math.imul(B,F)|0,o=Math.imul(B,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Se=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,be)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,be)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,V),i=(i=Math.imul(N,G))+Math.imul(B,V)|0,o=Math.imul(B,G),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(g,de)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,fe)|0;var Ee=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,K))+Math.imul(B,q)|0,o=Math.imul(B,K),n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var ke=(c+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,X),i=(i=Math.imul(N,J))+Math.imul(B,X)|0,o=Math.imul(B,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,fe)|0;var Ce=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,Q),i=(i=Math.imul(N,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Pe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(N,oe),i=(i=Math.imul(N,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var $e=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(N,le),i=(i=Math.imul(N,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(N,de),i=(i=Math.imul(N,fe))+Math.imul(B,de)|0,o=Math.imul(B,fe);var Ie=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,be)|0)+Math.imul(D,pe)|0))<<13)|0;c=((o=o+Math.imul(D,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ae=(c+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,be))+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=me,l[1]=ge,l[2]=ve,l[3]=ye,l[4]=we,l[5]=Oe,l[6]=je,l[7]=xe,l[8]=_e,l[9]=Se,l[10]=Ee,l[11]=ke,l[12]=Ce,l[13]=Pe,l[14]=Me,l[15]=$e,l[16]=Te,l[17]=Ie,l[18]=Ae,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return g(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?b(this,e,t):r<1024?g(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=r[u+h],b=n[u+h],m=r[u+h+a],g=n[u+h+a],v=d*m-f*g;g=d*g+f*m,m=v,r[u+h]=p+m,n[u+h]=b+g,r[u+h+a]=p-m,n[u+h+a]=b-g,h!==s&&(v=l*d-c*f,f=l*f+c*d,d=v)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(
vendor: 13,505 bytes, line 2
2a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function O(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},O.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},O.prototype.split=function(e,t){e.iushrn(this.n,0,t)},O.prototype.imulK=function(e){return e.imul(this.k)},i(j,O),j.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,O),i(_,O),i(S,O),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new j;else if("p224"===e)t=new x;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m<p);var g=this.pow(d,new o(1).iushln(p-m-1));f=f.redMul(g),d=g.redSqr(),h=h.redMul(d),p=m}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(159)(e))},function(e,t){},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","ver
2sion":"grunt dist && git add dist/"},"repository":{"type":"git","url":"[email protected]:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <[email protected]>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(e,t){},function(e,t,r){"use strict";var n=r(67),i=r(80),o=r(203),a=r(160),s=n.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),b=new i(0),m=new i(0),g=new i(1),v=0;0!==f.cmpn(0);){var y=h.div(f);c=h.sub(y.mul(f)),u=m.sub(y.mul(p));var w=g.sub(y.mul(b));if(!n&&c.cmp(d)<0)t=l.neg(),r=p,n=c.neg(),o=u;else if(n&&2==++v)break;l=c,h=f,f=c,m=p,p=u,g=b,b=w}a=c.neg(),s=u;var O=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(O)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},o(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 8,284 bytes, line 2
2omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),f=d.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(d),b=h.redSqr().redISub(p.redAdd(p)),m=p.redISub(b),g=h.redMul(m);g=g.redIAdd(g).redISub(f);var v=c.redMul(s);t+1<e&&(l=l.redMul(f)),o=b,s=v,c=g}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(u).redISub(f);h=h.redIAdd(h);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),m=f.redIAdd(f);m=(m=m.redIAdd(m)).redIAdd(m),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=h.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),f=a.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,h,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,f,h)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 13,864 bytes, line 2
2,u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(80),i=r(203),o=r(160),a=r(67);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(67),i=r(80),o=r(203),a=r(160),s=n.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=c.redMul(n.redSub(l)),r=c.redMul(o))}else n=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(l)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),l=r.redAdd(t),c=o.redMul(a),u=s.redMul(l),d=o.redMul(l),f=a.redMul(s);return this.curve.point(c,u,f,d)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict";t.sha1=r(440),t.sha224=r(441),t.sha256=r(286),t.sha384=r(442),t.sha512=r(287)},function(e,t,r){"use strict";var n=r(74),i=r(128),o=r(285),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],f=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=l(a(i,5),c(p,o,u,f),h,r[n],d[p]);h=f,f=u,u=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],h)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(74),i=r(286);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(74),i=r(287);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(74),i=r(128),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],v=r,y=n,w=i,O=c,j=u,x=0;x<80;x++){var _=a(o(l(r,d(x,n,i,c),e[p[x]+t],f(x)),m[x]),u);r=u,u=c,c=o(i,10),i=n,n=_,_=a(o(l(v,d(79-x,y,w,O),e[b[x]+t],h(x)),g[x]),j),v=j,j=O,O=o(w,10),w=y,y=_}_=s(this.h[1],i,O),this.h[1]=s(this.h[2],c,j),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,w),this.h[0]=_},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(74),i=r(66);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t
vendor: 26,140 bytes, line 2
2){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
vendor: 7,308 bytes, line 2
2function(e,t,r){"use strict";var n=r(80),i=r(447),o=r(67),a=r(204),s=r(198),l=o.assert,c=r(448),u=r(449);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),f=0;;f++){var h=o.k?o.k(f):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new u({r:m,s:g,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=c.mul(h).umod(o);return this.g.mulAdd(p,s,b)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(205),i=r(283),o=r(66);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},function(e,t,r){"use strict";var n=r(80),i=r(67).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(80),i=r(67),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}
vendor: 8,612 bytes, line 2
2e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=l(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(205),i=r(204),o=r(67),a=o.assert,s=o.parseBytes,l=r(451),c=r(452);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(67),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(80),i=r(67),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t){},function(e,t,r){"use strict";var n=r(289);t.certificate=r(460);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d;var f=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,r){"use strict";const n=r(290),i=r(292),o=r(36);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){"use strict";const n=r(36),i=r(291);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){const r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let e=0;e<r.length;e+=64)n.push(r.slice(e,e+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";const n=r(36),i=r(206).Buffer,o=r(293);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,l=-1;for(let e=0;e<r.length;e++){const t=r[e].match(a);
vendor: 3,313 bytes, line 2
2if(null!==t&&t[2]===n){if(-1!==s){if("END"!==t[1])break;l=e;break}if("BEGIN"!==t[1])break;s=e}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);const c=r.slice(s+1,l).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const u=i.from(c,"base64");return o.prototype.decode.call(this,u,t)}},function(e,t,r){"use strict";const n=t;n.Reporter=r(208).Reporter,n.DecoderBuffer=r(129).DecoderBuffer,n.EncoderBuffer=r(129).EncoderBuffer,n.Node=r(207)},function(e,t,r){"use strict";const n=t;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t},n.der=r(209)},function(e,t,r){"use strict";var n=r(289),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),l=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(l)})),u=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(158),s=r(196),l=r(32).Buffer;e.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],f=l.from(u[2],"hex"),h=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=a(t,f.slice(0,8),parseInt(u[1],10)).key,b=[],m=s.createDecipheriv(d,p,f);
vendor: 4,643 bytes, line 2
2b.push(m.update(h)),b.push(m.final()),r=l.concat(b)}else{var g=c.match(o);r=l.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},function(e,t,r){"use strict";var n=r(199).Buffer,i=r(288),o=r(202).ec,a=r(161),s=r(294);function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,c,u){var d=a(r);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,u=a.signature.decode(e,"der"),d=u.s,f=u.r;l(d,o),l(f,o);var h=i.mont(n),p=d.invm(o),b=s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===b.cmp(f)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<f;)h.push(255),p+=1;h.push(0);for(var b=-1;++b<t.length;)h.push(t[b]);h=n.from(h);var m=i.mont(d.modulus);e=(e=new i(e).toRed(m)).redPow(new i(d.publicExponent)),e=n.from(e.fromRed().toArray());var g=p<8?1:0;for(f=Math.min(e.length,h.length),e.length!==h.length&&(g=1),b=-1;++b<f;)g|=e[b]^h[b];return 0===g}},function(e,t,r){(function(t){var n=r(202),i=r(79);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(51).Buffer)},function(e,t,r){t.publicEncrypt=r(466),t.privateDecrypt=r(467),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){var n=r(161),i=r(106),o=r(123),a=r(295),s=r(296),l=r(79),c=r(297),u=r(201),d=r(32).Buffer;e.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===f)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(d.alloc(0)).digest(),u=c.length,f=2*u;if(n>r-f-2)throw new Error("message too long");var h=d.alloc(r-n-f-2),p=r-u-1,b=i(u),m=s(d.concat([c,h,d.alloc(1,1),t],p),a(b,p)),g=s(b,a(m,u));return new l(d.concat([d.alloc(1),g,m],r))}(p,t);else if(1===f)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?d.alloc(a-o-3,255):function(e){var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}(a-o-3);return new l(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],a))}(p,t,r);else{if(3!==f)throw new Error("unknown padding");if((h=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?u(h,p):c(h,p)}},function(e,t,r){var n=r(161),i=r(295),o=r(296),a=r(79),s=r(201),l=r(123),c=r(297),u=r(32).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var f,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");
vendor: 4,110 bytes, line 2
2f=r?c(new a(t),h):s(t,h);var b=u.alloc(p-f.length);if(f=u.concat([b,f],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),d=o(s,i(c,a)),f=o(c,i(d,r-a-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,f.slice(0,a)))throw new Error("decryption error");var h=a;for(;0===f[h];)h++;if(1!==f[h++])throw new Error("decryption error");return f.slice(h)}(h,f);if(1===d)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,f,r);if(3===d)return f;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(32),a=r(106),s=o.Buffer,l=o.kMaxLength,c=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>l)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i)return a(r).copy(e,t),e;a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(r,t.length),f(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(r,t.length),void 0===n&&(n=t.length-r);return f(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(60),r(53))},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(114),s=r(56),l=r(10),c=r(0);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=({customFields:{mobileColumns:e,tabletColumns:t,desktopColumns:r,customColumns:o,gap:l,xGap:u,yGap:f,dividerHeadingGC:h,dividerHeadingContent:p,dividerHeadingLink:b,dividerColor:m,dividerMobileHeadingSize:g,dividerTabletHeadingSize:v,dividerDesktopHeadingSize:y,dividerHeadingWeight:w,dividerHeaderColor:O,horizontalAlignment:j,verticalAlignment:x,bgColor:_,maxWidth:S,fullWidth:E,mainContent:k,sectionBackgroun
2d:C="$transparent",paddingTop:P,paddingBottom:M,borderTop:$,borderBottom:T,displayMobile:I=!0,displayTablet:A=!0,displayDesktop:R=!0,noAd:D,anchor:L,dividerHeadingLevel:N=2,dividerHeadingIsH1:B=!1},children:z,childProps:F})=>{const{metaValue:U}=Object(i.useAppContext)(),H=!D&&"noAd"!==U("bodyClass")&&F?Object(a.a)(F,z):z;return Object(c.jsxs)(n.p,{as:"section",className:"gridChain",alignContent:"flex-start",gap:l,id:L,bg:C,pt:P,pb:M,px:"$4",display:[I?"grid":"none",A?"grid":"none",R?"grid":"none"],sx:d({},$?{borderTop:"2px solid",borderTopColor:$}:null,{},T?{borderBottom:"2px solid",borderBottomColor:T}:null,{},k?{gridColumn:["-1 / 1",null,"1 / span 4"],px:"$0"}:null,{},E?{gridColumn:"-1 / 1",px:"$0"}:null,{},S?{alignItems:"center","& > *":{maxWidth:"75rem",width:"$full",mx:"auto"}}:null),children:[p||h?Object(c.jsx)(s.default,{customFields:{dividerHeadingGC:h,dividerHeadingContent:p,dividerHeadingLink:b,dividerColor:m,dividerMobileHeadingSize:g,dividerTabletHeadingSize:v,dividerDesktopHeadingSize:y,dividerHeadingWeight:w,dividerHeaderColor:O,horizontalAlignment:j,verticalAlignment:x,bgColor:_,dividerHeadingLevel:N,dividerHeadingIsH1:B},children:p}):null,Object(c.jsx)(n.p,{className:"gridContent",gridTemplateColumns:o?[null,null,o]:void 0,id:L,columns:o?[e,null,null]:[e,t,r],xGap:u,yGap:f,children:H})]})};h.propTypes={customFields:o.shape(d({},l.f,{dividerHeadingLevel:o.oneOf([1,2,3,4,5,6]).tag({name:"Heading Level",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},defaultValue:2,group:"Header Options"}),dividerHeadingIsH1:o.boolean.tag({name:"Page Title (H1)",description:"This overrides the heading level to H1 for proper semantics when titling the page",defaultValue:!1,group:"Header Options"}),gap:Object(l.e)({name:"Headline Gap",defaultValue:"$3",group:"Header Options"}),displayMobile:o.boolean.tag({defaultValue:!0,name:"Display on Mobile",description:"When checked, the chain will be displayed on mobile",group:"Display Options"}),displayTablet:o.boolean.tag({defaultValue:!0,name:"Display on Tablet",description:"When checked, the chain will be displayed on tablet",group:"Display Options"}),displayDesktop:o.boolean.tag({defaultValue:!0,name:"Display on Desktop",description:"When checked, the chain will be displayed on desktop",group:"Display Options"}),noAd:o.boolean.tag({defaultValue:!1,name:"Disallow ads inside of this chain?",description:"When checked, no ads will appear within the content of this chain",group:"Display Options"}),maxWidth:o.bool.tag({name:"Set Max-width on Content",defaultValue:!0,description:"When checked, the content will be centered and have a max-width of 1200px",group:"Display Options"}),fullWidth:o.boolean.tag({defaultValue:!1,name:"Full Width",description:"Makes the chain full width when using inside the `body` section",group:"Display Options"}),mainContent:o.boolean.tag({defaultValue:!1,name:"Main Content",description:"...",group:"Display Options"}),anchor:o.string.tag({name:"Anchor",description:"Use in combination with Global Page Button to link different portions of your page.",defaultValue:void 0,group:"Display Options"}),mobileColumns:Object(l.b)({name:"Mobile Column Count",description:"Mobile columns",defaultValue:1,group:"Grid Options"}),tabletColumns:Object(l.b)({name:"Tablet Column Count",description:"Tablet columns",defaultValue:null,group:"Grid Options"}),desktopColumns:Object(l.b)({name:"Desktop Column Count",description:"Desktop columns",defaultValue:null,group:"Grid Options"}),customColumns:o.string.tag({name:"Custom Columns",description:"grid-columns",defaultValue:void 0,group:"Grid Options"}),xGap:Object(l.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(l.e)({name:"Row Gap (y-axis)",defaultValue:"$5",group:"Grid Options"}),sectionBackground:Object(l.a)({name:"Background Color",description:"...",defaultValue:"$transparent",group:"Background Options"}),borderTop:Object(l.a)({name:"Border Top Color",defaultValue:null,group:"Background Options"}),borderBottom:Object(l.a)({name:"Border Bottom Color",defaultValue:null,group:"Backgroun
2d Options"}),paddingTop:Object(l.e)({name:"Padding Top",description:"...",defaultValue:"$0",group:"Background Options"}),paddingBottom:Object(l.e)({name:"Bottom Padding",description:"...",defaultValue:"$0",group:"Background Options"})}))},t.default=h},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(16),o=r.n(i),a=r(68),s=r(0);const l=e=>{const{customFields:{anchor:t,gridColumns:r,gridHeader:n,fullWidth:i,level:l,underlineType:c,flex:u,xGap:d,yGap:f},id:h,children:p}=e,b=parseInt(r,10),m=parseInt(l,10),g=o()({gap_x_xsm:"xsm"===d,gap_x_sm:"sm"===d,gap_x_norm:"norm"===d,gap_x_med:"med"===d,gap_x_lg:"lg"===d,gap_x_xlg:"xlg"===d,gap_y_xsm:"xsm"===f,gap_y_sm:"sm"===f,gap_y_norm:"norm"===f,gap_y_med:"med"===f,gap_y_lg:"lg"===f,gap_y_xlg:"xlg"===f,grid_oneCol:1===b,grid_twoCol:2===b,grid_threeCol:3===b,grid_fourCol:4===b,grid_fiveCol:5===b});return Object(s.jsxs)("section",{className:o()("scGrid",{"full-width":i}),id:h,children:[n&&Object(s.jsx)(a.a,{level:m,underlineType:c,marginBottom:1,children:n}),t&&Object(s.jsx)("div",{id:t}),Object(s.jsx)("section",{className:o()(g,{display_grid:!u,"display_flex justify_space_evenly display_flex_wrap":u}),style:u?{maxWidth:"1200px",margin:"0 auto"}:null,children:p})]})};l.propTypes={customFields:n.shape({gridHeader:n.string.tag({name:"Section Header",group:"Section Header (Optional)"}),level:n.oneOf([1,2,3,4,5]).tag({name:"Heading Tag",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4,group:"Section Header (Optional)"}),underlineType:n.oneOf(["regular","bold"]).tag({name:"Header Underline Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title",group:"Section Header (Optional)"}),gridColumns:n.oneOf([1,2,3,4,5]).tag({defaultValue:2,labels:{1:"One column",2:"Two columns",3:"Three columns",4:"Four columns",5:"Five columns"},description:"This will affect the layout of your articles.\n        The layout may differ if the Full Width box is checked.",name:"Amount of Columns (Required)"}),xGap:n.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Column Gap (x-axis)",labels:{xsm:"Extra Small",sm:"Small",norm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"norm"}),yGap:n.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Row Gap (y-axis)",labels:{xsm:"Extra Small",sm:"Small",norm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"norm"}),anchor:n.string.tag({name:"Anchor",description:"To be used with the Internal Navigation Feature.",group:"Internal Page Anchor (Optional)"}),fullWidth:n.boolean.tag({defaultValue:!1,name:"Full Width Layout (No Aside)",description:"Make the grid chain go full width of the page. For pages such as Apollo and alike. "}),flex:n.boolean.tag({defaultValue:!1,name:"Flex?",description:"This will apply a flex layout instead of the grid. "})}).isRequired,children:n.node.isRequired,id:n.string.isRequired},t.default=l},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(29),o=r(10),a=r(0);const s=({children:e,id:t,customFields:{gap:r="$3"}})=>Object(a.jsx)(n.E,{as:"section",gap:r,className:"chainGroup",id:t,children:e});s.propTypes={customFields:i.shape({gap:Object(o.e)({name:"Gap between elements",defaultValue:"$3"})}).isRequired},t.default=s},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(16),o=r.n(i),a=r(0);const s=({children:[e,t,r],customFields:{fullWidth:n=!1}})=>Object(a.jsxs)("section",{className:o()("sponsored-content mb-xlg",{"full-bleed":n}),children:[Object(a.jsx)("div",{className:"content-block double mb-xlg",children:e}),Object(a.jsx)("div",{className:"content-block mb-xlg",children:t}),Object(a.jsx)("div",{className:"content-block mb-xlg",children:r})]});s.propTypes={children:n.node.isRequired,customFields:n.shape({fullWidth:n.bool.tag({label:"Full-width",defaultValue:!1})})},s.sections=["OutbrainLg","OutbrainSm","Related"],t.default=s},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r.n(n),o=r(2),a=r(10),s=r(0);const l=({customFields:{columns:e="1fr",anchor:t,xGap:r="$4",yGap:n="$4",frame:i},children:a})=>Object(s.jsx)(o.p,{id:t,gridTemplateColumns:["1fr",null,e],xGap:r,yGap:n,sx:i?{padding:"1rem",bg:"$white",borderRadius:"$rg",boxShadow:"$default"}:void 0,children:a});l.propTypes={customFields:i.a.shape({anchor:i.a.string.tag({name:"Anchor",description:"Anchor for page navigation",defaultValue:void 0}),xGap:Object(a.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(a.e)({name:"Row Gap (y-axis)",defaultValue:"$3",group:"Grid Options"}),columns:i.a.oneOf(["1fr","1fr 1fr","1fr 2fr","2fr 1fr"]).tag({defaultValue:"1fr",labels:{"1fr":"1-Item Full Width","1fr 1fr":"2-Items 1/2 Width","1fr 2fr":"2-Items 1/3 & 2/3 Width","2fr 1fr":"2-Items 2/3 & 1/3 Width"},description:"This will affect the layout of the Profile page features on Desktop.",name:"Profile Columns"}),frame:i.a.boolean.tag({defaultValue:!1,name:"Add Profile Frame?",description:"This will add the white background and shadow. For use with embeds or alike."})}),children:i.a.node.isRequired},t.default=l},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(1),s=r(56),l=r(10),c=r(0);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=({children:e,customFields:{gridHeader:t,level:r=4,stickyDelay:o=2e3,stickyPosition:l="auto",underlineType:u,dividerHeadingGC:f=!1,dividerHeadingContent:h,dividerHeadingLink:p,dividerColor:b="$red.500",dividerMobileHeadingSize:m="$2",dividerTabletHeadingSize:g=null,dividerDesktopHeadingSize:v="$3",dividerHeadingWeight:y="$bold",dividerHeaderColor:w="$blueGray.900",horizontalAlignment:O="left",verticalAlignment:j="top",bgColor:x="$transparent"},id:_})=>{const{layout:S,isAdmin:E,renderables:k}=Object(i.useAppContext)(),C=Object(a.useRef)(null),P=["simple","simple-dark"].includes(S),M=parseInt(r,10);let $;u&&("bold"===u&&($="$red.500"),"regular"===u&&($="$gray.400"));const[T,I]=Object(a.useState)(l);Object(a.useEffect)((()=>{const{current:e}=C;if(e&&"auto"===T&&P){const t=setTimeout((()=>{e.clientHeight>window.innerHeight?I("bottom"):e.clientHeight<=window.innerHeight&&I("top")}),o);return()=>clearInterval(t)}}),[P,T,o]);const A={display:"flex",flexDirection:P?"row":"column",justifyContent:"space-around",alignItems:"flex-start",width:"$full",textAlign:"left",gridColumn:[null,null,"5 / 7"],maxWidth:[null,null,"300px"],mx:[null,null,"auto"]},R={position:"sticky",width:"$full",top:"top"===T||"auto"===T?"4.5rem":void 0,bottom:"bottom"===T?"$3":void 0,alignSelf:"bottom"!==T||E?void 0:"flex-end"},D=Object(a.useMemo)((()=>{const e=new Map;let t=0;return k.forEach((r=>{"Rail-Content"===r.type&&(t+=1,e.set(r.props.id,t))})),e}),[k]),L=D.get(_),N=t||h?`${_}-${L}`:void 0,B=N?{"aria-labelledby":N}:{"aria-label":`Related Content Section: ${L} of ${D.size}`};return Object(c.jsx)(n.e,d({as:"aside",id:_,sx:Object.assign(P||"none"===T?{}:R,A),ref:P?null:C},B,{children:P&&"none"!==T?Object(c.jsxs)(n.E,{gap:"$3",sx:R,ref:P?C:void 0,children:[(t||h)&&Object(c.jsx)(s.default,{id:N,customFields:{dividerHeadingGC:f,dividerHeadingContent:h||(null==t?void 0:t.toUpperCase()),dividerHeadingLink:p,dividerColor:b||$,dividerMobileHeadingSize:m,dividerTabletHeadingSize:g,dividerDesktopHeadingSize:v,dividerHeadingWeight:y,dividerHeaderColor:w,horizontalAlignment:O,verticalAlignment:j,bgColor:x,dividerHeadingLevel:M}}),Object(c.jsx)(n.E,{gap:"$7",children:e})]}):Object(c.jsxs)(c.Fragment,{children:[(t||h)&&Object(c.jsx)(s.default,{id:N,customFields:{dividerHeadingGC:f,dividerHeadingContent:h||(null==t?void 0:t.toUpperCase()),dividerHeadingLink:p,dividerColor:b||$,dividerMobileHeadingSize:m,dividerTabletHeadingSize:g,dividerDesktopHeadingSize:v,dividerHeadingWeight:y,dividerHeaderColor:w,horizontalAlignment:O,verticalAlignment:j,bgColor:x,dividerHeadingLevel:M}}),Object(c.jsx)(n.E,{gap:"$7",sx:{width:"$full"},children:e})]})}))};h.propTypes={customFields:o.shape(d({stickyPosition:o.oneOf(["auto","none","top","bottom"]).tag({name:"Sticky Position",description:"Position in which content will stick",labels:{auto:"auto",none:"none",top:"top",bottom:"bottom"},defaultValue:"auto"})},l.f,{stickyDelay:o.number.tag({name:"Sticky Detection Delay",description:"how long (in milliseconds) to wait before detecting rail height",defaultValue:2e3,group:"Advanced Options"})}))},t.default=h},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),fusion_prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),fusion_prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(fusion_prop_types__WEBPACK_IMPORTED_MODULE_1__),_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_hooks_UserContext__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(31),_features_account_task_default__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(219),_features_ui_ProgressBar_ProgressBar__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(303),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);const TutorialChain=({childProps:childProps=[],customFields:{header:header="",subheader:subheader=""}={}})=>{const{data:userObject}=Object(_hooks_UserContext__WEBPACK_IMPORTED_MODULE_3__.b)();let completeCount=0;const getVar=e=>{if(!e)return null;let t=userObject;const r=e.split("/");let n=null;for(let e=0;e<r.length;e+=1){const i=r[e];if(!(i in t)){n=null;break}t=t[i],n=t}return n},isComplete=(path,condition)=>{const checkVar=getVar(path);return!!checkVar&&(!condition||(condition.match(/^[><=]+ ?(\d+)$/)?eval(`${checkVar} ${condition}`):checkVar==condition))};if(!userObject)return null;const onlyTasks=childProps.filter((e=>"account/task"===e.type)),allTasks=onlyTasks.map((e=>{const{key:t,customFields:r={}}=e,{checkVar:n,condition:i}=r,o=isComplete(n,i);return o&&(completeCount+=1),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_features_account_task_default__WEBPACK_IMPORTED_MODULE_4__.default,{customFields:r,complete:o},t)})),percentComplete=Math.round(completeCount/onlyTasks.length*100);return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__.E,{p:"$3",bg:"$white",borderRadius:"$rg",boxShadow:"$default",className:"noAd",gap:"$3",children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__.q,{variant:"$md",children:header}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__.M,{children:subheader}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_features_ui_ProgressBar_ProgressBar__WEBPACK_IMPORTED_MODULE_5__.a,{percentComplete:percentComplete,className:"mb-norm"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__.l,{variant:"gray$400",mb:"0"}
2),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_grahamdigital_opinion__WEBPACK_IMPORTED_MODULE_2__.E,{children:allTasks})]})};TutorialChain.propTypes={childProps:fusion_prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,customFields:fusion_prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({header:fusion_prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.tag({name:"Header Text"}),subheader:fusion_prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.tag({name:"Subheader Text"})})},__webpack_exports__.default=TutorialChain},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="circle-check",i=[61533,"check-circle"],o="f058",a="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faCircleCheck=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";var n=r(1);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s((function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,r,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(59),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({children:[e,t,r]})=>{const{requestUri:s,outputType:c}=Object(i.useAppContext)(),u=s.split("?")[1],d="off"===new URLSearchParams(u).get("nav")||"nonav"===c;return Object(a.jsxs)(o.a,{children:[Object(a.jsx)(n.e,{as:"header",sx:l({position:"relative",zIndex:100},d&&{display:"none"}),children:e}),Object(a.jsx)(n.e,{as:"section",bg:"$blueGray.200",className:"wrapper",children:Object(a.jsx)(n.e,{as:"main",id:"main-content",tabIndex:-1,px:["$4",null,"$0"],className:"account",children:Object(a.jsx)(n.n,{as:"section",placeContent:"center",sx:{minHeight:d?"100vh":["calc(-97px + 100vh)",null,"calc(-151px + 100vh)"]},children:t})})}),d?null:Object(a.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:r})]})};u.sections=["Header","Body","Footer"],t.default=u},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(1),a=r(121),s=r(59),l=r(0);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=({children:[e,t,r,c,d,f,h,p]})=>{var b,m;const{outputType:g,tree:v,requestUri:y}=Object(i.useAppContext)(),w=["default","nonav"].includes(g),O=y.split("?")[1],j="off"===new URLSearchParams(O).get("nav")||"nonav"===g;return Object(o.useEffect)((()=>{let e;return"commentsOnly"===g&&(e=setTimeout((()=>{document.dispatchEvent(new Event("click"))}),1e3)),()=>{e&&clearTimeout(e)}}),[g]),"commentsOnly"===g?Object(l.jsxs)(s.a,{children:[Object(l.jsx)(n.e,{as:"header",sx:{position:"absolute",left:"-999em"},children:e}),Object(l.jsx)(n.j,{size:"$4",width:"$full",py:"$3",children:Object(l.jsx)(a.default,{sx:{"button.vf-post-form__sign-out-action":{display:"none"}}})})]}):Object(l.jsxs)(s.a,{children:[Object(l.jsx)(n.e,{as:"header",sx:u({position:"relative",zIndex:100},j&&{display:"none"}),children:e}),Object(l.jsxs)(n.e,{as:"main","aria-label":"Main Page Content",className:"wrapper",flex:"1 0 auto",children:[t,Object(l.jsxs)(n.p,{as:"section",className:"article",role:"main",gap:["$3",void 0,"$4"],sx:{gridTemplateColumns:["repeat(1 ,minmax(0, 1fr))",void 0,"repeat(2, minmax(142px, 1fr)) repeat(4, 1fr)"],gap:[void 0,void 0,"$4"],width:"$full",maxWidth:"$max",mx:"auto",p:"$4"},children:[(null==v||null===(b=v.children[2].children)||void 0===b?void 0:b.length)?Object(l.jsx)(n.e,{as:"section",className:"top-wide",sx:{gridColumn:["-1 / 1",void 0,"1 / span 6"]},children:r}
2):null,w?Object(l.jsx)(n.E,{as:"aside",gap:"$7",id:"article",sx:{fontFamily:"$gibson",display:["none",void 0,"flex"],gridColumn:["-1 / 1",void 0,"1 / 3"],width:"300px",textAlign:"right","& .sticky > *":{width:"$full"}},"aria-label":"Supporting Content",children:d}):null,Object(l.jsx)(n.e,{as:"section",className:"mainContent",id:"main-content",tabIndex:-1,sx:{gridColumn:["-1 / 1",void 0,"3 / 7"]},children:c}),(null==v||null===(m=v.children[6].children)||void 0===m?void 0:m.length)?Object(l.jsx)(n.e,{as:"section",className:"bottom-wide",sx:{gridColumn:["-1 / 1",void 0,"1 / span 6"]},children:f}):null]}),h]}),j?null:Object(l.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:p})]})};f.sections=["Header","Top Full Width","Top Wide","Main","Left Rail","Bottom Wide","Bottom Full Width","Footer"],t.default=f},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(2),o=r(76),a=r(0);const s=({children:[e]})=>Object(a.jsx)(i.y,{theme:o.a,children:Object(a.jsx)("main",{id:"main-content",tabIndex:-1,className:"flexible",children:e})});s.propTypes={children:n.node.isRequired},s.sections=["Body"],t.default=s},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(59),s=r(0);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=({children:[e,t,r]})=>{const{requestUri:o,outputType:l}=Object(i.useAppContext)(),u=o.split("?")[1],d="off"===new URLSearchParams(u).get("nav")||"nonav"===l;return Object(s.jsxs)(a.a,{children:[Object(s.jsx)(n.e,{as:"header",sx:c({position:"relative",zIndex:100},d&&{display:"none"}),children:e}),Object(s.jsx)(n.e,{as:"section",className:"wrapper",sx:{bg:"$blueGray.50",flex:"1 0 auto"},children:Object(s.jsx)(n.e,{as:"main",id:"main-content",tabIndex:-1,p:"$0",sx:{display:"block"},className:"newsletters",children:t})}),d?null:Object(s.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:r})]})};d.propTypes={children:o.node.isRequired},d.sections=["Header","Body","Footer"],t.default=d},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(59),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({children:[e,t,r,s,c]})=>{const{requestUri:u,outputType:d}=Object(i.useAppContext)(),f=u.split("?")[1],h="off"===new URLSearchParams(f).get("nav")||"nonav"===d;return Object(a.jsxs)(o.a,{children:[Object(a.jsx)(n.e,{as:"header",sx:l({position:"relative",zIndex:100},h&&{display:"none"}),children:e}
2),Object(a.jsxs)(n.e,{as:"main",id:"main-content",tabIndex:-1,className:"wrapper simple",bg:"$gray.200",sx:{flex:"1 0 auto"},children:[t,Object(a.jsxs)(n.n,{as:"section",className:"profile",p:"$4",py:[null,null,"$7"],mx:"auto",flexDirection:["column",null,"row"],sx:{maxWidth:"$max"},children:[Object(a.jsx)(n.E,{as:"aside",gap:"$3",mr:[null,null,"$3","$5"],sx:{display:["none",null,"block"],flex:"0 0 auto",width:"$48"},"aria-label":"Supporting Content",children:r}),Object(a.jsx)(n.E,{as:"section",gap:"$5",sx:{width:"$full"},className:"main-well",children:s})]})]}),h?null:Object(a.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:c})]})};u.sections=["Header","Alerts","SubNav","Body","Footer"],t.default=u},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(59),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({children:[e,t,r,s]})=>{var c,u;const{globalContentConfig:{source:d},tree:f,requestUri:h}=Object(i.useAppContext)(),p=h.split("?")[1],b="off"===new URLSearchParams(p).get("nav"),m="elections_groups"===d||"elections_race"===d;return Object(a.jsxs)(o.a,{children:[Object(a.jsx)(n.e,{as:"header",sx:l({position:"relative",zIndex:1e4},b&&{display:"none"}),children:e}),Object(a.jsxs)(n.e,{as:"main",className:"wrapper simple",id:"main-content",tabIndex:-1,backgroundColor:m?"$blueGray.50":"$black.400",sx:{flex:"1 0 auto"},children:[t,(null==f||null===(c=f.children[2].children)||void 0===c?void 0:c.length)?Object(a.jsx)(n.p,{as:"section",className:"flexible",xGap:"$3",yGap:"$7",padding:"$4",mx:"auto",gridTemplateColumns:["1fr",null,"repeat(4, 1fr) repeat(2, minmax(142px, 1fr))"],maxWidth:"$max",sx:{display:"grid"},children:r}):null]}),(null==f||null===(u=f.children[3].children)||void 0===u?void 0:u.length)&&!b?Object(a.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:s}):null]})};u.sections=["Header","Alerts","Body","Footer"],t.default=u},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(59),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({children:[e,t,r,s]})=>{var c,u;const{globalContentConfig:{source:d},tree:f,requestUri:h,outputType:p}=Object(i.useAppContext)(),b=h.split("?")[1],m="off"===new URLSearchParams(b).get("nav")||"nonav"===p,g="elections_groups"===d||"elections_race"===d;return Object(a.jsxs)(o.a,{children:[Object(a.jsx)(n.e,{as:"header",sx:l({position:"relative",zIndex:100},m&&{display:"none"}),children:e}
2),Object(a.jsxs)(n.e,{as:"main",id:"main-content",tabIndex:-1,className:"wrapper simple",sx:{flex:"1 0 auto",backgroundColor:g?"$blueGray.50":null},children:[t,(null==f||null===(c=f.children[2].children)||void 0===c?void 0:c.length)?Object(a.jsx)(n.p,{as:"section",className:"flexible",xGap:"$3",yGap:"$7",padding:"$4",mx:"auto",gridTemplateColumns:["1fr",null,"repeat(4, 1fr) repeat(2, minmax(142px, 1fr))"],maxWidth:"$max",sx:{display:"grid"},children:r}):null]}),(null==f||null===(u=f.children[3].children)||void 0===u?void 0:u.length)&&!m?Object(a.jsx)(n.e,{sx:{width:"$full"},className:"footerWrapper",children:s}):null]})};u.sections=["Header","Alerts","Body","Footer"],t.default=u},function(e,t,r){"use strict";r.r(t);var n=r(16),i=r.n(n),o=r(3),a=r(1),s=r(5),l=r(114),c=r(68),u=r(0);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=Object(a.forwardRef)((({as:e="div",alignItems:t=null,justifyItems:r=null,placeContent:n=null,children:o=null,className:a=null,columns:s="1",gap:l="norm",style:c=null,xGap:d=null,yGap:h=null},p)=>{const b=e,m=i()("display_grid",a,{gap_xsm:"xsm"===l,gap_sm:"sm"===l,gap_norm:"norm"===l,gap_med:"med"===l,gap_lg:"lg"===l,gap_xlg:"xlg"===l,gap_x_xsm:"xsm"===d,gap_x_sm:"sm"===d,gap_x_norm:"norm"===d,gap_x_med:"med"===d,gap_x_lg:"lg"===d,gap_x_xlg:"xlg"===d,gap_y_xsm:"xsm"===h,gap_y_sm:"sm"===h,gap_y_norm:"norm"===h,gap_y_med:"med"===h,gap_y_lg:"lg"===h,gap_y_xlg:"xlg"===h,grid_oneCol:"1"===s,grid_twoCol:"2"===s,grid_threeCol:"3"===s,grid_fourCol:"4"===s,grid_fiveCol:"5"===s,grid_oneThirdCol:"6"===s,grid_twoThirdCol:"7"===s});return Object(u.jsx)(b,{className:m,ref:p,style:f({},c,{alignItems:t,justifyItems:r,placeContent:n}),children:o})}));p.displayName="Grid",p.propTypes={alignItems:o.string,justifyItems:o.string,placeContent:o.string,as:o.string,children:o.node.isRequired,className:o.string,columns:o.string,gap:o.string,style:o.string,xGap:o.string,yGap:o.string};var b=p;const m=({customFields:{anchor:e=!1,gridColumns:t=2,gridHeader:r="",fullWidth:n=!1,level:o=4,innerGrid:a=!1,noAd:d=!1,underlineType:f="bold",xGap:h="norm",yGap:p="norm"},id:m,children:g,childProps:v})=>{const{metaValue:y}=Object(s.useAppContext)(),w=!d&&"noAd"!==y("bodyClass"),O=parseInt(t,10),j=parseInt(o,10),x=w?Object(l.a)(v,g):g;return Object(u.jsxs)("div",{className:i()("scGrid",{noAd:d,"full-width":n,oneCol:1===O||Number.isNaN(O),twoCol:2===O,threeCol:3===O,fourCol:4===O,fiveCol:5===O}),id:m,children:[r&&Object(u.jsx)(c.a,{level:j,underlineType:f,marginBottom:1,children:r}),e&&Object(u.jsx)("div",{id:e}),a?Object(u.jsx)(b,{className:"inner-grid",columns:t.toString(),xGap:h,yGap:p,children:x}):x]},m)};m.propTypes={customFields:o.shape({noAd:o.boolean.tag({defaultValue:!1,name:"Disallow ads inside of this chain?",description:"When checked, no ads will appear within the content of this chain"}),gridHeader:o.string.tag({name:"Section Header",group:"Section Header (Optional)"}),level:o.oneOf([1,2,3,4,5]).tag({name:"Heading Tag",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},group:"Section Header (Optional)"}),underlineType:o.oneOf(["regular","bold"]).tag({name:"Header Underline Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title",group:"Section Header (Optional)"}),gridColumns:o.oneOf([1,2,3,4,5]).tag({defaultValue:2,labels:{1:"One column",2:"Two columns",3:"Three columns",4:"Four columns",5:"Five columns"},description:"This will affect the layout of your articles.\n        The layout may differ if the Full Width box is checked.",name:"Amount of Columns (Required)"}),xGap:o.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Column Gap (x-axis)",labels:{xsm:"Extra Small",sm:"Small",n
2orm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"norm"}),yGap:o.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Row Gap (y-axis)",labels:{xsm:"Extra Small",sm:"Small",norm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"norm"}),anchor:o.string.tag({name:"Anchor",description:"To be used with the Internal Navigation Feature.",group:"Internal Page Anchor (Optional)"}),fullWidth:o.boolean.tag({defaultValue:!1,name:"Full Width Layout (No Aside)",description:"Make the article grid go full width of the page. For pages such as Apollo and alike. "}),innerGrid:o.boolean.tag({defaultValue:!1,name:"Using this for Media Tiles? (Ex: Weather maps)",description:"Check this box if you're using this chain for the Global Media Tile feature. "})}),children:o.node.isRequired,childProps:o.arrayOf(o.shape({id:o.string,type:o.string})),id:o.string.isRequired};t.default=m},function(e,t,r){"use strict";var n=r(1),i=r(16),o=r.n(i),a=r(0);const s=Object(n.forwardRef)((({autoComplete:e,className:t,disabled:r,id:n,name:i,onChange:s,placeholder:l,popOut:c=!1,required:u,type:d,value:f},h)=>Object(a.jsx)("input",{"aria-invalid":r,autoComplete:e,className:o()("transition-500",t,{popOut:c}),id:n,name:i,onChange:s,placeholder:l,type:d,ref:h,disabled:r,required:u,value:f||""})));s.displayName="Input",t.a=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="chevron-up",i=[],o="f077",a="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faChevronUp=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(0);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l(e){let{size:t=80,thickness:r=12,baseColor:l="#e0e0e0",topColor:c="#3498db"}=e,u=s(e,["size","thickness","baseColor","topColor"]);return Object(i.jsx)(n.e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:t,height:t,borderWidth:r,borderColor:l,borderStyle:"solid",borderTopColor:c,borderRadius:"50%",sx:{animation:"spin 1s linear infinite"}},u))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(530);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faTimes=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(5),i=r(45),o=r(50);function a(){const{arcSite:e}=Object(n.useAppContext)(),t=`${Object(o.b)()}/email/newsletters/${e}`,{data:r,isLoading:a,error:s,mutate:l}=Object(i.b)(t,{revalidateOnFocus:!1});return{data:r,isLoading:a,error:s,mutate:l}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(5),i=r(1),o=r(37),a=r(61),s=r(50);const l=()=>{const{arcSite:e,requestUri:t,siteProperties:{helpdeskDomain:r}}=Object(n.useAppContext)(),l=Object(s.a)(e);return{loginWithArcIdentityAsOIDCProvider:Object(i.useCallback)((async e=>{const{clientId:n,responseType:i,scope:s,redirectUri:c,codeChallenge:u,codeChallengeMethod:d,state:f,nonce:h}=e||{};let p=new URLSearchParams(localStorage.getItem("gmg_cityspark_oidc_params")||"");0===p.size&&(p=new URLSearchParams(t.split("?")[1]));const b=p.get("client_id")||n,m=p.get("response_type")||i,g=p.get("scope")||s,v=p.get("redirect_uri")||
2c,y=p.get("code_challenge")||u,w=p.get("code_challenge_method")||d,O=p.get("state")||f,j=p.get("nonce")||h;if(!(b&&m&&g&&v&&y&&w&&O))return void o.toast.error("Missing required OIDC parameters",{description:"If this issue persists, please contact support.",action:{label:"Contact Support",onClick:()=>{window.open(r,"_blank")}}});const x=await Object(a.d)(!1);if(!x)return console.error("[useArcOidc] Failed to extend session",{accessToken:x}),void o.toast.error("Failed to extend session",{description:"If this issue persists, please contact support.",action:{label:"Contact Support",onClick:()=>{window.open(r,"_blank")}}});const _=new URL(`${l}/identity/public/v2/oidc/provider/login`);_.searchParams.set("client_id",b),_.searchParams.set("response_type",m),_.searchParams.set("scope",g),_.searchParams.set("redirect_uri",v),_.searchParams.set("code_challenge",y),_.searchParams.set("code_challenge_method",w),_.searchParams.set("state",O),j&&_.searchParams.set("nonce",j);const S=await fetch(_,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`}});if(!S.ok){const e=await S.text();return void o.toast.error("Failed to login with Arc Identity",{description:e,action:{label:"Contact Support",onClick:()=>{window.open(r,"_blank")}}})}const E=await S.text();localStorage.removeItem("gmg_cityspark_oidc_params"),window.location.href=E}),[l,r,t])}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[128065],i="f06e",o="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z";t.definition={prefix:"fas",iconName:"eye",icon:[576,512,n,i,o]},t.faEye=t.definition,t.prefix="fas",t.iconName="eye",t.width=576,t.height=512,t.ligatures=n,t.unicode=i,t.svgPathData=o,t.aliases=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="users",i=[],o="f0c0",a="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z";t.definition={prefix:"fas",iconName:n,icon:[640,512,i,o,a]},t.faUsers=t.definition,t.prefix="fas",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.d(t,"a",(function(){return H}));var n=r(1);function i(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function o(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every((r=>{const n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:i(n)&&i(a)?o(n,a):n===a}))}function a(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function h(e,t){return d(e-t)}function p(e){return y(e).map(Number)}function b(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t){return t===m(e)}function v(e,t=0){return Array.from(Array(e),((e,r)=>t+r))}function y(e){return Object.keys(e)}function w(e,t){return[e,t].reduce(((e,t)=>(y(t).forEach((r=>{const n=e[r],i=t[r],o=u(n)&&u(i);e[r]=o?w(n,i):i})),e)),{})}function O(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function j(){let e=[];const t={add:function(r,n,i,o={passive:!0}){let a;if("addEventListener"in r)r.addEventListener(n,i,o),a=()=>r.removeEventListener(n,i,o);else{const e=r;e.addListener(i),a=()=>e.removeListener(i)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function x(e,t,r,n){const i=j(),o=1e3/60;let a=null,s=0,l=0;function c(e){if(!l)return;a||(a=e,r(),r());const i=e-a;for(a=e,s+=i;
vendor: 16,515 bytes, line 2
2s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",(()=>{e.hidden&&(a=null,s=0)}))},destroy:function(){u(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:r,render:n}}function _(e=0,t=0){const r=d(e-t);function n(t){return t<e}function i(e){return e>t}function o(e){return n(e)||i(e)}return{length:r,max:t,min:e,constrain:function(r){return o(r)?n(r)?e:t:r},reachedAny:o,reachedMax:i,reachedMin:n,removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function S(e,t,r){const{constrain:n}=_(0,e),i=e+1;let o=a(t);function a(e){return r?d((i+e)%i):n(e)}function s(){return o}function l(){return S(e,s(),r)}const c={get:s,set:function(e){return o=a(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function E(e,t,r,n,i,o,a,s,l,u,p,b,m,g,v,y,w,x,S){const{cross:E,direction:k}=e,C=["INPUT","SELECT","TEXTAREA"],P={passive:!1},M=j(),$=j(),T=_(50,225).constrain(g.measure(20)),I={mouse:300,touch:400},A={mouse:500,touch:600},R=v?43:25;let D=!1,L=0,N=0,B=!1,z=!1,F=!1,U=!1;function H(e){if(!O(e,n)&&e.touches.length>=2)return V(e);const t=o.readPoint(e),r=o.readPoint(e,E),a=h(t,L),l=h(r,N);if(!z&&!U){if(!e.cancelable)return V(e);if(z=a>l,!z)return V(e)}const c=o.pointerMove(e);a>y&&(F=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(k(c)),e.preventDefault()}function V(e){const t=p.byDistance(0,!1).index!==b.get(),r=o.pointerUp(e)*(v?A:I)[U?"mouse":"touch"],n=function(e,t){const r=b.add(-1*f(e)),n=p.byDistance(e,!v).distance;return v||d(e)<T?n:w&&t?.5*n:p.byIndex(r.get(),0).distance}(k(r),t),i=function(e,t){if(0===e||0===t)return 0;if(d(e)<=d(t))return 0;const r=h(d(e),d(t));return d(r/e)}(r,n),a=R-10*i,s=x+i/50;z=!1,B=!1,$.clear(),u.useDuration(a).useFriction(s),l.distance(n,!v),U=!1,m.emit("pointerUp")}function G(e){F&&(e.stopPropagation(),e.preventDefault(),F=!1)}return{init:function(e){if(!S)return;function s(s){(c(S)||S(e,s))&&function(e){const s=O(e,n);if(U=s,F=v&&s&&!e.buttons&&D,D=h(i.get(),a.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return C.includes(t)}(e.target))return;B=!0,o.pointerDown(e),u.useFriction(0).useDuration(0),i.set(a),function(){const e=U?r:t;$.add(e,"touchmove",H,P).add(e,"touchend",V).add(e,"mousemove",H,P).add(e,"mouseup",V)}(),L=o.readPoint(e),N=o.readPoint(e,E),m.emit("pointerDown")}(s)}const l=t;M.add(l,"dragstart",(e=>e.preventDefault()),P).add(l,"touchmove",(()=>{}),P).add(l,"touchend",(()=>{})).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",V).add(l,"contextmenu",V).add(l,"click",G,!0)},destroy:function(){M.clear(),$.clear()},pointerDown:function(){return B}}}function k(e,t){let r,n;function i(e){return e.timeStamp}function o(r,n){const i="client"+("x"===(n||e.scroll)?"X":"Y");return(O(r,t)?r:r.touches[0])[i]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){const t=o(e)-o(n),a=i(e)-i(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;const t=o(n)-o(r),a=i(e)-i(r),s=i(e)-i(n)>170,l=t/a;return a&&!s&&d(l)>.1?l:0},readPoint:o}}function C(e,t,r,n,i,o,a){const s=[e].concat(n);let l,u,f=[],h=!1;function p(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(u=p(e),f=n.map(p),l=new ResizeObserver((r=>{(c(o)||o(i,r))&&function(r){for(const o of r){if(h)return;const r=o.target===e,a=n.indexOf(o.target),s=r?u:f[a];if(d(p(r?e:n[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(r)})),r.requestAnimationFrame((()=>{s.forEach((e=>l.observe(e)))})))},destroy:function(){h=!0,l&&l.disconnect()}}}function P(e,t,r,n,i){const o=i.measure(10),a=i.measure(50),s=_(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(r.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(i){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",u=d(e[l]-t.get()),f=r.get()-t.get(),h=s.constrain(u/a);r.subtract(f*h),!i&&d(f)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function M(e,t,r,n){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:s}=_(i,o);return{loop:function(t){if(!function(e){return 1===e?s(r.get()):-1===e&&a(r.get())}(t))return;const i=e*(-1*t);n.forEach((e=>e.add(i)))}}}function $(e,t,r,n,i){const{reachedAny:o,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort(((e,t)=>d(e)-d(t)))[0]}function c(t,n){const i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);const o=i.filter((e=>f(e)===n));return o.length?l(o):b(i)-r}return{byDistance:function(r,n){const l=i.get()+r,{index:u,distance:f}=function(r){const n=e?a(r):s(r),i=t.map(((e,t)=>({diff:c(e-n,0),index:t}))).sort(((e,t)=>d(e.diff)-d(t.diff))),{index:o}=i[0];return{index:o,distance:n}}(l),h=!e&&o(l);return!n||h?{index:u,distance:r}:{index:u,distance:r+c(t[u]-f,0)}},byIndex:function(e,r){return{index:e,distance:c(t[e]-i.get(),r)}},shortcut:c}}function T(e,t,r,n,i,o,a,l){const u={passive:!0,capture:!0};let d=0;function f(e){"Tab"===e.code&&(d=(new Date).getTime())}return{init:function(h){l&&(o.add(document,"keydown",f,!1),t.forEach(((t,f)=>{o.add(t,"focus",(t=>{(c(l)||l(h,t))&&function(t){if((new Date).getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const o=r.findIndex((e=>e.includes(t)));s(o)&&(i.useDuration(0),n.index(o,0),a.emit("slideFocus"))}(f)}),u)})))}}}function I(e){let t=e;function r(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function A(e,t){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style;let i=null,o=!1;return{clear:function(){o||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;const a=(s=e.direction(t),Math.round(100*s)/100);var s;a!==i&&(n.transform=r(a),i=a)},toggleActive:function(e){o=!e}}}function R(e,t,r,n,i,o,a,s,l){const c=.5,u=p(i),d=p(i).reverse(),f=function(){const e=a[0];return m(b(d,e),r,!1)}().concat(function(){const e=t-a[0]-1;return m(b(u,e),-r,!0)}());function h(e,t){return e.reduce(((e,t)=>e-i[t]),t)}function b(e,t){return e.reduce(((e,r)=>h(e,t)>0?e.concat([r]):e),[])}function m(i,a,u){const d=function(e){return o.map(((r,i)=>({start:r-n[i]+c+e,end:r+t-c+e})))}(a);return i.map((t=>{const n=u?0:-r,i=u?r:0,o=u?"end":"start",a=d[t][o];return{index:t,loopPoint:a,slideLocation:I(-1),translate:A(e,l[t]),target:()=>s.get()>a?n:i}}))}return{canLoop:function(){return f.every((({index:e})=>h(u.filter((t=>t!==e)),t)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))}))},loopPoints:f}}function D(e,t,r){let n,i=!1;return{init:function(o){r&&(n=new MutationObserver((e=>{i||(c(r)||r(o,e))&&function(e){for(const r of e)if("childList"===r.type){o.reInit(),t.emit("slidesChanged");break}}(e)})),n.observe(e,{childList:!0}))},destroy:function(){n&&n.disconnect(),i=!0}}}function L(e,t,r,n){const i={};let o,a=null,s=null,l=!1;return{init:function(){o=new IntersectionObserver((e=>{l||(e.forEach((e=>{const r=t.indexOf(e.target);i[r]=e})),a=null,s=null,r.emit("slidesInView"))}),{root:e.parentElement,threshold:n}),t.forEach((e=>o.observe(e)))},destroy:function(){o&&o.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return y(i).reduce(((t,r)=>{const n=parseInt(r),{isIntersecting:o}=i[n];return(e&&o||!e&&!o)&&t.push(n),t}),[])}(e);return e&&(a=t),e||(s=t),t}}}function N(e,t,r,n,i,o,a,l,c){const{startEdge:u,endEdge:f,direction:h}=e,g=s(r);return{groupSlides:function(e){return g?function(e,t){return p(e).filter((e=>e%t==0)).map((r=>e.slice(r,r+t)))}(e,r):function(e){return e.length?p(e).reduce(((r,s,p)=>{const g=b(r)||0,v=0===g,y=s===m(e),w=i[u]-o[g][u],O=i[u]-o[s][f],j=!n&&v?h(a):0,x=d(O-(!n&&y?h(l):0)-(w+j));return p&&x>t+c&&r.push(s),y&&r.push(e.length),r}),[]).map(((t,r,n)=>{const i=Math.max(n[r-1]||0);return e.slice(i,t)})):[]}(e)}}}function B(e,t,r,n,i,o,a){const{align:s,axis:c,direction:u,startIndex:y,loop:w,duration:O,dragFree:B,dragThreshold:z,inViewThreshold:F,slidesToScroll:U,skipSnaps:H,containScroll:V,watchResize:G,watchSlides:W,watchDrag:q,watchFocus:K}=o,Y={measure:function(e){const{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},X=Y.measure(t),J=r.map(Y.measure),Z=function(e,t){const r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){const{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(c,u),Q=Z.measureSize(X),ee=function(e){return{measure:function(t){return e*(t/100)}}}(Q),te=function(e,t){const r={start:function(){return 0},center:function(e){return n(e)/2},end:n};function n(e){return t-e}return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(s,Q),re=!w&&!!V,ne=w||!!V,{slideSizes:ie,slideSizesWithGaps:oe,startGap:ae,endGap:se}=function(e,t,r,n,i,o){const{measureSize:a,startEdge:s,endEdge:l}=e,c=r[0]&&i,u=function(){if(!c)return 0;const e=r[0];return d(t[s]-e[s])}(),f=function(){if(!c)return 0;const e=o.getComputedStyle(b(n));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),h=r.map(a),p=r.map(((e,t,r)=>{const n=!t,i=g(r,t);return n?h[t]+u:i?h[t]+f:r[t+1][s]-e[s]})).map(d);return{slideSizes:h,slideSizesWithGaps:p,startGap:u,endGap:f}}(Z,X,J,r,ne,i),le=N(Z,Q,U,w,X,J,ae,se,2),{snaps:ce,snapsAligned:ue}=function(e,t,r,n,i){const{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(n).map((e=>b(e)[a]-e[0][o])).map(d).map(t.measure),c=n.map((e=>r[o]-e[o])).map((e=>-d(e))),u=s(c).map((e=>e[0])).map(((e,t)=>e+l[t]));return{snaps:c,snapsAligned:u}}(Z,te,X,J,le),de=-b(ce)+b(oe),{snapsContained:fe,scrollContainLimit:he}=function(e,t,r,n,i){const o=_(-t+e,0),a=r.map(((e,t)=>{const{min:n,max:i}=o,a=o.constrain(e),s=!t,c=g(r,t);return s?i:c||l(n,a)?n:l(i,a)?i:a})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=a[0],t=b(a);return _(a.lastIndexOf(e),a.indexOf(t)+1)}();function l(e,t){return h(e,t)<=1}return{snapsContained:function(){if(t<=e+i)return[o.max];if("keepSnaps"===n)return a;const{min:r,max:l}=s;return a.slice(r,l)}(),scrollContainLimit:s}}(Q,de,ue,V,2),pe=re?fe:ue,{limit:be}=function(e,t,r){const n=t[0];return{limit:_(r?n-e:b(t),n)}}(de,pe,w),me=S(m(pe),y,w),ge=me.clone(),ve=p(r),ye=x(n,i,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(Ie)),(e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{const h=e.settled(),p=!u.shouldConstrain(),b=d?h:h&&p,m=b&&!s.pointerDown();m&&l.stop();const g=r.get()*f+i.get()*(1-f);n.set(g),d&&(o.loop(e.direction()),a.loop()),t.to(n.get()),m&&c.emit("settle"),b||c.emit("scroll")})(Ie,e))),we=pe[me.get()],Oe=I(we),je=I(we),xe=I(we),_e=I(we),Se=function(e,t,r,n,i,o){let a=0,s=0,l=i,c=o,u=e.get(),h=0;function p(e){return l=e,m}function b(e){return c=e,m}const m={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let i=0;return l?(r.set(e),a+=t/l,a*=c,u+=a,e.add(a),i=u-h):(a=0,r.set(n),e.set(n),i=t),s=f(i),h=u,m},settled:function(){return d(n.get()-t.get())<.001},useBaseFriction:function(){return b(o)},useBaseDuration:function(){return p(i)},useFriction:b,useDuration:p};return m}(Oe,xe,je,_e,O,.68),Ee=$(w,pe,de,be,_e),ke=function(e,t,r,n,i,o,a){function s(i){const s=i.distance,l=i.index!==t.get();o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){const n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(ye,me,ge,Se,Ee,_e,a),Ce=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}(be),Pe=j(),Me=L(t,r,a,F),{slideRegistry:$e}=function(e,t,r,n,i,o){const{groupSlides:a}=i,{min:s,max:l}=n;return{slideRegistry:function(){const n=a(o),i=!e||"keepSnaps"===t;return 1===r.length?[o]:i?n:n.slice(s,l).map(((e,t,r)=>{const n=!t,i=g(r,t);return n?v(b(r[0])+1):i?v(m(o)-b(r)[0]+1,b(r)[0]):e}))}()}}(re,V,pe,he,le,ve),Te=T(e,r,$e,ke,Se,Pe,a,K),Ie={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:X,slideRects:J,animation:ye,axis:Z,dragHandler:E(Z,e,n,i,_e,k(Z,i),Oe,ye,ke,Se,Ee,me,a,ee,B,z,H,.68,q),eventStore:Pe,percentOfView:ee,index:me,indexPrevious:ge,limit:be,location:Oe,offsetLocation:xe,previousLocation:je,options:o,resizeHandler:C(t,a,i,r,Z,G,Y),scrollBody:Se,scrollBounds:P(be,xe,_e,Se,ee),scrollLooper:M(de,be,xe,[Oe,xe,je,_e]),scrollProgress:Ce,scrollSnapList:pe.map(Ce.get),scrollSnaps:pe,scrollTarget:Ee,scrollTo:ke,slideLooper:R(Z,Q,de,ie,oe,ce,pe,xe,r),slideFocus:Te,slidesHandler:D(t,a,W),slidesInView:Me,slideIndexes:ve,slideRegistry:$e,slidesToScroll:le,target:_e,translate:A(Z,t)};return Ie}const z={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function F(e){function t(e,t){return w(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},i=y(n).filter((t=>e.matchMedia(t).matches)).map((e=>n[e])).reduce(((e,r)=>t(e,r)),{});return t(r,i)},optionsMediaQueries:function(t){return t.map((e=>y(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return r}function U(e,t,r){const n=e.ownerDocument,i=n.defaultView,o=F(i),a=function(e){let t=[];return{init:function(r,n){return t=n.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(r,e))),n.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}(o),s=j(),c=function(){let e,t={};function r(e){return t[e]||[]}const n={init:function(t){e=t},emit:function(t){return r(t).forEach((r=>r(e,t))),n},off:function(e,i){return t[e]=r(e).filter((e=>e!==i)),n},on:function(e,i){return t[e]=r(e).concat([i]),n},clear:function(){t={}}};return n}(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:h,off:p,emit:b}=c,m=C;let g,v,y,w,O=!1,x=u(z,U.globalOptions),_=u(x),S=[];function E(t){const r=B(e,y,w,n,i,t,c);if(t.loop&&!r.slideLooper.canLoop()){return E(Object.assign({},t,{loop:!1}))}return r}function k(t,r){O||(x=u(x,t),_=d(x),S=r||S,function(){const{container:t,slides:r}=_,n=l(t)?e.querySelector(t):t;y=n||e.children[0];const i=l(r)?y.querySelectorAll(r):r;w=[].slice.call(i||y.children)}(),g=E(_),f([x,...S.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",C))),_.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(T),g.eventHandler.init(T),g.resizeHandler.init(T),g.slidesHandler.init(T),g.options.loop&&g.slideLooper.loop(),y.offsetParent&&w.length&&g.dragHandler.init(T),v=a.init(T,S)))}function C(e,t){const r=$();P(),k(u({startIndex:r},e),t),c.emit("reInit")}function P(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),a.destroy(),s.clear()}function M(e,t,r){_.active&&!O&&(g.scrollBody.useBaseFriction().useDuration(!0===t?0:_.duration),g.scrollTo.index(e,r||0))}function $(){return g.index.get()}const T={canScrollNext:function(){return g.index.add(1).get()!==$()},canScrollPrev:function(){return g.index.add(-1).get()!==$()},containerNode:function(){return y},internalEngine:function(){return g},destroy:function(){O||(O=!0,s.clear(),P(),c.emit("destroy"),c.clear())},off:p,on:h,emit:b,plugins:function(){return v},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){M(g.index.add(1).get(),e,-1)},scrollPrev:function(e){M(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.offsetLocation.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:M,selectedScrollSnap:$,slideNodes:function(){return w},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return k(t,r),setTimeout((()=>
2c.emit("init")),0),T}function H(e={},t=[]){const r=Object(n.useRef)(e),i=Object(n.useRef)(t),[s,l]=Object(n.useState)(),[c,u]=Object(n.useState)(),d=Object(n.useCallback)((()=>{s&&s.reInit(r.current,i.current)}),[s]);return Object(n.useEffect)((()=>{o(r.current,e)||(r.current=e,d())}),[e,d]),Object(n.useEffect)((()=>{(function(e,t){if(e.length!==t.length)return!1;const r=a(e),n=a(t);return r.every(((e,t)=>o(e,n[t])))})(i.current,t)||(i.current=t,d())}),[t,d]),Object(n.useEffect)((()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&c){U.globalOptions=H.globalOptions;const e=U(c,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)}),[c,l]),[u,s]}U.globalOptions=void 0,H.globalOptions=void 0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(239);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faExclamationCircle=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="eye-slash",i=[],o="f070",a="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z";t.definition={prefix:"fas",iconName:n,icon:[640,512,i,o,a]},t.faEyeSlash=t.definition,t.prefix="fas",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="phone",i=[128222,128379],o="f095",a="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faPhone=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(541);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faMobileAlt=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="facebook",i=[62e3],o="f09a",a="M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z";t.definition={prefix:"fab",iconName:n,icon:[512,512,i,o,a]},t.faFacebook=t.definition,t.prefix="fab",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="pipe",i=[],o="M32 0C49.7 0 64 14.3 64 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z";t.definition={prefix:"fas",iconName:n,icon:[64,512,i,"7c",o]},t.faPipe=t.definition,t.prefix="fas",t.iconName=n,t.width=64,t.height=512,t.ligatures=i,t.unicode="7c",t.svgPathData=o,t.aliases=i},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="youtube",i=[61802],o="f167",a="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z";t.definition={prefix:"fab",iconName:n,icon:[576,512,i,o,a]},t.faYoutube=t.definition,t.prefix="fab",t.iconName=n,t.width=576,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["feed"],i="f09e",o="M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z";t.definition={prefix:"fas",iconName:"rss",icon:[448,512,n,i,o]},t.faRss=t.definition,t.prefix="fas",t.iconName="rss",t.width=448,t.height=512,t.ligatures=n,t.unicode=i,t.svgPathData=o,t.aliases=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="bars",i=["navicon"],o="f0c9",a="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z";t.definition={prefix:"fas",iconName:n,icon:[448,512,i,o,a]},t.faBars=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="magnifying-glass",i=[128269,"search"],o="f002",a="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z";t.definition={prefix:"far",iconName:n,icon:[512,512,i,o,a]},t.faMagnifyingGlass=t.definition,t.prefix="far",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="message-question",i=[],o="e1e3",a="M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm169.8 53.3l-.4 1.2c-4.4 12.5 2.1 26.2 14.6 30.6s26.2-2.1 30.6-14.6l.4-1.2c1.1-3.2 4.2-5.3 7.5-5.3h58.3c8.4 0 15.1 6.8 15.1 15.1c0 5.4-2.9 10.4-7.6 13.1l-44.3 25.4c-7.5 4.3-12.1 12.2-12.1 20.8V216c0 13.3 10.7 24 24 24c13.1 0 23.8-10.5 24-23.6l32.3-18.5c19.6-11.3 31.7-32.2 31.7-54.8c0-34.9-28.3-63.1-63.1-63.1H222.6c-23.7 0-44.8 14.9-52.8 37.3zM288 304a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faMessageQuestion=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="bag-shopping",i=["shopping-bag"],o="f290",a="M160 112v48H288V112c0-35.3-28.7-64-64-64s-64 28.7-64 64zm-48 96H48V416c0 26.5 21.5 48 48 48H352c26.5 0 48-21.5 48-48V208H336v56c0 13.3-10.7 24-24 24s-24-10.7-24-24V208H160v56c0 13.3-10.7 24-24 24s-24-10.7-24-24V208zm0-48V112C112 50.1 162.1 0 224 0s112 50.1 112 112v48h64c26.5 0 48 21.5 48 48V416c0 53-43 96-96 96H96c-53 0-96-43-96-96V208c0-26.5 21.5-48 48-48h64z";t.definition={prefix:"far",iconName:n,icon:[448,512,i,o,a]},t.faBagShopping=t.definition,t.prefix="far",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n="user-check",i=[],o="f4fc",a="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";t.definition={prefix:"fas",iconName:n,icon:[640,512,i,o,a]},t.faUserCheck=t.definition,t.prefix="fas",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(555);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faHome=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(556);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faUserAlt=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(307);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faCog=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="sliders",i=["sliders-h"],o="f1de",a="M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faSliders=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(557);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faCommentAltLines=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="gallery-thumbnails",i=[],o="e3aa",a="M512 64V288H64L64 64H512zM64 0C28.7 0 0 28.7 0 64V288c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM0 448v32c0 17.7 14.3 32 32 32H64c17.7 0 32-14.3 32-32V448c0-17.7-14.3-32-32-32H32c-17.7 0-32 14.3-32 32zm192-32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V448c0-17.7-14.3-32-32-32H192zm128 32v32c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V448c0-17.7-14.3-32-32-32H352c-17.7 0-32 14.3-32 32zm192-32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V448c0-17.7-14.3-32-32-32H512z";t.definition={prefix:"fas",iconName:n,icon:[576,512,i,o,a]},t.faGalleryThumbnails=t.definition,t.prefix="fas",t.iconName=n,t.width=576,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";
vendor: 4,309 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(558);t.definition={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.faPlusSquare=t.definition,t.prefix=n.prefix,t.iconName=n.iconName,t.width=n.width,t.height=n.height,t.ligatures=n.aliases,t.unicode=n.unicode,t.svgPathData=n.svgPathData,t.aliases=n.aliases},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="pipe",i=[],o="M32 0C45.3 0 56 10.7 56 24V488c0 13.3-10.7 24-24 24s-24-10.7-24-24V24C8 10.7 18.7 0 32 0z";t.definition={prefix:"far",iconName:n,icon:[64,512,i,"7c",o]},t.faPipe=t.definition,t.prefix="far",t.iconName=n,t.width=64,t.height=512,t.ligatures=i,t.unicode="7c",t.svgPathData=o,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forceVisible=t.forceCheck=t.lazyload=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1),o=d(i),a=d(r(29)),s=r(570),l=d(r(571)),c=d(r(572)),u=d(r(573));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=0,m=0,g=0,v=0,y="data-lazyload-listened",w=[],O=[],j=!1;try{var x=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("test",null,x)}catch(e){}var _=!!j&&{capture:!1,passive:!0},S=function(e){var t=e.ref;if(t instanceof HTMLElement){var r=(0,l.default)(t),n=e.props.overflow&&r!==t.ownerDocument&&r!==document&&r!==document.documentElement?function(e,t){var r=e.ref,n=void 0,i=void 0,o=void 0,a=void 0;try{var s=t.getBoundingClientRect();n=s.top,i=s.left,o=s.height,a=s.width}catch(e){n=b,i=m,o=v,a=g}var l=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,u=Math.max(n,0),d=Math.max(i,0),f=Math.min(l,n+o)-u,h=Math.min(c,i+a)-d,p=void 0,y=void 0,w=void 0,O=void 0;try{var j=r.getBoundingClientRect();p=j.top,y=j.left,w=j.height,O=j.width}catch(e){p=b,y=m,w=v,O=g}var x=p-u,_=y-d,S=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return x-S[0]<=f&&x+w+S[1]>=0&&_-S[0]<=h&&_+O+S[1]>=0}(e,r):function(e){var t=e.ref;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;var r=void 0,n=void 0;try{var i=t.getBoundingClientRect();r=i.top,n=i.height}catch(e){r=b,n=v}var o=window.innerHeight||document.documentElement.clientHeight,a=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return r-a[0]<=o&&r+n+a[1]>=0}(e);n?e.visible||(e.props.once&&O.push(e),e.visible=!0,e.forceUpdate()):e.props.once&&e.visible||(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},E=function(){O.forEach((function(e){var t=w.indexOf(e);-1!==t&&w.splice(t,1)})),O=[]},k=function(){for(var e=0;e<w.length;++e){var t=w[e];S(t)}E()},C=void 0,P=null,M=function(e){function t(e){f(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.visible=!1,r.setRef=r.setRef.bind(r),r}return p(t,e),n(t,[{key:"componentDidMount",value:function(){var e=window,t=this.props.scrollContainer;t&&"string"==typeof t&&(e=e.document.querySelector(t));var r=void 0!==this.props.debounce&&"throttle"===C||"debounce"===C&&void 0===this.props.debounce;if(r&&((0,s.off)(e,"scroll",P,_),(0,s.off)(window,"resize",P,_),P=null),P||(void 0!==this.props.debounce?(P=(0,c.default)(k,"number"==typeof this.props.debounce?this.props.debounce:300),C="debounce"):void 0!==this.props.throttle?(P=(0,u.default)(k,"number"==typeof this.props.throttle?this.props.throttle:300),C="throttle"):P=k),this.props.overflow){var n=(0,l.default)(this.ref);
2if(n&&"function"==typeof n.getAttribute){var i=+n.getAttribute(y)+1;1===i&&n.addEventListener("scroll",P,_),n.setAttribute(y,i)}}else if(0===w.length||r){var o=this.props,a=o.scroll,d=o.resize;a&&(0,s.on)(e,"scroll",P,_),d&&(0,s.on)(window,"resize",P,_)}w.push(this),S(this)}},{key:"shouldComponentUpdate",value:function(){return this.visible}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var e=(0,l.default)(this.ref);if(e&&"function"==typeof e.getAttribute){var t=+e.getAttribute(y)-1;0===t?(e.removeEventListener("scroll",P,_),e.removeAttribute(y)):e.setAttribute(y,t)}}var r=w.indexOf(this);-1!==r&&w.splice(r,1),0===w.length&&"undefined"!=typeof window&&((0,s.off)(window,"resize",P,_),(0,s.off)(window,"scroll",P,_))}},{key:"setRef",value:function(e){e&&(this.ref=e)}},{key:"render",value:function(){var e=this.props,t=e.height,r=e.children,n=e.placeholder,i=e.className,a=e.classNamePrefix,s=e.style;return o.default.createElement("div",{className:a+"-wrapper "+i,ref:this.setRef,style:s},this.visible?r:n||o.default.createElement("div",{style:{height:t},className:a+"-placeholder"}))}}]),t}(i.Component);M.propTypes={className:a.default.string,classNamePrefix:a.default.string,once:a.default.bool,height:a.default.oneOfType([a.default.number,a.default.string]),offset:a.default.oneOfType([a.default.number,a.default.arrayOf(a.default.number)]),overflow:a.default.bool,resize:a.default.bool,scroll:a.default.bool,children:a.default.node,throttle:a.default.oneOfType([a.default.number,a.default.bool]),debounce:a.default.oneOfType([a.default.number,a.default.bool]),placeholder:a.default.node,scrollContainer:a.default.oneOfType([a.default.string,a.default.object]),unmountIfInvisible:a.default.bool,style:a.default.object},M.defaultProps={className:"",classNamePrefix:"lazyload",once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1};t.lazyload=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(r){function i(){f(this,i);var e=h(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.displayName="LazyLoad"+function(e){return e.displayName||e.name||"Component"}(t),e}return p(i,r),n(i,[{key:"render",value:function(){return o.default.createElement(M,e,o.default.createElement(t,this.props))}}]),i}(i.Component)}},t.default=M,t.forceCheck=k,t.forceVisible=function(){for(var e=0;e<w.length;++e){var t=w[e];t.visible=!0,t.forceUpdate()}E()}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__517__},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="square-facebook",i=["facebook-square"],o="f082",a="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64h98.2V334.2H109.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H255V480H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z";t.definition={prefix:"fab",iconName:n,icon:[448,512,i,o,a]},t.faSquareFacebook=t.definition,t.prefix="fab",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="up-right-and-down-left-from-center",i=["expand-alt"],o="f424",a="M344 0H488c13.3 0 24 10.7 24 24V168c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512H24c-13.3 0-24-10.7-24-24V344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faUpRightAndDownLeftFromCenter=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="messages",i=["comments-alt"],o="f4b6",a="M64 0C28.7 0 0 28.7 0 64V256c0 35.3 28.7 64 64 64H96v48c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L202.7 320H352c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM352 352H256v32c0 35.3 28.7 64 64 64H437.3l81.1 60.8c4.8 3.6 11.3 4.2 16.8 1.5s8.8-8.2 8.8-14.3V448h32c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H448V256c0 53-43 96-96 96z";t.definition={prefix:"fas",iconName:n,icon:[640,512,i,o,a]},t.faMessages=t.definition,t.prefix="fas",t.iconName=n,t.width=640,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";function n(){return"auto"}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(25),i=r(49),o=r(102),a=r(48);class s extends a.a{}var l=r(104),c=r(28),u=r(78);class d extends i.a{constructor(e,t,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=u.g[e]||e,this.addQualifier(new n.a("c",e)),t&&this.width(t),r&&this.height(r)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new n.a("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new n.a("w",e))}aspectRatio(e){return e instanceof s?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new n.a("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=Object(o.a)(e),this.addQualifier(new n.a("ar",Object(o.a)(e)))):e instanceof c.a?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(Object(l.f)())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Object(l.e)())}static fromJson(e){const{actionType:t,dimensions:r,relative:n,regionRelative:i}=e,{aspectRatio:o,width:a,height:s}=r,c=new this(u.a[t]||t,a,s);return o&&c.aspectRatio("ignore_aspect_ratio"===o?Object(l.a)():o),n&&c.relative(),i&&c.regionRelative(),c}}class f extends n.a{constructor(e){super("g",new a.a(e))}}class h extends a.a{constructor(e){super(),this.name=e}toString(){return this.name}}class p extends a.a{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){const r=e instanceof h?e:new h(e);return new p(r,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}
2getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}p.focusOn;a.a;n.a;r(90);class b extends d{liquidRescaling(){return this.addQualifier(new f("liquid"))}}function m(e,t){return new b("scale",e,t)}},function(e,t,r){"use strict";var n,i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return u(n)}},,function(e,t,r){"use strict";r.r(t);
2var n=r(43),i=r.n(n),o=r(223),a=r(307),s=r(2),l=r(16),c=r.n(l),u=r(5),d=r(20),f=r(3),h=r(1),p=r(37),b=r(93),m=r(227),g=r(31),v=r(12),y=r(140),w=r(143),O=r(0);const j=({align:e="top",checked:t=!1,className:r="",id:n=null,label:i="",margin:o="",name:a="",onChange:s=(()=>{}),required:l=!1,value:u=""})=>{const d={margin:o};return Object(O.jsxs)("div",{className:c()("gmgCheckbox display_flex font_gibson",r),style:d,children:[Object(O.jsx)("input",{checked:t,type:"checkbox",className:r,name:a,id:null!=n?n:void 0,onChange:s,required:l,value:u}),Object(O.jsx)(w.a,{className:c()("font_regular ml-sm",{top:"top"===e}),htmlFor:null!=n?n:void 0,label:i})]})};j.propTypes={align:f.string,checked:f.bool,className:f.string,id:f.string,label:f.string,margin:f.string,name:f.string,onChange:f.func,required:f.bool,value:f.string};var x=j,_=r(118),S=r(233),E=r(228),k=r(221),C=r(14),P=r(72);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const I=["gmg-sandbox","localhost"].includes(d.ENVIRONMENT),A=(e,t)=>
2{switch(t.type){case"SET_EMAIL":return $({},e,{email:t.payload});case"SET_USERNAME":return $({},e,{userName:t.payload});case"SET_PASSWORD":return $({},e,{password:t.payload});case"SET_CONFIRM_PASSWORD":return $({},e,{confirmPassword:t.payload});case"SET_REMEMBER_ME":return $({},e,{rememberMe:t.payload});case"SET_SPINNER":return $({},e,{spinnerState:t.payload});case"SET_JUST_REGISTERED":return $({},e,{justRegistered:t.payload});case"SET_FORM_DISPLAY":return $({},e,{formDisplay:$({},e.formDisplay,{},t.payload)});case"RESET_FORM_DISPLAY":return $({},e,{formDisplay:{fmOptIn:!1,fmLogin:!0,fmForgot:!0,fmSuccess:!1}});case"SUCCESS_FORM_DISPLAY":return $({},e,{formDisplay:{fmOptIn:!1,fmLogin:!1,fmForgot:!1,fmSuccess:!0}});case"SET_PARAMS":return $({},e,{params:$({},e.params,{},t.payload)});case"SET_WHIZ_PARAMS":return $({},e,{whizParams:$({},e.whizParams,{},t.payload)});case"SHOW_MESSAGE":return $({},e,{alert:{message:$({},e.alert.message,{},t.payload.message),tone:t.payload.tone}});case"RESET_ALERT":return $({},e,{alert:{message:{general:null,user:null,email:null,pass:null},tone:null}});default:return e}},R=({customFields:{blurb:e="Register for an Account",loggedInHeading:t="Welcome back",buttonText:n="Register"}={},sx:l,callbackFn:d})=>{const{siteProperties:{profileLink:f,braze:w,siteDomain:j},arcSite:M,requestUri:T}=Object(u.useAppContext)(),{status:R}=Object(g.b)(),[D,L]=Object(h.useReducer)(A,{email:"",userName:"",password:"",confirmPassword:"",rememberMe:!0,spinnerState:!1,justRegistered:!1,formDisplay:{fmOptIn:!1,fmLogin:!0,fmForgot:!1,fmSuccess:!1},params:{reg_prompt:null,callback_url:null,ref:null},whizParams:{registrationReferrer:null,registrationPrompt:null,callbackUrl:null},alert:{message:{general:null,user:null,email:null,pass:null},tone:null}}),N=Object(h.useRef)(null),B=Object(h.useRef)(null),z=Object(h.useRef)(null),F=Object(h.useRef)(null),U=T.split("?")[1],H=Object(h.useMemo)((()=>new URLSearchParams(U)),[U]),V=Object(h.useMemo)((()=>"off"===H.get("nav")),[H]),G=Object(h.useMemo)((()=>["cityspark","cityspark-local"].includes(H.get("client_id")||"")),[H]),W=Object(h.useMemo)((()=>G?H.get("redirect_uri"):null),[G,H]);Object(h.useEffect)((()=>{G&&localStorage.setItem("gmg_cityspark_oidc_params",H.toString())}),[G,H]);const q=Object(h.useCallback)((e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())),[]),K=Object(h.useCallback)((e=>{if("object"==typeof window){const{dataLayer:t=[]}=window,r={event:"clickEvent",gaCategory:"NTG account",gaAction:"Login Error",gaLabel:e};D.params.reg_prompt&&(r.reg_prompt=D.params.reg_prompt),t.push(r)}}),[D.params.reg_prompt]),Y=Object(h.useCallback)((e=>{var t,r,n,i;const o=b.a[e]||b.a.UNKNOWN;"tone"in o&&"error"===o.tone&&K(e);const a=M in o?o[M]:o.message,s={general:null!==(t=null==a?void 0:a.general)&&void 0!==t?t:null,user:null!==(r=null==a?void 0:a.user)&&void 0!==r?r:null,email:null!==(n=null==a?void 0:a.email)&&void 0!==n?n:null,pass:null!==(i=null==a?void 0:a.pass)&&void 0!==i?i:null};L({type:"SHOW_MESSAGE",payload:{message:s,tone:o.tone}})}),[M,K]),X=Object(h.useCallback)((async e=>{try{const[t,n]=await Promise.all([i.a.getUserProfile(),r.e(0).then(r.bind(null,220))]);if("code"in t)throw new Error(`Error getting user profile: ${t.message}`);const{email:o,uuid:a,displayName:s}=t,{initialize:l,changeUser:c,getUser:u,requestImmediateDataFlush:f}=n;o&&Object(v.l)(o);const h=Object(v.d)("BCSessionID"),p=Object(v.d)("newspassid");l(I?w.sandboxApiKey:w.prodApiKey,{baseUrl:w.sdkEndpoint,enableLogging:!!I}),a&&c(a);const b=u();b&&a&&(b.setEmail(o||""),b.setCustomUserAttribute("arc_subs_id",a),s&&b.setCustomUserAttribute("display_name",s),b.setCustomUserAttribute(`${M}_account`,!0),b.setCustomUserAttribute(M,!0),b.setCustomUserAttribute("registration_init_time",(new Date).toISOString()),b.setCustomUserAttribute("registration_referrer",D.whizParams.registrationReferrer||D.params.ref||D.params.callback_url||W||""),b.setCustomUserAttribute("registration_prompt",D.whizParams.registrationPrompt||D.params.reg_prompt||""),b.addAlias(a,"arc_subs_id"),b.addAlias(o||"","email"),b.setCustomUserAttribute(`station_${M}`,!0),h&&(b.addAlias(h,"blueconic_id"),b.setCustomUserAttribute("blueconic_id",h)),p&&(b.addAlias(p,"npid"),b.setCustomUserAttribute("npid",p)),b.setCustomUserAttribute("pins_user_id",a));const m={event:"clickEvent",gaCategory:"NTG account",gaAction:"registration",gaLabel:"Google"};D.params.reg_prompt&&(m.reg_prompt=D.params.reg_prompt),window.dataLayer.push(m),f(),Object(v.m)(j),e.accessToken&&e.refreshToken&&L({type:"SET_WHIZ_PARAMS",payload:{callbackUrl:`${D.params.callback_url}?access_token=${e.accessToken}&refresh_token=${e.refreshToken}&user=${encodeURIComponent(o||"")}&id=${a}`}}
2),L({type:"SET_SPINNER",payload:!1}),L({type:"SET_JUST_REGISTERED",payload:!0}),L({type:"SUCCESS_FORM_DISPLAY"}),Y("REGISTER_SUCCESS"),null==d||d()}catch(e){console.error("[REGISTRATION] Error during Google registration:",e),L({type:"SET_SPINNER",payload:!1}),Y("UNKNOWN")}}),[M,w.prodApiKey,w.sandboxApiKey,w.sdkEndpoint,d,W,Y,j,D]),{isInitialized:J,isLoading:Z,triggerGoogleSignIn:Q,isConfigured:ee}=Object(m.a)({onSuccess:X,onError:e=>{console.error("[REGISTRATION] error registering with Google",e),L({type:"RESET_FORM_DISPLAY"}),p.toast.error("There was an error signing up with Google.")},mode:"register"});Object(h.useEffect)((()=>{if(N.current){const{current:e}=N;e&&e.focus();const t=sessionStorage.getItem("gmg_e");if(t){const e=atob(t).toLowerCase().trim();L({type:"SET_EMAIL",payload:e})}}}),[]),Object(h.useEffect)((()=>{if(G)return;const e=H.get("ref"),t=H.get("callback_url"),r=H.get("reg_prompt");t&&v.a.includes(t)&&L({type:"SET_WHIZ_PARAMS",payload:{registrationReferrer:"big_game_coverage",registrationPrompt:"app_redirect",callbackUrl:t}}),L({type:"SET_PARAMS",payload:{callback_url:t,reg_prompt:r,ref:e||window.location.pathname}})}),[H,G]);const te=Object(h.useCallback)((async e=>{try{e&&"preventDefault"in e&&e.preventDefault();const{email:t,userName:n,password:o,confirmPassword:a,rememberMe:s,params:l,whizParams:c}=D,{initialize:u,changeUser:f,getUser:h,requestImmediateDataFlush:p}=await r.e(0).then(r.bind(null,220));if(o&&o.length<6)Y("InvalidPasswordException");else if(o!==a)Y("PASSWORD_MISMATCH");else if(q(n))Y("EMAIL_AS_USERNAME");else if(Object(P.c)(t)){if(o&&t){L({type:"SET_SPINNER",payload:!0});const e=await i.a.signUp({userName:t,credentials:o},{email:t,displayName:n,emailVerified:!1},!0,s).then((e=>{if("code"in e){L({type:"RESET_FORM_DISPLAY"});const{code:t}=e,r={300031:"UsernameExistsException",300039:"UsernameExistsException",300023:"DISPLAY_NAME_EXISTS",300009:"EMAIL_ADDRESS_ERROR"},n=t in r?r[t]:"UNKNOWN";return Y(n),null}return{arcId:e.uuid,accessToken:e.accessToken,refreshToken:e.refreshToken}})).catch((e=>{L({type:"RESET_FORM_DISPLAY"});const{code:t}=e,r={300031:"UsernameExistsException",300039:"UsernameExistsException",300023:"DISPLAY_NAME_EXISTS",300009:"EMAIL_ADDRESS_ERROR"};Y(t in r?r[t]:"UNKNOWN"),L({type:"SET_SPINNER",payload:!1})}));if(null==e?void 0:e.arcId){Object(v.l)(t);const r=Object(v.d)("BCSessionID"),i=Object(v.d)("newspassid");u(I?w.sandboxApiKey:w.prodApiKey,{baseUrl:w.sdkEndpoint,enableLogging:!!I}),f(e.arcId);const o=h();o&&(o.setEmail(t),o.setCustomUserAttribute("arc_subs_id",e.arcId),o.setCustomUserAttribute("display_name",n),o.setCustomUserAttribute(`${M}_account`,!0),o.setCustomUserAttribute(M,!0),o.setCustomUserAttribute("registration_init_time",(new Date).toISOString()),o.addAlias(e.arcId,"arc_subs_id"),o.addAlias(t,"email"),o.setCustomUserAttribute(`station_${M}`,!0),o.setCustomUserAttribute("registration_referrer",c.registrationReferrer||l.ref||l.callback_url||W||""),o.setCustomUserAttribute("registration_prompt",c.registrationPrompt||l.reg_prompt||""),r&&(o.addAlias(r,"blueconic_id"),o.setCustomUserAttribute("blueconic_id",r)),i&&(o.addAlias(i,"npid"),o.setCustomUserAttribute("npid",i)),o.setCustomUserAttribute("pins_user_id",e.arcId));const a={event:"clickEvent",gaCategory:"NTG account",gaAction:"registration",gaLabel:D.params.ref||""};D.params.reg_prompt&&(a.reg_prompt=D.params.reg_prompt),window.dataLayer=window.dataLayer||[],window.dataLayer.push(a),p(),Object(v.m)(j),e.accessToken&&e.refreshToken&&L({type:"SET_WHIZ_PARAMS",payload:{callbackUrl:`${l.callback_url}?access_token=${e.accessToken}&refresh_token=${e.refreshToken}&user=${encodeURIComponent(t)}&id=${e.arcId}`}}),L({type:"SET_SPINNER",payload:!1}),L({type:"SET_JUST_REGISTERED",payload:!0}),L({type:"SUCCESS_FORM_DISPLAY"}),Y("REGISTER_SUCCESS"),null==d||d()}else L({type:"SET_SPINNER",payload:!1})}}else Y("EMAIL_ADDRESS_ERROR")}catch(e){console.error(e),Y("UNKNOWN")}}),[M,w.prodApiKey,w.sandboxApiKey,w.sdkEndpoint,d,W,q,Y,j,D]),re=Object(h.useCallback)((e=>{const t=e.target.value.toLowerCase().trim();L({type:"SET_EMAIL",payload:t}),sessionStorage.setItem("gmg_e",btoa(t))}),[]),ne=Object(h.useCallback)((e=>{L({type:"SET_USERNAME",payload:e.target.value})}),[]),ie=Object(h.useCallback)((e=>{L({type:"SET_CONFIRM_PASSWORD",payload:e.target.value})}),[]),oe=Object(h.useCallback)((e=>{L({type:"SET_PASSWORD",payload:e.target.value})}),[]),ae=Object(h.useCallback)((e=>{L({type:"SET_REMEMBER_ME",payload:e.target.checked})}),[]),se=Object(h.useCallback)((()=>{f?window.location.href=f:Object(v.h)()}),[f]),le=Object(h.useMemo)((()=>new URLSearchParams($({},D.params.ref?{ref:D.params.ref}:{},{},V?{nav:"off"}:{},{},D.params.callback_url?{callback_url:D.params.callback_url}:{},{},D.params.reg_prompt?{reg_prompt:D.params.reg_prompt}:{})).toString()),[D.params,V]);return Object(O.jsxs)(s.E,{gap:"$3",id:"loginPanel",justifyContent:"center",borderRadius:"$md",bg:"$white",py:"$7",px:"$4",boxShadow:"$lg",sx:$({width:"$128",maxWidth:"$full",textAlign:"center","& > *":{width:"$full"}},l),children:[Object(O.jsx)(s.n,{justifyContent:"center",children:Object(O.jsx)(k.a,{})}),["loading","loggedOut"].includes(R)||D.justRegistered?Object(O.jsxs)(O.Fragment,{children:[D.formDisplay.fmSuccess?Object(O.jsx)(s.q,{className:"mb-norm",level:3,textColor:"$green.500",children:"Registration Successful"}):Object(O.jsx)(s.q,{className:"mb-sm",level:3,children:e}),Object(O.jsxs)(s.M,{variant:"$sm",textColor:"$blueGray.600",sx:{dis
2play:D.formDisplay.fmLogin?void 0:"none"},children:["Already have an account? ",Object(O.jsx)(s.t,{href:Object(C.g)({link:`/account/login/?${le}`,arcSite:M}),variant:"$primary",sx:{fontFamily:"$openSans",fontWeight:"$semibold",fontSize:"$1"},children:"Log in here"})]}),Object(O.jsx)(y.a,{className:c()({"mb-norm":!D.formDisplay.fmSuccess}),message:D.alert.message.general,tone:D.alert.tone}),D.formDisplay.fmSuccess&&D.params.callback_url&&D.whizParams.callbackUrl&&Object(O.jsx)(s.f,{as:"a",href:D.whizParams.callbackUrl,variant:"$primary",sx:{display:D.formDisplay.fmLogin?"flex":void 0},children:"Log In"}),Object(O.jsx)(s.o,{id:"registration",onSubmit:te,name:"regForm",children:Object(O.jsxs)(s.E,{gap:"$3",children:[Object(O.jsx)(_.a,{autoComplete:"email",className:c()({display_none:!D.formDisplay.fmLogin}),label:"Enter your email address",placeholder:"Enter your email address*",id:"rfEmail",type:"email",name:"email",tone:D.alert.tone,message:D.alert.message.email,onChange:re,value:D.email||"",ref:N,required:!0,popOut:!0}),Object(O.jsx)(_.a,{autoComplete:"username",className:c()({display_none:!D.formDisplay.fmLogin}),label:"Enter your display name*",placeholder:"Enter your display name",id:"rfUsername",type:"text",name:"name",tone:D.alert.tone,message:D.alert.message.user,onChange:ne,ref:B,value:D.userName||"",required:!0,popOut:!0}),Object(O.jsx)(_.a,{autoComplete:"new-password",className:c()({display_none:D.formDisplay.fmSuccess}),type:"password",name:"password",id:"rfPassword",label:"Enter a new password",placeholder:"Enter a new password",onChange:oe,ref:z,popOut:!0,required:!0,value:D.password,message:D.alert.message.pass,tone:D.alert.tone}),Object(O.jsx)(_.a,{autoComplete:"new-password",className:c()({display_none:D.formDisplay.fmSuccess}),type:"password",name:"repeat",label:"Confirm new password",placeholder:"Confirm new password",onChange:ie,ref:F,id:"rfConfPass",popOut:!0,value:D.confirmPassword,required:!0}),Object(O.jsx)(x,{className:c()({display_none:D.formDisplay.fmSuccess}),checked:D.rememberMe,id:"fmRememberMe",name:"rememberMe",align:"center",label:"Remember me on this device.",onChange:ae}),Object(O.jsxs)(s.E,{gap:"$2",children:[Object(O.jsx)(s.f,{variant:"$primary",type:"submit",loading:D.spinnerState,value:"Continue",sx:$({width:"$full"},D.formDisplay.fmSuccess?{display:"none"}:void 0),children:n}),ee&&!D.formDisplay.fmSuccess&&Object(O.jsxs)(O.Fragment,{children:[Object(O.jsxs)(s.E,{direction:"row",gap:"$1",alignItems:"center",justifyContent:"center",position:"relative",children:[Object(O.jsx)(s.M,{as:"span",variant:"$sm",textColor:"$blueGray.600",backgroundColor:"$white",zIndex:1,paddingX:"$2",children:"OR"}),Object(O.jsx)(s.l,{variant:"$gray300",position:"absolute",left:"0",right:"0"})]}),Object(O.jsx)(S.a,{onClick:Q,disabled:!J,isLoading:Z,text:"Sign up with Google",variant:"register"})]})]}),Object(O.jsx)(s.t,{className:c()({display_none:D.formDisplay.fmSuccess}),href:"/account/forgot_password/",variant:"$primary",sx:D.formDisplay.fmForgot?void 0:{display:"none"},children:"I forgot my password"})]})})]}):Object(O.jsxs)(s.E,{gap:"$3",children:[Object(O.jsx)(s.q,{level:3,children:t}),Object(O.jsx)(s.l,{variant:"$gray400"}),Object(O.jsxs)(s.E,{direction:"row",gap:"$3",justifyContent:"center",children:[Object(O.jsx)(s.f,{variant:"$gray",onClick:se,iconLeft:a.faGear,children:"Profile Settings"}),Object(O.jsx)(s.f,{variant:"$red",onClick:()=>Object(v.c)("gmg_logout_dialog"),iconLeft:o.faSignOut,children:"Sign Out"})]})]}),ee&&Object(O.jsx)(E.a,{})]})};R.propTypes={customFields:f.shape({blurb:f.string.tag({name:"Log In Panel Text"}),loggedInHeading:f.string.tag({name:"Logged-in Blurb",description:"Heading to display if the user is already logged-in",defaultValue:"Welcome back"}),buttonText:f.string.tag({name:"Button Text",defaultValue:"Register"})}),sx:f.shape({})};t.default=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="xmark",i=[128473,10005,10006,10060,215,"close","multiply","remove","times"],o="f00d",a="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z";t.definition={prefix:"fas",iconName:n,icon:[384,512,i,o,a]},t.faXmark=t.definition,t.prefix="fas",t.iconName=n,t.width=384,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},,function(e,t,r){"use strict";e.exports=r(533)}
2,function(e,t,r){"use strict";var n=r(1),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},function(e,t,r){"use strict";e.exports=(e,t)=>!0===e.lazy||e.lazy instanceof Array&&e.lazy.includes(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStatic=void 0;const n=r(536);t.isStatic=(e,t)=>{const{static:r}=e;return(0,n.isArray)(r)&&(0,n.isString)(t)?r.includes(t):!0===r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=t.hasOwnProperty=t.isObject=t.isBoolean=t.isArray=t.isOk=t.isDefined=t.isString=t.isNumber=void 0;t.isNumber=e=>"number"==typeof e&&!Number.isNaN(e);t.isString=e=>"string"==typeof e;t.isDefined=e=>void 0!==e;t.isOk=e=>null!=e;t.isArray=e=>Array.isArray(e);t.isBoolean=e=>"boolean"==typeof e;t.isObject=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);t.hasOwnProperty=(e,r)=>(0,t.isObject)(e)&&Object.prototype.hasOwnProperty.call(e,r);t.isFunction=e=>"function"==typeof e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="triangle-exclamation",i=[9888,"exclamation-triangle","warning"],o="f071",a="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faTriangleExclamation=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t);var n=r(3),i=(r(1),r(2)),o=r(0);const a=({customFields:{links:e={},linkType:t="Internal Scroll"}})=>Object(o.jsx)(i.E,{gap:"$0",p:"$3",bg:"$white",borderRadius:"$rg",boxShadow:"$default",className:"navLinks",sx:{position:"sticky",top:"4.5rem"},children:Object(o.jsx)(i.E,{gap:"$4",alignItems:"flex-end",children:e&&"Internal Scroll"===t?Object.keys(e).map((t=>Object(o.jsx)(i.t,{href:`#${t}`,className:"pointer font_gibson font_semibold",children:e[t]},e[t]))):Object.keys(e).map((t=>Object(o.jsx)("a",{href:e[t],className:"pointer font_gibson font_semibold",children:t},t)))})});a.propTypes={customFields:n.shape({linkType:n.oneOf(["Internal Scroll","Hyperlink"]).tag({name:"Type of Links",labels:{internalScroll:"Internal Scroll",hyperlink:"Hyperlink"},defaultValue:"Internal Scroll"}),links:n.kvp.tag({name:"Internal: link ID, Link Title || Hyperlink: Link Title, URL"})})},t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="arrow-right-from-bracket",i=["sign-out"],o="f08b",a="M505 273c9.4-9.4 9.4-24.6 0-33.9L377 111c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l87 87L184 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l246.1 0-87 87c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273zM168 80c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 32C39.4 32 0 71.4 0 120L0 392c0 48.6 39.4 88 88 88l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-22.1 0-40-17.9-40-40l0-272c0-22.1 17.9-40 40-40l80 0z";t.definition={prefix:"far",iconName:n,icon:[512,512,i,o,a]},t.faArrowRightFromBracket=t.definition,t.prefix="far",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t);var n=r(498),i=r(497),o=r(2),a=r(3),s=(r(1),r(0));const l=({customFields:{featureId:e="resources",header:t="Resources",contactText:r="Contact Us",contactLink:a="",appText:l="Download Our Apps",appLink:c="",resourceLink:u={}}})=>Object(s.jsx)(o.E,{id:e,p:"$3",bg:"$white",borderRadius:"$rg",boxShadow:"$default",className:"noAd",gap:"$3",children:Object(s.jsxs)(o.E,{gap:"$3",children:[Object(s.jsxs)(o.E,{gap:"$2",children:[Object(s.jsx)(o.q,{level:4,sx:{fontWeight:"$semibold"},children:t}),Object(s.jsx)(o.l,{variant:"$gray400"})]}),Object(s.jsxs)(o.E,{gap:"$2",children:[Object(s.jsx)(o.f,{variant:"$primary",as:"a",iconRight:i.faPhone,href:a,children:r}),Object(s.jsx)(o.f,{variant:"$primary",as:"a",iconRight:n.faMobileAlt,href:c,children:l})]}),Object(s.jsx)(o.p,{gap:"$2",columns:2,children:Object.keys(u).map((e=>Object(s.jsx)(o.f,{as:"a",variant:"$gray",href:u[e],children:e},e)))})]})});l.propTypes={customFields:a.shape({featureId:a.string.tag({name:"ID for Navigation"}
2),header:a.string.tag({name:"Header Text"}),contactText:a.string.tag({name:"Contact Us Text"}),contactLink:a.string.tag({name:"Contact Us Link"}),appText:a.string.tag({name:"App CTA"}),appLink:a.string.tag({name:"App CTA Link"}),resourceLink:a.kvp.tag({name:"Resource Links "})})},t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="mobile-screen-button",i=["mobile-alt"],o="f3cd",a="M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM224 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM304 64H80V384H304V64z";t.definition={prefix:"fas",iconName:n,icon:[384,512,i,o,a]},t.faMobileScreenButton=t.definition,t.prefix="fas",t.iconName=n,t.width=384,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t);r(1);var n=r(5),i=r(176),o=r(0);t.default=()=>{const{globalContent:{content_elements:e,location:t,owner:{sponsored:r=!1}={}},siteProperties:{storyAdFrequency:a}}=Object(n.useAppContext)();return Object(o.jsx)(i.a,{data:e,isSponsored:r,storyAdFrequency:a,location:t,hideSharebar:!0})}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(14),a=r(95),s=r(229),l=r(133),c=r(0);t.default=()=>{const{siteProperties:{timeZone:e},globalContent:{display_date:t,publish_date:r,credits:{by:u=[]}={},owner:{sponsored:d=!1}={},taxonomy:{tags:f=[],sections:[{path:h,name:p}]=[],primary_section:{path:b,name:m}={}}={}}}=Object(i.useAppContext)(),g=b||h,v=m||p,y={gacategory:"Article Rail",gaaction:"Section Link",galabel:m||void 0};return Object(c.jsxs)(n.e,{className:"articleInfo",children:[g&&v?Object(c.jsxs)(n.E,{gap:"$2",children:[Object(c.jsx)(n.q,{level:4,sx:{fontSize:"$4",textTransform:"uppercase",letterSpacing:"$wide"},children:Object(c.jsx)(n.t,{href:g,className:d?void 0:"gaevent",gaTag:d?void 0:y,title:d?`View sponsored content in ${v}`:`View more articles in ${v}`,children:d?"Sponsored":v})}),Object(c.jsx)(n.l,{variant:"$red"})]}):null,Object(c.jsxs)(n.E,{gap:"$3",my:"$3",sx:{fontFamily:"$gibson"},className:"metadata",children:[u.length?Object(c.jsx)(s.a,{authorList:u}):null,Object(c.jsxs)(n.e,{className:"time",sx:{fontSize:"$1",lineHeight:"$tight",color:"$blueGray.700"},children:[t?Object(c.jsxs)(n.M,{sx:{color:"$blueGray.600",lineHeight:"$snug","& time":{fontWeight:"$semibold"}},children:["Published: ",Object(c.jsx)(a.a,{dateString:t,timeZone:e})]}):null,Object(o.m)(t,r)?Object(c.jsxs)(n.M,{sx:{color:"$blueGray.600",lineHeight:"$snug","& time":{fontWeight:"$semibold"}},children:["Updated: ",Object(c.jsx)(a.a,{dateString:r,timeZone:e})]}):null]}),Object(c.jsx)(l.a,{tags:f})]}),Object(c.jsx)(n.l,{variant:"$gray100"})]})}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return a}));var n=r(5),i=r(224),o=r(0);function a({note:e,sx:t}){const{globalContent:{editor_note:r}={}}=Object(n.useAppContext)();return e||r?Object(o.jsx)(i.a,{note:e||r,sx:t}):null}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(14),a=r(95),s=r(151),l=r(134),c=r(133),u=r(0);t.default=()=>{const e=Object(i.useAppContext)(),{siteProperties:t,globalContent:r}=e,{description:{basic:d}={},credits:{by:f=[]}={},taxonomy:{sections:[{path:h,name:p}],tags:b=[]}={}}=r,m=r.owner.sponsored,g=f.map((e=>{const t="additional_properties"in e&&"original"in e.additional_properties&&"role"in e.additional_properties.original?`, ${e.additional_properties.original.role}`:null;return Object(u.jsxs)("p",{className:"font_gibson | no-margin",children:[Object(u.jsx)("span",{className:"color_red | font_semibold",href:"#",children:e.name},e.name),t]},e.name)})),v=[],y=[];"corrections"in r&&r.corrections.forEach((e=>{if("clarification"===e.correction_type)v.push(Object(u.jsxs)("p",{className:"notice correction",children:[Object(u.jsx)("span",{className:"font_bold",children:"Clarification:"}),e.text]}));else v.push(Object(u.jsxs)("p",{className:"notice correction",children:[Object(u.jsx)("span",{className:"font_bold",children:"Correction:"}),e.text]}))})),"editor_note"in r&&y.push(Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("p",{className:"notice note",children:r.editor_note}),Object(u.jsx)(n.l,{variant:"$blueGray.100",mb:"$3"})]}));const w=h&&p?Object(u.jsx)("a",{href:h,children:p}):null,O=h&&p?Object(u.jsx)("a",{href:h,children:"Sponsored"}):null;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"articleInfo | mobileOnly",children:Object(u.jsx)(n.q,{level:4,className:"font_gibson | uppercase | mb-sm",children:m?O:w})}),Object(u.jsx)(n.q,{level:1,className:"headline",children:r.headlines.basic}),r.subheadlines?Object(u.jsx)(n.q,{level:2,className:"subheadline font_light",children:r.subheadlines.basic}):null,Object(u.jsxs)("div",{className:"metadata | mobileOnly | mb-norm font_gibson | font_regular",children:[Object(u.jsx)("div",{className:"byline",children:g}
2),Object(u.jsxs)("div",{className:"color_medium-gray mb-norm",children:[r.display_date?Object(u.jsxs)("time",{className:"display_block",dateTime:r.display_date,children:["Published: ",Object(u.jsx)("strong",{className:"font_semibold",children:Object(u.jsx)(a.a,{dateString:r.display_date,timeZone:t.timeZone})})]}):null,Object(o.m)(r.display_date,r.publish_date)?Object(u.jsxs)("time",{className:"display_block",dateTime:r.publish_date,children:["Updated: ",Object(u.jsx)("strong",{className:"font_semibold",children:Object(u.jsx)(a.a,{dateString:r.publish_date,timeZone:t.timeZone})})]}):null]}),Object(u.jsx)(c.a,{tags:b})]}),Object(u.jsx)(s.a,{sx:{marginBottom:"$4"},data:r.content_elements,className:"full-width"}),m?Object(u.jsx)(l.a,{}):null,y,d&&Object(u.jsx)(n.M,{innerContent:d,variant:"$base",textColor:"$blueGray.900",lineHeight:"$loose"}),v,Object(u.jsx)(n.M,{className:"copyright",sx:{color:"$blueGray.400",lineHeight:"$normal",fontSize:"$0",fontStyle:"italic"},children:r.copyright}),Object(u.jsx)(n.l,{variant:"$gray100"})]})}},function(e,t,r){"use strict";r.r(t),r.d(t,"NewsletterSignup",(function(){return b}));var n=r(2),i=r(144),o=r(5),a=r(20),s=r(3),l=r(1),c=r(37),u=r(72),d=r(12),f=r(50),h=r(0);const p=["localhost","gmg-sandbox"].includes(a.ENVIRONMENT),b=({customFields:{listId:e="",signUpCopy:t="Get Email Alerts"}})=>{const{arcSite:a,siteProperties:{braze:s}}=Object(o.useAppContext)(),[b,m]=Object(l.useState)(""),[g,v]=Object(l.useState)("idle"),[y,w]=Object(l.useState)("none");return Object(h.jsxs)(n.o,{onSubmit:t=>{if(t.preventDefault(),v("submitting"),w("none"),""===b)return c.toast.error("Please enter an email address"),w("empty"),void v("error");if(!Object(u.c)(b))return c.toast.error("Please enter a valid email address"),w("invalid"),void v("error");const n=Object(u.b)(b),o=Object(u.a)(b);if(!e)return window.location.href=`/account/newsletters/?email=${n}`,void v("idle");const l={[e]:1},h=`${Object(f.b)()}/email/newsletters/update`;i.a.post(h,{email:o,site:a,subscribes:l}).then((async()=>{Object(d.l)(o),c.toast.success("Thank you for signing up!");const{dataLayer:t=[]}=window;t.push({event:"clickEvent",gaCategory:"Email",gaAction:"Subscribe",gaLabel:e});const{initialize:n,isInitialized:i,openSession:l,getUser:u,getDeviceId:f}=await r.e(0).then(r.bind(null,220));i()||(n(p?s.sandboxApiKey:s.prodApiKey,{baseUrl:s.sdkEndpoint,enableLogging:!!p}),l());const h=u(),b=f(),m=Object(d.d)("BCSessionID"),g=Object(d.d)("newspassid");b&&localStorage.setItem("gmg_device_id",b),h&&(h.setCustomUserAttribute("seen_emails",o,!0),h.setEmail(o),h.addAlias(o,"email"),m&&(h.addAlias(m,"blueconic_id"),h.setCustomUserAttribute("blueconic_id",m)),g&&(h.addAlias(g,"npid"),h.setCustomUserAttribute("npid",g)),h.setCustomUserAttribute("last_seen_at",(new Date).toISOString()),h.setCustomUserAttribute(a,!0)),v("success")})).catch((e=>{var t,r,n,i;console.error(e),c.toast.error((null===(t=e.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.error)||"Something went wrong",{description:null===(n=e.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.details}),v("error")}))},"aria-label":e?`Sign up for ${e.replaceAll("_"," ")} newsletter`:"Sign up for our newsletter",sx:{display:"flex",flexDirection:"column",gap:"$2"},children:[Object(h.jsx)(n.s,{size:"$rg",type:"email",name:"email",label:t,value:b,onChange:e=>{m(e.target.value)},placeholder:"Enter your email"}),"none"!==y&&Object(h.jsx)(n.M,{variant:"$sm",textColor:"$red.500",children:"empty"===y?"Please enter an email address":"Please enter a valid email address"}),Object(h.jsx)(n.f,{type:"submit",variant:"$primary",width:"100%",loading:"submitting"===g,disabled:"submitting"===g||"success"===g,children:"Sign Up"})]})};b.propTypes={customFields:s.shape({listId:s.text.tag({name:"Braze Newsletter Name",description:"Example: 'wdiv_breaking'"}),signUpCopy:s.text.tag({name:"Sign Up Message"})})},t.default=b},function(e,t,r){"use strict";r.r(t);var n=r(0);t.default=()=>Object(n.jsx)("section",{id:"sponsored-content",children:Object(n.jsx)("div",{id:"sponsored_content_placeholder"})})},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(3),o=r(5),a=r(0);const s=e=>{const t=Object(o.useAppContext)(),r="undefined"!=typeof window,{siteProperties:i,requestUri:s}=t,{customFields:{widgetId:l}={}}=e,c={AR_3:"MB_2",CRMB_2:"SF_1"};let u=null;r&&window.innerWidth<769&&l in c&&(u=c[l]);const d=Object(n.useCallback)((e=>{if(null!==e&&!document.getElementsByTagName("body")[0].classList.contains("noAd")&&""===e.innerHTML){const t=document.createElement("script");t.type="text/javascript",t.src="//widgets.outbrain.com/outbrain.js",t.async="async",e.appendChild(t)}}),[]),f=r?window.location.href:`https://www.${i.siteDomain}${s}`,h=r?window.location.host:i.siteDomain;return Object(a.jsx)("div",{className:"sponsored-content",children:Object(a.jsx)("section",{className:"content-block",children:Object(a.jsx)("div",{id:"gmg-outbrain-container",children:Object(a.jsx)("div",{className:"OUTBRAIN","data-src":f,ref:d,"data-widget-id":u||l,"data-ob-template":h})})})})};s.propTypes={customFields:i.shape({widgetId:i.oneOf(["SDK_1","AMP_1","MB_2","CRMB_1","AR_3","CR_1","AR_4","SF_1","CRMB_2","SL_1","CRAB_1","CRAB_2"]).tag({label:"Widget ID",labels:{SDK_1:"In-App Widget (SDK_1)",AMP_1:"Mobile AMP Article Page (AMP_1)",MB_2:"New Mobile Widget (MB_2)",CRMB_1:"New Mobile Widget (CRMB_1)",AR_3:"New Image Widget (AR_3)",CR_1:"Out of State Image Widget (CR_1)",AR_4:"New Text Widget (AR_4)",SF_1:"Weather Widget (SF_1)",CRMB_2:"Weather Widget (CRMB_2)",SL_1:"AdBlock Image Sidebar Widget (SL_1)",CRAB_1:"AdBlock Image Widget (CRAB_1)",CRAB_2:"AdBlock Text Widget (CRAB_2)"}})}).isRequired},t.default=s},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(26),o=r(5),a=r(3),s=(r(1),r(10)),l=r(56),c=r(149),u=r(0);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=({customFields:{mobileOnly:e=!1,mobileColumns:t=1,tabletColumns:r=2,desktopColumns:a=null,xGap:s="$3",yGap:d="$3",gap:f="$3",horizontalAlignment:h="left",verticalAlignment:p="top",headingColor:b,headingWeight:m,mobileHeadingSize:g="$2",tabletHeadingSize:v=null,desktopHeadingSize:y="$3",descriptionColor:w,descriptionWeight:O,mobileDescriptionSize:j="$1",tabletDescriptionSize:
2x=null,desktopDescriptionSize:_=null,metaTitleSize:S="$-1",metaTitleColor:E="$red.600",metaTitleWeight:k="$medium",textLocation:C="bottom",amount:P=6,showImage:M,showTime:$,showDescription:T,showDividers:I,headlineLines:A,descriptionLines:R,dividerHeadingContent:D,dividerColor:L="$red.500",dividerMobileHeadingSize:N="$2",dividerTabletHeadingSize:B=null,dividerDesktopHeadingSize:z="$3",dividerHeadingWeight:F="$bold",dividerHeaderColor:U="$blueGray.900",bgColor:H="$transparent"}})=>{var V;const{isAdmin:G,arcSite:W,siteProperties:{siteName:q},globalContent:{related_content:K}={}}=Object(o.useAppContext)(),Y=null==K||null===(V=K.basic)||void 0===V?void 0:V.map((e=>{var t;return null===(t=e.referent)||void 0===t?void 0:t.id})).join(","),X=Object(i.useContent)(Y&&0!==Y.length?{source:"articles_by_id",query:{ids:Y}}:void 0);if(!X)return null;const{content_elements:J}=X,Z={amount:P,descriptionLines:R,headlineLines:A,arcSite:W,siteName:q,shouldBeStatic:!1,isAdmin:G,showDividers:I,mobileHeadingSize:g,tabletHeadingSize:v,desktopHeadingSize:y,headingColor:b,headingWeight:m,metaTitleSize:S,metaTitleColor:E,metaTitleWeight:k,mobileDescriptionSize:j,tabletDescriptionSize:x,desktopDescriptionSize:_,descriptionWeight:O,descriptionColor:w,showDescription:T,showImage:M,showTime:$,textLocation:C},Q=J.slice(0,P).map(c.getStoryCard,Z);return Object(u.jsxs)(n.E,{gap:f,sx:{display:e?["flex",null,"none"]:"flex"},children:[D?Object(u.jsx)(l.default,{customFields:{dividerHeadingContent:D,dividerColor:L,dividerMobileHeadingSize:N,dividerTabletHeadingSize:B,dividerDesktopHeadingSize:z,dividerHeadingWeight:F,dividerHeaderColor:U,horizontalAlignment:h,verticalAlignment:p,bgColor:H,dividerHeadingLevel:4},children:D}):null,Object(u.jsx)("div",{children:Object(u.jsx)(n.p,{columns:[t,r,a],xGap:s,yGap:d,sx:c.storyGridStyles[C],children:Q})})]})};h.propTypes={customFields:a.shape(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({amount:a.number.tag({name:"Amount of Stories",defaultValue:6}),mobileOnly:a.boolean.tag({name:"Hide on Desktop",defaultValue:!1,group:"Display Options"}),showImage:a.bool.tag({name:"Show Image",defaultValue:!0,group:"Display Options"}),showDescription:a.bool.tag({name:"Show Description",defaultValue:!0,group:"Display Options"}),showTime:a.bool.tag({name:"Show Time",defaultValue:!0,group:"Display Options"}),showDividers:a.bool.tag({name:"Show Dividers",defaultValue:!1,group:"Display Options"}),textLocation:a.oneOf(["overlay","top","right","bottom","left"]).tag({name:"Text Location",description:"...",labels:{overlay:"overlay",top:"top",right:"right",bottom:"bottom",left:"left"},defaultValue:"bottom",group:"Display Options"})},s.f,{gap:Object(s.e)({name:"Headline Gap",defaultValue:"$3",group:"Header Options"}),mobileColumns:Object(s.b)({name:"Mobile Column Count",description:"Mobile columns",defaultValue:1,group:"Grid Options"}),tabletColumns:Object(s.b)({name:"Tablet Column Count",description:"Tablet columns",defaultValue:2,group:"Grid Options"}),desktopColumns:Object(s.b)({name:"Desktop Column Count",description:"Desktop columns",defaultValue:null,group:"Grid Options"}),xGap:Object(s.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(s.e)({name:"Row Gap (y-axis)",defaultValue:"$5",group:"Grid Options"}),mobileHeadingSize:Object(s.c)({name:"Mobile Headline Size",defaultValue:"$1",group:"Typography Options"}),tabletHeadingSize:Object(s.c)({name:"Tablet Headline Size",defaultValue:null,group:"Typography Options"}),desktopHeadingSize:Object(s.c)({name:"Desktop Headline Size",defaultValue:"$2",group:"Typography Options"}),headingWeight:Object(s.d)({name:"Heading Weight",defaultValue:"$bold",group:"Typography Options"}),headingColor:Object(s.a)({name:"Heading Color",defaultValue:"$blueGray.900",group:"Typography Options"}),metaTitleSize:Object(s.c)({name:"Meta Title Size",defaultValue:"$-1",group:"Typography Options"}),metaTitleColor:Object(s.a)({name:"Meta Title Color",defaultValue:"$red.500",group:"Typography Options"}),metaTitleWeight:Object(s.d)({name:"Meta Title Weight",defaultValue:"$medium",group:"Typography Options"}),mobileDescriptionSize:Object(s.c)({name:"Mobile Description Size",defaultValue:"$0",group:"Typography Options"}),tabletDescriptionSize:Object(s.c)({name:"Tablet Description Size",defaultValue:null,group:"Typography Options"}),desktopDescriptionSize:Object(s.c)({name:"Desktop Description Size",defaultValue:null,group:"Typography Options"}),descriptionWeight:Object(s.d)({name:"Description Weight",defaultValue:"$normal",group:"Typography Options"}),descriptionColor:Object(s.a)({name:"Description Color",defaultValue:"$blueGray.600",group:"Typography Options"}),headlineLines:a.number.tag({name:"Headline line limit (optional)",description:"Manipulates the line limit on article headlines. A default is applied if blank.",defaultValue:3,group:"Advanced Options"}
2),descriptionLines:a.number.tag({name:"Description line limit (optional)",description:"Manipulates the line limit on article descriptions. A default is applied if blank.",defaultValue:2,group:"Advanced Options"})}))},t.default=h},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(215),s=r(0);const l=({customFields:{utmSource:e,utmMedium:t,utmCampaign:r,utmContent:o,utmTerm:l}={}})=>{const{globalContent:c}=Object(i.useAppContext)(),{subtype:u}=c,d={utm_source:e,utm_medium:t,utm_campaign:r,utm_content:o,utm_term:l},f="full-width"===u;return Object(s.jsxs)(n.E,{gap:"$3",children:[Object(s.jsx)(a.a,{params:d}),f?null:Object(s.jsx)(n.l,{variant:"$gray100"})]})};l.propTypes={customFields:o.shape({utmSource:o.string.tag({name:"UTM Source",label:"UTM Source",description:"Identifies which site sent the traffic, e.g., google, newsletter, or billboard. Use this to track different sources of traffic to your article."}),utmMedium:o.string.tag({name:"UTM Medium",label:"UTM Medium",description:"Identifies what type of link was used, e.g., cpc for cost per click, email for email marketing, or social for social media. This helps categorize the method of traffic."}),utmCampaign:o.string.tag({name:"UTM Campaign",label:"UTM Campaign",description:"Used for specific promotions or strategic campaigns. Name your campaign here, e.g., spring_sale, product_launch_2023, or black_friday. This helps track performance across different marketing initiatives."}),utmContent:o.string.tag({name:"UTM Content",label:"UTM Content",description:"Used to differentiate similar content or links within the same ad or page. For example, if you have two call-to-action links on the same email, you can use utm_content to differentiate which one was clicked."}),utmTerm:o.string.tag({name:"UTM Term",label:"UTM Term",description:"Used for paid search to note the keywords for this ad. If you're using keyword-level tracking in Google Ads, the keywords you bid on will be added here automatically."})})},t.default=l},function(e,t,r){"use strict";r.r(t);var n=r(134),i=r(0);t.default=({sx:e})=>Object(i.jsx)(n.a,{sx:e})},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(71),a=r(95),s=r(56),l=r(134),c=r(133),u=r(0);t.default=()=>{var e,t;const{siteProperties:{timeZone:r},globalContent:d}=Object(i.useAppContext)(),f=d,h=null==f||null===(e=f.promo_items)||void 0===e||null===(t=e.basic)||void 0===t?void 0:t._id;if(!h)return null;const{taxonomy:{primary_section:p,tags:b}={},headlines:{basic:m},description:{basic:g}={},owner:{sponsored:v}={},publish_date:y}=f;return Object(u.jsxs)(n.p,{as:"article",className:"videoBody",columns:[1,null,4,6],gap:"$4",children:[Object(u.jsx)(n.e,{sx:{gridColumn:["-1 / 1",null,"1 / span 2","1 / span 4"]},children:(null==f?void 0:f.is_vertical)?Object(u.jsx)(n.e,{borderRadius:[null,null,"$lg"],sx:{aspectRatio:["9 / 16",null,"16 / 9"],width:"100%",backgroundColor:"$blueGray.100",position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},children:Object(u.jsx)(n.e,{sx:{aspectRatio:[null,null,"9 / 16"],height:"100%",width:["100%",null,"auto"]},children:Object(u.jsx)(o.default,{borderRadius:"$none",customFields:{type:"vertical",autoPlay:!1,muted:!1,distributionId:h,isFeaturedSpot:!1,placeholderColor:"$black.300"}})})}):Object(u.jsx)(o.default,{className:"full-width",customFields:{type:v?"sponsored":"video-detail",distributionId:h,isFeaturedSpot:!1}})}),Object(u.jsxs)(n.E,{gap:"$3",sx:{gridColumn:["-1 / 1",null,"3 / span 2","5 / span 2"]},children:[(null==p?void 0:p.name)?Object(u.jsx)(s.default,{customFields:{dividerHeadingContent:null==p?void 0:p.name.toUpperCase(),dividerDesktopHeadingSize:"$2",dividerHeadingGC:!0,dividerHeadingLevel:3}}):null,Object(u.jsx)(n.q,{variant:"$lg",level:1,className:"headline",children:m}),Object(u.jsxs)(n.E,{gap:"$2",children:[Object(u.jsx)(n.e,{className:"time",sx:{fontSize:"$1",lineHeight:"$tight",color:"$blueGray.700"},children:y?Object(u.jsxs)(n.M,{as:"time",sx:{display:"block"},dateTime:y,children:["Published: ",Object(u.jsx)(n.M,{as:"span",sx:{color:"$blueGray.600",lineHeight:"$snug",fontWeight:"$semibold"},children:Object(u.jsx)(a.a,{dateString:y,timeZone:r})})]}):null}),Object(u.jsx)(c.a,{tags:null==b?void 0:b.map((e=>({text:e.text})))})]}),g&&Object(u.jsx)(n.M,{variant:"$sm",innerContent:g,sx:{wordBreak:"break-word"}}),v&&Object(u.jsx)(l.a,{children:"The advertiser paid a fee to promote this sponsored video and may have influenced or authored the content. The views expressed in this video are those of the advertiser and do not necessarily reflect those of this site or affiliated companies."})]})]})}},function(e,t,r){"use strict";r.r(t);var n=r(499),i=r(132),o=r(168),a=r(26),s=r(5),l=r(3),c=(r(1),r(2)),u=r(10),d=r(33),f=r(0);const h=({customFields:{authorId:e="",imageColor:t="$blue.300",mobileHeadingSize:r="$3",tabletHeadingSize:l,desktopHeadingSize:u,headingWeight:h="$semibold",headingColor:p="$blueGray.900",mobileDescriptionSize:b="$1",tabletDescriptionSize:m,desktopDescriptionSize:g,descriptionWeight:v="$normal",descriptionColor:y="$blueGray.400"}={}})=>{const{isAdmin:w}=Object(s.useAppContext)(),O=Object(a.useContent)(e?{source:"author-by-id",query:{author_id:e}}:void 0);if(!O&&w)return e?Object(f.jsxs)(c.E,{as:"section",gap:"$2",sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",borderRadius:"$md"},children:[Object(f.jsx)(c.q,{level:3,sx:{fontSize:"$4"},children:"Author:"}),Object(f.jsx)(c.M,{sx:{color:"$lightBlue.900"},children:"Loading..."})]}):Object(f.jsxs)(c.E,{as:"section",gap:"$2",sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",borderRadius:"$md"},children:[Object(f.jsx)(c.q,{level:3,sx:{fontSize:"$4"},children:"Author:"}),Object(f.jsx)(c.M,{sx:{color:"$lightBlue.900"},children:"Please specify author ID"})]});if(!O)return null;const{byline:j,image:x,role:_,facebook:S,twitter:E,instagram:k}=O;return Object(f.jsxs)(c.E,{gap:"$3",flexDirection:"row",sx:{alignItems:"center"},children:[x?Object(f.jsx)(c.t,{href:`/team/${e}`,title:`View ${j}'s full profile`,children:Object(f.jsx)(d.a,{url:x,alt:`${j}'s profile picture`,width:96,height:96,sx:{borderRadius:"$full",width:"$24",height:"$24",border:"2px s
2olid",borderColor:t}})}):null,Object(f.jsxs)(c.E,{gap:"$2",children:[Object(f.jsxs)(c.E,{gap:"$1",children:[Object(f.jsx)(c.t,{href:`/team/${e}`,title:`View ${j}'s full profile`,children:Object(f.jsx)(c.q,{sx:{fontSize:[r,l,u],color:p,fontWeight:h},children:j})}),_?Object(f.jsx)(c.M,{sx:{fontSize:[b,m,g],color:y,fontWeight:v},children:_}):null]}),S||E||k?Object(f.jsxs)(c.E,{flexDirection:"row",gap:"$3",sx:{color:p},children:[E?Object(f.jsx)(c.t,{href:`https://twitter.com/${E}`,target:"_blank",rel:"noopener noreferrer","aria-label":`Visit ${j}'s Twitter profile`,title:`Visit ${j}'s Twitter profile`,children:Object(f.jsx)(c.r,{icon:o.faXTwitter})}):null,S?Object(f.jsx)(c.t,{href:S,target:"_blank",rel:"noopener noreferrer","aria-label":`Visit ${j}'s Facebook profile`,title:`Visit ${j}'s Facebook profile`,children:Object(f.jsx)(c.r,{icon:n.faFacebook})}):null,k?Object(f.jsx)(c.t,{href:`https://instagram.com/${k}`,target:"_blank",rel:"noopener noreferrer","aria-label":`Visit ${j}'s Instagram profile`,title:`Visit ${j}'s Instagram profile`,children:Object(f.jsx)(c.r,{icon:i.faInstagram})}):null]}):null]})]})};t.default=h,h.propTypes={customFields:l.shape({authorId:l.string.tag({name:"Author ID",description:"..."}).isRequired,imageColor:Object(u.a)({name:"Image Border Color",defaultValue:"$blue.300",group:"Typography Options"}),mobileHeadingSize:Object(u.c)({name:"Mobile Headline Size",description:"$3",defaultValue:"$1",group:"Typography Options"}),tabletHeadingSize:Object(u.c)({name:"Tablet Headline Size",defaultValue:null,group:"Typography Options"}),desktopHeadingSize:Object(u.c)({name:"Desktop Headline Size",defaultValue:null,group:"Typography Options"}),headingWeight:Object(u.d)({name:"Heading Weight",defaultValue:"$semibold",group:"Typography Options"}),headingColor:Object(u.a)({name:"Heading Color",defaultValue:"$blueGray.700",group:"Typography Options"}),mobileDescriptionSize:Object(u.c)({name:"Mobile Description Size",defaultValue:"$1",group:"Typography Options"}),tabletDescriptionSize:Object(u.c)({name:"Tablet Description Size",defaultValue:null,group:"Typography Options"}),desktopDescriptionSize:Object(u.c)({name:"Desktop Description Size",defaultValue:null,group:"Typography Options"}),descriptionWeight:Object(u.d)({name:"Description Weight",defaultValue:"$normal",group:"Typography Options"}),descriptionColor:Object(u.a)({name:"Description Color",defaultValue:"$blueGray.500",group:"Typography Options"})})}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var n=r(3),i=r.n(n),o=r(121),a=r(0);function s({customFields:{customId:e,limit:t=10,paginationLimit:r=10,paginationReplyLimit:n=10,replyLimit:i=2,sort:s="newest",featuredTabActiveThreshold:l=3,initialHeight:c=600}={}}){return Object(a.jsx)(o.default,{customFields:{contentId:e,limit:t,paginationLimit:r,paginationReplyLimit:n,replyLimit:i,sort:s,featuredTabActiveThreshold:l,initialHeight:c}})}s.propTypes={customFields:i.a.shape({customId:i.a.string.tag({name:"Custom Content ID",description:"Use this field if you want to include the same conversation on more than one page.  Conversation widgets that have the same Content ID will have the same content.  Pick something that you can be sure will be unique."}),limit:i.a.number.tag({name:"Limit",description:"Defines the number of comments that are initially loaded before paginating.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),paginationLimit:i.a.number.tag({name:"Pagination Limit",description:"Defines the number of comments that are loaded when the user clicks to load more comments.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),replyLimit:i.a.number.tag({name:"Reply Limit",description:"Defines the number of replies that are initially loaded for top-level comments.",defaultValue:2,min:0,max:100,group:"Advanced Options"}),paginationReplyLimit:i.a.number.tag({name:"Pagination Reply Limit",description:"Defines the number of replies that are loaded when the user clicks to load more replies.",defaultValue:10,min:1,max:100,group:"Advanced Options"}),sort:i.a.oneOf(["newest","oldest","num_likes_desc","num_replies_desc"]).tag({name:"Sort",description:"Defines the sort order for top-level comments (not including replies).",labels:{newest:"Newest",oldest:"Oldest",num_likes_desc:"Number of Likes (Most to Least)",num_replies_desc:"Number of Replies (Most to Least)"},defaultValue:"newest",group:"Advanced Options"}),featuredTabActiveThreshold:i.a.number.tag({name:"Featured Tab Active Threshold",description:'Defines the minimum number of "featured" comments that are needed to automatically load the "Featured Comments" tab as default.',defaultValue:3,group:"Advanced Options"}),initialHeight:i.a.number.tag({name:"Initial Height",description:'Determines the initial widget height (in pixels). The component can increase if the user clicks on "Vie
2w More Comments".',group:"Advanced Options",defaultValue:600})})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="house",i=[127968,63498,63500,"home","home-alt","home-lg-alt"],o="f015",a="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z";t.definition={prefix:"fas",iconName:n,icon:[576,512,i,o,a]},t.faHouse=t.definition,t.prefix="fas",t.iconName=n,t.width=576,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="user-large",i=["user-alt"],o="f406",a="M256 288A144 144 0 1 0 256 0a144 144 0 1 0 0 288zm-94.7 32C72.2 320 0 392.2 0 481.3c0 17 13.8 30.7 30.7 30.7H481.3c17 0 30.7-13.8 30.7-30.7C512 392.2 439.8 320 350.7 320H161.3z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faUserLarge=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="message-lines",i=["comment-alt-lines"],o="f4a6",a="M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm152 80c-13.3 0-24 10.7-24 24s10.7 24 24 24H360c13.3 0 24-10.7 24-24s-10.7-24-24-24H152zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H152z";t.definition={prefix:"fas",iconName:n,icon:[512,512,i,o,a]},t.faMessageLines=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="square-plus",i=[61846,"plus-square"],o="f0fe",a="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM200 344V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H248v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z";t.definition={prefix:"fas",iconName:n,icon:[448,512,i,o,a]},t.faSquarePlus=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=i,t.unicode=o,t.svgPathData=a,t.aliases=i},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(3),o=r(5),a=r(46),s=r(68),l=r(0);const c=e=>{const t=Object(o.useComponentContext)(),{HTMLContent:r,embedTitle:i,showDivider:c,underlineType:u,level:d=4}=t.customFields,f=parseInt(d,10),{shouldBeStatic:h=!1,className:p=""}=e,b=Object(n.useRef)();return Object(n.useEffect)((()=>{h&&"undefined"==typeof window||Object(a.d)(r,b)})),h||"undefined"!=typeof window?Object(l.jsxs)(l.Fragment,{children:[i?Object(l.jsx)(s.a,{level:f,underlineType:u,marginBottom:1,showDivider:c,children:i}):null,Object(l.jsx)("div",{className:`${p} mb-norm`,ref:b,children:Object(l.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})})]}):null};c.propTypes={customFields:i.shape({embedTitle:i.string,level:i.oneOf([1,2,3,4,5]).tag({name:"Heading Level",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4}),showDivider:i.boolean.tag({name:"Show Divider",label:"Show Divider",defaultValue:!0}),underlineType:i.oneOf(["regular","bold"]).tag({name:"Header Divider Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title"}),HTMLContent:i.text.tag({label:"EmbedCode"}).isRequired}).isRequired,className:i.string,shouldBeStatic:i.bool},t.default=c},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(2),o=r(33),a=r(0);const s={small:{width:"$8",padding:"$3"},medium:{width:"$16",padding:"$3"},large:{width:"$20",padding:"$4"},width:"$8",padding:"$3"},l={2:"$5",3:"$4",4:"$3",5:"$2"},c={black:"$black.500",green:"$green.500",blue:"$blue.500",red:"$red.500",gray:"$gray500"},u={borderWidth:"$4",borderStyle:"$solid",blue:{color:"$blue.500"},black:{color:"$black.500"},red:{color:"$red.500"},gray:{color:"$gray.500"},orange:{color:"$orange.500"},green:{color:"$green.500"}},d={white:"$white",blue:"$blue.500",red:"$red.500",gray:"$gray.500",default:"$black.500"},f={circle:"$full",square:"$rg"},h=({customFields:{linkUrl:e="",linkLabel:t="",level:r=4,labelColor:n="black",linkAlign:h="center",buttonSize:p="small",iconCustom:b=null,iconFA:m=null,buttonColor:g="red",buttonShape:v="circle",linkRel:y=!1}})=>{var w,O,j,x,_,S,E,k,C,P,M;const $=parseInt(r,10),T=(null===(w=s[p])||void 0===w?void 0:w.width)||"$8";
2return Object(a.jsxs)(i.E,{className:"icon-nav",gap:"$3",sx:{textAlign:h,alignItems:"center"},children:[e&&b&&Object(a.jsx)(i.t,{href:e,rel:y&&"nofollow",sx:{borderRadius:f[v]||"$full",padding:(null===(O=s[p])||void 0===O?void 0:O.padding)||"$3",backgroundColor:(null===(j=u[g])||void 0===j?void 0:j.color)||"$red.500",borderWidth:u.borderWidth,borderStyle:u.borderStyle,borderColor:(null===(x=u[g])||void 0===x?void 0:x.color)||"$red.500",color:"$white",".cls-1":{fill:"$white"},"&:hover":{backgroundColor:"$white",color:(null===(_=u[g])||void 0===_?void 0:_.color)||"$red.500",".cls-1":{fill:(null===(S=u[g])||void 0===S?void 0:S.color)||"$red.500"}}},children:Object(a.jsx)(o.a,{url:b,width:T,height:T,alt:t})}),e&&m&&Object(a.jsx)(i.t,{href:e,rel:y&&"nofollow",sx:{borderRadius:f[v]||"$full",padding:(null===(E=s[p])||void 0===E?void 0:E.padding)||"$3",backgroundColor:(null===(k=u[g])||void 0===k?void 0:k.color)||"$red.500",borderWidth:u.borderWidth,borderStyle:u.borderStyle,borderColor:(null===(C=u[g])||void 0===C?void 0:C.color)||"$red.500",color:"$white","& .svg-inline--fa":{width:"$full",height:"$full"},".cls-1":{fill:"$white"},"&:hover":{backgroundColor:"$white",color:(null===(P=u[g])||void 0===P?void 0:P.color)||"$red.500",".cls-1":{fill:(null===(M=u[g])||void 0===M?void 0:M.color)||"$red.500"}}},children:Object(a.jsx)(i.e,{sx:{width:T,height:T},className:"transition-300",dangerouslySetInnerHTML:{__html:m}})}),e&&t&&Object(a.jsx)(i.q,{level:$,sx:{color:d[n],fontSize:l[$]},children:Object(a.jsx)(i.t,{href:e,rel:y&&"nofollow",textColor:c[n],children:t})})]})};h.propTypes={customFields:n.shape({divider:n.label.tag({label:"Icon Navigation"}),linkLabel:n.string.tag({name:"Link Label",description:"Button display name"}).isRequired,linkUrl:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal."}).isRequired,linkRel:n.boolean.tag({defaultValue:!1,name:"External Link?",description:"Check this box if this link is outside of your site. "}),iconCustom:n.string.tag({name:"Custom Icon URL",description:"SVG only. See documentation for further instructions."}),iconFA:n.string.tag({name:"Font Awesome SVG Code",description:"See documentation for instructions."}),level:n.oneOf([2,3,4,5]).tag({labels:{2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4,group:"Label Styling Options"}),labelColor:n.oneOf(["black","green","blue","red","gray"]).tag({name:"Link Label Color",labels:{black:"Black",green:"Green",blue:"Blue",red:"Red",gray:"Gray"},defaultValue:"black",group:"Label Styling Options"}),linkAlign:n.oneOf(["center","right","left"]).tag({name:"Link Label Alignment",labels:{center:"Center",right:"Right",left:"Left"},defaultValue:"center",group:"Label Styling Options"}),buttonSize:n.oneOf(["small","medium","large"]).tag({name:"Button Sizing",labels:{small:"Small",medium:"Medium",large:"Large"},defaultValue:"small",group:"Button Styling Options"}),buttonShape:n.oneOf(["circle","square"]).tag({name:"Button Shape",labels:{circle:"Circle",square:"Square"},defaultValue:"circle",group:"Button Styling Options"}),buttonColor:n.oneOf(["blue","black","red","gray","orange","green"]).tag({name:"Button Color",labels:{blue:"Blue",black:"Black",red:"Red",gray:"Gray",orange:"Orange",green:"Green"},defaultValue:"red",group:"Button Styling Options"})})},t.default=h},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(5),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=()=>{const e=Object(i.useComponentContext)(),{customFields:{linkColor:t="1",linkWeight:r="2",linkAlign:n="3",linkSize:a="1",bgColor:l=null,borderColor:c="1",linkWidth:u=null,alignment:d="1",logoImg:f=null,logoLink:h=null,logoWidth:p=null,linkOneLink:b="",linkOneLabel:m="",linkOneRel:g=!1,linkTwoLink:v=null,linkTwoLabel:y=null,linkTwoRel:w=!1,linkThreeLink:O=null,linkThreeLabel:j=null,linkThreeRel:x=!1,linkFourLink:_=null,linkFourLabel:S=null,linkFourRel:E=!1,linkFiveLink:k=null,linkFiveLabel:C=null,linkFiveRel:P=!1}={}}=e;let M,$,T,I,A,R;switch(t){case"2":M="link white";break;case"3":M="link blue";break;case"4":M="link red";break;case"5":M="link gray";break;default:M="link default"}switch(n){case"1":$="text_left";break;case"2":$="text_right";break;default:$="text_center"}switch(r){case"1":T="font_light";break;case"2":default:T="font_regular";break;case"3":T="font_medium";break;case"4":T="font_semibold";break;case"5":T="font_bold"}switch(a){case"1":default:I="1rem";break;case"2":I="1.125rem";break;case"3":I="1.32rem";break;case"4":I="1.5rem"}switch(c){case"1":default:A="";break;case"2":A="border_white";break;case"3":A="border_gray"}switch(d){case"1":default:R="justify_start";break;case"2":R="justify_space_around";break;case"3":R="justify_space_evenly";break;case"4":R="justify_space_between";break;case"5":R="justify_center"}const D=I?{fontSize:I}:{},L=u?{width:u}:{},N=p?{width:p}:{},B=l?{backgroundColor:l}:{},z=e=>e?"nofollow":"",F=(e,t,r)=>e&&t?Object(o.jsx)("a",{className:`${M} ${$} ${A}`,style:s({},B,{},L,{},D),href:e,rel:z(r),children:t}):null;return Object(o.jsxs)("div",{className:`uppercase | int_nav | display_flex | font_gibson |\n        ${T} | ${R} | ${f?"align_items_center":""} | mb-norm`,children:[f?h?Object(o.jsx)("div",{className:"intLogo",style:N,children:Object(o.jsx)("a",{href:h,className:"display_block",children:Object(o.jsx)("img",{src:f,alt:"logo"})})}):Object(o.jsx)("div",{className:"intLogo",style:N,children:Object(o.jsx)("img",{src:f,alt:"logo"})}):null,F(b,m,g),F(v,y,w),F(O,j,x),F(_,S,E),F(k,C,P)]})};c.propTypes={customFields:n.shape({warning:n.label.tag({label:"WARNING: This feature is being deprecated and should not be used. Replace any foun
2d installations with either the Global Page Button or Global Icon Navigation."}),divider:n.label.tag({label:"Internal Page Navigation"}),linkOneLabel:n.string.tag({name:"Link Label",description:"This will appear as the first button.",group:"Link One"}).isRequired,linkOneLink:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal.",group:"Link One"}).isRequired,linkOneRel:n.bool.tag({name:"Is this link external?",description:"You must check this box if the link is external.",group:"Link One"}),linkTwoLabel:n.string.tag({name:"Link Label",description:"This will appear as the second button.",group:"Link Two"}),linkTwoLink:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal.",group:"Link Two"}),linkTwoRel:n.bool.tag({name:"Is this link external?",description:"You must check this box if the link is external.",group:"Link Two"}),linkThreeLabel:n.string.tag({name:"Link Label",description:"This will appear as the third button.",group:"Link Three"}),linkThreeLink:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal.",group:"Link Three"}),linkThreeRel:n.bool.tag({name:"Is this link external?",description:"You must check this box if the link is external.",group:"Link Three"}),linkFourLabel:n.string.tag({name:"Link Label",description:"This will appear as the fourth button.",group:"Link Four"}),linkFourLink:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal.",group:"Link Four"}),linkFourRel:n.bool.tag({name:"Is this link external?",description:"You must check this box if the link is external.",group:"Link Four"}),linkFiveLabel:n.string.tag({name:"Link Label",description:"This will appear as the fifth button.",group:"Link Five"}),linkFiveLink:n.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal.",group:"Link Five"}),linkFiveRel:n.bool.tag({name:"Is this link external?",description:"You must check this box if the link is external.",group:"Link Five"}),logoImg:n.string.tag({name:"Logo Image",description:"This will appear before the first button.",group:"Linked Logo (Optional)"}),logoLink:n.string.tag({name:"Logo Link (Optional)",description:"This will appear before the first button.",group:"Linked Logo (Optional)"}),logoWidth:n.string.tag({name:"Logo Width (Optional)",description:"Adjust the logo's width.",group:"Linked Logo (Optional)"}),linkColor:n.oneOf(["1","2","3","4","5"]).tag({name:"Link Text Color",description:"Adjust the color of your Nav items",labels:{1:"Black",2:"White",3:"Blue",4:"Red",5:"Gray"},defaultValue:"1",group:"Link Options"}),linkWeight:n.oneOf(["1","2","3","4","5"]).tag({name:"Link Font Weight",description:"Adjust the font weight of your Nav items",labels:{1:"Light",2:"Regular",3:"Medium",4:"Semi-Bold",5:"Bold"},defaultValue:"2",group:"Link Options"}),linkSize:n.oneOf(["1","2","3","4"]).tag({name:"Link Font Size",description:"Adjust the font size of your Nav items",labels:{1:"Normal (16px)",2:"Medium (18px)",3:"Large (21px)",4:"X-Large (24px)"},defaultValue:"1",group:"Link Options"}),linkAlign:n.oneOf(["1","2","3"]).tag({name:"Link Text Alignment",description:"Adjust the text alignment of your Nav items",labels:{1:"Left",2:"Right",3:"Center"},defaultValue:"3",group:"Link Options"}),bgColor:n.string.tag({name:"Background Color Hex Code (optional)",description:"Enter a hex code to set the background color of the buttons",group:"Link Options"}),borderColor:n.oneOf(["1","2","3"]).tag({name:"Button Border",description:"Select a border color",labels:{1:"None",2:"White",3:"Gray"},defaultValue:"1",group:"Link Options"}),linkWidth:n.string.tag({name:"Specify Button Width? (optional)",description:"Enter the width CSS you'd like to restrict the buttons to",group:"Link Options"}),alignment:n.oneOf(["1","2","3","4","5"]).tag({name:"Button Justification",description:"Select which way the buttons align to their container",labels:{1:"Start",2:"Space Around",3:"Space Evenly",4:"Space Between",5:"Center"},defaultValue:"1",group:"Link Options"})})},t.default=c},function(e,t,r){"use strict";const n=r(29),i=r(1),o=({id:e,persistent:t,type:r})=>i.createElement("div",{id:`${o.prefix}:${e}`,style:{display:"none"},"data-fusion-component":e,"data-persistent-entry":t});o.prefix="fusion-static-enter";class a extends i.PureComponent{render(){return i.createElement("div",{id:`${a.prefix}:${this.props.id}`,style:{display:"none"},ref:this.props.setRef,"data-fusion-component":this.props.id,"data-persistent-exit":this.props.persistent})}}a.prefix="fusion-static-exit";class s extends i.PureComponent{constructor(e){super(e),this.childArray="undefined"==typeof window?[].concat(e.children||[]):[],this.setExitElement=this.setExitElement.bind(this)}componentDidMount(){if(this.exitElement){const e=Fusion.staticElements[this.props.id];if(e&&e.length){const t=this.exitElement.parentElement;e.forEach((e=>{const r=this.props.htmlOnly?e.cloneNode(!0):e;t.insertBefore(r,this.exitElement)}))}}}setExitElement(e){this.exitElement=e}render(){return Fusion.isAdmin?this.props?i.createElement(i.Fragment,{},[].concat(this.props.children||[])):null:i.createElement(i.Fragment,{},[i.createElement(o,{id:this.props.id,key:o.prefix,persistent:this.props.persistent}),...this.childArray,i.createElement(a,{id:this.props.id,key:a.prefix,setRef:this.setExitElement,persistent:this.props.persistent})])}}s.propTypes={id:n.string.isRequired};const{HOCWrapper:l}=r(563);e.exports=l(s),e.exports.EntryComponent=o,e.exports.ExitComponent=a},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.HOCWrapper=void 0;const a=r(1),s=e=>e.displayName||e.name||"Component";t.HOCWrapper=e=>(t,...r)=>{if(t instanceof Function){const r=t,n=t=>a.createElement(e,i({},t,{children:r}));for(const e in r)n[e]=r[e];return n.displayName=`Fusion${s(e)}(${s(r)})`,n.propTypes=i({},r.propTypes||{},{},e.propTypes||{}),n}{const n=t;return a.createElement(e,i({},n,{children:n.render||n.children||r}))}}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(3),o=r(10),a=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({customFields:{iconSVG:e,iconColor:t="$teal.50",iconBg:r="$teal.500",cardBgColor:i="$teal.100",cardBorderColor:o="$teal.200",headerText:s="Header Text",mobileHeadingSize:c="$1",tabletHeadingSize:u="$2",desktopHeadingSize:d="$4",headingWeight:f="$medium",headingColor:h="$teal.500",descriptionText:p="Description Text",mobileDescriptionSize:b="$0",tabletDescriptionSize:m,desktopDescriptionSize:g,descriptionWeight:v="$normal",descriptionColor:y="$teal.600",link:w,linkHover:O=!0,newTab:j=!0,externalLink:x=!1}})=>Object(a.jsx)(n.t,{as:w?"a":"div",href:w,className:"transition-100",rel:x?"nofollow":"",target:j?"_blank":"_self",sx:l({padding:["$3",null,"$5"],bg:i,border:"1px solid",borderColor:o,borderRadius:"$lg",boxShadow:"$md",willChange:"transform"},O?{"&:hover":{transform:"scale(1.05)",boxShadow:"$lg"}}:{}),children:Object(a.jsxs)(n.E,{gap:"$3",sx:{alignItems:"center",justifyContent:"center"},children:[e?Object(a.jsx)(n.e,{dangerouslySetInnerHTML:{__html:e},sx:{p:"$3",bg:r,color:t,fontSize:["$5",null,"$7"],display:"inline-flex",borderRadius:"$xl",justifyContent:"center",aspectRatio:"1"}}):null,Object(a.jsxs)(n.E,{gap:"$1",sx:{textAlign:"center"},children:[Object(a.jsx)(n.q,{sx:{fontFamily:"$gibson",fontSize:[c,null,u,d],fontWeight:f,color:h},children:s}),Object(a.jsx)(n.M,{sx:{fontSize:[b,m,g],color:y,fontWeight:v},children:p})]})]})});u.propTypes={customFields:i.shape({headerText:i.string.tag({name:"Heading Text"}),descriptionText:i.string.tag({name:"Description Text"}),link:i.string.tag({name:"Link URL"}),newTab:i.bool.tag({name:"Open link in new tab?",defaultValue:!0}),externalLink:i.bool.tag({name:"External Url?",description:"Does this URL go outside of your website?",defaultValue:!1}),cardBorderColor:Object(o.a)({name:"Card Border Color",defaultValue:"$teal.200",group:"Card Options"}
2),cardBgColor:Object(o.a)({name:"Card Background Color",defaultValue:"$teal.100",group:"Card Options"}),iconSVG:i.string.tag({name:"FontAwesome SVG Code",description:"See documentation for instructions.",group:"Icon Options"}),linkHover:i.bool.tag({name:"Link Hover Effect",defaultValue:!0,group:"Icon Options"}),iconColor:Object(o.a)({name:"Icon Color",defaultValue:"$teal.50",group:"Icon Options"}),iconBg:Object(o.a)({name:"Icon Background Color",defaultValue:"$teal.500",group:"Icon Options"}),headingColor:Object(o.a)({name:"Heading Color",defaultValue:"$teal.700",group:"Typography Options"}),headingWeight:Object(o.d)({name:"Heading Weight",defaultValue:"$medium",group:"Typography Options"}),mobileHeadingSize:Object(o.c)({name:"Mobile Headline Size",defaultValue:"$1",group:"Typography Options"}),tabletHeadingSize:Object(o.c)({name:"Tablet Headline Size",defaultValue:null,group:"Typography Options"}),desktopHeadingSize:Object(o.c)({name:"Desktop Headline Size",defaultValue:"$4",group:"Typography Options"}),descriptionColor:Object(o.a)({name:"Description Color",defaultValue:"$teal.600",group:"Typography Options"}),descriptionWeight:Object(o.d)({name:"Description Weight",defaultValue:"$normal",group:"Typography Options"}),mobileDescriptionSize:Object(o.c)({name:"Mobile Description Size",defaultValue:"$0",group:"Typography Options"}),tabletDescriptionSize:Object(o.c)({name:"Tablet Description Size",defaultValue:null,group:"Typography Options"}),desktopDescriptionSize:Object(o.c)({name:"Desktop Description Size",defaultValue:null,group:"Typography Options"})})},t.default=u},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(2),o=r(56),a=r(0);const s=({customFields:{listTitle:e,links:t}})=>{if(!t)return null;const r=[];return Object.keys(t).forEach((e=>{r.push(Object(a.jsx)(i.t,{href:t[e],sx:{fontWeight:"$medium"},children:e},t[e]))})),Object(a.jsxs)(i.E,{gap:"$3",className:"connect font_gibson",children:[e?Object(a.jsx)(o.default,{customFields:{dividerHeaderColor:"$blueGray.900",dividerColor:"$red.500",dividerMobileHeadingSize:"$2",dividerTabletHeadingSize:null,dividerDesktopHeadingSize:"$3",dividerHeadingWeight:"$bold",dividerHeadingContent:e.toUpperCase(),verticalAlignment:"top",horizontalAlignment:"left",dividerHeadingGC:!1,bgColor:"$transparent",dividerHeadingLevel:4}}):null,Object(a.jsx)(i.p,{gap:"$3",sx:{a:{fontSize:"$1",lineHeight:"$normal"}},children:r}),Object(a.jsx)(i.l,{variant:"$gray100"})]})};s.propTypes={customFields:n.shape({listTitle:n.string.tag({name:"List Title"}),links:n.kvp.tag({description:"To add links put the display text in the 'key' field and the url in the 'value' field",name:"Link List"}).isRequired})},t.default=s},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var n=r(1),i=r(12);function o(){return Object(n.useEffect)((()=>{Object(i.g)().then((()=>{const{vf:{$publish:e}={}}=window;e("widgets","mount")}))})),null}},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(26),o=r(5),a=r(232),s=r(46),l=r(14),c=r(54),u=r(0);const d=e=>{const t=Object(o.useAppContext)(),r=Object(o.useComponentContext)(),{globalContent:n,globalContentConfig:{source:d,query:{author_id:f=null}={}}={},arcSite:h,isAdmin:p}=t,{customFields:{startFrom:b,collectionId:m="",topicEntity:g="",tagName:v="",sectionName:y="",useGlobalContent:w=!1,authorId:O="",stories:j=!0,videos:x=!1,galleries:_=!1}}=e;let S=null;const E=[w&&"author-by-id"!==d,null!==m&&""!==m,null!==g&&""!==g,!w&&(null!==v&&""!==v||null!==y&&""!==y||null!==O&&""!==O)||w&&"author-by-id"===d],k=E.filter((e=>e));if(p&&1!==k.length){const e=0===k.length?"Choose a content source for this story list":"Choose only one content source for this story";return Object(u.jsxs)("section",{style:{background:"#ff5555",color:"fff",padding:"0 2rem",lineHeight:"3rem"},className:"scGrid full-width",children:[Object(u.jsx)(c.a,{level:3,children:"Marquee: "}),Object(u.jsx)("p",{children:e})]})}const C=["globalContent","0PB_CollectionStoryCard","0PB_TroveStoryCard","0PB_ContentStoryCard"][E.indexOf(!0)];let P=null,M=null;switch(C){case"0PB_CollectionStoryCard":P={collection_id:m},M=`collection:${m}`;break;case"0PB_TroveStoryCard":P={entity:g,stories:j,videos:x,galleries:_},M=`topic:${g}`;break;case"0PB_ContentStoryCard":P={stories:j,videos:x,galleries:_},y&&(P.section=y),v&&(P.tag=v),O?P.authorId=O.replace("%20"," "):w&&f&&(P.authorId=f.replace("%20"," ")),M=w&&f?"globalContent":`feed:${y||""}:${v||""}:${O||""}`;break;case"globalContent":M="globalContent";break;default:P=null}const $=b?b-1:Object(s.b)(t,r,M);if(P&&(P.from=$),"globalContent"===C)S=n.content_elements;else{const e=Object(i.useContent)({source:C,query:P});S=e&&"content_elements"in e?e.content_elements:null}if(!S)return null;if("refreshNeeded"===$)return Object(u.jsxs)("section",{style:{background:"#ff5555",color:"fff",padding:"0 2rem",lineHeight:"3rem"}
2,className:"scGrid full-width",children:[Object(u.jsx)(c.a,{level:3,children:"MARQUEE:"}),Object(u.jsx)("p",{children:"Refresh to see content"})]});const T=S.slice($,$+3).map(((e,r)=>{const n="promo_image"in e?e.promo_image:Object(s.c)(e),i="headlines"in e?e.headlines.basic:null,o="description"in e?e.description.basic:null,c=Object(l.m)(e.display_date,e.publish_date)?e.publish_date:e.display_date;let d=!0;r>0&&(d=!1),n&&(n.sizeProps={maxWidth:768});const{websites:f={}}=e,p=h in f?f[h]:{},{website_url:b}=p,m=b||e.canonical_url;return Object(u.jsx)(a.a,{articleLink:m,promo:n,description:o,headline:i,isHero:d,displayDate:c,showCount:t.isAdmin?$+r+1:null,showSource:t.isAdmin?M:null,gaAction:"Marquee",gaValue:r},e._id)}));return Object(u.jsxs)("section",{className:"marquee display_flex column full-width",children:[Object(u.jsx)("section",{className:"primary",children:T[0]}),Object(u.jsx)("section",{className:"secondary",children:T[1]}),Object(u.jsx)("section",{className:"third",children:T[2]})]})};d.propTypes={customFields:n.shape({sourceLabel:n.label.tag({label:"Get Stories From:",description:"Choose one of the following options to specify a content source for the stories that feed this story list."}),useGlobalContent:n.bool.tag({label:"GlobalContent",description:"Use this page's GlobalContent source (set below) to populate the stories from this collection"}),collectionId:n.string.tag({name:"Collection ID",description:"Enter a collection ID from WebSked use populate this feature with stories from the collection"}),topicEntity:n.string.tag({name:"Topic",description:"Enter a topic name to populate this feature with stories from the topics feed (will contain a mix of first and third party stories)"}),tagName:n.string.tag({name:"Article Tag",description:"Enter an article tag to populate this feature with articles containing that tag.  (Can be used in combination with a section name)"}),authorId:n.string.tag({name:"Author ID",description:"Enter an author ID to populate this feature with articles written by that author.  (Can be used in combination with a section name and/or article tag)"}),sectionName:n.string.tag({name:"Section Name",description:"Enter an section name to populate this feature with articles from that site section.  (Can be used in combination with a article tag)"}),stories:n.boolean.tag({name:"Include Stories?",defaultValue:!0}),videos:n.boolean.tag({name:"Include Videos?",defaultValue:!1}),galleries:n.boolean.tag({name:"Include Galleries?",defaultValue:!1}),divider:n.label.tag({label:"--------------------------------"}),configLabel:n.label.tag({label:"Configuration Options"}),startFrom:n.number.tag({name:"Start From (optional)",description:"If you want to start from a specific position in the story feed enter the startng position here."})}).isRequired},t.default=d},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r.n(n),o=r(26),a=r(5),s=r(2),l=r(0);const c=({customFields:{linkUrl:e="",linkLabel:t="",linkLabelTwo:r=null,labelColor:n="$text.500",linkAlign:i="center",linkRel:c=!1,buttonRound:u=!1,hide:d=!1,bgImage:f,bgSize:h,paddingY:p="$3",paddingX:b="$3",bColor:m="$white",labelBold:g="$regular",labelSize:v="$3",labelHeight:y="$none",newTab:w=!0}={}})=>{const{isAdmin:O}=Object(a.useAppContext)(),j=Object(o.useContent)(f?{source:"photo-by-id",query:{photoId:f}}:void 0);if((!t||!e)&&O)return Object(l.jsx)(s.e,{variant:"$center",sx:{height:"$full",width:"$full",bg:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",borderRadius:"$md"},children:t&&e?"":"Please configure all required custom fields. You may need to refresh between changes."});const x=u?"$rg":"$none",_=h||"auto";return Object(l.jsx)(s.e,{as:"div",bg:m,sx:{backgroundSize:_,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:f?`url('${j.url}'`:void 0},borderRadius:x,children:e&&t&&Object(l.jsx)(s.E,{className:"height_full width_full",children:Object(l.jsxs)(s.t,{href:e,py:p,px:b,justifyContent:"center",sx:{display:d?"none":void 0,height:"$full",width:"$full"},rel:c?"nofollow":void 0,textColor:n,target:w?"_blank":"_self",children:[Object(l.jsx)(s.M,{sx:{fontSize:v,fontWeight:g,lineHeight:y,textAlign:i},children:t}),Object(l.jsx)(s.M,{sx:{fontSize:v,fontWeight:g,lineHeight:y,textAlign:i},children:r})]})})})};c.propTypes={customFields:i.a.shape({divider:i.a.label.tag({label:"Icon Navigation"}),linkLabel:i.a.string.tag({name:"Button Text",description:"Button text first row"}).isRequired,linkLabelTwo:i.a.string.tag({name:"Button Text Second Line",description:"Button text second row"}),linkUrl:i.a.string.tag({name:"Link Destination",description:"Include the full URL if external, include the # if internal."}).isRequired,linkRel:i.a.boolean.tag({defaultValue:!1,name:"External Link?",description:"Check this box if this link is outside of your site. "}),newTab:i.a.boolean.tag({name:"Open link in new tab?",defaultValue:!0}),labelColor:i.a.string.tag({name:"Label Color",defaultValue:"$text.500",group:"Label Styling Options",description:"Use a color token."}),labelBold:i.a.oneOf(["$light","$regular","$medium","$semibold","$bold","$black"]).tag({name:"Font Weight",labels:{$light:"Light",$regular:"Normal",$medium:"Medium",$semibold:"SemiBold",$bold:"Bold",$black:"Heavy"},defaultValue:"$regular",description:"Adjusts the font weight on the first button label.\n        As designed, it will not apply to the second optional button label",group:"Label Styling Options"}),labelSize:i.a.oneOf(["$2","$3","$4","$5","$6"]).tag({name:"Font Size",labels:{$2:"Small",$3:"Normal",$4:"Medium",$5:"Large",$6:"X-Large"},defaultValue:"$3",description:"Adjusts the font size.",group:"Label Styling Options"}
2),labelHeight:i.a.oneOf(["$none","$tight","$snug","$normal","$relaxed","$loose"]).tag({name:"Line Height",labels:{$none:"1",$tight:"1.25",$snug:"1.375",$normal:"1.5",$relaxed:"1.625",$loose:"2"},defaultValue:"$none",description:"Adjusts the line height of both labels.",group:"Label Styling Options"}),linkAlign:i.a.oneOf(["center","right","left"]).tag({name:"Label Alignment",labels:{center:"Center",right:"Right",left:"Left"},defaultValue:"center",group:"Label Styling Options"}),bgImage:i.a.string.tag({name:"Background Image ID (optional)",description:"Use an image for your button.\n        This overrides button color selection. Use the image ID from Photo Center",group:"Button Styling Options"}),bgSize:i.a.string.tag({name:"Background Image Sizing (optional)",description:"Use Background-size CSS properties in this field. Consult documentation.",group:"Button Styling Options"}),bColor:i.a.string.tag({name:"Button Color",description:"Use a color token. This field is required even if you're using an image.",defaultValue:"$white",group:"Button Styling Options"}).isRequired,paddingY:i.a.oneOf(["$0","$1","$2","$3","$4","$5","$6","$7","$8"]).tag({name:"Padding: Top + Bottom",labels:{$0:"None",$1:"4px",$2:"8px",$3:"16px",$4:"24px",$5:"32px",$6:"40px",$7:"48px",$8:"64px"},description:"This alters the size of your button, as does the amount of label text.",defaultValue:"$3",group:"Button Styling Options"}),paddingX:i.a.oneOf(["$0","$1","$2","$3","$4","$5","$6","$7","$8"]).tag({name:"Padding: Sides",labels:{$0:"None",$1:"4px",$2:"8px",$3:"16px",$4:"24px",$5:"32px",$6:"40px",$7:"48px",$8:"64px"},description:"This alters the size of your button, as does the amount of label text.",defaultValue:"$3",group:"Button Styling Options"}),buttonRound:i.a.boolean.tag({defaultValue:!1,name:"Rounded Corners?",description:"Check this box for rounded corners on your buttons.",group:"Button Styling Options"}),hide:i.a.boolean.tag({defaultValue:!1,name:"Hide the button text?",description:"If you're using an image for your button\n        and do not want the button text to show, check this box",group:"Label Styling Options"})})},t.default=c},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(3),o=r(1),a=r(516),s=r.n(a),l=r(12),c=r(0);const u=Object(o.memo)((({minWidth:e,minHeight:t})=>Object(c.jsx)(n.e,{bg:"$blueGray.100",sx:{minWidth:e,minHeight:t}})));u.displayName="Placeholder";const d=({customFields:{divId:e,throwEvent:t,lazyLoad:r,minWidth:i,minHeight:a}={}})=>{if(Object(o.useEffect)((()=>{t&&e&&Object(l.c)(e)}),[t,e]),!e)return null;const d=Object(c.jsx)(n.e,{id:e,sx:{minWidth:i,minHeight:a}});return r?Object(c.jsx)(s.a,{height:a,placeholder:Object(c.jsx)(u,{minHeight:a,minWidth:i}),children:d}):d};d.propTypes={customFields:i.shape({divId:i.text.tag({name:"DIV ID"}),throwEvent:i.boolean.tag({name:"Throw event on load"}),lazyLoad:i.boolean.tag({name:"Lazy Load Div"}),minWidth:i.string.tag({name:"Min Width"}),minHeight:i.string.tag({name:"Min Height"})})},t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,r,n){n=n||!1,e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on"+t,(function(t){r.call(e,t||window.event)}))},t.off=function(e,t,r,n){n=n||!1,e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on"+t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,r=/(scroll|auto)/,n=e;n;){if(!n.parentNode)return e.ownerDocument||document.documentElement;var i=window.getComputedStyle(n),o=i.position,a=i.overflow,s=i["overflow-x"],l=i["overflow-y"];if("static"===o&&t)n=n.parentNode;else{if(r.test(a)&&r.test(s)&&r.test(l))return n;n=n.parentNode}}return e.ownerDocument||e.documentElement||document.documentElement}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=function l(){var c=+new Date-a;c<t&&c>=0?n=setTimeout(l,t-c):(n=null,r||(s=e.apply(o,i),n||(o=null,i=null)))};return function(){o=this,i=arguments,a=+new Date;var c=r&&!n;return n||(n=setTimeout(l,t)),c&&(s=e.apply(o,i),o=null,i=null),s}}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n,i;return t||(t=250),function(){var o=r||this,a=+new Date,s=arguments;n&&a<n+t?(clearTimeout(i),i=setTimeout((function(){n=a,e.apply(o,s)}),t)):(n=a,e.apply(o,s))}}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(26),o=r(5),a=r(3),s=r(1),l=r(33),c=r(0);const u=()=>"undefined"==typeof window?null:window.innerWidth,d=e=>{var t;return e?null===(t=e.match(/^https:\/\/.*\/(public|gmg|sandbox.gmg)\/([A-Z0-9]+)\.(png|jpeg|jpg|gif)$/))||void 0===t?void 0:t[2]:"noId"},f=({customFields:{mImageUrl:e,dImageUrl:t,linkUrl:r,altText:a,placeholder:f="$blueGray.100"}={}})=>{const{isAdmin:h}=Object(o.useAppContext)(),p=Object(s.useMemo)((()=>(null==t?void 0:t.includes("https://"))?d(t):t),[t]),b=Object(s.useMemo)((()=>(null==e?void 0:e.includes("https://"))?d(e):e),[e]),m=Object(i.useContent)(p&&"noId"!==p?{source:"photo-by-id",query:{photoId:p}}:void 0),g=Object(i.useContent)(b&&"noId"!==b?{source:"photo-by-id",query:{photoId:b}}:void 0),[v,y]=Object(s.useState)((()=>u()));return Object(s.useEffect)((()=>{const e=()=>{y(u())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),m&&g||!h?g&&m?v?Object(c.jsxs)(c.Fragment,{children:[h&&!a&&Object(c.jsx)(n.n,{placeContent:"center",borderRadius:"$md",sx:{height:"$full",width:"$full",bg:"$red.100",color:"$red.900",border:"1px solid",borderColor:"$red.300",py:"$2",px:"$4",borderRadius:"$md"},children:"Please provide alt-text for the image"}),g.url===m.url&&h&&Object(c.jsx)(n.n,{placeContent:"center",borderRadius:"$md",sx:{height:"$full",width:"$full",bg:"$red.100",color:"$red.900",border:"1px solid",borderColor:"$red.300",py:"$2",px:"$4",borderRadius:"$md"},children:"It is not recommended to use the same image for both mobile and desktop"}),r?Object(c.jsx)("a",{href:r,className:"display_block",children:v>=970?Object(c.jsx)(l.a,{url:m.url,alt:a||m.caption||"No description avaliable",width:m.width,height:m.height,sx:{borderRadius:"$md"}}):Object(c.jsx)(l.a,{url:g.url,alt:a||g.caption||"No description avaliable",width:g.width,height:g.height,sx:{borderRadius:"$md"}})}):Object(c.jsx)(c.Fragment,{children:v>=970?Object(c.jsx)(l.a,{url:m.url,alt:a||m.caption||"No description avaliable",width:m.width,height:m.height,sx:{borderRadius:"$md"}}):Object(c.jsx)(l.a,{url:g.url,alt:a||g.caption||"No description avaliable",width:g.width,height:g.height,sx:{borderRadius:"$md"}})})]}):Object(c.jsx)(n.n,{placeContent:"center",backgroundColor:f,width:"$full",height:"$0",borderRadius:"$md",sx:{paddingBottom:[`calc(${g.height/g.width} * 100%)`,null,`calc(${m.height/m.width} * 100%)`]}}):null:Object(c.jsx)(n.n,{placeContent:"center",borderRadius:"$md",sx:{height:"$full",width:"$full",bg:"$red.100",color:"$red.900",border:"1px solid",borderColor:"$red.300",py:"$2",px:"$4",borderRadius:"$md"},children:e||t?e?t?"Fetching image...":"A desktop image is required":"A mobile image is required":"Please specify image URLs"})};f.propTypes={customFields:a.shape({mImageUrl:a.string.tag({name:"Mobile Image ID or URL",description:"The ID or URL of the mobile image. 400x150 is recommended."}).isRequired,dImageUrl:a.string.tag({name:"Desktop Image ID or URL",description:"The ID or URL of the desktop image. 1200x150 is recommended."}).isRequired,altText:a.string.tag({name:"Image Alt Text",description:"Describe what the image says or is about. Users with visual impairments will rely on this text to understand the image."}).isRequired,linkUrl:a.string.tag({name:"Destination URL"}),placeholder:a.string.tag({name:"Placeholder Color",defaultValue:"$blueGray.100"})})},t.default=f},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(2),o=r(0);const a=({customFields:{textContent:e}})=>Object(o.jsx)(i.M,{as:i.E,gap:"$3",className:"rText",variant:"$base",innerContent:e,textColor:"$blueGray.700",display:"block",sx:{"&.rText":{"& :is(h1, h2, h3, h4, h5, h6)":{color:"$blueGray.900",fontSize:"$3",mt:"$5","& + ul":{mt:"$3"}},"& :is(p)":{mt:"$3",lineHeight:"$loose"},"& :is(ul)":{my:"$5","& > li":{lineHeight:"$loose"}},"& :first-child":{mt:"0"}}}});a.propTypes={customFields:n.shape({textContent:n.richtext.tag({name:"Text Content",formPlugin:"wysiwyg-editor"}).isRequired}).isRequired},t.default=a},function(e,t,r){"use strict";r.r(t);var n=r(5),i=r(3),o=r(54),a=r(68),s=r(0);const l=({customFields:{content:e,showDivider:t=!0,underlineType:r="bold",level:i=4,isPageHeader:l,showHeadline:c=!0,supportText:u,center:d=!1}})=>{const{globalContent:{tag:f,section:h}={}}=Object(n.useAppContext)(),p=c?f?f.replace(/_/g," "):h:void 0;let b="";d&&(b="text_center");const m=u?Object(s.jsx)("div",{dangerouslySetInnerHTML:{__html:u},className:"rText mt-norm"}):null,g=parseInt(i,10);return c?Object(s.jsxs)("section",{className:"pghd full-width",children:[Object(s.jsx)(a.a,{level:l?1:g,isPageHeader:l,showDivider:t,underlineType:r,textAlign:b,children:e||p}),m]}):Object(s.jsxs)("section",{className:"pghd full-width display_none",children:[e||p?Object(s.jsx)(o.a,{level:g,className:"uppercase",children:e||p}):null,m]})};l.propTypes={customFields:i.shape({content:i.string.tag({name:"Heading Text",label:"Heading Text"}),level:i.oneOf([1,2,3,4,5]).tag({name:"Heading Level",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4}),isPageHeader:i.boolean.tag({name:"Page Title (H1)",label:"Page H1 (Check if this will be used to title the page)",description:"This overrides the heading level & sizing\n        to provide proper sematics when titling the page",defaultValue:!1}),showHeadline:i.boolean.tag({name:"Show Headline",label:"Show Headline",defaultValue:!0}),showDivider:i.boolean.tag({name:"Show Divider",label:"Show Divider",defaultValue:!0}),underlineType:i.oneOf(["regular","bold"]).tag({name:"Header Divider Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title"}),supportText:i.richtext.tag({name:"Supporting Text",label:"Supporting Text",formPlugin:"wysiwyg-editor"}),center:i.boolean.tag({name:"Center Text",label:"Center Text",group:"Additional Options",defaultValue:!1})})},t.default=l},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(2),o=r(120),a=r(216),s=r(132),l=r(0);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const h=e=>{let{icon:t,link:r,title:n,sx:o}=e,a=f(e,["icon","link","title","sx"]);return Object(l.jsxs)(i.e,{as:"a",href:r,target:"_blank",rel:"noopener noreferrer",children:[Object(l.jsx)(i.r,u({icon:t,title:n,sx:u({display:"flex"},o)},a)),Object(l.jsx)(i.O,{children:n})]})},p={facebook:o.faFacebookSquare,twitter:a.faSquareXTwitter,instagram:s.faInstagram},b={1:"$black.900",2:"$white",3:"$blue.600",4:"$red.500",5:"$blueGray.500"},m={1:"$5",2:"$7",3:"$8"},g={1:"flex-start",2:"center",3:"flex-end"},v=({customFields:{socFacebook:e,socTwitter:t,socInstagram:r,socialSize:n=2,socialColor:o=1,alignment:a=1}})=>Object(l.jsx)(i.E,{gap:"$3",direction:"row",justifyContent:g[a],children:[{link:e,title:"Facebook"},{link:t,title:"Twitter"},{link:r,title:"Instagram"}].map((e=>e.link?Object(l.jsx)(h,{icon:p[e.title.toLowerCase()],link:e.link||"#",title:`Follow on ${e.title}`,textColor:b[o],sx:{fontSize:m[n]}},e.title):null))});v.propTypes={customFields:n.shape({socFacebook:n.string.tag({name:"Facebook link",description:"Enter the full Facebook url."}),socTwitter:n.string.tag({name:"Twitter link",description:"Enter the full Twitter url."}),socInstagram:n.string.tag({name:"Instagram link",description:"Enter the full Instagram url."}),socialSize:n.oneOf([1,2,3]).tag({name:"Icon Size",description:"Select the size of the social icons",labels:{1:"Small",2:"Medium",3:"Large"},defaultValue:2}),socialColor:n.oneOf([1,2,3,4,5]).tag({name:"Icon Color",description:"Select the color of the social icons",labels:{1:"Black",2:"White",3:"Blue",4:"Red",5:"Gray"},defaultValue:1}),alignment:n.oneOf([1,2,3]).tag({name:"Alignment",description:"Adjust the alignment of your icons",labels:{1:"Left",2:"Right",3:"Center"},defaultValue:1})})},t.default=v},function(e,t,r){"use strict";r.r(t);r(1);var n=r(3),i=r(5),o=r(517),a=r.n(o),s=r(150),l=r.n(s),c=r(54),u=r(0);const d=()=>{const e=Object(i.useComponentContext)(),{HTMLContent:t,embedTitle:r}=e.customFields;return Object(u.jsxs)(u.Fragment,{children:[r?Object(u.jsx)(c.a,{level:4,children:r}):null,Object(u.jsx)(a.a,{id:`rawHTML:${l()()}`,children:Object(u.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})]})};d.propTypes={customFields:n.shape({embedTitle:n.text.tag({label:"Embed Title (optional)"}),HTMLContent:n.text.tag({label:"EmbedCode"}).isRequired})},t.default=d},function(e,t,r){"use strict";r.r(t);r(1);var n=r(2),i=r(5),o=r(46),a=r(149),s=r(101),l=r(56),c=r(0);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.default=({id:e})=>{const t=Object(i.useAppContext)(),{globalContent:{content_elements:r,tag:u}={},siteProperties:{siteName:f},arcSite:h,isAdmin:p=!1}=t,b=Object(o.b)(t,{id:e},"globalContent");
2if(p&&"refreshNeeded"===b)return Object(c.jsxs)(n.E,{as:"section",gap:"$2",bg:"$lightBlue.100",textColor:"$lightBlue.900",px:"$4",py:"$2",borderRadius:"$md",sx:{gridColumn:"-1 / 1"},children:[Object(c.jsx)(n.q,{level:3,sx:{fontSize:"$4"},children:"Story List:"}),Object(c.jsx)(n.M,{children:"Refresh to see content"})]});const m={isAdmin:p,arcSite:h,siteName:f,sourceId:"globalContent",amount:9,mobileHeadingSize:"$3",tabletHeadingSize:null,desktopHeadingSize:"$2",mobileDescriptionSize:"$0",tabletDescriptionSize:null,desktopDescriptionSize:"$1",descriptionWeight:null,descriptionColor:"$blueGray.600",descriptionLines:2,headlineLines:3,headingColor:"$blueGray.900",headingWeight:"$bold",metaTitleSize:"$-1",metaTitleColor:"$red.600",metaTitleWeight:"$medium",showDividers:!1,showDescription:!0,showImage:!0,showTime:!0,horizontalScroll:!1,textLocation:"bottom",marquee:!1},g="refreshNeeded"!==b?null==r?void 0:r.slice(b).map(a.getStoryCard,m):void 0;if(!g)return null;let v=m.amount;const y=g.length;for(;v<y;)g.splice(v,0,Object(c.jsx)(s.default,{id:`adafter${g[v].key}`,sx:{gridColumn:"-1 / 1"},customFields:{pos:"AUTO_INCREASE",extraClasses:"autoad"}},`adafter${g[v].key}`)),v+=m.amount+1;return Object(c.jsxs)(n.E,{gap:u?"$3":"$0",className:"storyListWrapper",children:[u?Object(c.jsx)(l.default,{customFields:{dividerHeadingGC:!0,dividerColor:"$red.500",dividerMobileHeadingSize:"$4",dividerDesktopHeadingSize:"$5",dividerHeadingWeight:"$bold",dividerHeaderColor:"$blueGray.900",horizontalAlignment:"left",verticalAlignment:"top",bgColor:"$transparent",dividerHeadingLevel:1}}):null,Object(c.jsx)("div",{className:"storyListNext",children:Object(c.jsx)(n.p,{columns:[1,2,null,3],xGap:"$3",yGap:["$5","$4"],sx:d({},a.storyGridStyles.bottom,{"& > :nth-child(10n + 1)":{gridColumn:[null,"-1 / 1",null,"initial"]}}),children:g})})]})}},function(e,t,r){"use strict";r.r(t),r.d(t,"Pill",(function(){return w})),r.d(t,"getStoryCard",(function(){return O}));var n=r(1),i=r(3),o=r(16),a=r.n(o),s=r(26),l=r(5),c=r(2),u=r(232),d=r(46),f=r(14),h=r(68),p=r(178),b=r(54),m=r(0);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const w=({children:e,className:t=null})=>Object(m.jsx)("span",{className:a()("redPill rounded",t),children:e});function O(e,t){var r,i,o;const{amount:s=6,arcSite:l,siteName:h,hideDesc:b,textOverlay:g,isAdmin:y,sourceId:w,imageDisplay:O,inlineList:j,mainContentList:x,dividers:_,wordLimit:S,readMore:E,timeline:k}=this,C=null===(r=e.owner)||void 0===r?void 0:r.sponsored,P=(null==e?void 0:e.promo_image)?e.promo_image:Object(d.c)(e),M=null===(i=e.headlines)||void 0===i?void 0:i.basic,$=null===(o=e.description)||void 0===o?void 0:o.basic,T=Object(f.m)(e.display_date,e.publish_date)?e.publish_date:e.display_date,{websites:I={}}=e,A=l in I?I[l]:{},{website_url:R}=A,D=R||e.canonical_url,L=e.canonical_url||"",N=L.indexOf("http://")>=0||L.indexOf("https://")>=0?new URL(L).hostname.replace("www.",""):null,B=(null==N?void 0:N.includes(h.toLowerCase()))?null:N,z={gaAction:"Story List",gaValue:t};return Object(m.jsxs)(n.Fragment,{children:[y&&Object(m.jsx)(c.e,{sx:{position:"absolute"},children:"StoryList v1 is depricated"}),Object(m.jsx)(u.a,v({className:a()({double:9===s&&t%9==0,triple:7===s&&t%7==0}),articleLink:D,promo:P,description:b?null:$,headline:M,textOverlay:g,displayDate:T,showSource:y?w:null,textOnly:O,list:a()({"gridItem height_full horizontal":j,mainContentList:x}),wordLimit:S,thirdPartySource:B},z,{readMore:E,timeline:k,sponsored:C})),_&&t<s-1?Object(m.jsx)(p.a,{}):null]},e._id)}w.propTypes={children:i.node.isRequired,className:i.string};const j=({customFields:{useGlobalContent:e=!1,collectionId:t=null,topicEntity:r="",tagName:n="",authorId:i="",sectionName:o="",stories:c=!1,videos:u=!1,galleries:f=!1,gridHeader:p=null,level:g=4,underlineType:v="bold",startFrom:y=null,amount:j=6,textOverlay:x=!1,mainContentList:_=!1,imageDisplay:S=!1,hideDesc:E=!1,isHorizontal:k=!1,inlineList:C=!1,dividers:P=!1,xGap:M="norm",yGap:$="lg",wordLimit:T=170,readMore:I=!1,timeline:A=!1,timeLive:R=!1}={}})=>{const D=Object(l.useAppContext)(),L=Object(l.useComponentContext)(),{siteProperties:{siteName:N},globalContent:B,globalContentConfig:{source:z,query:{author_id:F=null}={}}={},arcSite:U,isAdmin:H}=D,V=parseInt(j,10),G=parseInt(g,10);let W=null;const q=[e&&"author-by-id"!==z,null!==t&&""!==t,null!==r&&""!==r,!e&&(null!==n&&""!==n||null!==o&&""!==o||null!==i&&""!==i)||e&&"author-by-id"===z],K=q.filter((e=>e));if(H&&1!==K.length){const e=0===K.length?"Choose a content source for this story list":"Choose only one content source for this story";return Object(m.jsxs)("section",{style:{background:"#ff5555",color:"fff",padding:"0 2rem",lineHeight:"3rem"}
2,className:"scGrid full-width",children:[Object(m.jsx)(b.a,{level:3,children:"Story List:"}),Object(m.jsx)("p",{children:e})]})}const Y=["globalContent","0PB_CollectionStoryCard","0PB_TroveStoryCard","0PB_ContentStoryCard"][q.indexOf(!0)];let X=null,J=null;switch(Y){case"0PB_CollectionStoryCard":X={collection_id:t},J=`collection:${t}`;break;case"0PB_TroveStoryCard":X={entity:r,stories:c,videos:u,galleries:f},J=`topic:${r}`;break;case"0PB_ContentStoryCard":X={stories:c,videos:u,galleries:f},o&&(X.section=o),n&&(X.tag=n),i?X.authorId=i.replace("%20"," "):e&&F&&(X.authorId=F.replace("%20"," ")),J=e&&F?"globalContent":`feed:${o||""}:${n||""}:${i||""}`;break;case"globalContent":J="globalContent";break;default:X=null}const Z=y?y-1:Object(d.b)(D,L,J);if(X&&(X.from=Z,X.size=V),"globalContent"===Y)W=B.content_elements;else{const e=Object(s.useContent)({source:Y,query:X});W=e&&"content_elements"in e?e.content_elements:null}if(!W)return null;if(D.isAdmin&&"refreshNeeded"===Z)return Object(m.jsxs)("section",{style:{background:"#ff5555",color:"fff",padding:"0 2rem",lineHeight:"3rem"},className:"scGrid full-width",children:[Object(m.jsx)(b.a,{level:3,children:"Story List:"}),Object(m.jsx)("p",{children:"Refresh to see content"})]});const Q=e?Z:0,ee=e?Z+V:V,te=a()({gap_x_xsm:"xsm"===M,gap_x_sm:"sm"===M,gap_x_norm:"norm"===M,gap_x_med:"med"===M,gap_x_lg:"lg"===M,gap_x_xlg:"xlg"===M}),re=a()({gap_y_xsm:"xsm"===$,gap_y_sm:"sm"===$,gap_y_norm:"norm"===$,gap_y_med:"med"===$,gap_y_lg:"lg"===$,gap_y_xlg:"xlg"===$}),ne=A?"timeline":null,ie=W.slice(Q,ee).map(O,{amount:V,wordLimit:T,arcSite:U,siteName:N,hideDesc:E,textOverlay:x,isAdmin:H,start:Z,sourceId:J,imageDisplay:S,inlineList:C,mainContentList:_,dividers:P,readMore:I,timeline:A,timeLive:R});let oe="textOverlay full-width";x&&(oe="textBelow full-width");const ae=k||C?Object(m.jsx)("div",{className:a()("grid story-list",te,re,{vertical:C,horizontal:!C}),children:ie}):[ie];return Object(m.jsxs)("section",{className:"storyList",children:[p?Object(m.jsxs)(h.a,{level:G,className:a()({"display_flex row":R}),textTransform:R&&"capitalize",underlineType:v,marginBottom:1,timeLive:R,children:[R&&Object(m.jsx)(w,{className:"mr-norm",children:"LIVE"}),p]}):null,Object(m.jsx)("section",{className:a()("topic grid",oe,te,re,ne),children:ae})]})};j.propTypes={customFields:i.shape({sourceLabel:i.label.tag({label:"Get Stories From:",description:"Choose one of the following options to specify a content\n        source for the stories that feed this story list."}),useGlobalContent:i.bool.tag({label:"GlobalContent",description:"Use this page's GlobalContent source (set below)\n        to populate the stories from this collection"}),collectionId:i.string.tag({name:"Collection ID",description:"Enter a collection ID from WebSked use populate\n        this feature with stories from the collection"}),topicEntity:i.string.tag({name:"Topic",description:"Enter a topic name to populate this feature with stories from the topics feed (will contain a mix of first and third party stories)"}),tagName:i.string.tag({name:"Article Tag",description:"Enter an article tag to populate this feature with articles containing that tag.  (Can be used in combination with a section name and/or author ID)"}),authorId:i.string.tag({name:"Author ID",description:"Enter an author ID to populate this feature with articles written by that author.  (Can be used in combination with a section name and/or article tag)"}),sectionName:i.string.tag({name:"Section Name",description:"Enter an section name to populate this feature with articles from that site section.  (Can be used in combination with a article tag and/or author ID)"}),stories:i.boolean.tag({name:"Include Stories?",defaultValue:!0}),videos:i.boolean.tag({name:"Include Videos?",defaultValue:!1}),galleries:i.boolean.tag({name:"Include Galleries?",defaultValue:!1}),divider:i.label.tag({label:"--------------------------------------------------"}),configLabel:i.label.tag({label:"Configuration Options"}),gridHeader:i.string.tag({name:"Section Header",group:"Section Header (Optional)"}),level:i.oneOf([1,2,3,4,5]).tag({name:"Heading Tag",description:"Level of heading tag, eg: <h1>, <h2> etc",labels:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},defaultValue:4,group:"Section Header (Optional)"}),underlineType:i.oneOf(["regular","bold"]).tag({name:"Header Underline Color",defaultValue:"bold",labels:{regular:"Gray",bold:"Red"},description:"Change the color of the line below the title",group:"Section Header (Optional)"}),startFrom:i.number.tag({name:"Start From (optional)",description:"If you want to start from a specific position\n        in the story feed enter the startng position here."}),amount:i.oneOf([1,2,3,4,5,6,8,9,10,12]).tag({defaultValue:6,labels:{1:"One Story",2:"Two Stories",3:"Three Stories",4:"Four Stories",5:"Five Stories",6:"Six Stories",7:"Seven Stories, one large at top",8:"Eight Stories",9:"Nine Stories, one large at top",10:"Ten Stories",12:"Twelve Stories"},name:"Amount of Stories",description:"Choose a display configuration."}),textOverlay:i.boolean.tag({defaultValue:!1,name:"Move text to below image?",description:"By default, text is dislayed superimposed over the image.\n        Check this box to move all text below the image."}),mainContentList:i.boolean.tag({defaultValue:!1,name:"Main Content List (Check move text below image)",description:"Display the text to the right of the image"}),imageDisplay:i.bool.tag({name:"Hide Images",description:"Checking this box will remove all images, creating a text-only display."}),hideDesc:i.bool.tag({name:"Hide Article Descriptions",description:"Checking this box remove all article description text, leaving only the story's headline."}),asideOptionsDivider:i.label.tag({label:"--------------------------------------------------"}),asideOptionsLabel:i.label.tag({label:"Rail Configuration Options"}),isHorizontal:i.bool.tag({name:"2 Column Grid (Check move text below image)",description:"Display stories in a two column grid"}),inlineList:i.bool.tag({defaultValue:!1,name:"Inline List",description:"Display text and image on one line"}),dividers:i.boolean.tag({defaultValue:!1,name:"Include dividers? For use only with Inline List."}),xGap:i.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Column Gap (x-axis)",labels:{xsm:"Extra Small",sm:"Small",n
2orm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"norm",group:"Grid Gap"}),yGap:i.oneOf(["xsm","sm","norm","med","lg","xlg"]).tag({name:"Row Gap (y-axis)",labels:{xsm:"Extra Small",sm:"Small",norm:"Normal",med:"Medium",lg:"Large",xlg:"Extra Large"},defaultValue:"lg",group:"Grid Gap"}),wordLimit:i.number.tag({name:"Description limit (optional)",description:"Manipulates the word limit on article descriptions. A default is applied if blank.",defaultValue:170,group:"Advanced Options"}),readMore:i.bool.tag({defaultValue:!1,name:"Read More Link",description:"Display Read More at the bottom of the story cards",group:"Timeline List Options"}),timeline:i.bool.tag({defaultValue:!1,name:"Time Line List",description:"Convert to a Time Line List",group:"Timeline List Options"}),timeLive:i.bool.tag({defaultValue:!1,name:"Is the Time Line Live?",description:"Adds a LIVE badge to the header",group:"Timeline List Options"})})},t.default=j},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(0);t.default=()=>{const{isAdmin:e}=Object(i.useAppContext)();return e?Object(o.jsxs)(n.E,{as:"section",gap:"$2",backgroundColor:"$red.100",border:"1px solid",borderColor:"$red.300",paddingY:"$5",paddingX:"$4",gridColumn:"-1 / 1",borderRadius:"$md",children:[Object(o.jsx)(n.q,{level:3,variant:"$rg",textColor:"$red.900",children:"This feature has been removed"}),Object(o.jsx)(n.M,{variant:"$sm",textColor:"$red.900",children:"Please use the `livestream/cyoa` feature instead"})]}):null}},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(5),o=r(147),a=r(0);t.default=()=>{const{siteProperties:e}=Object(i.useAppContext)(),t=null==e?void 0:e.querylyId,r=Object(o.a)(t?"https://www.queryly.com/js/queryly.v4.js":void 0),s=Object(o.a)(t&&"ready"===r?"https://www.queryly.com/js/new-graham-advanced-search.js":void 0),l=Object(n.useRef)(!1);return Object(n.useEffect)((()=>{"error"===r&&console.error("[SearchResults] Failed to load Queryly base script")}),[r]),Object(n.useEffect)((()=>{"error"!==s||l.current||console.error("[SearchResults] Failed to load Queryly advanced search script"),"ready"===s&&(l.current=!0)}),[s]),t?Object(a.jsx)("div",{id:"queryly_advanced_container",children:Object(a.jsx)("div",{id:"resultdata"})}):null}},function(e,t,r){"use strict";r.r(t);r(1);var n=r(0);t.default=()=>Object(n.jsx)("div",{className:"filters",id:"faceteddata"})},function(e,t,r){"use strict";r.r(t);var n=r(26),i=r(2),o=r(33),a=r(0);t.default=()=>{const e=Object(n.useContent)({source:"hurricanes"});if(!e)return null;const t=e.pages.tropics.tabs,r=t[0],s=t[1],l=t[2],c=r.nodes[0].src,u=r.nodes[1].text,d=s.nodes[0].src,f=s.nodes[1].text,h=l.nodes[0].src,p=l.nodes[1].text;return Object(a.jsxs)(i.E,{as:"section",gap:"$3",className:"tropics",children:[Object(a.jsxs)(i.E,{gap:"$3",className:"potential",children:[Object(a.jsx)(o.a,{url:c,width:1280,height:720,imgClassName:"full_width",alt:"Tropics Watch Potential"}),Object(a.jsx)(i.M,{as:i.E,gap:"$3",variant:"$base",lineHeight:"$loose",className:"content",innerContent:u,sx:{"& img":{p:"$3",height:"100%",width:"100%",maxWidth:"300px",mx:"auto",backgroundColor:"#64748b",borderTop:"1px solid #334155",borderRadius:".25rem"}}})]}),Object(a.jsxs)(i.E,{gap:"$3",className:"satellite",children:[Object(a.jsx)(o.a,{url:d,width:1280,height:720,alt:"Tropics Watch Satellite"}),Object(a.jsx)(i.M,{as:i.E,gap:"$3",variant:"$base",lineHeight:"$loose",className:"content",innerContent:f,sx:{"& img":{py:"$3",height:"100%",width:"100%",maxWidth:"300px",mx:"auto",backgroundColor:"#64748b",borderTop:"1px solid #334155",borderRadius:".25rem"}}})]}),Object(a.jsxs)(i.E,{gap:"$3",className:"seaTemps",children:[Object(a.jsx)(o.a,{url:h,width:1280,height:720,alt:"Tropics Watch Sea Temperature"}),Object(a.jsx)(i.M,{as:i.E,gap:"$3",variant:"$base",lineHeight:"$loose",className:"content",innerContent:p,sx:{"& img":{p:"$3",height:"100%",width:"100%",maxWidth:"300px",mx:"auto",backgroundColor:"#64748b",border:"1px solid #334155",borderRadius:".25rem"}}})]})]})}},function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(59),o=r(0);const a=({children:e})=>Object(o.jsx)(i.a,{children:e});a.sections=["body"],a.propTypes={children:n.node.isRequired},t.default=a},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(1),s=r(306),l=r(31),c=r(14),u=r(0);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p={position:"absolute",height:"$14",width:["$full","$3/4"],backfaceVisibility:"hidden",backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center",willChange:"transform"},b=Object(a.memo)((({logoNode:e,logoLink:t="/",site:r})=>{const{layout:o}=Object(i.useAppContext)();let a="<LOGO>";return a="object"==typeof e&&e?Object(u.jsxs)(n.n,{className:"logoCard",placeContent:"center",sx:{position:"relative",perspective:"1000",width:"$full"},"aria-hidden":"true",children:[Object(u.jsx)(n.e,{className:"front face",sx:f({transform:"rotateY(180deg)",backgroundImage:`url(${e.flip.front})`},p)}),Object(u.jsx)(n.e,{className:"back face",sx:f({backgroundImage:`url(${e.flip.back})`},p)})]}):e&&"string"==typeof e?Object(u.jsx)("img",{src:e,alt:`${r.toUpperCase()} logo`}):Object(u.jsx)(n.e,{sx:{fontSize:"$2",fontWeight:"$bold",color:"$white"},children:r.toUpperCase()}),Object(u.jsxs)(n.t,{as:"a",className:"logo gaevent",href:t,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"siteLogo",clickTarget:t,position:0,label:`${r.toUpperCase()} Homepage`,category:"site_logo",section:"header",site:r}))},sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:["2",null,"1"],height:["$3/4","$1/2"],"& img, & a":f({height:"$full",width:"auto"},"object"==typeof e?{width:"$full",display:"flex",alignItems:"center",justifyContent:"center"}:null)},children:[a,"article"!==o?Object(u.jsx)(n.O,{as:"h1",children:`Go to the ${r.toUpperCase()} homepage`}):Object(u.jsx)(n.O,{as:"span",children:`Go to the ${r.toUpperCase()} homepage`})]})}));b.displayName="SiteLogo";var m=b,g=r(26),v=r(20),y=r(148);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x=Object(a.createContext)({insiderRedirect:!1,insiderLoginButtonText:"Join Insider",loginButtonText:"Sign In",insiderLoggedInButtonText:"My Insider",loggedInButtonText:"My Account",menu:"closed",modal:"closed",gmg:"",happyFoxLoading:!1,querylyLoading:!1}),_=Object(a.createContext)(void 0),S=(e,t)=>{switch(t.type){case"SET_INITIAL_STATE":return O({},e,{},t.payload);case"HAPPYFOX_LOADING":return O({},e,{happyFoxLoading:t.payload});case"QUERYLY_LOADING":return O({},e,{querylyLoading:t.payload});case"MENU_OPEN":return O({},e,{menu:"open"});case"MENU_CLOSE":return O({},e,{menu:"closed"});case"MODAL_OPEN":return O({},e,{modal:"open"});case"MODAL_CLOSE":return O({},e,{modal:"closed"});default:throw new Error(`Unhandled action type: ${t.type}`)}},E=()=>{const e=Object(a.useContext)(x);if(void 0===e)throw new Error("useHeaderStateContext must be used within a HeaderStateContext.Provider");return e},k=()=>{const e=Object(a.useContext)(_);if(void 0===e)throw new Error("useHeaderDispatch must be used within a HeaderDispatchContext.Provider");return e},C="$red.600",P="$green.700",M="$orange.600",$="$violet.600",T=["$12","$24"],I=["$12","$14"],A=["48px","56px"],R=["/live","/watchlive","/watch-live","/ksatplus"];function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?D(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const B=Object(a.memo)((({sx:e})=>{const{arcSite:t,requestUri:r,siteProperties:o}=Object(i.useAppContext)(),s="localhost"===v.ENVIRONMENT,{gmg:l}=E(),c=Object(a.useMemo)((()=>{const e=r.match(/\/([^?/]+)/),t=e&&e.length>0?e[1]:null,n=t&&o.subsites?o.subsites[t]:null;return(null==n?void 0:n.navHierarchy)||"header-nav"}),[r,o.subsites]),d=Object(g.useContent)({source:"header-nav",query:{hierarchy_name:c,section_id:"/"}});if(!d||!d.children)return null;const f=d.children.find((e=>R.includes(e._id))),h=d.children.filter((e=>!R.includes(e._id))),p=[h[0],...f?[f]:[],...h.slice(1)].filter(Boolean).map(((e,r)=>{var i;
2const o="link"===e.node_type?e.url:e._id,a=Object(y.a)(o,l),c=R.includes(e._id)?"Watch Live":(null==e?void 0:e.navigation)&&(null==e||null===(i=e.navigation)||void 0===i?void 0:i.nav_title)?null==e?void 0:e.navigation.nav_title:null==e?void 0:e.name,d=s?`${a.href}?_website=${t}`:a.href;return Object(u.jsx)(n.n,{as:"li",flex:"0 0 auto",px:"$4",children:Object(u.jsx)(n.t,{className:"gaevent",sx:{color:"$white",fontSize:["$0",null,"$2"],letterSpacing:"$wider",textTransform:"uppercase",fontWeight:"$normal"},href:d,rel:null==a?void 0:a.rel,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"Spotlight",clickTarget:d,position:r,label:d,category:"spotlight_navigation",section:"spotlight_nav_bar",linkSource:o,nodeType:e.node_type}))},innerContent:c||(null==e?void 0:e.display_name)})},e._id.replace("/",""))}));return Object(u.jsx)(n.n,{as:"nav",id:"spotlight",bg:"$black.200",borderTop:"1px solid",borderColor:"$gray.600",className:"spotlight",placeContent:"center",sx:L({position:"relative",zIndex:"$1",width:"$full"},e),"aria-label":"Secondary Navigation",children:Object(u.jsx)(n.C,{maxWidth:"$max",orientation:"horizontal",type:"auto",width:"$full",children:Object(u.jsx)(n.n,{as:"ul",flexDirection:"row",justifyContent:[null,null,"space-between"],m:"$0",px:"$0",py:["$3",null,null,"$3"],sx:{listStyle:"none"},children:p})})})}));B.displayName="NavBar";var z=B,F=r(503),U=r(489);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const W=Object(a.memo)((({onClick:e,sx:t})=>{const{menu:r}=E();return Object(u.jsxs)(n.f,{title:"closed"===r?"Open Main Menu Navigation":"Close Main Menu Navigation",variant:"$ghostWhite",onClick:e,sx:V({padding:"$1","& > span":{fontSize:"$3",display:"flex",alignItems:"center",justifyContent:"center"}},"open"===r&&{backgroundColor:"$black.400",boxShadow:"$darkButtonFocus"},{},t),children:[Object(u.jsx)(n.r,{icon:"closed"===r?F.faBars:U.faTimes,fixedWidth:!0,sx:{cursor:"pointer"}}),Object(u.jsx)(n.O,{children:"closed"===r?"Open Main Menu Navigation":"Close Main Menu Navigation"})]})}));var q=W;W.displayName="HamburgerButton";var K=r(504),Y=r(147);const X=()=>{const{siteProperties:e}=Object(i.useAppContext)(),t=null==e?void 0:e.querylyId,r=Object(Y.a)(t?"https://www.queryly.com/js/queryly.v4.js":void 0),o=Object(a.useRef)(!1);Object(a.useEffect)((()=>{"ready"===r&&t&&!o.current&&(o.current=!0,window.queryly&&window.queryly.init(t,document.querySelectorAll("#fusion-app")))}),[r,t]);const s=`Search all of ${null==e?void 0:e.siteName}`;return Object(u.jsxs)(n.f,{title:s,disabled:"loading"===r,sx:{padding:"$1","& > span":{fontSize:"$3",display:"flex",alignItems:"center",justifyContent:"center"}},variant:"$ghostWhite",onClick:()=>{var e;"undefined"!=typeof window&&(null===(e=window.queryly)||void 0===e||e.opensearch())},children:[Object(u.jsx)(n.r,{icon:K.faMagnifyingGlass,fixedWidth:!0,sx:{cursor:"pointer"}}),Object(u.jsx)(n.O,{children:s})]})};X.displayName="QuerylySearch";var J=X,Z=r(33);const Q=()=>{const{arcSite:e,siteProperties:t}=Object(i.useAppContext)(),{weatherLocation:r}=t,n="wplg"===e?"wsi":"baron",o=r&&null!=(null==r?void 0:r[0])&&null!=(null==r?void 0:r[1]),a=Object(g.useContent)(o&&n?{source:"baron-weather",query:{source:n,lat:r[0],lng:r[1]}}:void 0);return{weather:a,isLoading:o&&!a,hasWeather:!!a}};function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ne={gacategory:"Nav",gaaction:"Weather",galabel:"/weather/"},ie=Object(a.memo)((({sx:e})=>{const{weather:t,hasWeather:r}=Q();return r&&t&&"source"in t?Object(u.jsx)(n.e,{sx:te({display:"block",color:"$white",fontWeight:"$bold",fontSize:["$3"],lineHeight:"$none",textTransform:"uppercase",flex:"1"},e),children:Object(u.jsxs)(n.t,te({href:"/weather/",className:"weather"},ne,{title:`Current weather: ${t.curTemp} degrees fahrenheit and ${t.sky}`,sx:{display:"flex",alignItems:"center"},children:[Object(u.jsx)(Z.a,te({},t.icon?{url:t.icon}:{publicId:t.publicId},{placeholder:"$transparent",lazy:!1,width:48,height:48,sx:{height:"$12",width:"$12"},alt:`${t.sky} icon`})),Object(u.jsxs)(n.M,{as:"span",ml:"$1",children:[t.curTemp,Object(u.jsx)(n.M,{as:"span",children:"º"})]})]}))}):null}));ie.displayName="WeatherInHeader";var oe=ie,ae=r(12),se=r(505);const le=Object(a.memo)((()=>{const{siteProperties:{happyFoxId:e,branding:t}}=Object(i.useAppContext)(),r=k(),{happyFoxLoading:o}=E(),s=Object(a.useRef)(!1);Object(a.useEffect)((()=>{if(!e||s.current||o)return;if(document.getElementById("happyfox-chat"))return void(s.current=!0);r({type:"HAPPYFOX_LOADING",payload:!0}),window.HFBOT_CONFIG={EMBED_TOKEN:e,options:{showBadgeOnLoad:!1},onLoad:async e=>{window.HappyFoxChat=e,s.current=!0,r({type:"HAPPYFOX_LOADING",payload:!1})}};const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src="https://bot-widget.happyfox.com/js/widget-loader.js",t.id="happyfox-chat",t.onerror=()=>{r({type:"HAPPYFOX_LOADING",payload:!1}),console.error("[HappyFoxButton] Failed to load HappyFox script")},document.body.appendChild(t)}),[e,o,r]);return Object(u.jsx)(n.f,{"aria-label":`Need Assistance? Open ${t} Help Center`,title:`Need Assistance? Open ${t} Help Center`,variant:"$ghostWhite",iconLeft:se.faMessageQuestion,disabled:o,onClick:()=>{var e;"undefined"!=typeof window&&(null===(e=window.HappyFoxChat)||void 0===e||e.expandChatBox())},sx:{width:"2rem",height:"2rem","& > span":{width:"auto"},"& .buttonIcon":{margin:0},"& > button":{overflow:"hidden",height:"$full",width:"$full",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"$black.900"},"&:focus":{boxShadow:"none",outline:"2px solid",outlineColor:"$black.100"}}},children:Object(u.jsx)(n.O,{children:`Open the ${t} Help Desk`})})}));le.displayName="HappyFoxButton";function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fe=Object(a.memo)((({buttonText:e,modalLink:t,sx:r})=>{const{requestUri:o,arcSite:a}=Object(i.useAppContext)();return Object(u.jsx)(n.f,{as:"a",title:e,href:Object(c.g)({link:`${t}?ref=${o}&reg_prompt=header_insider_button`,arcSite:a}),variant:"$primary",color:"$white",size:"rg",sx:ue({display:["none",null,"flex"],flex:"1 0 auto","&:focus":{outline:"2px s
2olid",outlineColor:"$blue.500"}},r),children:e})}));fe.displayName="InsiderButton";var he=fe,pe=r(172);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ve=Object(a.memo)((({buttonText:e,onClick:t,sx:r})=>Object(u.jsx)(n.f,{title:e,variant:"$ghostWhite",size:"rg",id:"gmgSigninButton",iconRight:pe.faUser,onClick:t,sx:me({flex:"1 0 auto"},r),children:e})));ve.displayName="SigninButton";var ye=ve;function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function je(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xe=Object(a.memo)((({onClick:e,ariaLabel:t,sx:r})=>Object(u.jsx)(n.f,{title:t,variant:"$ghostWhite",iconLeft:pe.faUser,onClick:e,sx:Oe({marginLeft:"$1",color:"$white",display:["flex","none"],width:"2rem",height:"2rem","& > button":{overflow:"hidden",height:"$full",width:"$full",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"$black.900"},"&:focus":{boxShadow:"none",outline:"2px solid",outlineColor:"$black.100"}}},r),"aria-label":t})));xe.displayName="MobileSigninButton";var _e=xe;const Se=Object(a.memo)((()=>{const{siteProperties:{insiderLoginModalLink:e,enableHappyFox:t},arcSite:r}=Object(i.useAppContext)(),{insiderRedirect:o,loginButtonText:a,insiderLoginButtonText:s,modal:c}=E(),d=k(),{status:f}=Object(l.b)(),h="loggedIn"===f,p=()=>"closed"===c?(d({type:"MENU_CLOSE"}),Object(ae.c)("gmg_open_login_modal",{source:"header_login_button"})):d({type:"MODAL_CLOSE"});return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsxs)(n.E,{className:"headerCta",direction:"row",gap:"$3",alignItems:"center",sx:{display:["none","flex"]},children:[o&&s&&e?Object(u.jsx)(he,{buttonText:s,modalLink:e}):null,a?Object(u.jsx)(ye,{buttonText:a,onClick:p}):null]}),Object(u.jsxs)(n.E,{direction:"row",gap:["$2","$0"],marginLeft:[null,null,"$2"],children:[t?Object(u.jsx)(le,{}):null,Object(u.jsx)(_e,{onClick:p,ariaLabel:h?`Signed in to ${r.toUpperCase()}`:`Sign in to ${r.toUpperCase()}`})]})]})}));Se.displayName="SigninMenu";var Ee=r(506),ke=r(333);function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ce(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $e={"&:active, &:focus":{outline:"2px solid",outlineColor:"$blueGray.400",outlineOffset:"2px",borderRadius:"$md"}},Te={variant:"$xs",lineHeight:"$none",position:"absolute",top:"-2px",left:"-10px",p:"$2",bg:"$white",border:"2px solid",borderColor:"$black.400",textColor:"$black.400",width:"$4",height:"$4",borderRadius:"$full",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"$-1",fontWeight:"$semibold",userSelect:"none"},Ie=Object(a.memo)((({sx:e})=>{const{arcSite:t}=Object(i.useAppContext)(),{useGetCart:r}=Object(ke.n)(t),{cart:o,isLoading:a}=r(),s=Object(c.g)({link:"wsls"!==t?"/account/products/":"/account/blue-ridge-games/",arcSite:t});return a||!(null==o?void 0:o.items.length)?null:Object(u.jsxs)(n.e,{as:"a",href:s,className:"relative",display:"flex",justifyContent:"center",p:"$1",sx:Pe({},$e,{},e),children:[Object(u.jsx)(n.r,{icon:Ee.faBagShopping,fontSize:"$4"}),Object(u.jsx)(n.M,{sx:Te,children:o.items.length})]})}));var Ae=Ie;Ie.displayName="CartIndicator";var Re=r(223),De=r(510),Le=r(512),Ne=r(119),Be=r(513),ze=r(508),Fe=r(145),Ue=r(514),He=r(511),Ve=r(509),Ge=r(507),We=r(493);const qe={"& > button > span div":{fontSize:"$2"},"& > button":{fontSize:"$2",padding:"$2",overflow:"hidden",whiteSpace:"nowrap",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"$black.900"},"&:focus":{boxShadow:"none",outline:"2px solid",outlineColor:"$black.100"}}},Ke={lineHeight:"$normal"},Ye=Object(a.memo)((()=>{var e,t,r,o,s,d;const{arcSite:f,requestUri:h,siteProperties:{ugcBrand:p,ugcSlug:b,stripe:m}}=Object(i.useAppContext)(),{insiderLoggedInButtonText:g,insiderRedirect:v,loggedInButtonText:y}=E(),{status:w,data:O}=Object(l.b)(),{arcSubs:j,subscriptions:x,braze:_}=O||{},S=Object(l.c)(),[k,C]=Object(a.useState)(!1),[P,M]=Object(a.useState)(!1);Object(a.useEffect)((()=>{const e=()=>{M(!0)};return document.addEventListener("gmg_logout_dialog",e),()=>{document.removeEventListener("gmg_logout_dialog",e)}}),[]);const $=Object(a.useCallback)((()=>{M(!P)}),[P]),T=Object(a.useCallback)((async()=>{C(!0);try{await Object(ae.o)(O),C(!1),M(!1),S({type:"LOG_OUT"})}catch(e){C(!1),console.error("[AccountMenu] Error logging out user",e)}}),[O,S]);return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsxs)(n.m,{variant:"$ghostWhite",alignment:"right",mobileIcon:Ge.faUserCheck,buttonText:"loading"===w?"Loading...":(null==x?void 0:x.some((e=>1===e.status&&"insiderpluswdiv"===e.sku)))&&"wdiv"===f?"My Insider+":v&&g||y||"My Account",clickFunction:()=>{Object(ae.g)()},sx:qe,children:[Object(u.jsx)(n.e,{py:"$1",sx:{borderBottom:"1px solid",borderColor:"$black.200"},children:Object(u.jsx)(n.w,{disabled:!0,sx:Ke,children:(null==_||null===(e=_.custom_attributes)||void 0===e?void 0:e.avatar)?Object(u.jsxs)(n.E,{flexDirection:"row",gap:"$2",sx:{alignItems:"center"},children:[Object(u.jsx)(n.e,{as:"img",alt:(null==_?void 0:_.custom_attributes.display_name)?`${null==_?void 0:_.custom_attributes.display_name} avatar`:"User Avatar",src:(null==_||null===(t=_.custom_attributes)||void 0===t?void 0:t.avatar)||(null==_||null===(r=_.custom_attributes)||void 0===r?void 0:r.viafoura_avatar),height:"40",width:"40",bg:"$black.200",sx:{borderRadius:"$full",width:"$10",height:"$10",flex:"1 0 auto"}}),Object(u.jsxs)(n.e,{sx:{flex:"1 0 auto",width:"calc(100% - 3rem)"},children:[Object(u.jsx)(n.M,{textColor:"$white",m:"$0",sx:{fontSize:"$1"},children:"Signed in as:"}),Object(u.jsx)(n.M,{textColor:"$white",m:"$0",sx:{fontWeight:"$semibold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(null==_||null===(o=_.custom_attributes)||void 0===o?void 0:o.display_name)||(null==j?void 0:j.email)||"Loading..."})]})]}):Object(u.jsxs)(n.e,{children:[Object(u.jsx)(n.M,{sx:{fontSize:"$1"},children:"Signed in as:"}),Object(u.jsx)(n.M,{sx:{fontWeight:"$semibold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(null==_||null===(s=_.custom_attributes)||void 0===s?void 0:s.display_name)||(null==j?void 0:j.email)||"Loading..."})]})})}),Object(u.jsxs)(n.e,{py:"$1",sx:{borderBottom:"1px solid",borderColor:"$black.200"},children:[v&&["kprc","wsls"].includes(f)?Object(u.jsx)(n.w,{icon:ze.faHome,href:Object(c.g)({link:"/insider/home/",arcSite:f}),children:"Insider Home"}):null,v?Object(u.jsx)(n.w,{icon:Ve.faUserAlt,href:Object(c.g)({link:"/account/profile/",arcSite:f}),children:"My Profile"}):null,Object(u.jsx)(n.w,{icon:De.faCog,onClick:()=>Object(ae.i)("vf-settings"),children:"Account Settings"}),(null==x?void 0:x.length)?Object(u.jsx)(n.w,{icon:He.faSliders,href:Object(c.g)({link:"/account/settings/",arcSite:f}),children:"wsls"!==f?"Manage Subscription":"Manage Blue Ridge Games"}):null,Object(u.jsx)(n.w,{icon:Le.faCommentAltLines,onClick:()=>Object(ae.i)("vf-feed"),children:"Feed"}),Object(u.jsx)(n.w,{icon:We.faUsers,onClick:()=>Object(ae.i)("vf-community"),children:"Community"}),Object(u.jsx)(n.w,{icon:Fe.faMapPin,href:Object(c.g)({link:b?`/${b}/`:"/pins/",arcSite:f}),children:p||"StormPins"}),(null==_||null===(d=_.custom_attributes)||void 0===d?void 0:d.pins_user_id)?Object(u.jsx)(n.w,{icon:Be.faGalleryThumbnails,href:Object(c.g)({link:`/pins/user/${null==_?void 0:_.custom_attributes.pins_user_id}`,arcSite:f}),children:"My Pins"}):null,Object(u.jsx)(n.w,{icon:Ne.faEnvelope,href:Object(c.g)({link:"/contact/",arcSite:f}),children:"Contact"}),!x&&m?Object(u.jsx)(n.w,{icon:Ue.faPlusSquare,href:Object(c.g)({link:"wsls"!==f?`/account/products/?ref=${h.split("?")[0]}`:`/account/blue-ridge-games/?ref=${h.split("?")[0]}`,arcSite:f}),children:"wdiv"===f?"Upgrade to Insider+":"wsls"===f?"Join Blue Ridge Games":"Subscribe"}):null]}),Object(u.jsx)(n.e,{py:"$1",children:Object(u.jsx)(n.w,{icon:Re.faSignOut,onClick:$,children:"Sign Out"})})]}),Object(u.jsx)(n.k,{isOpen:P,setIsOpen:M,title:"Sign Out",successText:"Log Out",actionAlignment:"right",successFn:T,successVariant:"$red",cancelText:"Cancel",loading:k,cancelFn:()=>M(!1),children:Object(u.jsx)(n.M,{fontSize:"$1",lineHeight:"$normal",textColor:"$blueGray.600",children:"Are you sure you want to sign out of your account? You will no longer be able to access certain account features."})})]})}));Ye.displayName="AccountMenu";var Xe=Ye,Je=r(225),Ze=r(142),Qe=r(174),et=r(173),tt=r(230),rt=r(210),nt=r(231);function it(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?it(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const st={breaking:"$red.600",school:"$orange.600",weather:"$green.700",livestream:"$blue.600",userMessage:"$blueGray.800"},lt=({showClosings:e=!1,showWeatherAlerts:t=!0})=>{const{arcSite:r}=Object(i.useAppContext)(),{filteredStories:o}=Object(Qe.a)({showClosings:e,showWeatherAlerts:t}),[s,l]=Object(a.useState)(0),[c,d]=Object(a.useState)(!1),{isScrolling:f,pause:h,stop:p,start:b}=Object(nt.a)({pauseDuration:15e3,shouldPreventResume:()=>c}),m=Object(a.useCallback)((e=>{l(e),h()}),[h]),g=Object(a.useCallback)((()=>{p()}),[p]),v=Object(a.useCallback)((()=>{c||b()}),[c,b]);Object(a.useEffect)((()=>{if(f&&o.length>1&&!c){const e=setInterval((()=>{l((e=>(e+1)%o.length))}),7e3);return()=>{clearInterval(e)}}}),[f,o.length,c]);const y=Object(a.useMemo)((()=>({left:-100*s+"vw"})),[s]);return 0===o.length?Object(u.jsx)(rt.default,{}):Object(u.jsx)(n.n,{id:"minibar-alerts",className:"minibar-alerts",onMouseEnter:g,onMouseLeave:v,justifyContent:"center",alignItems:"center",bg:"$black.400",sx:{height:["$8","$10"],borderTop:"1px solid",borderBottom:"1px solid",borderTopColor:"$gray.600",borderBottomColor:"$gray.600",width:"$full"},children:Object(u.jsxs)(n.n,{justifyContent:"space-between",alignItems:"center",mx:"auto",paddingX:["$2","$4"],sx:{display:"flex",width:"$full",maxWidth:"$max",height:"$full"},children:[Object(u.jsxs)(n.n,{flex:"1",sx:{height:"$full",overflow:"hidden",alignItems:"center"},children:[Object(u.jsx)(et.a,{label:o[s].alertTag||"BREAKING NEWS",backgroundColor:(w=o,O=s,w&&0===w.length||O>=w.length?"$blueGray.800":st[w[O].alertClass])}),Object(u.jsx)(n.n,{flex:"1",width:"$full",px:["$2","$0"],sx:{position:"relative",overflow:"hidden",height:"$full",alignItems:"center",display:"flex"},children:Object(u.jsx)(n.n,{className:"articles transition-500",alignItems:"center",width:"$full",sx:ot({},y,{position:"relative",display:"flex"}),children:Object(u.jsx)(tt.a,{filteredStories:o,currentIndex:s,arcSite:r,setCondensedCardFocused:d,onBlurResume:b})})})]}),Object(u.jsx)(n.E,{direction:"row",gap:"$2",className:"toggle",children:o.length>1&&Object(u.jsx)(n.E,{direction:"row",gap:"$2",alignItems:"center",textColor:"$white",className:"meatballs",sx:{display:["none","flex"]},children:o.map(((e,t)=>Object(u.jsxs)(n.f,{variant:"$icon",size:"sm",onClick:()=>{m(t)},sx:{padding:"$1",color:"$white",":hover, :focus, :active":{boxShadow:"0 0 0 2px hsl(0deg 0% 100% / 50%)",borderRadius:"$full"}},children:[Object(u.jsx)(n.r,{icon:t===s?Ze.faCircle:Je.faCircle}),Object(u.jsx)(n.O,{children:`Select breaking news story ${t+1} of ${o.length}`})]},e._id)))})})]})});var w,O};lt.displayName="MiniBarAlerts";var ct=Object(a.memo)(lt);function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(r),!0).forEach((function(t){ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ft(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ht=Object(a.memo)((({active:e=!1,sx:t,logoNode:r,logoLink:o,hamburgerHandler:a})=>{const{arcSite:s,siteProperties:{enableHappyFox:c}}=Object(i.useAppContext)(),{status:d}=Object(l.b)(),f=e?{}:{inert:""};return Object(u.jsx)(n.z,dt({id:"minibar",className:"minibar",position:"fixed",width:"$full",backgroundColor:"$black.300"},f,{sx:dt({top:0,left:0,right:0,transform:e?"translateY(0)":"translateY(-100%)",transition:"transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 300ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0ms linear 300ms",opacity:e?1:0,zIndex:e?99998:-1,willChange:"transform"},t),children:Object(u.jsxs)(n.E,{gap:"$0",children:[Object(u.jsxs)(n.e,{px:"$4",mx:"auto",className:"container",sx:{width:"$full",maxWidth:"$max",height:I,display:"flex",alignItems:"center"},children:[Object(u.jsxs)(n.E,{direction:"row",className:"leftNav",gap:"$2",alignItems:"center",sx:{flex:"1"},children:[Object(u.jsx)(n.D,{x:-6,children:Object(u.jsx)(q,{onClick:a})}),Object(u.jsx)(J,{}),Object(u.jsx)(oe,{sx:{display:["none","flex"]}})]}),Object(u.jsx)(m,{logoNode:r,logoLink:o,site:s,"aria-label":`Navigate to the ${s} homepage`}),Object(u.jsx)(n.E,{direction:"row",gap:"$0",className:"rightNav",sx:{alignItems:"center",justifyContent:"flex-end",flex:"1"},children:["loggedIn"].includes(d)?Object(u.jsxs)(n.E,{direction:"row",alignItems:"center",gap:"$2",children:[Object(u.jsx)(Ae,{sx:{display:["none",null,"block"]}}),c?Object(u.jsx)(le,{}):null,Object(u.jsx)(Xe,{})]}):Object(u.jsx)(Se,{})})]}),Object(u.jsx)(ct,{})]})}))}));ht.displayName="MiniBar";var pt=ht,bt=r(515);function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?mt(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yt=Object(a.memo)((({sx:e})=>{const{weather:t,hasWeather:r}=Q();return r&&t&&"source"in t?Object(u.jsxs)(n.e,{"aria-label":`Weather ${t.curTemp} degrees, ${t.sky}`,sx:gt({display:"flex",alignItems:"center",gap:"$2",flex:"0 0 auto"},e),children:[Object(u.jsx)(Z.a,gt({},t.icon?{url:t.icon}:{publicId:t.publicId},{placeholder:"$transparent",lazy:!1,width:20,height:20,sx:{width:["$5","$6"],height:["$5","$6"],flexShrink:0},alt:""})),Object(u.jsx)(n.M,{as:"span",sx:{fontSize:["$2","$2"],fontWeight:"$semibold",color:"$white",lineHeight:"$none",whiteSpace:"nowrap"},children:`${t.curTemp}°`}),Object(u.jsx)(n.r,{icon:bt.faPipe,sx:{fontSize:"$2",color:"$gray.600"}}),Object(u.jsx)(n.M,{as:"span",sx:{fontSize:["$0","$1"],color:"$white",lineHeight:"$none",whiteSpace:"nowrap"},children:t.sky})]}):null}));yt.displayName="WeatherInMenu";var wt=yt,Ot=r(131);const jt={width:"$full"},xt={transition:"background-color 0.2s ease, color 0.2s ease, border-radius 0.2s ease",fontSize:"$2",fontWeight:"$semibold",letterSpacing:"$wider",textTransform:"uppercase",paddingY:"$3",color:"$white",backgroundColor:"$black.400",borderRadius:"$md",lineHeight:"$none",border:"$0",margin:"$0","&:hover":{backgroundColor:"$black.300"},"&:active":{backgroundColor:"$black.300",boxShadow:"none",outline:"none",transform:"none"},"&:focus":{outline:"none",boxShadow:"none",backgroundColor:"$black.300"},'&:not([data-headlessui-state="open"]):focus-visible':{outline:"1px solid white",boxShadow:"none",backgroundColor:"$black.300"},'&[data-headlessui-state="open"]':{backgroundColor:"$black.300",borderBottomLeftRadius:"$none",borderBottomRightRadius:"$none",marginBottom:"$0"},'&[data-headlessui-state="open"]:hover':{backgroundColor:"$black.300"},'&[data-headlessui-state="open"]:active, &[data-headlessui-state="open"]:focus, &[data-headlessui-state="open"]:focus-visible':{backgroundColor:"$black.300",boxShadow:"none",outline:"none",transform:"none"},"& svg":{color:"$white",transition:"transform 0.3s ease"},'&[data-headlessui-state="open"] svg':{transform:"scaleY(-1)"}},_t={bg:"$black.300",paddingTop:"$2",paddingBottom:"$2",paddingX:"$2",width:"$full",borderTopLeftRadius:"$none",borderTopRightRadius:"$none",borderBottomLeftRadius:"$md",borderBottomRightRadius:"$md",border:"$0"},St={display:"flex",alignItems:"center",justifyContent:"center",width:"$full",textTransform:"uppercase",letterSpacing:"$wider",fontWeight:"$bold",fontSize:"$1",borderRadius:"$md",backgroundColor:"$black.200",paddingY:"$2","&:hover, &:focus, &:active, &:focus-visible":{backgroundColor:"$black.400",textDecoration:"none"},"& > a":{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",color:"$white",textDecoration:"none",outline:"none"}},Et={display:"grid",gridTemplateColumns:["1fr","repeat(auto-fit, minmax(150px, 1fr))","repeat(auto-fit, minmax(180px, 1fr))"],gap:"$2",py:"$2"},kt={display:"flex",alignItems:"start",justifyContent:"left",width:"$full",fontSize:"$1",lineHeight:"$snug",fontWeight:"$medium",borderRadius:"$md",backgroundColor:"$black.200",paddingX:"$3",paddingY:["$2","$3"],"&:hover, &:focus, &:active, &:focus-visible":{backgroundColor:"$black.400",textDecoration:"none"},"& > a":{display:"flex",alignItems:"center",justifyContent:"left",width:"100%",height:"100%",textDecoration:"none",color:"$white",outline:"none"}},Ct={backgroundColor:"$black.200",borderRadius:"$md",padding:"$0",border:"1px solid",borderColor:"$black.100",overflow:"hidden"}
2,Pt={display:"flex",alignItems:"center",justifyContent:"space-between",px:"$4",py:"$3",borderTopLeftRadius:"$md",borderTopRightRadius:"$md",marginBottom:"$0",borderBottom:"1px solid",borderBottomColor:"$black.400",position:"relative"},Mt={fontSize:"$1",fontWeight:"$bold",letterSpacing:"$wider",textTransform:"uppercase",lineHeight:"$tight",color:"$white"},$t={padding:"$3"},Tt={display:"grid",gridTemplateColumns:["1fr","repeat(auto-fit, minmax(14rem, 1fr))","repeat(auto-fit, minmax(16rem, 1fr))"],gap:"$2",py:"$2"},It={borderBottomLeftRadius:"$md",borderBottomRightRadius:"$md",borderTopLeftRadius:"$none",borderTopRightRadius:"$none",borderTop:"none",padding:"$4",textAlign:"center",color:"$gray.400",fontWeight:"$medium",display:"flex",alignItems:"center",justifyContent:"center",gap:"$2"};var At=r(100);function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach((function(t){Lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nt=e=>e&&e.text?e.text.replace("Weather Alert:","").trim():"View active weather alerts",Bt=Object(a.memo)((({alertCounts:e,breakingNews:t,weatherAlerts:r,schoolClosingText:i,arcSite:o,cardSx:a})=>{const s=e.total>0,l=t&&e.breaking>0,d=r&&e.weather>0,f=i&&e.school>0;return Object(u.jsxs)(n.a,{defaultOpen:!1,sx:Dt({},jt,{},a),children:[Object(u.jsx)(n.b,{icon:Ot.faChevronDown,sx:xt,children:Object(u.jsxs)(n.e,{sx:{display:"flex",alignItems:"center",gap:"$2"},children:["Active Alerts",s&&Object(u.jsx)(At.a,{count:e.total,variant:"ghostWhite",size:"sm"})]})}),Object(u.jsx)(n.c,{sx:Dt({},_t,{gap:"$4"}),children:Object(u.jsxs)(n.e,{sx:{display:"flex",flexDirection:"column",gap:"$4"},children:[l&&Object(u.jsxs)(n.e,{sx:Dt({},Ct,{borderColor:C}),children:[Object(u.jsxs)(n.e,{sx:Dt({},Pt,{backgroundColor:C}),children:[Object(u.jsx)(n.M,{as:"span",sx:Mt,children:"Breaking News"}),Object(u.jsx)(At.a,{count:e.breaking,variant:"ghostWhite",size:"sm"})]}),Object(u.jsx)(n.e,{sx:Dt({},$t,{backgroundColor:"$black.300"}),children:Object(u.jsx)(n.e,{sx:Tt,children:t.content_elements.map(((e,t)=>{var r;const i=Object(c.g)({link:null==e?void 0:e.canonical_url,arcSite:o});return Object(u.jsx)(n.t,{href:i,sx:kt,onClick:()=>{var r;"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:i,position:t+1,label:(null==e||null===(r=e.headlines)||void 0===r?void 0:r.basic)||"Breaking news story",category:"breaking_news",storyId:(null==e?void 0:e._id)||"",section:"hamburger_menu"}))},children:(null==e||null===(r=e.headlines)||void 0===r?void 0:r.basic)||"Breaking news story"},(null==e?void 0:e._id)||`breaking-${t}`)}))})})]}),d&&Object(u.jsxs)(n.e,{sx:Dt({},Ct,{borderColor:P}),children:[Object(u.jsxs)(n.e,{sx:Dt({},Pt,{backgroundColor:P}),children:[Object(u.jsx)(n.M,{as:"span",sx:Mt,children:"Weather Alerts"}),Object(u.jsx)(At.a,{count:e.weather,variant:"ghostWhite",size:"sm"})]}),Object(u.jsx)(n.e,{sx:Dt({},$t,{backgroundColor:"$black.300"}),children:Object(u.jsx)(n.e,{sx:Tt,children:Object(u.jsx)(n.t,{href:Object(c.g)({link:"/weather/alerts",arcSite:o}),sx:kt,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:"/weather/alerts",position:1,label:Nt(r),category:"weather_alerts",section:"hamburger_menu"}))},children:Nt(r)})})})]}),f&&Object(u.jsxs)(n.e,{sx:Dt({},Ct,{borderColor:M}),children:[Object(u.jsxs)(n.e,{sx:Dt({},Pt,{backgroundColor:M}),children:[Object(u.jsx)(n.M,{as:"span",sx:Mt,children:"wdiv"===o?"School Closings":"Closings & Delays"}),Object(u.jsx)(At.a,{count:e.school,variant:"ghostWhite",size:"sm"})]}),Object(u.jsx)(n.e,{sx:Dt({},$t,{backgroundColor:"$black.300"}),children:Object(u.jsx)(n.e,{sx:Tt,children:Object(u.jsx)(n.t,{href:Object(c.g)({link:"/school_closings",arcSite:o}),sx:kt,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:"/school_closings",position:1,label:i||"View complete closing list",category:"school_closings",section:"hamburger_menu",arcSite:o}))},children:i||"View complete closing list"})})})]})]})})]})}));Bt.displayName="ActiveAlerts";var zt=Bt;function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ft(Object(r),!0).forEach((function(t){Ht(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ht(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vt=({sx:e})=>{var t;const{data:r,status:i}=Object(l.b)(),o=null==r||null===(t=r.arcSubs)||void 0===t?void 0:t.email;return"loggedIn"===i&&!!o?Object(u.jsxs)(n.e,{"aria-label":`Signed in as ${o}`,sx:Ut({display:"flex",flexDirection:"column",gap:"$1",flex:"0 1 auto",minWidth:0},e),children:[Object(u.jsx)(n.M,{as:"span",sx:{fontSize:"$-1",lineHeight:"$none",color:"$blueGray.400",whiteSpace:"nowrap"},children:"Signed in:"}),Object(u.jsx)(n.M,{as:"span",title:o,sx:{fontSize:"$-1",color:"$white",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:o})]}):null};function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach((function(t){qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kt=({arcSite:e,trendingCategories:t,trendingStories:r,cardSx:i})=>{const o=Object(a.useMemo)((()=>[...(r||[]).map((e=>Wt({},e,{type:"story"}))),...(t||[]).map((e=>Wt({},e,{type:"category"})))]),[r,t]),s=o.length;return 0===s?null:Object(u.jsxs)(n.a,{defaultOpen:!1,sx:Wt({},jt,{},i),children:[Object(u.jsx)(n.b,{icon:Ot.faChevronDown,sx:xt,children:Object(u.jsxs)(n.e,{sx:{display:"flex",alignItems:"center",gap:"$2"},children:["Trending",Object(u.jsx)(At.a,{count:s,variant:"ghostWhite",size:"sm"})]})}),Object(u.jsx)(n.c,{sx:_t,children:Object(u.jsxs)(n.e,{sx:Wt({},Ct,{borderColor:$}),children:[Object(u.jsxs)(n.e,{sx:Wt({},Pt,{backgroundColor:$}),children:[Object(u.jsx)(n.M,{as:"span",sx:Mt,children:"Trending"}),Object(u.jsx)(At.a,{count:s,variant:"ghostWhite",size:"sm"})]}),Object(u.jsx)(n.e,{sx:Wt({},$t,{backgroundColor:"$black.300"}),children:Object(u.jsx)(n.e,{sx:Tt,children:o.map(((t,r)=>{const i=Object(c.g)({link:t.path,arcSite:e});return Object(u.jsx)(n.t,{href:i,sx:kt,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:i,position:r+1,label:t.title,category:"story"===t.type?"trending_stories":"trending_categories",itemType:t.type,itemPath:t.path,section:"hamburger_menu"}))},children:t.title},`${t.id}-${t.type}-hamburger-trending`)}))})})]})})]})};Kt.displayName="TrendingTopics";var Yt=Object(a.memo)(Kt),Xt=r(105),Jt=r(144),Zt=r(37),Qt=r(50),er=r(72),tr=r(490),rr=r(214);function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?nr(Object(r),!0).forEach((function(t){or(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function or(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ar=Object(a.memo)((()=>{var e;const{arcSite:t}=Object(i.useAppContext)(),[r,o]=Object(a.useState)({}),s=Object(a.useRef)([]),{data:c}=Object(l.b)(),d=(null==c||null===(e=c.arcSubs)||void 0===e?void 0:e.email)?Object(er.a)(c.arcSubs.email):void 0,{data:f,isLoading:h}=Object(tr.a)(),{data:p,isLoading:b,mutate:m}=Object(rr.a)(d||void 0,{revalidateOnFocus:!0}),g=Object(a.useMemo)((()=>{var e;return(null==p||null===(e=p.braze)||void 0===e?void 0:e.subscriptions)||{}}),[p]),v=Object(a.useMemo)((()=>{var e;return(null!==(e=null==f?void 0:f.items)&&void 0!==e?e:[]).flatMap((e=>{var t;return(null!==(t=e.newsletters)&&void 0!==t?t:[]).filter((e=>{var t,r;const n=null==e||null===(t=e.lists)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.id;if(!n)return!1;const i=n.toLowerCase();return!(!0===g[i])}))}))}),[null==f?void 0:f.items,g]),y=Object(a.useMemo)((()=>{if(v.map((e=>{var t,r;return null===(t=e.lists)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.id.toLowerCase()})).join(",")!==s.current.join(",")){const e=[...v].map((e=>({item:e,sortKey:Math.random()}))).sort(((e,t)=>
2e.sortKey-t.sortKey)).map((e=>e.item));return s.current=e.map((e=>{var t,r;return null===(t=e.lists)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.id.toLowerCase()})),e}return v.sort(((e,t)=>{var r,n,i,o;const a=null===(r=e.lists)||void 0===r||null===(n=r[0])||void 0===n?void 0:n.id.toLowerCase(),l=null===(i=t.lists)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id.toLowerCase();return s.current.indexOf(a)-s.current.indexOf(l)}))}),[v]),w=Object(a.useMemo)((()=>y.length<=3?y:y.slice(0,3)),[y]);if(!d)return null;if(h||b)return Object(u.jsx)(n.e,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"$16"},children:Object(u.jsx)(n.M,{sx:{color:"$white"},children:"Loading newsletters..."})});if(!w||0===w.length)return(null==f?void 0:f.items)&&0!==f.items.length?Object(u.jsxs)(n.e,{sx:It,children:[Object(u.jsx)(n.r,{icon:Xt.faCheckCircle,fontSize:"$3"}),Object(u.jsx)(n.E,{gap:"$1",sx:{textAlign:"center"},children:Object(u.jsx)(n.M,{children:"You're subscribed to all available newsletters! Go to the newsletters page to manage your subscriptions."})})]}):null;const O=(e,t)=>{o((r=>{const n=r[e]||{submittingStatus:"idle",errorType:"none"};return ir({},r,{[e]:ir({},n,{},t)})}))},j=(e,r,n)=>async i=>{i.preventDefault();const o=(e||"").toLowerCase();if(!o||!d)return;O(o,{submittingStatus:"submitting",errorType:"none"});const a=ir({},g),s=!0!==a[o];a[o]=s;const l=`${Object(Qt.b)()}/email/newsletters/update`;try{if(p){const e=ir({},p,{braze:ir({},p.braze,{subscriptions:a})});m(e,!1)}const e={site:t,subscribes:a,email:d},i=await Jt.a.post(l,e,{withCredentials:!0});if(200!==i.status)return;if("error"in i.data)throw new Error(i.data.error);O(o,{submittingStatus:"success"}),Zt.toast.success(`Thank you for signing up for ${r}!`),(({listId:e,position:t})=>{if("undefined"==typeof window)return;const{dataLayer:r=[]}=window;r.push({event:"NavigationClickEvent",element:"HamburgerMenu",gaCategory:"Email",gaAction:"Subscribe",gaLabel:e,gaValue:t,section:"hamburger_menu"})})({listId:o,position:n})}catch(e){m(),e instanceof Error&&(O(o,{submittingStatus:"error"}),Zt.toast.error("Failed to subscribe. Please try again."))}finally{O(o,{submittingStatus:"idle"})}};return Object(u.jsx)(n.p,{columns:null,gap:"$2",sx:{gridTemplateColumns:["repeat(1, 1fr)","repeat(3, 1fr)"],paddingTop:"$2"},children:w.map(((e,i)=>{var o,a;const s=null===(o=e.lists)||void 0===o||null===(a=o[0])||void 0===a?void 0:a.id.toLowerCase(),{submittingStatus:l,errorType:c}=(e=>r[e]||{submittingStatus:"idle",errorType:"none"})(s),d=i+1;return Object(u.jsx)(n.e,{sx:{borderRadius:"$md",border:"1px solid",borderColor:"$black.100",backgroundColor:"$black.200"},children:Object(u.jsx)(n.o,{onSubmit:j(s,e.newsletter,d),"aria-label":`Sign up for ${e.newsletter} newsletter`,sx:{height:"$full",p:"$2"},children:Object(u.jsxs)(n.E,{gap:"$2",sx:{height:"$full"},justifyContent:"space-between",children:[Object(u.jsxs)(n.E,{gap:"$2",children:[Object(u.jsx)(n.M,{variant:"$sm",sx:{fontWeight:"$semibold",color:"$white",fontSize:"$2"},children:e.newsletter}),Object(u.jsx)(Z.a,{publicId:`media/newsletters/${t}/${s}`,width:256,height:55,sx:{borderRadius:"$sm",height:"auto"},alt:e.newsletter}),e.blurb&&Object(u.jsx)(n.M,{sx:{fontSize:"$0",lineHeight:"$tight",color:"$blueGray.200",my:"$2"},children:e.blurb})]}),Object(u.jsxs)(n.E,{gap:"$2",children:["none"!==c&&null,Object(u.jsx)(n.f,{type:"submit",variant:"$primary",loading:"submitting"===l,disabled:"submitting"===l||"success"===l,children:"success"===l?"Subscribed":"Sign Up"})]})]})})},s)}))})}));ar.displayName="NavNewsletterSignUp";var sr=ar;const lr=e=>{var t,r,n,i;if(!e)return"";const o=null!==(t=null!==(r=null!==(n=null===(i=e.navigation)||void 0===i?void 0:i.nav_title)&&void 0!==n?n:e.name)&&void 0!==r?r:e.display_name)&&void 0!==t?t:"";return"string"==typeof o?o.trim():""},cr=e=>!!e&&(!!lr(e)&&!!(e=>!!("link"===(null==e?void 0:e.node_type)?null==e?void 0:e.url:null==e?void 0:e._id))(e)),ur=({sections:e,arcSite:t,gmg:r})=>{const i=e.find((e=>R.includes(e._id))),o=e.filter((e=>
2!R.includes(e._id))),a=[o[0],...i?[i]:[],...o.slice(1)].filter(Boolean);return Object(u.jsx)(u.Fragment,{children:a.map(((e,i)=>{var o,a;const s=R.includes(e._id),l=(null===(o=e.navigation)||void 0===o?void 0:o.nav_title)||e.name||e.display_name||"Section",d=s?"Watch Live":l,f="link"===e.node_type?e.url:e._id,{href:h,rel:p}=Object(y.a)(f,r),b=Object(c.g)({link:h,arcSite:t}),m=(null!==(a=e.children)&&void 0!==a?a:[]).filter(cr),g=l.toLowerCase().includes("newsletter");return Object(u.jsxs)(n.a,{sx:jt,children:[Object(u.jsx)(n.b,{icon:Ot.faChevronDown,sx:xt,children:d}),Object(u.jsxs)(n.c,{sx:_t,children:[Object(u.jsx)(n.t,{href:b,rel:p,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:b,position:i,label:d,category:"hamburger_top_level_navigation",section:"hamburger_menu",linkSource:f,nodeType:e.node_type}))},sx:St,children:Object(u.jsx)(n.M,{as:"span",sx:{display:"flex",alignItems:"center",gap:"$2"},children:`Go to ${d} page`})}),m.length>0&&Object(u.jsx)(n.e,{sx:Et,children:m.map(((e,o)=>
2{const a="link"===e.node_type?e.url:e._id,{href:s,rel:l}=Object(y.a)(a,r),f=Object(c.g)({link:s,arcSite:t}),h=lr(e)||"Link";return Object(u.jsx)(n.t,{className:"gaevent",href:f,rel:l,onClick:()=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"NavigationClickEvent",element:"HamburgerMenu",clickTarget:f,position:o,label:h,category:"hamburger_secondary_level_navigation",section:"hamburger_menu",parentSection:d,linkSource:a,nodeType:e.node_type}))},sx:kt,children:h},e._id||`${i}-${o}`)}))}),g&&Object(u.jsx)(sr,{})]})]},(e._id||`section-${i}`).replace("/",""))}))})};ur.displayName="HamburgerMenuSections";var dr=Object(a.memo)(ur);const fr=()=>{const[e,t]=Object(a.useState)((()=>"undefined"!=typeof window&&window.innerWidth<=768));return Object(a.useEffect)((()=>{if("undefined"==typeof window)return;const e=window.matchMedia("(max-width: 768px)"),r=e=>{t(e.matches)};return e.addEventListener("change",r),t(e.matches),()=>{e.removeEventListener("change",r)}}),[]),e},hr=Object(a.memo)((({minibarActive:e=!1,headerBottomViewportPosition:t=0})=>{const{menu:r,gmg:o}=E(),{status:s}=Object(l.b)(),{hasWeather:c}=Q(),d=fr(),{isAdmin:f,arcSite:h,requestUri:p,siteProperties:b}=Object(i.useAppContext)(),m=k(),v="open"===r,y=["loggedIn"].includes(s),w=Object(a.useMemo)((()=>{const e=p.match(/\/([^?/]+)/),t=e&&e.length>0?e[1]:null,r=t&&b.subsites?b.subsites[t]:null;return(null==r?void 0:r.navHierarchy)||"header-nav"}),[p,b.subsites]),O=Object(g.useContent)({source:"header-nav",query:{hierarchy_name:w,section_id:"/"}}),j=Object(g.useContent)({source:"trending-stories",query:{"arc-site":h}}),x=Object(g.useContent)({source:"trending-categories",query:{"arc-site":h}}),{breakingNewsContent:_,weatherAlerts:S,alertCounts:C,schoolClosingText:P}=Object(Qe.a)({showClosings:["wdiv","wsls"].includes(h),showWeatherAlerts:!0}),M=e?A:`${t}px`,$=e?["calc(100dvh - 48px)","calc(75dvh - 56px)"]:`calc(100dvh - ${t}px)`;return f?null:v?Object(u.jsxs)(n.v,{open:v,onClose:()=>m({type:"MENU_CLOSE"}),className:"hamburger-dialog",panelProps:{sx:{position:"fixed",backgroundColor:"$black.400",color:"$white",top:M,left:0,right:0,height:$,width:"$full",borderTop:"1px solid",borderBottom:"1px solid",borderColor:"$gray.600",display:"flex",flexDirection:"column",overflow:"hidden",padding:"$0",zIndex:99999}},children:[Object(u.jsx)(n.e,{sx:{flex:"1 1 auto",minHeight:0,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain"},children:Object(u.jsx)(n.e,{sx:{maxWidth:"$max",width:"$full",mx:"auto",px:"$3",py:"$3"},children:O&&O.children&&O.children.length>0?Object(u.jsxs)(n.E,{gap:"$2",direction:"column",children:[(_||S||P)&&C.total>0&&Object(u.jsx)(zt,{alertCounts:C,breakingNews:_,weatherAlerts:S,schoolClosingText:P,arcSite:h}),((null==j?void 0:j.length)>0||(null==x?void 0:x.length)>0)&&Object(u.jsx)(Yt,{arcSite:h,trendingStories:j,trendingCategories:x}),Object(u.jsx)(dr,{sections:O.children,arcSite:h,gmg:o})]}):null})}),(d&&(y||c)||!d&&y)&&Object(u.jsx)(n.e,{sx:{backgroundColor:"$black.300",borderTop:"1px solid",borderColor:"$gray.600",py:"$3",px:"$0",zIndex:1},children:Object(u.jsxs)(n.e,{sx:{maxWidth:"$max",width:"$full",mx:"auto",px:"$3",display:"flex",alignItems:"center",justifyContent:d&&!y&&c?"flex-end":"space-between",gap:["$3","$4"]},children:[Object(u.jsx)(Vt,{}),d&&Object(u.jsx)(wt,{})]})})]}):null}));hr.displayName="HamburgerMenu";var pr=hr;const br=["spotlight","breaking-news-bar","trending-stories-bar"],mr=({headerRef:e})=>{const[t,r]=Object(a.useState)(!1),[n,i]=Object(a.useState)(0),[o,s]=Object(a.useState)(0),[l,c]=Object(a.useState)(0);return Object(a.useEffect)((()=>{if(!e.current)return()=>{};const t=br.map((e=>document.getElementById(e))).filter((e=>null!==e)),n=document.createElement("div");n.style.position="absolute",n.style.left="0",n.style.width="1px",n.style.height="1px",n.style.pointerEvents="none",n.style.visibility="hidden",n.id="scroll-tr
2igger-sentinel",document.body.appendChild(n);const o=()=>{(()=>{var t,r;const n=null!==(t=null===(r=e.current)||void 0===r?void 0:r.offsetTop)&&void 0!==t?t:0;i(n)})();const r=(()=>{const t=e.current;return t?t.offsetTop+t.getBoundingClientRect().height-window.scrollY:0})(),o=(()=>{const t=e.current;if(!t)return 0;const r=[t,...br.map((e=>document.getElementById(e))).filter((e=>null!==e))].reduce(((e,t)=>e+t.getBoundingClientRect().height),0);return t.offsetTop+r})();s(r),c(o),(()=>{var r,i;const o=[e.current,...t].reduce(((e,t)=>{var r;return e+(null!==(r=null==t?void 0:t.getBoundingClientRect().height)&&void 0!==r?r:0)}),0),a=null!==(r=null===(i=e.current)||void 0===i?void 0:i.offsetTop)&&void 0!==r?r:0;n.style.top=`${a+o}px`})()};o();const a=new IntersectionObserver((e=>{e.forEach((e=>{r(!e.isIntersecting&&e.boundingClientRect.top<0)}))}),{threshold:0,rootMargin:"0px"});a.observe(n);const l=new ResizeObserver(o);[e.current,...t].forEach((e=>{e&&l.observe(e)}));const u=()=>{o()};return window.addEventListener("scroll",u,{passive:!0}),()=>{a.disconnect(),l.disconnect(),n.remove(),window.removeEventListener("scroll",u)}}),[e]),{isTriggered:t,headerOffsetTop:n,headerBottomViewportPosition:o,headerStackBottomPosition:l}};function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wr=({customFields:e})=>{const{insiderRedirect:t=!1,hide:r}=e||{},{siteProperties:{hostname:{gmg:o="always broken"}={},loginButtonText:d,insiderLoginButtonText:f,insiderLoggedInButtonText:h,loggedInButtonText:p,siteLogo:b,subsites:g,enableHappyFox:v},requestUri:y,arcSite:w="wdiv"}=Object(i.useAppContext)(),{status:O}=Object(l.b)(),j=Object(a.useRef)(null),E=Object(a.useRef)(null),[k,C]=Object(a.useState)(),[P,M]=Object(a.useState)(),[$,I]=Object(a.useState)(void 0),[A,R]=Object(a.useState)(!1),{isTriggered:D,headerBottomViewportPosition:L}=mr({headerRef:j}),N=y.match(/\/([^?/]+)/),B=N&&N.length>0?N[1]:null,F=B&&g?g[B]:null,U=(null==F?void 0:F.logo)||b,H=Object(c.g)({link:(null==F?void 0:F.logoLink)||"/",arcSite:w}),V={insiderRedirect:t,insiderLoginButtonText:f,loginButtonText:d,insiderLoggedInButtonText:h,loggedInButtonText:p,menu:"closed",modal:"closed",gmg:o,happyFoxLoading:!1,querylyLoading:!1},[G,W]=Object(a.useReducer)(S,V),K="open"===G.menu,Y="open"===G.modal,X=()=>K?W({type:"MENU_CLOSE"}):(W({type:"MODAL_CLOSE"}),W({type:"MENU_OPEN"}));return Object(a.useEffect)((()=>{const e=e=>{var t,r,n;W({type:"MODAL_OPEN"}),C(null===(t=e.detail)||void 0===t?void 0:t.source),M(null===(r=e.detail)||void 0===r?void 0:r.ref),I(null===(n=e.detail)||void 0===n?void 0:n.callback)},t=()=>{W({type:"MODAL_CLOSE"})},r=()=>{R(!0)},n=()=>{R(!1)};return document.addEventListener("gmg_open_login_modal",e),document.addEventListener("gmg_close_login_modal",t),document.addEventListener("gmg_minibar_close",r),document.addEventListener("gmg_minibar_open",n),()=>{document.removeEventListener("gmg_open_login_modal",e),document.removeEventListener("gmg_close_login_modal",t),document.removeEventListener("gmg_minibar_close",r),document.removeEventListener("gmg_minibar_open",n)}}),[]),Object(u.jsx)(x.Provider,{value:G,children:Object(u.jsxs)(_.Provider,{value:W,children:[Object(u.jsxs)(n.n,{id:"main-header",placeContent:"center",className:"headerWrapper",ref:j,sx:vr({backgroundColor:"$black.300",color:"$white",position:"relative",zIndex:"$10",minHeight:T},r?{display:"none"}:void 0),children:[Object(u.jsx)(n.t,{href:"#main-content",onClick:e=>{if(e.preventDefault(),"undefined"==typeof window)return;const t=document.getElementById("main-content");t&&t.focus()}
2,sx:{position:"absolute",left:"-9999px",top:["$1","$3"],zIndex:1e3,backgroundColor:"$black.300",padding:["$2","$3"],color:"white",opacity:0,textDecoration:"none",transition:"opacity 0.3s ease, left 0.3s ease","&:focus":{left:["$1","$3"],opacity:1,outlineOffset:"0"}},children:"Skip to main content"}),Object(u.jsxs)(n.n,{placeContent:"center",className:"container",sx:{position:"relative",backgroundColor:"$black.300",height:T,width:"$full",maxWidth:"$max",paddingX:"$4",zIndex:"1"},children:[Object(u.jsxs)(n.E,{direction:"row",className:"leftNav",gap:"$2",alignItems:"center",sx:{flex:"1"},children:[Object(u.jsx)(n.D,{x:-6,children:Object(u.jsx)(q,{onClick:X})}),Object(u.jsx)(J,{}),Object(u.jsx)(oe,{sx:{display:["none","flex"]}})]}),Object(u.jsx)(m,{logoNode:U,logoLink:H,site:w,"aria-label":`Navigate to the ${w} homepage`}),Object(u.jsx)(n.E,{direction:"row",gap:"$0",className:"rightNav",sx:{position:"relative",alignItems:"center",justifyContent:"flex-end",flex:"1"},children:["loggedIn"].includes(O)?Object(u.jsxs)(n.E,{direction:"row",alignItems:"center",gap:"$2",children:[Object(u.jsx)(Ae,{sx:{display:["none",null,"block"]}}),v?Object(u.jsx)(le,{}):null,Object(u.jsx)(Xe,{})]}):Object(u.jsx)(Se,{})})]}),Object(u.jsx)(pr,{minibarActive:D,headerBottomViewportPosition:L})]}),Object(u.jsx)(z,{sx:r?{display:"none"}:void 0}),Object(u.jsx)(pt,{active:D&&!A,sx:r?{display:"none"}:void 0,logoNode:U,logoLink:H,hamburgerHandler:X}),Y&&Object(u.jsx)(n.x,{initialFocus:E,open:!0,onClose:()=>W({type:"MODAL_CLOSE"}),sx:{padding:"0",width:"$128"},children:Object(u.jsx)(s.default,{ref:E,customFields:{blurb:"Sign In",customClasses:void 0},closeModal:()=>{P?"undefined"!=typeof window&&(window.location.href=P):($&&$(),W({type:"MODAL_CLOSE"}))},modalPrompt:k})})]})})};wr.propTypes={customFields:o.shape({insiderRedirect:o.bool.tag({name:"Enable Profile Page",description:"Check this box if you want the account button\n        to go to the profile page for logged in users"}),hide:o.bool.tag({name:"Hide Header",description:"Check this box if you want to hide the header",defaultValue:!1})})};t.default=wr},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(3),o=r(2),a=r(5),s=r(14),l=r(46),c=r(309),u=r(121),d=r(176),f=r(217),h=r(224),p=r(134),b=r(308),m=r(0);function g({headline:e,subheadline:t,children:r}){return Object(m.jsxs)(o.e,{className:"full-width-promo-object",position:"relative",sx:{"& .imageWrapper":{height:["calc(100vh - 97px)","calc(100vh - 146px)","calc(100vh - 151px)"],"& img":{borderRadius:"$none"},"&:before":{content:"''",width:"$full",background:"linear-gradient(to top, #222 0%, #0000 100%)",height:"$1/2",position:"absolute",bottom:"0",zIndex:1}}},children:[Object(m.jsxs)(o.E,{className:"full-width-headlines",gap:"$2",position:"absolute",bottom:"$9",width:"$full",zIndex:10,sx:{maxWidth:[null,null,"1200px"],bottom:["$9",null,"$7"],left:"50%",transform:"translateX(-50%)"},children:[Object(m.jsx)(o.q,{level:1,sx:{fontSize:["$4",null,"$6"],left:"0",right:"0"},textColor:"$white",children:e}),t?Object(m.jsx)(o.q,{level:2,sx:{fontSize:["$3",null,"$5"],marginLeft:"auto",marginRight:"auto",left:"0",right:"0"},textColor:"$white",fontWeight:"$light",children:t}):null]}),r]})}var v=r(71),y=r(151),w=r(33),O=r(218);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=Object(n.lazy)((()=>r.e(6).then(r.bind(null,531))));function E({primaryLivestream:e,secondaryLivestream:t,livestreamHero:r,promoImage:i,promoVideo:s,promoGallery:l,promoCustomEmbed:c,anyclipReady:u,captionPosition:d="bottom",height:f,width:h,scaleDirection:p="width",responsive:b=!0,autoPlay:g=!1,muted:j=!1,isSponsored:_=!1}){var E,k,C,P;const{siteProperties:{placeholderImage:M}}=Object(a.useAppContext)();if("reference"===(null==s?void 0:s.type)||"reference"===(null==s||null===(E=s.promo_items)||void 0===E||null===(k=E.basic)||void 0===k?void 0:k.type)){var $,T;if("reference"===s.type)return Object(m.jsx)("div",{className:"full-width",children:Object(m.jsx)(v.default,{customFields:{type:_?"sponsored":"featured",videoId:s.referent.id,isFeaturedSpot:!0,floating:!0,autoPlay:g,muted:j}})});if("reference"===(null===($=s.promo_items)||void 0===$||null===(T=$.basic)||void 0===T?void 0:T.type))return Object(m.jsx)("div",{className:"full-width",children:Object(m.jsx)(v.default,{customFields:{type:_?"sponsored":"featured",videoId:s.promo_items.basic.referent.id,isFeaturedSpot:!0,floating:!0,autoPlay:g,muted:j}})})}return e?Object(m.jsx)(n.Suspense,{fallback:Object(m.jsx)(o.d,{ratio:"16:9",bg:"$blueGray.100",borderRadius:["$none","$rg"]}),children:Object(m.jsx)(S,{className:"full-width",canonicalWebsite:e.embed.config.canonical_website,customFields:{daiAssetKey:e.embed.config.daiAssetKey,hl
2s:e.embed.config.hls,url:e.embed.config.canonical_url,poster:e.embed.config.poster,adTagUrl:e.embed.config.adTag_preroll,title:e.embed.config.title,autoPlay:g,muted:j},isLive:!0})}):t?Object(m.jsx)(n.Suspense,{fallback:Object(m.jsx)(o.d,{ratio:"16:9",bg:"$blueGray.100",borderRadius:["$none","$rg"]}),children:Object(m.jsx)(S,{className:"full-width",customFields:{daiAssetKey:t.daiAssetKey,hls:t.hls,poster:t.poster,title:t.title,autoPlay:g,muted:j},isLive:!0})}):r&&i&&!t?Object(m.jsx)(n.Suspense,{fallback:Object(m.jsx)(o.d,{ratio:"16:9",bg:"$blueGray.100",borderRadius:["$none","$rg"]}),children:Object(m.jsx)(S,{className:"full-width",customFields:{id:r.liveHeroPlayerID,hls:r.liveHeroStreamUrl,poster:i.url,title:r.liveHeroTitle,adTagUrl:r.liveHeroAdTag,autoPlay:g,muted:j},isLive:!0})}):!i||r||e||t||s||l?s&&u||s&&(null===(C=s.streams)||void 0===C?void 0:C[0].url)&&"video"===s.type?Object(m.jsx)("div",{className:"full-width",children:Object(m.jsx)(v.default,{customFields:{type:_?"sponsored":"featured",videoId:s._id,isFeaturedSpot:!0,floating:!0,autoPlay:g,muted:j}})}):s&&"video"===s.type?Object(m.jsx)(v.default,{customFields:{type:_?"sponsored":"featured",videoId:s._id,isFeaturedSpot:!0,floating:!0,autoPlay:g,muted:j}}):l&&l.content_elements?Object(m.jsx)(y.a,{className:"galleryWrapper full-width",data:l.content_elements}):c&&(null===(P=c.embed)||void 0===P?void 0:P.config)?Object(m.jsx)(O.a,{subtype:c.subtype,embed:x({},c.embed,{config:x({},c.embed.config,{isFeaturedSpot:!0,type:_?"sponsored":"featured",autoPlay:g,muted:j})})},c.embed.id):null:Object(m.jsx)(w.a,{url:null!==(I=i.url)&&void 0!==I?I:M,fallbackImage:M,scaleDirection:p,responsive:b,height:null!=f?f:i.height,width:null!=h?h:i.width,alt:i.caption||"",imgClassName:"promo full-width",lazy:!1,copyright:i.copyright,caption:i.caption,captionPosition:d,credits:null!==(A=null==i?void 0:i.credits)&&void 0!==A?A:void 0,sx:{"& .imageWrapper":{borderRadius:["$none","$rg"],overflow:"hidden"}}});var I,A}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const P={".articleBody .full-width:not(figure, .anyClipWrapper, .imageWrapper, .customEmbed.full-width, .customEmbed.pin), .articleBody .customEmbed.cloudinaryPicker, .full-width-promo-object .full-width":{width:"100vw",position:"relative",left:"50%",right:"50%",margin:"0 -50vw"},".articleBody":{paddingY:"$4"},".articleBody > .article-text, .articleBody > .article-header, .articleBody figure.full-width figcaption":{maxWidth:["100%",null,"640px"],width:"100%",marginLeft:"auto !important",marginRight:"auto !important"},".block-quote":{maxWidth:["100%",null,"640px"],marginLeft:"auto !important",marginRight:"auto !important"},".articleBody .anyClipWrapper.full-width, .articleBody .customEmbed:not(.pin) .imageWrapper, .articleBody figure.full-width, .articleBody .customEmbed.full-width":{maxWidth:[null,null,"1200px"],margin:[null,null,"2rem auto"]},".articleBody .customEmbed.pin":{backgroundColor:"white",maxWidth:"640px",marginX:"auto",padding:"0","& > div":{width:"100%"}},".articleBody .customEmbed.cloudinaryPicker":{backgroundColor:"white"}};var M=({storyAdFrequency:e=700,omne:t=!1,recommendedVideos:r=!0,noHero:i=!1,commentChat:v=!1,hearken:y=!1,hearkenId:w,hideMetadata:O=!1,guidelines:j,guidelinesText:x,guidelinesIcon:_,guidelinesTop:S,guidelinesBottom:M,livestreamHero:$=!1,liveHeroMute:T=!0,liveHeroAutoplay:I=!1,liveHeroStreamUrl:A,liveHeroAdTag:R,liveHeroPlayerID:D})=>{var L,N,B,z,F,U,H,V,G,W,q;const{globalContent:K}=Object(a.useAppContext)(),{content_elements:Y,taxonomy:{primary_section:{path:X,name:J}={}}={},promo_items:{basic:Z,livestream:Q}={},owner:{sponsored:ee=!1}={},corrections:te=[],editor_note:re,subtype:ne}=K,ie=["full-width","pins-showcase"].includes(ne||""),oe=null==Y?void 0:Y.some((e=>"custom_embed"===e.type&&"video_clip"===e.subtype||"video"===e.type)),ae=Object(s.i)(Z)?Z:Object(l.c)(K),se=Q&&"subtype"in Q&&"livestream"===Q.subtype?Q:void 0,le=Q&&"streams"in Q&&"live"===Q.subtype?{id:Q._id,hls:null===(L=Q.streams)||void 0===L?void 0:L[0].url,poster:(null===(N=Q.promo_items)||void 0===N?void 0:N.basic)&&"url"in Q.promo_items.basic?Q.promo_items.basic.url:null==ae?void 0:ae.url,title:(null===(B=Q.headlines)||void 0===B?void 0:B.basic)||K.headlines.basic,canonical_website:Q.canonical_website}:void 0,ce=Q&&"streams"in Q&&"video"===Q.type&&"wildmoka"===Q.subtype?Q:void 0,ue=(null===(z=K.promo_items)||void 0===z?void 0:z.basic)&&"video"===K.promo_items.basic.type?K.promo_items.basic:void 0,de="reference"===(null==Z?void 0:Z.type)&&"video"===Z.referent.type?Z:void 0,fe="custom_embed"===(null===(F=K.promo_items)||void 0===F||null===(U=F.basic)||void 0===U?void 0:U.type)&&"video_clip"===K.promo_items.basic.subtype?K.promo_items.basic:void 0,he="promo_items"in K&&(null===(H=K.promo_items)||void 0===H?void 0:H.basic)&&"gallery"===K.promo_items.basic.type?K.promo_items.basic:void 0,pe
2="promo_items"in K&&(null===(V=K.promo_items)||void 0===V?void 0:V.basic)&&"custom_embed"===K.promo_items.basic.type?K.promo_items.basic:void 0,be=Boolean((null===(G=K.promo_items)||void 0===G?void 0:G.basic)&&(null==ue||null===(W=ue.source)||void 0===W?void 0:W.source_id)&&(null==ue?void 0:ue.source.source_id.startsWith("anyclip_"))&&"video"===(null==ue?void 0:ue.type)),me={gacategory:"Article Rail",gaaction:"Section Link",galabel:J||void 0},ge=O?"none":"block",ve=ie?"block":"none",ye=ie?o.e:n.Fragment;return Object(m.jsx)(ye,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},ie?{padding:"$3",paddingTop:"0",className:"full-width-article",sx:P}:{},{children:ie?Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(g,{headline:K.headlines.basic,subheadline:K.subheadlines.basic,children:Object(m.jsx)(E,{promoImage:pe?void 0:ae,promoGallery:he,captionPosition:"overlay",scaleDirection:"height",responsive:!1,height:1200,isSponsored:ee})}),Y?Object(m.jsx)(d.a,{omne:t,recommendedVideos:r,data:Y,isSponsored:ee,location:K.location,storyAdFrequency:e,hideSharebar:!!ie,isVideoArticle:!!ue||!!de||!!se||!!le||!!ce||!!fe||"video_clip"===(null==pe?void 0:pe.subtype)||oe}):null]}):Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(o.e,{className:"articleInfo",sx:{display:["block",null,"none"],marginBottom:"$2"},children:Object(m.jsx)(o.q,{level:4,sx:{color:"$red.500",fontSize:"$3",textTransform:"uppercase",letterSpacing:"$wide"},children:Object(m.jsx)(o.t,{href:X,className:ee?void 0:"gaevent",gaTag:ee?{}:me,children:ee?"Sponsored":J})})}),Object(m.jsxs)(o.E,{gap:"$4",as:"article",marginBottom:"$5",className:"story",children:[Object(m.jsxs)(o.E,{gap:"$2",sx:{color:"$coolGray.900"},children:[Object(m.jsx)(o.q,{level:1,className:"headline",sx:{fontSize:["$5",null,"$7"],lineHeight:"$none",hangingPunctuation:"first"},innerContent:K.headlines.basic}),(null===(q=K.subheadlines)||void 0===q?void 0:q.basic)?Object(m.jsx)(o.q,{level:2,className:"subheadline",sx:{fontSize:["$3",null,"$5"],fontWeight:"$light",lineHeight:"$none",hangingPunctuation:"first"},innerContent:K.subheadlines.basic}):null]}),Object(m.jsx)(b.default,{mobileMetadata:ge,desktopMetadata:ve}),Object(m.jsxs)(o.E,{gap:"$3",className:"basicStory",sx:{display:"block",".branded, .editorsNote":{my:"$5"}},children:[i||ie?null:Object(m.jsx)(E,{primaryLivestream:se,secondaryLivestream:le,livestreamHero:$&&A&&D?{liveHeroAdTag:R,liveHeroPlayerID:D,liveHeroStreamUrl:A,liveHeroTitle:K.headlines.basic}:void 0,promoImage:pe?void 0:ae,promoVideo:ue||ce||de,promoGallery:he,promoCustomEmbed:pe,anyclipReady:Boolean(fe||de)||be,autoPlay:I,muted:T,isSponsored:ee}),ee?Object(m.jsx)(p.a,{}):null,re?Object(m.jsx)(h.a,{note:re}):null,v?Object(m.jsx)(u.default,{customFields:{guidelines:j,guidelinesText:x,guidelinesTop:S,guidelinesBottom:M,guidelinesIcon:_}}):null,y&&w?Object(m.jsx)(c.default,{customFields:{hearkenId:w}}):null,Object(m.jsx)("div",{className:"bcdialogue"}),Y&&Object(m.jsx)(d.a,{omne:t,recommendedVideos:r,data:Y,isSponsored:ee,location:K.location,storyAdFrequency:e,isVideoArticle:!!ue||!!de||!!se||!!le||!!ce||!!fe||"video_clip"===(null==pe?void 0:pe.subtype)||oe}),Object(m.jsx)(f.a,{list:te}),K.copyright&&Object(m.jsx)(o.M,{className:"copyright",sx:{color:"$blueGray.500",lineHeight:"$normal",fontSize:"$0",fontStyle:"italic"},children:K.copyright}),Object(m.jsx)(o.l,{variant:"$gray100"}),t?Object(m.jsx)("div",{id:"pressboard-ad-sponsorship-msg"}):null]})]})]})}))};const $=({customFields:{storyAdFrequency:e=0,omne:t=!1,recommendedVideos:r=!0,noHero:n,commentChat:i,hearken:o,hearkenId:a,hideMetadata:s,guidelines:l,guidelinesText:c,guidelinesTop:u,guidelinesBottom:d,guidelinesIcon:f,livestreamHero:h,liveHeroMute:p,liveHeroAutoplay:b,liveHeroStreamUrl:g,liveHeroAdTag:v,liveHeroPlayerID:y}})=>Object(m.jsx)(M,{storyAdFrequency:e,omne:t,recommendedVideos:r,noHero:n,commentChat:i,hearken:o,hearkenId:a,hideMetadata:s,guidelines:l,guidelinesText:c,guidelinesTop:u,guidelinesBottom:d,guidelinesIcon:f,livestreamHero:h,liveHeroMute:p,liveHeroAutoplay:b,liveHeroStreamUrl:g,liveHeroAdTag:v,liveHeroPlayerID:y});$.propTypes={customFields:i.shape({storyAdFrequency:i.number.tag({name:"Story Ad Frequency",label:"Story Ad Frequency",de
2scription:"Number of characters between ads. Set to 0 to disable fixed ads.",defaultValue:0}),omne:i.bool.tag({name:"Omne Branded Content",defaultValue:!1,group:"Article Subtypes",description:"This enables a script for Omne Branded Content articles."}),recommendedVideos:i.bool.tag({name:"Recommended Video Player",defaultValue:!0,group:"Article Subtypes",description:"The recommended video player will display if this is checked. It is checked by default."}),noHero:i.bool.tag({name:"No Hero",defaultValue:!1,group:"Article Subtypes",description:"No Hero will display at all if checked."}),livestreamHero:i.bool.tag({name:"Livestream Hero",defaultValue:!1,group:"Article Subtypes",description:"On switch for livestream hero. The GMG Livestream will replace the article hero."}),hearken:i.bool.tag({name:"Hearken",defaultValue:!1,group:"Article Subtypes",description:"Displays a Hearken embed below the hero."}),hearkenId:i.string.tag({name:"Hearken ID",group:"Article Subtypes",description:"Required in order to render the Hearken Subtype."}),commentChat:i.bool.tag({name:"Community Forum Chat",defaultValue:!1,group:"Article Subtypes",description:"Displays the comment feature directly below the hero of the story."}),hideMetadata:i.bool.tag({name:"Hide Metadata on Mobile?",defaultValue:!1,group:"Article Subtypes",description:"This toggle will hide author, dates, and article tags on mobile."}),guidelines:i.string.tag({name:"Comment Guidelines URL",group:"Community Forum Settings"}),guidelinesText:i.string.tag({name:"Community Guidelines Text",group:"Community Forum Settings"}),guidelinesIcon:i.string.tag({name:"Community Guidelines Icon",group:"Community Forum Settings"}),guidelinesTop:i.bool.tag({name:"Display Above?",description:"This will render the diagloge at the TOP of the Comments feature. You can use both.",group:"Community Forum Settings"}),guidelinesBottom:i.bool.tag({name:"Display Below?",description:"This will render the diagloge at the BOTTOM of the Comments feature. You can use both.",group:"Community Forum Settings"}),liveHeroMute:i.bool.tag({name:"Featured Video Muted on Load",defaultValue:!0,group:"Video Settings"}),liveHeroAutoplay:i.bool.tag({name:"Featured Video Autoplay",defaultValue:!1,group:"Video Settings"}),liveHeroStreamUrl:i.string.tag({name:"Featured Livestream URL",group:"Video Settings"}),liveHeroAdTag:i.string.tag({name:"Featured Livestream Ad Tag",group:"Video Settings"}),liveHeroPlayerID:i.string.tag({name:"Featured Livestream Player ID",defaultValue:"",group:"Video Settings"})}).isRequired};t.default=$},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(10),s=r(16),l=r.n(s),c=r(26),u=r(20),d=r(1),f=r(130),h=r(12);function p(){const[,e]=Object(d.useReducer)((e=>!e),!1);return e}var b=r(14),m=r(33),g=r(0);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=["gmg-sandbox"],j=["powaRender","powaReady","start","playlist","loaded","adReady","adLoaded","adStart","adPlay","adPause","adImpression","adSkip","adMute","adContentResumeRequested","adFirstFrame","adComplete","adEnd","adError","adContentResumeRequested","adDestroyed","adPlaylistComplete","mediaStart","playback0","playback25","playback50","playback75","playback100","play","pause","firstframe","playPauseClick","playlistComplete","complete","end","seeked","muted","fullscreen","progress","shareFacebook","shareTwitter","shareEmail","hlsLevelSwitch","hlsInitialLevel","error"],x=()=>{window.addEventListener("powaReady",(e=>{const{powa:t}=e.detail,r=e.detail.element.dataset.googleAnalytics;
2r&&JSON.parse(r.toLowerCase())&&j.forEach((e=>{t.on(e,((e,t)=>{((e,t)=>{if("undefined"!=typeof window){var r;"play"===(null==e?void 0:e.type)&&Object(h.c)("video_playing");const{dataLayer:n=[]}=window,i={event:`powaVideoEvent_${t}`,powaEventName:t,powaEvent:e,powaVideoId:null===(r=e.videoData)||void 0===r?void 0:r._id};n.push(i)}})(e,t)}))}))}))};var _=({_id:e,className:t,fullWidth:r=!1,separator:o=",",showPreroll:a=!0,autoPlay:s=!1,loop:v=!1,muted:w=!1,showControls:j=!0,shouldBeStatic:_=!1,noAnalytics:S=!1,livestreamPicker:E=!1,adTagUrl:k="",sx:C,pbStyles:{headingOverride:P,captionOverride:M,showCaption:$=!0,showCredits:T=!0,showHeadline:I=!1,showDescription:A=!1,textLocation:R="bottom",mobileHeadingSize:D="$2",tabletHeadingSize:L,desktopHeadingSize:N="$3",headingColor:B="$blueGray.900",headingWeight:z="$bold",mobileDescriptionSize:F="$1",tabletDescriptionSize:U,desktopDescriptionSize:H,descriptionWeight:V="$normal",descriptionColor:G="$blueGray.600"}={}})=>{var W,q;const[K,Y]=Object(d.useState)(!1),[X,J]=Object(d.useState)(s),{arcSite:Z,globalContent:Q,siteProperties:{GamNetworkId:ee}}=Object(i.useAppContext)(),te=`powa-${e}`,{ref:re,inView:ne}=Object(f.a)({root:null,rootMargin:"0px",threshold:.5}),ie=O.includes(u.ENVIRONMENT),oe=ie?"https://d3t0x48b5v1we0.cloudfront.net/sandbox/powaBoot.js?org=gmg":"https://d3t0x48b5v1we0.cloudfront.net/prod/powaBoot.js?org=gmg",ae=Object(c.useContent)(e?{source:"content-api",query:{_id:e,"arc-site":Z,published:!0}}:void 0);if(Object(d.useEffect)((()=>{(ne||ae&&"object"==typeof window&&(s||!ae.promo_items))&&(()=>{const e="gmgPowaPlayerScriptNode";if(null==document.getElementById(e)){const t=document.createElement("script");t.type="text/javascript",t.src=oe,t.id=e,t.onload=()=>{"undefined"!=typeof window&&window.powaBoot(),setTimeout((()=>{Y(!0)}),500)},document.head.appendChild(t),x()}else Y(!0)})()}),[ae,s,te,oe,ne]),!ae&&e)return Object(g.jsx)(n.d,{ratio:"16:9",bg:"$blueGray.50",className:l()(t,{"full-width":r}),sx:y({display:"grid"},C)});if(!ae)return null;const{credits:{by:se=[],affiliation:le=[]}={},description:{basic:ce}={},headlines:{basic:ue}={},promo_items:{basic:de}={},websites:fe}=ae,he=Object(b.i)(de)?de:void 0,pe=(null===(W=fe[Z])||void 0===W?void 0:W.website_url)||ae.canonical_url,be=T?{videoCredits:se.map((e=>e.name||e.org)).concat(le.map((e=>e.name))).join(`${o} `),imageCredits:(null==he||null===(q=he.credits)||void 0===q?void 0:q.by)?he.credits.by.map((e=>e.name||e.org)).concat(he.credits.affiliation?he.credits.affiliation.map((e=>e.name)):[]).join(`${o} `):void 0}:void 0;return"undefined"!=typeof window&&(window.PoWaSettings=window.PoWaSettings||{},window.PoWaSettings.error=window.PoWaSettings.error||{style:"\n        .powa-outage {\n          position: absolute;\n          width: 100%;\n          height: 100%;\n          overflow: hidden;\n          background-color: #374db5;\n          background-size: cover;\n          background-repeat: no-repeat;\n          background-position: center;\n          color: #ffffff;\n          font-size: 24px;\n          display: flex;\n          align-items: center;\n          justify-content: space-around;\n          z-index: 2;\n          padding: 2rem;\n        }",template:e=>{console.error("PoWa Error"),console.error(e.eventID),console.error(e.message);const t={930:"We are currently experiencing abornam",931:"Sorry, this video is not available in your area.",932:"This livestream has not yet started.",933:"This livestream has ended.",934:"This livestream has ended."};932===e.eventID&&setTimeout(p,5e3);return t[e.eventID]?t[e.eventID]:"There has been an error with this livestream.  Please refresh and try again."}},window.PoWaSettings.advertising=window.PoWaSettings.advertising||{},ae&&(window.PoWaSettings.advertising.adBar=!0,window.PoWaSettings.advertising.adTag=function({videoData:t}){if(!a)return"";if(k)return k;const{canonical_website:r,canonical_url:n,taxonomy:{primary_section:{_id:i=""}={},tags:o=[]}={}}=t,s=`/${ee}/${Z.toUpperCase()}/Web${i}`,l=o.map((e=>`${e.text}`)),c=Object(h.d)("newspassid")||"";let u=`tags=${l.join(",")}&coid=${e}&ppid=${c}`;if(Q){const{taxonomy:{primary_section:{_id:t=""}={},tags:r=[]}={},_id:n=!1}=Q;n&&n!==e&&(u=`${u}&content_coid=${n}&content_section=${t}&content_tags=${r.map((e=>`${e.text.toLowerCase()}`)).join(",")}`)}const d=encodeURIComponent(u),f=encodeURIComponent(`https://${b.b[r]||""}${n}`);let p=`https://pubads.g.doubleclick.net/gampad/ads?iu=${s}&env=vp&ad_type=video&vpos=preroll&impl=s&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640x480&unviewed_position_start=1&max_ad_duration=30000&url=${f}&description_url=${f}`;return p=`${p}&cust_params=${d}&ppid=${c}`,console.log(`Built Video AdTag : ${p}`),p}),"powaBoot"in window&&window.powaBoot()),Object(g.jsxs)(n.E,{ref:re,gap:"$3",direction:"bottom"===R?"column":"column-reverse",className:l()(t,{"full-width":r}),sx:C,children:[Object(g.jsxs)(n.e,{sx:{display:"grid"},children:[Object(g.jsxs)(n.e,{as:"figure",sx:{gridArea:"1 / 1"},onClick:()=>{E&&J(!0)},children:[Object(g.jsx)(n.d,{bg:"$blueGray.50",ratio:"16:9",children:ie?Object(g.jsx)("div",{className:"powa",id:`powa-${e}`,"data-org":"gmg","data-env":"sandbox","data-api":"sandbox","data-uuid":e,"data-aspect-ratio":"0.562","data-autoplay-muted":X,"data-muted":w,"data-controls":j,"data-autoplay":X,"data-loop":v,"data-google-analytics":!S,"data-poster":!1}):Object(g.jsx)("div",{className:"powa",id:`powa-${e}`,"data-org":"gmg","data-uuid":e,"data-aspect-ratio":"0.562","data-autoplay-muted":X,"data-controls":j,"data-autoplay":X,"data-loop":v,"data-muted":w,"data-google-analytics":!S,"data-poster":!1})}),_&&Object(g.jsx)("script",{src:oe,async:!0}),($||T)&&K?Object(g.jsxs)(n.e,{as:"figcaption",lineHeight:"$normal",textColor:"$blueGray.400",px:["$4",null,"$0"],mt:"$1",sx:{fontSize:"$0",fontStyle:"italic"},children:[$&&Object(g.jsx)(n.M,{as:"span",innerContent:ce}),(null==be?void 0:be.videoCredits)&&Object(g.jsx)(n.M,{as:"span",children:` (${be.videoCredits})`})]}):null]}),_||!he||K?null:Object(g.jsx)(n.e,{sx:{gridArea:"1 / 1",zIndex:K?"-1":"5",position:"relative"},children:Object(g.jsx)(m.a,{imgClassName:"promo full-width",url:he.url,width:he.width||1920,height:he.height||1080,alt:he.caption||"No description available",caption:$?ce:void 0,copyright:T?null==be?void 0:be.imageCredits:void 0})})]}),(I||A)&&Object(g.jsxs)(n.E,{gap:"$2",className:"content",children:[I&&Object(g.jsx)(n.t,{href:pe,children:Object(g.jsx)(n.q,{level:3,textColor:B,fontWeight:z,innerContent:P||ue,sx:{fontSize:[D,L,N]}})}
2),A&&ce&&Object(g.jsx)(n.M,{textColor:G,fontWeight:V,innerContent:M||ce,sx:{fontSize:[F,U,H]}})]})]},e)},S=r(150),E=r.n(S);const k=e=>{const{className:t="",fullWidth:r=!1,showPreroll:o=!0,autoPlay:a=!1,loop:s=!1,showControls:c=!0,shouldBeStatic:f=!1,click:m=(()=>!0),muted:v=!1,noAnalytics:y=!1,feedUrl:w,poster:O=null}=e,[j,x]=Object(d.useState)(!1),[_]=Object(d.useState)(a),[S]=Object(d.useState)(E()("powa_")),k=Object(i.useAppContext)(),{arcSite:C,siteProperties:{GamNetworkId:P}}=k;const M=["gmg-sandbox","localhost"].includes(u.ENVIRONMENT)?"https://d3t0x48b5v1we0.cloudfront.net/sandbox/powa.js?org=gmg":"https://d3t0x48b5v1we0.cloudfront.net/prod/powa.js?org=gmg",$=()=>{var e;const t="gmgPowaPlayerExternalScriptNode";if(null==document.getElementById(t)){const e=document.createElement("script");e.type="text/javascript",e.src=M,e.id=t,e.onload=()=>{x(!0),Object(h.c)("powa_loaded")},document.head.appendChild(e)}else(null===(e=window)||void 0===e?void 0:e.PoWa)?x(!0):document.addEventListener("powa_loaded",(()=>{x(!0)}))};return Object(d.useEffect)((()=>{!a&&O||$()})),Object(d.useEffect)((()=>{if(j){new window.PoWa({id:S,live:!0,stream:w,error:console.error,promo:{image:O},loop:s,showControls:c,muted:v,autoPlay:_})}}),[j]),"undefined"!=typeof window&&(window.PoWaSettings=window.PoWaSettings||{},window.PoWaSettings.error=window.PoWaSettings.error||{style:"\n        .powa-outage {\n          position: absolute;\n          width: 100%;\n          height: 100%;\n          overflow: hidden;\n          background-color: #374db5;\n          background-size: cover;\n          background-repeat: no-repeat;\n          background-position: center;\n          color: #ffffff;\n          font-size: 24px;\n          display: flex;\n          align-items: center;\n          justify-content: space-around;\n          z-index: 2;\n          padding: 2rem;\n        }",template:e=>{console.error("PoWa Error"),console.error(e.eventId),console.error(e.message);const t={930:"We are currently experiencing abornmal traffic.",931:"Sorry, this video is not available in your area.",932:"This livestream has not yet started.",933:"This livestream has ended.",934:"This livestream has ended."};932===e.eventId&&setTimeout(p,5e3);return t[e.eventID]?t[e.eventID]:"There has been an error with this livestream.  Please refresh and try again."}},window.PoWaSettings.advertising=window.PoWaSettings.advertising||{},window.PoWaSettings.advertising.adBar=!0,window.PoWaSettings.advertising.adTag=async function({videoData:e}){if(!o)return"";const{canonical_website:t,canonical_url:r,taxonomy:{primary_section:{_id:n=""}={},tags:i=[]}}=e,a=`/${P}/${C}/Web${n}`,s=i.map((e=>`${e.text}`)),l=Object(h.d)("newspassid")||"",c=new URLSearchParams({tags:s,coid:S,ppid:l});return`https://pubads.g.doubleclick.net/gampad/ads?${new URLSearchParams({iu:a,description_url:`https://${b.b[t]||""}${r}`,env:"vp",impl:"s",tfcd:0,npa:0,gdfp_req:1,output:"vast",sz:"640x480",cust_params:c.toString(),max_ad_duration:3e4,unviewed_position_start:1,ppid:l}).toString()}`},"powaBoot"in window&&window.powaBoot()),Object(g.jsxs)(n.d,{bg:"$blueGray.50",ratio:"16:9",className:l()(t,{"full-width":r}),children:[Object(g.jsxs)(n.e,{as:"figure",children:[Object(g.jsxs)("div",{onClick:m,onKeyUp:e=>{[13,32].includes(e.code)&&m()},role:"button",tabIndex:0,children:[Object(g.jsx)(n.O,{children:"Click to play video"}),Object(g.jsx)("div",{"data-google-analytics":!y,id:S})]}),f&&Object(g.jsx)("script",{src:M,async:!0})]}),!f&&!j&&O&&Object(g.jsxs)("div",{onMouseEnter:()=>{$()},style:{position:"absolute",top:0,left:0,zIndex:1},children:[Object(g.jsx)("img",{src:O,className:"promo full-width",alt:"Max Engage video"}),Object(g.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",display:"flex",alignItems:"center",justifyContent:"space-around",top:"-11px",left:0},children:Object(g.jsx)("button",{"aria-label":"Play",title:"Play",className:"powa-button powa-shot-play-btn powa-click-promo-play",type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",color:"rgb(240,248,255)",fill:"rgb(240,248,255)",boxShadow:"0 0 10px 5px rgb(0 0 0 / 25%)",cursor:"pointer",backgroundColor:"inherit",borderColor:"inherit",borderStyle:"inherit",padding:"inherit"},children:Object(g.jsx)("svg",{className:"powa-shot-play-icon powa-f-6",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 438.533 438.533",style:{height:"6em",width:"6em"},xmlSpace:"preserve",children:Object(g.jsxs)("g",{children:[Object(g.jsx)("path",{d:"M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0 c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267 c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407 s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062 C438.533,179.485,428.732,142.795,409.133,109.203z M353.742,297.208c-13.894,23.791-32.736,42.64-56.527,56.534 c-23.791,13.894-49.771,20.834-77.945,20.834c-28.167,0-54.149-6.94-77.943-20.834c-23.791-13.895-42.633-32.743-56.527-56.534 c-13.897-23.791-20.843-49.772-20.843-77.941c0-28.171,6.949-54.152,20.843-77.943c13.891-23.791,32.738-42.637,56.527-56.53 c23.791-13.895,49.772-20.84,77.943-20.84c28.173,0,54.154,6.945,77.945,20.84c23.791,13.894,42.634,32.739,56.527,56.53 c13.895,23.791,20.838,49.772,20.838,77.943C374.58,247.436,367.637,273.417,353.742,297.208z"}),Object(g.jsx)("path",{d:"M328.911,203.561l-155.32-91.36c-5.896-3.617-11.991-3.711-18.271-0.284c-6.09,3.615-9.136,8.942-9.136,15.984v182.725 c0,7.04,3.046,12.371,9.136,15.985c3.046,1.522,6.09,2.286,9.135,2.286c3.234,0,6.283-0.856,9.136-2.567l155.32-91.361 c6.088-3.426,9.134-8.661,9.134-15.699C338.045,212.23,334.992,206.988,328.911,203.561z"})]})})})})]})]},S)};k.propTypes={className:o.string,fullWidth:o.bool,showPreroll:o.bool,autoPlay:o.bool,loop:o.bool,showControls:o.bool,shouldBeStatic:o.bool,muted:o.bool,click:o.func,noAnalytics:o.bool,feedUrl:o.string.isRequired,poster:o.string};var C=k,P=r(56);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T=({customFields:{videoId:e,showCaption:t=!0,showHeadline:r=!1,showDescription:o=!1,noAnalytics:a,streamUrl:s,posterImage:l,textLocation:c="bottom",dividerHeadingGC:u,dividerHeadingContent:d,dividerHeadingLink:f,dividerColor:h="$red.500",dividerMobileHeadingSize:p="$2",dividerTabletHeadingSize:b,dividerDesktopHeadingSize:m="$3",divi
2derHeadingWeight:v="$bold",dividerHeaderColor:y="$blueGray.900",horizontalAlignment:w="left",verticalAlignment:O="top",bgColor:j="$transparent",headingOverride:x,captionOverride:S,mobileHeadingSize:E="$2",tabletHeadingSize:k,desktopHeadingSize:M="$3",headingColor:$="$blueGray.900",headingWeight:T="$bold",mobileDescriptionSize:I="$1",tabletDescriptionSize:A,desktopDescriptionSize:R,descriptionWeight:D="$normal",descriptionColor:L="$blueGray.600"}})=>{const{isAdmin:N}=Object(i.useAppContext)();return!N||e||s?Object(g.jsxs)(n.E,{as:"article",gap:"$3",className:"global-videoPlayer",children:[d&&Object(g.jsx)(P.default,{customFields:{dividerHeadingGC:u,dividerHeadingContent:d,dividerHeadingLink:f,dividerColor:h,dividerMobileHeadingSize:p,dividerTabletHeadingSize:b,dividerDesktopHeadingSize:m,dividerHeadingWeight:v,dividerHeaderColor:y,horizontalAlignment:w,verticalAlignment:O,bgColor:j,dividerHeadingLevel:4}}),s?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(C,{feedUrl:s,poster:l,noAnalytics:a}),(r||o)&&Object(g.jsxs)(n.E,{gap:"$2",className:"content",children:[r&&x&&Object(g.jsx)(n.q,{level:3,textColor:$,fontWeight:T,innerContent:x,sx:{fontSize:[E,k,M]}}),o&&S&&Object(g.jsx)(n.M,{textColor:L,fontWeight:D,innerContent:S,sx:{fontSize:[I,A,R]}})]})]}):Object(g.jsx)(_,{_id:e,noAnalytics:a,pbStyles:{headingOverride:x,captionOverride:S,showCaption:t,showHeadline:r,showDescription:o,textLocation:c,showCredits:!0,mobileHeadingSize:E,tabletHeadingSize:k,desktopHeadingSize:M,headingColor:$,headingWeight:T,mobileDescriptionSize:I,tabletDescriptionSize:A,desktopDescriptionSize:R,descriptionWeight:D,descriptionColor:L}})]}):Object(g.jsx)(n.e,{sx:{backgroundColor:"$lightBlue.100",color:"$lightBlue.900",py:"$5",px:"$4",borderRadius:"$md"},children:"Please supply a video ID or stream url in the custom fields."})};T.propTypes={customFields:o.shape(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({videoId:o.string.tag({name:"Arc Video ID"}),noAnalytics:o.bool.tag({name:"Disable Google Analytics"}),streamUrl:o.string.tag({name:"Direct Stream URL",description:"If the video is not in Video Center, you can add a direct URL here."}),posterImage:o.string.tag({name:"Poster Image",description:"Poster Image for videos not in Video Center"})},a.f,{textLocation:o.oneOf(["top","bottom"]).tag({name:"Text Location",description:"Where the text should be displayed",labels:{top:"Top",bottom:"Bottom"},defaultValue:"bottom",group:"Display Options"}),showCaption:o.bool.tag({name:"Show small video caption",description:"Show the caption below the video",defaultValue:!0,group:"Display Options"}),showHeadline:o.bool.tag({name:"Show headline",defaultValue:!1,group:"Display Options"}),showDescription:o.bool.tag({name:"Show caption",description:"show caption below headline",defaultValue:!1,group:"Display Options"}),headingOverride:o.string.tag({name:"Headline",description:"This will override any headline from video center",defaultValue:void 0,group:"Typography Options"}),captionOverride:o.string.tag({name:"Caption",description:"This will override any caption from video center",defaultValue:void 0,group:"Typography Options"}),mobileHeadingSize:Object(a.c)({name:"Mobile Headline Size",defaultValue:"$2",group:"Typography Options"}),tabletHeadingSize:Object(a.c)({name:"Tablet Headline Size",defaultValue:null,group:"Typography Options"}),desktopHeadingSize:Object(a.c)({name:"Desktop Headline Size",defaultValue:"$3",group:"Typography Options"}),headingWeight:Object(a.d)({name:"Heading Weight",defaultValue:"$bold",group:"Typography Options"}),headingColor:Object(a.a)({name:"Heading Color",defaultValue:"$blueGray.900",group:"Typography Options"}),mobileDescriptionSize:Object(a.c)({name:"Mobile Description Size",defaultValue:"$0",group:"Typography Options"}),tabletDescriptionSize:Object(a.c)({name:"Tablet Description Size",defaultValue:null,group:"Typography Options"}),desktopDescriptionSize:Object(a.c)({name:"Desktop Description Size",defaultValue:"$1",group:"Typography Options"}),descriptionWeight:Object(a.d)({name:"Description Weight",defaultValue:"$normal",group:"Typography Options"}),descriptionColor:Object(a.a)({name:"Description Color",defaultValue:"$blueGray.600",group:"Typography Options"})}))};t.default=T},function(e,t,r){"use strict";r.r(t);var n=r(26),i=r(5),o=r(3),a=r(2),s=r(10),l=r(33),c=r(31),u=r(0);
2var d=({name:e,description:t,imageUrl:n,url:i,city:o,state:s,location:d,address:f,displayDate:h,desktopCards:p,categories:b})=>{const{status:m}=Object(c.b)(),g="loggedIn"===m,v=new Date(h).toLocaleDateString("en-US",{month:"long",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0});const y=async()=>{if(g){const{getUser:e,isInitialized:t}=await r.e(0).then(r.bind(null,220));if(!t())return;const n=e();n&&n.setCustomUserAttribute("local_calendar_events_interest",b,!0)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"clickEvent",gaCategory:"Cityspark Event Feature",gaAction:i,gaLabel:b.join(", ")})};return Object(u.jsx)(a.e,{boxShadow:"$default",borderRadius:"$rg",sx:{minHeight:"14rem"},children:Object(u.jsxs)(a.p,{gridTemplateColumns:p?"1fr":["1fr",null,null,"1fr 1.5fr"],gridTemplateRows:p?"minmax(auto, 223px) 1fr":["minmax(auto, 223px) 1fr",null,null,"1fr"],minHeight:["360px",null,null,"100%"],sx:p?{borderTopLeftRadius:".25rem",borderTopRightRadius:".25rem",overflow:"hidden"}:{borderTopLeftRadius:".25rem",borderTopRightRadius:[".25rem",null,null,"0"],borderBottomLeftRadius:["0",null,null,".25rem"],borderBottomRightRadius:["0",null,null,"0"],overflow:"hidden"},children:[Object(u.jsxs)(a.t,{href:i,sx:{position:"relative",display:"block",width:"100%",height:"100%",backgroundColor:"$blueGray.700",overflow:"hidden"},onClick:y,children:[Object(u.jsx)(l.a,{url:n,alt:e,layout:"fill",objectFit:"contain",fallbackImage:"https://res.cloudinary.com/graham-media-group/image/upload/v1721332280/eventFallback_700x500.png",placeholder:"$blueGray.200",sx:{zIndex:1}}),Object(u.jsx)(l.a,{url:n,alt:e,layout:"fill",objectFit:"cover",fallbackImage:"https://res.cloudinary.com/graham-media-group/image/upload/v1721332280/eventFallback_700x500.png",placeholder:"$blueGray.200",sx:{position:"absolute",top:0,width:"100%",img:{filter:"blur(16px)"}}})]}),Object(u.jsxs)(a.E,{gap:"$3",direction:"column",padding:"$3",sx:{overflow:"hidden"},children:[Object(u.jsx)(a.t,{href:i,onClick:y,children:Object(u.jsx)(a.q,{level:3,fontSize:"$3",children:e})}),Object(u.jsxs)(a.E,{gap:"$3",direction:"column",children:[Object(u.jsxs)(a.t,{href:i,onClick:y,children:[Object(u.jsx)(a.M,{textColor:"$red.500",fontSize:"$1",fontWeight:"$semibold",children:v}),d?Object(u.jsx)(a.M,{textColor:"$blueGray.600",fontSize:"$1",fontWeight:"$semibold",children:d}):null,Object(u.jsxs)(a.M,{textColor:"$blueGray.600",fontSize:"$1",children:[f?`${f}, `:null,o?`${o}, `:null,s]})]}),t?Object(u.jsx)(a.t,{href:i,onClick:y,children:Object(u.jsx)(a.M,{textColor:"$blueGray.600",fontSize:"$1",sx:{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",wordWrap:"break-word",overflow:"hidden"},children:t})}):null]}),Object(u.jsx)(a.t,{href:i,variant:"$primary",onClick:y,children:Object(u.jsx)(a.M,{fontSize:"$2",fontWeight:"$bold",fontFamily:"$gibson",children:"Learn More"})})]})]})})};var f=({addEventUrl:e,desktopCards:t,addBorder:r})=>{const n=r?"1px solid #3b82f6":"none",i=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"clickEvent",gaCategory:"Cityspark Event Feature",gaAction:"Add Event",gaLabel:e})};return Object(u.jsx)(a.e,{boxShadow:"$default",borderRadius:"$rg",sx:{minHeight:"14rem",border:n},children:Object(u.jsxs)(a.p,{gridTemplateColumns:t?"1fr":["1fr",null,null,"1fr 1.5fr"],gridTemplateRows:t?"minmax(auto, 223px) 1fr":["minmax(auto, 223px) 1fr",null,null,"1fr"],minHeight:["360px",null,null,"100%"],sx:t?{borderTopLeftRadius:".25rem",borderTopRightRadius:".25rem",overflow:"hidden"}:{borderTopLeftRadius:".25rem",borderTopRightRadius:[".25rem",null,null,"0"],borderBottomLeftRadius:["0",null,null,".25rem"],borderBottomRightRadius:["0",null,null,"0"],overflow:"hidden"},children:[Object(u.jsx)(a.t,{href:e,sx:{position:"relative",display:"block",width:"100%",height:"100%",backgroundColor:"$blueGray.200",overflow:"hidden"},onClick:i,children:Object(u.jsx)(l.a,{url:"https://res.cloudinary.com/graham-media-group/image/upload/v1721332280/eventFallback_700x500.png",alt:"Add Event",layout:"fill",objectFit:"contain",fallbackImage:"https://res.cloudinary.com/graham-media-group/image/upload/v1721332280/eventFallback_700x500.png",placeholder:"$blueGray.200",sx:{zIndex:1}})}),Object(u.jsxs)(a.E,{gap:"$3",direction:"column",padding:"$3",sx:{overflow:"hidden"},children:[Object(u.jsx)(a.t,{href:e,onClick:i,children:Object(u.jsx)(a.q,{level:3,fontSize:"$3",children:"Promote An Event!"})}),Object(u.jsxs)(a.E,{gap:"$3",direction:"column",children:[Object(u.jsxs)(a.t,{href:e,onClick:i,children:[Object(u.jsx)(a.M,{textColor:"$red.500",fontSize:"$1",fontWeight:"$semibold",children:"When is it?"}),Object(u.jsx)(a.M,{textColor:"$blueGray.600",fontSize:"$1",fontWeight:"$semibold",children:"Where?"})]}),Object(u.jsx)(a.t,{href:e,onClick:i,children:Object(u.jsx)(a.M,{textColor:"$blueGray.600",fontSize:"$1",sx:{dis
2play:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",wordWrap:"break-word",overflow:"hidden"},children:"Hosting or know of an upcoming event? Spread the word and let your community know!"})})]}),Object(u.jsx)(a.t,{href:e,variant:"$primary",onClick:i,children:Object(u.jsx)(a.M,{fontSize:"$2",fontWeight:"$bold",fontFamily:"$gibson",children:"Add An Event 👈"})})]})]})})};const h=({customFields:{latitude:e,longitude:t,radius:r=5,sort:o=1,eventAmount:s,date:l,city:c,state:h,address:p,location:b,addButton:m=!0,buttonCard:g=!0,addBorder:v=!0,buttonPosition:y=1,desktopCards:w=!0,mobileColumns:O=1,tabletColumns:j,desktopColumns:x,xGap:_="$3",yGap:S="$5"}})=>{const E=Object(n.useContent)({source:"cityspark",query:{latitude:e,longitude:t,radius:r,location:b,city:c,state:h,address:p,limit:25,sortBy:o,startDate:l}}),{arcSite:k}=Object(i.useAppContext)();if(!E||0===E.events.length)return Object(u.jsx)("p",{children:"No events found or you may need to refresh the page if the feature settings have been updated."});const C=(e=>{const t=new Set;return e.filter((e=>{const r=t.has(e.eventId);return t.add(e.eventId),!r}))})(E.events).slice(0,s),P=l?new Date(l):new Date,M=`https://hub.cityspark.com/event/submission/${{demo:"WDIVDetroit",wdiv:"WDIVDetroit",kprc:"KPRCHouston",ksat:"KSATSanAntonio",wkmg:"WKMGOrlando",wjxt:"WJXTJacksonville",wplg:"WPLG",wsls:"WSLSRoanoke"}[k]}`;return Object(u.jsxs)(a.E,{gap:"$5",children:[m&&1===y&&!g?Object(u.jsx)(a.f,{as:"a",onClick:()=>{window.location.href=M},children:"Add Your Event"}):null,Object(u.jsxs)(a.p,{columns:[O,j,x],xGap:_,yGap:S,children:[m&&1===y&&g?Object(u.jsx)(f,{addEventUrl:M,desktopCards:w,addBorder:v}):null,C.map((e=>{var t;const r=((e,t)=>{const r=new Date(t.getTime()+12096e5),n=e.filter((e=>{const n=new Date(e.startDateTime);return n>=t&&n<=r}));if(0===n.length)return e[0].startDateTime;let i=n[0].startDateTime,o=Math.abs(new Date(n[0].startDateTime).getTime()-t.getTime());return n.forEach((e=>{const r=new Date(e.startDateTime),n=Math.abs(r.getTime()-t.getTime());n<o&&(i=e.startDateTime,o=n)})),i})(e.instances,P),n=e.categories.map((e=>e.name));return Object(u.jsx)(d,{name:e.name,description:e.description,imageUrl:(null===(t=e.primaryImage)||void 0===t?void 0:t.largeImageUrl)||"",url:e.url,location:e.location.locationName,city:e.location.city,state:e.location.state,address:e.location.address,displayDate:r,desktopCards:w,categories:n},e.eventId)})),m&&2===y&&g?Object(u.jsx)(f,{addEventUrl:M,desktopCards:w,addBorder:v}):null]}),m&&2===y&&!g?Object(u.jsx)(a.f,{as:"a",onClick:()=>{window.location.href=M},children:"Add Your Event"}):null]})};h.propTypes={customFields:o.shape({latitude:o.string.tag({name:"Latitude",description:"",defaultValue:""}),longitude:o.string.tag({name:"Longitude",description:"",defaultValue:""}),radius:o.number.tag({name:"Area Radius",description:"",defaultValue:5}),date:o.date.tag({name:"Date",description:"Designate the date to start the events from. Defaults to the current date.",defaultValue:(new Date).toISOString()}),sort:o.oneOf([1,2]).tag({name:"Sort By",labels:{1:"Date",2:"Name"},defaultValue:1}),eventAmount:o.number.tag({name:"Limit Amount",description:"Set a top limit of events that could display. The top amount and default is 25.",defaultValue:25}),desktopCards:o.bool.tag({name:"Display as cards on desktop?",description:"Events will display as a list by default on desktop.",defaultValue:!0}),addButton:o.bool.tag({name:"Display button?",group:"Add Your Event Button",defaultValue:!0}),buttonCard:o.bool.tag({name:"Display Add Your Event as card?",group:"Add Your Event Button",defaultValue:!0}),addBorder:o.bool.tag({name:"Add a blue border to the Add Event card?",group:"Add Your Event Button",defaultValue:!0}),buttonPosition:o.oneOf([1,2]).tag({name:"Button Position",group:"Add Your Event Button",labels:{1:"Display at the Top of the list",2:"Display at the Bottom of the list"},defaultValue:1}),mobileColumns:Object(s.b)({name:"Mobile Column Count",description:"Mobile columns",defaultValue:1,group:"Grid Options"}),tabletColumns:Object(s.b)({name:"Tablet Column Count",description:"Tablet columns",defaultValue:void 0,group:"Grid Options"}),desktopColumns:Object(s.b)({name:"Desktop Column Count",description:"Desktop columns",defaultValue:void 0,group:"Grid Options"}),xGap:Object(s.e)({name:"Column Gap (x-axis)",defaultValue:"$3",group:"Grid Options"}),yGap:Object(s.e)({name:"Row Gap (y-axis)",defaultValue:"$3",group:"Grid Options"})})};t.default=h},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(0),a=r(14);var s=()=>{const{siteProperties:{footer:e,siteName:t}}=Object(i.useAppContext)();return Object(o.jsx)(n.E,{direction:"row",gap:"$3",children:"Local10.com"===t?Object(o.jsx)("img",{src:e.logoLeft,alt:"Graham Media Group Logo"}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("a",{href:"https://www.grahammedia.com/",target:"_blank",rel:"noreferrer","aria-label":"Visit Graham Media Group website (opens in a new tab)",children:Object(o.jsx)("img",{src:e.gmgLogo,alt:"Graham Media Group Logo",width:"96",height:"43"})}),Object(o.jsx)("a",{href:"https://hello.grahamdigital.com/",target:"_blank",rel:"noreferrer","aria-label":"Visit Graham Digital website (opens in a new tab)",children:Object(o.jsx)("img",{src:e.gdLogo,alt:"Graham Digital Logo",width:"96",height:"42"})})]})})},l=r(120),c=r(132),u=r(168),d=r(501),f=r(502);const h={youtube:{icon:d.faYoutube,label:"YouTube"},facebook:{icon:l.faFacebookSquare,label:"Facebook"},instagram:{icon:c.faInstagram,label:"Instagram"},twitter:{icon:u.faXTwitter,label:"X"},rss:{icon:f.faRss,label:"RSS Feed"}};var p=({data:e})=>e?Object(o.jsx)("nav",{"aria-label":"Social Media Links",children:Object(o.jsx)(n.E,{gap:["$3",null,"$4"],direction:"row",className:"icons",children:e.map((e=>{const{type:t,url:r}=e,{icon:i,label:a}=h[t]||{};if(!i||!a)return null;const s={gacategory:"Nav",gaaction:"Footer Social",galabel:r};return Object(o.jsxs)(n.t,{className:"gaevent",href:r,gaTag:s,children:[Object(o.jsx)(n.r,{icon:i,textColor:"$blueGray.700","aria-hidden":"true"}),Object(o.jsx)(n.O,{children:`Visit our ${a} page (opens in a new tab)`})]},t)}))})}):null;t.default=()=>{const{arcSite:e,siteProperties:{footer:{copyrightText:t,nav:r,additionalInfo:l=[],omneLogo:c}
2,siteName:u,socialLinks:d}}=Object(i.useAppContext)();return Object(o.jsxs)(n.e,{as:"footer",bg:"$blueGray.50",textColor:"$blueGray.700",py:"$6",position:"relative",sx:{borderTop:"0.125rem solid",borderColor:"$blueGray.800"},children:[Object(o.jsx)(n.t,{href:"#main-header",onClick:e=>{e.preventDefault(),"undefined"!=typeof window&&window.scrollTo({top:0,behavior:"smooth"})},color:"$blueGray.900",title:"Scroll to top of page",sx:{position:"absolute",display:"flex",top:"-15px",left:"50%",transform:"translateX(-50%)",alignItems:"center",paddingY:"$1",paddingX:"$3",backgroundColor:"$white",fontSize:"$0",fontWeight:"$semibold",textTransform:"uppercase",borderRadius:"$rg",boxShadow:"$sm",border:"1px solid",borderColor:"$blueGray.200","&:focus":{outlineOffset:"0"}},children:"BACK TO TOP"}),Object(o.jsx)(n.e,{sx:{maxWidth:"$max"},mx:"$auto",px:"$4",children:Object(o.jsxs)(n.E,{gap:"$3",marginCollapse:!0,children:[Object(o.jsxs)(n.E,{gap:"$5",children:[Object(o.jsxs)(n.E,{className:"linkWrap",gap:["$7",null,"$0"],direction:["column-reverse",null,"row"],justifyContent:[null,null,"space-between"],children:[Object(o.jsxs)(n.p,{as:"ul",xGap:"$5",yGap:"$4",minColumnWidth:"$32",p:"$0",m:"$0",sx:{width:[null,null,"$7/12"]},children:[r.map((t=>Object(o.jsx)("li",{style:{listStyle:"none"},children:Object(o.jsx)(n.M,{textColor:"$blueGray.600",sx:{fontFamily:"$gibson",fontSize:"$1",lineHeight:"$none",display:"flex",alignItems:"center"},children:t.url?Object(o.jsx)("a",{href:Object(a.g)({link:t.url,arcSite:e}),"aria-label":`Navigate to ${t.title}`,children:t.title}):t.title})},t.title))),Object(o.jsx)("li",{style:{listStyle:"none"},children:Object(o.jsx)(n.M,{textColor:"$blueGray.600",sx:{fontFamily:"$gibson",fontSize:"$1",lineHeight:"$none",display:"flex",alignItems:"center"},children:Object(o.jsx)("button",{type:"button",onClick:()=>{var e,t;null===(e=window.Osano)||void 0===e||null===(t=e.cm)||void 0===t||t.showDrawer()},style:{appearance:"none",border:"none",background:"none",color:"inherit",padding:0,cursor:"pointer"},"aria-label":"Open cookie preferences dialog",children:"Cookie Preferences"})})})]}),Object(o.jsxs)(n.E,{gap:["$5",null,"$4"],children:[Object(o.jsxs)(n.E,{gap:"$2",className:"social",children:[Object(o.jsx)(n.M,{as:"span",fontFamily:"$gibson",fontSize:"$0",fontWeight:"$bold",lineHeight:"$none",textTransform:"uppercase",textColor:"$blueGray.900",children:"Follow Us"}),Object(o.jsx)(p,{data:d})]}),"Local10.com"!==u&&Object(o.jsxs)(n.E,{gap:"$2",className:"omne",children:[Object(o.jsx)(n.M,{as:"span",fontFamily:"$gibson",fontSize:"$0",fontWeight:"$bold",lineHeight:"$none",textTransform:"uppercase",textColor:"$blueGray.900",children:"Get Results With Omne"}),Object(o.jsx)("a",{href:"https://omneresults.com/",target:"_blank",rel:"noreferrer","aria-label":"Visit Omne Results website (opens in a new tab)",children:Object(o.jsx)("img",{src:c,alt:"Omne Results Logo",width:"194",height:"56",loading:"lazy"})})]})]})]}),Object(o.jsx)(n.E,{gap:"$2",children:l.filter((e=>!("Local10.com"===u&&"aiStatement"===e.type))).map((e=>{const t=`${e.type}-${e.segments.map((e=>e.id)).join("-")}`;return Object(o.jsx)(n.M,{lineHeight:"$normal",textColor:"$blueGray.500",sx:{fontFamily:"$gibson",fontSize:["$0",null,"$1"],listStyle:"none"},children:e.segments.map(((t,r)=>Object(o.jsxs)(o.Fragment,{children:[t.isLink?Object(o.jsx)(n.t,{fontWeight:"$semibold",sx:{"&:hover":{textDecoration:"underline"}},href:t.url,"aria-label":t.text,children:t.text}):Object(o.jsx)("span",{children:t.text}),r<e.segments.length-1&&" "]},t.id)))},t)}))})]}),Object(o.jsx)(n.e,{children:Object(o.jsx)(n.l,{variant:"$gray400",my:"$5",sx:{opacity:"0.5"}})}),Object(o.jsxs)(n.E,{direction:["column",null,"row"],alignItems:"center",gap:"$3",children:[Object(o.jsx)(s,{}
2),Object(o.jsx)(n.M,{textColor:"$blueGray.500",lineHeight:"$relaxed",sx:{fontFamily:"$gibson",listStyle:"none",fontSize:"$0",display:"flex",alignItems:"center"},children:`Copyright © ${(new Date).getFullYear()} ${u} ${t}`})]})]})})]})}},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(14),a=r(33),s=r(120),l=r(132),c=r(168),u=r(119),d=r(0);const f={email:(e,t,r)=>({icon:u.faEnvelope,link:`mailto:${e}?subject=Re:${t}`,label:r?`Email ${r} about: ${t}`:`Email the author about: ${t}`}),twitter:(e,t,r)=>({icon:c.faXTwitter,link:`https://www.twitter.com/${e}`,label:r?`Follow ${r} on Twitter: ${e}`:`Follow on Twitter: ${e}`}),facebook:(e,t,r)=>({icon:s.faFacebookSquare,link:`https://${e}`,label:r?`Follow ${r} on Facebook: ${e}`:`Follow on Facebook: ${e}`}),instagram:(e,t,r)=>({icon:l.faInstagram,link:`https://www.instagram.com/${e}`,label:r?`Follow ${r} on Instagram: ${e}`:`Follow on Instagram: ${e}`})},h=["email","twitter","facebook","instagram"];function p({socialLinks:e,headline:t,name:r}){return Object(d.jsx)(n.E,{direction:"row",gap:"$3",className:"author-social",children:e.map((({site:e,url:i})=>{if(""===i||!h.includes(e))return null;const o=f[e](i,t,r);return Object(d.jsxs)(n.t,{variant:"$base",href:o.link,alignItems:"center",sx:{display:"flex",fontSize:"$0",fontWeight:"$semibold"},title:o.label,target:"email"!==e?"_blank":void 0,rel:"email"!==e?"noopener noreferrer":void 0,children:[Object(d.jsx)(n.r,{icon:o.icon,className:"mr-xsm",sx:{fontSize:"$0",maxHeight:"0.75rem"},"aria-hidden":"true"}),Object(d.jsx)(n.M,{sx:{fontFamily:"$gibson"},children:e})]},`${i}-${e}`)}))})}t.default=()=>{const{arcSite:e,globalContent:{headlines:{basic:t},credits:{by:r=[]}={}}}=Object(i.useAppContext)();return 0===r.filter((e=>{var t;return null===(t=e.additional_properties)||void 0===t?void 0:t.original.status})).length?null:Object(d.jsxs)(n.E,{gap:"$3",id:"bio",role:"complementary","aria-labelledby":"author-heading",children:[Object(d.jsx)(n.q,{level:5,id:"author-heading",sx:{textTransform:"uppercase"},children:r.length>1?"About the Authors":"About the Author"}),Object(d.jsx)(n.E,{gap:"$3",direction:["column",null,"row"],className:"author-container",as:r.length>1?"ul":"div",sx:{listStyle:"none",padding:0,margin:0},children:r.length&&r.filter((e=>{var t;return null===(t=e.additional_properties)||void 0===t?void 0:t.original.status})).slice(0,2).map((({_id:i,image:{url:s}={},name:l,description:c,additional_properties:{original:{status:u=!1}={status:!1}}={original:{status:!1}},social_links:f})=>Object(d.jsxs)(n.E,{gap:"$3",className:"author",as:r.length>1?"li":"div",sx:{flex:"1","& .authorPhoto":{maxWidth:"86px",maxHeight:"86px"}},children:[s?Object(d.jsx)(a.a,{alt:`${l} headshot`,url:s,width:86,height:86,sx:{maxWidth:"86px",maxHeight:"86px",borderRadius:"$full"}}):null,Object(d.jsxs)(n.E,{gap:"$3",children:[Object(d.jsxs)(n.E,{gap:"$1",children:[Object(d.jsx)(n.q,{level:5,children:u&&i?Object(d.jsx)(n.t,{variant:"$primary",itemProp:"url",href:Object(o.g)({link:`/team/${i}/`,arcSite:e}),sx:{fontWeight:"$semibold"},title:`View ${l}'s full profile`,children:Object(d.jsx)("span",{itemProp:"name",children:l})}):l}),c&&Object(d.jsx)(n.M,{variant:"$xs",textColor:"$blueGray.700",children:c})]}),f&&f.length?Object(d.jsx)(p,{socialLinks:f,headline:t,name:l}):null]})]},i||l)))})]})}},function(e,t,r){"use strict";r.r(t);var n=r(225),i=r(131),o=r(487),a=r(142),s=r(2),l=r(5),c=r(3),u=r(1),d=r(14),f=r(46),h=r(211),p=r(0);const b=({filteredStories:e,currentIndex:t})=>0===e.length||t>=e.length?null:e.map(((e,t)=>{var r,n,i,o;const a=Object(d.i)(null==e||null===(r=e.promo_items)||void 0===r?void 0:r.basic)&&(null===(n=e.promo_items)||void 0===n?void 0:n.basic)?e.promo_items.basic:Object(f.c)(e),s=e.display_date&&e.publish_date?Object(d.m)(e.display_date,e.publish_date)?new Date(e.publish_date):new Date(e.display_date):void 0;return Object(p.jsx)(h.a,{id:e._id,href:e.canonical_url,promo:a,description:null===(i=e.description)||void 0===i?void 0:i.basic,headlines:"string"==typeof e.headlines.basic?e.headlines:{basic:(null===(o=e.description)||void 0===o?void 0:o.basic)||""}
2,headlineLines:2,descriptionLines:2,textLocation:"right",displayDate:s,gaTag:{gaaction:e.alertClass,gacategory:"Alert Bar",gavalue:"1"},showImage:e.showImage,pbStyles:{heading:{fontSize:["$0","$2","$4"],fontWeight:["$semibold",null,"$bold"],color:"$white"},metaTitle:{fontSize:"$-1",fontWeight:"$medium",color:"$red.50"},description:{fontSize:["$-1",null,"$1"],fontWeight:"$normal",color:"$gray.300"},horizontalScroll:!1,imageStyles:{maxWidth:[null,null,"300px"]},placeholderColor:"$black.400",gap:["$1","$2"]},sx:{flex:"1 0 auto","& > div":{alignItems:"center"},":not(:first-child)":{position:"absolute",px:"$4"},"& a:focus, & a:focus-visible":{outline:"2px solid white",outlineOffset:"6px",borderRadius:"4px"}},style:{left:100*t+"vw"},lazy:!1},e._id)}));b.displayName="ExpandedAlerts";var m=Object(u.memo)(b),g=r(230),v=r(173),y=r(210),w=r(174),O=r(231);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S={breaking:"$red.600",school:"$orange.600",weather:"$green.700",livestream:"$blue.600",userMessage:"$blueGray.800"},E=({customFields:{defaultPosition:e="closed",showClosings:t=!1,showWeatherAlerts:r=!0,showTrendingStoriesBarWhenNoAlerts:c=!0}={}})=>{const{arcSite:d}=Object(l.useAppContext)(),{filteredStories:f}=Object(w.a)({showClosings:t,showWeatherAlerts:r}),[h,b]=Object(u.useState)(0),[j,_]=Object(u.useState)(e),[E,k]=Object(u.useState)(!1),{isScrolling:C,pause:P,stop:M,start:$}=Object(O.a)({pauseDuration:15e3,shouldPreventResume:()=>E}),T=Object(u.useCallback)((e=>{b(e),P()}),[P]),I=Object(u.useCallback)((()=>{M()}),[M]),A=Object(u.useCallback)((()=>{E||$()}),[E,$]);Object(u.useEffect)((()=>{if(C&&f.length>1&&!E){const e=setInterval((()=>{b((e=>(e+1)%f.length))}),7e3);return()=>{clearInterval(e)}}}),[C,f.length,E]),Object(u.useEffect)((()=>{const e=localStorage.getItem("bna_bar_position");"open"!==e&&"closed"!==e||_(e)}),[]);const R=Object(u.useMemo)((()=>({left:-100*h+"vw"})),[h]);return 0===f.length?c?Object(p.jsx)(y.default,{}):null:Object(p.jsxs)(s.E,{id:"breaking-news-bar",gap:"$0",as:"section","aria-label":"Breaking News Alerts",className:"bna",borderBottom:"1px solid",borderColor:"$gray.600",sx:{position:"relative",zIndex:"0"},children:[Object(p.jsx)(s.n,{className:"expand transition-500",bg:"$black.500",alignItems:"center",sx:{marginTop:"open"===j?"0":[-128,-224],minHeight:["$32","$56"],maxHeight:"$56",overflow:"hidden"},onMouseEnter:I,onMouseLeave:A,children:Object(p.jsx)(s.j,{size:"$4",className:"wrapper",sx:{position:"relative",width:"$full",overflow:"hidden",display:"flex",alignItems:"center"},children:Object(p.jsx)(s.n,{className:"articles transition-500",alignItems:"center",sx:x({},R,{position:"relative",display:"flex",width:"$full","> *":{width:"$full"}}),children:"open"===j&&Object(p.jsx)(m,{filteredStories:f,currentIndex:h})})})}),Object(p.jsx)(s.n,{className:"alertWrapper",onMouseEnter:I,onMouseLeave:A,justifyContent:"center",alignItems:"center",bg:"$black.400",sx:{height:["$8","$10"],borderTop:"1px solid",borderTopColor:"$gray.600"},children:Object(p.jsxs)(s.n,{justifyContent:"space-between",alignItems:"center",mx:"auto",paddingX:["$2","$4"],sx:{display:"flex",width:"$full",maxWidth:"$max",height:"$full"},children:[Object(p.jsxs)(s.n,{flex:"1",sx:{height:"$full",overflow:"hidden",alignItems:"center"},children:[Object(p.jsx)(v.a,{label:f[h].alertTag||"BREAKING NEWS",backgroundColor:(D=f,L=h,D&&0===D.length||L>=D.length?"$blueGray.800":S[D[L].alertClass])}),Object(p.jsx)(s.n,{flex:"1",width:"$full",px:["$2","$0"],sx:{position:"relative",overflow:"hidden",height:"$full",alignItems:"center",display:"open"===j?"none":"flex"},children:Object(p.jsx)(s.n,{className:"articles transition-500",alignItems:"center",width:"$full",sx:x({},R,{position:"relative",display:"flex"}),children:"open"===j?null:Object(p.jsx)(g.a,{filteredStories:f,currentIndex:h,arcSite:d,setCondensedCardFocused:k,onBlurResume:$})})})]}),Object(p.jsxs)(s.E,{direction:"row",gap:"$2",className:"toggle",children:[f.length>1&&Object(p.jsx)(s.E,{direction:"row",gap:"$2",alignItems:"center",textColor:"$white",className:"meatballs",sx:{dis
2play:"closed"===j?["none","flex"]:"flex"},children:f.map(((e,t)=>Object(p.jsxs)(s.f,{variant:"$icon",size:"sm",onClick:()=>{T(t)},sx:{padding:"$1",color:"$white",":hover, :focus, :active":{boxShadow:"0 0 0 2px hsl(0deg 0% 100% / 50%)",borderRadius:"$full"}},children:[Object(p.jsx)(s.r,{icon:t===h?a.faCircle:n.faCircle}),Object(p.jsx)(s.O,{children:`Select breaking news story ${t+1} of ${f.length}`})]},e._id)))}),Object(p.jsxs)(s.f,{onClick:()=>{if("undefined"==typeof window)return;const e="open"===j?"closed":"open";_(e),localStorage.setItem("bna_bar_position",e)},size:"sm",variant:"$icon",sx:{marginLeft:"$2",padding:"$1",color:"$white",fontWeight:"$semibold"},children:[Object(p.jsx)(s.r,{icon:"open"===j?o.faChevronUp:i.faChevronDown}),Object(p.jsx)(s.O,{children:"open"===j?"Hide Breaking News Bar":"Show Breaking News Bar"})]})]})]})})]});var D,L};E.propTypes={customFields:c.shape({defaultPosition:c.oneOf(["open","closed"]).tag({name:"Default Position",labels:{open:"Open",closed:"Closed"},defaultValue:"closed"}),showClosings:c.boolean.tag({name:"Show School Closings",defaultValue:!1}),showWeatherAlerts:c.boolean.tag({name:"Show Weather Alerts",defaultValue:!0}),showTrendingStoriesBarWhenNoAlerts:c.boolean.tag({name:"Show Trending Stories When No Alerts",defaultValue:!0})})};t.default=E},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(3),o=r(26),a=r(5),s=r(226),l=r(33),c=r(54),u=r(46),d=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=e=>{const{promo:t={},description:r="",textOverlay:n=!1,textOnly:i=!1,style:o={},lazy:a=!0,orientation:p="",gaCategory:b="",gaAction:m="",gaValue:g="",articleLink:v,class:y,showCount:w=2,headline:O}=e;let j=null;if(t){const e=Object(u.c)(t);if(!e)return null;let r={};const{url:n,width:i=800,height:o=450,sizeProps:s={}}=e;r={url:n,width:i,height:o,sizeProps:s,lazy:a},r.sizeProps.aspectRatio=16/9,r.imgClassName="width_full height_auto",j=Object(d.jsx)(l.a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r))}const x=i?null:Object(d.jsx)("div",{className:"image",children:j}),_=r&&n?Object(d.jsx)("p",{className:"desc | font_openSans | font_regular | no-margin",children:Object(d.jsx)(s.a,{limit:170,children:r})}):null,S=window&&["www.gmg-local.com","sandbox.gmg.arcpublishing.com"].indexOf(window.location.hostname)>-1?`/pf/${v}${window.location.search}`:v;return Object(d.jsxs)("article",{className:`storyCard | podcast | mb-norm ${y||""}`,style:o,children:[w?Object(d.jsx)("div",{className:"storyCount",style:{fontFamily:"Gibson",fontWeight:"500",fontSize:"1rem",position:"absolute",padding:".25rem .5rem",backgroundColor:"rgba(216, 216, 216, .75)",zIndex:10},children:w}):null,Object(d.jsx)("a",{href:S,className:"relative | color_white ga-event",gacategory:b||"Story Card",gaaction:m,galabel:S,gavalue:g,children:Object(d.jsxs)("div",{className:`relative | display_flex | min | height_full | ${p||""}`,children:[x,Object(d.jsxs)("div",{className:"content",children:[Object(d.jsx)(c.a,{level:3,className:r&&n?"mb-sm":null,children:O}),_]})]})})]})};p.propTypes={articleLink:i.string.isRequired,class:i.string,style:i.shape(),description:i.string,displayDate:i.string,headline:i.string.isRequired,orientation:i.string,textOnly:i.bool,promo:i.shape(),textOverlay:i.bool,sizeProps:i.shape(),lazy:i.bool,showCount:i.oneOfType([i.number,i.string]),gaCategory:i.string,gaAction:i.string,gaValue:i.oneOfType([i.number,i.string]),popOut:i.bool};var b=p;const m=e=>{const t=Object(a.useAppContext)(),{customFields:{startFrom:r="1",amount:i="10",textOverlay:s=!1,collectionId:l="",hideDesc:f=!1,isHorizontal:h,inlineList:p,epFlow:m=!1}}=e;let g=null;const v=Object(o.useContent)({source:"0PB_CollectionStoryCard",query:{collection_id:l}});if(g=v&&"content_elements"in v?v.content_elements:null,!g)return null;const y=r?r-1:0;
2if("refreshNeeded"===y)return Object(d.jsxs)("section",{style:{background:"#ff5555",color:"fff",padding:"0 2rem",lineHeight:"3rem"},className:"scGrid episode full-width",children:[Object(d.jsx)(c.a,{level:3,children:"Story List:"}),Object(d.jsx)("p",{children:"Refresh to see content"})]});let w="column";!0===m&&(w="row");const O=g.slice(y,y+parseInt(i,10)).map(((e,r)=>{const i=Object(u.c)(e),o=e.headlines.basic,a="description"in e?e.description.basic:null;return Object(d.jsx)(n.Fragment,{children:Object(d.jsx)(b,{articleLink:e.canonical_url,promo:i,description:f?null:a,headline:o,textOverlay:!f,displayDate:e.display_date,orientation:w,showCount:t.isAdmin?y+r+1:null,gaAction:"Episode List",gaValue:r})},e._id)}));let j="textOverlay | full-width";s&&(j="textBelow | full-width");const x=h||p?Object(d.jsx)("div",{className:"grid | "+(p?"story-list vertical":"story-list horizontal"),children:O}):[O];return Object(d.jsx)("section",{className:`topic episode ${j}`,children:x})};m.propTypes={customFields:i.shape({collectionId:i.string.tag({name:"Collection ID",description:"Enter a collection ID from WebSked use populate this\n        feature with stories from the collection"}),divider:i.label.tag({label:"--------------------------------------------------"}),configLabel:i.label.tag({label:"Configuration Options"}),startFrom:i.number.tag({name:"Start From (optional)",description:"If you want to start from a specific position\n        in the feed enter the startng position here."}),amount:i.oneOf(["1","2","3","4","5","6","8","9","10"]).tag({defaultValue:"1",labels:{1:"One Episode",2:"Two Episodes",3:"Three Episodes",4:"Four Episodes",5:"Five Episodes",6:"Six Episodes",8:"Eight Episodes",9:"Nine Episodes",10:"Ten Episodes"},name:"Amount of Episodes",description:"Choose a display configuration."}),epFlow:i.boolean.tag({defaultValue:!1,name:"Display as Row?",description:"Check this box to display text to the right"}),textOverlay:i.boolean.tag({defaultValue:!1,name:"Move text to below image?",description:"By default, text is dislayed superimposed over the image.\n        Check this box to move all text below the image."}),hideDesc:i.bool.tag({name:"Hide Article Descriptions",description:"Checking this box remove all article description text, leaving only the story's headline."}),asideOptionsDivider:i.label.tag({label:"--------------------------------------------------"}),asideOptionsLabel:i.label.tag({label:"Rail Configuration Options"}),isHorizontal:i.bool.tag({name:"2 Column Grid (Check move text below image)",description:"Display stories in a two column grid"}),inlineList:i.bool.tag({defaultValue:!1,name:"Inline List",description:"Display text and image on one line"})})};t.default=m},function(e,t,r){"use strict";r.r(t);var n=r(2),i=r(5),o=r(3),a=r(1),s=r(0);var l=function({isDarkMode:e,onToggle:t}){const r={position:"relative",width:"44px",height:"22px",borderRadius:"11px",padding:"2px",transition:"background-color 0.2s ease-in-out",cursor:"pointer",border:"1px solid "+(e?"#555":"#aaa"),backgroundColor:e?"#222":"#eee",outline:"none",display:"flex",alignItems:"center"},i={display:"block",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:e?"#f1f5f9":"#171a1f",transform:e?"translateX(20px)":"translateX(0)",transition:"transform 0.2s ease-in-out, background-color 0.2s ease-in-out",boxShadow:e?"0 0 2px rgba(255,255,255,0.5)":"0 0 2px rgba(0,0,0,0.3)"};return Object(s.jsx)(n.e,{position:"absolute",top:"10px",right:"10px",children:Object(s.jsx)("button",{type:"button",onClick:t,style:r,"aria-label":e?"Switch to light mode":"Switch to dark mode",children:Object(s.jsx)("span",{style:i})})})};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f={"--background-color":"#171a1f","--text-color":"#f1f5f9","--dark-text-on-background-color":"#f1f5f9","--primary-color-20":"#3c3e42","--textarea-background-color":"#23262b","--light-text-on-background-color":"#f1f5f9"},h={":scroll-momentum":"true"};function p({customFields:{liveChatId:e,showThemeToggle:t=!0}={}}){const{isAdmin:r,layout:o}=Object(i.useAppContext)(),c="simple-dark"===o,[d,p]=Object(a.useState)(!1),[b,m]=Object(a.useState)(!1);Object(a.useEffect)((()=>{const e=new MutationObserver((()=>{if(document.querySelector(".vf-livechat__header")){m(!0);const t=localStorage.getItem("vf-live-chat-dark-mode");p(null!==t?"true"===t:c),e.disconnect()}}));return e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()}),[c]);const g=u({height:"100%"},d?f:{});return r?Object(s.jsx)(n.n,{width:"$full",padding:"$3",height:["100%","550px"],backgroundColor:"$black.400",alignItems:"center",justifyContent:"center",borderRadius:"$md",border:"1px solid",borderColor:"$blueGray.300",children:Object(s.jsx)(n.q,{level:2,textAlign:"center",children:"Viafoura Livechat Will Go Here On Published Page"})}):Object(s.jsxs)(n.e,{position:"relative",backgroundColor:"$black.400",height:["100%","550px"],overflow:"hidden",border:"1px solid $black.400",sx:{borderRadius:"3px"},children:[Object(s.jsx)(n.e,{className:"viafoura",id:"livechat-wrapper",style:g,sx:u({},d&&{"& .vf-chat-form__textarea":{color:"#f1f5f9"},"& .vf-livechat__header":{borderBottom:"3px solid #3c3e42 !important"}}),children:Object(s.jsx)("vf-livechat",u({},h,{"vf-container-id":e}))}),t&&b&&Object(s.jsx)(l,{isDarkMode:d,onToggle:()=>{const e=!d;p(e),localStorage.setItem("vf-live-chat-dark-mode",String(e))}})]})}p.propTypes={customFields:o.shape({liveChatId:o.string.tag({name:"Livechat Unique ID"}),showThemeToggle:o.bool.tag({name:"Show Theme Toggle",defaultValue:!0,description:"Controls visibility of the theme toggle, which allows users to switch between light and dark mode."})})};t.default=p},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ae}));var n=r(304),i=r(1),o=r.n(i),a=r(97),s=r(87),l=r(47),c=r(7),u=r(35),d=r(18),f=r(40),h=r(89),p=r(65),b=r(69),m=r(19),g=r(113),v=r(112),y=r(96),w=r(41),O=r(24),j=r(98),x=r(58),_=r(22),S=r(44),E=r(13),k=r(83),C=r(21),P=r(111),M=r(8),$=r(11);function T(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D,L,N,B=((N=B||{})[N.Open=0]="Open",N[N.Closed=1]="Closed",N),z=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(z||{}),F=((L=F||{})[L.Pointer=0]="Pointer",L[L.Focus=1]="Focus",L[L.Other=2]="Other",L),U=((D=U||{})[D.OpenCombobox=0]="OpenCombobox",D[D.CloseCombobox=1]="CloseCombobox",D[D.GoToOption=2]="GoToOption",D[D.RegisterOption=3]="RegisterOption",D[D.UnregisterOption=4]="UnregisterOption",D[D.RegisterLabel=5]="RegisterLabel",D[D.SetActivationTrigger=6]="SetActivationTrigger",D[D.UpdateVirtualOptions=7]="UpdateVirtualOptions",D);function H(e,t=(e=>e)){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&null!==n[0].dataRef.current.order?n.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):Object(E.i)(n,(e=>e.dataRef.current.domRef.current)),o=r?i.indexOf(r):null;return-1===o&&(o=null),{options:i,activeOptionIndex:o}}let V={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:A({},e,{activeOptionIndex:null,comboboxState:1})},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return A({},e,{activeOptionIndex:t,comboboxState:0})}return A({},e,{comboboxState:0})},2(e,t){var r,n,i,o,a;if(null!=(r=e.dataRef.current)&&r.disabled||null!=(n=e.dataRef.current)&&n.optionsRef.current&&(null==(i=e.dataRef.current)||!i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let r=t.focus===_.a.Specific?t.idx:Object(_.b)(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var t,r;
2return null!=(r=null!=(t=e.activeOptionIndex)?t:e.virtual.options.findIndex((t=>!e.virtual.disabled(t))))?r:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),n=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===r&&e.activationTrigger===n?e:A({},e,{activeOptionIndex:r,activationTrigger:n})}let s=H(e);if(null===s.activeOptionIndex){let e=s.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(s.activeOptionIndex=e)}let l=t.focus===_.a.Specific?t.idx:Object(_.b)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),c=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===l&&e.activationTrigger===c?e:A({},e,{},s,{activeOptionIndex:l,activationTrigger:c})},3:(e,t)=>{var r,n,i;if(null!=(r=e.dataRef.current)&&r.virtual)return A({},e,{options:[...e.options,t.payload]});let o=t.payload,a=H(e,(e=>(e.push(o),e)));null===e.activeOptionIndex&&null!=(n=e.dataRef.current)&&n.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let s=A({},e,{},a,{activationTrigger:2});return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},4:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return A({},e,{options:e.options.filter((e=>e.id!==t.id))});return A({},e,{},H(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e})),{activationTrigger:2})},5:(e,t)=>e.labelId===t.id?e:A({},e,{labelId:t.id}),6:(e,t)=>e.activationTrigger===t.trigger?e:A({},e,{activationTrigger:t.trigger}),7:(e,t)=>{var r;if((null==(r=e.virtual)?void 0:r.options)===t.options)return e;let n=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);n=-1!==r?r:null}return A({},e,{activeOptionIndex:n,virtual:Object.assign({},e.virtual,{options:t.options})})}},G=Object(i.createContext)(null);function W(e){let t=Object(i.useContext)(G);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}G.displayName="ComboboxActionsContext";let q=Object(i.createContext)(null);function K(t){var r;let a=X("VirtualProvider"),[s,l]=Object(i.useMemo)((()=>{let e=a.optionsRef.current;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[a.optionsRef.current]),c=Object(n.a)({scrollPaddingStart:s,scrollPaddingEnd:l,count:a.virtual.options.length,estimateSize:()=>40,getScrollElement(){var e;return null!=(e=a.optionsRef.current)?e:null},overscan:12}),[u,f]=Object(i.useState)(0);return Object(d.a)((()=>{f((e=>e+1))}),[null==(r=a.virtual)?void 0:r.options]),o.a.createElement(q.Provider,{value:c},o.a.createElement("div",{style:{position:"relative",width:"100%",height:`${c.getTotalSize()}px`},ref:t=>{if(t){if(void 0!==e&&void 0!==e.env.JEST_WORKER_ID||0===a.activationTrigger)return;null!==a.activeOptionIndex&&a.virtual.options.length>a.activeOptionIndex&&c.scrollToIndex(a.activeOptionIndex)}}},c.getVirtualItems().map((e=>{var r;return o.a.createElement(i.Fragment,{key:e.key},o.a.cloneElement(null==(r=t.children)?void 0:r.call(t,{option:a.virtual.options[e.index],open:0===a.comboboxState}),{key:`${u}-${e.key}`,"data-index":e.index,"aria-setsize":a.virtual.options.length,"aria-posinset":e.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:"none"}}))}))))}let Y=Object(i.createContext)(null);function X(e){let t=Object(i.useContext)(Y);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,X),t}return t}function J(e,t){return Object(C.a)(t.type,V,e,t)}Y.displayName="ComboboxDataContext";let Z=i.Fragment;let Q=M.a.RenderStrategy|M.a.Static;let ee=Object(M.d)((function(e,t){let{value:r,defaultValue:n,onChange:a,form:u,name:f,by:p=null,disabled:b=!1,__demoMode:m=!1,nullable:g=!1,multiple:v=!1,immediate:y=!1,virtual:j=null}=e,x=T(e,["value","defaultValue","onChange","form","name","by","disabled","__demoMode","nullable","multiple","
2immediate","virtual"]),S=null,[E=(v?[]:void 0),P]=Object(s.a)(r,a,n),[$,I]=Object(i.useReducer)(J,{dataRef:Object(i.createRef)(),comboboxState:m?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),R=Object(i.useRef)(!1),D=Object(i.useRef)({static:!1,hold:!1}),L=Object(i.useRef)(null),N=Object(i.useRef)(null),B=Object(i.useRef)(null),z=Object(i.useRef)(null),F=Object(c.a)("string"==typeof p?(e,t)=>{let r=p;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:null!=p?p:(e,t)=>e===t),U=Object(c.a)((e=>$.options.findIndex((t=>F(t.dataRef.current.value,e))))),H=Object(i.useCallback)((e=>Object(C.a)(W.mode,{1:()=>E.some((t=>F(t,e))),0:()=>F(E,e)})),[E]),V=Object(c.a)((e=>$.activeOptionIndex===U(e))),W=Object(i.useMemo)((()=>A({},$,{immediate:false,optionsPropsRef:D,labelRef:L,inputRef:N,buttonRef:B,optionsRef:z,value:E,defaultValue:n,disabled:b,mode:v?1:0,virtual:$.virtual,get activeOptionIndex(){if(R.current&&null===$.activeOptionIndex&&$.options.length>0){S;let e=$.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return $.activeOptionIndex},calculateIndex:U,compare:F,isSelected:H,isActive:V,nullable:g,__demoMode:m})),[E,n,b,v,g,m,$,S]);Object(d.a)((()=>{}),[S,void 0]),Object(d.a)((()=>{$.dataRef.current=W}),[W]),Object(h.a)([W.buttonRef,W.inputRef,W.optionsRef],(()=>oe.closeCombobox()),0===W.comboboxState);let q=Object(i.useMemo)((()=>{var e,t,r;return{open:0===W.comboboxState,disabled:b,activeIndex:W.activeOptionIndex,activeOption:null===W.activeOptionIndex?null:W.virtual?W.virtual.options[null!=(e=W.activeOptionIndex)?e:0]:null!=(r=null==(t=W.options[W.activeOptionIndex])?void 0:t.dataRef.current.value)?r:null,value:E}}),[W,b,E]),K=Object(c.a)((()=>{if(null!==W.activeOptionIndex){if(W.virtual)ne(W.virtual.options[W.activeOptionIndex]);else{let{dataRef:e}=W.options[W.activeOptionIndex];ne(e.current.value)}oe.goToOption(_.a.Specific,W.activeOptionIndex)}})),X=Object(c.a)((()=>{I({type:0}),R.current=!0})),Q=Object(c.a)((()=>{I({type:1}),R.current=!1})),ee=Object(c.a)(((e,t,r)=>(R.current=!1,e===_.a.Specific?I({type:2,focus:_.a.Specific,idx:t,trigger:r}):I({type:2,focus:e,trigger:r})))),te=Object(c.a)(((e,t)=>(I({type:3,payload:{id:e,dataRef:t}}),()=>{W.isActive(t.current.value)&&(R.current=!0),I({type:4,id:e})}))),re=Object(c.a)((e=>(I({type:5,id:e}),()=>I({type:5,id:null})))),ne=Object(c.a)((e=>Object(C.a)(W.mode,{0:()=>null==P?void 0:P(e),1(){let t=W.value.slice(),r=t.findIndex((t=>F(t,e)));return-1===r?t.push(e):t.splice(r,1),null==P?void 0:P(t)}}))),ie=Object(c.a)((e=>{I({type:6,trigger:e})})),oe=Object(i.useMemo)((()=>({onChange:ne,registerOption:te,registerLabel:re,goToOption:ee,closeCombobox:Q,openCombobox:X,setActivationTrigger:ie,selectActiveOption:K})),[]),ae=null===t?{}:{ref:t},se=Object(i.useRef)(null),le=Object(l.a)();return Object(i.useEffect)((()=>{se.current&&void 0!==n&&le.addEventListener(se.current,"reset",(()=>{null==P||P(n)}))}),[se,P]),o.a.createElement(G.Provider,{value:oe},o.a.createElement(Y.Provider,{value:W},o.a.createElement(O.a,{value:Object(C.a)(W.comboboxState,{0:O.b.Open,1:O.b.Closed})},null!=f&&null!=E&&Object(k.b)({[f]:E}).map((([e,t],r)=>o.a.createElement(w.b,A({features:w.a.Hidden,ref:0===r?e=>{var t;se.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0},Object(M.c)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:u,disabled:b,name:e,value:t}))))),Object(M.e)({ourProps:ae,theirProps:x,slot:q,defaultTag:Z,name:"Combobox"}))))})),te=Object(M.d)((function(e,t){var r;let n=X("Combobox.Button"),o=W("Combobox.Button"),s=Object(m.b)(n.buttonRef,t),d=Object(u.a)(),{id:f=`headlessui-combobox-button-${d}`}=e,h=T(e,["id"]),p=Object(l.a)(),g=Object(c.a)((e=>{switch(e.key){case $.a.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&o.openCombobox(),p.nextFrame((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}
2));case $.a.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&(o.openCombobox(),p.nextFrame((()=>{n.value||o.goToOption(_.a.Last)}))),p.nextFrame((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case $.a.Escape:return 0!==n.comboboxState?void 0:(e.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),p.nextFrame((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),v=Object(c.a)((e=>{if(Object(x.a)(e.currentTarget))return e.preventDefault();0===n.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),p.nextFrame((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),y=Object(a.a)((()=>{if(n.labelId)return[n.labelId,f].join(" ")}),[n.labelId,f]),w=Object(i.useMemo)((()=>({open:0===n.comboboxState,disabled:n.disabled,value:n.value})),[n]),O={ref:s,id:f,type:Object(b.a)(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=n.optionsRef.current)?void 0:r.id,"aria-expanded":0===n.comboboxState,"aria-labelledby":y,disabled:n.disabled,onClick:v,onKeyDown:g};return Object(M.e)({ourProps:O,theirProps:h,slot:w,defaultTag:"button",name:"Combobox.Button"})})),re=Object(M.d)((function(e,t){var r,n,o,s,d;let f=Object(u.a)(),{id:h=`headlessui-combobox-input-${f}`,onChange:b,displayValue:g,type:v="text"}=e,w=T(e,["id","onChange","displayValue","type"]),O=X("Combobox.Input"),x=W("C
2ombobox.Input"),S=Object(m.b)(O.inputRef,t),E=Object(p.a)(O.inputRef),k=Object(i.useRef)(!1),P=Object(l.a)(),I=Object(c.a)((()=>{x.onChange(null),O.optionsRef.current&&(O.optionsRef.current.scrollTop=0),x.goToOption(_.a.Nothing)})),A="function"==typeof g&&void 0!==O.value?null!=(R=g(O.value))?R:"":"string"==typeof O.value?O.value:"";var R;Object(y.a)((([e,t],[r,n])=>{if(k.current)return;let i=O.inputRef.current;i&&((0===n&&1===t||e!==r)&&(i.value=e),requestAnimationFrame((()=>{if(k.current||!i||(null==E?void 0:E.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)})))}),[A,O.comboboxState,E]),Object(y.a)((([e],[t])=>{if(0===e&&1===t){if(k.current)return;let e=O.inputRef.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(r,n,i):e.setSelectionRange(r,n)}}),[O.comboboxState]);let D=Object(i.useRef)(!1),L=Object(c.a)((()=>{D.current=!0})),N=Object(c.a)((()=>{P.nextFrame((()=>{D.current=!1}))})),B=Object(c.a)((e=>{switch(k.current=!0,e.key){case $.a.Enter:if(k.current=!1,0!==O.comboboxState||D.current)return;if(e.preventDefault(),e.stopPropagation(),null===O.activeOptionIndex)return void x.closeCombobox();x.selectActiveOption(),0===O.mode&&x.closeCombobox();break;case $.a.ArrowDown:return k.current=!1,e.preventDefault(),e.stopPropagation(),Object(C.a)(O.comboboxState,{0:()=>x.goToOption(_.a.Next),1:()=>x.openCombobox()});case $.a.ArrowUp:return k.current=!1,e.preventDefault(),e.stopPropagation(),Object(C.a)(O.comboboxState,{0:()=>x.goToOption(_.a.Previous),1:()=>{x.openCombobox(),P.nextFrame((()=>{O.value||x.goToOption(_.a.Last)}))}});case $.a.Home:if(e.shiftKey)break;return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(_.a.First);case $.a.PageUp:return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(_.a.First);case $.a.End:if(e.shiftKey)break;return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(_.a.Last);case $.a.PageDown:return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(_.a.Last);case $.a.Escape:return k.current=!1,0!==O.comboboxState?void 0:(e.preventDefault(),O.optionsRef.current&&!O.optionsPropsRef.current.static&&e.stopPropagation(),O.nullable&&0===O.mode&&null===O.value&&I(),x.closeCombobox());case $.a.Tab:if(k.current=!1,0!==O.comboboxState)return;0===O.mode&&1!==O.activationTrigger&&x.selectActiveOption(),x.closeCombobox()}})),z=Object(c.a)((e=>{null==b||b(e),O.nullable&&0===O.mode&&""===e.target.value&&I(),x.openCombobox()})),F=Object(c.a)((e=>{var t,r,n;let i=null!=(t=e.relatedTarget)?t:j.a.find((t=>t!==e.currentTarget));if(k.current=!1,!(null!=(r=O.optionsRef.current)&&r.contains(i)||null!=(n=O.buttonRef.current)&&n.contains(i)||0!==O.comboboxState))return e.preventDefault(),0===O.mode&&(O.nullable&&null===O.value?I():1!==O.activationTrigger&&x.selectActiveOption()),x.closeCombobox()})),U=Object(c.a)((e=>{var t,r,n;let i=null!=(t=e.relatedTarget)?t:j.a.find((t=>t!==e.currentTarget));null!=(r=O.buttonRef.current)&&r.contains(i)||null!=(n=O.optionsRef.current)&&n.contains(i)||O.disabled||O.immediate&&0!==O.comboboxState&&(x.openCombobox(),P.nextFrame((()=>{x.setActivationTrigger(1)})))})),H=Object(a.a)((()=>{if(O.labelId)return[O.labelId].join(" ")}),[O.labelId]),V=Object(i.useMemo)((()=>({open:0===O.comboboxState,disabled:O.disabled})),[O]),G={ref:S,id:h,role:"combobox",type:v,"aria-controls":null==(r=O.optionsRef.current)?void 0:r.id,"aria-expanded":0===O.comboboxState,"aria-activedescendant":null===O.activeOptionIndex?void 0:O.virtual?null==(n=O.options.find((e=>{var t;return!(null!=(t=O.virtual)&&t.disabled(e.dataRef.current.value))&&O.compare(e.dataRef.current.value,O.virtual.options[O.activeOptionIndex])})))?void 0:n.id:null==(o=O.options[O.activeOptionIndex])?void 0:o.id,"aria-labelledby":H,"aria-autocomplete":"list",defaultValue:null!=(d=null!=(s=e.defaultValue)?s:void 0!==O.defaultValue?null==g?void 0:g(O.defaultValue):null)?d:O.defaultValue,disabled:O.disabled,onCompositionStart:L,onCompositionEnd:N,onKeyDown:B,onChange:z,onFocus:U,onBlur:F};return Object(M.e)({ourProps:G,theirProps:w,slot:V,defaultTag:"input",name:"Combobox.Input"})})),ne=Object(M.d)((function(e,t){let r=Object(u.a)(),{id:n=`headlessui-combobox-label-${r}`}
2=e,o=T(e,["id"]),a=X("Combobox.Label"),s=W("Combobox.Label"),l=Object(m.b)(a.labelRef,t);Object(d.a)((()=>s.registerLabel(n)),[n]);let f=Object(c.a)((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),h=Object(i.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return Object(M.e)({ourProps:{ref:l,id:n,onClick:f},theirProps:o,slot:h,defaultTag:"label",name:"Combobox.Label"})})),ie=Object(M.d)((function(e,t){let r=Object(u.a)(),{id:n=`headlessui-combobox-options-${r}`,hold:s=!1}=e,l=T(e,["id","hold"]),c=X("Combobox.Options"),f=Object(m.b)(c.optionsRef,t),h=Object(O.c)(),p=null!==h?(h&O.b.Open)===O.b.Open:0===c.comboboxState;Object(d.a)((()=>{var t;c.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[c.optionsPropsRef,e.static]),Object(d.a)((()=>{c.optionsPropsRef.current.hold=s}),[c.optionsPropsRef,s]),Object(v.a)({container:c.optionsRef.current,enabled:0===c.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let b=Object(a.a)((()=>{var e,t;return null!=(t=c.labelId)?t:null==(e=c.buttonRef.current)?void 0:e.id}),[c.labelId,c.buttonRef.current]),g=Object(i.useMemo)((()=>({open:0===c.comboboxState,option:void 0})),[c]),y={"aria-labelledby":b,role:"listbox","aria-multiselectable":1===c.mode||void 0,id:n,ref:f};return c.virtual&&0===c.comboboxState&&Object.assign(l,{children:o.a.createElement(K,null,l.children)}),Object(M.e)({ourProps:y,theirProps:l,slot:g,defaultTag:"ul",features:Q,visible:p,name:"Combobox.Options"})})),oe=Object(M.d)((function(e,t){var r;let n=Object(u.a)(),{id:o=`headlessui-combobox-option-${n}`,disabled:a=!1,value:s,order:l=null}=e,h=T(e,["id","disabled","value","order"]),p=X("Combobox.Option"),b=W("Combobox.Option"),v=p.virtual?p.activeOptionIndex===p.calculateIndex(s):null!==p.activeOptionIndex&&(null==(r=p.options[p.activeOptionIndex])?void 0:r.id)===o,y=p.isSelected(s),w=Object(i.useRef)(null),O=Object(f.a)({disabled:a,value:s,domRef:w,order:l}),j=Object(i.useContext)(q),x=Object(m.b)(t,w,j?j.measureElement:null),E=Object(c.a)((()=>b.onChange(s)));Object(d.a)((()=>b.registerOption(o,O)),[O,o]);let k=Object(i.useRef)(!(p.virtual||p.__demoMode));Object(d.a)((()=>{if(!p.virtual||!p.__demoMode)return;let e=Object(S.a)();return e.requestAnimationFrame((()=>{k.current=!0})),e.dispose}),[p.virtual,p.__demoMode]),Object(d.a)((()=>{if(!k.current||0!==p.comboboxState||!v||0===p.activationTrigger)return;let e=Object(S.a)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[w,v,p.comboboxState,p.activationTrigger,p.activeOptionIndex]);let C=Object(c.a)((e=>{var t;if(a||null!=(t=p.virtual)&&t.disabled(s))return e.preventDefault();E(),Object(P.b)()||requestAnimationFrame((()=>{var e;return null==(e=p.inputRef.current)?void 0:e.focus({preventScroll:!0})}
2)),0===p.mode&&requestAnimationFrame((()=>b.closeCombobox()))})),$=Object(c.a)((()=>{var e;if(a||null!=(e=p.virtual)&&e.disabled(s))return b.goToOption(_.a.Nothing);let t=p.calculateIndex(s);b.goToOption(_.a.Specific,t)})),I=Object(g.a)(),A=Object(c.a)((e=>I.update(e))),R=Object(c.a)((e=>{var t;if(!I.wasMoved(e)||a||null!=(t=p.virtual)&&t.disabled(s)||v)return;let r=p.calculateIndex(s);b.goToOption(_.a.Specific,r,0)})),D=Object(c.a)((e=>{var t;I.wasMoved(e)&&(a||null!=(t=p.virtual)&&t.disabled(s)||v&&(p.optionsPropsRef.current.hold||b.goToOption(_.a.Nothing)))})),L=Object(i.useMemo)((()=>({active:v,selected:y,disabled:a})),[v,y,a]);return Object(M.e)({ourProps:{id:o,ref:x,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":y,disabled:void 0,onClick:C,onFocus:$,onPointerEnter:A,onMouseEnter:A,onPointerMove:R,onMouseMove:R,onPointerLeave:D,onMouseLeave:D},theirProps:h,slot:L,defaultTag:"li",name:"Combobox.Option"})})),ae=Object.assign(ee,{Input:re,Button:te,Label:ne,Options:ie,Option:oe})}).call(this,r(53))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){const n=r(337),i=r(338),o=r(339),a={};a.chains=a.chains||{},a.features=a.features||{},a.layouts=a.layouts||{},a.chains["Custom-Page-Grid"]=i(o(r(340))),a.chains["Full-Width-Chain"]=i(o(r(342))),a.chains["full-width-v2"]=i(o(r(469))),a.chains.Grid=i(o(r(470))),a.chains.group=i(o(r(471))),a.chains["Main-Content"]=i(o(r(485))),a.chains["outbrain-chain"]=i(o(r(472))),a.chains["Profile-Chain"]=i(o(r(473))),a.chains["Rail-Content"]=i(o(r(474))),a.chains["tutorial-chain"]=i(o(r(475))),a.features["account/confirm-delete"]=r(27)(null,null,(()=>r.e(29).then(r.bind(null,606)))),a.features["account/delete"]=r(27)(null,null,(()=>r.e(30).then(r.bind(null,607)))),a.features["account/dsar"]=r(27)(null,null,(()=>r.e(31).then(r.bind(null,608)))),a.features["account/filmstrip"]=r(27)(null,null,(()=>r.e(32).then(r.bind(null,609)))),a.features["account/forgot-password"]=r(27)(null,null,(()=>r.e(33).then(r.bind(null,601)))),a.features["account/insider-redirect"]=r(27)(null,null,(()=>r.e(34).then(r.bind(null,610)))),a.features["account/insider-signup"]=r(27)(null,null,(()=>r.e(35).then(r.bind(null,611)))),a.features["account/login"]=i(o(r(306))),a.features["account/logout"]=r(27)(null,null,(()=>r.e(36).then(r.bind(null,612)))),a.features["account/membership-header"]=r(27)(null,null,(()=>r.e(37).then(r.bind(null,613)))),a.features["account/nav-links"]=i(o(r(538))),a.features["account/newsletter-confirm"]=r(27)(null,null,(()=>r.e(38).then(r.bind(null,614)))),a.features["account/newsletters"]=r(27)(null,null,(()=>r.e(22).then(r.bind(null,655)))),a.features["account/password-reset-legacy"]=r(27)(null,null,(()=>r.e(39).then(r.bind(null,615)))),a.features["account/password-reset"]=r(27)(null,null,(()=>r.e(40).then(r.bind(null,616)))),a.features["account/pins-detail"]=r(27)(null,null,(()=>r.e(18).then(r.bind(null,617)))),a.features["account/pins-latest"]=r(27)(null,null,(()=>r.e(20).then(r.bind(null,618)))),a.features["account/Profile-Hearken"]=r(27)(null,null,(()=>r.e(28).then(r.bind(null,619)))),a.features["account/registration-form"]=i(o(r(529))),a.features["account/registration-wall"]=r(27)(null,null,(()=>r.e(11).then(r.bind(null,649)))),a.features["account/resources-card"]=i(o(r(540))),a.features["account/task"]=r(27)(null,null,(()=>Promise.resolve().then(r.bind(null,219)))),a.features["account/ugc-gallery"]=r(27)(null,null,(()=>Promise.all([r.e(3),r.e(2),r.e(5)]).then(r.bind(null,604)))),a.features["account/user-card"]=r(27)(null,null,(()=>r.e(14).then(r.bind(null,620)))),a.features["account/user-comments"]=r(27)(null,null,(()=>r.e(15).then(r.bind(null,621)))),a.features["account/user-newsletters"]=r(27)(null,null,(()=>r.e(16).then(r.bind(null,622)))),a.features["account/user-pins"]=r(27)(null,null,(()=>Promise.all([r.e(3),r.e(17)]).then(r.bind(null,623)))),a.features["account/verify-account-form"]=r(27)(null,null,(()=>r.e(41).then(r.bind(null,656)))),a.features["account/welcome"]=r(27)(null,null,(()=>r.e(42).then(r.bind(null,624)))),a.features["ads/basic"]=i(o(r(101))),a.features["article/author"]=i(o(r(591))),a.features["article/body"]=i(o(r(542))),a.features["article/byline"]=i(o(r(543))),a.features["article/comments"]=i(o(r(121))),a.features["article/connatix"]=r(27)(null,null,(()=>r.e(43).then(r.bind(null,625)))),a.features["article/editor-note"]=i(o(r(544))),a.features["article/gallery-body"]=i(o(r(545))),a.features["article/metadata"]=i(o(r(308))),a.features["article/newsletter-signup"]=i(o(r(546
2))),a.features["article/outbrain-amp"]=i(o(r(547))),a.features["article/outbrain"]=i(o(r(548))),a.features["article/related-content"]=i(o(r(549))),a.features["article/sellwild"]=r(27)(null,null,(()=>r.e(44).then(r.bind(null,626)))),a.features["article/share-bar"]=i(o(r(550))),a.features["article/sponsor-note"]=i(o(r(551))),a.features["article/story"]=i(o(r(587))),a.features["article/video-body"]=i(o(r(552))),a.features["elections/balance-of-power"]=r(27)(null,null,(()=>r.e(45).then(r.bind(null,657)))),a.features["elections/group-embed"]=r(27)(null,null,(()=>Promise.resolve().then(r.bind(null,298)))),a.features["elections/header"]=r(27)(null,null,(()=>r.e(27).then(r.bind(null,652)))),a.features["elections/picker-embed"]=r(27)(null,null,(()=>r.e(12).then(r.bind(null,528)))),a.features["elections/race-embed"]=r(27)(null,null,(()=>Promise.resolve().then(r.bind(null,122)))),a.features["global/anyclip-player"]=i(o(r(71))),a.features["global/audience-io"]=i(o(r(240))),a.features["global/author"]=i(o(r(553))),a.features["global/breaking-news-bar"]=i(o(r(592))),a.features["global/cityspark-events"]=i(o(r(589))),a.features["global/conversations"]=i(o(r(554))),a.features["global/episode-list"]=i(o(r(593))),a.features["global/footer"]=i(o(r(590))),a.features["global/header"]=i(o(r(586))),a.features["global/headline"]=i(o(r(56))),a.features["global/hearken-embed"]=i(o(r(309))),a.features["global/HTML-embed"]=i(o(r(559))),a.features["global/icon-navigation"]=i(o(r(560))),a.features["global/internal-navigation"]=i(o(r(561))),a.features["global/just-HTML"]=i(r(562)),a.features["global/link-card"]=i(o(r(564))),a.features["global/link-list"]=i(o(r(565))),a.features["global/load-viafoura"]=i(o(r(566))),a.features["global/marquee"]=i(o(r(567))),a.features["global/media-tile"]=r(27)(null,null,(()=>r.e(46).then(r.bind(null,627)))),a.features["global/page-button"]=i(o(r(568))),a.features["global/pins-embed"]=r(27)(null,null,(()=>Promise.all([r.e(3),r.e(2),r.e(5),r.e(47)]).then(r.bind(null,628)))),a.features["global/placeholder-div"]=i(o(r(569))),a.features["global/promotional-image"]=i(o(r(574))),a.features["global/recent-pins"]=r(27)(null,null,(()=>Promise.all([r.e(2),r.e(21)]).then(r.bind(null,629)))),a.features["global/revcontent"]=r(27)(null,null,(()=>r.e(48).then(r.bind(null,630)))),a.features["global/rich-text"]=i(o(r(575))),a.features["global/section-headline"]=i(o(r(576))),a.features["global/social-buttons"]=i(o(r(577))),a.features["global/static-html"]=i(o(r(578))),a.features["global/story-list-global-content"]=i(o(r(579))),a.features["global/story-list-v2"]=i(o(r(149))),a.features["global/story-list"]=i(o(r(580))),a.features["global/trending-stories-bar"]=i(o(r(210))),a.features["global/vertical-video-gallery"]=r(27)(null,null,(()=>r.e(49).then(r.bind(null,650)))),a.features["global/viafoura-livechat"]=i(o(r(594))),a.features["global/video-player"]=i(o(r(588))),a.features["global/youtube-player"]=r(27)(null,null,(()=>Promise.all([r.e(7),r.e(10)]).then(r.bind(null,631)))),a.features["livestream/bitmovin"]=r(27)(null,null,(()=>r.e(6).then(r.bind(null,531)))),a.features["livestream/cyoa"]=r(27)(null,null,(()=>r.e(50).then(r.bind(null,658)))),a.features["livestream/livestream-event-picker"]=i(o(r(581))),a.features["search/searchResults"]=i(o(r(582))),a.features["search/searchSidebar"]=i(o(r(583))),a.features["staff/custom-page"]=r(27)(null,null,(()=>r.e(51).then(r.bind(null,632)))),a.features["staff/page-body"]=r(27)(null,null,(()=>r.e(52).then(r.bind(null,633)))),a.features["subscriptions/cart"]=r(27)(null,null,(()=>r.e(53).then(r.bind(null,603)))),a.features["subscriptions/confirmation"]=r(27)(null,null,(()=>r.e(13).then(r.bind(null,602)))),a.features["subscriptions/free-entry"]=r(27)(null,null,(()=>Promise.all([r.e(1),r.e(4),r.e(24)]).then(r.bind(null,605)))),a.features["subscriptions/management"]=r(27)(null,null,(()=>Promise.all([r.e(1),r.e(19)]).then(r.bind(null,653)))),a.features["subscriptions/orders"]=r(27)(null,null,(()=>r.e(54).then(r.bind(null,659)))),a.features["subscriptions/pins-leaderboard"]=r(27)(null,null,(()=>
2Promise.all([r.e(8),r.e(69)]).then(r.bind(null,648)))),a.features["subscriptions/products"]=r(27)(null,null,(()=>Promise.all([r.e(1),r.e(4),r.e(9),r.e(25)]).then(r.bind(null,651)))),a.features["weather/alerts"]=r(27)(null,null,(()=>r.e(55).then(r.bind(null,660)))),a.features["weather/baron-7-day"]=r(27)(null,null,(()=>r.e(56).then(r.bind(null,634)))),a.features["weather/baron-current-conditions"]=r(27)(null,null,(()=>r.e(57).then(r.bind(null,635)))),a.features["weather/baron-hourly"]=r(27)(null,null,(()=>r.e(58).then(r.bind(null,636)))),a.features["weather/baron-radar"]=r(27)(null,null,(()=>r.e(59).then(r.bind(null,637)))),a.features["weather/baron-traffic"]=r(27)(null,null,(()=>r.e(60).then(r.bind(null,638)))),a.features["weather/current-conditions"]=r(27)(null,null,(()=>r.e(61).then(r.bind(null,639)))),a.features["weather/daily-forecast"]=r(27)(null,null,(()=>r.e(62).then(r.bind(null,640)))),a.features["weather/forecast-video"]=r(27)(null,null,(()=>r.e(63).then(r.bind(null,641)))),a.features["weather/hourly-forecast"]=r(27)(null,null,(()=>r.e(64).then(r.bind(null,642)))),a.features["weather/hurricane-menu"]=r(27)(null,null,(()=>r.e(26).then(r.bind(null,643)))),a.features["weather/meteorologist-update"]=r(27)(null,null,(()=>r.e(65).then(r.bind(null,644)))),a.features["weather/radar"]=r(27)(null,null,(()=>r.e(66).then(r.bind(null,645)))),a.features["weather/school-closings"]=r(27)(null,null,(()=>r.e(23).then(r.bind(null,654)))),a.features["weather/search"]=r(27)(null,null,(()=>r.e(67).then(r.bind(null,646)))),a.features["weather/traffic-map"]=r(27)(null,null,(()=>r.e(68).then(r.bind(null,647)))),a.features["weather/tropics-watch"]=i(o(r(584))),a.layouts["account-page"]=n(o(r(478))),a.layouts.article=n(o(r(479))),a.layouts.minimal=n(o(r(480))),a.layouts.newsletters=n(o(r(481))),a.layouts.profile=n(o(r(482))),a.layouts["simple-dark"]=n(o(r(483))),a.layouts.simple=n(o(r(484))),a.layouts.appfeeds=n(o(r(585))),e.exports=a}])}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.