UNPKG

jslib-nightly

Version:

SheerID JavaScript Library

8 lines 934 kB
/*! * * VERSION: undefined * BUILD_TIMESTAMP: 1622760645472 * BUILD_DATE: Thu Jun 03 2021 22:50:45 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: undefined */ window.sheerIdPubV="undefined",function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.sheerid=t():e.sheerid=t()}(window,(function(){return function(e){function t(t){for(var n,a,i=t[0],o=t[1],s=0,u=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&u.push(r[a][0]),r[a]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={38:0};function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,a){n=r[e]=[t,a]}));t.push(n[2]=i);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+"es5/"+({0:"Tmetrix",1:"messages_ar",2:"messages_bg",3:"messages_cs",4:"messages_da",5:"messages_de",6:"messages_el",7:"messages_en-GB",8:"messages_es",9:"messages_es-ES",10:"messages_fi",11:"messages_fr",12:"messages_fr-CA",13:"messages_ga",14:"messages_hr",15:"messages_hu",16:"messages_id",17:"messages_it",18:"messages_iw",19:"messages_ja",20:"messages_ko",21:"messages_lo",22:"messages_lt",23:"messages_ms",24:"messages_nl",25:"messages_no",26:"messages_pl",27:"messages_pt",28:"messages_pt-BR",29:"messages_ru",30:"messages_sk",31:"messages_sl",32:"messages_sr",33:"messages_sv",34:"messages_th",35:"messages_tr",36:"messages_zh",37:"messages_zh-HK"}[e]||e)+".bundle.js"}(e),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var l=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}r[e]=void 0}};var u=setTimeout((function(){o({type:"timeout",target:s})}),12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackJsonpsheerid=window.webpackJsonpsheerid||[],o=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=o;return a(a.s=575)}([function(e,t,n){"use strict";e.exports=n(355)},function(e,t,n){"use strict";n.d(t,"d",(function(){return se})),n.d(t,"c",(function(){return Se})),n.d(t,"b",(function(){return _e})),n.d(t,"a",(function(){return Ae}));var r=n(264),a=n.n(r),i=n(94),o=n.n(i),s=n(105),l=n.n(s),u=n(4),c=n.n(u),d=n(0),f=n.n(d),p=n(160),m=n.n(p),h=n(85),g=n.n(h);function v(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}var y=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=v(r),o=i&&t[i];return o||(o=new((n=e).bind.apply(n,[void 0].concat(r))),i&&(t[i]=o)),o}},b={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],a=Number(n[0])==e,i=a&&n[0].slice(-1),o=a&&n[0].slice(-2);return t?1==i&&11!=o?"one":2==i&&12!=o?"two":3==i&&13!=o?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e];t.forEach((function(e){e&&e.locale&&(o.a.__addLocaleData(e),l.a.__addLocaleData(e))}))}function w(e){var t=e&&e.toLowerCase();return!(!o.a.__localeData__[t]||!l.a.__localeData__[t])}var C="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},S=(function(){function e(e){this.value=e}function t(t){var n,r;function a(n,r){try{var o=t[n](r),s=o.value;s instanceof e?Promise.resolve(s.value).then((function(e){a("next",e)}),(function(e){a("throw",e)})):i(o.done?"return":"normal",o.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?a(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,o){var s={key:e,arg:t,resolve:i,reject:o,next:null};r?r=r.next=s:(n=r=s,a(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),I=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N=function(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)},D=function(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},T=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},_=c.a.bool,A=c.a.number,x=c.a.string,k=c.a.func,P=c.a.object,j=c.a.oneOf,R=c.a.shape,F=c.a.any,L=c.a.oneOfType,U=j(["best fit","lookup"]),B=j(["narrow","short","long"]),V=j(["numeric","2-digit"]),z=k.isRequired,H={locale:x,timeZone:x,formats:P,messages:P,textComponent:F,defaultLocale:x,defaultFormats:P,onError:k},q={formatDate:z,formatTime:z,formatRelative:z,formatNumber:z,formatPlural:z,formatMessage:z,formatHTMLMessage:z},$=R(O({},H,q,{formatters:P,now:z})),W=(x.isRequired,L([x,P]),{localeMatcher:U,formatMatcher:j(["basic","best fit"]),timeZone:x,hour12:_,weekday:B,era:B,year:V,month:j(["numeric","2-digit","narrow","short","long"]),day:V,hour:V,minute:V,second:V,timeZoneName:j(["short","long"])}),G={localeMatcher:U,style:j(["decimal","currency","percent"]),currency:x,currencyDisplay:j(["symbol","code","name"]),useGrouping:_,minimumIntegerDigits:A,minimumFractionDigits:A,maximumFractionDigits:A,minimumSignificantDigits:A,maximumSignificantDigits:A},Y={style:j(["best fit","numeric"]),units:j(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])},K={style:j(["cardinal","ordinal"])},Z=Object.keys(H),J={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},X=/[&><"']/g;function Q(e){return(""+e).replace(X,(function(e){return J[e]}))}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t}),{})}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;g()(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function ne(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":C(e))||null===e||"object"!==(void 0===t?"undefined":C(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!a(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}function re(e,t,n){var r=e.props,a=e.state,i=e.context,o=void 0===i?{}:i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=o.intl,u=void 0===l?{}:l,c=s.intl,d=void 0===c?{}:c;return!ne(t,r)||!ne(n,a)||!(d===u||ne(ee(d,Z),ee(u,Z)))}function ae(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function ie(e){0}function oe(e){return e.displayName||e.name||"Component"}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,a=t.withRef,i=void 0!==a&&a,o=function(t){function n(e,t){S(this,n);var r=D(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return te(t),r}return N(n,t),M(n,[{key:"getWrappedInstance",value:function(){return g()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return f.a.createElement(e,O({},this.props,I({},r,this.context.intl),{ref:i?function(e){return t._wrappedInstance=e}:null}))}}]),n}(d.Component);return o.displayName="InjectIntl("+oe(e)+")",o.contextTypes={intl:$},o.WrappedComponent=e,m()(o,e)}function le(e){return o.a.prototype._resolveLocale(e)}function ue(e){return o.a.prototype._findPluralRuleFunction(e)}var ce=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(this,e);var r="ordinal"===n.style,a=ue(le(t));this.format=function(e){return a(e,r)}},de=Object.keys(W),fe=Object.keys(G),pe=Object.keys(Y),me=Object.keys(K),he={second:60,minute:60,hour:24,day:30,month:12};function ge(e){var t=l.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function ve(e,t,n,r){var a=e&&e[t]&&e[t][n];if(a)return a;r(ae("No "+t+" format named: "+n))}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,o=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=n.id,c=n.defaultMessage;g()(u,"[React Intl] An `id` must be provided to format a message.");var d=o&&o[u],f=Object.keys(r).length>0;if(!f)return d||c||u;var p=void 0,m=e.onError||ie;if(d)try{var h=t.getMessageFormat(d,a,i);p=h.format(r)}catch(e){m(ae('Error formatting message: "'+u+'" for locale: "'+a+'"'+(c?", using default message as fallback.":""),e))}else(!c||a&&a.toLowerCase()!==s.toLowerCase())&&m(ae('Missing message: "'+u+'" for locale: "'+a+'"'+(c?", using default message as fallback.":"")));if(!p&&c)try{var v=t.getMessageFormat(c,s,l);p=v.format(r)}catch(e){m(ae('Error formatting the default message for: "'+u+'"',e))}return p||m(ae('Cannot format message: "'+u+'", using message '+(d||c?"source":"id")+" as fallback.")),p||d||c||u}var be=Object.freeze({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,o=e.timeZone,s=r.format,l=e.onError||ie,u=new Date(n),c=O({},o&&{timeZone:o},s&&ve(i,"date",s,l)),d=ee(r,de,c);try{return t.getDateTimeFormat(a,d).format(u)}catch(e){l(ae("Error formatting date.",e))}return String(u)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,o=e.timeZone,s=r.format,l=e.onError||ie,u=new Date(n),c=O({},o&&{timeZone:o},s&&ve(i,"time",s,l)),d=ee(r,de,c);d.hour||d.minute||d.second||(d=O({},d,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(a,d).format(u)}catch(e){l(ae("Error formatting time.",e))}return String(u)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,o=r.format,s=e.onError||ie,u=new Date(n),c=new Date(r.now),d=o&&ve(i,"relative",o,s),f=ee(r,pe,d),p=O({},l.a.thresholds);ge(he);try{return t.getRelativeFormat(a,f).format(u,{now:isFinite(c)?c:t.now()})}catch(e){s(ae("Error formatting relative time.",e))}finally{ge(p)}return String(u)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,o=r.format,s=e.onError||ie,l=o&&ve(i,"number",o,s),u=ee(r,fe,l);try{return t.getNumberFormat(a,u).format(n)}catch(e){s(ae("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=ee(r,me),o=e.onError||ie;try{return t.getPluralFormat(a,i).format(n)}catch(e){o(ae("Error formatting plural.",e))}return"other"},formatMessage:ye,formatHTMLMessage:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?Q(n):n,e}),{});return ye(e,t,n,a)}}),Ee=Object.keys(H),we=Object.keys(q),Ce={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:ie},Se=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));g()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var a=n.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):a?a.now():Date.now();var s=a||{},u=s.formatters,c=void 0===u?{getDateTimeFormat:y(Intl.DateTimeFormat),getNumberFormat:y(Intl.NumberFormat),getMessageFormat:y(o.a),getRelativeFormat:y(l.a),getPluralFormat:y(ce)}:u;return r.state=O({},c,{now:function(){return r._didDisplay?Date.now():i}}),r}return N(t,e),M(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=ee(this.props,Ee,e);for(var n in Ce)void 0===t[n]&&(t[n]=Ce[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(w(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,a=r.locale,i=r.defaultLocale,o=r.defaultFormats;(0,r.onError)(ae('Missing locale data for locale: "'+a+'". Using default locale: "'+i+'" as fallback.')),t=O({},t,{locale:i,formats:o,messages:Ce.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return we.reduce((function(n,r){return n[r]=be[r].bind(null,e,t),n}),{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:O({},e,t,{formatters:a,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return d.Children.only(this.props.children)}}]),t}(d.Component);Se.displayName="IntlProvider",Se.contextTypes={intl:$},Se.childContextTypes={intl:$.isRequired};var Me=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatDate,n=e.textComponent,r=this.props,a=r.value,i=r.children,o=t(a,this.props);return"function"==typeof i?i(o):f.a.createElement(n,null,o)}}]),t}(d.Component);Me.displayName="FormattedDate",Me.contextTypes={intl:$};var Ie=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatTime,n=e.textComponent,r=this.props,a=r.value,i=r.children,o=t(a,this.props);return"function"==typeof i?i(o):f.a.createElement(n,null,o)}}]),t}(d.Component);Ie.displayName="FormattedTime",Ie.contextTypes={intl:$};var Oe=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));te(n);var a=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return r.state={now:a},r}return N(t,e),M(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this;clearTimeout(this._timer);var r=e.value,a=e.units,i=e.updateInterval,o=new Date(r).getTime();if(i&&isFinite(o)){var s=o-t.now,l=function(e){switch(e){case"second":return 1e3;case"minute":return 6e4;case"hour":return 36e5;case"day":return 864e5;default:return 2147483647}}(a||function(e){var t=Math.abs(e);return t<6e4?"second":t<36e5?"minute":t<864e5?"hour":"day"}(s)),u=Math.abs(s%l),c=s<0?Math.max(i,l-u):Math.max(i,u);this._timer=setTimeout((function(){n.setState({now:n.context.intl.now()})}),c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){(function(e,t){if(e===t)return!0;var n=new Date(e).getTime(),r=new Date(t).getTime();return isFinite(n)&&isFinite(r)&&n===r})(e.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl,t=e.formatRelative,n=e.textComponent,r=this.props,a=r.value,i=r.children,o=t(a,O({},this.props,this.state));return"function"==typeof i?i(o):f.a.createElement(n,null,o)}}]),t}(d.Component);Oe.displayName="FormattedRelative",Oe.contextTypes={intl:$},Oe.defaultProps={updateInterval:1e4};var Ne=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatNumber,n=e.textComponent,r=this.props,a=r.value,i=r.children,o=t(a,this.props);return"function"==typeof i?i(o):f.a.createElement(n,null,o)}}]),t}(d.Component);Ne.displayName="FormattedNumber",Ne.contextTypes={intl:$};var De=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return re.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatPlural,n=e.textComponent,r=this.props,a=r.value,i=r.other,o=r.children,s=t(a,this.props),l=this.props[s]||i;return"function"==typeof o?o(l):f.a.createElement(n,null,l)}}]),t}(d.Component);De.displayName="FormattedPlural",De.contextTypes={intl:$},De.defaultProps={style:"cardinal"};var Te=function(e,t){return ye({},{getMessageFormat:y(o.a)},e,t)},_e=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.defaultMessage||te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ne(n,t))return!0;for(var r=O({},e,{values:t}),a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return re.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e,t=this.context.intl||{},n=t.formatMessage,r=void 0===n?Te:n,a=t.textComponent,i=void 0===a?"span":a,o=this.props,s=o.id,l=o.description,u=o.defaultMessage,c=o.values,f=o.tagName,p=void 0===f?i:f,m=o.children,h=void 0,g=void 0,v=void 0;if(c&&Object.keys(c).length>0){var y=Math.floor(1099511627776*Math.random()).toString(16),b=(e=0,function(){return"ELEMENT-"+y+"-"+(e+=1)});h="@__"+y+"__@",g={},v={},Object.keys(c).forEach((function(e){var t=c[e];if(Object(d.isValidElement)(t)){var n=b();g[e]=h+n+h,v[n]=t}else g[e]=t}))}var E=r({id:s,description:l,defaultMessage:u},g||c),w=void 0;return w=v&&Object.keys(v).length>0?E.split(h).filter((function(e){return!!e})).map((function(e){return v[e]||e})):[E],"function"==typeof m?m.apply(void 0,T(w)):d.createElement.apply(void 0,[p,null].concat(T(w)))}}]),t}(d.Component);_e.displayName="FormattedMessage",_e.contextTypes={intl:$},_e.defaultProps={values:{}};var Ae=function(e){function t(e,n){S(this,t);var r=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return N(t,e),M(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ne(n,t))return!0;for(var r=O({},e,{values:t}),a=arguments.length,i=Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return re.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatHTMLMessage,n=e.textComponent,r=this.props,a=r.id,i=r.description,o=r.defaultMessage,s=r.values,l=r.tagName,u=void 0===l?n:l,c=r.children,d=t({id:a,description:i,defaultMessage:o},s);if("function"==typeof c)return c(d);var p={__html:d};return f.a.createElement(u,{dangerouslySetInnerHTML:p})}}]),t}(d.Component);Ae.displayName="FormattedHTMLMessage",Ae.contextTypes={intl:$},Ae.defaultProps={values:{}},E(b),E(a.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(73),a=n.n(r),i=n(6);let o=4,s="";const l={info:1,log:2,warn:3,error:4},u={info:"#26c1db",log:"#09f979",warn:"#f6b13f",error:"#e12046"},c="color: white; font-weight: bold; padding: 2px 10px;";let d;const f=(...e)=>{o<=3&&console.warn(`%c${s} warn`,`background: ${u.warn};${c}`,...e)},p={error:(e,t)=>{if(o<=4){if(!e)return void console.error(new Error("An error must be supplied"));let r;"string"==typeof e&&(r=new Error(e)),(n=e)&&n.stack&&n.message&&(r=e),r||(r=new Error("Unknown error"));let o={errorMessageGroup:t};try{if(d&&d.getState){const e=d.getState(),n=Object(i.c)(()=>e.verificationResponse.errorIds);o={errorMessageGroup:t,programId:Object(i.c)(()=>e.programId),isLoading:Object(i.c)(()=>e.isLoading),isErrored:Object(i.c)(()=>e.isErrored),errorIdsFromVerRsp:a()(n)?n.join:void 0,verificationId:Object(i.c)(()=>e.verificationResponse.verificationId),currentStep:Object(i.c)(()=>e.verificationResponse.currentStep),locale:Object(i.c)(()=>e.programTheme.intl.locale),isTestMode:Object(i.c)(()=>e.programTheme.isTestMode),openOrgSearchEnabled:Object(i.c)(()=>e.programTheme.openOrgSearchEnabled),jslibVerActual:Object(i.c)(()=>window.sheerIdPubV,"?"),jslibVerRequested:Object(i.c)(()=>window.sheerIdReqV,"?")}}}catch(n){console.warn("Unable to assemble useful error attributes",n)}try{window.NREUM?window.NREUM.noticeError(r,o):f("Off-site logging not available.")}catch(n){console.error("Unable to send error to remote service",n)}console.error(`%c${s} error`,`background: ${u.error};${c}`,r,o)}var n},warn:f,log:(...e)=>{o<=2&&console.log(`%c${s} log`,`background: ${u.log};${c}`,...e)},info:(...e)=>{o<=1&&console.log(`%c${s} info`,`background: ${u.info};${c}`,...e)},logAPIResponseTime:(e,t)=>{window.NREUM?window.NREUM.addPageAction("API-calls-timing",{api_call:e,api_response_time:t}):f("Off-site logging not available.")},setLogLevel:e=>{if(!l.hasOwnProperty(e))throw new Error(`Unknown logLevel '${e}'`);o=l[e],console.log(`%c${s} log level set to ${e}`,`background: ${u[e]};${c}`)},setPrefix:e=>{s=e},init:e=>{d=e}}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"p",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"n",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"m",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"q",(function(){return S})),n.d(t,"l",(function(){return M}));var r=n(54),a=n.n(r),i=n(2);const o=["ar","bg","cs","da","de","el","en-GB","en-US","es-ES","es","fi","fr-CA","fr","ga","hr","hu","id","it","iw","ja","ko","lo","lt","ms","nl","no","pl","pt-BR","pt","ru","sk","sl","sr","sv","th","tr","zh-HK","zh"];let s;!function(e){e.collectStudentPersonalInfo="collectStudentPersonalInfo",e.collectTeacherPersonalInfo="collectTeacherPersonalInfo",e.collectMemberPersonalInfo="collectMemberPersonalInfo",e.collectMilitaryStatus="collectMilitaryStatus",e.collectActiveMilitaryPersonalInfo="collectActiveMilitaryPersonalInfo",e.collectInactiveMilitaryPersonalInfo="collectInactiveMilitaryPersonalInfo",e.collectSeniorPersonalInfo="collectSeniorPersonalInfo",e.collectAgePersonalInfo="collectAgePersonalInfo",e.collectFirstResponderPersonalInfo="collectFirstResponderPersonalInfo",e.collectMedicalProfessionalPersonalInfo="collectMedicalProfessionalPersonalInfo",e.collectEmployeePersonalInfo="collectEmployeePersonalInfo",e.collectSocialSecurityNumber="collectSocialSecurityNumber",e.cancelSocialSecurityNumber="cancelSocialSecurityNumber",e.collectDriverLicensePersonalInfo="collectDriverLicensePersonalInfo",e.collectGeneralIdentityPersonalInfo="collectGeneralIdentityPersonalInfo",e.collectHybridIdentityPersonalInfo="collectHybridIdentityPersonalInfo",e.collectLicensedProfessionalPersonalInfo="collectLicensedProfessionalPersonalInfo",e.docUpload="docUpload",e.pending="pending",e.docReviewLimitExceeded="docReviewLimitExceeded",e.success="success",e.error="error",e.sso="sso",e.smsLoop="smsLoop",e.emailLoop="emailLoop",e.cancelEmailLoop="cancelEmailLoop"}(s||(s={}));const l=a()(s);let u;!function(e){e.docUpload="docUpload",e.pending="pending",e.error="error"}(u||(u={}));const c=a()(u);let d;!function(e){e.loading="loading"}(d||(d={}));const f=[...a()(s),...a()(d)];let p;!function(e){e.STUDENT="student",e.MILITARY="military",e.TEACHER="teacher",e.MEMBER="member",e.SENIOR="senior",e.AGE="age",e.FIRST_RESPONDER="firstResponder",e.MEDICAL="medical",e.EMPLOYMENT="employment",e.IDENTITY="identity",e.LICENSED_PROFESSIONAL="licensedProfessional"}(p||(p={}));const m=a()(p);let h;!function(e){e.ACTIVE_DUTY="activeDuty",e.VETERAN="veteran",e.RESERVIST="reservist",e.MILITARY_RETIREE="retiree",e.MILITARY_FAMILY="militaryFamily",e.FIREFIGHTER="fireFighter",e.POLICE="police",e.EMT="emt",e.NURSE="nurse",e.DRIVER_LICENSE="driverLicense",e.GENERAL_IDENTITY="generalIdentity",e.HYBRID_IDENTITY="hybridIdentity"}(h||(h={}));a()(h);let g,v,y;!function(e){e.ACTIVE_DUTY="Active Duty",e.MILITARY_RETIREE="Military Retiree",e.RESERVIST="Reservist",e.VETERAN="Veteran",e.MILITARY_FAMILY="Registered Military Dependent"}(g||(g={})),function(e){e.FIREFIGHTER="Firefighter",e.POLICE="Police",e.EMT="EMT"}(v||(v={})),function(e){e.NURSE="Nurse",e.DOCTOR="Doctor",e.OTHER_HEALTH_WORKER="Other Health Worker"}(y||(y={}));a()(g),a()(v),a()(y);let b;!function(e){e.firstName="firstName",e.lastName="lastName",e.memberId="memberId",e.organization="organization",e.birthDate="birthDate",e.email="email",e.phoneNumber="phoneNumber",e.postalCode="postalCode",e.address1="address1",e.city="city",e.country="country",e.state="state",e.dischargeDate="dischargeDate",e.docUpload="docUpload",e.status="status",e.statuses="statuses",e.marketConsentValue="marketConsentValue",e.socialSecurityNumber="socialSecurityNumber",e.carrierConsentValue="carrierConsentValue",e.driverLicenseNumber="driverLicenseNumber"}(b||(b={}));const E=a()(b);let w;!function(e){e.ON_VERIFICATION_READY="ON_VERIFICATION_READY",e.ON_VERIFICATION_SUCCESS="ON_VERIFICATION_SUCCESS",e.ON_VERIFICATION_STEP_CHANGE="ON_VERIFICATION_STEP_CHANGE"}(w||(w={}));const C=a()(w),S=e=>{i.a.info("Registering additional locales "+e.join(", ")),o.push(...e)};let M;!function(e){e.AK="AK",e.AL="AL",e.AR="AR",e.AZ="AZ",e.CA="CA",e.CO="CO",e.CT="CT",e.DC="DC",e.DE="DE",e.FL="FL",e.GA="GA",e.HI="HI",e.IA="IA",e.ID="ID",e.IL="IL",e.IN="IN",e.KS="KS",e.KY="KY",e.LA="LA",e.MA="MA",e.MD="MD",e.ME="ME",e.MI="MI",e.MN="MN",e.MO="MO",e.MS="MS",e.MT="MT",e.NC="NC",e.ND="ND",e.NE="NE",e.NH="NH",e.NJ="NJ",e.NM="NM",e.NV="NV",e.NY="NY",e.OH="OH",e.OK="OK",e.OR="OR",e.PA="PA",e.RI="RI",e.SC="SC",e.SD="SD",e.TN="TN",e.TX="TX",e.UT="UT",e.VA="VA",e.VT="VT",e.WA="WA",e.WI="WI",e.WV="WV",e.WY="WY"}(M||(M={}))},function(e,t,n){e.exports=n(401)()},function(e,t,n){"use strict";n.d(t,"o",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"n",(function(){return E})),n.d(t,"m",(function(){return w})),n.d(t,"k",(function(){return C})),n.d(t,"c",(function(){return S})),n.d(t,"h",(function(){return I})),n.d(t,"g",(function(){return O})),n.d(t,"l",(function(){return N})),n.d(t,"f",(function(){return D})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return A})),n.d(t,"e",(function(){return x})),n.d(t,"j",(function(){return k}));var r=n(9),a=n.n(r),i=n(16),o=n.n(i),s=n(28),l=n.n(s),u=n(23),c=n(24),d=n(2),f=n(59),p=n(19),m=n(3),h=n(6),g=n(21),v=n(36);const y=(e,t)=>{const n=t.viewModel,r=Object(u.c)(n,t=>{t.organization.id=e.id,t.organization.idExtended=e.idExtended,t.organization.name=e.name,n.organization&&void 0!==n.organization.source&&(t.organization.source=n.organization.source)});t.updateViewModel(r)},b=e=>{const t=e.viewModel,n=Object(v.c)(),r=Object(u.c)(t,e=>{var r;a()(r=o()(t)).call(r,t=>{n.has(t)&&(e[t]=n.get(t))})});e.updateViewModel(r)},E=(e,t,n)=>{const{fieldValidationErrors:r}=n,a=Object(u.c)(r,r=>{r[e]&&(r[e]=Object(c.g)(e,t,n.formValidationOptions))});w(a,n)},w=(e,t)=>{t.updateFieldValidationErrors(e)},C=(e,t)=>Object(h.c)(()=>1===t.length)&&"US"===Object(h.c)(()=>t[0])||Object(h.c)(()=>"US"===e.value)||Object(h.c)(()=>void 0===e.value),S=(e,t)=>{const n=e.verificationResponse.availableStatuses||e.previousVerificationResponse&&e.previousVerificationResponse.availableStatuses,r=[];if(!n)return null;for(const e of n)r.push({value:e,label:t.formatMessage({id:e,defaultMessage:m.g[e]})});return r},M=e=>"birthDate"===e||"birthDateDay"===e?"birthDateYear":e,I=e=>{const t=Object(p.b)("submitButton");"Enter"===e.key&&t&&t.click()},O=e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),Object(f.a)("organization"))},N=(e,t,n)=>{const r=Object(c.b)(e,t.formValidationOptions);if(!Object(c.d)(r))d.a.info(n+" submitting form"),t.submitStep(n,e,t.verificationResponse);else{const e=((e,t)=>{let n;for(const r of e)if(t[r])return n=r,M(n)})((()=>{const e=Object(p.c)(),t=[];return l()(e).call(e,e=>t.push(e.fieldId)),t})(),r);w(r,t),Object(f.a)(e)}},D=(e,t,n)=>({estReviewTime:n.formatMessage({id:"dateTime."+(Object(h.c)(()=>e.estimatedReviewTime)||Object(g.e)(t)),default:"a few minutes"}),maxReviewTime:n.formatMessage({id:"dateTime."+(Object(h.c)(()=>e.maxReviewTime)||Object(g.i)(t)),default:"2 hours"})}),T=(e,t)=>{const n=Object(g.b)(e);return l()(n).call(n,e=>({value:e,label:t.formatMessage({id:"countries."+e,defaultMessage:e})}))},_=(e,t)=>{const n=Object(g.c)(e);return l()(n).call(n,e=>({value:e,label:t.formatMessage({id:"states."+e,defaultMessage:e})}))},A=(e,t)=>{const n=Object(g.a)(e);return l()(n).call(n,e=>({value:e,label:t.formatMessage({id:"locales."+e,defaultMessage:e})}))},x=e=>e.length>0?e[0]:{value:"US",label:"United States"},k=(e,t,n)=>Object(u.c)(e,e=>{e[t]=n})},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n(9),a=n.n(r),i=n(16),o=n.n(i),s=n(73),l=n.n(s),u=n(159),c=n.n(u),d=n(76),f=n.n(d),p=n(262),m=n.n(p),h=n(263),g=n.n(h);function v(e){return g()(e)}function y(e,t){try{return e()}catch(e){return t}}function b(...e){const t=e=>e&&"object"==typeof e;function n(e,r){var i;return a()(i=o()(r)).call(i,a=>{const i=e[a],o=r[a];l()(i)&&l()(o)?e[a]=c()(i).call(i,o):t(i)&&t(o)?e[a]=n(f()({},i),o):e[a]=o}),e}if(e.length<2)throw new Error("deepMerge: this function expects at least 2 objects to be provided");if(m()(e).call(e,e=>!t(e)))throw new Error('deepMerge: all values should be of type "object"');const r=e.shift();let i;for(;i=e.shift();)n(r,i);return r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"n",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"l",(function(){return h})),n.d(t,"p",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"o",(function(){return y}));const r="en-US",a="https://cdn.jsdelivr.net/npm/@sheerid/jslib@1/",i=["image/png","image/gif","image/jpg","image/jpeg","image/bmp","application/pdf"],o=3,s="file",l="mockStep",u="mockSubSegment",c="mockErrorId",d="mockPreviousStep",f=9,p=1,m="https://www.sheerid.com/privacy-policy/",h="SheerID",g={MAX_RESULT_SIZE:25,ORG_TYPES:"UNIVERSITY,HIGH_SCHOOL,K12",DEFAULT_ORG_TYPES:"UNIVERSITY",URL_REGEX:/(https?:\/\/(www\.)?)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/,SCHOOL_HOUSE_URL:"https://s3.amazonaws.com/com.sheerid.resources/common/images/requestOrganization/school.svg",SHEERID_LOGO_URL:"https://s3.amazonaws.com/com.sheerid.resources/common/images/requestOrganization/logo.svg",FEEDBACK_FORM_URL:"https://verify.sheerid.com/verification-support/feedback.html?token="},v=1e4,y={CLASS_NAMES:{INLINE_IFRAME_CONTENT:"sid-inline-iframe",MODAL_WRAPPER:"sid-modal__wrapper",MODAL_IFRAME:"sid-modal__iframe",OVERLAY:"sid-modal__overlay",CLOSE_BUTTON:"sid-modal__close-button",CLOSE_TEXT:"sid-modal__close-text",CLOSE_ICON:"sid-modal__close-icon"},DEFAULT_MOBILE_THRESHOLD_WIDTH:620,MODAL_OPACITY_TRANSITION_PERIOD:300}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return k}));var r=n(11),a=n.n(r),i=n(17),o=n.n(i),s=n(12),l=n.n(s),u=n(9),c=n.n(u),d=n(13),f=n.n(d),p=n(22),m=n.n(p),h=n(20),g=n.n(h),v=n(10),y=n.n(v),b=n(16),E=n.n(b),w=n(2),C=n(36),S=n(15),M=n(7),I=n(3),O=n(6);function N(e,t){var n=E()(e);if(a.a){var r=a()(e);t&&(r=o()(r).call(r,(function(t){return l()(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)c()(n=N(Object(r),!0)).call(n,(function(t){y()(e,t,r[t])}));else if(f.a)m()(e,f()(r));else{var a;c()(a=N(Object(r))).call(a,(function(t){g()(e,t,l()(r,t))}))}}return e}const T={restApi:{serviceUrl:"https://services.sheerid.com/",resources:{verification:"rest/v2/verification/",program:{base:"rest/v2/program/",theme:"theme",organization:"organization"},conversion:{base:"rest/v2/conversion/"}}},mockStep:void 0,mockSubSegment:void 0,mockErrorId:void 0,doFetchTheme:!0,logLevel:"error",locale:null,messages:{},messagesWithLocale:{},urlStudentFaq:"https://verify.sheerid.com/student-faq/",urlSeniorFaq:"https://verify.sheerid.com/us-senior-faq/",urlAgeFaq:"https://verify.sheerid.com/us-age-faq/",urlMilitaryFaq:"https://verify.sheerid.com/military-faq/",urlTeacherFaq:"https://verify.sheerid.com/us-teacher-faq/",urlMemberFaq:"https://verify.sheerid.com/membership-faq/",urlFirstResponderFaq:"https://verify.sheerid.com/first-responder-faq/",urlMedicalFaq:"https://verify.sheerid.com/us-medical-faq/",urlEmploymentFaq:"https://verify.sheerid.com/employment-faq/",urlIdentityFaq:"https://verify.sheerid.com/identity-faq/",urlLicensedProfessionalFaq:"https://verify.sheerid.com/licensed-professional-faq/",urlAddSchoolFaq:"https://verify.sheerid.com/add-school-request-faq/",urlAddSchoolForm:"https://offers.sheerid.com/sheerid/add-school-request/",privacyPolicyUrl:void 0,cookies:{enabled:!0,secure:!0,expires:7},useFingerprinting:!1,verificationId:void 0,minimumOrganizationSearchLength:M.d,httpRequestTimeout:M.f};let _=D({},T);const A=()=>_,x=()=>{_=D({},T)},k=e=>{if(e.hasOwnProperty("logLevel")){try{w.a.setLogLevel(e.logLevel)}catch(e){console.error(e)}_.logLevel=e.logLevel}if(e.hasOwnProperty("restApi")){if(e.restApi.hasOwnProperty("serviceUrl")){const t=Object(C.a)(e.restApi.serviceUrl);_.restApi.serviceUrl=t,w.a.info('option "serviceUrl" set to '+_.restApi.serviceUrl)}}e.hasOwnProperty(M.j)&&(Object(S.i)(e[M.j]),_[M.j]=e[M.j],w.a.info(`option "${M.j}" set to ${_[M.j]}`)),e.hasOwnProperty(M.i)&&(Object(S.i)(e[M.j]),_[M.i]=e[M.i],w.a.info(`option "${M.i}" set to ${_[M.i]}`)),e.hasOwnProperty(M.k)&&(_[M.k]=e[M.k],w.a.info(`option "${M.k}" set to ${_[M.k]}`)),e.hasOwnProperty(M.h)&&(_[M.h]=e[M.h],w.a.info(`option "${M.h}" set to ${_[M.h]}`)),e.hasOwnProperty("messages")&&(_.messagesWithLocale=D(D({},_.messagesWithLocale),{},{"en-US":e.messages}),w.a.warn('option "messages" has been deprecated and replaced with "messagesWithLocale". Messages have been set for locale "en-US" using: ',_.messagesWithLocale,'\nThese messages will override existing messages of the same key for "en-US" locale.')),e.hasOwnProperty("messagesWithLocale")&&(_.messagesWithLocale=Object(O.b)({},_.messagesWithLocale,e.messagesWithLocale),e&&e.messagesWithLocale&&Object(I.q)(E()(e.messagesWithLocale)),w.a.info('option "messagesWithLocale" set to',_.messagesWithLocale)),e.hasOwnProperty("locale")&&(Object(S.h)(e.locale),_.locale=e.locale,w.a.info('option "locale" set to '+_.locale)),e.hasOwnProperty("urlStudentFaq")&&(_.urlStudentFaq=e.urlStudentFaq,w.a.info('option "urlStudentFaq" set to '+_.urlStudentFaq)),e.hasOwnProperty("urlSeniorFaq")&&(_.urlSeniorFaq=e.urlSeniorFaq,w.a.info('option "urlSeniorFaq" set to '+_.urlSeniorFaq)),e.hasOwnProperty("urlMilitaryFaq")&&(_.urlMilitaryFaq=e.urlMilitaryFaq,w.a.info('option "urlMilitaryFaq" set to '+_.urlMilitaryFaq)),e.hasOwnProperty("urlTeacherFaq")&&(_.urlTeacherFaq=e.urlTeacherFaq,w.a.info('option "urlTeacherFaq" set to '+_.urlTeacherFaq)),e.hasOwnProperty("urlMemberFaq")&&(_.urlMemberFaq=e.urlMemberFaq,w.a.info('option "urlMemberFaq" set to '+_.urlMemberFaq)),e.hasOwnProperty("urlMedicalFaq")&&(_.urlMedicalFaq=e.urlMedicalFaq,w.a.info('option "urlMedicalFaq" set to '+_.urlMedicalFaq)),e.hasOwnProperty("urlEmploymentFaq")&&(_.urlEmploymentFaq=e.urlEmploymentFaq,w.a.info('option "urlEmploymentFaq" set to '+_.urlEmploymentFaq)),e.hasOwnProperty("urlAddSchoolFaq")&&(_.urlAddSchoolFaq=e.urlAddSchoolFaq,w.a.info('option "urlAddSchoolFaq" set to '+_.urlAddSchoolFaq)),e.hasOwnProperty("urlAddSchoolForm")&&(_.urlAddSchoolForm=e.urlAddSchoolForm,w.a.info('option "urlAddSchoolForm" set to '+_.urlAddSchoolForm)),e.hasOwnProperty("doFetchTheme")&&(_.doFetchTheme=e.doFetchTheme,w.a.info('option "doFetchTheme" set to '+_.doFetchTheme)),e.hasOwnProperty("cookies")&&(_.cookies=D(D({},_.cookies),e.cookies),w.a.info('option "cookies" set to',_.cookies)),e.hasOwnProperty("useFingerprinting")&&(_.useFingerprinting=e.useFingerprinting,w.a.info('option "useFingerprinting" set to',_.useFingerprinting)),e.hasOwnProperty("marketConsent")&&(_.marketConsent=e.marketConsent,w.a.info('option "market consent" set to',_.marketConsent)),e.hasOwnProperty("verificationId")&&(_.verificationId=e.verificationId,w.a.info('option "verificationId" set to',_.verificationId)),e.hasOwnProperty("minimumOrganizationSearchLength")&&(_.minimumOrganizationSearchLength=e.minimumOrganizationSearchLength,w.a.info('option "minimumOrganizationSearchLength" set to',_.minimumOrganizationSearchLength)),e.hasOwnProperty("customCss")&&(_.customCss=e.customCss,w.a.info('option "customCss" set to',_.customCss)),e.hasOwnProperty("logoUrl")&&(_.logoUrl=e.logoUrl,w.a.info('option "logoUrl" set to',_.logoUrl)),e.hasOwnProperty("httpRequestTimeout")&&(_.httpRequestTimeout=e.httpRequestTimeout,w.a.info('option "httpRequestTimeout" set to',_.httpRequestTimeout)),e.hasOwnProperty("privacyPolicyUrl")&&(_.privacyPolicyUrl=e.privacyPolicyUrl,w.a.info('option "privacyPolicyUrl" set to',_.privacyPolicyUrl))}},function(e,t,n){e.exports=n(326)},function(e,t,n){var r=n(343);e.exports=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(312)},function(e,t,n){e.exports=n(323)},function(e,t,n){e.exports=n(334)},function(e,t,n){var r=n(411);function a(e,t,n,a,i,o,s){try{var l=e[o](s),u=l.value}catch(e){return void n(e)}l.done?t(u):r.resolve(u).then(a,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new r((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"m",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"n",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return E}));var r=n(34),a=n.n(r),i=n(3),o=n(47);const s=e=>{if(a()(i.o).call(i.o,e)<0)throw new Error(`Expected valid verification step name but received "${e}".`)},l=e=>{if(a()(i.h).call(i.h,e)<0)throw new Error(`Expected valid verification step name but received "${e}".`)},u=e=>{if(a()(i.k).call(i.k,e)<0)throw new Error(`Expected valid segment name but received "${e}".`)},c=e=>{if(!d(e))throw new Error(`Invalid locale ${e}, expected one of ${i.e.join(", ")}`)},d=e=>a()(i.e).call(i.e,e)>-1,f=e=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new Error(`Expected argument of type Node.ELEMENT_NODE but received "${typeof e} ${e.nodeType}"`)},p=e=>{E(e)},m=e=>{const t=Object(o.c)();if(a()(i.b).call(i.b,e)<0&&a()(t).call(t,e)<0)throw new Error(`Expected valid field ID but received ${e}.\n Valid FieldIds are [${i.b.join(", ")}, ${t.join(", ")}]`)},h=e=>{g(e.name),v(e.callback)},g=e=>{if(a()(i.d).call(i.d,e)<0)throw new Error(`Expected valid hook name but received ${e}. Valid HookNames are [${i.d.join(", ")}]`)},v=e=>{if("function"!=typeof e)throw new Error('Expected type "function", but received '+typeof e)},y=e=>{if("string"!=typeof e)throw new Error(`Expected trackingId to be a string, but received ${typeof e} instead.`);if(e.length<1)throw new Error("Expected trackingId string length greather than 0.")},b=e=>{if("object"!=typeof e)throw new Error(`Expected conversion request to be an object, but received ${typeof e} instead.`);if(e.hasOwnProperty("amount")&&"number"!=typeof e.amount)throw new Error('Expected conversion request property "amount" to have type number.')},E=e=>{if(!new RegExp("^[0-9a-fA-F]{24}$").test(e))throw new Error(`Invalid databaseId "${e}". Expected a 24-digit hexadecimal string.`)}},function(e,t,n){e.exports=n(310)},function(e,t,n){e.exports=n(319)},function(e,t,n){"use strict";var r=n(32),a=n(109).f,i=n(222),o=n(27),s=n(97),l=n(66),u=n(57),c=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,f,p,m,h,g,v,y=e.target,b=e.global,E=e.stat,w=e.proto,C=b?r:E?r[y]:(r[y]||{}).prototype,S=b?o:o[y]||(o[y]={}),M=S.prototype;for(f in t)n=!i(b?f:y+(E?".":"#")+f,e.forced)&&C&&u(C,f),m=S[f],n&&(h=e.noTargetGet?(v=a(C,f))&&v.value:C[f]),p=n&&h?h:t[f],n&&typeof m==typeof p||(g=e.bind&&n?s(p,r):e.wrap&&n?c(p):w&&"function"==typeof p?s(Function.call,p):p,(e.sham||p&&p.sham||m&&m.sham)&&l(g,"sham",!0),S[f]=g,w&&(u(o,d=y+"Prototype")||l(o,d,{}),o[d][f]=p,e.real&&M&&!M[f]&&l(M,f,p)))}},function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(269),a=n.n(r),i=n(2);let o=[],s=null;const l=(e,t)=>{const n={fieldId:e,ref:t},r=a()(o).call(o,t=>t.fieldId===e);-1!==r?o[r]=n:o.push(n)},u=()=>o,c=e=>{for(const t of o)if(t.fieldId===e)return t.ref;return i.a.error(`A ref for fieldId ${e} could not be found. Has one been registered using setRef()?`,"ref error"),null},d=()=>{o=[],i.a.info("Refs have been reset")},f=e=>{s=e},p=()=>s,m=()=>{null!==s&&(s.close(),s=null)}},function(e,t,n){e.exports=n(341)},function(e,t,n){"use strict";n.d(t,"j",(function(){return R})),n.d(t,"h",(function(){return F})),n.d(t,"n",(function(){return L})),n.d(t,"d",(function(){return U})),n.d(t,"g",(function(){return B})),n.d(t,"m",(function(){return V})),n.d(t,"l",(function(){return z})),n.d(t,"a",(function(){return H})),n.d(t,"b",(function(){return $})),n.d(t,"c",(function(){return W})),n.d(t,"e",(function(){return G})),n.d(t,"i",(function(){return Y})),n.d(t,"f",(function(){return Z})),n.d(t,"k",(function(){return J}));var r=n(11),a=n.n(r),i=n(17),o=n.n(i),s=n(12),l=n.n(s),u=n(9),c=n.n(u),d=n(13),f=n.n(d),p=n(22),m=n.n(p),h=n(20),g=n.n(h),v=n(10),y=n.n(v),b=n(123),E=n.n(b),w=n(16),C=n.n(w),S=n(79),M=n.n(S),I=n(15),O=n(2),N=n(8),D=n(189),T=n(6),_=n(7),A=n(3),x=n(31);function k(e,t){var n=C()(e);if(a.a){var r=a()(e);t&&(r=o()(r).call(r,(function(t){return l()(e,t).enumerable}))),n.push.apply(n,r)}return n}const P={enabled:!1,required:!1,message:""},j=E()({enabled:!1,keys:[]}),R=e=>{let t=Object(T.a)(j);try{Object(T.c)(()=>e.config.customMetadata.enabled)&&(t=e.config.customMetadata)}catch(e){O.a.warn("No custom metadata provided by the server.")}return Object(N.a)().customMetadata&&(t=Object(N.a)().customMetadata),t},F=e=>{let t=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)c()(n=k(Object(r),!0)).call(n,(function(t){y()(e,t,r[t])}));else if(f.a)m()(e,f()(r));else{var a;c()(a=k(Object(r))).call(a,(function(t){g()(e,t,l()(r,t))}))}}return e}({},P);try{e.config.marketConsent&&(t=e.config.marketConsent)}catch(e){O.a.warn("Server did not provided a market consent config. Default will be used")}return Object(N.a)().marketConsent&&(t=Object(N.a)().marketConsent),t},L=e=>{let t;try{t=e.intl.messages}catch(t){O.a.warn("Unable to get theme messages from ",e)}return t},U=e=>Object(N.a)().customCss||e.customCss,B=e=>{const t=Object(N.a)();return t.hasOwnProperty("logoUrl")?t.logoUrl:e.logoUrl},V=e=>Object(N.a)().privacyPolicyUrl||e.privacyPolicyUrl,z=(e,t)=>V(e)===_.e?_.l:t.formatMessage({id:"companyName",defaultMessage:"{companyName}"}),H=e=>{let t=["en-US"],n=[];try{n=e.config.locales}catch(e){O.a.warn("Unable to get configured locales from programTheme")}const r=q(Object(N.