@thoughtspot/visual-embed-sdk 1.32.4-dc.5 → 1.32.4-dc.7
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/cjs/package.json +4 -3
- package/cjs/src/embed/base.d.ts +2 -0
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +2 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/index.d.ts +2 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +24 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +34 -8
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/cjs/src/utils/liveboardService/liveboardService.js +45 -0
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -0
- package/dist/src/embed/base.d.ts +2 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +74 -10
- package/dist/tsembed-react.js +74 -10
- package/dist/tsembed.es.js +115 -11
- package/dist/tsembed.js +115 -10
- package/dist/visual-embed-sdk-react-full.d.ts +7 -1
- package/dist/visual-embed-sdk-react.d.ts +7 -1
- package/dist/visual-embed-sdk.d.ts +7 -1
- package/lib/package.json +4 -3
- package/lib/src/embed/base.d.ts +2 -0
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +2 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +23 -0
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +34 -8
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/lib/src/utils/liveboardService/liveboardService.js +41 -0
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -0
- package/lib/src/visual-embed-sdk.d.ts +11 -1
- package/package.json +4 -3
- package/src/embed/base.ts +2 -0
- package/src/index.ts +2 -0
- package/src/utils/graphql/answerService/answer-queries.ts +24 -0
- package/src/utils/graphql/answerService/answerService.ts +49 -10
- package/src/utils/liveboardService/liveboardService.ts +51 -0
- package/dist/assets/main-DT_ac2DB.js +0 -264
- package/dist/local/index.html +0 -34
- package/dist/src/utils/graphql/conversationService/conversation-queries.d.ts +0 -3
- package/dist/src/utils/graphql/conversationService/conversation-queries.d.ts.map +0 -1
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts +0 -12
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts.map +0 -1
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
function Yp(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kc={exports:{}},j={};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var Wl=Object.getOwnPropertySymbols,Jp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable;function eh(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function th(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Qc=th()?Object.assign:function(e,t){for(var r,n=eh(e),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var s in r)Jp.call(r,s)&&(n[s]=r[s]);if(Wl){i=Wl(r);for(var a=0;a<i.length;a++)Zp.call(r,i[a])&&(n[i[a]]=r[i[a]])}}return n};/** @license React v16.14.0
|
|
6
|
-
* react.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var Ta=Qc,Ue=typeof Symbol=="function"&&Symbol.for,Hn=Ue?Symbol.for("react.element"):60103,rh=Ue?Symbol.for("react.portal"):60106,nh=Ue?Symbol.for("react.fragment"):60107,ih=Ue?Symbol.for("react.strict_mode"):60108,oh=Ue?Symbol.for("react.profiler"):60114,sh=Ue?Symbol.for("react.provider"):60109,ah=Ue?Symbol.for("react.context"):60110,lh=Ue?Symbol.for("react.forward_ref"):60112,uh=Ue?Symbol.for("react.suspense"):60113,ch=Ue?Symbol.for("react.memo"):60115,fh=Ue?Symbol.for("react.lazy"):60116,ql=typeof Symbol=="function"&&Symbol.iterator;function Bn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yc={};function zr(e,t,r){this.props=e,this.context=t,this.refs=Yc,this.updater=r||Xc}zr.prototype.isReactComponent={};zr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Bn(85));this.updater.enqueueSetState(this,e,t,"setState")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jc(){}Jc.prototype=zr.prototype;function Ca(e,t,r){this.props=e,this.context=t,this.refs=Yc,this.updater=r||Xc}var ka=Ca.prototype=new Jc;ka.constructor=Ca;Ta(ka,zr.prototype);ka.isPureReactComponent=!0;var xa={current:null},Zc=Object.prototype.hasOwnProperty,ef={key:!0,ref:!0,__self:!0,__source:!0};function tf(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Zc.call(t,n)&&!ef.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Hn,type:e,key:o,ref:s,props:i,_owner:xa.current}}function dh(e,t){return{$$typeof:Hn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ia(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hn}function ph(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(r){return t[r]})}var rf=/\/+/g,Pi=[];function nf(e,t,r,n){if(Pi.length){var i=Pi.pop();return i.result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function of(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Pi.length&&Pi.push(e)}function ys(e,t,r,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hn:case rh:o=!0}}if(o)return r(n,e,t===""?"."+Bo(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var a=t+Bo(i,s);o+=ys(i,a,r,n)}else if(e===null||typeof e!="object"?a=null:(a=ql&&e[ql]||e["@@iterator"],a=typeof a=="function"?a:null),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=t+Bo(i,s++),o+=ys(i,a,r,n);else if(i==="object")throw r=""+e,Error(Bn(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return o}function Ss(e,t,r){return e==null?0:ys(e,"",t,r)}function Bo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ph(e.key):t.toString(36)}function hh(e,t){e.func.call(e.context,t,e.count++)}function gh(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ws(e,n,r,function(o){return o}):e!=null&&(Ia(e)&&(e=dh(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(rf,"$&/")+"/")+r)),n.push(e))}function ws(e,t,r,n,i){var o="";r!=null&&(o=(""+r).replace(rf,"$&/")+"/"),t=nf(t,o,n,i),Ss(e,gh,t),of(t)}var sf={current:null};function at(){var e=sf.current;if(e===null)throw Error(Bn(321));return e}var mh={ReactCurrentDispatcher:sf,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:xa,IsSomeRendererActing:{current:!1},assign:Ta};j.Children={map:function(e,t,r){if(e==null)return e;var n=[];return ws(e,n,null,t,r),n},forEach:function(e,t,r){if(e==null)return e;t=nf(null,null,t,r),Ss(e,hh,t),of(t)},count:function(e){return Ss(e,function(){return null},null)},toArray:function(e){var t=[];return ws(e,t,null,function(r){return r}),t},only:function(e){if(!Ia(e))throw Error(Bn(143));return e}};j.Component=zr;j.Fragment=nh;j.Profiler=oh;j.PureComponent=Ca;j.StrictMode=ih;j.Suspense=uh;j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mh;j.cloneElement=function(e,t,r){if(e==null)throw Error(Bn(267,e));var n=Ta({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=xa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Zc.call(t,l)&&!ef.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:Hn,type:e.type,key:i,ref:o,props:n,_owner:s}};j.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:ah,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:sh,_context:e},e.Consumer=e};j.createElement=tf;j.createFactory=function(e){var t=tf.bind(null,e);return t.type=e,t};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:lh,render:e}};j.isValidElement=Ia;j.lazy=function(e){return{$$typeof:fh,_ctor:e,_status:-1,_result:null}};j.memo=function(e,t){return{$$typeof:ch,type:e,compare:t===void 0?null:t}};j.useCallback=function(e,t){return at().useCallback(e,t)};j.useContext=function(e,t){return at().useContext(e,t)};j.useDebugValue=function(){};j.useEffect=function(e,t){return at().useEffect(e,t)};j.useImperativeHandle=function(e,t,r){return at().useImperativeHandle(e,t,r)};j.useLayoutEffect=function(e,t){return at().useLayoutEffect(e,t)};j.useMemo=function(e,t){return at().useMemo(e,t)};j.useReducer=function(e,t,r){return at().useReducer(e,t,r)};j.useRef=function(e){return at().useRef(e)};j.useState=function(e){return at().useState(e)};j.version="16.14.0";Kc.exports=j;var Cr=Kc.exports;const dn=zn(Cr);var af={exports:{}},Le={},lf={exports:{}},uf={};/** @license React v0.19.1
|
|
13
|
-
* scheduler.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/(function(e){var t,r,n,i,o;if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,a=null,l=function(){if(s!==null)try{var I=e.unstable_now();s(!0,I),s=null}catch(O){throw setTimeout(l,0),O}},u=Date.now();e.unstable_now=function(){return Date.now()-u},t=function(I){s!==null?setTimeout(t,0,I):(s=I,setTimeout(l,0))},r=function(I,O){a=setTimeout(I,O)},n=function(){clearTimeout(a)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var p=window.performance,h=window.Date,g=window.setTimeout,_=window.clearTimeout;if(typeof console<"u"){var v=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof p=="object"&&typeof p.now=="function")e.unstable_now=function(){return p.now()};else{var x=h.now();e.unstable_now=function(){return h.now()-x}}var f=!1,d=null,m=-1,y=5,T=0;i=function(){return e.unstable_now()>=T},o=function(){},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):y=0<I?Math.floor(1e3/I):5};var w=new MessageChannel,b=w.port2;w.port1.onmessage=function(){if(d!==null){var I=e.unstable_now();T=I+y;try{d(!0,I)?b.postMessage(null):(f=!1,d=null)}catch(O){throw b.postMessage(null),O}}else f=!1},t=function(I){d=I,f||(f=!0,b.postMessage(null))},r=function(I,O){m=g(function(){I(e.unstable_now())},O)},n=function(){_(m),m=-1}}function R(I,O){var M=I.length;I.push(O);e:for(;;){var X=M-1>>>1,ee=I[X];if(ee!==void 0&&0<_e(ee,O))I[X]=O,I[M]=ee,M=X;else break e}}function P(I){return I=I[0],I===void 0?null:I}function k(I){var O=I[0];if(O!==void 0){var M=I.pop();if(M!==O){I[0]=M;e:for(var X=0,ee=I.length;X<ee;){var jt=2*(X+1)-1,zt=I[jt],en=jt+1,pr=I[en];if(zt!==void 0&&0>_e(zt,M))pr!==void 0&&0>_e(pr,zt)?(I[X]=pr,I[en]=M,X=en):(I[X]=zt,I[jt]=M,X=jt);else if(pr!==void 0&&0>_e(pr,M))I[X]=pr,I[en]=M,X=en;else break e}}return O}return null}function _e(I,O){var M=I.sortIndex-O.sortIndex;return M!==0?M:I.id-O.id}var Te=[],ct=[],Qp=1,he=null,ae=3,Zn=!1,Ut=!1,Zr=!1;function ei(I){for(var O=P(ct);O!==null;){if(O.callback===null)k(ct);else if(O.startTime<=I)k(ct),O.sortIndex=O.expirationTime,R(Te,O);else break;O=P(ct)}}function zo(I){if(Zr=!1,ei(I),!Ut)if(P(Te)!==null)Ut=!0,t(Ho);else{var O=P(ct);O!==null&&r(zo,O.startTime-I)}}function Ho(I,O){Ut=!1,Zr&&(Zr=!1,n()),Zn=!0;var M=ae;try{for(ei(O),he=P(Te);he!==null&&(!(he.expirationTime>O)||I&&!i());){var X=he.callback;if(X!==null){he.callback=null,ae=he.priorityLevel;var ee=X(he.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?he.callback=ee:he===P(Te)&&k(Te),ei(O)}else k(Te);he=P(Te)}if(he!==null)var jt=!0;else{var zt=P(ct);zt!==null&&r(zo,zt.startTime-O),jt=!1}return jt}finally{he=null,ae=M,Zn=!1}}function Gl(I){switch(I){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Xp=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){Ut||Zn||(Ut=!0,t(Ho))},e.unstable_getCurrentPriorityLevel=function(){return ae},e.unstable_getFirstCallbackNode=function(){return P(Te)},e.unstable_next=function(I){switch(ae){case 1:case 2:case 3:var O=3;break;default:O=ae}var M=ae;ae=O;try{return I()}finally{ae=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Xp,e.unstable_runWithPriority=function(I,O){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var M=ae;ae=I;try{return O()}finally{ae=M}},e.unstable_scheduleCallback=function(I,O,M){var X=e.unstable_now();if(typeof M=="object"&&M!==null){var ee=M.delay;ee=typeof ee=="number"&&0<ee?X+ee:X,M=typeof M.timeout=="number"?M.timeout:Gl(I)}else M=Gl(I),ee=X;return M=ee+M,I={id:Qp++,callback:O,priorityLevel:I,startTime:ee,expirationTime:M,sortIndex:-1},ee>X?(I.sortIndex=ee,R(ct,I),P(Te)===null&&I===P(ct)&&(Zr?n():Zr=!0,r(zo,ee-X))):(I.sortIndex=M,R(Te,I),Ut||Zn||(Ut=!0,t(Ho))),I},e.unstable_shouldYield=function(){var I=e.unstable_now();ei(I);var O=P(Te);return O!==he&&he!==null&&O!==null&&O.callback!==null&&O.startTime<=I&&O.expirationTime<he.expirationTime||i()},e.unstable_wrapCallback=function(I){var O=ae;return function(){var M=ae;ae=O;try{return I.apply(this,arguments)}finally{ae=M}}}})(uf);lf.exports=uf;var vh=lf.exports;/** @license React v16.14.0
|
|
20
|
-
* react-dom.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var mo=Cr,me=Qc,oe=vh;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!mo)throw Error(C(227));function _h(e,t,r,n,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(p){this.onError(p)}}var mn=!1,Oi=null,Ri=!1,Es=null,yh={onError:function(e){mn=!0,Oi=e}};function Sh(e,t,r,n,i,o,s,a,l){mn=!1,Oi=null,_h.apply(yh,arguments)}function wh(e,t,r,n,i,o,s,a,l){if(Sh.apply(this,arguments),mn){if(mn){var u=Oi;mn=!1,Oi=null}else throw Error(C(198));Ri||(Ri=!0,Es=u)}}var ba=null,cf=null,ff=null;function Kl(e,t,r){var n=e.type||"unknown-event";e.currentTarget=ff(r),wh(n,t,void 0,e),e.currentTarget=null}var Li=null,hr={};function df(){if(Li)for(var e in hr){var t=hr[e],r=Li.indexOf(e);if(!(-1<r))throw Error(C(96,e));if(!Di[r]){if(!t.extractEvents)throw Error(C(97,e));Di[r]=t,r=t.eventTypes;for(var n in r){var i=void 0,o=r[n],s=t,a=n;if(Ts.hasOwnProperty(a))throw Error(C(99,a));Ts[a]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&Ql(l[i],s,a);i=!0}else o.registrationName?(Ql(o.registrationName,s,a),i=!0):i=!1;if(!i)throw Error(C(98,n,e))}}}}function Ql(e,t,r){if(Rr[e])throw Error(C(100,e));Rr[e]=t,Aa[e]=t.eventTypes[r].dependencies}var Di=[],Ts={},Rr={},Aa={};function pf(e){var t=!1,r;for(r in e)if(e.hasOwnProperty(r)){var n=e[r];if(!hr.hasOwnProperty(r)||hr[r]!==n){if(hr[r])throw Error(C(102,r));hr[r]=n,t=!0}}t&&df()}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=null,kr=null,xr=null;function Xl(e){if(e=cf(e)){if(typeof Cs!="function")throw Error(C(280));var t=e.stateNode;t&&(t=ba(t),Cs(e.stateNode,e.type,t))}}function hf(e){kr?xr?xr.push(e):xr=[e]:kr=e}function gf(){if(kr){var e=kr,t=xr;if(xr=kr=null,Xl(e),t)for(e=0;e<t.length;e++)Xl(t[e])}}function Pa(e,t){return e(t)}function mf(e,t,r,n,i){return e(t,r,n,i)}function Oa(){}var vf=Pa,Wt=!1,Vo=!1;function Ra(){(kr!==null||xr!==null)&&(Oa(),gf())}function _f(e,t,r){if(Vo)return e(t,r);Vo=!0;try{return vf(e,t,r)}finally{Vo=!1,Ra()}}var Eh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yl=Object.prototype.hasOwnProperty,Jl={},Zl={};function Th(e){return Yl.call(Zl,e)?!0:Yl.call(Jl,e)?!1:Eh.test(e)?Zl[e]=!0:(Jl[e]=!0,!1)}function Ch(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kh(e,t,r,n){if(t===null||typeof t>"u"||Ch(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ve(e,t,r,n,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ve(e,0,!1,e,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ve(t,1,!1,e[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ve(e,2,!1,e.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ve(e,2,!1,e,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){se[e]=new ve(e,3,!1,e.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ve(e,3,!0,e,null,!1)});["capture","download"].forEach(function(e){se[e]=new ve(e,4,!1,e,null,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ve(e,6,!1,e,null,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ve(e,5,!1,e.toLowerCase(),null,!1)});var La=/[\-:]([a-z])/g;function Da(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(La,Da);se[t]=new ve(t,1,!1,e,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(La,Da);se[t]=new ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(La,Da);se[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ve(e,1,!1,e.toLowerCase(),null,!1)});se.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(e){se[e]=new ve(e,1,!1,e.toLowerCase(),null,!0)});var Me=mo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Me.hasOwnProperty("ReactCurrentDispatcher")||(Me.ReactCurrentDispatcher={current:null});Me.hasOwnProperty("ReactCurrentBatchConfig")||(Me.ReactCurrentBatchConfig={suspense:null});function Na(e,t,r,n){var i=se.hasOwnProperty(t)?se[t]:null,o=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(kh(t,r,i,n)&&(r=null),n||i===null?Th(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var xh=/^(.*)[\\\/]/,Ee=typeof Symbol=="function"&&Symbol.for,ri=Ee?Symbol.for("react.element"):60103,gr=Ee?Symbol.for("react.portal"):60106,Gt=Ee?Symbol.for("react.fragment"):60107,yf=Ee?Symbol.for("react.strict_mode"):60108,hi=Ee?Symbol.for("react.profiler"):60114,Sf=Ee?Symbol.for("react.provider"):60109,wf=Ee?Symbol.for("react.context"):60110,Ih=Ee?Symbol.for("react.concurrent_mode"):60111,$a=Ee?Symbol.for("react.forward_ref"):60112,gi=Ee?Symbol.for("react.suspense"):60113,ks=Ee?Symbol.for("react.suspense_list"):60120,Ma=Ee?Symbol.for("react.memo"):60115,Ef=Ee?Symbol.for("react.lazy"):60116,Tf=Ee?Symbol.for("react.block"):60121,eu=typeof Symbol=="function"&&Symbol.iterator;function tn(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}function bh(e){if(e._status===-1){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}}function it(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 Gt:return"Fragment";case gr:return"Portal";case hi:return"Profiler";case yf:return"StrictMode";case gi:return"Suspense";case ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wf:return"Context.Consumer";case Sf:return"Context.Provider";case $a:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ma:return it(e.type);case Tf:return it(e.render);case Ef:if(e=e._status===1?e._result:null)return it(e)}return null}function Fa(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,i=e._debugSource,o=it(e.type);r=null,n&&(r=it(n.type)),n=o,o="",i?o=" (at "+i.fileName.replace(xh,"")+":"+i.lineNumber+")":r&&(o=" (created by "+r+")"),r=`
|
|
27
|
-
in `+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}function Pt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ah(e){var t=Cf(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ni(e){e._valueTracker||(e._valueTracker=Ah(e))}function kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Cf(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function xs(e,t){var r=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function tu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pt(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xf(e,t){t=t.checked,t!=null&&Na(e,"checked",t,!1)}function Is(e,t){xf(e,t);var r=Pt(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bs(e,t.type,r):t.hasOwnProperty("defaultValue")&&bs(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ru(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bs(e,t,r){(t!=="number"||e.ownerDocument.activeElement!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ph(e){var t="";return mo.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function As(e,t){return e=me({children:void 0},t),(t=Ph(t.children))&&(e.children=t),e}function Ir(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Pt(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ps(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(C(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(C(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pt(r)}}function If(e,t){var r=Pt(t.value),n=Pt(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function iu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var bf={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Af(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 Os(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Af(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,Pf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==bf.svg||"innerHTML"in e)e.innerHTML=t;else{for(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function In(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function oi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mr={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionend:oi("Transition","TransitionEnd")},Go={},Of={};Nt&&(Of=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);function vo(e){if(Go[e])return Go[e];if(!mr[e])return e;var t=mr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Of)return Go[e]=t[r];return e}var Rf=vo("animationend"),Lf=vo("animationiteration"),Df=vo("animationstart"),Nf=vo("transitionend"),pn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ou=new(typeof WeakMap=="function"?WeakMap:Map);function Ua(e){var t=ou.get(e);return t===void 0&&(t=new Map,ou.set(e,t)),t}function dr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.effectTag&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function $f(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 su(e){if(dr(e)!==e)throw Error(C(188))}function Oh(e){var t=e.alternate;if(!t){if(t=dr(e),t===null)throw Error(C(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return su(i),e;if(o===n)return su(i),t;o=o.sibling}throw Error(C(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(C(189))}}if(r.alternate!==n)throw Error(C(190))}if(r.tag!==3)throw Error(C(188));return r.stateNode.current===r?e:t}function Mf(e){if(e=Oh(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Lr(e,t){if(t==null)throw Error(C(30));return e==null?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ja(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var rn=null;function Rh(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)Kl(e,t[n],r[n]);else t&&Kl(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function _o(e){if(e!==null&&(rn=Lr(rn,e)),e=rn,rn=null,e){if(ja(e,Rh),rn)throw Error(C(95));if(Ri)throw e=Es,Ri=!1,Es=null,e}}function za(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Ff(e){if(!Nt)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}var Ni=[];function Uf(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ni.length&&Ni.push(e)}function jf(e,t,r,n){if(Ni.length){var i=Ni.pop();return i.topLevelType=e,i.eventSystemFlags=n,i.nativeEvent=t,i.targetInst=r,i}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function zf(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(n.tag===3)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=n.tag!==3?null:n.stateNode.containerInfo}if(!n)break;t=r.tag,t!==5&&t!==6||e.ancestors.push(r),r=Gn(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var i=za(e.nativeEvent);n=e.topLevelType;var o=e.nativeEvent,s=e.eventSystemFlags;r===0&&(s|=64);for(var a=null,l=0;l<Di.length;l++){var u=Di[l];u&&(u=u.extractEvents(n,t,o,i,s))&&(a=Lr(a,u))}_o(a)}}function Rs(e,t,r){if(!r.has(e)){switch(e){case"scroll":hn(t,"scroll",!0);break;case"focus":case"blur":hn(t,"focus",!0),hn(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":Ff(e)&&hn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:pn.indexOf(e)===-1&&W(e,t)}r.set(e,null)}}var Hf,Ha,Bf,Ls=!1,je=[],Et=null,Tt=null,Ct=null,bn=new Map,An=new Map,nn=[],Ds="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Lh="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Dh(e,t){var r=Ua(t);Ds.forEach(function(n){Rs(n,t,r)}),Lh.forEach(function(n){Rs(n,t,r)})}function Ns(e,t,r,n,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:r|32,nativeEvent:i,container:n}}function au(e,t){switch(e){case"focus":case"blur":Et=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":An.delete(t.pointerId)}}function on(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=Ns(t,r,n,i,o),t!==null&&(t=Wn(t),t!==null&&Ha(t)),e):(e.eventSystemFlags|=n,e)}function Nh(e,t,r,n,i){switch(t){case"focus":return Et=on(Et,e,t,r,n,i),!0;case"dragenter":return Tt=on(Tt,e,t,r,n,i),!0;case"mouseover":return Ct=on(Ct,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return bn.set(o,on(bn.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,An.set(o,on(An.get(o)||null,e,t,r,n,i)),!0}return!1}function $h(e){var t=Gn(e.target);if(t!==null){var r=dr(t);if(r!==null){if(t=r.tag,t===13){if(t=$f(r),t!==null){e.blockedOn=t,oe.unstable_runWithPriority(e.priority,function(){Bf(r)});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;var t=Ga(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(t!==null){var r=Wn(t);return r!==null&&Ha(r),e.blockedOn=t,!1}return!0}function lu(e,t,r){mi(e)&&r.delete(t)}function Mh(){for(Ls=!1;0<je.length;){var e=je[0];if(e.blockedOn!==null){e=Wn(e.blockedOn),e!==null&&Hf(e);break}var t=Ga(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);t!==null?e.blockedOn=t:je.shift()}Et!==null&&mi(Et)&&(Et=null),Tt!==null&&mi(Tt)&&(Tt=null),Ct!==null&&mi(Ct)&&(Ct=null),bn.forEach(lu),An.forEach(lu)}function sn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,oe.unstable_scheduleCallback(oe.unstable_NormalPriority,Mh)))}function Vf(e){function t(i){return sn(i,e)}if(0<je.length){sn(je[0],e);for(var r=1;r<je.length;r++){var n=je[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Et!==null&&sn(Et,e),Tt!==null&&sn(Tt,e),Ct!==null&&sn(Ct,e),bn.forEach(t),An.forEach(t),r=0;r<nn.length;r++)n=nn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<nn.length&&(r=nn[0],r.blockedOn===null);)$h(r),r.blockedOn===null&&nn.shift()}var Gf={},Wf=new Map,Ba=new Map,Fh=["abort","abort",Rf,"animationEnd",Lf,"animationIteration",Df,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nf,"transitionEnd","waiting","waiting"];function Va(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Ba.set(n,t),Wf.set(n,o),Gf[i]=o}}Va("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Va("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Va(Fh,2);for(var uu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wo=0;Wo<uu.length;Wo++)Ba.set(uu[Wo],0);var Uh=oe.unstable_UserBlockingPriority,jh=oe.unstable_runWithPriority,vi=!0;function W(e,t){hn(t,e,!1)}function hn(e,t,r){var n=Ba.get(t);switch(n===void 0?2:n){case 0:n=zh.bind(null,t,1,e);break;case 1:n=Hh.bind(null,t,1,e);break;default:n=yo.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function zh(e,t,r,n){Wt||Oa();var i=yo,o=Wt;Wt=!0;try{mf(i,e,t,r,n)}finally{(Wt=o)||Ra()}}function Hh(e,t,r,n){jh(Uh,yo.bind(null,e,t,r,n))}function yo(e,t,r,n){if(vi)if(0<je.length&&-1<Ds.indexOf(e))e=Ns(null,e,t,r,n),je.push(e);else{var i=Ga(e,t,r,n);if(i===null)au(e,n);else if(-1<Ds.indexOf(e))e=Ns(i,e,t,r,n),je.push(e);else if(!Nh(i,e,t,r,n)){au(e,n),e=jf(e,n,null,t);try{_f(zf,e)}finally{Uf(e)}}}}function Ga(e,t,r,n){if(r=za(n),r=Gn(r),r!==null){var i=dr(r);if(i===null)r=null;else{var o=i.tag;if(o===13){if(r=$f(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}e=jf(e,n,r,t);try{_f(zf,e)}finally{Uf(e)}return null}var vn={animationIterationCount:!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},Bh=["Webkit","ms","Moz","O"];Object.keys(vn).forEach(function(e){Bh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vn[t]=vn[e]})});function qf(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vn.hasOwnProperty(e)&&vn[e]?(""+t).trim():t+"px"}function Kf(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=qf(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Vh=me({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 $s(e,t){if(t){if(Vh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e,""));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62,""))}}function Ms(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 cu=bf.html;function Xe(e,t){e=e.nodeType===9||e.nodeType===11?e:e.ownerDocument;var r=Ua(e);t=Aa[t];for(var n=0;n<t.length;n++)Rs(t[n],e,r)}function $i(){}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function du(e,t){var r=fu(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fu(r)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pu(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Fs(e.document)}return t}function Us(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")}var Xf="$",Yf="/$",Wa="$?",qa="$!",qo=null,Ko=null;function Jf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function js(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qo=typeof setTimeout=="function"?setTimeout:void 0,Gh=typeof clearTimeout=="function"?clearTimeout:void 0;function br(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function hu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Xf||r===qa||r===Wa){if(t===0)return e;t--}else r===Yf&&t++}e=e.previousSibling}return null}var Ka=Math.random().toString(36).slice(2),gt="__reactInternalInstance$"+Ka,Mi="__reactEventHandlers$"+Ka,Vn="__reactContainere$"+Ka;function Gn(e){var t=e[gt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Vn]||r[gt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=hu(e);e!==null;){if(r=e[gt])return r;e=hu(e)}return t}e=r,r=e.parentNode}return null}function Wn(e){return e=e[gt]||e[Vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ir(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Qa(e){return e[Mi]||null}function Ye(e){do e=e.return;while(e&&e.tag!==5);return e||null}function Zf(e,t){var r=e.stateNode;if(!r)return null;var n=ba(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(C(231,t,typeof r));return r}function gu(e,t,r){(t=Zf(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=Lr(r._dispatchListeners,t),r._dispatchInstances=Lr(r._dispatchInstances,e))}function Wh(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Ye(t);for(t=r.length;0<t--;)gu(r[t],"captured",e);for(t=0;t<r.length;t++)gu(r[t],"bubbled",e)}}function zs(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Zf(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=Lr(r._dispatchListeners,t),r._dispatchInstances=Lr(r._dispatchInstances,e))}function qh(e){e&&e.dispatchConfig.registrationName&&zs(e._targetInst,null,e)}function Dr(e){ja(e,Wh)}var mt=null,Xa=null,_i=null;function ed(){if(_i)return _i;var e,t=Xa,r=t.length,n,i="value"in mt?mt.value:mt.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return _i=i.slice(e,1<n?1-n:void 0)}function yi(){return!0}function Fi(){return!1}function be(e,t,r,n){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(r):i==="target"?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?yi:Fi,this.isPropagationStopped=Fi,this}me(be.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=yi)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=yi)},persist:function(){this.isPersistent=yi},isPersistent:Fi,destructor:function(){var e=this.constructor.Interface,t;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Fi,this._dispatchInstances=this._dispatchListeners=null}});be.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};be.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var i=new t;return me(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=me({},n.Interface,e),r.extend=n.extend,td(r),r};td(be);function Kh(e,t,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,r,n),i}return new this(e,t,r,n)}function Qh(e){if(!(e instanceof this))throw Error(C(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function td(e){e.eventPool=[],e.getPooled=Kh,e.release=Qh}var Xh=be.extend({data:null}),Yh=be.extend({data:null}),Jh=[9,13,27,32],Ya=Nt&&"CompositionEvent"in window,_n=null;Nt&&"documentMode"in document&&(_n=document.documentMode);var Zh=Nt&&"TextEvent"in window&&!_n,rd=Nt&&(!Ya||_n&&8<_n&&11>=_n),mu=" ",Qe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},vu=!1;function nd(e,t){switch(e){case"keyup":return Jh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function id(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function eg(e,t){switch(e){case"compositionend":return id(t);case"keypress":return t.which!==32?null:(vu=!0,mu);case"textInput":return e=t.data,e===mu&&vu?null:e;default:return null}}function tg(e,t){if(vr)return e==="compositionend"||!Ya&&nd(e,t)?(e=ed(),_i=Xa=mt=null,vr=!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 rd&&t.locale!=="ko"?null:t.data;default:return null}}var rg={eventTypes:Qe,extractEvents:function(e,t,r,n){var i;if(Ya)e:{switch(e){case"compositionstart":var o=Qe.compositionStart;break e;case"compositionend":o=Qe.compositionEnd;break e;case"compositionupdate":o=Qe.compositionUpdate;break e}o=void 0}else vr?nd(e,r)&&(o=Qe.compositionEnd):e==="keydown"&&r.keyCode===229&&(o=Qe.compositionStart);return o?(rd&&r.locale!=="ko"&&(vr||o!==Qe.compositionStart?o===Qe.compositionEnd&&vr&&(i=ed()):(mt=n,Xa="value"in mt?mt.value:mt.textContent,vr=!0)),o=Xh.getPooled(o,t,r,n),i?o.data=i:(i=id(r),i!==null&&(o.data=i)),Dr(o),i=o):i=null,(e=Zh?eg(e,r):tg(e,r))?(t=Yh.getPooled(Qe.beforeInput,t,r,n),t.data=e,Dr(t)):t=null,i===null?t:t===null?i:[i,t]}},ng={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 od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ng[e.type]:t==="textarea"}var sd={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ad(e,t,r){return e=be.getPooled(sd.change,e,t,r),e.type="change",hf(r),Dr(e),e}var yn=null,Pn=null;function ig(e){_o(e)}function So(e){var t=ir(e);if(kf(t))return e}function og(e,t){if(e==="change")return t}var Hs=!1;Nt&&(Hs=Ff("input")&&(!document.documentMode||9<document.documentMode));function _u(){yn&&(yn.detachEvent("onpropertychange",ld),Pn=yn=null)}function ld(e){if(e.propertyName==="value"&&So(Pn))if(e=ad(Pn,e,za(e)),Wt)_o(e);else{Wt=!0;try{Pa(ig,e)}finally{Wt=!1,Ra()}}}function sg(e,t,r){e==="focus"?(_u(),yn=t,Pn=r,yn.attachEvent("onpropertychange",ld)):e==="blur"&&_u()}function ag(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return So(Pn)}function lg(e,t){if(e==="click")return So(t)}function ug(e,t){if(e==="input"||e==="change")return So(t)}var cg={eventTypes:sd,_isInputEventSupported:Hs,extractEvents:function(e,t,r,n){var i=t?ir(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if(o==="select"||o==="input"&&i.type==="file")var s=og;else if(od(i))if(Hs)s=ug;else{s=ag;var a=sg}else(o=i.nodeName)&&o.toLowerCase()==="input"&&(i.type==="checkbox"||i.type==="radio")&&(s=lg);if(s&&(s=s(e,t)))return ad(s,r,n);a&&a(e,i,t),e==="blur"&&(e=i._wrapperState)&&e.controlled&&i.type==="number"&&bs(i,"number",i.value)}},qn=be.extend({view:null,detail:null}),fg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fg[e])?!!t[e]:!1}function Ja(){return dg}var yu=0,Su=0,wu=!1,Eu=!1,Kn=qn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ja,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=yu;return yu=e.screenX,wu?e.type==="mousemove"?e.screenX-t:0:(wu=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Su;return Su=e.screenY,Eu?e.type==="mousemove"?e.screenY-t:0:(Eu=!0,0)}}),ud=Kn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),an={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},pg={eventTypes:an,extractEvents:function(e,t,r,n,i){var o=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout";if(o&&!(i&32)&&(r.relatedTarget||r.fromElement)||!s&&!o)return null;if(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,s){if(s=t,t=(t=r.relatedTarget||r.toElement)?Gn(t):null,t!==null){var a=dr(t);(t!==a||t.tag!==5&&t.tag!==6)&&(t=null)}}else s=null;if(s===t)return null;if(e==="mouseout"||e==="mouseover")var l=Kn,u=an.mouseLeave,p=an.mouseEnter,h="mouse";else(e==="pointerout"||e==="pointerover")&&(l=ud,u=an.pointerLeave,p=an.pointerEnter,h="pointer");if(e=s==null?o:ir(s),o=t==null?o:ir(t),u=l.getPooled(u,s,r,n),u.type=h+"leave",u.target=e,u.relatedTarget=o,r=l.getPooled(p,t,r,n),r.type=h+"enter",r.target=o,r.relatedTarget=e,n=s,h=t,n&&h)e:{for(l=n,p=h,s=0,e=l;e;e=Ye(e))s++;for(e=0,t=p;t;t=Ye(t))e++;for(;0<s-e;)l=Ye(l),s--;for(;0<e-s;)p=Ye(p),e--;for(;s--;){if(l===p||l===p.alternate)break e;l=Ye(l),p=Ye(p)}l=null}else l=null;for(p=l,l=[];n&&n!==p&&(s=n.alternate,!(s!==null&&s===p));)l.push(n),n=Ye(n);for(n=[];h&&h!==p&&(s=h.alternate,!(s!==null&&s===p));)n.push(h),h=Ye(h);for(h=0;h<l.length;h++)zs(l[h],"bubbled",u);for(h=n.length;0<h--;)zs(n[h],"captured",r);return i&64?[u,r]:[u]}};function hg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var or=typeof Object.is=="function"?Object.is:hg,gg=Object.prototype.hasOwnProperty;function On(e,t){if(or(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!gg.call(t,r[n])||!or(e[r[n]],t[r[n]]))return!1;return!0}var mg=Nt&&"documentMode"in document&&11>=document.documentMode,cd={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},_r=null,Bs=null,Sn=null,Vs=!1;function Tu(e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;return Vs||_r==null||_r!==Fs(r)?null:(r=_r,"selectionStart"in r&&Us(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}),Sn&&On(Sn,r)?null:(Sn=r,e=be.getPooled(cd.select,Bs,e,t),e.type="select",e.target=_r,Dr(e),e))}var vg={eventTypes:cd,extractEvents:function(e,t,r,n,i,o){if(i=o||(n.window===n?n.document:n.nodeType===9?n:n.ownerDocument),!(o=!i)){e:{i=Ua(i),o=Aa.onSelect;for(var s=0;s<o.length;s++)if(!i.has(o[s])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?ir(t):window,e){case"focus":(od(i)||i.contentEditable==="true")&&(_r=i,Bs=t,Sn=null);break;case"blur":Sn=Bs=_r=null;break;case"mousedown":Vs=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vs=!1,Tu(r,n);case"selectionchange":if(mg)break;case"keydown":case"keyup":return Tu(r,n)}return null}},_g=be.extend({animationName:null,elapsedTime:null,pseudoElement:null}),yg=be.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sg=qn.extend({relatedTarget:null});function Si(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}var wg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eg={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"},Tg=qn.extend({key:function(e){if(e.key){var t=wg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eg[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ja,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cg=Kn.extend({dataTransfer:null}),kg=qn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ja}),xg=be.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Ig=Kn.extend({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:null,deltaMode:null}),bg={eventTypes:Gf,extractEvents:function(e,t,r,n){var i=Wf.get(e);if(!i)return null;switch(e){case"keypress":if(Si(r)===0)return null;case"keydown":case"keyup":e=Tg;break;case"blur":case"focus":e=Sg;break;case"click":if(r.button===2)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Kn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=kg;break;case Rf:case Lf:case Df:e=_g;break;case Nf:e=xg;break;case"scroll":e=qn;break;case"wheel":e=Ig;break;case"copy":case"cut":case"paste":e=yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=ud;break;default:e=be}return t=e.getPooled(i,t,r,n),Dr(t),t}};if(Li)throw Error(C(101));Li=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));df();var Ag=Wn;ba=Qa;cf=Ag;ff=ir;pf({SimpleEventPlugin:bg,EnterLeaveEventPlugin:pg,ChangeEventPlugin:cg,SelectEventPlugin:vg,BeforeInputEventPlugin:rg});var Gs=[],yr=-1;function G(e){0>yr||(e.current=Gs[yr],Gs[yr]=null,yr--)}function Y(e,t){yr++,Gs[yr]=e.current,e.current=t}var Ot={},pe={current:Ot},ye={current:!1},sr=Ot;function Nr(e,t){var r=e.type.contextTypes;if(!r)return Ot;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Se(e){return e=e.childContextTypes,e!=null}function Ui(){G(ye),G(pe)}function Cu(e,t,r){if(pe.current!==Ot)throw Error(C(168));Y(pe,t),Y(ye,r)}function fd(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(C(108,it(t)||"Unknown",i));return me({},r,{},n)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,sr=pe.current,Y(pe,e),Y(ye,ye.current),!0}function ku(e,t,r){var n=e.stateNode;if(!n)throw Error(C(169));r?(e=fd(e,t,sr),n.__reactInternalMemoizedMergedChildContext=e,G(ye),G(pe),Y(pe,e)):G(ye),Y(ye,r)}var Pg=oe.unstable_runWithPriority,Za=oe.unstable_scheduleCallback,dd=oe.unstable_cancelCallback,xu=oe.unstable_requestPaint,Ws=oe.unstable_now,Og=oe.unstable_getCurrentPriorityLevel,wo=oe.unstable_ImmediatePriority,pd=oe.unstable_UserBlockingPriority,hd=oe.unstable_NormalPriority,gd=oe.unstable_LowPriority,md=oe.unstable_IdlePriority,vd={},Rg=oe.unstable_shouldYield,Lg=xu!==void 0?xu:function(){},Ze=null,Ei=null,Xo=!1,Iu=Ws(),Pe=1e4>Iu?Ws:function(){return Ws()-Iu};function Eo(){switch(Og()){case wo:return 99;case pd:return 98;case hd:return 97;case gd:return 96;case md:return 95;default:throw Error(C(332))}}function _d(e){switch(e){case 99:return wo;case 98:return pd;case 97:return hd;case 96:return gd;case 95:return md;default:throw Error(C(332))}}function Rt(e,t){return e=_d(e),Pg(e,t)}function yd(e,t,r){return e=_d(e),Za(e,t,r)}function bu(e){return Ze===null?(Ze=[e],Ei=Za(wo,Sd)):Ze.push(e),vd}function We(){if(Ei!==null){var e=Ei;Ei=null,dd(e)}Sd()}function Sd(){if(!Xo&&Ze!==null){Xo=!0;var e=0;try{var t=Ze;Rt(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ze=null}catch(r){throw Ze!==null&&(Ze=Ze.slice(e+1)),Za(wo,We),r}finally{Xo=!1}}}function Ti(e,t,r){return r/=10,1073741821-(((1073741821-e+t/10)/r|0)+1)*r}function De(e,t){if(e&&e.defaultProps){t=me({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r])}return t}var ji={current:null},zi=null,Sr=null,Hi=null;function el(){Hi=Sr=zi=null}function tl(e){var t=ji.current;G(ji),e.type._context._currentValue=t}function wd(e,t){for(;e!==null;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,r!==null&&r.childExpirationTime<t&&(r.childExpirationTime=t);else if(r!==null&&r.childExpirationTime<t)r.childExpirationTime=t;else break;e=e.return}}function Ar(e,t){zi=e,Hi=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.expirationTime>=t&&(ze=!0),e.firstContext=null)}function Re(e,t){if(Hi!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Hi=e,t=1073741823),t={context:e,observedBits:t,next:null},Sr===null){if(zi===null)throw Error(C(308));Sr=t,zi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Sr=Sr.next=t;return e._currentValue}var ft=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function nl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function kt(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function xt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function Au(e,t){var r=e.alternate;r!==null&&nl(r,e),e=e.updateQueue,r=e.baseQueue,r===null?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function Rn(e,t,r,n){var i=e.updateQueue;ft=!1;var o=i.baseQueue,s=i.shared.pending;if(s!==null){if(o!==null){var a=o.next;o.next=s.next,s.next=a}o=s,i.shared.pending=null,a=e.alternate,a!==null&&(a=a.updateQueue,a!==null&&(a.baseQueue=s))}if(o!==null){a=o.next;var l=i.baseState,u=0,p=null,h=null,g=null;if(a!==null){var _=a;do{if(s=_.expirationTime,s<n){var v={expirationTime:_.expirationTime,suspenseConfig:_.suspenseConfig,tag:_.tag,payload:_.payload,callback:_.callback,next:null};g===null?(h=g=v,p=l):g=g.next=v,s>u&&(u=s)}else{g!==null&&(g=g.next={expirationTime:1073741823,suspenseConfig:_.suspenseConfig,tag:_.tag,payload:_.payload,callback:_.callback,next:null}),Yd(s,_.suspenseConfig);e:{var x=e,f=_;switch(s=t,v=r,f.tag){case 1:if(x=f.payload,typeof x=="function"){l=x.call(v,l,s);break e}l=x;break e;case 3:x.effectTag=x.effectTag&-4097|64;case 0:if(x=f.payload,s=typeof x=="function"?x.call(v,l,s):x,s==null)break e;l=me({},l,s);break e;case 2:ft=!0}}_.callback!==null&&(e.effectTag|=32,s=i.effects,s===null?i.effects=[_]:s.push(_))}if(_=_.next,_===null||_===a){if(s=i.shared.pending,s===null)break;_=o.next=s.next,s.next=a,i.baseQueue=o=s,i.shared.pending=null}}while(!0)}g===null?p=l:g.next=h,i.baseState=p,i.baseQueue=g,Io(u),e.expirationTime=u,e.memoizedState=l}}function Pu(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=i,i=r,typeof n!="function")throw Error(C(191,n));n.call(i)}}}var wn=Me.ReactCurrentBatchConfig,Ed=new mo.Component().refs;function Bi(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:me({},t,r),e.memoizedState=r,e.expirationTime===0&&(e.updateQueue.baseState=r)}var To={isMounted:function(e){return(e=e._reactInternalFiber)?dr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Ve(),i=wn.suspense;n=rr(n,e,i),i=kt(n,i),i.payload=t,r!=null&&(i.callback=r),xt(e,i),bt(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Ve(),i=wn.suspense;n=rr(n,e,i),i=kt(n,i),i.tag=1,i.payload=t,r!=null&&(i.callback=r),xt(e,i),bt(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Ve(),n=wn.suspense;r=rr(r,e,n),n=kt(r,n),n.tag=2,t!=null&&(n.callback=t),xt(e,n),bt(e,r)}};function Ou(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!On(r,n)||!On(i,o):!0}function Td(e,t,r){var n=!1,i=Ot,o=t.contextType;return typeof o=="object"&&o!==null?o=Re(o):(i=Se(t)?sr:pe.current,n=t.contextTypes,o=(n=n!=null)?Nr(e,i):Ot),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=To,e.stateNode=t,t._reactInternalFiber=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ru(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&To.enqueueReplaceState(t,t.state,null)}function qs(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Ed,rl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Re(o):(o=Se(t)?sr:pe.current,i.context=Nr(e,o)),Rn(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Bi(e,t,o,r),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&&To.enqueueReplaceState(i,i.state,null),Rn(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.effectTag|=4)}var si=Array.isArray;function ln(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(C(309));var n=r.stateNode}if(!n)throw Error(C(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=n.refs;s===Ed&&(s=n.refs={}),o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(C(284));if(!r._owner)throw Error(C(290,e))}return e}function ai(e,t){if(e.type!=="textarea")throw Error(C(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Cd(e){function t(f,d){if(e){var m=f.lastEffect;m!==null?(m.nextEffect=d,f.lastEffect=d):f.firstEffect=f.lastEffect=d,d.nextEffect=null,d.effectTag=8}}function r(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function n(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function i(f,d){return f=ar(f,d),f.index=0,f.sibling=null,f}function o(f,d,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<d?(f.effectTag=2,d):m):(f.effectTag=2,d)):d}function s(f){return e&&f.alternate===null&&(f.effectTag=2),f}function a(f,d,m,y){return d===null||d.tag!==6?(d=rs(m,f.mode,y),d.return=f,d):(d=i(d,m),d.return=f,d)}function l(f,d,m,y){return d!==null&&d.elementType===m.type?(y=i(d,m.props),y.ref=ln(f,d,m),y.return=f,y):(y=Ii(m.type,m.key,m.props,null,f.mode,y),y.ref=ln(f,d,m),y.return=f,y)}function u(f,d,m,y){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ns(m,f.mode,y),d.return=f,d):(d=i(d,m.children||[]),d.return=f,d)}function p(f,d,m,y,T){return d===null||d.tag!==7?(d=yt(m,f.mode,y,T),d.return=f,d):(d=i(d,m),d.return=f,d)}function h(f,d,m){if(typeof d=="string"||typeof d=="number")return d=rs(""+d,f.mode,m),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ri:return m=Ii(d.type,d.key,d.props,null,f.mode,m),m.ref=ln(f,null,d),m.return=f,m;case gr:return d=ns(d,f.mode,m),d.return=f,d}if(si(d)||tn(d))return d=yt(d,f.mode,m,null),d.return=f,d;ai(f,d)}return null}function g(f,d,m,y){var T=d!==null?d.key:null;if(typeof m=="string"||typeof m=="number")return T!==null?null:a(f,d,""+m,y);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ri:return m.key===T?m.type===Gt?p(f,d,m.props.children,y,T):l(f,d,m,y):null;case gr:return m.key===T?u(f,d,m,y):null}if(si(m)||tn(m))return T!==null?null:p(f,d,m,y,null);ai(f,m)}return null}function _(f,d,m,y,T){if(typeof y=="string"||typeof y=="number")return f=f.get(m)||null,a(d,f,""+y,T);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ri:return f=f.get(y.key===null?m:y.key)||null,y.type===Gt?p(d,f,y.props.children,T,y.key):l(d,f,y,T);case gr:return f=f.get(y.key===null?m:y.key)||null,u(d,f,y,T)}if(si(y)||tn(y))return f=f.get(m)||null,p(d,f,y,T,null);ai(d,y)}return null}function v(f,d,m,y){for(var T=null,w=null,b=d,R=d=0,P=null;b!==null&&R<m.length;R++){b.index>R?(P=b,b=null):P=b.sibling;var k=g(f,b,m[R],y);if(k===null){b===null&&(b=P);break}e&&b&&k.alternate===null&&t(f,b),d=o(k,d,R),w===null?T=k:w.sibling=k,w=k,b=P}if(R===m.length)return r(f,b),T;if(b===null){for(;R<m.length;R++)b=h(f,m[R],y),b!==null&&(d=o(b,d,R),w===null?T=b:w.sibling=b,w=b);return T}for(b=n(f,b);R<m.length;R++)P=_(b,f,R,m[R],y),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?R:P.key),d=o(P,d,R),w===null?T=P:w.sibling=P,w=P);return e&&b.forEach(function(_e){return t(f,_e)}),T}function x(f,d,m,y){var T=tn(m);if(typeof T!="function")throw Error(C(150));if(m=T.call(m),m==null)throw Error(C(151));for(var w=T=null,b=d,R=d=0,P=null,k=m.next();b!==null&&!k.done;R++,k=m.next()){b.index>R?(P=b,b=null):P=b.sibling;var _e=g(f,b,k.value,y);if(_e===null){b===null&&(b=P);break}e&&b&&_e.alternate===null&&t(f,b),d=o(_e,d,R),w===null?T=_e:w.sibling=_e,w=_e,b=P}if(k.done)return r(f,b),T;if(b===null){for(;!k.done;R++,k=m.next())k=h(f,k.value,y),k!==null&&(d=o(k,d,R),w===null?T=k:w.sibling=k,w=k);return T}for(b=n(f,b);!k.done;R++,k=m.next())k=_(b,f,R,k.value,y),k!==null&&(e&&k.alternate!==null&&b.delete(k.key===null?R:k.key),d=o(k,d,R),w===null?T=k:w.sibling=k,w=k);return e&&b.forEach(function(Te){return t(f,Te)}),T}return function(f,d,m,y){var T=typeof m=="object"&&m!==null&&m.type===Gt&&m.key===null;T&&(m=m.props.children);var w=typeof m=="object"&&m!==null;if(w)switch(m.$$typeof){case ri:e:{for(w=m.key,T=d;T!==null;){if(T.key===w){switch(T.tag){case 7:if(m.type===Gt){r(f,T.sibling),d=i(T,m.props.children),d.return=f,f=d;break e}break;default:if(T.elementType===m.type){r(f,T.sibling),d=i(T,m.props),d.ref=ln(f,T,m),d.return=f,f=d;break e}}r(f,T);break}else t(f,T);T=T.sibling}m.type===Gt?(d=yt(m.props.children,f.mode,y,m.key),d.return=f,f=d):(y=Ii(m.type,m.key,m.props,null,f.mode,y),y.ref=ln(f,d,m),y.return=f,f=y)}return s(f);case gr:e:{for(T=m.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){r(f,d.sibling),d=i(d,m.children||[]),d.return=f,f=d;break e}else{r(f,d);break}else t(f,d);d=d.sibling}d=ns(m,f.mode,y),d.return=f,f=d}return s(f)}if(typeof m=="string"||typeof m=="number")return m=""+m,d!==null&&d.tag===6?(r(f,d.sibling),d=i(d,m),d.return=f,f=d):(r(f,d),d=rs(m,f.mode,y),d.return=f,f=d),s(f);if(si(m))return v(f,d,m,y);if(tn(m))return x(f,d,m,y);if(w&&ai(f,m),typeof m>"u"&&!T)switch(f.tag){case 1:case 0:throw f=f.type,Error(C(152,f.displayName||f.name||"Component"))}return r(f,d)}}var $r=Cd(!0),il=Cd(!1),Qn={},Be={current:Qn},Ln={current:Qn},Dn={current:Qn};function qt(e){if(e===Qn)throw Error(C(174));return e}function Ks(e,t){switch(Y(Dn,t),Y(Ln,e),Y(Be,Qn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Os(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Os(t,e)}G(Be),Y(Be,t)}function Mr(){G(Be),G(Ln),G(Dn)}function Lu(e){qt(Dn.current);var t=qt(Be.current),r=Os(t,e.type);t!==r&&(Y(Ln,e),Y(Be,r))}function ol(e){Ln.current===e&&(G(Be),G(Ln))}var Q={current:0};function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data===Wa||r.data===qa))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.effectTag&64)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}function sl(e,t){return{responder:e,props:t}}var Ci=Me.ReactCurrentDispatcher,Oe=Me.ReactCurrentBatchConfig,vt=0,te=null,le=null,ue=null,Gi=!1;function Ce(){throw Error(C(321))}function al(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!or(e[r],t[r]))return!1;return!0}function ll(e,t,r,n,i,o){if(vt=o,te=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ci.current=e===null||e.memoizedState===null?Dg:Ng,e=r(n,i),t.expirationTime===vt){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(C(301));o+=1,ue=le=null,t.updateQueue=null,Ci.current=$g,e=r(n,i)}while(t.expirationTime===vt)}if(Ci.current=Ki,t=le!==null&&le.next!==null,vt=0,ue=le=te=null,Gi=!1,t)throw Error(C(300));return e}function Pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?te.memoizedState=ue=e:ue=ue.next=e,ue}function Hr(){if(le===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ue===null?te.memoizedState:ue.next;if(t!==null)ue=t,le=e;else{if(e===null)throw Error(C(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ue===null?te.memoizedState=ue=e:ue=ue.next=e}return ue}function Zt(e,t){return typeof t=="function"?t(e):t}function li(e){var t=Hr(),r=t.queue;if(r===null)throw Error(C(311));r.lastRenderedReducer=e;var n=le,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var a=s=o=null,l=i;do{var u=l.expirationTime;if(u<vt){var p={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=p,o=n):a=a.next=p,u>te.expirationTime&&(te.expirationTime=u,Io(u))}else a!==null&&(a=a.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Yd(u,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(l!==null&&l!==i);a===null?o=n:a.next=s,or(n,t.memoizedState)||(ze=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=a,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ui(e){var t=Hr(),r=t.queue;if(r===null)throw Error(C(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);or(o,t.memoizedState)||(ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Yo(e){var t=Pr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},e=e.dispatch=Pd.bind(null,te,e),[t.memoizedState,e]}function Qs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=te.updateQueue,t===null?(t={lastEffect:null},te.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function kd(){return Hr().memoizedState}function Xs(e,t,r,n){var i=Pr();te.effectTag|=e,i.memoizedState=Qs(1|t,r,void 0,n===void 0?null:n)}function ul(e,t,r,n){var i=Hr();n=n===void 0?null:n;var o=void 0;if(le!==null){var s=le.memoizedState;if(o=s.destroy,n!==null&&al(n,s.deps)){Qs(t,r,o,n);return}}te.effectTag|=e,i.memoizedState=Qs(1|t,r,o,n)}function Du(e,t){return Xs(516,4,e,t)}function Wi(e,t){return ul(516,4,e,t)}function xd(e,t){return ul(4,2,e,t)}function Id(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 bd(e,t,r){return r=r!=null?r.concat([e]):null,ul(4,2,Id.bind(null,t,e),r)}function cl(){}function Nu(e,t){return Pr().memoizedState=[e,t===void 0?null:t],e}function qi(e,t){var r=Hr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&al(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ad(e,t){var r=Hr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&al(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fl(e,t,r){var n=Eo();Rt(98>n?98:n,function(){e(!0)}),Rt(97<n?97:n,function(){var i=Oe.suspense;Oe.suspense=t===void 0?null:t;try{e(!1),r()}finally{Oe.suspense=i}})}function Pd(e,t,r){var n=Ve(),i=wn.suspense;n=rr(n,e,i),i={expirationTime:n,suspenseConfig:i,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(o===null?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===te||o!==null&&o===te)Gi=!0,i.expirationTime=vt,te.expirationTime=vt;else{if(e.expirationTime===0&&(o===null||o.expirationTime===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.eagerReducer=o,i.eagerState=a,or(a,s))return}catch{}finally{}bt(e,n)}}var Ki={readContext:Re,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useResponder:Ce,useDeferredValue:Ce,useTransition:Ce},Dg={readContext:Re,useCallback:Nu,useContext:Re,useEffect:Du,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xs(4,2,Id.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xs(4,2,e,t)},useMemo:function(e,t){var r=Pr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Pr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Pd.bind(null,te,e),[n.memoizedState,e]},useRef:function(e){var t=Pr();return e={current:e},t.memoizedState=e},useState:Yo,useDebugValue:cl,useResponder:sl,useDeferredValue:function(e,t){var r=Yo(e),n=r[0],i=r[1];return Du(function(){var o=Oe.suspense;Oe.suspense=t===void 0?null:t;try{i(e)}finally{Oe.suspense=o}},[e,t]),n},useTransition:function(e){var t=Yo(!1),r=t[0];return t=t[1],[Nu(fl.bind(null,t,e),[t,e]),r]}},Ng={readContext:Re,useCallback:qi,useContext:Re,useEffect:Wi,useImperativeHandle:bd,useLayoutEffect:xd,useMemo:Ad,useReducer:li,useRef:kd,useState:function(){return li(Zt)},useDebugValue:cl,useResponder:sl,useDeferredValue:function(e,t){var r=li(Zt),n=r[0],i=r[1];return Wi(function(){var o=Oe.suspense;Oe.suspense=t===void 0?null:t;try{i(e)}finally{Oe.suspense=o}},[e,t]),n},useTransition:function(e){var t=li(Zt),r=t[0];return t=t[1],[qi(fl.bind(null,t,e),[t,e]),r]}},$g={readContext:Re,useCallback:qi,useContext:Re,useEffect:Wi,useImperativeHandle:bd,useLayoutEffect:xd,useMemo:Ad,useReducer:ui,useRef:kd,useState:function(){return ui(Zt)},useDebugValue:cl,useResponder:sl,useDeferredValue:function(e,t){var r=ui(Zt),n=r[0],i=r[1];return Wi(function(){var o=Oe.suspense;Oe.suspense=t===void 0?null:t;try{i(e)}finally{Oe.suspense=o}},[e,t]),n},useTransition:function(e){var t=ui(Zt),r=t[0];return t=t[1],[qi(fl.bind(null,t,e),[t,e]),r]}},rt=null,_t=null,er=!1;function Od(e,t){var r=He(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function $u(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Ys(e){if(er){var t=_t;if(t){var r=t;if(!$u(e,t)){if(t=br(r.nextSibling),!t||!$u(e,t)){e.effectTag=e.effectTag&-1025|2,er=!1,rt=e;return}Od(rt,r)}rt=e,_t=br(t.firstChild)}else e.effectTag=e.effectTag&-1025|2,er=!1,rt=e}}function Mu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function ci(e){if(e!==rt)return!1;if(!er)return Mu(e),er=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!js(t,e.memoizedProps))for(t=_t;t;)Od(e,t),t=br(t.nextSibling);if(Mu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r===Yf){if(t===0){_t=br(e.nextSibling);break e}t--}else r!==Xf&&r!==qa&&r!==Wa||t++}e=e.nextSibling}_t=null}}else _t=rt?br(e.stateNode.nextSibling):null;return!0}function Jo(){_t=rt=null,er=!1}var Mg=Me.ReactCurrentOwner,ze=!1;function ke(e,t,r,n){t.child=e===null?il(t,null,r,n):$r(t,e.child,r,n)}function Fu(e,t,r,n,i){r=r.render;var o=t.ref;return Ar(t,i),n=ll(e,t,r,n,o,i),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),nt(e,t,i)):(t.effectTag|=1,ke(e,t,n,i),t.child)}function Uu(e,t,r,n,i,o){if(e===null){var s=r.type;return typeof s=="function"&&!ml(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,Rd(e,t,s,n,i,o)):(e=Ii(r.type,null,n,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return s=e.child,i<o&&(i=s.memoizedProps,r=r.compare,r=r!==null?r:On,r(i,n)&&e.ref===t.ref)?nt(e,t,o):(t.effectTag|=1,e=ar(s,n),e.ref=t.ref,e.return=t,t.child=e)}function Rd(e,t,r,n,i,o){return e!==null&&On(e.memoizedProps,n)&&e.ref===t.ref&&(ze=!1,i<o)?(t.expirationTime=e.expirationTime,nt(e,t,o)):Js(e,t,r,n,o)}function Ld(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.effectTag|=128)}function Js(e,t,r,n,i){var o=Se(r)?sr:pe.current;return o=Nr(t,o),Ar(t,i),r=ll(e,t,r,n,o,i),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),nt(e,t,i)):(t.effectTag|=1,ke(e,t,r,i),t.child)}function ju(e,t,r,n,i){if(Se(r)){var o=!0;wi(t)}else o=!1;if(Ar(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Td(t,r,n),qs(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=Re(u):(u=Se(r)?sr:pe.current,u=Nr(t,u));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Ru(t,s,n,u),ft=!1;var g=t.memoizedState;s.state=g,Rn(t,n,s,i),l=t.memoizedState,a!==n||g!==l||ye.current||ft?(typeof p=="function"&&(Bi(t,r,p,n),l=t.memoizedState),(a=ft||Ou(t,r,a,n,g,l,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.effectTag|=4)):(typeof s.componentDidMount=="function"&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):(typeof s.componentDidMount=="function"&&(t.effectTag|=4),n=!1)}else s=t.stateNode,nl(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:De(t.type,a),l=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=Re(u):(u=Se(r)?sr:pe.current,u=Nr(t,u)),p=r.getDerivedStateFromProps,(h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Ru(t,s,n,u),ft=!1,l=t.memoizedState,s.state=l,Rn(t,n,s,i),g=t.memoizedState,a!==n||l!==g||ye.current||ft?(typeof p=="function"&&(Bi(t,r,p,n),g=t.memoizedState),(p=ft||Ou(t,r,a,n,l,g,u))?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,g,u)),typeof s.componentDidUpdate=="function"&&(t.effectTag|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.effectTag|=256)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=g),s.props=n,s.state=g,s.context=u,n=p):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),n=!1);return Zs(e,t,r,n,o,i)}function Zs(e,t,r,n,i,o){Ld(e,t);var s=(t.effectTag&64)!==0;if(!n&&!s)return i&&ku(t,r,!1),nt(e,t,o);n=t.stateNode,Mg.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.effectTag|=1,e!==null&&s?(t.child=$r(t,e.child,null,o),t.child=$r(t,null,a,o)):ke(e,t,a,o),t.memoizedState=n.state,i&&ku(t,r,!0),t.child}function zu(e){var t=e.stateNode;t.pendingContext?Cu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cu(e,t.context,!1),Ks(e,t.containerInfo)}var Zo={dehydrated:null,retryTime:0};function Hu(e,t,r){var n=t.mode,i=t.pendingProps,o=Q.current,s=!1,a;if((a=(t.effectTag&64)!==0)||(a=(o&2)!==0&&(e===null||e.memoizedState!==null)),a?(s=!0,t.effectTag&=-65):e!==null&&e.memoizedState===null||i.fallback===void 0||i.unstable_avoidThisFallback===!0||(o|=1),Y(Q,o&1),e===null){if(i.fallback!==void 0&&Ys(t),s){if(s=i.fallback,i=yt(null,n,0,null),i.return=t,!(t.mode&2))for(e=t.memoizedState!==null?t.child.child:t.child,i.child=e;e!==null;)e.return=i,e=e.sibling;return r=yt(s,n,r,null),r.return=t,i.sibling=r,t.memoizedState=Zo,t.child=i,r}return n=i.children,t.memoizedState=null,t.child=il(t,null,n,r)}if(e.memoizedState!==null){if(e=e.child,n=e.sibling,s){if(i=i.fallback,r=ar(e,e.pendingProps),r.return=t,!(t.mode&2)&&(s=t.memoizedState!==null?t.child.child:t.child,s!==e.child))for(r.child=s;s!==null;)s.return=r,s=s.sibling;return n=ar(n,i),n.return=t,r.sibling=n,r.childExpirationTime=0,t.memoizedState=Zo,t.child=r,n}return r=$r(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=i.fallback,i=yt(null,n,0,null),i.return=t,i.child=e,e!==null&&(e.return=i),!(t.mode&2))for(e=t.memoizedState!==null?t.child.child:t.child,i.child=e;e!==null;)e.return=i,e=e.sibling;return r=yt(s,n,r,null),r.return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Zo,t.child=i,r}return t.memoizedState=null,t.child=$r(t,e,i.children,r)}function Bu(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;r!==null&&r.expirationTime<t&&(r.expirationTime=t),wd(e.return,t)}function es(e,t,r,n,i,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailExpiration=0,s.tailMode=i,s.lastEffect=o)}function Vu(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ke(e,t,n.children,r),n=Q.current,n&2)n=n&1|2,t.effectTag|=64;else{if(e!==null&&e.effectTag&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bu(e,r);else if(e.tag===19)Bu(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Y(Q,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Vi(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),es(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vi(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}es(t,!0,r,null,o,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nt(e,t,r){e!==null&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(n!==0&&Io(n),t.childExpirationTime<r)return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,r=ar(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ar(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}var Dd,ea,Nd,$d;Dd=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ea=function(){};Nd=function(e,t,r,n,i){var o=e.memoizedProps;if(o!==n){var s=t.stateNode;switch(qt(Be.current),e=null,r){case"input":o=xs(s,o),n=xs(s,n),e=[];break;case"option":o=As(s,o),n=As(s,n),e=[];break;case"select":o=me({},o,{value:void 0}),n=me({},n,{value:void 0}),e=[];break;case"textarea":o=Ps(s,o),n=Ps(s,n),e=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(s.onclick=$i)}$s(r,n);var a,l;r=null;for(a in o)if(!n.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style")for(l in s=o[a],s)s.hasOwnProperty(l)&&(r||(r={}),r[l]="");else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Rr.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in n){var u=n[a];if(s=o?.[a],n.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(r||(r={}),r[l]=u[l])}else r||(e||(e=[]),e.push(a,r)),r=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(e=e||[]).push(a,u)):a==="children"?s===u||typeof u!="string"&&typeof u!="number"||(e=e||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Rr.hasOwnProperty(a)?(u!=null&&Xe(i,a),e||s===u||(e=[])):(e=e||[]).push(a,u))}r&&(e=e||[]).push("style",r),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}};$d=function(e,t,r,n){r!==n&&(t.effectTag|=4)};function fi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fg(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Se(t.type)&&Ui(),null;case 3:return Mr(),G(ye),G(pe),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),e!==null&&e.child!==null||!ci(t)||(t.effectTag|=4),ea(t),null;case 5:ol(t),r=qt(Dn.current);var i=t.type;if(e!==null&&t.stateNode!=null)Nd(e,t,i,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(t.stateNode===null)throw Error(C(166));return null}if(e=qt(Be.current),ci(t)){n=t.stateNode,i=t.type;var o=t.memoizedProps;switch(n[gt]=t,n[Mi]=o,i){case"iframe":case"object":case"embed":W("load",n);break;case"video":case"audio":for(e=0;e<pn.length;e++)W(pn[e],n);break;case"source":W("error",n);break;case"img":case"image":case"link":W("error",n),W("load",n);break;case"form":W("reset",n),W("submit",n);break;case"details":W("toggle",n);break;case"input":tu(n,o),W("invalid",n),Xe(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!o.multiple},W("invalid",n),Xe(r,"onChange");break;case"textarea":nu(n,o),W("invalid",n),Xe(r,"onChange")}$s(i,o),e=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(e=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(e=["children",""+a]):Rr.hasOwnProperty(s)&&a!=null&&Xe(r,s)}switch(i){case"input":ni(n),ru(n,o,!0);break;case"textarea":ni(n),iu(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=$i)}r=e,t.updateQueue=r,r!==null&&(t.effectTag|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,e===cu&&(e=Af(i)),e===cu?i==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(i,{is:n.is}):(e=s.createElement(i),i==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,i),e[gt]=t,e[Mi]=n,Dd(e,t,!1,!1),t.stateNode=e,s=Ms(i,n),i){case"iframe":case"object":case"embed":W("load",e),a=n;break;case"video":case"audio":for(a=0;a<pn.length;a++)W(pn[a],e);a=n;break;case"source":W("error",e),a=n;break;case"img":case"image":case"link":W("error",e),W("load",e),a=n;break;case"form":W("reset",e),W("submit",e),a=n;break;case"details":W("toggle",e),a=n;break;case"input":tu(e,n),a=xs(e,n),W("invalid",e),Xe(r,"onChange");break;case"option":a=As(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=me({},n,{value:void 0}),W("invalid",e),Xe(r,"onChange");break;case"textarea":nu(e,n),a=Ps(e,n),W("invalid",e),Xe(r,"onChange");break;default:a=n}$s(i,a);var l=a;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?Kf(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Pf(e,u)):o==="children"?typeof u=="string"?(i!=="textarea"||u!=="")&&In(e,u):typeof u=="number"&&In(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rr.hasOwnProperty(o)?u!=null&&Xe(r,o):u!=null&&Na(e,o,u,s))}switch(i){case"input":ni(e),ru(e,n,!1);break;case"textarea":ni(e),iu(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Pt(n.value));break;case"select":e.multiple=!!n.multiple,r=n.value,r!=null?Ir(e,!!n.multiple,r,!1):n.defaultValue!=null&&Ir(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=$i)}Jf(i,n)&&(t.effectTag|=4)}t.ref!==null&&(t.effectTag|=128)}return null;case 6:if(e&&t.stateNode!=null)$d(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(C(166));r=qt(Dn.current),qt(Be.current),ci(t)?(r=t.stateNode,n=t.memoizedProps,r[gt]=t,r.nodeValue!==n&&(t.effectTag|=4)):(r=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),r[gt]=t,t.stateNode=r)}return null;case 13:return G(Q),n=t.memoizedState,t.effectTag&64?(t.expirationTime=r,t):(r=n!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&ci(t):(i=e.memoizedState,n=i!==null,r||i===null||(i=e.child.sibling,i!==null&&(o=t.firstEffect,o!==null?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8))),r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Q.current&1?re===tr&&(re=Yi):((re===tr||re===Yi)&&(re=Co),$n!==0&&xe!==null&&(Xt(xe,we),rp(xe,$n)))),(r||n)&&(t.effectTag|=4),null);case 4:return Mr(),ea(t),null;case 10:return tl(t),null;case 17:return Se(t.type)&&Ui(),null;case 19:if(G(Q),n=t.memoizedState,n===null)return null;if(i=(t.effectTag&64)!==0,o=n.rendering,o===null){if(i)fi(n,!1);else if(re!==tr||e!==null&&e.effectTag&64)for(o=t.child;o!==null;){if(e=Vi(o),e!==null){for(t.effectTag|=64,fi(n,!1),i=e.updateQueue,i!==null&&(t.updateQueue=i,t.effectTag|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;n!==null;)i=n,o=r,i.effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,e=i.alternate,e===null?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=o===null?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),n=n.sibling;return Y(Q,Q.current&1|2),t.child}o=o.sibling}}else{if(!i)if(e=Vi(o),e!==null){if(t.effectTag|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.effectTag|=4),fi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Pe()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,i=!0,fi(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(n.tailExpiration===0&&(n.tailExpiration=Pe()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Pe(),r.sibling=null,t=Q.current,Y(Q,i?t&1|2:t&1),r):null}throw Error(C(156,t.tag))}function Ug(e){switch(e.tag){case 1:Se(e.type)&&Ui();var t=e.effectTag;return t&4096?(e.effectTag=t&-4097|64,e):null;case 3:if(Mr(),G(ye),G(pe),t=e.effectTag,t&64)throw Error(C(285));return e.effectTag=t&-4097|64,e;case 5:return ol(e),null;case 13:return G(Q),t=e.effectTag,t&4096?(e.effectTag=t&-4097|64,e):null;case 19:return G(Q),null;case 4:return Mr(),null;case 10:return tl(e),null;default:return null}}function dl(e,t){return{value:e,source:t,stack:Fa(t)}}var jg=typeof WeakSet=="function"?WeakSet:Set;function ta(e,t){var r=t.source,n=t.stack;n===null&&r!==null&&(n=Fa(r)),r!==null&&it(r.type),t=t.value,e!==null&&e.tag===1&&it(e.type);try{console.error(t)}catch(i){setTimeout(function(){throw i})}}function zg(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(r){nr(e,r)}}function Gu(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){nr(e,r)}else t.current=null}function Hg(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.effectTag&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:De(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(C(163))}function Md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,n!==void 0&&n()}r=r.next}while(r!==t)}}function Fd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Bg(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:Fd(3,r);return;case 1:if(e=r.stateNode,r.effectTag&4)if(t===null)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:De(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}t=r.updateQueue,t!==null&&Pu(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}Pu(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.effectTag&4&&Jf(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&Vf(r))));return;case 19:case 17:case 20:case 21:return}throw Error(C(163))}function Wu(e,t,r){switch(typeof ua=="function"&&ua(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e.next;Rt(97<r?97:r,function(){var i=n;do{var o=i.destroy;if(o!==void 0){var s=t;try{o()}catch(a){nr(s,a)}}i=i.next}while(i!==n)})}break;case 1:Gu(t),r=t.stateNode,typeof r.componentWillUnmount=="function"&&zg(t,r);break;case 5:Gu(t);break;case 4:jd(e,t,r)}}function Ud(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,t!==null&&Ud(t)}function qu(e){return e.tag===5||e.tag===3||e.tag===4}function Ku(e){e:{for(var t=e.return;t!==null;){if(qu(t)){var r=t;break e}t=t.return}throw Error(C(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(C(161))}r.effectTag&16&&(In(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||qu(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.effectTag&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.effectTag&2)){r=r.stateNode;break e}}n?ra(e,r,t):na(e,r,t)}function ra(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$i));else if(n!==4&&(e=e.child,e!==null))for(ra(e,t,r),e=e.sibling;e!==null;)ra(e,t,r),e=e.sibling}function na(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(na(e,t,r),e=e.sibling;e!==null;)na(e,t,r),e=e.sibling}function jd(e,t,r){for(var n=t,i=!1,o,s;;){if(!i){i=n.return;e:for(;;){if(i===null)throw Error(C(160));switch(o=i.stateNode,i.tag){case 5:s=!1;break e;case 3:o=o.containerInfo,s=!0;break e;case 4:o=o.containerInfo,s=!0;break e}i=i.return}i=!0}if(n.tag===5||n.tag===6){e:for(var a=e,l=n,u=r,p=l;;)if(Wu(a,p,u),p.child!==null&&p.tag!==4)p.child.return=p,p=p.child;else{if(p===l)break e;for(;p.sibling===null;){if(p.return===null||p.return===l)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s?(a=o,l=n.stateNode,a.nodeType===8?a.parentNode.removeChild(l):a.removeChild(l)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(Wu(e,n,r),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.tag===4&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function ts(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:Md(3,t);return;case 1:return;case 5:var r=t.stateNode;if(r!=null){var n=t.memoizedProps,i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Mi]=n,e==="input"&&n.type==="radio"&&n.name!=null&&xf(r,n),Ms(e,i),t=Ms(e,n),i=0;i<o.length;i+=2){var s=o[i],a=o[i+1];s==="style"?Kf(r,a):s==="dangerouslySetInnerHTML"?Pf(r,a):s==="children"?In(r,a):Na(r,s,a,t)}switch(e){case"input":Is(r,n);break;case"textarea":If(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,e=n.value,e!=null?Ir(r,!!n.multiple,e,!1):t!==!!n.multiple&&(n.defaultValue!=null?Ir(r,!!n.multiple,n.defaultValue,!0):Ir(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(C(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:t=t.stateNode,t.hydrate&&(t.hydrate=!1,Vf(t.containerInfo));return;case 12:return;case 13:if(r=t,t.memoizedState===null?n=!1:(n=!0,r=t.child,gl=Pe()),r!==null)e:for(e=r;;){if(e.tag===5)o=e.stateNode,n?(o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(o=e.stateNode,i=e.memoizedProps.style,i=i!=null&&i.hasOwnProperty("display")?i.display:null,o.style.display=qf("display",i));else if(e.tag===6)e.stateNode.nodeValue=n?"":e.memoizedProps;else if(e.tag===13&&e.memoizedState!==null&&e.memoizedState.dehydrated===null){o=e.child.sibling,o.return=e,e=o;continue}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Qu(t);return;case 19:Qu(t);return;case 17:return}throw Error(C(163))}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new jg),t.forEach(function(n){var i=Zg.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}var Vg=typeof WeakMap=="function"?WeakMap:Map;function zd(e,t,r){r=kt(r,null),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){eo||(eo=!0,ia=n),ta(e,t)},r}function Hd(e,t,r){r=kt(r,null),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return ta(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(It===null?It=new Set([this]):It.add(this),ta(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var Gg=Math.ceil,Qi=Me.ReactCurrentDispatcher,Bd=Me.ReactCurrentOwner,ne=0,pl=8,Fe=16,Ge=32,tr=0,Xi=1,Vd=2,Yi=3,Co=4,hl=5,L=ne,xe=null,N=null,we=0,re=tr,ko=null,et=1073741823,Nn=1073741823,Ji=null,$n=0,Zi=!1,gl=0,Gd=500,A=null,eo=!1,ia=null,It=null,to=!1,En=null,gn=90,Kt=null,Tn=0,oa=null,ki=0;function Ve(){return(L&(Fe|Ge))!==ne?1073741821-(Pe()/10|0):ki!==0?ki:ki=1073741821-(Pe()/10|0)}function rr(e,t,r){if(t=t.mode,!(t&2))return 1073741823;var n=Eo();if(!(t&4))return n===99?1073741823:1073741822;if((L&Fe)!==ne)return we;if(r!==null)e=Ti(e,r.timeoutMs|0||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Ti(e,150,100);break;case 97:case 96:e=Ti(e,5e3,250);break;case 95:e=2;break;default:throw Error(C(326))}return xe!==null&&e===we&&--e,e}function bt(e,t){if(50<Tn)throw Tn=0,oa=null,Error(C(185));if(e=xo(e,t),e!==null){var r=Eo();t===1073741823?(L&pl)!==ne&&(L&(Fe|Ge))===ne?sa(e):(Ie(e),L===ne&&We()):Ie(e),(L&4)===ne||r!==98&&r!==99||(Kt===null?Kt=new Map([[e,t]]):(r=Kt.get(e),(r===void 0||r>t)&&Kt.set(e,t)))}}function xo(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;r!==null&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,i=null;if(n===null&&e.tag===3)i=e.stateNode;else for(;n!==null;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),r!==null&&r.childExpirationTime<t&&(r.childExpirationTime=t),n.return===null&&n.tag===3){i=n.stateNode;break}n=n.return}return i!==null&&(xe===i&&(Io(t),re===Co&&Xt(i,we)),rp(i,t)),i}function xi(e){var t=e.lastExpiredTime;if(t!==0||(t=e.firstPendingTime,!tp(e,t)))return t;var r=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=r>e?r:e,2>=e&&t!==e?0:e}function Ie(e){if(e.lastExpiredTime!==0)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=bu(sa.bind(null,e));else{var t=xi(e),r=e.callbackNode;if(t===0)r!==null&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Ve();if(t===1073741823?n=99:t===1||t===2?n=95:(n=10*(1073741821-t)-10*(1073741821-n),n=0>=n?99:250>=n?98:5250>=n?97:95),r!==null){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=n)return;r!==vd&&dd(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=t===1073741823?bu(sa.bind(null,e)):yd(n,Wd.bind(null,e),{timeout:10*(1073741821-t)-Pe()}),e.callbackNode=t}}}function Wd(e,t){if(ki=0,t)return t=Ve(),ca(e,t),Ie(e),null;var r=xi(e);if(r!==0){if(t=e.callbackNode,(L&(Fe|Ge))!==ne)throw Error(C(327));if(Br(),e===xe&&r===we||Qt(e,r),N!==null){var n=L;L|=Fe;var i=Xd();do try{Kg();break}catch(a){Qd(e,a)}while(!0);if(el(),L=n,Qi.current=i,re===Xi)throw t=ko,Qt(e,r),Xt(e,r),Ie(e),t;if(N===null)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=re,xe=null,n){case tr:case Xi:throw Error(C(345));case Vd:ca(e,2<r?2:r);break;case Yi:if(Xt(e,r),n=e.lastSuspendedTime,r===n&&(e.nextKnownPendingLevel=aa(i)),et===1073741823&&(i=gl+Gd-Pe(),10<i)){if(Zi){var o=e.lastPingedTime;if(o===0||o>=r){e.lastPingedTime=r,Qt(e,r);break}}if(o=xi(e),o!==0&&o!==r)break;if(n!==0&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=Qo(Ht.bind(null,e),i);break}Ht(e);break;case Co:if(Xt(e,r),n=e.lastSuspendedTime,r===n&&(e.nextKnownPendingLevel=aa(i)),Zi&&(i=e.lastPingedTime,i===0||i>=r)){e.lastPingedTime=r,Qt(e,r);break}if(i=xi(e),i!==0&&i!==r)break;if(n!==0&&n!==r){e.lastPingedTime=n;break}if(Nn!==1073741823?n=10*(1073741821-Nn)-Pe():et===1073741823?n=0:(n=10*(1073741821-et)-5e3,i=Pe(),r=10*(1073741821-r)-i,n=i-n,0>n&&(n=0),n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Gg(n/1960))-n,r<n&&(n=r)),10<n){e.timeoutHandle=Qo(Ht.bind(null,e),n);break}Ht(e);break;case hl:if(et!==1073741823&&Ji!==null){o=et;var s=Ji;if(n=s.busyMinDurationMs|0,0>=n?n=0:(i=s.busyDelayMs|0,o=Pe()-(10*(1073741821-o)-(s.timeoutMs|0||5e3)),n=o<=i?0:i+n-o),10<n){Xt(e,r),e.timeoutHandle=Qo(Ht.bind(null,e),n);break}}Ht(e);break;default:throw Error(C(329))}if(Ie(e),e.callbackNode===t)return Wd.bind(null,e)}}return null}function sa(e){var t=e.lastExpiredTime;if(t=t!==0?t:1073741823,(L&(Fe|Ge))!==ne)throw Error(C(327));if(Br(),e===xe&&t===we||Qt(e,t),N!==null){var r=L;L|=Fe;var n=Xd();do try{qg();break}catch(i){Qd(e,i)}while(!0);if(el(),L=r,Qi.current=n,re===Xi)throw r=ko,Qt(e,t),Xt(e,t),Ie(e),r;if(N!==null)throw Error(C(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,xe=null,Ht(e),Ie(e)}return null}function Wg(){if(Kt!==null){var e=Kt;Kt=null,e.forEach(function(t,r){ca(r,t),Ie(r)}),We()}}function qd(e,t){var r=L;L|=1;try{return e(t)}finally{L=r,L===ne&&We()}}function Kd(e,t){var r=L;L&=-2,L|=pl;try{return e(t)}finally{L=r,L===ne&&We()}}function Qt(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Gh(r)),N!==null)for(r=N.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ui();break;case 3:Mr(),G(ye),G(pe);break;case 5:ol(n);break;case 4:Mr();break;case 13:G(Q);break;case 19:G(Q);break;case 10:tl(n)}r=r.return}xe=e,N=ar(e.current,null),we=t,re=tr,ko=null,Nn=et=1073741823,Ji=null,$n=0,Zi=!1}function Qd(e,t){do{try{if(el(),Ci.current=Ki,Gi)for(var r=te.memoizedState;r!==null;){var n=r.queue;n!==null&&(n.pending=null),r=r.next}if(vt=0,ue=le=te=null,Gi=!1,N===null||N.return===null)return re=Xi,ko=t,N=null;e:{var i=e,o=N.return,s=N,a=t;if(t=we,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var l=a;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.expirationTime=u.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var p=(Q.current&1)!==0,h=o;do{var g;if(g=h.tag===13){var _=h.memoizedState;if(_!==null)g=_.dehydrated!==null;else{var v=h.memoizedProps;g=v.fallback===void 0?!1:v.unstable_avoidThisFallback!==!0?!0:!p}}if(g){var x=h.updateQueue;if(x===null){var f=new Set;f.add(l),h.updateQueue=f}else x.add(l);if(!(h.mode&2)){if(h.effectTag|=64,s.effectTag&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var d=kt(1073741823,null);d.tag=2,xt(s,d)}s.expirationTime=1073741823;break e}a=void 0,s=t;var m=i.pingCache;if(m===null?(m=i.pingCache=new Vg,a=new Set,m.set(l,a)):(a=m.get(l),a===void 0&&(a=new Set,m.set(l,a))),!a.has(s)){a.add(s);var y=Jg.bind(null,i,l,s);l.then(y,y)}h.effectTag|=4096,h.expirationTime=t;break e}h=h.return}while(h!==null);a=Error((it(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
28
|
-
|
|
29
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+Fa(s))}re!==hl&&(re=Vd),a=dl(a,s),h=o;do{switch(h.tag){case 3:l=a,h.effectTag|=4096,h.expirationTime=t;var T=zd(h,l,t);Au(h,T);break e;case 1:l=a;var w=h.type,b=h.stateNode;if(!(h.effectTag&64)&&(typeof w.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(It===null||!It.has(b)))){h.effectTag|=4096,h.expirationTime=t;var R=Hd(h,l,t);Au(h,R);break e}}h=h.return}while(h!==null)}N=Zd(N)}catch(P){t=P;continue}break}while(!0)}function Xd(){var e=Qi.current;return Qi.current=Ki,e===null?Ki:e}function Yd(e,t){e<et&&2<e&&(et=e),t!==null&&e<Nn&&2<e&&(Nn=e,Ji=t)}function Io(e){e>$n&&($n=e)}function qg(){for(;N!==null;)N=Jd(N)}function Kg(){for(;N!==null&&!Rg();)N=Jd(N)}function Jd(e){var t=ep(e.alternate,e,we);return e.memoizedProps=e.pendingProps,t===null&&(t=Zd(e)),Bd.current=null,t}function Zd(e){N=e;do{var t=N.alternate;if(e=N.return,N.effectTag&2048){if(t=Ug(N),t!==null)return t.effectTag&=2047,t;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=Fg(t,N,we),we===1||N.childExpirationTime!==1){for(var r=0,n=N.child;n!==null;){var i=n.expirationTime,o=n.childExpirationTime;i>r&&(r=i),o>r&&(r=o),n=n.sibling}N.childExpirationTime=r}if(t!==null)return t;e!==null&&!(e.effectTag&2048)&&(e.firstEffect===null&&(e.firstEffect=N.firstEffect),N.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=N.firstEffect),e.lastEffect=N.lastEffect),1<N.effectTag&&(e.lastEffect!==null?e.lastEffect.nextEffect=N:e.firstEffect=N,e.lastEffect=N))}if(t=N.sibling,t!==null)return t;N=e}while(N!==null);return re===tr&&(re=hl),null}function aa(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function Ht(e){var t=Eo();return Rt(99,Qg.bind(null,e,t)),null}function Qg(e,t){do Br();while(En!==null);if((L&(Fe|Ge))!==ne)throw Error(C(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(r===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(C(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=aa(r);if(e.firstPendingTime=i,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===xe&&(N=xe=null,we=0),1<r.effectTag?r.lastEffect!==null?(r.lastEffect.nextEffect=r,i=r.firstEffect):i=r:i=r.firstEffect,i!==null){var o=L;L|=Ge,Bd.current=null,qo=vi;var s=pu();if(Us(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var h=0,g=-1,_=-1,v=0,x=0,f=s,d=null;t:for(;;){for(var m;f!==a||u!==0&&f.nodeType!==3||(g=h+u),f!==p||l!==0&&f.nodeType!==3||(_=h+l),f.nodeType===3&&(h+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===s)break t;if(d===a&&++v===u&&(g=h),d===p&&++x===l&&(_=h),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}a=g===-1||_===-1?null:{start:g,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;Ko={activeElementDetached:null,focusedElem:s,selectionRange:a},vi=!1,A=i;do try{Xg()}catch(k){if(A===null)throw Error(C(330));nr(A,k),A=A.nextEffect}while(A!==null);A=i;do try{for(s=e,a=t;A!==null;){var y=A.effectTag;if(y&16&&In(A.stateNode,""),y&128){var T=A.alternate;if(T!==null){var w=T.ref;w!==null&&(typeof w=="function"?w(null):w.current=null)}}switch(y&1038){case 2:Ku(A),A.effectTag&=-3;break;case 6:Ku(A),A.effectTag&=-3,ts(A.alternate,A);break;case 1024:A.effectTag&=-1025;break;case 1028:A.effectTag&=-1025,ts(A.alternate,A);break;case 4:ts(A.alternate,A);break;case 8:u=A,jd(s,u,a),Ud(u)}A=A.nextEffect}}catch(k){if(A===null)throw Error(C(330));nr(A,k),A=A.nextEffect}while(A!==null);if(w=Ko,T=pu(),y=w.focusedElem,a=w.selectionRange,T!==y&&y&&y.ownerDocument&&Qf(y.ownerDocument.documentElement,y)){for(a!==null&&Us(y)&&(T=a.start,w=a.end,w===void 0&&(w=T),"selectionStart"in y?(y.selectionStart=T,y.selectionEnd=Math.min(w,y.value.length)):(w=(T=y.ownerDocument||document)&&T.defaultView||window,w.getSelection&&(w=w.getSelection(),u=y.textContent.length,s=Math.min(a.start,u),a=a.end===void 0?s:Math.min(a.end,u),!w.extend&&s>a&&(u=a,a=s,s=u),u=du(y,s),p=du(y,a),u&&p&&(w.rangeCount!==1||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==p.node||w.focusOffset!==p.offset)&&(T=T.createRange(),T.setStart(u.node,u.offset),w.removeAllRanges(),s>a?(w.addRange(T),w.extend(p.node,p.offset)):(T.setEnd(p.node,p.offset),w.addRange(T)))))),T=[],w=y;w=w.parentNode;)w.nodeType===1&&T.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<T.length;y++)w=T[y],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}vi=!!qo,Ko=qo=null,e.current=r,A=i;do try{for(y=e;A!==null;){var b=A.effectTag;if(b&36&&Bg(y,A.alternate,A),b&128){T=void 0;var R=A.ref;if(R!==null){var P=A.stateNode;switch(A.tag){case 5:T=P;break;default:T=P}typeof R=="function"?R(T):R.current=T}}A=A.nextEffect}}catch(k){if(A===null)throw Error(C(330));nr(A,k),A=A.nextEffect}while(A!==null);A=null,Lg(),L=o}else e.current=r;if(to)to=!1,En=e,gn=t;else for(A=i;A!==null;)t=A.nextEffect,A.nextEffect=null,A=t;if(t=e.firstPendingTime,t===0&&(It=null),t===1073741823?e===oa?Tn++:(Tn=0,oa=e):Tn=0,typeof la=="function"&&la(r.stateNode,n),Ie(e),eo)throw eo=!1,e=ia,ia=null,e;return(L&pl)!==ne||We(),null}function Xg(){for(;A!==null;){var e=A.effectTag;e&256&&Hg(A.alternate,A),!(e&512)||to||(to=!0,yd(97,function(){return Br(),null})),A=A.nextEffect}}function Br(){if(gn!==90){var e=97<gn?97:gn;return gn=90,Rt(e,Yg)}}function Yg(){if(En===null)return!1;var e=En;if(En=null,(L&(Fe|Ge))!==ne)throw Error(C(331));var t=L;for(L|=Ge,e=e.current.firstEffect;e!==null;){try{var r=e;if(r.effectTag&512)switch(r.tag){case 0:case 11:case 15:case 22:Md(5,r),Fd(5,r)}}catch(n){if(e===null)throw Error(C(330));nr(e,n)}r=e.nextEffect,e.nextEffect=null,e=r}return L=t,We(),!0}function Xu(e,t,r){t=dl(r,t),t=zd(e,t,1073741823),xt(e,t),e=xo(e,1073741823),e!==null&&Ie(e)}function nr(e,t){if(e.tag===3)Xu(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){Xu(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(It===null||!It.has(n))){e=dl(t,e),e=Hd(r,e,1073741823),xt(r,e),r=xo(r,1073741823),r!==null&&Ie(r);break}}r=r.return}}function Jg(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),xe===e&&we===r?re===Co||re===Yi&&et===1073741823&&Pe()-gl<Gd?Qt(e,we):Zi=!0:tp(e,r)&&(t=e.lastPingedTime,t!==0&&t<r||(e.lastPingedTime=r,Ie(e)))}function Zg(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=Ve(),t=rr(t,e,null)),e=xo(e,t),e!==null&&Ie(e)}var ep;ep=function(e,t,r){var n=t.expirationTime;if(e!==null){var i=t.pendingProps;if(e.memoizedProps!==i||ye.current)ze=!0;else{if(n<r){switch(ze=!1,t.tag){case 3:zu(t),Jo();break;case 5:if(Lu(t),t.mode&4&&r!==1&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Se(t.type)&&wi(t);break;case 4:Ks(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,i=t.type._context,Y(ji,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return n=t.child.childExpirationTime,n!==0&&n>=r?Hu(e,t,r):(Y(Q,Q.current&1),t=nt(e,t,r),t!==null?t.sibling:null);Y(Q,Q.current&1);break;case 19:if(n=t.childExpirationTime>=r,e.effectTag&64){if(n)return Vu(e,t,r);t.effectTag|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null),Y(Q,Q.current),!n)return null}return nt(e,t,r)}ze=!1}}else ze=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Nr(t,pe.current),Ar(t,r),i=ll(null,t,n,e,i,r),t.effectTag|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Se(n)){var o=!0;wi(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rl(t);var s=n.getDerivedStateFromProps;typeof s=="function"&&Bi(t,n,s,e),i.updater=To,t.stateNode=i,i._reactInternalFiber=t,qs(t,n,e,r),t=Zs(null,t,n,!0,o,r)}else t.tag=0,ke(null,t,i,r),t=t.child;return t;case 16:e:{if(i=t.elementType,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,bh(i),i._status!==1)throw i._result;switch(i=i._result,t.type=i,o=t.tag=rm(i),e=De(i,e),o){case 0:t=Js(null,t,i,e,r);break e;case 1:t=ju(null,t,i,e,r);break e;case 11:t=Fu(null,t,i,e,r);break e;case 14:t=Uu(null,t,i,De(i.type,e),n,r);break e}throw Error(C(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:De(n,i),Js(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:De(n,i),ju(e,t,n,i,r);case 3:if(zu(t),n=t.updateQueue,e===null||n===null)throw Error(C(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,nl(e,t),Rn(t,n,null,r),n=t.memoizedState.element,n===i)Jo(),t=nt(e,t,r);else{if((i=t.stateNode.hydrate)&&(_t=br(t.stateNode.containerInfo.firstChild),rt=t,i=er=!0),i)for(r=il(t,null,n,r),t.child=r;r;)r.effectTag=r.effectTag&-3|1024,r=r.sibling;else ke(e,t,n,r),Jo();t=t.child}return t;case 5:return Lu(t),e===null&&Ys(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,js(n,i)?s=null:o!==null&&js(n,o)&&(t.effectTag|=16),Ld(e,t),t.mode&4&&r!==1&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ke(e,t,s,r),t=t.child),t;case 6:return e===null&&Ys(t),null;case 13:return Hu(e,t,r);case 4:return Ks(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$r(t,null,n,r):ke(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:De(n,i),Fu(e,t,n,i,r);case 7:return ke(e,t,t.pendingProps,r),t.child;case 8:return ke(e,t,t.pendingProps.children,r),t.child;case 12:return ke(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var a=t.type._context;if(Y(ji,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=or(a,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===i.children&&!ye.current){t=nt(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n&&u.observedBits&o){a.tag===1&&(u=kt(r,null),u.tag=2,xt(a,u)),a.expirationTime<r&&(a.expirationTime=r),u=a.alternate,u!==null&&u.expirationTime<r&&(u.expirationTime=r),wd(a.return,r),l.expirationTime<r&&(l.expirationTime=r);break}u=u.next}}else s=a.tag===10&&a.type===t.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}ke(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,n=o.children,Ar(t,r),i=Re(i,o.unstable_observedBits),n=n(i),t.effectTag|=1,ke(e,t,n,r),t.child;case 14:return i=t.type,o=De(i,t.pendingProps),o=De(i.type,o),Uu(e,t,i,o,n,r);case 15:return Rd(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:De(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Se(n)?(e=!0,wi(t)):e=!1,Ar(t,r),Td(t,n,i),qs(t,n,i,r),Zs(null,t,n,!0,e,r);case 19:return Vu(e,t,r)}throw Error(C(156,t.tag))};var la=null,ua=null;function em(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);la=function(n){try{t.onCommitFiberRoot(r,n,void 0,(n.current.effectTag&64)===64)}catch{}},ua=function(n){try{t.onCommitFiberUnmount(r,n)}catch{}}}catch{}return!0}function tm(e,t,r,n){this.tag=e,this.key=r,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=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function He(e,t,r,n){return new tm(e,t,r,n)}function ml(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rm(e){if(typeof e=="function")return ml(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$a)return 11;if(e===Ma)return 14}return 2}function ar(e,t){var r=e.alternate;return r===null?(r=He(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ii(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")ml(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Gt:return yt(r.children,i,o,t);case Ih:s=8,i|=7;break;case yf:s=8,i|=1;break;case hi:return e=He(12,r,t,i|8),e.elementType=hi,e.type=hi,e.expirationTime=o,e;case gi:return e=He(13,r,t,i),e.type=gi,e.elementType=gi,e.expirationTime=o,e;case ks:return e=He(19,r,t,i),e.elementType=ks,e.expirationTime=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sf:s=10;break e;case wf:s=9;break e;case $a:s=11;break e;case Ma:s=14;break e;case Ef:s=16,n=null;break e;case Tf:s=22;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=He(s,r,t,i),t.elementType=e,t.type=n,t.expirationTime=o,t}function yt(e,t,r,n){return e=He(7,e,n,t),e.expirationTime=r,e}function rs(e,t,r){return e=He(6,e,null,t),e.expirationTime=r,e}function ns(e,t,r){return t=He(4,e.children!==null?e.children:[],e.key,t),t.expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nm(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function tp(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,r!==0&&r>=t&&e<=t}function Xt(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||r===0)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function rp(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;r!==0&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function ca(e,t){var r=e.lastExpiredTime;(r===0||r>t)&&(e.lastExpiredTime=t)}function ro(e,t,r,n){var i=t.current,o=Ve(),s=wn.suspense;o=rr(o,i,s);e:if(r){r=r._reactInternalFiber;t:{if(dr(r)!==r||r.tag!==1)throw Error(C(170));var a=r;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Se(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(C(171))}if(r.tag===1){var l=r.type;if(Se(l)){r=fd(r,l,a);break e}}r=a}else r=Ot;return t.context===null?t.context=r:t.pendingContext=r,t=kt(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),xt(i,t),bt(i,o),o}function is(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 Yu(e,t){e=e.memoizedState,e!==null&&e.dehydrated!==null&&e.retryTime<t&&(e.retryTime=t)}function vl(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function _l(e,t,r){r=r!=null&&r.hydrate===!0;var n=new nm(e,t,r),i=He(3,null,null,t===2?7:t===1?3:0);n.current=i,i.stateNode=n,rl(i),e[Vn]=n.current,r&&t!==0&&Dh(e,e.nodeType===9?e:e.ownerDocument),this._internalRoot=n}_l.prototype.render=function(e){ro(e,this._internalRoot,null,null)};_l.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ro(null,e,null,function(){t[Vn]=null})};function Xn(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function im(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new _l(e,0,t?{hydrate:!0}:void 0)}function bo(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o._internalRoot;if(typeof i=="function"){var a=i;i=function(){var u=is(s);a.call(u)}}ro(t,s,e,i)}else{if(o=r._reactRootContainer=im(r,n),s=o._internalRoot,typeof i=="function"){var l=i;i=function(){var u=is(s);l.call(u)}}Kd(function(){ro(t,s,e,i)})}return is(s)}function om(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gr,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}Hf=function(e){if(e.tag===13){var t=Ti(Ve(),150,100);bt(e,t),vl(e,t)}};Ha=function(e){e.tag===13&&(bt(e,3),vl(e,3))};Bf=function(e){if(e.tag===13){var t=Ve();t=rr(t,e,null),bt(e,t),vl(e,t)}};Cs=function(e,t,r){switch(t){case"input":if(Is(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Qa(n);if(!i)throw Error(C(90));kf(n),Is(n,i)}}}break;case"textarea":If(e,r);break;case"select":t=r.value,t!=null&&Ir(e,!!r.multiple,t,!1)}};Pa=qd;mf=function(e,t,r,n,i){var o=L;L|=4;try{return Rt(98,e.bind(null,t,r,n,i))}finally{L=o,L===ne&&We()}};Oa=function(){(L&(1|Fe|Ge))===ne&&(Wg(),Br())};vf=function(e,t){var r=L;L|=2;try{return e(t)}finally{L=r,L===ne&&We()}};function np(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xn(t))throw Error(C(200));return om(e,t,null,r)}var sm={Events:[Wn,ir,Qa,pf,Ts,Dr,function(e){ja(e,qh)},hf,gf,yo,_o,Br,{current:!1}]};(function(e){var t=e.findFiberByHostInstance;return em(me({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Me.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Mf(r),r===null?null:r.stateNode},findFiberByHostInstance:function(r){return t?t(r):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:Gn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"});Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm;Le.createPortal=np;Le.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternalFiber;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):Error(C(268,Object.keys(e)));return e=Mf(t),e=e===null?null:e.stateNode,e};Le.flushSync=function(e,t){if((L&(Fe|Ge))!==ne)throw Error(C(187));var r=L;L|=1;try{return Rt(99,e.bind(null,t))}finally{L=r,We()}};Le.hydrate=function(e,t,r){if(!Xn(t))throw Error(C(200));return bo(null,e,t,!0,r)};Le.render=function(e,t,r){if(!Xn(t))throw Error(C(200));return bo(null,e,t,!1,r)};Le.unmountComponentAtNode=function(e){if(!Xn(e))throw Error(C(40));return e._reactRootContainer?(Kd(function(){bo(null,null,e,!1,function(){e._reactRootContainer=null,e[Vn]=null})}),!0):!1};Le.unstable_batchedUpdates=qd;Le.unstable_createPortal=function(e,t){return np(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Le.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xn(r))throw Error(C(200));if(e==null||e._reactInternalFiber===void 0)throw Error(C(38));return bo(e,t,r,!1,n)};Le.version="16.14.0";function ip(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ip)}catch(e){console.error(e)}}ip(),af.exports=Le;var am=af.exports;const lm=zn(am),Ju=e=>{if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1},St=(...e)=>e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(r).forEach(n=>{["__proto__","constructor","prototype"].includes(n)||(Array.isArray(t[n])&&Array.isArray(r[n])?t[n]=St.options.mergeArrays?Array.from(new Set(t[n].concat(r[n]))):r[n]:Ju(t[n])&&Ju(r[n])?t[n]=St(t[n],r[n]):t[n]=r[n])}),t},{}),op={mergeArrays:!0};St.options=op;St.withOptions=(e,...t)=>{St.options=Object.assign({mergeArrays:!0},e);const r=St(...t);return St.options=op,r};const yl=e=>e&&e.length?`${e.map((r,n)=>{const i=n+1,o=[];return o.push(`col${i}=${encodeURIComponent(r.columnName)}`),o.push(`op${i}=${r.operator}`),o.push(r.values.map(s=>{const a=typeof s=="bigint"?s.toString():s;return`val${i}=${encodeURIComponent(String(a))}`}).join("&")),o.join("&")}).join("&")}`:null,Sl=e=>e&&e.length?`${e.map((r,n)=>{const i=n+1,o=[];return o.push(`param${i}=${encodeURIComponent(r.name)}`),o.push(`paramVal${i}=${encodeURIComponent(r.value)}`),o.join("&")}).join("&")}`:null,um=e=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:JSON.stringify(e),cm=e=>Array.isArray(e)?e.join(","):e,Vr=(e,t=!1)=>{const r=[];return Object.keys(e).forEach(i=>{const o=e[i];if(o!==void 0){const s=t?um(o):cm(o);r.push(`${i}=${s}`)}}),r.length?r.join("&"):null},os=e=>typeof e=="number"?`${e}px`:e,fm=(e,t)=>{let r=e;const n=encodeURIComponent(t);return e.indexOf("#")>=0?r=`${r}${n}`:r=`${r}#${n}`,r};function sp(e,t,r=""){const n=r?new URL(r,window.location.origin).href:e;return fm(n,t)}const Zu=e=>e&&btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),dm=e=>e.getBoundingClientRect().top+window.scrollY,ss={START:"start",END:"end"},pm=(e,t)=>{Object.keys(t).forEach(r=>{e.setAttribute(r,t[r].toString())})},hm=e=>e.endsWith(".cl"),gm=(e,t)=>{if(e!==""&&!hm(e)){const r=e.split("."),i=Number(r[0])<8;return!t&&i}return!1},mm=(e,t)=>{var r,n,i,o;const s=e.customCssUrl,a=t.customizations,l=e.customizations||e.customisations;return{style:{...l?.style,...a?.style,customCSS:{...(r=l?.style)===null||r===void 0?void 0:r.customCSS,...(n=a?.style)===null||n===void 0?void 0:n.customCSS},customCSSUrl:((i=a?.style)===null||i===void 0?void 0:i.customCSSUrl)||((o=l?.style)===null||o===void 0?void 0:o.customCSSUrl)||s},content:{...l?.content,...a?.content}}},vm=e=>yl(e||[]);function ap(e){return typeof e=="string"?document.querySelector(e):e}const lp=(e,t)=>St(e,t),_m=e=>{const t=/(?:query|mutation)\s+(\w+)/,r=e.match(t);return r?.[1]};function up(e){if(!e||typeof e!="object")return e;for(const t in e)t==="__typename"?delete e[t]:typeof e[t]=="object"&&up(e[t]);return e}const un=(e,t)=>{e?.style&&Object.keys(t).forEach(r=>{e.style[r]=t[r].toString()})},ym=(e,t)=>{e?.style&&t.forEach(r=>{e.style.removeProperty(r)})},no=e=>e===void 0,Sm=e=>typeof e=="string"?["char","string"]:typeof e=="number"?["double","double"]:typeof e=="boolean"?["boolean","boolean"]:["",""];var Z;(function(e){e.None="None",e.EmbeddedSSO="EmbeddedSSO",e.SSO="SSO_SAML",e.SAML="SSO_SAML",e.SAMLRedirect="SSO_SAML",e.OIDC="SSO_OIDC",e.OIDCRedirect="SSO_OIDC",e.AuthServer="AuthServer",e.TrustedAuthToken="AuthServer",e.TrustedAuthTokenCookieless="AuthServerCookieless",e.Basic="Basic"})(Z||(Z={}));var ec;(function(e){e.SearchData="search-data",e.Home="insights-home",e.Liveboards="liveboards",e.Answers="answers",e.MonitorSubscription="monitor-alerts",e.SpotIQAnalysis="spotiq-analysis",e.LiveboardSchedules="liveboard-schedules"})(ec||(ec={}));var tc;(function(e){e.EQ="EQ",e.NE="NE",e.LT="LT",e.LE="LE",e.GT="GT",e.GE="GE",e.CONTAINS="CONTAINS",e.BEGINS_WITH="BEGINS_WITH",e.ENDS_WITH="ENDS_WITH",e.BW_INC_MAX="BW_INC_MAX",e.BW_INC_MIN="BW_INC_MIN",e.BW_INC="BW_INC",e.BW="BW",e.IN="IN",e.NOT_IN="NOT_IN"})(tc||(tc={}));var rc;(function(e){e.Search="SEARCH",e.Watchlist="WATCHLIST",e.Favorite="FAVORITE",e.MyLibrary="MY_LIBRARY",e.Trending="TRENDING",e.Learning="LEARNING"})(rc||(rc={}));var U;(function(e){e.Init="init",e.AuthInit="authInit",e.Load="load",e.Data="data",e.QueryChanged="queryChanged",e.Drilldown="drillDown",e.DataSourceSelected="dataSourceSelected",e.AddRemoveColumns="addRemoveColumns",e.CustomAction="customAction",e.VizPointDoubleClick="vizPointDoubleClick",e.VizPointClick="vizPointClick",e.Error="Error",e.Alert="alert",e.AuthExpire="ThoughtspotAuthExpired",e.AuthFailure="ThoughtspotAuthFailure",e.AuthLogout="ThoughtspotAuthLogout",e.EmbedHeight="EMBED_HEIGHT",e.EmbedIframeCenter="EmbedIframeCenter",e.GetDataClick="getDataClick",e.RouteChange="ROUTE_CHANGE",e.V1Data="exportVizDataToParent",e.NoCookieAccess="noCookieAccess",e.SAMLComplete="samlComplete",e.DialogOpen="dialog-open",e.DialogClose="dialog-close",e.LiveboardRendered="PinboardRendered",e.ALL="*",e.Save="save",e.Download="download",e.DownloadAsPng="downloadAsPng",e.DownloadAsPdf="downloadAsPdf",e.DownloadAsCsv="downloadAsCsv",e.DownloadAsXlsx="downloadAsXlsx",e.AnswerDelete="answerDelete",e.Pin="pin",e.SpotIQAnalyze="spotIQAnalyze",e.Share="share",e.DrillInclude="context-menu-item-include",e.DrillExclude="context-menu-item-exclude",e.CopyToClipboard="context-menu-item-copy-to-clipboard",e.UpdateTML="updateTSL",e.EditTML="editTSL",e.ExportTML="exportTSL",e.SaveAsView="saveAsView",e.CopyAEdit="copyAEdit",e.ShowUnderlyingData="showUnderlyingData",e.AnswerChartSwitcher="answerChartSwitcher",e.APP_INIT="appInit",e.LiveboardInfo="pinboardInfo",e.AddToFavorites="addToFavorites",e.Schedule="subscription",e.Edit="edit",e.MakeACopy="makeACopy",e.Present="present",e.Delete="delete",e.SchedulesList="schedule-list",e.Cancel="cancel",e.Explore="explore",e.CopyLink="embedDocument",e.CrossFilterChanged="cross-filter-changed",e.VizPointRightClick="vizPointRightClick",e.InsertIntoSlide="insertInToSlide",e.FilterChanged="filterChanged",e.SageEmbedQuery="sageEmbedQuery",e.SageWorksheetUpdated="sageWorksheetUpdated",e.UpdateConnection="updateConnection",e.CreateConnection="createConnection",e.UpdatePersonalisedView="updatePersonalisedView",e.SavePersonalisedView="savePersonalisedView",e.ResetLiveboard="resetLiveboard",e.DeletePersonalisedView="deletePersonalisedView",e.CreateWorksheet="createWorksheet",e.AskSageInit="AskSageInit",e.Rename="rename",e.OnBeforeGetVizDataIntercept="onBeforeGetVizDataIntercept",e.ParameterChanged="parameterChanged"})(U||(U={}));var ot;(function(e){e.Search="search",e.DrillDown="triggerDrillDown",e.Filter="filter",e.Reload="reload",e.SetVisibleVizs="SetPinboardVisibleVizs",e.SetActiveTab="SetActiveTab",e.UpdateRuntimeFilters="UpdateRuntimeFilters",e.Navigate="Navigate",e.OpenFilter="openFilter",e.AddColumns="addColumns",e.RemoveColumn="removeColumn",e.getExportRequestForCurrentPinboard="getExportRequestForCurrentPinboard",e.Pin="pin",e.LiveboardInfo="pinboardInfo",e.Schedule="subscription",e.SchedulesList="schedule-list",e.ExportTML="exportTSL",e.EditTML="editTSL",e.UpdateTML="updateTSL",e.DownloadAsPdf="downloadAsPdf",e.MakeACopy="makeACopy",e.Remove="delete",e.Explore="explore",e.CreateMonitor="createMonitor",e.ManageMonitor="manageMonitor",e.Edit="edit",e.CopyLink="embedDocument",e.Present="present",e.GetTML="getTML",e.ShowUnderlyingData="showUnderlyingData",e.Delete="onDeleteAnswer",e.SpotIQAnalyze="spotIQAnalyze",e.Download="downloadAsPng",e.DownloadAsPng="downloadAsPng",e.DownloadAsCsv="downloadAsCSV",e.DownloadAsXlsx="downloadAsXLSX",e.Share="share",e.Save="save",e.SyncToSheets="sync-to-sheets",e.SyncToOtherApps="sync-to-other-apps",e.ManagePipelines="manage-pipeline",e.ResetSearch="resetSearch",e.GetFilters="getFilters",e.UpdateFilters="updateFilters",e.GetTabs="getTabs",e.SetVisibleTabs="SetPinboardVisibleTabs",e.SetHiddenTabs="SetPinboardHiddenTabs",e.UpdateSageQuery="updateSageQuery",e.GetAnswerSession="getAnswerSession",e.AskSage="AskSage",e.UpdateCrossFilter="UpdateCrossFilter",e.ResetLiveboardPersonalisedView="ResetLiveboardPersonalisedView",e.UpdateParameters="UpdateParameters",e.GetParameters="GetParameters"})(ot||(ot={}));var Cn;(function(e){e.Hidden="hide",e.Collapsed="collapse",e.Expanded="expand"})(Cn||(Cn={}));var E;(function(e){e.EmbedApp="embedApp",e.DataSources="dataSources",e.DataSourceMode="dataSourceMode",e.DisableActions="disableAction",e.DisableActionReason="disableHint",e.ForceTable="forceTable",e.preventLiveboardFilterRemoval="preventPinboardFilterRemoval",e.SearchQuery="searchQuery",e.HideActions="hideAction",e.HideObjects="hideObjects",e.HostAppUrl="hostAppUrl",e.EnableVizTransformations="enableVizTransform",e.EnableSearchAssist="enableSearchAssist",e.HideResult="hideResult",e.UseLastSelectedDataSource="useLastSelectedSources",e.Tag="tag",e.searchTokenString="searchTokenString",e.executeSearch="executeSearch",e.fullHeight="isFullHeightPinboard",e.livedBoardEmbed="isLiveboardEmbed",e.searchEmbed="isSearchEmbed",e.vizEmbed="isVizEmbed",e.Version="sdkVersion",e.ViewPortHeight="viewPortHeight",e.ViewPortWidth="viewPortWidth",e.VisibleActions="visibleAction",e.CustomCSSUrl="customCssUrl",e.DisableLoginRedirect="disableLoginRedirect",e.visibleVizs="pinboardVisibleVizs",e.LiveboardV2Enabled="isPinboardV2Enabled",e.DataPanelV2Enabled="enableDataPanelV2",e.ShowAlerts="showAlerts",e.Locale="locale",e.CustomStyle="customStyle",e.ForceSAMLAutoRedirect="forceSAMLAutoRedirect",e.AuthType="authType",e.IconSpriteUrl="iconSprite",e.cookieless="cookieless",e.ContextMenuTrigger="isContextMenuEnabledOnLeftClick",e.LinkOverride="linkOverride",e.blockNonEmbedFullAppAccess="blockNonEmbedFullAppAccess",e.ShowInsertToSlide="insertInToSlide",e.PrimaryNavHidden="primaryNavHidden",e.HideProfleAndHelp="profileAndHelpInNavBarHidden",e.HideApplicationSwitcher="applicationSwitcherHidden",e.HideOrgSwitcher="orgSwitcherHidden",e.IsSageEmbed="isSageEmbed",e.HideWorksheetSelector="hideWorksheetSelector",e.DisableWorksheetChange="disableWorksheetChange",e.HideEurekaResults="hideEurekaResults",e.HideEurekaSuggestions="hideEurekaSuggestions",e.HideAutocompleteSuggestions="hideAutocompleteSuggestions",e.HideLiveboardHeader="hideLiveboardHeader",e.ShowLiveboardDescription="showLiveboardDescription",e.ShowLiveboardTitle="showLiveboardTitle",e.HiddenTabs="hideTabs",e.VisibleTabs="visibleTabs",e.HideTabPanel="hideTabPanel",e.HideSampleQuestions="hideSampleQuestions",e.WorksheetId="worksheet",e.Query="query",e.HideHomepageLeftNav="hideHomepageLeftNav",e.ModularHomeExperienceEnabled="modularHomeExperience",e.PendoTrackingKey="additionalPendoKey",e.LiveboardHeaderSticky="isLiveboardHeaderSticky",e.IsProductTour="isProductTour",e.HideSearchBarTitle="hideSearchBarTitle",e.HideSageAnswerHeader="hideSageAnswerHeader",e.HideSearchBar="hideSearchBar",e.ClientLogLevel="clientLogLevel",e.OverrideNativeConsole="overrideConsoleLogs",e.enableAskSage="enableAskSage",e.CollapseSearchBarInitially="collapseSearchBarInitially",e.DataPanelCustomGroupsAccordionInitialState="dataPanelCustomGroupsAccordionInitialState",e.EnableCustomColumnGroups="enableCustomColumnGroups",e.DateFormatLocale="dateFormatLocale",e.NumberFormatLocale="numberFormatLocale",e.CurrencyFormat="currencyFormat",e.Enable2ColumnLayout="enable2ColumnLayout",e.IsFullAppEmbed="isFullAppEmbed",e.IsOnBeforeGetVizDataInterceptEnabled="isOnBeforeGetVizDataInterceptEnabled",e.FocusSearchBarOnRender="focusSearchBarOnRender",e.DisableRedirectionLinksInNewTab="disableRedirectionLinksInNewTab",e.HomePageSearchBarMode="homePageSearchBarMode"})(E||(E={}));var pt;(function(e){e.Save="save",e.Update="update",e.SaveUntitled="saveUntitled",e.SaveAsView="saveAsView",e.MakeACopy="makeACopy",e.EditACopy="editACopy",e.CopyLink="embedDocument",e.ResetLayout="resetLayout",e.Schedule="subscription",e.SchedulesList="schedule-list",e.Share="share",e.AddFilter="addFilter",e.AddDataPanelObjects="addDataPanelObjects",e.ConfigureFilter="configureFilter",e.CollapseDataSources="collapseDataSources",e.CollapseDataPanel="collapseDataPanel",e.ChooseDataSources="chooseDataSources",e.AddFormula="addFormula",e.AddParameter="addParameter",e.AddColumnSet="addSimpleCohort",e.AddQuerySet="addAdvancedCohort",e.SearchOnTop="searchOnTop",e.SpotIQAnalyze="spotIQAnalyze",e.ExplainInsight="explainInsight",e.SpotIQFollow="spotIQFollow",e.ShareViz="shareViz",e.ReplaySearch="replaySearch",e.ShowUnderlyingData="showUnderlyingData",e.Download="download",e.DownloadAsPng="downloadAsPng",e.DownloadAsPdf="downloadAsPdf",e.DownloadAsCsv="downloadAsCSV",e.DownloadAsXlsx="downloadAsXLSX",e.DownloadTrace="downloadTrace",e.ExportTML="exportTSL",e.ImportTML="importTSL",e.UpdateTML="updateTSL",e.EditTML="editTSL",e.Present="present",e.ToggleSize="toggleSize",e.Edit="edit",e.EditTitle="editTitle",e.Remove="delete",e.Ungroup="ungroup",e.Describe="describe",e.Relate="relate",e.CustomizeHeadlines="customizeHeadlines",e.PinboardInfo="pinboardInfo",e.LiveboardInfo="pinboardInfo",e.SendAnswerFeedback="sendFeedback",e.DownloadEmbraceQueries="downloadEmbraceQueries",e.Pin="pin",e.AnalysisInfo="analysisInfo",e.Subscription="subscription",e.Explore="explore",e.DrillInclude="context-menu-item-include",e.DrillExclude="context-menu-item-exclude",e.CopyToClipboard="context-menu-item-copy-to-clipboard",e.CopyAndEdit="context-menu-item-copy-and-edit",e.DrillEdit="context-menu-item-edit",e.EditMeasure="context-menu-item-edit-measure",e.Separator="context-menu-item-separator",e.DrillDown="DRILL",e.RequestAccess="requestAccess",e.QueryDetailsButtons="queryDetailsButtons",e.AnswerDelete="onDeleteAnswer",e.AnswerChartSwitcher="answerChartSwitcher",e.AddToFavorites="addToFavorites",e.EditDetails="editDetails",e.CreateMonitor="createMonitor",e.ReportError="reportError",e.SyncToSheets="sync-to-sheets",e.SyncToOtherApps="sync-to-other-apps",e.ManagePipelines="manage-pipeline",e.CrossFilter="context-menu-item-cross-filter",e.SyncToSlack="syncToSlack",e.SyncToTeams="syncToTeams",e.RemoveCrossFilter="context-menu-item-remove-cross-filter",e.AxisMenuAggregate="axisMenuAggregate",e.AxisMenuTimeBucket="axisMenuTimeBucket",e.AxisMenuFilter="axisMenuFilter",e.AxisMenuConditionalFormat="axisMenuConditionalFormat",e.AxisMenuSort="axisMenuSort",e.AxisMenuGroup="axisMenuGroup",e.AxisMenuPosition="axisMenuPosition",e.AxisMenuRename="axisMenuRename",e.AxisMenuEdit="axisMenuEdit",e.AxisMenuNumberFormat="axisMenuNumberFormat",e.AxisMenuTextWrapping="axisMenuTextWrapping",e.AxisMenuRemove="axisMenuRemove",e.InsertInToSlide="insertInToSlide",e.RenameModalTitleDescription="renameModalTitleDescription",e.RequestVerification="requestVerification",e.MarkAsVerified="markAsVerified",e.AddTab="addTab",e.EnableContextualChangeAnalysis="enableContextualChangeAnalysis",e.ShowSageQuery="showSageQuery",e.EditSageAnswer="editSageAnswer",e.SageAnswerFeedback="sageAnswerFeedback",e.ModifySageAnswer="modifySageAnswer",e.MoveToTab="onContainerMove",e.ManageMonitor="manageMonitor",e.PersonalisedViewsDropdown="personalisedViewsDropdown",e.LiveboardUsers="liveboardUsers",e.TML="tml",e.CreateLiveboard="CreateLiveboard",e.VerifiedLiveboard="verifiedLiveboard",e.AskAi="AskAi",e.AddToWatchlist="addToWatchlist",e.RemoveFromWatchlist="removeFromWatchlist",e.OrganiseFavourites="organiseFavourites",e.AIHighlights="AIHighlights",e.EditScheduleHomepage="editScheduleHomepage",e.PauseScheduleHomepage="pauseScheduleHomepage",e.ViewScheduleRunHomepage="viewScheduleRunHomepage",e.UnsubscribeScheduleHomepage="unsubscribeScheduleHomepage",e.DeleteScheduleHomepage="deleteScheduleHomepage",e.KPIAnalysisCTA="kpiAnalysisCTA"})(pt||(pt={}));var Yt;(function(e){e.FullApp="FullApp",e.SearchEmbed="SearchEmbed",e.LiveboardEmbed="LiveboardEmbed",e.VizEmbed="VizEmbed"})(Yt||(Yt={}));var io;(function(e){e.LEFT_CLICK="left-click",e.RIGHT_CLICK="right-click"})(io||(io={}));var q;(function(e){e.SILENT="SILENT",e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"})(q||(q={}));const wm={[q.SILENT]:()=>{},[q.ERROR]:console.error,[q.WARN]:console.warn,[q.INFO]:console.info,[q.DEBUG]:console.debug,[q.TRACE]:console.trace};let fa=q.TRACE;const Em=e=>{fa=e},nc={[q.SILENT]:0,[q.ERROR]:1,[q.WARN]:2,[q.INFO]:3,[q.DEBUG]:4,[q.TRACE]:5},ic=(e,t)=>{const r=nc[e],n=nc[t];return r-n};class Tm{constructor(){this.logLevel=q.ERROR,this.setLogLevel=t=>{this.logLevel=t},this.getLogLevel=()=>this.logLevel}canLog(t){return t===q.SILENT?!1:no(fa)?ic(this.logLevel,t)>=0:ic(fa,t)>=0}logMessages(t,r){if(this.canLog(r)){const n=wm[r];n&&n(...t)}}log(...t){this.info(t)}info(...t){this.logMessages(t,q.INFO)}debug(...t){this.logMessages(t,q.DEBUG)}trace(...t){this.logMessages(t,q.TRACE)}error(...t){this.logMessages(t,q.ERROR)}warn(...t){this.logMessages(t,q.WARN)}}const F=new Tm;function Cm(){this.__data__=[],this.size=0}var km=Cm;function xm(e,t){return e===t||e!==e&&t!==t}var cp=xm,Im=cp;function bm(e,t){for(var r=e.length;r--;)if(Im(e[r][0],t))return r;return-1}var Ao=bm,Am=Ao,Pm=Array.prototype,Om=Pm.splice;function Rm(e){var t=this.__data__,r=Am(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Om.call(t,r,1),--this.size,!0}var Lm=Rm,Dm=Ao;function Nm(e){var t=this.__data__,r=Dm(t,e);return r<0?void 0:t[r][1]}var $m=Nm,Mm=Ao;function Fm(e){return Mm(this.__data__,e)>-1}var Um=Fm,jm=Ao;function zm(e,t){var r=this.__data__,n=jm(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Hm=zm,Bm=km,Vm=Lm,Gm=$m,Wm=Um,qm=Hm;function Gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gr.prototype.clear=Bm;Gr.prototype.delete=Vm;Gr.prototype.get=Gm;Gr.prototype.has=Wm;Gr.prototype.set=qm;var Po=Gr,Km=Po;function Qm(){this.__data__=new Km,this.size=0}var Xm=Qm;function Ym(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Jm=Ym;function Zm(e){return this.__data__.get(e)}var ev=Zm;function tv(e){return this.__data__.has(e)}var rv=tv,nv=typeof ti=="object"&&ti&&ti.Object===Object&&ti,fp=nv,iv=fp,ov=typeof self=="object"&&self&&self.Object===Object&&self,sv=iv||ov||Function("return this")(),lt=sv,av=lt,lv=av.Symbol,wl=lv,oc=wl,dp=Object.prototype,uv=dp.hasOwnProperty,cv=dp.toString,cn=oc?oc.toStringTag:void 0;function fv(e){var t=uv.call(e,cn),r=e[cn];try{e[cn]=void 0;var n=!0}catch{}var i=cv.call(e);return n&&(t?e[cn]=r:delete e[cn]),i}var dv=fv,pv=Object.prototype,hv=pv.toString;function gv(e){return hv.call(e)}var mv=gv,sc=wl,vv=dv,_v=mv,yv="[object Null]",Sv="[object Undefined]",ac=sc?sc.toStringTag:void 0;function wv(e){return e==null?e===void 0?Sv:yv:ac&&ac in Object(e)?vv(e):_v(e)}var Oo=wv;function Ev(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pp=Ev,Tv=Oo,Cv=pp,kv="[object AsyncFunction]",xv="[object Function]",Iv="[object GeneratorFunction]",bv="[object Proxy]";function Av(e){if(!Cv(e))return!1;var t=Tv(e);return t==xv||t==Iv||t==kv||t==bv}var hp=Av,Pv=lt,Ov=Pv["__core-js_shared__"],Rv=Ov,as=Rv,lc=function(){var e=/[^.]+$/.exec(as&&as.keys&&as.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lv(e){return!!lc&&lc in e}var Dv=Lv,Nv=Function.prototype,$v=Nv.toString;function Mv(e){if(e!=null){try{return $v.call(e)}catch{}try{return e+""}catch{}}return""}var gp=Mv,Fv=hp,Uv=Dv,jv=pp,zv=gp,Hv=/[\\^$.*+?()[\]{}|]/g,Bv=/^\[object .+?Constructor\]$/,Vv=Function.prototype,Gv=Object.prototype,Wv=Vv.toString,qv=Gv.hasOwnProperty,Kv=RegExp("^"+Wv.call(qv).replace(Hv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qv(e){if(!jv(e)||Uv(e))return!1;var t=Fv(e)?Kv:Bv;return t.test(zv(e))}var Xv=Qv;function Yv(e,t){return e?.[t]}var Jv=Yv,Zv=Xv,e_=Jv;function t_(e,t){var r=e_(e,t);return Zv(r)?r:void 0}var Wr=t_,r_=Wr,n_=lt,i_=r_(n_,"Map"),El=i_,o_=Wr,s_=o_(Object,"create"),Ro=s_,uc=Ro;function a_(){this.__data__=uc?uc(null):{},this.size=0}var l_=a_;function u_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c_=u_,f_=Ro,d_="__lodash_hash_undefined__",p_=Object.prototype,h_=p_.hasOwnProperty;function g_(e){var t=this.__data__;if(f_){var r=t[e];return r===d_?void 0:r}return h_.call(t,e)?t[e]:void 0}var m_=g_,v_=Ro,__=Object.prototype,y_=__.hasOwnProperty;function S_(e){var t=this.__data__;return v_?t[e]!==void 0:y_.call(t,e)}var w_=S_,E_=Ro,T_="__lodash_hash_undefined__";function C_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=E_&&t===void 0?T_:t,this}var k_=C_,x_=l_,I_=c_,b_=m_,A_=w_,P_=k_;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=x_;qr.prototype.delete=I_;qr.prototype.get=b_;qr.prototype.has=A_;qr.prototype.set=P_;var O_=qr,cc=O_,R_=Po,L_=El;function D_(){this.size=0,this.__data__={hash:new cc,map:new(L_||R_),string:new cc}}var N_=D_;function $_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var M_=$_,F_=M_;function U_(e,t){var r=e.__data__;return F_(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Lo=U_,j_=Lo;function z_(e){var t=j_(this,e).delete(e);return this.size-=t?1:0,t}var H_=z_,B_=Lo;function V_(e){return B_(this,e).get(e)}var G_=V_,W_=Lo;function q_(e){return W_(this,e).has(e)}var K_=q_,Q_=Lo;function X_(e,t){var r=Q_(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Y_=X_,J_=N_,Z_=H_,ey=G_,ty=K_,ry=Y_;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Kr.prototype.clear=J_;Kr.prototype.delete=Z_;Kr.prototype.get=ey;Kr.prototype.has=ty;Kr.prototype.set=ry;var mp=Kr,ny=Po,iy=El,oy=mp,sy=200;function ay(e,t){var r=this.__data__;if(r instanceof ny){var n=r.__data__;if(!iy||n.length<sy-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new oy(n)}return r.set(e,t),this.size=r.size,this}var ly=ay,uy=Po,cy=Xm,fy=Jm,dy=ev,py=rv,hy=ly;function Qr(e){var t=this.__data__=new uy(e);this.size=t.size}Qr.prototype.clear=cy;Qr.prototype.delete=fy;Qr.prototype.get=dy;Qr.prototype.has=py;Qr.prototype.set=hy;var gy=Qr,my="__lodash_hash_undefined__";function vy(e){return this.__data__.set(e,my),this}var _y=vy;function yy(e){return this.__data__.has(e)}var Sy=yy,wy=mp,Ey=_y,Ty=Sy;function oo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new wy;++t<r;)this.add(e[t])}oo.prototype.add=oo.prototype.push=Ey;oo.prototype.has=Ty;var Cy=oo;function ky(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var xy=ky;function Iy(e,t){return e.has(t)}var by=Iy,Ay=Cy,Py=xy,Oy=by,Ry=1,Ly=2;function Dy(e,t,r,n,i,o){var s=r&Ry,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),p=o.get(t);if(u&&p)return u==t&&p==e;var h=-1,g=!0,_=r&Ly?new Ay:void 0;for(o.set(e,t),o.set(t,e);++h<a;){var v=e[h],x=t[h];if(n)var f=s?n(x,v,h,t,e,o):n(v,x,h,e,t,o);if(f!==void 0){if(f)continue;g=!1;break}if(_){if(!Py(t,function(d,m){if(!Oy(_,m)&&(v===d||i(v,d,r,n,o)))return _.push(m)})){g=!1;break}}else if(!(v===x||i(v,x,r,n,o))){g=!1;break}}return o.delete(e),o.delete(t),g}var vp=Dy,Ny=lt,$y=Ny.Uint8Array,My=$y;function Fy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Uy=Fy;function jy(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var zy=jy,fc=wl,dc=My,Hy=cp,By=vp,Vy=Uy,Gy=zy,Wy=1,qy=2,Ky="[object Boolean]",Qy="[object Date]",Xy="[object Error]",Yy="[object Map]",Jy="[object Number]",Zy="[object RegExp]",eS="[object Set]",tS="[object String]",rS="[object Symbol]",nS="[object ArrayBuffer]",iS="[object DataView]",pc=fc?fc.prototype:void 0,ls=pc?pc.valueOf:void 0;function oS(e,t,r,n,i,o,s){switch(r){case iS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nS:return!(e.byteLength!=t.byteLength||!o(new dc(e),new dc(t)));case Ky:case Qy:case Jy:return Hy(+e,+t);case Xy:return e.name==t.name&&e.message==t.message;case Zy:case tS:return e==t+"";case Yy:var a=Vy;case eS:var l=n&Wy;if(a||(a=Gy),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=qy,s.set(e,t);var p=By(a(e),a(t),n,i,o,s);return s.delete(e),p;case rS:if(ls)return ls.call(e)==ls.call(t)}return!1}var sS=oS;function aS(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var lS=aS,uS=Array.isArray,Tl=uS,cS=lS,fS=Tl;function dS(e,t,r){var n=t(e);return fS(e)?n:cS(n,r(e))}var pS=dS;function hS(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}var gS=hS;function mS(){return[]}var vS=mS,_S=gS,yS=vS,SS=Object.prototype,wS=SS.propertyIsEnumerable,hc=Object.getOwnPropertySymbols,ES=hc?function(e){return e==null?[]:(e=Object(e),_S(hc(e),function(t){return wS.call(e,t)}))}:yS,TS=ES;function CS(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var kS=CS;function xS(e){return e!=null&&typeof e=="object"}var Do=xS,IS=Oo,bS=Do,AS="[object Arguments]";function PS(e){return bS(e)&&IS(e)==AS}var OS=PS,gc=OS,RS=Do,_p=Object.prototype,LS=_p.hasOwnProperty,DS=_p.propertyIsEnumerable,NS=gc(function(){return arguments}())?gc:function(e){return RS(e)&&LS.call(e,"callee")&&!DS.call(e,"callee")},$S=NS,so={exports:{}};function MS(){return!1}var FS=MS;so.exports;(function(e,t){var r=lt,n=FS,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?r.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||n;e.exports=u})(so,so.exports);var yp=so.exports,US=9007199254740991,jS=/^(?:0|[1-9]\d*)$/;function zS(e,t){var r=typeof e;return t=t??US,!!t&&(r=="number"||r!="symbol"&&jS.test(e))&&e>-1&&e%1==0&&e<t}var HS=zS,BS=9007199254740991;function VS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=BS}var Sp=VS,GS=Oo,WS=Sp,qS=Do,KS="[object Arguments]",QS="[object Array]",XS="[object Boolean]",YS="[object Date]",JS="[object Error]",ZS="[object Function]",e0="[object Map]",t0="[object Number]",r0="[object Object]",n0="[object RegExp]",i0="[object Set]",o0="[object String]",s0="[object WeakMap]",a0="[object ArrayBuffer]",l0="[object DataView]",u0="[object Float32Array]",c0="[object Float64Array]",f0="[object Int8Array]",d0="[object Int16Array]",p0="[object Int32Array]",h0="[object Uint8Array]",g0="[object Uint8ClampedArray]",m0="[object Uint16Array]",v0="[object Uint32Array]",B={};B[u0]=B[c0]=B[f0]=B[d0]=B[p0]=B[h0]=B[g0]=B[m0]=B[v0]=!0;B[KS]=B[QS]=B[a0]=B[XS]=B[l0]=B[YS]=B[JS]=B[ZS]=B[e0]=B[t0]=B[r0]=B[n0]=B[i0]=B[o0]=B[s0]=!1;function _0(e){return qS(e)&&WS(e.length)&&!!B[GS(e)]}var y0=_0;function S0(e){return function(t){return e(t)}}var w0=S0,ao={exports:{}};ao.exports;(function(e,t){var r=fp,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,a=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a})(ao,ao.exports);var E0=ao.exports,T0=y0,C0=w0,mc=E0,vc=mc&&mc.isTypedArray,k0=vc?C0(vc):T0,wp=k0,x0=kS,I0=$S,b0=Tl,A0=yp,P0=HS,O0=wp,R0=Object.prototype,L0=R0.hasOwnProperty;function D0(e,t){var r=b0(e),n=!r&&I0(e),i=!r&&!n&&A0(e),o=!r&&!n&&!i&&O0(e),s=r||n||i||o,a=s?x0(e.length,String):[],l=a.length;for(var u in e)(t||L0.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||P0(u,l)))&&a.push(u);return a}var N0=D0,$0=Object.prototype;function M0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$0;return e===r}var F0=M0;function U0(e,t){return function(r){return e(t(r))}}var j0=U0,z0=j0,H0=z0(Object.keys,Object),B0=H0,V0=F0,G0=B0,W0=Object.prototype,q0=W0.hasOwnProperty;function K0(e){if(!V0(e))return G0(e);var t=[];for(var r in Object(e))q0.call(e,r)&&r!="constructor"&&t.push(r);return t}var Q0=K0,X0=hp,Y0=Sp;function J0(e){return e!=null&&Y0(e.length)&&!X0(e)}var Z0=J0,ew=N0,tw=Q0,rw=Z0;function nw(e){return rw(e)?ew(e):tw(e)}var iw=nw,ow=pS,sw=TS,aw=iw;function lw(e){return ow(e,aw,sw)}var uw=lw,_c=uw,cw=1,fw=Object.prototype,dw=fw.hasOwnProperty;function pw(e,t,r,n,i,o){var s=r&cw,a=_c(e),l=a.length,u=_c(t),p=u.length;if(l!=p&&!s)return!1;for(var h=l;h--;){var g=a[h];if(!(s?g in t:dw.call(t,g)))return!1}var _=o.get(e),v=o.get(t);if(_&&v)return _==t&&v==e;var x=!0;o.set(e,t),o.set(t,e);for(var f=s;++h<l;){g=a[h];var d=e[g],m=t[g];if(n)var y=s?n(m,d,g,t,e,o):n(d,m,g,e,t,o);if(!(y===void 0?d===m||i(d,m,r,n,o):y)){x=!1;break}f||(f=g=="constructor")}if(x&&!f){var T=e.constructor,w=t.constructor;T!=w&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(x=!1)}return o.delete(e),o.delete(t),x}var hw=pw,gw=Wr,mw=lt,vw=gw(mw,"DataView"),_w=vw,yw=Wr,Sw=lt,ww=yw(Sw,"Promise"),Ew=ww,Tw=Wr,Cw=lt,kw=Tw(Cw,"Set"),xw=kw,Iw=Wr,bw=lt,Aw=Iw(bw,"WeakMap"),Pw=Aw,da=_w,pa=El,ha=Ew,ga=xw,ma=Pw,Ep=Oo,Xr=gp,yc="[object Map]",Ow="[object Object]",Sc="[object Promise]",wc="[object Set]",Ec="[object WeakMap]",Tc="[object DataView]",Rw=Xr(da),Lw=Xr(pa),Dw=Xr(ha),Nw=Xr(ga),$w=Xr(ma),Bt=Ep;(da&&Bt(new da(new ArrayBuffer(1)))!=Tc||pa&&Bt(new pa)!=yc||ha&&Bt(ha.resolve())!=Sc||ga&&Bt(new ga)!=wc||ma&&Bt(new ma)!=Ec)&&(Bt=function(e){var t=Ep(e),r=t==Ow?e.constructor:void 0,n=r?Xr(r):"";if(n)switch(n){case Rw:return Tc;case Lw:return yc;case Dw:return Sc;case Nw:return wc;case $w:return Ec}return t});var Mw=Bt,us=gy,Fw=vp,Uw=sS,jw=hw,Cc=Mw,kc=Tl,xc=yp,zw=wp,Hw=1,Ic="[object Arguments]",bc="[object Array]",di="[object Object]",Bw=Object.prototype,Ac=Bw.hasOwnProperty;function Vw(e,t,r,n,i,o){var s=kc(e),a=kc(t),l=s?bc:Cc(e),u=a?bc:Cc(t);l=l==Ic?di:l,u=u==Ic?di:u;var p=l==di,h=u==di,g=l==u;if(g&&xc(e)){if(!xc(t))return!1;s=!0,p=!1}if(g&&!p)return o||(o=new us),s||zw(e)?Fw(e,t,r,n,i,o):Uw(e,t,l,r,n,i,o);if(!(r&Hw)){var _=p&&Ac.call(e,"__wrapped__"),v=h&&Ac.call(t,"__wrapped__");if(_||v){var x=_?e.value():e,f=v?t.value():t;return o||(o=new us),i(x,f,r,n,o)}}return g?(o||(o=new us),jw(e,t,r,n,i,o)):!1}var Gw=Vw,Ww=Gw,Pc=Do;function Tp(e,t,r,n,i){return e===t?!0:e==null||t==null||!Pc(e)&&!Pc(t)?e!==e&&t!==t:Ww(e,t,r,n,Tp,i)}var qw=Tp,Kw=qw;function Qw(e,t){return Kw(e,t)}var Xw=Qw;const Yw=zn(Xw),K={INVALID_THOUGHTSPOT_HOST:"Error parsing ThoughtSpot host. Please provide a valid URL.",LIVEBOARD_VIZ_ID_VALIDATION:"Please select a liveboard to embed.",TRIGGER_TIMED_OUT:"Trigger timedout in getting response",SEARCHEMBED_BETA_WRANING_MESSAGE:"Search Embed is in Beta in this release.",SAGE_EMBED_BETA_WARNING_MESSAGE:"Sage Embed is in Beta in this release.",THIRD_PARTY_COOKIE_BLOCKED_ALERT:"Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.",DUPLICATE_TOKEN_ERR:"Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.",SDK_NOT_INITIALIZED:"SDK not initialized",SESSION_INFO_FAILED:"Failed to get session info",INVALID_TOKEN_ERROR:"Received invalid token from getAuthToken callback or authToken endpoint.",MIXPANEL_TOKEN_NOT_FOUND:"Mixpanel token not found in session info",PRERENDER_ID_MISSING:"PreRender id is required for preRender",SYNC_STYLE_CALLED_BEFORE_RENDER:"PreRender should be called before using syncPreRenderStyle",CSP_VIOLATION_ALERT:"CSP violation detected. Please check the console errors for more details.",CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE:`Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts.
|
|
30
|
-
In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts`,MISSING_REPORTING_OBSERVER:"ReportingObserver not supported"},$t={AUTH_VERIFICATION:"/callosum/v1/session/info",SESSION_INFO:"/callosum/v1/session/info",SAML_LOGIN_TEMPLATE:e=>`/callosum/v1/saml/login?targetURLPath=${e}`,OIDC_LOGIN_TEMPLATE:e=>`/callosum/v1/oidc/login?targetURLPath=${e}`,TOKEN_LOGIN:"/callosum/v1/session/login/token",BASIC_LOGIN:"/callosum/v1/session/login",LOGOUT:"/callosum/v1/session/logout",EXECUTE_TML:"/api/rest/2.0/metadata/tml/import",EXPORT_TML:"/api/rest/2.0/metadata/tml/export",IS_ACTIVE:"/callosum/v1/session/isactive"};function Cl(e,t={}){return fetch(e,t).then(async r=>{var n;return!r.ok&&r.type!=="opaqueredirect"&&r.type!=="opaque"&&F.error("Failure",await((n=r.text)===null||n===void 0?void 0:n.call(r))),r})}async function Jw(e,t){const r=`${e}${$t.IS_ACTIVE}`;try{return(await fetch(r,{headers:{Authorization:`Bearer ${t}`,"x-requested-by":"ThoughtSpot"},credentials:"omit"})).ok}catch(n){F.warn(`Token Verification Service failed : ${n.message}`)}return!1}async function Zw(e){return fetch(e)}async function e1(e,t,r){const n=t?`username=${t}&auth_token=${r}`:`auth_token=${r}`;return Cl(`${e}${$t.TOKEN_LOGIN}?${n}`,{credentials:"include",redirect:"manual"})}async function t1(e,t,r){const n=t?`username=${encodeURIComponent(t)}&auth_token=${encodeURIComponent(r)}`:`auth_token=${encodeURIComponent(r)}`;return Cl(`${e}${$t.TOKEN_LOGIN}`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded","x-requested-by":"ThoughtSpot"},body:n,credentials:"include",redirect:"manual"})}async function r1(e,t,r){return Cl(`${e}${$t.BASIC_LOGIN}`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded","x-requested-by":"ThoughtSpot"},body:`username=${encodeURIComponent(t)}&password=${encodeURIComponent(r)}`,credentials:"include"})}let Jt=null;async function Mn(e){if(Jt&&!e.disableTokenVerification){let i;try{i=await Oc(e,Jt,!0)}catch{i=!1}if(i)return Jt}const{authEndpoint:t,getAuthToken:r}=e;let n=null;r?n=await r():n=await(await Zw(t)).text();try{await Oc(e,n)}catch(i){throw F.error(`${K.INVALID_TOKEN_ERROR} Error : ${i.message}`),i}return Jt=n,n}const Oc=async(e,t,r)=>{if(e.disableTokenVerification)return F.info("Token verification is disabled. Assuming token is valid."),!0;try{if(await Jw(e.thoughtSpotHost,t))return!0}catch{return!1}throw Jt&&Jt===t?(!e.suppressErrorAlerts&&!r&&alert(K.DUPLICATE_TOKEN_ERR),new Error(K.DUPLICATE_TOKEN_ERR)):new Error(K.INVALID_TOKEN_ERROR)},kl=()=>{Jt=null};let Cp={};const ie=()=>Cp,n1=e=>(Cp=e,e),No=async(e,t)=>{const r=ie();if(r.authType!==Z.TrustedAuthTokenCookieless)return fetch(e,t);const n=new Request(e,t),i=await Mn(r);return i&&n.headers.append("Authorization",`Bearer ${i}`),fetch(n)};async function lo({query:e,variables:t,thoughtSpotHost:r,isCompositeQuery:n=!1}){const i=_m(e);try{const s=await(await No(`${r}/prism/?op=${i}`,{method:"POST",headers:{"content-type":"application/json;charset=UTF-8","x-requested-by":"ThoughtSpot",accept:"*/*","accept-language":"en-us"},body:JSON.stringify({operationName:i,query:e,variables:t}),credentials:"include"})).json(),a=Object.values(s.data);return n?s.data:a[0]}catch(o){return o}}const i1=`
|
|
31
|
-
query GetSourceDetail($ids: [GUID!]!) {
|
|
32
|
-
getSourceDetailById(ids: $ids, type: LOGICAL_TABLE) {
|
|
33
|
-
id
|
|
34
|
-
name
|
|
35
|
-
description
|
|
36
|
-
authorName
|
|
37
|
-
authorDisplayName
|
|
38
|
-
isExternal
|
|
39
|
-
type
|
|
40
|
-
created
|
|
41
|
-
modified
|
|
42
|
-
columns {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
author
|
|
46
|
-
authorDisplayName
|
|
47
|
-
description
|
|
48
|
-
dataType
|
|
49
|
-
type
|
|
50
|
-
modified
|
|
51
|
-
ownerName
|
|
52
|
-
owner
|
|
53
|
-
dataRecency
|
|
54
|
-
sources {
|
|
55
|
-
tableId
|
|
56
|
-
tableName
|
|
57
|
-
columnId
|
|
58
|
-
columnName
|
|
59
|
-
__typename
|
|
60
|
-
}
|
|
61
|
-
synonyms
|
|
62
|
-
cohortAnswerId
|
|
63
|
-
__typename
|
|
64
|
-
}
|
|
65
|
-
relationships
|
|
66
|
-
destinationRelationships
|
|
67
|
-
dataSourceId
|
|
68
|
-
__typename
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
`,cs=new Map;async function o1(e,t){if(cs.get(t))return cs.get(t);const n=(await lo({query:i1,variables:{ids:[t]},thoughtSpotHost:e}))[0];return n&&cs.set(t,n),n}const Yr=`
|
|
72
|
-
id {
|
|
73
|
-
sessionId
|
|
74
|
-
genNo
|
|
75
|
-
acSession {
|
|
76
|
-
sessionId
|
|
77
|
-
genNo
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`,s1=`
|
|
81
|
-
mutation GetUnAggregatedAnswerSession($session: BachSessionIdInput!, $columns: [UserPointSelectionInput!]!) {
|
|
82
|
-
Answer__getUnaggregatedAnswer(session: $session, columns: $columns) {
|
|
83
|
-
${Yr}
|
|
84
|
-
answer {
|
|
85
|
-
visualizations {
|
|
86
|
-
... on TableViz {
|
|
87
|
-
columns {
|
|
88
|
-
column {
|
|
89
|
-
id
|
|
90
|
-
name
|
|
91
|
-
referencedColumns {
|
|
92
|
-
guid
|
|
93
|
-
displayName
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`,a1=`
|
|
103
|
-
mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!], $columnIds: [GUID!]) {
|
|
104
|
-
Answer__removeColumns(
|
|
105
|
-
session: $session
|
|
106
|
-
logicalColumnIds: $logicalColumnIds
|
|
107
|
-
columnIds: $columnIds
|
|
108
|
-
) {
|
|
109
|
-
${Yr}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
`,l1=`
|
|
113
|
-
mutation AddColumns($session: BachSessionIdInput!, $columns: [AnswerColumnInfo!]!) {
|
|
114
|
-
Answer__addColumn(session: $session, columns: $columns) {
|
|
115
|
-
${Yr}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
`,u1=`
|
|
119
|
-
mutation AddUpdateFilter($session: BachSessionIdInput!, $params: AddUpdateFilterInput!) {
|
|
120
|
-
Answer__addUpdateFilter(session: $session, params: $params) {
|
|
121
|
-
${Yr}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
`,c1=`
|
|
125
|
-
query GetAnswer($session: BachSessionIdInput!) {
|
|
126
|
-
getAnswer(session: $session) {
|
|
127
|
-
${Yr}
|
|
128
|
-
answer {
|
|
129
|
-
id
|
|
130
|
-
name
|
|
131
|
-
description
|
|
132
|
-
displayMode
|
|
133
|
-
sources {
|
|
134
|
-
header {
|
|
135
|
-
guid
|
|
136
|
-
displayName
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
filterGroups {
|
|
140
|
-
columnInfo {
|
|
141
|
-
name
|
|
142
|
-
referencedColumns {
|
|
143
|
-
guid
|
|
144
|
-
displayName
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
filters {
|
|
148
|
-
filterContent {
|
|
149
|
-
filterType
|
|
150
|
-
negate
|
|
151
|
-
value {
|
|
152
|
-
key
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
metadata {
|
|
158
|
-
author
|
|
159
|
-
authorId
|
|
160
|
-
createdAt
|
|
161
|
-
isDiscoverable
|
|
162
|
-
isHidden
|
|
163
|
-
modifiedAt
|
|
164
|
-
tags
|
|
165
|
-
}
|
|
166
|
-
visualizations {
|
|
167
|
-
... on TableViz {
|
|
168
|
-
columns {
|
|
169
|
-
column {
|
|
170
|
-
id
|
|
171
|
-
name
|
|
172
|
-
referencedColumns {
|
|
173
|
-
guid
|
|
174
|
-
displayName
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
`,f1=`
|
|
185
|
-
query GetTableWithHeadlineData($session: BachSessionIdInput!, $deadline: Int!, $dataPaginationParams: DataPaginationParamsInput!) {
|
|
186
|
-
getAnswer(session: $session) {
|
|
187
|
-
${Yr}
|
|
188
|
-
answer {
|
|
189
|
-
id
|
|
190
|
-
visualizations {
|
|
191
|
-
id
|
|
192
|
-
... on TableViz {
|
|
193
|
-
columns {
|
|
194
|
-
column {
|
|
195
|
-
id
|
|
196
|
-
name
|
|
197
|
-
type
|
|
198
|
-
aggregationType
|
|
199
|
-
dataType
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
data(deadline: $deadline, pagination: $dataPaginationParams)
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
`;var Rc;(function(e){e.GetChartWithData="GetChartWithData",e.GetTableWithHeadlineData="GetTableWithHeadlineData"})(Rc||(Rc={}));class $o{constructor(t,r,n,i){this.session=t,this.thoughtSpotHost=n,this.selectedPoints=i,this.session=up(t),r?this.answer=r:this.answer=this.executeQuery(c1,{}).then(o=>o?.answer)}async getSourceDetail(){const t=(await this.answer).sources[0].header.guid;return o1(this.thoughtSpotHost,t)}async removeColumns(t){return this.executeQuery(a1,{logicalColumnIds:t})}async addColumns(t){return this.executeQuery(l1,{columns:t.map(r=>({logicalColumnId:r}))})}async addColumnsByName(t){const r=await this.getSourceDetail(),n=fs(r,t);return this.addColumns([...n])}async addFilter(t,r,n){const i=await this.getSourceDetail(),o=fs(i,[t]);return this.executeQuery(u1,{params:{filterContent:[{filterType:r,value:n.map(s=>{const[a,l]=Sm(s);return{type:a.toUpperCase(),[`${l}Value`]:s}})}],filterGroupId:{logicalColumnId:o.values().next().value}}})}async fetchData(t=0,r=1e3){const{answer:n}=await this.executeQuery(f1,{deadline:0,dataPaginationParams:{isClientPaginated:!0,offset:t,size:r}}),{columns:i,data:o}=n.visualizations.find(s=>!!s.data)||{};return{columns:i,data:o}}async fetchCSVBlob(t="en-us",r=!1){const n=this.getFetchCSVBlobUrl(t,r);return No(n,{credentials:"include"})}getFetchCSVBlobUrl(t="en-us",r=!1){return`${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${t}&exportFileName=data&hideCsvHeader=${!r}`}async getUnderlyingDataForPoint(t,r){if(!r&&!this.selectedPoints)throw new Error("Needs to be triggered in context of a point");r||(r=d1(this.selectedPoints));const n=await this.getSourceDetail(),i=fs(n,t),o=await lo({query:s1,variables:{session:this.session,columns:r},thoughtSpotHost:this.thoughtSpotHost}),s=new $o(o.id,o.answer,this.thoughtSpotHost),a=new Set(o.answer.visualizations[0].columns.map(p=>p.column.referencedColumns[0].guid)),l=[...i].filter(p=>!a.has(p));l.length&&await s.addColumns(l);const u=[...a].filter(p=>!i.has(p));return u.length&&await s.removeColumns(u),s}async executeQuery(t,r){const n=await lo({query:t,variables:{session:this.session,...r},thoughtSpotHost:this.thoughtSpotHost,isCompositeQuery:!1});return this.session=lp(this.session,n?.id||{}),n}getSession(){return this.session}getAnswer(){return this.answer}}function fs(e,t){const r=e.columns.reduce((n,i)=>(n[i.name.toLowerCase()]=i,n),{});return new Set(t.map(n=>r[n.toLowerCase()].id))}function d1(e){const t=[];function r(n){var i;const o=n.column.dataType;n.column.id;let s;o==="DATE"?Number.isFinite(n.value)?s=[{epochRange:{startEpoch:n.value}}]:!((i=n.value)===null||i===void 0)&&i.v&&(s=[{epochRange:{startEpoch:n.value.v.s,endEpoch:n.value.v.e}}]):s=[{value:n.value}],t.push({columnId:n.column.id,dataValue:s})}return e.forEach(n=>{n.selectedAttributes.forEach(r)}),t}const p1=new RegExp(["(^(https?:)//)?","(([^:/?#]*)(?::([0-9]+))?)","(/{0,1}[^?#]*)","(\\?[^#]*|)","(#.*|)$"].join("")),xl=e=>{if(!e.thoughtSpotHost)throw new Error(K.INVALID_THOUGHTSPOT_HOST);const t=e.thoughtSpotHost.match(p1);if(!t)throw new Error(K.INVALID_THOUGHTSPOT_HOST);const r=t[2]||window.location.protocol,n=t[3];let i=t[6];return i.charAt(i.length-1)==="/"&&(i=i.substring(0,i.length-1)),`${r}//${n}${i}`},h1=e=>{if(e.basepath)return e.basepath;const t=xl(e);return t.includes("://localhost")&&!t.includes(":8443")?"":"v2"},g1=2e3,m1="100%",v1="100%";var At={DEBUG:!1,LIB_VERSION:"2.45.0"},de;if(typeof window>"u"){var Lc={hostname:""};de={navigator:{userAgent:""},document:{location:Lc,referrer:""},screen:{width:0,height:0},location:Lc}}else de=window;var Mo=Array.prototype,_1=Function.prototype,kp=Object.prototype,wt=Mo.slice,Yn=kp.toString,Fo=kp.hasOwnProperty,J=de.console,tt=de.navigator,H=de.document,fn=de.opera,uo=de.screen,Ne=tt.userAgent,ds=_1.bind,Dc=Mo.forEach,Nc=Mo.indexOf,$c=Mo.map,y1=Array.isArray,va={},c={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},z={log:function(){if(At.DEBUG&&!c.isUndefined(J)&&J)try{J.log.apply(J,arguments)}catch{c.each(arguments,function(t){J.log(t)})}},warn:function(){if(At.DEBUG&&!c.isUndefined(J)&&J){var e=["Mixpanel warning:"].concat(c.toArray(arguments));try{J.warn.apply(J,e)}catch{c.each(e,function(r){J.warn(r)})}}},error:function(){if(At.DEBUG&&!c.isUndefined(J)&&J){var e=["Mixpanel error:"].concat(c.toArray(arguments));try{J.error.apply(J,e)}catch{c.each(e,function(r){J.error(r)})}}},critical:function(){if(!c.isUndefined(J)&&J){var e=["Mixpanel error:"].concat(c.toArray(arguments));try{J.error.apply(J,e)}catch{c.each(e,function(r){J.error(r)})}}}},ps=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(z,arguments)}},Il=function(e){return{log:ps(z.log,e),error:ps(z.error,e),critical:ps(z.critical,e)}};c.bind=function(e,t){var r,n;if(ds&&e.bind===ds)return ds.apply(e,wt.call(arguments,1));if(!c.isFunction(e))throw new TypeError;return r=wt.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(wt.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(wt.call(arguments)));return Object(s)===s?s:o},n};c.each=function(e,t,r){if(e!=null){if(Dc&&e.forEach===Dc)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===va)return}else for(var o in e)if(Fo.call(e,o)&&t.call(r,e[o],o,e)===va)return}};c.extend=function(e){return c.each(wt.call(arguments,1),function(t){for(var r in t)t[r]!==void 0&&(e[r]=t[r])}),e};c.isArray=y1||function(e){return Yn.call(e)==="[object Array]"};c.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};c.isArguments=function(e){return!!(e&&Fo.call(e,"callee"))};c.toArray=function(e){return e?e.toArray?e.toArray():c.isArray(e)||c.isArguments(e)?wt.call(e):c.values(e):[]};c.map=function(e,t,r){if($c&&e.map===$c)return e.map(t,r);var n=[];return c.each(e,function(i){n.push(t.call(r,i))}),n};c.keys=function(e){var t=[];return e===null||c.each(e,function(r,n){t[t.length]=n}),t};c.values=function(e){var t=[];return e===null||c.each(e,function(r){t[t.length]=r}),t};c.include=function(e,t){var r=!1;return e===null?r:Nc&&e.indexOf===Nc?e.indexOf(t)!=-1:(c.each(e,function(n){if(r||(r=n===t))return va}),r)};c.includes=function(e,t){return e.indexOf(t)!==-1};c.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};c.isObject=function(e){return e===Object(e)&&!c.isArray(e)};c.isEmptyObject=function(e){if(c.isObject(e)){for(var t in e)if(Fo.call(e,t))return!1;return!0}return!1};c.isUndefined=function(e){return e===void 0};c.isString=function(e){return Yn.call(e)=="[object String]"};c.isDate=function(e){return Yn.call(e)=="[object Date]"};c.isNumber=function(e){return Yn.call(e)=="[object Number]"};c.isElement=function(e){return!!(e&&e.nodeType===1)};c.encodeDates=function(e){return c.each(e,function(t,r){c.isDate(t)?e[r]=c.formatDate(t):c.isObject(t)&&(e[r]=c.encodeDates(t))}),e};c.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};c.formatDate=function(e){function t(r){return r<10?"0"+r:r}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};c.strip_empty_properties=function(e){var t={};return c.each(e,function(r,n){c.isString(r)&&r.length>0&&(t[n]=r)}),t};c.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):c.isArray(e)?(r=[],c.each(e,function(n){r.push(c.truncate(n,t))})):c.isObject(e)?(r={},c.each(e,function(n,i){r[i]=c.truncate(n,t)})):r=e,r};c.JSONEncode=function(){return function(e){var t=e,r=function(i){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(i)?'"'+i.replace(o,function(a){var l=s[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},n=function(i,o){var s="",a=" ",l=0,u="",p="",h=0,g=s,_=[],v=o[i];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(i)),typeof v){case"string":return r(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,_=[],Yn.apply(v)==="[object Array]"){for(h=v.length,l=0;l<h;l+=1)_[l]=n(l,v)||"null";return p=_.length===0?"[]":s?`[
|
|
209
|
-
`+s+_.join(`,
|
|
210
|
-
`+s)+`
|
|
211
|
-
`+g+"]":"["+_.join(",")+"]",s=g,p}for(u in v)Fo.call(v,u)&&(p=n(u,v),p&&_.push(r(u)+(s?": ":":")+p));return p=_.length===0?"{}":s?"{"+_.join(",")+g+"}":"{"+_.join(",")+"}",s=g,p}};return n("",{"":t})}}();c.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
212
|
-
`,r:"\r",t:" "},n,i=function(_){var v=new SyntaxError(_);throw v.at=e,v.text=n,v},o=function(_){return _&&_!==t&&i("Expected '"+_+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var _,v="";for(t==="-"&&(v="-",o("-"));t>="0"&&t<="9";)v+=t,o();if(t===".")for(v+=".";o()&&t>="0"&&t<="9";)v+=t;if(t==="e"||t==="E")for(v+=t,o(),(t==="-"||t==="+")&&(v+=t,o());t>="0"&&t<="9";)v+=t,o();if(_=+v,!isFinite(_))i("Bad number");else return _},a=function(){var _,v,x="",f;if(t==='"')for(;o();){if(t==='"')return o(),x;if(t==="\\")if(o(),t==="u"){for(f=0,v=0;v<4&&(_=parseInt(o(),16),!!isFinite(_));v+=1)f=f*16+_;x+=String.fromCharCode(f)}else if(typeof r[t]=="string")x+=r[t];else break;else x+=t}i("Bad string")},l=function(){for(;t&&t<=" ";)o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},p,h=function(){var _=[];if(t==="["){if(o("["),l(),t==="]")return o("]"),_;for(;t;){if(_.push(p()),l(),t==="]")return o("]"),_;o(","),l()}}i("Bad array")},g=function(){var _,v={};if(t==="{"){if(o("{"),l(),t==="}")return o("}"),v;for(;t;){if(_=a(),l(),o(":"),Object.hasOwnProperty.call(v,_)&&i('Duplicate key "'+_+'"'),v[_]=p(),l(),t==="}")return o("}"),v;o(","),l()}}i("Bad object")};return p=function(){switch(l(),t){case"{":return g();case"[":return h();case'"':return a();case"-":return s();default:return t>="0"&&t<="9"?s():u()}},function(_){var v;return n=_,e=0,t=" ",v=p(),l(),t&&i("Syntax error"),v}}();c.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,i,o,s,a,l,u,p=0,h=0,g="",_=[];if(!e)return e;e=c.utf8Encode(e);do r=e.charCodeAt(p++),n=e.charCodeAt(p++),i=e.charCodeAt(p++),u=r<<16|n<<8|i,o=u>>18&63,s=u>>12&63,a=u>>6&63,l=u&63,_[h++]=t.charAt(o)+t.charAt(s)+t.charAt(a)+t.charAt(l);while(p<e.length);switch(g=_.join(""),e.length%3){case 1:g=g.slice(0,-2)+"==";break;case 2:g=g.slice(0,-1)+"=";break}return g};c.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
|
|
213
|
-
`).replace(/\r/g,`
|
|
214
|
-
`);var t="",r,n,i=0,o;for(r=n=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),a=null;s<128?n++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=o+1)}return n>r&&(t+=e.substring(r,e.length)),t};c.UUID=function(){var e=function(){for(var n=1*new Date,i=0;n==1*new Date;)i++;return n.toString(16)+i.toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var n=Ne,i,o,s=[],a=0;function l(u,p){var h,g=0;for(h=0;h<p.length;h++)g|=s[h]<<h*8;return u^g}for(i=0;i<n.length;i++)o=n.charCodeAt(i),s.unshift(o&255),s.length>=4&&(a=l(a,s),s=[]);return s.length>0&&(a=l(a,s)),a.toString(16)};return function(){var n=(uo.height*uo.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var Mc=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];c.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Mc.length;t++)if(e.indexOf(Mc[t])!==-1)return!0;return!1};c.HTTPBuildQuery=function(e,t){var r,n,i=[];return c.isUndefined(t)&&(t="&"),c.each(e,function(o,s){r=encodeURIComponent(o.toString()),n=encodeURIComponent(s),i[i.length]=n+"="+r}),i.join(t)};c.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch{z.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};c.cookie={get:function(e){for(var t=e+"=",r=H.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=c.JSONDecode(c.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",l="",u="";if(s)a="; domain="+s;else if(n){var p=Fc(H.location.hostname);a=p?"; domain=."+p:""}if(r){var h=new Date;h.setTime(h.getTime()+r*1e3),l="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),H.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",l="",u="";if(s)a="; domain="+s;else if(n){var p=Fc(H.location.hostname);a=p?"; domain=."+p:""}if(r){var h=new Date;h.setTime(h.getTime()+r*24*60*60*1e3),l="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var g=e+"="+encodeURIComponent(t)+l+"; path=/"+a+u;return H.cookie=g,g},remove:function(e,t,r){c.cookie.set(e,"",-1,t,!1,!1,r)}};var hs=null,co=function(e,t){if(hs!==null&&!t)return hs;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+bl(8),i="xyz";e.setItem(n,i),e.getItem(n)!==i&&(r=!1),e.removeItem(n)}catch{r=!1}return hs=r,r};c.localStorage={is_supported:function(e){var t=co(null,e);return t||z.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){z.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){c.localStorage.error(t)}return null},parse:function(e){try{return c.JSONDecode(c.localStorage.get(e))||{}}catch{}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(r){c.localStorage.error(r)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){c.localStorage.error(t)}}};c.register_event=function(){var e=function(n,i,o,s,a){if(!n){z.error("No valid element provided to register_event");return}if(n.addEventListener&&!s)n.addEventListener(i,o,!!a);else{var l="on"+i,u=n[l];n[l]=t(n,o,u)}};function t(n,i,o){var s=function(a){if(a=a||r(window.event),!!a){var l=!0,u,p;return c.isFunction(o)&&(u=o(a)),p=i.call(n,a),(u===!1||p===!1)&&(l=!1),l}};return s}function r(n){return n&&(n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation),n}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var S1=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');c.dom_query=function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(i,o){var s=" "+o+" ";return(" "+i.className+" ").replace(t," ").indexOf(s)>=0}function n(i){if(!H.getElementsByTagName)return[];var o=i.split(" "),s,a,l,u,p,h,g,_,v,x,f=[H];for(h=0;h<o.length;h++){if(s=o[h].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),l=a[0];var d=a[1],m=H.getElementById(d);if(!m||l&&m.nodeName.toLowerCase()!=l)return[];f=[m];continue}if(s.indexOf(".")>-1){a=s.split("."),l=a[0];var y=a[1];for(l||(l="*"),u=[],p=0,g=0;g<f.length;g++)for(l=="*"?v=e(f[g]):v=f[g].getElementsByTagName(l),_=0;_<v.length;_++)u[p++]=v[_];for(f=[],x=0,g=0;g<u.length;g++)u[g].className&&c.isString(u[g].className)&&r(u[g],y)&&(f[x++]=u[g]);continue}var T=s.match(S1);if(T){l=T[1];var w=T[2],b=T[3],R=T[4];for(l||(l="*"),u=[],p=0,g=0;g<f.length;g++)for(l=="*"?v=e(f[g]):v=f[g].getElementsByTagName(l),_=0;_<v.length;_++)u[p++]=v[_];f=[],x=0;var P;switch(b){case"=":P=function(k){return k.getAttribute(w)==R};break;case"~":P=function(k){return k.getAttribute(w).match(new RegExp("\\b"+R+"\\b"))};break;case"|":P=function(k){return k.getAttribute(w).match(new RegExp("^"+R+"-?"))};break;case"^":P=function(k){return k.getAttribute(w).indexOf(R)===0};break;case"$":P=function(k){return k.getAttribute(w).lastIndexOf(R)==k.getAttribute(w).length-R.length};break;case"*":P=function(k){return k.getAttribute(w).indexOf(R)>-1};break;default:P=function(k){return k.getAttribute(w)}}for(f=[],x=0,g=0;g<u.length;g++)P(u[g])&&(f[x++]=u[g]);continue}for(l=s,u=[],p=0,g=0;g<f.length;g++)for(v=f[g].getElementsByTagName(l),_=0;_<v.length;_++)u[p++]=v[_];f=u}return f}return function(i){return c.isElement(i)?[i]:c.isObject(i)&&!c.isUndefined(i.length)?i:n.call(this,i)}}();c.info={campaignParams:function(){var e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),t="",r={};return c.each(e,function(n){t=c.getQueryParam(H.URL,n),t.length&&(r[n]=t)}),r},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=c.info.searchEngine(e),r=t!="yahoo"?"q":"p",n={};if(t!==null){n.$search_engine=t;var i=c.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||c.includes(e," OPR/")?c.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":c.includes(e,"IEMobile")||c.includes(e,"WPDesktop")?"Internet Explorer Mobile":c.includes(e,"SamsungBrowser/")?"Samsung Internet":c.includes(e,"Edge")||c.includes(e,"Edg/")?"Microsoft Edge":c.includes(e,"FBIOS")?"Facebook Mobile":c.includes(e,"Chrome")?"Chrome":c.includes(e,"CriOS")?"Chrome iOS":c.includes(e,"UCWEB")||c.includes(e,"UCBrowser")?"UC Browser":c.includes(e,"FxiOS")?"Firefox iOS":c.includes(t,"Apple")?c.includes(e,"Mobile")?"Mobile Safari":"Safari":c.includes(e,"Android")?"Android Mobile":c.includes(e,"Konqueror")?"Konqueror":c.includes(e,"Firefox")?"Firefox":c.includes(e,"MSIE")||c.includes(e,"Trident/")?"Internet Explorer":c.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=c.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=i[n];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=Ne;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return c.extend(c.strip_empty_properties({$os:c.info.os(),$browser:c.info.browser(Ne,tt.vendor,fn),$referrer:H.referrer,$referring_domain:c.info.referringDomain(H.referrer),$device:c.info.device(Ne)}),{$current_url:de.location.href,$browser_version:c.info.browserVersion(Ne,tt.vendor,fn),$screen_height:uo.height,$screen_width:uo.width,mp_lib:"web",$lib_version:At.LIB_VERSION,$insert_id:bl(),time:c.timestamp()/1e3})},people_properties:function(){return c.extend(c.strip_empty_properties({$os:c.info.os(),$browser:c.info.browser(Ne,tt.vendor,fn)}),{$browser_version:c.info.browserVersion(Ne,tt.vendor,fn)})},pageviewInfo:function(e){return c.strip_empty_properties({mp_page:e,mp_referrer:H.referrer,mp_browser:c.info.browser(Ne,tt.vendor,fn),mp_platform:c.info.os()})}};var bl=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},w1=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,E1=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fc=function(e){var t=E1,r=e.split("."),n=r[r.length-1];(n.length>4||n==="com"||n==="org")&&(t=w1);var i=e.match(t);return i?i[0]:""},fo=null,po=null;typeof JSON<"u"&&(fo=JSON.stringify,po=JSON.parse);fo=fo||c.JSONEncode;po=po||c.JSONDecode;c.toArray=c.toArray;c.isObject=c.isObject;c.JSONEncode=c.JSONEncode;c.JSONDecode=c.JSONDecode;c.isBlockedUA=c.isBlockedUA;c.isEmptyObject=c.isEmptyObject;c.info=c.info;c.info.device=c.info.device;c.info.browser=c.info.browser;c.info.browserVersion=c.info.browserVersion;c.info.properties=c.info.properties;var ut=function(){};ut.prototype.create_properties=function(){};ut.prototype.event_handler=function(){};ut.prototype.after_track_handler=function(){};ut.prototype.init=function(e){return this.mp=e,this};ut.prototype.track=function(e,t,r,n){var i=this,o=c.dom_query(e);if(o.length===0){z.error("The DOM query ("+e+") returned 0 elements");return}return c.each(o,function(s){c.register_event(s,this.override_event,function(a){var l={},u=i.create_properties(r,this),p=i.mp.get_config("track_links_timeout");i.event_handler(a,this,l),window.setTimeout(i.track_callback(n,u,l,!0),p),i.mp.track(t,u,i.track_callback(n,u,l))})},this),!0};ut.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&i.after_track_handler(t,r,n))}};ut.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=c.extend({},e),r};var Fr=function(){this.override_event="click"};c.inherit(Fr,ut);Fr.prototype.create_properties=function(e,t){var r=Fr.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Fr.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Fr.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Uo=function(){this.override_event="submit"};c.inherit(Uo,ut);Uo.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Uo.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var T1=Il("lock"),xp=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};xp.prototype.withLock=function(e,t,r){!r&&typeof t!="function"&&(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),i=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,u=o+":X",p=o+":Y",h=o+":Z",g=function(m){t&&t(m)},_=function(m){if(new Date().getTime()-i>a){T1.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+n+"]"),l.removeItem(h),l.removeItem(p),f();return}setTimeout(function(){try{m()}catch(y){g(y)}},s*(Math.random()+.1))},v=function(m,y){m()?y():_(function(){v(m,y)})},x=function(){var m=l.getItem(p);if(m&&m!==n)return!1;if(l.setItem(p,n),l.getItem(p)===n)return!0;if(!co(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},f=function(){l.setItem(u,n),v(x,function(){if(l.getItem(u)===n){d();return}_(function(){if(l.getItem(p)!==n){f();return}v(function(){return!l.getItem(h)},d)})})},d=function(){l.setItem(h,"1");try{e()}finally{l.removeItem(h),l.getItem(p)===n&&l.removeItem(p),l.getItem(u)===n&&l.removeItem(u)}};try{if(co(l,!0))f();else throw new Error("localStorage support check failed")}catch(m){g(m)}};var Uc=Il("batch"),Mt=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||c.bind(Uc.error,Uc),this.lock=new xp(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};Mt.prototype.enqueue=function(e,t,r){var n={id:bl(),flushAfter:new Date().getTime()+t*2,payload:e};this.lock.withLock(c.bind(function(){var o;try{var s=this.readFromStorage();s.push(n),o=this.saveToStorage(s),o&&this.memQueue.push(n)}catch{this.reportError("Error enqueueing item",e),o=!1}r&&r(o)},this),c.bind(function(o){this.reportError("Error acquiring storage lock",o),r&&r(!1)},this),this.pid)};Mt.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var r=this.readFromStorage();if(r.length){var n={};c.each(t,function(s){n[s.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var jc=function(e,t){var r=[];return c.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};Mt.prototype.removeItemsByID=function(e,t){var r={};c.each(e,function(i){r[i]=!0}),this.memQueue=jc(this.memQueue,r);var n=c.bind(function(){var i;try{var o=this.readFromStorage();if(o=jc(o,r),i=this.saveToStorage(o),i){o=this.readFromStorage();for(var s=0;s<o.length;s++){var a=o[s];if(a.id&&r[a.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",e),i=!1}return i},this);this.lock.withLock(function(){var o=n();t&&t(o)},c.bind(function(o){var s=!1;if(this.reportError("Error acquiring storage lock",o),!co(this.storage,!0)&&(s=n(),!s))try{this.storage.removeItem(this.storageKey)}catch(a){this.reportError("Error clearing queue",a)}t&&t(s)},this),this.pid)};var zc=function(e,t){var r=[];return c.each(e,function(n){var i=n.id;if(i in t){var o=t[i];o!==null&&(n.payload=o,r.push(n))}else r.push(n)}),r};Mt.prototype.updatePayloads=function(e,t){this.memQueue=zc(this.memQueue,e),this.lock.withLock(c.bind(function(){var n;try{var i=this.readFromStorage();i=zc(i,e),n=this.saveToStorage(i)}catch{this.reportError("Error updating items",e),n=!1}t&&t(n)},this),c.bind(function(n){this.reportError("Error acquiring storage lock",n),t&&t(!1)},this),this.pid)};Mt.prototype.readFromStorage=function(){var e;try{e=this.storage.getItem(this.storageKey),e&&(e=po(e),c.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]};Mt.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,fo(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}};Mt.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var C1=10*60*1e3,kn=Il("batch"),qe=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Mt(e,{errorReporter:c.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0};qe.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)};qe.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};qe.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};qe.prototype.clear=function(){this.queue.clear()};qe.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};qe.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};qe.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(c.bind(this.flush,this),this.flushInterval))};qe.prototype.flush=function(e){try{if(this.requestInProgress){kn.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize,i=this.queue.fillBatch(n),o=[],s={};if(c.each(i,function(u){var p=u.payload;this.beforeSendHook&&!u.orphaned&&(p=this.beforeSendHook(p)),p&&o.push(p),s[u.id]=p},this),o.length<1){this.resetFlush();return}this.requestInProgress=!0;var a=c.bind(function(u){this.requestInProgress=!1;try{var p=!1;if(e.unloading)this.queue.updatePayloads(s);else if(c.isObject(u)&&u.error==="timeout"&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(c.isObject(u)&&u.xhr_req&&(u.xhr_req.status>=500||u.xhr_req.status===429||u.error==="timeout")){var h=this.flushInterval*2,g=u.xhr_req.responseHeaders;if(g){var _=g["Retry-After"];_&&(h=parseInt(_,10)*1e3||h)}h=Math.min(C1,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h)}else if(c.isObject(u)&&u.xhr_req&&u.xhr_req.status===413)if(i.length>1){var v=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,v,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),p=!0;else p=!0;p&&this.queue.removeItemsByID(c.map(i,function(x){return x.id}),c.bind(function(x){x?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this))}catch(x){this.reportError("Error handling API response",x),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),kn.log("MIXPANEL REQUEST:",o),this.sendRequest(o,l,a)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};qe.prototype.reportError=function(e,t){if(kn.error.apply(kn.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){kn.error(r)}};var k1="__mp_opt_in_out_";function x1(e,t){Ap(!0,e,t)}function I1(e,t){Ap(!1,e,t)}function b1(e,t){return bp(e,t)==="1"}function Ip(e,t){if(P1(t))return z.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=bp(e,t)==="0";return r&&z.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Jn(e){return Ol(e,function(t){return this.get_config(t)})}function Ft(e){return Ol(e,function(t){return this._get_config(t)})}function Jr(e){return Ol(e,function(t){return this._get_config(t)})}function A1(e,t){t=t||{},Al(t).remove(Pl(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Al(e){return e=e||{},e.persistenceType==="localStorage"?c.localStorage:c.cookie}function Pl(e,t){return t=t||{},(t.persistencePrefix||k1)+e}function bp(e,t){return Al(t).get(Pl(e,t))}function P1(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||de,r=t.navigator||{},n=!1;return c.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(i){c.includes([!0,1,"1","yes"],i)&&(n=!0)}),n}function Ap(e,t,r){if(!c.isString(t)||!t.length){z.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},Al(r).set(Pl(t,r),e?1:0,c.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function Ol(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Ip(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(u){z.error("Unexpected error when checking tracking opt-out status: "+u)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var Lt="$set",Ur="$set_once",$e="$unset",lr="$add",st="$append",ur="$union",Dt="$remove",O1="$delete",Pp={set_action:function(e,t){var r={},n={};return c.isObject(e)?c.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[Lt]=n,r},unset_action:function(e){var t={},r=[];return c.isArray(e)||(e=[e]),c.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[$e]=r,t},set_once_action:function(e,t){var r={},n={};return c.isObject(e)?c.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[Ur]=n,r},union_action:function(e,t){var r={},n={};return c.isObject(e)?c.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=c.isArray(i)?i:[i])},this):n[e]=c.isArray(t)?t:[t],r[ur]=n,r},append_action:function(e,t){var r={},n={};return c.isObject(e)?c.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[st]=n,r},remove_action:function(e,t){var r={},n={};return c.isObject(e)?c.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[Dt]=n,r},delete_action:function(){var e={};return e[O1]="",e}},V=function(){};c.extend(V.prototype,Pp);V.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};V.prototype.set=Jr(function(e,t,r){var n=this.set_action(e,t);return c.isObject(e)&&(r=t),this._send_request(n,r)});V.prototype.set_once=Jr(function(e,t,r){var n=this.set_once_action(e,t);return c.isObject(e)&&(r=t),this._send_request(n,r)});V.prototype.unset=Jr(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});V.prototype.union=Jr(function(e,t,r){c.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});V.prototype.delete=Jr(function(e){var t=this.delete_action();return this._send_request(t,e)});V.prototype.remove=Jr(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});V.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=c.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)};V.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};V.prototype._get_config=function(e){return this._mixpanel.get_config(e)};V.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};V.prototype.remove=V.prototype.remove;V.prototype.set=V.prototype.set;V.prototype.set_once=V.prototype.set_once;V.prototype.union=V.prototype.union;V.prototype.unset=V.prototype.unset;V.prototype.toString=V.prototype.toString;var D=function(){};c.extend(D.prototype,Pp);D.prototype._init=function(e){this._mixpanel=e};D.prototype.set=Ft(function(e,t,r){var n=this.set_action(e,t);return c.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Lt]=c.extend({},c.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),n[Lt]),this._send_request(n,r)});D.prototype.set_once=Ft(function(e,t,r){var n=this.set_once_action(e,t);return c.isObject(e)&&(r=t),this._send_request(n,r)});D.prototype.unset=Ft(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});D.prototype.increment=Ft(function(e,t,r){var n={},i={};return c.isObject(e)?(c.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){z.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[s]=o},this),r=t):(c.isUndefined(t)&&(t=1),i[e]=t),n[lr]=i,this._send_request(n,r)});D.prototype.append=Ft(function(e,t,r){c.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});D.prototype.remove=Ft(function(e,t,r){c.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});D.prototype.union=Ft(function(e,t,r){c.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});D.prototype.track_charge=Ft(function(e,t,r){if(!c.isNumber(e)&&(e=parseFloat(e),isNaN(e))){z.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",c.extend({$amount:e},t),r)});D.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};D.prototype.delete_user=function(){if(!this._identify_called()){z.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};D.prototype.toString=function(){return this._mixpanel.toString()+".people"};D.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=c.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),c.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),c.truncate(o,255))};D.prototype._get_config=function(e){return this._mixpanel.get_config(e)};D.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};D.prototype._enqueue=function(e){Lt in e?this._mixpanel.persistence._add_to_people_queue(Lt,e):Ur in e?this._mixpanel.persistence._add_to_people_queue(Ur,e):$e in e?this._mixpanel.persistence._add_to_people_queue($e,e):lr in e?this._mixpanel.persistence._add_to_people_queue(lr,e):st in e?this._mixpanel.persistence._add_to_people_queue(st,e):Dt in e?this._mixpanel.persistence._add_to_people_queue(Dt,e):ur in e?this._mixpanel.persistence._add_to_people_queue(ur,e):z.error("Invalid call to _enqueue():",e)};D.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=c.extend({},this._mixpanel.persistence._get_queue(e)),s=o;!c.isUndefined(o)&&c.isObject(o)&&!c.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),n&&(s=n(o)),t.call(i,s,function(a,l){a===0&&i._mixpanel.persistence._add_to_people_queue(e,o),c.isUndefined(r)||r(a,l)}))};D.prototype._flush=function(e,t,r,n,i,o,s){var a=this,l=this._mixpanel.persistence._get_queue(st),u=this._mixpanel.persistence._get_queue(Dt);if(this._flush_one_queue(Lt,this.set,e),this._flush_one_queue(Ur,this.set_once,n),this._flush_one_queue($e,this.unset,o,function(f){return c.keys(f)}),this._flush_one_queue(lr,this.increment,t),this._flush_one_queue(ur,this.union,i),!c.isUndefined(l)&&c.isArray(l)&&l.length){for(var p,h=function(f,d){f===0&&a._mixpanel.persistence._add_to_people_queue(st,p),c.isUndefined(r)||r(f,d)},g=l.length-1;g>=0;g--)p=l.pop(),c.isEmptyObject(p)||a.append(p,h);a._mixpanel.persistence.save()}if(!c.isUndefined(u)&&c.isArray(u)&&u.length){for(var _,v=function(f,d){f===0&&a._mixpanel.persistence._add_to_people_queue(Dt,_),c.isUndefined(s)||s(f,d)},x=u.length-1;x>=0;x--)_=u.pop(),c.isEmptyObject(_)||a.remove(_,v);a._mixpanel.persistence.save()}};D.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};D.prototype.set=D.prototype.set;D.prototype.set_once=D.prototype.set_once;D.prototype.unset=D.prototype.unset;D.prototype.increment=D.prototype.increment;D.prototype.append=D.prototype.append;D.prototype.remove=D.prototype.remove;D.prototype.union=D.prototype.union;D.prototype.track_charge=D.prototype.track_charge;D.prototype.clear_charges=D.prototype.clear_charges;D.prototype.delete_user=D.prototype.delete_user;D.prototype.toString=D.prototype.toString;var Rl="__mps",Ll="__mpso",Dl="__mpus",Nl="__mpa",$l="__mpap",Ml="__mpr",Fl="__mpu",Op="$people_distinct_id",ho="__alias",Fn="__timers",R1=[Rl,Ll,Dl,Nl,$l,Ml,Fl,Op,ho,Fn],$=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(z.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&c.localStorage.is_supported()?this.storage=c.localStorage:this.storage=c.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};$.prototype.properties=function(){var e={};return c.each(this.props,function(t,r){c.include(R1,r)||(e[r]=t)}),e};$.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=c.extend({},e))}};$.prototype.upgrade=function(e){var t=e.upgrade,r,n;t&&(r="mp_super_properties",typeof t=="string"&&(r=t),n=this.storage.parse(r),this.storage.remove(r),this.storage.remove(r,!0),n&&(this.props=c.extend(this.props,n.all,n.events))),!e.cookie_name&&e.name!=="mixpanel"&&(r="mp_"+e.token+"_"+e.name,n=this.storage.parse(r),n&&(this.storage.remove(r),this.storage.remove(r,!0),this.register_once(n))),this.storage===c.localStorage&&(n=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,!0),n&&this.register_once(n))};$.prototype.save=function(){this.disabled||this.storage.set(this.name,c.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};$.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};$.prototype.clear=function(){this.remove(),this.props={}};$.prototype.register_once=function(e,t,r){return c.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,c.each(e,function(n,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&&(this.props[i]=n)},this),this.save(),!0):!1};$.prototype.register=function(e,t){return c.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,c.extend(this.props,e),this.save(),!0):!1};$.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())};$.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(c.info.campaignParams()),this.campaign_params_saved=!0)};$.prototype.update_search_keyword=function(e){this.register(c.info.searchInfo(e))};$.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:c.info.referringDomain(e)||"$direct"},"")};$.prototype.get_referrer_info=function(){return c.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};$.prototype.safe_merge=function(e){return c.each(this.props,function(t,r){r in e||(e[r]=t)}),e};$.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};$.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};$.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};$.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};$.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};$.prototype.get_cross_subdomain=function(){return this.cross_subdomain};$.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};$.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Lt),o=this._get_or_create_queue(Ur),s=this._get_or_create_queue($e),a=this._get_or_create_queue(lr),l=this._get_or_create_queue(ur),u=this._get_or_create_queue(Dt,[]),p=this._get_or_create_queue(st,[]);r===Rl?(c.extend(i,n),this._pop_from_people_queue(lr,n),this._pop_from_people_queue(ur,n),this._pop_from_people_queue($e,n)):r===Ll?(c.each(n,function(h,g){g in o||(o[g]=h)}),this._pop_from_people_queue($e,n)):r===Dl?c.each(n,function(h){c.each([i,o,a,l],function(g){h in g&&delete g[h]}),c.each(p,function(g){h in g&&delete g[h]}),s[h]=!0}):r===Nl?(c.each(n,function(h,g){g in i?i[g]+=h:(g in a||(a[g]=0),a[g]+=h)},this),this._pop_from_people_queue($e,n)):r===Fl?(c.each(n,function(h,g){c.isArray(h)&&(g in l||(l[g]=[]),l[g]=l[g].concat(h))}),this._pop_from_people_queue($e,n)):r===Ml?(u.push(n),this._pop_from_people_queue(st,n)):r===$l&&(p.push(n),this._pop_from_people_queue($e,n)),z.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),z.log(t),this.save()};$.prototype._pop_from_people_queue=function(e,t){var r=this._get_queue(e);c.isUndefined(r)||(c.each(t,function(n,i){e===st||e===Dt?c.each(r,function(o){o[i]===n&&delete o[i]}):delete r[i]},this),this.save())};$.prototype._get_queue_key=function(e){if(e===Lt)return Rl;if(e===Ur)return Ll;if(e===$e)return Dl;if(e===lr)return Nl;if(e===st)return $l;if(e===Dt)return Ml;if(e===ur)return Fl;z.error("Invalid queue:",e)};$.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]};$.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=c.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};$.prototype.set_event_timer=function(e,t){var r=this.props[Fn]||{};r[e]=t,this.props[Fn]=r,this.save()};$.prototype.remove_event_timer=function(e){var t=this.props[Fn]||{},r=t[e];return c.isUndefined(r)||(delete this.props[Fn][e],this.save()),r};var Ul,ce,Rp=0,L1=1,D1=function(e){return e},Un=function(){},Ae="mixpanel",Lp="base64",N1="json",Or=de.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dp=!Or&&Ne.indexOf("MSIE")===-1&&Ne.indexOf("Mozilla")===-1,go=null;tt.sendBeacon&&(go=function(){return tt.sendBeacon.apply(tt,arguments)});var Hc={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:Lp,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Un,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Un,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Np=!1,S=function(){},_a=function(e,t,r){var n,i=r===Ae?ce:ce[r];if(i&&Ul===Rp)n=i;else{if(i&&!c.isArray(i)){z.error("You have already initialized "+r);return}n=new S}return n._cached_groups={},n._init(e,t,r),n.people=new D,n.people._init(n),At.DEBUG=At.DEBUG||n.get_config("debug"),!c.isUndefined(i)&&c.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};S.prototype.init=function(e,t,r){if(c.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===Ae){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=_a(e,t,r);return ce[r]=n,n._loaded(),n};S.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var i=t.api_host||Hc.api_host;i.match(/\.mixpanel\.com$/)&&(n.api_payload_format=N1)}if(this.set_config(c.extend({},Hc,n,t,{name:r,token:e,callback_fn:(r===Ae?r:Ae+"."+r)+"._jsc"})),this._jsc=Un,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!c.localStorage.is_supported(!0)||!Or)this._batch_requests=!1,z.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.init_batchers(),go&&de.addEventListener){var o=c.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);de.addEventListener("pagehide",function(a){a.persisted&&o()}),de.addEventListener("visibilitychange",function(){H.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new $(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=c.UUID();this.get_distinct_id()||this.register_once({distinct_id:s,$device_id:s},"")};S.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()};S.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(H.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(H.referrer)};S.prototype._dom_loaded=function(){c.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||c.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};S.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Np)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};S.prototype._prepare_callback=function(e,t){if(c.isUndefined(e))return null;if(Or){var r=function(s){e(s,t)};return r}else{var n=this._jsc,i=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(s){delete n[i],e(s,t)},o}};S.prototype._send_request=function(e,t,r,n){var i=!0;if(Dp)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(c.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=c.extend(o,r||{}),Or||(r.method="GET");var a=r.method==="POST",l=go&&a&&r.transport.toLowerCase()==="sendbeacon",u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Or||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+c.HTTPBuildQuery(t);var p=this;if("img"in t){var h=H.createElement("img");h.src=e,H.body.appendChild(h)}else if(l){try{i=go(e,s)}catch(d){p.report_error(d),i=!1}try{n&&n(i?1:0)}catch(d){p.report_error(d)}}else if(Or)try{var g=new XMLHttpRequest;g.open(r.method,e,!0);var _=this.get_config("xhr_headers");if(a&&(_["Content-Type"]="application/x-www-form-urlencoded"),c.each(_,function(d,m){g.setRequestHeader(m,d)}),r.timeout_ms&&typeof g.timeout<"u"){g.timeout=r.timeout_ms;var v=new Date().getTime()}g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(g.status===200){if(n)if(u){var d;try{d=c.JSONDecode(g.responseText)}catch(y){if(p.report_error(y),r.ignore_json_errors)d=g.responseText;else return}n(d)}else n(Number(g.responseText))}else{var m;g.timeout&&!g.status&&new Date().getTime()-v>=g.timeout?m="timeout":m="Bad HTTP status: "+g.status+" "+g.statusText,p.report_error(m),n&&n(u?{status:0,error:m,xhr_req:g}:0)}},g.send(s)}catch(d){p.report_error(d),i=!1}else{var x=H.createElement("script");x.type="text/javascript",x.async=!0,x.defer=!0,x.src=e;var f=H.getElementsByTagName("script")[0];f.parentNode.insertBefore(x,f)}return i};S.prototype._execute_array=function(e){var t,r=[],n=[],i=[];c.each(e,function(s){s&&(t=s[0],c.isArray(t)?i.push(s):typeof s=="function"?s.call(this):c.isArray(s)&&t==="alias"?r.push(s):c.isArray(s)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?i.push(s):n.push(s))},this);var o=function(s,a){c.each(s,function(l){if(c.isArray(l[0])){var u=a;c.each(l,function(p){u=u[p[0]].apply(u,p.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};o(r,this),o(n,this),o(i,this)};S.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};S.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=c.bind(function(r){return new qe("__mpq_"+e+r.queue_suffix,{libConfig:this.config,sendRequestFunc:c.bind(function(n,i,o){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(n),i,this._prepare_callback(o,n))},this),beforeSendHook:c.bind(function(n){return this._run_hook("before_send_"+r.type,n)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:c.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()};S.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,c.each(this.request_batchers,function(e){e.start()}))};S.prototype.stop_batch_senders=function(){this._batch_requests=!1,c.each(this.request_batchers,function(e){e.stop(),e.clear()})};S.prototype.push=function(e){this._execute_array([e])};S.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};S.prototype._encode_data_for_request=function(e){var t=c.JSONEncode(e);return this.get_config("api_payload_format")===Lp&&(t=c.base64Encode(t)),{data:t}};S.prototype._track_or_batch=function(e,t){var r=c.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Un;var a=!0,l=c.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(z.log("MIXPANEL REQUEST:"),z.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r,function(u){u?t(1,r):l()}):a=l(),a&&r};S.prototype.track=Jn(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var i=r.transport;i&&(r.transport=i);var o=r.send_immediately;if(typeof n!="function"&&(n=Un),c.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}t=t||{},t.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!c.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops(),t=c.extend({},c.info.properties(),this.persistence.properties(),this.unpersisted_superprops,t);var l=this.get_config("property_blacklist");c.isArray(l)?c.each(l,function(h){delete t[h]}):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t},p=this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n);return p});S.prototype.set_group=Jn(function(e,t,r){c.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});S.prototype.add_group=Jn(function(e,t,r){var n=this.get_property(e);if(n===void 0){var i={};i[e]=[t],this.register(i)}else n.indexOf(t)===-1&&(n.push(t),this.register(i));return this.people.union(e,t,r)});S.prototype.remove_group=Jn(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});S.prototype.track_with_groups=Jn(function(e,t,r,n){var i=c.extend({},t||{});return c.each(r,function(o,s){o!=null&&(i[s]=o)}),this.track(e,i,n)});S.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};S.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};S.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new V,n._init(this,e,t),this._cached_groups[r]=n),n};S.prototype.track_pageview=function(e){c.isUndefined(e)&&(e=H.location.href),this.track("mp_page_view",c.info.pageviewInfo(e))};S.prototype.track_links=function(){return this._track_dom.call(this,Fr,arguments)};S.prototype.track_forms=function(){return this._track_dom.call(this,Uo,arguments)};S.prototype.time_event=function(e){if(c.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var $1={persistent:!0},jl=function(e){var t;return c.isObject(e)?t=e:c.isUndefined(e)?t={}:t={days:e},c.extend({},$1,t)};S.prototype.register=function(e,t){var r=jl(t);r.persistent?this.persistence.register(e,r.days):c.extend(this.unpersisted_superprops,e)};S.prototype.register_once=function(e,t,r){var n=jl(r);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),c.each(e,function(i,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===t)&&(this.unpersisted_superprops[o]=i)},this))};S.prototype.unregister=function(e,t){t=jl(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};S.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};S.prototype.identify=function(e,t,r,n,i,o,s,a){var l=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==l&&e!==this.get_property(ho)&&(this.unregister(ho),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};S.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=c.UUID();this.register_once({distinct_id:e,$device_id:e},"")};S.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};S.prototype.alias=function(e,t){if(e===this.get_property(Op))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return c.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ho,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};S.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};S.prototype.set_config=function(e){if(c.isObject(e)){c.extend(this.config,e);var t=e.batch_size;t&&c.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),At.DEBUG=At.DEBUG||this.get_config("debug")}};S.prototype.get_config=function(e){return this.config[e]};S.prototype._run_hook=function(e){var t=(this.config.hooks[e]||D1).apply(this,wt.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};S.prototype.get_property=function(e){return this.persistence.props[e]};S.prototype.toString=function(){var e=this.get_config("name");return e!==Ae&&(e=Ae+"."+e),e};S.prototype._event_is_disabled=function(e){return c.isBlockedUA(Ne)||this._flags.disable_all_events||c.include(this.__disabled_events,e)};S.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&c.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||c.cookie.get("mp_optout"))&&(c.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};S.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t&&c.each(this.request_batchers,function(r){r.clear()})};S.prototype._gdpr_call_func=function(e,t){return t=c.extend({track:c.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),c.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};S.prototype.opt_in_tracking=function(e){e=c.extend({enable_persistence:!0},e),this._gdpr_call_func(x1,e),this._gdpr_update_persistence(e)};S.prototype.opt_out_tracking=function(e){e=c.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(I1,e),this._gdpr_update_persistence(e)};S.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(b1,e)};S.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Ip,e)};S.prototype.clear_opt_in_out_tracking=function(e){e=c.extend({enable_persistence:!0},e),this._gdpr_call_func(A1,e),this._gdpr_update_persistence(e)};S.prototype.report_error=function(e,t){z.error.apply(z.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){z.error(r)}};S.prototype.init=S.prototype.init;S.prototype.reset=S.prototype.reset;S.prototype.disable=S.prototype.disable;S.prototype.time_event=S.prototype.time_event;S.prototype.track=S.prototype.track;S.prototype.track_links=S.prototype.track_links;S.prototype.track_forms=S.prototype.track_forms;S.prototype.track_pageview=S.prototype.track_pageview;S.prototype.register=S.prototype.register;S.prototype.register_once=S.prototype.register_once;S.prototype.unregister=S.prototype.unregister;S.prototype.identify=S.prototype.identify;S.prototype.alias=S.prototype.alias;S.prototype.name_tag=S.prototype.name_tag;S.prototype.set_config=S.prototype.set_config;S.prototype.get_config=S.prototype.get_config;S.prototype.get_property=S.prototype.get_property;S.prototype.get_distinct_id=S.prototype.get_distinct_id;S.prototype.toString=S.prototype.toString;S.prototype.opt_out_tracking=S.prototype.opt_out_tracking;S.prototype.opt_in_tracking=S.prototype.opt_in_tracking;S.prototype.has_opted_out_tracking=S.prototype.has_opted_out_tracking;S.prototype.has_opted_in_tracking=S.prototype.has_opted_in_tracking;S.prototype.clear_opt_in_out_tracking=S.prototype.clear_opt_in_out_tracking;S.prototype.get_group=S.prototype.get_group;S.prototype.set_group=S.prototype.set_group;S.prototype.add_group=S.prototype.add_group;S.prototype.remove_group=S.prototype.remove_group;S.prototype.track_with_groups=S.prototype.track_with_groups;S.prototype.start_batch_senders=S.prototype.start_batch_senders;S.prototype.stop_batch_senders=S.prototype.stop_batch_senders;$.prototype.properties=$.prototype.properties;$.prototype.update_search_keyword=$.prototype.update_search_keyword;$.prototype.update_referrer_info=$.prototype.update_referrer_info;$.prototype.get_cross_subdomain=$.prototype.get_cross_subdomain;$.prototype.clear=$.prototype.clear;var wr={},M1=function(){c.each(wr,function(e,t){t!==Ae&&(ce[t]=e)}),ce._=c},F1=function(){ce.init=function(e,t,r){if(r)return ce[r]||(ce[r]=wr[r]=_a(e,t,r),ce[r]._loaded()),ce[r];var n=ce;wr[Ae]?n=wr[Ae]:e&&(n=_a(e,t,Ae),n._loaded(),wr[Ae]=n),ce=n,Ul===L1&&(de[Ae]=ce),M1()}},U1=function(){function e(){e.done||(e.done=!0,Np=!0,Dp=!1,c.each(wr,function(n){n._dom_loaded()}))}function t(){try{H.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(H.addEventListener)H.readyState==="complete"?e():H.addEventListener("DOMContentLoaded",e,!1);else if(H.attachEvent){H.attachEvent("onreadystatechange",e);var r=!1;try{r=de.frameElement===null}catch{}H.documentElement.doScroll&&r&&t()}c.register_event(de,"load",e,!0)};function j1(){return Ul=Rp,ce=new S,F1(),ce.init(),U1(),ce}var z1=j1(),$p=z1;const Mp=zn($p),H1=Yp({__proto__:null,default:Mp},[$p]),B1=Mp||H1;let bi;const Vt={VISUAL_SDK_RENDER_START:"visual-sdk-render-start",VISUAL_SDK_CALLED_INIT:"visual-sdk-called-init",VISUAL_SDK_RENDER_COMPLETE:"visual-sdk-render-complete",VISUAL_SDK_RENDER_FAILED:"visual-sdk-render-failed",VISUAL_SDK_TRIGGER:"visual-sdk-trigger",VISUAL_SDK_ON:"visual-sdk-on",VISUAL_SDK_IFRAME_LOAD_PERFORMANCE:"visual-sdk-iframe-load-performance",VISUAL_SDK_EMBED_CREATE:"visual-sdk-embed-create",VERCEL_INTEGRATION_COMPLETED:"vercel-integration-completed"};let zl=!1,ya=[];function dt(e,t={}){if(!zl){ya.push({eventId:e,eventProps:t});return}bi.track(e,t)}function V1(){zl&&(ya.forEach(e=>{dt(e.eventId,e.eventProps)}),ya=[])}function G1(e){var t;if(!e||!e.mixpanelToken){F.error(K.MIXPANEL_TOKEN_NOT_FOUND);return}const r=!!e.isPublicUser,n=e.mixpanelToken;try{n&&(bi=B1.init(n,void 0,"tsEmbed"),r||bi.identify(e.userGUID),bi.register_once({clusterId:e.clusterId,clusterName:e.clusterName,releaseVersion:e.releaseVersion,hostAppUrl:((t=window?.location)===null||t===void 0?void 0:t.host)||""}),zl=!0,V1())}catch(i){F.error("Error initializing mixpanel",i)}}var Fp={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,p){this.fn=l,this.context=u,this.once=p||!1}function o(l,u,p,h,g){if(typeof p!="function")throw new TypeError("The listener must be a function");var _=new i(p,h||l,g),v=r?r+u:u;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],_]:l._events[v].push(_):(l._events[v]=_,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],p,h;if(this._eventsCount===0)return u;for(h in p=this._events)t.call(p,h)&&u.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(p)):u},a.prototype.listeners=function(u){var p=r?r+u:u,h=this._events[p];if(!h)return[];if(h.fn)return[h.fn];for(var g=0,_=h.length,v=new Array(_);g<_;g++)v[g]=h[g].fn;return v},a.prototype.listenerCount=function(u){var p=r?r+u:u,h=this._events[p];return h?h.fn?1:h.length:0},a.prototype.emit=function(u,p,h,g,_,v){var x=r?r+u:u;if(!this._events[x])return!1;var f=this._events[x],d=arguments.length,m,y;if(f.fn){switch(f.once&&this.removeListener(u,f.fn,void 0,!0),d){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,p),!0;case 3:return f.fn.call(f.context,p,h),!0;case 4:return f.fn.call(f.context,p,h,g),!0;case 5:return f.fn.call(f.context,p,h,g,_),!0;case 6:return f.fn.call(f.context,p,h,g,_,v),!0}for(y=1,m=new Array(d-1);y<d;y++)m[y-1]=arguments[y];f.fn.apply(f.context,m)}else{var T=f.length,w;for(y=0;y<T;y++)switch(f[y].once&&this.removeListener(u,f[y].fn,void 0,!0),d){case 1:f[y].fn.call(f[y].context);break;case 2:f[y].fn.call(f[y].context,p);break;case 3:f[y].fn.call(f[y].context,p,h);break;case 4:f[y].fn.call(f[y].context,p,h,g);break;default:if(!m)for(w=1,m=new Array(d-1);w<d;w++)m[w-1]=arguments[w];f[y].fn.apply(f[y].context,m)}}return!0},a.prototype.on=function(u,p,h){return o(this,u,p,h,!1)},a.prototype.once=function(u,p,h){return o(this,u,p,h,!0)},a.prototype.removeListener=function(u,p,h,g){var _=r?r+u:u;if(!this._events[_])return this;if(!p)return s(this,_),this;var v=this._events[_];if(v.fn)v.fn===p&&(!g||v.once)&&(!h||v.context===h)&&s(this,_);else{for(var x=0,f=[],d=v.length;x<d;x++)(v[x].fn!==p||g&&!v[x].once||h&&v[x].context!==h)&&f.push(v[x]);f.length?this._events[_]=f.length===1?f[0]:f:s(this,_)}return this},a.prototype.removeAllListeners=function(u){var p;return u?(p=r?r+u:u,this._events[p]&&s(this,p)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a})(Fp);var W1=Fp.exports;const q1=zn(W1);var Sa;(function(e){e.CSP_VIOLATION="csp-violation",e.DEPRECATION="deprecation",e.INTERVENTION="intervention"})(Sa||(Sa={}));let ht=null;function K1(e=!1){if(!window.ReportingObserver)return F.warn(K.MISSING_REPORTING_OBSERVER),null;if(e&&Q1(),ht)return ht;const t=ie();return ht=new ReportingObserver(r=>{r.forEach(n=>{const{type:i,url:o,body:s}=n,a=s,l=o&&o.startsWith(t.thoughtSpotHost),u=i===Sa.CSP_VIOLATION&&a.effectiveDirective==="frame-ancestors";l&&u&&(t.suppressErrorAlerts||alert(K.CSP_VIOLATION_ALERT),F.error(K.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE))})},{buffered:!0}),ht.observe(),ht}function Q1(){ht&&ht.disconnect(),ht=null}function X1(e,t={}){return No(e,t).then(async r=>{var n;return!r.ok&&r.type!=="opaqueredirect"&&r.type!=="opaque"&&F.error(`Failed to fetch ${e}`,await((n=r.text)===null||n===void 0?void 0:n.call(r))),r})}async function Y1(e){const t=`${e}${$t.SESSION_INFO}`,r=await X1(t);if(!r.ok)throw new Error(`Failed to fetch session info: ${r.statusText}`);return await r.json()}async function J1(e){const t=`${e}${$t.IS_ACTIVE}`;try{return(await No(t,{credentials:"include"})).ok}catch(r){F.warn(`Is Logged In Service failed : ${r.message}`)}return!1}let gs=null;async function Up(){if(!gs){const e=ie().thoughtSpotHost,t=await Y1(e);gs=Z1(t)}return gs}const Z1=e=>{const t=e.configInfo.mixpanelConfig.devSdkKey,r=e.configInfo.mixpanelConfig.prodSdkKey,n=e.configInfo.mixpanelConfig.production?r:t;return{userGUID:e.userGUID,mixpanelToken:n,isPublicUser:e.configInfo.isPublicUser,releaseVersion:e.releaseVersion,clusterId:e.configInfo.selfClusterId,clusterName:e.configInfo.selfClusterName,...e}};let fe=!1,pi=null,ms=null,jp="";const jo="5e16222e-ef02-43e9-9fbd-24226bf3ce5b";var cr;(function(e){e.SDK="SDK",e.NO_COOKIE_ACCESS="NO_COOKIE_ACCESS",e.EXPIRY="EXPIRY",e.OTHER="OTHER"})(cr||(cr={}));var fr;(function(e){e.FAILURE="FAILURE",e.SDK_SUCCESS="SDK_SUCCESS",e.SUCCESS="SUCCESS",e.LOGOUT="LOGOUT",e.WAITING_FOR_POPUP="WAITING_FOR_POPUP"})(fr||(fr={}));var wa;(function(e){e.TRIGGER_SSO_POPUP="TRIGGER_SSO_POPUP"})(wa||(wa={}));let ge;function eE(e){ge=e}function tE(){if(!ge){F.error(K.SDK_NOT_INITIALIZED);return}ge.emit(fr.SDK_SUCCESS)}async function rE(){if(!ge){F.error(K.SDK_NOT_INITIALIZED);return}try{const e=await Up();ge.emit(fr.SUCCESS,e)}catch{F.error(K.SESSION_INFO_FAILED)}}function jn(e){if(!ge){F.error(K.SDK_NOT_INITIALIZED);return}ge.emit(fr.FAILURE,e)}function nE(){if(!ge){F.error(K.SDK_NOT_INITIALIZED);return}ge.emit(fr.LOGOUT)}async function jr(e){try{return await J1(e)}catch{return!1}}async function iE(){try{const e=await Up();jp=e.releaseVersion,ie().disableSDKTracking||G1(e)}catch(e){F.error("Post login services failed.",e.message)}}function oE(){return jp}function Bc(){return window.location.href.indexOf(jo)>=0}function Vc(){window.location.hash=window.location.hash.replace(jo,"")}const sE=async e=>{const{thoughtSpotHost:t,username:r,authEndpoint:n,getAuthToken:i}=e;if(!n&&!i)throw new Error("Either auth endpoint or getAuthToken function must be provided");if(fe=await jr(t),!fe){let o;try{o=await Mn(e)}catch(a){throw fe=!1,a}let s;try{s=await t1(t,r,o)}catch{s=await e1(t,r,o)}fe=s.ok||s.type==="opaqueredirect",fe&&e.detectCookieAccessSlow&&(fe=await jr(t))}return fe},aE=async e=>{const{authEndpoint:t,getAuthToken:r}=e;if(!t&&!r)throw new Error("Either auth endpoint or getAuthToken function must be provided");let n=!1;try{await Mn(e)&&(n=!0)}catch{n=!1}return n},lE=async e=>{const{thoughtSpotHost:t,username:r,password:n}=e;return await jr(t)?fe=!0:(fe=(await r1(t,r,n)).ok,e.detectCookieAccessSlow&&(fe=await jr(t))),fe};async function uE(e,t,r){const n=()=>{pi===null||pi.closed?pi=window.open(e,"_blank","location=no,height=570,width=520,scrollbars=yes,status=yes"):pi.focus()};ge?.emit(fr.WAITING_FOR_POPUP);const i=ap(t);if(i){i.innerHTML='<button id="ts-auth-btn" class="ts-auth-btn" style="margin: auto;"></button>';const o=document.getElementById("ts-auth-btn");o.textContent=r,o.addEventListener("click",n,{once:!0})}return ms=ms||new Promise((o,s)=>{window.addEventListener("message",a=>{a.data.type===U.SAMLComplete&&(a.source.close(),o())})}),ge?.once(wa.TRIGGER_SSO_POPUP,n),ms}const zp=async(e,t)=>{const{thoughtSpotHost:r}=e;if(await jr(r)){Bc()&&Vc(),fe=!0;return}if(Bc()){Vc(),fe=!1;return}const i=`${r}${t}`;if(e.inPopup){await uE(i,e.authTriggerContainer,e.authTriggerText),fe=await jr(r);return}window.location.href=i},cE=async e=>{const{thoughtSpotHost:t}=e,r=e.inPopup?`${t}/v2/#/embed/saml-complete`:sp(window.location.href,jo,e.redirectPath),n=`${$t.SAML_LOGIN_TEMPLATE(encodeURIComponent(r))}`;return await zp(e,n),fe},fE=async e=>{const{thoughtSpotHost:t}=e,r=e.noRedirect||e.inPopup?`${t}/v2/#/embed/saml-complete`:sp(window.location.href,jo,e.redirectPath),n=`${$t.OIDC_LOGIN_TEMPLATE(encodeURIComponent(r))}`;return await zp(e,n),fe},dE=async e=>{const{authType:t}=e;switch(t){case Z.SSO:case Z.SAMLRedirect:case Z.SAML:return cE(e);case Z.OIDC:case Z.OIDCRedirect:return fE(e);case Z.AuthServer:case Z.TrustedAuthToken:return sE(e);case Z.TrustedAuthTokenCookieless:return aE(e);case Z.Basic:return lE(e);default:return Promise.resolve(!0)}},pE={loginFailedMessage:"Not logged in",authTriggerText:"Authorize",authType:Z.None,logLevel:q.ERROR};let Ai;const Hp=()=>Ai,Bp=()=>(Ai=dE(ie()),Ai.then(e=>{e?(iE(),tE()):jn(cr.SDK)},()=>{jn(cr.SDK)}),Ai),hE={[Yt.SearchEmbed]:e=>`${e}v2/#/embed/answer`,[Yt.LiveboardEmbed]:e=>e,[Yt.FullApp]:e=>e,[Yt.VizEmbed]:e=>e},gE=(e,t)=>{if(e==="")F.warn("The prefetch method does not have a valid URL");else{const r=[Yt.FullApp];let n=e||ie().thoughtSpotHost;n=n[n.length-1]==="/"?n:`${n}/`,Array.from(new Set(r.map(i=>hE[i](n)))).forEach((i,o)=>{const s=document.createElement("iframe");s.src=i,s.style.width="0",s.style.height="0",s.style.border="0",s.classList.add("prefetchIframe"),s.classList.add(`prefetchIframeNum-${o}`),document.body.appendChild(s)})}};function mE(e){if(e.thoughtSpotHost===void 0)throw new Error("ThoughtSpot host not provided");if(e.authType===Z.TrustedAuthToken&&!e.authEndpoint&&typeof e.getAuthToken!="function")throw new Error("Trusted auth should provide either authEndpoint or getAuthToken")}function vE(e){const t={...e};return e.noRedirect!==void 0&&e.inPopup===void 0&&(t.inPopup=e.noRedirect),t}const _E=e=>{var t,r,n,i,o,s,a,l,u,p,h;mE(e),kl(),e=n1(vE({...pE,...e,thoughtSpotHost:xl(e)})),Em(e.logLevel),K1();const g=new q1;eE(g),Bp();const{password:_,...v}=ie();return dt(Vt.VISUAL_SDK_CALLED_INIT,{...v,usedCustomizationSheet:((r=(t=e.customizations)===null||t===void 0?void 0:t.style)===null||r===void 0?void 0:r.customCSSUrl)!=null,usedCustomizationVariables:((o=(i=(n=e.customizations)===null||n===void 0?void 0:n.style)===null||i===void 0?void 0:i.customCSS)===null||o===void 0?void 0:o.variables)!=null,usedCustomizationRules:((l=(a=(s=e.customizations)===null||s===void 0?void 0:s.style)===null||a===void 0?void 0:a.customCSS)===null||l===void 0?void 0:l.rules_UNSTABLE)!=null,usedCustomizationStrings:!!(!((p=(u=e.customizations)===null||u===void 0?void 0:u.content)===null||p===void 0)&&p.strings),usedCustomizationIconSprite:!!(!((h=e.customizations)===null||h===void 0)&&h.iconSpriteUrl)}),ie().callPrefetch&&gE(ie().thoughtSpotHost),g};function yE(){ie().autoLogin=!1}let vs=Promise.resolve();const SE=e=>{const{queueMultiRenders:t=!1}=ie();return t?(vs=vs.then(()=>new Promise(r=>e(r))),vs):e(()=>{})};function wE(e,t){const{session:r,embedAnswerData:n,contextMenuPoints:i}=e.data,o=new $o(r,n||{},t,i?.selectedPoints);return{...e,answerService:o}}function EE(e){var t,r;return rE(),{...e,data:{userGUID:((t=e.data)===null||t===void 0?void 0:t.userGUID)||((r=e.payload)===null||r===void 0?void 0:r.userGUID)}}}function TE(e,t){const{loginFailedMessage:r,suppressNoCookieAccessAlert:n,ignoreNoCookieAccess:i,suppressErrorAlerts:o}=ie();return i||(!n&&!o&&alert(K.THIRD_PARTY_COOKIE_BLOCKED_ALERT),t.innerHTML=r),jn(cr.NO_COOKIE_ACCESS),e}function Ea(e,t){const{loginFailedMessage:r,authType:n}=ie();return n!==Z.None&&(t.innerHTML=r,jn(cr.OTHER)),kl(),e}function CE(e,t){const{loginFailedMessage:r}=ie();return t.innerHTML=r,kl(),yE(),nE(),e}function kE(e,t,r,n){switch(e){case U.CustomAction:return wE(t,r);case U.AuthInit:return EE(t);case U.NoCookieAccess:return TE(t,n);case U.AuthFailure:return Ea(t,n);case U.AuthLogout:return CE(t,n)}return t}const xE=e=>{const t=e.src;e.src="",setTimeout(()=>{e.src=t},100)};function IE(e,t,r,n){return e.contentWindow.postMessage(t,r,[n?.port2])}const bE=3e4;function AE(e,t,r,n){return new Promise((i,o)=>{if(t===ot.Reload)return xE(e),i(null);const s=new MessageChannel;return s.port1.onmessage=({data:a})=>{s.port1.close(),a.error?o(a.error):i(a)},setTimeout(()=>{s.port1.close(),i(new Error(K.TRIGGER_TIMED_OUT))},bE),IE(e,{type:t,data:n},r,s)})}const PE="@thoughtspot/visual-embed-sdk",OE="1.33.0-alpha.2",RE="ThoughtSpot Embed SDK",LE="lib/src/index.js",DE="dist/tsembed.js",NE="lib/src/index.d.ts",$E=["dist/**","lib/**","src/**","cjs/**"],ME={".":{import:"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{import:"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{import:"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}},FE={"*":{react:["./lib/src/react/all-types-export.d.ts"]}},UE={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts","dev-build":"vite build -c vite.local.config.ts"},jE={react:"> 16.8.0","react-dom":"> 16.8.0"},zE={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"},HE={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"},BE="ThoughtSpot",VE="support@thoughtspot.com",GE="ThoughtSpot Development Tools End User License Agreement",WE={lib:"lib"},qE={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"},KE={registry:"https://registry.npmjs.org"},QE=["thoughtspot","everywhere","embedded","embed","sdk","analytics"],XE={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"},YE="https://github.com/thoughtspot/visual-embed-sdk#readme",JE={window:{}},ZE={name:PE,version:OE,description:RE,module:LE,main:DE,types:NE,files:$E,exports:ME,typesVersions:FE,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],scripts:UE,peerDependencies:jE,dependencies:zE,devDependencies:HE,author:BE,email:VE,license:GE,directories:WE,repository:qE,publishConfig:KE,keywords:QE,bugs:XE,homepage:YE,globals:JE},{version:eT}=ZE,tT="ts-",_s="_thoughtspot-embed",rT={};class Hl{constructor(t,r){this.embedNodeKey="__tsEmbed",this.isAppInitialized=!1,this.shouldEncodeUrlQueryParams=!1,this.defaultHiddenActions=[pt.ReportError],this.subscribedListeners={},this.appInitCb=async(n,i)=>{var o,s;let a="";if(this.embedConfig.authType===Z.TrustedAuthTokenCookieless)try{a=await Mn(this.embedConfig)}catch(l){Ea(l,this.isPreRendered?this.preRenderWrapper:this.el);return}this.isAppInitialized=!0,i({type:U.APP_INIT,data:{customisations:mm(this.embedConfig,this.viewConfig),authToken:a,runtimeFilterParams:this.viewConfig.excludeRuntimeFiltersfromURL?vm(this.viewConfig.runtimeFilters):null,runtimeParameterParams:this.viewConfig.excludeRuntimeParametersfromURL?Sl(this.viewConfig.runtimeParameters||[]):null,hiddenHomepageModules:this.viewConfig.hiddenHomepageModules||[],reorderedHomepageModules:this.viewConfig.reorderedHomepageModules||[],hostConfig:this.embedConfig.hostConfig,hiddenHomeLeftNavItems:!((o=this.viewConfig)===null||o===void 0)&&o.hiddenHomeLeftNavItems?(s=this.viewConfig)===null||s===void 0?void 0:s.hiddenHomeLeftNavItems:[]}})},this.updateAuthToken=async(n,i)=>{const{autoLogin:o=!1,authType:s}=this.embedConfig;if(s===Z.TrustedAuthTokenCookieless){let a="";try{a=await Mn(this.embedConfig),i({type:U.AuthExpire,data:{authToken:a}})}catch(l){F.error(`${K.INVALID_TOKEN_ERROR} Error : ${l?.message}`),Ea(l,this.isPreRendered?this.preRenderWrapper:this.el)}}else o&&Bp();jn(cr.EXPIRY)},this.registerAppInit=()=>{this.on(U.APP_INIT,this.appInitCb,{start:!1},!0),this.on(U.AuthExpire,this.updateAuthToken,{start:!1},!0)},this.showPreRenderByDefault=!1,this.validatePreRenderViewConfig=n=>{var i;const o=["preRenderId","vizId","liveboardId"],s=(i=this.insertedDomEl)===null||i===void 0?void 0:i[this.embedNodeKey];s&&n.preRenderId&&Object.keys(n).filter(l=>!o.includes(l)&&!l.startsWith("on")).forEach(l=>{!no(n[l])&&!Yw(n[l],s.viewConfig[l])&&F.warn(`${n.embedComponentType||"Component"} was pre-rendered with "${l}" as "${JSON.stringify(s.viewConfig[l])}" but a different value "${JSON.stringify(n[l])}" was passed to the Embed component. The new value provided is ignored, the value provided during preRender is used.`)})},this.el=ap(t),this.embedConfig=ie(),!this.embedConfig.authTriggerContainer&&!this.embedConfig.useEventForSAMLPopup&&(this.embedConfig.authTriggerContainer=t),this.thoughtSpotHost=xl(this.embedConfig),this.thoughtSpotV2Base=h1(this.embedConfig),this.eventHandlerMap=new Map,this.isError=!1,this.viewConfig={excludeRuntimeFiltersfromURL:!1,excludeRuntimeParametersfromURL:!1,...r},this.shouldEncodeUrlQueryParams=this.embedConfig.shouldEncodeUrlQueryParams,this.registerAppInit(),dt(Vt.VISUAL_SDK_EMBED_CREATE,{...r})}throwInitError(){this.handleError("You need to init the ThoughtSpot SDK module first")}handleError(t){this.isError=!0,this.executeCallbacks(U.Error,{error:t}),F.error(t)}getEventType(t){var r,n;return((r=t.data)===null||r===void 0?void 0:r.type)||((n=t.data)===null||n===void 0?void 0:n.__type)}getEventPort(t){return t.ports.length&&t.ports[0]?t.ports[0]:null}formatEventData(t,r){const n={...t.data,type:r};return n.data||(n.data=t.data.payload),n}subscribeToEvents(){this.unsubscribeToEvents();const t=i=>{const o=this.getEventType(i),s=this.getEventPort(i),a=this.formatEventData(i,o);i.source===this.iFrame.contentWindow&&this.executeCallbacks(o,kE(o,a,this.thoughtSpotHost,this.isPreRendered?this.preRenderWrapper:this.el),s)};window.addEventListener("message",t);const r=i=>{this.trigger(ot.Reload)};window.addEventListener("online",r);const n=i=>{const o="Network not Detected. Embed is offline. Please reconnect and refresh";this.executeCallbacks(U.Error,{offlineWarning:o}),F.warn(o)};window.addEventListener("offline",n),this.subscribedListeners={message:t,online:r,offline:n}}unsubscribeToEvents(){Object.keys(this.subscribedListeners).forEach(t=>{window.removeEventListener(t,this.subscribedListeners[t])})}getEmbedBasePath(t){let r=t.startsWith("?")?t:`?${t}`;return this.shouldEncodeUrlQueryParams&&(r=`?base64UrlEncodedFlags=${Zu(r.substr(1))}`),`${[this.thoughtSpotHost,this.thoughtSpotV2Base,r].filter(i=>i.length>0).join("/")}#`}getBaseQueryParams(t={}){var r,n,i,o;let s=((r=window?.location)===null||r===void 0?void 0:r.host)||"";(s.includes("localhost")||s.includes("127.0.0.1"))&&(s="local-host"),t[E.HostAppUrl]=encodeURIComponent(s),t[E.ViewPortHeight]=window.innerHeight,t[E.ViewPortWidth]=window.innerWidth,t[E.Version]=eT,t[E.AuthType]=this.embedConfig.authType,t[E.blockNonEmbedFullAppAccess]=(n=this.embedConfig.blockNonEmbedFullAppAccess)!==null&&n!==void 0?n:!0,(this.embedConfig.disableLoginRedirect===!0||this.embedConfig.autoLogin===!0)&&(t[E.DisableLoginRedirect]=!0),this.embedConfig.authType===Z.EmbeddedSSO&&(t[E.ForceSAMLAutoRedirect]=!0),this.embedConfig.authType===Z.TrustedAuthTokenCookieless&&(t[E.cookieless]=!0),this.embedConfig.pendoTrackingKey&&(t[E.PendoTrackingKey]=this.embedConfig.pendoTrackingKey),this.embedConfig.numberFormatLocale&&(t[E.NumberFormatLocale]=this.embedConfig.numberFormatLocale),this.embedConfig.dateFormatLocale&&(t[E.DateFormatLocale]=this.embedConfig.dateFormatLocale),this.embedConfig.currencyFormat&&(t[E.CurrencyFormat]=this.embedConfig.currencyFormat);const{disabledActions:a,disabledActionReason:l,hiddenActions:u,visibleActions:p,hiddenTabs:h,visibleTabs:g,showAlerts:_,additionalFlags:v,locale:x,customizations:f,contextMenuTrigger:d,linkOverride:m,insertInToSlide:y,disableRedirectionLinksInNewTab:T}=this.viewConfig;if(Array.isArray(p)&&Array.isArray(u))return this.handleError("You cannot have both hidden actions and visible actions"),t;if(Array.isArray(g)&&Array.isArray(h))return this.handleError("You cannot have both hidden Tabs and visible Tabs"),t;const w=((i=f?.style)===null||i===void 0?void 0:i.customCSSUrl)||this.embedConfig.customCssUrl;w&&(t[E.CustomCSSUrl]=w),a?.length&&(t[E.DisableActions]=a),l&&(t[E.DisableActionReason]=l),t[E.HideActions]=[...this.defaultHiddenActions,...u??[]],Array.isArray(p)&&(t[E.VisibleActions]=p),Array.isArray(h)&&(t[E.HiddenTabs]=h),Array.isArray(g)&&(t[E.VisibleTabs]=g),d===io.LEFT_CLICK?t[E.ContextMenuTrigger]=!0:d===io.RIGHT_CLICK&&(t[E.ContextMenuTrigger]=!1);const b=f?.iconSpriteUrl||((o=this.embedConfig.customizations)===null||o===void 0?void 0:o.iconSpriteUrl);return b&&(t[E.IconSpriteUrl]=b.replace("https://","")),_!==void 0&&(t[E.ShowAlerts]=_),x!==void 0&&(t[E.Locale]=x),v&&v.constructor.name==="Object"&&Object.assign(t,v),m&&(t[E.LinkOverride]=m),y&&(t[E.ShowInsertToSlide]=y),T&&(t[E.DisableRedirectionLinksInNewTab]=T),t[E.OverrideNativeConsole]=!0,t[E.ClientLogLevel]=this.embedConfig.logLevel,t}getV1EmbedBasePath(t){const r=this.shouldEncodeUrlQueryParams?`?base64UrlEncodedFlags=${Zu(t)}`:`?${t}`;return`${this.thoughtSpotHost}/${r}#`}getEmbedParams(){const t=this.getBaseQueryParams();return Vr(t)}getRootIframeSrc(){const t=this.getEmbedParams();return this.getEmbedBasePath(t)}createIframeEl(t){const r=document.createElement("iframe");r.src=t,r.id=_s,r.setAttribute("data-ts-iframe","true"),r.allowFullscreen=!0,r.webkitallowfullscreen=!0,r.mozallowfullscreen=!0,r.allow="clipboard-read; clipboard-write fullscreen";const{height:n,width:i,...o}=this.viewConfig.frameParams||{},s=os(i||m1),a=os(n||v1);return pm(r,o),r.style.width=`${s}`,r.style.height=`${a}`,r.style.border="0",r.name="ThoughtSpot Embedded Analytics",r}handleInsertionIntoDOM(t){this.isPreRendered?this.insertIntoDOMForPreRender(t):this.insertIntoDOM(t),this.insertedDomEl instanceof Node&&(this.insertedDomEl[this.embedNodeKey]=this)}async renderIFrame(t){return this.isError?null:(this.thoughtSpotHost||this.throwInitError(),t.length>g1,SE(r=>{var n;const i=Date.now();return this.executeCallbacks(U.Init,{data:{timestamp:i},type:U.Init}),dt(Vt.VISUAL_SDK_RENDER_START),(n=Hp())===null||n===void 0?void 0:n.then(o=>{if(!o){this.handleInsertionIntoDOM(this.embedConfig.loginFailedMessage);return}this.iFrame=this.iFrame||this.createIframeEl(t),this.iFrame.addEventListener("load",()=>{r();const a=Date.now();this.executeCallbacks(U.Load,{data:{timestamp:a},type:U.Load}),dt(Vt.VISUAL_SDK_RENDER_COMPLETE,{elWidth:this.iFrame.clientWidth,elHeight:this.iFrame.clientHeight,timeTookToLoad:a-i})}),this.iFrame.addEventListener("error",()=>{r()}),this.handleInsertionIntoDOM(this.iFrame);const s=document.querySelectorAll(".prefetchIframe");s.length&&s.forEach(a=>{a.remove()}),this.subscribeToEvents()}).catch(o=>{r(),dt(Vt.VISUAL_SDK_RENDER_FAILED,{error:JSON.stringify(o)}),this.handleInsertionIntoDOM(this.embedConfig.loginFailedMessage),this.handleError(o)})}))}createPreRenderWrapper(){var t;const r=this.getPreRenderIds();(t=document.getElementById(r.wrapper))===null||t===void 0||t.remove();const n=document.createElement("div");return n.id=r.wrapper,un(n,{position:"absolute",width:"100vw",height:"100vh"}),n}connectPreRendered(){const t=this.getPreRenderIds();return this.preRenderWrapper=this.preRenderWrapper||document.getElementById(t.wrapper),this.preRenderChild=this.preRenderChild||document.getElementById(t.child),this.preRenderWrapper&&this.preRenderChild&&(this.isPreRendered=!0,this.preRenderChild instanceof HTMLIFrameElement&&(this.iFrame=this.preRenderChild),this.insertedDomEl=this.preRenderWrapper,this.isRendered=!0),this.isPreRenderAvailable()}isPreRenderAvailable(){return this.isRendered&&this.isPreRendered&&!!(this.preRenderWrapper&&this.preRenderChild)}createPreRenderChild(t){var r;const n=this.getPreRenderIds();if((r=document.getElementById(n.child))===null||r===void 0||r.remove(),t instanceof HTMLElement)return t.id=n.child,t;const i=document.createElement("div");return un(i,{width:"100%",height:"100%"}),i.id=n.child,typeof t=="string"?i.innerHTML=t:i.appendChild(t),i}insertIntoDOMForPreRender(t){const r=this.createPreRenderChild(t),n=this.createPreRenderWrapper();n.appendChild(r),this.preRenderChild=r,this.preRenderWrapper=n,r instanceof HTMLIFrameElement&&(this.iFrame=r),this.insertedDomEl=n,this.showPreRenderByDefault?this.showPreRender():this.hidePreRender(),document.body.appendChild(n)}insertIntoDOM(t){var r;if(this.viewConfig.insertAsSibling){if(typeof t=="string"){const n=document.createElement("div");n.innerHTML=t,n.id=_s,t=n}((r=this.el.nextElementSibling)===null||r===void 0?void 0:r.id)===_s&&this.el.nextElementSibling.remove(),this.el.parentElement.insertBefore(t,this.el.nextSibling),this.insertedDomEl=t}else typeof t=="string"?(this.el.innerHTML=t,this.insertedDomEl=this.el.children[0]):(this.el.innerHTML="",this.el.appendChild(t),this.insertedDomEl=t)}setIFrameHeight(t){this.iFrame.style.height=os(t)}executeCallbacks(t,r,n){const i=this.eventHandlerMap.get(t)||[],o=this.eventHandlerMap.get(U.ALL)||[],s=[...i,...o],a=r?.status||ss.END;s.forEach(l=>{(l.options.start&&a===ss.START||!l.options.start&&a===ss.END)&&l.callback(r,u=>{this.triggerEventOnPort(n,u)})})}getThoughtSpotHost(){return this.thoughtSpotHost}getCompatibleEventType(t){return rT[t]||t}getIframeCenter(){const t=dm(this.iFrame),r=window.scrollY,n=window.innerHeight,i=this.iFrame.offsetHeight,o=r-t;let s,a;return o<0?(s=n-(t-r),s=Math.min(i,s),a=0):(s=Math.min(i-o,n),a=o),{iframeCenter:a+s/2,iframeScrolled:o,iframeHeight:i,viewPortHeight:n,iframeVisibleViewPort:s}}on(t,r,n={start:!1},i=!1){dt(`${Vt.VISUAL_SDK_ON}-${t}`,{isRegisteredBySDK:i}),this.isRendered&&F.warn("Please register event handlers before calling render");const o=this.eventHandlerMap.get(t)||[];return o.push({options:n,callback:r}),this.eventHandlerMap.set(t,o),this}off(t,r){const n=this.eventHandlerMap.get(t)||[],i=n.findIndex(o=>o.callback===r);return i>-1&&n.splice(i,1),this}triggerEventOnPort(t,r){if(t)try{t.postMessage({type:r.type,data:r.data})}catch(n){t.postMessage({error:n}),F.log(n)}else F.log("Event Port is not defined")}trigger(t,r={}){return dt(`${Vt.VISUAL_SDK_TRIGGER}-${t}`),this.isRendered?t?AE(this.iFrame,t,this.thoughtSpotHost,r):(this.handleError("Host event type is undefined"),null):(this.handleError("Please call render before triggering events"),null)}async render(){return this.isRendered=!0,this}getIframeSrc(){return""}handleRenderForPrerender(){this.render()}preRender(t=!1){return this.viewConfig.preRenderId?(this.isPreRendered=!0,this.showPreRenderByDefault=t,this.handleRenderForPrerender(),this):(F.error(K.PRERENDER_ID_MISSING),this)}getThoughtSpotPostUrlParams(){const t=window.location.hash,r=window.location.search,n=t.split("?"),i=n[n.length-1],o=new URLSearchParams(r),s=new URLSearchParams(i),a=new URLSearchParams,l=(p,h)=>{h.startsWith(tT)&&a.append(h,p)};o.forEach(l),s.forEach(l);let u=a.toString();return u=u?`?${u}`:"",u}destroy(){var t;try{(t=this.insertedDomEl)===null||t===void 0||t.parentNode.removeChild(this.insertedDomEl),this.unsubscribeToEvents()}catch(r){F.log("Error destroying TS Embed",r)}}getUnderlyingFrameElement(){return this.iFrame}async prerenderGeneric(){const t=this.getRootIframeSrc();return this.isRendered=!0,this.renderIFrame(t)}beforePrerenderVisible(){}showPreRender(){if(!this.viewConfig.preRenderId){F.error(K.PRERENDER_ID_MISSING);return}if(!this.isPreRenderAvailable()){if(!this.connectPreRendered()){this.preRender(!0);return}this.validatePreRenderViewConfig(this.viewConfig)}this.el&&(this.syncPreRenderStyle(),this.viewConfig.doNotTrackPreRenderSize||(this.resizeObserver=new ResizeObserver(t=>{t.forEach(r=>{r.contentRect&&r.target===this.el&&un(this.preRenderWrapper,{width:`${r.contentRect.width}px`,height:`${r.contentRect.height}px`})})}),this.resizeObserver.observe(this.el))),this.beforePrerenderVisible(),ym(this.preRenderWrapper,["z-index","opacity","pointer-events"]),this.subscribeToEvents()}syncPreRenderStyle(){if(!this.isPreRenderAvailable()||!this.el){F.error(K.SYNC_STYLE_CALLED_BEFORE_RENDER);return}const t=this.el.getBoundingClientRect();un(this.preRenderWrapper,{top:`${t.y+window.scrollY}px`,left:`${t.x+window.scrollX}px`,width:`${t.width}px`,height:`${t.height}px`})}hidePreRender(){if(!this.isPreRenderAvailable()){F.warn("PreRender should be called before hiding it using hidePreRender.");return}const t={opacity:"0",pointerEvents:"none",zIndex:"-1000",position:"absolute "};un(this.preRenderWrapper,t),this.resizeObserver&&this.resizeObserver.disconnect(),this.unsubscribeToEvents()}getPreRenderIds(){return{wrapper:`tsEmbed-pre-render-wrapper-${this.viewConfig.preRenderId}`,child:`tsEmbed-pre-render-child-${this.viewConfig.preRenderId}`}}async getAnswerService(t){const{session:r}=await this.trigger(ot.GetAnswerSession,t);return new $o(r,null,this.embedConfig.thoughtSpotHost)}}class Bl extends Hl{constructor(t,r){super(t,r),this.test__executeCallbacks=this.executeCallbacks,this.viewConfig={excludeRuntimeFiltersfromURL:!1,...r}}renderV1Embed(t){return this.renderIFrame(t)}getRootIframeSrc(){const t=this.getEmbedParams();let r=t;if(!this.viewConfig.excludeRuntimeParametersfromURL){const n=this.viewConfig.runtimeParameters;r=[Sl(n||[]),t].filter(Boolean).join("&")}if(!this.viewConfig.excludeRuntimeFiltersfromURL){const n=this.viewConfig.runtimeFilters;r=[yl(n||[]),r].filter(Boolean).join("&")}return this.viewConfig.enableV2Shell_experimental?this.getEmbedBasePath(r):this.getV1EmbedBasePath(r)}on(t,r,n={start:!1}){const i=this.getCompatibleEventType(t);return super.on(i,r,n)}}var Je;(function(e){e.Home="home",e.Search="search",e.Answers="answers",e.Liveboards="liveboards",e.Pinboards="pinboards",e.Data="data",e.SpotIQ="insights"})(Je||(Je={}));var Er;(function(e){e.EXPAND_ALL="EXPAND_ALL",e.COLLAPSE_ALL="COLLAPSE_ALL",e.EXPAND_FIRST="EXPAND_FIRST"})(Er||(Er={}));var Gc;(function(e){e.OBJECT_SEARCH="objectSearch",e.AI_ANSWER="aiAnswer",e.NONE="none"})(Gc||(Gc={}));class Vp extends Bl{constructor(t,r){r.embedComponentType="AppEmbed",super(t,r),this.defaultHeight="100%",this.updateIFrameHeight=n=>{var i;this.setIFrameHeight(Math.max(n.data,(i=this.iFrame)===null||i===void 0?void 0:i.scrollHeight))},this.embedIframeCenter=(n,i)=>{const o=this.getIframeCenter();i({type:U.EmbedIframeCenter,data:o})},this.setIframeHeightForNonEmbedLiveboard=n=>{const{height:i,...o}=this.viewConfig.frameParams||{};n.data.currentPath.startsWith("/pinboard/")||this.setIFrameHeight(i||this.defaultHeight)},this.viewConfig.fullHeight===!0&&(this.on(U.RouteChange,this.setIframeHeightForNonEmbedLiveboard),this.on(U.EmbedHeight,this.updateIFrameHeight),this.on(U.EmbedIframeCenter,this.embedIframeCenter))}getEmbedParams(){const{tag:t,hideObjects:r,liveboardV2:n,showPrimaryNavbar:i,disableProfileAndHelp:o,hideApplicationSwitcher:s,hideOrgSwitcher:a,enableSearchAssist:l,fullHeight:u,dataPanelV2:p=!0,hideLiveboardHeader:h=!1,showLiveboardTitle:g=!0,showLiveboardDescription:_=!0,hideHomepageLeftNav:v=!1,modularHomeExperience:x=!1,isLiveboardHeaderSticky:f=!0,enableAskSage:d,collapseSearchBarInitially:m=!1,enable2ColumnLayout:y,enableCustomColumnGroups:T=!1,isOnBeforeGetVizDataInterceptEnabled:w=!1,dataPanelCustomGroupsAccordionInitialState:b=Er.EXPAND_ALL,collapseSearchBar:R=!0,homePageSearchBarMode:P}=this.viewConfig;let k={};return k[E.EmbedApp]=!0,k[E.PrimaryNavHidden]=!i,k[E.HideProfleAndHelp]=!!o,k[E.HideApplicationSwitcher]=!!s,k[E.HideOrgSwitcher]=!!a,k[E.HideLiveboardHeader]=h,k[E.ShowLiveboardTitle]=g,k[E.ShowLiveboardDescription]=!!_,k[E.LiveboardHeaderSticky]=f,k[E.IsFullAppEmbed]=!0,k=this.getBaseQueryParams(k),u===!0&&(k[E.fullHeight]=!0),t&&(k[E.Tag]=t),r&&r.length&&(k[E.HideObjects]=JSON.stringify(r)),n!==void 0&&(k[E.LiveboardV2Enabled]=n),l!==void 0&&(k[E.EnableSearchAssist]=l),y!==void 0&&(k[E.Enable2ColumnLayout]=y),d&&(k[E.enableAskSage]=d),w&&(k[E.IsOnBeforeGetVizDataInterceptEnabled]=w),P&&(k[E.HomePageSearchBarMode]=P),k[E.DataPanelV2Enabled]=p,k[E.HideHomepageLeftNav]=v,k[E.ModularHomeExperienceEnabled]=x,k[E.CollapseSearchBarInitially]=m||R,k[E.EnableCustomColumnGroups]=T,b===Er.COLLAPSE_ALL||b===Er.EXPAND_FIRST?k[E.DataPanelCustomGroupsAccordionInitialState]=b:k[E.DataPanelCustomGroupsAccordionInitialState]=Er.EXPAND_ALL,Vr(k,!0)}getIFrameSrc(){const{pageId:t,path:r,modularHomeExperience:n}=this.viewConfig,i=this.formatPath(r)||this.getPageRoute(t,n);let o=`${this.getRootIframeSrc()}/${i}`;const s=this.getThoughtSpotPostUrlParams();return o=`${o}${s}`,o}getPageRoute(t,r=!1){switch(t){case Je.Search:return"answer";case Je.Answers:return r?"home/answers":"answers";case Je.Liveboards:return r?"home/liveboards":"pinboards";case Je.Pinboards:return r?"home/liveboards":"pinboards";case Je.Data:return"data/tables";case Je.SpotIQ:return r?"home/spotiq-analysis":"insights/results";case Je.Home:default:return"home"}}formatPath(t){return t?t.indexOf("/")===0?t.substring(1):t:null}navigateToPage(t,r=!1){if(!this.iFrame){F.log("Please call render before invoking this method");return}if(r)this.trigger(ot.Navigate,t);else{if(typeof t!="string"){F.warn("Path can only by a string when triggered without noReload");return}const n=this.iFrame.src,i="#/embed",o=n.includes(i)?i:"#";this.iFrame.src=`${n.split(o)[0]}${o}/${t.replace(/^\/?#?\//,"")}`}}async render(){super.render();const t=this.getIFrameSrc();return await this.renderV1Embed(t),this}}const nT=`
|
|
215
|
-
query GetEurekaVizSnapshots(
|
|
216
|
-
$vizId: String!, $liveboardId: String!) {
|
|
217
|
-
getEurekaVizSnapshot(
|
|
218
|
-
id: $vizId
|
|
219
|
-
reportBookId: $liveboardId
|
|
220
|
-
reportBookType: "PINBOARD_ANSWER_BOOK"
|
|
221
|
-
version: 9999999
|
|
222
|
-
) {
|
|
223
|
-
id
|
|
224
|
-
vizContent
|
|
225
|
-
snapshotType
|
|
226
|
-
createdMs
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
`;async function iT(e,t,r){return lo({query:nT,variables:{vizId:t,liveboardId:r},thoughtSpotHost:e})}const oT=()=>{if(document.getElementById("ts-preview-style"))return;document.head.insertAdjacentHTML("beforeend",`
|
|
230
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css">
|
|
231
|
-
<style id="ts-preview-style">
|
|
232
|
-
.ts-viz-preview-loader {
|
|
233
|
-
position: absolute;
|
|
234
|
-
top: 0;
|
|
235
|
-
left: 0;
|
|
236
|
-
right: 0;
|
|
237
|
-
bottom: 0;
|
|
238
|
-
display: flex;
|
|
239
|
-
justify-content: center;
|
|
240
|
-
align-items: center;
|
|
241
|
-
background: linear-gradient(-45deg, #eee 40%, #fafafa 50%, #eee 60%);
|
|
242
|
-
background-size: 300%;
|
|
243
|
-
background-position-x: 100%;
|
|
244
|
-
animation: shimmer 1s infinite linear;
|
|
245
|
-
z-index: 999;
|
|
246
|
-
filter: grayscale(0.2);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
@keyframes shimmer {
|
|
250
|
-
to {
|
|
251
|
-
background-position-x: 0%
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ts-viz-preview-loader .table-module__fullContainer {
|
|
256
|
-
width: 100%;
|
|
257
|
-
height: 100%;
|
|
258
|
-
}
|
|
259
|
-
</style>
|
|
260
|
-
`)};let Vl=class extends Bl{constructor(t,r){r.embedComponentType="LiveboardEmbed",super(t,r),this.defaultHeight=500,this.updateIFrameHeight=n=>{this.setIFrameHeight(Math.max(n.data,this.defaultHeight))},this.embedIframeCenter=(n,i)=>{const o=this.getIframeCenter();i({type:U.EmbedIframeCenter,data:o})},this.setIframeHeightForNonEmbedLiveboard=n=>{n.data.currentPath.startsWith("/embed/viz/")||n.data.currentPath.startsWith("/embed/insights/viz/")||this.setIFrameHeight(this.defaultHeight)},this.viewConfig.fullHeight===!0&&(this.on(U.RouteChange,this.setIframeHeightForNonEmbedLiveboard),this.on(U.EmbedHeight,this.updateIFrameHeight),this.on(U.EmbedIframeCenter,this.embedIframeCenter))}getEmbedParams(){let t={};t[E.EmbedApp]=!0,t=this.getBaseQueryParams(t);const{enableVizTransformations:r,fullHeight:n,defaultHeight:i,visibleVizs:o,liveboardV2:s,vizId:a,hideTabPanel:l,activeTabId:u,hideLiveboardHeader:p,showLiveboardDescription:h,showLiveboardTitle:g,isLiveboardHeaderSticky:_=!0,enableAskSage:v,enable2ColumnLayout:x}=this.viewConfig,f=this.viewConfig.preventLiveboardFilterRemoval||this.viewConfig.preventPinboardFilterRemoval;return n===!0&&(t[E.fullHeight]=!0),i&&(this.defaultHeight=i),r!==void 0&&(t[E.EnableVizTransformations]=r.toString()),f&&(t[E.preventLiveboardFilterRemoval]=!0),o&&(t[E.visibleVizs]=o),t[E.livedBoardEmbed]=!0,a&&(t[E.vizEmbed]=!0),s!==void 0&&(t[E.LiveboardV2Enabled]=s),x!==void 0&&(t[E.Enable2ColumnLayout]=x),l&&(t[E.HideTabPanel]=l),p&&(t[E.HideLiveboardHeader]=p),h&&(t[E.ShowLiveboardDescription]=h),g&&(t[E.ShowLiveboardTitle]=g),v&&(t[E.enableAskSage]=v),t[E.LiveboardHeaderSticky]=_,Vr(t,!0)}getIframeSuffixSrc(t,r,n){let i=`/embed/viz/${t}`;n&&(i=`${i}/tab/${n} `),r&&(i=`${i}/${r}`);const o=this.getThoughtSpotPostUrlParams();return i=`${i}${o}`,i}getIFrameSrc(){var t;const{vizId:r,activeTabId:n}=this.viewConfig,i=(t=this.viewConfig.liveboardId)!==null&&t!==void 0?t:this.viewConfig.pinboardId;return i||this.handleError(K.LIVEBOARD_VIZ_ID_VALIDATION),`${this.getRootIframeSrc()}${this.getIframeSuffixSrc(i,r,n)}`}setActiveTab(t){if(!this.viewConfig.vizId){const n=`${this.iFrame.src.split("#/")[1].split("/tab")[0]}/tab/${t.tabId}`;super.trigger(ot.Navigate,n)}}async showPreviewLoader(){if(!(!this.viewConfig.showPreviewLoader||!this.viewConfig.vizId))try{const t=await iT(this.thoughtSpotHost,this.viewConfig.vizId,this.viewConfig.liveboardId);if(!t.vizContent)return;oT();const r=document.createElement("div");r.innerHTML=`
|
|
261
|
-
<div class=ts-viz-preview-loader>
|
|
262
|
-
${t.vizContent}
|
|
263
|
-
</div>
|
|
264
|
-
`;const n=r.firstElementChild;this.el.appendChild(n),this.el.style.position="relative",this.on(U.Data,()=>{n.remove()})}catch(t){console.error("Error fetching preview",t)}}beforePrerenderVisible(){var t;const r=(t=this.insertedDomEl)===null||t===void 0?void 0:t[this.embedNodeKey];if(no(r))return;if(this.viewConfig.liveboardId&&r.viewConfig.liveboardId!==this.viewConfig.liveboardId){const i=this.viewConfig.liveboardId;this.navigateToLiveboard(i)}}handleRenderForPrerender(){if(no(this.viewConfig.liveboardId)){this.prerenderGeneric();return}super.handleRenderForPrerender()}trigger(t,r={}){const n=r;return t===ot.SetActiveTab?(this.setActiveTab(r),Promise.resolve(null)):(typeof n=="object"&&this.viewConfig.vizId&&(n.vizId=this.viewConfig.vizId),super.trigger(t,n))}async render(){super.render();const t=this.getIFrameSrc();return await this.renderV1Embed(t),this.showPreviewLoader(),this}navigateToLiveboard(t,r,n){const i=this.getIframeSuffixSrc(t,r,n);this.viewConfig.liveboardId=t,this.viewConfig.activeTabId=n,this.viewConfig.vizId=r,this.isRendered?this.trigger(ot.Navigate,i.substring(1)):this.viewConfig.preRenderId?this.preRender(!0):this.render()}};var Tr;(function(e){e.EXPAND_ALL="EXPAND_ALL",e.COLLAPSE_ALL="COLLAPSE_ALL",e.EXPAND_FIRST="EXPAND_FIRST"})(Tr||(Tr={}));const sT=[pt.EditACopy,pt.SaveAsView,pt.UpdateTML,pt.EditTML,pt.AnswerDelete];class Gp extends Hl{constructor(t,r){r.embedComponentType="SearchEmbed",super(t,r)}getDataSourceMode(){let t=Cn.Expanded;return(this.viewConfig.collapseDataSources===!0||this.viewConfig.collapseDataPanel===!0)&&(t=Cn.Collapsed),this.viewConfig.hideDataSources===!0&&(t=Cn.Hidden),t}getEmbedParams(){var t;const{hideResults:r,enableSearchAssist:n,forceTable:i,searchOptions:o,runtimeFilters:s,dataSource:a,dataSources:l,excludeRuntimeFiltersfromURL:u,hideSearchBar:p,dataPanelV2:h=!0,useLastSelectedSources:g=!1,runtimeParameters:_,collapseSearchBarInitially:v=!1,enableCustomColumnGroups:x=!1,isOnBeforeGetVizDataInterceptEnabled:f=!1,dataPanelCustomGroupsAccordionInitialState:d=Tr.EXPAND_ALL,focusSearchBarOnRender:m=!0,excludeRuntimeParametersfromURL:y,collapseSearchBar:T=!0}=this.viewConfig,w=this.getBaseQueryParams();w[E.HideActions]=[...(t=w[E.HideActions])!==null&&t!==void 0?t:[],...sT],l&&l.length&&(w[E.DataSources]=JSON.stringify(l)),a&&(w[E.DataSources]=`["${a}"]`),o?.searchTokenString&&(w[E.searchTokenString]=encodeURIComponent(o.searchTokenString),o.executeSearch&&(w[E.executeSearch]=!0)),n&&(w[E.EnableSearchAssist]=!0),r&&(w[E.HideResult]=!0),i&&(w[E.ForceTable]=!0),p&&(w[E.HideSearchBar]=!0),f&&(w[E.IsOnBeforeGetVizDataInterceptEnabled]=f),m||(w[E.FocusSearchBarOnRender]=m),w[E.DataPanelV2Enabled]=h,w[E.DataSourceMode]=this.getDataSourceMode(),w[E.UseLastSelectedDataSource]=g,(a||l)&&(w[E.UseLastSelectedDataSource]=!1),w[E.searchEmbed]=!0,w[E.CollapseSearchBarInitially]=v||T,w[E.EnableCustomColumnGroups]=x,d===Tr.COLLAPSE_ALL||d===Tr.EXPAND_FIRST?w[E.DataPanelCustomGroupsAccordionInitialState]=d:w[E.DataPanelCustomGroupsAccordionInitialState]=Tr.EXPAND_ALL;let b="";const R=Vr(w,!0);R&&(b=`?${R}`);const P=Sl(_||[]);P&&!y&&(b+=`&${P}`);const k=yl(s||[]);return k&&!u&&(b+=`&${k}`),b}getIFrameSrc(){const{answerId:t}=this.viewConfig,r=t?`saved-answer/${t}`:"answer",n=this.getThoughtSpotPostUrlParams();return`${this.getRootIframeSrc()}/embed/${r}${n}`}async render(){super.render(),this.viewConfig;const t=this.getIFrameSrc();return await this.renderIFrame(t),Hp().then(()=>{gm(oE(),ie().suppressSearchEmbedBetaWarning||ie().suppressErrorAlerts)&&alert(K.SEARCHEMBED_BETA_WRANING_MESSAGE)}),this}}class Wp extends Hl{constructor(t,r){super(t),this.embedComponentType="SearchBarEmbed",this.viewConfig=r}getIFrameSrc(){var t;const{searchOptions:r,dataSource:n,dataSources:i,useLastSelectedSources:o=!1}=this.viewConfig,s="search-bar-embed",a=this.getBaseQueryParams();a[E.HideActions]=[...(t=a[E.HideActions])!==null&&t!==void 0?t:[]],i&&i.length&&(a[E.DataSources]=JSON.stringify(i)),n&&(a[E.DataSources]=`["${n}"]`),r?.searchTokenString&&(a[E.searchTokenString]=encodeURIComponent(r.searchTokenString),r.executeSearch&&(a[E.executeSearch]=!0)),a[E.UseLastSelectedDataSource]=o,(n||i)&&(a[E.UseLastSelectedDataSource]=!1),a[E.searchEmbed]=!0;let l="";const u=Vr(a,!0);u&&(l=`?${u}`);const p=this.getThoughtSpotPostUrlParams();return`${this.getEmbedBasePath(l)}/embed/${s}${p}`}async render(){super.render();const t=this.getIFrameSrc();return await this.renderIFrame(t),this}}class qp extends Bl{constructor(t,r){r.embedComponentType="SageEmbed",super(t,r)}getEmbedParams(){const{disableWorksheetChange:t,hideWorksheetSelector:r,showObjectSuggestions:n,hideSampleQuestions:i,isProductTour:o,hideSageAnswerHeader:s,hideAutocompleteSuggestions:a}=this.viewConfig,l=this.getBaseQueryParams();return l[E.EmbedApp]=!0,l[E.IsSageEmbed]=!0,l[E.DisableWorksheetChange]=!!t,l[E.HideWorksheetSelector]=!!r,l[E.HideEurekaSuggestions]=!!a,n&&(l[E.HideEurekaSuggestions]=!n),l[E.HideSampleQuestions]=!!i,l[E.IsProductTour]=!!o,l[E.HideSageAnswerHeader]=!!s,Vr(l,!0)}getIFrameSrc(){const t="eureka",r={},n=this.getThoughtSpotPostUrlParams(),{dataSource:i,searchOptions:o}=this.viewConfig;i&&(r[E.WorksheetId]=i),o?.searchQuery&&o.executeSearch&&(r[E.executeSearch]=!0);let s=new URLSearchParams(r).toString();return s&&(s=`${n?"&":"?"}${s}`),o?.searchQuery&&(s+=`${s?"&":"?"}${[E.Query]}=${encodeURIComponent(o.searchQuery)}`),`${this.getRootIframeSrc()}/embed/${t}${n}${s}`}async render(){super.render();const t=this.getIFrameSrc();return await this.renderV1Embed(t),this}}var Wc=Object.prototype.hasOwnProperty;function qc(e,t,r){for(r of e.keys())if(xn(r,t))return r}function xn(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&xn(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=qc(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=qc(t,i),!i)||!xn(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Wc.call(e,r)&&++n&&!Wc.call(t,r)||!(r in t)||!xn(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function aT(e){var t=Cr.useRef(e),r=Cr.useRef(0);return xn(e,t.current)||(t.current=e,r.current+=1),Cr.useMemo(function(){return t.current},[r.current])}function lT(e,t){return Cr.useEffect(e,aT(t))}function uT(e){return Object.keys(e).reduce((t,r)=>{if(r.startsWith("on")){const n=r.substr(2);t.listeners[U[n]]=e[r]}else t.viewConfig[r]=e[r];return t},{viewConfig:{},listeners:{}})}const Ke=(e,t=!1)=>dn.forwardRef((r,n)=>{const i=dn.useRef(null),{className:o,style:s,...a}=r,{viewConfig:l,listeners:u}=uT(a),p=v=>{if(!t){if(r.preRenderId){v.hidePreRender();return}v.destroy()}},h=v=>{v.preRender()},g=v=>{if(r.preRenderId){v.showPreRender();return}v.render()},_=v=>{if(t){h(v);return}g(v)};return lT(()=>{const v=new e(i.current,lp({insertAsSibling:l.insertAsSibling,frameParams:{class:l.insertAsSibling&&o||""}},l));return Object.keys(u).forEach(x=>{v.on(x,u[x])}),_(v),n&&(n.current=v),()=>{p(v)}},[l,u]),l.insertAsSibling?dn.createElement("span",{"data-testid":"tsEmbed",ref:i,style:{position:"absolute"}}):dn.createElement("div",{"data-testid":"tsEmbed",ref:i,style:s,className:o})});Ke(Gp);Ke(Gp,!0);Ke(Vp);Ke(Vp,!0);const cT=Ke(Vl);Ke(Vl,!0);Ke(Wp);Ke(Wp,!0);Ke(qp);Ke(qp,!0);_E({thoughtSpotHost:"https://embed-1-do-not-delete.thoughtspotstaging.cloud",authType:Z.None});const fT=[{liveboardId:"d084c256-e284-4fc4-b80c-111cb606449a",vizId:"e7d38eb2-6e17-45ee-9804-2356fa17d442"},{liveboardId:"d084c256-e284-4fc4-b80c-111cb606449a",vizId:"f566ab55-31e1-4be9-a364-e17b2ec58593"},{liveboardId:"d084c256-e284-4fc4-b80c-111cb606449a",vizId:"27918f62-1cac-4b6c-abec-2f81a9effbc5"},{liveboardId:"d084c256-e284-4fc4-b80c-111cb606449a",vizId:"15301d81-d261-4d7c-bb43-650ce4980230"},{liveboardId:"6ed29fd9-aad3-41aa-9e42-a3b11bfcd088",vizId:"7f0ef46e-8e90-4db9-a844-ad70742d1235"},{liveboardId:"6ed29fd9-aad3-41aa-9e42-a3b11bfcd088",vizId:"632dc473-82c8-4630-97e8-40f7bc9b5dd6"},{liveboardId:"6ed29fd9-aad3-41aa-9e42-a3b11bfcd088",vizId:"41924815-053c-4daa-8786-03d0df2ff46e"},{liveboardId:"5841a546-cb11-4503-b34d-4c7bd26fc760",vizId:"a3f0110a-bb5e-4f7b-8fa8-04eae652d4f2"}],Kp=document.getElementById("app");fT.slice(5,6).forEach(e=>{const t=document.createElement("div");t.classList.add("tile"),Kp?.appendChild(t),new Vl(t,{liveboardId:e.liveboardId,vizId:e.vizId,showPreviewLoader:!0,enableV2Shell_experimental:!0}).on(U.Data,()=>{console.log("Liveboard rendered")})});lm.render(dn.createElement(cT,{liveboardId:"d084c256-e284-4fc4-b80c-111cb606449a",style:{width:"100%",height:"100%"},enableV2Shell_experimental:!0}),Kp);
|