PageSourceSearch

https://indexapp.xyz/_next/static/chunks/pages/_app-73d026d8f3a4f9dd9032.js

js indexapp.xyz collected 2026-10-02 02:11:10 UTC 263,662 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{1604:function(e,t,n){"use strict";n.d(t,{S1:function(){return ot},Iv:function(){return st},j:function(){return at}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(u){a=[6,u],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}Object.create;function c(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var f;!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(f||(f={}));var h,p,v=function(e){return void 0===e&&(e=0),((new Error).stack||"").split("\n").slice(2+e).map((function(e){return e.trim()}))},g=function(e){return function(){var t=o({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},m=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=c(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(!(s in e))return;e=e[s]}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},y=function(e,t){return function(){var n,r,i={};try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=m(e,a)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},b=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=n(),u=a.logger,c=a.logLevel;if(c&&c<f.Debug||!c||!u)return e.apply(i,o);var l={type:"invoke public method",name:t,args:o,stacktrace:v(1),time:{start:(new Date).toISOString()},states:{}};r&&l.states&&(l.states.before=r());var d=e.apply(i,o);return d&&d.promise?d.promise.then((function(){r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=(new Date).toISOString()),u.debug(JSON.stringify(l,null,2))})):(r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=(new Date).toISOString()),u.debug(JSON.stringify(l,null,2))),d}},w=function(e){return{promise:e||Promise.resolve()}};!function(e){e.BEFORE="before",e.ENRICHMENT="enrichment",e.DESTINATION="destination"}(h||(h={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(p||(p={}));var x,E="Event rejected due to exceeded retry count",_="AMP",C="".concat(_,"_unsent"),k="https://api2.amplitude.com/2/httpapi",S=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=p.Unknown),{event:e,code:t,message:n}};!function(e){e.US="US",e.EU="EU"}(x||(x={}));var O,T,I,j="Amplitude Logger ",N=function(){function e(){this.logLevel=f.None}return e.prototype.disable=function(){this.logLevel=f.None},e.prototype.enable=function(e){void 0===e&&(e=f.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Verbose||console.log("".concat(j,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Warn||console.warn("".concat(j,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Error||console.error("".concat(j,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<f.Debug||console.log("".concat(j,"[Debug]: ").concat(e.join(" ")))},e}(),R=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,logLevel:f.Warn,loggerProvider:new N,optOut:!1,serverUrl:k,serverZone:x.US,useBatch:!1}},A=function(){function e(e){var t,n,r,i;this._optOut=!1;var o=R();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var s=L(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=s.serverZone,this.serverUrl=s.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),e}(),P=function(e,t){return e===x.EU?t?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":t?"https://api2.amplitude.com/batch":k},L=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=R().serverZone),void 0===n&&(n=R().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:R().serverZone;return{serverZone:r,serverUrl:P(r,n)}},M=function(){function e(){this.name="amplitude",this.type=h.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return a(this,void 0,void 0,(function(){var n,r=this;return u(this,(function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(C,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return n=i.sent(),this.saveEvents(),n&&n.length>0&&Promise.all(n.map((function(e){return r.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return new Promise((function(n){var r={event:e,attempts:0,callback:function(e){return n(e)},timeout:0};t.addToQueue(r)}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.filter((function(t){return t.attempts<e.config.flushMaxRetries?(t.attempts+=1,!0):(e.fulfillRequest([t],500,E),!1)}));r.forEach((function(t){e.queue=e.queue.concat(t),0!==t.timeout?setTimeout((function(){t.timeout=0,e.schedule(0)}),t.timeout):e.schedule(e.config.flushIntervalMillis)})),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout((function(){t.flush(!0).then((function(){t.queue.length>0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var t,n,r,i=this;return u(this,(function(o){switch(o.label){case 0:return t=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):n.push(e)})),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),r=function(e,t){var n=Math.max(t,1);return e.reduce((function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e}),[])}(t,this.config.flushQueueSize),[4,Promise.all(r.map((function(t){return i.send(t,e)})))];case 1:return o.sent(),[2]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t=!0),a(this,void 0,void 0,(function(){var n,r,i,o,a;return u(this,(function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;t.extra;return s(t,["extra"])})),options:{min_id_length:this.config.minIdLength}},u.label=1;case 1:return u.trys.push([1,3,,4]),r=L(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=u.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t){if("body"in i){o="";try{o=JSON.stringify(i.body,null,2)}catch(c){}this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(o))}else this.fulfillRequest(e,i.statusCode,i.status);return[2]}return this.handleReponse(i,e),[3,4];case 3:return a=u.sent(),this.fulfillRequest(e,0,String(a)),[3,4];case 4:return[2]}}
1))}))},e.prototype.handleReponse=function(e,t){switch(e.status){case p.Success:this.handleSuccessResponse(e,t);break;case p.Invalid:this.handleInvalidResponse(e,t);break;case p.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case p.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.handleOtherReponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))this.fulfillRequest(t,e.statusCode,e.body.error);else{var r=d(d(d(d([],l(Object.values(e.body.eventsWithInvalidFields)),!1),l(Object.values(e.body.eventsWithMissingFields)),!1),l(Object.values(e.body.eventsWithInvalidIdLengths)),!1),l(e.body.silencedEvents),!1).flat(),i=new Set(r),o=t.filter((function(t,r){if(!i.has(r))return!0;n.fulfillRequest([t],e.statusCode,e.body.error)}));this.addToQueue.apply(this,d([],l(o),!1))}},e.prototype.handlePayloadTooLargeResponse=function(e,t){1!==t.length?(this.config.flushQueueSize/=2,this.addToQueue.apply(this,d([],l(t),!1))):this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(r),a=new Set(i),u=new Set(o),c=t.filter((function(t,r){if(!(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.has(t.event.device_id)))return u.has(r)&&(t.timeout=n.throttleTimeout),!0;n.fulfillRequest([t],e.statusCode,e.body.error)}));this.addToQueue.apply(this,d([],l(c),!1))},e.prototype.handleOtherReponse=function(e){var t=this;this.addToQueue.apply(this,d([],l(e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e}))),!1))},e.prototype.fulfillRequest=function(e,t,n){this.saveEvents(),e.forEach((function(e){return e.callback(S(e.event,t,n))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map((function(e){return e.event})));this.config.storageProvider.set(this.storageKey,e)}},e}(),U=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,U)};!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(O||(O={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE="$revenue"}(T||(T={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(I||(I={}));var D=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!B(t,n))return!1}return!0},B=function(e,t){var n,r;if("string"!==typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if("object"===typeof a)i=i&&D(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else{if(null===t||void 0===t)return!1;if("object"===typeof t)return D(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},F=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return o({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(O.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(O.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(O.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(O.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(O.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(O.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(O.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(O.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(O.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[O.CLEAR_ALL]="-",this}
1,e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return void 0===this._properties[O.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===O.ADD?"number"===typeof n:e===O.UNSET||e===O.REMOVE||B(t,n)))},e}(),q=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return D(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?o({},this.properties):{};return e[T.REVENUE_PRODUCT_ID]=this.productId,e[T.REVENUE_QUANTITY]=this.quantity,e[T.REVENUE_PRICE]=this.price,e[T.REVENUE_TYPE]=this.revenueType,e[T.REVENUE]=this.revenue,e},e}(),V=function(e,t){return o(o({},t),{event_type:I.IDENTIFY,user_properties:e.getUserProperties()})},H=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){return a(this,void 0,void 0,(function(){return u(this,(function(n){switch(n.label){case 0:return[4,e.setup(t,this.client)];case 1:return n.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e){return this.plugins.splice(this.plugins.findIndex((function(t){return t.name===e})),1),Promise.resolve()},e.prototype.reset=function(e){this.applying=!1,this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(n){t.queue.push([e,n]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return a(this,void 0,void 0,(function(){var t,n,r,i,s,a,d,f,p,v,g,m,y,b,w,x,E,_,C;return u(this,(function(u){switch(u.label){case 0:if(!e)return[2];t=l(e,1),n=t[0],r=l(e,2),i=r[1],s=this.plugins.filter((function(e){return e.type===h.BEFORE})),u.label=1;case 1:u.trys.push([1,6,7,8]),a=c(s),d=a.next(),u.label=2;case 2:return d.done?[3,5]:[4,d.value.execute(o({},n))];case 3:if(null===(m=u.sent()))return i({event:n,code:0,message:""}),[2];n=m,u.label=4;case 4:return d=a.next(),[3,2];case 5:return[3,8];case 6:return f=u.sent(),x={error:f},[3,8];case 7:try{d&&!d.done&&(E=a.return)&&E.call(a)}finally{if(x)throw x.error}return[7];case 8:p=this.plugins.filter((function(e){return e.type===h.ENRICHMENT})),u.label=9;case 9:u.trys.push([9,14,15,16]),v=c(p),g=v.next(),u.label=10;case 10:return g.done?[3,13]:[4,g.value.execute(o({},n))];case 11:if(null===(m=u.sent()))return i({event:n,code:0,message:""}),[2];n=m,u.label=12;case 12:return g=v.next(),[3,10];case 13:return[3,16];case 14:return y=u.sent(),_={error:y},[3,16];case 15:try{g&&!g.done&&(C=v.return)&&C.call(v)}finally{if(_)throw _.error}return[7];case 16:return b=this.plugins.filter((function(e){return e.type===h.DESTINATION})),w=b.map((function(e){var t=o({},n);return e.execute(t).catch((function(e){return S(t,0,String(e))}))})),Promise.all(w).then((function(e){var t=l(e,1)[0];i(t)})),[2]}}))}))},e.prototype.flush=function(){return a(this,void 0,void 0,(function(){var e,t,n,r=this;return u(this,(function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return r.apply(e)})))];case 1:return i.sent(),t=this.plugins.filter((function(e){return e.type===h.DESTINATION})),n=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(n)];case 2:return i.sent(),[2]}}))}))},e}(),z=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new H(this),this.name=e}return e.prototype._init=function(e){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return a(this,void 0,void 0,(function(){var t,n,r,i,o,s;return u(this,(function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,6,7,8]),n=c(t),r=n.next(),a.label=2;case 2:return r.done?[3,5]:[4,(0,r.value)()];case 3:a.sent(),a.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return i=a.sent(),o={error:i},[3,8];case 7:try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}
1return[7];case 8:return[2]}}))}))},e.prototype.track=function(e,t,n){var r=function(e,t,n){return o(o(o({},"string"===typeof e?{event_type:e}:e),n),t&&{event_properties:t})}(e,t,n);return w(this.dispatch(r))},e.prototype.identify=function(e,t){var n=V(e,t);return w(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=function(e,t,n,r){var i;return o(o({},r),{event_type:I.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[e]=t,i)})}(e,t,n,r);return w(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=function(e,t,n){var r,i=new F;return i.set(e,t),o(o({},n),{event_type:I.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[e]=t,r)})}(e,t,n);return w(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=function(e,t){return o(o({},t),{event_type:I.REVENUE,event_properties:e.getEventProperties()})}(e,t);return w(this.dispatch(n))},e.prototype.add=function(e){return this.config?w(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),w())},e.prototype.remove=function(e){return this.config?w(this.timeline.deregister(e)):(this.q.push(this.remove.bind(this,e)),w())},e.prototype.dispatchWithCallback=function(e,t){if(!this.config)return t(S(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return a(this,void 0,void 0,(function(){var t=this;return u(this,(function(n){return this.config?[2,this.process(e)]:[2,new Promise((function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))}))]}))}))},e.prototype.process=function(e){return a(this,void 0,void 0,(function(){var t,n,r;return u(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,S(e,0,"Event skipped due to optOut config")]:[4,this.timeline.push(e)];case 1:return 200===(r=i.sent()).code?this.config.loggerProvider.log(r.message):this.config.loggerProvider.error(r.message),[2,r];case 2:return t=i.sent(),n=String(t),this.config.loggerProvider.error(n),[2,r=S(e,0,n)];case 3:return[2]}}
1))}))},e.prototype.setOptOut=function(e){this.config?this.config.optOut=Boolean(e):this.q.push(this.setOptOut.bind(this,Boolean(e)))},e.prototype.flush=function(){return w(this.timeline.flush())},e}(),Z=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[_,t,e.substring(0,n)].filter(Boolean).join("_")},Y=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof n.g?n.g:void 0},W=function(){var e,t=Y();return(null===(e=null===t||void 0===t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var n=t.split("=",2),r=$(n[0]),i=$(n[1]);return i?(e[r]=i,e):e}),{}):{}},$=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(t){return""}},G=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:K(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),K=function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},J=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},X=function(e,t){var n=typeof e;if(n!==typeof t)return!1;for(var r=0,i=["string","number","boolean","undefined"];r<i.length;r++){if(i[r]===n)return e===t}if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;var o=Array.isArray(e),s=Array.isArray(t);if(o!==s)return!1;if(!o||!s){var a=Object.keys(e).sort(),u=Object.keys(t).sort();if(!X(a,u))return!1;var c=!0;return Object.keys(e).forEach((function(n){X(e[n],t[n])||(c=!1)})),c}for(var l=0;l<e.length;l++)if(!X(e[l],t[l]))return!1;return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var ee,te=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=Q({},this.identity.userProperties),n=Q(Q({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},updateUserProperties:function(e){for(var t=n.userProperties||{},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],s=o[0],a=o[1];switch(s){case"$set":for(var u=0,c=Object.entries(a);u<c.length;u++){var l=c[u],d=l[0],f=l[1];t[d]=f}break;case"$unset":for(var h=0,p=Object.keys(a);h<p.length;h++){delete t[d=p[h]]}break;case"$clearAll":t={}}}return n.userProperties=t,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return Q({},this.identity)},e.prototype.setIdentity=function(e){var t=Q({},this.identity);this.identity=Q({},e),X(t,this.identity)||this.listeners.forEach((function(t){t(e)}))},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof n.g?n.g:self,re=function(){function e(){this.identityStore=new te,this.eventBridge=new J,this.applicationContextProvider=new G}return e.getInstance=function(t){return ne.analyticsConnectorInstances||(ne.analyticsConnectorInstances={}),ne.analyticsConnectorInstances[t]||(ne.analyticsConnectorInstances[t]=new e),ne.analyticsConnectorInstances[t]},e}(),ie=function(){return re.getInstance("$default_instance")},oe=function(){function e(){this.name="identity",this.type=h.BEFORE,this.identityStore=ie().identityStore}return e.prototype.execute=function(e){return a(this,void 0,void 0,(function(){var t;return u(this,(function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]}))}))},e.prototype.setup=function(e){return Promise.resolve(void 0)},e}(),se=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if("function"===typeof a){var u=a.apply(e,o);"function"===typeof s&&s(null===u||void 0===u?void 0:u.promise)}}return e},ae=function(e){return e&&void 0!==e._q},ue=n(9293),ce=n.n(ue),le=function(){var e,t,n,r;if("undefined"===typeof navigator)return"";var i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},de=function(){function e(){this.name="context",this.type=h.BEFORE,this.eventId=0,this.library="amplitude-ts/".concat("1.10.3"),"undefined"!==typeof navigator&&(this.userAgent=navigator.userAgent),this.uaResult=new(ce())(this.userAgent).getResult()}return e.prototype.setup=function(e){return this.config=e,this.eventId=this.config.lastEventId?this.config.lastEventId+1:0,Promise.resolve(void 0)},e.prototype.execute=function(e){return a(this,void 0,void 0,(function(){var t,n,r,i,s;return u(this,(function(a){return t=(new Date).getTime(),n=this.uaResult.browser.name,r=this.uaResult.browser.version,i=this.uaResult.device.model||this.uaResult.os.name,s=this.uaResult.device.vendor,this.config.lastEventId=this.eventId,[2,o(o(o(o(o(o(o(o(o(o(o(o({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.osName&&{os_name:n}),this.config.trackingOptions.osVersion&&{os_version:r}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:s}),this.config.trackingOptions.deviceModel&&{device_model:i}),this.config.trackingOptions.language&&{language:le()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:U(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:this.eventId++,library:this.library,user_agent:this.userAgent})]}))}))},e}();!function(e){e.XHR="xhr",e.SendBeacon="beacon",e.Fetch="fetch"}(ee||(ee={}));var fe=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2,!0]}))}))},e.prototype.get=function(e){return a(this,void 0,void 0,(function(){return u(this,(function(t){return[2,this.memoryStorage.get(e)]}))}))},e.prototype.getRaw=function(e){return a(this,void 0,void 0,(function(){var t;return u(this,(function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}}))}))},e.prototype.set=function(e,t){return a(this,void 0,void 0,(function(){return u(this,(function(n){return this.memoryStorage.set(e,t),[2]}))}
1))},e.prototype.remove=function(e){return a(this,void 0,void 0,(function(){return u(this,(function(t){return this.memoryStorage.delete(e),[2]}))}))},e.prototype.reset=function(){return a(this,void 0,void 0,(function(){return u(this,(function(e){return this.memoryStorage.clear(),[2]}))}))},e}(),he=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,n,r,i,o,s,a,u,c,l,d,f,h,v,g,m,y,b,w,x,E,_;if("object"!==typeof e)return null;var C=e.code||0,k=this.buildStatus(C);switch(k){case p.Success:return{status:k,statusCode:C,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case p.Invalid:return{status:k,statusCode:C,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(l=e.exceeded_daily_quota_devices)&&void 0!==l?l:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(v=e.throttled_events)&&void 0!==v?v:[]}};case p.PayloadTooLarge:return{status:k,statusCode:C,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case p.RateLimit:return{status:k,statusCode:C,body:{error:null!==(m=e.error)&&void 0!==m?m:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(x=e.exceeded_daily_quota_devices)&&void 0!==x?x:{},exceededDailyQuotaUsers:null!==(E=e.exceeded_daily_quota_users)&&void 0!==E?E:{},throttledEvents:null!==(_=e.throttled_events)&&void 0!==_?_:[]}};case p.Timeout:default:return{status:k,statusCode:C}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?p.Success:429===e?p.RateLimit:413===e?p.PayloadTooLarge:408===e?p.Timeout:e>=400&&e<500?p.Invalid:e>=500?p.Failed:p.Unknown},e}(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.send=function(e,t){return a(this,void 0,void 0,(function(){var n,r;return u(this,(function(i){switch(i.label){case 0:if("undefined"===typeof fetch)throw new Error("FetchTransport is not supported");return n={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,n)];case 1:return[4,i.sent().json()];case 2:return r=i.sent(),[2,this.buildResponse(r)]}}))}))},t}(he),ve=function(){function e(e){this.options=o({},e)}return e.prototype.isEnabled=function(){return a(this,void 0,void 0,(function(){var t,n,r;return u(this,(function(i){switch(i.label){case 0:if(!Y())return[2,!1];t=String(Date.now()),n=new e(this.options),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}}
1))}))},e.prototype.get=function(e){return a(this,void 0,void 0,(function(){var t;return u(this,(function(n){switch(n.label){case 0:return[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];try{try{t=decodeURIComponent(atob(t))}catch(r){}return[2,JSON.parse(t)]}catch(i){return[2,void 0]}return[2]}}))}))},e.prototype.getRaw=function(e){var t;return a(this,void 0,void 0,(function(){var n,r,i;return u(this,(function(o){return n=Y(),r=null!==(t=null===n||void 0===n?void 0:n.document.cookie.split("; "))&&void 0!==t?t:[],(i=r.find((function(t){return 0===t.indexOf(e+"=")})))?[2,i.substring(e.length+1)]:[2,void 0]}))}))},e.prototype.set=function(e,t){var n;return a(this,void 0,void 0,(function(){var r,i,o,s,a,c;return u(this,(function(u){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,o=void 0,(i=null!==t?r:-1)&&((s=new Date).setTime(s.getTime()+24*i*60*60*1e3),o=s),a="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(a+="; expires=".concat(o.toUTCString())),a+="; path=/",this.options.domain&&(a+="; domain=".concat(this.options.domain)),this.options.secure&&(a+="; Secure"),this.options.sameSite&&(a+="; SameSite=".concat(this.options.sameSite)),(c=Y())&&(c.document.cookie=a)}catch(l){}return[2]}))}))},e.prototype.remove=function(e){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}}))}))},e.prototype.reset=function(){return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2]}))}))},e}(),ge=function(){function e(){}return e.prototype.isEnabled=function(){return a(this,void 0,void 0,(function(){var t,n,r;return u(this,(function(i){switch(i.label){case 0:if(!Y())return[2,!1];t=String(Date.now()),n=new e,r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}}
1))}))},e.prototype.get=function(e){return a(this,void 0,void 0,(function(){var t;return u(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=n.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return n.sent(),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return a(this,void 0,void 0,(function(){return u(this,(function(n){return[2,(null===(t=Y())||void 0===t?void 0:t.localStorage.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var n;return a(this,void 0,void 0,(function(){return u(this,(function(r){try{null===(n=Y())||void 0===n||n.localStorage.setItem(e,JSON.stringify(t))}catch(i){}return[2]}))}))},e.prototype.remove=function(e){var t;return a(this,void 0,void 0,(function(){return u(this,(function(n){try{null===(t=Y())||void 0===t||t.localStorage.removeItem(e)}catch(r){}return[2]}))}))},e.prototype.reset=function(){var e;return a(this,void 0,void 0,(function(){return u(this,(function(t){try{null===(e=Y())||void 0===e||e.localStorage.clear()}catch(n){}return[2]}))}))},e}(),me=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return i(t,e),t.prototype.send=function(e,t){return a(this,void 0,void 0,(function(){var n=this;return u(this,(function(r){return[2,new Promise((function(r,i){"undefined"===typeof XMLHttpRequest&&i(new Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done)try{var e=o.responseText,t=JSON.parse(e),s=n.buildResponse(t);r(s)}catch(a){i(a)}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))}))]}))}))},t}(he),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.send=function(e,t){return a(this,void 0,void 0,(function(){var n=this;return u(this,(function(r){return[2,new Promise((function(r,i){var o=Y();if(!(null===o||void 0===o?void 0:o.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var s=JSON.stringify(t);return r(o.navigator.sendBeacon(e,JSON.stringify(t))?n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:s.length,server_upload_time:Date.now()}):n.buildResponse({code:500}))}catch(a){i(a)}}))]}))}))},t}(he),be=function(){return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:!1,cookieStorage:new fe,cookieUpgrade:!0,disableCookies:!1,domain:"",sessionTimeout:18e5,trackingOptions:{deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0},transportProvider:new pe}},we=function(e){function t(t,n){var r,i,s,a,u,c,l,d,f,h=this,p=be();return(h=e.call(this,o(o({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:p.transportProvider},n),{apiKey:t}))||this)._optOut=!1,h.cookieStorage=null!==(r=null===n||void 0===n?void 0:n.cookieStorage)&&void 0!==r?r:p.cookieStorage,h.deviceId=null===n||void 0===n?void 0:n.deviceId,h.lastEventId=null===n||void 0===n?void 0:n.lastEventId,h.lastEventTime=null===n||void 0===n?void 0:n.lastEventTime,h.optOut=Boolean(null===n||void 0===n?void 0:n.optOut),h.sessionId=null===n||void 0===n?void 0:n.sessionId,h.userId=null===n||void 0===n?void 0:n.userId,h.appVersion=null===n||void 0===n?void 0:n.appVersion,h.attribution=null===n||void 0===n?void 0:n.attribution,h.cookieExpiration=null!==(i=null===n||void 0===n?void 0:n.cookieExpiration)&&void 0!==i?i:p.cookieExpiration,h.cookieSameSite=null!==(s=null===n||void 0===n?void 0:n.cookieSameSite)&&void 0!==s?s:p.cookieSameSite,h.cookieSecure=null!==(a=null===n||void 0===n?void 0:n.cookieSecure)&&void 0!==a?a:p.cookieSecure,h.cookieUpgrade=null!==(u=null===n||void 0===n?void 0:n.cookieUpgrade)&&void 0!==u?u:p.cookieUpgrade,h.defaultTracking=null===n||void 0===n?void 0:n.defaultTracking,h.disableCookies=null!==(c=null===n||void 0===n?void 0:n.disableCookies)&&void 0!==c?c:p.disableCookies,h.defaultTracking=null===n||void 0===n?void 0:n.defaultTracking,h.domain=null!==(l=null===n||void 0===n?void 0:n.domain)&&void 0!==l?l:p.domain,h.partnerId=null===n||void 0===n?void 0:n.partnerId,h.sessionTimeout=null!==(d=null===n||void 0===n?void 0:n.sessionTimeout)&&void 0!==d?d:p.sessionTimeout,h.trackingOptions=null!==(f=null===n||void 0===n?void 0:n.trackingOptions)&&void 0!==f?f:p.trackingOptions,h}return i(t,e),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e,t={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId};null===(e=this.cookieStorage)||void 0===e||e.set(Z(this.apiKey),t)},t}(A),xe=function(e,t){return a(void 0,void 0,void 0,(function(){var n,r,i,s,a,c,l,d,f,h,p,v,g,m,y;return u(this,(function(u){switch(u.label){case 0:return n=be(),r=null!==(m=null===t||void 0===t?void 0:t.deviceId)&&void 0!==m?m:U(),i=null===t||void 0===t?void 0:t.lastEventId,s=null===t||void 0===t?void 0:t.lastEventTime,a=null===t||void 0===t?void 0:t.optOut,c=null===t||void 0===t?void 0:t.sessionId,l=null===t||void 0===t?void 0:t.userId,d=null===t||void 0===t?void 0:t.cookieStorage,f
1=null===t||void 0===t?void 0:t.domain,h=we.bind,p=[void 0,e],v=[o({},t)],g={cookieStorage:d,deviceId:r,domain:f,lastEventId:i,lastEventTime:s,optOut:a,sessionId:c},[4,Ce(t)];case 1:return[2,new(h.apply(we,p.concat([o.apply(void 0,v.concat([(g.storageProvider=u.sent(),g.trackingOptions=o(o({},n.trackingOptions),null===t||void 0===t?void 0:t.trackingOptions),g.transportProvider=null!==(y=null===t||void 0===t?void 0:t.transportProvider)&&void 0!==y?y:ke(null===t||void 0===t?void 0:t.transport),g.userId=l,g)]))])))]}}))}))},Ee=function(e,t){return void 0===t&&(t=be()),a(void 0,void 0,void 0,(function(){var n,r,i;return u(this,(function(s){switch(s.label){case 0:return n=o(o({},t),e),r=null===e||void 0===e?void 0:e.cookieStorage,(i=!r)?[3,2]:[4,r.isEnabled()];case 1:i=!s.sent(),s.label=2;case 2:return i?[2,_e(n)]:[2,r]}}))}))},_e=function(e){return a(void 0,void 0,void 0,(function(){var t,n;return u(this,(function(r){switch(r.label){case 0:return t=new ve({domain:e.domain,expirationDays:e.cookieExpiration,sameSite:e.cookieSameSite,secure:e.cookieSecure}),(n=e.disableCookies)?[3,2]:[4,t.isEnabled()];case 1:n=!r.sent(),r.label=2;case 2:return n?[4,(t=new ge).isEnabled()]:[3,4];case 3:r.sent()||(t=new fe),r.label=4;case 4:return[2,t]}}))}))},Ce=function(e){return a(void 0,void 0,void 0,(function(){var t,n,r,i,o,s,a;return u(this,(function(u){switch(u.label){case 0:if(e&&Object.prototype.hasOwnProperty.call(e,"storageProvider")&&!e.storageProvider)return[3,9];u.label=1;case 1:u.trys.push([1,7,8,9]),t=c([null===e||void 0===e?void 0:e.storageProvider,new ge]),n=t.next(),u.label=2;case 2:return n.done?[3,6]:(r=n.value,(i=r)?[4,r.isEnabled()]:[3,4]);case 3:i=u.sent(),u.label=4;case 4:if(i)return[2,r];u.label=5;case 5:return n=t.next(),[3,2];case 6:return[3,9];case 7:return o=u.sent(),s={error:o},[3,9];case 8:try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(s)throw s.error}return[7];case 9:return[2,void 0]}}))}))},ke=function(e){return e===ee.XHR?new me:e===ee.SendBeacon?new ye:be().transportProvider},Se=function(e,t){return a(void 0,void 0,void 0,(function(){var n,r,i,o,s,a,c,d,f,h;return u(this,(function(u){switch(u.label){case 0:return[4,Ee(t)];case 1:return n=u.sent(),r=function(e){return"".concat(_.toLowerCase(),"_").concat(e.substring(0,6))}(e),[4,n.getRaw(r)];case 2:return(i=u.sent())?(null!==(h=null===t||void 0===t?void 0:t.cookieUpgrade)&&void 0!==h?h:be().cookieUpgrade)?[4,n.remove(r)]:[3,4]:[2,{optOut:!1}];case 3:u.sent(),u.label=4;case 4:return o=l(i.split("."),5),s=o[0],a=o[1],c=o[2],d=o[3],f=o[4],[2,{deviceId:s,userId:Te(a),sessionId:Oe(d),lastEventTime:Oe(f),optOut:Boolean(c)}]}}))}))},Oe=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Te=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(t){return}},Ie={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},je=function(){function e(){}return e.prototype.parse=function(){return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2,o(o(o(o({},Ie),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=W();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(r){}return n},e.prototype.getClickIds=function(){var e,t=W();return(e={}).dclid=t.dclid,e.fbclid=t.fbclid,e.gbraid=t.gbraid,e.gclid=t.gclid,e.ko_click_id=t.ko_click_id,e.li_fat_id=t.li_fat_id,e.msclkid=t.msclkid,e.rtd_cid=t.rtd_cid,e.ttclid=t.ttclid,e.twclid=t.twclid,e.wbraid=t.wbraid,e},e}(),Ne=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[_,t,e.substring(0,n)].filter(
1Boolean).join("_")},Re=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},Ae=function(e,t,n){e.referrer;var r,i=e.referring_domain,o=s(e,["referrer","referring_domain"]),a=t||{},u=(a.referrer,a.referring_domain),c=s(a,["referrer","referring_domain"]);if(e.referring_domain&&(null===(r=n.excludeReferrers)||void 0===r?void 0:r.includes(e.referring_domain)))return!1;var l=JSON.stringify(o)!==JSON.stringify(c),d=Re(i||"")!==Re(u||"");return!t||l||d},Pe=function(e,t){var n=o(o({},Ie),e),r=Object.entries(n).reduce((function(e,n){var r,i=l(n,2),o=i[0],s=i[1];return e.setOnce("initial_".concat(o),null!==(r=null!==s&&void 0!==s?s:t.initialEmptyValue)&&void 0!==r?r:"EMPTY"),s?e.set(o,s):e.unset(o)}),new F);return V(r)},Le=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},Me=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={},i=Y(),s=void 0,c=l(t,2),d=c[0],f=c[1];d&&"init"in d?(e=d,f&&(r=f)):d&&(r=d);var p=function(){return a(void 0,void 0,void 0,(function(){var e,t,n;return u(this,(function(i){switch(i.label){case 0:return t={event_type:null!==(n=r.eventType)&&void 0!==n?n:"Page View"},e=[{}],[4,Ue()];case 1:return[2,(t.event_properties=o.apply(void 0,[o.apply(void 0,e.concat([i.sent()])),{page_domain:"undefined"!==typeof location&&location.hostname||"",page_location:"undefined"!==typeof location&&location.href||"",page_path:"undefined"!==typeof location&&location.pathname||"",page_title:"undefined"!==typeof document&&document.title||"",page_url:"undefined"!==typeof location&&location.href.split("?")[0]||""}]),t)]}}))}))},v=function(){return"undefined"===typeof r.trackOn||"function"===typeof r.trackOn&&r.trackOn()},g=null,m=function(){return a(void 0,void 0,void 0,(function(){var t,n,i;return u(this,(function(o){switch(o.label){case 0:return t=location.href,Be(r.trackHistoryChanges,t,g||"")&&v()?(null===s||void 0===s||s.log("Tracking page view event"),null!==e&&void 0!==e?[3,1]:(void 0,[3,3])):[3,4];case 1:return i=(n=e).track,[4,p()];case 2:i.apply(n,[o.sent()]),o.label=3;case 3:o.label=4;case 4:return g=t,[2]}}))}))}
1,y={name:"page-view-tracking",type:h.ENRICHMENT,setup:function(t,n){return a(void 0,void 0,void 0,(function(){var o,a,c,f,h;return u(this,(function(u){switch(u.label){case 0:return(e=null!==e&&void 0!==e?e:n)?((s=t.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),r.trackOn=(null===(f=t.attribution)||void 0===f?void 0:f.trackPageViews)?"attribution":r.trackOn,!n&&(null===(h=t.attribution)||void 0===h?void 0:h.trackPageViews)&&(s.warn("@amplitude/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @amplitude/analytics-browser. Resolve by disabling page view tracking in @amplitude/analytics-browser."),t.attribution.trackPageViews=!1),r.trackHistoryChanges&&i&&(i.addEventListener("popstate",(function(){m()})),i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=l(n,3),i=r[0],o=r[1],s=r[2];return m(),e.apply(t,[i,o,s])}})),v()?(s.log("Tracking page view event"),c=(a=e).track,[4,p()]):[3,2]):(o=d?"Options":"undefined",t.loggerProvider.error("Argument of type '".concat(o,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:c.apply(a,[u.sent()]),u.label=2;case 2:return[2]}}
1))}))},execute:function(e){return a(void 0,void 0,void 0,(function(){var t;return u(this,(function(n){switch(n.label){case 0:return"attribution"===r.trackOn&&De(e)?(null===s||void 0===s||s.log("Enriching campaign event to page view event with campaign parameters"),[4,p()]):[3,2];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=o(o({},e.event_properties),t.event_properties),n.label=2;case 2:return[2,e]}}))}))}};return y.__trackHistoryPageView=m,y},Ue=function(){return a(void 0,void 0,void 0,(function(){var e;return u(this,(function(t){switch(t.label){case 0:return e=Le,[4,(new je).parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}}))}))},De=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[O.SET]||{},r=t[O.UNSET]||{},i=d(d([],l(Object.keys(n)),!1),l(Object.keys(r)),!1);return Object.keys(Ie).every((function(e){return i.includes(e)}))}return!1},Be=function(e,t,n){switch(e){case"pathOnly":return t.split("?")[0]!==n.split("?")[0];default:return t!==n}},Fe="[Amplitude]",qe="".concat(Fe," Page Viewed"),Ve="".concat(Fe," Form Started"),He="".concat(Fe," Form Submitted"),ze="".concat(Fe," File Downloaded"),Ze="session_start",Ye="session_end",We="".concat(Fe," File Extension"),$e="".concat(Fe," File Name"),Ge="".concat(Fe," Link ID"),Ke="".concat(Fe," Link Text"),Je="".concat(Fe," Link URL"),Qe="".concat(Fe," Form ID"),Xe="".concat(Fe," Form Name"),et="".concat(Fe," Form Destination"),tt=function(){var e,t;return{name:"@amplitude/plugin-session-handler",type:h.BEFORE,setup:function(n,r){return a(void 0,void 0,void 0,(function(){return u(this,(function(i){return e=n,t=r,[2]}))}))},execute:function(n){return a(void 0,void 0,void 0,(function(){var r,i;return u(this,(function(o){return r=Date.now(),n.event_type===Ze||n.event_type===Ye?(e.lastEventTime=r,[2,n]):(i=e.lastEventTime||r,r-i>e.sessionTimeout&&(t.setSessionId(r),n.session_id=t.getSessionId(),n.time=r),e.lastEventTime=r,[2,n])}))}))}}},nt={page_domain:"".concat(Fe," Page Domain"),page_location:"".concat(Fe," Page Location"),page_path:"".concat(Fe," Page Path"),page_title:"".concat(Fe," Page Title"),page_url:"".concat(Fe," Page URL")},rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(e,t,n){return void 0===e&&(e=""),w(this._init(o(o({},n),{userId:t,apiKey:e})))},t.prototype._init=function(t){var n,r,i,s,c,d,f,p,v,g,m,y,b,w,x,E,_,C;return a(this,void 0,void 0,(function(){var k,S,O,T,I,j,N,R,A,P,L,U,D,B,F,q,V,H,z=this;return u(this,(function(Y){switch(Y.label){case 0:return this.initializing?[2]:(this.initializing=!0,k=t,t.disableCookies?(S="",[3,5]):[3,1]);case 1:return null===(n=t.domain)||void 0===n?[3,2]:(O=n,[3,4]);case 2:return[4,a(void 0,void 0,void 0,(function(){var e,t,n,r,i,o,s;return u(this,(function(a){switch(a.label){case 0:return[4,(new ve).isEnabled()];case 1:if(!a.sent()||!G&&"undefined"===typeof location)return[2,""];for(e=null!==G&&void 0!==G?G:location.hostname,t=e.split("."),n=[],r="AMP_TLDTEST",i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));i=0,a.label=2;case 2:return i<n.length?(o=n[i],[4,(s=new ve({domain:"."+o})).set(r,1)]):[3,7];case 3:return a.sent(),[4,s.get(r)];case 4:return a.sent()?[4,s.remove(r)]:[3,6];case 5:return a.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}}))}))];case 3:O=Y.sent(),Y.label=4;case 4:S=O,Y.label=5;case 5:return k.domain=S,[4,Se(t.apiKey,t)];case 6:return T=Y.sent(),[4,Ee(t)];case 7:return[4,(I=Y.sent()).get(Z(t.apiKey))];case 8:return j=Y.sent(),N=W(),R=null!==(s=null!==(i=null!==(r=t.deviceId)&&void 0!==r?r:N.deviceId)&&void 0!==i?i:null===j||void 0===j?void 0:j.deviceId)&&void 0!==s?s:T.deviceId,A=null!==(d=null!==(c=t.sessionId)&&void 0!==c?c:null===j||void 0===j?void 0:j.sessionId)&&void 0!==d?d:T.sessionId,P=null!==(p=null!==(f=t.optOut)&&void 0!==f?f:null===j||void 0===j?void 0:j.optOut)&&void 0!==p?p:T.optOut,L=null===j||void 0===j?void 0:j.lastEventId,U=null!==(v=null===j||void 0===j?void 0:j.lastEventTime)&&void 0!==v?v:T.lastEventTime,D=null!==(m=null!==(g=t.userId)&&void 0!==g?g:null===j||void 0===j?void 0:j.userId)&&void 0!==m?m:T.userId,this.previousSessionDeviceId=null!==(y=null===j||void 0===j?void 0:j.deviceId)&&void 0!==y?y:T.deviceId,this.previousSessionUserId=null!==(b=null===j||void 0===j?void 0:j.userId)&&void 0!==b?b:T.userId,[4,xe(t.apiKey,o(o({},t),{deviceId:R,sessionId:A,optOut:P,lastEventId:L,lastEventTime:U,userId:D,cookieStorage:I}))];case 9:return B=Y.sent(),[4,e.prototype._init.call(this,B)];case 10:return Y.sent(),F=!this.config.lastEventTime,(!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId(Date.now()),F=!0),(q=ie()).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),[4,this.add(new M).promise];case 11:return Y.sent(),[4,this.add(new de).promise];case 12:return Y.sent(),[4,this.add(tt()).promise];case 13:return Y.sent(),[4,this.add(new oe).promise];case 14:return Y.sent(),("boolean"===typeof($=this.config.defaultTracking)?$:null===$||void 0===$?void 0:$.fileDownloads)?[4,this.add({name:"@amplitude/plugin-file-download-tracking-browser",type:h.ENRICHMENT,setup:function(e,t){return a(void 0,void 0,void 0,(function(){var n,r;return u(this,(function(i){return t?(n=function(e){var n;try{n=new URL(e.href,window.location.href)}catch(i){return}var o=r.exec(n.href),s=null===o||void 0===o?void 0:o[1];s&&e.addEventListener("click",(function(){var r;s&&t.track(ze,((r={})[We]=s,r[$e]=n.pathname,r[Ge]=e.id,r[Ke]=e.text,r[Je]=e.href,r))}))},r=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,Array.from(document.getElementsByTagName("a")).forEac
1h(n),"undefined"!==typeof MutationObserver&&new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"A"===e.nodeName&&n(e),"querySelectorAll"in e&&"function"===typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(n)}))}))})).observe(document.body,{subtree:!0,childList:!0}),[2]):(e.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked."),[2])}))}))},execute:function(e){return a(void 0,void 0,void 0,(function(){return u(this,(function(t){return[2,e]}))}))}}).promise]:[3,16];case 15:Y.sent(),Y.label=16;case 16:return function(e){return"boolean"===typeof e?e:!!(null===e||void 0===e?void 0:e.formInteractions)}(this.config.defaultTracking)?[4,this.add({name:"@amplitude/plugin-form-interaction-tracking-browser",type:h.ENRICHMENT,setup:function(e,t){return a(void 0,void 0,void 0,(function(){var n;return u(this,(function(r){return t?(n=function(e){var n=!1;e.addEventListener("change",(function(){var r;n||t.track(Ve,((r={})[Qe]=e.id,r[Xe]=e.name,r[et]=e.action,r)),n=!0}),{}),e.addEventListener("submit",(function(){var r,i;n||t.track(Ve,((r={})[Qe]=e.id,r[Xe]=e.name,r[et]=e.action,r)),t.track(He,((i={})[Qe]=e.id,i[Xe]=e.name,i[et]=e.action,i)),n=!1}))},Array.from(document.getElementsByTagName("form")).forEach(n),"undefined"!==typeof MutationObserver&&new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&n(e),"querySelectorAll"in e&&"function"===typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(n)}))}))})).observe(document.body,{subtree:!0,childList:!0}),[2]):(e.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked."),[2])}))}))},execute:function(e){return a(void 0,void 0,void 0,(function(){return u(this,(function(t){return[2,e]}))}))}}).promise]:[3,18];case 17:Y.sent(),Y.label=18;case 18:return(null===(w=this.config.attribution)||void 0===w?void 0:w.disabled)?[3,20]:((V=function(){for(var e,t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s={},c=l(r,2),d=c[0],f=c[1];d&&"init"in d?(t=d,f&&(s=f)):d&&(s=d);var p=null!==(e=s.excludeReferrers)&&void 0!==e?e:[];return"undefined"!==typeof location&&p.unshift(location.hostname),s=o(o({disabled:!1,initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1},s),{excludeReferrers:p}),{name:"web-attribution",type:h.BEFORE,setup:function(e,n){var r;return a(this,void 0,void 0,(function(){var i,o,a,c,f,h,p,v;return u(this,(function(u){switch(u.label){case 0:return(t=null!==t&&void 0!==t?t:n)?s.disabled?(e.loggerProvider.log("@amplitude/plugin-web-attribution-browser is disabled. Attribution is not tracked."),[2]):(e.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser."),n||(null===(r=e.attribution)||void 0===r?void 0:r.disabled)||(e.loggerProvider.warn("@amplitude/plugin-web-attribution-browser overrides web attribution behavior defined in @amplitude/analytics-browser. Resolve by disabling web attribution tracking in @amplitude/analytics-browser."),e.attribution={disabled:!0}),o=e.cookieStorage,a=Ne(e.apiKey,"MKTG"),[4,Promise.all([(new je).parse(),o.get(a)])]):(i=d?"Options":"undefined",e.loggerProvider.error("Argument of type '".concat(i,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:return c=l.apply(void 0,[u.sent(),2]),f=c[0],h=c[1],(null!==(p=this.__pluginEnabledOverride)&&void 0!==p?p:Ae(f,h,s))&&(s.resetSessionOnNewCampaign&&(t.setSessionId(Date.now()),e.loggerProvider.log("Created a new session for new campaign.")),e.loggerProvider.log("Tracking attribution."),v=Pe(f,s),t.track(v),o.set(a,f)),[2]}}))}))},execute:function(e){return a(n,void 0,void 0,(function(){return u(this,(function(t){return[2,e]}))}))},__pluginEnabledOverride:void 0}}({excludeReferrers:null===(x=this.config.attribution)||void 0===x?void 0:x.excludeReferrers,initialEmptyValue:null===(E=this.config.attribution)||void 0===E?void 0:E.initialEmptyValue,resetSessionOnNewCampaign:null===(_=this.config.attribution)||void 0===_?void 0:_.resetSessionOnNewCampaign})).__pluginEnabledOverride=!(!F&&!(null===(C=this.config.attribution)||void 0===C?void 0:C.trackNewCampaigns))&&void 0,[4,this.add(V).promise]);case 19:Y.sent(),Y.label=20;case 20:return(H=function(e){var t,n,r=(null===(t=e.attribution)||void 0===t?void 0:t.trackPageViews)?"attribution":function(){return!1},i=void 0,o="Page View";return("boolean"===typeof(n=e.defaultTracking)?n:!!(!0===(null===n||void 0===n?void 0:n.pageViews)||(null===n||void 0===n?void 0:n.pageViews)&&"object"===typeof n.pageViews))&&(r=void 0,o=void 0,e.defaultTracking&&"object"===typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"===typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(i=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(o=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:i,eventType:o}}(this.config)).eventType=H.eventType||qe,[4,this.add(Me(H)).promise];case 21:return Y.sent(),[4,this.add({name:"@amplitude/plugin-default-page-view-event-enrichment-browser",type:h.ENRICHMENT,setup:function(){return a(void 0,void 0,void 0,(function(){return u(this,(function(e){return[2,void 0]}))}))},execute:function(e){return a(void 0,void 0,void 0,(function(){return u(this,(function(t){return e.event_type===qe&&e.event_properties&&(e.event_properties=Object.entries(e.event_properties).reduce((function(e,t){var n=l(t,2),r=n[0],i=n[1],o=nt[r];return o?e[o]=i:e[r]=i,e}),{})),[2,e]}))}))}}).promise];case 22:return Y.sent(),this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return Y.sent(),q.eventBridge.setEventReceiver((function(e){z.track(e.eventType,e.eventProperties)})),[2]}var $,G}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?e===this.config.userId&&void 0!==e||(this.config.userId=e,this.setSessionId(Date.now()),function(e){ie().identityStore.editIdentity().setUserId(e).commit()}(e)):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.deviceId=e,function(e){ie().identityStore.editIdentity().setDeviceId(e).commit()}(e)):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(U()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){if(this.config){var t,n=this.getSessionId(),r=this.config.lastEventTime;if(this.config.sessionId=e,this.config.lastEventTime=void 0,"boolean"===typeof(t=this.config.defaultTracking)?t:null===t||void 0===t?void 0:t.sessions){if(n&&r){var i={session_id:n,time:r+1};i.device_id=this.previousSessionDeviceId,i.user_id=this.previousSessionUserId,this.track(Ye,void 0,i)}this.track(Ze,void 0,{session_id:e,time:e-1}),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId}}else this.q.push(this.setSessionId.bind(this,e))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=ke(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,n){if(ae(t)){var r=t._q;t._q=[],t=se(new F,r)}
vendor: 6,182 bytes, line 1
1return(null===n||void 0===n?void 0:n.user_id)&&this.setUserId(n.user_id),(null===n||void 0===n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(ae(r)){var o=r._q;r._q=[],r=se(new F,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(ae(t)){var r=t._q;t._q=[],t=se(new q,r)}return e.prototype.revenue.call(this,t,n)},t}(z),it=function(){var e=new rt;return{init:b(e.init.bind(e),"init",g(e),y(e,["config"])),add:b(e.add.bind(e),"add",g(e),y(e,["config.apiKey","timeline.plugins"])),remove:b(e.remove.bind(e),"remove",g(e),y(e,["config.apiKey","timeline.plugins"])),track:b(e.track.bind(e),"track",g(e),y(e,["config.apiKey","timeline.queue.length"])),logEvent:b(e.logEvent.bind(e),"logEvent",g(e),y(e,["config.apiKey","timeline.queue.length"])),identify:b(e.identify.bind(e),"identify",g(e),y(e,["config.apiKey","timeline.queue.length"])),groupIdentify:b(e.groupIdentify.bind(e),"groupIdentify",g(e),y(e,["config.apiKey","timeline.queue.length"])),setGroup:b(e.setGroup.bind(e),"setGroup",g(e),y(e,["config.apiKey","timeline.queue.length"])),revenue:b(e.revenue.bind(e),"revenue",g(e),y(e,["config.apiKey","timeline.queue.length"])),flush:b(e.flush.bind(e),"flush",g(e),y(e,["config.apiKey","timeline.queue.length"])),getUserId:b(e.getUserId.bind(e),"getUserId",g(e),y(e,["config","config.userId"])),setUserId:b(e.setUserId.bind(e),"setUserId",g(e),y(e,["config","config.userId"])),getDeviceId:b(e.getDeviceId.bind(e),"getDeviceId",g(e),y(e,["config","config.deviceId"])),setDeviceId:b(e.setDeviceId.bind(e),"setDeviceId",g(e),y(e,["config","config.deviceId"])),reset:b(e.reset.bind(e),"reset",g(e),y(e,["config","config.userId","config.deviceId"])),getSessionId:b(e.getSessionId.bind(e),"getSessionId",g(e),y(e,["config"])),setSessionId:b(e.setSessionId.bind(e),"setSessionId",g(e),y(e,["config"])),setOptOut:b(e.setOptOut.bind(e),"setOptOut",g(e),y(e,["config"])),setTransport:b(e.setTransport.bind(e),"setTransport",g(e),y(e,["config"]))}}(),ot=(it.add,it.flush,it.getDeviceId,it.getSessionId,it.getUserId,it.groupIdentify,it.identify,it.init),st=(it.logEvent,it.remove,it.reset,it.revenue,it.setDeviceId,it.setGroup,it.setOptOut,it.setSessionId,it.setTransport,it.setUserId),at=it.track},9293:function(e,t,n){var r;!function(i,o){"use strict";var s="function",a="undefined",u="object",c="string",l="model",d="name",f="type",h="vendor",p="version",v="architecture",g="console",m="mobile",y="tablet",b="smarttv",w="wearable",x="embedded",E="Amazon",_="Apple",C="ASUS",k="BlackBerry",S="Firefox",O="Google",T="Huawei",I="LG",j="Microsoft",N="Motorola",R="Opera",A="Samsung",P="Sharp",L="Sony",M="Xiaomi",U="Zebra",D="Facebook",B=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},F=function(e,t){return typeof e===c&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},H=function(e,t){for(var n,r,i,a,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(a=h[i])===u&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,l):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=l?l.replace(a[1],a[2]):o:this[a[0]]=l?a[1].call(this,l,a[2]):o:4===a.length&&(this[a[0]]=l?a[3].call(this,l.replace(a[1],a[2])):o):this[a]=l||o;d+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(F(t[n][r],e))return"?"===n?o:n}else if(F(t[n],e))return"?"===n?o:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[d,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,D],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[t
vendor: 4,849 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,q]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[h,A],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[h,A],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[l,[h,_],[f,m]],[/(ipad\d+,\d+)/i],[l,[h,_],[f,y]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[h,_],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,_],[f,y]],[/(macintosh);/i],[l,[h,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[h,T],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[h,T],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[h,M],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[h,M],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[h,N],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[h,N],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[h,I],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[h,I],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[h,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[l,[h,O],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[h,O],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,L],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[h,L],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[h,E],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[h,E],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,h,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[h,k],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[h,C],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[h,C],[f,m]],[/(nexus 9)/i],[l,[h,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[l,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[h,P],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,l,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,l,[f,y]],[/(surface duo)/i],[l,[h,j],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[l,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[l,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[l,[h,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[h,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[h,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[h,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[l,[h,"NuVision"],[f,y]],[/\b(k88) b/i],[l,[h,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[l,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[l,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[l,[h,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[l,[h,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],l,[f,y]],[/\b(ns-?\w{0,9}) b/i],[l,[h,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[h,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],l,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],l,[f,m]],[/\b(ph-1) /i],[l,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[h,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[l,[h,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[l,[h,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[l,[h,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[h,l,[f,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,j],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,U],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,U],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,l,[f,g]],[/droid.+; (shield) bui/i],[l,[h,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[l,[h,L],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[h,j],[f,g]],[/smart-tv.+(samsung)/i],[h,[f,b]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,A],[f,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,I],[f,b]],[/(apple) ?tv/i],[h,[l,"Apple TV"],[f,b]],[/crkey/i],[[l,"Chromecast"],[h,O],[f,b]],[/droid.+aft(\w)( bui|\))/i],[l,[h,E],[f,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[h,P],[f,b]],[/(bravia[\w ]+)( bui|\))/i],[l,[h,L],[f,b]],[/(mitv-\w{5}) bui/i],[l,[h,M],[f,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,V],[l,V],[f,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,b]],[/((pebble))app/i],[h,l,[f,w]],[/droid.+; (glass) \d/i],[l,[h,O],[f,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[h,U],[f,w]],[/(quest( 2)?)/i],[l,[h,D],[f,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,z,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,z,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},W=function(e,t){if(typeof e===u&&(t=e,e=o),!(this instanceof W))return new W(e,t).getResult();var n=e||(typeof i!==a&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y;return this.getBrowser=function(){var e,t={};return t.name=o,t.version=o,H.call(t,n,r.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e.architecture=o,H.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e.vendor=o,e.model=o,e.type=o,H.call(e,n,r.device),e},this.getEngine=function(){var e={};return e.name=o,e.version=o,H.call(e,n,r.engine),e},this.getOS=function(){var e={};return e.name=o,e.version=o,H.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>350?V(e,350):e,this},this.setUA(n),this};W.VERSION="0.7.33",W.BROWSER=B([d,p,"major"]),W.CPU=B([v]),W.DEVICE=B([l,h,f,g,m,b,y,w,x]),W.ENGINE=W.OS=B([d,p]),typeof t!==a?(e.exports&&(t=e.exports=W),t.UAParser=W):n.amdO?(r=function(){return W}.call(t,n,t,e))===o||(e.exports=r):typeof i!==a&&(i.UAParser=W);var $=typeof i!==a&&(i.jQuery||i.Zepto);if($&&!$.ua){var G=new W;$.ua=G.getResult(),$.ua.get=function(){return G.getUA()},$.ua.set=function(e){G.setUA(e);var t=G.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"===typeof window?window:this)},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)}},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},2137:function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}n.d(t,{Z:function(){return i}})},6156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},4699:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2961);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},7329:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(676);var i=n(2961);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2961:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(676);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},6860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},8206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},319:function(e,t,n){var r=n(3646),i=n(6860),o=n(379),s=n(8206);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},4984:function(e,t,n){"use strict";n.d(t,{d:function(){return f},f:function(){return d}});var r=n(7294),i=n(7797),o=n(7255),s=n(627),a=n(2877),u=n(9960);let c=(0,r.createContext)(null);function l(){let e=(0,r.useContext)(c);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,l),e}return e}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,u.z)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),i=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(c.Provider,{value:i},e.children)}),[t])]}let f=(0,o.yV)((function(e,t){let n=l(),r=`headlessui-description-${(0,i.M)()}`,u=(0,a.T)(t);(0,s.e)((()=>n.register(r)),[r,n.register]);let c=e,d={ref:u,...n.props,id:r};return(0,o.sY)({ourProps:d,theirProps:c,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}))},9864:function(e,t,n){"use strict";n.d(t,{V:function(){return ie}});var r=n(7294),i=n(9678),o=n(7255),s=n(2877),a=n(9564),u=n(542),c=n(7797),l=n(191),d=n(2078),f=n(9077),h=n(9960),p=n(2014),v=n(9715),g=n(2362),m=n(3577),y=n(8804);function b(e,t){let n=(0,r.useRef)([]),i=(0,h.z)(e);(0,r.useEffect)((()=>{for(let[e,r]of t.entries())if(n.current[e]!==r){let e=i(t);return n.current=t,e}}),[i,...t])}var w,x=((w=x||{})[w.None=1]="None",w[w.InitialFocus=2]="InitialFocus",w[w.TabLock=4]="TabLock",w[w.FocusLock=8]="FocusLock",w[w.RestoreFocus=16]="RestoreFocus",w[w.All=30]="All",w);let E=Object.assign((0,o.yV)((function(e,t){let n=(0,r.useRef)(null),a=(0,s.T)(n,t),{initialFocus:u,containers:c,features:w=30,...x}=e;(0,l.H)()||(w=1);let E=(0,g.i)(n);!function({ownerDocument:e},t){let n=(0,r.useRef)(null);(0,m.O)(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),b((()=>{t||((0,f.C5)(n.current),n.current=null)}),[t]);let i=(0,r.useRef)(!1);(0,r.useEffect)((()=>(i.current=!1,()=>{i.current=!0,(0,y.Y)((()=>{!i.current||((0,f.C5)(n.current),n.current=null)}))})),[])}({ownerDocument:E},Boolean(16&w));let _=function({ownerDocument:e,container:t,initialFocus:n},i){let o=(0,r.useRef)(null);return b((()=>{if(!i)return;let r=t.current;if(!r)return;let s=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===s)return void(o.current=s)}else if(r.contains(s))return void(o.current=s);null!=n&&n.current?(0,f.C5)(n.current):(0,f.jA)(r,f.TO.First)===f.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}),[i]),o}({ownerDocument:E,container:n,initialFocus:u}
1,Boolean(2&w));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let o=(0,v.t)();(0,m.O)(null==e?void 0:e.defaultView,"focus",(e=>{if(!i||!o.current)return;let s=new Set(null==n?void 0:n.current);s.add(t);let a=r.current;if(!a)return;let u=e.target;u&&u instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(s,u)?(r.current=u,(0,f.C5)(u)):(e.preventDefault(),e.stopPropagation(),(0,f.C5)(a)):(0,f.C5)(r.current)}),!0)}({ownerDocument:E,container:n,containers:c,previousActiveElement:_},Boolean(8&w));let C=(0,p.l)(),k=(0,h.z)((()=>{let e=n.current;!e||(0,i.E)(C.current,{[p.N.Forwards]:()=>(0,f.jA)(e,f.TO.First),[p.N.Backwards]:()=>(0,f.jA)(e,f.TO.Last)})})),S={ref:a};return r.createElement(r.Fragment,null,Boolean(4&w)&&r.createElement(d._,{as:"button",type:"button",onFocus:k,features:d.A.Focusable}),(0,o.sY)({ourProps:S,theirProps:x,defaultTag:"div",name:"FocusTrap"}),Boolean(4&w)&&r.createElement(d._,{as:"button",type:"button",onFocus:k,features:d.A.Focusable}))})),{features:x});var _=n(8154),C=n(627);let k=new Set,S=new Map;function O(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function T(e){let t=S.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function I(e,t=!0){(0,C.e)((()=>{if(!t||!e.current)return;let n=e.current,r=(0,_.r)(n);if(r){k.add(n);for(let e of S.keys())e.contains(n)&&(T(e),S.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of k)if(e.contains(t))return;1===k.size&&(S.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),O(e))}})),()=>{if(k.delete(n),k.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!S.has(e)){for(let t of k)if(e.contains(t))return;S.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),O(e)}}));else for(let e of S.keys())T(e),S.delete(e)}}}),[t])}var j=n(3935);let N=(0,r.createContext)(!1);function R(){return(0,r.useContext)(N)}function A(e){return r.createElement(N.Provider,{value:e.force},e.children)}let P=r.Fragment,L=(0,o.yV)((function(e,t){let n=e,i=(0,r.useRef)(null),a=(0,s.T)((0,s.h)((e=>{i.current=e})),t),u=(0,g.i)(i),c=function(e){let t=R(),n=(0,r.useContext)(U),i=(0,g.i)(e),[o,s]=(0,r.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let r=i.createElement("div");return r.setAttribute("id","headlessui-portal-root"),i.body.appendChild(r)}));return(0,r.useEffect)((()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))}),[o,i]),(0,r.useEffect)((()=>{t||null!==n&&s(n.current)}),[n,s,t]),o}(i),[d]=(0,r.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==u?void 0:u.createElement("div"))?e:null})),f=(0,l.H)(),h=(0,r.useRef)(!1);return(0,C.e)((()=>{if(h.current=!1,c&&d)return c.contains(d)||c.appendChild(d),()=>{h.current=!0,(0,y.Y)((()=>{var e;!h.current||!c||!d||(c.removeChild(d),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}))}}),[c,d]),f&&c&&d?(0,j.createPortal)((0,o.sY)({ourProps:{ref:a},theirProps:n,defaultTag:P,name:"Portal"}),d):null})),M=r.Fragment,U=(0,r.createContext)(null),D=(0,o.yV)((function(e,t){let{target:n,...i}=e,a={ref:(0,s.T)(t)};return r.createElement(U.Provider,{value:n},(0,o.sY)({ourProps:a,theirProps:i,defaultTag:M,name:"Popover.Group"}))})),B=Object.assign(L,{Group:D});var F=n(4984),q=n(7994);let V=(0,r.createContext)((()=>{}));V.displayName="StackContext";var H=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(H||{});function z({children:e,onUpdate:t,type:n,element:i}){let o=(0,r.useContext)(V),s=(0,h.z)(((...e)=>{null==t||t(...e),o(...e)}));return(0,C.e)((()=>(s(0,n,i),()=>s(1,n,i))),[s,n,i]),r.createElement(V.Provider,{value:s},e)}var Z=n(4585),Y=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Y||{}),W=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(W||{});let $={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},G=(0,r.createContext)(null);function K(e){let t=(0,r.useContext)(G);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}function J(e,t){return(0,i.E)(t.type,$,e,t)}G.displayName="DialogContext";let Q=o.AN.RenderStrategy|o.AN.Static,X=(0,o.yV)((function(e,t){let{open:n,onClose:u,initialFocus:f,__demoMode:p=!1,...v}=e,[y,b]=(0,r.useState)(0),w=(0,q.oJ)();void 0===n&&null!==w&&(n=(0,i.E)(w,{[q.ZM.Open]:!0,[q.ZM.Closed]:!1}));let x=(0,r.useRef)(new Set),C=(0,r.useRef)(null),k=(0,s.T)(C,t),S=(0,r.useRef)(null),O=(0,g.i)(C),T=e.hasOwnProperty("open")||null!==w,j=e.hasOwnProperty("onClose");if(!T&&!j)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!T)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!j)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof u)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${u}`);let N=n?0:1,[R,P]=(0,r.useReducer)(J,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),L=(0,h.z)((()=>u(!1))),M=(0,h.z)((e=>P({type:0,id:e}))),U=!!(0,l.H)()&&(!p&&0===N),D=y>1,V=null!==(0,r.useContext)(G),Y=D?"parent":"leaf";I(C,!!D&&U),(0,Z.O)((()=>{var e,t;return[...Array.from(null!=(e=null==O?void 0:O.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(S.current)||R.panelRef.current&&e.contains(R.panelRef.current)))),null!=(t=R.panelRef.current)?t:C.current]}),(()=>{0===N&&(D||L())}),Z.A.IgnoreScrollbars),(0,m.O)(null==O?void 0:O.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===a.R.Escape&&0===N&&(D||(e.preventDefault(),e.stopPropagation(),L()))})),(0,r.useEffect)((()=>{var e;if(0!==N||V)return;let t=(0,_.r)(C);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,i=n.style.overflow,o=n.style.paddingRight,s=r.innerWidth-n.clientWidth;if(n.style.overflow="hidden",s>0){let e=s-(n.clientWidth-n.offsetWidth);n.style.paddingRight=`${e}px`}return()=>{n.style.overflow=i,n.style.paddingRight=o}}),[N,V]),(0,r.useEffect)((()=>
1{if(0!==N||!C.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&L()}));return e.observe(C.current),()=>e.disconnect()}),[N,C,L]);let[W,$]=(0,F.f)(),K=`headlessui-dialog-${(0,c.M)()}`,X=(0,r.useMemo)((()=>[{dialogState:N,close:L,setTitleId:M},R]),[N,R,L,M]),ee=(0,r.useMemo)((()=>({open:0===N})),[N]),te={ref:k,id:K,role:"dialog","aria-modal":0===N||void 0,"aria-labelledby":R.titleId,"aria-describedby":W,onClick(e){e.stopPropagation()}};return r.createElement(z,{type:"Dialog",element:C,onUpdate:(0,h.z)(((e,t,n)=>{"Dialog"===t&&(0,i.E)(e,{[H.Add](){x.current.add(n),b((e=>e+1))},[H.Remove](){x.current.add(n),b((e=>e-1))}})}))},r.createElement(A,{force:!0},r.createElement(B,null,r.createElement(G.Provider,{value:X},r.createElement(B.Group,{target:C},r.createElement(A,{force:!1},r.createElement($,{slot:ee,name:"Dialog.Description"},r.createElement(E,{initialFocus:f,containers:x,features:U?(0,i.E)(Y,{parent:E.features.RestoreFocus,leaf:E.features.All&~E.features.FocusLock}):E.features.None},(0,o.sY)({ourProps:te,theirProps:v,slot:ee,defaultTag:"div",features:Q,visible:0===N,name:"Dialog"})))))))),r.createElement(d._,{features:d.A.Hidden,ref:S}))})),ee=(0,o.yV)((function(e,t){let[{dialogState:n,close:i}]=K("Dialog.Overlay"),a=(0,s.T)(t),l=`headlessui-dialog-overlay-${(0,c.M)()}`,d=(0,h.z)((e=>{if(e.target===e.currentTarget){if((0,u.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}})),f=(0,r.useMemo)((()=>({open:0===n})),[n]);return(0,o.sY)({ourProps:{ref:a,id:l,"aria-hidden":!0,onClick:d},theirProps:e,slot:f,defaultTag:"div",name:"Dialog.Overlay"})})),te=(0,o.yV)((function(e,t){let[{dialogState:n},i]=K("Dialog.Backdrop"),a=(0,s.T)(t),u=`headlessui-dialog-backdrop-${(0,c.M)()}`;(0,r.useEffect)((()=>{if(null===i.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[i.panelRef]);let l=(0,r.useMemo)((()=>({open:0===n})),[n]);return r.createElement(A,{force:!0},r.createElement(B,null,(0,o.sY)({ourProps:{ref:a,id:u,"aria-hidden":!0},theirProps:e,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),ne=(0,o.yV)((function(e,t){let[{dialogState:n},i]=K("Dialog.Panel"),a=(0,s.T)(t,i.panelRef),u=`headlessui-dialog-panel-${(0,c.M)()}`,l=(0,r.useMemo)((()=>({open:0===n})),[n]);return(0,o.sY)({ourProps:{ref:a,id:u},theirProps:e,slot:l,defaultTag:"div",name:"Dialog.Panel"})})),re=(0,o.yV)((function(e,t){let[{dialogState:n,setTitleId:i}]=K("Dialog.Title"),a=`headlessui-dialog-title-${(0,c.M)()}`,u=(0,s.T)(t);(0,r.useEffect)((()=>(i(a),()=>i(null))),[a,i]);let l=(0,r.useMemo)((()=>({open:0===n})),[n]);return(0,o.sY)({ourProps:{ref:u,id:a},theirProps:e,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),ie=Object.assign(X,{Backdrop:te,Panel:ne,Overlay:ee,Title:re,Description:F.d})},9564:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r,i=((r=i||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},3393:function(e,t,n){"use strict";n.d(t,{u:function(){return U}});var r=n(7294),i=n(7255),o=n(7994),s=n(9678),a=n(8804),u=n(7797),c=n(9715),l=n(627),d=n(1404),f=n(191),h=n(2877);var p=n(1336);function v(e,...t){e&&t.length>0&&e.classList.add(...t)}function g(e,...t){e&&t.length>0&&e.classList.remove(...t)}var m,y=((m=y||{}).Ended="ended",m.Cancelled="cancelled",m);function b(e,t,n,r){let i=n?"enter":"leave",o=(0,p.k)(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},u=(0,s.E)(i,{enter:()=>t.enter,leave:()=>t.leave}),c=(0,s.E)(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=(0,s.E)(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return g(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),v(e,...u,...l),o.nextFrame((()=>{g(e,...l),v(e,...c),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,s]=[r,i].map((e=>
1{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(o+s!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(g(e,...u),v(e,...t.entered)),a(n))))})),o.dispose}var w=n(4851),x=n(9960);function E({container:e,direction:t,classes:n,events:r,onStart:i,onStop:o}){let a=(0,c.t)(),u=(0,w.G)(),f=(0,d.E)(t),h=(0,x.z)((()=>(0,s.E)(f.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),v=(0,x.z)((()=>(0,s.E)(f.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));(0,l.e)((()=>{let t=(0,p.k)();u.add(t.dispose);let r=e.current;if(r&&"idle"!==f.current&&a.current)return t.add((()=>{if(!r)return;let e=r.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&o.current(f.current)})),t.dispose(),h(),i.current(f.current),t.add(b(r,n.current,"enter"===f.current,(e=>{t.dispose(),(0,s.E)(e,{[y.Ended](){v(),o.current(f.current)},[y.Cancelled]:()=>{}})}
1))),t.dispose}),[t])}function _(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let C=(0,r.createContext)(null);C.displayName="TransitionContext";var k,S=((k=S||{}).Visible="visible",k.Hidden="hidden",k);let O=(0,r.createContext)(null);function T(e){return"children"in e?T(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function I(e){let t=(0,d.E)(e),n=(0,r.useRef)([]),o=(0,c.t)(),u=(0,x.z)(((e,r=i.l4.Hidden)=>{let u=n.current.findIndex((({id:t})=>t===e));-1!==u&&((0,s.E)(r,{[i.l4.Unmount](){n.current.splice(u,1)},[i.l4.Hidden](){n.current[u].state="hidden"}}),(0,a.Y)((()=>{var e;!T(n)&&o.current&&(null==(e=t.current)||e.call(t))})))})),l=(0,x.z)((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>u(e,i.l4.Unmount)}));return(0,r.useMemo)((()=>({children:n,register:l,unregister:u})),[l,u,n])}function j(){}O.displayName="NestingContext";let N=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function R(e){var t;let n={};for(let r of N)n[r]=null!=(t=e[r])?t:j;return n}let A=i.AN.RenderStrategy,P=(0,i.yV)((function(e,t){let{beforeEnter:n,after
1Enter:a,beforeLeave:c,afterLeave:l,enter:p,enterFrom:v,enterTo:g,entered:m,leave:y,leaveFrom:b,leaveTo:w,...x}=e,k=(0,r.useRef)(null),S=(0,h.T)(k,t),[j,N]=(0,r.useState)("visible"),P=x.unmount?i.l4.Unmount:i.l4.Hidden,{show:L,appear:M,initial:U}=function(){let e=(0,r.useContext)(C);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:D,unregister:B}=function(){let e=(0,r.useContext)(O);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),F=(0,r.useRef)(null),q=(0,u.M)();(0,r.useEffect)((()=>{if(q)return D(q)}),[D,q]),(0,r.useEffect)((()=>{if(P===i.l4.Hidden&&q){if(L&&"visible"!==j)return void N("visible");(0,s.E)(j,{hidden:()=>B(q),visible:()=>D(q)})}}),[j,q,D,B,L,P]);let V=(0,d.E)({enter:_(p),enterFrom:_(v),enterTo:_(g),entered:_(m),leave:_(y),leaveFrom:_(b),leaveTo:_(w)}),H=function(e){let t=(0,r.useRef)(R(e));return(0,r.useEffect)((()=>{t.current=R(e)}),[e]),t}
1({beforeEnter:n,afterEnter:a,beforeLeave:c,afterLeave:l}),z=(0,f.H)();(0,r.useEffect)((()=>{if(z&&"visible"===j&&null===k.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[k,j,z]);let Z=U&&!M,Y=!z||Z||F.current===L?"idle":L?"enter":"leave",W=(0,r.useRef)(!1),$=I((()=>{W.current||(N("hidden"),B(q))}));E({container:k,classes:V,events:H,direction:Y,onStart:(0,d.E)((()=>{W.current=!0})),onStop:(0,d.E)((e=>{W.current=!1,"leave"===e&&!T($)&&(N("hidden"),B(q))}))}),(0,r.useEffect)((()=>{!Z||(P===i.l4.Hidden?F.current=null:F.current=L)}),[L,Z,j]);let G=x,K={ref:S};return r.createElement(O.Provider,{value:$},r.createElement(o.up,{value:(0,s.E)(j,{visible:o.ZM.Open,hidden:o.ZM.Closed})},(0,i.sY)({ourProps:K,theirProps:G,defaultTag:"div",features:A,visible:"visible"===j,name:"Transition.Child"})))})),L=(0,i.yV)((function(e,t){let{show:n,appear:a=!1,unmount:u,...c}=e,d=(0,h.T)(t);(0,f.H)();let p=(0,o.oJ)();if(void 0===n&&null!==p&&(n=(0,s.E)(p,{[o.ZM.Open]:!0,[o.ZM.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,g]=(0,r.useState)(n?"visible":"hidden"),m=I((()=>{g("hidden")})),[y,b]=(0,r.useState)(!0),w=(0,r.useRef)([n]);(0,l.e)((()=>{!1!==y&&w.current[w.current.length-1]!==n&&(w.current.push(n),b(!1))}),[w,n]);let x=(0,r.useMemo)((()=>({show:n,appear:a,initial:y})),[n,a,y]);(0,r.useEffect)((()=>{n?g("visible"):T(m)||g("hidden")}),[n,m]);let E={unmount:u};return r.createElement(O.Provider,{value:m},r.createElement(C.Provider,{value:x},(0,i.sY)({ourProps:{...E,as:r.Fragment,children:r.createElement(P,{ref:d,...E,...c})},theirProps:{},defaultTag:r.Fragment,features:A,visible:"visible"===v,name:"Transition"})))})),M=(0,i.yV)((function(e,t){let n=null!==(0,r.useContext)(C),i=null!==(0,o.oJ)();return r.createElement(r.Fragment,null,!n&&i?r.createElement(L,{ref:t,...e}):r.createElement(P,{ref:t,...e}))})),U=Object.assign(L,{Child:M,Root:L})},4851:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(7294),i=n(1336);function o(){let[e]=(0,r.useState)(i.k);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}},3577:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(7294),i=n(1404);function o(e,t,n,o){let s=(0,i.E)(n);(0,r.useEffect)((()=>{function n(e){s.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}),[e,t,o])}},9960:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(7294),i=n(1404);let o=function(e){let t=(0,i.E)(e);return r.useCallback(((...e)=>t.current(...e)),[t])}},7797:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r,i=n(7294),o=n(627),s=n(191);let a=0;function u(){return++a}let c=null!=(r=i.useId)?r:function(){let e=(0,s.H)(),[t,n]=i.useState(e?u:null);return(0,o.e)((()=>{null===t&&n(u())}),[t]),null!=t?""+t:void 0}},9715:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(7294),i=n(627);function o(){let e=(0,r.useRef)(!1);return(0,i.e)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},627:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(7294);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},1404:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(7294),i=n(627);function o(e){let t=(0,r.useRef)(e);return(0,i.e)((()=>{t.current=e}),[e]),t}},4585:function(e,t,n){"use strict";n.d(t,{A:function(){return u},O:function(){return c}});var r,i=n(7294),o=n(8804),s=n(9960),a=n(8813),u=((r=u||{})[r.None=1]="None",r[r.IgnoreScrollbars=2]="IgnoreScrollbars",r);function c(e,t,n=1){let r=(0,i.useRef)(!1),u=(0,s.z)((i=>{if(r.current)return;r.current=!0,(0,o.Y)((()=>{r.current=!1}));let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=i.target;if(a.ownerDocument.documentElement.contains(a)){if(2===(2&n)){let e=20,t=a.ownerDocument.documentElement;if(i.clientX>t.clientWidth-e||i.clientX<e||i.clientY>t.clientHeight-e||i.clientY<e)return}for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return t(i,a)}}));(0,a.s)("pointerdown",u),(0,a.s)("mousedown",u)}},2362:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(7294),i=n(8154);function o(...e){return(0,r.useMemo)((()=>(0,i.r)(...e)),[...e])}},191:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(7294);let i={serverHandoffComplete:!1};function o(){let[e,t]=(0,r.useState)(i.serverHandoffComplete);return(0,r.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,r.useEffect)((()=>{!1===i.serverHandoffComplete&&(i.serverHandoffComplete=!0)}),[]),e}},2877:function(e,t,n){"use strict";n.d(t,{h:function(){return s},T:function(){return a}});var r=n(7294),i=n(9960);let o=Symbol();function s(e,t=!0){return Object.assign(e,{[o]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=(0,i.z)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[o])))?void 0:n}},2014:function(e,t,n){"use strict";n.d(t,{N:function(){return s},l:function(){return a}});var r,i=n(7294),o=n(8813),s=((r=s||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function a(){let e=(0,i.useRef)(0);return(0,o.s)("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}},8813:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(7294),i=n(1404);function o(e,t,n){let o=(0,i.E)(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}},2078:function(e,t,n){"use strict";n.d(t,{A:function(){return o},_:function(){return s}});var r=n(7255);var i,o=((i=o||{})[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i);let s=(0,r.yV)((function(e,t){let{features:n=1,...i}=e,o={ref:t,"aria-hidden":2===(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&n)&&2!==(2&n)&&{display:"none"}}};return(0,r.sY)({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})}))},7994:function(e,t,n){"use strict";n.d(t,{up:function(){return u},ZM:function(){return s},oJ:function(){return a}});var r=n(7294);let i=(0,r.createContext)(null);i.displayName="OpenClosedContext";var o,s=((o=s||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o);function a(){return(0,r.useContext)(i)}function u({value:e,children:t}){return r.createElement(i.Provider,{value:e},t)}},542:function(e,t,n){"use strict";function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},1336:function(e,t,n){"use strict";function r(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add((()=>e.removeEventListener(t,r,i)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}n.d(t,{k:function(){return r}})},9077:function(e,t,n){"use strict";n.d(t,{TO:function(){return c},fE:function(){return l},tJ:function(){return h},C5:function(){return v},jA:function(){return y},GO:function(){return f},sP:function(){return p},z2:function(){return m}});var r=n(9678),i=n(8154);let o=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var s,a,u,c=((u=c||{})[u.First=1]="First",u[u.Previous=2]="Previous",u[u.Next=4]="Next",u[u.Last=8]="Last",u[u.WrapAround=16]="WrapAround",u[u.NoScroll=32]="NoScroll",u),l=((a=l||{})[a.Error=0]="Error",a[a.Overflow=1]="Overflow",a[a.Success=2]="Success",a[a.Underflow=3]="Underflow",a),d=((s=d||{})[s.Previous=-1]="Previous",s[s.Next=1]="Next",s);function f(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(
1o))}var h=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(h||{});function p(e,t=0){var n;return e!==(null==(n=(0,i.r)(e))?void 0:n.body)&&(0,r.E)(t,{0:()=>e.matches(o),1(){let t=e;for(;null!==t;){if(t.matches(o))return!0;t=t.parentElement}return!1}})}function v(e){null==e||e.focus({preventScroll:!0})}let g=["textarea","input"].join(",");function m(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function y(e,t,n=!0){let r,i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?m(e):e:f(e),s=i.activeElement,a=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(s))-1;if(4&t)return Math.max(0,o.indexOf(s))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},l=0,d=o.length;do{if(l>=d||l+d<=0)return 0;let e=u+l;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}r=o[e],null==r||r.focus(c),l+=a}while(r!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,g))&&n}(r)&&r.select(),r.hasAttribute("tabindex")||r.setAttribute("tabindex","0"),2}},9678:function(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}n.d(t,{E:function(){return r}})},8804:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}n.d(t,{Y:function(){return r}})},8154:function(e,t,n){"use strict";function r(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}n.d(t,{r:function(){return r}})},7255:function(e,t,n){"use strict";n.d(t,{AN:function(){return a},l4:function(){return u},oA:function(){return h},yV:function(){return f},sY:function(){return c}});var r,i,o=n(7294),s=n(9678),a=((i=a||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),u=((r=u||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function c({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a}){let u=d(t,e);if(o)return l(u,n,r,a);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return l(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=u;return(0,s.E)(e?0:1,{0:()=>null,1:()=>l({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return l(u,n,r,a)}function l(e,t={},n,r){let{as:i=n,children:s,refName:a="ref",...u}=p(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof s?s(t):s;u.className&&"function"==typeof u.className&&(u.className=u.className(t));let f={};if(i===o.Fragment&&Object.keys(h(u)).length>0){if(!(0,o.isValidElement)(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));return(0,o.cloneElement)(l,Object.assign({},d(l.props,h(p(u,["ref"]))),f,c))}return(0,o.createElement)(i,Object.assign({},p(u,["ref"]),i!==o.Fragment&&c,i!==o.Fragment&&f),l)}function d(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e){let t=n[r];for(let n of t){if(e.defaultPrevented)return;n(e)}}});return t}function f(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function p(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}},1225:function(e,t,n){"use strict";var r=n(7294);const i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));t.Z=i},9742:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=u(e),s=o[0],a=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),l=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(c(e,a,a+s>u?u:a+s));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:function(e,t,n){"use strict";var r=n(9742),i=n(645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|v(e,t),r=a(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=function(e){if(u.isBuffer(e)){var t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||H(e.length)?a(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),a(e<0?0:0|p(e))}function f(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function p(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function v(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;
vendor: 4,641 bytes, line 1
1o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var d=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(H(a))return s;e[n+s]=a}return s}function x(e,t,n,r){return q(B(t,e.length-n),e,n,r)}function E(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return E(e,t,n,r)}function C(e,t,n,r){return q(F(t),e,n,r)}function k(e,t,n,r){return q(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,c=e[i],l=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?a(e):void 0!==t?"string"===typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},u.allocUnsafe=function(e){return d(e)},u.allocUnsafeSlow=function(e){return d(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(V(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(V(o,Uint8Array)&&(o=u.from(o)),!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=v,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)}
vendor: 9,663 bytes, line 1
1,u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(V(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){o=c[d],s=l[d];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=z[e[o]];return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function A(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:u.from(e,r),a=s.length;
1if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var D=/[^+/0-9A-Za-z-_]/g;function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!==e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},645:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+h]=255&s,h+=p,s/=256,c-=8);e[n+h-p]|=128*v}},3398:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var i=((r=n(7294))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=i},6393:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=s,t.useAmp=function(){return s(i.default.useContext(o.AmpStateContext))};var r,i=(r=n(7294))&&r.__esModule?r:{default:r},o=n(3398);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,i=void 0!==r&&r,o=e.hasQuery,s=void 0!==o&&o;return n||i&&s}},2775:function(e,t,n){"use strict";var r=n(9713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=f,t.default=void 0;var o,s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(7294)),a=(o=n(3244))&&o.__esModule?o:{default:o},u=n(3398),c=n(1165),l=n(6393);function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[s.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(s.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function v(e,t){return e.reduce((function(e,t){var n=s.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(h,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(i){var o=!0,s=!1;if(i.key&&"number"!==typeof i.key&&i.key.indexOf("$")>0){s=!0;var a=i.key.slice(i.key.indexOf("$")+1);e.has(a)?o=!1:e.add(a)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(var u=0,c=p.length;u<c;u++){var l=p[u];if(i.props.hasOwnProperty(l))if("charSet"===l)n.has(l)?o=!1:n.add(l);else{var d=i.props[l],f=r[l]||new Set;"name"===l&&s||!f.has(d)?(f.add(d),r[l]=f):o=!1}}}return o}}()).reverse().map((function(e,n){var o=e.key||n;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props||{});return a["data-href"]=a.href,a.href=void 0,a["data-optimized-fonts"]=!0,s.default.cloneElement(e,a)}return s.default.cloneElement(e,{key:o})}))}var g=function(e){var t=e.children,n=(0,s.useContext)(u.AmpStateContext),r=(0,s.useContext)(c.HeadManagerContext);return s.default.createElement(a.default,{reduceComponentsToState:v,headManager:r,inAmpMode:(0,l.isInAmpMode)(n)},t)};t.default=g},3244:function(e,t,n){"use strict";var r=n(319),i=n(4575),o=n(3913),s=(n(1506),n(2205)),a=n(8585),u=n(9754);function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}t.__esModule=!0,t.default=void 0;var l=n(7294),d=function(e){s(n,e);var t=c(n);function n(e){var o;return i(this,n),(o=t.call(this,e))._hasHeadManager=void 0,o.emitChange=function(){o._hasHeadManager&&o.props.headManager.updateHead(o.props.reduceComponentsToState(r(o.props.headManager.mountedInstances),o.props))},o._hasHeadManager=o.props.headManager&&o.props.headManager.mountedInstances,o}return o(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),n}(l.Component);t.default=d},8094:function(e,t,n){"use strict";n.d(t,{T5:function(){return r},CE:function(){return i},hH:function(){return s},ic:function(){return a},H7:function(){return u},x_:function(){return c},Lt:function(){return l}});var r="https://api.indexapp.xyz",i="INDEX_USER_TOKEN_PRODUCTION",o="kmmkgcmpgmppmegdifdjmcfjjneklchg",s="https://chrome.google.com/webstore/detail/index-%20/".concat(o),a="chrome-extension://".concat(o,"/options/index.html"),u="https://apps.apple.com/gb/app/index/id1634212472",c="price_1OD371AJ8tdMO4D59xfmsYDs",l="price_1OD37qAJ8tdMO4D5I97ZepJu"},7014:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(5893),i=function(e){var t=e.width,n=void 0===t?"23":t,i=e.height,o=void 0===i?"23":i,s=e.fill,a=void 0===s?"#7252F1":s;return(0,r.jsxs)("svg",{width:n,height:o,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M6.20371 8.63143L5.87646 8.32248H2.8394C2.11429 8.32248 1.40244 8.58753 0.86428 9.0843C0.32307 9.58388 0 10.2818 0 11.0306C0 11.7794 0.32307 12.4772 0.86428 12.9768C1.40244 13.4736 2.11429 13.7386 2.8394 13.7386H8.6669V19.5661C8.6669 20.2913 8.93195 21.0031 9.42871 21.5413C9.9283 22.0825 10.6262 22.4055 11.375 22.4055C12.1238 22.4055 12.8217 22.0825 13.3212 21.5413C13.818 21.0031 14.0831 20.2913 14.0831 19.5661V13.7386H19.9105C20.6357 13.7386 21.3475 13.4736 21.8857 12.9768C22.4269 12.4772 22.7499 11.7794 22.7499 11.0306C22.7499 10.2818 22.4269 9.58388 21.8857 9.0843C21.3475 8.58753 20.6357 8.32248 19.9105 8.32248H16.8735L16.5462 8.63143C15.5109 9.60884 14.201 10.2947 12.7462 10.5619C12.3024 10.6434 11.8442 10.6862 11.375 10.6862C10.9058 10.6862 10.4476 10.6434 10.0037 10.5619C8.54897 10.2947 7.23902 9.60884 6.20371 8.63143Z",fill:a}),(0,r.jsx)("circle",{cx:"11.4875",cy:"3.03904",r:"3.03904",fill:a})]})}},5914:function(e,t,n){"use strict";n.d(t,{TR:function(){return i},EQ:function(){return o},YS:function(){return s}});var r=n(5893),i=function(e){var t=e.width,n=void 0===t?"90":t,i=e.height,o=void 0===i?"23":i;return(0,r.jsxs)("svg",{width:n,height:o,viewBox:"0 0 90 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M25.4041 7.89021C26.1226 7.6822 27.0492 7.49311 28.1838 7.32292C29.3183 7.13383 30.5096 7.03928 31.7577 7.03928C33.0246 7.03928 34.0741 7.20946 34.9061 7.54984C35.757 7.8713 36.4283 8.33458 36.92 8.93969C37.4116 9.5448 37.7615 10.2634 37.9695 11.0954C38.1775 11.9274 38.2815 12.854 38.2815 13.8751V22.2993H34.0552V14.3856C34.0552 13.0242 33.8755 12.0598 33.5163 11.4925C33.157 10.9252 32.4857 10.6416 31.5024 10.6416C31.1998 10.6416 30.8784 10.6605 30.538 10.6983C30.1976 10.7172 29.8951 10.7456 29.6303 10.7834V22.2993H25.4041V7.89021Z",fill:"black",fillOpacity:"0.9"}),(0,r.jsx)("path",{d:"M45.7092 14.726C45.7092 16.0308 46.0023 17.0803 46.5885 17.8745C47.1747 18.6687 48.0445 19.0658 49.198 19.0658C49.5762 19.0658 49.926 19.0563 50.2475 19.0374C50.5689 18.9996 50.8337 18.9618 51.0417 18.9239V11.2372C50.7769 11.067 50.4271 10.9252 49.9922 10.8117C49.5762 10.6983 49.1507 10.6416 48.7158 10.6416C46.7114 10.6416 45.7092 12.003 45.7092 14.726ZM55.268 21.8171C54.8898 21.9306 54.4548 22.044 53.9632 22.1575C53.4716 22.252 52.9515 22.3371 52.4032 22.4128C51.8737 22.4884 51.3253 22.5451 50.758 22.583C50.2097 22.6397 49.6802 22.668 49.1696 22.668C47.9405 22.668 46.8437 22.4884 45.8794 22.1291C44.915 21.7698 44.1019 21.2593 43.44 20.5974C42.7782 19.9167 42.2676 19.1036 41.9083 18.1581C41.568 17.1937 41.3978 16.1159 41.3978 14.9246C41.3978 13.7144 41.5491 12.6271 41.8516 11.6627C42.1542 10.6794 42.5891 9.84735 43.1564 9.16661C43.7237 8.48586 44.4139 7.96585 45.227 7.60657C46.059 7.24728 47.0045 7.06764 48.0634 7.06764C48.6496 7.06
1764 49.1696 7.12437 49.6235 7.23783C50.0962 7.35129 50.5689 7.51202 51.0417 7.72002V0.969303L55.268 0.288559V21.8171Z",fill:"black",fillOpacity:"0.9"}),(0,r.jsx)("path",{d:"M58.5161 14.9529C58.5161 13.6293 58.7147 12.4758 59.1118 11.4925C59.5278 10.4903 60.0667 9.65826 60.7285 8.99642C61.3904 8.33459 62.1468 7.83348 62.9977 7.49311C63.8675 7.15274 64.7563 6.98255 65.6639 6.98255C67.7818 6.98255 69.4553 7.63493 70.6844 8.93969C71.9136 10.2255 72.5281 12.126 72.5281 14.6409C72.5281 14.8868 72.5187 15.1609 72.4998 15.4635C72.4808 15.7471 72.4619 16.0024 72.443 16.2293H62.8559C62.9504 17.0992 63.357 17.7894 64.0755 18.2999C64.7941 18.8105 65.7585 19.0658 66.9687 19.0658C67.744 19.0658 68.5004 18.9996 69.2379 18.8672C69.9942 18.7159 70.6088 18.5363 71.0815 18.3283L71.6488 21.7604C71.4219 21.8738 71.1194 21.9873 70.7412 22.1008C70.363 22.2142 69.9375 22.3088 69.4648 22.3844C69.0109 22.4789 68.5193 22.5546 67.9898 22.6113C67.4604 22.668 66.9309 22.6964 66.4014 22.6964C65.0588 22.6964 63.8864 22.4979 62.8842 22.1008C61.9009 21.7037 61.0784 21.1647 60.4165 20.484C59.7736 19.7843 59.2914 18.9618 58.97 18.0163C58.6674 17.0708 58.5161 16.0497 58.5161 14.9529ZM68.4436 13.3362C68.4247 12.9769 68.3586 12.6271 68.2451 12.2867C68.1506 11.9463 67.9898 11.6438 67.7629 11.379C67.5549 11.1143 67.2807 10.8968 66.9403 10.7266C66.6189 10.5565 66.2123 10.4714 65.7207 10.4714C65.2479 10.4714 64.8414 10.5565 64.501 10.7266C64.1606 10.8779 63.877 11.0859 63.6501 11.3507C63.4232 11.6154 63.2435 11.9274 63.1112 12.2867C62.9977 12.6271 62.9126 12.9769 62.8559 13.3362H68.4436Z",fill:"black",fillOpacity:"0.9"}),(0,r.jsx)("path",{d:"M81.7177 11.9179L84.6676 7.37965H89.0357L83.9301 14.5558C85.0647 15.9741 86.0953 17.3545 87.0219 18.697C87.9484 20.0396 88.6859 21.2404 89.2343 22.2993H84.696C84.5447 22.0157 84.3556 21.6658 84.1287 21.2498C83.9018 20.8149 83.6465 20.3705 83.3629 19.9167C83.0792 19.444 82.7767 18.9807 82.4552 18.5268C82.1527 18.0541 81.8501 17.6286 81.5475 17.2505C81.2639 17.6097 80.9708 18.0068 80.6683 18.4418C80.3846 18.8767 80.1104 19.321 79.8457 19.7749C79.581 20.2098 79.3162 20.6447 79.0515 21.0796C78.8057 21.5146 78.5882 21.9211 78.3991 22.2993H74.0877C74.3146 21.8266 74.6266 21.2687 75.0237 20.6258C75.4208 19.9829 75.8463 19.3211 76.3001 18.6403C76.7729 17.9407 77.2645 17.2505 77.7751 16.5697C78.2856 15.8701 78.7867 15.2177 79.2784 14.6126C78.4275 13.4213 77.5765 12.2205 76.7256 11.0103C75.8747 9.78117 75.0332 8.57095 74.2012 7.37965H78.7678L81.7177 11.9179Z",fill:"black",fillOpacity:"0.9"}),(0,r.jsx)("path",{d:"M6.20371 8.63143L5.87646 8.32248H2.8394C2.11429 8.32248 1.40244 8.58753 0.86428 9.0843C0.32307 9.58388 0 10.2818 0 11.0306C0 11.7794 0.32307 12.4772 0.86428 12.9768C1.40244 13.4736 2.11429 13.7386 2.8394 13.7386H8.6669V19.5661C8.6669 20.2913 8.93195 21.0031 9.42871 21.5413C9.9283 22.0825 10.6262 22.4055 11.375 22.4055C12.1238 22.4055 12.8217 22.0825 13.3212 21.5413C13.818 21.0031 14.0831 20.2913 14.0831 19.5661V13.7386H19.9105C20.6357 13.7386 21.3475 13.4736 21.8857 12.9768C22.4269 12.4772 22.7499 11.7794 22.7499 11.0306C22.7499 10.2818 22.4269 9.58388 21.8857 9.0843C21.3475 8.58753 20.6357 8.32248 19.9105 8.32248H16.8735L16.5462 8.63143C15.5109 9.60884 14.201 10.2947 12.7462 10.5619C12.3024 10.6434 11.8442 10.6862 11.375 10.6862C10.9058 10.6862 10.4476 10.6434 10.0037 10.5619C8.54897 10.2947 7.23902 9.60884 6.20371 8.63143Z",fill:"#7252F1"}),(0,r.jsx)("circle",{cx:"11.4875",cy:"3.03904",r:"3.03904",fill:"#7252F1"})]})},o=function(e){var t=e.width,n=void 0===t?"90":t,i=e.height,o=void 0===i?"23":i;return(0,r.jsxs)("svg",{width:n,height:o,viewBox:"0 0 311 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_772_171)",children:[(0,r.jsx)("path",{d:"M147.572 18.081C159.869 18.081 169.309 20.2627 175.894 24.626C182.479 28.91 185.771 35.9707 185.771 45.808C185.771 55.7247 182.439 62.9043 175.775 67.347C169.111 71.7103 159.591 73.892 147.215 73.892H141.384V101.5H122.82V20.223C126.866 19.4297 131.15 18.8743 135.672 18.557C140.194 18.2397 144.161 18.081 147.572 18.081ZM148.762 33.908C147.413 33.908 146.065 33.9477 144.716 34.027C143.447 34.1063 142.336 34.1857 141.384 34.265V58.065H147.215C153.641 58.065 158.48 57.1923 161.733 55.447C164.986 53.7017 166.612 50.449 166.612 45.689C166.612 43.3883 166.176 41.4843 165.303 39.977C164.51 38.4697 163.32 37.2797 161.733 36.407C160.226 35.455 158.361 34.8203 156.14 34.503C153.919 34.1063 151.459 33.908 148.762 33.908ZM235.936 54.614C234.349 54.2173 232.485 53.8207 230.343 53.424C228.201 52.948 225.9 52.71 223.441 52.71C222.33 52.71 220.982 52.829 219.395 53.067C217.888 53.2257 216.737 53.424 215.944 53.662V101.5H198.213V42.238C201.386 41.1273 205.115 40.096 209.399 39.144C213.762 38.1127 218.602 37.597 223.917 37.597C224.869 37.597 226.019 37.6763 227.368 37.835C228.717 37.9143 230.065 38.073 231.414 38.311C232.763 38.4697 234.111 38.7077 235.46 39.025C236.809 39.263 237.959 39.5803 238.911 39.977L235.936 54.614ZM305.802 70.084C305.802 75.0027 305.088 79.5247 303.66 83.65C302.232 87.696 300.169 91.1867 297.472 94.122C294.775 96.978 291.522 99.1993 287.714 100.786C283.985 102.373 279.781 103.166 275.1 103.166C270.499 103.166 266.294 102.373 262.48
16 100.786C258.757 99.1993 255.544 96.978 252.847 94.122C250.15 91.1867 248.047 87.696 246.54 83.65C245.033 79.5247 244.279 75.0027 244.279 70.084C244.279 65.1653 245.033 60.683 246.54 56.637C248.127 52.591 250.269 49.14 252.966 46.284C255.743 43.428 258.995 41.2067 262.724 39.62C266.532 38.0333 270.657 37.24 275.1 37.24C279.622 37.24 283.747 38.0333 287.476 39.62C291.284 41.2067 294.537 43.428 297.234 46.284C299.931 49.14 302.034 52.591 303.541 56.637C305.048 60.683 305.802 65.1653 305.802 70.084ZM287.714 70.084C287.714 64.61 286.603 60.326 284.382 57.232C282.24 54.0587 279.146 52.472 275.1 52.472C271.054 52.472 267.92 54.0587 265.699 57.232C263.478 60.326 262.367 64.61 262.367 70.084C262.367 75.558 263.478 79.9213 265.699 83.174C267.92 86.3473 271.054 87.934 275.1 87.934C279.146 87.934 282.24 86.3473 284.382 83.174C286.603 79.9213 287.714 75.558 287.714 70.084Z",fill:"white"}),(0,r.jsx)("path",{d:"M29.785 42.6846L28.3721 41.3507H15.2593C12.1286 41.3507 9.05517 42.4951 6.7316 44.6399C4.39488 46.7969 3 49.81 3 53.0431C3 56.2761 4.39488 59.2892 6.7316 61.4462C9.05517 63.591 12.1286 64.7354 15.2593 64.7354H40.42V89.8961C40.42 93.0269 41.5644 96.1003 43.7092 98.4239C45.8662 100.761 48.8794 102.155 52.1124 102.155C55.3454 102.155 58.3585 100.761 60.5155 98.4239C62.6604 96.1003 63.8047 93.0269 63.8047 89.8961V64.7354H88.9654C92.0961 64.7354 95.1695 63.591 97.4931 61.4462C99.8298 59.2892 101.225 56.2761 101.225 53.0431C101.225 49.81 99.8298 46.7969 97.4931 44.6399C95.1695 42.4951 92.0961 41.3507 88.9654 41.3507H75.8526L74.4397 42.6846C69.9697 46.9047 64.3139 49.8659 58.0328 51.0196C56.1165 51.3716 54.1382 51.5562 52.1124 51.5562C50.0866 51.5562 48.1082 51.3716 46.192 51.0197C39.9109 49.8659 34.2551 46.9047 29.785 42.6846Z",fill:"white"}),(0,r.jsx)("circle",{cx:"52.5981",cy:"18.539",r:"15.539",fill:"white"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_772_171",children:(0,r.jsx)("rect",{width:"311",height:"106",fill:"white"})})})]})},s=function(e){var t=e.width,n=void 0===t?"27":t,i=e.height,o=void 0===i?"19":i,s=e.className,a=void 0===s?"":s;return(0,r.jsxs)("svg",{className:a,width:n,height:""!==o?o:null,viewBox:"0 0 27 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"1.45947",y:"1.60144",width:"23.9386",height:"16.0888",rx:"8.04441",fill:"#7252F1",stroke:"white",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M8.691 6.62573C9.56394 6.62573 10.2341 6.78061 10.7016 7.09037C11.169 7.39449 11.4028 7.89573 11.4028 8.59409C11.4028 9.29808 11.1662 9.80777 10.6931 10.1232C10.2201 10.4329 9.54423 10.5878 8.66565 10.5878H8.25171V12.5477H6.93384V6.77779C7.22107 6.72148 7.52519 6.68205 7.84621 6.65952C8.16723 6.637 8.44882 6.62573 8.691 6.62573ZM8.77548 7.7493C8.67973 7.7493 8.58399 7.75212 8.48825 7.75775C8.39814 7.76338 8.31929 7.76901 8.25171 7.77464V9.46422H8.66565C9.12184 9.46422 9.46539 9.40227 9.69629 9.27837C9.9272 9.15446 10.0427 8.92356 10.0427 8.58564C10.0427 8.42231 10.0117 8.28715 9.94973 8.18014C9.89341 8.07314 9.80893 7.98866 9.69629 7.92671C9.58929 7.85912 9.45694 7.81407 9.29924 7.79154C9.14155 7.76338 8.96696 7.7493 8.77548 7.7493Z",fill:"white"}),(0,r.jsx)("path",{d:"M14.964 9.21923C14.8514 9.19107 14.719 9.16291 14.567 9.13475C14.4149 9.10096 14.2516 9.08407 14.077 9.08407C13.9981 9.08407 13.9024 9.09251 13.7898 9.10941C13.6827 9.12067 13.6011 9.13475 13.5448 9.15165V12.5477H12.286V8.34065C12.5113 8.26181 12.776 8.18859 13.0801 8.12101C13.3899 8.04779 13.7334 8.01118 14.1108 8.01118C14.1784 8.01118 14.26 8.01682 14.3558 8.02808C14.4515 8.03371 14.5472 8.04498 14.643 8.06187C14.7387 8.07314 14.8345 8.09003 14.9302 8.11256C15.026 8.12946 15.1076 8.15198 15.1752 8.18014L14.964 9.21923Z",fill:"white"}),(0,r.jsx)("path",{d:"M19.9238 10.3175C19.9238 10.6666 19.8732 10.9877 19.7718 11.2805C19.6704 11.5677 19.524 11.8155 19.3325 12.0239C19.141 12.2267 18.9101 12.3844 18.6398 12.497C18.3751 12.6096 18.0766 12.666 17.7443 12.666C17.4176 12.666 17.1191 12.6096 16.8488 12.497C16.5841 12.3844 16.356 12.2267 16.1645 12.0239C15.973 11.8155 15.8238 11.5677 15.7168 11.2805C15.6098 10.9877 15.5563 10.6666 15.5563 10.3175C15.5563 9.96828 15.6098 9.65007 15.7168 9.36285C15.8294 9.07562 15.9815 8.83063 16.173 8.62788C16.3701 8.42513 16.601 8.26744 16.8657 8.1548C17.136 8.04216 17.4289 7.98584 17.7443 7.98584C18.0653 7.98584 18.3582 8.04216 18.6229 8.1548C18.8932 8.26744 19.1241 8.42513 19.3156 8.62788C19.5071 8.83063 19.6563 9.07562 19.7633 9.36285C19.8703 9.65007 19.9238 9.96828 19.9238 10.3175ZM18.6398 10.3175C18.6398 9.92885 18.5609 9.62473 18.4032 9.40508C18.2512 9.17981 18.0315 9.06717 17.7443 9.06717C17.4571 9.06717 17.2346 9.17981 17.0769 9.40508C16.9192 9.62473 16.8404 9.92885 16.8404 10.3175C16.8404 10.7061 16.9192 11.0158 17.0769 11.2467C17.2346 11.472 17.4571 11.5846 17.7443 11.5846C18.0315 11.5846 18.2512 11.472 18.4032 11.2467C18.5609 11.0158 18.6398 10.7061 18.6398 10.3175Z",fill:"white"})]})}},9654:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(5893),i=(n(7294),function(e){var t=e.height,n=void 0===t?24:t,i=e.width,o=void 0===i?24:i;return(0,r.jsxs)("svg",{className:"animate-spin",height:n,width:o,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})},950:function(e,t,n){"use strict";n.d(t,{Xb:function(){return k},LY:function(){return S}});var r=n(5893),i=n(6156),o=n(7757),s=n.n(o),a=n(2137),u=n(7294),c=n(1163);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=n(8094),f=n(6695),h=function e(){var t=this;l(this,e),(0,i.Z)(this,"promise",void 0),(0,i.Z)(this,"reject",void 0),(0,i.Z)(this,"resolve",void 0),this.promise=new Promise((function(e,n){t.reject=function(e){throw n(e)},t.resolve=function(t){return e(t)}}))};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var v=function e(t){var n=this;l(this,e),this.baseUrl=t,(0,i.Z)(this,"defaultHeaders",{"Content-Type":"application/json","Accept-Encoding":"gzip, deflate, br"}),(0,i.Z)(this,"headers",new Headers(this.defaultHeaders)),(0,i.Z)(this,"currentRequests",new Map),(0,i.Z)(this,"setAuth",(function(e){n.headers=new Headers(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({authorization:"Bearer ".concat(e)},n.defaultHeaders))})),(0,i.Z)(this,"fetch",function(){var e=(0,a.Z)(s().mark((function e(t,r,i){var o,a,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t+r,a=n.currentRequests.get(o)||function(){var e=new h;return n.currentRequests.set(o,e),n.deferredRequest(e,t,r,i),e}(),e.prev=2,e.next=5,a.promise;case 5:return u=e.sent,e.abrupt("return",u);case 9:throw e.prev=9,e.t0=e.catch(2),e.t0;case 12:return e.prev=12,n.currentRequests.delete(o),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[2,9,12,15]])})));return function(t,n,r){return e.apply(this,arguments)}}()),(0,i.Z)(this,"deferredRequest",function(){var e=(0,a.Z)(s().mark((function e(t,r,i,o){var a,u,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new AbortController,e.prev=1,e.next=4,fetch(r,{method:i,headers:n.headers,signal:a.signal,body:JSON.stringify(o)});case 4:if(!(u=e.sent).ok){e.next=7;break}return e.abrupt("return",t.resolve(u.json()));case 7:return e.next=9,u.json().then((function(e){return e}));case 9:return c=e.sent,e.abrupt("return",t.reject(c));case 13:return e.prev=13,e.t0=e.catch(1),e.abrupt("return",t.reject(e.t0));case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()),(0,i.Z)(this,"get",function(){var e=(0,a.Z)(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.fetch("".concat(n.baseUrl).concat(t),"GET",r));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),(0,i.Z)(this,"post",function(){var e=(0,a.Z)(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.fetch("".concat(n.baseUrl).concat(t),"POST",r));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),(0,i.Z)(this,"delete",function(){var e=(0,a.Z)(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.fetch("".concat(n.baseUrl).concat(t),"DELETE",r));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},g=n(2142);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function e(t,n,r){var o=this;l(this,e),this.serviceStateCallback=t,this.accessTokenStorage=n,(0,i.Z)(this,"request",void 0),(0,i.Z)(this,"serviceState",void 0),(0,i.Z)(this,"setServiceState",(function(e,t){var n=y(y({},o.serviceState),e);o.serviceStateCallback(n,t),o.serviceState=n})),(0,i.Z)(this,"setAuth",(function(e){o.accessTokenStorage.set(e),o.request.setAuth(e)})),(0,i.Z)(this,"getAuthToken",(function(){return o.accessTokenStorage.get()})),(0,i.Z)(this,"me",(function(){return o.whoami().then((function(e){var t=e;if(t)return o.setServiceState({user:t},"me"),t;o.setServiceState({fetching:!1},"me")})).catch((function(e){throw e})).finally((function(){o.setServiceState({fetching:!1},"me")}))})),(0,i.Z)(this,"whoami",(0,a.Z)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.accessTokenStorage.get();case 3:if(t=e.sent){e.next=6;break}return e.abrupt("return",null);case 6:return o.setAuth(t),e.next=9,o.request.get("/auth/whoami").then((function(e){return e.data}));case 9:return n=e.sent,e.abrupt("return",n);case 13:throw e.prev=13,e.t0=e.catch(0),o.accessTokenStorage.remove(),(0,f.gz)(f._Y.API_CLIENT_SERVICE_WHO_AM_I,e.t0.message,null===e.t0||void 0===e.t0?void 0:e.t0.stack);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))),(0,i.Z)(this,"login",(function(e,t){return o.request.post("/auth/login",{email:e,password:t}).then((function(e){var t=e.data,n=t.user,r=t.access_token;return o.setAuth(r),o.setServiceState({user:n},"login"),(0,g.j)(g.U3.SIGN_IN,{user:n}),e.data}
1)).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_LOGIN,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"logout",(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.accessTokenStorage.remove();case 2:return o.setServiceState({user:null,userDetails:null},"logout"),e.abrupt("return","success");case 4:case"end":return e.stop()}}),e)})))),(0,i.Z)(this,"register",(function(e,t,n){return o.request.post("/auth/register",{email:e,password:t,name:n}).then((function(e){var t=e.data,n=t.user,r=t.access_token;return o.setServiceState({user:n},"register"),o.setAuth(r),(0,g.j)(g.U3.SIGN_UP,{user:n}),e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_REGISTER,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"forgotPassword",(function(e){return o.request.post("/auth/forgot-password",{email:e}).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_FORGOT_PASSWORD,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"resetForgottenPassword",(function(e,t){return o.request.post("/auth/reset-password",{tokenID:e,password:t}).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_FORGOT_PASSWORD,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getValidAccessCode",(function(e){return o.request.get("/access-codes/".concat(encodeURIComponent(e))).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_SEARCH_ENTRIES,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"createAccessCode",function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.request.post("/access-codes",{name:t,maxUses:n}).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_CREATE_ACCESS_CODE,e.message,null===e||void 0===e?void 0:e.stack)})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),(0,i.Z)(this,"getAccessCodes",(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.request.get("/access-codes").then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_GET_ACCESS_CODES,e.message,null===e||void 0===e?void 0:e.stack)})));case 1:case"end":return e.stop()}}),e)})))),(0,i.Z)(this,"getUserDetails",(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.serviceState.userDetails){e.next=2;break}return e.abrupt("return",Promise.resolve(o.serviceState.userDetails));case 2:return e.abrupt("return",o.request.get("/users/details").then((function(e){return o.setServiceState({userDetails:e.data},"getUserDetails"),e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_USER_DETAILS,e.message,null===e||void 0===e?void 0:e.stack)})));case 3:case"end":return e.stop()}}),e)})))),(0,i.Z)(this,"deleteUser",(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.request.delete("/users").then((function(e){return o.logout(),e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_DELETE_USER,e.message,null===e||void 0===e?void 0:e.stack)})));case 1:case"end":return e.stop()}}),e)})))),(0,i.Z)(this,"createEntry",(function(e){return o.request.post("/entries",e).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_CREATE_ENTRY,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"deleteEntry",(function(e){return o.request.delete("/entries/".concat(e)).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_DELETE_ENTRY,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getMyEntries",function(){var e=(0,a.Z)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/entries",t&&(r+="?limit=".concat(t)),n&&(r+="".concat(t?"&":"?","offset=").concat(n)),e.abrupt("return",o.request.get(r).then((function(e){return e.data}
1)).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_LIST_ENTRIES,e.message,null===e||void 0===e?void 0:e.stack)})));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),(0,i.Z)(this,"searchMyEntries",function(){var e=(0,a.Z)(s().mark((function e(t,n,r){var i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="/entries/find/".concat(encodeURI(t)),n&&(i+="?limit=".concat(n)),r&&(i+="".concat(n?"&":"?","offset=").concat(r)),e.abrupt("return",o.request.get(i).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_SEARCH_ENTRIES,e.message,null===e||void 0===e?void 0:e.stack)})));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()),(0,i.Z)(this,"createCheckout",(function(e,t){return o.request.post("/subscriptions/checkout",y({priceId:"MONTHLY"===e?d.x_:"YEARLY"===e?d.Lt:null},t?{stripeCustomerId:t}:{})).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_CREATE_CHECKOUT,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getUserPortalUrl",(function(){return o.request.get("/subscriptions/portal").then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_GET_USER_PORTAL,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getCheckoutSessionStatus",(function(e){return o.request.get("/subscriptions/checkout/".concat(e)).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_GET_CHECKOUT_SESSION,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getUserDetailsById",function(){var e=(0,a.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.request.get("/users/details/".concat(t)).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_USER_DETAILS_BY_USER_ID,e.message,null===e||void 0===e?void 0:e.stack)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,i.Z)(this,"getUsers",(function(){return o.request.get("/users").then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_GET_USERS,e.message,null===e||void 0===e?void 0:e.stack)}))})),(0,i.Z)(this,"getEntriesByUserId",function(){var e=(0,a.Z)(s().mark((function e(t,n,r){var i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="/entries/user/"+t,n&&(i+="?limit=".concat(n)),r&&(i+="".concat(n?"&":"?","offset=").concat(r)),e.abrupt("return",o.request.get(i).then((function(e){return e.data})).catch((function(e){throw(0,f.gz)(f._Y.API_CLIENT_SERVICE_LIST_ENTRIES_BY_USER_ID,e.message,null===e||void 0===e?void 0:e.stack)})));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()),this.request=new v(r),this.serviceState={user:null,userDetails:null,fetching:!0}},w=n(4353),x=n(5518);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=u.createContext({}),k=function(e){var t=e.children,n=(0,x.dc)(),i=(0,u.useState)({user:null,userDetails:null,fetching:!0}),o=i[0],l=i[1],f=(0,u.useMemo)((function(){return new b((function(e,t){return p(e,t)}),w.V,d.T5)}),[]),h=(0,u.useMemo)((function(){return new Map}),[]);(0,u.useEffect)((function(){(0,a.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.me();case 2:(t=e.sent)&&((0,g.hF)(t.id),f.getUserDetails());case 4:case"end":return e.stop()}}),e)})))()}),[]);var p=function(e,t){if(h.has(t))h.get(t)(e);else switch(t){case"register":(0,g.hF)(e.user.id),n.showOnboarding(!0),c.default.push("/").then((function(){l(e)}));break;case"login":(0,g.hF)(e.user.id),c.default.push("/").then((function(){l(e)}));break;case"logout":(0,g.hF)(void 0),l({fetching:!0,user:null,userDetails:null}),c.default.push("/").then((function(){l({fetching:!1,user:null,userDetails:null})}));break;default:l(e)}};return(0,r.jsx)(C.Provider,{value:_({getAuthToken:f.getAuthToken,registerStateInterceptor:function(e,t){h.set(e,t)},removeStateInterceptor:function(e){h.delete(e)},whoami:f.whoami,register:f.register,login:f.login,logout:f.logout,forgotPassword:f.forgotPassword,resetForgottenPassword:f.resetForgottenPassword,getUserDetails:f.getUserDetails,deleteUser:f.deleteUser,deleteEntry:f.deleteEntry,getMyEntries:f.getMyEntries,searchMyEntries:f.searchMyEntries,getValidAccessCode:f.getValidAccessCode,getAccessCodes:f.getAccessCodes,createAccessCode:f.createAccessCode,getUserPortalUrl:f.getUserPortalUrl,createCheckout:f.createCheckout,getCheckoutSessionStatus:f.getCheckoutSessionStatus,getUsers:f.getUsers,getUserDetailsById:f.getUserDetailsById,getEntriesByUserId:f.getEntriesByUserId},o),children:t})},S=function(){return u.useContext(C)}},124:function(e,t,n){"use strict";n.d(t,{Sv:function(){return l},rX:function(){return d}});var r=n(5893),i=n(7757),o=n.n(i),s=n(2137),a=n(7294),u=n(950),c=a.createContext({}),l=function(e){var t=e.children,n=(0,u.LY)(),i=!!n.user,l=(0,a.useState)(!1),d=l[0],f=l[1],h=(0,a.useState)(new Map),p=h[0],v=h[1],g=(0,a.useState)({total:0,pages:0,entries:[]}),m=g[0],y=g[1],b=(0,a.useState)({term:"",page:1}),w=b[0],x=b[1],E=function(){var e=(0,s.Z)(o().mark((function e(t,r,s){var a,u,c,l,d,h,g,m,b,w,E;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}throw new Error("No user present");case 2:if(f(!0),a=r||"",u=t||1,c=s||!1,l=p.get(a),!(d=!!l&&l.entriesByPage.get(u))||c){e.next=14;break}y({total:l.total,pages:l.pages,entries:d}),x({term:a,page:u}),f(!1),e.next=42;break;case 14:if(e.prev=14,""!==a){e.next=21;break}return e.next=18,n.getMyEntries(10,10*(u-1));case 18:e.t0=e.sent,e.next=24;break;case 21:return e.next=23,n.searchMyEntries(a,10,10*(u-1));case 23:e.t0=e.sent;case 24:h=e.t0,g=h.total,m=h.entries,b=Math.ceil(g/10),w=new Map(c?null:p),(E=w.get(a))?E.entriesByPage.set(u,m):w.set(a,{total:g,pages:b,entriesByPage:new Map([[u,m]])}),v(w),y({total:g,pages:b,entries:m}),x({term:a,page:u}),e.next=39;break;case 35:throw e.prev=35,e.t1=e.catch(14),console.log(e.t1),e.t1;case 39:return e.prev=39,f(!1),e.finish(39);case 42:case"end":return e.stop()}}),e,null,[[14,35,39,42]])})));return function(t,n,r){return e.apply(this,arguments)}}(),_=function(){var e=(0,s.Z)(o().mark((function e(t){var r,i,s,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.deleteEntry(t);case 3:r=new Map(p),i=r.get(w.term),s=i.entriesByPage.get(w.page),a=i.total-1,i.total=a,(u=s.findIndex((function(e){return e.id===t})))>-1&&s.splice(u,1),y({total:a,pages:i.pages,entries:s}),i.entriesByPage.delete(w.page),v(r),E(w.page,w.term),e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(0),console.log(e.t0),e.t0;case 20:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t){return e.apply(this,arguments)}}();return(0,r.jsx)(c.Provider,{value:{getEntries:E,getEntryPageView:function(e){E(e,w.term)},refreshEntryPageView:function(){E(w.page,w.term,!0)},deleteEntry:_,entryView:m,currentSearch:w,fetching:d},children:t})},d=function(){return a.useContext(c)}},3545:function(e,t,n){"use strict";n.d(t,{Xd:function(){return f},GD:function(){return h}});var r=n(5893),i=n(7757),o=n.n(i),s=n(2137),a=n(6224),u=n(9615),c=n(7294),l=n(950),d=c.createContext({}),f=function(e){var t=e.children,n=(0,l.LY)(),i=n.user,f=n.getAuthToken,h=(0,c.useState)(!1),p=h[0],v=h[1];(0,c.useEffect)((function(){(0,a.X)()===a.k.IOS&&v(!0)}),[]),(0,u.D)(function(){var e=(0,s.Z)(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=9;break}if(t||!i){e.next=8;break}return e.next=4,f();case 4:(n=e.sent)&&window.webkit.messageHandlers.indexIOSJSmessageHandler.postMessage({type:"AUTH-LOGIN",payload:n}),e.next=9;break;case 8:t&&!i&&window.webkit.messageHandlers.indexIOSJSmessageHandler.postMessage({type:"AUTH-LOGOUT"});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),null===i||void 0===i?void 0:i.id);return(0,r.jsx)(d.Provider,{value:{ios:p,openUrl:function(e){p&&window.webkit.messageHandlers.indexIOSJSmessageHandler.postMessage({type:"OPEN-URL",payload:e})},showAlert:function(e,t){p&&window.webkit.messageHandlers.indexIOSJSmessageHandler.postMessage({type:"SHOW-ALERT",payload:JSON.stringify({title:e,message:t})})}},children:t})},h=function(){return c.useContext(d)}},5543:function(e,t,n){"use strict";n.d(t,{gO:function(){return U},BV:function(){return D}});var r=n(5893),i=n(7294),o=n(9864);var s=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),a=n(950),u=n(1225),c=n(7014),l="/_next/static/image/public/images/extension.f85183da47f7848a5c24cec3c0ec97ab.png",d="/_next/static/image/public/images/how-to-ios-1.9bf6498a2e9db11bfa16aefc54c9ac5d.jpg",f="/_next/static/image/public/images/how-to-ios-2.6fb5bdde69d15e5125b7f143d56d0a3b.jpg",h="/_next/static/image/public/images/how-to-ios-3.7f7aa37669dc4a32691640e128d2bcaa.jpg",p="/_next/static/image/public/images/how-to-ios-4.96c70d58c21460a2484c0111c4716c0f.jpg",v=n(8094),g=n(3545),m=function(){var e=(0,g.GD)(),t=e.ios,n=e.showAlert;return(0,r.jsxs)("div",{className:"bg-white py-8 px-4 border-2 border-green-400 rounded-lg sm:px-10 mb-6",children:[(0,r.jsx)("h3",{className:"font-bold text-lg text-green-600 mb-2",children:"Save on Chrome"}),(0,r.jsx)("p",{className:"mb-4 text-gray-600",children:"Install the Index chrome browser extension to save pages as you browse."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-4",children:(0,r.jsx)("img",{src:l})}),t?(0,r.jsx)("button",{className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:w-auto 
1sm:text-sm",onClick:function(){n("Install Chrome Extension","Navigate to the chrome extension store on chrome desktop and search for Index.")},children:"Install Chrome extension"}):(0,r.jsx)("a",{href:v.hH,target:"_blank",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:w-auto sm:text-sm",children:"Install Chrome extension"})]})},y=function(){return(0,r.jsxs)("div",{className:"bg-white py-8 px-4 border-2 border-green-400 rounded-lg sm:px-10 mb-6",children:[(0,r.jsx)("h3",{className:"font-bold text-lg text-green-600 mb-2",children:"Save on iOS"}),(0,r.jsx)("p",{className:"mb-4 text-gray-600",children:"Save and search for pages on the go (or laying on the couch) with the iOS app."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-4",children:(0,r.jsx)("img",{src:p})}),(0,r.jsx)("a",{href:v.H7,target:"_blank",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:w-auto sm:text-sm",children:"Install iOS app"})]})},b=function(){return(0,r.jsxs)("div",{className:"bg-white pb-2 px-2 mb-6 text-left",children:[(0,r.jsx)("p",{className:"mb-2 text-gray-600",children:"1. Tap the Share icon on the bottom of your screen."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-6",children:(0,r.jsx)("img",{src:d})}),(0,r.jsx)("p",{className:"mb-2 text-gray-600",children:"2. Swipe through the apps then tap More."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-6",children:(0,r.jsx)("img",{src:f})}),(0,r.jsx)("p",{className:"mb-2 text-gray-600",children:"3. Tap Edit, then the plus + icon next to Index, and then press Done."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-6",children:(0,r.jsx)("img",{src:h})}),(0,r.jsx)("p",{className:"mb-2 text-gray-600",children:"4. Now, you can tap the Index icon to save pages from Safari. Or any app using the Share button."}),(0,r.jsx)("div",{className:"flex rounded-lg border border-gray-200 overflow-hidden mb-6",children:(0,r.jsx)("img",{src:p})})]})},w={};!function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function s(){}function a(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"===typeof i?new i(e):(e(s,s),null)}var u,c=function(){var e,t,n=Math.floor(1e3/60),r={},i=0;return"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return r[t]=requestAnimationFrame((function o(s){i===s||i+n-1<s?(i=s,delete r[t],e()):r[t]=requestAnimationFrame(o)})),t},t=function(e){r[e]&&cancelAnimationFrame(r[e])}):(e=function(e){return setTimeout(e,n)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),l=function(){var t,n,i={};return function(){if(t)return t;if(!r&&o){var s=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([s])))}catch(u){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",u),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(r,o,s){if(n)return t(r,null),n;var u=Math.random().toString(36).slice(2);return n=a((function(o){function a(t){t.data.callback===u&&(delete i[u],e.removeEventListener("message",a),n=null,s(),o())}e.addEventListener("message",a),t(r,u),i[u]=a.bind(null,{data:{callback:u}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),i)i[t](),delete i[t]}}(t)}return t}}(),d={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function f(e,t,n){return function(e,t){return t?t(e):e}(e&&(null!==(r=e[t])&&void 0!==r)?e[t]:d[t],n);var r}function h(e){return e<0?0:Math.floor(e)}function p(e){return parseInt(e,16)}function v(e){return e.map(g)}function g(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:p(t.substring(0,2)),g:p(t.substring(2,4)),b:p(t.substring(4,6))}}function m(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function y(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function b(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)
1*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar}}function w(e,t,n,o,s){var u,l,d=t.slice(),f=e.getContext("2d"),h=a((function(t){function a(){u=l=null,f.clearRect(0,0,o.width,o.height),s(),t()}u=c.frame((function t(){!r||o.width===i.width&&o.height===i.height||(o.width=e.width=i.width,o.height=e.height=i.height),o.width||o.height||(n(e),o.width=e.width,o.height=e.height),f.clearRect(0,0,o.width,o.height),(d=d.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,o=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(s-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,i,o,s,a,u){e.save(),e.translate(t,n),e.rotate(o),e.scale(r,i),e.arc(0,0,1,s,a,u),e.restore()}(e,t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(s-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(i)),e.lineTo(Math.floor(o),Math.floor(s)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)}))).length?u=c.frame(t):a()})),l=a}));return{addFettis:function(e){return d=d.concat(e),h},canvas:e,promise:h,reset:function(){u&&c.cancel(u),l&&l()}}}function x(e,n){var r,i=!e,s=!!f(n||{},"resize"),u=f(n,"disableForReducedMotion",Boolean),c=o&&!!f(n||{},"useWorker")?l():null,d=i?m:y,p=!(!e||!c)&&!!e.__confetti_initialized,g="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function x(t,n,i){for(var o,s,a=f(t,"particleCount",h),u=f(t,"angle",Number),c=f(t,"spread",Number),l=f(t,"startVelocity",Number),p=f(t,"decay",Number),g=f(t,"gravity",Number),m=f(t,"drift",Number),y=f(t,"colors",v),x=f(t,"ticks",Number),E=f(t,"shapes"),_=f(t,"scalar"),C=function(e){var t=f(e,"origin",Object);return t.x=f(t,"x",Number),t.y=f(t,"y",Number),t}(t),k=a,S=[],O=e.width*C.x,T=e.height*C.y;k--;)S.push(b({x:O,y:T,angle:u,spread:c,startVelocity:l,color:y[k%y.length],shape:E[(o=0,s=E.length,Math.floor(Math.random()*(s-o))+o)],ticks:x,decay:p,gravity:g,drift:m,scalar:_}));return r?r.addFettis(S):(r=w(e,S,d,n,i)).promise}function E(n){var o=u||f(n,"disableForReducedMotion",Boolean),l=f(n,"zIndex",Number);if(o&&g)return a((function(e){e()}));i&&r?e=r.canvas:i&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(l),document.body.appendChild(e)),s&&!p&&d(e);var h={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!i)return e.getBoundingClientRect()}};return d(t),void c.postMessage({resize:{width:t.width,height:t.height}})}h.width=h.height=null}function m(){r=null,s&&t.removeEventListener("resize",v),i&&e&&(document.body.removeChild(e),e=null,p=!1)}return c&&!p&&c.init(e),p=!0,c&&(e.__confetti_initialized=!0),s&&t.addEventListener("resize",v,!1),c?c.fire(n,h,m):x(n,h,m)}return E.reset=function(){c&&c.reset(),r&&r.reset()},E}function E(){return u||(u=x(null,{useWorker:!0,resize:!0})),u}n.exports=function(){return E().apply(this,arguments)},n.exports.reset=function(){E().reset()},n.exports.create=x}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this||{}}(),w,!1);var x=w.exports,E=(w.exports.create,n(5914)),_=n(7757),C=n.n(_),k=n(2137);var S=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))}));var O=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),T=n(5343),I=n(9654),j=function(e){var t=e.onIsOpen,n=e.children;return(0,r.jsx)(o.V,{as:"div",className:"relative z-10",onClose:function(){return t(!1)},children:n})},N=n(3393),R=function(e){var t=e.open,n=void 0!==t&&t,o=e.dialog,s=e.onClose,a=(0,i.useState)(!1),u=a[0],c=a[1],l=o;(0,i.useEffect)((function(){c(n)}),[n]);var d=function(e){c(e)};return o?(0,r.jsx)(N.u,{show:u,children:(0,r.jsxs)(j,{onIsOpen:d,children:[(0,r.jsx)(N.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:function(){u||s()},children:(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}
1),(0,r.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,r.jsx)("div",{className:"flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:p-0",children:(0,r.jsx)(N.u.Child,{className:"w-auto",enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,r.jsx)(l,{onIsOpen:d})})})})]})}):(0,r.jsx)(r.Fragment,{})},A=n(255),P=n(5518),L=i.createContext({}),M={"delete-account":function(e){var t=e.onIsOpen,n=(0,a.LY)();return(0,r.jsxs)(o.V.Panel,{className:"relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full sm:p-6",children:[(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,r.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,r.jsx)(s,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)(o.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Delete account"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete your account? All of your data will be permanently removed from our servers forever. This action cannot be undone."})})]})]}),(0,r.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return n.deleteUser()},children:"Delete"}),(0,r.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm",onClick:function(){return t(!1)},children:"Cancel"})]})]})},"how-to-save":function(e){var t=e.onIsOpen,n=(0,g.GD)().ios;return(0,r.jsxs)(o.V.Panel,{className:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",children:[(0,r.jsx)("div",{className:"block absolute top-0 right-0 pt-4 pr-4 z-20",children:(0,r.jsxs)("button",{type:"button",className:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return t(!1)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(u.Z,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"mr-2 flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 h-10 w-10",children:(0,r.jsx)(c.J,{})}),(0,r.jsx)(o.V.Title,{as:"h2",className:"text-xl leading-6 font-bold text-gray-900",children:"How to Save"})]}),(0,r.jsxs)("div",{className:"sm:px-2 mt-8 mx-auto w-full max-w-md relative z-10",children:[n&&(0,r.jsx)(b,{}),(0,r.jsx)(m,{}),!n&&(0,r.jsx)(y,{}),(0,r.jsx)("div",{className:"bg-white px-4 border-2 border-gray-200 rounded-lg sm:px-10",children:(0,r.jsxs)("div",{className:"my-6",children:[(0,r.jsx)("h4",{className:"font-bold text-gray-400 mb-2",children:"Firefox, Edge, Android"}),(0,r.jsx)("div",{className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-400 text-base font-medium text-white sm:w-auto 
1sm:text-sm",children:"Coming soon"})]})})]})]})})]})},welcome:function(e){var t=e.onIsOpen,n=(0,a.LY)().user,s=(0,g.GD)().ios;return(0,i.useEffect)((function(){x({particleCount:100,spread:70,origin:{y:.2},zIndex:10})}),[]),(0,r.jsxs)(o.V.Panel,{className:"relative z-20 inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",children:[(0,r.jsx)("div",{className:"block absolute top-0 right-0 pt-4 pr-4 z-20",children:(0,r.jsxs)("button",{type:"button",className:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return t(!1)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(u.Z,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsxs)("div",{className:"px-6 mx-auto w-full max-w-md relative z-10",children:[(0,r.jsx)("div",{className:"mx-auto h-7 w-auto",children:(0,r.jsx)(E.TR,{height:"100%",width:"100%"})}),(0,r.jsxs)(o.V.Title,{as:"h2",className:"mt-6 text-center text-3xl font-extrabold text-gray-900",children:["Welcome",n&&(0,r.jsxs)(r.Fragment,{children:[", ",(0,r.jsx)("span",{className:"text-indigo-500",children:n.name})]}),"\xa0\xa0\ud83e\udd73\xa0!"]}),(0,r.jsx)("p",{className:"mt-2 text-center text-sm text-gray-600",children:"Here's your brand new Index account, all ready and waiting to start saving stuff to!"})]}),(0,r.jsxs)("div",{className:"sm:px-2 mt-8 mx-auto w-full max-w-md relative z-10",children:[s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"font-bold text-lg text-green-600 mb-3 text-left ml-2",children:"How to Save:"}),(0,r.jsx)(b,{})]}),(0,r.jsx)(m,{}),(0,r.jsx)("div",{className:"bg-white px-4 border-2 border-gray-200 rounded-lg sm:px-10",children:(0,r.jsxs)("div",{className:"my-6",children:[(0,r.jsx)("h4",{className:"font-bold text-gray-400 mb-2",children:"Firefox, Edge, Android"}),(0,r.jsx)("div",{className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-400 text-base font-medium text-white sm:w-auto sm:text-sm",children:"Coming soon"})]})})]})]})})]})},"index-pro":function(e){var t=e.onIsOpen,n=(0,a.LY)(),s=n.userDetails,c=n.createCheckout,l=(0,i.useState)(null),d=l[0],f=l[1],h=s&&s.subscription&&s.subscription.status;return(0,r.jsxs)(o.V.Panel,{className:"relative z-20 inline-block align-bottom rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",style:{background:"#7252F1"},children:[(0,r.jsx)("div",{className:"block absolute top-0 right-0 pt-4 pr-4 z-20",children:(0,r.jsxs)("button",{type:"button",className:"bg-black bg-opacity-10 rounded-md text-gray-300 hover:text-gray-100 focus:outline-none",onClick:function(){return t(!1)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(u.Z,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsx)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:(0,r.jsxs)("div",{className:"px-6 mx-auto w-full max-w-md relative z-10",children:[(0,r.jsx)("div",{className:"mx-auto h-7 w-auto mb-4",children:(0,r.jsx)(E.EQ,{height:"100%",width:"100%"})}),(0,r.jsxs)("div",{className:"flex justify-center items-center",children:[(0,r.jsxs)("h2",{className:"mt-10 text-center text-5xl font-extrabold text-white leading-6",children:[(0,r.jsx)("span",{className:"block",children:"\xa35\xa0"}),(0,r.jsx)("span",{className:"font-normal text-sm text-white text-opacity-60",children:"Monthly"})]}),(0,r.jsx)("span",{className:"font-normal text-sm text-white text-opacity-40 mx-6",children:"|"}),(0,r.jsxs)("h2",{className:"mt-10 text-center text-5xl font-extrabold text-white leading-6",children:[(0,r.jsx)("span",{className:"block",children:"\xa0\xa348\xa0\xa0\xa0"}),(0,r.jsx)("span",{className:"font-normal text-sm text-white text-opacity-60",children:"Yearly\xa0"}),(0,r.jsx)("span",{className:"font-normal text-sm text-white text-opacity-80",children:"20% off!\xa0\xa0\xa0\xa0"})]})]}),(0,r.jsx)("p",{className:"mt-6 text-center text-base text-gray-100 px-5",children:"Upgrade to Index Pro to support further development and gain access to some extra great features."}),(0,r.jsx)("div",{className:"mt-6 mb-10 mx-10 max-w-md relative rounded-xl overflow-hidden",children:(0,r.jsx)("table",{className:"border-separate border-spacing-2 w-full",children:(0,r.jsxs)("tbody",{children:[(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{className:"bg-black bg-opacity-10 p-3 text-white flex items-center",children:[(0,r.jsx)("span",{className:"mr-2 inline-block",children:(0,r.jsx)(O,{width:18})})," ",(0,r.jsx)("span",{className:"mr-auto",children:"Unlimited Saves"}),"\ud83d\uddc4"]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{className:"bg-black bg-opacity-10 p-3 text-white flex items-center opacity-60",children:[(0,r.jsx)("span",{className:"mr-2 inline-block",children:(0,r.jsx)(S,{width:18})})," ",(0,r.jsxs)("span",{className:"mr-auto",children:["Dark Mode",(0,r.jsx)("span",{className:"font-normal text-xs text-white text-opacity-60",children:"\xa0Coming soon"})]}),"\ud83c\udf1a"]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{className:"bg-black bg-opacity-10 p-3 text-white flex items-center opacity-40",children:[(0,r.jsx)("span",{className:"mr-2 inline-block",children:(0,r.jsx)(S,{width:18})})," ",(0,r.jsxs)("span",{className:"mr-auto",children:["Save Screenshot",(0,r.jsx)("span",{className:"font-normal text-xs text-white text-opacity-60",children:"\xa0Coming soon"})]}),"\ud83d\udcf8"]})}),(0,r.jsx)("tr",{children:(0,r.jsxs)("td",{className:"bg-black bg-opacity-10 p-3 text-white flex items-center opacity-20",children:[(0,r.jsx)("span",{className:"mr-2 inline-block",children:(0,r.jsx)(S,{width:18})})," ",(0,r.jsxs)("span",{className:"mr-auto",children:["Archive",(0,r.jsx)("span",{className:"font-normal text-xs text-white text-opacity-60",children:"\xa0Coming soon"})]}),"\ud83e\uddca"]})})]})})}),(0,r.jsxs)("div",{className:"flex justify-center items-center",children:[(0,r.jsx)("button",{onClick:(0,k.Z)(C().mark((function e(){var t,n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f("MONTHLY"),e.prev=1,t=h?s.subscription.stripeCustomerId:null,e.next=5,c("MONTHLY",t);case 5:n=e.sent,window.open(n.url,"_self"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),f(null);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),className:(0,T.A)("mt-6 mb-6 bg-indigo-400 mx-2 flex justify-center py-2 px-6 border border-transparent roun
1ded-md shadow-sm text-lg font-medium  transition ease-in-out duration-150 opacity-80",d?"cursor-not-allowed pointer-events-none":"focus:outline-none"),style:{color:"white"},children:"MONTHLY"===d?(0,r.jsx)(I.$,{}):"Get Pro Monthly"}),(0,r.jsx)("button",{onClick:(0,k.Z)(C().mark((function e(){var t,n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f("YEARLY"),e.prev=1,t=h?s.subscription.stripeCustomerId:null,e.next=5,c("YEARLY",t);case 5:n=e.sent,window.open(n.url,"_self"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),f(null);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),className:(0,T.A)("mt-6 mb-6 bg-white mx-2 flex justify-center py-2 px-6 border border-transparent rounded-md shadow-sm text-lg font-medium text-indigo-800 transition ease-in-out duration-150 opacity-90",d?"cursor-not-allowed pointer-events-none":"focus:outline-none"),style:{color:"#7252F1"},children:"YEARLY"===d?(0,r.jsx)(I.$,{}):"Get Pro Yearly"})]})]})})})]})},"index-pro-success":function(e){var t=e.onIsOpen;(0,a.LY)().user;return(0,i.useEffect)((function(){x({colors:["#7252F1","#c7d2fe","#fff"],particleCount:100,spread:70,origin:{y:.2},zIndex:10})}),[]),(0,r.jsxs)(o.V.Panel,{className:"relative z-20 inline-block align-bottom rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",style:{background:"#7252F1"},children:[(0,r.jsx)("div",{className:"block absolute top-0 right-0 pt-4 pr-4 z-20",children:(0,r.jsxs)("button",{type:"button",className:"bg-black bg-opacity-10 rounded-md text-gray-300 hover:text-gray-100 focus:outline-none",onClick:function(){return t(!1)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(u.Z,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsx)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:(0,r.jsxs)("div",{className:"px-6 mx-auto w-full max-w-md relative z-10",children:[(0,r.jsx)("div",{className:"mx-auto h-7 w-auto mt-6 mb-4",children:(0,r.jsx)(E.EQ,{height:"100%",width:"100%"})}),(0,r.jsx)("h2",{className:"mt-10 text-center text-5xl font-extrabold text-white",children:"Payment Successful"}),(0,r.jsx)("p",{className:"mt-6 text-center text-base text-gray-100 px-5",children:"Thank you for supporting the further development of Index, we hope you enjoy your extra Pro features."}),(0,r.jsxs)("p",{className:"mt-4 text-center text-base text-gray-100 px-5",children:["\ud83d\ude4c ",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The Index Team"]}),(0,r.jsx)("button",{onClick:function(){return t(!1)},className:"mt-8 mb-6 bg-white mx-auto flex justify-center py-2 px-16 border border-transparent rounded-md shadow-sm text-lg font-medium text-indigo-600 transition ease-in-out duration-150",style:{color:"#7252F1"},children:"Let's Index!"})]})})})]})}},U=function(e){var t=e.children,n=(0,A.d)(["modal"]),o=(0,P.dc)(),s=(0,i.useState)(null),a=s[0],u=s[1];(0,i.useEffect)((function(){if(n.has("modal")&&n.get("modal")in M){var e=n.get("modal");u(e)}}),[]),(0,i.useEffect)((function(){o.onboarding&&u("welcome")}),[o.onboarding]);return(0,r.jsxs)(L.Provider,{value:{modal:a,showModal:function(e){u(e)}},children:[(0,r.jsx)(R,{open:!!a,dialog:a?M[a]:null,onClose:function(){switch(a){case"welcome":o.showOnboarding(!1);default:u(null)}}}),t]})},D=function(){return i.useContext(L)}},4855:function(e,t,n){"use strict";n.d(t,{Nv:function(){return y},bH:function(){return b}});var r=n(5893),i=n(7757),o=n.n(i),s=n(2137),a=n(7294),u=n(3393),c=n(9864),l=n(1225);var d=a.forwardRef((function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z",clipRule:"evenodd"}))})),f=n(5543),h=function(e){var t=e.show,n=e.onNoticeBoardClose,i=(0,f.BV)().showModal;return(0,r.jsx)(u.u.Root,{show:t,as:a.Fragment,children:(0,r.jsxs)(c.V,{as:"div",className:"relative z-10",onClose:n,children:[(0,r.jsx)(u.u.Child,{as:a.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,r.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,r.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,r.jsx)("div",{className:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10",children:(0,r.jsx)(u.u.Child,{as:a.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,r.jsxs)(c.V.Panel,{className:"pointer-events-auto relative w-screen max-w-sm",children:[(0,r.jsx)(u.u.Child,{as:a.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"absolute top-0 left-0 -ml-8 flex pt-4 pr-2 sm:-ml-10 sm:pr-4",children:(0,r.jsxs)("button",{type:"button",className:"rounded-md text-gray-300 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:n,children:[(0,r.jsx)("span",{className:"sr-only",children:"Close panel"}),(0,r.jsx)(l.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})}),(0,r.jsxs)("div",{className:"flex h-full flex-col overflow-y-scroll bg-white py-6 shadow-xl",children:[(0,r.jsx)("div",{className:"px-4 sm:px-6",children:(0,r.jsxs)(c.V.Title,{className:"flex text-lg font-medium text-gray-900",children:[" ","Notice board ",(0,r.jsx)("span",{className:"ml-auto",children:"\ud83d\udccc"})]})}),(0,r.jsxs)("div",{className:"relative mt-6 flex-1 px-4 sm:px-6",children:[(0,r.jsx)("div",{className:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden mb-6",children:(0,r.jsx)("div",{className:"p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(d,{className:"h-6 w-6 text-indigo-400","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,r.jsx)("p",{className:"text-base font-medium text-gray-900",children:"Index Pro Yearly!"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"You can now get Index Pro for just \xa348 a year currently with a 20% off discount!"}),(0,r.jsx)("div",{className:"mt-4 flex",children:(0,r.jsx)("button",{type:"button",className:"inline-flex items-center px-3 py-2 border border-indigo shadow-sm text-sm text-indigo-600 leading-4 font-medium rounded-md bg-white hover:bg-indigo-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return i("index-pro")},children:"Take me there"})})]})]})})}),(0,r.jsx)("div",{className:"max-w-sm w-full bg-gray-100 rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden",children:(0,r.jsx)("div",{className:"p-4",children:(0,r.jsx)("div",{className:"flex items-center text-center",children:(0,r.jsx)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:(0,r.jsxs)("p",{className:"mt-1 text-sm text-gray-400",children:["This is where you can see all of the latest and upcoming feature announcements. More coming very soon... ",(0,r.jsx)("br",{})," ",(0,r.jsx)("br",{}),"Thank you for supporting Index \ud83d\ude4f"]})})})})})]})]})]})})})})})]})})},p=n(6422),v=a.createContext({}),g=["yearly-pro"];function m(e){if(!Array.isArray(e)||!Array.isArray(g))return!1;if(e.length>g.length)return!0;var t=e.sort(),n=g.sort();return t.length===n.length&&t.every((function(e,t){return e===n[t]}))}var y=function(e){var t=e.children,n=(0,a.useState)(!1),i=n[0],u=n[1],c=(0,a.useState)(!1),l=c[0],d=c[1],f=(0,p.p)("production_LOCAL_NOTICE_BOARD_STORAGE");(0,a.useEffect)((function(){(0,s.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=JSON,e.next=3,f.get();case 3:e.t1=e.sent,m(e.t0.parse.call(e.t0,e.t1))||d(!0);case 6:case"end":return e.stop()}}),e)})))()}),[]);return(0,r.jsxs)(v.Provider,{value:{showNoticeBoard:function(){l&&(d(!1),f.set(JSON.stringify(g))),u(!0)},newNotices:l},children:[(0,r.jsx)(h,{show:i,onNoticeBoardClose:function(){u(!1)}}),t]})},b=function(){return a.useContext(v)}},5518:function(e,t,n){"use strict";n.d(t,{XM:function(){return s},dc:function(){return a}});var r=n(5893),i=n(7294),o=i.createContext({}),s=function(e){var t=e.children,n=(0,i.useState)(!1),s=n[0],a=n[1];return(0,r.jsx)(o.Provider,{value:{onboarding:s,showOnboarding:function(e){return a(e)}},children:t})},a=function(){return i.useContext(o)}},6032:function(e,t,n){"use strict";n.d(t,{PU:function(){return Ae},AS:function(){return Pe}});var r={};n.r(r),n.d(r,{Decoder:function(){return _e},Encoder:function(){return xe},PacketType:function(){return we},protocol:function(){return be}});var i=n(5893),o=n(7757),s=n.n(o),a=n(7329),u=n(2137),c=n(7294),l=n(950);const d=Object.create(null);d.open="0",d.close="1",d.ping="2",d.pong="3",d.message="4",d.upgrade="5",d.noop="6";
1const f=Object.create(null);Object.keys(d).forEach((e=>{f[d[e]]=e}));const h={type:"error",data:"parser error"},p="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),v="function"===typeof ArrayBuffer,g=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m=({type:e,data:t},n,r)=>p&&t instanceof Blob?n?r(t):y(t,r):v&&(t instanceof ArrayBuffer||g(t))?n?r(t):y(new Blob([t]),r):r(d[e]+(t||"")),y=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function b(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let w;const x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Me=0;Me<x.length;Me++)E[x.charCodeAt(Me)]=Me;const _="function"===typeof ArrayBuffer,C=(e,t)=>{if("string"!==typeof e)return{type:"message",data:S(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:k(e.substring(1),t)};return f[n]?e.length>1?{type:f[n],data:e.substring(1)}:{type:f[n]}:h},k=(e,t)=>{if(_){const n=(e=>{let t,n,r,i,o,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),l=new Uint8Array(c);for(t=0;t<a;t+=4)n=E[e.charCodeAt(t)],r=E[e.charCodeAt(t+1)],i=E[e.charCodeAt(t+2)],o=E[e.charCodeAt(t+3)],l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&o;return c})(e);return S(n,t)}return{base64:!0,data:e}},S=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},O=String.fromCharCode(30);function T(){return new TransformStream({transform(e,t){!function(e,t){p&&e.data instanceof Blob?e.data.arrayBuffer().then(b).then(t):v&&(e.data instanceof ArrayBuffer||g(e.data))?t(b(e.data)):m(e,!1,(e=>{w||(w=new TextEncoder),t(w.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}})}let I;function j(e){return e.reduce(((e,t)=>e+t.length),0)}function N(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function R(e){if(e)return function(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}(e)}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};const A="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function P(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const L=A.setTimeout,M=A.clearTimeout;function U(e,t){t.useNativeTimers?(e.setTimeoutFn=L.bind(A),e.clearTimeoutFn=M.bind(A)):(e.setTimeoutFn=A.setTimeout.bind(A),e.clearTimeoutFn=A.clearTimeout.bind(A))}
1class D extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class B extends R{constructor(e){super(),this.writable=!1,U(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new D(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=C(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const F="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),q={};let V,H=0,z=0;function Z(e){let t="";do{t=F[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Y(){const e=Z(+new Date);return e!==V?(H=0,V=e):e+"."+Z(H++)}for(;z<64;z++)q[F[z]]=z;let W=!1;try{W="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Le){}const $=W;function G(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||$))return new XMLHttpRequest}catch(n){}if(!t)try{return new(A[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function K(){}const J=null!=new G({xdomain:!1}).responseType;class Q extends R{constructor(e,t){super(),U(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=P(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new G(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((()=>{this.onError(r)}),0)}"undefined"!==typeof document&&(this.index=Q.requestsCount++,Q.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=K,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete Q.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Q.requestsCount=0,Q.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",X);else if("function"===typeof addEventListener){addEventListener("onpagehide"in A?"pagehide":"unload",X,!1)}function X(){for(let e in Q.requests)Q.requests.hasOwnProperty(e)&&Q.requests[e].abort()}const ee="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),te=A.WebSocket||A.MozWebSocket;n(8764).Buffer;const ne="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const re={websocket:class extends B{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}
1doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=ne?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ne?new te(e,t,n):t?new te(e,t):new te(e)}catch(Le){return this.emitReserved("error",Le)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;m(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(t){}r&&ee((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Y()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!te}},webtransport:class extends B{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){I||(I=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(0===r){if(j(n)<1)break;const e=N(n,1);o=128===(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(j(n)<2)break;const e=N(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(j(n)<8)break;const e=N(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){a.enqueue(h);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(j(n)<i)break;const e=N(n,i);a.enqueue(C(o?e:I.decode(e),t)),r=0}if(0===i||i>e){a.enqueue(h);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=T();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const i=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),i())})).catch((e=>{}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this.writer.write(n).then((()=>{r&&ee((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends B{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=J&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(O),r=[];for(let i=0;i<n.length;i++){const e=C(n[i],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{m(e,!1,(e=>{r[o]=e,++i===n&&t(r.join(O))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Y()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Q(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>
1{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},ie=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function se(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ie.exec(e||""),o={},s=14;for(;s--;)o[oe[s]]=i[s]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}class ae extends R{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=se(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=se(t.host).host),U(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let e=n[r].split("=");
1t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new re[e](n)}open(){let e;if(this.opts.rememberUpgrade&&ae.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;ae.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ae.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,c(),t.close(),t=null)}const o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function s(){o("transport closed")}function a(){o("socket closed")}function u(e){t&&e.name!==t.name&&i()}const c=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",s
1),this.off("close",a),this.off("upgrading",u)};t.once("open",r),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",ae.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){ae.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}ae.protocol=4;ae.protocol;const ue="function"===typeof ArrayBuffer,ce=Object.prototype.toString,le="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===ce.call(Blob),de="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===ce.call(File);function fe(e){return ue&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||le&&e instanceof Blob||de&&e instanceof File}function he(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(he(e[t]))return!0;return!1}if(fe(e))return!0;
vendor: 4,961 bytes, line 1
1if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return he(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&he(e[n]))return!0;return!1}function pe(e){const t=[],n=e.data,r=e;return r.data=ve(n,t),r.attachments=t.length,{packet:r,buffers:t}}function ve(e,t){if(!e)return e;if(fe(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=ve(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ve(e[r],t));return n}return e}function ge(e,t){return e.data=me(e.data,t),delete e.attachments,e}function me(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=me(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=me(e[n],t));return e}const ye=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],be=5;var we;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(we||(we={}));class xe{constructor(e){this.replacer=e}encode(e){return e.type!==we.EVENT&&e.type!==we.ACK||!he(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===we.EVENT?we.BINARY_EVENT:we.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==we.BINARY_EVENT&&e.type!==we.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=pe(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}class _e extends R{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===we.BINARY_EVENT;n||t.type===we.BINARY_ACK?(t.type=n?we.EVENT:we.ACK,this.reconstructor=new Ce(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!fe(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===we[n.type])throw new Error("unknown packet type "+n.type);if(n.type===we.BINARY_EVENT||n.type===we.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!_e.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case we.CONNECT:return Ee(t);case we.DISCONNECT:return void 0===t;case we.CONNECT_ERROR:return"string"===typeof t||Ee(t);case we.EVENT:case we.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===ye.indexOf(t[0]));case we.ACK:case we.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Ce{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=ge(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ke(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Se=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Oe extends R{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ke(e,"open",this.onopen.bind(this)),ke(e,"packet",this.onpacket.b
1ind(this)),ke(e,"error",this.onerror.bind(this)),ke(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(Se.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:we.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"===typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:we.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case we.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case we.EVENT:case we.BINARY_EVENT:this.onevent(e);break;case we.ACK:case we.BINARY_ACK:this.onack(e);break;case we.DISCONNECT:this.ondisconnect();break;case we.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:we.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}
vendor: 5,156 bytes, line 1
1destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:we.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function Te(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Te.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Te.prototype.reset=function(){this.attempts=0},Te.prototype.setMin=function(e){this.ms=e},Te.prototype.setMax=function(e){this.max=e},Te.prototype.setJitter=function(e){this.jitter=e};class Ie extends R{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,U(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new Te({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||r;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ae(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=ke(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=ke(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ke(e,"ping",this.onping.bind(this)),ke(e,"data",this.ondata.bind(this)),ke(e,"error",this.onerror.bind(this)),ke(e,"close",this.onclose.bind(this)),ke(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){ee((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Oe(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;
1n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const je={};function Ne(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=se(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=je[i]&&o in je[i].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new Ie(r,t):(je[i]||(je[i]=new Ie(r,t)),a=je[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Ne,{Manager:Ie,Socket:Oe,io:Ne,connect:Ne});var Re=c.createContext({}),Ae=function(e){var t=e.children,n=(0,c.useState)(!1),r=n[0],o=n[1],d=(0,c.useRef)(Ne("https://api.indexapp.xyz",{autoConnect:!1})),f=(0,l.LY)().getAuthToken;function h(){return(h=(0,u.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:t=e.sent,d.current.auth={token:t},d.current.connect();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){d.current&&!d.current.disconnected&&d.current.disconnect()}(0,c.useEffect)((function(){return p()}),[]);var v=(0,c.useState)([]),g=v[0],m=v[1],y=(0,c.useState)(!1),b=y[0],w=y[1],x=(0,c.useState)(null),E=x[0],_=x[1];(0,c.useEffect)((function(){if(d.current)return d.current.on("connect",e),d.current.on("disconnect",t),d.current.on("prompt_receive_message",n),function(){d.current.off("connect",e),d.current.off("disconnect",t),d.current.off("prompt_receive_message",n)};function e(){o(!0)}function t(){o(!1),_(null)}function n(e){m((function(t){return[].concat((0,a.Z)(t),[e])})),_(e),w(!1)}}),[null===d||void 0===d?void 0:d.current]);var C=function(){var e=(0,u.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d.current){e.next=2;break}return e.abrupt("return");case 2:if(!b){e.next=4;break}return e.abrupt("return");case 4:w(!0),d.current.timeout(5e3).emit("prompt_send_message",{prompt:t});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,i.jsx)(Re.Provider,{value:{connect:function(){return h.apply(this,arguments)},disconnect:p,sendPromptMessage:C,promptReceivedMessages:g,promptAnswer:E,isPromptProcessing:b,isConnected:r},children:t})},Pe=function(){return c.useContext(Re)}},6781:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var r=n(5893),i=n(6156),o=n(9008),s=n(950),a=n(124),u=n(7294),c=n(1163),l=n(7014),d=["/sign-in","/sign-up"],f=["/search","/admin-dashboard"],h=["/","/athenticate","/error"],p=function(e){var t=e.children,n=(0,u.useState)(!1),i=n[0],o=n[1],a=(0,s.LY)(),p=(0,c.useRouter)(),v=setTimeout((function(){return o(!0)}),1e3);if(a.fetching&&!i)return(0,r.jsx)(r.Fragment,{});if(a.fetching)return(0,r.jsx)("div",{className:"min-h-screen flex flex-col justify-center items-center animate-fade-in-up",children:(0,r.jsx)("div",{className:"animate-pulse",children:(0,r.jsx)(l.J,{width:"36",height:"36"})})});clearTimeout(v);var g=!!a.user;return!h.includes(p.pathname)&&(g&&d.filter((function(e){return e.startsWith(p.pathname)})).length>0||!g&&f.filter((function(e){return e.startsWith(p.pathname)})).length>0)?(p.push("/error?code=103&message=".concat(encodeURIComponent("Route authentication error"))),(0,r.jsx)(r.Fragment,{})):(0,r.jsx)(r.Fragment,{children:t})},v=(n(647),n(5518)),g=n(5543),m=n(7757),y=n.n(m),b=n(2137),w=n(6695),x=n(255),E=u.createContext({}),_=function(e){var t=e.children,n=(0,x.d)(["checkout_success","checkout_session_id"]),i=(0,g.BV)().showModal,o=(0,s.LY)();(0,u.useEffect)((function(){n.has("checkout_success")&&parseInt(n.get("checkout_success"))&&(0,b.Z)(y().mark((function e(){var t,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=n.get("checkout_session_id")){e.next=4;break}throw(0,w.gz)(w._Y.CHECKOUT_SESSION_STATUS_ERROR,"We could not val
1idate your checkout session id. Please try refreshing and if the issue persists contact support.");case 4:return e.next=6,o.getCheckoutSessionStatus(t);case 6:if("complete"!==(r=e.sent).status||"paid"!==r.payment_status){e.next=12;break}i("index-pro-success"),o.getUserDetails(),e.next=13;break;case 12:throw(0,w.gz)(w._Y.CHECKOUT_SESSION_STATUS_ERROR,"We could not validate your checkout session status. Please try refreshing and if the issue persists contact support.");case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),c.default.push("/error?code=500&message=".concat(encodeURIComponent((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Internal error")));case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))()}),[]);var a=(0,u.useState)(!1),l=a[0],d=a[1];return(0,r.jsx)(E.Provider,{value:{subscriptions:l,showSubscriptions:function(e){return d(e)}},children:t})},C=n(3545),k=n(4855),S=n(2142),O=n(6032);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(e){var t=e.Component,n=e.pageProps;return(0,S.kP)(),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.XM,{children:(0,r.jsx)(s.Xb,{children:(0,r.jsxs)(C.Xd,{children:[(0,r.jsxs)(o.default,{children:[(0,r.jsx)("title",{children:"Index +"}),(0,r.jsx)("meta",{name:"description",content:" An extension that indexes entire web pages on request, storing them for you to search for later. No tagging, no folders, no organising. Just click, index and find later."}),(0,r.jsx)("meta",{name:"keywords",content:"index, extension, bookmarks"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,r.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#7252f1"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("script",{src:"https://kit.fontawesome.com/0df64737dc.js",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"}),(0,r.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu:wght@500&display=swap",rel:"stylesheet"})]}),(0,r.jsx)(p,{children:(0,r.jsx)(g.gO,{children:(0,r.jsx)(_,{children:(0,r.jsx)(k.Nv,{children:(0,r.jsx)(a.Sv,{children:(0,r.jsx)(O.PU,{children:(0,r.jsx)(t,I({},n))})})})})})})]})})})})}},5343:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}},6695:function(e,t,n){"use strict";n.d(t,{_Y:function(){return r},gz:function(){return o}});var r,i=n(4699);!function(e){e.NO_USER_FOUND="no_user_found",e.PAGE_EXTENSION_NOT_SUPPORTED="page_extension_not_supported",e.PAGE_TITLE_NOT_SUPPORTED="page_title_not_supported",e.PAGE_URL_NOT_SUPPORTED="page_url_not_supported",e.PAGE_BODY_NOT_SUPPORTED="page_body_not_supported",e.DOM_GET_CONTENT_ERROR="dom_get_content_error",e.API_CLIENT_SERVICE_WHO_AM_I="api_client_service_who_am_i",e.API_CLIENT_SERVICE_LOGIN="api_client_service_login",e.API_CLIENT_SERVICE_LOGOUT="api_client_service_logout",e.API_CLIENT_SERVICE_REGISTER="api_client_service_register",e.API_CLIENT_SERVICE_GET_USERS="api_client_service_get_users",e.API_CLIENT_SERVICE_USER_DETAILS="api_client_service_user_details",e.API_CLIENT_SERVICE_USER_DETAILS_BY_USER_ID="api_client_service_user_details_by_user_id",e.API_CLIENT_SERVICE_CREATE_ENTRY="api_client_service_create_entry",e.API_CLIENT_SERVICE_DELETE_ENTRY="api_client_service_delete_entry",e.API_CLIENT_SERVICE_LIST_ENTRIES="api_client_service_list_entr
1ies",e.API_CLIENT_SERVICE_LIST_ENTRIES_BY_USER_ID="api_client_service_list_entries_by_user_id",e.API_CLIENT_SERVICE_SEARCH_ENTRIES="api_client_service_search_entries",e.API_CLIENT_SERVICE_GET_VALID_ACCESS_CODE="api_client_service_get_valid_access_code",e.API_CLIENT_SERVICE_GET_ACCESS_CODES="api_client_service_get_access_codes",e.API_CLIENT_SERVICE_CREATE_ACCESS_CODE="api_client_service_create_acces_code",e.API_CLIENT_SERVICE_FORGOT_PASSWORD="api_client_service_forgot_password",e.API_CLIENT_SERVICE_RESET_FORGOTTEN_PASSWORD="api_client_service_reset_forgotten_password",e.API_CLIENT_SERVICE_GET_USER_PORTAL="api_client_service_get_user_portal",e.API_CLIENT_SERVICE_CREATE_CHECKOUT="api_client_service_create_checkout",e.API_CLIENT_SERVICE_GET_CHECKOUT_SESSION="api_client_service_get_checkout_session",e.API_CLIENT_SERVICE_DELETE_USER="api_client_service_delete_user",e.CHECKOUT_SESSION_STATUS_ERROR="checkout_session_status_error",e.CHECKOUT_SUCCESS_ERROR="checkout_success_error",e.AUTHENTICATION_REDIRECT="authentication_redirect",e.RESET_PASSWORD_TOKEN_NOT_PRESENT="reset_password_token_not_present",e.ADMIN_AUTHENTICATION_ERROR="admin_authentication_error"}(r||(r={}));new Map(Object.entries(r).map((function(e){var t=(0,i.Z)(e,2),n=t[0];return[t[1],n]})));var o=function(e,t,n){var r=new Error(t);return r.name=e,n&&(r.stack=n),r}},6224:function(e,t,n){"use strict";var r;n.d(t,{k:function(){return r},X:function(){return i}}),function(e){e.IOS="IOS",e.CHROME="CHROME",e.UNKNOWN_BROWSER="UNKNOWN_BROWSER"}(r||(r={}));var i=function(){var e,t,n,i,o;return null!==(e=window)&&void 0!==e&&null!==(t=e.webkit)&&void 0!==t&&null!==(n=t.messageHandlers)&&void 0!==n&&null!==(i=n.indexIOSJSmessageHandler)&&void 0!==i&&i.postMessage?r.IOS:null!==(o=window)&&void 0!==o&&o.chrome?r.CHROME:r.UNKNOWN_BROWSER}},9615:function(e,t,n){"use strict";n.d(t,{x:function(){return s},D:function(){return a}});var r=n(6156),i=n(7294);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s=function(){var e=(0,i.useState)(null),t=e[0],n=e[1],r="",o="";function s(){n(!document[r])}return"undefined"!==typeof document.hidden?(r="hidden",o="visibilitychange"):"undefined"!==typeof document.msHidden?(r="msHidden",o="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(r="webkitHidden",o="webkitvisibilitychange"),(0,i.useEffect)((function(){return"undefined"===typeof document.addEventListener||void 0===r?console.log("This feature requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API."):document.addEventListener(o,s,!1),function(){document.removeEventListener(o,s,!1)}}),[]),t};function a(e,t){var n=(0,i.useRef)(t);return(0,i.useEffect)((function(){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);e(null===i||void 0===i?void 0:i.current),n.current=t}),[t]),null===n||void 0===n?void 0:n.current}},6422:function(e,t,n){"use strict";n.d(t,{p:function(){return f}});var r=n(7757),i=n.n(r),o=n(2137);function s(e){return a.apply(this,arguments)}function a(){return(a=(0,o.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){e(localStorage.getItem(t))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,t){return c.apply(this,arguments)}function c(){return(c=(0,o.Z)(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){localStorage.setItem(t,n),e(void 0)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return(d=(0,o.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){localStorage.removeItem(t),e(void 0)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var f=function(e){var t=e;return{get:function(){var e=(0,o.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),set:function(){var e=(0,o.Z)(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),remove:function(){var e=(0,o.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}},4353:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(8094),i=(0,n(6422).p)(r.CE)},2142:function(e,t,n){"use strict";n.d(t,{U3:function(){return a},kP:function(){return u},hF:function(){return c},j:function(){return l}});var r=n(6156),i=n(1604),o=n(6224);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var a={SIGN_UP:"Sign Up",SIGN_IN:"Sign In",ENTRY_CLICK:"Entry Click",ENTRY_CONTEXT_CLICK:"Entry Context Click"};function u(e){i.S1("d10305b13180ccde472e62cbf4a1f26b",null!==e&&void 0!==e?e:void 0,{defaultTracking:{sessions:!0,pageViews:!0,formInteractions:!0,fileDownloads:!0}
1})}function c(e){i.Iv(e)}function l(e,t){var n=(0,o.X)();i.j(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({platform:n},t))}},255:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(7329),i=function(e){var t=window.location.search;if(""!==t&&t){var n=new URLSearchParams(t),i=e.reduce((function(e,t){var i=n.get(t);return i?[].concat((0,r.Z)(e),[[t,i]]):e}),[]);return new Map(i)}return new Map}},6363:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6781)}])},647:function(){},9008:function(e,t,n){e.exports=n(2775)},1163:function(e,t,n){e.exports=n(4651)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(6363),t(4651)}));var n=e.O();_N_E=n}]);

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