@clickview/auth 0.70.0-rc.4 → 0.71.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +2 -2
- package/dist/bundles.json +2 -2
- package/dist/css/{CudewNs7.chunk.css → p-q2uqlJ.chunk.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{index-cUFAvLru.js → index-CXuKH4On.js} +4 -4
- package/dist/scripts/{index-cUFAvLru.js.map → index-CXuKH4On.js.map} +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
10
10
|
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?z(e):``}function H(e){switch(e.tag){case 5:return z(e.type);case 16:return z(`Lazy`);case 13:return z(`Suspense`);case 19:return z(`SuspenseList`);case 0:case 2:case 15:return e=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(e.type,!0),e;default:return``}}function ee(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case w:return`Fragment`;case C:return`Portal`;case E:return`Profiler`;case T:return`StrictMode`;case A:return`Suspense`;case j:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case O:return(e.displayName||`Context`)+`.Consumer`;case D:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ee(t);case 8:return t===T?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function te(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ne(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function re(e){var t=ne(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ie(e){e._valueTracker||=re(e)}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ne(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function oe(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=te(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function ce(e,t){t=t.checked,t!=null&&b(e,`checked`,t,!1)}function le(e,t){ce(e,t);var n=te(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?G(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&G(e,t.type,te(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ue(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function G(e,t,n){(t!==`number`||oe(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var de=Array.isArray;function fe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+te(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function pe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return L({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function me(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(de(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:te(n)}}function he(e,t){var n=te(t.value),r=te(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function ge(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function _e(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function ve(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?_e(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ye,be=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(ye||=document.createElement(`div`),ye.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Se={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ce=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Se).forEach(function(e){Ce.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Se[t]=Se[e]})});function we(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Se.hasOwnProperty(e)&&Se[e]?(``+t).trim():t+`px`}function Te(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=we(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ee=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function De(e,t){if(t){if(Ee[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Oe(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var K=null;function ke(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ae=null,q=null,J=null;function je(e){if(e=ji(e)){if(typeof Ae!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ni(t),Ae(e.stateNode,e.type,t))}}function Me(e){q?J?J.push(e):J=[e]:q=e}function Ne(){if(q){var e=q,t=J;if(J=q=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Pe(e,t){return e(t)}function Fe(){}var Ie=!1;function Le(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Pe(e,t,n)}finally{Ie=!1,(q!==null||J!==null)&&(Fe(),Ne())}}function Re(e,t){var n=e.stateNode;if(n===null)return null;var i=Ni(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var ze=!1;if(c)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){ze=!0}}),window.addEventListener(`test`,Be,Be),window.removeEventListener(`test`,Be,Be)}catch{ze=!1}function Ve(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var He=!1,Ue=null,We=!1,Ge=null,Ke={onError:function(e){He=!0,Ue=e}};function qe(e,t,n,r,i,a,o,s,c){He=!1,Ue=null,Ve.apply(Ke,arguments)}function Je(e,t,n,i,a,o,s,c,l){if(qe.apply(this,arguments),He){if(He){var u=Ue;He=!1,Ue=null}else throw Error(r(198));We||(We=!0,Ge=u)}}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xe(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ze(e){if(Ye(e)!==e)throw Error(r(188))}function Qe(e){var t=e.alternate;if(!t){if(t=Ye(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Ze(a),e;if(o===i)return Ze(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function $e(e){return e=Qe(e),e===null?null:et(e)}function et(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=et(e);if(t!==null)return t;e=e.sibling}return null}var tt=n.unstable_scheduleCallback,nt=n.unstable_cancelCallback,rt=n.unstable_shouldYield,it=n.unstable_requestPaint,at=n.unstable_now,ot=n.unstable_getCurrentPriorityLevel,st=n.unstable_ImmediatePriority,ct=n.unstable_UserBlockingPriority,lt=n.unstable_NormalPriority,ut=n.unstable_LowPriority,dt=n.unstable_IdlePriority,ft=null,pt=null;function mt(e){if(pt&&typeof pt.onCommitFiberRoot==`function`)try{pt.onCommitFiberRoot(ft,e,void 0,(e.current.flags&128)==128)}catch{}}var ht=Math.clz32?Math.clz32:vt,gt=Math.log,_t=Math.LN2;function vt(e){return e>>>=0,e===0?32:31-(gt(e)/_t|0)|0}var yt=64,bt=4194304;function xt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function St(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=xt(a))):r=xt(s)}else o=n&~i,o===0?a!==0&&(r=xt(a)):r=xt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ht(t),i=1<<n,r|=e[n],t&=~i;return r}function Ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ht(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ct(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Tt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Et(){var e=yt;return yt<<=1,!(yt&4194240)&&(yt=64),e}function Dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ot(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function kt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ht(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function At(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ht(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var jt=0;function Mt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nt,Pt,Ft,It,Lt,Rt=!1,zt=[],Bt=null,Vt=null,Ht=null,Ut=new Map,Wt=new Map,Gt=[],Kt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function qt(e,t){switch(e){case`focusin`:case`focusout`:Bt=null;break;case`dragenter`:case`dragleave`:Vt=null;break;case`mouseover`:case`mouseout`:Ht=null;break;case`pointerover`:case`pointerout`:Ut.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Wt.delete(t.pointerId)}}function Jt(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ji(t),t!==null&&Pt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yt(e,t,n,r,i){switch(t){case`focusin`:return Bt=Jt(Bt,e,t,n,r,i),!0;case`dragenter`:return Vt=Jt(Vt,e,t,n,r,i),!0;case`mouseover`:return Ht=Jt(Ht,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ut.set(a,Jt(Ut.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Wt.set(a,Jt(Wt.get(a)||null,e,t,n,r,i)),!0}return!1}function Xt(e){var t=Ai(e.target);if(t!==null){var n=Ye(t);if(n!==null){if(t=n.tag,t===13){if(t=Xe(n),t!==null){e.blockedOn=t,Lt(e.priority,function(){Ft(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ln(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);K=r,n.target.dispatchEvent(r),K=null}else return t=ji(n),t!==null&&Pt(t),e.blockedOn=n,!1;t.shift()}return!0}function Qt(e,t,n){Zt(e)&&n.delete(t)}function $t(){Rt=!1,Bt!==null&&Zt(Bt)&&(Bt=null),Vt!==null&&Zt(Vt)&&(Vt=null),Ht!==null&&Zt(Ht)&&(Ht=null),Ut.forEach(Qt),Wt.forEach(Qt)}function en(e,t){e.blockedOn===t&&(e.blockedOn=null,Rt||(Rt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$t)))}function tn(e){function t(t){return en(t,e)}if(0<zt.length){en(zt[0],e);for(var n=1;n<zt.length;n++){var r=zt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bt!==null&&en(Bt,e),Vt!==null&&en(Vt,e),Ht!==null&&en(Ht,e),Ut.forEach(t),Wt.forEach(t),n=0;n<Gt.length;n++)r=Gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gt.length&&(n=Gt[0],n.blockedOn===null);)Xt(n),n.blockedOn===null&&Gt.shift()}var nn=x.ReactCurrentBatchConfig,rn=!0;function an(e,t,n,r){var i=jt,a=nn.transition;nn.transition=null;try{jt=1,sn(e,t,n,r)}finally{jt=i,nn.transition=a}}function on(e,t,n,r){var i=jt,a=nn.transition;nn.transition=null;try{jt=4,sn(e,t,n,r)}finally{jt=i,nn.transition=a}}function sn(e,t,n,r){if(rn){var i=ln(e,t,n,r);if(i===null)ni(e,t,r,cn,n),qt(e,r);else if(Yt(i,e,t,n,r))r.stopPropagation();else if(qt(e,r),t&4&&-1<Kt.indexOf(e)){for(;i!==null;){var a=ji(i);if(a!==null&&Nt(a),a=ln(e,t,n,r),a===null&&ni(e,t,r,cn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ni(e,t,r,null,n)}}var cn=null;function ln(e,t,n,r){if(cn=null,e=ke(r),e=Ai(e),e!==null)if(t=Ye(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xe(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cn=e,null}function un(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(ot()){case st:return 1;case ct:return 4;case lt:case ut:return 16;case dt:return 536870912;default:return 16}default:return 16}}var dn=null,fn=null,pn=null;function mn(){if(pn)return pn;var e,t=fn,n=t.length,r,i=`value`in dn?dn.value:dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return pn=i.slice(e,1<r?1-r:void 0)}function hn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gn(){return!0}function _n(){return!1}function vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?gn:_n,this.isPropagationStopped=_n,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bn=vn(yn),xn=L({},yn,{view:0,detail:0}),Sn=vn(xn),Cn,wn,Tn,En=L({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ln,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Tn&&(Tn&&e.type===`mousemove`?(Cn=e.screenX-Tn.screenX,wn=e.screenY-Tn.screenY):wn=Cn=0,Tn=e),Cn)},movementY:function(e){return`movementY`in e?e.movementY:wn}}),Dn=vn(En),On=vn(L({},En,{dataTransfer:0})),kn=vn(L({},xn,{relatedTarget:0})),An=vn(L({},yn,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=vn(L({},yn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Mn=vn(L({},yn,{data:0})),Nn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Pn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Fn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fn[e])?!!t[e]:!1}function Ln(){return In}var Rn=vn(L({},xn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Pn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ln,charCode:function(e){return e.type===`keypress`?hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),zn=vn(L({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Bn=vn(L({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ln})),Vn=vn(L({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Hn=vn(L({},En,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Un=[9,13,27,32],Wn=c&&`CompositionEvent`in window,Gn=null;c&&`documentMode`in document&&(Gn=document.documentMode);var Kn=c&&`TextEvent`in window&&!Gn,qn=c&&(!Wn||Gn&&8<Gn&&11>=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=mn(),pn=fn=dn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return qn&&t.locale!==`ko`?null:t.data;default:return null}}var tr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!tr[e.type]:t===`textarea`}function rr(e,t,n,r){Me(r),t=ii(t,`onChange`),0<t.length&&(n=new bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ir=null,ar=null;function or(e){Xr(e,0)}function sr(e){if(ae(Mi(e)))return e}function cr(e,t){if(e===`change`)return t}var Y=!1;if(c){var lr;if(c){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;Y=lr&&(!document.documentMode||9<document.documentMode)}function fr(){ir&&(ir.detachEvent(`onpropertychange`,pr),ar=ir=null)}function pr(e){if(e.propertyName===`value`&&sr(ar)){var t=[];rr(t,ar,e,ke(e)),Le(or,t)}}function mr(e,t,n){e===`focusin`?(fr(),ir=t,ar=n,ir.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return sr(ar)}function gr(e,t){if(e===`click`)return sr(t)}function _r(e,t){if(e===`input`||e===`change`)return sr(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(){for(var e=window,t=oe();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=oe(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Er(e){var t=wr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cr(n.ownerDocument.documentElement,n)){if(r!==null&&Tr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Sr(n,a);var o=Sr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Dr=c&&`documentMode`in document&&11>=document.documentMode,Or=null,kr=null,Ar=null,jr=!1;function Mr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jr||Or==null||Or!==oe(r)||(r=Or,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&br(Ar,r)||(Ar=r,r=ii(kr,`onSelect`),0<r.length&&(t=new bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Or)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Pr={animationend:Nr(`Animation`,`AnimationEnd`),animationiteration:Nr(`Animation`,`AnimationIteration`),animationstart:Nr(`Animation`,`AnimationStart`),transitionend:Nr(`Transition`,`TransitionEnd`)},Fr={},Ir={};c&&(Ir=document.createElement(`div`).style,`AnimationEvent`in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),`TransitionEvent`in window||delete Pr.transitionend.transition);function Lr(e){if(Fr[e])return Fr[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ir)return Fr[e]=t[n];return e}var Rr=Lr(`animationend`),zr=Lr(`animationiteration`),Br=Lr(`animationstart`),Vr=Lr(`transitionend`),Hr=new Map,Ur=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function Wr(e,t){Hr.set(e,t),o(t,[e])}for(var Gr=0;Gr<Ur.length;Gr++){var Kr=Ur[Gr];Wr(Kr.toLowerCase(),`on`+(Kr[0].toUpperCase()+Kr.slice(1)))}Wr(Rr,`onAnimationEnd`),Wr(zr,`onAnimationIteration`),Wr(Br,`onAnimationStart`),Wr(`dblclick`,`onDoubleClick`),Wr(`focusin`,`onFocus`),Wr(`focusout`,`onBlur`),Wr(Vr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var qr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Jr=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(qr));function Yr(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,Je(r,t,void 0,e),e.currentTarget=null}function Xr(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;Yr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;Yr(i,s,l),a=c}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Zr(e,t){var n=t[Di];n===void 0&&(n=t[Di]=new Set);var r=e+`__bubble`;n.has(r)||(ti(t,e,2,!1),n.add(r))}function Qr(e,t,n){var r=0;t&&(r|=4),ti(n,e,r,t)}var $r=`_reactListening`+Math.random().toString(36).slice(2);function ei(e){if(!e[$r]){e[$r]=!0,i.forEach(function(t){t!==`selectionchange`&&(Jr.has(t)||Qr(t,!1,e),Qr(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$r]||(t[$r]=!0,Qr(`selectionchange`,!1,t))}}function ti(e,t,n,r){switch(un(t)){case 1:var i=an;break;case 4:i=on;break;default:i=sn}n=i.bind(null,t,n,e),i=void 0,!ze||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ni(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ai(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Le(function(){var r=a,i=ke(n),o=[];a:{var s=Hr.get(e);if(s!==void 0){var c=bn,l=e;switch(e){case`keypress`:if(hn(n)===0)break a;case`keydown`:case`keyup`:c=Rn;break;case`focusin`:l=`focus`,c=kn;break;case`focusout`:l=`blur`,c=kn;break;case`beforeblur`:case`afterblur`:c=kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Dn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=On;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Bn;break;case Rr:case zr:case Br:c=An;break;case Vr:c=Vn;break;case`scroll`:c=Sn;break;case`wheel`:c=Hn;break;case`copy`:case`cut`:case`paste`:c=jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=zn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Re(p,f),h!=null&&u.push(ri(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==K&&(l=n.relatedTarget||n.fromElement)&&(Ai(l)||l[Ei]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ai(l):null,l!==null&&(d=Ye(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Dn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=zn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Mi(c),m=l==null?s:Mi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ai(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ai(m))p++;for(m=0,h=f;h;h=ai(h))m++;for(;0<p-m;)u=ai(u),p--;for(;0<m-p;)f=ai(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ai(u),f=ai(f)}u=null}else u=null;c!==null&&oi(o,s,c,u,!1),l!==null&&d!==null&&oi(o,d,l,u,!0)}}a:{if(s=r?Mi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=cr;else if(nr(s))if(Y)g=_r;else{g=hr;var _=mr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=gr);if(g&&=g(e,r)){rr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&G(s,`number`,s.value)}switch(_=r?Mi(r):window,e){case`focusin`:(nr(_)||_.contentEditable===`true`)&&(Or=_,kr=r,Ar=null);break;case`focusout`:Ar=kr=Or=null;break;case`mousedown`:jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:jr=!1,Mr(o,n,i);break;case`selectionchange`:if(Dr)break;case`keydown`:case`keyup`:Mr(o,n,i)}var v;if(Wn)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else Qn?Xn(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(qn&&n.locale!==`ko`&&(Qn||y!==`onCompositionStart`?y===`onCompositionEnd`&&Qn&&(v=mn()):(dn=i,fn=`value`in dn?dn.value:dn.textContent,Qn=!0)),_=ii(r,y),0<_.length&&(y=new Mn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=Zn(n),v!==null&&(y.data=v)))),(v=Kn?$n(e,n):er(e,n))&&(r=ii(r,`onBeforeInput`),0<r.length&&(i=new Mn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}Xr(o,t)})}function ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Re(e,n),a!=null&&r.unshift(ri(e,a,i)),a=Re(e,t),a!=null&&r.push(ri(e,a,i))),e=e.return}return r}function ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Re(n,a),c!=null&&o.unshift(ri(n,c,s))):i||(c=Re(n,a),c!=null&&o.push(ri(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var si=/\r\n?/g,ci=/\u0000|\uFFFD/g;function li(e){return(typeof e==`string`?e:``+e).replace(si,`
|
|
11
11
|
`).replace(ci,``)}function ui(e,t,n){if(t=li(t),li(e)!==t&&n)throw Error(r(425))}function di(){}var fi=null,pi=null;function mi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hi=typeof setTimeout==`function`?setTimeout:void 0,gi=typeof clearTimeout==`function`?clearTimeout:void 0,_i=typeof Promise==`function`?Promise:void 0,vi=typeof queueMicrotask==`function`?queueMicrotask:_i===void 0?hi:function(e){return _i.resolve(null).then(e).catch(yi)};function yi(e){setTimeout(function(){throw e})}function bi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),tn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);tn(t)}function xi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Si(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ci=Math.random().toString(36).slice(2),wi=`__reactFiber$`+Ci,Ti=`__reactProps$`+Ci,Ei=`__reactContainer$`+Ci,Di=`__reactEvents$`+Ci,Oi=`__reactListeners$`+Ci,ki=`__reactHandles$`+Ci;function Ai(e){var t=e[wi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ei]||n[wi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Si(e);e!==null;){if(n=e[wi])return n;e=Si(e)}return t}e=n,n=e.parentNode}return null}function ji(e){return e=e[wi]||e[Ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ni(e){return e[Ti]||null}var Pi=[],Fi=-1;function Ii(e){return{current:e}}function Li(e){0>Fi||(e.current=Pi[Fi],Pi[Fi]=null,Fi--)}function Ri(e,t){Fi++,Pi[Fi]=e.current,e.current=t}var zi={},Bi=Ii(zi),Vi=Ii(!1),Hi=zi;function Ui(e,t){var n=e.type.contextTypes;if(!n)return zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wi(e){return e=e.childContextTypes,e!=null}function Gi(){Li(Vi),Li(Bi)}function Ki(e,t,n){if(Bi.current!==zi)throw Error(r(168));Ri(Bi,t),Ri(Vi,n)}function qi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,U(e)||`Unknown`,a));return L({},n,i)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Hi=Bi.current,Ri(Bi,e),Ri(Vi,Vi.current),!0}function Yi(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=qi(e,t,Hi),i.__reactInternalMemoizedMergedChildContext=e,Li(Vi),Li(Bi),Ri(Bi,e)):Li(Vi),Ri(Vi,n)}var Xi=null,Zi=!1,Qi=!1;function $i(e){Xi===null?Xi=[e]:Xi.push(e)}function ea(e){Zi=!0,$i(e)}function ta(){if(!Qi&&Xi!==null){Qi=!0;var e=0,t=jt;try{var n=Xi;for(jt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xi=null,Zi=!1}catch(t){throw Xi!==null&&(Xi=Xi.slice(e+1)),tt(st,ta),t}finally{jt=t,Qi=!1}}return null}var na=x.ReactCurrentBatchConfig;function ra(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ia=Ii(null),aa=null,oa=null,sa=null;function ca(){sa=oa=aa=null}function la(e){var t=ia.current;Li(ia),e._currentValue=t}function ua(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function da(e,t){aa=e,sa=oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ps=!0),e.firstContext=null)}function fa(e){var t=e._currentValue;if(sa!==e)if(e={context:e,memoizedValue:t,next:null},oa===null){if(aa===null)throw Error(r(308));oa=e,aa.dependencies={lanes:0,firstContext:e}}else oa=oa.next=e;return t}var pa=null,ma=!1;function ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _a(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function va(e,t){var n=e.updateQueue;n!==null&&(n=n.shared,ml(e)?(e=n.interleaved,e===null?(t.next=t,pa===null?pa=[n]:pa.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(e=n.pending,e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,At(e,n)}}function ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xa(e,t,n,r){var i=e.updateQueue;ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=L({},d,f);break a;case 2:ma=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Kc|=o,e.lanes=o,e.memoizedState=d}}function Sa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var Ca=new t.Component().refs;function wa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:L({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ta={isMounted:function(e){return(e=e._reactInternals)?Ye(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),a=_a(r,i);a.payload=t,n!=null&&(a.callback=n),va(e,a),t=fl(e,i,r),t!==null&&ya(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),a=_a(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),va(e,a),t=fl(e,i,r),t!==null&&ya(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=dl(e),i=_a(n,r);i.tag=2,t!=null&&(i.callback=t),va(e,i),t=fl(e,r,n),t!==null&&ya(t,e,r)}};function Ea(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Da(e,t,n){var r=!1,i=zi,a=t.contextType;return typeof a==`object`&&a?a=fa(a):(i=Wi(t)?Hi:Bi.current,r=t.contextTypes,a=(r=r!=null)?Ui(e,i):zi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ta,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Oa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ta.enqueueReplaceState(t,t.state,null)}function ka(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ca,ha(e);var a=t.contextType;typeof a==`object`&&a?i.context=fa(a):(a=Wi(t)?Hi:Bi.current,i.context=Ui(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(wa(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ta.enqueueReplaceState(i,i.state,null),xa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}var Aa=[],ja=0,Ma=null,Na=0,Pa=[],Fa=0,Ia=null,La=1,Ra=``;function za(e,t){Aa[ja++]=Na,Aa[ja++]=Ma,Ma=e,Na=t}function Ba(e,t,n){Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,Ia=e;var r=La;e=Ra;var i=32-ht(r)-1;r&=~(1<<i),n+=1;var a=32-ht(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,La=1<<32-ht(t)+i|n<<i|r,Ra=a+e}else La=1<<a|n<<i|r,Ra=e}function Va(e){e.return!==null&&(za(e,1),Ba(e,1,0))}function Ha(e){for(;e===Ma;)Ma=Aa[--ja],Aa[ja]=null,Na=Aa[--ja],Aa[ja]=null;for(;e===Ia;)Ia=Pa[--Fa],Pa[Fa]=null,Ra=Pa[--Fa],Pa[Fa]=null,La=Pa[--Fa],Pa[Fa]=null}var Ua=null,Wa=null,Ga=!1,Ka=null;function qa(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ja(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ua=e,Wa=xi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ua=e,Wa=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ia===null?null:{id:La,overflow:Ra},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ua=e,Wa=null,!0);default:return!1}}function Ya(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Xa(e){if(Ga){var t=Wa;if(t){var n=t;if(!Ja(e,t)){if(Ya(e))throw Error(r(418));t=xi(n.nextSibling);var i=Ua;t&&Ja(e,t)?qa(i,n):(e.flags=e.flags&-4097|2,Ga=!1,Ua=e)}}else{if(Ya(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ga=!1,Ua=e}}}function Za(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ua=e}function Qa(e){if(e!==Ua)return!1;if(!Ga)return Za(e),Ga=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!mi(e.type,e.memoizedProps)),t&&=Wa){if(Ya(e)){for(e=Wa;e;)e=xi(e.nextSibling);throw Error(r(418))}for(;t;)qa(e,t),t=xi(t.nextSibling)}if(Za(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Wa=xi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Wa=null}}else Wa=Ua?xi(e.stateNode.nextSibling):null;return!0}function $a(){Wa=Ua=null,Ga=!1}function eo(e){Ka===null?Ka=[e]:Ka.push(e)}function to(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===Ca&&(t=a.refs={}),e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function no(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function ro(e){var t=e._init;return t(e._payload)}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===w?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&ro(i)===t.type)?(r=a(t,n.props),r.ref=to(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=to(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case S:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=to(e,null,t),n.return=e,n;case C:return t=eu(t,e.mode,n),t.return=e,t;case N:var r=t._init;return f(e,r(t._payload),n)}if(de(t)||I(t))return t=Zl(t,e.mode,n,null),t.return=e,t;no(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case S:return n.key===i?l(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null;case N:return i=n._init,p(e,t,i(n._payload),r)}if(de(n)||I(n))return i===null?d(e,t,n,r,null):null;no(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case S:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case C:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:var a=r._init;return m(e,t,n,a(r._payload),i)}if(de(r)||I(r))return e=e.get(n)||null,d(t,e,r,i,null);no(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ga&&za(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ga&&za(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Ga&&za(r,h),l}function g(a,s,c,l){var u=I(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ga&&za(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ga&&za(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ga&&za(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===w&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case S:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===w){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===N&&ro(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=to(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===w?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=to(e,r,i),o.return=e,e=o)}return s(e);case C:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case N:return l=i._init,_(e,r,l(i._payload),o)}if(de(i))return h(e,r,i,o);if(I(i))return g(e,r,i,o);no(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var ao=io(!0),oo=io(!1),so={},co=Ii(so),lo=Ii(so),uo=Ii(so);function fo(e){if(e===so)throw Error(r(174));return e}function po(e,t){switch(Ri(uo,t),Ri(lo,e),Ri(co,so),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ve(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ve(t,e)}Li(co),Ri(co,t)}function mo(){Li(co),Li(lo),Li(uo)}function ho(e){fo(uo.current);var t=fo(co.current),n=ve(t,e.type);t!==n&&(Ri(lo,e),Ri(co,n))}function go(e){lo.current===e&&(Li(co),Li(lo))}var _o=Ii(0);function vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yo=[];function bo(){for(var e=0;e<yo.length;e++)yo[e]._workInProgressVersionPrimary=null;yo.length=0}var xo=x.ReactCurrentDispatcher,So=x.ReactCurrentBatchConfig,Co=0,wo=null,To=null,Eo=null,Do=!1,Oo=!1,ko=0,Ao=0;function jo(){throw Error(r(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function No(e,t,n,i,a,o){if(Co=o,wo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xo.current=e===null||e.memoizedState===null?gs:_s,e=n(i,a),Oo){o=0;do{if(Oo=!1,ko=0,25<=o)throw Error(r(301));o+=1,Eo=To=null,t.updateQueue=null,xo.current=vs,e=n(i,a)}while(Oo)}if(xo.current=hs,t=To!==null&&To.next!==null,Co=0,Eo=To=wo=null,Do=!1,t)throw Error(r(300));return e}function Po(){var e=ko!==0;return ko=0,e}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e,Eo}function Io(){if(To===null){var e=wo.alternate;e=e===null?null:e.memoizedState}else e=To.next;var t=Eo===null?wo.memoizedState:Eo.next;if(t!==null)Eo=t,To=e;else{if(e===null)throw Error(r(310));To=e,e={memoizedState:To.memoizedState,baseState:To.baseState,baseQueue:To.baseQueue,queue:To.queue,next:null},Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e}return Eo}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=To,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Co&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,wo.lanes|=d,Kc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,yr(i,t.memoizedState)||(Ps=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,wo.lanes|=o,Kc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||(Ps=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Bo(){}function Vo(e,t){var n=wo,i=Io(),a=t(),o=!yr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ps=!0),i=i.queue,Qo(Wo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Eo!==null&&Eo.memoizedState.tag&1){if(n.flags|=2048,qo(9,Uo.bind(null,n,i,a,t),void 0,null),zc===null)throw Error(r(349));Co&30||Ho(n,t,a)}return a}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&fl(e,1,-1)}function Wo(e,t,n){return n(function(){Go(t)&&fl(e,1,-1)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ko(e){var t=Fo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t.queue=e,e=e.dispatch=us.bind(null,wo,e),[t.memoizedState,e]}function qo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Jo(){return Io().memoizedState}function Yo(e,t,n,r){var i=Fo();wo.flags|=e,i.memoizedState=qo(1|t,n,void 0,r===void 0?null:r)}function Xo(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=void 0;if(To!==null){var o=To.memoizedState;if(a=o.destroy,r!==null&&Mo(r,o.deps)){i.memoizedState=qo(t,n,a,r);return}}wo.flags|=e,i.memoizedState=qo(1|t,n,a,r)}function Zo(e,t){return Yo(8390656,8,e,t)}function Qo(e,t){return Xo(2048,8,e,t)}function $o(e,t){return Xo(4,2,e,t)}function es(e,t){return Xo(4,4,e,t)}function ts(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){return n=n==null?null:n.concat([e]),Xo(4,4,ts.bind(null,t,e),n)}function rs(){}function is(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function as(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function os(e,t,n){return Co&21?(yr(n,t)||(n=Et(),wo.lanes|=n,Kc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ps=!0),e.memoizedState=n)}function ss(e,t){var n=jt;jt=n!==0&&4>n?n:4,e(!0);var r=So.transition;So.transition={};try{e(!1),t()}finally{jt=n,So.transition=r}}function cs(){return Io().memoizedState}function ls(e,t,n){var r=dl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ds(e)?fs(t,n):(ps(e,t,n),n=ul(),e=fl(e,r,n),e!==null&&ms(e,t,r))}function us(e,t,n){var r=dl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(e))fs(t,i);else{ps(e,t,i);var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return}catch{}n=ul(),e=fl(e,r,n),e!==null&&ms(e,t,r)}}function ds(e){var t=e.alternate;return e===wo||t!==null&&t===wo}function fs(e,t){Oo=Do=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ps(e,t,n){ml(e)?(e=t.interleaved,e===null?(n.next=n,pa===null?pa=[t]:pa.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function ms(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,At(e,n)}}var hs={readContext:fa,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useInsertionEffect:jo,useLayoutEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useMutableSource:jo,useSyncExternalStore:jo,useId:jo,unstable_isNewReconciler:!1},gs={readContext:fa,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:Zo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Yo(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=Fo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ls.bind(null,wo,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:Ko,useDebugValue:rs,useDeferredValue:function(e){return Fo().memoizedState=e},useTransition:function(){var e=Ko(!1),t=e[0];return e=ss.bind(null,e[1]),Fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=wo,a=Fo();if(Ga){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),zc===null)throw Error(r(349));Co&30||Ho(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Zo(Wo.bind(null,i,o,e),[e]),i.flags|=2048,qo(9,Uo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Fo(),t=zc.identifierPrefix;if(Ga){var n=Ra,r=La;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=ko++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Ao++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},_s={readContext:fa,useCallback:is,useContext:fa,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:Ro,useRef:Jo,useState:function(){return Ro(Lo)},useDebugValue:rs,useDeferredValue:function(e){return os(Io(),To.memoizedState,e)},useTransition:function(){return[Ro(Lo)[0],Io().memoizedState]},useMutableSource:Bo,useSyncExternalStore:Vo,useId:cs,unstable_isNewReconciler:!1},vs={readContext:fa,useCallback:is,useContext:fa,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:zo,useRef:Jo,useState:function(){return zo(Lo)},useDebugValue:rs,useDeferredValue:function(e){var t=Io();return To===null?t.memoizedState=e:os(t,To.memoizedState,e)},useTransition:function(){return[zo(Lo)[0],Io().memoizedState]},useMutableSource:Bo,useSyncExternalStore:Vo,useId:cs,unstable_isNewReconciler:!1};function ys(e,t){try{var n=``,r=t;do n+=H(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
12
12
|
Error generating stack: `+e.message+`
|
|
13
|
-
`+e.stack}return{value:e,source:t,stack:i}}function bs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var xs=typeof WeakMap==`function`?WeakMap:Map;function Ss(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,tl=r),bs(e,t)},n}function Cs(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){bs(e,t),typeof r!=`function`&&(nl===null?nl=new Set([this]):nl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ws(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function Ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Es(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,va(n,t))),n.lanes|=1),e)}var Ds=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fo(co.current);var o=null;switch(n){case`input`:i=W(e,i),r=W(e,r),o=[];break;case`select`:i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case`textarea`:i=pe(e,i),r=pe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=di)}De(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&Zr(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ks=function(e,t,n,r){n!==r&&(t.flags|=4)};function As(e,t){if(!Ga)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function js(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ms(e,t,n){var i=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return js(t),null;case 1:return Wi(t.type)&&Gi(),js(t),null;case 3:return i=t.stateNode,mo(),Li(Vi),Li(Bi),bo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(vl(Ka),Ka=null))),js(t),null;case 5:go(t);var o=fo(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)Os(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return js(t),null}if(e=fo(co.current),Qa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[wi]=t,i[Ti]=s,e=(t.mode&1)!=0,n){case`dialog`:Zr(`cancel`,i),Zr(`close`,i);break;case`iframe`:case`object`:case`embed`:Zr(`load`,i);break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],i);break;case`source`:Zr(`error`,i);break;case`img`:case`image`:case`link`:Zr(`error`,i),Zr(`load`,i);break;case`details`:Zr(`toggle`,i);break;case`input`:se(i,s),Zr(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},Zr(`invalid`,i);break;case`textarea`:me(i,s),Zr(`invalid`,i)}for(var c in De(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&Zr(`scroll`,i)}switch(n){case`input`:ie(i),ue(i,s,!0);break;case`textarea`:ie(i),ge(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=_e(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[wi]=t,e[Ti]=i,Ds(e,t,!1,!1),t.stateNode=e;a:{switch(c=Oe(n,i),n){case`dialog`:Zr(`cancel`,e),Zr(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:Zr(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],e);o=i;break;case`source`:Zr(`error`,e),o=i;break;case`img`:case`image`:case`link`:Zr(`error`,e),Zr(`load`,e),o=i;break;case`details`:Zr(`toggle`,e),o=i;break;case`input`:se(e,i),o=W(e,i),Zr(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=L({},i,{value:void 0}),Zr(`invalid`,e);break;case`textarea`:me(e,i),o=pe(e,i),Zr(`invalid`,e);break;default:o=i}for(s in De(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Te(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&be(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&xe(e,u):typeof u==`number`&&xe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&Zr(`scroll`,e):u!=null&&b(e,s,u,c))}switch(n){case`input`:ie(e),ue(e,i,!1);break;case`textarea`:ie(e),ge(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+te(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&fe(e,!!i.multiple,i.defaultValue,!0):fe(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return js(t),null;case 6:if(e&&t.stateNode!=null)ks(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=fo(uo.current),fo(co.current),Qa(t)){if(i=t.stateNode,n=t.memoizedProps,i[wi]=t,(s=i.nodeValue!==n)&&(e=Ua,e!==null))switch(e.tag){case 3:ui(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[wi]=t,t.stateNode=i}return js(t),null;case 13:if(Li(_o),i=t.memoizedState,Ga&&Wa!==null&&t.mode&1&&!(t.flags&128)){for(i=Wa;i;)i=xi(i.nextSibling);return $a(),t.flags|=98560,t}if(i!==null&&i.dehydrated!==null){if(i=Qa(t),e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(r(317));i[wi]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return js(t),null}return Ka!==null&&(vl(Ka),Ka=null),t.flags&128?(t.lanes=n,t):(i=i!==null,n=!1,e===null?Qa(t):n=e.memoizedState!==null,i!==n&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||_o.current&1?Wc===0&&(Wc=3):Ol())),t.updateQueue!==null&&(t.flags|=4),js(t),null);case 4:return mo(),e===null&&ei(t.stateNode.containerInfo),js(t),null;case 10:return la(t.type._context),js(t),null;case 17:return Wi(t.type)&&Gi(),js(t),null;case 19:if(Li(_o),s=t.memoizedState,s===null)return js(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)As(s,!1);else{if(Wc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,As(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ri(_o,_o.current&1|2),t.child}e=e.sibling}s.tail!==null&&at()>Qc&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304)}else{if(!i)if(e=vo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),As(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ga)return js(t),null}else 2*at()-s.renderingStartTime>Qc&&n!==1073741824&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(js(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=at(),t.sibling=null,n=_o.current,Ri(_o,i?n&1|2:n&1),t);case 22:case 23:return wl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Hc&1073741824&&(js(t),t.subtreeFlags&6&&(t.flags|=8192)):js(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}var Ns=x.ReactCurrentOwner,Ps=!1;function Fs(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var a=t.ref;return da(t,i),r=No(e,t,n,r,a,i),n=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&n&&Va(t),t.flags|=1,Fs(e,t,r,i),t.child)}function Ls(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Rs(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if(Ps=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ps=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Vs(e,t,n,r,i)}function zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Uc,Hc),Hc|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ri(Uc,Hc),Hc|=r;else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ri(Uc,Hc),Hc|=e,null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ri(Uc,Hc),Hc|=r;return Fs(e,t,i,n),t.child}function Bs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vs(e,t,n,r,i){var a=Wi(n)?Hi:Bi.current;return a=Ui(t,a),da(t,i),n=No(e,t,n,r,a,i),r=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&r&&Va(t),t.flags|=1,Fs(e,t,n,i),t.child)}function Hs(e,t,n,r,i){if(Wi(n)){var a=!0;Ji(t)}else a=!1;if(da(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Da(t,n,r),ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=fa(l):(l=Wi(n)?Hi:Bi.current,l=Ui(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Oa(t,o,r,l),ma=!1;var f=t.memoizedState;o.state=f,xa(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Vi.current||ma?(typeof u==`function`&&(wa(t,n,u,r),c=t.memoizedState),(s=ma||Ea(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ga(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ra(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=fa(c):(c=Wi(n)?Hi:Bi.current,c=Ui(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Oa(t,o,r,c),ma=!1,f=t.memoizedState,o.state=f,xa(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Vi.current||ma?(typeof p==`function`&&(wa(t,n,p,r),m=t.memoizedState),(l=ma||Ea(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,a,i)}function Us(e,t,n,r,i,a){Bs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Yi(t,n,!1),rc(e,t,a);r=t.stateNode,Ns.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ao(t,e.child,null,a),t.child=ao(t,null,s,a)):Fs(e,t,s,a),t.memoizedState=r.state,i&&Yi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Ki(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ki(e,t.context,!1),po(e,t.containerInfo)}function Gs(e,t,n,r,i){return $a(),eo(i),t.flags|=256,Fs(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Js(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ys(e,t,n){var i=t.pendingProps,a=_o.current,o=!1,s=(t.flags&128)!=0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!=0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ri(_o,a&1),e===null)return Xa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:`hidden`,children:a},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ql(a,i,0,null),e=Zl(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qs(n),t.memoizedState=Ks,e):Xs(t,a));if(a=e.memoizedState,a!==null){if(c=a.dehydrated,c!==null){if(s)return t.flags&256?(t.flags&=-257,$s(e,t,n,Error(r(422)))):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&ao(t,e.child,null,n),t.child.memoizedState=qs(n),t.memoizedState=Ks,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))t=$s(e,t,n,null);else if(c.data===`$!`)t=$s(e,t,n,Error(r(419)));else if(i=(n&e.childLanes)!==0,Ps||i){if(i=zc,i!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}i=(o&(i.suspendedLanes|n))===0?o:0,i!==0&&i!==a.retryLane&&(a.retryLane=i,fl(e,i,-1))}Ol(),t=$s(e,t,n,Error(r(421)))}else c.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),c._reactRetry=t,t=null):(n=a.treeContext,Wa=xi(c.nextSibling),Ua=t,Ga=!0,Ka=null,n!==null&&(Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,La=n.id,Ra=n.overflow,Ia=t),t=Xs(t,t.pendingProps.children),t.flags|=4096);return t}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}function Xs(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){var i=e.child;return e=i.sibling,n=Yl(i,{mode:`visible`,children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Qs(e,t,n,r,i){var a=t.mode;e=e.child;var o=e.sibling,s={mode:`hidden`,children:n};return!(a&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Yl(e,s),n.subtreeFlags=e.subtreeFlags&14680064),o===null?(r=Zl(r,a,i,null),r.flags|=2):r=Yl(o,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $s(e,t,n,r){return r!==null&&eo(r),ao(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ua(e.return,t,n)}function tc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fs(e,t,r.children,n),r=_o.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ec(e,n,t);else if(e.tag===19)ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ri(_o,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tc(t,!0,n,null,a);break;case`together`:tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Ws(t),$a();break;case 5:ho(t);break;case 1:Wi(t.type)&&Ji(t);break;case 4:po(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ri(ia,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ri(_o,_o.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(Ri(_o,_o.current&1),t.flags|=128,null);Ri(_o,_o.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ri(_o,_o.current),r)break;return null;case 22:case 23:return t.lanes=0,zs(e,t,n)}return rc(e,t,n)}function ac(e,t){switch(Ha(t),t.tag){case 1:return Wi(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),Li(Vi),Li(Bi),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(Li(_o),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Li(_o),null;case 4:return mo(),null;case 10:return la(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var oc=!1,sc=!1,cc=typeof WeakSet==`function`?WeakSet:Set,X=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Rl(e,t,n)}else n.current=null}function uc(e,t,n){try{n()}catch(n){Rl(e,t,n)}}var dc=!1;function fc(e,t){if(fi=rn,e=wr(),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(pi={focusedElem:e,selectionRange:n},rn=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ra(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent=``;else if(y.nodeType===9){var b=y.body;b!=null&&(b.textContent=``)}break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Rl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return h=dc,dc=!1,h}function pc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&uc(t,n,a)}i=i.next}while(i!==r)}}function mc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wi],delete t[Ti],delete t[Di],delete t[Oi],delete t[ki])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||_c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=di));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}var xc=null,Sc=!1;function Cc(e,t,n){for(n=n.child;n!==null;)wc(e,t,n),n=n.sibling}function wc(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount==`function`)try{pt.onCommitFiberUnmount(ft,n)}catch{}switch(n.tag){case 5:sc||lc(n,t);case 6:var r=xc,i=Sc;xc=null,Cc(e,t,n),xc=r,Sc=i,xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xc.removeChild(n.stateNode));break;case 18:xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?bi(e.parentNode,n):e.nodeType===1&&bi(e,n),tn(e)):bi(xc,n.stateNode));break;case 4:r=xc,i=Sc,xc=n.stateNode.containerInfo,Sc=!0,Cc(e,t,n),xc=r,Sc=i;break;case 0:case 11:case 14:case 15:if(!sc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&uc(n,t,o),i=i.next}while(i!==r)}Cc(e,t,n);break;case 1:if(!sc&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rl(n,t,e)}Cc(e,t,n);break;case 21:Cc(e,t,n);break;case 22:n.mode&1?(sc=(r=sc)||n.memoizedState!==null,Cc(e,t,n),sc=r):Cc(e,t,n);break;default:Cc(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ec(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:xc=c.stateNode,Sc=!1;break a;case 3:xc=c.stateNode.containerInfo,Sc=!0;break a;case 4:xc=c.stateNode.containerInfo,Sc=!0;break a}c=c.return}if(xc===null)throw Error(r(160));wc(o,s,a),xc=null,Sc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Rl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dc(t,e),t=t.sibling}function Dc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ec(t,e),Oc(e),i&4){try{pc(3,e,e.return),mc(3,e)}catch(t){Rl(e,e.return,t)}try{pc(5,e,e.return)}catch(t){Rl(e,e.return,t)}}break;case 1:Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return);break;case 5:if(Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return),e.flags&32){var a=e.stateNode;try{xe(a,``)}catch(t){Rl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ce(a,o),Oe(c,s);var u=Oe(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Te(a,f):d===`dangerouslySetInnerHTML`?be(a,f):d===`children`?xe(a,f):b(a,d,f,u)}switch(c){case`input`:le(a,o);break;case`textarea`:he(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?fe(a,!!o.multiple,o.multiple?[]:``,!1):fe(a,!!o.multiple,o.defaultValue,!0)):fe(a,!!o.multiple,m,!1)}a[Ti]=o}catch(t){Rl(e,e.return,t)}}break;case 6:if(Ec(t,e),Oc(e),i&4){if(e.stateNode===null)throw Error(r(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(t){Rl(e,e.return,t)}}break;case 3:if(Ec(t,e),Oc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{tn(t.containerInfo)}catch(t){Rl(e,e.return,t)}break;case 4:Ec(t,e),Oc(e);break;case 13:Ec(t,e),Oc(e),u=e.child,u.flags&8192&&u.memoizedState!==null&&(u.alternate===null||u.alternate.memoizedState===null)&&(Zc=at()),i&4&&Tc(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(sc=(d=sc)||u,Ec(t,e),sc=d):Ec(t,e),Oc(e),i&8192){d=e.memoizedState!==null;a:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=we(`display`,s))}catch(t){Rl(e,e.return,t)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?``:p.memoizedProps}catch(t){Rl(e,e.return,t)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break a;for(;p.sibling===null;){if(p.return===null||p.return===e)break a;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}if(d&&!u&&e.mode&1)for(X=e,e=e.child;e!==null;){for(u=X=e;X!==null;){switch(d=X,f=d.child,d.tag){case 0:case 11:case 14:case 15:pc(4,d,d.return);break;case 1:if(lc(d,d.return),o=d.stateNode,typeof o.componentWillUnmount==`function`){p=d,m=d.return;try{a=p,o.props=a.memoizedProps,o.state=a.memoizedState,o.componentWillUnmount()}catch(e){Rl(p,m,e)}}break;case 5:lc(d,d.return);break;case 22:if(d.memoizedState!==null){Mc(u);continue}}f===null?Mc(u):(f.return=d,X=f)}e=e.sibling}}break;case 19:Ec(t,e),Oc(e),i&4&&Tc(e);break;case 21:break;default:Ec(t,e),Oc(e)}}function Oc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(_c(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(xe(a,``),i.flags&=-33),bc(e,vc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;yc(e,vc(e),o);break;default:throw Error(r(161))}}catch(t){Rl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kc(e,t,n){X=e,Ac(e,t,n)}function Ac(e,t,n){for(var r=(e.mode&1)!=0;X!==null;){var i=X,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||oc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||sc;s=oc;var l=sc;if(oc=o,(sc=c)&&!l)for(X=i;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Nc(i):(c.return=o,X=c);for(;a!==null;)X=a,Ac(a,t,n),a=a.sibling;X=i,oc=s,sc=l}jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):jc(e,t,n)}}function jc(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:sc||mc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!sc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ra(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Sa(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sa(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&tn(f)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(r(163))}sc||t.flags&512&&hc(t)}catch(e){Rl(t,t.return,e)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Mc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Nc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mc(4,t)}catch(e){Rl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Rl(t,i,e)}}var a=t.return;try{hc(t)}catch(e){Rl(t,a,e)}break;case 5:var o=t.return;try{hc(t)}catch(e){Rl(t,o,e)}}}catch(e){Rl(t,t.return,e)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var Pc=Math.ceil,Fc=x.ReactCurrentDispatcher,Ic=x.ReactCurrentOwner,Lc=x.ReactCurrentBatchConfig,Rc=0,zc=null,Bc=null,Vc=0,Hc=0,Uc=Ii(0),Wc=0,Gc=null,Kc=0,qc=0,Jc=0,Yc=null,Xc=null,Zc=0,Qc=1/0,$c=null,el=!1,tl=null,nl=null,rl=!1,il=null,al=0,ol=0,sl=null,cl=-1,ll=0;function ul(){return Rc&6?at():cl===-1?cl=at():cl}function dl(e){return e.mode&1?Rc&2&&Vc!==0?Vc&-Vc:na.transition===null?(e=jt,e===0?(e=window.event,e=e===void 0?16:un(e.type),e):e):(ll===0&&(ll=Et()),ll):1}function fl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));var i=pl(e,t);return i===null?null:(Ot(i,t,n),(!(Rc&2)||i!==zc)&&(i===zc&&(!(Rc&2)&&(qc|=t),Wc===4&&bl(i,Vc)),hl(i,n),t===1&&Rc===0&&!(e.mode&1)&&(Qc=at()+500,Zi&&ta())),i)}function pl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ml(e){return(zc!==null||pa!==null)&&(e.mode&1)!=0&&(Rc&2)==0}function hl(e,t){var n=e.callbackNode;wt(e,t);var r=St(e,e===zc?Vc:0);if(r===0)n!==null&&nt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nt(n),t===1)e.tag===0?ea(xl.bind(null,e)):$i(xl.bind(null,e)),vi(function(){Rc===0&&ta()}),n=null;else{switch(Mt(r)){case 1:n=st;break;case 4:n=ct;break;case 16:n=lt;break;case 536870912:n=dt;break;default:n=lt}n=Wl(n,gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gl(e,t){if(cl=-1,ll=0,Rc&6)throw Error(r(327));var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var i=St(e,e===zc?Vc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=kl(e,i);else{t=i;var a=Rc;Rc|=2;var o=Dl();(zc!==e||Vc!==t)&&($c=null,Qc=at()+500,Tl(e,t));do try{jl();break}catch(t){El(e,t)}while(1);ca(),Fc.current=o,Rc=a,Bc===null?(zc=null,Vc=0,t=Wc):t=0}if(t!==0){if(t===2&&(a=Tt(e),a!==0&&(i=a,t=_l(e,a))),t===1)throw n=Gc,Tl(e,0),bl(e,i),hl(e,at()),n;if(t===6)bl(e,i);else{if(a=e.current.alternate,!(i&30)&&!yl(a)&&(t=kl(e,i),t===2&&(o=Tt(e),o!==0&&(i=o,t=_l(e,o))),t===1))throw n=Gc,Tl(e,0),bl(e,i),hl(e,at()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Pl(e,Xc,$c);break;case 3:if(bl(e,i),(i&130023424)===i&&(t=Zc+500-at(),10<t)){if(St(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){ul(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),t);break}Pl(e,Xc,$c);break;case 4:if(bl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-ht(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=at()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Pc(i/1960))-i,10<i){e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),i);break}Pl(e,Xc,$c);break;case 5:Pl(e,Xc,$c);break;default:throw Error(r(329))}}}return hl(e,at()),e.callbackNode===n?gl.bind(null,e):null}function _l(e,t){var n=Yc;return e.current.memoizedState.isDehydrated&&(Tl(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Xc,Xc=n,t!==null&&vl(t)),e}function vl(e){Xc===null?Xc=e:Xc.push.apply(Xc,e)}function yl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bl(e,t){for(t&=~Jc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(Rc&6)throw Error(r(327));Il();var t=St(e,0);if(!(t&1))return hl(e,at()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var i=Tt(e);i!==0&&(t=i,n=_l(e,i))}if(n===1)throw n=Gc,Tl(e,0),bl(e,t),hl(e,at()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e,Xc,$c),hl(e,at()),null}function Sl(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{Rc=n,Rc===0&&(Qc=at()+500,Zi&&ta())}}function Cl(e){il!==null&&il.tag===0&&!(Rc&6)&&Il();var t=Rc;Rc|=1;var n=Lc.transition,r=jt;try{if(Lc.transition=null,jt=1,e)return e()}finally{jt=r,Lc.transition=n,Rc=t,!(Rc&6)&&ta()}}function wl(){Hc=Uc.current,Li(Uc)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gi(n)),Bc!==null)for(n=Bc.return;n!==null;){var r=n;switch(Ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:mo(),Li(Vi),Li(Bi),bo();break;case 5:go(r);break;case 4:mo();break;case 13:Li(_o);break;case 19:Li(_o);break;case 10:la(r.type._context);break;case 22:case 23:wl()}n=n.return}if(zc=e,Bc=e=Yl(e.current,null),Vc=Hc=t,Wc=0,Gc=null,Jc=qc=Kc=0,Xc=Yc=null,pa!==null){for(t=0;t<pa.length;t++)if(n=pa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}pa=null}return e}function El(e,t){do{var n=Bc;try{if(ca(),xo.current=hs,Do){for(var i=wo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Do=!1}if(Co=0,Eo=To=wo=null,Oo=!1,ko=0,Ic.current=null,n===null||n.return===null){Wc=1,Gc=t,Bc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Vc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ts(s);if(m!==null){m.flags&=-257,Es(m,s,c,o,t),m.mode&1&&ws(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){ws(o,u,t),Ol();break a}l=Error(r(426))}}else if(Ga&&c.mode&1){var _=Ts(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Es(_,s,c,o,t),eo(l);break a}}o=l,Wc!==4&&(Wc=2),Yc===null?Yc=[o]:Yc.push(o),l=ys(l,c),c=s;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var v=Ss(c,l,t);ba(c,v);break a;case 1:o=l;var y=c.type,b=c.stateNode;if(!(c.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(nl===null||!nl.has(b)))){c.flags|=65536,t&=-t,c.lanes|=t;var x=Cs(c,o,t);ba(c,x);break a}}c=c.return}while(c!==null)}Nl(n)}catch(e){t=e,Bc===n&&n!==null&&(Bc=n=n.return);continue}break}while(1)}function Dl(){var e=Fc.current;return Fc.current=hs,e===null?hs:e}function Ol(){(Wc===0||Wc===3||Wc===2)&&(Wc=4),zc===null||!(Kc&268435455)&&!(qc&268435455)||bl(zc,Vc)}function kl(e,t){var n=Rc;Rc|=2;var i=Dl();(zc!==e||Vc!==t)&&($c=null,Tl(e,t));do try{Al();break}catch(t){El(e,t)}while(1);if(ca(),Rc=n,Fc.current=i,Bc!==null)throw Error(r(261));return zc=null,Vc=0,Wc}function Al(){for(;Bc!==null;)Ml(Bc)}function jl(){for(;Bc!==null&&!rt();)Ml(Bc)}function Ml(e){var t=Ul(e.alternate,e,Hc);e.memoizedProps=e.pendingProps,t===null?Nl(e):Bc=t,Ic.current=null}function Nl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ac(n,t),n!==null){n.flags&=32767,Bc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wc=6,Bc=null;return}}else if(n=Ms(n,t,Hc),n!==null){Bc=n;return}if(t=t.sibling,t!==null){Bc=t;return}Bc=t=e}while(t!==null);Wc===0&&(Wc=5)}function Pl(e,t,n){var r=jt,i=Lc.transition;try{Lc.transition=null,jt=1,Fl(e,t,n,r)}finally{Lc.transition=i,jt=r}return null}function Fl(e,t,n,i){do Il();while(il!==null);if(Rc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(kt(e,o),e===zc&&(Bc=zc=null,Vc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rl||(rl=!0,Wl(lt,function(){return Il(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Lc.transition,Lc.transition=null;var s=jt;jt=1;var c=Rc;Rc|=4,Ic.current=null,fc(e,n),Dc(n,e),Er(pi),rn=!!fi,pi=fi=null,e.current=n,kc(n,e,a),it(),Rc=c,jt=s,Lc.transition=o}else e.current=n;if(rl&&(rl=!1,il=e,al=a),o=e.pendingLanes,o===0&&(nl=null),mt(n.stateNode,i),hl(e,at()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)i(t[n]);if(el)throw el=!1,e=tl,tl=null,e;return al&1&&e.tag!==0&&Il(),o=e.pendingLanes,o&1?e===sl?ol++:(ol=0,sl=e):ol=0,ta(),null}function Il(){if(il!==null){var e=Mt(al),t=Lc.transition,n=jt;try{if(Lc.transition=null,jt=16>e?16:e,il===null)var i=!1;else{if(e=il,il=null,al=0,Rc&6)throw Error(r(331));var a=Rc;for(Rc|=4,X=e.current;X!==null;){var o=X,s=o.child;if(X.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:pc(8,d,o)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var p=d.sibling,m=d.return;if(gc(d),d===u){X=null;break}if(p!==null){p.return=m,X=p;break}X=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}X=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,X=s;else b:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,X=v;break b}X=o.return}}var y=e.current;for(X=y;X!==null;){s=X;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,X=b;else b:for(s=y;X!==null;){if(c=X,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:mc(9,c)}}catch(e){Rl(c,c.return,e)}if(c===s){X=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,X=x;break b}X=c.return}}if(Rc=a,ta(),pt&&typeof pt.onPostCommitFiberRoot==`function`)try{pt.onPostCommitFiberRoot(ft,e)}catch{}i=!0}return i}finally{jt=n,Lc.transition=t}}return!1}function Ll(e,t,n){t=ys(n,t),t=Ss(e,t,1),va(e,t),t=ul(),e=pl(e,1),e!==null&&(Ot(e,1,t),hl(e,t))}function Rl(e,t,n){if(e.tag===3)Ll(e,e,n);else for(;t!==null;){if(t.tag===3){Ll(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nl===null||!nl.has(r))){e=ys(n,e),e=Cs(t,e,1),va(t,e),e=ul(),t=pl(t,1),t!==null&&(Ot(t,1,e),hl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,zc===e&&(Vc&n)===n&&(Wc===4||Wc===3&&(Vc&130023424)===Vc&&500>at()-Zc?Tl(e,0):Jc|=n),hl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):t=1);var n=ul();e=pl(e,t),e!==null&&(Ot(e,t,n),hl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vi.current)Ps=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ps=!1,ic(e,t,n);Ps=!!(e.flags&131072)}else Ps=!1,Ga&&t.flags&1048576&&Ba(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var a=Ui(t,Bi.current);da(t,n),a=No(null,t,i,e,a,n);var o=Po();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wi(i)?(o=!0,Ji(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ha(t),a.updater=Ta,t.stateNode=a,a._reactInternals=t,ka(t,i,e,n),t=Us(null,t,i,!0,o,n)):(t.tag=0,Ga&&o&&Va(t),Fs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=ra(i,e),a){case 0:t=Vs(null,t,i,e,n);break a;case 1:t=Hs(null,t,i,e,n);break a;case 11:t=Is(null,t,i,e,n);break a;case 14:t=Ls(null,t,i,ra(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Vs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Hs(e,t,i,a,n);case 3:a:{if(Ws(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ga(e,t),xa(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Error(r(423)),t=Gs(e,t,i,n,a);break a}else if(i!==a){a=Error(r(424)),t=Gs(e,t,i,n,a);break a}else for(Wa=xi(t.stateNode.containerInfo.firstChild),Ua=t,Ga=!0,Ka=null,n=oo(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),i===a){t=rc(e,t,n);break a}Fs(e,t,i,n)}t=t.child}return t;case 5:return ho(t),e===null&&Xa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,mi(i,a)?s=null:o!==null&&mi(i,o)&&(t.flags|=32),Bs(e,t),Fs(e,t,s,n),t.child;case 6:return e===null&&Xa(t),null;case 13:return Ys(e,t,n);case 4:return po(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ao(t,null,i,n):Fs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Is(e,t,i,a,n);case 7:return Fs(e,t,t.pendingProps,n),t.child;case 8:return Fs(e,t,t.pendingProps.children,n),t.child;case 12:return Fs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ri(ia,i._currentValue),i._currentValue=s,o!==null)if(yr(o.value,s)){if(o.children===a.children&&!Vi.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=_a(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ua(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ua(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Fs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,da(t,n),a=fa(a),i=i(a),t.flags|=1,Fs(e,t,i,n),t.child;case 14:return i=t.type,a=ra(i,t.pendingProps),a=ra(i.type,a),Ls(e,t,i,a,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Wi(i)?(e=!0,Ji(t)):e=!1,da(t,n),Da(t,i,a),ka(t,i,a,n),Us(null,t,i,!0,e,n);case 19:return nc(e,t,n);case 22:return zs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return tt(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case w:return Zl(n.children,a,o,t);case T:s=8,a|=8;break;case E:return e=Kl(12,n,t,a|2),e.elementType=E,e.lanes=o,e;case A:return e=Kl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Kl(19,n,t,a),e.elementType=j,e.lanes=o,e;case P:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case O:s=9;break a;case k:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=P,e.lanes=n,e.stateNode={},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dt(0),this.expirationTimes=Dt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return zi;e=e._reactInternals;a:{if(Ye(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Wi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Wi(n))return qi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=ul(),i=dl(n),a=_a(r,i),a.callback=t??null,va(n,a),e.current.lanes=i,Ot(e,i,r),hl(e,r),e}function ou(e,t,n,r){var i=t.current,a=ul(),o=dl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=_a(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),va(i,t),e=fl(i,o,a),e!==null&&ya(e,i,o),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){ou(null,e,null,null)}),t[Ei]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=It();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&Xt(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Ei]=o.current,ei(e.nodeType===8?e.parentNode:e),Cl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Ei]=c.current,ei(e.nodeType===8?e.parentNode:e),Cl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Nt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xt(t.pendingLanes);n!==0&&(At(t,n|1),hl(t,at()),!(Rc&6)&&(Qc=at()+500,ta()))}break;case 13:var r=ul();Cl(function(){return fl(e,1,r)}),lu(e,1)}},Pt=function(e){e.tag===13&&(fl(e,134217728,ul()),lu(e,134217728))},Ft=function(e){if(e.tag===13){var t=ul(),n=dl(e);fl(e,n,t),lu(e,n)}},It=function(){return jt},Lt=function(e,t){var n=jt;try{return jt=e,t()}finally{jt=n}},Ae=function(e,t,n){switch(t){case`input`:if(le(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ni(i);if(!a)throw Error(r(90));ae(i),le(i,a)}}}break;case`textarea`:he(e,n);break;case`select`:t=n.value,t!=null&&fe(e,!!n.multiple,t,!1)}},Pe=Sl,Fe=Cl;var yu={usingClientEntryPoint:!1,Events:[ji,Mi,Ni,Me,Ne,Sl]},bu={findFiberByHostInstance:Ai,bundleType:0,version:`18.1.0`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$e(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.1.0-next-22edb9f77-20220426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{ft=Su.inject(xu),pt=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Ei]=t.current,ei(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=$e(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Cl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Ei]=t.current,ei(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Cl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1},e.unstable_batchedUpdates=Sl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.1.0-next-22edb9f77-20220426`})),Uu=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hu()})),Wu=o((e=>{var t=Uu();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),Z=l(zu()),Gu=Wu(),Ku=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Primary=1]=`Primary`,e[e.Secondary=2]=`Secondary`,e[e.K12=3]=`K12`,e[e.Tertiary=4]=`Tertiary`,e[e.NonEducational=5]=`NonEducational`,e[e.Partners=6]=`Partners`,e[e.Internal=7]=`Internal`,e[e.Other=8]=`Other`,e[e.ClickView=254]=`ClickView`,e[e.System=255]=`System`,e}({}),qu=function(e){return e.Unclassified=`Unclassified`,e.Primary=`Primary`,e.Secondary=`Secondary`,e.K12=`K12`,e.Tertiary=`Tertiary`,e.NonEducational=`NonEducational`,e.Partners=`Partners`,e.Internal=`Internal`,e.Other=`Other`,e.ClickView=`ClickView`,e.System=`System`,e}({});Ku.Primary,Ku.Secondary,Ku.Primary,Ku.Secondary,Ku.Secondary,Ku.Primary,Ku.Primary,Ku.Primary,Ku.Secondary,Ku.Primary;var Ju=o((e=>{var t=zu(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Q=o(((e,t)=>{t.exports=Ju()}))();function Yu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z`})})}function Xu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`})})}function Zu(e){let t=!!e.ipAuthGuests?.length;return Z.useEffect(()=>{t?e.navigate({step:`username-or-guest`,backStep:null}):e.navigate({step:`username-input`,backStep:null})},[t]),(0,Q.jsx)(Q.Fragment,{})}var Qu={back:`_back_rcp4h_1`};function $u(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z`})})}function ed(e){return(0,Q.jsxs)(`span`,{className:`${Qu.back} position-relative d-inline-flex flex-row cursor-pointer`,role:`button`,tabIndex:0,onClick:e.onClick,children:[(0,Q.jsx)($u,{}),(0,Q.jsx)(`span`,{children:`Back`})]})}function td(...e){let t=[];for(let n of e)if(n)if(typeof n==`object`)for(let e of Object.keys(n))n[e]&&t.push(e);else typeof n==`string`&&t.push(n);return t.join(` `)}function nd(...e){return td(...e)}function rd(e){let{onClickBack:t,children:n}=e,r=!!e.title?.length;return r||n||t?(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsxs)(`div`,{className:`text-left position-relative d-flex flex-column gap-3`,children:[!!t&&(0,Q.jsx)(ed,{onClick:t}),r&&(0,Q.jsx)(`h1`,{className:nd(`h2`,e?.className?.title),children:e.title})]}),n&&(0,Q.jsx)(`p`,{className:nd(`text-start my-2`,e?.className?.description),children:n})]}):(0,Q.jsx)(Q.Fragment,{})}function id(e){let{showSpinner:t,children:n,className:r,...i}=e,a=Z.useRef(null),[o,s]=Z.useState({});return Z.useEffect(()=>{let{width:e,height:t}=o;if(e&&t)return;let n=a.current,r=n.offsetHeight,i=n.offsetWidth;!r||!i||s({width:i,height:r})}),Z.useEffect(()=>{let{width:e,height:t}=o;if(!e||!t)return;let n=a.current;n.style.width=`${e+1}px`,n.style.height=`${t+1}px`},[o]),(0,Q.jsx)(`button`,{ref:a,disabled:t,className:`${r} d-flex justify-content-center align-items-center`,...i,children:t?(0,Q.jsx)(`span`,{className:`spinner-border`,role:`status`,children:(0,Q.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})}):n})}function ad(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var od={back:`_back_fw24y_1`};function sd(e){switch(e){case`email`:return`Email`;case`username`:return`Username or email `;default:return null}}function cd(e){switch(e){case`email`:return`Enter your email`;case`username`:return`Enter your username or email`;default:return null}}function ld(e){switch(e){case`email`:return`email`;case`username`:return`username email`;default:return null}}function ud(e){let t=!e.hideCloseButton&&typeof e.onClickClose==`function`,n=`form-control form-control-lg`;return e.isError&&(n+=` is-invalid`),e.additionalClassNames&&(n+=` `+e.additionalClassNames),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.name,children:sd(e.type)}),(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{className:n,type:`text`,"aria-label":cd(e.type),placeholder:cd(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:ld(e.type),autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),t&&(0,Q.jsx)(`span`,{className:`${od.back} position-absolute cursor-pointer text-gray-800`,role:`button`,tabIndex:0,onClick:e.onClickClose,children:(0,Q.jsx)(ad,{})})]})]})}var dd={kbEmailInUse:`https://support.clickvieweducation.com/hc/articles/42460495601305`,verifyEmail:`https://support.clickvieweducation.com/hc/articles/42594760983705`,verifyEmailNotReceived:`https://support.clickvieweducation.com/hc/articles/43193378048665`,contactSupport:`https://www.clickvieweducation.com/contact-us`,marketingSite:{au:`https://www.clickvieweducation.com/en-au`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickvieweducation.com/en-gb`,us:`https://www.clickvieweducation.com`,ca:`https://www.clickvieweducation.com/en-ca`}};function fd(e){return _d[e]||gd}var pd=`If the error persists please contact ClickView Support.`,md=`If the error persists please contact your ClickView Administrator.`,hd=`Please contact your ClickView Administrator for further assistance.`,gd={message:`Oops! Something went wrong...`,additionalInformation:pd,errorImage:`default-v2.png`},_d={error:gd,"invalid-token":{message:`This link is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"invalid-code":{message:`This code is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"validation-failure":{message:`The information provided is not valid.`,additionalInformation:pd,errorImage:`incorrect-information-v2.png`},"user.email-in-use-as-username":{message:`This email address is already in use by another account.`,moreInfoUrl:dd.kbEmailInUse,errorImage:`email-error-v2.png`},"user.not-found":{message:`Oh oh! We can't find this account.`,additionalInformation:hd,errorImage:`user-not-found-v2.png`},"user.disabled":{message:`Oops! Looks like this account has been deactivated.`,additionalInformation:hd,errorImage:`user-disabled-v2.png`},"user.no-login":{message:`This account does not have a login.`,additionalInformation:hd,errorImage:`access-forbidden-v2.png`},"user.invalid-password":{message:`The provided username or password is incorrect.`,errorImage:`access-forbidden-v2.png`},"user.same-password":{message:`The provided password is the same as the current password.`,errorImage:`access-forbidden-v2.png`},"user.password-too-short":{message:`The provided password is too short.`,errorImage:`access-forbidden-v2.png`},"user.not-activated":{message:`The account has not been activated. Please check your email for an activation link and try again.`,errorImage:`email-error-v2.png`},"user.already-activated":{message:`This account has already been activated.`,errorImage:`already-activated-v2.png`},"user.locked-out":{message:`Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.`,errorImage:`locked-account-v2.png`},"user.invalid-first-name":{message:`The provided first name is invalid.`,errorImage:`default-v2.png`},"user.invalid-surname":{message:`The provided surname is invalid.`,errorImage:`default-v2.png`},"user.invalid-jobtitle":{message:`The provided job title is incorrect.`,errorImage:`default-v2.png`},"user.no-external-user-data":{message:`Oops! We can't get the information from your IDP.`,errorImage:`default-v2.png`},"user.empty-first-name":{message:`The first name must be provided.`,errorImage:`default-v2.png`},"user.empty-surname":{message:`The surname must be provided.`,errorImage:`default-v2.png`},"user.display-name-too-long":{message:`The maximum length for display name is 70 characters.`,errorImage:`default-v2.png`},"user.display-name-too-short":{message:`The minimum length for display name is 2 characters.`,errorImage:`default-v2.png`},"user.unknown-user-type":{message:`The account type needs to be provided.`,errorImage:`default-v2.png`},"user.invalid-email":{message:`The provided email is invalid.`,errorImage:`email-error-v2.png`},"user.email-too-long":{message:`The maximum length for email is 255 characters.`,errorImage:`email-error-v2.png`},"user.email-already-exists":{message:`This email address is already in use by another account.`,errorImage:`email-error-v2.png`},"user.unknown-year-group":{message:`The year level or grade must be provided for student account.`,errorImage:`default-v2.png`},"customer.not-found":{message:`The customer of this account could not be found.`,errorImage:`not-found-v2.png`},"user.empty-customer":{message:`The customer mapping does not exist.`,errorImage:`default-v2.png`},"user.no-email":{message:`The account does not have an email.`,errorImage:`email-error-v2.png`},"user.email-not-allowed":{message:`Oops! That email won't work to sign in to ClickView. Try using your school account instead.`,errorImage:`email-error-v2.png`},"user.signup-not-allowed":{message:`Student sign up is currently not supported.`,errorImage:`default-v2.png`},"user.invalid-external-user-role":{message:`The external user role is not supported`,errorImage:`default-v2.png`},"user.user-type-not-matched":{message:`The provided user type does not match the existing user`,errorImage:`default-v2.png`},"user.already-logged-in":{message:`You already have an account on ClickView`,errorImage:`default-v2.png`},"login.error":{message:`Uh oh! We cannot log you in at this time.`,additionalInformation:pd,errorImage:`default-v2.png`},"login.invalid-login-state":{message:`Your session has expired.`,additionalInformation:`Please login and try again.`,errorImage:`incorrect-information-v2.png`},"login.no-ip":{message:`IP address could not be detected for IP auth`,errorImage:`default-v2.png`},"verify-email.error":{message:`There was an issue verifying your email address, please try again.`,additionalInformation:md,errorImage:`email-error-v2.png`},"forgot-password.no-account":{message:`No account can be found for the provided username or email address.`},"forgot-password.no-verified-email":{message:`Your account needs to be linked to a verified email to receive a password reset link. Please contact your ClickView Administrator for further assistance.`},"idp.wonde-missing-data":{message:`MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"idp.rm-missing-data":{message:`Failed to retrieve data from RM Unify.`,errorImage:`default-v2.png`},"saml2.login":{message:`There was an issue processing your login. Please try again`,errorImage:`default-v2.png`},"saml2.configuration-error":{preferServerError:!0,message:`There was an issue with the saml configuration. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"http.400":{message:`The information provided was not quite what we were looking for.`,errorImage:`incorrect-information-v2.png`},"http.401":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.403":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.404":{message:`Oops! Nothing to see here.`,errorImage:`not-found-v2.png`},"http.500":{message:`Shoot! Looks like theres smoke coming out of our servers.`,additionalInformation:pd,errorImage:`smoky-server-v2.png`}};function vd(){return`Value is required.`}var yd=class extends Error{constructor(e,t,n){super(`An error has occured with errorCode: ${e}`),this.userMessage=t,this.errorCode=e,this.traceId=n}};function bd(e){let t=e.errorCode,n;return n=t===`validation-failure`?vd():fd(t).message,new yd(t,n,e.traceId)}var xd=new class{getXsrfToken(){let e=decodeURIComponent(document.cookie).split(`;`);for(let t=0;t<e.length;t++){let n=e[t];for(;n.charAt(0)===` `;)n=n.substring(1);if(n.indexOf(`XSRF-TOKEN=`)===0)return n.substring(11,n.length)}return``}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":`application/json`}}handleResponse(e){return e.json().then(t=>{if(!e.ok)throw bd(t);return t})}get(e){return fetch(e).then(e=>this.handleResponse(e))}post(e,t){let n={method:`POST`,headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(e,n).then(e=>this.handleResponse(e))}},Sd={banner:`_banner_hzr93_1`,pluginBanner:`_pluginBanner_hzr93_5`};function Cd(e){let t=Od[e.bannerType];return t?(0,Q.jsx)(t,{}):(0,Q.jsx)(Q.Fragment,{})}var wd=()=>(0,Q.jsxs)(`div`,{className:`${Sd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If your email address is already in use, please\xA0`,(0,Q.jsx)(`a`,{href:dd.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`.`]}),Td=()=>(0,Q.jsxs)(`div`,{className:`${Sd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If you did not receive a verification email,\xA0`,(0,Q.jsx)(`a`,{href:dd.verifyEmailNotReceived,target:`_blank`,className:`info-link`,children:`please see our support article`}),`\xA0or\xA0`,(0,Q.jsx)(`a`,{href:dd.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`\xA0for help.`]}),Ed=()=>(0,Q.jsx)(`div`,{className:`${Sd.pluginBanner} position-absolute w-100 h-auto`,children:(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(`span`,{className:`text-light d-inline-block py-3 h6 mb-0`,children:`🎓️ Embed classroom-ready videos from ClickView`})})});function Dd(){return(0,Q.jsx)(`div`,{style:{height:`3.626rem`}})}var Od={"email-in-use":wd,"check-email":Td,plugin:Ed};function kd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:`M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z`}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})})}var Ad=`/images/clickview-xmas-logo-2026.png`;function jd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsx)(`img`,{className:`h-100`,alt:`ClickView Xmas logo`,src:Ad})})}var Md={logo:`_logo_1ermx_1`};function Nd(){return(0,Q.jsx)(`span`,{className:`${Md.logo} d-inline-block`,children:(0,Q.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Q.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Q.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Q.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Q.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Q.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z`,fill:`#F8981D`}),(0,Q.jsx)(`path`,{d:`M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2637.06 869.627H2596.11V610.676H2637.06V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2728.31 869.627H2687.37V684.984H2728.31V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3454.19 869.627H3413.24V684.984H3454.19V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z`,fill:`#313543`})]})})}var Pd=function(e){return e.Default=`default`,e.Lite=`lite`,e.Exchange=`exchange`,e.Analytics=`analytics`,e.Cloud=`cloud`,e.Streamable=`streamable`,e.Xmas=`xmas`,e.Plugin=`plugin`,e.Curator=`curator`,e}({}),Fd=`ClickView`,Id={default:{imageUrls:{default:[`/images/backgrounds/bg-1.png`,`/images/backgrounds/bg-2.png`,`/images/backgrounds/bg-3.png`,`/images/backgrounds/bg-4.png`,`/images/backgrounds/bg-5.png`]},imageType:`background`,logoComponent:kd,bannerSpacer:Dd,productName:Fd},lite:{imageUrls:{default:[`/images/backgrounds/products/lite-topic-1-v2.png`,`/images/backgrounds/products/lite-topic-2-v2.png`,`/images/backgrounds/products/lite-topic-3-v2.png`,`/images/backgrounds/products/lite-discover-1-v2.png`,`/images/backgrounds/products/lite-discover-2-v2.png`,`/images/backgrounds/products/lite-student-1-v2.png`,`/images/backgrounds/products/lite-student-2-v2.png`,`/images/backgrounds/products/lite-event-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#38A2E8`,bannerSpacer:Dd,productName:Fd},exchange:{imageUrls:{default:[`/images/backgrounds/products/exchange-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#F8981D`,bannerSpacer:Dd,productName:Fd},analytics:{imageUrls:{default:[`/images/backgrounds/products/analytics-1-v4.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#4C68DB`,bannerSpacer:Dd,productName:Fd},cloud:{imageUrls:{default:[`/images/backgrounds/products/cloud-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#40C2BB`,bannerSpacer:Dd,productName:Fd},streamable:{imageUrls:{default:[`/images/backgrounds/products/streamable-1-v2.png`,`/images/backgrounds/products/streamable-2-v2.png`]},imageType:`image`,logoComponent:Nd,backgroundColor:`#D6F0FC`,bannerSpacer:Dd,productName:`Streamable Learning`},xmas:{imageUrls:{default:[`/images/backgrounds/xmas/2026-promo1-bg.png`,`/images/backgrounds/xmas/2026-promo2-bg.png`,`/images/backgrounds/xmas/2026-promo3-bg.png`,`/images/backgrounds/xmas/2026-promo4-bg.png`,`/images/backgrounds/xmas/2026-promo5-bg.png`,`/images/backgrounds/xmas/2026-promo6-bg.png`,`/images/backgrounds/xmas/2026-promo7-bg.png`]},imageType:`background`,logoComponent:jd,bannerSpacer:Dd,productName:Fd},plugin:{imageUrls:{default:[]},imageType:`none`,logoComponent:kd,bannerSpacer:Dd,banner:`plugin`,productName:Fd},curator:{imageUrls:{default:[`/images/backgrounds/products/curator-1-v2.png`]},imageType:`image`,backgroundColor:`#49c5b1`,logoComponent:kd,bannerSpacer:Dd,productName:Fd,title:`Thank you for all the years of service, ClickView Central!`}},Ld={getDefinition(e){return Id[e]||Id[Pd.Default]}},Rd={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,t)=>{let{returnUrl:n}=t;xd.post(`/ajax/login/continue`,{returnUrl:n}).then(e=>zd(e,t)).catch(e=>{throw e})}};function zd(e,t,n){let r=Rd[e.step];if(r){r(e,t);return}if(!Nj[e.step])throw Error(`Unknown step '${e.step}'`);t.navigate({step:e.step,...n,...e.data})}function Bd(e){return(0,Q.jsxs)(`div`,{className:e.className,children:[`Don't have an account?\xA0`,(0,Q.jsx)(`a`,{className:`info-link btn-link`,href:e.signInUrl,children:`Create account`})]})}var Vd={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:Vd.getMemoryStorage()},getMemoryStorage(){let e=new Map;return{setItem(t,n){e.set(t,n)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}},Hd=function(e){return e.LocalStorage=`localStorage`,e.SessionStorage=`sessionStorage`,e.MemoryStorage=`memoryStorage`,e}({}),Ud=class{constructor(e){if(this.cachePrefix=`_cv:`,this.expireTime=3600,this.type=e.type,this.hasSupport=this.hasBrowserSupport(),this.hasSupport)try{this.type===`memoryStorage`?this.storage=Vd.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(e){if(!this.hasSupport)return;let t=this.storage.getItem(e);try{return JSON.parse(t)}catch{return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),typeof t==`string`?(this.storage.setItem(e,t),!0):(this.storage.setItem(e,JSON.stringify(t)),!0)}catch{return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();let r={time:this.getCurrentTime()+n*1e3,data:t!=null&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),!1):!0:!1}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){let t=this.storage.key(e);if(t.indexOf(this.cachePrefix)===0){let e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type===`memoryStorage`)return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}},Wd=class extends Ud{static get Instance(){return this.instance||=new this({type:`localStorage`})}},Gd=class extends Ud{static get Instance(){return this.instance||=new this({type:`sessionStorage`})}},Kd=class extends Ud{static get Instance(){return this.instance||=new this({type:`memoryStorage`})}},qd=Wd.Instance,Jd=Gd.Instance,Yd=Kd.Instance,Xd=`r`,Zd=`cv:r`,Qd=`cv:r:e`,$d=`referrer`,ef=`cv:originalReferrer`,tf=28800,nf=[`internalReferrer`],rf={getDecodedAttributionData(){let e=qd.cacheGet(Zd);return e&&Object.keys(e).length>0?e:af()?.decoded},getEncodedAttributionData(){let e=qd.cacheGet(Qd);return e?.length?e:af().encoded},getProfileId(){return rf.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&df(uf(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!sf(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function af(){let e=qd.cacheGet(Zd),t=qd.cacheGet(Qd);return sf(e)?{encoded:t,decoded:e}:of()}function of(){qd.cacheRemove(Zd),qd.cacheRemove(Qd);let e=lf(),t=rf.decodeRValue(e);if(t)return df(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:cf()},r=uf(n);return df(r,n),{decoded:n,encoded:r}}function sf(e){return!e||typeof e!=`object`||Object.keys(e).length<nf.length?!1:nf.every(t=>typeof e[t]==`string`)}function cf(){let e=qd.cacheGet(ef);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has($d)&&e.get($d);e.has($d)&&e.get($d)&&(t=n)}return t&&qd.cacheSet(ef,t,tf),t}function lf(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(Xd))return e.get(Xd)}function uf(e){if(sf(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function df(e,t){try{qd.cacheSet(Zd,t,tf),qd.cacheSet(Qd,e,tf)}catch{console.error(`Could not store attribution data in session storage`)}}var ff=28800,pf=`cv:utmparams`,mf=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],hf=mf.reduce((e,[t])=>({...e,[t]:t}),{}),gf={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return mf.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),_f(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{hf[n]&&(t[n]=e[n])}),_f(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=gf.getUtmParameters();return t?(mf.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function _f(e){if(Object.keys(e).length)return qd.cacheSet(pf,e,ff),e;let t=qd.cacheGet(pf);return t&&typeof t==`object`&&Object.keys(t).length?t:null}function vf(e){function t(t){xd.post(`/ajax/login/ip-auth`,{id:t.id,returnUrl:e.returnUrl}).then(t=>zd(t,e)).catch(e=>{console.warn(e)})}function n(e){window.location.href=e.url}function r(){e.navigate({step:e.backStep})}function i(){if(!window.URLSearchParams)return e.signUpUrl;let t=gf.getURLSearchParams()||new URLSearchParams,n=rf.getEncodedAttributionData();return n&&t.set(`r`,n),e.signUpUrl+`?`+t.toString()}return{onClickIpAuthGuest:t,onClickProvider:n,onClickBack:e.backStep?r:null,getSignInUrl:i}}var yf={globalIdpButton:`_globalIdpButton_gzfrv_1`,globalIdpImage:`_globalIdpImage_gzfrv_5`};function bf(e){let{idp:t,onClick:n,backgroundColour:r=`F8981D`,foregroundColour:i=`FFF`,last:a,isGlobalIdp:o}=e,s=a?``:`mb-3`,c={backgroundColor:`#${t.backgroundColour||r}`,color:`#${t.foregroundColour||i}`},l={},u=o?`btn btn-lg btn-outline-dark w-100 ${s} ${yf.globalIdpButton}`:`btn btn-lg w-100 ${s}`,d=o?l:c,f=o?`Continue with ${t.name}`:t.name;return(0,Q.jsxs)(`button`,{className:u,style:d,onClick:()=>n(t),children:[o&&t.logoUrl&&(0,Q.jsx)(`img`,{src:t.logoUrl,className:yf.globalIdpImage,alt:`${t.name} logo`}),f]})}var xf={divider:`_divider_1q6pq_1`};function Sf(e){let t=e.idps?.filter(e=>!!e.visible)||[];if(!t.length)return(0,Q.jsx)(Q.Fragment,{});function n(t){let n=window.location.pathname+window.location.search,r=`/challenge?idp=${t.id}&redirectUrl=`+encodeURIComponent(n);`attribution`in e&&(r+=`&attribution=`+encodeURIComponent(e.attribution)),window.location.href=r}return(0,Q.jsxs)(`div`,{className:`${e.className?e.className:``}`,children:[(0,Q.jsx)(`div`,{className:`my-4 border-bottom position-relative ${xf.divider}`}),t.map((t,r)=>(0,Q.jsx)(bf,{idp:t,onClick:`onClick`in e?e.onClick:n,attribution:`attribution`in e?e.attribution:null,isGlobalIdp:!0},r))]})}function Cf(e){return(0,Q.jsx)(`span`,{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:`status`,children:e.children})}function wf(e){let[t,n]=Z.useState(e.username||``),[r,i]=Z.useState(!1),[a,o]=Z.useState(``),s=Ld.getDefinition(e?.theme),c=s?.productName?`Sign in to ${s.productName}`:`Sign in`,l=!!e.globalIdps?.length,u=e.signUpUrl&&e.showSignUp,{onClickProvider:d,onClickBack:f,getSignInUrl:p}=vf(e);function m(n){if(n.preventDefault(),!t){o(`Please provide a username`);return}i(!0),xd.post(`/ajax/login/check-user`,{username:t,returnUrl:e.returnUrl}).then(n=>zd(n,e,{username:t})).catch(e=>{i(!1),o(e.userMessage||`Something went wrong`)})}function h(e){n(e.target.value.trim()),e.target.value&&o(``)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:c,onClickBack:f}),(0,Q.jsxs)(`form`,{onSubmit:m,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(ud,{name:`username`,type:`username`,isError:!!a,value:t,onChange:h,"aria-invalid":!!a,"aria-errormessage":`usernameError`}),!!a&&(0,Q.jsx)(Cf,{name:`username`,children:a})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:r,children:`Continue`})]}),u&&(0,Q.jsx)(Bd,{className:`mt-4`,signInUrl:p()}),l&&(0,Q.jsx)(Sf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:d})]})}function Tf(e){let t=Ld.getDefinition(e?.theme),n=t?.productName?`Sign in to ${t.productName}`:`Sign in`,r=!!e.globalIdps?.length,i=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:a,onClickProvider:o,onClickBack:s,getSignInUrl:c}=vf(e);function l(){e.navigate({step:`username-input`,backStep:`username`})}function u(){e.ipAuthGuests?.length===1?a(e.ipAuthGuests[0]):e.navigate({step:`guest-selection`,backStep:`username`})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:n,onClickBack:s}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100 mb-3`,showSpinner:!1,onClick:l,children:`Sign in with username or email`}),(0,Q.jsx)(id,{className:`btn btn-outline-dark btn-lg w-100`,showSpinner:!1,onClick:u,children:`Sign in as guest`}),i&&(0,Q.jsx)(Bd,{className:`mt-4`,signInUrl:c()}),r&&(0,Q.jsx)(Sf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:o})]})}function Ef(){return(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z`})})})}var Df={showIconOnHover:`_showIconOnHover_1ebbv_1`};function Of({icon:e}){return(0,Q.jsx)(Q.Fragment,{children:e&&(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle`,src:e})})}function kf(e){let{text:t,onClick:n,className:r,icon:i,iconColor:a=`dark`,showIconOnHover:o=!0}=e,s={},c;return c=typeof i==`function`?i:()=>(0,Q.jsx)(Of,{icon:i}),(0,Q.jsx)(`button`,{className:nd(`btn btn-outline-dark btn-lg w-100 border-secondary`,o&&Df.showIconOnHover,r),onClick:n,style:s,children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[c&&(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-${a} d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(c,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 w-75 text-start`,children:t}),(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(Ef,{})})]})})}function Af(){return(0,Q.jsx)(`div`,{className:`svg-container lg`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 18 18`,className:`align-top`,children:(0,Q.jsx)(`path`,{d:`M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z`,style:{strokeWidth:.0275199}})})})}var jf={buildAvatarUrl(e,t){if(e)return t.size?`${e}${e.includes(`?`)?`&`:`?`}size=${t.size}`:e}};function Mf(e){return(0,Q.jsx)(`div`,{className:`d-flex flex-column gap-3`,children:e.ipAuthGuests.map(t=>(0,Q.jsx)(kf,{onClick:()=>{e.onClickGuest(t)},text:t.customer.name,icon:jf.buildAvatarUrl(t.customer.logoUrl,{size:`small`})||Af},t.id))})}function Nf(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var Pf={clearInput:`_clearInput_1l19p_1`,clearableInput:`_clearableInput_1l19p_8`},Ff=Z.forwardRef((e,t)=>{let{onClickClear:n,showClearButton:r,clearClassName:i,...a}=e;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{...a,ref:t,className:`${e.className} ${Pf.clearableInput}`}),(!!e.value||r)&&(0,Q.jsx)(`span`,{className:`${Pf.clearInput} position-absolute cursor-pointer text-secondary ${i||``}`,role:`button`,onClick:n,onKeyDown:e=>e.key===`Enter`&&n(),tabIndex:0,children:(0,Q.jsx)(`div`,{className:`d-inline-block svg-container md`,children:(0,Q.jsx)(Nf,{})})})]})});function If(e){let[t,n]=Z.useState(0),r=Z.useRef(null),[i,a]=Z.useState(!!e.hideInitially);function o(){r.current&&r.current.children[t-1]?.scrollIntoView({block:`center`})}function s(r){if(e.hideOnEnter&&a(!1),r.code===`ArrowDown`){r.stopPropagation(),r.preventDefault();let i=t+1;i>e.itemCount&&(i=1),n(i),o();return}if(r.code===`ArrowUp`){r.stopPropagation(),r.preventDefault();let i=t-1;i<=0&&(i=e.itemCount),n(i),o();return}if(r.code===`Enter`&&t>0){r.stopPropagation(),r.preventDefault(),e.onSelected(t-1),e.hideOnEnter&&a(!0);return}n(0)}function c(){e.hideOnBlur&&a(!1)}function l(){e.hideOnBlur&&a(!0)}return{selectedIndex:t,onKeyDown:s,containerRef:r,hide:i,onFocus:c,onBlur:l}}var Lf=Z.forwardRef((e,t)=>{function n(t){if(e.onKeyDown)return e.onKeyDown(t);if(t.key===` `&&t.preventDefault(),t.key===`Enter`||t.key===` `){if(e.disabled||!e.onClick)return;r(t)}}function r(...t){if(!(e.disabled||!e.onClick))return e.onClick(...t)}return(0,Q.jsx)(`div`,{...e,ref:t,role:`button`,tabIndex:e.tabIndex||0,className:`${e.className?e.className:``} ${e.disabled?``:`cursor-pointer`}`,onKeyDown:n,onClick:r,style:e.style?e.style:{},children:e.children})}),Rf={inputFocused:`_inputFocused_bwtre_1`,dropdown:`_dropdown_bwtre_4`,suggestionContainer:`_suggestionContainer_bwtre_7`,suggestionItem:`_suggestionItem_bwtre_16`,large:`_large_bwtre_20`,input:`_input_bwtre_1`,selected:`_selected_bwtre_39`,clearInput:`_clearInput_bwtre_43`,clear:`_clear_bwtre_43`};function zf(e){let{items:t,getName:n,onItemClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Lf,{className:`${Rf.suggestionItem} ${i-1===t?Rf.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:n(e)},t))})}function Bf(e){let t=Z.useRef(null),[n,r]=Z.useState(``),[i,a]=Z.useState([]),{selectedIndex:o,onKeyDown:s,containerRef:c,hide:l,onBlur:u,onFocus:d}=If({onSelected:f,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function f(t){if(t===i.length){e.onCantFind();return}let n=i[t];n&&v(n)}let p=!!e.item,m=e.cantFindText?i?.length+1:i?.length;Z.useEffect(()=>{if(!p){if(!n.length){_();return}if(!p&&n.length>1){_(n);return}}},[n,p]);function h(t){e.item&&e.clearData(),t!==n&&r(t)}function g(){h(``),t.current.focus()}function _(t){if(!t){a(e.items);return}let n=e.items.filter(n=>e.getName(n).toLowerCase().includes(t.toLowerCase()));a(n)}function v(t){r(e.getName(t)),e.onSelect(t),a(e.items)}let y=m&&!e.disabled&&!l,b=`form-select ${y?Rf.inputFocused:Rf.input} ${Rf.clearInput} cursor-pointer`,x=`form-group position-relative`;return e.size===`lg`&&(b+=` form-select-lg`,x+=` ${Rf.large}`),(0,Q.jsxs)(`div`,{className:x,children:[(0,Q.jsx)(Ff,{id:e.id,value:n,onChange:e=>h(e.currentTarget.value),ref:t,className:b,type:`text`,autoComplete:`off`,placeholder:e.placeholder,disabled:e.disabled,onClickClear:g,onKeyDown:s,onFocus:d,onBlur:u,clearClassName:Rf.clear}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${Rf.dropdown} ${l?`d-none`:``}`,children:(0,Q.jsxs)(`div`,{className:`${Rf.suggestionContainer} ${y?``:`d-none`}`,ref:c,children:[m&&(0,Q.jsx)(zf,{items:i,onItemClick:v,getName:e.getName,selectedIndex:o}),e.cantFindText&&(0,Q.jsx)(`div`,{className:`info-link ${Rf.suggestionItem} ${o===i.length+1?Rf.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function Vf(e){let[t,n]=Z.useState(null);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Bf,{id:`guest`,item:t,items:e.ipAuthGuests,onSelect:e=>n(e),getName:e=>e.customer.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!t,onClick:()=>{e.onClickGuest(t)},children:`Continue`})]})}var Hf=4;function Uf(e){return(0,Q.jsxs)(`div`,{className:nd(e.className),children:[(0,Q.jsx)(`p`,{className:`fw-medium`,children:`Which school would you like to sign in to as a guest?`}),e.ipAuthGuests.length>Hf?(0,Q.jsx)(Vf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):(0,Q.jsx)(Mf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function Wf(e){let{onClickIpAuthGuest:t,onClickBack:n}=vf(e);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:`Sign in as guest`,onClickBack:n}),(0,Q.jsx)(Uf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:t})]})}var Gf={revealPassword:`_revealPassword_11wqf_1`,passwordInput:`_passwordInput_11wqf_10`,passwordContainer:`_passwordContainer_11wqf_17`};function Kf(e){return e||`Password`}function qf(e){let[t,n]=Z.useState(`password`),r=Z.useRef(null);function i(e){e.preventDefault(),n(t===`password`?`text`:`password`),r.current?.focus()}let a=`position-relative form-control form-control-lg ${Gf.passwordContainer}`;return e.hasError&&(a+=` ${e.hasError?`is-invalid`:``}`),e.className&&(a+=` ${e.className}`),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.id||e.name,children:Kf(e.label)}),(0,Q.jsxs)(`div`,{className:a,children:[(0,Q.jsx)(`input`,{className:`${Gf.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:t,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:r,id:e.id||e.name}),(0,Q.jsx)(Lf,{className:`svg-container cursor-pointer ${Gf.revealPassword}`,onClick:i,children:t===`password`?(0,Q.jsx)(Xu,{}):(0,Q.jsx)(Yu,{})})]})]})}function Jf(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(e.username),[a,o]=Z.useState(``),[s,c]=Z.useState(!1),[l,u]=Z.useState(``),d=!!e.username;function f(e){i(e.target.value.trim()),u(``)}function p(e){o(e.target.value),u(``)}function m(t){if(e.backStep){n({step:e.backStep,backStep:null});return}n({step:`username`,clearUsername:t})}function h(){n({step:`forgot-password`,backStep:`password`,username:r})}function g(n){if(n.preventDefault(),!r){u(`Please provide a username`);return}if(!a){u(`Please provide a password`);return}if(a.trim().length!==a.length){u(`Your password cannot start or end with a blank space`);return}c(!0),xd.post(`/ajax/login/password`,{username:r,password:a,returnUrl:t}).then(t=>zd(t,e)).catch(e=>{c(!1),u(e.userMessage||`Something went wrong`)})}let _=Ld.getDefinition(e?.theme),v=_?.productName?`Sign in to ${_.productName}`:`Sign in`;return(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:()=>m(!1),title:v}),(0,Q.jsx)(`div`,{className:`mb-3 position-relative`,children:(0,Q.jsx)(ud,{name:`username`,type:`username`,isError:!!l,value:r,disabled:d,onChange:f,hideCloseButton:!d,onClickClose:()=>m(!0)})}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(qf,{placeholder:`Enter your password`,autoFocus:d,value:a,onChange:p,name:`current-password`,autoComplete:`current-password`,hasError:!!l,"aria-invalid":!!l,"aria-errormessage":`current-passwordError`}),!!l&&(0,Q.jsx)(Cf,{name:`current-passwordError`,children:l})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:s,children:`Sign in`}),(0,Q.jsx)(`div`,{className:`text-start`,children:(0,Q.jsx)(`button`,{className:`btn btn-link text-info ps-0`,onClick:h,children:`Forgot your password?`})})]})}var Yf=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function Xf(e){let{navigate:t,idps:n,showPasswordLogin:r}=e,[i,a]=Z.useState(null);function o(e){window.location.href=e}function s(){t({step:`username`})}function c(){t({step:`password`,backStep:`select-idp`})}function l(e){o(e.url)}function u(){i&&o(i.url)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(rd,{onClickBack:s,theme:e.theme,title:`To sign in, please select an option from the list below`}),n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Bf,{id:`idp`,item:i,items:n,onSelect:a,getName:e=>e.name,clearData:()=>a(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!i,onClick:u,children:`Continue`})]}):n.map((e,t)=>(0,Q.jsx)(bf,{onClick:l,idp:{...e,visible:!0},backgroundColour:Yf[t%Yf.length],isGlobalIdp:!e.id.startsWith(`online:`)},t)),r&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:c,children:`My school doesn't use Single Sign On`})]})}function Zf(e,t){Z.useEffect(()=>{if(e)return t.dispatch({type:`setBanner`,data:{bannerType:e}}),()=>{t.dispatch({type:`setBanner`,data:{bannerType:null}})}},[e])}var Qf=/^(([^<>()\[\]\\.,;:\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,}))$/,$f=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,ep=250,tp={isEmail(e){return Qf.test(e)},isValidLength(e){if(!e)return!1;let t=e.trim();return t.length>0&&t.length<=ep},exceedsMaxLength(e){return e?e.trim().length>ep:!1},containsValidText(e){return!e||$f.test(e)},isPasswordValid(e,t,n){return e.length?n&&!t.length?[!1,`Password confirmation is required.`]:n&&e!==t?[!1,`Password confirmation does not match.`]:e.trim().length===e.length?[!0]:[!1,`Your password cannot start or end with a blank space`]:[!1,`Password is required.`]}};function np(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);Zf(`email-in-use`,e);let{productName:l}=Ld.getDefinition(e.theme);function u(){t({step:n||`username`})}function d(){t({step:`verify-email-skip-reason`,backStep:`verify-email`})}function f(e){i(e.target.value)}function p(t){if(t.preventDefault(),!r){c(`Please provide an email`);return}if(!tp.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),xd.post(`/ajax/login/send-verify-email-code`,{email:r}).then(t=>zd(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsx)(rd,{onClickBack:u,theme:e.theme,title:`Verify your email`,className:{description:`mt-0 mb-0`},children:(0,Q.jsxs)(`span`,{className:`d-inline-block`,children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${l}.`,`\xA0`,(0,Q.jsx)(`a`,{className:`text-info cursor-pointer`,target:`_blank`,href:dd.verifyEmail,children:`Learn more.`})]})}),(0,Q.jsx)(ud,{isError:!!s,type:`email`,value:r,onChange:f,name:`email`,ariaInvalid:!!s,ariaErrorMessage:`emailError`}),!!s&&(0,Q.jsx)(Cf,{name:`email`,children:s}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100 mt-4`,type:`submit`,showSpinner:a,children:`Verify`}),e.canSkip&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info mt-2 ps-0`,onClick:d,children:`Skip for now`})]})})}var rp={input:`_input_1vtt8_1`},ip=/^[0-9]$/,ap=/^\d+$/,op=8;function sp(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(``),[l,u]=Z.useState(``),[d,f]=Z.useState(``),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(null),_=Z.useRef(null),v=Z.useRef(null);Z.useEffect(()=>{let n=(t||`X`)+(r||`X`)+(a||`X`)+(s||`X`)+(l||`X`)+(d||`X`),i=n.length===6&&n.indexOf(`X`)===-1;e.onChange(n,i)},[t,r,a,s,l,d]);let y={"verify-1":{getNext:()=>y[`verify-2`],getPrevious:()=>null,value:t,setState:n,focus:()=>p.current.focus()},"verify-2":{getNext:()=>y[`verify-3`],getPrevious:()=>y[`verify-1`],value:r,setState:i,focus:()=>m.current.focus()},"verify-3":{getNext:()=>y[`verify-4`],getPrevious:()=>y[`verify-2`],value:a,setState:o,focus:()=>h.current.focus()},"verify-4":{getNext:()=>y[`verify-5`],getPrevious:()=>y[`verify-3`],value:s,setState:c,focus:()=>g.current.focus()},"verify-5":{getNext:()=>y[`verify-6`],getPrevious:()=>y[`verify-4`],value:l,setState:u,focus:()=>_.current.focus()},"verify-6":{getNext:()=>null,getPrevious:()=>y[`verify-5`],value:d,setState:f,focus:()=>v.current.focus()}};function b(e,t){if(!ip.test(e.key)&&e.keyCode!==op)return;let n=y[t];if(e.keyCode===op){n.setState(``),n.getPrevious()?.focus();return}if(e.currentTarget.selectionStart>0){let t=n.getNext();if(!t)return;t.setState(e.key),t.getNext()?t.getNext().focus():t.focus();return}n.setState(e.key),n.getNext()?.focus()}function x(e,t){e.preventDefault();let n=e.clipboardData.getData(`text`).trim();if(!ap.test(n))return;let r=n.split(``);if(r.length===6){let e=y[`verify-1`];for(let t of r)e.setState(t),e=e.getNext(),e?.focus();return}let i=y[t];i.value&&i.getNext()&&(i=i.getNext());do i.focus(),i.setState(r.shift()),i=i.getNext();while(r.length&&i)}let S={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${rp.input} ${e.hasError?`is-invalid`:``}`,autoCorrect:`off`,inputMode:`numeric`,pattern:`[0-9]*`,autoCapitalize:`off`,autoComplete:`off`,"aria-invalid":!!e.hasError};return(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-between mx-n1`,"aria-describedby":`verificationCodeError`,children:[(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-1`),onKeyDown:e=>b(e,`verify-1`),value:t,ref:p,onChange:()=>{},autoComplete:`off`,...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-2`),onKeyDown:e=>b(e,`verify-2`),value:r,ref:m,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-3`),onKeyDown:e=>b(e,`verify-3`),value:a,ref:h,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-4`),onKeyDown:e=>b(e,`verify-4`),value:s,ref:g,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-5`),onKeyDown:e=>b(e,`verify-5`),value:l,ref:_,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-6`),onKeyDown:e=>b(e,`verify-6`),value:d,ref:v,onChange:()=>{},...S})]})}function cp(e){let{theme:t,title:n,description:r,onBack:i,onResend:a,onSkip:o,submit:s,canSkip:c}=e,[l,u]=Z.useState(``),[d,f]=Z.useState(!1),[p,m]=Z.useState(``),[h,g]=Z.useState(!1);Z.useEffect(()=>{h&&v()},[h]);function _(e,t){u(``),m(e),g(t)}function v(e){if(e?.preventDefault(),!h){u(`Incomplete code`);return}f(!0),s(p).catch(e=>{f(!1),u(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:v,children:[(0,Q.jsx)(rd,{onClickBack:i,theme:t,title:n,children:r}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(sp,{onChange:_,hasError:!!l}),!!l&&(0,Q.jsx)(Cf,{name:`verificationCode`,children:l})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:d,disabled:!h,children:`Continue`}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between mt-3`,children:[o&&c&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:o,children:`Skip for now`}),a&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:a,children:`Resend code`})]})]})}function lp(e){let{navigate:t,email:n,theme:r}=e;Zf(`check-email`,e);function i(){t({step:`verify-email`})}function a(){t({step:`verify-email-skip-reason`,backStep:`verify-email-check-code`})}function o(){t({step:`verify-email`,email:n})}function s(t){return xd.post(`/ajax/login/verify-email`,{code:t,email:n}).then(n=>zd(n,e,{code:t}))}return(0,Q.jsx)(cp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:n})]}),onBack:i,onResend:o,submit:s,onSkip:a,...e})}function up(){return(0,Q.jsx)(`img`,{className:`img-fluid mx-auto d-block mt-4`,alt:`Success`,src:`/images/success-tick-v2.png`,style:{maxWidth:`304px`}})}function dp(e){let{returnUrl:t}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:`Your email has been verified`,className:{title:`text-center`}}),(0,Q.jsx)(`div`,{className:`my-5`,children:(0,Q.jsx)(up,{})}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100`,children:`Continue`})]})}function fp(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);function l(e){i(e.target.value.trim())}function u(t){if(t.preventDefault(),!r){c(`Please provide an email address`);return}if(!tp.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),xd.post(`/ajax/login/send-recovery-code`,{email:r}).then(t=>zd(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}function d(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:u,children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:n&&d,title:`Forgot your password?`,children:`Enter your email below to receive password reset instructions`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(ud,{name:`email`,value:r,type:`email`,onChange:l,isError:!!s,"aria-invalid":!!s,"aria-errormessage":`emailError`}),!!s&&(0,Q.jsx)(Cf,{name:`email`,children:s})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:a,children:`Send`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to reset their password.`})]})}function pp(e){let{navigate:t,email:n,theme:r}=e;function i(){t({step:`forgot-password`})}function a(){t({step:`forgot-password`,email:n})}function o(t){return xd.post(`/ajax/login/check-recovery-code`,{code:t,email:n}).then(n=>zd(n,e,{code:t}))}return(0,Q.jsx)(cp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`If we can reset your password, we've sent a `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code to the email address provided`]}),submit:o,onBack:i,onResend:a,...e})}var mp=o(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=NaN,v=4294967295,y=v-1,b=v>>>1,x=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,D=`[object DOMException]`,O=`[object Error]`,k=`[object Function]`,A=`[object GeneratorFunction]`,j=`[object Map]`,M=`[object Number]`,N=`[object Null]`,P=`[object Object]`,F=`[object Promise]`,I=`[object Proxy]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object Undefined]`,H=`[object WeakMap]`,ee=`[object WeakSet]`,U=`[object ArrayBuffer]`,te=`[object DataView]`,ne=`[object Float32Array]`,re=`[object Float64Array]`,ie=`[object Int8Array]`,ae=`[object Int16Array]`,oe=`[object Int32Array]`,W=`[object Uint8Array]`,se=`[object Uint8ClampedArray]`,ce=`[object Uint16Array]`,le=`[object Uint32Array]`,ue=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,pe=/[&<>"']/g,me=RegExp(fe.source),he=RegExp(pe.source),ge=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,be=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(Se.source),we=/^\s+/,Te=/\s/,Ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ke=/[()=,{}\[\]\/\s]/,Ae=/\\(\\)?/g,q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,J=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Ne=/^\[object .+?Constructor\]$/,Pe=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ie=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Le=/($^)/,Re=/['\n\r\u2028\u2029\\]/g,ze=`\\ud800-\\udfff`,Be=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ve=`\\u2700-\\u27bf`,He=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ue=`\\xac\\xb1\\xd7\\xf7`,We=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ge=`\\u2000-\\u206f`,Ke=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,qe=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Je=`\\ufe0e\\ufe0f`,Ye=Ue+We+Ge+Ke,Xe=`['’]`,Ze=`[`+ze+`]`,Qe=`[`+Ye+`]`,$e=`[`+Be+`]`,et=`\\d+`,tt=`[`+Ve+`]`,nt=`[`+He+`]`,rt=`[^`+ze+Ye+et+Ve+He+qe+`]`,it=`\\ud83c[\\udffb-\\udfff]`,at=`(?:`+$e+`|`+it+`)`,ot=`[^`+ze+`]`,st=`(?:\\ud83c[\\udde6-\\uddff]){2}`,ct=`[\\ud800-\\udbff][\\udc00-\\udfff]`,lt=`[`+qe+`]`,ut=`\\u200d`,dt=`(?:`+nt+`|`+rt+`)`,ft=`(?:`+lt+`|`+rt+`)`,pt=`(?:`+Xe+`(?:d|ll|m|re|s|t|ve))?`,mt=`(?:`+Xe+`(?:D|LL|M|RE|S|T|VE))?`,ht=at+`?`,gt=`[`+Je+`]?`,_t=`(?:`+ut+`(?:`+[ot,st,ct].join(`|`)+`)`+gt+ht+`)*`,vt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,yt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,bt=gt+ht+_t,xt=`(?:`+[tt,st,ct].join(`|`)+`)`+bt,St=`(?:`+[ot+$e+`?`,$e,st,ct,Ze].join(`|`)+`)`,Ct=RegExp(Xe,`g`),wt=RegExp($e,`g`),Tt=RegExp(it+`(?=`+it+`)|`+St+bt,`g`),Et=RegExp([lt+`?`+nt+`+`+pt+`(?=`+[Qe,lt,`$`].join(`|`)+`)`,ft+`+`+mt+`(?=`+[Qe,lt+dt,`$`].join(`|`)+`)`,lt+`?`+dt+`+`+pt,lt+`+`+mt,yt,vt,et,xt].join(`|`),`g`),Dt=RegExp(`[`+ut+ze+Be+Je+`]`),Ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),At=-1,jt={};jt[ne]=jt[re]=jt[ie]=jt[ae]=jt[oe]=jt[W]=jt[se]=jt[ce]=jt[le]=!0,jt[S]=jt[C]=jt[U]=jt[T]=jt[te]=jt[E]=jt[O]=jt[k]=jt[j]=jt[M]=jt[P]=jt[L]=jt[R]=jt[z]=jt[H]=!1;var Mt={};Mt[S]=Mt[C]=Mt[U]=Mt[te]=Mt[T]=Mt[E]=Mt[ne]=Mt[re]=Mt[ie]=Mt[ae]=Mt[oe]=Mt[j]=Mt[M]=Mt[P]=Mt[L]=Mt[R]=Mt[z]=Mt[B]=Mt[W]=Mt[se]=Mt[ce]=Mt[le]=!0,Mt[O]=Mt[k]=Mt[H]=!1;var Nt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Pt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Ft={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},It={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Lt=parseFloat,Rt=parseInt,zt=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,Bt=typeof self==`object`&&self&&self.Object===Object&&self,Vt=zt||Bt||Function(`return this`)(),Ht=typeof e==`object`&&e&&!e.nodeType&&e,Ut=Ht&&typeof t==`object`&&t&&!t.nodeType&&t,Wt=Ut&&Ut.exports===Ht,Gt=Wt&&zt.process,Kt=function(){try{return Ut&&Ut.require&&Ut.require(`util`).types||Gt&&Gt.binding&&Gt.binding(`util`)}catch{}}(),qt=Kt&&Kt.isArrayBuffer,Jt=Kt&&Kt.isDate,Yt=Kt&&Kt.isMap,Xt=Kt&&Kt.isRegExp,Zt=Kt&&Kt.isSet,Qt=Kt&&Kt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function en(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function tn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function rn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function an(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function on(e,t){return!!(e!=null&&e.length)&&vn(e,t,0)>-1}function sn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function cn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ln(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function un(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function dn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var pn=Sn(`length`);function mn(e){return e.split(``)}function hn(e){return e.match(K)||[]}function gn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function _n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function vn(e,t,n){return t===t?Jn(e,t,n):_n(e,bn,n)}function yn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function bn(e){return e!==e}function xn(e,t){var n=e==null?0:e.length;return n?En(e,t)/n:_}function Sn(e){return function(t){return t==null?n:t[e]}}function Cn(e){return function(t){return e==null?n:e[t]}}function wn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Tn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function En(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function On(e,t){return cn(t,function(t){return[t,e[t]]})}function kn(e){return e&&e.slice(0,Qn(e)+1).replace(we,``)}function An(e){return function(t){return e(t)}}function jn(e,t){return cn(t,function(t){return e[t]})}function Mn(e,t){return e.has(t)}function Nn(e,t){for(var n=-1,r=e.length;++n<r&&vn(t,e[n],0)>-1;);return n}function Pn(e,t){for(var n=e.length;n--&&vn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var In=Cn(Nt),Ln=Cn(Pt);function Rn(e){return`\\`+It[e]}function zn(e,t){return e==null?n:e[t]}function Bn(e){return Dt.test(e)}function Vn(e){return Ot.test(e)}function Hn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Un(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Wn(e,t){return function(n){return e(t(n))}}function Gn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Jn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Yn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Xn(e){return Bn(e)?er(e):pn(e)}function Zn(e){return Bn(e)?tr(e):mn(e)}function Qn(e){for(var t=e.length;t--&&Te.test(e.charAt(t)););return t}var $n=Cn(Ft);function er(e){for(var t=Tt.lastIndex=0;Tt.test(e);)++t;return t}function tr(e){return e.match(Tt)||[]}function nr(e){return e.match(Et)||[]}var rr=(function e(t){t=t==null?Vt:rr.defaults(Vt.Object(),t,rr.pick(Vt,kt));var Te=t.Array,K=t.Date,ze=t.Error,Be=t.Function,Ve=t.Math,He=t.Object,Ue=t.RegExp,We=t.String,Ge=t.TypeError,Ke=Te.prototype,qe=Be.prototype,Je=He.prototype,Ye=t[`__core-js_shared__`],Xe=qe.toString,Ze=Je.hasOwnProperty,Qe=0,$e=function(){var e=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),et=Je.toString,tt=Xe.call(He),nt=Vt._,rt=Ue(`^`+Xe.call(Ze).replace(Se,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),it=Wt?t.Buffer:n,at=t.Symbol,ot=t.Uint8Array,st=it?it.allocUnsafe:n,ct=Wn(He.getPrototypeOf,He),lt=He.create,ut=Je.propertyIsEnumerable,dt=Ke.splice,ft=at?at.isConcatSpreadable:n,pt=at?at.iterator:n,mt=at?at.toStringTag:n,ht=function(){try{var e=Mo(He,`defineProperty`);return e({},``,{}),e}catch{}}(),gt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,_t=K&&K.now!==Vt.Date.now&&K.now,vt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,yt=Ve.ceil,bt=Ve.floor,xt=He.getOwnPropertySymbols,St=it?it.isBuffer:n,Tt=t.isFinite,Et=Ke.join,Dt=Wn(He.keys,He),Ot=Ve.max,Nt=Ve.min,Pt=K.now,Ft=t.parseInt,It=Ve.random,zt=Ke.reverse,Bt=Mo(t,`DataView`),Ht=Mo(t,`Map`),Ut=Mo(t,`Promise`),Gt=Mo(t,`Set`),Kt=Mo(t,`WeakMap`),pn=Mo(He,`create`),mn=Kt&&new Kt,Cn={},Jn=_s(Bt),er=_s(Ht),tr=_s(Ut),ir=_s(Gt),ar=_s(Kt),or=at?at.prototype:n,sr=or?or.valueOf:n,cr=or?or.toString:n;function Y(e){if(lu(e)&&!Kl(e)&&!(e instanceof fr)){if(e instanceof dr)return e;if(Ze.call(e,`__wrapped__`))return ys(e)}return new dr(e)}var lr=function(){function e(){}return function(t){if(!cu(t))return{};if(lt)return lt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function ur(){}function dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Y.templateSettings={escape:ge,evaluate:_e,interpolate:ve,variable:``,imports:{_:Y}},Y.prototype=ur.prototype,Y.prototype.constructor=Y,dr.prototype=lr(ur.prototype),dr.prototype.constructor=dr;function fr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function pr(){var e=new fr(this.__wrapped__);return e.__actions__=Ha(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ha(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ha(this.__views__),e}function mr(){if(this.__filtered__){var e=new fr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hr(){var e=this.__wrapped__.value(),t=this.__dir__,n=Kl(e),r=t<0,i=n?e.length:0,a=Lo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Nt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Ca(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}fr.prototype=lr(ur.prototype),fr.prototype.constructor=fr;function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(){this.__data__=pn?pn(null):{},this.size=0}function vr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function yr(e){var t=this.__data__;if(pn){var r=t[e];return r===i?n:r}return Ze.call(t,e)?t[e]:n}function br(e){var t=this.__data__;return pn?t[e]!==n:Ze.call(t,e)}function xr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=pn&&t===n?i:t,this}gr.prototype.clear=_r,gr.prototype.delete=vr,gr.prototype.get=yr,gr.prototype.has=br,gr.prototype.set=xr;function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(){this.__data__=[],this.size=0}function wr(e){var t=this.__data__,n=Yr(t,e);return n<0?!1:(n==t.length-1?t.pop():dt.call(t,n,1),--this.size,!0)}function Tr(e){var t=this.__data__,r=Yr(t,e);return r<0?n:t[r][1]}function Er(e){return Yr(this.__data__,e)>-1}function Dr(e,t){var n=this.__data__,r=Yr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Sr.prototype.clear=Cr,Sr.prototype.delete=wr,Sr.prototype.get=Tr,Sr.prototype.has=Er,Sr.prototype.set=Dr;function Or(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){this.size=0,this.__data__={hash:new gr,map:new(Ht||Sr),string:new gr}}function Ar(e){var t=Ao(this,e).delete(e);return this.size-=+!!t,t}function jr(e){return Ao(this,e).get(e)}function Mr(e){return Ao(this,e).has(e)}function Nr(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Or.prototype.clear=kr,Or.prototype.delete=Ar,Or.prototype.get=jr,Or.prototype.has=Mr,Or.prototype.set=Nr;function Pr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Or;++t<n;)this.add(e[t])}function Fr(e){return this.__data__.set(e,i),this}function Ir(e){return this.__data__.has(e)}Pr.prototype.add=Pr.prototype.push=Fr,Pr.prototype.has=Ir;function Lr(e){var t=this.__data__=new Sr(e);this.size=t.size}function Rr(){this.__data__=new Sr,this.size=0}function zr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Br(e){return this.__data__.get(e)}function Vr(e){return this.__data__.has(e)}function Hr(e,t){var n=this.__data__;if(n instanceof Sr){var r=n.__data__;if(!Ht||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Or(r)}return n.set(e,t),this.size=n.size,this}Lr.prototype.clear=Rr,Lr.prototype.delete=zr,Lr.prototype.get=Br,Lr.prototype.has=Vr,Lr.prototype.set=Hr;function Ur(e,t){var n=Kl(e),r=!n&&Gl(e),i=!n&&!r&&Zl(e),a=!n&&!r&&!i&&wu(e),o=n||r||i||a,s=o?Dn(e.length,We):[],c=s.length;for(var l in e)(t||Ze.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Go(l,c)))&&s.push(l);return s}function Wr(e){var t=e.length;return t?e[na(0,t-1)]:n}function Gr(e,t){return ms(Ha(e),ti(t,0,e.length))}function Kr(e){return ms(Ha(e))}function qr(e,t,r){(r!==n&&!Hl(e[t],r)||r===n&&!(t in e))&&$r(e,t,r)}function Jr(e,t,r){var i=e[t];(!(Ze.call(e,t)&&Hl(i,r))||r===n&&!(t in e))&&$r(e,t,r)}function Yr(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}function Xr(e,t,n,r){return si(e,function(e,i,a){t(r,e,n(e),a)}),r}function Zr(e,t){return e&&Ua(t,id(t),e)}function Qr(e,t){return e&&Ua(t,ad(t),e)}function $r(e,t,n){t==`__proto__`&&ht?ht(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ei(e,t){for(var r=-1,i=t.length,a=Te(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ti(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ni(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!cu(e))return e;var d=Kl(e);if(d){if(s=Bo(e),!c)return Ha(e,s)}else{var f=Io(e),p=f==k||f==A;if(Zl(e))return Ma(e,c);if(f==P||f==S||p&&!a){if(s=l||p?{}:Vo(e),!c)return l?Ga(e,Qr(s,e)):Wa(e,Zr(s,e))}else{if(!Mt[f])return a?e:{};s=Ho(e,f,c)}}o||=new Lr;var m=o.get(e);if(m)return m;o.set(e,s),xu(e)?e.forEach(function(n){s.add(ni(n,t,r,n,e,o))}):uu(e)&&e.forEach(function(n,i){s.set(i,ni(n,t,r,i,e,o))});var h=d?n:(u?l?To:wo:l?ad:id)(e);return tn(h||e,function(n,i){h&&(i=n,n=e[i]),Jr(s,i,ni(n,t,r,i,e,o))}),s}function ri(e){var t=id(e);return function(n){return ii(n,e,t)}}function ii(e,t,r){var i=r.length;if(e==null)return!i;for(e=He(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ai(e,t,i){if(typeof e!=`function`)throw new Ge(r);return us(function(){e.apply(n,i)},t)}function oi(e,t,n,r){var i=-1,a=on,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=cn(t,An(n))),r?(a=sn,o=!1):t.length>=200&&(a=Mn,o=!1,t=new Pr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var si=Ja(gi),ci=Ja(_i,!0);function li(e,t){var n=!0;return si(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function ui(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Cu(s):r(s,c)))var c=s,l=o}return l}function di(e,t,r,i){var a=e.length;for(r=Mu(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Mu(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function fi(e,t){var n=[];return si(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function pi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Wo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?pi(s,t-1,n,r,i):ln(i,s):r||(i[i.length]=s)}return i}var mi=Ya(),hi=Ya(!0);function gi(e,t){return e&&mi(e,t,id)}function _i(e,t){return e&&hi(e,t,id)}function vi(e,t){return an(t,function(t){return au(e[t])})}function yi(e,t){t=Oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gs(t[r++])];return r&&r==i?e:n}function bi(e,t,n){var r=t(e);return Kl(e)?r:ln(r,n(e))}function xi(e){return e==null?e===n?V:N:mt&&mt in He(e)?No(e):is(e)}function Si(e,t){return e>t}function Ci(e,t){return e!=null&&Ze.call(e,t)}function wi(e,t){return e!=null&&t in He(e)}function Ti(e,t,n){return e>=Nt(t,n)&&e<Ot(t,n)}function Ei(e,t,r){for(var i=r?sn:on,a=e[0].length,o=e.length,s=o,c=Te(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=cn(d,An(t))),l=Nt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Pr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Mn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Mn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Di(e,t,n,r){return gi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Oi(e,t,r){t=Oa(t,e),e=os(e,t);var i=e==null?e:e[gs(Ws(t))];return i==null?n:$t(i,e,r)}function ki(e){return lu(e)&&xi(e)==S}function Ai(e){return lu(e)&&xi(e)==U}function ji(e){return lu(e)&&xi(e)==E}function Mi(e,t,n,r,i){return e===t?!0:e==null||t==null||!lu(e)&&!lu(t)?e!==e&&t!==t:Ni(e,t,n,r,Mi,i)}function Ni(e,t,n,r,i,a){var o=Kl(e),s=Kl(t),c=o?C:Io(e),l=s?C:Io(t);c=c==S?P:c,l=l==S?P:l;var u=c==P,d=l==P,f=c==l;if(f&&Zl(e)){if(!Zl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Lr,o||wu(e)?bo(e,t,n,r,i,a):xo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&Ze.call(e,`__wrapped__`),m=d&&Ze.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Lr,i(h,g,n,r,a)}}return f?(a||=new Lr,So(e,t,n,r,i,a)):!1}function Pi(e){return lu(e)&&Io(e)==j}function Fi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=He(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Lr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Mi(d,u,3,i,f):p))return!1}}return!0}function Ii(e){return!cu(e)||Xo(e)?!1:(au(e)?rt:Ne).test(_s(e))}function Li(e){return lu(e)&&xi(e)==L}function Ri(e){return lu(e)&&Io(e)==R}function zi(e){return lu(e)&&su(e.length)&&!!jt[xi(e)]}function Bi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Kl(e)?Ki(e[0],e[1]):Gi(e):Ef(e)}function Vi(e){if(!Qo(e))return Dt(e);var t=[];for(var n in He(e))Ze.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Hi(e){if(!cu(e))return rs(e);var t=Qo(e),n=[];for(var r in e)r==`constructor`&&(t||!Ze.call(e,r))||n.push(r);return n}function Ui(e,t){return e<t}function Wi(e,t){var n=-1,r=Jl(e)?Te(e.length):[];return si(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Gi(e){var t=jo(e);return t.length==1&&t[0][2]?es(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function Ki(e,t){return qo(e)&&$o(t)?es(gs(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):Mi(t,i,3)}}function qi(e,t,r,i,a){e!==t&&mi(t,function(o,s){if(a||=new Lr,cu(o))Ji(e,t,s,r,qi,i,a);else{var c=i?i(cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),qr(e,s,c)}},ad)}function Ji(e,t,r,i,a,o,s){var c=cs(e,r),l=cs(t,r),u=s.get(l);if(u){qr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Kl(l),m=!p&&Zl(l),h=!p&&!m&&wu(l);d=l,p||m||h?Kl(c)?d=c:Yl(c)?d=Ha(c):m?(f=!1,d=Ma(l,!0)):h?(f=!1,d=La(l,!0)):d=[]:vu(l)||Gl(l)?(d=c,Gl(c)?d=Fu(c):(!cu(c)||au(c))&&(d=Vo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),qr(e,r,d)}function Yi(e,t){var r=e.length;if(r)return t+=t<0?r:0,Go(t,r)?e[t]:n}function Xi(e,t,n){t=t.length?cn(t,function(e){return Kl(e)?function(t){return yi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=cn(t,An(ko())),Tn(Wi(e,function(e,n,i){return{criteria:cn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return za(e,t,n)})}function Zi(e,t){return Qi(e,t,function(t,n){return ed(e,n)})}function Qi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=yi(e,o);n(s,o)&&ca(a,Oa(o,e),s)}return a}function $i(e){return function(t){return yi(t,e)}}function ea(e,t,n,r){var i=r?yn:vn,a=-1,o=t.length,s=e;for(e===t&&(t=Ha(t)),n&&(s=cn(e,An(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&dt.call(s,c,1),dt.call(e,c,1);return e}function ta(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Go(i)?dt.call(e,i,1):ba(e,i)}}return e}function na(e,t){return e+bt(It()*(t-e+1))}function ra(e,t,n,r){for(var i=-1,a=Ot(yt((t-e)/(n||1)),0),o=Te(a);a--;)o[r?a:++i]=e,e+=n;return o}function ia(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=bt(t/2),t&&(e+=e);while(t);return n}function aa(e,t){return ds(as(e,t,pf),e+``)}function oa(e){return Wr(Cd(e))}function sa(e,t){var n=Cd(e);return ms(n,ti(t,0,n.length))}function ca(e,t,r,i){if(!cu(e))return e;t=Oa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=gs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=cu(d)?d:Go(t[a+1])?[]:{})}Jr(c,l,u),c=c[l]}return e}var la=mn?function(e,t){return mn.set(e,t),e}:pf,ua=ht?function(e,t){return ht(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function da(e){return ms(Cd(e))}function fa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Te(i);++r<i;)a[r]=e[r+t];return a}function pa(e,t){var n;return si(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ma(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=b){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Cu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ha(e,t,pf,n)}function ha(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Cu(t),u=t===n;a<o;){var d=bt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Cu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Nt(o,y)}function ga(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Hl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function _a(e){return typeof e==`number`?e:Cu(e)?_:+e}function va(e){if(typeof e==`string`)return e;if(Kl(e))return cn(e,va)+``;if(Cu(e))return cr?cr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ya(e,t,n){var r=-1,i=on,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=sn;else if(a>=200){var l=t?null:mo(e);if(l)return Kn(l);o=!1,i=Mn,c=new Pr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function ba(e,t){t=Oa(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=gs(t[n]);if(i===`__proto__`&&!Ze.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=os(e,t);return a==null||delete a[gs(Ws(t))]}function xa(e,t,n,r){return ca(e,t,n(yi(e,t)),r)}function Sa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?fa(e,r?0:a,r?a+1:i):fa(e,r?a+1:0,r?i:a)}function Ca(e,t){var n=e;return n instanceof fr&&(n=n.value()),un(t,function(e,t){return t.func.apply(t.thisArg,ln([e],t.args))},n)}function wa(e,t,n){var r=e.length;if(r<2)return r?ya(e[0]):[];for(var i=-1,a=Te(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=oi(a[i]||o,e[s],t,n));return ya(pi(a,1),t,n)}function Ta(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ea(e){return Yl(e)?e:[]}function Da(e){return typeof e==`function`?e:pf}function Oa(e,t){return Kl(e)?e:qo(e,t)?[e]:hs(Lu(e))}var ka=aa;function Aa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:fa(e,t,r)}var ja=gt||function(e){return Vt.clearTimeout(e)};function Ma(e,t){if(t)return e.slice();var n=e.length,r=st?st(n):new e.constructor(n);return e.copy(r),r}function Na(e){var t=new e.constructor(e.byteLength);return new ot(t).set(new ot(e)),t}function Pa(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fa(e){var t=new e.constructor(e.source,J.exec(e));return t.lastIndex=e.lastIndex,t}function Ia(e){return sr?He(sr.call(e)):{}}function La(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ra(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Cu(e),s=t!==n,c=t===null,l=t===t,u=Cu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function za(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ra(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ba(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Ot(a-o,0),u=Te(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Va(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Ot(a-s,0),d=Te(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ha(e,t){var n=-1,r=e.length;for(t||=Te(r);++n<r;)t[n]=e[n];return t}function Ua(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?$r(r,c,l):Jr(r,c,l)}return r}function Wa(e,t){return Ua(e,Po(e),t)}function Ga(e,t){return Ua(e,Fo(e),t)}function Ka(e,t){return function(n,r){var i=Kl(n)?en:Xr,a=t?t():{};return i(n,e,ko(r,2),a)}}function qa(e){return aa(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Ko(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=He(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ja(e,t){return function(n,r){if(n==null)return n;if(!Jl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=He(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Ya(e){return function(t,n,r){for(var i=-1,a=He(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Xa(e,t,n){var r=t&o,i=$a(e);function a(){return(this&&this!==Vt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Za(e){return function(t){t=Lu(t);var r=Bn(t)?Zn(t):n,i=r?r[0]:t.charAt(0),a=r?Aa(r,1).join(``):t.slice(1);return i[e]()+a}}function Qa(e){return function(t){return un(rf(Ad(t).replace(Ct,``)),e,``)}}function $a(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=lr(e.prototype),r=e.apply(n,t);return cu(r)?r:n}}function eo(e,t,r){var i=$a(e);function a(){for(var o=arguments.length,s=Te(o),c=o,l=Oo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Gn(s,l);return o-=u.length,o<r?fo(e,t,ro,a.placeholder,n,s,u,n,n,r-o):$t(this&&this!==Vt&&this instanceof a?i:e,this,s)}return a}function to(e){return function(t,r,i){var a=He(t);if(!Jl(t)){var o=ko(r,3);t=id(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function no(e){return Co(function(t){var i=t.length,a=i,o=dr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new Ge(r);if(o&&!l&&Do(s)==`wrapper`)var l=new dr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Do(s),m=d==`wrapper`?Eo(s):n;l=m&&Yo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Do(m[0])].apply(l,m[3]):s.length==1&&Yo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Kl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function ro(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:$a(e);function C(){for(var n=arguments.length,o=Te(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Oo(C),l=Fn(o,c);if(i&&(o=Ba(o,i,a,b)),u&&(o=Va(o,u,d,b)),n-=l,b&&n<g){var f=Gn(o,c);return fo(e,t,ro,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=ss(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Vt&&this instanceof C&&(w=S||$a(w)),w.apply(m,o)}return C}function io(e,t){return function(n,r){return Di(n,e,t(r),{})}}function ao(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=va(r),i=va(i)):(r=_a(r),i=_a(i)),a=e(r,i)}return a}}function oo(e){return Co(function(t){return t=cn(t,An(ko())),aa(function(n){var r=this;return e(t,function(e){return $t(e,r,n)})})})}function so(e,t){t=t===n?` `:va(t);var r=t.length;if(r<2)return r?ia(t,e):t;var i=ia(t,yt(e/Xn(t)));return Bn(t)?Aa(Zn(i),0,e).join(``):i.slice(0,e)}function co(e,t,n,r){var i=t&o,a=$a(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=Te(l+o),d=this&&this!==Vt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return $t(d,i?n:this,u)}return s}function lo(e){return function(t,r,i){return i&&typeof i!=`number`&&Ko(t,r,i)&&(r=i=n),t=ju(t),r===n?(r=t,t=0):r=ju(r),i=i===n?t<r?1:-1:ju(i),ra(t,r,i,e)}}function uo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Pu(t),n=Pu(n)),e(t,n)}}function fo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Yo(e)&&ls(S,x),S.placeholder=i,fs(S,e,t)}function po(e){var t=Ve[e];return function(e,n){if(e=Pu(e),n=n==null?0:Nt(Mu(n),292),n&&Tt(e)){var r=(Lu(e)+`e`).split(`e`);return r=(Lu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var mo=Gt&&1/Kn(new Gt([,-0]))[1]==h?function(e){return new Gt(e)}:xf;function ho(e){return function(t){var n=Io(t);return n==j?Un(t):n==R?qn(t):On(t,e(t))}}function go(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new Ge(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Ot(Mu(m),0),h=h===n?h:Mu(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Eo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ns(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Ot(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Xa(e,t,i);else S=t==c||t==l?eo(e,t,h):(t==u||t==(o|u))&&!f.length?co(e,t,i,a):ro.apply(n,x);return fs((b?la:ls)(S,x),e,t)}function _o(e,t,r,i){return e===n||Hl(e,Je[r])&&!Ze.call(i,r)?t:e}function vo(e,t,r,i,a,o){return cu(e)&&cu(t)&&(o.set(t,e),qi(e,t,n,vo,o),o.delete(t)),e}function yo(e){return vu(e)?n:e}function bo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Pr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!fn(t,function(e,t){if(!Mn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function xo(e,t,n,r,i,a,o){switch(n){case te:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U:return!(e.byteLength!=t.byteLength||!a(new ot(e),new ot(t)));case T:case E:case M:return Hl(+e,+t);case O:return e.name==t.name&&e.message==t.message;case L:case z:return e==t+``;case j:var s=Un;case R:var c=r&1;if(s||=Kn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=bo(s(e),s(t),r,i,a,o);return o.delete(e),u;case B:if(sr)return sr.call(e)==sr.call(t)}return!1}function So(e,t,r,i,a,o){var s=r&1,c=wo(e),l=c.length;if(l!=wo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Ze.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Co(e){return ds(as(e,n,Ns),e+``)}function wo(e){return bi(e,id,Po)}function To(e){return bi(e,ad,Fo)}var Eo=mn?function(e){return mn.get(e)}:xf;function Do(e){for(var t=e.name+``,n=Cn[t],r=Ze.call(Cn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Oo(e){return(Ze.call(Y,`placeholder`)?Y:e).placeholder}function ko(){var e=Y.iteratee||mf;return e=e===mf?Bi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n=e.__data__;return Jo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function jo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,$o(i)]}return t}function Mo(e,t){var r=zn(e,t);return Ii(r)?r:n}function No(e){var t=Ze.call(e,mt),r=e[mt];try{e[mt]=n;var i=!0}catch{}var a=et.call(e);return i&&(t?e[mt]=r:delete e[mt]),a}var Po=xt?function(e){return e==null?[]:(e=He(e),an(xt(e),function(t){return ut.call(e,t)}))}:Af,Fo=xt?function(e){for(var t=[];e;)ln(t,Po(e)),e=ct(e);return t}:Af,Io=xi;(Bt&&Io(new Bt(new ArrayBuffer(1)))!=te||Ht&&Io(new Ht)!=j||Ut&&Io(Ut.resolve())!=F||Gt&&Io(new Gt)!=R||Kt&&Io(new Kt)!=H)&&(Io=function(e){var t=xi(e),r=t==P?e.constructor:n,i=r?_s(r):``;if(i)switch(i){case Jn:return te;case er:return j;case tr:return F;case ir:return R;case ar:return H}return t});function Lo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Nt(t,e+o);break;case`takeRight`:e=Ot(e,t-o);break}}return{start:e,end:t}}function Ro(e){var t=e.match(De);return t?t[1].split(Oe):[]}function zo(e,t,n){t=Oa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&su(i)&&Go(o,i)&&(Kl(e)||Gl(e)))}function Bo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Ze.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Vo(e){return typeof e.constructor==`function`&&!Qo(e)?lr(ct(e)):{}}function Ho(e,t,n){var r=e.constructor;switch(t){case U:return Na(e);case T:case E:return new r(+e);case te:return Pa(e,n);case ne:case re:case ie:case ae:case oe:case W:case se:case ce:case le:return La(e,n);case j:return new r;case M:case z:return new r(e);case L:return Fa(e);case R:return new r;case B:return Ia(e)}}function Uo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Ee,`{
|
|
13
|
+
`+e.stack}return{value:e,source:t,stack:i}}function bs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var xs=typeof WeakMap==`function`?WeakMap:Map;function Ss(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,tl=r),bs(e,t)},n}function Cs(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){bs(e,t),typeof r!=`function`&&(nl===null?nl=new Set([this]):nl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ws(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function Ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Es(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,va(n,t))),n.lanes|=1),e)}var Ds=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fo(co.current);var o=null;switch(n){case`input`:i=W(e,i),r=W(e,r),o=[];break;case`select`:i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case`textarea`:i=pe(e,i),r=pe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=di)}De(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&Zr(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ks=function(e,t,n,r){n!==r&&(t.flags|=4)};function As(e,t){if(!Ga)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function js(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ms(e,t,n){var i=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return js(t),null;case 1:return Wi(t.type)&&Gi(),js(t),null;case 3:return i=t.stateNode,mo(),Li(Vi),Li(Bi),bo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(vl(Ka),Ka=null))),js(t),null;case 5:go(t);var o=fo(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)Os(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return js(t),null}if(e=fo(co.current),Qa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[wi]=t,i[Ti]=s,e=(t.mode&1)!=0,n){case`dialog`:Zr(`cancel`,i),Zr(`close`,i);break;case`iframe`:case`object`:case`embed`:Zr(`load`,i);break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],i);break;case`source`:Zr(`error`,i);break;case`img`:case`image`:case`link`:Zr(`error`,i),Zr(`load`,i);break;case`details`:Zr(`toggle`,i);break;case`input`:se(i,s),Zr(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},Zr(`invalid`,i);break;case`textarea`:me(i,s),Zr(`invalid`,i)}for(var c in De(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&Zr(`scroll`,i)}switch(n){case`input`:ie(i),ue(i,s,!0);break;case`textarea`:ie(i),ge(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=_e(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[wi]=t,e[Ti]=i,Ds(e,t,!1,!1),t.stateNode=e;a:{switch(c=Oe(n,i),n){case`dialog`:Zr(`cancel`,e),Zr(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:Zr(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],e);o=i;break;case`source`:Zr(`error`,e),o=i;break;case`img`:case`image`:case`link`:Zr(`error`,e),Zr(`load`,e),o=i;break;case`details`:Zr(`toggle`,e),o=i;break;case`input`:se(e,i),o=W(e,i),Zr(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=L({},i,{value:void 0}),Zr(`invalid`,e);break;case`textarea`:me(e,i),o=pe(e,i),Zr(`invalid`,e);break;default:o=i}for(s in De(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Te(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&be(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&xe(e,u):typeof u==`number`&&xe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&Zr(`scroll`,e):u!=null&&b(e,s,u,c))}switch(n){case`input`:ie(e),ue(e,i,!1);break;case`textarea`:ie(e),ge(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+te(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&fe(e,!!i.multiple,i.defaultValue,!0):fe(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return js(t),null;case 6:if(e&&t.stateNode!=null)ks(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=fo(uo.current),fo(co.current),Qa(t)){if(i=t.stateNode,n=t.memoizedProps,i[wi]=t,(s=i.nodeValue!==n)&&(e=Ua,e!==null))switch(e.tag){case 3:ui(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[wi]=t,t.stateNode=i}return js(t),null;case 13:if(Li(_o),i=t.memoizedState,Ga&&Wa!==null&&t.mode&1&&!(t.flags&128)){for(i=Wa;i;)i=xi(i.nextSibling);return $a(),t.flags|=98560,t}if(i!==null&&i.dehydrated!==null){if(i=Qa(t),e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(r(317));i[wi]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return js(t),null}return Ka!==null&&(vl(Ka),Ka=null),t.flags&128?(t.lanes=n,t):(i=i!==null,n=!1,e===null?Qa(t):n=e.memoizedState!==null,i!==n&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||_o.current&1?Wc===0&&(Wc=3):Ol())),t.updateQueue!==null&&(t.flags|=4),js(t),null);case 4:return mo(),e===null&&ei(t.stateNode.containerInfo),js(t),null;case 10:return la(t.type._context),js(t),null;case 17:return Wi(t.type)&&Gi(),js(t),null;case 19:if(Li(_o),s=t.memoizedState,s===null)return js(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)As(s,!1);else{if(Wc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,As(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ri(_o,_o.current&1|2),t.child}e=e.sibling}s.tail!==null&&at()>Qc&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304)}else{if(!i)if(e=vo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),As(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ga)return js(t),null}else 2*at()-s.renderingStartTime>Qc&&n!==1073741824&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(js(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=at(),t.sibling=null,n=_o.current,Ri(_o,i?n&1|2:n&1),t);case 22:case 23:return wl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Hc&1073741824&&(js(t),t.subtreeFlags&6&&(t.flags|=8192)):js(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}var Ns=x.ReactCurrentOwner,Ps=!1;function Fs(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var a=t.ref;return da(t,i),r=No(e,t,n,r,a,i),n=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&n&&Va(t),t.flags|=1,Fs(e,t,r,i),t.child)}function Ls(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Rs(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if(Ps=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ps=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Vs(e,t,n,r,i)}function zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Uc,Hc),Hc|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ri(Uc,Hc),Hc|=r;else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ri(Uc,Hc),Hc|=e,null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ri(Uc,Hc),Hc|=r;return Fs(e,t,i,n),t.child}function Bs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vs(e,t,n,r,i){var a=Wi(n)?Hi:Bi.current;return a=Ui(t,a),da(t,i),n=No(e,t,n,r,a,i),r=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&r&&Va(t),t.flags|=1,Fs(e,t,n,i),t.child)}function Hs(e,t,n,r,i){if(Wi(n)){var a=!0;Ji(t)}else a=!1;if(da(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Da(t,n,r),ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=fa(l):(l=Wi(n)?Hi:Bi.current,l=Ui(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Oa(t,o,r,l),ma=!1;var f=t.memoizedState;o.state=f,xa(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Vi.current||ma?(typeof u==`function`&&(wa(t,n,u,r),c=t.memoizedState),(s=ma||Ea(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ga(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ra(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=fa(c):(c=Wi(n)?Hi:Bi.current,c=Ui(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Oa(t,o,r,c),ma=!1,f=t.memoizedState,o.state=f,xa(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Vi.current||ma?(typeof p==`function`&&(wa(t,n,p,r),m=t.memoizedState),(l=ma||Ea(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,a,i)}function Us(e,t,n,r,i,a){Bs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Yi(t,n,!1),rc(e,t,a);r=t.stateNode,Ns.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ao(t,e.child,null,a),t.child=ao(t,null,s,a)):Fs(e,t,s,a),t.memoizedState=r.state,i&&Yi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Ki(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ki(e,t.context,!1),po(e,t.containerInfo)}function Gs(e,t,n,r,i){return $a(),eo(i),t.flags|=256,Fs(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Js(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ys(e,t,n){var i=t.pendingProps,a=_o.current,o=!1,s=(t.flags&128)!=0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!=0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ri(_o,a&1),e===null)return Xa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:`hidden`,children:a},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ql(a,i,0,null),e=Zl(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qs(n),t.memoizedState=Ks,e):Xs(t,a));if(a=e.memoizedState,a!==null){if(c=a.dehydrated,c!==null){if(s)return t.flags&256?(t.flags&=-257,$s(e,t,n,Error(r(422)))):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&ao(t,e.child,null,n),t.child.memoizedState=qs(n),t.memoizedState=Ks,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))t=$s(e,t,n,null);else if(c.data===`$!`)t=$s(e,t,n,Error(r(419)));else if(i=(n&e.childLanes)!==0,Ps||i){if(i=zc,i!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}i=(o&(i.suspendedLanes|n))===0?o:0,i!==0&&i!==a.retryLane&&(a.retryLane=i,fl(e,i,-1))}Ol(),t=$s(e,t,n,Error(r(421)))}else c.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),c._reactRetry=t,t=null):(n=a.treeContext,Wa=xi(c.nextSibling),Ua=t,Ga=!0,Ka=null,n!==null&&(Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,La=n.id,Ra=n.overflow,Ia=t),t=Xs(t,t.pendingProps.children),t.flags|=4096);return t}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}function Xs(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){var i=e.child;return e=i.sibling,n=Yl(i,{mode:`visible`,children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Qs(e,t,n,r,i){var a=t.mode;e=e.child;var o=e.sibling,s={mode:`hidden`,children:n};return!(a&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Yl(e,s),n.subtreeFlags=e.subtreeFlags&14680064),o===null?(r=Zl(r,a,i,null),r.flags|=2):r=Yl(o,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $s(e,t,n,r){return r!==null&&eo(r),ao(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ua(e.return,t,n)}function tc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fs(e,t,r.children,n),r=_o.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ec(e,n,t);else if(e.tag===19)ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ri(_o,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tc(t,!0,n,null,a);break;case`together`:tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Ws(t),$a();break;case 5:ho(t);break;case 1:Wi(t.type)&&Ji(t);break;case 4:po(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ri(ia,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ri(_o,_o.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(Ri(_o,_o.current&1),t.flags|=128,null);Ri(_o,_o.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ri(_o,_o.current),r)break;return null;case 22:case 23:return t.lanes=0,zs(e,t,n)}return rc(e,t,n)}function ac(e,t){switch(Ha(t),t.tag){case 1:return Wi(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),Li(Vi),Li(Bi),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(Li(_o),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Li(_o),null;case 4:return mo(),null;case 10:return la(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var oc=!1,sc=!1,cc=typeof WeakSet==`function`?WeakSet:Set,X=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Rl(e,t,n)}else n.current=null}function uc(e,t,n){try{n()}catch(n){Rl(e,t,n)}}var dc=!1;function fc(e,t){if(fi=rn,e=wr(),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(pi={focusedElem:e,selectionRange:n},rn=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ra(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent=``;else if(y.nodeType===9){var b=y.body;b!=null&&(b.textContent=``)}break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Rl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return h=dc,dc=!1,h}function pc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&uc(t,n,a)}i=i.next}while(i!==r)}}function mc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wi],delete t[Ti],delete t[Di],delete t[Oi],delete t[ki])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||_c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=di));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}var xc=null,Sc=!1;function Cc(e,t,n){for(n=n.child;n!==null;)wc(e,t,n),n=n.sibling}function wc(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount==`function`)try{pt.onCommitFiberUnmount(ft,n)}catch{}switch(n.tag){case 5:sc||lc(n,t);case 6:var r=xc,i=Sc;xc=null,Cc(e,t,n),xc=r,Sc=i,xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xc.removeChild(n.stateNode));break;case 18:xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?bi(e.parentNode,n):e.nodeType===1&&bi(e,n),tn(e)):bi(xc,n.stateNode));break;case 4:r=xc,i=Sc,xc=n.stateNode.containerInfo,Sc=!0,Cc(e,t,n),xc=r,Sc=i;break;case 0:case 11:case 14:case 15:if(!sc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&uc(n,t,o),i=i.next}while(i!==r)}Cc(e,t,n);break;case 1:if(!sc&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rl(n,t,e)}Cc(e,t,n);break;case 21:Cc(e,t,n);break;case 22:n.mode&1?(sc=(r=sc)||n.memoizedState!==null,Cc(e,t,n),sc=r):Cc(e,t,n);break;default:Cc(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ec(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:xc=c.stateNode,Sc=!1;break a;case 3:xc=c.stateNode.containerInfo,Sc=!0;break a;case 4:xc=c.stateNode.containerInfo,Sc=!0;break a}c=c.return}if(xc===null)throw Error(r(160));wc(o,s,a),xc=null,Sc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Rl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dc(t,e),t=t.sibling}function Dc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ec(t,e),Oc(e),i&4){try{pc(3,e,e.return),mc(3,e)}catch(t){Rl(e,e.return,t)}try{pc(5,e,e.return)}catch(t){Rl(e,e.return,t)}}break;case 1:Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return);break;case 5:if(Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return),e.flags&32){var a=e.stateNode;try{xe(a,``)}catch(t){Rl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ce(a,o),Oe(c,s);var u=Oe(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Te(a,f):d===`dangerouslySetInnerHTML`?be(a,f):d===`children`?xe(a,f):b(a,d,f,u)}switch(c){case`input`:le(a,o);break;case`textarea`:he(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?fe(a,!!o.multiple,o.multiple?[]:``,!1):fe(a,!!o.multiple,o.defaultValue,!0)):fe(a,!!o.multiple,m,!1)}a[Ti]=o}catch(t){Rl(e,e.return,t)}}break;case 6:if(Ec(t,e),Oc(e),i&4){if(e.stateNode===null)throw Error(r(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(t){Rl(e,e.return,t)}}break;case 3:if(Ec(t,e),Oc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{tn(t.containerInfo)}catch(t){Rl(e,e.return,t)}break;case 4:Ec(t,e),Oc(e);break;case 13:Ec(t,e),Oc(e),u=e.child,u.flags&8192&&u.memoizedState!==null&&(u.alternate===null||u.alternate.memoizedState===null)&&(Zc=at()),i&4&&Tc(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(sc=(d=sc)||u,Ec(t,e),sc=d):Ec(t,e),Oc(e),i&8192){d=e.memoizedState!==null;a:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=we(`display`,s))}catch(t){Rl(e,e.return,t)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?``:p.memoizedProps}catch(t){Rl(e,e.return,t)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break a;for(;p.sibling===null;){if(p.return===null||p.return===e)break a;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}if(d&&!u&&e.mode&1)for(X=e,e=e.child;e!==null;){for(u=X=e;X!==null;){switch(d=X,f=d.child,d.tag){case 0:case 11:case 14:case 15:pc(4,d,d.return);break;case 1:if(lc(d,d.return),o=d.stateNode,typeof o.componentWillUnmount==`function`){p=d,m=d.return;try{a=p,o.props=a.memoizedProps,o.state=a.memoizedState,o.componentWillUnmount()}catch(e){Rl(p,m,e)}}break;case 5:lc(d,d.return);break;case 22:if(d.memoizedState!==null){Mc(u);continue}}f===null?Mc(u):(f.return=d,X=f)}e=e.sibling}}break;case 19:Ec(t,e),Oc(e),i&4&&Tc(e);break;case 21:break;default:Ec(t,e),Oc(e)}}function Oc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(_c(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(xe(a,``),i.flags&=-33),bc(e,vc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;yc(e,vc(e),o);break;default:throw Error(r(161))}}catch(t){Rl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kc(e,t,n){X=e,Ac(e,t,n)}function Ac(e,t,n){for(var r=(e.mode&1)!=0;X!==null;){var i=X,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||oc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||sc;s=oc;var l=sc;if(oc=o,(sc=c)&&!l)for(X=i;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Nc(i):(c.return=o,X=c);for(;a!==null;)X=a,Ac(a,t,n),a=a.sibling;X=i,oc=s,sc=l}jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):jc(e,t,n)}}function jc(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:sc||mc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!sc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ra(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Sa(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sa(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&tn(f)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(r(163))}sc||t.flags&512&&hc(t)}catch(e){Rl(t,t.return,e)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Mc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Nc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mc(4,t)}catch(e){Rl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Rl(t,i,e)}}var a=t.return;try{hc(t)}catch(e){Rl(t,a,e)}break;case 5:var o=t.return;try{hc(t)}catch(e){Rl(t,o,e)}}}catch(e){Rl(t,t.return,e)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var Pc=Math.ceil,Fc=x.ReactCurrentDispatcher,Ic=x.ReactCurrentOwner,Lc=x.ReactCurrentBatchConfig,Rc=0,zc=null,Bc=null,Vc=0,Hc=0,Uc=Ii(0),Wc=0,Gc=null,Kc=0,qc=0,Jc=0,Yc=null,Xc=null,Zc=0,Qc=1/0,$c=null,el=!1,tl=null,nl=null,rl=!1,il=null,al=0,ol=0,sl=null,cl=-1,ll=0;function ul(){return Rc&6?at():cl===-1?cl=at():cl}function dl(e){return e.mode&1?Rc&2&&Vc!==0?Vc&-Vc:na.transition===null?(e=jt,e===0?(e=window.event,e=e===void 0?16:un(e.type),e):e):(ll===0&&(ll=Et()),ll):1}function fl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));var i=pl(e,t);return i===null?null:(Ot(i,t,n),(!(Rc&2)||i!==zc)&&(i===zc&&(!(Rc&2)&&(qc|=t),Wc===4&&bl(i,Vc)),hl(i,n),t===1&&Rc===0&&!(e.mode&1)&&(Qc=at()+500,Zi&&ta())),i)}function pl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ml(e){return(zc!==null||pa!==null)&&(e.mode&1)!=0&&(Rc&2)==0}function hl(e,t){var n=e.callbackNode;wt(e,t);var r=St(e,e===zc?Vc:0);if(r===0)n!==null&&nt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nt(n),t===1)e.tag===0?ea(xl.bind(null,e)):$i(xl.bind(null,e)),vi(function(){Rc===0&&ta()}),n=null;else{switch(Mt(r)){case 1:n=st;break;case 4:n=ct;break;case 16:n=lt;break;case 536870912:n=dt;break;default:n=lt}n=Wl(n,gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gl(e,t){if(cl=-1,ll=0,Rc&6)throw Error(r(327));var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var i=St(e,e===zc?Vc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=kl(e,i);else{t=i;var a=Rc;Rc|=2;var o=Dl();(zc!==e||Vc!==t)&&($c=null,Qc=at()+500,Tl(e,t));do try{jl();break}catch(t){El(e,t)}while(1);ca(),Fc.current=o,Rc=a,Bc===null?(zc=null,Vc=0,t=Wc):t=0}if(t!==0){if(t===2&&(a=Tt(e),a!==0&&(i=a,t=_l(e,a))),t===1)throw n=Gc,Tl(e,0),bl(e,i),hl(e,at()),n;if(t===6)bl(e,i);else{if(a=e.current.alternate,!(i&30)&&!yl(a)&&(t=kl(e,i),t===2&&(o=Tt(e),o!==0&&(i=o,t=_l(e,o))),t===1))throw n=Gc,Tl(e,0),bl(e,i),hl(e,at()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Pl(e,Xc,$c);break;case 3:if(bl(e,i),(i&130023424)===i&&(t=Zc+500-at(),10<t)){if(St(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){ul(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),t);break}Pl(e,Xc,$c);break;case 4:if(bl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-ht(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=at()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Pc(i/1960))-i,10<i){e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),i);break}Pl(e,Xc,$c);break;case 5:Pl(e,Xc,$c);break;default:throw Error(r(329))}}}return hl(e,at()),e.callbackNode===n?gl.bind(null,e):null}function _l(e,t){var n=Yc;return e.current.memoizedState.isDehydrated&&(Tl(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Xc,Xc=n,t!==null&&vl(t)),e}function vl(e){Xc===null?Xc=e:Xc.push.apply(Xc,e)}function yl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bl(e,t){for(t&=~Jc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(Rc&6)throw Error(r(327));Il();var t=St(e,0);if(!(t&1))return hl(e,at()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var i=Tt(e);i!==0&&(t=i,n=_l(e,i))}if(n===1)throw n=Gc,Tl(e,0),bl(e,t),hl(e,at()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e,Xc,$c),hl(e,at()),null}function Sl(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{Rc=n,Rc===0&&(Qc=at()+500,Zi&&ta())}}function Cl(e){il!==null&&il.tag===0&&!(Rc&6)&&Il();var t=Rc;Rc|=1;var n=Lc.transition,r=jt;try{if(Lc.transition=null,jt=1,e)return e()}finally{jt=r,Lc.transition=n,Rc=t,!(Rc&6)&&ta()}}function wl(){Hc=Uc.current,Li(Uc)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gi(n)),Bc!==null)for(n=Bc.return;n!==null;){var r=n;switch(Ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:mo(),Li(Vi),Li(Bi),bo();break;case 5:go(r);break;case 4:mo();break;case 13:Li(_o);break;case 19:Li(_o);break;case 10:la(r.type._context);break;case 22:case 23:wl()}n=n.return}if(zc=e,Bc=e=Yl(e.current,null),Vc=Hc=t,Wc=0,Gc=null,Jc=qc=Kc=0,Xc=Yc=null,pa!==null){for(t=0;t<pa.length;t++)if(n=pa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}pa=null}return e}function El(e,t){do{var n=Bc;try{if(ca(),xo.current=hs,Do){for(var i=wo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Do=!1}if(Co=0,Eo=To=wo=null,Oo=!1,ko=0,Ic.current=null,n===null||n.return===null){Wc=1,Gc=t,Bc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Vc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ts(s);if(m!==null){m.flags&=-257,Es(m,s,c,o,t),m.mode&1&&ws(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){ws(o,u,t),Ol();break a}l=Error(r(426))}}else if(Ga&&c.mode&1){var _=Ts(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Es(_,s,c,o,t),eo(l);break a}}o=l,Wc!==4&&(Wc=2),Yc===null?Yc=[o]:Yc.push(o),l=ys(l,c),c=s;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var v=Ss(c,l,t);ba(c,v);break a;case 1:o=l;var y=c.type,b=c.stateNode;if(!(c.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(nl===null||!nl.has(b)))){c.flags|=65536,t&=-t,c.lanes|=t;var x=Cs(c,o,t);ba(c,x);break a}}c=c.return}while(c!==null)}Nl(n)}catch(e){t=e,Bc===n&&n!==null&&(Bc=n=n.return);continue}break}while(1)}function Dl(){var e=Fc.current;return Fc.current=hs,e===null?hs:e}function Ol(){(Wc===0||Wc===3||Wc===2)&&(Wc=4),zc===null||!(Kc&268435455)&&!(qc&268435455)||bl(zc,Vc)}function kl(e,t){var n=Rc;Rc|=2;var i=Dl();(zc!==e||Vc!==t)&&($c=null,Tl(e,t));do try{Al();break}catch(t){El(e,t)}while(1);if(ca(),Rc=n,Fc.current=i,Bc!==null)throw Error(r(261));return zc=null,Vc=0,Wc}function Al(){for(;Bc!==null;)Ml(Bc)}function jl(){for(;Bc!==null&&!rt();)Ml(Bc)}function Ml(e){var t=Ul(e.alternate,e,Hc);e.memoizedProps=e.pendingProps,t===null?Nl(e):Bc=t,Ic.current=null}function Nl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ac(n,t),n!==null){n.flags&=32767,Bc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wc=6,Bc=null;return}}else if(n=Ms(n,t,Hc),n!==null){Bc=n;return}if(t=t.sibling,t!==null){Bc=t;return}Bc=t=e}while(t!==null);Wc===0&&(Wc=5)}function Pl(e,t,n){var r=jt,i=Lc.transition;try{Lc.transition=null,jt=1,Fl(e,t,n,r)}finally{Lc.transition=i,jt=r}return null}function Fl(e,t,n,i){do Il();while(il!==null);if(Rc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(kt(e,o),e===zc&&(Bc=zc=null,Vc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rl||(rl=!0,Wl(lt,function(){return Il(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Lc.transition,Lc.transition=null;var s=jt;jt=1;var c=Rc;Rc|=4,Ic.current=null,fc(e,n),Dc(n,e),Er(pi),rn=!!fi,pi=fi=null,e.current=n,kc(n,e,a),it(),Rc=c,jt=s,Lc.transition=o}else e.current=n;if(rl&&(rl=!1,il=e,al=a),o=e.pendingLanes,o===0&&(nl=null),mt(n.stateNode,i),hl(e,at()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)i(t[n]);if(el)throw el=!1,e=tl,tl=null,e;return al&1&&e.tag!==0&&Il(),o=e.pendingLanes,o&1?e===sl?ol++:(ol=0,sl=e):ol=0,ta(),null}function Il(){if(il!==null){var e=Mt(al),t=Lc.transition,n=jt;try{if(Lc.transition=null,jt=16>e?16:e,il===null)var i=!1;else{if(e=il,il=null,al=0,Rc&6)throw Error(r(331));var a=Rc;for(Rc|=4,X=e.current;X!==null;){var o=X,s=o.child;if(X.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:pc(8,d,o)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var p=d.sibling,m=d.return;if(gc(d),d===u){X=null;break}if(p!==null){p.return=m,X=p;break}X=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}X=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,X=s;else b:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,X=v;break b}X=o.return}}var y=e.current;for(X=y;X!==null;){s=X;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,X=b;else b:for(s=y;X!==null;){if(c=X,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:mc(9,c)}}catch(e){Rl(c,c.return,e)}if(c===s){X=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,X=x;break b}X=c.return}}if(Rc=a,ta(),pt&&typeof pt.onPostCommitFiberRoot==`function`)try{pt.onPostCommitFiberRoot(ft,e)}catch{}i=!0}return i}finally{jt=n,Lc.transition=t}}return!1}function Ll(e,t,n){t=ys(n,t),t=Ss(e,t,1),va(e,t),t=ul(),e=pl(e,1),e!==null&&(Ot(e,1,t),hl(e,t))}function Rl(e,t,n){if(e.tag===3)Ll(e,e,n);else for(;t!==null;){if(t.tag===3){Ll(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nl===null||!nl.has(r))){e=ys(n,e),e=Cs(t,e,1),va(t,e),e=ul(),t=pl(t,1),t!==null&&(Ot(t,1,e),hl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,zc===e&&(Vc&n)===n&&(Wc===4||Wc===3&&(Vc&130023424)===Vc&&500>at()-Zc?Tl(e,0):Jc|=n),hl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):t=1);var n=ul();e=pl(e,t),e!==null&&(Ot(e,t,n),hl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vi.current)Ps=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ps=!1,ic(e,t,n);Ps=!!(e.flags&131072)}else Ps=!1,Ga&&t.flags&1048576&&Ba(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var a=Ui(t,Bi.current);da(t,n),a=No(null,t,i,e,a,n);var o=Po();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wi(i)?(o=!0,Ji(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ha(t),a.updater=Ta,t.stateNode=a,a._reactInternals=t,ka(t,i,e,n),t=Us(null,t,i,!0,o,n)):(t.tag=0,Ga&&o&&Va(t),Fs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=ra(i,e),a){case 0:t=Vs(null,t,i,e,n);break a;case 1:t=Hs(null,t,i,e,n);break a;case 11:t=Is(null,t,i,e,n);break a;case 14:t=Ls(null,t,i,ra(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Vs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Hs(e,t,i,a,n);case 3:a:{if(Ws(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ga(e,t),xa(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Error(r(423)),t=Gs(e,t,i,n,a);break a}else if(i!==a){a=Error(r(424)),t=Gs(e,t,i,n,a);break a}else for(Wa=xi(t.stateNode.containerInfo.firstChild),Ua=t,Ga=!0,Ka=null,n=oo(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),i===a){t=rc(e,t,n);break a}Fs(e,t,i,n)}t=t.child}return t;case 5:return ho(t),e===null&&Xa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,mi(i,a)?s=null:o!==null&&mi(i,o)&&(t.flags|=32),Bs(e,t),Fs(e,t,s,n),t.child;case 6:return e===null&&Xa(t),null;case 13:return Ys(e,t,n);case 4:return po(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ao(t,null,i,n):Fs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Is(e,t,i,a,n);case 7:return Fs(e,t,t.pendingProps,n),t.child;case 8:return Fs(e,t,t.pendingProps.children,n),t.child;case 12:return Fs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ri(ia,i._currentValue),i._currentValue=s,o!==null)if(yr(o.value,s)){if(o.children===a.children&&!Vi.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=_a(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ua(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ua(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Fs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,da(t,n),a=fa(a),i=i(a),t.flags|=1,Fs(e,t,i,n),t.child;case 14:return i=t.type,a=ra(i,t.pendingProps),a=ra(i.type,a),Ls(e,t,i,a,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Wi(i)?(e=!0,Ji(t)):e=!1,da(t,n),Da(t,i,a),ka(t,i,a,n),Us(null,t,i,!0,e,n);case 19:return nc(e,t,n);case 22:return zs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return tt(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case w:return Zl(n.children,a,o,t);case T:s=8,a|=8;break;case E:return e=Kl(12,n,t,a|2),e.elementType=E,e.lanes=o,e;case A:return e=Kl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Kl(19,n,t,a),e.elementType=j,e.lanes=o,e;case P:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case O:s=9;break a;case k:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=P,e.lanes=n,e.stateNode={},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dt(0),this.expirationTimes=Dt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return zi;e=e._reactInternals;a:{if(Ye(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Wi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Wi(n))return qi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=ul(),i=dl(n),a=_a(r,i),a.callback=t??null,va(n,a),e.current.lanes=i,Ot(e,i,r),hl(e,r),e}function ou(e,t,n,r){var i=t.current,a=ul(),o=dl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=_a(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),va(i,t),e=fl(i,o,a),e!==null&&ya(e,i,o),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){ou(null,e,null,null)}),t[Ei]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=It();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&Xt(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Ei]=o.current,ei(e.nodeType===8?e.parentNode:e),Cl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Ei]=c.current,ei(e.nodeType===8?e.parentNode:e),Cl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Nt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xt(t.pendingLanes);n!==0&&(At(t,n|1),hl(t,at()),!(Rc&6)&&(Qc=at()+500,ta()))}break;case 13:var r=ul();Cl(function(){return fl(e,1,r)}),lu(e,1)}},Pt=function(e){e.tag===13&&(fl(e,134217728,ul()),lu(e,134217728))},Ft=function(e){if(e.tag===13){var t=ul(),n=dl(e);fl(e,n,t),lu(e,n)}},It=function(){return jt},Lt=function(e,t){var n=jt;try{return jt=e,t()}finally{jt=n}},Ae=function(e,t,n){switch(t){case`input`:if(le(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ni(i);if(!a)throw Error(r(90));ae(i),le(i,a)}}}break;case`textarea`:he(e,n);break;case`select`:t=n.value,t!=null&&fe(e,!!n.multiple,t,!1)}},Pe=Sl,Fe=Cl;var yu={usingClientEntryPoint:!1,Events:[ji,Mi,Ni,Me,Ne,Sl]},bu={findFiberByHostInstance:Ai,bundleType:0,version:`18.1.0`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$e(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.1.0-next-22edb9f77-20220426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{ft=Su.inject(xu),pt=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Ei]=t.current,ei(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=$e(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Cl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Ei]=t.current,ei(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Cl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1},e.unstable_batchedUpdates=Sl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.1.0-next-22edb9f77-20220426`})),Uu=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hu()})),Wu=o((e=>{var t=Uu();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),Z=l(zu()),Gu=Wu(),Ku=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Primary=1]=`Primary`,e[e.Secondary=2]=`Secondary`,e[e.K12=3]=`K12`,e[e.Tertiary=4]=`Tertiary`,e[e.NonEducational=5]=`NonEducational`,e[e.Partners=6]=`Partners`,e[e.Internal=7]=`Internal`,e[e.Other=8]=`Other`,e[e.ClickView=254]=`ClickView`,e[e.System=255]=`System`,e}({}),qu=function(e){return e.Unclassified=`Unclassified`,e.Primary=`Primary`,e.Secondary=`Secondary`,e.K12=`K12`,e.Tertiary=`Tertiary`,e.NonEducational=`NonEducational`,e.Partners=`Partners`,e.Internal=`Internal`,e.Other=`Other`,e.ClickView=`ClickView`,e.System=`System`,e}({});Ku.Primary,Ku.Secondary,Ku.Primary,Ku.Secondary,Ku.Secondary,Ku.Primary,Ku.Primary,Ku.Primary,Ku.Secondary,Ku.Primary;var Ju=o((e=>{var t=zu(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Q=o(((e,t)=>{t.exports=Ju()}))();function Yu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z`})})}function Xu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`})})}function Zu(e){let t=!!e.ipAuthGuests?.length;return Z.useEffect(()=>{t?e.navigate({step:`username-or-guest`,backStep:null}):e.navigate({step:`username-input`,backStep:null})},[t]),(0,Q.jsx)(Q.Fragment,{})}var Qu={back:`_back_rcp4h_1`};function $u(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z`})})}function ed(e){return(0,Q.jsxs)(`span`,{className:`${Qu.back} position-relative d-inline-flex flex-row cursor-pointer`,role:`button`,tabIndex:0,onClick:e.onClick,children:[(0,Q.jsx)($u,{}),(0,Q.jsx)(`span`,{children:`Back`})]})}function td(...e){let t=[];for(let n of e)if(n)if(typeof n==`object`)for(let e of Object.keys(n))n[e]&&t.push(e);else typeof n==`string`&&t.push(n);return t.join(` `)}function nd(...e){return td(...e)}function rd(e){let{onClickBack:t,children:n}=e,r=!!e.title?.length;return r||n||t?(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsxs)(`div`,{className:`text-left position-relative d-flex flex-column gap-3`,children:[!!t&&(0,Q.jsx)(ed,{onClick:t}),r&&(0,Q.jsx)(`h1`,{className:nd(`h2`,e?.className?.title),children:e.title})]}),n&&(0,Q.jsx)(`p`,{className:nd(`text-start my-2`,e?.className?.description),children:n})]}):(0,Q.jsx)(Q.Fragment,{})}function id(e){let{showSpinner:t,children:n,className:r,...i}=e,a=Z.useRef(null),[o,s]=Z.useState({});return Z.useEffect(()=>{let{width:e,height:t}=o;if(e&&t)return;let n=a.current,r=n.offsetHeight,i=n.offsetWidth;!r||!i||s({width:i,height:r})}),Z.useEffect(()=>{let{width:e,height:t}=o;if(!e||!t)return;let n=a.current;n.style.width=`${e+1}px`,n.style.height=`${t+1}px`},[o]),(0,Q.jsx)(`button`,{ref:a,disabled:t,className:`${r} d-flex justify-content-center align-items-center`,...i,children:t?(0,Q.jsx)(`span`,{className:`spinner-border`,role:`status`,children:(0,Q.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})}):n})}function ad(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var od={back:`_back_fw24y_1`};function sd(e){switch(e){case`email`:return`Email`;case`username`:return`Username or email `;default:return null}}function cd(e){switch(e){case`email`:return`Enter your email`;case`username`:return`Enter your username or email`;default:return null}}function ld(e){switch(e){case`email`:return`email`;case`username`:return`username email`;default:return null}}function ud(e){let t=!e.hideCloseButton&&typeof e.onClickClose==`function`,n=`form-control form-control-lg`;return e.isError&&(n+=` is-invalid`),e.additionalClassNames&&(n+=` `+e.additionalClassNames),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.name,children:sd(e.type)}),(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{className:n,type:`text`,"aria-label":cd(e.type),placeholder:cd(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:ld(e.type),autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),t&&(0,Q.jsx)(`span`,{className:`${od.back} position-absolute cursor-pointer text-gray-800`,role:`button`,tabIndex:0,onClick:e.onClickClose,children:(0,Q.jsx)(ad,{})})]})]})}var dd={kbEmailInUse:`https://support.clickvieweducation.com/hc/articles/42460495601305`,verifyEmail:`https://support.clickvieweducation.com/hc/articles/42594760983705`,verifyEmailNotReceived:`https://support.clickvieweducation.com/hc/articles/43193378048665`,contactSupport:`https://www.clickvieweducation.com/contact-us`,marketingSite:{au:`https://www.clickvieweducation.com/en-au`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickvieweducation.com/en-gb`,us:`https://www.clickvieweducation.com`,ca:`https://www.clickvieweducation.com/en-ca`}};function fd(e){return _d[e]||gd}var pd=`If the error persists please contact ClickView Support.`,md=`If the error persists please contact your ClickView Administrator.`,hd=`Please contact your ClickView Administrator for further assistance.`,gd={message:`Oops! Something went wrong...`,additionalInformation:pd,errorImage:`default-v2.png`},_d={error:gd,"invalid-token":{message:`This link is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"invalid-code":{message:`This code is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"validation-failure":{message:`The information provided is not valid.`,additionalInformation:pd,errorImage:`incorrect-information-v2.png`},"user.email-in-use-as-username":{message:`This email address is already in use by another account.`,moreInfoUrl:dd.kbEmailInUse,errorImage:`email-error-v2.png`},"user.not-found":{message:`Oh oh! We can't find this account.`,additionalInformation:hd,errorImage:`user-not-found-v2.png`},"user.disabled":{message:`Oops! Looks like this account has been deactivated.`,additionalInformation:hd,errorImage:`user-disabled-v2.png`},"user.no-login":{message:`This account does not have a login.`,additionalInformation:hd,errorImage:`access-forbidden-v2.png`},"user.invalid-password":{message:`The provided username or password is incorrect.`,errorImage:`access-forbidden-v2.png`},"user.same-password":{message:`The provided password is the same as the current password.`,errorImage:`access-forbidden-v2.png`},"user.password-too-short":{message:`The provided password is too short.`,errorImage:`access-forbidden-v2.png`},"user.not-activated":{message:`The account has not been activated. Please check your email for an activation link and try again.`,errorImage:`email-error-v2.png`},"user.already-activated":{message:`This account has already been activated.`,errorImage:`already-activated-v2.png`},"user.locked-out":{message:`Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.`,errorImage:`locked-account-v2.png`},"user.invalid-first-name":{message:`The provided first name is invalid.`,errorImage:`default-v2.png`},"user.invalid-surname":{message:`The provided surname is invalid.`,errorImage:`default-v2.png`},"user.invalid-jobtitle":{message:`The provided job title is incorrect.`,errorImage:`default-v2.png`},"user.no-external-user-data":{message:`Oops! We can't get the information from your IDP.`,errorImage:`default-v2.png`},"user.empty-first-name":{message:`The first name must be provided.`,errorImage:`default-v2.png`},"user.empty-surname":{message:`The surname must be provided.`,errorImage:`default-v2.png`},"user.display-name-too-long":{message:`The maximum length for display name is 70 characters.`,errorImage:`default-v2.png`},"user.display-name-too-short":{message:`The minimum length for display name is 2 characters.`,errorImage:`default-v2.png`},"user.unknown-user-type":{message:`The account type needs to be provided.`,errorImage:`default-v2.png`},"user.invalid-email":{message:`The provided email is invalid.`,errorImage:`email-error-v2.png`},"user.email-too-long":{message:`The maximum length for email is 255 characters.`,errorImage:`email-error-v2.png`},"user.email-already-exists":{message:`This email address is already in use by another account.`,errorImage:`email-error-v2.png`},"user.unknown-year-group":{message:`The year level or grade must be provided for student account.`,errorImage:`default-v2.png`},"customer.not-found":{message:`The customer of this account could not be found.`,errorImage:`not-found-v2.png`},"user.empty-customer":{message:`The customer mapping does not exist.`,errorImage:`default-v2.png`},"user.no-email":{message:`The account does not have an email.`,errorImage:`email-error-v2.png`},"user.email-not-allowed":{message:`Oops! That email won't work to sign in to ClickView. Try using your school account instead.`,errorImage:`email-error-v2.png`},"user.signup-not-allowed":{message:`Student sign up is currently not supported.`,errorImage:`default-v2.png`},"user.invalid-external-user-role":{message:`The external user role is not supported`,errorImage:`default-v2.png`},"user.user-type-not-matched":{message:`The provided user type does not match the existing user`,errorImage:`default-v2.png`},"user.already-logged-in":{message:`You already have an account on ClickView`,errorImage:`default-v2.png`},"login.error":{message:`Uh oh! We cannot log you in at this time.`,additionalInformation:pd,errorImage:`default-v2.png`},"login.invalid-login-state":{message:`Your session has expired.`,additionalInformation:`Please login and try again.`,errorImage:`incorrect-information-v2.png`},"login.no-ip":{message:`IP address could not be detected for IP auth`,errorImage:`default-v2.png`},"verify-email.error":{message:`There was an issue verifying your email address, please try again.`,additionalInformation:md,errorImage:`email-error-v2.png`},"forgot-password.no-account":{message:`No account can be found for the provided username or email address.`},"forgot-password.no-verified-email":{message:`Your account needs to be linked to a verified email to receive a password reset link. Please contact your ClickView Administrator for further assistance.`},"idp.wonde-missing-data":{message:`MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"idp.rm-missing-data":{message:`Failed to retrieve data from RM Unify.`,errorImage:`default-v2.png`},"saml2.login":{message:`There was an issue processing your login. Please try again`,errorImage:`default-v2.png`},"saml2.configuration-error":{preferServerError:!0,message:`There was an issue with the saml configuration. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"http.400":{message:`The information provided was not quite what we were looking for.`,errorImage:`incorrect-information-v2.png`},"http.401":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.403":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.404":{message:`Oops! Nothing to see here.`,errorImage:`not-found-v2.png`},"http.500":{message:`Shoot! Looks like theres smoke coming out of our servers.`,additionalInformation:pd,errorImage:`smoky-server-v2.png`}};function vd(){return`Value is required.`}var yd=class extends Error{constructor(e,t,n){super(`An error has occured with errorCode: ${e}`),this.userMessage=t,this.errorCode=e,this.traceId=n}};function bd(e){let t=e.errorCode,n;return n=t===`validation-failure`?vd():fd(t).message,new yd(t,n,e.traceId)}var xd=new class{getXsrfToken(){let e=decodeURIComponent(document.cookie).split(`;`);for(let t=0;t<e.length;t++){let n=e[t];for(;n.charAt(0)===` `;)n=n.substring(1);if(n.indexOf(`XSRF-TOKEN=`)===0)return n.substring(11,n.length)}return``}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":`application/json`}}handleResponse(e){return e.json().then(t=>{if(!e.ok)throw bd(t);return t})}get(e){return fetch(e).then(e=>this.handleResponse(e))}post(e,t){let n={method:`POST`,headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(e,n).then(e=>this.handleResponse(e))}},Sd={banner:`_banner_hzr93_1`,pluginBanner:`_pluginBanner_hzr93_5`};function Cd(e){let t=Od[e.bannerType];return t?(0,Q.jsx)(t,{}):(0,Q.jsx)(Q.Fragment,{})}var wd=()=>(0,Q.jsxs)(`div`,{className:`${Sd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If your email address is already in use, please\xA0`,(0,Q.jsx)(`a`,{href:dd.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`.`]}),Td=()=>(0,Q.jsxs)(`div`,{className:`${Sd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If you did not receive a verification email,\xA0`,(0,Q.jsx)(`a`,{href:dd.verifyEmailNotReceived,target:`_blank`,className:`info-link`,children:`please see our support article`}),`\xA0or\xA0`,(0,Q.jsx)(`a`,{href:dd.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`\xA0for help.`]}),Ed=()=>(0,Q.jsx)(`div`,{className:`${Sd.pluginBanner} position-absolute w-100 h-auto`,children:(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(`span`,{className:`text-light d-inline-block py-3 h6 mb-0`,children:`🎓️ Embed classroom-ready videos from ClickView`})})});function Dd(){return(0,Q.jsx)(`div`,{style:{height:`3.626rem`}})}var Od={"email-in-use":wd,"check-email":Td,plugin:Ed};function kd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:`M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z`}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})})}var Ad=`/images/clickview-xmas-logo-2026.png`;function jd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsx)(`img`,{className:`h-100`,alt:`ClickView Xmas logo`,src:Ad})})}var Md={logo:`_logo_1ermx_1`};function Nd(){return(0,Q.jsx)(`span`,{className:`${Md.logo} d-inline-block`,children:(0,Q.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Q.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Q.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Q.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Q.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Q.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z`,fill:`#F8981D`}),(0,Q.jsx)(`path`,{d:`M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2637.06 869.627H2596.11V610.676H2637.06V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2728.31 869.627H2687.37V684.984H2728.31V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3454.19 869.627H3413.24V684.984H3454.19V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z`,fill:`#313543`})]})})}var Pd=function(e){return e.Default=`default`,e.Lite=`lite`,e.Exchange=`exchange`,e.Analytics=`analytics`,e.Cloud=`cloud`,e.Streamable=`streamable`,e.Xmas=`xmas`,e.Plugin=`plugin`,e.Curator=`curator`,e}({}),Fd=`ClickView`,Id={default:{imageUrls:{default:[`/images/backgrounds/bg-1.png`,`/images/backgrounds/bg-2.png`,`/images/backgrounds/bg-3.png`,`/images/backgrounds/bg-4.png`,`/images/backgrounds/bg-5.png`]},imageType:`background`,logoComponent:kd,bannerSpacer:Dd,productName:Fd},lite:{imageUrls:{default:[`/images/backgrounds/products/lite-topic-1-v2.png`,`/images/backgrounds/products/lite-topic-2-v2.png`,`/images/backgrounds/products/lite-topic-3-v2.png`,`/images/backgrounds/products/lite-discover-1-v2.png`,`/images/backgrounds/products/lite-discover-2-v2.png`,`/images/backgrounds/products/lite-student-1-v2.png`,`/images/backgrounds/products/lite-student-2-v2.png`,`/images/backgrounds/products/lite-event-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#38A2E8`,bannerSpacer:Dd,productName:Fd},exchange:{imageUrls:{default:[`/images/backgrounds/products/exchange-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#F8981D`,bannerSpacer:Dd,productName:Fd},analytics:{imageUrls:{default:[`/images/backgrounds/products/analytics-1-v4.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#4C68DB`,bannerSpacer:Dd,productName:Fd},cloud:{imageUrls:{default:[`/images/backgrounds/products/cloud-1-v2.png`]},imageType:`image`,logoComponent:kd,backgroundColor:`#40C2BB`,bannerSpacer:Dd,productName:Fd},streamable:{imageUrls:{default:[`/images/backgrounds/products/streamable-1-v2.png`,`/images/backgrounds/products/streamable-2-v2.png`]},imageType:`image`,logoComponent:Nd,backgroundColor:`#D6F0FC`,bannerSpacer:Dd,productName:`Streamable Learning`},xmas:{imageUrls:{default:[`/images/backgrounds/xmas/2026-promo1-bg.png`,`/images/backgrounds/xmas/2026-promo2-bg.png`,`/images/backgrounds/xmas/2026-promo3-bg.png`,`/images/backgrounds/xmas/2026-promo4-bg.png`,`/images/backgrounds/xmas/2026-promo5-bg.png`,`/images/backgrounds/xmas/2026-promo6-bg.png`,`/images/backgrounds/xmas/2026-promo7-bg.png`]},imageType:`background`,logoComponent:jd,bannerSpacer:Dd,productName:Fd},plugin:{imageUrls:{default:[]},imageType:`none`,logoComponent:kd,bannerSpacer:Dd,banner:`plugin`,productName:Fd},curator:{imageUrls:{default:[`/images/backgrounds/products/curator-1-v2.png`]},imageType:`image`,backgroundColor:`#49c5b1`,logoComponent:kd,bannerSpacer:Dd,productName:Fd,title:`Thank you for all the years of service, ClickView Central!`}},Ld={getDefinition(e){return Id[e]||Id[Pd.Default]}},Rd={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,t)=>{let{returnUrl:n}=t;xd.post(`/ajax/login/continue`,{returnUrl:n}).then(e=>zd(e,t)).catch(e=>{throw e})}};function zd(e,t,n){let r=Rd[e.step];if(r){r(e,t);return}if(!Pj[e.step])throw Error(`Unknown step '${e.step}'`);t.navigate({step:e.step,...n,...e.data})}function Bd(e){return(0,Q.jsxs)(`div`,{className:e.className,children:[`Don't have an account?\xA0`,(0,Q.jsx)(`a`,{className:`info-link btn-link`,href:e.signInUrl,children:`Create account`})]})}var Vd={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:Vd.getMemoryStorage()},getMemoryStorage(){let e=new Map;return{setItem(t,n){e.set(t,n)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}},Hd=function(e){return e.LocalStorage=`localStorage`,e.SessionStorage=`sessionStorage`,e.MemoryStorage=`memoryStorage`,e}({}),Ud=class{constructor(e){if(this.cachePrefix=`_cv:`,this.expireTime=3600,this.type=e.type,this.hasSupport=this.hasBrowserSupport(),this.hasSupport)try{this.type===`memoryStorage`?this.storage=Vd.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(e){if(!this.hasSupport)return;let t=this.storage.getItem(e);try{return JSON.parse(t)}catch{return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),typeof t==`string`?(this.storage.setItem(e,t),!0):(this.storage.setItem(e,JSON.stringify(t)),!0)}catch{return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();let r={time:this.getCurrentTime()+n*1e3,data:t!=null&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),!1):!0:!1}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){let t=this.storage.key(e);if(t.indexOf(this.cachePrefix)===0){let e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type===`memoryStorage`)return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}},Wd=class extends Ud{static get Instance(){return this.instance||=new this({type:`localStorage`})}},Gd=class extends Ud{static get Instance(){return this.instance||=new this({type:`sessionStorage`})}},Kd=class extends Ud{static get Instance(){return this.instance||=new this({type:`memoryStorage`})}},qd=Wd.Instance,Jd=Gd.Instance,Yd=Kd.Instance,Xd=`r`,Zd=`cv:r`,Qd=`cv:r:e`,$d=`referrer`,ef=`cv:originalReferrer`,tf=28800,nf=[`internalReferrer`],rf={getDecodedAttributionData(){let e=qd.cacheGet(Zd);return e&&Object.keys(e).length>0?e:af()?.decoded},getEncodedAttributionData(){let e=qd.cacheGet(Qd);return e?.length?e:af().encoded},getProfileId(){return rf.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&df(uf(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!sf(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function af(){let e=qd.cacheGet(Zd),t=qd.cacheGet(Qd);return sf(e)?{encoded:t,decoded:e}:of()}function of(){qd.cacheRemove(Zd),qd.cacheRemove(Qd);let e=lf(),t=rf.decodeRValue(e);if(t)return df(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:cf()},r=uf(n);return df(r,n),{decoded:n,encoded:r}}function sf(e){return!e||typeof e!=`object`||Object.keys(e).length<nf.length?!1:nf.every(t=>typeof e[t]==`string`)}function cf(){let e=qd.cacheGet(ef);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has($d)&&e.get($d);e.has($d)&&e.get($d)&&(t=n)}return t&&qd.cacheSet(ef,t,tf),t}function lf(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(Xd))return e.get(Xd)}function uf(e){if(sf(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function df(e,t){try{qd.cacheSet(Zd,t,tf),qd.cacheSet(Qd,e,tf)}catch{console.error(`Could not store attribution data in session storage`)}}var ff=28800,pf=`cv:utmparams`,mf=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],hf=mf.reduce((e,[t])=>({...e,[t]:t}),{}),gf={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return mf.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),_f(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{hf[n]&&(t[n]=e[n])}),_f(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=gf.getUtmParameters();return t?(mf.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function _f(e){if(Object.keys(e).length)return qd.cacheSet(pf,e,ff),e;let t=qd.cacheGet(pf);return t&&typeof t==`object`&&Object.keys(t).length?t:null}function vf(e){function t(t){xd.post(`/ajax/login/ip-auth`,{id:t.id,returnUrl:e.returnUrl}).then(t=>zd(t,e)).catch(e=>{console.warn(e)})}function n(e){window.location.href=e.url}function r(){e.navigate({step:e.backStep})}function i(){if(!window.URLSearchParams)return e.signUpUrl;let t=gf.getURLSearchParams()||new URLSearchParams,n=rf.getEncodedAttributionData();return n&&t.set(`r`,n),e.signUpUrl+`?`+t.toString()}return{onClickIpAuthGuest:t,onClickProvider:n,onClickBack:e.backStep?r:null,getSignInUrl:i}}var yf={globalIdpButton:`_globalIdpButton_gzfrv_1`,globalIdpImage:`_globalIdpImage_gzfrv_5`};function bf(e){let{idp:t,onClick:n,backgroundColour:r=`F8981D`,foregroundColour:i=`FFF`,last:a,isGlobalIdp:o}=e,s=a?``:`mb-3`,c={backgroundColor:`#${t.backgroundColour||r}`,color:`#${t.foregroundColour||i}`},l={},u=o?`btn btn-lg btn-outline-dark w-100 ${s} ${yf.globalIdpButton}`:`btn btn-lg w-100 ${s}`,d=o?l:c,f=o?`Continue with ${t.name}`:t.name;return(0,Q.jsxs)(`button`,{className:u,style:d,onClick:()=>n(t),children:[o&&t.logoUrl&&(0,Q.jsx)(`img`,{src:t.logoUrl,className:yf.globalIdpImage,alt:`${t.name} logo`}),f]})}var xf={divider:`_divider_1q6pq_1`};function Sf(e){let t=e.idps?.filter(e=>!!e.visible)||[];if(!t.length)return(0,Q.jsx)(Q.Fragment,{});function n(t){let n=window.location.pathname+window.location.search,r=`/challenge?idp=${t.id}&redirectUrl=`+encodeURIComponent(n);`attribution`in e&&(r+=`&attribution=`+encodeURIComponent(e.attribution)),window.location.href=r}return(0,Q.jsxs)(`div`,{className:`${e.className?e.className:``}`,children:[(0,Q.jsx)(`div`,{className:`my-4 border-bottom position-relative ${xf.divider}`}),t.map((t,r)=>(0,Q.jsx)(bf,{idp:t,onClick:`onClick`in e?e.onClick:n,attribution:`attribution`in e?e.attribution:null,isGlobalIdp:!0},r))]})}function Cf(e){return(0,Q.jsx)(`span`,{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:`status`,children:e.children})}function wf(e){let[t,n]=Z.useState(e.username||``),[r,i]=Z.useState(!1),[a,o]=Z.useState(``),s=Ld.getDefinition(e?.theme),c=s?.productName?`Sign in to ${s.productName}`:`Sign in`,l=!!e.globalIdps?.length,u=e.signUpUrl&&e.showSignUp,{onClickProvider:d,onClickBack:f,getSignInUrl:p}=vf(e);function m(n){if(n.preventDefault(),!t){o(`Please provide a username`);return}i(!0),xd.post(`/ajax/login/check-user`,{username:t,returnUrl:e.returnUrl}).then(n=>zd(n,e,{username:t})).catch(e=>{i(!1),o(e.userMessage||`Something went wrong`)})}function h(e){n(e.target.value.trim()),e.target.value&&o(``)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:c,onClickBack:f}),(0,Q.jsxs)(`form`,{onSubmit:m,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(ud,{name:`username`,type:`username`,isError:!!a,value:t,onChange:h,"aria-invalid":!!a,"aria-errormessage":`usernameError`}),!!a&&(0,Q.jsx)(Cf,{name:`username`,children:a})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:r,children:`Continue`})]}),u&&(0,Q.jsx)(Bd,{className:`mt-4`,signInUrl:p()}),l&&(0,Q.jsx)(Sf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:d})]})}function Tf(e){let t=Ld.getDefinition(e?.theme),n=t?.productName?`Sign in to ${t.productName}`:`Sign in`,r=!!e.globalIdps?.length,i=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:a,onClickProvider:o,onClickBack:s,getSignInUrl:c}=vf(e);function l(){e.navigate({step:`username-input`,backStep:`username`})}function u(){e.ipAuthGuests?.length===1?a(e.ipAuthGuests[0]):e.navigate({step:`guest-selection`,backStep:`username`})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:n,onClickBack:s}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100 mb-3`,showSpinner:!1,onClick:l,children:`Sign in with username or email`}),(0,Q.jsx)(id,{className:`btn btn-outline-dark btn-lg w-100`,showSpinner:!1,onClick:u,children:`Sign in as guest`}),i&&(0,Q.jsx)(Bd,{className:`mt-4`,signInUrl:c()}),r&&(0,Q.jsx)(Sf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:o})]})}function Ef(){return(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z`})})})}var Df={showIconOnHover:`_showIconOnHover_1ebbv_1`};function Of({icon:e}){return(0,Q.jsx)(Q.Fragment,{children:e&&(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle`,src:e})})}function kf(e){let{text:t,onClick:n,className:r,icon:i,iconColor:a=`dark`,showIconOnHover:o=!0}=e,s={},c;return c=typeof i==`function`?i:()=>(0,Q.jsx)(Of,{icon:i}),(0,Q.jsx)(`button`,{className:nd(`btn btn-outline-dark btn-lg w-100 border-secondary`,o&&Df.showIconOnHover,r),onClick:n,style:s,children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[c&&(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-${a} d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(c,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 w-75 text-start`,children:t}),(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(Ef,{})})]})})}function Af(){return(0,Q.jsx)(`div`,{className:`svg-container lg`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 18 18`,className:`align-top`,children:(0,Q.jsx)(`path`,{d:`M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z`,style:{strokeWidth:.0275199}})})})}var jf={buildAvatarUrl(e,t){if(e)return t.size?`${e}${e.includes(`?`)?`&`:`?`}size=${t.size}`:e}};function Mf(e){return(0,Q.jsx)(`div`,{className:`d-flex flex-column gap-3`,children:e.ipAuthGuests.map(t=>(0,Q.jsx)(kf,{onClick:()=>{e.onClickGuest(t)},text:t.customer.name,icon:jf.buildAvatarUrl(t.customer.logoUrl,{size:`small`})||Af},t.id))})}function Nf(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var Pf={clearInput:`_clearInput_1l19p_1`,clearableInput:`_clearableInput_1l19p_8`},Ff=Z.forwardRef((e,t)=>{let{onClickClear:n,showClearButton:r,clearClassName:i,...a}=e;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{...a,ref:t,className:`${e.className} ${Pf.clearableInput}`}),(!!e.value||r)&&(0,Q.jsx)(`span`,{className:`${Pf.clearInput} position-absolute cursor-pointer text-secondary ${i||``}`,role:`button`,onClick:n,onKeyDown:e=>e.key===`Enter`&&n(),tabIndex:0,children:(0,Q.jsx)(`div`,{className:`d-inline-block svg-container md`,children:(0,Q.jsx)(Nf,{})})})]})});function If(e){let[t,n]=Z.useState(0),r=Z.useRef(null),[i,a]=Z.useState(!!e.hideInitially);function o(){r.current&&r.current.children[t-1]?.scrollIntoView({block:`center`})}function s(r){if(e.hideOnEnter&&a(!1),r.code===`ArrowDown`){r.stopPropagation(),r.preventDefault();let i=t+1;i>e.itemCount&&(i=1),n(i),o();return}if(r.code===`ArrowUp`){r.stopPropagation(),r.preventDefault();let i=t-1;i<=0&&(i=e.itemCount),n(i),o();return}if(r.code===`Enter`&&t>0){r.stopPropagation(),r.preventDefault(),e.onSelected(t-1),e.hideOnEnter&&a(!0);return}n(0)}function c(){e.hideOnBlur&&a(!1)}function l(){e.hideOnBlur&&a(!0)}return{selectedIndex:t,onKeyDown:s,containerRef:r,hide:i,onFocus:c,onBlur:l}}var Lf=Z.forwardRef((e,t)=>{function n(t){if(e.onKeyDown)return e.onKeyDown(t);if(t.key===` `&&t.preventDefault(),t.key===`Enter`||t.key===` `){if(e.disabled||!e.onClick)return;r(t)}}function r(...t){if(!(e.disabled||!e.onClick))return e.onClick(...t)}return(0,Q.jsx)(`div`,{...e,ref:t,role:`button`,tabIndex:e.tabIndex||0,className:`${e.className?e.className:``} ${e.disabled?``:`cursor-pointer`}`,onKeyDown:n,onClick:r,style:e.style?e.style:{},children:e.children})}),Rf={inputFocused:`_inputFocused_bwtre_1`,dropdown:`_dropdown_bwtre_4`,suggestionContainer:`_suggestionContainer_bwtre_7`,suggestionItem:`_suggestionItem_bwtre_16`,large:`_large_bwtre_20`,input:`_input_bwtre_1`,selected:`_selected_bwtre_39`,clearInput:`_clearInput_bwtre_43`,clear:`_clear_bwtre_43`};function zf(e){let{items:t,getName:n,onItemClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Lf,{className:`${Rf.suggestionItem} ${i-1===t?Rf.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:n(e)},t))})}function Bf(e){let t=Z.useRef(null),[n,r]=Z.useState(``),[i,a]=Z.useState([]),{selectedIndex:o,onKeyDown:s,containerRef:c,hide:l,onBlur:u,onFocus:d}=If({onSelected:f,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function f(t){if(t===i.length){e.onCantFind();return}let n=i[t];n&&v(n)}let p=!!e.item,m=e.cantFindText?i?.length+1:i?.length;Z.useEffect(()=>{if(!p){if(!n.length){_();return}if(!p&&n.length>1){_(n);return}}},[n,p]);function h(t){e.item&&e.clearData(),t!==n&&r(t)}function g(){h(``),t.current.focus()}function _(t){if(!t){a(e.items);return}let n=e.items.filter(n=>e.getName(n).toLowerCase().includes(t.toLowerCase()));a(n)}function v(t){r(e.getName(t)),e.onSelect(t),a(e.items)}let y=m&&!e.disabled&&!l,b=`form-select ${y?Rf.inputFocused:Rf.input} ${Rf.clearInput} cursor-pointer`,x=`form-group position-relative`;return e.size===`lg`&&(b+=` form-select-lg`,x+=` ${Rf.large}`),(0,Q.jsxs)(`div`,{className:x,children:[(0,Q.jsx)(Ff,{id:e.id,value:n,onChange:e=>h(e.currentTarget.value),ref:t,className:b,type:`text`,autoComplete:`off`,placeholder:e.placeholder,disabled:e.disabled,onClickClear:g,onKeyDown:s,onFocus:d,onBlur:u,clearClassName:Rf.clear}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${Rf.dropdown} ${l?`d-none`:``}`,children:(0,Q.jsxs)(`div`,{className:`${Rf.suggestionContainer} ${y?``:`d-none`}`,ref:c,children:[m&&(0,Q.jsx)(zf,{items:i,onItemClick:v,getName:e.getName,selectedIndex:o}),e.cantFindText&&(0,Q.jsx)(`div`,{className:`info-link ${Rf.suggestionItem} ${o===i.length+1?Rf.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function Vf(e){let[t,n]=Z.useState(null);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Bf,{id:`guest`,item:t,items:e.ipAuthGuests,onSelect:e=>n(e),getName:e=>e.customer.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!t,onClick:()=>{e.onClickGuest(t)},children:`Continue`})]})}var Hf=4;function Uf(e){return(0,Q.jsxs)(`div`,{className:nd(e.className),children:[(0,Q.jsx)(`p`,{className:`fw-medium`,children:`Which school would you like to sign in to as a guest?`}),e.ipAuthGuests.length>Hf?(0,Q.jsx)(Vf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):(0,Q.jsx)(Mf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function Wf(e){let{onClickIpAuthGuest:t,onClickBack:n}=vf(e);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:`Sign in as guest`,onClickBack:n}),(0,Q.jsx)(Uf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:t})]})}var Gf={revealPassword:`_revealPassword_11wqf_1`,passwordInput:`_passwordInput_11wqf_10`,passwordContainer:`_passwordContainer_11wqf_17`};function Kf(e){return e||`Password`}function qf(e){let[t,n]=Z.useState(`password`),r=Z.useRef(null);function i(e){e.preventDefault(),n(t===`password`?`text`:`password`),r.current?.focus()}let a=`position-relative form-control form-control-lg ${Gf.passwordContainer}`;return e.hasError&&(a+=` ${e.hasError?`is-invalid`:``}`),e.className&&(a+=` ${e.className}`),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.id||e.name,children:Kf(e.label)}),(0,Q.jsxs)(`div`,{className:a,children:[(0,Q.jsx)(`input`,{className:`${Gf.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:t,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:r,id:e.id||e.name}),(0,Q.jsx)(Lf,{className:`svg-container cursor-pointer ${Gf.revealPassword}`,onClick:i,children:t===`password`?(0,Q.jsx)(Xu,{}):(0,Q.jsx)(Yu,{})})]})]})}function Jf(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(e.username),[a,o]=Z.useState(``),[s,c]=Z.useState(!1),[l,u]=Z.useState(``),d=!!e.username;function f(e){i(e.target.value.trim()),u(``)}function p(e){o(e.target.value),u(``)}function m(t){if(e.backStep){n({step:e.backStep,backStep:null});return}n({step:`username`,clearUsername:t})}function h(){n({step:`forgot-password`,backStep:`password`,username:r})}function g(n){if(n.preventDefault(),!r){u(`Please provide a username`);return}if(!a){u(`Please provide a password`);return}if(a.trim().length!==a.length){u(`Your password cannot start or end with a blank space`);return}c(!0),xd.post(`/ajax/login/password`,{username:r,password:a,returnUrl:t}).then(t=>zd(t,e)).catch(e=>{c(!1),u(e.userMessage||`Something went wrong`)})}let _=Ld.getDefinition(e?.theme),v=_?.productName?`Sign in to ${_.productName}`:`Sign in`;return(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:()=>m(!1),title:v}),(0,Q.jsx)(`div`,{className:`mb-3 position-relative`,children:(0,Q.jsx)(ud,{name:`username`,type:`username`,isError:!!l,value:r,disabled:d,onChange:f,hideCloseButton:!d,onClickClose:()=>m(!0)})}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(qf,{placeholder:`Enter your password`,autoFocus:d,value:a,onChange:p,name:`current-password`,autoComplete:`current-password`,hasError:!!l,"aria-invalid":!!l,"aria-errormessage":`current-passwordError`}),!!l&&(0,Q.jsx)(Cf,{name:`current-passwordError`,children:l})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:s,children:`Sign in`}),(0,Q.jsx)(`div`,{className:`text-start`,children:(0,Q.jsx)(`button`,{className:`btn btn-link text-info ps-0`,onClick:h,children:`Forgot your password?`})})]})}var Yf=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function Xf(e){let{navigate:t,idps:n,showPasswordLogin:r}=e,[i,a]=Z.useState(null);function o(e){window.location.href=e}function s(){t({step:`username`})}function c(){t({step:`password`,backStep:`select-idp`})}function l(e){o(e.url)}function u(){i&&o(i.url)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(rd,{onClickBack:s,theme:e.theme,title:`To sign in, please select an option from the list below`}),n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Bf,{id:`idp`,item:i,items:n,onSelect:a,getName:e=>e.name,clearData:()=>a(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!i,onClick:u,children:`Continue`})]}):n.map((e,t)=>(0,Q.jsx)(bf,{onClick:l,idp:{...e,visible:!0},backgroundColour:Yf[t%Yf.length],isGlobalIdp:!e.id.startsWith(`online:`)},t)),r&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:c,children:`My school doesn't use Single Sign On`})]})}function Zf(e,t){Z.useEffect(()=>{if(e)return t.dispatch({type:`setBanner`,data:{bannerType:e}}),()=>{t.dispatch({type:`setBanner`,data:{bannerType:null}})}},[e])}var Qf=/^(([^<>()\[\]\\.,;:\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,}))$/,$f=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,ep=250,tp={isEmail(e){return Qf.test(e)},isValidLength(e){if(!e)return!1;let t=e.trim();return t.length>0&&t.length<=ep},exceedsMaxLength(e){return e?e.trim().length>ep:!1},containsValidText(e){return!e||$f.test(e)},isPasswordValid(e,t,n){return e.length?n&&!t.length?[!1,`Password confirmation is required.`]:n&&e!==t?[!1,`Password confirmation does not match.`]:e.trim().length===e.length?[!0]:[!1,`Your password cannot start or end with a blank space`]:[!1,`Password is required.`]}};function np(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);Zf(`email-in-use`,e);let{productName:l}=Ld.getDefinition(e.theme);function u(){t({step:n||`username`})}function d(){t({step:`verify-email-skip-reason`,backStep:`verify-email`})}function f(e){i(e.target.value)}function p(t){if(t.preventDefault(),!r){c(`Please provide an email`);return}if(!tp.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),xd.post(`/ajax/login/send-verify-email-code`,{email:r}).then(t=>zd(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsx)(rd,{onClickBack:u,theme:e.theme,title:`Verify your email`,className:{description:`mt-0 mb-0`},children:(0,Q.jsxs)(`span`,{className:`d-inline-block`,children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${l}.`,`\xA0`,(0,Q.jsx)(`a`,{className:`text-info cursor-pointer`,target:`_blank`,href:dd.verifyEmail,children:`Learn more.`})]})}),(0,Q.jsx)(ud,{isError:!!s,type:`email`,value:r,onChange:f,name:`email`,ariaInvalid:!!s,ariaErrorMessage:`emailError`}),!!s&&(0,Q.jsx)(Cf,{name:`email`,children:s}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100 mt-4`,type:`submit`,showSpinner:a,children:`Verify`}),e.canSkip&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info mt-2 ps-0`,onClick:d,children:`Skip for now`})]})})}var rp={input:`_input_1vtt8_1`},ip=/^[0-9]$/,ap=/^\d+$/,op=8;function sp(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(``),[l,u]=Z.useState(``),[d,f]=Z.useState(``),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(null),_=Z.useRef(null),v=Z.useRef(null);Z.useEffect(()=>{let n=(t||`X`)+(r||`X`)+(a||`X`)+(s||`X`)+(l||`X`)+(d||`X`),i=n.length===6&&n.indexOf(`X`)===-1;e.onChange(n,i)},[t,r,a,s,l,d]);let y={"verify-1":{getNext:()=>y[`verify-2`],getPrevious:()=>null,value:t,setState:n,focus:()=>p.current.focus()},"verify-2":{getNext:()=>y[`verify-3`],getPrevious:()=>y[`verify-1`],value:r,setState:i,focus:()=>m.current.focus()},"verify-3":{getNext:()=>y[`verify-4`],getPrevious:()=>y[`verify-2`],value:a,setState:o,focus:()=>h.current.focus()},"verify-4":{getNext:()=>y[`verify-5`],getPrevious:()=>y[`verify-3`],value:s,setState:c,focus:()=>g.current.focus()},"verify-5":{getNext:()=>y[`verify-6`],getPrevious:()=>y[`verify-4`],value:l,setState:u,focus:()=>_.current.focus()},"verify-6":{getNext:()=>null,getPrevious:()=>y[`verify-5`],value:d,setState:f,focus:()=>v.current.focus()}};function b(e,t){if(!ip.test(e.key)&&e.keyCode!==op)return;let n=y[t];if(e.keyCode===op){n.setState(``),n.getPrevious()?.focus();return}if(e.currentTarget.selectionStart>0){let t=n.getNext();if(!t)return;t.setState(e.key),t.getNext()?t.getNext().focus():t.focus();return}n.setState(e.key),n.getNext()?.focus()}function x(e,t){e.preventDefault();let n=e.clipboardData.getData(`text`).trim();if(!ap.test(n))return;let r=n.split(``);if(r.length===6){let e=y[`verify-1`];for(let t of r)e.setState(t),e=e.getNext(),e?.focus();return}let i=y[t];i.value&&i.getNext()&&(i=i.getNext());do i.focus(),i.setState(r.shift()),i=i.getNext();while(r.length&&i)}let S={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${rp.input} ${e.hasError?`is-invalid`:``}`,autoCorrect:`off`,inputMode:`numeric`,pattern:`[0-9]*`,autoCapitalize:`off`,autoComplete:`off`,"aria-invalid":!!e.hasError};return(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-between mx-n1`,"aria-describedby":`verificationCodeError`,children:[(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-1`),onKeyDown:e=>b(e,`verify-1`),value:t,ref:p,onChange:()=>{},autoComplete:`off`,...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-2`),onKeyDown:e=>b(e,`verify-2`),value:r,ref:m,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-3`),onKeyDown:e=>b(e,`verify-3`),value:a,ref:h,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-4`),onKeyDown:e=>b(e,`verify-4`),value:s,ref:g,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-5`),onKeyDown:e=>b(e,`verify-5`),value:l,ref:_,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,`verify-6`),onKeyDown:e=>b(e,`verify-6`),value:d,ref:v,onChange:()=>{},...S})]})}function cp(e){let{theme:t,title:n,description:r,onBack:i,onResend:a,onSkip:o,submit:s,canSkip:c}=e,[l,u]=Z.useState(``),[d,f]=Z.useState(!1),[p,m]=Z.useState(``),[h,g]=Z.useState(!1);Z.useEffect(()=>{h&&v()},[h]);function _(e,t){u(``),m(e),g(t)}function v(e){if(e?.preventDefault(),!h){u(`Incomplete code`);return}f(!0),s(p).catch(e=>{f(!1),u(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:v,children:[(0,Q.jsx)(rd,{onClickBack:i,theme:t,title:n,children:r}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(sp,{onChange:_,hasError:!!l}),!!l&&(0,Q.jsx)(Cf,{name:`verificationCode`,children:l})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:d,disabled:!h,children:`Continue`}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between mt-3`,children:[o&&c&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:o,children:`Skip for now`}),a&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:a,children:`Resend code`})]})]})}function lp(e){let{navigate:t,email:n,theme:r}=e;Zf(`check-email`,e);function i(){t({step:`verify-email`})}function a(){t({step:`verify-email-skip-reason`,backStep:`verify-email-check-code`})}function o(){t({step:`verify-email`,email:n})}function s(t){return xd.post(`/ajax/login/verify-email`,{code:t,email:n}).then(n=>zd(n,e,{code:t}))}return(0,Q.jsx)(cp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:n})]}),onBack:i,onResend:o,submit:s,onSkip:a,...e})}function up(){return(0,Q.jsx)(`img`,{className:`img-fluid mx-auto d-block mt-4`,alt:`Success`,src:`/images/success-tick-v2.png`,style:{maxWidth:`304px`}})}function dp(e){let{returnUrl:t}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(rd,{theme:e.theme,title:`Your email has been verified`,className:{title:`text-center`}}),(0,Q.jsx)(`div`,{className:`my-5`,children:(0,Q.jsx)(up,{})}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100`,children:`Continue`})]})}function fp(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);function l(e){i(e.target.value.trim())}function u(t){if(t.preventDefault(),!r){c(`Please provide an email address`);return}if(!tp.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),xd.post(`/ajax/login/send-recovery-code`,{email:r}).then(t=>zd(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}function d(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:u,children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:n&&d,title:`Forgot your password?`,children:`Enter your email below to receive password reset instructions`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(ud,{name:`email`,value:r,type:`email`,onChange:l,isError:!!s,"aria-invalid":!!s,"aria-errormessage":`emailError`}),!!s&&(0,Q.jsx)(Cf,{name:`email`,children:s})]}),(0,Q.jsx)(id,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:a,children:`Send`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to reset their password.`})]})}function pp(e){let{navigate:t,email:n,theme:r}=e;function i(){t({step:`forgot-password`})}function a(){t({step:`forgot-password`,email:n})}function o(t){return xd.post(`/ajax/login/check-recovery-code`,{code:t,email:n}).then(n=>zd(n,e,{code:t}))}return(0,Q.jsx)(cp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`If we can reset your password, we've sent a `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code to the email address provided`]}),submit:o,onBack:i,onResend:a,...e})}var mp=o(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=NaN,v=4294967295,y=v-1,b=v>>>1,x=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,D=`[object DOMException]`,O=`[object Error]`,k=`[object Function]`,A=`[object GeneratorFunction]`,j=`[object Map]`,M=`[object Number]`,N=`[object Null]`,P=`[object Object]`,F=`[object Promise]`,I=`[object Proxy]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object Undefined]`,H=`[object WeakMap]`,ee=`[object WeakSet]`,U=`[object ArrayBuffer]`,te=`[object DataView]`,ne=`[object Float32Array]`,re=`[object Float64Array]`,ie=`[object Int8Array]`,ae=`[object Int16Array]`,oe=`[object Int32Array]`,W=`[object Uint8Array]`,se=`[object Uint8ClampedArray]`,ce=`[object Uint16Array]`,le=`[object Uint32Array]`,ue=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,pe=/[&<>"']/g,me=RegExp(fe.source),he=RegExp(pe.source),ge=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,be=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(Se.source),we=/^\s+/,Te=/\s/,Ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ke=/[()=,{}\[\]\/\s]/,Ae=/\\(\\)?/g,q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,J=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Ne=/^\[object .+?Constructor\]$/,Pe=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ie=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Le=/($^)/,Re=/['\n\r\u2028\u2029\\]/g,ze=`\\ud800-\\udfff`,Be=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ve=`\\u2700-\\u27bf`,He=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ue=`\\xac\\xb1\\xd7\\xf7`,We=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ge=`\\u2000-\\u206f`,Ke=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,qe=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Je=`\\ufe0e\\ufe0f`,Ye=Ue+We+Ge+Ke,Xe=`['’]`,Ze=`[`+ze+`]`,Qe=`[`+Ye+`]`,$e=`[`+Be+`]`,et=`\\d+`,tt=`[`+Ve+`]`,nt=`[`+He+`]`,rt=`[^`+ze+Ye+et+Ve+He+qe+`]`,it=`\\ud83c[\\udffb-\\udfff]`,at=`(?:`+$e+`|`+it+`)`,ot=`[^`+ze+`]`,st=`(?:\\ud83c[\\udde6-\\uddff]){2}`,ct=`[\\ud800-\\udbff][\\udc00-\\udfff]`,lt=`[`+qe+`]`,ut=`\\u200d`,dt=`(?:`+nt+`|`+rt+`)`,ft=`(?:`+lt+`|`+rt+`)`,pt=`(?:`+Xe+`(?:d|ll|m|re|s|t|ve))?`,mt=`(?:`+Xe+`(?:D|LL|M|RE|S|T|VE))?`,ht=at+`?`,gt=`[`+Je+`]?`,_t=`(?:`+ut+`(?:`+[ot,st,ct].join(`|`)+`)`+gt+ht+`)*`,vt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,yt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,bt=gt+ht+_t,xt=`(?:`+[tt,st,ct].join(`|`)+`)`+bt,St=`(?:`+[ot+$e+`?`,$e,st,ct,Ze].join(`|`)+`)`,Ct=RegExp(Xe,`g`),wt=RegExp($e,`g`),Tt=RegExp(it+`(?=`+it+`)|`+St+bt,`g`),Et=RegExp([lt+`?`+nt+`+`+pt+`(?=`+[Qe,lt,`$`].join(`|`)+`)`,ft+`+`+mt+`(?=`+[Qe,lt+dt,`$`].join(`|`)+`)`,lt+`?`+dt+`+`+pt,lt+`+`+mt,yt,vt,et,xt].join(`|`),`g`),Dt=RegExp(`[`+ut+ze+Be+Je+`]`),Ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),At=-1,jt={};jt[ne]=jt[re]=jt[ie]=jt[ae]=jt[oe]=jt[W]=jt[se]=jt[ce]=jt[le]=!0,jt[S]=jt[C]=jt[U]=jt[T]=jt[te]=jt[E]=jt[O]=jt[k]=jt[j]=jt[M]=jt[P]=jt[L]=jt[R]=jt[z]=jt[H]=!1;var Mt={};Mt[S]=Mt[C]=Mt[U]=Mt[te]=Mt[T]=Mt[E]=Mt[ne]=Mt[re]=Mt[ie]=Mt[ae]=Mt[oe]=Mt[j]=Mt[M]=Mt[P]=Mt[L]=Mt[R]=Mt[z]=Mt[B]=Mt[W]=Mt[se]=Mt[ce]=Mt[le]=!0,Mt[O]=Mt[k]=Mt[H]=!1;var Nt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Pt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Ft={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},It={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Lt=parseFloat,Rt=parseInt,zt=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,Bt=typeof self==`object`&&self&&self.Object===Object&&self,Vt=zt||Bt||Function(`return this`)(),Ht=typeof e==`object`&&e&&!e.nodeType&&e,Ut=Ht&&typeof t==`object`&&t&&!t.nodeType&&t,Wt=Ut&&Ut.exports===Ht,Gt=Wt&&zt.process,Kt=function(){try{return Ut&&Ut.require&&Ut.require(`util`).types||Gt&&Gt.binding&&Gt.binding(`util`)}catch{}}(),qt=Kt&&Kt.isArrayBuffer,Jt=Kt&&Kt.isDate,Yt=Kt&&Kt.isMap,Xt=Kt&&Kt.isRegExp,Zt=Kt&&Kt.isSet,Qt=Kt&&Kt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function en(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function tn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function rn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function an(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function on(e,t){return!!(e!=null&&e.length)&&vn(e,t,0)>-1}function sn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function cn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ln(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function un(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function dn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var pn=Sn(`length`);function mn(e){return e.split(``)}function hn(e){return e.match(K)||[]}function gn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function _n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function vn(e,t,n){return t===t?Jn(e,t,n):_n(e,bn,n)}function yn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function bn(e){return e!==e}function xn(e,t){var n=e==null?0:e.length;return n?En(e,t)/n:_}function Sn(e){return function(t){return t==null?n:t[e]}}function Cn(e){return function(t){return e==null?n:e[t]}}function wn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Tn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function En(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function On(e,t){return cn(t,function(t){return[t,e[t]]})}function kn(e){return e&&e.slice(0,Qn(e)+1).replace(we,``)}function An(e){return function(t){return e(t)}}function jn(e,t){return cn(t,function(t){return e[t]})}function Mn(e,t){return e.has(t)}function Nn(e,t){for(var n=-1,r=e.length;++n<r&&vn(t,e[n],0)>-1;);return n}function Pn(e,t){for(var n=e.length;n--&&vn(t,e[n],0)>-1;);return n}function Fn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var In=Cn(Nt),Ln=Cn(Pt);function Rn(e){return`\\`+It[e]}function zn(e,t){return e==null?n:e[t]}function Bn(e){return Dt.test(e)}function Vn(e){return Ot.test(e)}function Hn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Un(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Wn(e,t){return function(n){return e(t(n))}}function Gn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Jn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Yn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Xn(e){return Bn(e)?er(e):pn(e)}function Zn(e){return Bn(e)?tr(e):mn(e)}function Qn(e){for(var t=e.length;t--&&Te.test(e.charAt(t)););return t}var $n=Cn(Ft);function er(e){for(var t=Tt.lastIndex=0;Tt.test(e);)++t;return t}function tr(e){return e.match(Tt)||[]}function nr(e){return e.match(Et)||[]}var rr=(function e(t){t=t==null?Vt:rr.defaults(Vt.Object(),t,rr.pick(Vt,kt));var Te=t.Array,K=t.Date,ze=t.Error,Be=t.Function,Ve=t.Math,He=t.Object,Ue=t.RegExp,We=t.String,Ge=t.TypeError,Ke=Te.prototype,qe=Be.prototype,Je=He.prototype,Ye=t[`__core-js_shared__`],Xe=qe.toString,Ze=Je.hasOwnProperty,Qe=0,$e=function(){var e=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),et=Je.toString,tt=Xe.call(He),nt=Vt._,rt=Ue(`^`+Xe.call(Ze).replace(Se,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),it=Wt?t.Buffer:n,at=t.Symbol,ot=t.Uint8Array,st=it?it.allocUnsafe:n,ct=Wn(He.getPrototypeOf,He),lt=He.create,ut=Je.propertyIsEnumerable,dt=Ke.splice,ft=at?at.isConcatSpreadable:n,pt=at?at.iterator:n,mt=at?at.toStringTag:n,ht=function(){try{var e=Mo(He,`defineProperty`);return e({},``,{}),e}catch{}}(),gt=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,_t=K&&K.now!==Vt.Date.now&&K.now,vt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,yt=Ve.ceil,bt=Ve.floor,xt=He.getOwnPropertySymbols,St=it?it.isBuffer:n,Tt=t.isFinite,Et=Ke.join,Dt=Wn(He.keys,He),Ot=Ve.max,Nt=Ve.min,Pt=K.now,Ft=t.parseInt,It=Ve.random,zt=Ke.reverse,Bt=Mo(t,`DataView`),Ht=Mo(t,`Map`),Ut=Mo(t,`Promise`),Gt=Mo(t,`Set`),Kt=Mo(t,`WeakMap`),pn=Mo(He,`create`),mn=Kt&&new Kt,Cn={},Jn=_s(Bt),er=_s(Ht),tr=_s(Ut),ir=_s(Gt),ar=_s(Kt),or=at?at.prototype:n,sr=or?or.valueOf:n,cr=or?or.toString:n;function Y(e){if(lu(e)&&!Kl(e)&&!(e instanceof fr)){if(e instanceof dr)return e;if(Ze.call(e,`__wrapped__`))return ys(e)}return new dr(e)}var lr=function(){function e(){}return function(t){if(!cu(t))return{};if(lt)return lt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function ur(){}function dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Y.templateSettings={escape:ge,evaluate:_e,interpolate:ve,variable:``,imports:{_:Y}},Y.prototype=ur.prototype,Y.prototype.constructor=Y,dr.prototype=lr(ur.prototype),dr.prototype.constructor=dr;function fr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function pr(){var e=new fr(this.__wrapped__);return e.__actions__=Ha(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ha(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ha(this.__views__),e}function mr(){if(this.__filtered__){var e=new fr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hr(){var e=this.__wrapped__.value(),t=this.__dir__,n=Kl(e),r=t<0,i=n?e.length:0,a=Lo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Nt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Ca(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}fr.prototype=lr(ur.prototype),fr.prototype.constructor=fr;function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(){this.__data__=pn?pn(null):{},this.size=0}function vr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function yr(e){var t=this.__data__;if(pn){var r=t[e];return r===i?n:r}return Ze.call(t,e)?t[e]:n}function br(e){var t=this.__data__;return pn?t[e]!==n:Ze.call(t,e)}function xr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=pn&&t===n?i:t,this}gr.prototype.clear=_r,gr.prototype.delete=vr,gr.prototype.get=yr,gr.prototype.has=br,gr.prototype.set=xr;function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(){this.__data__=[],this.size=0}function wr(e){var t=this.__data__,n=Yr(t,e);return n<0?!1:(n==t.length-1?t.pop():dt.call(t,n,1),--this.size,!0)}function Tr(e){var t=this.__data__,r=Yr(t,e);return r<0?n:t[r][1]}function Er(e){return Yr(this.__data__,e)>-1}function Dr(e,t){var n=this.__data__,r=Yr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Sr.prototype.clear=Cr,Sr.prototype.delete=wr,Sr.prototype.get=Tr,Sr.prototype.has=Er,Sr.prototype.set=Dr;function Or(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){this.size=0,this.__data__={hash:new gr,map:new(Ht||Sr),string:new gr}}function Ar(e){var t=Ao(this,e).delete(e);return this.size-=+!!t,t}function jr(e){return Ao(this,e).get(e)}function Mr(e){return Ao(this,e).has(e)}function Nr(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Or.prototype.clear=kr,Or.prototype.delete=Ar,Or.prototype.get=jr,Or.prototype.has=Mr,Or.prototype.set=Nr;function Pr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Or;++t<n;)this.add(e[t])}function Fr(e){return this.__data__.set(e,i),this}function Ir(e){return this.__data__.has(e)}Pr.prototype.add=Pr.prototype.push=Fr,Pr.prototype.has=Ir;function Lr(e){var t=this.__data__=new Sr(e);this.size=t.size}function Rr(){this.__data__=new Sr,this.size=0}function zr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Br(e){return this.__data__.get(e)}function Vr(e){return this.__data__.has(e)}function Hr(e,t){var n=this.__data__;if(n instanceof Sr){var r=n.__data__;if(!Ht||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Or(r)}return n.set(e,t),this.size=n.size,this}Lr.prototype.clear=Rr,Lr.prototype.delete=zr,Lr.prototype.get=Br,Lr.prototype.has=Vr,Lr.prototype.set=Hr;function Ur(e,t){var n=Kl(e),r=!n&&Gl(e),i=!n&&!r&&Zl(e),a=!n&&!r&&!i&&wu(e),o=n||r||i||a,s=o?Dn(e.length,We):[],c=s.length;for(var l in e)(t||Ze.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Go(l,c)))&&s.push(l);return s}function Wr(e){var t=e.length;return t?e[na(0,t-1)]:n}function Gr(e,t){return ms(Ha(e),ti(t,0,e.length))}function Kr(e){return ms(Ha(e))}function qr(e,t,r){(r!==n&&!Hl(e[t],r)||r===n&&!(t in e))&&$r(e,t,r)}function Jr(e,t,r){var i=e[t];(!(Ze.call(e,t)&&Hl(i,r))||r===n&&!(t in e))&&$r(e,t,r)}function Yr(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}function Xr(e,t,n,r){return si(e,function(e,i,a){t(r,e,n(e),a)}),r}function Zr(e,t){return e&&Ua(t,id(t),e)}function Qr(e,t){return e&&Ua(t,ad(t),e)}function $r(e,t,n){t==`__proto__`&&ht?ht(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ei(e,t){for(var r=-1,i=t.length,a=Te(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ti(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ni(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!cu(e))return e;var d=Kl(e);if(d){if(s=Bo(e),!c)return Ha(e,s)}else{var f=Io(e),p=f==k||f==A;if(Zl(e))return Ma(e,c);if(f==P||f==S||p&&!a){if(s=l||p?{}:Vo(e),!c)return l?Ga(e,Qr(s,e)):Wa(e,Zr(s,e))}else{if(!Mt[f])return a?e:{};s=Ho(e,f,c)}}o||=new Lr;var m=o.get(e);if(m)return m;o.set(e,s),xu(e)?e.forEach(function(n){s.add(ni(n,t,r,n,e,o))}):uu(e)&&e.forEach(function(n,i){s.set(i,ni(n,t,r,i,e,o))});var h=d?n:(u?l?To:wo:l?ad:id)(e);return tn(h||e,function(n,i){h&&(i=n,n=e[i]),Jr(s,i,ni(n,t,r,i,e,o))}),s}function ri(e){var t=id(e);return function(n){return ii(n,e,t)}}function ii(e,t,r){var i=r.length;if(e==null)return!i;for(e=He(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ai(e,t,i){if(typeof e!=`function`)throw new Ge(r);return us(function(){e.apply(n,i)},t)}function oi(e,t,n,r){var i=-1,a=on,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=cn(t,An(n))),r?(a=sn,o=!1):t.length>=200&&(a=Mn,o=!1,t=new Pr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var si=Ja(gi),ci=Ja(_i,!0);function li(e,t){var n=!0;return si(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function ui(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Cu(s):r(s,c)))var c=s,l=o}return l}function di(e,t,r,i){var a=e.length;for(r=Mu(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Mu(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function fi(e,t){var n=[];return si(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function pi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Wo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?pi(s,t-1,n,r,i):ln(i,s):r||(i[i.length]=s)}return i}var mi=Ya(),hi=Ya(!0);function gi(e,t){return e&&mi(e,t,id)}function _i(e,t){return e&&hi(e,t,id)}function vi(e,t){return an(t,function(t){return au(e[t])})}function yi(e,t){t=Oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gs(t[r++])];return r&&r==i?e:n}function bi(e,t,n){var r=t(e);return Kl(e)?r:ln(r,n(e))}function xi(e){return e==null?e===n?V:N:mt&&mt in He(e)?No(e):is(e)}function Si(e,t){return e>t}function Ci(e,t){return e!=null&&Ze.call(e,t)}function wi(e,t){return e!=null&&t in He(e)}function Ti(e,t,n){return e>=Nt(t,n)&&e<Ot(t,n)}function Ei(e,t,r){for(var i=r?sn:on,a=e[0].length,o=e.length,s=o,c=Te(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=cn(d,An(t))),l=Nt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Pr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Mn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Mn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Di(e,t,n,r){return gi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Oi(e,t,r){t=Oa(t,e),e=os(e,t);var i=e==null?e:e[gs(Ws(t))];return i==null?n:$t(i,e,r)}function ki(e){return lu(e)&&xi(e)==S}function Ai(e){return lu(e)&&xi(e)==U}function ji(e){return lu(e)&&xi(e)==E}function Mi(e,t,n,r,i){return e===t?!0:e==null||t==null||!lu(e)&&!lu(t)?e!==e&&t!==t:Ni(e,t,n,r,Mi,i)}function Ni(e,t,n,r,i,a){var o=Kl(e),s=Kl(t),c=o?C:Io(e),l=s?C:Io(t);c=c==S?P:c,l=l==S?P:l;var u=c==P,d=l==P,f=c==l;if(f&&Zl(e)){if(!Zl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Lr,o||wu(e)?bo(e,t,n,r,i,a):xo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&Ze.call(e,`__wrapped__`),m=d&&Ze.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Lr,i(h,g,n,r,a)}}return f?(a||=new Lr,So(e,t,n,r,i,a)):!1}function Pi(e){return lu(e)&&Io(e)==j}function Fi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=He(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Lr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Mi(d,u,3,i,f):p))return!1}}return!0}function Ii(e){return!cu(e)||Xo(e)?!1:(au(e)?rt:Ne).test(_s(e))}function Li(e){return lu(e)&&xi(e)==L}function Ri(e){return lu(e)&&Io(e)==R}function zi(e){return lu(e)&&su(e.length)&&!!jt[xi(e)]}function Bi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Kl(e)?Ki(e[0],e[1]):Gi(e):Ef(e)}function Vi(e){if(!Qo(e))return Dt(e);var t=[];for(var n in He(e))Ze.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Hi(e){if(!cu(e))return rs(e);var t=Qo(e),n=[];for(var r in e)r==`constructor`&&(t||!Ze.call(e,r))||n.push(r);return n}function Ui(e,t){return e<t}function Wi(e,t){var n=-1,r=Jl(e)?Te(e.length):[];return si(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Gi(e){var t=jo(e);return t.length==1&&t[0][2]?es(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function Ki(e,t){return qo(e)&&$o(t)?es(gs(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):Mi(t,i,3)}}function qi(e,t,r,i,a){e!==t&&mi(t,function(o,s){if(a||=new Lr,cu(o))Ji(e,t,s,r,qi,i,a);else{var c=i?i(cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),qr(e,s,c)}},ad)}function Ji(e,t,r,i,a,o,s){var c=cs(e,r),l=cs(t,r),u=s.get(l);if(u){qr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Kl(l),m=!p&&Zl(l),h=!p&&!m&&wu(l);d=l,p||m||h?Kl(c)?d=c:Yl(c)?d=Ha(c):m?(f=!1,d=Ma(l,!0)):h?(f=!1,d=La(l,!0)):d=[]:vu(l)||Gl(l)?(d=c,Gl(c)?d=Fu(c):(!cu(c)||au(c))&&(d=Vo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),qr(e,r,d)}function Yi(e,t){var r=e.length;if(r)return t+=t<0?r:0,Go(t,r)?e[t]:n}function Xi(e,t,n){t=t.length?cn(t,function(e){return Kl(e)?function(t){return yi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=cn(t,An(ko())),Tn(Wi(e,function(e,n,i){return{criteria:cn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return za(e,t,n)})}function Zi(e,t){return Qi(e,t,function(t,n){return ed(e,n)})}function Qi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=yi(e,o);n(s,o)&&ca(a,Oa(o,e),s)}return a}function $i(e){return function(t){return yi(t,e)}}function ea(e,t,n,r){var i=r?yn:vn,a=-1,o=t.length,s=e;for(e===t&&(t=Ha(t)),n&&(s=cn(e,An(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&dt.call(s,c,1),dt.call(e,c,1);return e}function ta(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Go(i)?dt.call(e,i,1):ba(e,i)}}return e}function na(e,t){return e+bt(It()*(t-e+1))}function ra(e,t,n,r){for(var i=-1,a=Ot(yt((t-e)/(n||1)),0),o=Te(a);a--;)o[r?a:++i]=e,e+=n;return o}function ia(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=bt(t/2),t&&(e+=e);while(t);return n}function aa(e,t){return ds(as(e,t,pf),e+``)}function oa(e){return Wr(Cd(e))}function sa(e,t){var n=Cd(e);return ms(n,ti(t,0,n.length))}function ca(e,t,r,i){if(!cu(e))return e;t=Oa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=gs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=cu(d)?d:Go(t[a+1])?[]:{})}Jr(c,l,u),c=c[l]}return e}var la=mn?function(e,t){return mn.set(e,t),e}:pf,ua=ht?function(e,t){return ht(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function da(e){return ms(Cd(e))}function fa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Te(i);++r<i;)a[r]=e[r+t];return a}function pa(e,t){var n;return si(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ma(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=b){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Cu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ha(e,t,pf,n)}function ha(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Cu(t),u=t===n;a<o;){var d=bt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Cu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Nt(o,y)}function ga(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Hl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function _a(e){return typeof e==`number`?e:Cu(e)?_:+e}function va(e){if(typeof e==`string`)return e;if(Kl(e))return cn(e,va)+``;if(Cu(e))return cr?cr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ya(e,t,n){var r=-1,i=on,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=sn;else if(a>=200){var l=t?null:mo(e);if(l)return Kn(l);o=!1,i=Mn,c=new Pr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function ba(e,t){t=Oa(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=gs(t[n]);if(i===`__proto__`&&!Ze.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=os(e,t);return a==null||delete a[gs(Ws(t))]}function xa(e,t,n,r){return ca(e,t,n(yi(e,t)),r)}function Sa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?fa(e,r?0:a,r?a+1:i):fa(e,r?a+1:0,r?i:a)}function Ca(e,t){var n=e;return n instanceof fr&&(n=n.value()),un(t,function(e,t){return t.func.apply(t.thisArg,ln([e],t.args))},n)}function wa(e,t,n){var r=e.length;if(r<2)return r?ya(e[0]):[];for(var i=-1,a=Te(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=oi(a[i]||o,e[s],t,n));return ya(pi(a,1),t,n)}function Ta(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ea(e){return Yl(e)?e:[]}function Da(e){return typeof e==`function`?e:pf}function Oa(e,t){return Kl(e)?e:qo(e,t)?[e]:hs(Lu(e))}var ka=aa;function Aa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:fa(e,t,r)}var ja=gt||function(e){return Vt.clearTimeout(e)};function Ma(e,t){if(t)return e.slice();var n=e.length,r=st?st(n):new e.constructor(n);return e.copy(r),r}function Na(e){var t=new e.constructor(e.byteLength);return new ot(t).set(new ot(e)),t}function Pa(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fa(e){var t=new e.constructor(e.source,J.exec(e));return t.lastIndex=e.lastIndex,t}function Ia(e){return sr?He(sr.call(e)):{}}function La(e,t){var n=t?Na(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ra(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Cu(e),s=t!==n,c=t===null,l=t===t,u=Cu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function za(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ra(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ba(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Ot(a-o,0),u=Te(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Va(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Ot(a-s,0),d=Te(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ha(e,t){var n=-1,r=e.length;for(t||=Te(r);++n<r;)t[n]=e[n];return t}function Ua(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?$r(r,c,l):Jr(r,c,l)}return r}function Wa(e,t){return Ua(e,Po(e),t)}function Ga(e,t){return Ua(e,Fo(e),t)}function Ka(e,t){return function(n,r){var i=Kl(n)?en:Xr,a=t?t():{};return i(n,e,ko(r,2),a)}}function qa(e){return aa(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Ko(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=He(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ja(e,t){return function(n,r){if(n==null)return n;if(!Jl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=He(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Ya(e){return function(t,n,r){for(var i=-1,a=He(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Xa(e,t,n){var r=t&o,i=$a(e);function a(){return(this&&this!==Vt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Za(e){return function(t){t=Lu(t);var r=Bn(t)?Zn(t):n,i=r?r[0]:t.charAt(0),a=r?Aa(r,1).join(``):t.slice(1);return i[e]()+a}}function Qa(e){return function(t){return un(rf(Ad(t).replace(Ct,``)),e,``)}}function $a(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=lr(e.prototype),r=e.apply(n,t);return cu(r)?r:n}}function eo(e,t,r){var i=$a(e);function a(){for(var o=arguments.length,s=Te(o),c=o,l=Oo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Gn(s,l);return o-=u.length,o<r?fo(e,t,ro,a.placeholder,n,s,u,n,n,r-o):$t(this&&this!==Vt&&this instanceof a?i:e,this,s)}return a}function to(e){return function(t,r,i){var a=He(t);if(!Jl(t)){var o=ko(r,3);t=id(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function no(e){return Co(function(t){var i=t.length,a=i,o=dr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new Ge(r);if(o&&!l&&Do(s)==`wrapper`)var l=new dr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Do(s),m=d==`wrapper`?Eo(s):n;l=m&&Yo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Do(m[0])].apply(l,m[3]):s.length==1&&Yo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Kl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function ro(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:$a(e);function C(){for(var n=arguments.length,o=Te(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Oo(C),l=Fn(o,c);if(i&&(o=Ba(o,i,a,b)),u&&(o=Va(o,u,d,b)),n-=l,b&&n<g){var f=Gn(o,c);return fo(e,t,ro,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=ss(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Vt&&this instanceof C&&(w=S||$a(w)),w.apply(m,o)}return C}function io(e,t){return function(n,r){return Di(n,e,t(r),{})}}function ao(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=va(r),i=va(i)):(r=_a(r),i=_a(i)),a=e(r,i)}return a}}function oo(e){return Co(function(t){return t=cn(t,An(ko())),aa(function(n){var r=this;return e(t,function(e){return $t(e,r,n)})})})}function so(e,t){t=t===n?` `:va(t);var r=t.length;if(r<2)return r?ia(t,e):t;var i=ia(t,yt(e/Xn(t)));return Bn(t)?Aa(Zn(i),0,e).join(``):i.slice(0,e)}function co(e,t,n,r){var i=t&o,a=$a(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=Te(l+o),d=this&&this!==Vt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return $t(d,i?n:this,u)}return s}function lo(e){return function(t,r,i){return i&&typeof i!=`number`&&Ko(t,r,i)&&(r=i=n),t=ju(t),r===n?(r=t,t=0):r=ju(r),i=i===n?t<r?1:-1:ju(i),ra(t,r,i,e)}}function uo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Pu(t),n=Pu(n)),e(t,n)}}function fo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Yo(e)&&ls(S,x),S.placeholder=i,fs(S,e,t)}function po(e){var t=Ve[e];return function(e,n){if(e=Pu(e),n=n==null?0:Nt(Mu(n),292),n&&Tt(e)){var r=(Lu(e)+`e`).split(`e`);return r=(Lu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var mo=Gt&&1/Kn(new Gt([,-0]))[1]==h?function(e){return new Gt(e)}:xf;function ho(e){return function(t){var n=Io(t);return n==j?Un(t):n==R?qn(t):On(t,e(t))}}function go(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new Ge(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Ot(Mu(m),0),h=h===n?h:Mu(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Eo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ns(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Ot(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Xa(e,t,i);else S=t==c||t==l?eo(e,t,h):(t==u||t==(o|u))&&!f.length?co(e,t,i,a):ro.apply(n,x);return fs((b?la:ls)(S,x),e,t)}function _o(e,t,r,i){return e===n||Hl(e,Je[r])&&!Ze.call(i,r)?t:e}function vo(e,t,r,i,a,o){return cu(e)&&cu(t)&&(o.set(t,e),qi(e,t,n,vo,o),o.delete(t)),e}function yo(e){return vu(e)?n:e}function bo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Pr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!fn(t,function(e,t){if(!Mn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function xo(e,t,n,r,i,a,o){switch(n){case te:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U:return!(e.byteLength!=t.byteLength||!a(new ot(e),new ot(t)));case T:case E:case M:return Hl(+e,+t);case O:return e.name==t.name&&e.message==t.message;case L:case z:return e==t+``;case j:var s=Un;case R:var c=r&1;if(s||=Kn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=bo(s(e),s(t),r,i,a,o);return o.delete(e),u;case B:if(sr)return sr.call(e)==sr.call(t)}return!1}function So(e,t,r,i,a,o){var s=r&1,c=wo(e),l=c.length;if(l!=wo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Ze.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Co(e){return ds(as(e,n,Ns),e+``)}function wo(e){return bi(e,id,Po)}function To(e){return bi(e,ad,Fo)}var Eo=mn?function(e){return mn.get(e)}:xf;function Do(e){for(var t=e.name+``,n=Cn[t],r=Ze.call(Cn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Oo(e){return(Ze.call(Y,`placeholder`)?Y:e).placeholder}function ko(){var e=Y.iteratee||mf;return e=e===mf?Bi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n=e.__data__;return Jo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function jo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,$o(i)]}return t}function Mo(e,t){var r=zn(e,t);return Ii(r)?r:n}function No(e){var t=Ze.call(e,mt),r=e[mt];try{e[mt]=n;var i=!0}catch{}var a=et.call(e);return i&&(t?e[mt]=r:delete e[mt]),a}var Po=xt?function(e){return e==null?[]:(e=He(e),an(xt(e),function(t){return ut.call(e,t)}))}:Af,Fo=xt?function(e){for(var t=[];e;)ln(t,Po(e)),e=ct(e);return t}:Af,Io=xi;(Bt&&Io(new Bt(new ArrayBuffer(1)))!=te||Ht&&Io(new Ht)!=j||Ut&&Io(Ut.resolve())!=F||Gt&&Io(new Gt)!=R||Kt&&Io(new Kt)!=H)&&(Io=function(e){var t=xi(e),r=t==P?e.constructor:n,i=r?_s(r):``;if(i)switch(i){case Jn:return te;case er:return j;case tr:return F;case ir:return R;case ar:return H}return t});function Lo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Nt(t,e+o);break;case`takeRight`:e=Ot(e,t-o);break}}return{start:e,end:t}}function Ro(e){var t=e.match(De);return t?t[1].split(Oe):[]}function zo(e,t,n){t=Oa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&su(i)&&Go(o,i)&&(Kl(e)||Gl(e)))}function Bo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Ze.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Vo(e){return typeof e.constructor==`function`&&!Qo(e)?lr(ct(e)):{}}function Ho(e,t,n){var r=e.constructor;switch(t){case U:return Na(e);case T:case E:return new r(+e);case te:return Pa(e,n);case ne:case re:case ie:case ae:case oe:case W:case se:case ce:case le:return La(e,n);case j:return new r;case M:case z:return new r(e);case L:return Fa(e);case R:return new r;case B:return Ia(e)}}function Uo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Ee,`{
|
|
14
14
|
/* [wrapped with `+t+`] */
|
|
15
15
|
`)}function Wo(e){return Kl(e)||Gl(e)||!!(ft&&e&&e[ft])}function Go(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Fe.test(e))&&e>-1&&e%1==0&&e<t}function Ko(e,t,n){if(!cu(n))return!1;var r=typeof t;return(r==`number`?Jl(n)&&Go(t,n.length):r==`string`&&t in n)?Hl(n[t],e):!1}function qo(e,t){if(Kl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Cu(e)?!0:be.test(e)||!ye.test(e)||t!=null&&e in He(t)}function Jo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Yo(e){var t=Do(e),n=Y[t];if(typeof n!=`function`||!(t in fr.prototype))return!1;if(e===n)return!0;var r=Eo(n);return!!r&&e===r[0]}function Xo(e){return!!$e&&$e in e}var Zo=Ye?au:jf;function Qo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Je)}function $o(e){return e===e&&!cu(e)}function es(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in He(r))}}function ts(e){var t=wl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ns(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ba(m,d,t[4]):d,e[4]=m?Gn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Va(m,d,t[6]):d,e[6]=m?Gn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Nt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function rs(e){var t=[];if(e!=null)for(var n in He(e))t.push(n);return t}function is(e){return et.call(e)}function as(e,t,r){return t=Ot(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Ot(n.length-t,0),o=Te(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Te(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),$t(e,this,s)}}function os(e,t){return t.length<2?e:yi(e,fa(t,0,-1))}function ss(e,t){for(var r=e.length,i=Nt(t.length,r),a=Ha(e);i--;){var o=t[i];e[i]=Go(o,r)?a[o]:n}return e}function cs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var ls=ps(la),us=vt||function(e,t){return Vt.setTimeout(e,t)},ds=ps(ua);function fs(e,t,n){var r=t+``;return ds(e,Uo(r,vs(Ro(r),n)))}function ps(e){var t=0,r=0;return function(){var i=Pt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=na(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var hs=ts(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(xe,function(e,n,r,i){t.push(r?i.replace(Ae,`$1`):n||e)}),t});function gs(e){if(typeof e==`string`||Cu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function _s(e){if(e!=null){try{return Xe.call(e)}catch{}try{return e+``}catch{}}return``}function vs(e,t){return tn(x,function(n){var r=`_.`+n[0];t&n[1]&&!on(e,r)&&e.push(r)}),e.sort()}function ys(e){if(e instanceof fr)return e.clone();var t=new dr(e.__wrapped__,e.__chain__);return t.__actions__=Ha(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function bs(e,t,r){t=(r?Ko(e,t,r):t===n)?1:Ot(Mu(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Te(yt(i/t));a<i;)s[o++]=fa(e,a,a+=t);return s}function xs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ss(){var e=arguments.length;if(!e)return[];for(var t=Te(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return ln(Kl(n)?Ha(n):[n],pi(t,1))}var Cs=aa(function(e,t){return Yl(e)?oi(e,pi(t,1,Yl,!0)):[]}),ws=aa(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?oi(e,pi(t,1,Yl,!0),ko(r,2)):[]}),Ts=aa(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?oi(e,pi(t,1,Yl,!0),n,r):[]});function Es(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),fa(e,t<0?0:t,i)):[]}function Ds(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),t=i-t,fa(e,0,t<0?0:t)):[]}function Os(e,t){return e&&e.length?Sa(e,ko(t,3),!0,!0):[]}function ks(e,t){return e&&e.length?Sa(e,ko(t,3),!0):[]}function As(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Ko(e,t,n)&&(n=0,r=i),di(e,t,n,r)):[]}function js(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Mu(n);return i<0&&(i=Ot(r+i,0)),_n(e,ko(t,3),i)}function Ms(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Mu(r),a=r<0?Ot(i+a,0):Nt(a,i-1)),_n(e,ko(t,3),a,!0)}function Ns(e){return e!=null&&e.length?pi(e,1):[]}function Ps(e){return e!=null&&e.length?pi(e,h):[]}function Fs(e,t){return e!=null&&e.length?(t=t===n?1:Mu(t),pi(e,t)):[]}function Is(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];$r(r,i[0],i[1])}return r}function Ls(e){return e&&e.length?e[0]:n}function Rs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Mu(n);return i<0&&(i=Ot(r+i,0)),vn(e,t,i)}function zs(e){return e!=null&&e.length?fa(e,0,-1):[]}var Bs=aa(function(e){var t=cn(e,Ea);return t.length&&t[0]===e[0]?Ei(t):[]}),Vs=aa(function(e){var t=Ws(e),r=cn(e,Ea);return t===Ws(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ei(r,ko(t,2)):[]}),Hs=aa(function(e){var t=Ws(e),r=cn(e,Ea);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ei(r,n,t):[]});function Us(e,t){return e==null?``:Et.call(e,t)}function Ws(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Gs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Mu(r),a=a<0?Ot(i+a,0):Nt(a,i-1)),t===t?Yn(e,t,a):_n(e,bn,a,!0)}function Ks(e,t){return e&&e.length?Yi(e,Mu(t)):n}var qs=aa(Js);function Js(e,t){return e&&e.length&&t&&t.length?ea(e,t):e}function Ys(e,t,n){return e&&e.length&&t&&t.length?ea(e,t,ko(n,2)):e}function Xs(e,t,r){return e&&e.length&&t&&t.length?ea(e,t,n,r):e}var Zs=Co(function(e,t){var n=e==null?0:e.length,r=ei(e,t);return ta(e,cn(t,function(e){return Go(e,n)?+e:e}).sort(Ra)),r});function Qs(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=ko(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ta(e,i),n}function $s(e){return e==null?e:zt.call(e)}function ec(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Ko(e,t,r)?(t=0,r=i):(t=t==null?0:Mu(t),r=r===n?i:Mu(r)),fa(e,t,r)):[]}function tc(e,t){return ma(e,t)}function nc(e,t,n){return ha(e,t,ko(n,2))}function rc(e,t){var n=e==null?0:e.length;if(n){var r=ma(e,t);if(r<n&&Hl(e[r],t))return r}return-1}function ic(e,t){return ma(e,t,!0)}function ac(e,t,n){return ha(e,t,ko(n,2),!0)}function oc(e,t){if(e!=null&&e.length){var n=ma(e,t,!0)-1;if(Hl(e[n],t))return n}return-1}function sc(e){return e&&e.length?ga(e):[]}function cc(e,t){return e&&e.length?ga(e,ko(t,2)):[]}function X(e){var t=e==null?0:e.length;return t?fa(e,1,t):[]}function lc(e,t,r){return e&&e.length?(t=r||t===n?1:Mu(t),fa(e,0,t<0?0:t)):[]}function uc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),t=i-t,fa(e,t<0?0:t,i)):[]}function dc(e,t){return e&&e.length?Sa(e,ko(t,3),!1,!0):[]}function fc(e,t){return e&&e.length?Sa(e,ko(t,3)):[]}var pc=aa(function(e){return ya(pi(e,1,Yl,!0))}),mc=aa(function(e){var t=Ws(e);return Yl(t)&&(t=n),ya(pi(e,1,Yl,!0),ko(t,2))}),hc=aa(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,ya(pi(e,1,Yl,!0),n,t)});function gc(e){return e&&e.length?ya(e):[]}function _c(e,t){return e&&e.length?ya(e,ko(t,2)):[]}function vc(e,t){return t=typeof t==`function`?t:n,e&&e.length?ya(e,n,t):[]}function yc(e){if(!(e&&e.length))return[];var t=0;return e=an(e,function(e){if(Yl(e))return t=Ot(e.length,t),!0}),Dn(t,function(t){return cn(e,Sn(t))})}function bc(e,t){if(!(e&&e.length))return[];var r=yc(e);return t==null?r:cn(r,function(e){return $t(t,n,e)})}var xc=aa(function(e,t){return Yl(e)?oi(e,t):[]}),Sc=aa(function(e){return wa(an(e,Yl))}),Cc=aa(function(e){var t=Ws(e);return Yl(t)&&(t=n),wa(an(e,Yl),ko(t,2))}),wc=aa(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,wa(an(e,Yl),n,t)}),Tc=aa(yc);function Ec(e,t){return Ta(e||[],t||[],Jr)}function Dc(e,t){return Ta(e||[],t||[],ca)}var Oc=aa(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,bc(e,r)});function kc(e){var t=Y(e);return t.__chain__=!0,t}function Ac(e,t){return t(e),e}function jc(e,t){return t(e)}var Mc=Co(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ei(t,e)};return t>1||this.__actions__.length||!(i instanceof fr)||!Go(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:jc,args:[a],thisArg:n}),new dr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Nc(){return kc(this)}function Pc(){return new dr(this.value(),this.__chain__)}function Fc(){this.__values__===n&&(this.__values__=Au(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Ic(){return this}function Lc(e){for(var t,r=this;r instanceof ur;){var i=ys(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Rc(){var e=this.__wrapped__;if(e instanceof fr){var t=e;return this.__actions__.length&&(t=new fr(this)),t=t.reverse(),t.__actions__.push({func:jc,args:[$s],thisArg:n}),new dr(t,this.__chain__)}return this.thru($s)}function zc(){return Ca(this.__wrapped__,this.__actions__)}var Bc=Ka(function(e,t,n){Ze.call(e,n)?++e[n]:$r(e,n,1)});function Vc(e,t,r){var i=Kl(e)?rn:li;return r&&Ko(e,t,r)&&(t=n),i(e,ko(t,3))}function Hc(e,t){return(Kl(e)?an:fi)(e,ko(t,3))}var Uc=to(js),Wc=to(Ms);function Gc(e,t){return pi(el(e,t),1)}function Kc(e,t){return pi(el(e,t),h)}function qc(e,t,r){return r=r===n?1:Mu(r),pi(el(e,t),r)}function Jc(e,t){return(Kl(e)?tn:si)(e,ko(t,3))}function Yc(e,t){return(Kl(e)?nn:ci)(e,ko(t,3))}var Xc=Ka(function(e,t,n){Ze.call(e,n)?e[n].push(t):$r(e,n,[t])});function Zc(e,t,n,r){e=Jl(e)?e:Cd(e),n=n&&!r?Mu(n):0;var i=e.length;return n<0&&(n=Ot(i+n,0)),Su(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&vn(e,t,n)>-1}var Qc=aa(function(e,t,n){var r=-1,i=typeof t==`function`,a=Jl(e)?Te(e.length):[];return si(e,function(e){a[++r]=i?$t(t,e,n):Oi(e,t,n)}),a}),$c=Ka(function(e,t,n){$r(e,n,t)});function el(e,t){return(Kl(e)?cn:Wi)(e,ko(t,3))}function tl(e,t,r,i){return e==null?[]:(Kl(t)||(t=t==null?[]:[t]),r=i?n:r,Kl(r)||(r=r==null?[]:[r]),Xi(e,t,r))}var nl=Ka(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function rl(e,t,n){var r=Kl(e)?un:wn,i=arguments.length<3;return r(e,ko(t,4),n,i,si)}function il(e,t,n){var r=Kl(e)?dn:wn,i=arguments.length<3;return r(e,ko(t,4),n,i,ci)}function al(e,t){return(Kl(e)?an:fi)(e,Tl(ko(t,3)))}function ol(e){return(Kl(e)?Wr:oa)(e)}function sl(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Mu(t),(Kl(e)?Gr:sa)(e,t)}function cl(e){return(Kl(e)?Kr:da)(e)}function ll(e){if(e==null)return 0;if(Jl(e))return Su(e)?Xn(e):e.length;var t=Io(e);return t==j||t==R?e.size:Vi(e).length}function ul(e,t,r){var i=Kl(e)?fn:pa;return r&&Ko(e,t,r)&&(t=n),i(e,ko(t,3))}var dl=aa(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),Xi(e,pi(t,1),[])}),fl=_t||function(){return Vt.Date.now()};function pl(e,t){if(typeof t!=`function`)throw new Ge(r);return e=Mu(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,go(e,f,n,n,n,n,t)}function hl(e,t){var i;if(typeof t!=`function`)throw new Ge(r);return e=Mu(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var gl=aa(function(e,t,n){var r=o;if(n.length){var i=Gn(n,Oo(gl));r|=u}return go(e,r,t,n,i)}),_l=aa(function(e,t,n){var r=o|s;if(n.length){var i=Gn(n,Oo(_l));r|=u}return go(t,r,e,n,i)});function vl(e,t,r){t=r?n:t;var i=go(e,c,n,n,n,n,n,t);return i.placeholder=vl.placeholder,i}function yl(e,t,r){t=r?n:t;var i=go(e,l,n,n,n,n,n,t);return i.placeholder=yl.placeholder,i}function bl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Ge(r);t=Pu(t)||0,cu(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?Ot(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=us(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Nt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=fl();if(v(e))return b(e);l=us(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&ja(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(fl())}function C(){var e=fl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return ja(l),l=us(y,t),h(u)}return l===n&&(l=us(y,t)),c}return C.cancel=x,C.flush=S,C}var xl=aa(function(e,t){return ai(e,1,t)}),Sl=aa(function(e,t,n){return ai(e,Pu(t)||0,n)});function Cl(e){return go(e,m)}function wl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Ge(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wl.Cache||Or),n}wl.Cache=Or;function Tl(e){if(typeof e!=`function`)throw new Ge(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function El(e){return hl(2,e)}var Dl=ka(function(e,t){t=t.length==1&&Kl(t[0])?cn(t[0],An(ko())):cn(pi(t,1),An(ko()));var n=t.length;return aa(function(r){for(var i=-1,a=Nt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return $t(e,this,r)})}),Ol=aa(function(e,t){return go(e,u,n,t,Gn(t,Oo(Ol)))}),kl=aa(function(e,t){return go(e,d,n,t,Gn(t,Oo(kl)))}),Al=Co(function(e,t){return go(e,p,n,n,n,t)});function jl(e,t){if(typeof e!=`function`)throw new Ge(r);return t=t===n?t:Mu(t),aa(e,t)}function Ml(e,t){if(typeof e!=`function`)throw new Ge(r);return t=t==null?0:Ot(Mu(t),0),aa(function(n){var r=n[t],i=Aa(n,0,t);return r&&ln(i,r),$t(e,this,i)})}function Nl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new Ge(r);return cu(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),bl(e,t,{leading:i,maxWait:t,trailing:a})}function Pl(e){return ml(e,1)}function Fl(e,t){return Ol(Da(t),e)}function Il(){if(!arguments.length)return[];var e=arguments[0];return Kl(e)?e:[e]}function Ll(e){return ni(e,4)}function Rl(e,t){return t=typeof t==`function`?t:n,ni(e,4,t)}function zl(e){return ni(e,5)}function Bl(e,t){return t=typeof t==`function`?t:n,ni(e,5,t)}function Vl(e,t){return t==null||ii(e,t,id(t))}function Hl(e,t){return e===t||e!==e&&t!==t}var Ul=uo(Si),Wl=uo(function(e,t){return e>=t}),Gl=ki(function(){return arguments}())?ki:function(e){return lu(e)&&Ze.call(e,`callee`)&&!ut.call(e,`callee`)},Kl=Te.isArray,ql=qt?An(qt):Ai;function Jl(e){return e!=null&&su(e.length)&&!au(e)}function Yl(e){return lu(e)&&Jl(e)}function Xl(e){return e===!0||e===!1||lu(e)&&xi(e)==T}var Zl=St||jf,Ql=Jt?An(Jt):ji;function $l(e){return lu(e)&&e.nodeType===1&&!vu(e)}function eu(e){if(e==null)return!0;if(Jl(e)&&(Kl(e)||typeof e==`string`||typeof e.splice==`function`||Zl(e)||wu(e)||Gl(e)))return!e.length;var t=Io(e);if(t==j||t==R)return!e.size;if(Qo(e))return!Vi(e).length;for(var n in e)if(Ze.call(e,n))return!1;return!0}function tu(e,t){return Mi(e,t)}function nu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Mi(e,t,n,r):!!i}function ru(e){if(!lu(e))return!1;var t=xi(e);return t==O||t==D||typeof e.message==`string`&&typeof e.name==`string`&&!vu(e)}function iu(e){return typeof e==`number`&&Tt(e)}function au(e){if(!cu(e))return!1;var t=xi(e);return t==k||t==A||t==w||t==I}function ou(e){return typeof e==`number`&&e==Mu(e)}function su(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function cu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function lu(e){return typeof e==`object`&&!!e}var uu=Yt?An(Yt):Pi;function du(e,t){return e===t||Fi(e,t,jo(t))}function fu(e,t,r){return r=typeof r==`function`?r:n,Fi(e,t,jo(t),r)}function pu(e){return _u(e)&&e!=+e}function mu(e){if(Zo(e))throw new ze(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ii(e)}function hu(e){return e===null}function gu(e){return e==null}function _u(e){return typeof e==`number`||lu(e)&&xi(e)==M}function vu(e){if(!lu(e)||xi(e)!=P)return!1;var t=ct(e);if(t===null)return!0;var n=Ze.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Xe.call(n)==tt}var yu=Xt?An(Xt):Li;function bu(e){return ou(e)&&e>=-9007199254740991&&e<=g}var xu=Zt?An(Zt):Ri;function Su(e){return typeof e==`string`||!Kl(e)&&lu(e)&&xi(e)==z}function Cu(e){return typeof e==`symbol`||lu(e)&&xi(e)==B}var wu=Qt?An(Qt):zi;function Tu(e){return e===n}function Eu(e){return lu(e)&&Io(e)==H}function Du(e){return lu(e)&&xi(e)==ee}var Ou=uo(Ui),ku=uo(function(e,t){return e<=t});function Au(e){if(!e)return[];if(Jl(e))return Su(e)?Zn(e):Ha(e);if(pt&&e[pt])return Hn(e[pt]());var t=Io(e);return(t==j?Un:t==R?Kn:Cd)(e)}function ju(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*17976931348623157e292:e===e?e:0):e===0?e:0}function Mu(e){var t=ju(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?ti(Mu(e),0,v):0}function Pu(e){if(typeof e==`number`)return e;if(Cu(e))return _;if(cu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=cu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=kn(e);var n=Me.test(e);return n||Pe.test(e)?Rt(e.slice(2),n?2:8):je.test(e)?_:+e}function Fu(e){return Ua(e,ad(e))}function Iu(e){return e?ti(Mu(e),-9007199254740991,g):e===0?e:0}function Lu(e){return e==null?``:va(e)}var Ru=qa(function(e,t){if(Qo(t)||Jl(t)){Ua(t,id(t),e);return}for(var n in t)Ze.call(t,n)&&Jr(e,n,t[n])}),zu=qa(function(e,t){Ua(t,ad(t),e)}),Bu=qa(function(e,t,n,r){Ua(t,ad(t),e,r)}),Vu=qa(function(e,t,n,r){Ua(t,id(t),e,r)}),Hu=Co(ei);function Uu(e,t){var n=lr(e);return t==null?n:Zr(n,t)}var Wu=aa(function(e,t){e=He(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Ko(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Hl(d,Je[u])&&!Ze.call(e,u))&&(e[u]=o[u])}return e}),Z=aa(function(e){return e.push(n,vo),$t(ld,n,e)});function Gu(e,t){return gn(e,ko(t,3),gi)}function Ku(e,t){return gn(e,ko(t,3),_i)}function qu(e,t){return e==null?e:mi(e,ko(t,3),ad)}function Ju(e,t){return e==null?e:hi(e,ko(t,3),ad)}function Q(e,t){return e&&gi(e,ko(t,3))}function Yu(e,t){return e&&_i(e,ko(t,3))}function Xu(e){return e==null?[]:vi(e,id(e))}function Zu(e){return e==null?[]:vi(e,ad(e))}function Qu(e,t,r){var i=e==null?n:yi(e,t);return i===n?r:i}function $u(e,t){return e!=null&&zo(e,t,Ci)}function ed(e,t){return e!=null&&zo(e,t,wi)}var td=io(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=et.call(t)),e[t]=n},lf(pf)),nd=io(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=et.call(t)),Ze.call(e,t)?e[t].push(n):e[t]=[n]},ko),rd=aa(Oi);function id(e){return Jl(e)?Ur(e):Vi(e)}function ad(e){return Jl(e)?Ur(e,!0):Hi(e)}function od(e,t){var n={};return t=ko(t,3),gi(e,function(e,r,i){$r(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=ko(t,3),gi(e,function(e,r,i){$r(n,r,t(e,r,i))}),n}var cd=qa(function(e,t,n){qi(e,t,n)}),ld=qa(function(e,t,n,r){qi(e,t,n,r)}),ud=Co(function(e,t){var n={};if(e==null)return n;var r=!1;t=cn(t,function(t){return t=Oa(t,e),r||=t.length>1,t}),Ua(e,To(e),n),r&&(n=ni(n,7,yo));for(var i=t.length;i--;)ba(n,t[i]);return n});function dd(e,t){return pd(e,Tl(ko(t)))}var fd=Co(function(e,t){return e==null?{}:Zi(e,t)});function pd(e,t){if(e==null)return{};var n=cn(To(e),function(e){return[e]});return t=ko(t),Qi(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Oa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[gs(t[i])];o===n&&(i=a,o=r),e=au(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:ca(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ca(e,t,r,i)}var _d=ho(id),vd=ho(ad);function yd(e,t,n){var r=Kl(e),i=r||Zl(e)||wu(e);if(t=ko(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:cu(e)&&au(a)?lr(ct(e)):{}}return(i?tn:gi)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||ba(e,t)}function xd(e,t,n){return e==null?e:xa(e,t,Da(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:xa(e,t,Da(r),i)}function Cd(e){return e==null?[]:jn(e,id(e))}function wd(e){return e==null?[]:jn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),ti(Pu(e),t,r)}function Ed(e,t,r){return t=ju(t),r===n?(r=t,t=0):r=ju(r),e=Pu(e),Ti(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Ko(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ju(e),t===n?(t=e,e=0):t=ju(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=It();return Nt(e+a*(t-e+Lt(`1e-`+((a+``).length-1))),t)}return na(e,t)}var Od=Qa(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Lu(e).toLowerCase())}function Ad(e){return e=Lu(e),e&&e.replace(Ie,In).replace(wt,``)}function jd(e,t,r){e=Lu(e),t=va(t);var i=e.length;r=r===n?i:ti(Mu(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Lu(e),e&&he.test(e)?e.replace(pe,Ln):e}function Nd(e){return e=Lu(e),e&&Ce.test(e)?e.replace(Se,`\\$&`):e}var Pd=Qa(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=Qa(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=Za(`toLowerCase`);function Ld(e,t,n){e=Lu(e),t=Mu(t);var r=t?Xn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return so(bt(i),n)+e+so(yt(i),n)}function Rd(e,t,n){e=Lu(e),t=Mu(t);var r=t?Xn(e):0;return t&&r<t?e+so(t-r,n):e}function zd(e,t,n){e=Lu(e),t=Mu(t);var r=t?Xn(e):0;return t&&r<t?so(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Ft(Lu(e).replace(we,``),t||0)}function Vd(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Mu(t),ia(Lu(e),t)}function Hd(){var e=arguments,t=Lu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=Qa(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Ko(e,t,r)&&(t=r=n),r=r===n?v:r>>>0,r?(e=Lu(e),e&&(typeof t==`string`||t!=null&&!yu(t))&&(t=va(t),!t&&Bn(e))?Aa(Zn(e),0,r):e.split(t,r)):[]}var Gd=Qa(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Lu(e),n=n==null?0:ti(Mu(n),0,e.length),t=va(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=Y.templateSettings;r&&Ko(e,t,r)&&(t=n),e=Lu(e),t=Vu({},t,i,_o);var a=Vu({},t.imports,i.imports,_o),o=id(a),s=jn(a,o);tn(o,function(e){if(ke.test(e))throw new ze("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||Le,f=`__p += '`,p=Ue((t.escape||Le).source+`|`+d.source+`|`+(d===ve?q:Le).source+`|`+(t.evaluate||Le).source+`|$`,`g`),m=`//# sourceURL=`+(Ze.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++At+`]`)+`
|
|
16
16
|
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(Re,Rn),n&&(c=!0,f+=`' +
|
|
@@ -56,6 +56,6 @@ __p+='`),t}),a+=`';
|
|
|
56
56
|
`);if(!n)return t;let r,i;for(let e of n)e&&(r=e.slice(0,e.indexOf(`:`)).toLowerCase().trim(),i=e.slice(e.indexOf(`:`)+1).trim(),t[r]=i);return t},s={Gs:e=>{let t,n;try{let a=()=>{r.Z.error(`This browser does not have any supported ajax options!`)},o=!1;if(window.XMLHttpRequest&&(o=!0),!o)return void a();t=new XMLHttpRequest;let s=()=>{typeof e.error==`function`&&e.error(t.status),typeof e.Ws==`function`&&e.Ws(!1)};t.onload=()=>{let n=!1;if(t.readyState===4)if(n=t.status>=200&&t.status<300||t.status===304,n){if(typeof e.L==`function`){let n,r;try{n=JSON.parse(t.responseText),r=t.getAllResponseHeaders()}catch{let n={error:t.responseText===``?i.Z.Zh:i.Z.Ra,response:t.responseText};(0,e.L)(n,r)}n&&e.L(n,r)}typeof e.Ws==`function`&&e.Ws(!0)}else s()},t.onerror=()=>{s()},t.ontimeout=()=>{s()},n=JSON.stringify(e.data),t.open(`POST`,e.url,!0),t.setRequestHeader(`Content-type`,`application/json`),t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`);let c=e.headers||[];for(let e of c)t.setRequestHeader(e[0],e[1]);t.send(n)}catch(e){r.Z.error(`Network request error: ${(0,a.e)(e)}`)}}}},6870:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(7671),i=n(5966);let a={Ps:{$a:`data`,Bs:`content_cards/sync`,bi:`feature_flags/sync`,Mr:`template`},qu:e=>e?.j(i.I.C.lE),sm:e=>e?.j(i.I.C.SE),nm:(e,t)=>{e?.k(i.I.C.lE,t)},um:(e,t)=>{e?.k(i.I.C.SE,t)},Pa:(e,t)=>{if(!e||!t)return-1;let n=a.qu(e);if(n==null)return-1;let r=n[t];return r==null||isNaN(r)?-1:r},Ua:(e,t)=>{let n=r.S6;if(!e||!t)return n;let i=a.sm(e);return i==null?n:(n=i[t],n==null||isNaN(n)?r.S6:n)},_s:(e,t,n)=>{if(!e||!t)return;let r=a.qu(e);r??={},r[t]=n,a.nm(e,r)},Qs:(e,t,n)=>{if(!e||!t)return;let r=a.sm(e);r??={},r[t]=n,a.um(e,r)},Ys:(e,t)=>{if(!e||!t)return;let n=a.Ua(e,t);a.Qs(e,t,n+1)}},o=a},8548:(e,t,n)=>{n.d(t,{E:()=>i,T:()=>a});var r=n(335);function i(e){let t=e.length;for(let n=e.length-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}function a(e){try{e=e.replace(/-/g,`+`).replace(/_/g,`/`);let t=window.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r=new Uint16Array(n.buffer);return String.fromCharCode(...r)}catch(e){return r.Z.error(`Unable to decode Base64: `+e),null}}},1148:(e,t,n)=>{function r(e){e??=``;let t=e.split(`?`).slice(1).join(`?`),n={};if(t!=null){let e=t.split(`&`);for(let t=0;t<e.length;t++){let r=e[t].split(`=`);r[0]!==``&&(n[r[0]]=r[1])}}return n}function i(e){return!(!e||(e=e.toString().toLowerCase()).lastIndexOf(`javascript:`,0)!==0&&e.lastIndexOf(`data:`,0)!==0)}n.d(t,{L:()=>r,o:()=>i})},3905:(e,t,n)=>{n.d(t,{$g:()=>x,OM:()=>w,UO:()=>g,bj:()=>h,lg:()=>b,ro:()=>y,vV:()=>S,y9:()=>p,zM:()=>m,zR:()=>C});var r=n(2893),i=n(8548),a=n(335),o=n(7750),s=n(3046),c=n(7671);let l=/^[^\x00-\x1F\x22]+$/,u=/[$.]/,d=[`$add`,`$update`,`$remove`,`$identifier_key`,`$identifier_value`,`$new_object`,`$time`,`$google_ad_personalization`,`$google_ad_user_data`],f=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//;function m(e,t,n){let r=e!=null&&typeof e==`string`&&(e===``||e.match(l)!=null);return r||a.Z.error(`Cannot ${t} because ${n} "${e}" is invalid.`),r}function h(e){return e!=null&&e.match(u)&&d.indexOf(e)===-1&&a.Z.warn(`Custom attribute keys cannot contain '$' or '.'`),m(e,`set custom user attribute`,`the given key`)}function g(e){let t=typeof e;return e==null||t===`number`||t===`boolean`||(0,r.J_)(e)||t===`string`}function _(e,t,n){let i=n!==-1;if(i&&n>50)return a.Z.error(`Nested attributes cannot be more than 50 levels deep.`),!1;let s=i?n+1:-1;if((0,r.kJ)(e)&&(0,r.kJ)(t)){for(let n=0;n<e.length&&n<t.length;n++)if((0,r.J_)(e[n])&&(t[n]=(0,o.BT)(e[n])),!_(e[n],t[n],s))return!1}else{if(!(0,r.Kn)(e))return g(e);for(let n of(0,r.XP)(e)){let a=e[n];if(i&&!h(n)||((0,r.J_)(a)&&(t[n]=(0,o.BT)(a)),!_(a,t[n],s)))return!1}}return!0}function v(e,t,n,i,o){let s;return s=(0,r.Kn)(e)||(0,r.kJ)(e)?_(e,t,o?1:-1):g(e),s||a.Z.error(`Cannot ${n} because ${i} "${e}" is invalid.`),s}function y(e,t,n,r=!1){let i=typeof e==`string`||e===null&&r;return i||a.Z.error(`Cannot ${t} because ${n} "${e}" is invalid.`),i}function b(e,t,n,s,l){if(e??={},typeof e!=`object`||(0,r.kJ)(e))return a.Z.error(`${t} requires that ${n} be an object. Ignoring ${l}.`),[!1,null];let u,d;t===c.db?(u=76800,d=`75KB`):(u=51200,d=`50KB`);let f=JSON.stringify(e);if((0,i.E)(f)>u)return a.Z.error(`Could not ${s} because ${n} was greater than the max size of ${d}.`),[!1,null];let p;try{p=JSON.parse(f)}catch{return a.Z.error(`Could not ${s} because ${n} did not contain valid JSON.`),[!1,null]}for(let n in e){if(t===c.db&&!h(n)||!m(n,s,`the ${l} property name`))return[!1,null];let i=e[n];if(t===c.db||i!=null){if((0,r.J_)(i)&&(p[n]=(0,o.BT)(i)),!v(i,p[n],s,`the ${l} property "${n}"`,t===c.db))return[!1,null]}else delete e[n],delete p[n]}return[!0,p]}function x(e,t){let n=!1,i=!1,o=()=>{a.Z.error(`Custom attribute arrays must be either string arrays or object arrays.`)};for(let a of t)if(typeof a==`string`){if(i)return o(),[!1,!1];if(!m(a,`set custom user attribute "${e}"`,`the element in the given array`))return[!1,!1];n=!0}else{if(!(0,r.Kn)(a)||n)return o(),[!1,!1];if(!b(a,c.db,`attribute value`,`set custom user attribute "${e}"`,`custom user attribute`))return[!1,!1];i=!0}return[n,i]}function S(e){return typeof e==`string`&&e.toLowerCase().match(f)!=null}function C(e){if(!(s.A9.properties.type in e))return!1;switch(e[s.A9.properties.type]){case s.A9.types.ro:if(s.A9.properties.oo in e)return!0;break;case s.A9.types.logCustomEvent:case s.A9.types.setEmailNotificationSubscriptionType:case s.A9.types.setPushNotificationSubscriptionType:case s.A9.types.setCustomUserAttribute:case s.A9.types.addToSubscriptionGroup:case s.A9.types.removeFromSubscriptionGroup:case s.A9.types.addToCustomAttributeArray:case s.A9.types.removeFromCustomAttributeArray:case s.A9.types.no:case s.A9.types.ao:if(s.A9.properties.eo in e)return!0;break;case s.A9.types.requestPushPermission:return!0;default:return!1}return!1}function w(e){let t=!1;return Object.keys(s.A9.types).forEach((n=>{s.A9.types[n]!==e.toString()||(t=!0)})),t}},5319:(e,t,n)=>{n.d(t,{SD:()=>i,eh:()=>r});let r={PORTRAIT:0,LANDSCAPE:1},i={openUri:function(e,t,n){e&&(t||n!=null&&n.metaKey?window.open(e):window.location=e)},fo:function(){return screen.width<=600},co:function(){if(`orientation`in window)return Math.abs(window.orientation)===90||window.orientation===270?r.LANDSCAPE:r.PORTRAIT;let e=window;if(`screen`in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return typeof t==`object`&&t&&(t=t.type),t===`landscape-primary`||t===`landscape-secondary`?r.LANDSCAPE:r.PORTRAIT}return r.PORTRAIT},Un:function(){return window.location.href}}}},r={};function i(e){var t=r[e];if(t!==void 0)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+`.js`,i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t=`@clickview/braze-client:`,i.l=(n,r,a,o)=>{if(e[n])e[n].push(r);else{var s,c;if(a!==void 0)for(var l=document.getElementsByTagName(`script`),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute(`src`)==n||d.getAttribute(`data-webpack`)==t+a){s=d;break}}s||(c=!0,(s=document.createElement(`script`)).charset=`utf-8`,s.timeout=120,i.nc&&s.setAttribute(`nonce`,i.nc),s.setAttribute(`data-webpack`,t+a),s.src=n),e[n]=[r];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:`timeout`,target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},i.p=``,(()=>{var e={143:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(r!==0)if(r)n.push(r[2]);else{var a=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=a);var o=i.p+i.u(t),s=Error();i.l(o,(n=>{if(i.o(e,t)&&((r=e[t])!==0&&(e[t]=void 0),r)){var a=n&&(n.type===`load`?`missing`:n.type),o=n&&n.target&&n.target.src;s.message=`Loading chunk `+t+` failed.
|
|
57
57
|
(`+a+`: `+o+`)`,s.name=`ChunkLoadError`,s.type=a,s.request=o,r[1](s)}}),`chunk-`+t,t)}};var t=(t,n)=>{var r,a,[o,s,c]=n,l=0;if(o.some((t=>e[t]!==0))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);c&&c(i)}for(t&&t(n);l<o.length;l++)a=o[l],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a={};return(()=>{i.r(a),i.d(a,{BrazeClient:()=>Kt,ClassHookMarketingFormEvent:()=>gt,CountryCode:()=>lt,CustomUserAttributes:()=>bt,DefaultUserAttributes:()=>yt,EventUserAttributes:()=>xt,MarketingFormEvent:()=>ft,MarketingUserEvent:()=>dt,PageEvent:()=>ut,ProductEvent:()=>_t,ProductFormEvent:()=>pt,StreamableFormEvent:()=>mt,StreamableMarketingFormEvent:()=>ht,getInstance:()=>qt});var e=i(5825),t=i(1087),n=i(5333),r=i(6524);function o(){(0,n.e)(void 0,`iam`,`.ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}`),(0,r.N)()}var s=i(8376),c=i(1090),l=i(1792),u=i(6616),d=i(4410),f=i(3811),p=i(1507),m=i(5242);function h(e,t){return e==null?``:(e=parseInt(e.toString()),isNaN(e)?``:(t&&!isNaN(parseFloat(t.toString()))||(t=1),`rgba(`+[(16711680&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((4278190080&e)>>>24)/255*t].join(`,`)+`)`))}var g=i(7671),_=i(335),v=i(2730);function y(n){if(!e.ZP.X())return!1;if(!(n instanceof l.Z||n instanceof s.Z))return _.Z.error(g.De),!1;let r=n instanceof s.Z?v.G.mo:v.G.Oi;return t.Z.m().q(n,r).L}var b=i(4365),x=i(9342);function S(n){if(!e.ZP.X())return!1;if(!(n instanceof l.Z))return _.Z.error(g.De),!1;let r=t.Z.m().q(n,v.G.Ei);if(r){n.Ur()||y(n);for(let e=0;e<r.ge.length;e++)x.n.rr().fe(b.Z.Qr,[n.triggerId],r.ge[e])}return r.L}var C=i(420),w=i(3695);function T(n,r,i){if(!e.ZP.X())return!1;if(!(n instanceof c.Z))return _.Z.error(`inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object.`),!1;let a=v.G.Ei;r!=null&&(a=v.G.Gi);let o=t.Z.m().q(n,a,r,i);if(o.L)for(let e=0;e<o.ge.length;e++)x.n.rr().fe(b.Z.Qr,[n.triggerId,r],o.ge[e]);return o.L}var E=i(6243),D=i(2893),O=i(5806),k=i(1148),A=i(5319),j=i(7048),M=i(4072);function N(n,r){if(!e.ZP.X())return!1;if(!(n instanceof M.Z))return _.Z.error(`button must be an InAppMessageButton object`),!1;if(!(r instanceof l.Z))return _.Z.error(g.De),!1;let i=t.Z.m().Hi(n,r);if(i.L)for(let e=0;e<i.ge.length;e++)x.n.rr().fe(b.Z.Qr,[r.triggerId,n.id?.toString()],i.ge[e]);return i.L}var P=i(7429);let F=e=>{let t=e.querySelectorAll(`.ab-close-button, .ab-message-text, .ab-message-button`),n;for(let e=0;e<t.length;e++)n=t[e],n.tabIndex=0;if(t.length>0){let n=t[0],r=t[t.length-1];e.addEventListener(`keydown`,(t=>{let i=document.activeElement;t.keyCode===P.m.lo&&(t.shiftKey||i!==r&&i!==e?!t.shiftKey||i!==n&&i!==e||(t.preventDefault(),r.focus()):(t.preventDefault(),n.focus()))}))}},I=(e,t)=>{t.setAttribute(`role`,`dialog`),t.setAttribute(`aria-modal`,`true`),t.setAttribute(`aria-label`,`Modal Message`),e&&t.setAttribute(`aria-labelledby`,e)},L=(e,t,n,r)=>{if(e.buttons&&e.buttons.length>0){let i=document.createElement(`div`);i.className=`ab-message-buttons`,n.appendChild(i);let a=n.getElementsByClassName(`ab-message-text`)[0];a!=null&&(a.className+=` ab-with-buttons`);let o=i=>a=>(e.Ae(n,(()=>{N(i,e),i.clickAction===l.Z.ClickAction.URI?(0,C.S)(i.uri||``,r||e.openTarget===l.Z.OpenTarget.BLANK,a):i.clickAction===l.Z.ClickAction.NEWS_FEED&&t()})),a.stopPropagation(),!1);for(let t=0;t<e.buttons.length;t++){let n=e.buttons[t],r=document.createElement(`button`);r.className=`ab-message-button`,r.setAttribute(`type`,`button`),(0,p.lj)(r,`touchstart`);let a=n.text;n.text===``&&(a=`\xA0`),r.appendChild(document.createTextNode(a)),e.Ce()||(r.style.backgroundColor=h(n.backgroundColor),r.style.color=h(n.textColor),r.style.borderColor=h(n.borderColor)),r.onclick=o(n),i.appendChild(r)}}};var R=i(7070);function z(t,n,r){if(!e.ZP.X())return;if(o(),t==null)return!1;if(t instanceof s.Z)return _.Z.info(`User received control for a multivariate test, logging to Braze servers.`),y(t),!0;if(!(t instanceof l.Z)||t.constructor===l.Z)return!1;t.Nh();let a=t instanceof c.Z;if(a&&!t.trusted&&!e.ZP.tr())return _.Z.error(`HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.`),!1;if(n??=document.body,t.ze()&&n.querySelectorAll(`.ab-modal-interactions`).length>0)return _.Z.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if(A.SD.fo()){let e=A.SD.co();if(e===A.eh.PORTRAIT&&t.orientation===l.Z.Orientation.LANDSCAPE||e===A.eh.LANDSCAPE&&t.orientation===l.Z.Orientation.PORTRAIT){let n=e===A.eh.PORTRAIT?`portrait`:`landscape`,r=t.orientation===l.Z.Orientation.PORTRAIT?`portrait`:`landscape`;return _.Z.info(`Not showing ${r} in-app message ${t.message} because the screen is currently ${n}`),!1}}if(!e.ZP.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){let n=t.buttons;for(let t=0;t<n.length;t++)if(n[t].clickAction===l.Z.ClickAction.URI){let r=n[t].uri;e=(0,k.o)(r)}}else t.clickAction===l.Z.ClickAction.URI&&(e=(0,k.o)(t.uri));if(e)return _.Z.error(`Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.`),!1}let v=document.createElement(`div`);if(v.className=`ab-iam-root v3`,v.className+=function(e){let t=``;return e.animateIn&&(t+=` ab-animate-in`),e.animateOut&&(t+=` ab-animate-out`),e instanceof d.Z?t+=` ab-effect-fullscreen`:e instanceof c.Z?t+=` ab-effect-html`:e instanceof f.Z?t+=` ab-effect-modal`:e instanceof u.Z&&(t+=` ab-effect-slide`),t}(t),v.setAttribute(`role`,`complementary`),t.xe()&&(v.id=t.htmlId),e.ZP.nn(e.JY.jo)&&(v.style.zIndex=(e.ZP.nn(e.JY.jo)+1).toString()),n.appendChild(v),t.Ce()){let n=document.createElement(`style`);n.innerHTML=t.css,n.id=t.ve(),e.ZP.nn(e.JY.bo)!=null&&n.setAttribute(`nonce`,e.ZP.nn(e.JY.bo)),document.getElementsByTagName(`head`)[0].appendChild(n)}let b=t instanceof u.Z,x=function(t,n,r,a,o,s,v,y=document.body){if(t.ke=document.activeElement,t instanceof c.Z)return function(t,n,r,a,o,s){let c=document.createElement(`iframe`);c.setAttribute(`title`,`Modal Message`),o&&(c.style.zIndex=(o+1).toString());let u=e=>{let n=e.getAttribute(`href`),r=e.onclick;return i=>{if(r!=null&&typeof r==`function`&&!1===r.bind(e)(i))return;let o=(0,k.L)(n).abButtonId;if(o!=null&&o!==``||(o=e.getAttribute(`id`)||void 0),n!=null&&n!==``&&n.indexOf(`#`)!==0){let r=(e.getAttribute(`target`)||``).toLowerCase().replace(`_`,``)===`blank`,s=a||t.openTarget===l.Z.OpenTarget.BLANK||r,u=()=>{T(t,o,n),A.SD.openUri(n,s,i)};s?u():t.Ae(c,u)}else T(t,o,n||void 0);return i.stopPropagation(),!1}},d=(e,t,n)=>{let r=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${n}['"]\\)`,i=e.match(new RegExp(r));if(i){let n=`${i[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,i.index+i[0].length)};${n};${e.slice(i.index+i[0].length)}`}return null};if(c.onload=()=>{let a=null;if(s!=null){a=document.createElement(`html`),a.innerHTML=t.message||``;let e=a.getElementsByTagName(`style`);for(let t=0;t<e.length;t++)e[t].setAttribute(`nonce`,s);let n=a.getElementsByTagName(`script`);for(let e=0;e<n.length;e++){n[e].setAttribute(`nonce`,s),n[e].innerHTML=n[e].innerHTML.replace(/<style>/g,`<style nonce='${s}'>`);let t=d(n[e].innerHTML,s,`script`);t&&(n[e].innerHTML=t);let r=d(n[e].innerHTML,s,`style`);r&&(n[e].innerHTML=r)}}let o=c.contentWindow;o.focus();let f=o.document.querySelector(`html`);f&&(f.innerHTML=a?a.innerHTML:t.message||``,(0,j.E)(f));let p=o.document.getElementsByTagName(`head`)[0];if(p!=null){if(t.Ce()){let e=document.createElement(`style`);e.innerHTML=t.css||``,e.id=t.ve()||``,s!=null&&e.setAttribute(`nonce`,s),p.appendChild(e)}let e=o.document.createElement(`base`);e!=null&&(e.setAttribute(`target`,`_parent`),p.appendChild(e))}let m=o.document.getElementsByTagName(`title`);m&&m.length>0&&c.setAttribute(`title`,m[0].textContent||``);let h={closeMessage:function(){t.Ae(c)},logClick:function(){T(t,...arguments)},display:{},web:{}},v=function(){return function(){let t=arguments;Promise.resolve().then(i.bind(i,2261)).then((n=>{e.ZP.so()?n.requestPushPermission(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))}},y={requestImmediateDataFlush:function(){let t=arguments;Promise.resolve().then(i.bind(i,4650)).then((({requestImmediateDataFlush:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},logCustomEvent:function(){let t=arguments;Promise.resolve().then(i.bind(i,1454)).then((({logCustomEvent:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},logPurchase:function(){let t=arguments;i.e(364).then(i.bind(i,1364)).then((({logPurchase:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},unregisterPush:function(){let t=arguments;Promise.resolve().then(i.bind(i,7824)).then((({unregisterPush:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},requestPushPermission:v(),changeUser:function(){let t=arguments;Promise.resolve().then(i.bind(i,4790)).then((({changeUser:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))}},b=function(e){return function(){y[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,D.XP)(y))h[e]=b(e);let x=[`setFirstName`,`setLastName`,`setEmail`,`setGender`,`setDateOfBirth`,`setCountry`,`setHomeCity`,`setEmailNotificationSubscriptionType`,`setLanguage`,`addAlias`,`setPushNotificationSubscriptionType`,`setPhoneNumber`,`setCustomUserAttribute`,`addToCustomAttributeArray`,`removeFromCustomAttributeArray`,`incrementCustomUserAttribute`,`setCustomLocationAttribute`,`addToSubscriptionGroup`,`removeFromSubscriptionGroup`],S=function(e){return function(){let t=(0,E.P)();t&&t[e](...Array.prototype.slice.call(arguments))}},C={};for(let e=0;e<x.length;e++)C[x[e]]=S(x[e]);h.getUser=function(){return C};let w={showFeed:n},O=function(e){return function(){let n=arguments;t.Ae(c,(function(){w[e](...Array.prototype.slice.call(n))}))}},k=h.display;for(let e of(0,D.XP)(w))k[e]=O(e);let A={registerAppboyPushMessages:v()},M=function(e){return function(){A[e](...Array.prototype.slice.call(arguments))}},N=h.web;for(let e of(0,D.XP)(A))N[e]=M(e);if(o.appboyBridge=h,o.brazeBridge=h,t.we!==l.Z.qe.$e){let e=o.document.getElementsByTagName(`a`);for(let t=0;t<e.length;t++)e[t].onclick=u(e[t]);let t=o.document.getElementsByTagName(`button`);for(let e=0;e<t.length;e++)t[e].onclick=u(t[e])}let P=o.document.body;if(P!=null){t.xe()&&(P.id=t.htmlId||``);let e=document.createElement(`hidden`);e.onclick=h.closeMessage,e.className=`ab-programmatic-close-button`,P.appendChild(e)}o.dispatchEvent(new CustomEvent(`ab.BridgeReady`)),c.className.indexOf(`ab-start-hidden`)!==-1&&(c.className=c.className.replace(`ab-start-hidden`,``),r(c)),document.activeElement!==c&&c.focus()},c.className=`ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions`,w.Z.OS===O.T.io){let e=document.createElement(`div`);return e.className=`ab-ios-scroll-wrapper`,e.appendChild(c),t.Me=e,e}return t.Me=c,c}(t,n,r,o,s,v);let b=function(e,t,n,r,i,a,o=document.body){let s=null,c=document.createElement(`div`);var u;c.className=`ab-in-app-message ab-start-hidden ab-background`,a&&(c.style.zIndex=(a+1).toString()),e.ze()&&(c.className+=` ab-modal-interactions`,c.setAttribute(`tabindex`,`-1`)),e.Ce()||(c.style.color=h(e.textColor),c.style.backgroundColor=h(e.backgroundColor),(u=e.backgroundColor)!=null&&(u=parseInt(u.toString()),!isNaN(u)&&!((4278190080&u)>>>24))&&(c.className+=` ab-no-shadow`));let d=()=>{c.className.indexOf(`ab-start-hidden`)!==-1&&(c.className=c.className.replace(`ab-start-hidden`,``),document.querySelectorAll(`.ab-iam-img-loading`).length>0?r(`Cannot show in-app message ${e.message} because another message is being shown.`,l.Z.Be.Le):n(c))},f=(t=!0)=>{let n=document.querySelectorAll(`.ab-iam-root`);n&&n.length!==0||(n=o.querySelectorAll(`.ab-iam-root`)),n&&n.length>0&&(n[0].classList.remove(`ab-iam-img-loading`),s&&=(clearTimeout(s),null),t?d():_.Z.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};e.imageStyle===l.Z.ImageStyle.GRAPHIC&&(c.className+=` graphic`),e.orientation===l.Z.Orientation.LANDSCAPE&&(c.className+=` landscape`),e.buttons!=null&&e.buttons.length===0&&(e.clickAction!==l.Z.ClickAction.NONE&&(c.className+=` ab-clickable`),c.onclick=n=>(e.Ae(c,(()=>{S(e),e.clickAction===l.Z.ClickAction.URI?(0,C.S)(e.uri||``,i||e.openTarget===l.Z.OpenTarget.BLANK,n):e.clickAction===l.Z.ClickAction.NEWS_FEED&&t()})),n.stopPropagation(),!1));let g=(0,m.B)(`Close Message`,e.Ce()?void 0:h(e.closeButtonColor),(()=>{e.Ae(c)}));c.appendChild(g),a&&(g.style.zIndex=(a+2).toString());let v=document.createElement(`div`);v.className=`ab-message-text`;let y=(e.messageAlignment||e.De).toLowerCase();v.className+=` `+y+`-aligned`;let b=!1,x=document.createElement(`div`);if(x.className=`ab-image-area`,e.imageUrl){if(e.cropType===l.Z.CropType.CENTER_CROP){let t=document.createElement(`span`);t.className=`ab-center-cropped-img`,t.style.backgroundImage=`url(`+e.imageUrl+`)`,t.setAttribute(`role`,`img`),t.setAttribute(`aria-label`,`Modal Image`),e.Ge(t),x.appendChild(t)}else{let t=document.createElement(`img`);if(t.setAttribute(`src`,e.imageUrl),e.Ge(t),document.querySelectorAll(`.ab-iam-img-loading`).length===0){b=!0;let e=document.querySelectorAll(`.ab-iam-root`);e&&e.length>0&&e[0].classList.add(`ab-iam-img-loading`),s=window.setTimeout((()=>{f(!1)}),6e4),t.onload=()=>{f()},t.onerror=()=>{f(!1)}}x.appendChild(t)}c.appendChild(x),v.className+=` ab-with-image`}else if(e.icon){x.className+=` ab-icon-area`;let t=document.createElement(`span`);t.className=`ab-icon`,e.Ce()||(t.style.backgroundColor=h(e.iconBackgroundColor),t.style.color=h(e.iconColor));let n=document.createElement(`i`);n.className=`fa`,n.appendChild(document.createTextNode(e.icon)),n.setAttribute(`aria-hidden`,`true`),t.appendChild(n),x.appendChild(t),c.appendChild(x),v.className+=` ab-with-icon`}if((0,p.lj)(v,`touchstart`),e.header&&e.header.length>0){let t=document.createElement(`h1`);t.className=`ab-message-header`,e.He=R.Z.W(),t.id=e.He;let n=(e.headerAlignment||l.Z.TextAlignment.CENTER).toLowerCase();t.className+=` `+n+`-aligned`,e.Ce()||(t.style.color=h(e.headerTextColor)),t.appendChild(document.createTextNode(e.header)),v.appendChild(t)}return v.appendChild(e.Je()),c.appendChild(v),b||d(),e.Me=c,c}(t,n,r,a,o,s,y);if(t instanceof d.Z||t instanceof f.Z){let e=t instanceof d.Z?`ab-fullscreen`:`ab-modal`;b.className+=` ${e} ab-centered`,L(t,n,b,o),F(b),I(t.He,b)}else if(t instanceof u.Z){b.className+=` ab-slideup`;let e=b.getElementsByClassName(`ab-close-button`)[0];if(e!=null){let n=(0,p.MK)(`0 0 11.38 19.44`,`M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z`,t.Ce()?void 0:h(t.closeButtonColor));n.setAttribute(`class`,`ab-chevron`),e.appendChild(n)}let n,r;(0,p.FZ)(b,p.mQ.U,(t=>{b.className+=` ab-swiped-left`,e!=null&&e.onclick!=null&&e.onclick(t)})),(0,p.FZ)(b,p.mQ.V,(t=>{b.className+=` ab-swiped-right`,e!=null&&e.onclick!=null&&e.onclick(t)})),t.slideFrom===l.Z.SlideFrom.TOP?(n=p.mQ.Re,r=` ab-swiped-up`):(n=p.mQ.Se,r=` ab-swiped-down`),(0,p.FZ)(b,n,(t=>{b.className+=r,e!=null&&e.onclick!=null&&e.onclick(t)}))}return b}(t,(()=>{i.e(864).then(i.bind(i,4864)).then((t=>{e.ZP.so()?t.showFeed():_.Z.error(g.Go)}))}),(n=>{if(t.ze()&&t.do()){let r=document.createElement(`div`);if(r.className=`ab-page-blocker`,t.Ce()||(r.style.backgroundColor=h(t.frameColor)),e.ZP.nn(e.JY.jo)&&(r.style.zIndex=e.ZP.nn(e.JY.jo).toString()),v.appendChild(r),!e.ZP.nn(e.JY.Lh)){let e=new Date().valueOf();r.onclick=r=>{new Date().valueOf()-e>l.Z.fh&&(t.Ae(n),r.stopPropagation())}}v.appendChild(n),n.focus(),t.Oh(v)}else if(b){let e=document.querySelectorAll(`.ab-slideup`),r=null;for(let t=e.length-1;t>=0;t--)if(e[t]!==n){r=e[t];break}if(t.slideFrom===l.Z.SlideFrom.TOP){let e=0;r!=null&&(e=r.offsetTop+r.offsetHeight),n.style.top=Math.max(e,0)+`px`}else{let e=0;r!=null&&(e=(window.innerHeight||document.documentElement.clientHeight)-r.offsetTop),n.style.bottom=Math.max(e,0)+`px`}}else if(a&&!e.ZP.nn(e.JY.Lh)){let e=t;(0,j.f)(n)&&n.contentWindow&&n.contentWindow.addEventListener(`keydown`,(function(t){t.keyCode===P.m.mh&&e.closeMessage()}))}y(t),t.dismissType===l.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{v.contains(n)&&t.Ae(n)}),t.duration),typeof r==`function`&&r()}),(e=>{_.Z.info(e)}),e.ZP.nn(e.JY.ho),e.ZP.nn(e.JY.jo),e.ZP.nn(e.JY.bo),n);return(a||b)&&(v.appendChild(x),t.Oh(v)),!0}function B(n){if(e.ZP.X())return typeof n==`function`?t.Z.m()._i((function(e){return n(e[0]),e.slice(1)})):null}var V=i(5522),H=i(1454),ee=i(2261),U=i(7824),te=i(4790),ne=i(4650),re=i(1843),ie=i(158),ae=i(67),oe=i(1066),W=i(1280);function se(t,n){if(e.ZP.X())return _e.rr().xs(t,n)}class ce extends ae.Z{constructor(e,t){super(e,t)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(e){(0,oe.p)(e,!0)}logCardClick(e){return(0,W.d)(e,!0)}sr(){se()}dr(){return!0}}ce.ur=6e4;var le=i(7750),ue=i(5899),G=i(5966),de=i(4663),fe=i(9179),pe=i(6870),me=i(6504);class he extends ie.Z{constructor(t,n,r,i,a){super(),this.wt=t,this.u=n,this.yt=r,this.Ft=i,this.qt=a,this.wt=t,this.u=n,this.yt=r,this.Ft=i,this.qt=a,this.Jt=new de.Z,e.ZP.$t(this.Jt),this.Bt=0,this.Ht=0,this.cards=[],this.Kt();let o=V.Z.Yt.Qt;new V.Z(o,_.Z).Zt(o.ss.ts,(e=>{this.es(e)})),this.hs=null,this.rs=null,this.ns=null,this.os=null,this.ls=null,this.us=10,this.cs=0}fs(){return this.hs}ds(e){this.hs=e}ps(){return this.rs}vs(e){this.rs=e}Kt(){if(!this.u)return;let e=this.u.j(G.I.C.ws)||[],t=[];for(let n=0;n<e.length;n++){let r=(0,ue.rN)(e[n]);r!=null&&t.push(r)}this.cards=this.Cs(this.bs(t,!1)),this.Bt=this.u.j(G.I.C.gs)||this.Bt,this.Ht=this.u.j(G.I.C.ys)||this.Ht}js(e,t=!1,n=0,r=0){let i;if(t){i=[];for(let e of this.cards)e.test&&i.push(e)}else i=this.cards.slice();for(let n=0;n<e.length;n++){let r=e[n],a=null;for(let e=0;e<this.cards.length;e++)if(r.id===this.cards[e].id){a=this.cards[e];break}if(t){let e=(0,ue.xA)(r);a!=null&&a.viewed&&e&&(e.viewed=!0),e!=null&&i.push(e)}else if(a==null){let e=(0,ue.xA)(r);e!=null&&i.push(e)}else if(!a.Ct(r)){for(let e=0;e<i.length;e++)if(r.id===i[e].id){i.splice(e,1);break}}}this.cards=this.Cs(this.bs(i,t)),this.Rs(),this.Bt=n,this.Ht=r,this.u&&(this.u.k(G.I.C.gs,this.Bt),this.u.k(G.I.C.ys,this.Ht))}Ns(t){if(this.Ts()&&t!=null&&t.cards){this.u&&this.u.k(G.I.C.Ss,e.ZP.Ds());let n=t.full_sync;n||this.Kt(),this.js(t.cards,n,t.last_full_sync_at,t.last_card_updated_at),this.Jt.Dt(this.Us(!0))}}ks(e){this.u&&this.u.k(G.I.C.As,e)}Fs(e,t,n){let r=()=>{this.xs(t,n,!0)},i=e?(0,re.D)(e):null,a;if(this.zs(),!i||!i[`retry-after`])return void this.ks(0);let o=i[`retry-after`];if(isNaN(o)&&!isNaN(Date.parse(o)))a=Date.parse(o)-new Date().getTime(),a<0&&r();else{if(isNaN(parseFloat(o.toString()))){fe.Z.q(v.G.qs,{e:`Received unexpected value for retry-after header in /sync response: `+o}),this.ks(0);return}a=1e3*parseFloat(o.toString())}this.ns=window.setTimeout((()=>{r()}),a);let s=0;this.u&&(s=this.u.j(G.I.C.As)),(s==null||isNaN(parseInt(s.toString())))&&(s=0),this.ks(parseInt(s.toString())+1)}es(e){if(!this.Ts())return;this.Kt();let t=this.cards.slice(),n=null;n=this.wt?.getUserId();for(let r=0;r<e.length;r++)if(n===e[r].userId||n==null&&e[r].userId==null){let n=e[r].card,i=null;for(let e=0;e<this.cards.length;e++)if(n.id===this.cards[e].id){i=this.cards[e];break}if(i==null){let e=(0,ue.xA)(n);e!=null&&t.push(e)}else if(!i.Ct(n)){for(let e=0;e<t.length;e++)if(n.id===t[e].id){t.splice(e,1);break}}}this.cards=this.Cs(this.bs(t,!1)),this.Rs(),this.Jt.Dt(this.Us(!0))}bs(e,t){let n={},r={},i={};this.u&&(n=this.u.j(G.I.C.v)||{},r=this.u.j(G.I.C.H)||{},i=this.u.j(G.I.C.A)||{});let a={},o={},s={};for(let t=0;t<e.length;t++){let c=e[t].id;c&&(n[c]&&(e[t].clicked=!0,a[c]=!0),r[c]&&(e[t].viewed=!0,o[c]=!0),i[c]&&(e[t].dismissed=!0,s[c]=!0))}return t&&this.u&&(this.u.k(G.I.C.v,a),this.u.k(G.I.C.H,o),this.u.k(G.I.C.A,s)),e}Cs(e){let t=[],n=new Date,r={};this.u&&(r=this.u.j(G.I.C.A)||{});let i=!1;for(let a=0;a<e.length;a++){let o=e[a].url;if(!this.Ft&&o&&(0,k.o)(o)){_.Z.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}let s=e[a].expiresAt,c=!0;if(s!=null&&(c=s>=n),c&&=!e[a].dismissed,c)t.push(e[a]);else{let t=e[a].id;t&&(r[t]=!0),i=!0}}return i&&this.u&&this.u.k(G.I.C.A,r),t}Rs(){var e;let t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].Y());(e=this.u)==null||e.k(G.I.C.ws,t)}zs(){this.ns&&=(clearTimeout(this.ns),null)}Es(){this.os!=null&&(clearTimeout(this.os),this.os=null)}Ls(e=1e3*this.us,t,n){this.Es(),this.os=window.setTimeout((()=>{this.xs(t,n,!0)}),e),this.ls=e}xs(t,n,r=!1,i=!0){var a;let o=this.qt,s=this.u;if(!o||!s)return void(typeof n==`function`&&n());if(!r&&(this.zs(),this.ks(0)),!this.Ts())return void((a=this.yt)==null||a.Is((()=>{this.xs(t,n)})));i&&this.Es();let c=o.Js({},!0);s.j(G.I.C.Ss)!==e.ZP.Ds()&&this.Ms(),c.last_full_sync_at=this.Bt,c.last_card_updated_at=this.Ht;let l=o.$s(c,pe.Z.Ps.Bs,r),u=!1;o.Xs(c,((e=-1)=>{if(this.u){let e=new Date().valueOf();pe.Z._s(this.u,pe.Z.Ps.Bs,e)}e!==-1&&l.push([`X-Braze-Req-Tokens-Remaining`,e.toString()]),re.Z.Gs({url:`${o.Hs()}/content_cards/sync`,data:c,headers:l,L:(e,r)=>{if(!o.Ks(c,e,l))return u=!0,void(typeof n==`function`&&n());o.Os(),this.Fs(r,t,n),this.Ns(e),u=!1,pe.Z.Qs(this.u,pe.Z.Ps.Bs,1),typeof t==`function`&&t()},error:e=>{o.Vs(e,`retrieving content cards`),u=!0,typeof n==`function`&&n()},Ws:()=>{if(u&&i&&!this.os&&this.cs+1<g.Tt){pe.Z.Ys(this.u,pe.Z.Ps.Bs);let e=this.ls;(e==null||e<1e3*this.us)&&(e=1e3*this.us),this.Ls(Math.min(3e5,(0,me.R)(1e3*this.us,3*e)),t,n),this.cs+=1}}})}),pe.Z.Ps.Bs,n)}Us(e){e||this.Kt();let t=this.Cs(this.cards);t.sort(((e,t)=>e.pinned&&!t.pinned?-1:t.pinned&&!e.pinned?1:e.updated&&t.updated&&e.updated>t.updated?-1:e.updated&&t.updated&&t.updated>e.updated?1:0));let n=Math.max(this.Ht||0,this.Bt||0);return n===0&&(n=void 0),this.u&&this.u.j(G.I.C.ys)===this.Ht&&n===void 0&&(n=this.Ht),new ce(t,(0,le.X2)(n))}Zs(e){return this.Jt.It(e)}Ms(){this.Bt=0,this.Ht=0,this.u&&(this.u.ti(G.I.C.gs),this.u.ti(G.I.C.ys))}changeUser(e){e||(this.cards=[],this.Jt.Dt(new ce(this.cards.slice(),null)),this.u&&(this.u.ti(G.I.C.ws),this.u.ti(G.I.C.v),this.u.ti(G.I.C.H),this.u.ti(G.I.C.A))),this.Ms()}clearData(e){this.Bt=0,this.Ht=0,this.cards=[],this.Jt.Dt(new ce(this.cards.slice(),null)),e&&this.u&&(this.u.ti(G.I.C.ws),this.u.ti(G.I.C.v),this.u.ti(G.I.C.H),this.u.ti(G.I.C.A),this.u.ti(G.I.C.gs),this.u.ti(G.I.C.ys))}Ts(){return!(!this.yt||!this.yt.si()&&(this.yt.ii()!==0&&this.ei(),1))}ei(){this.Jt.Dt(new ce([],new Date)),this.u&&this.u.ti(G.I.C.ws)}}let ge={t:!1,provider:null,rr:()=>(ge.o(),ge.provider||(ge.provider=new he(e.ZP.er(),e.ZP.l(),e.ZP.ir(),e.ZP.tr(),e.ZP.nr()),e.ZP.ar(ge.provider)),ge.provider),o:()=>{ge.t||=(e.ZP.g(ge),!0)},destroy:()=>{ge.provider=null,ge.t=!1}},_e=ge;function ve(t){if(!e.ZP.X())return;let n=_e.rr(),r=n.Zs(t);if(!n.ps()){let t=e.ZP.cr();if(t){let e=t.mr((()=>{n.xs()}));e&&n.vs(e)}}return r}var ye=i(1311),be=i(5608),xe=i(6959);function Se(t,n){if(!e.ZP.X())return;(0,xe.B)();let r=!1;t??(t=document.body,r=!0);let i=e.ZP.nn(e.JY.tn)||e.ZP.nn(e.JY.en)||!1,a=_e.rr().Us(!1);typeof n==`function`&&(0,ye.Of)(a,n(a.cards.slice()),a.lastUpdated,null,i);let o=(0,ye.Yz)(a,i,r),s=_e.rr(),c=s.fs();(a.lastUpdated==null||new Date().valueOf()-a.lastUpdated.valueOf()>ce.ur)&&(c==null||new Date().valueOf()-c>ce.ur)&&(_.Z.info(`Cached content cards were older than max TTL of ${ce.ur} ms, requesting an update from the server.`),(0,ye.cV)(a,o),s.ds(new Date().valueOf()));let l=new Date().valueOf(),u=ve((function(e){let t=o.querySelectorAll(`.ab-refresh-button`)[0];if(t!=null){let e=500,n=e-=new Date().valueOf()-l,r=o.getAttribute(ye.cP);r&&(n=parseInt(r),isNaN(n)||(e-=new Date().valueOf()-n)),setTimeout((function(){t.className=t.className.replace(/fa-spin/g,``)}),Math.max(e,0))}let r=e.cards;typeof n==`function`&&(r=n(r.slice())),(0,ye.Of)(a,r,e.lastUpdated,o,i)}));(0,ye.GB)(u,o);let d=function(e){let t=e.querySelectorAll(`.ab-feed`),n=null;for(let r=0;r<t.length;r++)t[r].parentNode===e&&(n=t[r]);n==null?e.appendChild(o):((0,ye.tQ)(n),n.parentNode!=null&&n.parentNode.replaceChild(o,n)),setTimeout((function(){o.className=o.className.replace(`ab-hide`,`ab-show`)}),0),r&&o.focus(),(0,ye.cz)(a,o),(0,be.CG)(a.cards,e)};var f;t==null?window.onload=(f=window.onload,function(){typeof f==`function`&&f(new Event(`oldLoad`)),d(document.body)}):d(t)}var Ce=i(2080);function we(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Te={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var e,t=Te.queryString,n=new URLSearchParams(t),r={},i=function(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return we(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
58
58
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}(n.keys());try{for(i.s();!(e=i.n()).done;){var a=e.value;if(!(a in r)){var o=n.getAll(a);o.length>1?r[a]=o:r[a]=o[0]}}}catch(e){i.e(e)}finally{i.f()}return r&&Object.keys(r).length?JSON.stringify(r):t},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return Te.hostname+Te.pathname},decodeURIComponent:function(e){return window.decodeURIComponent(e)}},Ee=Te,De={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},Oe=`Unknown`;function K(e,t,n){if(!t)return{name:e,version:Oe};var r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():Oe}}var ke=function(){var e=window.navigator.userAgent;return De.mobileDevice.test(e)?De.iphone.test(e)?`iPhone`:De.ipad.test(e)?`iPad`:De.android.test(e)?`Android`:De.blackberry.test(e)?`Blackberry`:De.windowsPhone.test(e)?`Windows Phone`:Oe:`Desktop`},Ae={getEventDataPayload:function(e,t){var n={product:this.getProductData(t),client:this.getClientData(),request:this.getRequestData()};e.data&&Object.keys(e.data).length&&(n.data=e.data),e.actionType&&(n.action_type=e.actionType);var r=Ee.requestUrl;return r&&(n.request_url=r),n},getProductData:function(e){var t={name:e.name,version:e.version};return e.locale&&(t.locale=e.locale),t},getClientData:function(){return{os:(e=window.navigator.userAgent,De.android.test(e)?K(`Android`,De.androidVersion,e):De.iphone.test(e)||De.ipad.test(e)?K(`iOS`,De.iosVersion,e):De.linux.test(e)?K(`Linux`,null,e):De.unix.test(e)?K(`Unix`,null,e):De.mac.test(e)?K(`Macintosh`,De.osxVersion,e):De.windows.test(e)?function(e,t){var n={name:`Windows`,version:null};return De.win2000.test(t)&&(n.version=`2000`),De.winXP.test(t)&&(n.version=`XP`),De.winVista.test(t)&&(n.version=`Vista`),De.win7.test(t)&&(n.version=`7`),De.win8.test(t)&&(n.version=`8`),De.win81.test(t)&&(n.version=`8.1`),De.win10.test(t)&&(n.version=`10`),n.version||=Oe,n}(0,e):De.blackberry.test(e)?K(`BlackBerry`,De.blackberryVersion,e):De.windowsPhone.test(e)?K(`Windows Phone`,De.windowsPhoneVersion,e):{name:Oe,version:Oe}),device:{type:ke(),resolution:`${Ee.screenWidth}x${Ee.screenHeight}`}};var e},getRequestData:function(){var e=Ee.queryParams,t=Ee.referrer,n=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`&`,t=Ee.queryString;if(t.length){var n=Ee.decodeURIComponent(t.substring(1)),r=RegExp(`((utm_[^=]+)=([^\\`+e+`]+))`,`gi`),i=n.match(r);if(i&&i.length){var a=i.reduce((function(e,t){var n=t.split(`=`);return e[n[0].split(`_`)[1]]=n[1],e}),{});if(Object.keys(a).length)return a}}}(),r={page_name:Ee.title,host_name:Ee.hostname,path_name:Ee.pathname};return e.length&&(r.query_params=e),t.length&&(r.referrer=t),n&&(r.utms=n),r}},q=function(e){throw Error(e)},J=function(e){var t=[...arguments].slice(1);console.error(e,t)};function je(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){return Me=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Me(e)}var Ne=RegExp(`[A-Za-z0-9 _.,!"'/$]*`),Pe=RegExp(`^[a-z]+(?:_[a-z]+)*$`),Fe=[`productName`,`productVersion`,`apiKey`,`baseUrl`],Ie={clientUserAttributeValue:function(e){return typeof e==`boolean`||!(!e||typeof e==`string`&&(!e.length||!(e.length<=255)||e[0]===`$`||!Ne.test(e)))},isSnakeCase:function(e){return Pe.test(e)},additionalData:function(e){if(Me(e)!==`object`||e===null)return!0;if(Array.isArray(e)){var t,n=function(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return je(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!Ie.additionalData(r))return!1}}catch(e){n.e(e)}finally{n.f()}}else for(var i in e){if(!Ie.isSnakeCase(i))return J(`'${i}' in additional data provided does not follow 'snake_case' naming convention.`),!1;var a=e[i];if(Me(a)===`object`&&a!==null&&!Ie.additionalData(a))return!1}return!0},accountAddress:function(e){if(!e||Me(e)!==`object`)return!1;var t=Object.keys(e);return!(t.length===0||t.length>2||t.length===1&&!t.includes(`country_code`)||t.length===2&&!t.includes(`country_code`)&&!t.includes(`province`)||typeof e.country_code!=`string`||t.includes(`province`)&&typeof e.province!=`string`)},brazeClientOptions:function(e){e||q(`No Client options provided.`),Fe.forEach((function(t){e.hasOwnProperty(t)||q(`Cannot find the required "${t}" attribute in client options.`)}))}};function Le(e){return Le=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Le(e)}function Re(){Re=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.asyncIterator||`@@asyncIterator`,c=a.toStringTag||`@@toStringTag`;function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},``)}catch{l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype);return i(o,`_invoke`,{value:T(e,n,new k(r||[]))}),o}function d(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}t.wrap=u;var f=`suspendedStart`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};l(y,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==n&&r.call(x,o)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);function C(e){[`next`,`throw`,`return`].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if(c.type!==`throw`){var l=c.arg,u=l.value;return u&&Le(u)==`object`&&r.call(u,`__await`)?t.resolve(u.__await).then((function(e){n(`next`,e,o,s)}),(function(e){n(`throw`,e,o,s)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n(`throw`,e,o,s)}))}s(c.arg)}var a;i(this,`_invoke`,{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function T(t,n,r){var i=f;return function(a,o){if(i===p)throw Error(`Generator is already running`);if(i===m){if(a===`throw`)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=E(s,r);if(c){if(c===h)continue;return c}}if(r.method===`next`)r.sent=r._sent=r.arg;else if(r.method===`throw`){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else r.method===`return`&&r.abrupt(`return`,r.arg);i=p;var l=d(t,n,r);if(l.type===`normal`){if(i=r.done?m:`suspendedYield`,l.arg===h)continue;return{value:l.arg,done:r.done}}l.type===`throw`&&(i=m,r.method=`throw`,r.arg=l.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,r===`throw`&&t.iterator.return&&(n.method=`return`,n.arg=e,E(t,n),n.method===`throw`)||r!==`return`&&(n.method=`throw`,n.arg=TypeError(`The iterator does not provide a '`+r+`' method`)),h;var a=d(i,t.iterator,n.arg);if(a.type===`throw`)return n.method=`throw`,n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,n.method!==`return`&&(n.method=`next`,n.arg=e),n.delegate=null,h):o:(n.method=`throw`,n.arg=TypeError(`iterator result is not an object`),n.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(D,this),this.reset(!0)}function A(t){if(t||t===``){var n=t[o];if(n)return n.call(t);if(typeof t.next==`function`)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw TypeError(Le(t)+` is not iterable`)}return _.prototype=v,i(S,`constructor`,{value:v,configurable:!0}),i(v,`constructor`,{value:_,configurable:!0}),_.displayName=l(v,c,`GeneratorFunction`),t.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===_||(t.displayName||t.name)===`GeneratorFunction`)},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,`GeneratorFunction`)),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,a){a===void 0&&(a=Promise);var o=new w(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(S),l(S,c,`Generator`),l(S,o,(function(){return this})),l(S,`toString`,(function(){return`[object Generator]`})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=`next`,this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)n.charAt(0)===`t`&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type=`throw`,s.arg=t,n.next=r,i&&(n.method=`next`,n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=r.call(o,`catchLoc`),l=r.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error(`try statement without catch or finally`);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;O(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},this.method===`next`&&(this.arg=e),h}},t}function ze(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,Be(r.key),r)}}function Be(e){var t=function(e,t){if(Le(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Le(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Le(t)==`symbol`?t:t+``}var Ve=function(){function n(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),Ie.brazeClientOptions(e),this.options=e,this.initialize()}var r,i,a;return r=n,i=[{key:`initialize`,value:function(){var n=this.options.apiKey,r={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,allowUserSuppliedJavascript:this.options.allowUserSuppliedJavascript,minimumIntervalBetweenTriggerActionsInSeconds:this.options.minimumIntervalBetweenTriggerActionsInSeconds,doNotLoadFontAwesome:!0};e.ZP.initialize(n,r)||q(`Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.`),this.options.automaticallyShowInAppMessages&&function(){if(!e.ZP.X())return;o();let n=t.Z.m();if(n.Pi()==null){let e=B((e=>z(e)));n.$i(e)}n.Pi()}()}},{key:`openSession`,value:function(){(function(){if(!e.ZP.X())return;let t=e.ZP.cr();if(!t)return;t.openSession();let n=V.Z.Yt.Qt,r=new V.Z(n,_.Z);r.jr(n.ss.hr,((e,i)=>{let a=i.lastClick,o=i.trackingString;_.Z.info(`Firing push click trigger from ${o} push click at ${a}`);let s=t.kr(a,o),c=function(){x.n.rr().fe(b.Z.vr,[o],s)};t.$r(c,c),r.re(n.ss.hr,e)})),r.Zt(n.ss.wr,(function(e){t.yr(e)}))})()}},{key:`logEvent`,value:function(e){var t=Ae.getEventDataPayload(e,{name:this.options.productName,version:this.options.productVersion,locale:this.options?.locale});return H.logCustomEvent(e.type,t)}},{key:`getUserId`,value:function(){return this.getBrazeUser().getUserId()}},{key:`setCustomUserAttribute`,value:function(e,t){var n=this.getBrazeUser();return Ie.clientUserAttributeValue(t)||q(`Invalid custom user attribute value: '${t}' for key: '${e}'`),n.setCustomUserAttribute(e,t)}},{key:`bulkSetCustomUserAttributes`,value:function(e){var t=this;Object.keys(e).length||q(`Cannot bulk set emptry object for custom user attributes`),Object.keys(e).forEach((function(n){var r=e[n];t.setCustomUserAttribute(n,r)}))}},{key:`requestPushPermission`,value:function(e,t){ee.requestPushPermission(e,t)}},{key:`unregisterPush`,value:function(e,t){U.unregisterPush(e,t)}},{key:`setAlias`,value:function(e,t){this.getBrazeUser().addAlias(t,e)}},{key:`setUser`,value:function(e){te.changeUser(e)}},{key:`setUserFirstName`,value:function(e){this.getBrazeUser().setFirstName(e)}},{key:`setUserLastName`,value:function(e){this.getBrazeUser().setLastName(e)}},{key:`setUserEmail`,value:function(e){this.getBrazeUser().setEmail(e)}},{key:`setUserCountry`,value:function(e){this.getBrazeUser().setCountry(e)}},{key:`setUserPhone`,value:function(e){this.getBrazeUser().setPhoneNumber(e)}},{key:`setUserGender`,value:function(e){this.getBrazeUser().setGender(e)}},{key:`setUserEmailNotificationSubscriptionType`,value:function(e){return this.getBrazeUser().setEmailNotificationSubscriptionType(e)}},{key:`sendData`,value:function(e){e&&typeof e==`function`?ne.requestImmediateDataFlush(e):ne.requestImmediateDataFlush()}},{key:`hasUser`,value:function(){try{if(this.getBrazeUser())return!0}catch{return!1}finally{return!1}}},{key:`getBrazeUser`,value:function(){var e=E.P();return e||q(`No valid user found!`),e}},{key:`getContentCardsV2`,value:function(){return function(){if(e.ZP.X())return _e.rr().Us(!1)}()}},{key:`showContentCards`,value:function(e,t){return Se(e,t)}},{key:`getContentCards`,value:function(){return e=this,t=void 0,n=void 0,r=Re().mark((function e(){return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,new Promise((function(e,t){Se(null,(function(n){return n?e(n):t(Error(`No content cards found.`)),n}))})));case 1:case`end`:return e.stop()}}),e)})),new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}},{key:`hideCards`,value:function(t){(function(t){if(!e.ZP.X())return;let n=document.querySelectorAll(`.ab-feed`);for(let e=0;e<n.length;e++)(t==null||t!=null&&n[e].parentNode===t)&&(0,ye.tQ)(n[e])})(t)}},{key:`logContentCardDismissal`,value:function(e){e||q(`No "card" provided in "logContentCardDismissal"`),Ce.K(e)}},{key:`logContentCardClick`,value:function(e){e||q(`No "card" provided in "logContentCardClick"`),W.d(e,!0)}},{key:`logContentCardImpressions`,value:function(e){var t;e&&e.length||q(`No "cards" provided in "logContentCardImpressions"`),t=e,(0,oe.p)(t,!0)}},{key:`requestContentCardRefresh`,value:function(e,t){return se(e,t)}},{key:`subscribeToContentCardUpdate`,value:function(e){return e||q(`No "subscriber" provided in "subscribeToContentCardUpdate"`),ve(e)}},{key:`subscribeToInAppMessage`,value:function(e){return e||q(`No "callback" provided in "subscribeToInAppMessage".`),B(e)}},{key:`showInAppMessage`,value:function(e,t,n){return e||q(`Invalid "inAppMessage" provided in "showInAppMessage".`),z(e,t,n)}},{key:`logInAppMessageClick`,value:function(e){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageClick".`),S(e)}},{key:`logInAppMessageButtonClick`,value:function(e,t){return e&&t||q(`Invalid params supplied in "logInAppMessageButtonClick".`),N(e,t)}},{key:`logInAppMessageHtmlClick`,value:function(e,t,n){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageHtmlClick".`),T(e,t,n)}},{key:`logInAppMessageImpression`,value:function(e){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageImpression".`),y(e)}}],a=[{key:`getInstance`,value:function(e){return this._instance||=new this(e)}}],i&&ze(r.prototype,i),a&&ze(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}();function He(e){return He=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},He(e)}function Ue(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,We(r.key),r)}}function We(e){var t=function(e,t){if(He(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(He(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return He(t)==`symbol`?t:t+``}var Ge=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.options=t,this.apiClient=t.apiClient}var t,n;return t=e,(n=[{key:`safelyExecute`,value:function(e){try{return e()}catch(e){e instanceof Error&&J(e.message),typeof e==`string`&&J(e)}}}])&&Ue(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ke(e){return Ke=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ke(e)}function qe(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,Je(r.key),r)}}function Je(e){var t=function(e,t){if(Ke(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ke(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ke(t)==`symbol`?t:t+``}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}function Xe(e){var t=Qe();return function(){var n,r=$e(e);if(t){var i=$e(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){if(t&&(Ke(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function Qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Qe=function(){return!!e})()}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}var et=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)})(i,e);var t,n,r=Xe(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`getAll`,value:function(){return this.apiClient.getContentCardsV2()}},{key:`getContentCards`,value:function(){return this.apiClient.getContentCards()}},{key:`show`,value:function(e,t){return this.apiClient.showContentCards(e,t)}},{key:`hide`,value:function(e){return this.apiClient.hideCards(e)}},{key:`logDismissal`,value:function(e){return this.apiClient.logContentCardDismissal(e)}},{key:`logClick`,value:function(e){return this.apiClient.logContentCardClick(e)}},{key:`logImpressions`,value:function(e){return this.apiClient.logContentCardImpressions(e)}},{key:`requestRefresh`,value:function(e,t){return this.apiClient.requestContentCardRefresh(e,t)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToContentCardUpdate(e)}}])&&qe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge);function tt(e){return tt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tt(e)}function nt(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,rt(r.key),r)}}function rt(e){var t=function(e,t){if(tt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(tt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return tt(t)==`symbol`?t:t+``}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}function at(e){var t=st();return function(){var n,r=ct(e);if(t){var i=ct(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){if(t&&(tt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function st(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(st=function(){return!!e})()}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)})(i,e);var t,n,r=at(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`show`,value:function(e,t,n){return this.apiClient.showInAppMessage(e,t,n)}},{key:`logMessageClick`,value:function(e){return this.apiClient.logInAppMessageClick(e)}},{key:`logButtonClick`,value:function(e,t){return this.apiClient.logInAppMessageButtonClick(e,t)}},{key:`logHtmlMessageClick`,value:function(e,t,n){return this.apiClient.logInAppMessageHtmlClick(e,t,n)}},{key:`logImpression`,value:function(e){return this.apiClient.logInAppMessageImpression(e)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToInAppMessage(e)}}])&&nt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge),wt={all:[`streamable`,`clickview`],cv:[`clickview`],sl:[`streamable`],none:[]};(function(e){e.AU=`au`,e.NZ=`nz`,e.UK=`uk`,e.US=`us`})(lt||={}),function(e){e.PageView=`page_view`}(ut||={}),function(e){e.ButtonClick=`marketing_button_click`,e.LinkClick=`marketing_link_click`}(dt||={}),function(e){e.FreeTrialSignup=`marketing_free_trial_signup`,e.DemoSignup=`marketing_demo_signup`,e.PostFreeTrialSubmission=`marketing_post_free_trial_submission`,e.FormSubmission=`marketing_form_submission`,e.ContactFormSubmission=`marketing_contact_us_submission`,e.CallBooked=`marketing_call_booked`,e.NewsletterSignup=`cv_marketing_newsletter_sign_up`,e.MarketingTradeshowSubmission=`marketing_tradeshow_submission`,e.LandingPageFormSubmission=`cv_marketing_lp_form_submission`,e.MarketingReferralFormSubmission=`cv_marketing_mdc_referral`}(ft||={}),function(e){e.ProductTrailRequested=`product_trial_requested`,e.FormSubmission=`product_form_submission`,e.TrialUpgradeRequested=`product_trial_upgrade_requested`,e.OlympicsOfferSubmission=`product_olympics_offer_submission`,e.BdmTrialRequested=`cv_product_bdm_trial_requested`,e.ClickViewPilotRequested=`cv_product_pilot_requested`,e.ClickViewLivePilotRequested=`cl_product_pilot_requested`}(pt||={}),function(e){e.ContactUsFormSubmit=`streamable_contact_us_submission`,e.LivestreamBookingFormSubmit=`streamable_livestream_booking_submission`}(mt||={}),function(e){e.TrialRequested=`sl_marketing_trial_requested`,e.HalloweenFormSubmission=`sl_marketing_halloween_submission`,e.NewsletterSignup=`sl_marketing_newsletter_sign_up`,e.RequestPricing=`sl_marketing_pricing_requested`,e.LandingPageFormSubmission=`sl_marketing_lp_form_submission`,e.ContactUsFormSubmit=`sl_marketing_contact_us_submission`}(ht||={}),function(e){e.ContactUsFormSubmit=`ch_marketing_contact_us_submission`}(gt||={}),function(e){e.ExploreTopics=`product_explore_topics`,e.Stream=`product_stream`,e.Search=`product_search`,e.SearchClickthrough=`product_search_clickthrough`,e.ClickBookACall=`product_book_a_call_clicked`,e.Share=`product_share`,e.DownloadResource=`product_download_resource`,e.Invite=`product_invite_send`,e.PlayerDeviceCta=`product_player_devices_cta`,e.SettingsIntegrations=`product_settings_integrations`}(_t||={}),function(e){e.AddToSubscriptionGroups=`add_to_subscription_groups`}(vt||={}),function(e){e.FirstName=`first_name`,e.LastName=`last_name`,e.Email=`email`,e.Phone=`phone_number`}(yt||={}),function(e){e.CrmId=`cvc_id`,e.JobTitle=`job_title`,e.AccountOwner=`account_owner`,e.Department=`department`,e.AccountName=`account_name`,e.AccountType=`account_type`,e.OrgType=`organisation_type`,e.OrgSubType=`organisation_sub_type`,e.SyncToCrm=`sync_to_crm`,e.MasterId=`master_id`,e.AccountAddress=`account_address`,e.Source=`source`}(bt||={}),function(e){e.AccountCity=`account_city`,e.AccountState=`account_state`,e.AccountPostCode=`account_post_code`,e.AccountCountry=`account_country`,e.HowCanWeHelp=`how_can_we_help`,e.ReasonForInterest=`reason_for_interest`,e.Conversion=`conversion`,e.ContactUsComment=`contact_us_comment`,e.ReferredBy=`referred_by`,e.ReferredBySchool=`referred_by_school`,e.ReferralSubmittedBy=`referral_submitted_by`,e.ReferralType=`referral_type`,e.Variant=`variant`}(xt||={}),function(e){e.Marketing=`marketing_id`,e.Product=`master_id`,e.Email=`email`}(St||={});function Tt(e){return Tt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Tt(e)}function Et(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,Dt(r.key),r)}}function Dt(e){var t=function(e,t){if(Tt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Tt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Tt(t)==`symbol`?t:t+``}function Ot(e,t){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ot(e,t)}function kt(e){var t=jt();return function(){var n,r=Mt(e);if(t){var i=Mt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return At(this,n)}}function At(e,t){if(t&&(Tt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(jt=function(){return!!e})()}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}var Nt=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)})(i,e);var t,n,r=kt(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,n=[{key:`logForm`,value:function(e){this.log(e),function(e){switch(e?.internalOptions?.subscriptionGroups){case`all`:case`cv`:case`sl`:return!0;default:return!1}}(e)&&this.logInternal({eventType:vt.AddToSubscriptionGroups,additionalData:{products:wt[e.internalOptions?.subscriptionGroups]}})}},{key:`logAnalytics`,value:function(e){this.log(e,!1)}},{key:`logInternal`,value:function(e){var t=e.eventType,n=e.additionalData,r={type:t,data:{}};Ie.additionalData(n)&&(r.data=Object.assign({},n)),this.apiClient.logEvent(r),this.apiClient.sendData()}},{key:`log`,value:function(e){var t=e.eventType,n=e.actionType,r=e.additionalData,i=e.callback,a=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=this.options.getPayload();Ie.additionalData(r)&&(o=Object.assign(Object.assign({},o),r));var s={type:t,data:o};n&&(s.actionType=n);var c=this.apiClient.logEvent(s);a?this.apiClient.sendData(i):typeof i!=`function`||i(c)}}],n&&Et(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge),Pt=i(8322),Ft=i.n(Pt);function It(e){return It=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},It(e)}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if(typeof e==`string`)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
60
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zt={removeEmptyKeys:function(e){var t=this;if(Array.isArray(e))return e;var n=Object.assign({},e);return Object.entries(n).filter((function(e){var t=Lt(e,2)[1];return!(t==null||typeof t==`string`&&!t.length||It(t)===`object`&&Object.keys(t).length===0)})).reduce((function(e,n){var r,i,a,o=Lt(n,2),s=o[0],c=o[1];return Object.assign(Object.assign({},e),(r={},i=s,a=c===Object(c)?t.removeEmptyKeys(c):c,(i=function(e){var t=function(e,t){if(It(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(It(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return It(t)==`symbol`?t:t+``}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r))}),{})}};function Bt(e){return Bt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bt(e)}function Vt(e,t,n){return(t=function(e){var t=function(e,t){if(Bt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Bt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Bt(t)==`symbol`?t:t+``}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht={getDefaultUserAttributes:function(e){var t;return zt.removeEmptyKeys((Vt(t={},yt.Email,e.email),Vt(t,yt.FirstName,e?.firstName),Vt(t,yt.LastName,e?.lastName),Vt(t,yt.Phone,e?.phone),t))},getCustomUserAttributesWithoutSource:function(e){var t,n=zt.removeEmptyKeys({province:e?.custom?.accountAddress?.province,country_code:e?.custom?.accountAddress?.countryCode}),r=(Vt(t={},bt.AccountName,e?.custom?.accountName),Vt(t,bt.AccountType,e?.custom?.accountType),Vt(t,bt.CrmId,e?.custom?.crmId),Vt(t,bt.Department,e?.custom?.department),Vt(t,bt.JobTitle,e?.custom?.jobTitle),Vt(t,bt.MasterId,e?.custom?.masterId),Vt(t,bt.OrgSubType,e?.custom?.orgSubType),Vt(t,bt.OrgType,e?.custom?.orgType),Vt(t,bt.SyncToCrm,e?.custom?.syncToCrm),t);return Ie.accountAddress(n)&&(r[bt.AccountAddress]=n),zt.removeEmptyKeys(r)},getCustomUserAttributes:function(e){var t=Ht.getCustomUserAttributesWithoutSource(e);return zt.removeEmptyKeys(Object.assign(Object.assign({},t),Vt({},bt.Source,function(e){if(e.custom?.source&&e.custom.source.length){var t=Object.keys(Ht.getDefaultUserAttributes(e)),n=Object.keys(Ht.getCustomUserAttributesWithoutSource(e));return{$add:[{name:e.custom.source,attributes:[].concat(t,n)}]}}q(`No source provided for braze user.`)}(e))))},getEventUserAttributes:function(e){var t;return zt.removeEmptyKeys((Vt(t={},xt.AccountCity,e?.event?.accountCity),Vt(t,xt.AccountCountry,e?.event?.accountCity),Vt(t,xt.AccountPostCode,e?.event?.accountPostCode),Vt(t,xt.AccountState,e?.event?.accountState),Vt(t,xt.ContactUsComment,e?.event?.contactUsComment),Vt(t,xt.Conversion,e?.event?.conversion),Vt(t,xt.HowCanWeHelp,e?.event?.howCanWeHelp),Vt(t,xt.ReasonForInterest,e?.event?.reasonForInterest),Vt(t,xt.ReferredBy,e?.event?.referredBy),Vt(t,xt.ReferredBySchool,e?.event?.referredBySchool),Vt(t,xt.ReferralSubmittedBy,e?.event?.referralSubmittedBy),Vt(t,xt.ReferralType,e?.event?.referralType),Vt(t,xt.Variant,e?.event?.variant),t))},getExtraUserAttributes:function(e){return Bt(e.extra)===`object`?zt.removeEmptyKeys(e.extra):{}},getPayload:function(e){if(!e)return{};var t=Ht.getDefaultUserAttributes(e),n=Ht.getCustomUserAttributes(e),r=Ht.getEventUserAttributes(e),i=Ht.getExtraUserAttributes(e),a=Ie.additionalData(i),o=Object.assign(Object.assign(Object.assign({},t),n),r);return a?Object.assign(Object.assign({},o),i):o},getEmailHash:function(e){var t=e.trim().toLowerCase();return Ft().hash(t)}};function Ut(e){return Ut=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ut(e)}function Wt(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,Gt(r.key),r)}}function Gt(e){var t=function(e,t){if(Ut(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ut(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ut(t)==`symbol`?t:t+``}var Kt=function(){function e(t){var n=t.apiOptions,r=t.shouldInitialize,i=r===void 0||r,a=t.allowAnonymous,o=a!==void 0&&a,s=t.subscriptions;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.initialized=!1,this.apiOptions=n,this.subscriptions=s,this.allowAnonymous=o,i&&this.initialize()}var t,n;return t=e,(n=[{key:`initialize`,value:function(){var e=this;this.isInitialized()?function(e){var t=[...arguments].slice(1);console.warn(e,t)}(`BrazeClient has already been initialized!`):(this.apiClient=Ve.getInstance(this.apiOptions),this.cardsModule=new et({apiClient:this.apiClient}),this.bamModule=new Ct({apiClient:this.apiClient}),this.eventModule=new Nt({apiClient:this.apiClient,getPayload:function(){return Ht.getPayload(e.user)}}),this.initialized=!0)}},{key:`isInitialized`,value:function(){return this.initialized}},{key:`getUser`,value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(J(`BrazeClient has not been initialized.`),null)}},{key:`card`,get:function(){return this.isInitialized()?this.cardsModule:(J(`BrazeClient has not been initialized.`),null)}},{key:`bam`,get:function(){return this.isInitialized()?this.bamModule:(J(`BrazeClient has not been initialized.`),null)}},{key:`event`,get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(J("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(J(`BrazeClient has not been initialized.`),null)}},{key:`setUser`,value:function(e){this.isInitialized()?(this.user=e,this.startSession(),this.logUserAttributes()):J("Trying to `setUser` but the client has not been initialized")}},{key:`setUserInit`,value:function(e){this.isInitialized()||this.initialize(),this.setUser(e)}},{key:`allowAnonymousSessions`,value:function(){this.allowAnonymous=!0}},{key:`api`,value:function(){return this.isInitialized()?this.apiClient:null}},{key:`setEmailNotificationSubscriptionType`,value:function(e){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(e):null}},{key:`validateUser`,value:function(){return!!this.user||(J(`No user has been set!`),!1)}},{key:`startSession`,value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user&&this.apiClient.setUser(Ht.getEmailHash(this.user.email)),this.apiClient.openSession()):J(`No user provided and cannot start anonymous sessions!`)}},{key:`enableSubscriptions`,value:function(){var e,t;(e=this.subscriptions)!=null&&e.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage==`function`&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),(t=this.subscriptions)!=null&&t.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards==`function`&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:`logUserAttributes`,value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var e=Ht.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(e)}}}])&&Wt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qt(e){return Ve.getInstance(e)}})(),a})()))}))();function DD(e){(0,Z.useEffect)(()=>{let t=OD(e?.additionalData);t?.attributionData&&rf.setAttributionData(t.attributionData),t?.utms&&gf.setUtmParameters(t.utms)},[])}function OD(e){if(!e?.attribution?.length)return null;try{let{r:t,utms:n}=JSON.parse(e.attribution);return{attributionData:rf.decodeRValue(t),utms:n}}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}var kD=function(e){return e.Lite=`lite`,e.Auth=`auth`,e}({});function AD(e){return{productName:kD.Auth,prospectStatus:t=>`${e}/v1/prospects/${t}/trial-status`,createTrial:`/ajax/trials/new`,searchProspect:`${e}/v1/search/prospects`,createProspect:`/ajax/trials/prospects`,prospectLookups:t=>`${e}/v1/prospects/${t}/lookups`,joinRequest:`/ajax/trials/join-request`}}var jD=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;function MD(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function ND(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=jD.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return MD(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:return function(e,t,r){return MD(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function PD(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?jD.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function FD(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var ID=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=FD(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=PD(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=ND(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=FD(t);return PD(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function LD(e,t){return e<<t|e>>>32-t}function RD(e,t,n){return e^t^n}function zD(e,t,n){return e&t^e&n^t&n}function BD(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function VD(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function HD(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function UD(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:LD(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?VD(LD(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?VD(LD(n,5),RD(r,i,a),o,1859775393,l[c]):c<60?VD(LD(n,5),zD(r,i,a),o,2400959708,l[c]):VD(LD(n,5),RD(r,i,a),o,3395469782,l[c]),o=a,a=i,i=LD(r,30),r=n,n=s;var u;return t[0]=BD(n,t[0]),t[1]=BD(r,t[1]),t[2]=BD(i,t[2]),t[3]=BD(a,t[3]),t[4]=BD(o,t[4]),t}function WD(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=UD(e.slice(i,i+16),r);return r}var GD=class extends ID{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=ND(this.t,this.i,this.H),this.g=UD,this.I=function(e){return e.slice()},this.L=HD,this.Y=WD,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return ND(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},KD=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),qD={CvApSoutheast1:{systemName:KD.CvApSoutheast1},CvApSoutheast2:{systemName:KD.CvApSoutheast2},CvEuWest1:{systemName:KD.CvEuWest1},CvNaWest1:{systemName:KD.CvNaWest1}},JD=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),YD=3,XD=5e3,ZD=6,QD={},$D=class{constructor(e){this.key=e.toString()}getCount(){return QD[this.key]||0}increment(){QD[this.key]=this.getCount()+1}reset(){delete QD[this.key]}shouldBreak(){return this.getCount()>=ZD}},eO=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,XD*2**this.attempt)),this.attempt++}};async function tO(e,t){let n=new eO,r=new $D(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=YD;e++)try{return await i()}catch(t){if(e>=YD||r.shouldBreak())throw t;r.increment(),await n.wait()}}var nO=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function rO(e){return typeof e==`string`&&nO.test(e)}var iO=[];for(let e=0;e<256;++e)iO.push((e+256).toString(16).slice(1));function aO(e,t=0){return(iO[e[t+0]]+iO[e[t+1]]+iO[e[t+2]]+iO[e[t+3]]+`-`+iO[e[t+4]]+iO[e[t+5]]+`-`+iO[e[t+6]]+iO[e[t+7]]+`-`+iO[e[t+8]]+iO[e[t+9]]+`-`+iO[e[t+10]]+iO[e[t+11]]+iO[e[t+12]]+iO[e[t+13]]+iO[e[t+14]]+iO[e[t+15]]).toLowerCase()}var oO,sO=new Uint8Array(16);function cO(){if(!oO){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);oO=crypto.getRandomValues.bind(crypto)}return oO(sO)}var lO={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uO(e,t,n){if(lO.randomUUID&&!t&&!e)return lO.randomUUID();e||={};let r=e.random??e.rng?.()??cO();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return aO(r)}function dO(e){if(!rO(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}var fO=`cv:session:`,pO=`cv:window:v2:`,mO=1e3*60*30,hO=4;function gO(e){if(e===Hd.LocalStorage)return qd.isAvailable()?qd:Yd;if(e===Hd.SessionStorage)return Jd.isAvailable()?Jd:Yd}function _O(e){return new Date().getTime()+e}function vO(){return uO()}function yO(e,t){return e+(t||`0`)}function bO(e){return new Date().getTime()>e}function xO(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!rO(e.id)||dO(e.id)!==hO||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function SO(e,t,n){let r=gO(n),i=yO(e,t),a=r.get(i);return!xO(a)||bO(a?.ttl)?null:a}function CO(e,t,n,r){let i=gO(n),a=yO(e,t),o={id:vO(),ttl:_O(r)};return i.set(a,o),o}function wO(e,t,n,r,i){let a=gO(n),o=yO(e,t);a.set(o,{id:r.id,ttl:_O(i)})}function TO(e,t,n){let r=gO(n);if(!r?.isAvailable())return;let i=yO(e,t);r.remove(i)}var EO=null,DO={getClientSessionData(e){let t=SO(fO,e,Hd.LocalStorage);t?wO(fO,e,Hd.LocalStorage,t,mO):t=CO(fO,e,Hd.LocalStorage,mO);let n=SO(pO,e,Hd.SessionStorage);return n?EO===null&&wO(pO,e,Hd.SessionStorage,n,mO):n=CO(pO,e,Hd.SessionStorage,EO??mO),{id:t.id,windowId:n.id}},resetClientSession(e){TO(fO,e,Hd.LocalStorage),TO(pO,e,Hd.SessionStorage)},lockWindowSession(e,t){EO=t;let n=SO(pO,e,Hd.SessionStorage);n&&wO(pO,e,Hd.SessionStorage,n,t)},unlockWindowSession(e){EO=null;let t=SO(pO,e,Hd.SessionStorage);t&&wO(pO,e,Hd.SessionStorage,t,mO)}},OO={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},kO={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},AO={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},jO=`Unknown`;function MO(e,t,n){let[r]=t.exec(n)||[];return r||=jO,{name:e,version:r}}function NO(e,t,n){if(!t)return{name:e,version:jO};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():jO}}function PO(e,t){let n={name:e,version:null};return AO.win2000.test(t)&&(n.version=`2000`),AO.winXP.test(t)&&(n.version=`XP`),AO.winVista.test(t)&&(n.version=`Vista`),AO.win7.test(t)&&(n.version=`7`),AO.win8.test(t)&&(n.version=`8`),AO.win81.test(t)&&(n.version=`8.1`),AO.win10.test(t)&&(n.version=`10`),n.version||=jO,n}var FO={getDeviceType(){let e=window.navigator.userAgent;return AO.mobileDevice.test(e)?AO.iphone.test(e)?`iPhone`:AO.ipad.test(e)?`iPad`:AO.android.test(e)?`Android`:AO.blackberry.test(e)?`Blackberry`:AO.windowsPhone.test(e)?`Windows Phone`:jO:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return AO.android.test(e)?NO(`Android`,AO.androidVersion,e):AO.iphone.test(e)||AO.ipad.test(e)?NO(`iOS`,AO.iosVersion,e):AO.linux.test(e)?NO(`Linux`,null,e):AO.unix.test(e)?NO(`Unix`,null,e):AO.mac.test(e)?NO(`Macintosh`,AO.osxVersion,e):AO.windows.test(e)?PO(`Windows`,e):AO.blackberry.test(e)?NO(`BlackBerry`,AO.blackberryVersion,e):AO.windowsPhone.test(e)?NO(`Windows Phone`,AO.windowsPhoneVersion,e):{name:jO,version:jO}},getBrowser(){let e=window.navigator.userAgent;return AO.chrome.test(e)?MO(`Chrome`,AO.generalVersion,e):AO.firefox.test(e)?MO(`Firefox`,AO.generalVersion,e):AO.safari.test(e)?MO(`Safari`,AO.generalVersion,e):AO.ie.test(e)?MO(`Internet Explorer`,AO.ieVersion,e):AO.edge.test(e)?MO(`Edge`,AO.edgeVersion,e):AO.opera.test(e)?MO(`Opera`,AO.operaVersion,e):{name:jO,version:jO}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},IO={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`11.1.1`}},LO=`zXJL9nOHxzDlMUDjiP41`,RO=`unknown`,zO=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=gf.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=rf.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!OO.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return!OO.isFunction(this.options.shouldLog)||this.options.shouldLog(e)}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=kO.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=kO.safeUrlConcat(i,`/bulk`));try{let e=await tO(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new GD(`SHA-1`,`TEXT`,{hmacKey:{value:LO,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case KD.CvEuWest1:return e.cvEuWest1;case KD.CvApSoutheast2:return e.cvApSoutheast2;case KD.CvNaWest1:return e.cvNaWest1;case KD.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),OO.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return OO.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||RO,userGroup:(t.userGroup??JD.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...DO.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),DO.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:FO.getBrowser(),os:FO.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:IO.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(qD).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):RO}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},BO=function(e){return e.Stream=`cv_product_stream`,e.WebPlayerStream=`cv_product_webplayer_stream`,e.StreamProgress=`cv_product_stream_progress`,e.PreviewStreamProgress=`cv_product_preview_stream_progress`,e.StreamBuffering=`cv_product_stream_buffering`,e.Login=`cv_product_login`,e.LoginSsoRedirect=`cv_product_login_sso_redirect`,e.LoginFailed=`cv_product_login_failed`,e.Search=`cv_product_search`,e.InstantSearch=`cv_product_instant_search`,e.SearchEmptyResult=`cv_product_search_empty_result`,e.Filter=`cv_product_search_filter`,e.SearchLanding=`cv_product_search_landing`,e.Share=`cv_product_share`,e.Unshare=`cv_product_unshare`,e.WorkspaceAdd=`cv_product_tv_add`,e.Rename=`cv_product_rename`,e.Move=`cv_product_move`,e.Sort=`cv_product_sort`,e.Create=`cv_product_create`,e.Delete=`cv_product_delete`,e.Associate=`cv_product_associate`,e.Dissociate=`cv_product_dissociate`,e.Edit=`cv_product_edit`,e.Approve=`cv_product_approve`,e.Reject=`cv_product_reject`,e.Disable=`cv_product_disable`,e.Upload=`cv_product_upload`,e.Download=`cv_product_download`,e.Navigate=`cv_product_navigate`,e.Click=`cv_product_click`,e.Suggest=`cv_product_suggest`,e.EditAssoc=`cv_product_edit_assoc`,e.Play=`cv_product_play`,e.Favourite=`cv_product_favourite`,e.Follow=`cv_product_follow`,e.Prefer=`cv_product_prefer`,e.Print=`cv_product_print`,e.Copy=`cv_product_copy`,e.Activate=`cv_product_activate`,e.VerifyEmail=`cv_product_verify_email`,e.ChangePassword=`cv_product_change_password`,e.ManageGroup=`cv_product_manage_group`,e.Export=`cv_product_export`,e.SendEmail=`cv_product_send_email`,e.Publish=`cv_product_publish`,e.Submit=`cv_product_submit`,e.Complete=`cv_product_complete`,e.Archive=`cv_product_archive`,e.Promote=`cv_product_promote`,e.Demote=`cv_product_demote`,e.BulkAction=`cv_product_bulk_action`,e.Remove=`cv_product_remove`,e.Dismiss=`cv_product_dismiss`,e.Open=`cv_product_open`,e.Hide=`cv_product_hide`,e.PageView=`cv_product_page_view`,e.Select=`cv_product_select`,e.SwitchCustomer=`cv_product_switch_customer`,e.Focus=`cv_product_focus`,e.Blur=`cv_product_blur`,e.Hover=`cv_product_hover`,e.Unhover=`cv_product_unhover`,e.SetAccess=`cv_product_set_access`,e.AddToLocalCache=`cv_product_add_to_lc`,e.ResolveWarning=`cv_product_resolve_warning`,e.DismissWarning=`cv_product_dismiss_warning`,e}({}),VO=function(e){return e.Folder=`folder`,e.Video=`video`,e.Rating=`rating`,e.Series=`series`,e.Library=`library`,e.Resource=`resource`,e.Tag=`tag`,e.Subtitle=`subtitle`,e.Chapter=`chapter`,e.Resolution=`resolution`,e.PlaybackSpeed=`playback_speed`,e.Device=`device`,e.Restriction=`restriction`,e.Interactive=`interactive`,e.Interaction=`interaction`,e.PDF=`pdf`,e.CustomerSetting=`customer_setting`,e.UserSetting=`user_setting`,e.LibraryRequest=`staff_request`,e.Logo=`logo`,e.Pagination=`pagination`,e.Thumbnail=`thumbnail`,e.Banner=`banner`,e.Link=`link`,e.Playlist=`playlist`,e.Playlists=`playlists`,e.Person=`person`,e.Company=`company`,e.Classroom=`classroom`,e.ClassroomGroup=`classroom_group`,e.Classification=`classification`,e.ShareLink=`share_link`,e.DirectShare=`direct_share`,e.Upload=`upload`,e.SearchResults=`search_results`,e.SearchSuggestion=`search_suggestion`,e.Audience=`audience`,e.User=`user`,e.Clip=`clip`,e.UserChannel=`user_channel`,e.Widget=`widget`,e.Url=`url`,e.SocialShare=`social_share`,e.Presentation=`presentation`,e.BatchJob=`batch_job`,e.DeepLink=`deep_link`,e.Feedback=`feedback`,e.AppLink=`app_link`,e.SignUp=`sign_up`,e.FileGeneratorJob=`file_generator_job`,e.ExportLibraries=`export_libraries`,e.Product=`product`,e.Customer=`customer`,e.SpecialEvent=`special_event`,e.Region=`region`,e.ProductTip=`product_tip`,e.Livestream=`livestream`,e.DevicesCta=`devices_cta`,e.Integration=`integration`,e.Faq=`faq`,e.MixedMedia=`mixed_media`,e.TableOfContents=`table_of_contents`,e.Author=`author`,e.Glance=`glance`,e.Filter=`filter`,e.NotificationSetting=`notification_setting`,e.Transcript=`transcript`,e.CurriculumCode=`curriculum_code`,e.Assign=`assign`,e.PartnerProfile=`partner_profile`,e.Upsell=`upsell`,e}({}),HO=function(e){return e.TopNav=`top_nav`,e.LeftNav=`left_nav`,e.Footer=`footer`,e.Popup=`popup`,e.Banner=`banner`,e.VideoList=`video_list`,e.VideoListItem=`video_list_item`,e.VideoListHeader=`video_header`,e.VideoThumbnail=`video_thumbnail`,e.ExpandableVideoThumbnail=`expandable_video_thumbnail`,e.VideoItemPreview=`video_item_preview`,e.InteractiveItemPreview=`interactive_item_preview`,e.ClipItemPreview=`clip_item_preview`,e.VideoDetails=`video_details`,e.InteractiveDetails=`interactive_details`,e.ClipDetails=`clip_details`,e.VideoDetailsHeader=`video_details_header`,e.EditVideoDetails=`edit_video_details`,e.EditInteractiveVideoDetails=`edit_interactive_video_details`,e.EditClipDetails=`edit_clip_details`,e.EditVideoChapters=`edit_video_chapters`,e.EditVideoResources=`edit_video_resources`,e.PreviewVideoResources=`preview_video_resources`,e.VideoUpload=`video_upload`,e.VideoRequest=`video_request`,e.Pagination=`pagination`,e.LibraryHeader=`library_header`,e.LibraryTiles=`library_tiles`,e.LibraryRequestDetails=`staff_request_details`,e.Libraries=`libraries`,e.SubFolderList=`sub_folder_list`,e.AwaitingReviewVideoListHeader=`awaiting_review_video_list_header`,e.AwaitingReviewVideoItem=`awaiting_review_video_item`,e.PastReleasesHeader=`past_releases_header`,e.MigrationWarnings=`migration_warnings`,e.PlaylistListHeader=`playlist_list_header`,e.PlaylistListItem=`playlist_list_item`,e.SeriesListItem=`series_list_item`,e.SeriesWithVideos=`series_with_videos`,e.PlaylistWithVideos=`playlist_with_videos`,e.Dropdown=`dropdown`,e.ViewCurriculumLinks=`view_curriculum_links`,e.SearchBar=`search_bar`,e.InstantSearch=`instant_search`,e.SearchFilters=`search_filters`,e.FeaturedSeriesSearchResult=`featured_series_search_result`,e.ExchangeSearchGroupItem=`exchange_search_group_item`,e.StaffManager=`staff_manager`,e.StaffManagerListItem=`staff_manager_list_item`,e.StudentManager=`student_manager`,e.ViewStudentVideos=`view_student_videos`,e.StudentManagerListItem=`student_manager_list_item`,e.EditUser=`edit_user`,e.UserAuditLog=`user_audit_log`,e.BulkUserActionsWizard=`bulk_user_actions_wizard`,e.BulkUserUploadWizard=`bulk_user_upload_wizard`,e.Classroom=`classroom`,e.ClassroomsList=`classrooms_list`,e.ClassroomsListItem=`classrooms_list_item`,e.ManageClassroomStudents=`manage_classroom_students`,e.ManageClassroomStudentListItem=`manage_classroom_student_list_item`,e.ManageClassroomGroups=`manage_classroom_groups`,e.ManageClassroomGroupListItem=`manage_classroom_group_list_item`,e.ManageClassroomTeachers=`manage_classroom_teachers`,e.ManageClassroomTeacherListItem=`manage_classroom_teachers_list_item`,e.ArchivedClassrooms=`archived_classrooms`,e.PreviewInteractive=`preview_interactive`,e.PreviewSharedInteractive=`preview_shared_interactive`,e.PreviewInteractiveQuestions=`preview_interactive_questions`,e.EditInteractive=`edit_interactive`,e.EditInteractiveDetails=`edit_interactive_details`,e.PlaySharedInteractive=`play_shared_interactive`,e.PlayInteractive=`play_interactive`,e.InteractiveListItem=`interactive_list_item`,e.DeleteInteractive=`delete_interactive`,e.NewInteractive=`new_interactive`,e.CopyInteractive=`copy_interactive`,e.UnpublishInteractive=`unpublish_interactive`,e.ShareInteractive=`share_interactive`,e.PlayPage=`play_page`,e.Player=`player`,e.FloatingPlayer=`floating_player`,e.InteractivePlayer=`interactive_player`,e.EmbeddedPlayer=`embedded_player`,e.CreateClipPlayer=`create_clip_player`,e.PlayClip=`play_clip`,e.PlaySharedClip=`play_shared_clip`,e.ClipListItem=`clip_list_item`,e.ContentUpdatesBanner=`content_updates_banner`,e.ContentUpdatesClassificationBanner=`content_updates_classification_banner`,e.PreferencesSettings=`preferences_settings`,e.NotificationSettings=`notification_settings`,e.TopicsOnboarding=`topics_onboarding`,e.MyUploads=`my_uploads`,e.MyVideos=`my_videos`,e.Playlists=`playlists`,e.SlidingList=`sliding_list`,e.HeroBannerItem=`hero_banner_item`,e.SlidingListItem=`sliding_list_item`,e.ClassificationListItem=`classification_list_item`,e.ClassificationComingSoon=`classification_coming_soon`,e.ClassificationHero=`classification_hero`,e.ClassificationFooter=`classification_footer`,e.Classification=`classification`,e.PresentationClassifications=`presentation_classifications`,e.Dashboard=`dashboard`,e.TeachingLevelBanner=`teaching_level_banner`,e.UpsellBanner=`upsell_banner`,e.FreemiumBanner=`freemium_banner`,e.DiscoverFooter=`discover_footer`,e.ProductBanner=`product_banner`,e.UserOptions=`user_options`,e.MagicTabs=`magic_tabs`,e.Settings=`settings`,e.StudentFeed=`student_feed`,e.MyShares=`my_shares`,e.SharedByMe=`shared_by_me`,e.SharedWithMe=`shared_with_me`,e.Insights=`insights`,e.Error=`error_view`,e.UpgradeForm=`upgrade_form`,e.ClassroomGuide=`classroom_guide`,e.TeachingResources=`teaching_resources`,e.ResourcesGuidancePopup=`resources_guidance_popup`,e.InteractivesGuidancePopup=`interactives_guidance_popup`,e.CurriculumGuidancePopup=`curriculum_guidance_popup`,e.TopVideos=`top_videos`,e.VideoViewsList=`video_views_list`,e.VideoOverview=`video_overview`,e.StudentReachPopup=`student_reach_popup`,e.VideoHighlight=`video_highlight`,e.ClassroomViewsPopup=`classroom_views_popup`,e.GiveFeedbackPopup=`give_feedback_popup`,e.LibraryRequestSettings=`library_request_settings`,e.LibraryRequestAutoApprovalSettings=`auto_approval_settings`,e.OpenInAppPrompt=`open_in_app_prompt`,e.UseAppButton=`use_app_button`,e.Launchpad=`launchpad`,e.EditableSubjectPreferencesWidget=`editable_subject_preferences_widget`,e.ThumbnailHeroMediaWidget=`thumbnail_hero_media_widget`,e.ThumbnailFixedListMediaLargeWidget=`thumbnail_fixed_list_media_large`,e.FilterSlidingPillListSmallWidget=`filter_sliding_pill_list_small`,e.CircleLogoSlidingListWidget=`circle_logo_sliding_list_widget`,e.RectangularLogoSlidingListWidget=`rectangular_logo_sliding_list_widget`,e.HeroBannerSmallWidget=`hero_banner_small`,e.EventIconSlidingListWidget=`event_icon_sliding_list_widget`,e.FaqQuestionWidget=`faq_question_widget`,e.FaqQuestionAccordionWidget=`faq_question_accordion_widget`,e.SubjectStatsWidgetItem=`subject_stats_widget_item`,e.AuthorReviewerWidget=`author_reviewer_widget`,e.ThumbnailFixedListMediaSmallWidget=`thumbnail_fixed_list_media_small_widget`,e.ThumbnailFixedListFolderSmallWidget=`thumbnail_fixed_list_folder_small_widget`,e.ThumbnailVerticalListWidget=`thumbnail_vertical_list_widget`,e.ThumbnailFixedListSmallWidget=`thumbnail_fixed_list_small_widget`,e.PosterFixedListLargeWidget=`poster_fixed_list_large_widget`,e.CurriculumResourcesAccordionWidget=`curriculum_resources_accordion_widget`,e.SearchCurriculumCodeWidget=`search_curriculum_code_widget`,e.ExchangeLinksWidget=`exchange_links_widget`,e.TableOfContents=`table_of_contents`,e.SignUpPopup=`sign_up_popup`,e.SignUpPage=`sign_up_page`,e.TrialBanner=`trial_banner`,e.InviteColleaguePopup=`invite_colleague_popup`,e.AuthProspectSelect=`auth_prospect_select`,e.GatedBanner=`gated_banner`,e.GatedEmptyState=`gated_empty_state`,e.GatedPopup=`gated_popup`,e.WelcomePopup=`welcome_popup`,e.WatchHistoryLanding=`watch_history_landing`,e.MyFavouritesLanding=`my_favourites_landing`,e.MyVideoLanding=`my_videos_landing`,e.PlaylistsLanding=`playlists_landing`,e.MySharesLanding=`myshares_landing`,e.PremiumFeatures=`premium_features`,e.NotificationsDropdown=`notifications_dropdown`,e.CalendarNav=`calendar_nav`,e.CalendarDay=`calendar_day`,e.CalendarPopup=`calendar_popup`,e.RegionMap=`region_map`,e.OnboardingSelectRoleScreen=`onboarding_select_role_screen`,e.OnboardingSchoolLevelScreen=`onboarding_school_level_screen`,e.OnboardingAudiencePreferencesScreen=`onboarding_audience_preferences_screen`,e.OnboardingSelectCurriculumScreen=`onboarding_select_curriculum_screen`,e.OnboardingSubjectsScreen=`onboarding_subjects_screen`,e.ProductTips=`product_tips`,e.LivestreamBookingForm=`booking_form`,e.DateRangeFilter=`date_range_selector`,e.AudienceFilter=`audience_filter`,e.AssignFlowView=`assign_flow_view`,e.ContentPartnerDashboard=`content_partner_dashboard`,e.ContentPartnerDashboardVideoBanner=`content_partner_dashboard_video_banner`,e.UpsellRequestForm=`upsell_request_form`,e.UpsellProductInfo=`upsell_product_info`,e.Global=`global`,e}({}),UO=function(e){return e.Start=`start`,e.Complete=`complete`,e.Save=`save`,e.Discard=`discard`,e.Next=`next`,e.Back=`back`,e}({}),WO=function(e){return e.SignIn=`sign_in`,e.SignUp=`sign_up`,e.SignOut=`sign_out`,e.SwitchAccount=`switch_account`,e.TopNavButton=`top_nav_button`,e.Educator=`educator`,e.Student=`student`,e.TermsAndConditions=`terms_and_conditions`,e.PrivacyPolicy=`privacy_policy`,e.EnterEmail=`enter_email`,e.ClosePopup=`close_popup`,e.Back=`back`,e.UseMyLocation=`use_my_location`,e.TrialCreated=`trial_created`,e.TrialRequested=`trial_requested`,e.DeadEnd=`dead_end`,e.CantFindSchool=`cant_find_school`,e.ResendEmail=`resend_email`,e.ContactUs=`contact_us`,e.InviteColleague=`invite_colleague`,e.PremiumFeatures=`premium_features`,e.Upgrade=`upgrade`,e.FindSchool=`find_school`,e.AddToBraze=`add_to_braze`,e.RequestAccess=`request_access`,e.AutoJoin=`auto_join`,e.WrongEmail=`wrong_email`,e.RequestBdmTrial=`request_bdm_trial`,e.SkipIdpSelect=`skip_idp_select`,e}({}),GO=function(e){return e[e.V1=1]=`V1`,e[e.V2=2]=`V2`,e[e.V3=3]=`V3`,e[e.V4=4]=`V4`,e[e.V5=5]=`V5`,e}({}),KO={first(e){return zg(e)},firstFew(e,t){return zg(e,t)},last(e){return Vg(e)},lastFew(e,t){return Vg(e,t)},max(e,t){return Sg(e,t)},cloneAndReplaceAtIdx(e,t,n,r=null){let i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[...i,...Array(t+1-i.length).fill(r)]),i.splice(t,1,n),i},moveItem(e,t,n){let r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty(e){return e&&!e.length},findIndex(e,t){return tg(e,t)},findWhere(e,t){return cg(e,t)},where(e,t){return xg(e,t)},groupBy(e,t){return Ag(e,t)},countBy(e,t){return Mg(e,t)},flatten(e,t){return Ug(e,t)},flatMap(e,t){return Ug(e.map(t),!0)},intersection(...e){return Jg(...e)},addOrRemove(e,t){let n=e.indexOf(t);return n===-1?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){let n=e.indexOf(t),r=gE.deepClone(e);return n===-1?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy(e,t){return Og(e,t)},chunk(e,t){return $g(e,t)},uniq(e,t){return Kg(e,t)},toObject(e,t){return e.reduce((e,n)=>Object.assign(e,gE.isObject(n)?{[n[t]]:n}:{[t]:n}),{})},findIndexById(e,t){return e.findIndex(e=>e.id===t.id)},removeItem(e,t){let n=this.findIndex(e,t);return n===-1?e:this.removeItemFromIndex(e,n)},removeItemFromIndex(e,t){return[...e.slice(0,t),...e.slice(t+1)]},findMatchedIdIndex(e,t){return e.findIndex(e=>e.id?.toString()===t.toString())},shuffle(e){return Dg(e)},findLast(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]},findLastIndex(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}},qO=`OTHER`;function JO(e,t){return t.includes(e)?e:e?qO:``}function YO(e){let{error:t,onChange:n,countryCode:r,isTertiary:i}=e,a=ZC({countryCode:r,isTertiary:i}),o=JO(e.initialValue,a),[s,c]=Z.useState(o),[l,u]=Z.useState(o===qO?e.initialValue:``);Z.useEffect(()=>{c(JO(e.initialValue,a))},[e.initialValue]);function d(e){c(e.target.value),u(``),n(e.target.value===qO?``:e.target.value)}function f(e){u(e.target.value),n(e.target.value)}let p=s===qO;return(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsxs)(`label`,{htmlFor:e.id,className:e.labelClassName,children:[`Job title`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsxs)(`div`,{className:`mb-2`,children:[(0,Q.jsxs)(`select`,{id:e.id,name:e.id,className:`form-select ${e.size===`lg`?`form-select-lg`:``} ${s.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:s,placeholder:`Role`,onChange:d,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:e.placeholder?e.placeholder:(0,Q.jsx)(Q.Fragment,{children:`What do you do?`})}),a.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:qO,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(Cf,{name:e.id,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control ${e.size===`lg`?`form-select-lg`:``} ${!!t&&`is-invalid`}`,type:`text`,value:l,placeholder:`What do you do?`,autoFocus:!0,onChange:f}),!!t&&(0,Q.jsx)(Cf,{name:e.id,children:t})]})]})}var XO=function(e){return e.AU=`cv-ap-southeast-1`,e.NZ=`cv-ap-southeast-2`,e.UK=`cv-eu-west-1`,e.US=`cv-na-west-1`,e}({}),ZO=[`uk`,`gb`,`gg`,`im`,`je`,`ie`],QO={au:$.AU,nz:$.NZ,us:$.US,uk:$.UK,ca:$.CA,gb:$.UK,gg:$.UK,im:$.UK,je:$.UK,ie:$.UK,al:$.UK,ad:$.UK,am:$.UK,at:$.UK,az:$.UK,by:$.UK,be:$.UK,ba:$.UK,bg:$.UK,hr:$.UK,cy:$.UK,cz:$.UK,dk:$.UK,ee:$.UK,fi:$.UK,fr:$.UK,de:$.UK,ge:$.UK,gr:$.UK,hu:$.UK,is:$.UK,it:$.UK,lv:$.UK,li:$.UK,lt:$.UK,lu:$.UK,mt:$.UK,md:$.UK,mc:$.UK,me:$.UK,nl:$.UK,mk:$.UK,no:$.UK,pl:$.UK,pt:$.UK,ro:$.UK,ru:$.UK,sm:$.UK,rs:$.UK,sk:$.UK,si:$.UK,es:$.UK,se:$.UK,ch:$.UK,tr:$.UK,ua:$.UK,va:$.UK},$O={au:KD.CvApSoutheast1,uk:KD.CvEuWest1,us:KD.CvNaWest1,nz:KD.CvApSoutheast2,ca:KD.CvNaWest1},ek={au:XO.AU,uk:XO.UK,us:XO.US,nz:XO.NZ,ca:XO.US},tk={getRegionName(e){return $O[tk.getCountryCode(e)]},getInstanceRegion(e){return ek[tk.getCountryCode(e)]},getCountryCode(e){return QO[e?.toLowerCase()]||$.US},isCountryCodeUK(e){return ZO.includes(e.toLowerCase())},isCountryCodeAU(e){return e?.toLowerCase()===$.AU},isCountryCodeUS(e){return e?.toLowerCase()===$.US},isCountryCodeNZ(e){return e?.toLowerCase()===$.NZ},isSupportedCountryCode(e){return Object.keys(QO).includes(e?.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(tk.isCountryCodeUK(e))return`E.g. CR0 3RL or 36 Factory Lane`;if(tk.isCountryCodeAU(e)||tk.isCountryCodeNZ(e))return`E.g. 2212 or Revesby`;if(tk.isCountryCodeUS(e))return`E.g. 95826 or Sacramento`}},getLocalizedLocalityPlaceholderText(e){if(!e)return;let t=tk.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}};function nk(e){if(!e)return{firstName:``,surname:``};let[t,...n]=e.split(` `).filter(e=>e.length);return{firstName:t,surname:n?.join(` `)}}function rk(e){let{showSpinner:t,children:n,style:r,spinnerText:i,...a}=e,o=Z.useRef(null),[{width:s,height:c},l]=Z.useState({}),[u,d]=Z.useState(t);Z.useEffect(()=>{if(!t){l({});return}let e=o.current,n=e.offsetHeight,r=e.offsetWidth;!n||!r||l({width:r,height:n})},[t]),Z.useLayoutEffect(()=>{d(t)},[t]);let f={...r};return s&&(f.width=`${s+1}px`),c&&(f.height=`${c+1}px`),(0,Q.jsx)(Ev,{ref:o,disabled:t,style:f,...a,children:u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Ox,{as:`span`,animation:`border`,role:`status`,size:`sm`}),!!i&&(0,Q.jsx)(`span`,{className:`ps-1`,children:i})]}):n})}var ik=/\$+[\w\s]?/,ak=/^\+?\d{4,255}$/,ok=255;function sk(e){let[t,n]=Z.useState({fullname:``,jobTitle:``,phone:``});function r(n){n?.preventDefault(),d(t)&&e.handleSubmitForm(t)}function i(e){e.preventDefault(),l(`fullname`,e.target.value),u(`fullname`),u(`submission`)}function a(e){e.preventDefault(),l(`phone`,e.target.value.trim()),u(`phone`),u(`submission`)}function o(e){l(`jobTitle`,e),u(`jobTitle`),u(`submission`)}function s(){l(`fullname`,``),u(`fullname`),u(`submission`)}function c(){l(`phone`,``),u(`phone`),u(`submission`)}function l(e,t){n(n=>({...n,[e]:t}))}function u(t){if(!Object.keys(e.errors).length||!e.errors[t])return;let n={...e.errors};delete n[t],e.setErrors(n)}function d(t){let{fullname:n,jobTitle:r,phone:i}=t,{firstName:a,surname:o}=nk(n),s={};return(!a||!o)&&(s.fullname=`Please enter your full name.`),(ik.test(a)||ik.test(o))&&(s.fullname=`Please enter your full name.`),n.length>ok&&(s.fullname=`Full name cannot exceed max length of ${ok} characters.`),r?.length||(s.jobTitle=`Please enter your job title.`),ik.test(r)&&(s.jobTitle=`Please enter a valid job title.`),r.length>ok&&(s.jobTitle=`Job title cannot exceed max length of ${ok} characters.`),i?.length||(s.phone=`Please enter your phone number.`),(ik.test(i)||!ak.test(i))&&(s.phone=`Please enter a valid phone number.`),e.setErrors(s),!Object.keys(s).length}function f(){let{fullname:n,jobTitle:r,phone:i}=t;return!(!n.length||!r.length||!i.length||Object.keys(e.errors).length)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`A little more about you`}),(0,Q.jsx)(`p`,{children:`Please enter your details.`}),(0,Q.jsxs)(`form`,{onSubmit:r,"aria-errormessage":`brazeFormError`,children:[(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`fullname-input`,children:`Full name`}),(0,Q.jsx)(Ff,{value:t.fullname,onChange:i,name:`fullname-input`,id:`fullname-input`,type:`text`,className:`form-control form-control-lg ${e.errors.fullname?.length?`is-invalid`:``}`,placeholder:`Enter your name`,onClickClear:s,autoFocus:!0,"aria-errormessage":`fullname-inputError`}),e.errors.fullname&&(0,Q.jsx)(Cf,{name:`fullname-input`,children:e.errors.fullname})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`phone-input`,children:`Contact number`}),(0,Q.jsx)(Ff,{value:t.phone,onChange:a,name:`phone-input`,id:`phone-input`,type:`tel`,className:`form-control form-control-lg ${e.errors.phone?.length?`is-invalid`:``}`,placeholder:`Enter your phone number`,onClickClear:c,"aria-errormessage":`phone-inputError`}),e.errors.phone&&(0,Q.jsx)(Cf,{name:`phone-input`,children:e.errors.phone})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`jobTitle-select`,children:`Job title`}),(0,Q.jsx)(YO,{id:`jobTitle-select`,countryCode:tk.getCountryCode(e.country),onChange:o,error:e.errors?.jobTitle,size:`lg`,labelClassName:`d-none`,isTertiary:e.isTertiary})]}),!!e.errors?.submission&&(0,Q.jsx)(Cf,{name:`brazeForm`,className:`form-group`,children:e.errors.submission}),(0,Q.jsx)(`div`,{className:`form-group mb-1`,children:(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:()=>r(),showSpinner:e.loading,disabled:e.loading||!f(),children:`Submit`})})]})]})}var ck=function(e){return e.Unavailable=`unavailable`,e.Expired=`expired`,e.Active=`active`,e.NotRequired=`not-required`,e.Available=`available`,e.Unsupported=`unsupported`,e.UserAutoJoinAllowed=`user-auto-join-allowed`,e.UserJoinApprovalRequired=`user-join-approval-required`,e.InvalidEmail=`invalid-email`,e.BdmTrialAvailable=`bdm-trial-available`,e}({}),lk=function(e){return e.Staff=`staff`,e.Learner=`learner`,e}({}),uk=l(o(((e,t)=>{(function(n){if(typeof e==`object`)t.exports=n();else if(typeof define==`function`&&define.amd)define(n);else{var r;try{r=window}catch{r=self}r.SparkMD5=n()}})(function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n+=(r&i|~r&a)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[1]-389564586|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[5]+1200080426|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[9]-1958414417|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[10]-42063|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[13]-40341101|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&a|i&~a)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[6]-1069501632|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[10]+38016083|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[14]-1019803690|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[2]-51403784|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^a)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[8]-2022574463|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[4]+1272893353|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[0]-358537222|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[12]-421815835|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~a))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function i(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function a(e){var t=e.length,i=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(i,r(e.substring(a-64,a)));for(e=e.substring(a-64),o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(i,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(i,s),i}function o(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(r,i(e.subarray(a-64,a)));for(e=a-64<t?e.subarray(a-64):new Uint8Array,o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(r,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(r,s),r}function s(e){var n=``,r;for(r=0;r<4;r+=1)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join(``)}c(a(`hello`)),typeof ArrayBuffer<`u`&&!ArrayBuffer.prototype.slice&&(function(){function t(e,t){return e=e|0||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i=this.byteLength,a=t(n,i),o=i,s,c,l,u;return r!==e&&(o=t(r,i)),a>o?new ArrayBuffer(0):(s=o-a,c=new ArrayBuffer(s),l=new Uint8Array(c),u=new Uint8Array(this,a,s),l.set(u),c)}})();function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r),a;for(a=0;a<n;a+=1)i[a]=e.charCodeAt(a);return t?i:r}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t=[],n=e.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(e.substr(r,2),16));return String.fromCharCode.apply(String,t)}function m(){this.reset()}return m.prototype.append=function(e){return this.appendBinary(l(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t=this._buff.length,i;for(i=64;i<=t;i+=64)n(this._hash,r(this._buff.substring(i-64,i)));return this._buff=this._buff.substring(i-64),this},m.prototype.end=function(e){var t=this._buff,n=t.length,r,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a;for(r=0;r<n;r+=1)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);return this._finish(i,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r=t,i,a,o;if(e[r>>2]|=128<<(r%4<<3),r>55)for(n(this._hash,e),r=0;r<16;r+=1)e[r]=0;i=this._length*8,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(l(e),t)},m.hashBinary=function(e,t){var n=c(a(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t=f(this._buff.buffer,e,!0),r=t.length,a;for(this._length+=e.byteLength,a=64;a<=r;a+=64)n(this._hash,i(t.subarray(a-64,a)));return this._buff=a-64<r?new Uint8Array(t.buffer.slice(a-64)):new Uint8Array,this},m.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,a;for(i=0;i<n;i+=1)r[i>>2]|=t[i]<<(i%4<<3);return this._finish(r,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=c(o(new Uint8Array(e)));return t?p(n):n},m})}))()),dk={secondary:{label:`Secondary`,isTertiary:!1},"primary & secondary":{label:`Primary & Secondary`,isTertiary:!1},k12:{label:`Primary & Secondary`,isTertiary:!1},primary:{label:`Primary`,isTertiary:!1},special:{label:`Special`,isTertiary:!1},university:{label:`University`,isTertiary:!0},middle:{label:`Middle`,isTertiary:!1},"fe college":{label:`FE College`,isTertiary:!0},"high school":{label:`Secondary`,isTertiary:!1},elementary:{label:`Primary`,isTertiary:!1},"middle school":{label:`Middle`,isTertiary:!1},tafe:{label:`TAFE`,isTertiary:!0},college:{label:`FE College`,isTertiary:!0},"sixth form college":{label:`Sixth Form College`,isTertiary:!0}},fk={england:`ENG`,scotland:`SCT`,wales:`WLS`,"northern ireland":`NIR`},pk={hashedEmail(e){let t=e.trim().toLowerCase();return uk.default.hash(t)},removeEmptyKeys(e){if(Array.isArray(e))return e;let t={...e};return Object.entries(t).filter(([,e])=>!(e==null||typeof e==`string`&&!e.length)).reduce((e,[t,n])=>({...e,[t]:n===Object(n)?pk.removeEmptyKeys(n):n}),{})},Conversions:{TRIAL_UPGRADE_REQUEST:`Request - Trial Upgrade`,FREE_TRIAL_REQUEST:`Request - Free Trial`,START_FREE_TRIAL:`Start - Free Trial`,RequestPilot:`Request - Pilot`},Sources:{CV_PRODUCT_TRIAL_REQUESTED:`cv_product_trial_requested`,CV_PRODUCT_FORM_SUBMISSION:`cv_product_form_submission`,CV_PRODUCT_BDM_TRIAL_REQUESTED:`cv_product_bdm_trial_requested`,CV_PRODUCT_TRIAL_UPGRADE_REQUESTED:`cv_product_trial_upgrade_requested`,CV_LIVE_PILOT_REQUESTED:`cl_product_pilot_requested`,CV_PILOT_REQUESTED:`cv_product_pilot_requested`},getSchoolType(e){if(!e)return;let t=e.toLowerCase();return[`unknown`,`other`].includes(t)?void 0:dk[t]?.label||e},isTertiarySchool(e){return dk[e?.toLowerCase()]?.isTertiary||!1},parseProvince(e){return e.length?fk[e.toLowerCase()]||e:``},getConversionName(e,t){return t?.length?`${e} - ${t}`:e}};function mk(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});Z.useEffect(()=>{e.userType===lk.Learner&&e.complete({completionStep:`trial-status`,trialCreated:!1,trialStatus:ck.Unsupported})},[]);function a(e){if(QC(e.jobTitle)){c();return}o(e)}async function o(a){if(t)return;if(e.userType===lk.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.AddToBraze}),n(!0);let{firstName:o,surname:l}=nk(a.fullname),u=await e.getCrmIdForProspect(e.prospectId);try{let t={email:e.email,firstName:o,lastName:l,phone:a.phone,custom:{crmId:u,orgSubType:pk.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:pk.parseProvince(e?.province||``)},syncToCrm:!0,source:pk.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:e?.country,accountPostCode:e?.schoolPostCode,conversion:pk.getConversionName(pk.Conversions.FREE_TRIAL_REQUEST,e.entryPage?.metadata?.conversionSuffix)}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:ED.ProductFormEvent.ProductTrailRequested,additionalData:n,callback:s}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||c()}function s(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function c(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(sk,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:pk.isTertiarySchool(e.schoolType)})}var hk=e=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`,gk=e=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`,_k=(e,t)=>`Failed to create Trusted Types policy "${e}": ${t instanceof Error?t.message:String(t)}.\n\nIf your Content Security Policy uses "require-trusted-types-for 'script'", allow this policy with "trusted-types ${e} google-maps-api-loader google-maps-api#html lit-html". The "google-maps-api-loader", "lit-html", and "google-maps-api#html" policies are required for full Maps JavaScript API execution. Falling back to a string script URL.`,vk=`@googlemaps/js-api-loader`,yk={createScriptURL:e=>e},bk;function xk(){if(bk)return bk;let e=globalThis.trustedTypes;if(!e)return bk=yk,bk;try{bk=e.createPolicy(vk,{createScriptURL:e=>e})}catch(e){_k(vk,e),bk=yk}return bk}function Sk(e,t){e.src=xk().createScriptURL(t)}var Ck=e=>{var t,n,r,i=`The Google Maps JavaScript API`,a=`google`,o=`importLibrary`,s=document,c=window,l=c[a]||(c[a]={}),u=l.maps||={},d=new Set,f=new URLSearchParams,p=()=>t||=new Promise(async(o,c)=>{for(r in await(n=s.createElement(`script`)),f.set(`libraries`,[...d]+``),e)f.set(r.replace(/[A-Z]/g,e=>`_`+e[0].toLowerCase()),e[r]);f.set(`callback`,a+`.maps.__ib__`),Sk(n,`https://maps.googleapis.com/maps/api/js?`+f),u.__ib__=o,n.onerror=()=>t=c(Error(i+` could not load.`)),n.nonce=s.querySelector(`script[nonce]`)?.nonce||``,s.head.append(n)});u[o]?console.warn(i+` only loads once. Ignoring:`,e):u[o]=(e,...t)=>d.add(e)&&p().then(()=>u[o](e,...t))},wk=!1;function Tk(e){if(wk){hk(e);return}e.apiKey&&(e.key||=e.apiKey),Dk(e),wk=!0}async function Ek(e){if(!window?.google?.maps?.importLibrary)throw Error(`google.maps.importLibrary is not installed.`);return await google.maps.importLibrary(e)}function Dk(e){let t=!!window.google?.maps?.importLibrary;t&&gk(e),t||Ck(e)}var Ok=!1;function kk(e){Ok||=(Tk({key:e,v:`weekly`}),!0)}function Ak(e){let t=e.libraries||[`places`],[n,r]=Z.useState(!1);Z.useEffect(()=>{let e=!1;return i().then(()=>!e&&r(!0)).catch(()=>!e&&r(!1)),()=>{e=!0}},[]);function i(){return kk(e.apiKey),Promise.all(t.map(e=>Ek(e)))}function a(e,t){i().then(()=>{r(!0),e&&e()}).catch(e=>{r(!1),t&&t(e)})}return{scriptLoaded:n,onGoogleApiReady:a}}function jk(e){let{scriptLoaded:t}=Ak({apiKey:e.googleApiKey,libraries:[`places`]});return t}var Mk=`us`,Nk=`country:placeholder:text`;function Pk(e){let t=tk.getLocalizedLocalityPlaceholderText(e?.countryCode);if(t)return t;let n=qd.cacheGet(`${Nk}:${e?.countryCode}`);if(n)return n}function Fk(){return String.fromCharCode(96+kx.getRandomInt(26))}function Ik({apiKey:e,geoLocation:t,makeRequest:n=!0,template:r=`E.g. [placeholder]`,templateKey:i=`[placeholder]`}){let a=jk({googleApiKey:e}),[o,s]=Z.useState(()=>Pk(t));Z.useEffect(()=>{if(o||!a||!n)return;let e=t?.countryCode||Mk;l(Fk(),e)},[o,a,t,n]);function c(e,t){qd.cacheSet(`${Nk}:${t}`,e,86400),s(e)}async function l(e,t){try{let{suggestions:n}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,includedPrimaryTypes:[`(cities)`],includedRegionCodes:[t],region:t,sessionToken:new google.maps.places.AutocompleteSessionToken}),a=n[kx.getRandomInt(n.length)]?.placePrediction?.text.toString();if(!a){c(tk.getLocalizedLocalityPlaceholderText(Mk),t);return}c(r.replace(i,a),t)}catch{c(tk.getLocalizedLocalityPlaceholderText(Mk),t)}}return o}function Lk(e,t){let n,r,i,a;for(let e of t)for(let t of e.types)t===`locality`&&(n=e.value),t===`administrative_area_level_1`&&(r=e.value),t===`postal_code`&&(a=e.value),t===`country`&&(i=e.value);return{locality:e,country:i,postalCode:a,city:n,province:r}}var Rk={getPlaceDetails(e){return Lk(e.formatted_address,e.address_components.map(e=>({types:e.types,value:e.short_name})))},getPlaceDetailsFromPlace(e){return Lk(e.formattedAddress,(e.addressComponents||[]).map(e=>({types:e.types,value:e.shortText})))}},zk={1:`geocoderPermissionDenied`,2:`geocoderUnavailable`,3:`geocoderTimeout`};function Bk(e){let[t,n]=Z.useState({}),{onGoogleApiReady:r}=Ak({apiKey:e.apiKey,libraries:[`geocoding`,`core`]});function i(){r(()=>{window.navigator.geolocation.getCurrentPosition(a,o)})}function a(e){let{latitude:t,longitude:r}=e.coords,i=new google.maps.LatLng(t,r);new google.maps.Geocoder().geocode({location:i},(e,i)=>{if(i!==google.maps.GeocoderStatus.OK)return;let a=e.find(e=>e.types.includes(`locality`)||e.types.includes(`administrative_area_level_2`)),o=Rk.getPlaceDetails(a);n({...o,longitude:r,latitude:t})})}function o(t){let n=zk[t.code];n||=`geocoderUnknown`,e.onPositionError(`We are unable to access your location. Please try again later.`)}return{placeDetails:t,onClickGetCurrentLocation:i}}function Vk({search:e,makePredicition:t,geoLocation:n,apiKey:r}){let i=jk({googleApiKey:r}),a=lC(e,300),[o,s]=Z.useState(),c=Z.useRef();Z.useEffect(()=>{if(i){if(a?.length===0||!t){s(void 0);return}l(a)}},[a,t,i]);async function l(e){let t=n?.countryCode||`us`;c.current||=new google.maps.places.AutocompleteSessionToken;try{let{suggestions:r}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,includedRegionCodes:n?.isFallback?void 0:[t],region:t,includedPrimaryTypes:[`locality`,`sublocality`,`postal_code`],sessionToken:c.current});s(r.map(e=>e.placePrediction).filter(Boolean))}catch{s(void 0)}}async function u(e,t){try{let n=e.toPlace();await n.fetchFields({fields:[`addressComponents`,`formattedAddress`,`location`]});let r=n.location.lng(),i=n.location.lat(),{locality:a,country:o,postalCode:s,city:c,province:l}=Rk.getPlaceDetailsFromPlace(n);t({longitude:r,latitude:i,locality:a,country:o,city:c,postalCode:s,province:l})}catch{}finally{c.current=void 0}}return{localityPredicitions:o,getPlaceInfo:u}}function Hk(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z`})})}var Uk={baseText:`_baseText_bmazz_1`,dropdown:`_dropdown_bmazz_4`,suggestionContainer:`_suggestionContainer_bmazz_7`,suggestionContainerInner:`_suggestionContainerInner_bmazz_13`,suggestionItem:`_suggestionItem_bmazz_18`,suggestionLoading:`_suggestionLoading_bmazz_18`,noSuggestion:`_noSuggestion_bmazz_18`,large:`_large_bmazz_22`,selected:`_selected_bmazz_32`,useMyLocation:`_useMyLocation_bmazz_36`};function Wk(e){let{predictions:t,getPlaceInfo:n,selectedIndex:r}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Lf,{className:`${Uk.suggestionItem} ${r-1===t?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&n(e),onMouseDown:()=>n(e),onClick:()=>n(e),children:e.text.toString()},e.placeId))})}function Gk(e){let t=Z.useRef(null),[n,r]=Z.useState(e.data?.schoolLocality||``),[i,a]=Z.useState(!1),o=Ik({apiKey:e.googleMapsApiKey,geoLocation:e.geoLocation}),{localityPredicitions:s,getPlaceInfo:c}=Vk({search:n,makePredicition:i,geoLocation:e.geoLocation,apiKey:e.googleMapsApiKey}),{placeDetails:l,onClickGetCurrentLocation:u}=Bk({apiKey:e.googleMapsApiKey,onPositionError:b}),d=+!!window.navigator.geolocation,{selectedIndex:f,onKeyDown:p,containerRef:m,hide:h,onBlur:g,onFocus:_}=If({onSelected:C,itemCount:(s?.length??0)+d,hideOnBlur:e.hideOnBlur}),[v,y]=Z.useState();Z.useEffect(()=>{w(l)},[l]);function b(e){a(!0),y(e)}function x(t){v&&y(void 0),i||a(!0),(e.data?.longitude||e.data?.latitude||e.data?.schoolLocality)&&e.clearData(),r(t)}function S(){x(``),t.current.focus()}function C(e){if(!s)return;if(e===s.length){E();return}let t=s[e];t&&T(t)}function w(t){e.setData({schoolLocality:t.locality,country:t.country,province:t.province,schoolPostCode:t.postalCode,longitude:t.longitude,latitude:t.latitude}),t.locality&&r(t.locality)}function T(e){i&&a(!1),c(e,w)}function E(t){t?.preventDefault(),a(!1),u(),e.logUserAction?.({},{actionType:BO.Click,descriptor:WO.UseMyLocation})}function D(){let t=`form-control`;return e.size===`lg`&&(t+=` form-control-lg`),t}let O=s?.length&&!e.data?.schoolLocality?.length,k=window.navigator.geolocation&&!e.data?.schoolLocality?.length,A=e.labelClassName||`d-block text-center mb-3 fw-normal ${Uk.baseText}`,j=`form-group position-relative text-start`;return e.size===`lg`&&(j+=` ${Uk.large}`),(0,Q.jsxs)(`div`,{className:j,children:[(0,Q.jsxs)(`label`,{className:A,htmlFor:`locality-input`,children:[`ZIP code or city`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Ff,{type:`text`,value:n,onChange:e=>x(e.currentTarget.value),id:`locality-input`,className:D(),ref:t,autoComplete:`off`,placeholder:o||`Loading...`,disabled:e.disabled||!o,autoFocus:e?.autoFocus,onClickClear:S,onKeyDown:p,onFocus:_,onBlur:g}),(0,Q.jsxs)(`div`,{className:`position-absolute z-1 w-100 ${Uk.dropdown} ${h?`d-none`:``}`,children:[!!O&&(0,Q.jsx)(`div`,{className:Uk.suggestionContainer,children:(0,Q.jsxs)(`div`,{className:Uk.suggestionContainerInner,ref:m,children:[(0,Q.jsx)(Wk,{predictions:s,getPlaceInfo:T,selectedIndex:f}),window.navigator.geolocation&&e.useGeoLocationApi&&(0,Q.jsx)(Lf,{className:nd(Uk.suggestionItem,`px-1`,f-1===s.length?Uk.selected:``),onClick:E,children:(0,Q.jsxs)(`div`,{className:`btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1`,children:[(0,Q.jsx)(Hk,{}),`Use my current location`]})})]})}),k&&!O&&e.useGeoLocationApi&&(0,Q.jsx)(`div`,{className:`d-flex ${Uk.useMyLocation}`,children:(0,Q.jsxs)(`button`,{onClick:E,className:`btn btn-link info-link bg-white btn-with-icon`,children:[(0,Q.jsx)(Hk,{}),`Use my current location`]})}),!!v&&(0,Q.jsx)(`div`,{className:`text-danger p-2`,children:v})]})]})}var Kk=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e}({}),qk=class extends Error{constructor(e,t=`Error`){super(t),this.body=e}},Jk={prepareQuery(e,t){let n=e;return Object.keys(t).forEach((e,r)=>{t[e]&&(r===0?n+=`?`:n+=`&`,n+=`${e}=${encodeURIComponent(t[e])}`)}),n}};function Yk(e){let t={method:Kk.GET,headers:{"Content-type":`application/json`}};e.method&&(t={...t,method:e.method}),e.init&&(t={...t,...e.init});let n=e.url;return t.method===Kk.GET&&e.data?n=Jk.prepareQuery(n,e.data):e.data&&(t={...t,body:JSON.stringify(e.data)}),{init:t,url:n}}var Xk={async asyncFetch(e){let t=Yk(e),n=await fetch(t.url,t.init);if(!n.ok)throw new qk(await n.json());if(n.status!==204)return await n.json()},async asyncFetchPlain(e){let t=Yk(e),n=await fetch(t.url,t.init);if(n.ok)return await n.text()},fetch(e){let t=Yk(e);return fetch(t.url,t.init).then(e=>{if(e.status!==204)return e.json()}).then(t=>(e.success&&e.success(t),t)).catch(t=>(e.error&&e.error(),t)).finally(()=>{e.always&&e.always()})}},Zk={search(e,t,n,r,i){let a={longitude:t.longitude,latitude:t.latitude};t.query&&(a.query=t.query),Xk.fetch({url:e,data:a,success:n,error:r,always:i})},async create(e,t){return Xk.asyncFetch({url:e.createProspect,method:Kk.POST,data:t})},getLookups(e,t){return Xk.asyncFetch({url:e.prospectLookups(t)})}},Qk=/\/$/,$k={urlBuilder(e,t){let n=Object.entries(t).map(([e,t])=>e&&Array.isArray(t)?t.map(t=>`${e}=${encodeURIComponent(t)}`).join(`&`):e&&t!=null?`${e}=${encodeURIComponent(t)}`:``).reduce((e,t)=>t?e?`${e}&${t}`:t:e,``);return n?`${e}?${n}`:e},buildFilter(e){let t=[];if(e.limit&&t.push(`limit:${e.limit}`),e.cursor&&t.push(`page:${e.cursor}`),e.before&&t.push(`dateCreated:...${e.before}`),t.length)return t.join(`,`)},makeHttps(e){return typeof e!=`string`||e.indexOf(`http://`)===-1||(e=e.replace(`http://`,`https://`)),e},safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n},removeTrailingSlash(e){if(typeof e==`string`)return e.replace(Qk,``)},getHostname(e){if(!e)return window.location.hostname;try{return new URL(e).hostname}catch{return null}},isValidUrl(e){try{return new URL(e),!0}catch{return!1}}},eA={checkTrialStatus(e,t){if(e.productName!==kD.Lite)return Promise.reject();let n={email:t.email};return Xk.asyncFetch({url:e.userStatus,data:n})},checkUserIdps(e,t){return e.productName===kD.Lite?Xk.asyncFetch({url:e.idps,data:{email:t}}):Promise.reject()},checkProspectTrialStatus(e,t,n,r,i){let a=e.prospectStatus(t.prospectId);a=$k.urlBuilder(a,{email:t.email}),Xk.fetch({url:a,success:n,error:r,always:i})},createTrial(e,t){return Xk.asyncFetch({url:e.createTrial,method:Kk.POST,data:t})},resendTrialEmail(e,t,n){if(e.productName!==kD.Lite)return Promise.reject();let r={email:n.email,appLink:n?.appLink};return Xk.asyncFetch({url:e.resendTrialEmail(t),method:Kk.POST,data:r})},createJoinRequest(e,t){let n=e.productName===kD.Auth?e.joinRequest:e.joinRequest(t.customerId),r=e.productName===kD.Auth?t:{email:t.email};return Xk.asyncFetch({url:n,method:Kk.POST,data:r})},createAutoJoinRequest(e,t){return e.productName===kD.Lite?Xk.asyncFetch({url:e.autoJoin,method:Kk.POST,data:t}):Promise.reject()}},tA=[`Primary`,`Secondary`,`K12`,`Special`,`TAFE`,`University`],nA=[`Primary`,`Secondary`,`Primary & Secondary`,`Special`,`Sixth Form College`,`FE College`,`University`,`Other`],rA=[`Elementary`,`Middle School`,`High School`,`College`,`Other`],iA={au:tA,nz:tA,uk:nA,us:rA,ca:rA};function aA(e){return iA[tk.getCountryCode(e)]||rA}var oA=function(e){return e.Published=`Published`,e.Draft=`Draft`,e}({});function sA(e){let[t,n]=Z.useState({prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolLocality:e.schoolLocality,country:e.country,province:e.province,city:e.city,longitude:e.longitude,latitude:e.latitude}),[r,i]=Z.useState(),[a,o]=Z.useState(!1),s=aA(t.country||e.geoLocation?.countryCode);function c(){let{schoolName:e,schoolType:n,country:r}=t;return!!(e&&n&&r)}function l(e,t){n(n=>({...n,[e]:t}))}function u(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&l(`longitude`,t),n&&l(`latitude`,n),i&&l(`country`,i),a&&l(`city`,a),o&&l(`province`,o),r&&l(`schoolLocality`,r)}function d(){l(`schoolLocality`,void 0),l(`longitude`,void 0),l(`latitude`,void 0),l(`city`,void 0),l(`province`,void 0),l(`country`,void 0),i(``)}function f(e){let t=e.target.value;l(`schoolType`,t)}function p(e){l(`schoolName`,e.target.value)}async function m(n){let r={email:e.email,custom:{accountName:t?.schoolName,accountAddress:{countryCode:t?.country,province:pk.parseProvince(t.province)},orgSubType:pk.getSchoolType(t?.schoolType),syncToCrm:!0,source:pk.Sources.CV_PRODUCT_FORM_SUBMISSION},event:{accountCountry:t?.country,accountPostCode:t?.schoolPostCode,accountState:pk.parseProvince(t.province)}},i={form_type:`trial-sign-up`,prospect_id:t?.prospectId};e.logBrazeEvent({user:r,event:{eventType:ED.ProductFormEvent.FormSubmission,additionalData:i,callback:n}})}async function h(n){if(n.preventDefault(),!c())return;e.logUserAction(t,{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.CantFindSchool}),o(!0);let r;try{if(r=await Zk.create(e.ajaxUrls,{name:t.schoolName,status:oA.Draft,countryCode:t.country,prospectType:t.schoolType,city:t.city,postCode:t.schoolPostCode,province:pk.parseProvince(t.province)}),!r.id){o(!1),i(`Error. Something went wrong.`);return}}catch{o(!1),i(`Error. Something went wrong.`);return}if(e.userTrialStatus===ck.BdmTrialAvailable){if(e.userType!==lk.Staff){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`request-bdm-trial`,...t});return}try{let n={prospectId:r.id,email:e.email,userType:e.userType,appLink:e.pageAppLinkString,signupVariant:e.signupVariant,attribution:{...rf.getDecodedAttributionData(),utms:gf.getUtmParameters()},conversion:pk.getConversionName(pk.Conversions.START_FREE_TRIAL,e.entryPage?.metadata?.conversionSuffix)},i=await eA.createTrial(e.ajaxUrls,n);e.createOrUpdateProfile&&e.createOrUpdateProfile({masterId:i.id,email:e.email,countryCode:t?.country});let a={completionStep:`trial-status`,email:e.email,userId:i.id,prospectId:r.id,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,schoolType:t.schoolType,city:t.city,schoolPostCode:t.schoolPostCode,latitude:t.latitude,longitude:t.longitude,province:t.province,trialStatus:ck.Available,trialCreated:!0,customerId:i.data?.customerId};if(e?.userType===lk.Staff){await m(t=>{t||console.error(`Failed to submit create trial data to braze.`),e.complete(a)});return}e.complete(a)}catch(n){if(!n.body){o(!1),i(`Error. Something went wrong.`);return}let a=n;if(a.body.status===400&&a.body.type===`trial-not-available`){e.nextStep({step:`add-to-braze`,...t,prospectId:r.id,trialStatus:ck.Unavailable});return}console.error(n)}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us more about your school`}),(0,Q.jsx)(`p`,{children:`Please enter your school details.`}),(0,Q.jsxs)(`div`,{className:`text-start`,children:[(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-name-input`,children:`Name of school`}),(0,Q.jsx)(`input`,{type:`text`,value:t?.schoolName||``,onChange:p,id:`school-name-input`,className:`form-control form-control-lg`,autoComplete:`off`,placeholder:`Enter name of school`,autoFocus:!0})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-type-select`,children:`Type of school`}),(0,Q.jsxs)(`select`,{id:`school-type-select`,className:`form-select form-select-lg ${t.schoolType?``:`text-secondary`}`,autoComplete:`off`,value:t.schoolType||`none`,onChange:f,children:[(0,Q.jsx)(`option`,{value:`none`,className:`text-secondary`,disabled:!0,children:`Select type of school`}),s.map(e=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},e))]})]}),(0,Q.jsx)(Gk,{data:t,setData:u,clearData:d,disabled:!1,labelClassName:`d-block`,geoLocation:e.geoLocation,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!1,size:`lg`,useGeoLocationApi:!0}),r&&(0,Q.jsx)(`div`,{className:`text-danger mb-3`,children:r})]}),c()&&(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:a,disabled:a,children:`Get started`})]})}function cA(e,t){return t?`${e} ${t}`:e}function lA(e){return(0,Q.jsx)(`h1`,{className:cA(`text-center mb-2 h4`,e.className),children:e.children})}function uA(e){return(0,Q.jsx)(`div`,{className:cA(`text-center text-sm px-2 px-lg-4`,e.className),children:e.children})}function dA(e){return(0,Q.jsx)(`p`,{className:cA(``,e.className),children:e.children})}var fA={Heading:lA,Body:uA,Message:dA};function pA(e){return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-4 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:{[ck.Available]:e.imageUrls.statusImages.available,[ck.Active]:e.imageUrls.statusImages.active,[ck.Expired]:e.imageUrls.statusImages.expired,[ck.NotRequired]:e.imageUrls.statusImages.notRequired,[ck.Unavailable]:e.imageUrls.statusImages.unavailable,[ck.Unsupported]:e.imageUrls.statusImages.unsupported,[ck.UserAutoJoinAllowed]:e.imageUrls.statusImages.notRequired,[ck.UserJoinApprovalRequired]:e.imageUrls.statusImages.notRequired,[ck.InvalidEmail]:``,[ck.BdmTrialAvailable]:``}[e.trialStatus],className:`w-100 h-auto`})})}function mA(e){return Z.useEffect(()=>{e.logUserAction({},{actionType:BO.Create,descriptor:WO.TrialRequested,workflowPhase:UO.Complete})},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`Submitted!`}),(0,Q.jsx)(fA.Message,{children:`Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.`})]})]})}function hA(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`You've requested access!`}),(0,Q.jsx)(fA.Message,{children:`We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.`})]})]})}var gA={Marketing:{au:`https://www.clickvieweducation.com/en-au`,us:`https://www.clickvieweducation.com`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickview.co.uk`,ca:`https://www.clickvieweducation.com/en-ca`},Support:{au:`https://www.clickviewsupport.com/hc/en-au`,uk:`https://www.clickviewsupport.com/hc/en-au#gb`,nz:`https://www.clickviewsupport.com/hc/en-au#nz`,us:`https://www.clickviewsupport.com/hc/en-au#us`,ca:`https://www.clickviewsupport.com/hc/en-au#ca`}},_A={[$.AU]:`/contact-us/sales`,[$.US]:`/contact-us/sales`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/trial`,[$.CA]:`/contact-us/sales`},vA={[$.AU]:`/resources/free-student-resources`,[$.US]:`/resources/free-student-resources`,[$.NZ]:`/free-student-resources/`,[$.UK]:`/free-student-resources/`,[$.CA]:`/resources/free-student-resources`},yA={getMarketingUrlForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return gA.Marketing[t]||gA.Marketing.us},getMarketingSalesContactForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return`${yA.getMarketingUrlForGeoLocation(e)}${_A[t]}`},getFreeResourcesForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return`${this.getMarketingUrlForGeoLocation({countryCode:t})}${vA[t]}`},getTermsAndConditionsLink(){return this.getMarketingUrlForGeoLocation($.US)+`/terms-and-conditions/`},getPrivacyPolicyLink(){return this.getMarketingUrlForGeoLocation($.US)+`/privacy-policy/`},getSupportUrlForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return gA.Support[t]||gA.Support.us}};function bA(e){let t=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,n=e?.schoolName||`Your school`;return(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[t?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(fA.Heading,{children:[n,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]}),(0,Q.jsxs)(fA.Message,{className:`mt-3`,children:[`If your school has SSO\xA0`,(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email,customerId:e.customerId}),className:`info-link`,children:`click here to sign in.`})]}),(0,Q.jsx)(fA.Message,{children:`Otherwise please contact your school admin for access.`})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(fA.Heading,{children:`Good News!`}),(0,Q.jsxs)(fA.Message,{children:[`An account already exists for:`,(0,Q.jsx)(`br`,{}),` `,(0,Q.jsx)(`strong`,{children:e.email})]}),(0,Q.jsx)(fA.Message,{children:(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email}),className:`btn btn-dark btn-lg w-100`,children:`Sign into ClickView`})})]}),(0,Q.jsxs)(fA.Message,{children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}function xA(e){let t=yA.getMarketingSalesContactForGeoLocation(e.geoLocation),n=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,r=e?.schoolName||`Your school`;return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsx)(fA.Heading,{children:n?`${r} trial has expired`:`Your trial has expired`}),(0,Q.jsxs)(fA.Message,{children:[`Please contact our\xA0`,(0,Q.jsx)(`a`,{href:t,className:`info-link`,target:`_blank`,children:`ClickView Sales Team`})]})]})}function SA(e){let t=yA.getMarketingSalesContactForGeoLocation(e.geoLocation);return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsxs)(fA.Heading,{children:[`Your school no longer`,(0,Q.jsx)(`br`,{}),` has access to ClickView`]}),(0,Q.jsxs)(fA.Message,{children:[`Please contact our `,(0,Q.jsx)(`a`,{href:t,className:`info-link`,children:`ClickView Sales Team`}),` for more information.`]})]})}function CA(){return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsxs)(fA.Heading,{className:`px-2 px-lg-4`,children:[`ClickView isn't currently `,(0,Q.jsx)(`br`,{}),` available for your school`]}),(0,Q.jsx)(fA.Message,{children:`We're working hard to get ClickView ready for more people.`})]})}var wA=1;function TA(e){let[t,n]=Z.useState(0),[r,i]=Z.useState(!1);async function a(r){r?.preventDefault();try{await eA.resendTrialEmail(e.ajaxUrls,e.userId,{email:e.email,appLink:e.pageAppLinkString}),n(t+1)}catch{i(!0)}e.logUserAction({},{actionType:BO.Click,descriptor:WO.ResendEmail})}function o(t){t?.preventDefault(),e.logUserAction({},{actionType:BO.Click,descriptor:WO.WrongEmail}),e.nextStep({step:`enter-email`,userType:e.userType})}if(e?.email)return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsx)(fA.Heading,{children:`Check your inbox!`}),(0,Q.jsxs)(fA.Message,{children:[`An email has been sent to `,(0,Q.jsx)(`strong`,{children:e.email}),`.`]}),!!e.userId&&(0,Q.jsxs)(Q.Fragment,{children:[t<wA?(0,Q.jsx)(`button`,{onClick:a,className:`btn btn-outline-dark btn-lg mb-3`,children:`Resend verification email`}):(0,Q.jsx)(fA.Message,{children:`✅ Email has been resent!`}),(0,Q.jsxs)(fA.Message,{children:[`Wrong email?\xA0`,(0,Q.jsx)(`button`,{onClick:o,className:`btn info-link p-0 align-top border-0`,children:`Update email address`})]}),r&&(0,Q.jsxs)(fA.Message,{className:`mb-0 text-danger`,children:[`❌ There was a problem resending the email. Please try again later or contact our \xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,children:`support`})]})]})]})}var EA={[ck.Available]:TA,[ck.Active]:bA,[ck.Expired]:xA,[ck.NotRequired]:bA,[ck.Unavailable]:SA,[ck.Unsupported]:CA,[ck.UserAutoJoinAllowed]:bA,[ck.UserJoinApprovalRequired]:bA,[ck.InvalidEmail]:null,[ck.BdmTrialAvailable]:null};function DA(e){let t=EA[e.trialStatus];return t?(0,Q.jsx)(t,{...e}):(0,Q.jsx)(Q.Fragment,{})}function OA(e){return Z.useEffect(()=>{let t={actionType:BO.Create,descriptor:WO.DeadEnd,workflowPhase:UO.Discard};e.trialCreated&&(t.descriptor=WO.TrialCreated,t.workflowPhase=UO.Complete),e.logUserAction({},t)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:e.trialStatus,imageUrls:e.imageUrls}),(0,Q.jsx)(DA,{...e})]})}var kA=`young-student`;function AA(e){let t=yA.getFreeResourcesForGeoLocation(e.geoLocation);return Z.useEffect(()=>{qd.set(kA,!0)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Active,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`Discover our free content`}),(0,Q.jsx)(fA.Message,{children:`Click the button below to explore our videos`}),(0,Q.jsx)(`a`,{href:t,className:`btn btn-lg btn-dark w-100`,target:`_blank`,children:`Start watching now`})]})]})}var jA={"trial-status":OA,"added-to-braze":mA,"young-student":AA,"requested-access":hA};function MA(e){let t=jA[e.completionStep];return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center flex-column mx-auto px-2`,children:(0,Q.jsx)(t,{...e})})}var NA=function(e){return e.Popup=`popup-form`,e.FullPage=`full-page-form`,e}({}),PA={day:`_day_cmdpc_1`,month:`_month_cmdpc_4`,year:`_year_cmdpc_7`},FA=120,IA=16;function LA(e,t,n){let r=new Date(RA(e,t,n));return!isNaN(+r)}function RA(e,t,n){return`${e.padStart(4,`0`)}-${t.padStart(2,`0`)}-${n.padStart(2,`0`)}`}function zA(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(null);function l(e){n(e.target.value),c(null)}function u(e){i(e.target.value),c(null)}function d(e){o(e.target.value),c(null)}function f(){return!t||!r||!a?(c(`Please enter your date of birth`),!1):LA(a,r,t)?+a>h?(c(`Please enter a date in the past`),!1):+a<h-FA?(c(`Please enter a realistic date of birth`),!1):!0:(c(`Please enter a valid date`),!1)}function p(n){if(n.preventDefault(),!f())return;let i=new Date(RA(a,r,t)),o=h-IA,s=new Date;if(s.setFullYear(o),i>s){e.complete({completionStep:`young-student`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`enter-email`,userType:e.userType})}let m=e.type===NA.Popup,h=new Date().getFullYear(),g=nd(`d-inline-block`,m?`text-center`:`text-start`),_=`form-control form-control-lg ${s?`is-invalid`:``}`,v=`order-0`,y=`order-3`,b=tk.isCountryCodeUS(e.geoLocation.countryCode);return b&&(v=`order-3`,y=`order-0`),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us a little about yourself`}),(0,Q.jsx)(`p`,{children:`Please enter your date of birth`}),(0,Q.jsxs)(`div`,{className:`my-4`,children:[(0,Q.jsxs)(`fieldset`,{className:nd(`d-flex`,m?`justify-content-center`:`justify-content-start`),"aria-describedby":`dateOfBirthError`,children:[(0,Q.jsxs)(`div`,{className:`${g} ${v}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`day`,children:`Day`}),(0,Q.jsx)(`input`,{id:`day`,type:`number`,className:`${_} ${PA.day}`,min:`1`,max:`31`,placeholder:`DD`,value:t,onChange:l,autoFocus:!b,tabIndex:b?2:1})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-4 mb-0 mx-2 order-1 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${g} ${y}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`month`,children:`Month`}),(0,Q.jsx)(`input`,{id:`month`,type:`number`,className:`${_} ${PA.month}`,min:`1`,max:`12`,placeholder:`MM`,value:r,onChange:u,autoFocus:b,tabIndex:b?1:2})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-4 mb-0 mx-2 order-4 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${g} order-5`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`year`,children:`Year`}),(0,Q.jsx)(`input`,{id:`year`,name:`year`,type:`number`,className:`${_} ${PA.year}`,min:h-120,max:h,placeholder:`YYYY`,value:a,onChange:d,tabIndex:3})]})]}),!!s&&(0,Q.jsx)(Cf,{name:`dateofBirth`,children:s})]}),(0,Q.jsx)(`button`,{type:`submit`,className:`btn btn-lg btn-dark w-100`,children:`Continue`})]})}function BA(e){return(0,Q.jsxs)(Q.Fragment,{children:[`Have a ClickView account already?`,(0,Q.jsx)(`a`,{href:e.link,className:`info-link ms-1`,onClick:e.onClick,children:`Sign in`})]})}function VA(){let e={},t=rf.getEncodedAttributionData();t&&(e.r=t);let n=gf.getUtmParameters();return n&&(e.utms=n),JSON.stringify(e)}var HA=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),UA={[$.AU]:`valerie.frizzle@school.edu.au`,[$.UK]:`valerie.frizzle@school.gov.uk`,[$.US]:`valerie.frizzle@school.gov`,[$.NZ]:`valerie.frizzle@school.nz`,[$.CA]:`valerie.frizzle@school.ca`},WA={[$.AU]:`/contact-us/support`,[$.US]:`/contact-us/support`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/technical/`,[$.CA]:`/contact-us/support`};function GA(e){return`${yA.getMarketingUrlForGeoLocation(e)}${WA[tk.getCountryCode(e?.countryCode)]}`}function KA(e){return UA[tk.getCountryCode(e.countryCode)]||UA.us}var qA=[ck.Expired,ck.NotRequired,ck.Unavailable,ck.Unsupported,ck.Active];function JA(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(e?.email||``),[a,o]=Z.useState(),s=GA(e.geoLocation);async function c(){o(``);let t;try{t=await eA.checkTrialStatus(e.ajaxUrls,{email:r})}catch{o(`Something went wrong! Please try again later.`);return}if(t.status===ck.InvalidEmail){o(`Please use your school email address.`);return}if(e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.EnterEmail}),qA.includes(t.status)){e.complete({completionStep:`trial-status`,email:r,trialStatus:t.status,trialCreated:!1});return}try{let n=await eA.checkUserIdps(e.ajaxUrls,r);if(n.length){e.nextStep({step:`select-idp`,email:r,userTrialStatus:t.status,idps:n});return}}catch{o(`Something went wrong! Please try again later.`);return}e.nextStep({step:`find-school`,email:r,userTrialStatus:t.status})}function l(){e.logUserAction({},{actionType:BO.Click,descriptor:WO.ContactUs})}function u(){return r.length?HA.test(r)?!0:(o(`Please use your school email address.`),!1):(o(`Please enter your school email address.`),!1)}function d(){e.logUserAction({},{actionType:BO.Click,descriptor:WO.SignIn})}function f(e){e.preventDefault(),i(e.target.value),o(``)}async function p(e){e?.preventDefault(),u()&&(n(!0),await c(),n(!1))}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:``,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's set up your account`}),(0,Q.jsx)(`p`,{children:`Enter your school email address`})]}),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsxs)(`div`,{className:`form-group mb-3`,children:[(0,Q.jsx)(Ff,{value:r,onChange:f,name:`email-input`,id:`email-input`,type:`email`,className:`form-control form-control-lg ${a?`is-invalid`:``}`,placeholder:KA(e.geoLocation),autoComplete:`false`,autoCorrect:`false`,autoFocus:!0,onClickClear:()=>i(``),"aria-errormessage":`email-inputError`}),a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Cf,{name:`error-input`,children:a}),(0,Q.jsxs)(`small`,{children:[`Having an issue with your email?`,(0,Q.jsx)(`a`,{href:s,className:`info-link ps-1`,target:`_blank`,onClick:l,children:`Contact our team`})]})]})]}),(0,Q.jsx)(rk,{showSpinner:t,variant:`dark`,className:`btn-lg mb-3 w-100`,disabled:t,onClick:p,children:`Continue`})]}),e.userType===lk.Staff&&(0,Q.jsx)(Sf,{idps:e.globalIdps,className:`mt-n3`,attribution:VA()}),(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(BA,{link:e.getSignInUrl({email:r}),onClick:d})})]})}function YA(e){switch(e?.body?.type){case`user-type-not-supported`:return`Students may not request to join schools.`;case`join-request-already-pending`:return`Your request is awaiting administrator approval.`;case`join-request-already-denied`:return`Your request has been denied by an administrator.`;default:return`Something went wrong.`}}var XA=function(e){return e.MasterId=`master_id`,e.CrmId=`crm_id`,e.SalesforceId=`salesforce_id`,e}({});function ZA(e){let[t,n]=Z.useState(null);async function r(){try{let t=(await Zk.getLookups(e.ajaxUrls,e.prospectId)).find(e=>e.type===XA.MasterId)?.externalId;if(!t){n(`Something went wrong.`);return}await eA.createJoinRequest(e.ajaxUrls,{customerId:t,email:e.email}),e.logUserAction({},{actionType:BO.Click,descriptor:WO.RequestAccess}),e.complete({completionStep:`requested-access`,trialCreated:!1,trialStatus:ck.UserJoinApprovalRequired})}catch(e){n(YA(e))}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.UserJoinApprovalRequired,imageUrls:e.imageUrls}),(0,Q.jsx)(fA.Body,{className:`mb-3`,children:(0,Q.jsxs)(fA.Heading,{children:[e.schoolName,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,onClick:r,children:`Request access`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-2`,children:t}),(0,Q.jsxs)(fA.Message,{className:`text-center`,children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}var QA={createUser(e,t){if(e.productName!==kD.Lite)return Promise.reject();let{email:n,source:r,syncToCrm:i,instanceRegion:a}=t;return Xk.asyncFetch({url:e.brazeCreateUser,method:Kk.POST,data:{email:n,source:r,syncToCrm:i,instanceRegion:a}})}};function $A(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});function a(e){if(QC(e.jobTitle)){l();return}s(e)}function o(){let t=tk.getCountryCode(e.country||e.geoLocation?.countryCode);return tk.getInstanceRegion(t)}async function s(a){if(t)return;if(e.userType===lk.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.RequestBdmTrial}),n(!0);let{firstName:s,surname:u}=nk(a.fullname);try{await QA.createUser(e.ajaxUrls,{email:e.email,source:pk.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED,syncToCrm:!0,instanceRegion:o()});let t={email:e.email,firstName:s,lastName:u,phone:a.phone,custom:{orgSubType:pk.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:pk.parseProvince(e?.province||``)},source:pk.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED},event:{conversion:pk.getConversionName(pk.Conversions.FREE_TRIAL_REQUEST,e.entryPage?.metadata?.conversionSuffix)}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:ED.ProductFormEvent.BdmTrialRequested,additionalData:n,callback:c}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||l()}function c(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function l(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(sk,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:pk.isTertiarySchool(e.schoolType)})}function ej(e){let{loading:t,canSubmitForm:n,setSubmissionError:r,prospectStatus:i,userType:a,logStepEvent:o,logUserAction:s,nextStep:c,data:l,productName:u,ajaxUrls:d,complete:f,setLoadingState:p,email:m,userTrialStatus:h,pageAppLinkString:g,setProperty:_,logBrazeEvent:v,createOrUpdateProfile:y,signupVariant:b}=e;function x(){c({step:`add-to-braze`,trialStatus:i,...l}),o()}function S(){if(o(),a!==lk.Staff){f({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}c({step:`request-bdm-trial`,...l})}function C(){c({step:`request-access`,...l}),o()}async function w(){try{await eA.createAutoJoinRequest(d,{prospectId:l.prospectId,email:m}),s({},{actionType:BO.Click,descriptor:WO.AutoJoin}),f({completionStep:`trial-status`,trialCreated:!0,trialStatus:ck.Available,...l})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}}async function T(){let e;l?.prospectId&&i===ck.NotRequired&&(e=(await Zk.getLookups(d,l.prospectId)).find(e=>e.type===XA.MasterId)?.externalId),f({completionStep:`trial-status`,trialStatus:i,trialCreated:!1,customerId:e,...l}),o()}function E(){return i===ck.Active||i===ck.Available||i===ck.UserAutoJoinAllowed&&u===kD.Auth}async function D(){if(a!==lk.Staff)return;let e={email:m,custom:{accountName:l?.schoolName,accountAddress:{countryCode:l?.country,province:pk.parseProvince(l.province)},orgSubType:pk.getSchoolType(l?.schoolType),syncToCrm:!0,source:pk.Sources.CV_PRODUCT_FORM_SUBMISSION},event:{accountCountry:l?.country,accountPostCode:l?.schoolPostCode,accountState:pk.parseProvince(l.province),variant:b}},t={form_type:`trial-sign-up`,prospect_id:l?.prospectId};v({user:e,event:{eventType:ED.ProductFormEvent.FormSubmission,additionalData:t}})}async function O(){p(!0);let t;try{t=await eA.createTrial(d,{signupVariant:b,userType:a,email:m,prospectId:l?.prospectId,appLink:g,attribution:{...rf.getDecodedAttributionData(),utms:gf.getUtmParameters()},conversion:pk.getConversionName(pk.Conversions.START_FREE_TRIAL,e?.entryPage?.metadata?.conversionSuffix)})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}i===ck.UserAutoJoinAllowed&&s({},{actionType:BO.Click,descriptor:WO.AutoJoin}),_(`userId`,t.id),f({completionStep:`trial-status`,userId:t.id,trialCreated:!0,trialStatus:ck.Available,customerId:t.data?.customerId,...l}),D(),y&&y({masterId:t.id,email:m,countryCode:l?.country}),o()}return async function(){if(!t){if(!n()){r(`Something went wrong! Please try again later.`);return}if(h===ck.BdmTrialAvailable)return S();if(a===lk.Staff){if(i===ck.Unsupported)return x();if(i===ck.UserJoinApprovalRequired)return C();if(i===ck.UserAutoJoinAllowed&&u===kD.Lite)return await w()}return E()?await O():await T()}}}var tj=50;function nj(e){return e.toLowerCase().split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function rj(e){let t=[];return e.city&&t.push(nj(e.city)),e.province&&t.push(e.province),e.postCode&&t.push(e.postCode),t.join(` `)}function ij(e){let{filteredSchoolsList:t,getSchoolName:n,onSchoolSuggestionClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsxs)(Lf,{className:`${Uk.suggestionItem} ${i-1===t?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:[n(e),` `,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`small`,{className:`text-secondary`,children:rj(e)})]},e.id))})}function aj(e){return(0,Q.jsx)(`div`,{className:`info-link ${Uk.suggestionItem} ${Uk.noSuggestion} ${e.selected?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.handleNoSuggestion(),onMouseDown:e.handleNoSuggestion,onClick:e.handleNoSuggestion,children:`Can't find your school?`})}function oj(e){let t=Z.useRef(null),[n,r]=Z.useState(!0),[i,a]=Z.useState(e.data.schoolName&&e.data.schoolPostCode?e.data.schoolName+`, `+e.data.schoolPostCode:e.data.schoolName?e.data.schoolName:``),[o,s]=Z.useState(),c=lC(i,250),{selectedIndex:l,onKeyDown:u,containerRef:d,hide:f,onBlur:p,onFocus:m}=If({onSelected:h,itemCount:(o?.length??0)+1,hideOnBlur:e.hideOnBlur});function h(t){if(!o&&!t)return;if(t===o.length){e.onClickNoSuggestions(i);return}let n=o[t];n&&C(n)}let g=!!e.data?.prospectId,_=n&&!g,v=!n&&!g&&o?.length<tj,y=o?.length&&!g;Z.useEffect(()=>{if(!g){if(!c.length){S();return}if(!g&&c.length>1&&c===i){S(c);return}}},[c,g]);function b(t){(e.data.schoolName||e.data.prospectId)&&e.clearData(),t!==i&&a(t)}function x(){b(``),t.current.focus()}function S(t){if(!e.data.latitude&&!e.data.longitude){r(!1);return}r(!0);let n={latitude:e.data.latitude,longitude:e.data.longitude};t&&t.length&&(n.query=t),Zk.search(e.searchUrl,n,e=>s(e),null,()=>r(!1))}function C(t){a(w(t)),e.setData({prospectId:t.id,schoolName:t.name,schoolPostCode:t.postCode,schoolType:t.prospectType,province:t.province,city:t.city,country:t.countryCode})}function w(e){return e.name}let T=(y||_||v)&&!e.disabled&&!f,E=!_&&!v&&o?.length>=tj,D=`form-control`,O=`form-group position-relative text-start`;return e.size===`lg`&&(D+=` form-control-lg`,O+=` ${Uk.large}`),(0,Q.jsxs)(`div`,{className:O,children:[(0,Q.jsxs)(`label`,{className:e.labelClassName,htmlFor:`school-input`,children:[`School`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Ff,{id:`school-input`,value:i,onChange:e=>b(e.currentTarget.value),ref:t,className:D,type:`text`,autoComplete:`off`,placeholder:e.placeholder||`Search for your school`,disabled:e.disabled,autoFocus:!0,onClickClear:x,onKeyDown:u,onFocus:m,onBlur:p}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${Uk.dropdown} ${f?`d-none`:``}`,children:(0,Q.jsx)(`div`,{className:`${Uk.suggestionContainer} ${T?``:`d-none`}`,children:(0,Q.jsxs)(`div`,{className:Uk.suggestionContainerInner,ref:d,children:[y?(0,Q.jsx)(ij,{filteredSchoolsList:o,onSchoolSuggestionClick:C,getSchoolName:w,selectedIndex:l}):_&&(0,Q.jsx)(`div`,{className:`${Uk.suggestionLoading} py-4 d-flex justify-content-center`,children:(0,Q.jsx)(Ox,{animation:`border`})}),E&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`hr`,{className:`my-0`}),(0,Q.jsx)(`div`,{className:`${Uk.suggestionItem} ${Uk.noSuggestion} text-secondary text-center`,children:(0,Q.jsxs)(`small`,{children:[`Can't find your school? `,(0,Q.jsx)(`br`,{}),` Try searching to narrow the results`]})})]}),!_&&v&&(0,Q.jsx)(aj,{selected:l===o.length+1,handleNoSuggestion:()=>{e.onClickNoSuggestions(i)}})]})})})]})}function sj(e){return e?.toLowerCase()===`au`?`Enter your school postcode or suburb`:e?.toLowerCase()===`us`?`Enter your school ZIP code or city`:e?.toLowerCase()===`ca`?`Enter your school postal code or city`:`Enter your school postcode or city`}function cj(e){let{email:t,userType:n}=e,[r,i]=Z.useState({schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province,prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolPostCode:e.schoolPostCode}),[a,o]=Z.useState(e.trialStatus),[s,c]=Z.useState(),[l,u]=Z.useState(!1),[d,f]=Z.useState(!1),[p,m]=Z.useState(!1),h=ej({...e,prospectStatus:a,loading:l,data:r,canSubmitForm:_,setSubmissionError:c,logStepEvent:v,setLoadingState:y,setProperty:b});function g(){return!!(r&&r.schoolLocality&&r.longitude&&r.latitude)}function _(){if(!r||!t||!n)return!1;let{prospectId:e}=r;return!!(t&&n&&e)}function v(){let t={actionType:BO.Click,descriptor:WO.FindSchool,workflowPhase:UO.Next};e.logUserAction(r||{},t)}function y(e){f(e),m(e),u(e)}function b(t,n){t===`prospectId`&&n&&(u(!0),eA.checkProspectTrialStatus(e.ajaxUrls,{prospectId:n.toString(),email:e.email},e=>{o(e.status)},()=>{console.log(`error`)},()=>{u(!1)})),i(e=>({...e,[t]:n}))}function x(){b(`schoolLocality`,void 0),b(`longitude`,void 0),b(`latitude`,void 0),b(`city`,void 0),b(`province`,void 0),b(`country`,void 0),S()}function S(){b(`prospectId`,void 0),b(`schoolName`,``),b(`schoolPostCode`,void 0),c(void 0)}function C(t){e.nextStep({step:`cant-find-school`,prospectId:r.prospectId,schoolName:t,schoolLocality:r.schoolLocality,longitude:r.longitude,latitude:r.latitude,country:r.country,city:r.city,province:r.province}),e.logUserAction({},{actionType:BO.Click,descriptor:WO.CantFindSchool,workflowPhase:UO.Next})}function w(e){b(`prospectId`,e.prospectId),b(`schoolName`,e.schoolName),b(`schoolPostCode`,e.schoolPostCode),b(`schoolType`,e.schoolType),b(`province`,e.province),b(`city`,e.city),b(`country`,e.country)}function T(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&b(`longitude`,t),n&&b(`latitude`,n),i&&b(`country`,i),a&&b(`city`,a),o&&b(`province`,o),r&&b(`schoolLocality`,r)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's find your school`}),(0,Q.jsx)(`p`,{children:sj(e.geoLocation?.countryCode)}),(0,Q.jsx)(Gk,{data:r,setData:T,clearData:x,disabled:d,geoLocation:e.geoLocation,labelClassName:`d-none`,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!0,size:`lg`,useGeoLocationApi:!0}),g()&&(0,Q.jsx)(oj,{data:r,setData:w,clearData:S,disabled:p,searchUrl:e.ajaxUrls.searchProspect,onClickNoSuggestions:C,size:`lg`,labelClassName:`d-none`}),s&&(0,Q.jsx)(`p`,{className:`text-danger mb-2`,children:s}),_()&&(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:d||p||l,disabled:d||p||l,children:`Get started`})]})}var lj=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function uj(e){let[t,n]=Z.useState(null);function r(e){if(!e)return;let t=window.location.pathname+window.location.search;window.location.href=`/challenge?idp=${e.id}&redirectUrl=`+encodeURIComponent(t)}function i(){e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.SkipIdpSelect}),e.nextStep({step:`find-school`,email:e.email,userTrialStatus:e.userTrialStatus})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Does your school already have ClickView?`}),(0,Q.jsx)(`p`,{children:`Find your school from the list below`}),e.idps.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Bf,{id:`idp`,item:t,items:e.idps,onSelect:n,getName:e=>e.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!t,onClick:()=>r(t),children:`Continue`})]}):e.idps.map((e,t)=>(0,Q.jsx)(`button`,{className:`btn btn-lg w-100 mb-3`,onClick:()=>r(e),style:{backgroundColor:`#${lj[t%lj.length]}`,color:`#FFF`},children:e.name},t)),(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 no-sso-link`,onClick:i,children:`My school does not have ClickView`})]})}var dj={hoverArea:`_hoverArea_1i8nr_1`,defaultImage:`_defaultImage_1i8nr_1`,activeImage:`_activeImage_1i8nr_1`,hoverImage:`_hoverImage_1i8nr_4`};function fj(e){let{as:t=`div`,className:n,...r}=e;return(0,Q.jsx)(t,{className:nd(n,dj.hoverArea),...r,children:e.children})}function pj(e){return e.active?(0,Q.jsx)(`img`,{src:e.src.hovered,className:nd(dj.activeImage,e.className?.hovered)}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`img`,{src:e.src.default,className:nd(dj.defaultImage,e.className?.default)}),(0,Q.jsx)(`img`,{src:e.src.hovered,className:nd(dj.hoverImage,e.className?.hovered)})]})}var mj={Area:fj,Image:pj},hj={userTypeOption:`_userTypeOption_e39ge_1`,selected:`_selected_e39ge_4`,image:`_image_e39ge_8`};function gj(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(mj.Area,{as:Lf,className:`ratio ratio-1x1 d-none d-md-block`,onClick:()=>e.onClick(e.type),children:(0,Q.jsxs)(`div`,{className:nd(`d-flex flex-fill flex-column justify-content-center border rounded-3 mx-auto gap-3 p-3`,hj.userTypeOption,e.selected&&hj.selected),children:[(0,Q.jsx)(mj.Image,{active:e.selected,src:{default:e.defaultImageSrc,hovered:e.hoveredImageSrc},className:{default:nd(`rounded-top mx-auto pb-2 w-auto`,hj.image),hovered:nd(`rounded-top mx-auto pb-2 w-auto`,hj.image)}}),(0,Q.jsx)(`span`,{className:`h4`,children:e.buttonText})]})}),(0,Q.jsx)(Lf,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}var _j=function(e){return e.ClickView=`clickview`,e.ClickViewLive=`clickview-live`,e.Bundle=`bundle`,e}({}),vj={[NA.Popup]:{[_j.ClickViewLive]:{title:`Tune in to live programs without leaving the classroom`,description:`Let's get you set up so you can access ClickView Live. Who would you like to sign up as?`},[_j.ClickView]:{title:`Access thousands of standard-aligned videos`,description:`Let's get you set up so you can access ClickView. Who would you like to sign up as?`},[_j.Bundle]:{title:`Access thousands of standard-aligned videos`,description:`Let's get you set up so you can access ClickView. Who would you like to sign up as?`}},[NA.FullPage]:{[_j.ClickViewLive]:{title:`Let’s create your ClickView Live account`},[_j.ClickView]:{title:`Let’s create your ClickView account`},[_j.Bundle]:{title:`Let’s create your ClickView account`}}},yj={[NA.Popup]:{itemClassName:`col-md-6 col-lg-4 col-xl-5`,containerClassName:`col-11`,titleClassName:`h4`},[NA.FullPage]:{itemClassName:`col-12 col-md-6`,containerClassName:`col-10 col-xl-8`,titleClassName:`h2 mb-3`}};function bj(e){let{signupVariant:t}=e,{title:n,description:r}=vj[e.type][t];function i(t){if(e.logUserAction({userType:t},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:t===lk.Staff?WO.Educator:WO.Student}),t===lk.Staff){e.nextStep({step:`enter-email`,userType:t});return}e.nextStep({step:`enter-age`,userType:t})}let a=yj[e.type];return(0,Q.jsx)(`div`,{className:`row justify-content-center`,children:(0,Q.jsxs)(`div`,{className:a.containerClassName,children:[(0,Q.jsx)(`h1`,{className:a.titleClassName,children:n}),r&&(0,Q.jsx)(`p`,{className:`mb-3`,children:r}),(0,Q.jsxs)(`div`,{className:`row justify-content-center text-center g-3`,children:[(0,Q.jsx)(`div`,{className:a.itemClassName,children:(0,Q.jsx)(gj,{type:lk.Staff,buttonText:`I am an educator`,defaultImageSrc:e.imageUrls.educator?.default,hoveredImageSrc:e.imageUrls.educator?.hovered,onClick:i,selected:e.userType===lk.Staff})}),(0,Q.jsx)(`div`,{className:a.itemClassName,children:(0,Q.jsx)(gj,{type:lk.Learner,buttonText:`I am a student`,defaultImageSrc:e.imageUrls.student?.default,hoveredImageSrc:e.imageUrls.student?.hovered,onClick:i,selected:e.userType===lk.Learner})})]})]})})}var xj={"select-type":bj,"enter-email":JA,"find-school":cj,"cant-find-school":sA,completed:MA,"add-to-braze":mk,"enter-age":zA,"request-access":ZA,"request-bdm-trial":$A,"select-idp":uj};function Sj(e){let{state:t,geoLocation:n,layout:r,hasPreviousStep:i,googleMapsApiKey:a,pageAppLinkString:o,entryPage:s,back:c,nextStep:l,complete:u,logUserAction:d,logBrazeEvent:f,imageUrls:p,ajaxUrls:m,productName:h,getSignInUrl:g,globalIdps:_,createOrUpdateProfile:v,getCrmIdForProspect:y,signupVariant:b,type:x}=e,S=xj[t.currentStepId],C={...t,geoLocation:n,googleMapsApiKey:a,pageAppLinkString:o,entryPage:s,back:c,nextStep:l,complete:u,logUserAction:d,imageUrls:p,ajaxUrls:m,productName:h,getSignInUrl:g,logBrazeEvent:f,globalIdps:_,createOrUpdateProfile:v,getCrmIdForProspect:y,signupVariant:b,type:x},w=r;if(!w)return(0,Q.jsx)(S,{...C});let T=KO.last(e.state.previousStepIds)===`completed`;return(0,Q.jsx)(w,{geoLocation:e.geoLocation,currentStep:t.currentStepId,previousStep:c,closeApp:e.close,logUserAction:d,hasPreviousStep:i,showBackButton:!T,imageUrls:e.imageUrls,getSignInUrl:g,children:(0,Q.jsx)(S,{...C})})}var Cj=[`email`,`longitude`,`latitude`,`trialCreated`,`idps`],wj={filterBlacklistedKeys(e){let t={...e};return Cj.forEach(e=>delete t[e]),t}};function Tj(e){let t=[...e.previousStepIds],n=t.pop();return{...e,previousStepIds:t,currentStepId:n}}function Ej(e){return Object.entries(e).filter(([,e])=>e!==null).reduce((e,[t,n])=>({...e,[t]:n}),{})}function Dj(e,t){let n={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:t.step};if(t.step===`select-type`)return{...n};if(t.step===`enter-email`||t.step===`enter-age`)return{...n,userType:t.userType};if(t.step===`select-idp`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus,idps:t.idps};if(t.step===`find-school`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus};if(t.step===`cant-find-school`)return{...n,prospectId:t.prospectId,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province};if(t.step===`add-to-braze`||t.step===`completed`||t.step===`request-access`||t.step===`request-bdm-trial`){let e={...t};return delete e.type,delete e.step,e=Ej(e),{...n,...e}}}function Oj(e,t){switch(t.type){case`nextStep`:return Dj(e,t);case`back`:return Tj(e)}}var kj=({location:e,initialValues:t,entryPage:n,onStepUpdate:r,externalLogUserAction:i})=>{let a={currentStepId:`select-type`,previousStepIds:[],...pk.removeEmptyKeys(t)},[o,s]=Z.useReducer(Oj,a);Z.useEffect(()=>{r?.(o)},[o.currentStepId]);function c(){s({type:`back`})}function l(e){s({type:`nextStep`,...e})}function u(e){s({type:`nextStep`,step:`completed`,...e})}function d(t,r){let a={...o,...t},s=wj.filterBlacklistedKeys(a),c={currentStepId:o.currentStepId,...s};n&&(c.entryPage=n),i(Object.entries(c).filter(([,e])=>e!==void 0).reduce((e,[t,n])=>({...e,[t]:n}),{}),{entity:VO.SignUp,location:e,...r})}return{state:o,back:c,nextStep:l,complete:u,hasPreviousStep:!!o.previousStepIds.length,logUserAction:d}},Aj={statusImages:{available:`/images/sign-up/available-v2.png`,active:`/images/sign-up/active-v2.png`,expired:`/images/sign-up/expired-v2.png`,notRequired:`/images/sign-up/active-v2.png`,unavailable:`/images/sign-up/unavailable-v2.png`,unsupported:`/images/sign-up/unavailable-v2.png`,autoJoin:`/images/sign-up/active-v2.png`,requestAccess:`/images/sign-up/active-v2.png`}};function jj(e){let t={currentStepId:`find-school`,previousStepIds:[],email:e.email,userType:lk.Staff},n=e.geoLocation?.countryCode?e.geoLocation:{countryCode:$.US,isFallback:!0},{complete:r,...i}=kj({location:HO.AuthProspectSelect,initialValues:t,externalLogUserAction:d}),[a,o]=Z.useState(null);Z.useEffect(()=>{xd.get(`/ajax/config`).then(e=>o(e))},[]);let s=AD(a?.gatewayApi),c=Z.useMemo(()=>{if(!a)return null;let e={cvApSoutheast1:a.analytics[KD.CvApSoutheast1].collectionApi,cvApSoutheast2:a.analytics[KD.CvApSoutheast2].collectionApi,cvEuWest1:a.analytics[KD.CvEuWest1].collectionApi,cvNaWest1:a.analytics[KD.CvNaWest1].collectionApi};return new zO({productName:`auth.web`,productVersion:a.version,regionName:tk.getRegionName(n?.countryCode),collectionApiUrls:e,collectionApiClientId:`cv_auth`,getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[a]),l=Z.useMemo(()=>{if(!a?.braze)return null;let e=a.braze[tk.getRegionName(n?.countryCode)];return new ED.BrazeClient({apiOptions:{apiKey:e.apiKey,baseUrl:e.url,productName:`auth.web`,productVersion:a.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[a]);DD({additionalData:e.additionalData});function u(e){if(!l)return;let t=rf.getDecodedAttributionData(),n=e.event?.additionalData||{};t?.originalReferrer&&(n.original_referrer=t.originalReferrer),t?.internalReferrer&&(n.internal_referrer=t.internalReferrer);let r={...e.event,additionalData:n};l.setUserInit(e.user),l.event.log(r)}function d(e,t){c?.log({type:t.actionType,data:e,actionContext:{productArea:`prospect_select`,entity:t.entity,location:t.location,descriptor:t.descriptor,workflowPhase:t.workflowPhase},eventVersion:t.eventVersion||GO.V1})}function f(t){if(!t.trialCreated){r(t);return}xd.post(`/ajax/login/select-customer`,{customerId:t.customerId,returnUrl:e.returnUrl}).then(t=>zd(t,e))}function p(){e.navigate({step:e.backStep,backStep:null})}async function m(e){try{return(await xd.get(s.prospectLookups(e))).find(e=>e.type===XA.CrmId)?.externalId}catch{return}}if(!a)return(0,Q.jsx)(Q.Fragment,{});let h={...i,type:NA.FullPage,signupVariant:_j.ClickView,complete:f,googleMapsApiKey:a.googleMapsApiKey,ajaxUrls:s,imageUrls:Aj,geoLocation:n,productName:kD.Auth,getSignInUrl:()=>``,logBrazeEvent:u,getCrmIdForProspect:m};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:!!e.backStep&&p}),(0,Q.jsx)(Sj,{...h})]})}function Mj(e){return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(rd,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/email-not-allowed-v2.png`}),(0,Q.jsx)(`h1`,{className:`h2 mb-3`,children:`Oops! Make sure to use your school email address`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`This includes the email you use to sign in to Google or Microsoft.`}),(0,Q.jsx)(`a`,{href:e.liteUrl+`sign-up`,className:`btn btn-lg btn-dark w-100 text-decoration-none`,children:`Try again`})]})}var Nj={username:Zu,"username-input":wf,"username-or-guest":Tf,"guest-selection":Wf,password:Jf,"select-idp":Xf,error:jC,"verify-email":np,"verify-email-check-code":lp,"verify-email-link-success":dp,"verify-email-skip-reason":IC,"forgot-password":fp,"forgot-password-check-code":pp,"reset-password":wC,"change-password":TC,"self-activation":EC,"self-activation-check-code":DC,"verify-email-link-email-in-use":NC,"verify-email-code-email-in-use":PC,logout:LC,loggedout:RC,"activate-user":TE,"select-customer":kE,"trial-expired":LE,"link-account":_D,"link-account-code":vD,invite:SD,"invite-success":CD,"select-user-type":TD,"prospect-select":jj,"email-not-allowed":Mj,"organisation-select-customer":zC,"contact-support":AC};function Pj(e,t){if(t.type!==`navigate`)return e;let n=Object.keys(t.data).reduce((e,n)=>{if(n!==`bannerType`)return t.data[n]!==void 0&&(e={...e,[n]:t.data[n]}),e},{});return t.data.clearUsername&&(n.username=void 0,n.clearUsername=void 0),{...e,...n}}function Fj(e,t){return t.type===`setBanner`?{...e,bannerType:t.data.bannerType}:e}function Ij(e,t){switch(t.type){case`navigate`:return Pj(e,t);case`setBanner`:return Fj(e,t)}}var Lj={footer:`_footer_psbd8_1`};function Rj(e){return(0,Q.jsx)(`div`,{className:`text-center p-2 text-secondary small`,children:(0,Q.jsxs)(`ul`,{className:`d-flex flex-wrap list-unstyled justify-content-center`,children:[(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(`span`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView Pty Limited`]})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.privacyPolicyUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Privacy Policy`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.termsAndConditionsUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Terms and Conditions`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`span`,{children:e.version})})]})})}function zj(e){return(0,Q.jsx)(`footer`,{className:Lj.footer,children:(0,Q.jsx)(Rj,{...e})})}var Bj=`M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z`;function Vj(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:Bj}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})}var Hj=function(e){return e[e.Audience=1]=`Audience`,e[e.Category=2]=`Category`,e[e.Channel=3]=`Channel`,e[e.Chapter=4]=`Chapter`,e[e.Comment=5]=`Comment`,e[e.OwnerComment=6]=`OwnerComment`,e[e.Image=7]=`Image`,e[e.Thumbnail=8]=`Thumbnail`,e[e.Avatar=9]=`Avatar`,e[e.Banner=10]=`Banner`,e[e.Video=11]=`Video`,e[e.Trailer=12]=`Trailer`,e[e.Rating=13]=`Rating`,e[e.Topic=14]=`Topic`,e[e.Series=15]=`Series`,e[e.Season=16]=`Season`,e[e.HostedMediaObjectCollection=17]=`HostedMediaObjectCollection`,e[e.ExchangeCollection=18]=`ExchangeCollection`,e[e.CustomMediaObjectCollection=19]=`CustomMediaObjectCollection`,e[e.Playlist=20]=`Playlist`,e[e.ClickViewTvCollection=21]=`ClickViewTvCollection`,e[e.ClickViewProductionsCollection=22]=`ClickViewProductionsCollection`,e[e.User=23]=`User`,e[e.SystemUser=24]=`SystemUser`,e[e.Customer=25]=`Customer`,e[e.Country=26]=`Country`,e[e.Organisation=28]=`Organisation`,e[e.SystemOrganisation=29]=`SystemOrganisation`,e[e.Group=30]=`Group`,e[e.SystemGroup=31]=`SystemGroup`,e[e.FlagReason=32]=`FlagReason`,e[e.Library=33]=`Library`,e[e.Interactive=34]=`Interactive`,e[e.WorkspaceCollection=35]=`WorkspaceCollection`,e[e.Conversation=36]=`Conversation`,e[e.Message=37]=`Message`,e[e.Notification=38]=`Notification`,e[e.Clip=39]=`Clip`,e[e.Link=40]=`Link`,e[e.UserChannel=41]=`UserChannel`,e[e.Resource=42]=`Resource`,e[e.VideoStream=43]=`VideoStream`,e[e.AudioStream=44]=`AudioStream`,e[e.Tag=45]=`Tag`,e[e.Subtitle=46]=`Subtitle`,e[e.LicencedContentCollection=47]=`LicencedContentCollection`,e[e.PublicCollection=48]=`PublicCollection`,e[e.CategoryTree=49]=`CategoryTree`,e[e.Logo=50]=`Logo`,e[e.Permission=51]=`Permission`,e[e.Subject=52]=`Subject`,e[e.Field=53]=`Field`,e[e.Company=54]=`Company`,e[e.Person=55]=`Person`,e[e.Cover=56]=`Cover`,e[e.Poster=57]=`Poster`,e[e.SubjectAudience=58]=`SubjectAudience`,e[e.TallPoster=60]=`TallPoster`,e[e.Classroom=67]=`Classroom`,e[e.ClassroomGroup=68]=`ClassroomGroup`,e[e.UserProfile=74]=`UserProfile`,e[e.PartnerProfile=78]=`PartnerProfile`,e[e.LearningLevel=79]=`LearningLevel`,e}({}),Uj={left:`_left_1r3w0_1`,leftWithImage:`_leftWithImage_1r3w0_10`,bgCover:`_bgCover_1r3w0_14`,bgFull:`_bgFull_1r3w0_17`,right:`_right_1r3w0_20`,rightContent:`_rightContent_1r3w0_28`,narrowContent:`_narrowContent_1r3w0_34`,logo:`_logo_1r3w0_37`,buttonContainer:`_buttonContainer_1r3w0_43`,blur:`_blur_1r3w0_53`,imageContainer:`_imageContainer_1r3w0_65`,imagePosition:`_imagePosition_1r3w0_73`,image:`_image_1r3w0_65`,thumbnail:`_thumbnail_1r3w0_87`,tallposter:`_tallposter_1r3w0_90`,cover:`_cover_1r3w0_96`,contentBody:`_contentBody_1r3w0_102`,contentBodyBase:`_contentBodyBase_1r3w0_106`};function Wj(e){switch(e){case Hj.Video:case Hj.Interactive:case Hj.Clip:return Uj.thumbnail;case Hj.Subject:case Hj.Playlist:return Uj.cover;case Hj.Series:return Uj.tallposter;default:return``}}function Gj(e){return(0,Q.jsx)(`div`,{className:`d-flex`,children:e.children})}function Kj(e){return(0,Q.jsx)(`div`,{className:`${Uj.left} ${e.className?e.className:``}`,children:e.children})}function qj(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(``);return Z.useEffect(()=>{if(!e.imageUrl){let t=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];i(t.bgUrl);return}let t=new Image;return t.onload=()=>n(!0),t.src=e.imageUrl,()=>t.onload=null},[e.imageUrl]),(0,Q.jsx)(`div`,{className:`${Uj.left} ${Uj.leftWithImage} ${Uj.bgCover} bg-light`,style:{backgroundImage:r?`url('${r}')`:``},children:t&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:Uj.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),(0,Q.jsx)(`div`,{className:`${Uj.imageContainer} ${Wj(e.objectType)}`,children:(0,Q.jsx)(`div`,{className:Uj.imagePosition,children:(0,Q.jsx)(`img`,{className:Uj.image,src:e.imageUrl,alt:e.title})})})]})})}function Jj(e){let[t,n]=Z.useState(``);return Z.useEffect(()=>{let t=e.images[Math.floor(Math.random()*e.images.length)];n(t.bgUrl)},[]),(0,Q.jsx)(`div`,{className:`${Uj.left} bg-blue d-flex align-items-center`,children:t&&(0,Q.jsx)(`img`,{className:`img-fluid`,src:t,draggable:!1})})}var Yj={cover:Uj.bgCover,full:Uj.bgFull};function Xj(e){let t={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:``};return e.backgroundColor&&(t.backgroundColor=e.backgroundColor),(0,Q.jsx)(`div`,{className:`${Uj.left} ${Uj.leftWithImage} ${Yj[e.imageSize||`cover`]} d-flex align-items-center`,style:t,title:e.title})}function Zj(e){return(0,Q.jsx)(`div`,{className:`${Uj.right} ${e.className?e.className:``}`,children:e.children})}function Qj(e){let t=e?.logoComponent||Vj;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[!!e.bannerComponent&&e.bannerComponent,(0,Q.jsx)(`div`,{className:nd(Uj.logo,`position-absolute`,e.className?.logoContainer),children:(0,Q.jsx)(t,{})}),e.children]})}function $j(e){return(0,Q.jsx)(`div`,{className:nd(Uj.rightContent,`d-flex flex-column justify-content-center h-100`,e?.className),children:e.children})}var eM={base:Uj.contentBodyBase,full:``};function tM(e){let t=eM[e.width||`base`];return(0,Q.jsx)(`div`,{className:nd(Uj.contentBody,t,`m-auto p-3`,e.className),children:e.children})}Gj.NarrowContent=nM;function nM(e){return(0,Q.jsx)(`div`,{className:`${Uj.narrowContent} mx-auto w-100 ${e.className?e.className:``}`,children:e.children})}function rM(e){return(0,Q.jsx)(`div`,{className:nd(`position-fixed bg-white d-flex align-items-center`,Uj.buttonContainer,e?.className),children:e.children})}Gj.Left=Kj,Gj.LeftImage=qj,Gj.LeftProductImage=Jj,Gj.LeftImageWithBackground=Xj,Gj.Right=Zj,Gj.Header=Qj,Gj.Content=$j,Gj.ContentBody=tM,Gj.Buttons=rM;function iM(){function e(n){n.key===`Tab`&&(document.body.classList.add(`user-is-tabbing`),window.removeEventListener(`keydown`,e),window.addEventListener(`mousedown`,t))}function t(){document.body.classList.remove(`user-is-tabbing`),window.removeEventListener(`mousedown`,t),window.addEventListener(`keydown`,e)}(0,Z.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}var aM={full:`_full_vw1kz_1`,themeBannerClearance:`_themeBannerClearance_vw1kz_9`};function oM(e){return e.imageType===`background`?(0,Q.jsx)(Gj.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType===`image`?(0,Q.jsx)(Gj.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:`full`,backgroundColor:e.backgroundColor,title:e.title}):(0,Q.jsx)(Q.Fragment,{})}function sM(e){let{children:t,footer:n,bannerType:r,theme:i}=e,[a,o]=Z.useState(null);iM();let{imageUrls:s,imageType:c,backgroundColor:l,banner:u,title:d,logoComponent:f,bannerSpacer:p}=Ld.getDefinition(i),m=s[e.geoLocation?.countryCode?.toLowerCase()]||s.default;Z.useEffect(()=>{let e=Math.floor(Math.random()*m.length);o(m[e])},[]);let h=c!==`none`,g=!!r,_=[`plugin`].includes(r);return(0,Q.jsxs)(Gj,{children:[h&&(0,Q.jsx)(oM,{title:d,imageUrl:a,imageType:c,backgroundColor:l}),(0,Q.jsxs)(Gj.Right,{className:nd(!h&&aM.full),children:[(0,Q.jsx)(Gj.Header,{bannerComponent:!!u&&(0,Q.jsx)(Cd,{bannerType:u}),logoComponent:f,className:{logoContainer:!!u&&aM.themeBannerClearance}}),(0,Q.jsxs)(Gj.Content,{className:nd(!h&&`px-0 w-100`,`pb-0`),children:[!_&&(0,Q.jsx)(Cd,{bannerType:r}),(0,Q.jsxs)(Gj.ContentBody,{children:[t,!_&&g&&(0,Q.jsx)(p,{})]}),(0,Q.jsx)(zj,{...n})]})]})]})}function cM(e){let{step:t,returnUrl:n,data:r={},footer:i,geoLocation:a,theme:o,additionalData:s}=e,[c,l]=Z.useReducer(Ij,{step:t,returnUrl:n,geoLocation:a,theme:o,additionalData:s,...r});function u(e){l({type:`navigate`,data:e})}let d=Nj[c.step];return d||zd({step:t,data:r},null),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(sM,{footer:{...i,...c},bannerType:c.bannerType,step:t,theme:o,geoLocation:a,children:!!d&&(0,Q.jsx)(d,{navigate:u,dispatch:l,...c})}),!1]})}function lM(e){let{id:t,returnUrl:n,footer:r,region:i,config:a,theme:o,additionalData:s}=e,c=e.currentStep||{};(0,Gu.createRoot)(document.getElementById(t)).render((0,Q.jsx)(cM,{returnUrl:n,step:c.step,data:{...a,...c.data},footer:r,geoLocation:i,theme:c.data?.theme||o,additionalData:s}))}window.cvauth={start:lM};
|
|
61
|
-
//# sourceMappingURL=index-
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!Ie.additionalData(r))return!1}}catch(e){n.e(e)}finally{n.f()}}else for(var i in e){if(!Ie.isSnakeCase(i))return J(`'${i}' in additional data provided does not follow 'snake_case' naming convention.`),!1;var a=e[i];if(Me(a)===`object`&&a!==null&&!Ie.additionalData(a))return!1}return!0},accountAddress:function(e){if(!e||Me(e)!==`object`)return!1;var t=Object.keys(e);return!(t.length===0||t.length>2||t.length===1&&!t.includes(`country_code`)||t.length===2&&!t.includes(`country_code`)&&!t.includes(`province`)||typeof e.country_code!=`string`||t.includes(`province`)&&typeof e.province!=`string`)},brazeClientOptions:function(e){e||q(`No Client options provided.`),Fe.forEach((function(t){e.hasOwnProperty(t)||q(`Cannot find the required "${t}" attribute in client options.`)}))}};function Le(e){return Le=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Le(e)}function Re(){Re=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.asyncIterator||`@@asyncIterator`,c=a.toStringTag||`@@toStringTag`;function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},``)}catch{l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype);return i(o,`_invoke`,{value:T(e,n,new k(r||[]))}),o}function d(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}t.wrap=u;var f=`suspendedStart`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};l(y,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==n&&r.call(x,o)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);function C(e){[`next`,`throw`,`return`].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if(c.type!==`throw`){var l=c.arg,u=l.value;return u&&Le(u)==`object`&&r.call(u,`__await`)?t.resolve(u.__await).then((function(e){n(`next`,e,o,s)}),(function(e){n(`throw`,e,o,s)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n(`throw`,e,o,s)}))}s(c.arg)}var a;i(this,`_invoke`,{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function T(t,n,r){var i=f;return function(a,o){if(i===p)throw Error(`Generator is already running`);if(i===m){if(a===`throw`)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=E(s,r);if(c){if(c===h)continue;return c}}if(r.method===`next`)r.sent=r._sent=r.arg;else if(r.method===`throw`){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else r.method===`return`&&r.abrupt(`return`,r.arg);i=p;var l=d(t,n,r);if(l.type===`normal`){if(i=r.done?m:`suspendedYield`,l.arg===h)continue;return{value:l.arg,done:r.done}}l.type===`throw`&&(i=m,r.method=`throw`,r.arg=l.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,r===`throw`&&t.iterator.return&&(n.method=`return`,n.arg=e,E(t,n),n.method===`throw`)||r!==`return`&&(n.method=`throw`,n.arg=TypeError(`The iterator does not provide a '`+r+`' method`)),h;var a=d(i,t.iterator,n.arg);if(a.type===`throw`)return n.method=`throw`,n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,n.method!==`return`&&(n.method=`next`,n.arg=e),n.delegate=null,h):o:(n.method=`throw`,n.arg=TypeError(`iterator result is not an object`),n.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(D,this),this.reset(!0)}function A(t){if(t||t===``){var n=t[o];if(n)return n.call(t);if(typeof t.next==`function`)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw TypeError(Le(t)+` is not iterable`)}return _.prototype=v,i(S,`constructor`,{value:v,configurable:!0}),i(v,`constructor`,{value:_,configurable:!0}),_.displayName=l(v,c,`GeneratorFunction`),t.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===_||(t.displayName||t.name)===`GeneratorFunction`)},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,`GeneratorFunction`)),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,a){a===void 0&&(a=Promise);var o=new w(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(S),l(S,c,`Generator`),l(S,o,(function(){return this})),l(S,`toString`,(function(){return`[object Generator]`})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=`next`,this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)n.charAt(0)===`t`&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type=`throw`,s.arg=t,n.next=r,i&&(n.method=`next`,n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=r.call(o,`catchLoc`),l=r.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error(`try statement without catch or finally`);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;O(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},this.method===`next`&&(this.arg=e),h}},t}function ze(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,Be(r.key),r)}}function Be(e){var t=function(e,t){if(Le(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Le(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Le(t)==`symbol`?t:t+``}var Ve=function(){function n(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),Ie.brazeClientOptions(e),this.options=e,this.initialize()}var r,i,a;return r=n,i=[{key:`initialize`,value:function(){var n=this.options.apiKey,r={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,allowUserSuppliedJavascript:this.options.allowUserSuppliedJavascript,minimumIntervalBetweenTriggerActionsInSeconds:this.options.minimumIntervalBetweenTriggerActionsInSeconds,doNotLoadFontAwesome:!0};e.ZP.initialize(n,r)||q(`Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.`),this.options.automaticallyShowInAppMessages&&function(){if(!e.ZP.X())return;o();let n=t.Z.m();if(n.Pi()==null){let e=B((e=>z(e)));n.$i(e)}n.Pi()}()}},{key:`openSession`,value:function(){(function(){if(!e.ZP.X())return;let t=e.ZP.cr();if(!t)return;t.openSession();let n=V.Z.Yt.Qt,r=new V.Z(n,_.Z);r.jr(n.ss.hr,((e,i)=>{let a=i.lastClick,o=i.trackingString;_.Z.info(`Firing push click trigger from ${o} push click at ${a}`);let s=t.kr(a,o),c=function(){x.n.rr().fe(b.Z.vr,[o],s)};t.$r(c,c),r.re(n.ss.hr,e)})),r.Zt(n.ss.wr,(function(e){t.yr(e)}))})()}},{key:`logEvent`,value:function(e){var t=Ae.getEventDataPayload(e,{name:this.options.productName,version:this.options.productVersion,locale:this.options?.locale});return H.logCustomEvent(e.type,t)}},{key:`getUserId`,value:function(){return this.getBrazeUser().getUserId()}},{key:`setCustomUserAttribute`,value:function(e,t){var n=this.getBrazeUser();return Ie.clientUserAttributeValue(t)||q(`Invalid custom user attribute value: '${t}' for key: '${e}'`),n.setCustomUserAttribute(e,t)}},{key:`bulkSetCustomUserAttributes`,value:function(e){var t=this;Object.keys(e).length||q(`Cannot bulk set emptry object for custom user attributes`),Object.keys(e).forEach((function(n){var r=e[n];t.setCustomUserAttribute(n,r)}))}},{key:`requestPushPermission`,value:function(e,t){ee.requestPushPermission(e,t)}},{key:`unregisterPush`,value:function(e,t){U.unregisterPush(e,t)}},{key:`setAlias`,value:function(e,t){this.getBrazeUser().addAlias(t,e)}},{key:`setUser`,value:function(e){te.changeUser(e)}},{key:`setUserFirstName`,value:function(e){this.getBrazeUser().setFirstName(e)}},{key:`setUserLastName`,value:function(e){this.getBrazeUser().setLastName(e)}},{key:`setUserEmail`,value:function(e){this.getBrazeUser().setEmail(e)}},{key:`setUserCountry`,value:function(e){this.getBrazeUser().setCountry(e)}},{key:`setUserPhone`,value:function(e){this.getBrazeUser().setPhoneNumber(e)}},{key:`setUserGender`,value:function(e){this.getBrazeUser().setGender(e)}},{key:`setUserEmailNotificationSubscriptionType`,value:function(e){return this.getBrazeUser().setEmailNotificationSubscriptionType(e)}},{key:`sendData`,value:function(e){e&&typeof e==`function`?ne.requestImmediateDataFlush(e):ne.requestImmediateDataFlush()}},{key:`hasUser`,value:function(){try{if(this.getBrazeUser())return!0}catch{return!1}finally{return!1}}},{key:`getBrazeUser`,value:function(){var e=E.P();return e||q(`No valid user found!`),e}},{key:`getContentCardsV2`,value:function(){return function(){if(e.ZP.X())return _e.rr().Us(!1)}()}},{key:`showContentCards`,value:function(e,t){return Se(e,t)}},{key:`getContentCards`,value:function(){return e=this,t=void 0,n=void 0,r=Re().mark((function e(){return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,new Promise((function(e,t){Se(null,(function(n){return n?e(n):t(Error(`No content cards found.`)),n}))})));case 1:case`end`:return e.stop()}}),e)})),new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}},{key:`hideCards`,value:function(t){(function(t){if(!e.ZP.X())return;let n=document.querySelectorAll(`.ab-feed`);for(let e=0;e<n.length;e++)(t==null||t!=null&&n[e].parentNode===t)&&(0,ye.tQ)(n[e])})(t)}},{key:`logContentCardDismissal`,value:function(e){e||q(`No "card" provided in "logContentCardDismissal"`),Ce.K(e)}},{key:`logContentCardClick`,value:function(e){e||q(`No "card" provided in "logContentCardClick"`),W.d(e,!0)}},{key:`logContentCardImpressions`,value:function(e){var t;e&&e.length||q(`No "cards" provided in "logContentCardImpressions"`),t=e,(0,oe.p)(t,!0)}},{key:`requestContentCardRefresh`,value:function(e,t){return se(e,t)}},{key:`subscribeToContentCardUpdate`,value:function(e){return e||q(`No "subscriber" provided in "subscribeToContentCardUpdate"`),ve(e)}},{key:`subscribeToInAppMessage`,value:function(e){return e||q(`No "callback" provided in "subscribeToInAppMessage".`),B(e)}},{key:`showInAppMessage`,value:function(e,t,n){return e||q(`Invalid "inAppMessage" provided in "showInAppMessage".`),z(e,t,n)}},{key:`logInAppMessageClick`,value:function(e){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageClick".`),S(e)}},{key:`logInAppMessageButtonClick`,value:function(e,t){return e&&t||q(`Invalid params supplied in "logInAppMessageButtonClick".`),N(e,t)}},{key:`logInAppMessageHtmlClick`,value:function(e,t,n){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageHtmlClick".`),T(e,t,n)}},{key:`logInAppMessageImpression`,value:function(e){return e||q(`Invalid "inAppMessage" provided in "logInAppMessageImpression".`),y(e)}}],a=[{key:`getInstance`,value:function(e){return this._instance||=new this(e)}}],i&&ze(r.prototype,i),a&&ze(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}();function He(e){return He=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},He(e)}function Ue(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,We(r.key),r)}}function We(e){var t=function(e,t){if(He(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(He(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return He(t)==`symbol`?t:t+``}var Ge=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.options=t,this.apiClient=t.apiClient}var t,n;return t=e,(n=[{key:`safelyExecute`,value:function(e){try{return e()}catch(e){e instanceof Error&&J(e.message),typeof e==`string`&&J(e)}}}])&&Ue(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ke(e){return Ke=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ke(e)}function qe(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,Je(r.key),r)}}function Je(e){var t=function(e,t){if(Ke(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ke(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ke(t)==`symbol`?t:t+``}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}function Xe(e){var t=Qe();return function(){var n,r=$e(e);if(t){var i=$e(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){if(t&&(Ke(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function Qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Qe=function(){return!!e})()}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}var et=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)})(i,e);var t,n,r=Xe(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`getAll`,value:function(){return this.apiClient.getContentCardsV2()}},{key:`getContentCards`,value:function(){return this.apiClient.getContentCards()}},{key:`show`,value:function(e,t){return this.apiClient.showContentCards(e,t)}},{key:`hide`,value:function(e){return this.apiClient.hideCards(e)}},{key:`logDismissal`,value:function(e){return this.apiClient.logContentCardDismissal(e)}},{key:`logClick`,value:function(e){return this.apiClient.logContentCardClick(e)}},{key:`logImpressions`,value:function(e){return this.apiClient.logContentCardImpressions(e)}},{key:`requestRefresh`,value:function(e,t){return this.apiClient.requestContentCardRefresh(e,t)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToContentCardUpdate(e)}}])&&qe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge);function tt(e){return tt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tt(e)}function nt(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,rt(r.key),r)}}function rt(e){var t=function(e,t){if(tt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(tt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return tt(t)==`symbol`?t:t+``}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}function at(e){var t=st();return function(){var n,r=ct(e);if(t){var i=ct(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){if(t&&(tt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function st(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(st=function(){return!!e})()}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)})(i,e);var t,n,r=at(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`show`,value:function(e,t,n){return this.apiClient.showInAppMessage(e,t,n)}},{key:`logMessageClick`,value:function(e){return this.apiClient.logInAppMessageClick(e)}},{key:`logButtonClick`,value:function(e,t){return this.apiClient.logInAppMessageButtonClick(e,t)}},{key:`logHtmlMessageClick`,value:function(e,t,n){return this.apiClient.logInAppMessageHtmlClick(e,t,n)}},{key:`logImpression`,value:function(e){return this.apiClient.logInAppMessageImpression(e)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToInAppMessage(e)}}])&&nt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge),wt={all:[`partner`,`product`],product:[`product`],partner:[`partner`],none:[]};(function(e){e.AU=`au`,e.NZ=`nz`,e.UK=`uk`,e.US=`us`})(lt||={}),function(e){e.PageView=`page_view`}(ut||={}),function(e){e.ButtonClick=`marketing_button_click`,e.LinkClick=`marketing_link_click`}(dt||={}),function(e){e.FreeTrialSignup=`marketing_free_trial_signup`,e.DemoSignup=`marketing_demo_signup`,e.PostFreeTrialSubmission=`marketing_post_free_trial_submission`,e.FormSubmission=`marketing_form_submission`,e.ContactFormSubmission=`marketing_contact_us_submission`,e.CallBooked=`marketing_call_booked`,e.NewsletterSignup=`cv_marketing_newsletter_sign_up`,e.MarketingTradeshowSubmission=`marketing_tradeshow_submission`,e.LandingPageFormSubmission=`cv_marketing_lp_form_submission`,e.MarketingReferralFormSubmission=`cv_marketing_mdc_referral`}(ft||={}),function(e){e.ProductTrailRequested=`product_trial_requested`,e.FormSubmission=`product_form_submission`,e.TrialUpgradeRequested=`product_trial_upgrade_requested`,e.OlympicsOfferSubmission=`product_olympics_offer_submission`,e.BdmTrialRequested=`cv_product_bdm_trial_requested`,e.ClickViewPilotRequested=`cv_product_pilot_requested`,e.ClickViewLivePilotRequested=`cl_product_pilot_requested`}(pt||={}),function(e){e.ContactUsFormSubmit=`streamable_contact_us_submission`,e.LivestreamBookingFormSubmit=`streamable_livestream_booking_submission`}(mt||={}),function(e){e.TrialRequested=`sl_marketing_trial_requested`,e.HalloweenFormSubmission=`sl_marketing_halloween_submission`,e.NewsletterSignup=`sl_marketing_newsletter_sign_up`,e.RequestPricing=`sl_marketing_pricing_requested`,e.LandingPageFormSubmission=`sl_marketing_lp_form_submission`,e.ContactUsFormSubmit=`sl_marketing_contact_us_submission`}(ht||={}),function(e){e.ContactUsFormSubmit=`ch_marketing_contact_us_submission`}(gt||={}),function(e){e.ExploreTopics=`product_explore_topics`,e.Stream=`product_stream`,e.Search=`product_search`,e.SearchClickthrough=`product_search_clickthrough`,e.ClickBookACall=`product_book_a_call_clicked`,e.Share=`product_share`,e.DownloadResource=`product_download_resource`,e.Invite=`product_invite_send`,e.PlayerDeviceCta=`product_player_devices_cta`,e.SettingsIntegrations=`product_settings_integrations`}(_t||={}),function(e){e.AddToSubscriptionGroups=`add_to_subscription_groups`}(vt||={}),function(e){e.FirstName=`first_name`,e.LastName=`last_name`,e.Email=`email`,e.Phone=`phone_number`}(yt||={}),function(e){e.CrmId=`cvc_id`,e.JobTitle=`job_title`,e.AccountOwner=`account_owner`,e.Department=`department`,e.AccountName=`account_name`,e.AccountType=`account_type`,e.OrgType=`organisation_type`,e.OrgSubType=`organisation_sub_type`,e.SyncToCrm=`sync_to_crm`,e.MasterId=`master_id`,e.AccountAddress=`account_address`,e.Source=`source`}(bt||={}),function(e){e.AccountCity=`account_city`,e.AccountState=`account_state`,e.AccountPostCode=`account_post_code`,e.AccountCountry=`account_country`,e.HowCanWeHelp=`how_can_we_help`,e.ReasonForInterest=`reason_for_interest`,e.Conversion=`conversion`,e.ContactUsComment=`contact_us_comment`,e.ReferredBy=`referred_by`,e.ReferredBySchool=`referred_by_school`,e.ReferralSubmittedBy=`referral_submitted_by`,e.ReferralType=`referral_type`,e.Variant=`variant`}(xt||={}),function(e){e.Marketing=`marketing_id`,e.Product=`master_id`,e.Email=`email`}(St||={});function Tt(e){return Tt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Tt(e)}function Et(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,Dt(r.key),r)}}function Dt(e){var t=function(e,t){if(Tt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Tt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Tt(t)==`symbol`?t:t+``}function Ot(e,t){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ot(e,t)}function kt(e){var t=jt();return function(){var n,r=Mt(e);if(t){var i=Mt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return At(this,n)}}function At(e,t){if(t&&(Tt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(jt=function(){return!!e})()}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}var Nt=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)})(i,e);var t,n,r=kt(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,n=[{key:`logForm`,value:function(e){this.log(e),function(e){switch(e?.internalOptions?.subscriptionGroups){case`all`:case`product`:case`partner`:return!0;default:return!1}}(e)&&this.logInternal({eventType:vt.AddToSubscriptionGroups,additionalData:{groups:wt[e.internalOptions?.subscriptionGroups]}})}},{key:`logAnalytics`,value:function(e){this.log(e,!1)}},{key:`logInternal`,value:function(e){var t=e.eventType,n=e.additionalData,r={type:t,data:{}};Ie.additionalData(n)&&(r.data=Object.assign({},n)),this.apiClient.logEvent(r),this.apiClient.sendData()}},{key:`log`,value:function(e){var t=e.eventType,n=e.actionType,r=e.additionalData,i=e.callback,a=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=this.options.getPayload();Ie.additionalData(r)&&(o=Object.assign(Object.assign({},o),r));var s={type:t,data:o};n&&(s.actionType=n);var c=this.apiClient.logEvent(s);a?this.apiClient.sendData(i):typeof i!=`function`||i(c)}}],n&&Et(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge),Pt=i(8322),Ft=i.n(Pt);function It(e){return It=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},It(e)}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if(typeof e==`string`)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
60
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zt={removeEmptyKeys:function(e){var t=this;if(Array.isArray(e))return e;var n=Object.assign({},e);return Object.entries(n).filter((function(e){var t=Lt(e,2)[1];return!(t==null||typeof t==`string`&&!t.length||It(t)===`object`&&Object.keys(t).length===0)})).reduce((function(e,n){var r,i,a,o=Lt(n,2),s=o[0],c=o[1];return Object.assign(Object.assign({},e),(r={},i=s,a=c===Object(c)?t.removeEmptyKeys(c):c,(i=function(e){var t=function(e,t){if(It(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(It(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return It(t)==`symbol`?t:t+``}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r))}),{})}};function Bt(e){return Bt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bt(e)}function Vt(e,t,n){return(t=function(e){var t=function(e,t){if(Bt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Bt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Bt(t)==`symbol`?t:t+``}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht={getDefaultUserAttributes:function(e){var t;return zt.removeEmptyKeys((Vt(t={},yt.Email,e.email),Vt(t,yt.FirstName,e?.firstName),Vt(t,yt.LastName,e?.lastName),Vt(t,yt.Phone,e?.phone),t))},getCustomUserAttributesWithoutSource:function(e){var t,n=zt.removeEmptyKeys({province:e?.custom?.accountAddress?.province,country_code:e?.custom?.accountAddress?.countryCode}),r=(Vt(t={},bt.AccountName,e?.custom?.accountName),Vt(t,bt.AccountType,e?.custom?.accountType),Vt(t,bt.CrmId,e?.custom?.crmId),Vt(t,bt.Department,e?.custom?.department),Vt(t,bt.JobTitle,e?.custom?.jobTitle),Vt(t,bt.MasterId,e?.custom?.masterId),Vt(t,bt.OrgSubType,e?.custom?.orgSubType),Vt(t,bt.OrgType,e?.custom?.orgType),Vt(t,bt.SyncToCrm,e?.custom?.syncToCrm),t);return Ie.accountAddress(n)&&(r[bt.AccountAddress]=n),zt.removeEmptyKeys(r)},getCustomUserAttributes:function(e){var t=Ht.getCustomUserAttributesWithoutSource(e);return zt.removeEmptyKeys(Object.assign(Object.assign({},t),Vt({},bt.Source,function(e){if(e.custom?.source&&e.custom.source.length){var t=Object.keys(Ht.getDefaultUserAttributes(e)),n=Object.keys(Ht.getCustomUserAttributesWithoutSource(e));return{$add:[{name:e.custom.source,attributes:[].concat(t,n)}]}}q(`No source provided for braze user.`)}(e))))},getEventUserAttributes:function(e){var t;return zt.removeEmptyKeys((Vt(t={},xt.AccountCity,e?.event?.accountCity),Vt(t,xt.AccountCountry,e?.event?.accountCity),Vt(t,xt.AccountPostCode,e?.event?.accountPostCode),Vt(t,xt.AccountState,e?.event?.accountState),Vt(t,xt.ContactUsComment,e?.event?.contactUsComment),Vt(t,xt.Conversion,e?.event?.conversion),Vt(t,xt.HowCanWeHelp,e?.event?.howCanWeHelp),Vt(t,xt.ReasonForInterest,e?.event?.reasonForInterest),Vt(t,xt.ReferredBy,e?.event?.referredBy),Vt(t,xt.ReferredBySchool,e?.event?.referredBySchool),Vt(t,xt.ReferralSubmittedBy,e?.event?.referralSubmittedBy),Vt(t,xt.ReferralType,e?.event?.referralType),Vt(t,xt.Variant,e?.event?.variant),t))},getExtraUserAttributes:function(e){return Bt(e.extra)===`object`?zt.removeEmptyKeys(e.extra):{}},getPayload:function(e){if(!e)return{};var t=Ht.getDefaultUserAttributes(e),n=Ht.getCustomUserAttributes(e),r=Ht.getEventUserAttributes(e),i=Ht.getExtraUserAttributes(e),a=Ie.additionalData(i),o=Object.assign(Object.assign(Object.assign({},t),n),r);return a?Object.assign(Object.assign({},o),i):o},getEmailHash:function(e){var t=e.trim().toLowerCase();return Ft().hash(t)}};function Ut(e){return Ut=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ut(e)}function Wt(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,Gt(r.key),r)}}function Gt(e){var t=function(e,t){if(Ut(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ut(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ut(t)==`symbol`?t:t+``}var Kt=function(){function e(t){var n=t.apiOptions,r=t.shouldInitialize,i=r===void 0||r,a=t.allowAnonymous,o=a!==void 0&&a,s=t.subscriptions;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.initialized=!1,this.apiOptions=n,this.subscriptions=s,this.allowAnonymous=o,i&&this.initialize()}var t,n;return t=e,(n=[{key:`initialize`,value:function(){var e=this;this.isInitialized()?function(e){var t=[...arguments].slice(1);console.warn(e,t)}(`BrazeClient has already been initialized!`):(this.apiClient=Ve.getInstance(this.apiOptions),this.cardsModule=new et({apiClient:this.apiClient}),this.bamModule=new Ct({apiClient:this.apiClient}),this.eventModule=new Nt({apiClient:this.apiClient,getPayload:function(){return Ht.getPayload(e.user)}}),this.initialized=!0)}},{key:`isInitialized`,value:function(){return this.initialized}},{key:`getUser`,value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(J(`BrazeClient has not been initialized.`),null)}},{key:`card`,get:function(){return this.isInitialized()?this.cardsModule:(J(`BrazeClient has not been initialized.`),null)}},{key:`bam`,get:function(){return this.isInitialized()?this.bamModule:(J(`BrazeClient has not been initialized.`),null)}},{key:`event`,get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(J("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(J(`BrazeClient has not been initialized.`),null)}},{key:`setUser`,value:function(e){this.isInitialized()?(this.user=e,this.startSession(),this.logUserAttributes()):J("Trying to `setUser` but the client has not been initialized")}},{key:`setUserInit`,value:function(e){this.isInitialized()||this.initialize(),this.setUser(e)}},{key:`allowAnonymousSessions`,value:function(){this.allowAnonymous=!0}},{key:`api`,value:function(){return this.isInitialized()?this.apiClient:null}},{key:`setEmailNotificationSubscriptionType`,value:function(e){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(e):null}},{key:`validateUser`,value:function(){return!!this.user||(J(`No user has been set!`),!1)}},{key:`startSession`,value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user&&this.apiClient.setUser(Ht.getEmailHash(this.user.email)),this.apiClient.openSession()):J(`No user provided and cannot start anonymous sessions!`)}},{key:`enableSubscriptions`,value:function(){var e,t;(e=this.subscriptions)!=null&&e.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage==`function`&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),(t=this.subscriptions)!=null&&t.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards==`function`&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:`logUserAttributes`,value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var e=Ht.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(e)}}}])&&Wt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qt(e){return Ve.getInstance(e)}})(),a})()))}))();function DD(e){(0,Z.useEffect)(()=>{let t=OD(e?.additionalData);t?.attributionData&&rf.setAttributionData(t.attributionData),t?.utms&&gf.setUtmParameters(t.utms)},[])}function OD(e){if(!e?.attribution?.length)return null;try{let{r:t,utms:n}=JSON.parse(e.attribution);return{attributionData:rf.decodeRValue(t),utms:n}}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}var kD=function(e){return e.Lite=`lite`,e.Auth=`auth`,e}({});function AD(e){return{productName:kD.Auth,prospectStatus:t=>`${e}/v1/prospects/${t}/trial-status`,createTrial:`/ajax/trials/new`,searchProspect:`${e}/v1/search/prospects`,createProspect:`/ajax/trials/prospects`,prospectLookups:t=>`${e}/v1/prospects/${t}/lookups`,joinRequest:`/ajax/trials/join-request`}}var jD=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;function MD(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function ND(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=jD.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return MD(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:return function(e,t,r){return MD(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function PD(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?jD.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function FD(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var ID=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=FD(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=PD(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=ND(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=FD(t);return PD(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function LD(e,t){return e<<t|e>>>32-t}function RD(e,t,n){return e^t^n}function zD(e,t,n){return e&t^e&n^t&n}function BD(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function VD(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function HD(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function UD(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:LD(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?VD(LD(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?VD(LD(n,5),RD(r,i,a),o,1859775393,l[c]):c<60?VD(LD(n,5),zD(r,i,a),o,2400959708,l[c]):VD(LD(n,5),RD(r,i,a),o,3395469782,l[c]),o=a,a=i,i=LD(r,30),r=n,n=s;var u;return t[0]=BD(n,t[0]),t[1]=BD(r,t[1]),t[2]=BD(i,t[2]),t[3]=BD(a,t[3]),t[4]=BD(o,t[4]),t}function WD(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=UD(e.slice(i,i+16),r);return r}var GD=class extends ID{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=ND(this.t,this.i,this.H),this.g=UD,this.I=function(e){return e.slice()},this.L=HD,this.Y=WD,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return ND(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},KD=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),qD={CvApSoutheast1:{systemName:KD.CvApSoutheast1},CvApSoutheast2:{systemName:KD.CvApSoutheast2},CvEuWest1:{systemName:KD.CvEuWest1},CvNaWest1:{systemName:KD.CvNaWest1}},JD=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),YD=3,XD=5e3,ZD=6,QD={},$D=class{constructor(e){this.key=e.toString()}getCount(){return QD[this.key]||0}increment(){QD[this.key]=this.getCount()+1}reset(){delete QD[this.key]}shouldBreak(){return this.getCount()>=ZD}},eO=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,XD*2**this.attempt)),this.attempt++}};async function tO(e,t){let n=new eO,r=new $D(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=YD;e++)try{return await i()}catch(t){if(e>=YD||r.shouldBreak())throw t;r.increment(),await n.wait()}}var nO=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function rO(e){return typeof e==`string`&&nO.test(e)}var iO=[];for(let e=0;e<256;++e)iO.push((e+256).toString(16).slice(1));function aO(e,t=0){return(iO[e[t+0]]+iO[e[t+1]]+iO[e[t+2]]+iO[e[t+3]]+`-`+iO[e[t+4]]+iO[e[t+5]]+`-`+iO[e[t+6]]+iO[e[t+7]]+`-`+iO[e[t+8]]+iO[e[t+9]]+`-`+iO[e[t+10]]+iO[e[t+11]]+iO[e[t+12]]+iO[e[t+13]]+iO[e[t+14]]+iO[e[t+15]]).toLowerCase()}var oO,sO=new Uint8Array(16);function cO(){if(!oO){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);oO=crypto.getRandomValues.bind(crypto)}return oO(sO)}var lO={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uO(e,t,n){if(lO.randomUUID&&!t&&!e)return lO.randomUUID();e||={};let r=e.random??e.rng?.()??cO();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return aO(r)}function dO(e){if(!rO(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}var fO=`cv:session:`,pO=`cv:window:v2:`,mO=1e3*60*30,hO=4;function gO(e){if(e===Hd.LocalStorage)return qd.isAvailable()?qd:Yd;if(e===Hd.SessionStorage)return Jd.isAvailable()?Jd:Yd}function _O(e){return new Date().getTime()+e}function vO(){return uO()}function yO(e,t){return e+(t||`0`)}function bO(e){return new Date().getTime()>e}function xO(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!rO(e.id)||dO(e.id)!==hO||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function SO(e,t,n){let r=gO(n),i=yO(e,t),a=r.get(i);return!xO(a)||bO(a?.ttl)?null:a}function CO(e,t,n,r){let i=gO(n),a=yO(e,t),o={id:vO(),ttl:_O(r)};return i.set(a,o),o}function wO(e,t,n,r,i){let a=gO(n),o=yO(e,t);a.set(o,{id:r.id,ttl:_O(i)})}function TO(e,t,n){let r=gO(n);if(!r?.isAvailable())return;let i=yO(e,t);r.remove(i)}var EO=null,DO={getClientSessionData(e){let t=SO(fO,e,Hd.LocalStorage);t?wO(fO,e,Hd.LocalStorage,t,mO):t=CO(fO,e,Hd.LocalStorage,mO);let n=SO(pO,e,Hd.SessionStorage);return n?EO===null&&wO(pO,e,Hd.SessionStorage,n,mO):n=CO(pO,e,Hd.SessionStorage,EO??mO),{id:t.id,windowId:n.id}},resetClientSession(e){TO(fO,e,Hd.LocalStorage),TO(pO,e,Hd.SessionStorage)},lockWindowSession(e,t){EO=t;let n=SO(pO,e,Hd.SessionStorage);n&&wO(pO,e,Hd.SessionStorage,n,t)},unlockWindowSession(e){EO=null;let t=SO(pO,e,Hd.SessionStorage);t&&wO(pO,e,Hd.SessionStorage,t,mO)}},OO={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},kO={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},AO={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},jO=`Unknown`;function MO(e,t,n){let[r]=t.exec(n)||[];return r||=jO,{name:e,version:r}}function NO(e,t,n){if(!t)return{name:e,version:jO};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():jO}}function PO(e,t){let n={name:e,version:null};return AO.win2000.test(t)&&(n.version=`2000`),AO.winXP.test(t)&&(n.version=`XP`),AO.winVista.test(t)&&(n.version=`Vista`),AO.win7.test(t)&&(n.version=`7`),AO.win8.test(t)&&(n.version=`8`),AO.win81.test(t)&&(n.version=`8.1`),AO.win10.test(t)&&(n.version=`10`),n.version||=jO,n}var FO={getDeviceType(){let e=window.navigator.userAgent;return AO.mobileDevice.test(e)?AO.iphone.test(e)?`iPhone`:AO.ipad.test(e)?`iPad`:AO.android.test(e)?`Android`:AO.blackberry.test(e)?`Blackberry`:AO.windowsPhone.test(e)?`Windows Phone`:jO:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return AO.android.test(e)?NO(`Android`,AO.androidVersion,e):AO.iphone.test(e)||AO.ipad.test(e)?NO(`iOS`,AO.iosVersion,e):AO.linux.test(e)?NO(`Linux`,null,e):AO.unix.test(e)?NO(`Unix`,null,e):AO.mac.test(e)?NO(`Macintosh`,AO.osxVersion,e):AO.windows.test(e)?PO(`Windows`,e):AO.blackberry.test(e)?NO(`BlackBerry`,AO.blackberryVersion,e):AO.windowsPhone.test(e)?NO(`Windows Phone`,AO.windowsPhoneVersion,e):{name:jO,version:jO}},getBrowser(){let e=window.navigator.userAgent;return AO.chrome.test(e)?MO(`Chrome`,AO.generalVersion,e):AO.firefox.test(e)?MO(`Firefox`,AO.generalVersion,e):AO.safari.test(e)?MO(`Safari`,AO.generalVersion,e):AO.ie.test(e)?MO(`Internet Explorer`,AO.ieVersion,e):AO.edge.test(e)?MO(`Edge`,AO.edgeVersion,e):AO.opera.test(e)?MO(`Opera`,AO.operaVersion,e):{name:jO,version:jO}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},IO={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`11.1.1`}},LO=`zXJL9nOHxzDlMUDjiP41`,RO=`unknown`,zO=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=gf.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=rf.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!OO.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return!OO.isFunction(this.options.shouldLog)||this.options.shouldLog(e)}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=kO.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=kO.safeUrlConcat(i,`/bulk`));try{let e=await tO(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new GD(`SHA-1`,`TEXT`,{hmacKey:{value:LO,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case KD.CvEuWest1:return e.cvEuWest1;case KD.CvApSoutheast2:return e.cvApSoutheast2;case KD.CvNaWest1:return e.cvNaWest1;case KD.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),OO.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return OO.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||RO,userGroup:(t.userGroup??JD.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...DO.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),DO.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:FO.getBrowser(),os:FO.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:IO.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(qD).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):RO}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},BO=function(e){return e.Stream=`cv_product_stream`,e.WebPlayerStream=`cv_product_webplayer_stream`,e.StreamProgress=`cv_product_stream_progress`,e.PreviewStreamProgress=`cv_product_preview_stream_progress`,e.StreamBuffering=`cv_product_stream_buffering`,e.Login=`cv_product_login`,e.LoginSsoRedirect=`cv_product_login_sso_redirect`,e.LoginFailed=`cv_product_login_failed`,e.Search=`cv_product_search`,e.InstantSearch=`cv_product_instant_search`,e.SearchEmptyResult=`cv_product_search_empty_result`,e.Filter=`cv_product_search_filter`,e.SearchLanding=`cv_product_search_landing`,e.Share=`cv_product_share`,e.Unshare=`cv_product_unshare`,e.WorkspaceAdd=`cv_product_tv_add`,e.Rename=`cv_product_rename`,e.Move=`cv_product_move`,e.Sort=`cv_product_sort`,e.Create=`cv_product_create`,e.Delete=`cv_product_delete`,e.Associate=`cv_product_associate`,e.Dissociate=`cv_product_dissociate`,e.Edit=`cv_product_edit`,e.Approve=`cv_product_approve`,e.Reject=`cv_product_reject`,e.Disable=`cv_product_disable`,e.Upload=`cv_product_upload`,e.Download=`cv_product_download`,e.Navigate=`cv_product_navigate`,e.Click=`cv_product_click`,e.Suggest=`cv_product_suggest`,e.EditAssoc=`cv_product_edit_assoc`,e.Play=`cv_product_play`,e.Favourite=`cv_product_favourite`,e.Follow=`cv_product_follow`,e.Prefer=`cv_product_prefer`,e.Print=`cv_product_print`,e.Copy=`cv_product_copy`,e.Activate=`cv_product_activate`,e.VerifyEmail=`cv_product_verify_email`,e.ChangePassword=`cv_product_change_password`,e.ManageGroup=`cv_product_manage_group`,e.Export=`cv_product_export`,e.SendEmail=`cv_product_send_email`,e.Publish=`cv_product_publish`,e.Submit=`cv_product_submit`,e.Complete=`cv_product_complete`,e.Archive=`cv_product_archive`,e.Promote=`cv_product_promote`,e.Demote=`cv_product_demote`,e.BulkAction=`cv_product_bulk_action`,e.Remove=`cv_product_remove`,e.Dismiss=`cv_product_dismiss`,e.Open=`cv_product_open`,e.Hide=`cv_product_hide`,e.PageView=`cv_product_page_view`,e.Select=`cv_product_select`,e.SwitchCustomer=`cv_product_switch_customer`,e.Focus=`cv_product_focus`,e.Blur=`cv_product_blur`,e.Hover=`cv_product_hover`,e.Unhover=`cv_product_unhover`,e.SetAccess=`cv_product_set_access`,e.AddToLocalCache=`cv_product_add_to_lc`,e.ResolveWarning=`cv_product_resolve_warning`,e.DismissWarning=`cv_product_dismiss_warning`,e}({}),VO=function(e){return e.Folder=`folder`,e.Video=`video`,e.Rating=`rating`,e.Series=`series`,e.Library=`library`,e.Resource=`resource`,e.Tag=`tag`,e.Subtitle=`subtitle`,e.Chapter=`chapter`,e.Resolution=`resolution`,e.PlaybackSpeed=`playback_speed`,e.Device=`device`,e.Restriction=`restriction`,e.Interactive=`interactive`,e.Interaction=`interaction`,e.PDF=`pdf`,e.CustomerSetting=`customer_setting`,e.UserSetting=`user_setting`,e.LibraryRequest=`staff_request`,e.Logo=`logo`,e.Pagination=`pagination`,e.Thumbnail=`thumbnail`,e.Banner=`banner`,e.Link=`link`,e.Playlist=`playlist`,e.Playlists=`playlists`,e.Person=`person`,e.Company=`company`,e.Classroom=`classroom`,e.ClassroomGroup=`classroom_group`,e.Classification=`classification`,e.ShareLink=`share_link`,e.DirectShare=`direct_share`,e.Upload=`upload`,e.SearchResults=`search_results`,e.SearchSuggestion=`search_suggestion`,e.Audience=`audience`,e.User=`user`,e.Clip=`clip`,e.UserChannel=`user_channel`,e.Widget=`widget`,e.Url=`url`,e.SocialShare=`social_share`,e.Presentation=`presentation`,e.BatchJob=`batch_job`,e.DeepLink=`deep_link`,e.Feedback=`feedback`,e.AppLink=`app_link`,e.SignUp=`sign_up`,e.FileGeneratorJob=`file_generator_job`,e.ExportLibraries=`export_libraries`,e.Product=`product`,e.Customer=`customer`,e.SpecialEvent=`special_event`,e.Region=`region`,e.ProductTip=`product_tip`,e.Livestream=`livestream`,e.DevicesCta=`devices_cta`,e.Integration=`integration`,e.Faq=`faq`,e.MixedMedia=`mixed_media`,e.TableOfContents=`table_of_contents`,e.Author=`author`,e.Glance=`glance`,e.Filter=`filter`,e.NotificationSetting=`notification_setting`,e.Transcript=`transcript`,e.CurriculumCode=`curriculum_code`,e.Assign=`assign`,e.PartnerProfile=`partner_profile`,e.Upsell=`upsell`,e}({}),HO=function(e){return e.TopNav=`top_nav`,e.LeftNav=`left_nav`,e.Footer=`footer`,e.Popup=`popup`,e.Banner=`banner`,e.VideoList=`video_list`,e.VideoListItem=`video_list_item`,e.VideoListHeader=`video_header`,e.VideoThumbnail=`video_thumbnail`,e.ExpandableVideoThumbnail=`expandable_video_thumbnail`,e.VideoItemPreview=`video_item_preview`,e.InteractiveItemPreview=`interactive_item_preview`,e.ClipItemPreview=`clip_item_preview`,e.VideoDetails=`video_details`,e.InteractiveDetails=`interactive_details`,e.ClipDetails=`clip_details`,e.VideoDetailsHeader=`video_details_header`,e.EditVideoDetails=`edit_video_details`,e.EditInteractiveVideoDetails=`edit_interactive_video_details`,e.EditClipDetails=`edit_clip_details`,e.EditVideoChapters=`edit_video_chapters`,e.EditVideoResources=`edit_video_resources`,e.PreviewVideoResources=`preview_video_resources`,e.VideoUpload=`video_upload`,e.VideoRequest=`video_request`,e.Pagination=`pagination`,e.LibraryHeader=`library_header`,e.LibraryTiles=`library_tiles`,e.LibraryRequestDetails=`staff_request_details`,e.Libraries=`libraries`,e.SubFolderList=`sub_folder_list`,e.AwaitingReviewVideoListHeader=`awaiting_review_video_list_header`,e.AwaitingReviewVideoItem=`awaiting_review_video_item`,e.PastReleasesHeader=`past_releases_header`,e.MigrationWarnings=`migration_warnings`,e.PlaylistListHeader=`playlist_list_header`,e.PlaylistListItem=`playlist_list_item`,e.SeriesListItem=`series_list_item`,e.SeriesWithVideos=`series_with_videos`,e.PlaylistWithVideos=`playlist_with_videos`,e.Dropdown=`dropdown`,e.ViewCurriculumLinks=`view_curriculum_links`,e.SearchBar=`search_bar`,e.InstantSearch=`instant_search`,e.SearchFilters=`search_filters`,e.FeaturedSeriesSearchResult=`featured_series_search_result`,e.ExchangeSearchGroupItem=`exchange_search_group_item`,e.StaffManager=`staff_manager`,e.StaffManagerListItem=`staff_manager_list_item`,e.StudentManager=`student_manager`,e.ViewStudentVideos=`view_student_videos`,e.StudentManagerListItem=`student_manager_list_item`,e.EditUser=`edit_user`,e.UserAuditLog=`user_audit_log`,e.BulkUserActionsWizard=`bulk_user_actions_wizard`,e.BulkUserUploadWizard=`bulk_user_upload_wizard`,e.Classroom=`classroom`,e.ClassroomsList=`classrooms_list`,e.ClassroomsListItem=`classrooms_list_item`,e.ManageClassroomStudents=`manage_classroom_students`,e.ManageClassroomStudentListItem=`manage_classroom_student_list_item`,e.ManageClassroomGroups=`manage_classroom_groups`,e.ManageClassroomGroupListItem=`manage_classroom_group_list_item`,e.ManageClassroomTeachers=`manage_classroom_teachers`,e.ManageClassroomTeacherListItem=`manage_classroom_teachers_list_item`,e.ArchivedClassrooms=`archived_classrooms`,e.PreviewInteractive=`preview_interactive`,e.PreviewSharedInteractive=`preview_shared_interactive`,e.PreviewInteractiveQuestions=`preview_interactive_questions`,e.EditInteractive=`edit_interactive`,e.EditInteractiveDetails=`edit_interactive_details`,e.PlaySharedInteractive=`play_shared_interactive`,e.PlayInteractive=`play_interactive`,e.InteractiveListItem=`interactive_list_item`,e.DeleteInteractive=`delete_interactive`,e.NewInteractive=`new_interactive`,e.CopyInteractive=`copy_interactive`,e.UnpublishInteractive=`unpublish_interactive`,e.ShareInteractive=`share_interactive`,e.PlayPage=`play_page`,e.Player=`player`,e.FloatingPlayer=`floating_player`,e.InteractivePlayer=`interactive_player`,e.EmbeddedPlayer=`embedded_player`,e.CreateClipPlayer=`create_clip_player`,e.PlayClip=`play_clip`,e.PlaySharedClip=`play_shared_clip`,e.ClipListItem=`clip_list_item`,e.ContentUpdatesBanner=`content_updates_banner`,e.ContentUpdatesClassificationBanner=`content_updates_classification_banner`,e.PreferencesSettings=`preferences_settings`,e.NotificationSettings=`notification_settings`,e.TopicsOnboarding=`topics_onboarding`,e.MyUploads=`my_uploads`,e.MyVideos=`my_videos`,e.Playlists=`playlists`,e.SlidingList=`sliding_list`,e.HeroBannerItem=`hero_banner_item`,e.SlidingListItem=`sliding_list_item`,e.ClassificationListItem=`classification_list_item`,e.ClassificationComingSoon=`classification_coming_soon`,e.ClassificationHero=`classification_hero`,e.ClassificationFooter=`classification_footer`,e.Classification=`classification`,e.PresentationClassifications=`presentation_classifications`,e.Dashboard=`dashboard`,e.TeachingLevelBanner=`teaching_level_banner`,e.UpsellBanner=`upsell_banner`,e.FreemiumBanner=`freemium_banner`,e.DiscoverFooter=`discover_footer`,e.ProductBanner=`product_banner`,e.UserOptions=`user_options`,e.MagicTabs=`magic_tabs`,e.Settings=`settings`,e.StudentFeed=`student_feed`,e.MyShares=`my_shares`,e.SharedByMe=`shared_by_me`,e.SharedWithMe=`shared_with_me`,e.Insights=`insights`,e.Error=`error_view`,e.UpgradeForm=`upgrade_form`,e.ClassroomGuide=`classroom_guide`,e.TeachingResources=`teaching_resources`,e.ResourcesGuidancePopup=`resources_guidance_popup`,e.InteractivesGuidancePopup=`interactives_guidance_popup`,e.CurriculumGuidancePopup=`curriculum_guidance_popup`,e.TopVideos=`top_videos`,e.VideoViewsList=`video_views_list`,e.VideoOverview=`video_overview`,e.StudentReachPopup=`student_reach_popup`,e.VideoHighlight=`video_highlight`,e.ClassroomViewsPopup=`classroom_views_popup`,e.GiveFeedbackPopup=`give_feedback_popup`,e.LibraryRequestSettings=`library_request_settings`,e.LibraryRequestAutoApprovalSettings=`auto_approval_settings`,e.OpenInAppPrompt=`open_in_app_prompt`,e.UseAppButton=`use_app_button`,e.Launchpad=`launchpad`,e.EditableSubjectPreferencesWidget=`editable_subject_preferences_widget`,e.ThumbnailHeroMediaWidget=`thumbnail_hero_media_widget`,e.ThumbnailFixedListMediaLargeWidget=`thumbnail_fixed_list_media_large`,e.FilterSlidingPillListSmallWidget=`filter_sliding_pill_list_small`,e.CircleLogoSlidingListWidget=`circle_logo_sliding_list_widget`,e.RectangularLogoSlidingListWidget=`rectangular_logo_sliding_list_widget`,e.HeroBannerSmallWidget=`hero_banner_small`,e.EventIconSlidingListWidget=`event_icon_sliding_list_widget`,e.FaqQuestionWidget=`faq_question_widget`,e.FaqQuestionAccordionWidget=`faq_question_accordion_widget`,e.SubjectStatsWidgetItem=`subject_stats_widget_item`,e.AuthorReviewerWidget=`author_reviewer_widget`,e.ThumbnailFixedListMediaSmallWidget=`thumbnail_fixed_list_media_small_widget`,e.ThumbnailFixedListFolderSmallWidget=`thumbnail_fixed_list_folder_small_widget`,e.ThumbnailVerticalListWidget=`thumbnail_vertical_list_widget`,e.ThumbnailFixedListSmallWidget=`thumbnail_fixed_list_small_widget`,e.PosterFixedListLargeWidget=`poster_fixed_list_large_widget`,e.CurriculumResourcesAccordionWidget=`curriculum_resources_accordion_widget`,e.SearchCurriculumCodeWidget=`search_curriculum_code_widget`,e.ExchangeLinksWidget=`exchange_links_widget`,e.TableOfContents=`table_of_contents`,e.SignUpPopup=`sign_up_popup`,e.SignUpPage=`sign_up_page`,e.TrialBanner=`trial_banner`,e.InviteColleaguePopup=`invite_colleague_popup`,e.AuthProspectSelect=`auth_prospect_select`,e.GatedBanner=`gated_banner`,e.GatedEmptyState=`gated_empty_state`,e.GatedPopup=`gated_popup`,e.WelcomePopup=`welcome_popup`,e.WatchHistoryLanding=`watch_history_landing`,e.MyFavouritesLanding=`my_favourites_landing`,e.MyVideoLanding=`my_videos_landing`,e.PlaylistsLanding=`playlists_landing`,e.MySharesLanding=`myshares_landing`,e.PremiumFeatures=`premium_features`,e.NotificationsDropdown=`notifications_dropdown`,e.CalendarNav=`calendar_nav`,e.CalendarDay=`calendar_day`,e.CalendarPopup=`calendar_popup`,e.RegionMap=`region_map`,e.OnboardingSelectRoleScreen=`onboarding_select_role_screen`,e.OnboardingSchoolLevelScreen=`onboarding_school_level_screen`,e.OnboardingAudiencePreferencesScreen=`onboarding_audience_preferences_screen`,e.OnboardingSelectCurriculumScreen=`onboarding_select_curriculum_screen`,e.OnboardingSubjectsScreen=`onboarding_subjects_screen`,e.ProductTips=`product_tips`,e.LivestreamBookingForm=`booking_form`,e.DateRangeFilter=`date_range_selector`,e.AudienceFilter=`audience_filter`,e.AssignFlowView=`assign_flow_view`,e.ContentPartnerDashboard=`content_partner_dashboard`,e.ContentPartnerDashboardVideoBanner=`content_partner_dashboard_video_banner`,e.UpsellRequestForm=`upsell_request_form`,e.UpsellProductInfo=`upsell_product_info`,e.Global=`global`,e}({}),UO=function(e){return e.Start=`start`,e.Complete=`complete`,e.Save=`save`,e.Discard=`discard`,e.Next=`next`,e.Back=`back`,e}({}),WO=function(e){return e.SignIn=`sign_in`,e.SignUp=`sign_up`,e.SignOut=`sign_out`,e.SwitchAccount=`switch_account`,e.TopNavButton=`top_nav_button`,e.Educator=`educator`,e.Student=`student`,e.TermsAndConditions=`terms_and_conditions`,e.PrivacyPolicy=`privacy_policy`,e.EnterEmail=`enter_email`,e.ClosePopup=`close_popup`,e.Back=`back`,e.UseMyLocation=`use_my_location`,e.TrialCreated=`trial_created`,e.TrialRequested=`trial_requested`,e.DeadEnd=`dead_end`,e.CantFindSchool=`cant_find_school`,e.ResendEmail=`resend_email`,e.ContactUs=`contact_us`,e.InviteColleague=`invite_colleague`,e.PremiumFeatures=`premium_features`,e.Upgrade=`upgrade`,e.FindSchool=`find_school`,e.AddToBraze=`add_to_braze`,e.RequestAccess=`request_access`,e.AutoJoin=`auto_join`,e.WrongEmail=`wrong_email`,e.RequestBdmTrial=`request_bdm_trial`,e.SkipIdpSelect=`skip_idp_select`,e}({}),GO=function(e){return e[e.V1=1]=`V1`,e[e.V2=2]=`V2`,e[e.V3=3]=`V3`,e[e.V4=4]=`V4`,e[e.V5=5]=`V5`,e}({}),KO={first(e){return zg(e)},firstFew(e,t){return zg(e,t)},last(e){return Vg(e)},lastFew(e,t){return Vg(e,t)},max(e,t){return Sg(e,t)},cloneAndReplaceAtIdx(e,t,n,r=null){let i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[...i,...Array(t+1-i.length).fill(r)]),i.splice(t,1,n),i},moveItem(e,t,n){let r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty(e){return e&&!e.length},findIndex(e,t){return tg(e,t)},findWhere(e,t){return cg(e,t)},where(e,t){return xg(e,t)},groupBy(e,t){return Ag(e,t)},countBy(e,t){return Mg(e,t)},flatten(e,t){return Ug(e,t)},flatMap(e,t){return Ug(e.map(t),!0)},intersection(...e){return Jg(...e)},addOrRemove(e,t){let n=e.indexOf(t);return n===-1?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){let n=e.indexOf(t),r=gE.deepClone(e);return n===-1?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy(e,t){return Og(e,t)},chunk(e,t){return $g(e,t)},uniq(e,t){return Kg(e,t)},toObject(e,t){return e.reduce((e,n)=>Object.assign(e,gE.isObject(n)?{[n[t]]:n}:{[t]:n}),{})},findIndexById(e,t){return e.findIndex(e=>e.id===t.id)},removeItem(e,t){let n=this.findIndex(e,t);return n===-1?e:this.removeItemFromIndex(e,n)},removeItemFromIndex(e,t){return[...e.slice(0,t),...e.slice(t+1)]},findMatchedIdIndex(e,t){return e.findIndex(e=>e.id?.toString()===t.toString())},shuffle(e){return Dg(e)},findLast(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]},findLastIndex(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}},qO=`OTHER`;function JO(e,t){return t.includes(e)?e:e?qO:``}function YO(e){let{error:t,onChange:n,countryCode:r,isTertiary:i}=e,a=ZC({countryCode:r,isTertiary:i}),o=JO(e.initialValue,a),[s,c]=Z.useState(o),[l,u]=Z.useState(o===qO?e.initialValue:``);Z.useEffect(()=>{c(JO(e.initialValue,a))},[e.initialValue]);function d(e){c(e.target.value),u(``),n(e.target.value===qO?``:e.target.value)}function f(e){u(e.target.value),n(e.target.value)}let p=s===qO;return(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsxs)(`label`,{htmlFor:e.id,className:e.labelClassName,children:[`Job title`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsxs)(`div`,{className:`mb-2`,children:[(0,Q.jsxs)(`select`,{id:e.id,name:e.id,className:`form-select ${e.size===`lg`?`form-select-lg`:``} ${s.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:s,placeholder:`Role`,onChange:d,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:e.placeholder?e.placeholder:(0,Q.jsx)(Q.Fragment,{children:`What do you do?`})}),a.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:qO,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(Cf,{name:e.id,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control ${e.size===`lg`?`form-select-lg`:``} ${!!t&&`is-invalid`}`,type:`text`,value:l,placeholder:`What do you do?`,autoFocus:!0,onChange:f}),!!t&&(0,Q.jsx)(Cf,{name:e.id,children:t})]})]})}var XO=function(e){return e.AU=`cv-ap-southeast-1`,e.NZ=`cv-ap-southeast-2`,e.UK=`cv-eu-west-1`,e.US=`cv-na-west-1`,e}({}),ZO=[`uk`,`gb`,`gg`,`im`,`je`,`ie`],QO={au:$.AU,nz:$.NZ,us:$.US,uk:$.UK,ca:$.CA,gb:$.UK,gg:$.UK,im:$.UK,je:$.UK,ie:$.UK,al:$.UK,ad:$.UK,am:$.UK,at:$.UK,az:$.UK,by:$.UK,be:$.UK,ba:$.UK,bg:$.UK,hr:$.UK,cy:$.UK,cz:$.UK,dk:$.UK,ee:$.UK,fi:$.UK,fr:$.UK,de:$.UK,ge:$.UK,gr:$.UK,hu:$.UK,is:$.UK,it:$.UK,lv:$.UK,li:$.UK,lt:$.UK,lu:$.UK,mt:$.UK,md:$.UK,mc:$.UK,me:$.UK,nl:$.UK,mk:$.UK,no:$.UK,pl:$.UK,pt:$.UK,ro:$.UK,ru:$.UK,sm:$.UK,rs:$.UK,sk:$.UK,si:$.UK,es:$.UK,se:$.UK,ch:$.UK,tr:$.UK,ua:$.UK,va:$.UK},$O={au:KD.CvApSoutheast1,uk:KD.CvEuWest1,us:KD.CvNaWest1,nz:KD.CvApSoutheast2,ca:KD.CvNaWest1},ek={au:XO.AU,uk:XO.UK,us:XO.US,nz:XO.NZ,ca:XO.US},tk={getRegionName(e){return $O[tk.getCountryCode(e)]},getInstanceRegion(e){return ek[tk.getCountryCode(e)]},getCountryCode(e){return QO[e?.toLowerCase()]||$.US},isCountryCodeUK(e){return ZO.includes(e.toLowerCase())},isCountryCodeAU(e){return e?.toLowerCase()===$.AU},isCountryCodeUS(e){return e?.toLowerCase()===$.US},isCountryCodeNZ(e){return e?.toLowerCase()===$.NZ},isSupportedCountryCode(e){return Object.keys(QO).includes(e?.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(tk.isCountryCodeUK(e))return`E.g. CR0 3RL or 36 Factory Lane`;if(tk.isCountryCodeAU(e)||tk.isCountryCodeNZ(e))return`E.g. 2212 or Revesby`;if(tk.isCountryCodeUS(e))return`E.g. 95826 or Sacramento`}},getLocalizedLocalityPlaceholderText(e){if(!e)return;let t=tk.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}};function nk(e){if(!e)return{firstName:``,surname:``};let[t,...n]=e.split(` `).filter(e=>e.length);return{firstName:t,surname:n?.join(` `)}}function rk(e){let{showSpinner:t,children:n,style:r,spinnerText:i,...a}=e,o=Z.useRef(null),[{width:s,height:c},l]=Z.useState({}),[u,d]=Z.useState(t);Z.useEffect(()=>{if(!t){l({});return}let e=o.current,n=e.offsetHeight,r=e.offsetWidth;!n||!r||l({width:r,height:n})},[t]),Z.useLayoutEffect(()=>{d(t)},[t]);let f={...r};return s&&(f.width=`${s+1}px`),c&&(f.height=`${c+1}px`),(0,Q.jsx)(Ev,{ref:o,disabled:t,style:f,...a,children:u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Ox,{as:`span`,animation:`border`,role:`status`,size:`sm`}),!!i&&(0,Q.jsx)(`span`,{className:`ps-1`,children:i})]}):n})}var ik=/\$+[\w\s]?/,ak=/^\+?\d{4,255}$/,ok=255;function sk(e){let[t,n]=Z.useState({fullname:``,jobTitle:``,phone:``});function r(n){n?.preventDefault(),d(t)&&e.handleSubmitForm(t)}function i(e){e.preventDefault(),l(`fullname`,e.target.value),u(`fullname`),u(`submission`)}function a(e){e.preventDefault(),l(`phone`,e.target.value.trim()),u(`phone`),u(`submission`)}function o(e){l(`jobTitle`,e),u(`jobTitle`),u(`submission`)}function s(){l(`fullname`,``),u(`fullname`),u(`submission`)}function c(){l(`phone`,``),u(`phone`),u(`submission`)}function l(e,t){n(n=>({...n,[e]:t}))}function u(t){if(!Object.keys(e.errors).length||!e.errors[t])return;let n={...e.errors};delete n[t],e.setErrors(n)}function d(t){let{fullname:n,jobTitle:r,phone:i}=t,{firstName:a,surname:o}=nk(n),s={};return(!a||!o)&&(s.fullname=`Please enter your full name.`),(ik.test(a)||ik.test(o))&&(s.fullname=`Please enter your full name.`),n.length>ok&&(s.fullname=`Full name cannot exceed max length of ${ok} characters.`),r?.length||(s.jobTitle=`Please enter your job title.`),ik.test(r)&&(s.jobTitle=`Please enter a valid job title.`),r.length>ok&&(s.jobTitle=`Job title cannot exceed max length of ${ok} characters.`),i?.length||(s.phone=`Please enter your phone number.`),(ik.test(i)||!ak.test(i))&&(s.phone=`Please enter a valid phone number.`),e.setErrors(s),!Object.keys(s).length}function f(){let{fullname:n,jobTitle:r,phone:i}=t;return!(!n.length||!r.length||!i.length||Object.keys(e.errors).length)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`A little more about you`}),(0,Q.jsx)(`p`,{children:`Please enter your details.`}),(0,Q.jsxs)(`form`,{onSubmit:r,"aria-errormessage":`brazeFormError`,children:[(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`fullname-input`,children:`Full name`}),(0,Q.jsx)(Ff,{value:t.fullname,onChange:i,name:`fullname-input`,id:`fullname-input`,type:`text`,className:`form-control form-control-lg ${e.errors.fullname?.length?`is-invalid`:``}`,placeholder:`Enter your name`,onClickClear:s,autoFocus:!0,"aria-errormessage":`fullname-inputError`}),e.errors.fullname&&(0,Q.jsx)(Cf,{name:`fullname-input`,children:e.errors.fullname})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`phone-input`,children:`Contact number`}),(0,Q.jsx)(Ff,{value:t.phone,onChange:a,name:`phone-input`,id:`phone-input`,type:`tel`,className:`form-control form-control-lg ${e.errors.phone?.length?`is-invalid`:``}`,placeholder:`Enter your phone number`,onClickClear:c,"aria-errormessage":`phone-inputError`}),e.errors.phone&&(0,Q.jsx)(Cf,{name:`phone-input`,children:e.errors.phone})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`jobTitle-select`,children:`Job title`}),(0,Q.jsx)(YO,{id:`jobTitle-select`,countryCode:tk.getCountryCode(e.country),onChange:o,error:e.errors?.jobTitle,size:`lg`,labelClassName:`d-none`,isTertiary:e.isTertiary})]}),!!e.errors?.submission&&(0,Q.jsx)(Cf,{name:`brazeForm`,className:`form-group`,children:e.errors.submission}),(0,Q.jsx)(`div`,{className:`form-group mb-1`,children:(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:()=>r(),showSpinner:e.loading,disabled:e.loading||!f(),children:`Submit`})})]})]})}var ck=function(e){return e.Unavailable=`unavailable`,e.Expired=`expired`,e.Active=`active`,e.NotRequired=`not-required`,e.Available=`available`,e.Unsupported=`unsupported`,e.UserAutoJoinAllowed=`user-auto-join-allowed`,e.UserJoinApprovalRequired=`user-join-approval-required`,e.InvalidEmail=`invalid-email`,e.BdmTrialAvailable=`bdm-trial-available`,e}({}),lk=function(e){return e.Staff=`staff`,e.Learner=`learner`,e}({}),uk=l(o(((e,t)=>{(function(n){if(typeof e==`object`)t.exports=n();else if(typeof define==`function`&&define.amd)define(n);else{var r;try{r=window}catch{r=self}r.SparkMD5=n()}})(function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n+=(r&i|~r&a)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[1]-389564586|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[5]+1200080426|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[9]-1958414417|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[10]-42063|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[13]-40341101|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&a|i&~a)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[6]-1069501632|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[10]+38016083|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[14]-1019803690|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[2]-51403784|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^a)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[8]-2022574463|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[4]+1272893353|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[0]-358537222|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[12]-421815835|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~a))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function i(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function a(e){var t=e.length,i=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(i,r(e.substring(a-64,a)));for(e=e.substring(a-64),o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(i,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(i,s),i}function o(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(r,i(e.subarray(a-64,a)));for(e=a-64<t?e.subarray(a-64):new Uint8Array,o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(r,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(r,s),r}function s(e){var n=``,r;for(r=0;r<4;r+=1)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join(``)}c(a(`hello`)),typeof ArrayBuffer<`u`&&!ArrayBuffer.prototype.slice&&(function(){function t(e,t){return e=e|0||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i=this.byteLength,a=t(n,i),o=i,s,c,l,u;return r!==e&&(o=t(r,i)),a>o?new ArrayBuffer(0):(s=o-a,c=new ArrayBuffer(s),l=new Uint8Array(c),u=new Uint8Array(this,a,s),l.set(u),c)}})();function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r),a;for(a=0;a<n;a+=1)i[a]=e.charCodeAt(a);return t?i:r}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t=[],n=e.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(e.substr(r,2),16));return String.fromCharCode.apply(String,t)}function m(){this.reset()}return m.prototype.append=function(e){return this.appendBinary(l(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t=this._buff.length,i;for(i=64;i<=t;i+=64)n(this._hash,r(this._buff.substring(i-64,i)));return this._buff=this._buff.substring(i-64),this},m.prototype.end=function(e){var t=this._buff,n=t.length,r,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a;for(r=0;r<n;r+=1)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);return this._finish(i,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r=t,i,a,o;if(e[r>>2]|=128<<(r%4<<3),r>55)for(n(this._hash,e),r=0;r<16;r+=1)e[r]=0;i=this._length*8,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(l(e),t)},m.hashBinary=function(e,t){var n=c(a(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t=f(this._buff.buffer,e,!0),r=t.length,a;for(this._length+=e.byteLength,a=64;a<=r;a+=64)n(this._hash,i(t.subarray(a-64,a)));return this._buff=a-64<r?new Uint8Array(t.buffer.slice(a-64)):new Uint8Array,this},m.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,a;for(i=0;i<n;i+=1)r[i>>2]|=t[i]<<(i%4<<3);return this._finish(r,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=c(o(new Uint8Array(e)));return t?p(n):n},m})}))()),dk={secondary:{label:`Secondary`,isTertiary:!1},"primary & secondary":{label:`Primary & Secondary`,isTertiary:!1},k12:{label:`Primary & Secondary`,isTertiary:!1},primary:{label:`Primary`,isTertiary:!1},special:{label:`Special`,isTertiary:!1},university:{label:`University`,isTertiary:!0},middle:{label:`Middle`,isTertiary:!1},"fe college":{label:`FE College`,isTertiary:!0},"high school":{label:`Secondary`,isTertiary:!1},elementary:{label:`Primary`,isTertiary:!1},"middle school":{label:`Middle`,isTertiary:!1},tafe:{label:`TAFE`,isTertiary:!0},college:{label:`FE College`,isTertiary:!0},"sixth form college":{label:`Sixth Form College`,isTertiary:!0}},fk={england:`ENG`,scotland:`SCT`,wales:`WLS`,"northern ireland":`NIR`},pk={hashedEmail(e){let t=e.trim().toLowerCase();return uk.default.hash(t)},removeEmptyKeys(e){if(Array.isArray(e))return e;let t={...e};return Object.entries(t).filter(([,e])=>!(e==null||typeof e==`string`&&!e.length)).reduce((e,[t,n])=>({...e,[t]:n===Object(n)?pk.removeEmptyKeys(n):n}),{})},Conversions:{TRIAL_UPGRADE_REQUEST:`Request - Trial Upgrade`,FREE_TRIAL_REQUEST:`Request - Free Trial`,START_FREE_TRIAL:`Start - Free Trial`,RequestPilot:`Request - Pilot`},Sources:{CV_PRODUCT_TRIAL_REQUESTED:`cv_product_trial_requested`,CV_PRODUCT_FORM_SUBMISSION:`cv_product_form_submission`,CV_PRODUCT_BDM_TRIAL_REQUESTED:`cv_product_bdm_trial_requested`,CV_PRODUCT_TRIAL_UPGRADE_REQUESTED:`cv_product_trial_upgrade_requested`,CV_LIVE_PILOT_REQUESTED:`cl_product_pilot_requested`,CV_PILOT_REQUESTED:`cv_product_pilot_requested`},getSchoolType(e){if(!e)return;let t=e.toLowerCase();return[`unknown`,`other`].includes(t)?void 0:dk[t]?.label||e},isTertiarySchool(e){return dk[e?.toLowerCase()]?.isTertiary||!1},parseProvince(e){return e.length?fk[e.toLowerCase()]||e:``},getConversionName(e,t){return t?.length?`${e} - ${t}`:e}};function mk(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});Z.useEffect(()=>{e.userType===lk.Learner&&e.complete({completionStep:`trial-status`,trialCreated:!1,trialStatus:ck.Unsupported})},[]);function a(e){if(QC(e.jobTitle)){c();return}o(e)}async function o(a){if(t)return;if(e.userType===lk.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.AddToBraze}),n(!0);let{firstName:o,surname:l}=nk(a.fullname),u=await e.getCrmIdForProspect(e.prospectId);try{let t={email:e.email,firstName:o,lastName:l,phone:a.phone,custom:{crmId:u,orgSubType:pk.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:pk.parseProvince(e?.province||``)},syncToCrm:!0,source:pk.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:e?.country,accountPostCode:e?.schoolPostCode,conversion:pk.getConversionName(pk.Conversions.FREE_TRIAL_REQUEST,e.entryPage?.metadata?.conversionSuffix)}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:ED.ProductFormEvent.ProductTrailRequested,additionalData:n,callback:s}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||c()}function s(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function c(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(sk,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:pk.isTertiarySchool(e.schoolType)})}var hk=e=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`,gk=e=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`,_k=(e,t)=>`Failed to create Trusted Types policy "${e}": ${t instanceof Error?t.message:String(t)}.\n\nIf your Content Security Policy uses "require-trusted-types-for 'script'", allow this policy with "trusted-types ${e} google-maps-api-loader google-maps-api#html lit-html". The "google-maps-api-loader", "lit-html", and "google-maps-api#html" policies are required for full Maps JavaScript API execution. Falling back to a string script URL.`,vk=`@googlemaps/js-api-loader`,yk={createScriptURL:e=>e},bk;function xk(){if(bk)return bk;let e=globalThis.trustedTypes;if(!e)return bk=yk,bk;try{bk=e.createPolicy(vk,{createScriptURL:e=>e})}catch(e){_k(vk,e),bk=yk}return bk}function Sk(e,t){e.src=xk().createScriptURL(t)}var Ck=e=>{var t,n,r,i=`The Google Maps JavaScript API`,a=`google`,o=`importLibrary`,s=document,c=window,l=c[a]||(c[a]={}),u=l.maps||={},d=new Set,f=new URLSearchParams,p=()=>t||=new Promise(async(o,c)=>{for(r in await(n=s.createElement(`script`)),f.set(`libraries`,[...d]+``),e)f.set(r.replace(/[A-Z]/g,e=>`_`+e[0].toLowerCase()),e[r]);f.set(`callback`,a+`.maps.__ib__`),Sk(n,`https://maps.googleapis.com/maps/api/js?`+f),u.__ib__=o,n.onerror=()=>t=c(Error(i+` could not load.`)),n.nonce=s.querySelector(`script[nonce]`)?.nonce||``,s.head.append(n)});u[o]?console.warn(i+` only loads once. Ignoring:`,e):u[o]=(e,...t)=>d.add(e)&&p().then(()=>u[o](e,...t))},wk=!1;function Tk(e){if(wk){hk(e);return}e.apiKey&&(e.key||=e.apiKey),Dk(e),wk=!0}async function Ek(e){if(!window?.google?.maps?.importLibrary)throw Error(`google.maps.importLibrary is not installed.`);return await google.maps.importLibrary(e)}function Dk(e){let t=!!window.google?.maps?.importLibrary;t&&gk(e),t||Ck(e)}var Ok=!1;function kk(e){Ok||=(Tk({key:e,v:`weekly`}),!0)}function Ak(e){let t=e.libraries||[`places`],[n,r]=Z.useState(!1);Z.useEffect(()=>{let e=!1;return i().then(()=>!e&&r(!0)).catch(()=>!e&&r(!1)),()=>{e=!0}},[]);function i(){return kk(e.apiKey),Promise.all(t.map(e=>Ek(e)))}function a(e,t){i().then(()=>{r(!0),e&&e()}).catch(e=>{r(!1),t&&t(e)})}return{scriptLoaded:n,onGoogleApiReady:a}}function jk(e){let{scriptLoaded:t}=Ak({apiKey:e.googleApiKey,libraries:[`places`]});return t}var Mk=`us`,Nk=`country:placeholder:text`;function Pk(e){let t=tk.getLocalizedLocalityPlaceholderText(e?.countryCode);if(t)return t;let n=qd.cacheGet(`${Nk}:${e?.countryCode}`);if(n)return n}function Fk(){return String.fromCharCode(96+kx.getRandomInt(26))}function Ik({apiKey:e,geoLocation:t,makeRequest:n=!0,template:r=`E.g. [placeholder]`,templateKey:i=`[placeholder]`}){let a=jk({googleApiKey:e}),[o,s]=Z.useState(()=>Pk(t));Z.useEffect(()=>{if(o||!a||!n)return;let e=t?.countryCode||Mk;l(Fk(),e)},[o,a,t,n]);function c(e,t){qd.cacheSet(`${Nk}:${t}`,e,86400),s(e)}async function l(e,t){try{let{suggestions:n}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,includedPrimaryTypes:[`(cities)`],includedRegionCodes:[t],region:t,sessionToken:new google.maps.places.AutocompleteSessionToken}),a=n[kx.getRandomInt(n.length)]?.placePrediction?.text.toString();if(!a){c(tk.getLocalizedLocalityPlaceholderText(Mk),t);return}c(r.replace(i,a),t)}catch{c(tk.getLocalizedLocalityPlaceholderText(Mk),t)}}return o}function Lk(e,t){let n,r,i,a;for(let e of t)for(let t of e.types)t===`locality`&&(n=e.value),t===`administrative_area_level_1`&&(r=e.value),t===`postal_code`&&(a=e.value),t===`country`&&(i=e.value);return{locality:e,country:i,postalCode:a,city:n,province:r}}var Rk={getPlaceDetails(e){return Lk(e.formatted_address,e.address_components.map(e=>({types:e.types,value:e.short_name})))},getPlaceDetailsFromPlace(e){return Lk(e.formattedAddress,(e.addressComponents||[]).map(e=>({types:e.types,value:e.shortText})))}},zk={1:`geocoderPermissionDenied`,2:`geocoderUnavailable`,3:`geocoderTimeout`};function Bk(e){let[t,n]=Z.useState({}),{onGoogleApiReady:r}=Ak({apiKey:e.apiKey,libraries:[`geocoding`,`core`]});function i(){r(()=>{window.navigator.geolocation.getCurrentPosition(a,o)})}function a(e){let{latitude:t,longitude:r}=e.coords,i=new google.maps.LatLng(t,r);new google.maps.Geocoder().geocode({location:i},(e,i)=>{if(i!==google.maps.GeocoderStatus.OK)return;let a=e.find(e=>e.types.includes(`locality`)||e.types.includes(`administrative_area_level_2`)),o=Rk.getPlaceDetails(a);n({...o,longitude:r,latitude:t})})}function o(t){let n=zk[t.code];n||=`geocoderUnknown`,e.onPositionError(`We are unable to access your location. Please try again later.`)}return{placeDetails:t,onClickGetCurrentLocation:i}}function Vk({search:e,makePredicition:t,geoLocation:n,apiKey:r}){let i=jk({googleApiKey:r}),a=lC(e,300),[o,s]=Z.useState(),c=Z.useRef();Z.useEffect(()=>{if(i){if(a?.length===0||!t){s(void 0);return}l(a)}},[a,t,i]);async function l(e){let t=n?.countryCode||`us`;c.current||=new google.maps.places.AutocompleteSessionToken;try{let{suggestions:r}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,includedRegionCodes:n?.isFallback?void 0:[t],region:t,includedPrimaryTypes:[`locality`,`sublocality`,`postal_code`],sessionToken:c.current});s(r.map(e=>e.placePrediction).filter(Boolean))}catch{s(void 0)}}async function u(e,t){try{let n=e.toPlace();await n.fetchFields({fields:[`addressComponents`,`formattedAddress`,`location`]});let r=n.location.lng(),i=n.location.lat(),{locality:a,country:o,postalCode:s,city:c,province:l}=Rk.getPlaceDetailsFromPlace(n);t({longitude:r,latitude:i,locality:a,country:o,city:c,postalCode:s,province:l})}catch{}finally{c.current=void 0}}return{localityPredicitions:o,getPlaceInfo:u}}function Hk(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z`})})}var Uk={baseText:`_baseText_bmazz_1`,dropdown:`_dropdown_bmazz_4`,suggestionContainer:`_suggestionContainer_bmazz_7`,suggestionContainerInner:`_suggestionContainerInner_bmazz_13`,suggestionItem:`_suggestionItem_bmazz_18`,suggestionLoading:`_suggestionLoading_bmazz_18`,noSuggestion:`_noSuggestion_bmazz_18`,large:`_large_bmazz_22`,selected:`_selected_bmazz_32`,useMyLocation:`_useMyLocation_bmazz_36`};function Wk(e){let{predictions:t,getPlaceInfo:n,selectedIndex:r}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Lf,{className:`${Uk.suggestionItem} ${r-1===t?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&n(e),onMouseDown:()=>n(e),onClick:()=>n(e),children:e.text.toString()},e.placeId))})}function Gk(e){let t=Z.useRef(null),[n,r]=Z.useState(e.data?.schoolLocality||``),[i,a]=Z.useState(!1),o=Ik({apiKey:e.googleMapsApiKey,geoLocation:e.geoLocation}),{localityPredicitions:s,getPlaceInfo:c}=Vk({search:n,makePredicition:i,geoLocation:e.geoLocation,apiKey:e.googleMapsApiKey}),{placeDetails:l,onClickGetCurrentLocation:u}=Bk({apiKey:e.googleMapsApiKey,onPositionError:b}),d=+!!window.navigator.geolocation,{selectedIndex:f,onKeyDown:p,containerRef:m,hide:h,onBlur:g,onFocus:_}=If({onSelected:C,itemCount:(s?.length??0)+d,hideOnBlur:e.hideOnBlur}),[v,y]=Z.useState();Z.useEffect(()=>{w(l)},[l]);function b(e){a(!0),y(e)}function x(t){v&&y(void 0),i||a(!0),(e.data?.longitude||e.data?.latitude||e.data?.schoolLocality)&&e.clearData(),r(t)}function S(){x(``),t.current.focus()}function C(e){if(!s)return;if(e===s.length){E();return}let t=s[e];t&&T(t)}function w(t){e.setData({schoolLocality:t.locality,country:t.country,province:t.province,schoolPostCode:t.postalCode,longitude:t.longitude,latitude:t.latitude}),t.locality&&r(t.locality)}function T(e){i&&a(!1),c(e,w)}function E(t){t?.preventDefault(),a(!1),u(),e.logUserAction?.({},{actionType:BO.Click,descriptor:WO.UseMyLocation})}function D(){let t=`form-control`;return e.size===`lg`&&(t+=` form-control-lg`),t}let O=s?.length&&!e.data?.schoolLocality?.length,k=window.navigator.geolocation&&!e.data?.schoolLocality?.length,A=e.labelClassName||`d-block text-center mb-3 fw-normal ${Uk.baseText}`,j=`form-group position-relative text-start`;return e.size===`lg`&&(j+=` ${Uk.large}`),(0,Q.jsxs)(`div`,{className:j,children:[(0,Q.jsxs)(`label`,{className:A,htmlFor:`locality-input`,children:[`ZIP code or city`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Ff,{type:`text`,value:n,onChange:e=>x(e.currentTarget.value),id:`locality-input`,className:D(),ref:t,autoComplete:`off`,placeholder:o||`Loading...`,disabled:e.disabled||!o,autoFocus:e?.autoFocus,onClickClear:S,onKeyDown:p,onFocus:_,onBlur:g}),(0,Q.jsxs)(`div`,{className:`position-absolute z-1 w-100 ${Uk.dropdown} ${h?`d-none`:``}`,children:[!!O&&(0,Q.jsx)(`div`,{className:Uk.suggestionContainer,children:(0,Q.jsxs)(`div`,{className:Uk.suggestionContainerInner,ref:m,children:[(0,Q.jsx)(Wk,{predictions:s,getPlaceInfo:T,selectedIndex:f}),window.navigator.geolocation&&e.useGeoLocationApi&&(0,Q.jsx)(Lf,{className:nd(Uk.suggestionItem,`px-1`,f-1===s.length?Uk.selected:``),onClick:E,children:(0,Q.jsxs)(`div`,{className:`btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1`,children:[(0,Q.jsx)(Hk,{}),`Use my current location`]})})]})}),k&&!O&&e.useGeoLocationApi&&(0,Q.jsx)(`div`,{className:`d-flex ${Uk.useMyLocation}`,children:(0,Q.jsxs)(`button`,{onClick:E,className:`btn btn-link info-link bg-white btn-with-icon`,children:[(0,Q.jsx)(Hk,{}),`Use my current location`]})}),!!v&&(0,Q.jsx)(`div`,{className:`text-danger p-2`,children:v})]})]})}var Kk=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e}({}),qk=class extends Error{constructor(e,t=`Error`){super(t),this.body=e}},Jk={prepareQuery(e,t){let n=e;return Object.keys(t).forEach((e,r)=>{t[e]&&(r===0?n+=`?`:n+=`&`,n+=`${e}=${encodeURIComponent(t[e])}`)}),n}};function Yk(e){let t={method:Kk.GET,headers:{"Content-type":`application/json`}};e.method&&(t={...t,method:e.method}),e.init&&(t={...t,...e.init});let n=e.url;return t.method===Kk.GET&&e.data?n=Jk.prepareQuery(n,e.data):e.data&&(t={...t,body:JSON.stringify(e.data)}),{init:t,url:n}}var Xk={async asyncFetch(e){let t=Yk(e),n=await fetch(t.url,t.init);if(!n.ok)throw new qk(await n.json());if(n.status!==204)return await n.json()},async asyncFetchPlain(e){let t=Yk(e),n=await fetch(t.url,t.init);if(n.ok)return await n.text()},fetch(e){let t=Yk(e);return fetch(t.url,t.init).then(e=>{if(e.status!==204)return e.json()}).then(t=>(e.success&&e.success(t),t)).catch(t=>(e.error&&e.error(),t)).finally(()=>{e.always&&e.always()})}},Zk={search(e,t,n,r,i){let a={longitude:t.longitude,latitude:t.latitude};t.query&&(a.query=t.query),Xk.fetch({url:e,data:a,success:n,error:r,always:i})},async create(e,t){return Xk.asyncFetch({url:e.createProspect,method:Kk.POST,data:t})},getLookups(e,t){return Xk.asyncFetch({url:e.prospectLookups(t)})}},Qk=/\/$/,$k={urlBuilder(e,t){let n=Object.entries(t).map(([e,t])=>e&&Array.isArray(t)?t.map(t=>`${e}=${encodeURIComponent(t)}`).join(`&`):e&&t!=null?`${e}=${encodeURIComponent(t)}`:``).reduce((e,t)=>t?e?`${e}&${t}`:t:e,``);return n?`${e}?${n}`:e},buildFilter(e){let t=[];if(e.limit&&t.push(`limit:${e.limit}`),e.cursor&&t.push(`page:${e.cursor}`),e.before&&t.push(`dateCreated:...${e.before}`),t.length)return t.join(`,`)},makeHttps(e){return typeof e!=`string`||e.indexOf(`http://`)===-1||(e=e.replace(`http://`,`https://`)),e},safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n},removeTrailingSlash(e){if(typeof e==`string`)return e.replace(Qk,``)},getHostname(e){if(!e)return window.location.hostname;try{return new URL(e).hostname}catch{return null}},isValidUrl(e){try{return new URL(e),!0}catch{return!1}}},eA={checkTrialStatus(e,t){if(e.productName!==kD.Lite)return Promise.reject();let n={email:t.email};return Xk.asyncFetch({url:e.userStatus,data:n})},checkUserIdps(e,t){return e.productName===kD.Lite?Xk.asyncFetch({url:e.idps,data:{email:t}}):Promise.reject()},checkProspectTrialStatus(e,t,n,r,i){let a=e.prospectStatus(t.prospectId);a=$k.urlBuilder(a,{email:t.email}),Xk.fetch({url:a,success:n,error:r,always:i})},createTrial(e,t){return Xk.asyncFetch({url:e.createTrial,method:Kk.POST,data:t})},resendTrialEmail(e,t,n){if(e.productName!==kD.Lite)return Promise.reject();let r={email:n.email,appLink:n?.appLink};return Xk.asyncFetch({url:e.resendTrialEmail(t),method:Kk.POST,data:r})},createJoinRequest(e,t){let n=e.productName===kD.Auth?e.joinRequest:e.joinRequest(t.customerId),r=e.productName===kD.Auth?t:{email:t.email};return Xk.asyncFetch({url:n,method:Kk.POST,data:r})},createAutoJoinRequest(e,t){return e.productName===kD.Lite?Xk.asyncFetch({url:e.autoJoin,method:Kk.POST,data:t}):Promise.reject()}},tA=[`Primary`,`Secondary`,`K12`,`Special`,`TAFE`,`University`],nA=[`Primary`,`Secondary`,`Primary & Secondary`,`Special`,`Sixth Form College`,`FE College`,`University`,`Other`],rA=[`Elementary`,`Middle School`,`High School`,`College`,`Other`],iA={au:tA,nz:tA,uk:nA,us:rA,ca:rA};function aA(e){return iA[tk.getCountryCode(e)]||rA}var oA=function(e){return e.Published=`Published`,e.Draft=`Draft`,e}({});function sA(e){let[t,n]=Z.useState({prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolLocality:e.schoolLocality,country:e.country,province:e.province,city:e.city,longitude:e.longitude,latitude:e.latitude}),[r,i]=Z.useState(),[a,o]=Z.useState(!1),s=aA(t.country||e.geoLocation?.countryCode);function c(){let{schoolName:e,schoolType:n,country:r}=t;return!!(e&&n&&r)}function l(e,t){n(n=>({...n,[e]:t}))}function u(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&l(`longitude`,t),n&&l(`latitude`,n),i&&l(`country`,i),a&&l(`city`,a),o&&l(`province`,o),r&&l(`schoolLocality`,r)}function d(){l(`schoolLocality`,void 0),l(`longitude`,void 0),l(`latitude`,void 0),l(`city`,void 0),l(`province`,void 0),l(`country`,void 0),i(``)}function f(e){let t=e.target.value;l(`schoolType`,t)}function p(e){l(`schoolName`,e.target.value)}async function m(n){let r={email:e.email,custom:{accountName:t?.schoolName,accountAddress:{countryCode:t?.country,province:pk.parseProvince(t.province)},orgSubType:pk.getSchoolType(t?.schoolType),syncToCrm:!0,source:pk.Sources.CV_PRODUCT_FORM_SUBMISSION},event:{accountCountry:t?.country,accountPostCode:t?.schoolPostCode,accountState:pk.parseProvince(t.province)}},i={form_type:`trial-sign-up`,prospect_id:t?.prospectId};e.logBrazeEvent({user:r,event:{eventType:ED.ProductFormEvent.FormSubmission,additionalData:i,callback:n}})}async function h(n){if(n.preventDefault(),!c())return;e.logUserAction(t,{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.CantFindSchool}),o(!0);let r;try{if(r=await Zk.create(e.ajaxUrls,{name:t.schoolName,status:oA.Draft,countryCode:t.country,prospectType:t.schoolType,city:t.city,postCode:t.schoolPostCode,province:pk.parseProvince(t.province)}),!r.id){o(!1),i(`Error. Something went wrong.`);return}}catch{o(!1),i(`Error. Something went wrong.`);return}if(e.userTrialStatus===ck.BdmTrialAvailable){if(e.userType!==lk.Staff){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`request-bdm-trial`,...t});return}try{let n={prospectId:r.id,email:e.email,userType:e.userType,appLink:e.pageAppLinkString,signupVariant:e.signupVariant,attribution:{...rf.getDecodedAttributionData(),utms:gf.getUtmParameters()},conversion:pk.getConversionName(pk.Conversions.START_FREE_TRIAL,e.entryPage?.metadata?.conversionSuffix)},i=await eA.createTrial(e.ajaxUrls,n);e.createOrUpdateProfile&&e.createOrUpdateProfile({masterId:i.id,email:e.email,countryCode:t?.country});let a={completionStep:`trial-status`,email:e.email,userId:i.id,prospectId:r.id,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,schoolType:t.schoolType,city:t.city,schoolPostCode:t.schoolPostCode,latitude:t.latitude,longitude:t.longitude,province:t.province,trialStatus:ck.Available,trialCreated:!0,customerId:i.data?.customerId};if(e?.userType===lk.Staff){await m(t=>{t||console.error(`Failed to submit create trial data to braze.`),e.complete(a)});return}e.complete(a)}catch(n){if(!n.body){o(!1),i(`Error. Something went wrong.`);return}let a=n;if(a.body.status===400&&a.body.type===`trial-not-available`){e.nextStep({step:`add-to-braze`,...t,prospectId:r.id,trialStatus:ck.Unavailable});return}console.error(n)}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us more about your school`}),(0,Q.jsx)(`p`,{children:`Please enter your school details.`}),(0,Q.jsxs)(`div`,{className:`text-start`,children:[(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-name-input`,children:`Name of school`}),(0,Q.jsx)(`input`,{type:`text`,value:t?.schoolName||``,onChange:p,id:`school-name-input`,className:`form-control form-control-lg`,autoComplete:`off`,placeholder:`Enter name of school`,autoFocus:!0})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-type-select`,children:`Type of school`}),(0,Q.jsxs)(`select`,{id:`school-type-select`,className:`form-select form-select-lg ${t.schoolType?``:`text-secondary`}`,autoComplete:`off`,value:t.schoolType||`none`,onChange:f,children:[(0,Q.jsx)(`option`,{value:`none`,className:`text-secondary`,disabled:!0,children:`Select type of school`}),s.map(e=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},e))]})]}),(0,Q.jsx)(Gk,{data:t,setData:u,clearData:d,disabled:!1,labelClassName:`d-block`,geoLocation:e.geoLocation,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!1,size:`lg`,useGeoLocationApi:!0}),r&&(0,Q.jsx)(`div`,{className:`text-danger mb-3`,children:r})]}),c()&&(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:a,disabled:a,children:`Get started`})]})}function cA(e,t){return t?`${e} ${t}`:e}function lA(e){return(0,Q.jsx)(`h1`,{className:cA(`text-center mb-2 h4`,e.className),children:e.children})}function uA(e){return(0,Q.jsx)(`div`,{className:cA(`text-center text-sm px-2 px-lg-4`,e.className),children:e.children})}function dA(e){return(0,Q.jsx)(`p`,{className:cA(``,e.className),children:e.children})}var fA={Heading:lA,Body:uA,Message:dA};function pA(e){return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-4 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:{[ck.Available]:e.imageUrls.statusImages.available,[ck.Active]:e.imageUrls.statusImages.active,[ck.Expired]:e.imageUrls.statusImages.expired,[ck.NotRequired]:e.imageUrls.statusImages.notRequired,[ck.Unavailable]:e.imageUrls.statusImages.unavailable,[ck.Unsupported]:e.imageUrls.statusImages.unsupported,[ck.UserAutoJoinAllowed]:e.imageUrls.statusImages.notRequired,[ck.UserJoinApprovalRequired]:e.imageUrls.statusImages.notRequired,[ck.InvalidEmail]:``,[ck.BdmTrialAvailable]:``}[e.trialStatus],className:`w-100 h-auto`})})}function mA(e){return Z.useEffect(()=>{e.logUserAction({},{actionType:BO.Create,descriptor:WO.TrialRequested,workflowPhase:UO.Complete})},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`Submitted!`}),(0,Q.jsx)(fA.Message,{children:`Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.`})]})]})}function hA(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`You've requested access!`}),(0,Q.jsx)(fA.Message,{children:`We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.`})]})]})}var gA={Marketing:{au:`https://www.clickvieweducation.com/en-au`,us:`https://www.clickvieweducation.com`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickview.co.uk`,ca:`https://www.clickvieweducation.com/en-ca`},Support:{au:`https://www.clickviewsupport.com/hc/en-au`,uk:`https://www.clickviewsupport.com/hc/en-au#gb`,nz:`https://www.clickviewsupport.com/hc/en-au#nz`,us:`https://www.clickviewsupport.com/hc/en-au#us`,ca:`https://www.clickviewsupport.com/hc/en-au#ca`}},_A={[$.AU]:`/contact-us/sales`,[$.US]:`/contact-us/sales`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/trial`,[$.CA]:`/contact-us/sales`},vA={[$.AU]:`/resources/free-student-resources`,[$.US]:`/resources/free-student-resources`,[$.NZ]:`/free-student-resources/`,[$.UK]:`/free-student-resources/`,[$.CA]:`/resources/free-student-resources`},yA={getMarketingUrlForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return gA.Marketing[t]||gA.Marketing.us},getMarketingSalesContactForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return`${yA.getMarketingUrlForGeoLocation(e)}${_A[t]}`},getFreeResourcesForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return`${this.getMarketingUrlForGeoLocation({countryCode:t})}${vA[t]}`},getTermsAndConditionsLink(){return this.getMarketingUrlForGeoLocation($.US)+`/terms-and-conditions/`},getPrivacyPolicyLink(){return this.getMarketingUrlForGeoLocation($.US)+`/privacy-policy/`},getSupportUrlForGeoLocation(e){let t=tk.getCountryCode(e?.countryCode);return gA.Support[t]||gA.Support.us}};function bA(e){let t=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,n=e?.schoolName||`Your school`;return(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[t?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(fA.Heading,{children:[n,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]}),(0,Q.jsxs)(fA.Message,{className:`mt-3`,children:[`If your school has SSO\xA0`,(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email,customerId:e.customerId}),className:`info-link`,children:`click here to sign in.`})]}),(0,Q.jsx)(fA.Message,{children:`Otherwise please contact your school admin for access.`})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(fA.Heading,{children:`Good News!`}),(0,Q.jsxs)(fA.Message,{children:[`An account already exists for:`,(0,Q.jsx)(`br`,{}),` `,(0,Q.jsx)(`strong`,{children:e.email})]}),(0,Q.jsx)(fA.Message,{children:(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email}),className:`btn btn-dark btn-lg w-100`,children:`Sign into ClickView`})})]}),(0,Q.jsxs)(fA.Message,{children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}function xA(e){let t=yA.getMarketingSalesContactForGeoLocation(e.geoLocation),n=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,r=e?.schoolName||`Your school`;return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsx)(fA.Heading,{children:n?`${r} trial has expired`:`Your trial has expired`}),(0,Q.jsxs)(fA.Message,{children:[`Please contact our\xA0`,(0,Q.jsx)(`a`,{href:t,className:`info-link`,target:`_blank`,children:`ClickView Sales Team`})]})]})}function SA(e){let t=yA.getMarketingSalesContactForGeoLocation(e.geoLocation);return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsxs)(fA.Heading,{children:[`Your school no longer`,(0,Q.jsx)(`br`,{}),` has access to ClickView`]}),(0,Q.jsxs)(fA.Message,{children:[`Please contact our `,(0,Q.jsx)(`a`,{href:t,className:`info-link`,children:`ClickView Sales Team`}),` for more information.`]})]})}function CA(){return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsxs)(fA.Heading,{className:`px-2 px-lg-4`,children:[`ClickView isn't currently `,(0,Q.jsx)(`br`,{}),` available for your school`]}),(0,Q.jsx)(fA.Message,{children:`We're working hard to get ClickView ready for more people.`})]})}var wA=1;function TA(e){let[t,n]=Z.useState(0),[r,i]=Z.useState(!1);async function a(r){r?.preventDefault();try{await eA.resendTrialEmail(e.ajaxUrls,e.userId,{email:e.email,appLink:e.pageAppLinkString}),n(t+1)}catch{i(!0)}e.logUserAction({},{actionType:BO.Click,descriptor:WO.ResendEmail})}function o(t){t?.preventDefault(),e.logUserAction({},{actionType:BO.Click,descriptor:WO.WrongEmail}),e.nextStep({step:`enter-email`,userType:e.userType})}if(e?.email)return(0,Q.jsxs)(fA.Body,{children:[(0,Q.jsx)(fA.Heading,{children:`Check your inbox!`}),(0,Q.jsxs)(fA.Message,{children:[`An email has been sent to `,(0,Q.jsx)(`strong`,{children:e.email}),`.`]}),!!e.userId&&(0,Q.jsxs)(Q.Fragment,{children:[t<wA?(0,Q.jsx)(`button`,{onClick:a,className:`btn btn-outline-dark btn-lg mb-3`,children:`Resend verification email`}):(0,Q.jsx)(fA.Message,{children:`✅ Email has been resent!`}),(0,Q.jsxs)(fA.Message,{children:[`Wrong email?\xA0`,(0,Q.jsx)(`button`,{onClick:o,className:`btn info-link p-0 align-top border-0`,children:`Update email address`})]}),r&&(0,Q.jsxs)(fA.Message,{className:`mb-0 text-danger`,children:[`❌ There was a problem resending the email. Please try again later or contact our \xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,children:`support`})]})]})]})}var EA={[ck.Available]:TA,[ck.Active]:bA,[ck.Expired]:xA,[ck.NotRequired]:bA,[ck.Unavailable]:SA,[ck.Unsupported]:CA,[ck.UserAutoJoinAllowed]:bA,[ck.UserJoinApprovalRequired]:bA,[ck.InvalidEmail]:null,[ck.BdmTrialAvailable]:null};function DA(e){let t=EA[e.trialStatus];return t?(0,Q.jsx)(t,{...e}):(0,Q.jsx)(Q.Fragment,{})}function OA(e){return Z.useEffect(()=>{let t={actionType:BO.Create,descriptor:WO.DeadEnd,workflowPhase:UO.Discard};e.trialCreated&&(t.descriptor=WO.TrialCreated,t.workflowPhase=UO.Complete),e.logUserAction({},t)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:e.trialStatus,imageUrls:e.imageUrls}),(0,Q.jsx)(DA,{...e})]})}var kA=`young-student`;function AA(e){let t=yA.getFreeResourcesForGeoLocation(e.geoLocation);return Z.useEffect(()=>{qd.set(kA,!0)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.Active,imageUrls:e.imageUrls}),(0,Q.jsxs)(fA.Body,{className:`mb-3`,children:[(0,Q.jsx)(fA.Heading,{children:`Discover our free content`}),(0,Q.jsx)(fA.Message,{children:`Click the button below to explore our videos`}),(0,Q.jsx)(`a`,{href:t,className:`btn btn-lg btn-dark w-100`,target:`_blank`,children:`Start watching now`})]})]})}var jA={"trial-status":OA,"added-to-braze":mA,"young-student":AA,"requested-access":hA};function MA(e){let t=jA[e.completionStep];return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center flex-column mx-auto px-2`,children:(0,Q.jsx)(t,{...e})})}var NA=function(e){return e.Popup=`popup-form`,e.FullPage=`full-page-form`,e}({}),PA={day:`_day_cmdpc_1`,month:`_month_cmdpc_4`,year:`_year_cmdpc_7`},FA=120,IA=16;function LA(e,t,n){let r=new Date(RA(e,t,n));return!isNaN(+r)}function RA(e,t,n){return`${e.padStart(4,`0`)}-${t.padStart(2,`0`)}-${n.padStart(2,`0`)}`}function zA(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(null);function l(e){n(e.target.value),c(null)}function u(e){i(e.target.value),c(null)}function d(e){o(e.target.value),c(null)}function f(){return!t||!r||!a?(c(`Please enter your date of birth`),!1):LA(a,r,t)?+a>h?(c(`Please enter a date in the past`),!1):+a<h-FA?(c(`Please enter a realistic date of birth`),!1):!0:(c(`Please enter a valid date`),!1)}function p(n){if(n.preventDefault(),!f())return;let i=new Date(RA(a,r,t)),o=h-IA,s=new Date;if(s.setFullYear(o),i>s){e.complete({completionStep:`young-student`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`enter-email`,userType:e.userType})}let m=e.type===NA.Popup,h=new Date().getFullYear(),g=nd(`d-inline-block`,m?`text-center`:`text-start`),_=`form-control form-control-lg ${s?`is-invalid`:``}`,v=`order-0`,y=`order-3`,b=tk.isCountryCodeUS(e.geoLocation.countryCode);return b&&(v=`order-3`,y=`order-0`),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us a little about yourself`}),(0,Q.jsx)(`p`,{children:`Please enter your date of birth`}),(0,Q.jsxs)(`div`,{className:`my-4`,children:[(0,Q.jsxs)(`fieldset`,{className:nd(`d-flex`,m?`justify-content-center`:`justify-content-start`),"aria-describedby":`dateOfBirthError`,children:[(0,Q.jsxs)(`div`,{className:`${g} ${v}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`day`,children:`Day`}),(0,Q.jsx)(`input`,{id:`day`,type:`number`,className:`${_} ${PA.day}`,min:`1`,max:`31`,placeholder:`DD`,value:t,onChange:l,autoFocus:!b,tabIndex:b?2:1})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-4 mb-0 mx-2 order-1 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${g} ${y}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`month`,children:`Month`}),(0,Q.jsx)(`input`,{id:`month`,type:`number`,className:`${_} ${PA.month}`,min:`1`,max:`12`,placeholder:`MM`,value:r,onChange:u,autoFocus:b,tabIndex:b?1:2})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-4 mb-0 mx-2 order-4 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${g} order-5`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`year`,children:`Year`}),(0,Q.jsx)(`input`,{id:`year`,name:`year`,type:`number`,className:`${_} ${PA.year}`,min:h-120,max:h,placeholder:`YYYY`,value:a,onChange:d,tabIndex:3})]})]}),!!s&&(0,Q.jsx)(Cf,{name:`dateofBirth`,children:s})]}),(0,Q.jsx)(`button`,{type:`submit`,className:`btn btn-lg btn-dark w-100`,children:`Continue`})]})}function BA(e){return(0,Q.jsxs)(Q.Fragment,{children:[`Have a ClickView account already?`,(0,Q.jsx)(`a`,{href:e.link,className:`info-link ms-1`,onClick:e.onClick,children:`Sign in`})]})}function VA(){let e={},t=rf.getEncodedAttributionData();t&&(e.r=t);let n=gf.getUtmParameters();return n&&(e.utms=n),JSON.stringify(e)}var HA=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),UA={[$.AU]:`valerie.frizzle@school.edu.au`,[$.UK]:`valerie.frizzle@school.gov.uk`,[$.US]:`valerie.frizzle@school.gov`,[$.NZ]:`valerie.frizzle@school.nz`,[$.CA]:`valerie.frizzle@school.ca`},WA={[$.AU]:`/contact-us/support`,[$.US]:`/contact-us/support`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/technical/`,[$.CA]:`/contact-us/support`};function GA(e){return`${yA.getMarketingUrlForGeoLocation(e)}${WA[tk.getCountryCode(e?.countryCode)]}`}function KA(e){return UA[tk.getCountryCode(e.countryCode)]||UA.us}var qA=[ck.Expired,ck.NotRequired,ck.Unavailable,ck.Unsupported,ck.Active];function JA(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(e?.email||``),[a,o]=Z.useState(),s=GA(e.geoLocation);async function c(){o(``);let t;try{t=await eA.checkTrialStatus(e.ajaxUrls,{email:r})}catch{o(`Something went wrong! Please try again later.`);return}if(t.status===ck.InvalidEmail){o(`Please use your school email address.`);return}if(e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.EnterEmail}),qA.includes(t.status)){e.complete({completionStep:`trial-status`,email:r,trialStatus:t.status,trialCreated:!1});return}try{let n=await eA.checkUserIdps(e.ajaxUrls,r);if(n.length){e.nextStep({step:`select-idp`,email:r,userTrialStatus:t.status,idps:n});return}}catch{o(`Something went wrong! Please try again later.`);return}e.nextStep({step:`find-school`,email:r,userTrialStatus:t.status})}function l(){e.logUserAction({},{actionType:BO.Click,descriptor:WO.ContactUs})}function u(){return r.length?HA.test(r)?!0:(o(`Please use your school email address.`),!1):(o(`Please enter your school email address.`),!1)}function d(){e.logUserAction({},{actionType:BO.Click,descriptor:WO.SignIn})}function f(e){e.preventDefault(),i(e.target.value),o(``)}async function p(e){e?.preventDefault(),u()&&(n(!0),await c(),n(!1))}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:``,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's set up your account`}),(0,Q.jsx)(`p`,{children:`Enter your school email address`})]}),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsxs)(`div`,{className:`form-group mb-3`,children:[(0,Q.jsx)(Ff,{value:r,onChange:f,name:`email-input`,id:`email-input`,type:`email`,className:`form-control form-control-lg ${a?`is-invalid`:``}`,placeholder:KA(e.geoLocation),autoComplete:`false`,autoCorrect:`false`,autoFocus:!0,onClickClear:()=>i(``),"aria-errormessage":`email-inputError`}),a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Cf,{name:`error-input`,children:a}),(0,Q.jsxs)(`small`,{children:[`Having an issue with your email?`,(0,Q.jsx)(`a`,{href:s,className:`info-link ps-1`,target:`_blank`,onClick:l,children:`Contact our team`})]})]})]}),(0,Q.jsx)(rk,{showSpinner:t,variant:`dark`,className:`btn-lg mb-3 w-100`,disabled:t,onClick:p,children:`Continue`})]}),e.userType===lk.Staff&&(0,Q.jsx)(Sf,{idps:e.globalIdps,className:`mt-n3`,attribution:VA()}),(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(BA,{link:e.getSignInUrl({email:r}),onClick:d})})]})}function YA(e){switch(e?.body?.type){case`user-type-not-supported`:return`Students may not request to join schools.`;case`join-request-already-pending`:return`Your request is awaiting administrator approval.`;case`join-request-already-denied`:return`Your request has been denied by an administrator.`;default:return`Something went wrong.`}}var XA=function(e){return e.MasterId=`master_id`,e.CrmId=`crm_id`,e.SalesforceId=`salesforce_id`,e}({});function ZA(e){let[t,n]=Z.useState(null);async function r(){try{let t=(await Zk.getLookups(e.ajaxUrls,e.prospectId)).find(e=>e.type===XA.MasterId)?.externalId;if(!t){n(`Something went wrong.`);return}await eA.createJoinRequest(e.ajaxUrls,{customerId:t,email:e.email}),e.logUserAction({},{actionType:BO.Click,descriptor:WO.RequestAccess}),e.complete({completionStep:`requested-access`,trialCreated:!1,trialStatus:ck.UserJoinApprovalRequired})}catch(e){n(YA(e))}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(pA,{trialStatus:ck.UserJoinApprovalRequired,imageUrls:e.imageUrls}),(0,Q.jsx)(fA.Body,{className:`mb-3`,children:(0,Q.jsxs)(fA.Heading,{children:[e.schoolName,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,onClick:r,children:`Request access`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-2`,children:t}),(0,Q.jsxs)(fA.Message,{className:`text-center`,children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:yA.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}var QA={createUser(e,t){if(e.productName!==kD.Lite)return Promise.reject();let{email:n,source:r,syncToCrm:i,instanceRegion:a}=t;return Xk.asyncFetch({url:e.brazeCreateUser,method:Kk.POST,data:{email:n,source:r,syncToCrm:i,instanceRegion:a}})}};function $A(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});function a(e){if(QC(e.jobTitle)){l();return}s(e)}function o(){let t=tk.getCountryCode(e.country||e.geoLocation?.countryCode);return tk.getInstanceRegion(t)}async function s(a){if(t)return;if(e.userType===lk.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.RequestBdmTrial}),n(!0);let{firstName:s,surname:u}=nk(a.fullname);try{await QA.createUser(e.ajaxUrls,{email:e.email,source:pk.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED,syncToCrm:!0,instanceRegion:o()});let t={email:e.email,firstName:s,lastName:u,phone:a.phone,custom:{orgSubType:pk.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:pk.parseProvince(e?.province||``)},source:pk.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED},event:{conversion:pk.getConversionName(pk.Conversions.FREE_TRIAL_REQUEST,e.entryPage?.metadata?.conversionSuffix)}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:ED.ProductFormEvent.BdmTrialRequested,additionalData:n,callback:c}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||l()}function c(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function l(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(sk,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:pk.isTertiarySchool(e.schoolType)})}function ej(e){let{loading:t,canSubmitForm:n,setSubmissionError:r,prospectStatus:i,userType:a,logStepEvent:o,logUserAction:s,nextStep:c,data:l,productName:u,ajaxUrls:d,complete:f,setLoadingState:p,email:m,userTrialStatus:h,pageAppLinkString:g,setProperty:_,logBrazeEvent:v,createOrUpdateProfile:y,signupVariant:b}=e;function x(){c({step:`add-to-braze`,trialStatus:i,...l}),o()}function S(){if(o(),a!==lk.Staff){f({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}c({step:`request-bdm-trial`,...l})}function C(){c({step:`request-access`,...l}),o()}async function w(){try{await eA.createAutoJoinRequest(d,{prospectId:l.prospectId,email:m}),s({},{actionType:BO.Click,descriptor:WO.AutoJoin}),f({completionStep:`trial-status`,trialCreated:!0,trialStatus:ck.Available,...l})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}}async function T(){let e;l?.prospectId&&i===ck.NotRequired&&(e=(await Zk.getLookups(d,l.prospectId)).find(e=>e.type===XA.MasterId)?.externalId),f({completionStep:`trial-status`,trialStatus:i,trialCreated:!1,customerId:e,...l}),o()}function E(){return i===ck.Active||i===ck.Available||i===ck.UserAutoJoinAllowed&&u===kD.Auth}async function D(){if(a!==lk.Staff)return;let e={email:m,custom:{accountName:l?.schoolName,accountAddress:{countryCode:l?.country,province:pk.parseProvince(l.province)},orgSubType:pk.getSchoolType(l?.schoolType),syncToCrm:!0,source:pk.Sources.CV_PRODUCT_FORM_SUBMISSION},event:{accountCountry:l?.country,accountPostCode:l?.schoolPostCode,accountState:pk.parseProvince(l.province),variant:b}},t={form_type:`trial-sign-up`,prospect_id:l?.prospectId};v({user:e,event:{eventType:ED.ProductFormEvent.FormSubmission,additionalData:t}})}async function O(){p(!0);let t;try{t=await eA.createTrial(d,{signupVariant:b,userType:a,email:m,prospectId:l?.prospectId,appLink:g,attribution:{...rf.getDecodedAttributionData(),utms:gf.getUtmParameters()},conversion:pk.getConversionName(pk.Conversions.START_FREE_TRIAL,e?.entryPage?.metadata?.conversionSuffix)})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}i===ck.UserAutoJoinAllowed&&s({},{actionType:BO.Click,descriptor:WO.AutoJoin}),_(`userId`,t.id),f({completionStep:`trial-status`,userId:t.id,trialCreated:!0,trialStatus:ck.Available,customerId:t.data?.customerId,...l}),D(),y&&y({masterId:t.id,email:m,countryCode:l?.country}),o()}return async function(){if(!t){if(!n()){r(`Something went wrong! Please try again later.`);return}if(h===ck.BdmTrialAvailable)return S();if(a===lk.Staff){if(i===ck.Unsupported)return x();if(i===ck.UserJoinApprovalRequired)return C();if(i===ck.UserAutoJoinAllowed&&u===kD.Lite)return await w()}return E()?await O():await T()}}}var tj=50;function nj(e){return e.toLowerCase().split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function rj(e){let t=[];return e.city&&t.push(nj(e.city)),e.province&&t.push(e.province),e.postCode&&t.push(e.postCode),t.join(` `)}function ij(e){let{filteredSchoolsList:t,getSchoolName:n,onSchoolSuggestionClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsxs)(Lf,{className:`${Uk.suggestionItem} ${i-1===t?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:[n(e),` `,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`small`,{className:`text-secondary`,children:rj(e)})]},e.id))})}function aj(e){return(0,Q.jsx)(`div`,{className:`info-link ${Uk.suggestionItem} ${Uk.noSuggestion} ${e.selected?Uk.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.handleNoSuggestion(),onMouseDown:e.handleNoSuggestion,onClick:e.handleNoSuggestion,children:`Can't find your school?`})}function oj(e){let t=Z.useRef(null),[n,r]=Z.useState(!0),[i,a]=Z.useState(e.data.schoolName&&e.data.schoolPostCode?e.data.schoolName+`, `+e.data.schoolPostCode:e.data.schoolName?e.data.schoolName:``),[o,s]=Z.useState(),c=lC(i,250),{selectedIndex:l,onKeyDown:u,containerRef:d,hide:f,onBlur:p,onFocus:m}=If({onSelected:h,itemCount:(o?.length??0)+1,hideOnBlur:e.hideOnBlur});function h(t){if(!o&&!t)return;if(t===o.length){e.onClickNoSuggestions(i);return}let n=o[t];n&&C(n)}let g=!!e.data?.prospectId,_=n&&!g,v=!n&&!g&&o?.length<tj,y=o?.length&&!g;Z.useEffect(()=>{if(!g){if(!c.length){S();return}if(!g&&c.length>1&&c===i){S(c);return}}},[c,g]);function b(t){(e.data.schoolName||e.data.prospectId)&&e.clearData(),t!==i&&a(t)}function x(){b(``),t.current.focus()}function S(t){if(!e.data.latitude&&!e.data.longitude){r(!1);return}r(!0);let n={latitude:e.data.latitude,longitude:e.data.longitude};t&&t.length&&(n.query=t),Zk.search(e.searchUrl,n,e=>s(e),null,()=>r(!1))}function C(t){a(w(t)),e.setData({prospectId:t.id,schoolName:t.name,schoolPostCode:t.postCode,schoolType:t.prospectType,province:t.province,city:t.city,country:t.countryCode})}function w(e){return e.name}let T=(y||_||v)&&!e.disabled&&!f,E=!_&&!v&&o?.length>=tj,D=`form-control`,O=`form-group position-relative text-start`;return e.size===`lg`&&(D+=` form-control-lg`,O+=` ${Uk.large}`),(0,Q.jsxs)(`div`,{className:O,children:[(0,Q.jsxs)(`label`,{className:e.labelClassName,htmlFor:`school-input`,children:[`School`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Ff,{id:`school-input`,value:i,onChange:e=>b(e.currentTarget.value),ref:t,className:D,type:`text`,autoComplete:`off`,placeholder:e.placeholder||`Search for your school`,disabled:e.disabled,autoFocus:!0,onClickClear:x,onKeyDown:u,onFocus:m,onBlur:p}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${Uk.dropdown} ${f?`d-none`:``}`,children:(0,Q.jsx)(`div`,{className:`${Uk.suggestionContainer} ${T?``:`d-none`}`,children:(0,Q.jsxs)(`div`,{className:Uk.suggestionContainerInner,ref:d,children:[y?(0,Q.jsx)(ij,{filteredSchoolsList:o,onSchoolSuggestionClick:C,getSchoolName:w,selectedIndex:l}):_&&(0,Q.jsx)(`div`,{className:`${Uk.suggestionLoading} py-4 d-flex justify-content-center`,children:(0,Q.jsx)(Ox,{animation:`border`})}),E&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`hr`,{className:`my-0`}),(0,Q.jsx)(`div`,{className:`${Uk.suggestionItem} ${Uk.noSuggestion} text-secondary text-center`,children:(0,Q.jsxs)(`small`,{children:[`Can't find your school? `,(0,Q.jsx)(`br`,{}),` Try searching to narrow the results`]})})]}),!_&&v&&(0,Q.jsx)(aj,{selected:l===o.length+1,handleNoSuggestion:()=>{e.onClickNoSuggestions(i)}})]})})})]})}function sj(e){return e?.toLowerCase()===`au`?`Enter your school postcode or suburb`:e?.toLowerCase()===`us`?`Enter your school ZIP code or city`:e?.toLowerCase()===`ca`?`Enter your school postal code or city`:`Enter your school postcode or city`}function cj(e){let{email:t,userType:n}=e,[r,i]=Z.useState({schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province,prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolPostCode:e.schoolPostCode}),[a,o]=Z.useState(e.trialStatus),[s,c]=Z.useState(),[l,u]=Z.useState(!1),[d,f]=Z.useState(!1),[p,m]=Z.useState(!1),h=ej({...e,prospectStatus:a,loading:l,data:r,canSubmitForm:_,setSubmissionError:c,logStepEvent:v,setLoadingState:y,setProperty:b});function g(){return!!(r&&r.schoolLocality&&r.longitude&&r.latitude)}function _(){if(!r||!t||!n)return!1;let{prospectId:e}=r;return!!(t&&n&&e)}function v(){let t={actionType:BO.Click,descriptor:WO.FindSchool,workflowPhase:UO.Next};e.logUserAction(r||{},t)}function y(e){f(e),m(e),u(e)}function b(t,n){t===`prospectId`&&n&&(u(!0),eA.checkProspectTrialStatus(e.ajaxUrls,{prospectId:n.toString(),email:e.email},e=>{o(e.status)},()=>{console.log(`error`)},()=>{u(!1)})),i(e=>({...e,[t]:n}))}function x(){b(`schoolLocality`,void 0),b(`longitude`,void 0),b(`latitude`,void 0),b(`city`,void 0),b(`province`,void 0),b(`country`,void 0),S()}function S(){b(`prospectId`,void 0),b(`schoolName`,``),b(`schoolPostCode`,void 0),c(void 0)}function C(t){e.nextStep({step:`cant-find-school`,prospectId:r.prospectId,schoolName:t,schoolLocality:r.schoolLocality,longitude:r.longitude,latitude:r.latitude,country:r.country,city:r.city,province:r.province}),e.logUserAction({},{actionType:BO.Click,descriptor:WO.CantFindSchool,workflowPhase:UO.Next})}function w(e){b(`prospectId`,e.prospectId),b(`schoolName`,e.schoolName),b(`schoolPostCode`,e.schoolPostCode),b(`schoolType`,e.schoolType),b(`province`,e.province),b(`city`,e.city),b(`country`,e.country)}function T(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&b(`longitude`,t),n&&b(`latitude`,n),i&&b(`country`,i),a&&b(`city`,a),o&&b(`province`,o),r&&b(`schoolLocality`,r)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's find your school`}),(0,Q.jsx)(`p`,{children:sj(e.geoLocation?.countryCode)}),(0,Q.jsx)(Gk,{data:r,setData:T,clearData:x,disabled:d,geoLocation:e.geoLocation,labelClassName:`d-none`,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!0,size:`lg`,useGeoLocationApi:!0}),g()&&(0,Q.jsx)(oj,{data:r,setData:w,clearData:S,disabled:p,searchUrl:e.ajaxUrls.searchProspect,onClickNoSuggestions:C,size:`lg`,labelClassName:`d-none`}),s&&(0,Q.jsx)(`p`,{className:`text-danger mb-2`,children:s}),_()&&(0,Q.jsx)(rk,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:d||p||l,disabled:d||p||l,children:`Get started`})]})}var lj=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function uj(e){let[t,n]=Z.useState(null);function r(e){if(!e)return;let t=window.location.pathname+window.location.search;window.location.href=`/challenge?idp=${e.id}&redirectUrl=`+encodeURIComponent(t)}function i(){e.logUserAction({},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:WO.SkipIdpSelect}),e.nextStep({step:`find-school`,email:e.email,userTrialStatus:e.userTrialStatus})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Does your school already have ClickView?`}),(0,Q.jsx)(`p`,{children:`Find your school from the list below`}),e.idps.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Bf,{id:`idp`,item:t,items:e.idps,onSelect:n,getName:e=>e.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!t,onClick:()=>r(t),children:`Continue`})]}):e.idps.map((e,t)=>(0,Q.jsx)(`button`,{className:`btn btn-lg w-100 mb-3`,onClick:()=>r(e),style:{backgroundColor:`#${lj[t%lj.length]}`,color:`#FFF`},children:e.name},t)),(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 no-sso-link`,onClick:i,children:`My school does not have ClickView`})]})}var dj={hoverArea:`_hoverArea_df2e1_1`,defaultImage:`_defaultImage_df2e1_1`,activeImage:`_activeImage_df2e1_1`,hoverImage:`_hoverImage_df2e1_4`,hoverIcon:`_hoverIcon_df2e1_13`};function fj(e){let{as:t=`div`,className:n,...r}=e;return(0,Q.jsx)(t,{className:nd(n,dj.hoverArea),...r,children:e.children})}function pj(e){return e.active?(0,Q.jsx)(`img`,{src:e.src.hovered,className:nd(dj.activeImage,e.className?.hovered)}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`img`,{src:e.src.default,className:nd(dj.defaultImage,e.className?.default)}),(0,Q.jsx)(`img`,{src:e.src.hovered,className:nd(dj.hoverImage,e.className?.hovered)})]})}function mj(e){return(0,Q.jsx)(`div`,{className:nd(dj.hoverIcon),children:(0,Q.jsx)(nC,{svg:e.svgIcon,size:e.svgSize,className:e.className})})}var hj={Area:fj,Image:pj,Icon:mj},gj={userTypeOption:`_userTypeOption_e39ge_1`,selected:`_selected_e39ge_4`,image:`_image_e39ge_8`};function _j(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(hj.Area,{as:Lf,className:`ratio ratio-1x1 d-none d-md-block`,onClick:()=>e.onClick(e.type),children:(0,Q.jsxs)(`div`,{className:nd(`d-flex flex-fill flex-column justify-content-center border rounded-3 mx-auto gap-3 p-3`,gj.userTypeOption,e.selected&&gj.selected),children:[(0,Q.jsx)(hj.Image,{active:e.selected,src:{default:e.defaultImageSrc,hovered:e.hoveredImageSrc},className:{default:nd(`rounded-top mx-auto pb-2 w-auto`,gj.image),hovered:nd(`rounded-top mx-auto pb-2 w-auto`,gj.image)}}),(0,Q.jsx)(`span`,{className:`h4`,children:e.buttonText})]})}),(0,Q.jsx)(Lf,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}var vj=function(e){return e.ClickView=`clickview`,e.ClickViewLive=`clickview-live`,e.Bundle=`bundle`,e}({}),yj={[NA.Popup]:{[vj.ClickViewLive]:{title:`Tune in to live programs without leaving the classroom`,description:`Let's get you set up so you can access ClickView Live. Who would you like to sign up as?`},[vj.ClickView]:{title:`Access thousands of standard-aligned videos`,description:`Let's get you set up so you can access ClickView. Who would you like to sign up as?`},[vj.Bundle]:{title:`Access thousands of standard-aligned videos`,description:`Let's get you set up so you can access ClickView. Who would you like to sign up as?`}},[NA.FullPage]:{[vj.ClickViewLive]:{title:`Let’s create your ClickView Live account`},[vj.ClickView]:{title:`Let’s create your ClickView account`},[vj.Bundle]:{title:`Let’s create your ClickView account`}}},bj={[NA.Popup]:{itemClassName:`col-md-6 col-lg-4 col-xl-5`,containerClassName:`col-11`,titleClassName:`h4`},[NA.FullPage]:{itemClassName:`col-12 col-md-6`,containerClassName:`col-10 col-xl-8`,titleClassName:`h2 mb-3`}};function xj(e){let{signupVariant:t}=e,{title:n,description:r}=yj[e.type][t];function i(t){if(e.logUserAction({userType:t},{actionType:BO.Click,workflowPhase:UO.Next,descriptor:t===lk.Staff?WO.Educator:WO.Student}),t===lk.Staff){e.nextStep({step:`enter-email`,userType:t});return}e.nextStep({step:`enter-age`,userType:t})}let a=bj[e.type];return(0,Q.jsx)(`div`,{className:`row justify-content-center`,children:(0,Q.jsxs)(`div`,{className:a.containerClassName,children:[(0,Q.jsx)(`h1`,{className:a.titleClassName,children:n}),r&&(0,Q.jsx)(`p`,{className:`mb-3`,children:r}),(0,Q.jsxs)(`div`,{className:`row justify-content-center text-center g-3`,children:[(0,Q.jsx)(`div`,{className:a.itemClassName,children:(0,Q.jsx)(_j,{type:lk.Staff,buttonText:`I am an educator`,defaultImageSrc:e.imageUrls.educator?.default,hoveredImageSrc:e.imageUrls.educator?.hovered,onClick:i,selected:e.userType===lk.Staff})}),(0,Q.jsx)(`div`,{className:a.itemClassName,children:(0,Q.jsx)(_j,{type:lk.Learner,buttonText:`I am a student`,defaultImageSrc:e.imageUrls.student?.default,hoveredImageSrc:e.imageUrls.student?.hovered,onClick:i,selected:e.userType===lk.Learner})})]})]})})}var Sj={"select-type":xj,"enter-email":JA,"find-school":cj,"cant-find-school":sA,completed:MA,"add-to-braze":mk,"enter-age":zA,"request-access":ZA,"request-bdm-trial":$A,"select-idp":uj};function Cj(e){let{state:t,geoLocation:n,layout:r,hasPreviousStep:i,googleMapsApiKey:a,pageAppLinkString:o,entryPage:s,back:c,nextStep:l,complete:u,logUserAction:d,logBrazeEvent:f,imageUrls:p,ajaxUrls:m,productName:h,getSignInUrl:g,globalIdps:_,createOrUpdateProfile:v,getCrmIdForProspect:y,signupVariant:b,type:x}=e,S=Sj[t.currentStepId],C={...t,geoLocation:n,googleMapsApiKey:a,pageAppLinkString:o,entryPage:s,back:c,nextStep:l,complete:u,logUserAction:d,imageUrls:p,ajaxUrls:m,productName:h,getSignInUrl:g,logBrazeEvent:f,globalIdps:_,createOrUpdateProfile:v,getCrmIdForProspect:y,signupVariant:b,type:x},w=r;if(!w)return(0,Q.jsx)(S,{...C});let T=KO.last(e.state.previousStepIds)===`completed`;return(0,Q.jsx)(w,{geoLocation:e.geoLocation,currentStep:t.currentStepId,previousStep:c,closeApp:e.close,logUserAction:d,hasPreviousStep:i,showBackButton:!T,imageUrls:e.imageUrls,getSignInUrl:g,children:(0,Q.jsx)(S,{...C})})}var wj=[`email`,`longitude`,`latitude`,`trialCreated`,`idps`],Tj={filterBlacklistedKeys(e){let t={...e};return wj.forEach(e=>delete t[e]),t}};function Ej(e){let t=[...e.previousStepIds],n=t.pop();return{...e,previousStepIds:t,currentStepId:n}}function Dj(e){return Object.entries(e).filter(([,e])=>e!==null).reduce((e,[t,n])=>({...e,[t]:n}),{})}function Oj(e,t){let n={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:t.step};if(t.step===`select-type`)return{...n};if(t.step===`enter-email`||t.step===`enter-age`)return{...n,userType:t.userType};if(t.step===`select-idp`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus,idps:t.idps};if(t.step===`find-school`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus};if(t.step===`cant-find-school`)return{...n,prospectId:t.prospectId,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province};if(t.step===`add-to-braze`||t.step===`completed`||t.step===`request-access`||t.step===`request-bdm-trial`){let e={...t};return delete e.type,delete e.step,e=Dj(e),{...n,...e}}}function kj(e,t){switch(t.type){case`nextStep`:return Oj(e,t);case`back`:return Ej(e)}}var Aj=({location:e,initialValues:t,entryPage:n,onStepUpdate:r,externalLogUserAction:i})=>{let a={currentStepId:`select-type`,previousStepIds:[],...pk.removeEmptyKeys(t)},[o,s]=Z.useReducer(kj,a);Z.useEffect(()=>{r?.(o)},[o.currentStepId]);function c(){s({type:`back`})}function l(e){s({type:`nextStep`,...e})}function u(e){s({type:`nextStep`,step:`completed`,...e})}function d(t,r){let a={...o,...t},s=Tj.filterBlacklistedKeys(a),c={currentStepId:o.currentStepId,...s};n&&(c.entryPage=n),i(Object.entries(c).filter(([,e])=>e!==void 0).reduce((e,[t,n])=>({...e,[t]:n}),{}),{entity:VO.SignUp,location:e,...r})}return{state:o,back:c,nextStep:l,complete:u,hasPreviousStep:!!o.previousStepIds.length,logUserAction:d}},jj={statusImages:{available:`/images/sign-up/available-v2.png`,active:`/images/sign-up/active-v2.png`,expired:`/images/sign-up/expired-v2.png`,notRequired:`/images/sign-up/active-v2.png`,unavailable:`/images/sign-up/unavailable-v2.png`,unsupported:`/images/sign-up/unavailable-v2.png`,autoJoin:`/images/sign-up/active-v2.png`,requestAccess:`/images/sign-up/active-v2.png`}};function Mj(e){let t={currentStepId:`find-school`,previousStepIds:[],email:e.email,userType:lk.Staff},n=e.geoLocation?.countryCode?e.geoLocation:{countryCode:$.US,isFallback:!0},{complete:r,...i}=Aj({location:HO.AuthProspectSelect,initialValues:t,externalLogUserAction:d}),[a,o]=Z.useState(null);Z.useEffect(()=>{xd.get(`/ajax/config`).then(e=>o(e))},[]);let s=AD(a?.gatewayApi),c=Z.useMemo(()=>{if(!a)return null;let e={cvApSoutheast1:a.analytics[KD.CvApSoutheast1].collectionApi,cvApSoutheast2:a.analytics[KD.CvApSoutheast2].collectionApi,cvEuWest1:a.analytics[KD.CvEuWest1].collectionApi,cvNaWest1:a.analytics[KD.CvNaWest1].collectionApi};return new zO({productName:`auth.web`,productVersion:a.version,regionName:tk.getRegionName(n?.countryCode),collectionApiUrls:e,collectionApiClientId:`cv_auth`,getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[a]),l=Z.useMemo(()=>{if(!a?.braze)return null;let e=a.braze[tk.getRegionName(n?.countryCode)];return new ED.BrazeClient({apiOptions:{apiKey:e.apiKey,baseUrl:e.url,productName:`auth.web`,productVersion:a.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[a]);DD({additionalData:e.additionalData});function u(e){if(!l)return;let t=rf.getDecodedAttributionData(),n=e.event?.additionalData||{};t?.originalReferrer&&(n.original_referrer=t.originalReferrer),t?.internalReferrer&&(n.internal_referrer=t.internalReferrer);let r={...e.event,additionalData:n};l.setUserInit(e.user),l.event.log(r)}function d(e,t){c?.log({type:t.actionType,data:e,actionContext:{productArea:`prospect_select`,entity:t.entity,location:t.location,descriptor:t.descriptor,workflowPhase:t.workflowPhase},eventVersion:t.eventVersion||GO.V1})}function f(t){if(!t.trialCreated){r(t);return}xd.post(`/ajax/login/select-customer`,{customerId:t.customerId,returnUrl:e.returnUrl}).then(t=>zd(t,e))}function p(){e.navigate({step:e.backStep,backStep:null})}async function m(e){try{return(await xd.get(s.prospectLookups(e))).find(e=>e.type===XA.CrmId)?.externalId}catch{return}}if(!a)return(0,Q.jsx)(Q.Fragment,{});let h={...i,type:NA.FullPage,signupVariant:vj.ClickView,complete:f,googleMapsApiKey:a.googleMapsApiKey,ajaxUrls:s,imageUrls:jj,geoLocation:n,productName:kD.Auth,getSignInUrl:()=>``,logBrazeEvent:u,getCrmIdForProspect:m};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(rd,{theme:e.theme,onClickBack:!!e.backStep&&p}),(0,Q.jsx)(Cj,{...h})]})}function Nj(e){return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(rd,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/email-not-allowed-v2.png`}),(0,Q.jsx)(`h1`,{className:`h2 mb-3`,children:`Oops! Make sure to use your school email address`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`This includes the email you use to sign in to Google or Microsoft.`}),(0,Q.jsx)(`a`,{href:e.liteUrl+`sign-up`,className:`btn btn-lg btn-dark w-100 text-decoration-none`,children:`Try again`})]})}var Pj={username:Zu,"username-input":wf,"username-or-guest":Tf,"guest-selection":Wf,password:Jf,"select-idp":Xf,error:jC,"verify-email":np,"verify-email-check-code":lp,"verify-email-link-success":dp,"verify-email-skip-reason":IC,"forgot-password":fp,"forgot-password-check-code":pp,"reset-password":wC,"change-password":TC,"self-activation":EC,"self-activation-check-code":DC,"verify-email-link-email-in-use":NC,"verify-email-code-email-in-use":PC,logout:LC,loggedout:RC,"activate-user":TE,"select-customer":kE,"trial-expired":LE,"link-account":_D,"link-account-code":vD,invite:SD,"invite-success":CD,"select-user-type":TD,"prospect-select":Mj,"email-not-allowed":Nj,"organisation-select-customer":zC,"contact-support":AC};function Fj(e,t){if(t.type!==`navigate`)return e;let n=Object.keys(t.data).reduce((e,n)=>{if(n!==`bannerType`)return t.data[n]!==void 0&&(e={...e,[n]:t.data[n]}),e},{});return t.data.clearUsername&&(n.username=void 0,n.clearUsername=void 0),{...e,...n}}function Ij(e,t){return t.type===`setBanner`?{...e,bannerType:t.data.bannerType}:e}function Lj(e,t){switch(t.type){case`navigate`:return Fj(e,t);case`setBanner`:return Ij(e,t)}}var Rj={footer:`_footer_psbd8_1`};function zj(e){return(0,Q.jsx)(`div`,{className:`text-center p-2 text-secondary small`,children:(0,Q.jsxs)(`ul`,{className:`d-flex flex-wrap list-unstyled justify-content-center`,children:[(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(`span`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView Pty Limited`]})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.privacyPolicyUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Privacy Policy`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.termsAndConditionsUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Terms and Conditions`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`span`,{children:e.version})})]})})}function Bj(e){return(0,Q.jsx)(`footer`,{className:Rj.footer,children:(0,Q.jsx)(zj,{...e})})}var Vj=`M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z`;function Hj(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:Vj}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})}var Uj=function(e){return e[e.Audience=1]=`Audience`,e[e.Category=2]=`Category`,e[e.Channel=3]=`Channel`,e[e.Chapter=4]=`Chapter`,e[e.Comment=5]=`Comment`,e[e.OwnerComment=6]=`OwnerComment`,e[e.Image=7]=`Image`,e[e.Thumbnail=8]=`Thumbnail`,e[e.Avatar=9]=`Avatar`,e[e.Banner=10]=`Banner`,e[e.Video=11]=`Video`,e[e.Trailer=12]=`Trailer`,e[e.Rating=13]=`Rating`,e[e.Topic=14]=`Topic`,e[e.Series=15]=`Series`,e[e.Season=16]=`Season`,e[e.HostedMediaObjectCollection=17]=`HostedMediaObjectCollection`,e[e.ExchangeCollection=18]=`ExchangeCollection`,e[e.CustomMediaObjectCollection=19]=`CustomMediaObjectCollection`,e[e.Playlist=20]=`Playlist`,e[e.ClickViewTvCollection=21]=`ClickViewTvCollection`,e[e.ClickViewProductionsCollection=22]=`ClickViewProductionsCollection`,e[e.User=23]=`User`,e[e.SystemUser=24]=`SystemUser`,e[e.Customer=25]=`Customer`,e[e.Country=26]=`Country`,e[e.Organisation=28]=`Organisation`,e[e.SystemOrganisation=29]=`SystemOrganisation`,e[e.Group=30]=`Group`,e[e.SystemGroup=31]=`SystemGroup`,e[e.FlagReason=32]=`FlagReason`,e[e.Library=33]=`Library`,e[e.Interactive=34]=`Interactive`,e[e.WorkspaceCollection=35]=`WorkspaceCollection`,e[e.Conversation=36]=`Conversation`,e[e.Message=37]=`Message`,e[e.Notification=38]=`Notification`,e[e.Clip=39]=`Clip`,e[e.Link=40]=`Link`,e[e.UserChannel=41]=`UserChannel`,e[e.Resource=42]=`Resource`,e[e.VideoStream=43]=`VideoStream`,e[e.AudioStream=44]=`AudioStream`,e[e.Tag=45]=`Tag`,e[e.Subtitle=46]=`Subtitle`,e[e.LicencedContentCollection=47]=`LicencedContentCollection`,e[e.PublicCollection=48]=`PublicCollection`,e[e.CategoryTree=49]=`CategoryTree`,e[e.Logo=50]=`Logo`,e[e.Permission=51]=`Permission`,e[e.Subject=52]=`Subject`,e[e.Field=53]=`Field`,e[e.Company=54]=`Company`,e[e.Person=55]=`Person`,e[e.Cover=56]=`Cover`,e[e.Poster=57]=`Poster`,e[e.SubjectAudience=58]=`SubjectAudience`,e[e.TallPoster=60]=`TallPoster`,e[e.Classroom=67]=`Classroom`,e[e.ClassroomGroup=68]=`ClassroomGroup`,e[e.UserProfile=74]=`UserProfile`,e[e.PartnerProfile=78]=`PartnerProfile`,e[e.LearningLevel=79]=`LearningLevel`,e}({}),Wj={left:`_left_1r3w0_1`,leftWithImage:`_leftWithImage_1r3w0_10`,bgCover:`_bgCover_1r3w0_14`,bgFull:`_bgFull_1r3w0_17`,right:`_right_1r3w0_20`,rightContent:`_rightContent_1r3w0_28`,narrowContent:`_narrowContent_1r3w0_34`,logo:`_logo_1r3w0_37`,buttonContainer:`_buttonContainer_1r3w0_43`,blur:`_blur_1r3w0_53`,imageContainer:`_imageContainer_1r3w0_65`,imagePosition:`_imagePosition_1r3w0_73`,image:`_image_1r3w0_65`,thumbnail:`_thumbnail_1r3w0_87`,tallposter:`_tallposter_1r3w0_90`,cover:`_cover_1r3w0_96`,contentBody:`_contentBody_1r3w0_102`,contentBodyBase:`_contentBodyBase_1r3w0_106`};function Gj(e){switch(e){case Uj.Video:case Uj.Interactive:case Uj.Clip:return Wj.thumbnail;case Uj.Subject:case Uj.Playlist:return Wj.cover;case Uj.Series:return Wj.tallposter;default:return``}}function Kj(e){return(0,Q.jsx)(`div`,{className:`d-flex`,children:e.children})}function qj(e){return(0,Q.jsx)(`div`,{className:`${Wj.left} ${e.className?e.className:``}`,children:e.children})}function Jj(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(``);return Z.useEffect(()=>{if(!e.imageUrl){let t=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];i(t.bgUrl);return}let t=new Image;return t.onload=()=>n(!0),t.src=e.imageUrl,()=>t.onload=null},[e.imageUrl]),(0,Q.jsx)(`div`,{className:`${Wj.left} ${Wj.leftWithImage} ${Wj.bgCover} bg-light`,style:{backgroundImage:r?`url('${r}')`:``},children:t&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:Wj.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),(0,Q.jsx)(`div`,{className:`${Wj.imageContainer} ${Gj(e.objectType)}`,children:(0,Q.jsx)(`div`,{className:Wj.imagePosition,children:(0,Q.jsx)(`img`,{className:Wj.image,src:e.imageUrl,alt:e.title})})})]})})}function Yj(e){let[t,n]=Z.useState(``);return Z.useEffect(()=>{let t=e.images[Math.floor(Math.random()*e.images.length)];n(t.bgUrl)},[]),(0,Q.jsx)(`div`,{className:`${Wj.left} bg-blue d-flex align-items-center`,children:t&&(0,Q.jsx)(`img`,{className:`img-fluid`,src:t,draggable:!1})})}var Xj={cover:Wj.bgCover,full:Wj.bgFull};function Zj(e){let t={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:``};return e.backgroundColor&&(t.backgroundColor=e.backgroundColor),(0,Q.jsx)(`div`,{className:`${Wj.left} ${Wj.leftWithImage} ${Xj[e.imageSize||`cover`]} d-flex align-items-center`,style:t,title:e.title})}function Qj(e){return(0,Q.jsx)(`div`,{className:`${Wj.right} ${e.className?e.className:``}`,children:e.children})}function $j(e){let t=e?.logoComponent||Hj;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[!!e.bannerComponent&&e.bannerComponent,(0,Q.jsx)(`div`,{className:nd(Wj.logo,`position-absolute`,e.className?.logoContainer),children:(0,Q.jsx)(t,{})}),e.children]})}function eM(e){return(0,Q.jsx)(`div`,{className:nd(Wj.rightContent,`d-flex flex-column justify-content-center h-100`,e?.className),children:e.children})}var tM={base:Wj.contentBodyBase,full:``};function nM(e){let t=tM[e.width||`base`];return(0,Q.jsx)(`div`,{className:nd(Wj.contentBody,t,`m-auto p-3`,e.className),children:e.children})}Kj.NarrowContent=rM;function rM(e){return(0,Q.jsx)(`div`,{className:`${Wj.narrowContent} mx-auto w-100 ${e.className?e.className:``}`,children:e.children})}function iM(e){return(0,Q.jsx)(`div`,{className:nd(`position-fixed bg-white d-flex align-items-center`,Wj.buttonContainer,e?.className),children:e.children})}Kj.Left=qj,Kj.LeftImage=Jj,Kj.LeftProductImage=Yj,Kj.LeftImageWithBackground=Zj,Kj.Right=Qj,Kj.Header=$j,Kj.Content=eM,Kj.ContentBody=nM,Kj.Buttons=iM;function aM(){function e(n){n.key===`Tab`&&(document.body.classList.add(`user-is-tabbing`),window.removeEventListener(`keydown`,e),window.addEventListener(`mousedown`,t))}function t(){document.body.classList.remove(`user-is-tabbing`),window.removeEventListener(`mousedown`,t),window.addEventListener(`keydown`,e)}(0,Z.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}var oM={full:`_full_vw1kz_1`,themeBannerClearance:`_themeBannerClearance_vw1kz_9`};function sM(e){return e.imageType===`background`?(0,Q.jsx)(Kj.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType===`image`?(0,Q.jsx)(Kj.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:`full`,backgroundColor:e.backgroundColor,title:e.title}):(0,Q.jsx)(Q.Fragment,{})}function cM(e){let{children:t,footer:n,bannerType:r,theme:i}=e,[a,o]=Z.useState(null);aM();let{imageUrls:s,imageType:c,backgroundColor:l,banner:u,title:d,logoComponent:f,bannerSpacer:p}=Ld.getDefinition(i),m=s[e.geoLocation?.countryCode?.toLowerCase()]||s.default;Z.useEffect(()=>{let e=Math.floor(Math.random()*m.length);o(m[e])},[]);let h=c!==`none`,g=!!r,_=[`plugin`].includes(r);return(0,Q.jsxs)(Kj,{children:[h&&(0,Q.jsx)(sM,{title:d,imageUrl:a,imageType:c,backgroundColor:l}),(0,Q.jsxs)(Kj.Right,{className:nd(!h&&oM.full),children:[(0,Q.jsx)(Kj.Header,{bannerComponent:!!u&&(0,Q.jsx)(Cd,{bannerType:u}),logoComponent:f,className:{logoContainer:!!u&&oM.themeBannerClearance}}),(0,Q.jsxs)(Kj.Content,{className:nd(!h&&`px-0 w-100`,`pb-0`),children:[!_&&(0,Q.jsx)(Cd,{bannerType:r}),(0,Q.jsxs)(Kj.ContentBody,{children:[t,!_&&g&&(0,Q.jsx)(p,{})]}),(0,Q.jsx)(Bj,{...n})]})]})]})}function lM(e){let{step:t,returnUrl:n,data:r={},footer:i,geoLocation:a,theme:o,additionalData:s}=e,[c,l]=Z.useReducer(Lj,{step:t,returnUrl:n,geoLocation:a,theme:o,additionalData:s,...r});function u(e){l({type:`navigate`,data:e})}let d=Pj[c.step];return d||zd({step:t,data:r},null),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(cM,{footer:{...i,...c},bannerType:c.bannerType,step:t,theme:o,geoLocation:a,children:!!d&&(0,Q.jsx)(d,{navigate:u,dispatch:l,...c})}),!1]})}function uM(e){let{id:t,returnUrl:n,footer:r,region:i,config:a,theme:o,additionalData:s}=e,c=e.currentStep||{};(0,Gu.createRoot)(document.getElementById(t)).render((0,Q.jsx)(lM,{returnUrl:n,step:c.step,data:{...a,...c.data},footer:r,geoLocation:i,theme:c.data?.theme||o,additionalData:s}))}window.cvauth={start:uM};
|
|
61
|
+
//# sourceMappingURL=index-CXuKH4On.js.map
|