@flarehr/apollo-benefits 2.12.621 → 2.12.623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,805 +0,0 @@
1
- import{g as gr,c as J,a as Jh,i as md,b as Wa}from"./lodash-5d893f8c.js";const po={type:null,entityIds:null,skip:!1,payload:null};let Pl=!1;function bE(){Pl=!1}function Gr(e,t,n){Qe(e,t,n),Pl=!0}function Qe(e,t,n){Pl===!1&&(po.type=e,po.entityIds=t,po.payload=n)}function _E(e,t){return function(n,r,i){const a=i.value;return i.value=function(...o){return Gr(e,t),a.apply(this,o)},i}}function ha(e,t){return e.hasOwnProperty(t)}function Gt(e){return Array.isArray(e)}function Zh(e){return e.hasOwnProperty("active")}function em(e){return Gt(e)}function tm({active:e,ids:t,entities:n}){return em(e)?EE(e,t):ha(n,e)===!1?null:e}function EE(e,t){const n=e.filter(r=>t.indexOf(r)>-1);return n.length===e.length?e:n}function SE({state:e,entities:t,idKey:n,options:r={},preAddEntity:i}){let a={},o=[],u=!1;for(const s of t)if(ha(e.entities,s[n])===!1){const c=i(s),f=c[n];a[f]=c,r.prepend?o.unshift(f):o.push(f),u=!0}return u?{newState:{...e,entities:{...e.entities,...a},ids:r.prepend?[...o,...e.ids]:[...e.ids,...o]},newIds:o}:null}function jt(e){return e==null}function dt(e){return jt(e)?[]:Array.isArray(e)?e:[e]}var cc=function(e,t){return cc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cc(e,t)};function nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qe=function(){return qe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},qe.apply(this,arguments)};function Nl(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function nn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function wE(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(f){try{c(r.next(f))}catch(l){o(l)}}function s(f){try{c(r.throw(f))}catch(l){o(l)}}function c(f){f.done?a(f.value):i(f.value).then(u,s)}c((r=r.apply(e,t||[])).next())})}function nm(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(f){return s([c,f])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Jr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 Fn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Un(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Wr(e){return this instanceof Wr?(this.v=e,this):new Wr(e)}function OE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(d){r[d]&&(i[d]=function(p){return new Promise(function(v,h){a.push([d,p,v,h])>1||u(d,p)})})}function u(d,p){try{s(r[d](p))}catch(v){l(a[0][3],v)}}function s(d){d.value instanceof Wr?Promise.resolve(d.value.v).then(c,f):l(a[0][2],d)}function c(d){u("next",d)}function f(d){u("throw",d)}function l(d,p){d(p),a.shift(),a.length&&u(a[0][0],a[0][1])}}function TE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Jr=="function"?Jr(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(u,s){o=e[a](o),i(u,s,o.done,o.value)})}}function i(a,o,u,s){Promise.resolve(s).then(function(c){a({value:c,done:u})},o)}}function le(e){return typeof e=="function"}function rm(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qu=rm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
- `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Lo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Pa=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var u=Jr(o),s=u.next();!s.done;s=u.next()){var c=s.value;c.remove(this)}}catch(h){t={error:h}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(le(f))try{f()}catch(h){a=h instanceof Qu?h.errors:[h]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var d=Jr(l),p=d.next();!p.done;p=d.next()){var v=p.value;try{gd(v)}catch(h){a=a??[],h instanceof Qu?a=Un(Un([],Fn(a)),Fn(h.errors)):a.push(h)}}}catch(h){r={error:h}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(a)throw new Qu(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)gd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Lo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Lo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),im=Pa.EMPTY;function am(e){return e instanceof Pa||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function gd(e){le(e)?e():e.unsubscribe()}var om={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lc={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=lc.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Un([e,t],Fn(n))):setTimeout.apply(void 0,Un([e,t],Fn(n)))},clearTimeout:function(e){var t=lc.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function um(e){lc.setTimeout(function(){throw e})}function fc(){}function vo(e){e()}var Ll=function(e){nt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,am(n)&&n.add(r)):r.destination=RE,r}return t.create=function(n,r,i){return new dc(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pa),AE=Function.prototype.bind;function Ju(e,t){return AE.call(e,t)}var CE=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){za(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){za(r)}else za(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){za(n)}},e}(),dc=function(e){nt(t,e);function t(n,r,i){var a=e.call(this)||this,o;if(le(n)||!n)o={next:n??void 0,error:r??void 0,complete:i??void 0};else{var u;a&&om.useDeprecatedNextContext?(u=Object.create(n),u.unsubscribe=function(){return a.unsubscribe()},o={next:n.next&&Ju(n.next,u),error:n.error&&Ju(n.error,u),complete:n.complete&&Ju(n.complete,u)}):o=n}return a.destination=new CE(o),a}return t}(Ll);function za(e){um(e)}function IE(e){throw e}var RE={closed:!0,next:fc,error:IE,complete:fc},Ml=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function gi(e){return e}function PE(e){return e.length===0?gi:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var et=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,a=LE(t)?t:new dc(t,n,r);return vo(function(){var o=i,u=o.operator,s=o.source;a.add(u?u.call(a,s):s?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=yd(n),new n(function(i,a){var o=new dc({next:function(u){try{t(u)}catch(s){a(s),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ml]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return PE(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=yd(t),new t(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},e.create=function(t){return new e(t)},e}();function yd(e){var t;return(t=e??om.Promise)!==null&&t!==void 0?t:Promise}function NE(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}function LE(e){return e&&e instanceof Ll||NE(e)&&am(e)}function ME(e){return le(e==null?void 0:e.lift)}function Ct(e){return function(t){if(ME(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function rt(e,t,n,r,i){return new kE(e,t,n,r,i)}var kE=function(e){nt(t,e);function t(n,r,i,a,o,u){var s=e.call(this,n)||this;return s.onFinalize=o,s.shouldUnsubscribe=u,s._next=r?function(c){try{r(c)}catch(f){n.error(f)}}:e.prototype._next,s._error=a?function(c){try{a(c)}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Ll),DE=rm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),sn=function(e){nt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new bd(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new DE},t.prototype.next=function(n){var r=this;vo(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Jr(r.currentObservers),u=o.next();!u.done;u=o.next()){var s=u.value;s.next(n)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;vo(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;vo(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,u=i.observers;return a||o?im:(this.currentObservers=null,u.push(n),new Pa(function(){r.currentObservers=null,Lo(u,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},t.prototype.asObservable=function(){var n=new et;return n.source=this,n},t.create=function(n,r){return new bd(n,r)},t}(et),bd=function(e){nt(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:im},t}(sn),Mo=function(e){nt(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(sn),kl={now:function(){return(kl.delegate||Date).now()},delegate:void 0},sm=function(e){nt(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=kl);var a=e.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return t.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,u=r._timestampProvider,s=r._windowTime;i||(a.push(n),!o&&a.push(u.now()+s)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,u=o.slice(),s=0;s<u.length&&!n.closed;s+=a?1:2)n.next(u[s]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,a=n._buffer,o=n._infiniteTimeWindow,u=(o?1:2)*r;if(r<1/0&&u<a.length&&a.splice(0,a.length-u),!o){for(var s=i.now(),c=0,f=1;f<a.length&&a[f]<=s;f+=2)c=f;c&&a.splice(0,c+1)}},t}(sn),FE=function(e){nt(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(Pa),ko={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ko.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Un([e,t],Fn(n))):setInterval.apply(void 0,Un([e,t],Fn(n)))},clearInterval:function(e){var t=ko.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},UE=function(e){nt(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),ko.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&ko.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,a;try{this.work(n)}catch(o){i=!0,a=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,a=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Lo(a,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(FE),_d=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=kl.now,e}(),jE=function(e){nt(t,e);function t(n,r){r===void 0&&(r=_d.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(_d),du=new jE(UE),$E=du,xE=new et(function(e){return e.complete()});function cm(e){return e&&le(e.schedule)}function lm(e){return e[e.length-1]}function BE(e){return le(lm(e))?e.pop():void 0}function Dl(e){return cm(lm(e))?e.pop():void 0}var Fl=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function fm(e){return le(e==null?void 0:e.then)}function dm(e){return le(e[Ml])}function pm(e){return Symbol.asyncIterator&&le(e==null?void 0:e[Symbol.asyncIterator])}function vm(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function HE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var hm=HE();function mm(e){return le(e==null?void 0:e[hm])}function gm(e){return OE(this,arguments,function(){var n,r,i,a;return nm(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Wr(n.read())];case 3:return r=o.sent(),i=r.value,a=r.done,a?[4,Wr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Wr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function ym(e){return le(e==null?void 0:e.getReader)}function vn(e){if(e instanceof et)return e;if(e!=null){if(dm(e))return KE(e);if(Fl(e))return GE(e);if(fm(e))return WE(e);if(pm(e))return bm(e);if(mm(e))return zE(e);if(ym(e))return qE(e)}throw vm(e)}function KE(e){return new et(function(t){var n=e[Ml]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function GE(e){return new et(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function WE(e){return new et(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,um)})}function zE(e){return new et(function(t){var n,r;try{for(var i=Jr(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function bm(e){return new et(function(t){YE(e,t).catch(function(n){return t.error(n)})})}function qE(e){return bm(gm(e))}function YE(e,t){var n,r,i,a;return wE(this,void 0,void 0,function(){var o,u;return nm(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=TE(e),s.label=1;case 1:return[4,n.next()];case 2:if(r=s.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=s.sent(),i={error:u},[3,11];case 6:return s.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function rn(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function _m(e,t){return t===void 0&&(t=0),Ct(function(n,r){n.subscribe(rt(r,function(i){return rn(r,e,function(){return r.next(i)},t)},function(){return rn(r,e,function(){return r.complete()},t)},function(i){return rn(r,e,function(){return r.error(i)},t)}))})}function Em(e,t){return t===void 0&&(t=0),Ct(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function VE(e,t){return vn(e).pipe(Em(t),_m(t))}function XE(e,t){return vn(e).pipe(Em(t),_m(t))}function QE(e,t){return new et(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function JE(e,t){return new et(function(n){var r;return rn(n,t,function(){r=e[hm](),rn(n,t,function(){var i,a,o;try{i=r.next(),a=i.value,o=i.done}catch(u){n.error(u);return}o?n.complete():n.next(a)},0,!0)}),function(){return le(r==null?void 0:r.return)&&r.return()}})}function Sm(e,t){if(!e)throw new Error("Iterable cannot be null");return new et(function(n){rn(n,t,function(){var r=e[Symbol.asyncIterator]();rn(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function ZE(e,t){return Sm(gm(e),t)}function eS(e,t){if(e!=null){if(dm(e))return VE(e,t);if(Fl(e))return QE(e,t);if(fm(e))return XE(e,t);if(pm(e))return Sm(e,t);if(mm(e))return JE(e,t);if(ym(e))return ZE(e,t)}throw vm(e)}function yi(e,t){return t?eS(e,t):vn(e)}function Ul(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Dl(e);return yi(e,n)}function wm(e){return!!e&&(e instanceof et||le(e.lift)&&le(e.subscribe))}function tS(e){return e instanceof Date&&!isNaN(e)}function at(e,t){return Ct(function(n,r){var i=0;n.subscribe(rt(r,function(a){r.next(e.call(t,a,i++))}))})}var nS=Array.isArray;function rS(e,t){return nS(t)?e.apply(void 0,Un([],Fn(t))):e(t)}function Om(e){return at(function(t){return rS(e,t)})}var iS=Array.isArray,aS=Object.getPrototypeOf,oS=Object.prototype,uS=Object.keys;function sS(e){if(e.length===1){var t=e[0];if(iS(t))return{args:t,keys:null};if(cS(t)){var n=uS(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}function cS(e){return e&&typeof e=="object"&&aS(e)===oS}function lS(e,t){return e.reduce(function(n,r,i){return n[r]=t[i],n},{})}function fS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Dl(e),r=BE(e),i=sS(e),a=i.args,o=i.keys;if(a.length===0)return yi([],n);var u=new et(dS(a,n,o?function(s){return lS(o,s)}:gi));return r?u.pipe(Om(r)):u}function dS(e,t,n){return n===void 0&&(n=gi),function(r){Ed(t,function(){for(var i=e.length,a=new Array(i),o=i,u=i,s=function(f){Ed(t,function(){var l=yi(e[f],t),d=!1;l.subscribe(rt(r,function(p){a[f]=p,d||(d=!0,u--),u||r.next(n(a.slice()))},function(){--o||r.complete()}))},r)},c=0;c<i;c++)s(c)},r)}}function Ed(e,t,n){e?rn(n,e,t):t()}function pS(e,t,n,r,i,a,o,u){var s=[],c=0,f=0,l=!1,d=function(){l&&!s.length&&!c&&t.complete()},p=function(h){return c<r?v(h):s.push(h)},v=function(h){a&&t.next(h),c++;var _=!1;vn(n(h,f++)).subscribe(rt(t,function(g){i==null||i(g),a?p(g):t.next(g)},function(){_=!0},void 0,function(){if(_)try{c--;for(var g=function(){var b=s.shift();o?rn(t,o,function(){return v(b)}):v(b)};s.length&&c<r;)g();d()}catch(b){t.error(b)}}))};return e.subscribe(rt(t,p,function(){l=!0,d()})),function(){u==null||u()}}function pu(e,t,n){return n===void 0&&(n=1/0),le(t)?pu(function(r,i){return at(function(a,o){return t(r,a,i,o)})(vn(e(r,i)))},n):(typeof t=="number"&&(n=t),Ct(function(r,i){return pS(r,i,e,n)}))}function vS(e){return e===void 0&&(e=1/0),pu(gi,e)}function hS(){return vS(1)}function mS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return hS()(yi(e,Dl(e)))}var gS=["addListener","removeListener"],yS=["addEventListener","removeEventListener"],bS=["on","off"];function Sd(e,t,n,r){if(le(n)&&(r=n,n=void 0),r)return Sd(e,t,n).pipe(Om(r));var i=Fn(SS(e)?yS.map(function(u){return function(s){return e[u](t,s,n)}}):_S(e)?gS.map(wd(e,t)):ES(e)?bS.map(wd(e,t)):[],2),a=i[0],o=i[1];if(!a&&Fl(e))return pu(function(u){return Sd(u,t,n)})(vn(e));if(!a)throw new TypeError("Invalid event target");return new et(function(u){var s=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return u.next(1<c.length?c:c[0])};return a(s),function(){return o(s)}})}function wd(e,t){return function(n){return function(r){return e[n](t,r)}}}function _S(e){return le(e.addListener)&&le(e.removeListener)}function ES(e){return le(e.on)&&le(e.off)}function SS(e){return le(e.addEventListener)&&le(e.removeEventListener)}function Tm(e,t,n){e===void 0&&(e=0),n===void 0&&(n=$E);var r=-1;return t!=null&&(cm(t)?n=t:r=t),new et(function(i){var a=tS(e)?+e-n.now():e;a<0&&(a=0);var o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},a)})}function vu(e,t){return Ct(function(n,r){var i=0;n.subscribe(rt(r,function(a){return e.call(t,a,i++)&&r.next(a)}))})}function wS(e){return Ct(function(t,n){var r=!1,i=null,a=null,o=!1,u=function(){if(a==null||a.unsubscribe(),a=null,r){r=!1;var c=i;i=null,n.next(c)}o&&n.complete()},s=function(){a=null,o&&n.complete()};t.subscribe(rt(n,function(c){r=!0,i=c,a||vn(e(c)).subscribe(a=rt(n,u,s))},function(){o=!0,(!r||!a||a.closed)&&n.complete()}))})}function OS(e,t){return t===void 0&&(t=du),wS(function(){return Tm(e,t)})}function cU(e,t){return t===void 0&&(t=du),Ct(function(n,r){var i=null,a=null,o=null,u=function(){if(i){i.unsubscribe(),i=null;var c=a;a=null,r.next(c)}};function s(){var c=o+e,f=t.now();if(f<c){i=this.schedule(void 0,c-f),r.add(i);return}u()}n.subscribe(rt(r,function(c){a=c,o=t.now(),i||(i=t.schedule(s,e),r.add(i))},function(){u(),r.complete()},void 0,function(){a=i=null}))})}function pc(e){return e<=0?function(){return xE}:Ct(function(t,n){var r=0;t.subscribe(rt(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function TS(){return Ct(function(e,t){e.subscribe(rt(t,fc))})}function AS(e){return at(function(){return e})}function Am(e,t){return t?function(n){return mS(t.pipe(pc(1),TS()),n.pipe(Am(e)))}:pu(function(n,r){return vn(e(n,r)).pipe(pc(1),AS(n))})}function CS(e,t){t===void 0&&(t=du);var n=Tm(e,t);return Am(function(){return n})}function ma(e,t){return t===void 0&&(t=gi),e=e??IS,Ct(function(n,r){var i,a=!0;n.subscribe(rt(r,function(o){var u=t(o);(a||!e(i,u))&&(a=!1,i=u,r.next(o))}))})}function IS(e,t){return e===t}function lU(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return at(function(r){for(var i=r,a=0;a<n;a++){var o=i==null?void 0:i[e[a]];if(typeof o<"u")i=o;else return}return i})}function RS(e){return vu(function(t,n){return e<=n})}function ho(e,t){return Ct(function(n,r){var i=null,a=0,o=!1,u=function(){return o&&!i&&r.complete()};n.subscribe(rt(r,function(s){i==null||i.unsubscribe();var c=0,f=a++;vn(e(s,f)).subscribe(i=rt(r,function(l){return r.next(t?t(s,l,f,c++):l)},function(){i=null,u()}))},function(){o=!0,u()}))})}function fU(e,t,n){var r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ct(function(i,a){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var u=!0;i.subscribe(rt(a,function(s){var c;(c=r.next)===null||c===void 0||c.call(r,s),a.next(s)},function(){var s;u=!1,(s=r.complete)===null||s===void 0||s.call(r),a.complete()},function(s){var c;u=!1,(c=r.error)===null||c===void 0||c.call(r,s),a.error(s)},function(){var s,c;u&&((s=r.unsubscribe)===null||s===void 0||s.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):gi}const PS="id";function Xt(e){return Gt(e)?e.length===0:!1}function Me(e){return typeof e=="function"}function NS(){return ma((e,t)=>e===t?!0:!Gt(e)||!Gt(t)?!1:Xt(e)&&Xt(t)?!0:e.length!==t.length?!1:t.some((r,i)=>e[i]!==r)===!1)}function jl(e){const t=typeof e;return e!=null&&(t=="object"||t=="function")}function dU(e){return fS(e).pipe(OS(0))}let Cm={resettable:!1,ttl:null,producerFn:void 0};function Od(){return Cm}function LS(){return Cm.producerFn}function Do(e){return jt(e)===!1}const Im=new sn,Rm=new sm(50,5e3),MS=new sn;function kS(e){Im.next(e)}function DS(e){Rm.next(e)}function FS(e,t){MS.next({storeName:e,action:t})}const hu=typeof window<"u",US=!hu,Td=()=>{try{return typeof localStorage<"u"}catch{return!1}},jS=()=>{try{return typeof sessionStorage<"u"}catch{return!1}},Wt={},Pm={};hu&&(window.$$stores=Wt,window.$$queries=Pm);var Fo;(function(e){e.ASC="asc",e.DESC="desc"})(Fo||(Fo={}));function $S(e,t=Fo.ASC){return function(n,r){if(!n.hasOwnProperty(e)||!r.hasOwnProperty(e))return 0;const i=typeof n[e]=="string"?n[e].toUpperCase():n[e],a=typeof r[e]=="string"?r[e].toUpperCase():r[e];let o=0;return i>a?o=1:i<a&&(o=-1),t==Fo.DESC?o*-1:o}}function xS(e,t){let n=[];const{ids:r,entities:i}=e,{filterBy:a,limitTo:o,sortBy:u,sortByOrder:s}=t;for(let f=0;f<r.length;f++){const l=i[r[f]];if(!a){n.push(l);continue}dt(a).every(v=>v(l,f))&&n.push(l)}if(u){let f=Me(u)?u:$S(u,s);n=n.sort((l,d)=>f(l,d,e))}const c=Math.min(o||n.length,n.length);return c===n.length?n:n.slice(0,c)}function BS(e,t){const n={},{filterBy:r,limitTo:i}=t,{ids:a,entities:o}=e;if(!r&&!i)return o;const u=jt(i)===!1;if(r&&u){let s=0;for(let c=0,f=a.length;c<f&&s!==i;c++){const l=a[c],d=o[l];dt(r).every(v=>v(d,c))&&(n[l]=d,s++)}}else{const s=Math.min(i||a.length,a.length);for(let c=0;c<s;c++){const f=a[c],l=o[f];if(!r){n[f]=l;continue}dt(r).every(p=>p(l,c))&&(n[f]=l)}}return n}var En;(function(e){e.Set="Set",e.Add="Add",e.Update="Update",e.Remove="Remove"})(En||(En={}));let $l=!0;function pU(){$l=!1,hu&&(delete window.$$stores,delete window.$$queries)}function Ne(){return $l}function HS(e,t,n){let r;if(Gt(e))r=e;else if(jl(e)){if(jt(n))return;e=Object.assign({wrap:!0},e);const i=t.indexOf(n);if(e.prev){const a=i===0;if(a&&!e.wrap)return;r=a?t[t.length-1]:t[i-1]}else if(e.next){const a=t.length===i+1;if(a&&!e.wrap)return;r=a?t[0]:t[i+1]}}else{if(e===n)return;r=e}return r}const KS=()=>({entities:{},ids:[],loading:!0,error:null});function Fr(e){return e===void 0}function GS({state:e,ids:t}){if(jt(t))return WS(e);const n=e.entities;let r={};for(const a of e.ids)t.includes(a)===!1&&(r[a]=n[a]);const i={...e,entities:r,ids:e.ids.filter(a=>t.includes(a)===!1)};return Zh(e)&&(i.active=tm(i)),i}function WS(e){return{...e,entities:{},ids:[],active:em(e.active)?[]:null}}function zS(e,t,n){const r={entities:{},ids:[]};for(const i of e){const a=n(i);r.entities[a[t]]=a,r.ids.push(a[t])}return r}function qS(e){return e.entities&&e.ids}function Ad(e,t){let n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function YS({state:e,entities:t,idKey:n,preAddEntity:r,isNativePreAdd:i}){let a,o;if(Gt(t)){const s=zS(t,n,r);a=s.entities,o=s.ids}else qS(t)?(a=i?t.entities:Ad(t.entities,r),o=t.ids):(a=i?t:Ad(t,r),o=Object.keys(a).map(s=>isNaN(s)?s:Number(s)));const u={...e,entities:a,ids:o,loading:!1};return Zh(e)&&(u.active=tm(u)),u}function Nm(e){Object.freeze(e);const t=typeof e=="function",n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(e).forEach(function(r){n.call(e,r)&&(!t||r!=="caller"&&r!=="callee"&&r!=="arguments")&&e[r]!==null&&(typeof e[r]=="object"||typeof e[r]=="function")&&!Object.isFrozen(e[r])&&Nm(e[r])}),e}function VS(e,t){e||console.error(`@StoreConfig({ name }) is missing in ${t}`)}function xl(e){return e!=null&&`${e}`!="false"}function vc(e){return xl(e)&&e.constructor.name==="Object"}const mo="akitaConfig";function vU(e){return function(t){t[mo]={idKey:"id"};for(let n=0,r=Object.keys(e);n<r.length;n++){const i=r[n];i==="name"?t[mo].storeName=e[i]:t[mo][i]=e[i]}}}const XS=new sn,Lm=new Mo(!1),Ln={activeTransactions:0,batchTransaction:null};function QS(){Mm()||(Ln.batchTransaction=new sn),Ln.activeTransactions++,Lm.next(!0)}function JS(){--Ln.activeTransactions===0&&(Ln.batchTransaction.next(!0),Ln.batchTransaction.complete(),Lm.next(!1),XS.next(!0))}function Mm(){return Ln.activeTransactions>0}function ZS(){return Ln.batchTransaction?Ln.batchTransaction.asObservable():Ul(!0)}function Bl(e,t=void 0){QS();try{return e.apply(t)}finally{Gr("@Transaction"),JS()}}function km(){return function(e,t,n){const r=n.value;return n.value=function(...i){return Bl(()=>r.apply(this,i),this)},n}}class ew{constructor(t,n={}){this.options=n,this.inTransaction=!1,this.cache={active:new Mo(!1),ttl:null},this.onInit(t)}setLoading(t=!1){t!==this._value().loading&&(Ne()&&Qe("Set Loading"),this._setState(n=>({...n,loading:t})))}setHasCache(t,n={restartTTL:!1}){if(t!==this.cache.active.value&&this.cache.active.next(t),n.restartTTL){const r=this.getCacheTTL();r&&(this.cache.ttl!==null&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout(()=>this.setHasCache(!1),r))}}getValue(){return this.storeValue}setError(t){t!==this._value().error&&(Ne()&&Qe("Set Error"),this._setState(n=>({...n,error:t})))}_select(t){return this.store.asObservable().pipe(at(n=>t(n.state)),ma())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor[mo]||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||Nm}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||LS()}get resettable(){return Do(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(t,n=!0){if(Me(t)){const r=t(this._value());this.storeValue=$l?this.deepFreeze(r):r}else this.storeValue=t;if(!this.store){this.store=new Mo({state:this.storeValue}),Ne()&&this.store.subscribe(({action:r})=>{r&&FS(this.storeName,r)});return}if(Mm()){this.handleTransaction();return}this.dispatch(this.storeValue,n)}reset(){this.isResettable()&&(Ne()&&Qe("Reset"),this._setState(()=>Object.assign({},this._initialState)),this.setHasCache(!1))}update(t){Ne()&&Qe("Update");let n;const r=this._value();Me(t)?n=Me(this._producerFn)?this._producerFn(r,t):t(r):n=t;const i=this.akitaPreUpdate(r,{...r,...n}),a=vc(r)?i:new r.constructor(i);this._setState(a)}updateStoreConfig(t){this.options={...this.options,...t}}akitaPreUpdate(t,n){return n}destroy(){!(hu?window.hmrEnabled:!1)&&this===Wt[this.storeName]&&(delete Wt[this.storeName],kS(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(t){Wt[this.storeName]=this,this._setState(()=>t),DS(this.storeName),this.isResettable()&&(this._initialState=t),Ne()&&VS(this.storeName,this.constructor.name)}dispatch(t,n=!0){let r;n&&(r=po,bE()),this.store.next({state:t,action:r})}watchTransaction(){ZS().subscribe(()=>{this.inTransaction=!1,this.dispatch(this._value())})}isResettable(){return this.resettable===!1?!1:this.resettable||Od().resettable}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||Od().ttl}}function tw({state:e,ids:t,idKey:n,newStateOrFn:r,preUpdateEntity:i,producerFn:a,onEntityIdChanges:o}){const u={};let s=!1,c;for(const d of t){if(ha(e.entities,d)===!1)continue;const p=e.entities[d];let v;Me(r)?v=Me(a)?a(p,r):r(p):v=r;const h=v.hasOwnProperty(n)&&v[n]!==p[n];let _;c=d,h&&(s=!0,c=v[n]);const g={...p,...v};vc(p)?_=g:vc(v)?_=new p.constructor(g):_=new v.constructor(g),u[c]=i(p,_)}let f=e.ids,l=e.entities;if(s){const[d]=t,{[d]:p,...v}=e.entities;l=v,f=e.ids.map(h=>h===d?c:h),o(d,c)}return{...e,entities:{...l,...u},ids:f}}var Cd;class Zr extends ew{constructor(t={},n={}){super({...KS(),...t},n),this.options=n,this.entityActions=new sn,this.entityIdChanges=new sn}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||PS}set(t,n={}){if(jt(t))return;Ne()&&Qe("Set Entity");const r=this.akitaPreAddEntity===Zr.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState(i=>{const a=YS({state:i,entities:t,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity.bind(this),isNativePreAdd:r});return Fr(n.activeId)===!1&&(a.active=n.activeId),a}),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:En.Set,ids:this.ids})}add(t,n={loading:!1}){const r=dt(t);if(Xt(r))return;const i=SE({state:this._value(),preAddEntity:this.akitaPreAddEntity.bind(this),entities:r,idKey:this.idKey,options:n});i&&(Ne()&&Qe("Add Entity"),i.newState.loading=n.loading,this._setState(()=>i.newState),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:En.Add,ids:i.newIds}))}update(t,n){if(Fr(n)){super.update(t);return}let r=[];if(Me(t)?r=this.ids.filter(a=>t(this.entities[a])):r=jt(t)?this.ids:dt(t),Xt(r))return;Ne()&&Qe("Update Entity",r);let i;this._setState(a=>tw({idKey:this.idKey,ids:r,preUpdateEntity:this.akitaPreUpdateEntity.bind(this),state:a,newStateOrFn:n,producerFn:this._producerFn,onEntityIdChanges:(o,u)=>{i={oldId:o,newId:u},this.entityIdChanges.next({...i,pending:!0})}})),i&&this.entityIdChanges.next({...i,pending:!1}),this.entityActions.next({type:En.Update,ids:r})}upsert(t,n,r,i={}){const a=dt(t),o=l=>d=>ha(this.entities,d)===l,u=Me(r)?i.baseClass:r?r.baseClass:void 0,s=Me(u),c=a.filter(o(!0)),f=a.filter(o(!1)).map(l=>{const d=typeof n=="function"?n({}):n,v={...Me(r)?r(l,d):d,[this.idKey]:l};return s?new u(v):v});this.update(c,n),this.add(f),Ne()&&Gr("Upsert Entity")}upsertMany(t,n={}){const r=[],i=[],a={};for(const o of t){const u=this.akitaPreCheckEntity(o),s=u[this.idKey];if(ha(this.entities,s)){const c=this._value().entities[s],f={...this._value().entities[s],...u},l=n.baseClass?new n.baseClass(f):f,d=this.akitaPreUpdateEntity(c,l),p=d[this.idKey];a[p]=d,i.push(p)}else{const c=n.baseClass?new n.baseClass(u):u,f=this.akitaPreAddEntity(c),l=f[this.idKey];r.push(l),a[l]=f}}Ne()&&Gr("Upsert Many"),this._setState(o=>({...o,ids:r.length?[...o.ids,...r]:o.ids,entities:{...o.entities,...a},loading:!!n.loading})),i.length&&this.entityActions.next({type:En.Update,ids:i}),r.length&&this.entityActions.next({type:En.Add,ids:r}),r.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(t,n){const r=dt(t);if(Xt(r))return;const i={};for(const a of r)i[a]={...n,[this.idKey]:a};Ne()&&Qe("Replace Entity",t),this._setState(a=>({...a,entities:{...a.entities,...i}}))}move(t,n){const r=this.ids.slice();r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),Ne()&&Qe("Move Entity"),this._setState(i=>({...i,entities:{...i.entities},ids:r}))}remove(t){if(Xt(this.ids))return;const n=Do(t);let r=[];Me(t)?r=this.ids.filter(i=>t(this.entities[i])):r=n?dt(t):this.ids,!Xt(r)&&(Ne()&&Qe("Remove Entity",r),this._setState(i=>GS({state:i,ids:r})),n||this.setHasCache(!1),this.handleUIRemove(r),this.entityActions.next({type:En.Remove,ids:r}))}updateActive(t){const n=dt(this.active);Ne()&&Qe("Update Active",n),this.update(n,t)}setActive(t){const n=HS(t,this.ids,this.active);n!==void 0&&(Ne()&&Qe("Set Active",n),this._setActive(n))}addActive(t){const n=dt(t);Xt(n)||n.every(i=>this.active.indexOf(i)>-1)||(Ne()&&Qe("Add Active",t),this._setState(i=>{const a=Array.from(new Set([...i.active,...n]));return{...i,active:a}}))}removeActive(t){const n=dt(t);Xt(n)||!n.some(i=>this.active.indexOf(i)>-1)||(Ne()&&Qe("Remove Active",t),this._setState(i=>({...i,active:Array.isArray(i.active)?i.active.filter(a=>n.indexOf(a)===-1):null})))}toggleActive(t){const n=dt(t),r=o=>u=>this.active.includes(u)===o,i=n.filter(r(!0)),a=n.filter(r(!1));this.removeActive(i),this.addActive(a),Ne()&&Gr("Toggle Active")}createUIStore(t={},n={}){const r={name:`UI/${this.storeName}`,idKey:this.idKey};return this.ui=new Id(t,{...r,...n}),this.ui}destroy(){super.destroy(),this.ui instanceof Zr&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(t,n){return n}akitaPreAddEntity(t){return t}akitaPreCheckEntity(t){return t}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(t){this._setState(n=>({...n,active:t}))}handleUICreation(t=!1){const n=this.ids,r=Me(this.ui._akitaCreateEntityFn);let i;const a=o=>{const u=this.entities[o],s=r?this.ui._akitaCreateEntityFn(u):this.ui._akitaCreateEntityFn;return{[this.idKey]:u[this.idKey],...s}};t?i=this.ids.filter(o=>Fr(this.ui.entities[o])).map(a):i=n.map(a),t?this.ui.add(i):this.ui.set(i)}hasInitialUIState(){return this.hasUIStore()&&Fr(this.ui._akitaCreateEntityFn)===!1}handleUIRemove(t){this.hasUIStore()&&this.ui.remove(t)}hasUIStore(){return this.ui instanceof Id}}Nl([km(),nn("design:type",Function),nn("design:paramtypes",[Object,Object,Object,Object]),nn("design:returntype",void 0)],Zr.prototype,"upsert",null);Nl([km(),nn("design:type",Function),nn("design:paramtypes",[typeof(Cd=typeof T<"u"&&T)=="function"?Cd:Object]),nn("design:returntype",void 0)],Zr.prototype,"toggleActive",null);class Id extends Zr{constructor(t={},n={}){super(t,n)}setInitialEntityState(t){this._akitaCreateEntityFn=t}}function nw(){return vu(e=>e!=null)}function rw(e){return function(t,n){const r=Me(e[0]);return e.some(i=>r?i(t)!==i(n):t[i]!==n[i])===!1}}function Dm(e){return typeof e=="string"}const iw="akitaQueryConfig";class aw{constructor(t){this.store=t,this.__store__=t,Ne()&&(Pm[t.storeName]=this)}select(t){let n;if(Me(t))n=t;else if(Dm(t))n=r=>r[t];else{if(Array.isArray(t))return this.store._select(r=>r).pipe(ma(rw(t)),at(r=>Me(t[0])?t.map(i=>i(r)):t.reduce((i,a)=>(i[a]=r[a],i),{})));n=r=>r}return this.store._select(n)}selectLoading(){return this.select(t=>t.loading)}selectError(){return this.select(t=>t.error)}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor[iw]}}function ow(e,t){for(const n of Object.keys(t))if(e(t[n])===!0)return n}function Rd(e,t){return function(n){const r=n[e];if(!Fr(r))return t?Dm(t)?r[t]:t(r):r}}function uw(e,t){return e.reduce((n,r,i,a)=>{const o=t(r,i,a);return o!==void 0&&n.push(o),n},[])}function sw(e,t){e.sortBy=e.sortBy||t&&t.sortBy,e.sortByOrder=e.sortByOrder||t&&t.sortByOrder}class cw extends aw{constructor(t,n={}){super(t),this.options=n,this.__store__=t}selectAll(t={asObject:!1}){return this.select(n=>n.entities).pipe(at(()=>this.getAll(t)))}getAll(t={asObject:!1,filterBy:void 0,limitTo:void 0}){return t.asObject?BS(this.getValue(),t):(sw(t,this.config||this.options),xS(this.getValue(),t))}selectMany(t,n){return!t||!t.length?Ul([]):this.select(r=>r.entities).pipe(at(r=>uw(t,i=>Rd(i,n)(r))),NS())}selectEntity(t,n){let r=t;return Me(t)&&(r=ow(t,this.getValue().entities)),this.select(i=>i.entities).pipe(at(Rd(r,n)),ma())}getEntity(t){return this.getValue().entities[t]}selectActiveId(){return this.select(t=>t.active)}getActiveId(){return this.getValue().active}selectActive(t){return Gt(this.getActive())?this.selectActiveId().pipe(ho(n=>this.selectMany(n,t))):this.selectActiveId().pipe(ho(n=>this.selectEntity(n,t)))}getActive(){const t=this.getActiveId();return Gt(t)?t.map(n=>this.getValue().entities[n]):xl(t)?this.getEntity(t):void 0}selectCount(t){return this.select(n=>n.entities).pipe(at(()=>this.getCount(t)))}getCount(t){return Me(t)?this.getAll().filter(t).length:this.getValue().ids.length}selectLast(t){return this.selectAt(n=>n[n.length-1],t)}selectFirst(t){return this.selectAt(n=>n[0],t)}selectEntityAction(t){if(jt(t))return this.store.selectEntityAction$;const n=Gt(t)?i=>i:({ids:i})=>i,r=dt(t);return this.store.selectEntityAction$.pipe(vu(({type:i})=>r.includes(i)),at(i=>n(i)))}hasEntity(t){return jt(t)?this.getValue().ids.length>0:Me(t)?this.getAll().some(t):Gt(t)?t.every(n=>n in this.getValue().entities):t in this.getValue().entities}hasActive(t){const n=this.getValue().active,r=Do(t);return Array.isArray(n)?r?n.includes(t):n.length>0:r?n===t:Do(n)}createUIQuery(){this.ui=new lw(this.__store__.ui)}selectAt(t,n){return this.select(r=>r.ids).pipe(at(t),ma(),ho(r=>this.selectEntity(r,n)))}}class lw extends cw{constructor(t){super(t)}}function hc(e,t){return t.split(".").length===1?e:t.split(".").slice(1).join(".").split(".").reduce((r,i)=>r&&r[i],e)}function Fm(e,t,n,r=!1){const i=t.split(".");if(i.length===1)return{...e,...n};e={...e};const a=i.length-2;return t.split(".").slice(1).reduce((u,s,c)=>c!==a?(u[s]={...u[s]},u&&u[s]):(u[s]=r||Array.isArray(u[s])||!jl(u[s])?n:{...u[s],...n},u&&u[s]),e),e}let fw=!1;const dw=new sm(1);function pw(){return fw}function vw(e){return e&&Me(e.then)}function Ui(e){return vw(e)||wm(e)?yi(e):Ul(e)}function hU(e){const t={key:"AkitaStores",enableInNonBrowser:!1,storage:Td()?localStorage:e.storage,deserialize:JSON.parse,serialize:JSON.stringify,include:[],select:[],persistOnDestroy:!1,preStorageUpdate:function(S,A){return A},preStoreUpdate:function(S,A){return A},skipStorageUpdate:pw,preStorageUpdateOperator:()=>S=>S},{storage:n,enableInNonBrowser:r,deserialize:i,serialize:a,include:o,select:u,key:s,preStorageUpdate:c,persistOnDestroy:f,preStorageUpdateOperator:l,preStoreUpdate:d,skipStorageUpdate:p}=Object.assign({},t,e);if(US&&!r||!n)return;const v=o.length>0,h=u.length>0;let _,g;v&&(_=o.reduce((S,A)=>{if(Me(A))S.fns.push(A);else{const C=A.split(".")[0];S[C]=A}return S},{fns:[]})),h&&(g=u.reduce((S,A)=>(S[A.storeName]=A,S),{}));let b={};const y={},m=[],E=[];function w(S){Ui(S).subscribe(()=>{const A=E.shift();A&&w(A)})}const O=Td()&&n===localStorage||jS()&&n===sessionStorage;return Ui(n.getItem(s)).subscribe(S=>{let A=jl(S)?S:i(S||"{}");function C(k){A.$cache={...A.$cache||{},...k},A=Object.assign({},A,y),E.push(n.setItem(s,O?a(A):A)),w(E.shift())}function N(k,P){b[k]=Wt[k]._select(I=>hc(I,P)).pipe(RS(1),at(I=>h&&g[k]?g[k](I):I),vu(()=>p()===!1),l()).subscribe(I=>{y[k]=c(k,I),Promise.resolve().then(()=>C({[k]:Wt[k]._cache().getValue()}))})}function L(k,P,I){if(k in A){Qe("@PersistState"),P._setState(M=>Fm(M,I,d(k,A[k],M)));const R=A.$cache?A.$cache[k]:!1;Wt[k].setHasCache(R,{restartTTL:!0})}}m.push(Im.subscribe(k=>{b[k]&&(f===!1&&C({[k]:!1}),b[k].unsubscribe(),delete b[k])})),m.push(Rm.subscribe(k=>{if(k==="router")return;const P=Wt[k];if(v){let I=_[k];if(!I)if(_.fns.some(M=>M(k)))I=k;else return;L(k,P,I),N(k,I)}else L(k,P,k),N(k,k)})),dw.next(!0)}),{destroy(){m.forEach(S=>S.unsubscribe());for(let S=0,A=Object.keys(b);S<A.length;S++){const C=A[S];b[C].unsubscribe()}b={}},clear(){n.clear()},clearStore(S){if(jt(S)){Ui(n.setItem(s,"{}")).subscribe();return}const A=n.getItem(s);Ui(A).subscribe(C=>{const N=i(C||"{}");N[S]&&(delete N[S],Ui(n.setItem(s,a(N))).subscribe())})}}}class hw{constructor(t,n){this.query=t,n&&n.resetFn}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(t){return xl(t)}selectSource(t,n){return this.isEntityBased(t)?this.getQuery().selectEntity(t).pipe(nw()):n?this.getQuery().select(r=>hc(r,this.withStoreName(n))):this.getQuery().select()}getSource(t,n){if(this.isEntityBased(t))return this.getQuery().getEntity(t);const r=this.getQuery().getValue();return n?hc(r,this.withStoreName(n)):r}withStoreName(t){return`${this.storeName}.${t}`}get storeName(){return this.getStore().storeName}updateStore(t,n,r,i=!1){if(this.isEntityBased(n)){const a=this.getStore();i?a.replace(n,t):a.update(n,t)}else{if(r){this.getStore()._setState(o=>Fm(o,this.withStoreName(r),t,!0));return}const a=i?t:o=>({...o,...t});this.getStore()._setState(a)}}onReset(t){const n=this.getStore().reset;this.getStore().reset=(...r)=>{setTimeout(()=>{n.apply(this.getStore(),r),t()})}}}const mw={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0};class gw extends hw{constructor(t,n={}){super(t,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=t,this.config=n,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe(CS(0)),this.config={...mw,...n};const{startWith:r,cacheTimeout:i}=this.config;this.page=new Mo(r),wm(i)&&(this.clearCacheSubscription=i.subscribe(()=>this.clearCache()))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return this.currentPage===1}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(t=!0){this.getStore().setLoading(t)}update(t){this.pagination=t,this.addPage(t.data)}addPage(t){this.pages.set(this.currentPage,{ids:t.map(n=>n[this.getStore().idKey])}),this.getStore().upsertMany(t)}clearCache(t={}){this.initial||(Gr("@Pagination - Clear Cache"),t.clearStore!==!1&&(this.config.clearStoreWithCache||t.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(t){this.pages.delete(t)}destroy({clearCache:t,currentPage:n}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),t&&this.clearCache(),Fr(n)||this.setPage(n),this.initial=!0}isPageActive(t){return this.currentPage===t}setPage(t){(t!==this.currentPage||!this.hasPage(t))&&this.page.next(this.pagination.currentPage=t)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(t){return this.pages.has(t)}getPage(t){let n=this.pagination.currentPage;return this.hasPage(n)?this.selectPage(n):(this.setLoading(!0),yi(t()).pipe(ho(r=>(n=r.currentPage,Bl(()=>{this.setLoading(!1),this.update(r)}),this.selectPage(n)))))}getQuery(){return this.query}refreshCurrentPage(){jt(this.currentPage)===!1&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(t){return this.query.selectAll({asObject:!0}).pipe(pc(1),at(n=>{const r={...this.pagination,data:this.pages.get(t).ids.map(o=>n[o])},{range:i,pagesControls:a}=this.config;return isNaN(this.pagination.total)&&(r.lastPage===1?r.total=r.data?r.data.length:0:r.total=r.perPage*r.lastPage,this.pagination.total=r.total),i&&(r.from=this.getFrom(),r.to=this.getTo()),a&&(r.pageControls=yw(this.pagination.total,this.pagination.perPage)),r}))}}Nl([_E("@Pagination - New Page"),nn("design:type",Function),nn("design:paramtypes",[Object]),nn("design:returntype",void 0)],gw.prototype,"update",null);function yw(e,t){const n=Math.ceil(e/t),r=[];for(let i=0;i<n;i++)r.push(i+1);return r}function mU(e){e=Object.assign({},{exclude:[]},e);const n=Object.keys(Wt);Bl(()=>{for(const r of n){const i=Wt[r];e.exclude?e.exclude.indexOf(i.storeName)===-1&&i.reset():i.reset()}})}var mc;(function(e){e.Update="UPDATE"})(mc||(mc={}));mc.Update+"";var Qt;(function(e){e.Update="UPDATE",e.AddEntities="ADD_ENTITIES",e.SetEntities="SET_ENTITIES",e.UpdateEntities="UPDATE_ENTITIES",e.RemoveEntities="REMOVE_ENTITIES",e.UpsertEntities="UPSERT_ENTITIES",e.UpsertManyEntities="UPSERT_MANY_ENTITIES"})(Qt||(Qt={}));Qt.Update+"",Qt.AddEntities+"",Qt.SetEntities+"",Qt.UpdateEntities+"",Qt.RemoveEntities+"",Qt.UpsertEntities+"",Qt.UpsertManyEntities+"";const bw="modulepreload",_w=function(e){return"/benefits/app/"+e},Pd={},gU=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=_w(a),a in Pd)return;Pd[a]=!0;const o=a.endsWith(".css"),u=o?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const l=i[f];if(l.href===a&&(!o||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${u}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":bw,o||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),o)return new Promise((f,l)=>{c.addEventListener("load",f),c.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};var Na,V,Um,nr,Nd,jm,gc,$m,zr={},xm=[],Ew=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function en(e,t){for(var n in t)e[n]=t[n];return e}function Bm(e){var t=e.parentNode;t&&t.removeChild(e)}function G(e,t,n){var r,i,a,o={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Na.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Ji(e,o,r,i,null)}function Ji(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Um};return i==null&&V.vnode!=null&&V.vnode(a),a}function ga(){return{current:null}}function Ae(e){return e.children}function At(e,t){this.props=e,this.context=t}function ya(e,t){if(t==null)return e.__?ya(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__d||n.__e;return typeof e.type=="function"?ya(e):null}function Hm(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Hm(e)}}function yc(e){(!e.__d&&(e.__d=!0)&&nr.push(e)&&!Uo.__r++||Nd!==V.debounceRendering)&&((Nd=V.debounceRendering)||jm)(Uo)}function Uo(){var e,t,n,r,i,a,o,u,s;for(nr.sort(gc);e=nr.shift();)e.__d&&(t=nr.length,r=void 0,i=void 0,a=void 0,u=(o=(n=e).__v).__e,(s=n.__P)&&(r=[],i=[],(a=en({},o)).__v=o.__v+1,Hl(s,o,a,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[u]:null,r,u??ya(o),o.__h,i),zm(r,o,i),o.__e!=u&&Hm(o)),nr.length>t&&nr.sort(gc));Uo.__r=0}function Km(e,t,n,r,i,a,o,u,s,c,f){var l,d,p,v,h,_,g,b,y,m=0,E=r&&r.__k||xm,w=E.length,O=w,S=t.length;for(n.__k=[],l=0;l<S;l++)(v=n.__k[l]=(v=t[l])==null||typeof v=="boolean"||typeof v=="function"?null:typeof v=="string"||typeof v=="number"||typeof v=="bigint"?Ji(null,v,null,null,v):mu(v)?Ji(Ae,{children:v},null,null,null):v.__b>0?Ji(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)!=null?(v.__=n,v.__b=n.__b+1,(b=Sw(v,E,g=l+m,O))===-1?p=zr:(p=E[b]||zr,E[b]=void 0,O--),Hl(e,v,p,i,a,o,u,s,c,f),h=v.__e,(d=v.ref)&&p.ref!=d&&(p.ref&&Kl(p.ref,null,v),f.push(d,v.__c||h,v)),h!=null&&(_==null&&(_=h),(y=p===zr||p.__v===null)?b==-1&&m--:b!==g&&(b===g+1?m++:b>g?O>S-g?m+=b-g:m--:m=b<g&&b==g-1?b-g:0),g=l+m,typeof v.type!="function"||b===g&&p.__k!==v.__k?typeof v.type=="function"||b===g&&!y?v.__d!==void 0?(s=v.__d,v.__d=void 0):s=h.nextSibling:s=Wm(e,h,s):s=Gm(v,s,e),typeof n.type=="function"&&(n.__d=s))):(p=E[l])&&p.key==null&&p.__e&&(p.__e==s&&(p.__=r,s=ya(p)),bc(p,p,!1),E[l]=null);for(n.__e=_,l=w;l--;)E[l]!=null&&(typeof n.type=="function"&&E[l].__e!=null&&E[l].__e==n.__d&&(n.__d=E[l].__e.nextSibling),bc(E[l],E[l]))}function Gm(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type=="function"?Gm(r,t,n):Wm(n,r.__e,t));return t}function Ft(e,t){return t=t||[],e==null||typeof e=="boolean"||(mu(e)?e.some(function(n){Ft(n,t)}):t.push(e)),t}function Wm(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Sw(e,t,n,r){var i=e.key,a=e.type,o=n-1,u=n+1,s=t[n];if(s===null||s&&i==s.key&&a===s.type)return n;if(r>(s!=null?1:0))for(;o>=0||u<t.length;){if(o>=0){if((s=t[o])&&i==s.key&&a===s.type)return o;o--}if(u<t.length){if((s=t[u])&&i==s.key&&a===s.type)return u;u++}}return-1}function ww(e,t,n,r,i){var a;for(a in n)a==="children"||a==="key"||a in t||jo(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||jo(e,a,t[a],n[a],r)}function Ld(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ew.test(t)?n:n+"px"}function jo(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ld(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ld(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?kd:Md,a)):e.removeEventListener(t,a?kd:Md,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Md(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(V.event?V.event(e):e)}function kd(e){return this.l[e.type+!0](V.event?V.event(e):e)}function Hl(e,t,n,r,i,a,o,u,s,c){var f,l,d,p,v,h,_,g,b,y,m,E,w,O,S,A=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(s=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(f=V.__b)&&f(t);e:if(typeof A=="function")try{if(g=t.props,b=(f=A.contextType)&&r[f.__c],y=f?b?b.props.value:f.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in A&&A.prototype.render?t.__c=l=new A(g,y):(t.__c=l=new At(g,y),l.constructor=A,l.render=Tw),b&&b.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),A.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=en({},l.__s)),en(l.__s,A.getDerivedStateFromProps(g,l.__s))),p=l.props,v=l.state,l.__v=t,d)A.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(A.getDerivedStateFromProps==null&&g!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,y),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,y)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(C){C&&(C.__=t)}),m=0;m<l._sb.length;m++)l.__h.push(l._sb[m]);l._sb=[],l.__h.length&&o.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,y),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,v,h)})}if(l.context=y,l.props=g,l.__P=e,l.__e=!1,E=V.__r,w=0,"prototype"in A&&A.prototype.render){for(l.state=l.__s,l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[]}else do l.__d=!1,E&&E(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++w<25);l.state=l.__s,l.getChildContext!=null&&(r=en(en({},r),l.getChildContext())),d||l.getSnapshotBeforeUpdate==null||(h=l.getSnapshotBeforeUpdate(p,v)),Km(e,mu(S=f!=null&&f.type===Ae&&f.key==null?f.props.children:f)?S:[S],t,n,r,i,a,o,u,s,c),l.base=t.__e,t.__h=null,l.__h.length&&o.push(l),_&&(l.__E=l.__=null)}catch(C){t.__v=null,(s||a!=null)&&(t.__e=u,t.__h=!!s,a[a.indexOf(u)]=null),V.__e(C,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ow(n.__e,t,n,r,i,a,o,s,c);(f=V.diffed)&&f(t)}function zm(e,t,n){for(var r=0;r<n.length;r++)Kl(n[r],n[++r],n[++r]);V.__c&&V.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){V.__e(a,i.__v)}})}function Ow(e,t,n,r,i,a,o,u,s){var c,f,l,d=n.props,p=t.props,v=t.type,h=0;if(v==="svg"&&(i=!0),a!=null){for(;h<a.length;h++)if((c=a[h])&&"setAttribute"in c==!!v&&(v?c.localName===v:c.nodeType===3)){e=c,a[h]=null;break}}if(e==null){if(v===null)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,p.is&&p),a=null,u=!1}if(v===null)d===p||u&&e.data===p||(e.data=p);else{if(a=a&&Na.call(e.childNodes),f=(d=n.props||zr).dangerouslySetInnerHTML,l=p.dangerouslySetInnerHTML,!u){if(a!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(l||f)&&(l&&(f&&l.__html==f.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(ww(e,p,d,i,u),l)t.__k=[];else if(Km(e,mu(h=t.props.children)?h:[h],t,n,r,i&&v!=="foreignObject",a,o,a?a[0]:n.__k&&ya(n,0),u,s),a!=null)for(h=a.length;h--;)a[h]!=null&&Bm(a[h]);u||("value"in p&&(h=p.value)!==void 0&&(h!==e.value||v==="progress"&&!h||v==="option"&&h!==d.value)&&jo(e,"value",h,d.value,!1),"checked"in p&&(h=p.checked)!==void 0&&h!==e.checked&&jo(e,"checked",h,d.checked,!1))}return e}function Kl(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){V.__e(r,n)}}function bc(e,t,n){var r,i;if(V.unmount&&V.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Kl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){V.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&bc(r[i],t,n||typeof e.type!="function");n||e.__e==null||Bm(e.__e),e.__=e.__e=e.__d=void 0}function Tw(e,t,n){return this.constructor(e,n)}function ei(e,t,n){var r,i,a,o;V.__&&V.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],o=[],Hl(t,e=(!r&&n||t).__k=G(Ae,null,[e]),i||zr,zr,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?Na.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,o),zm(a,e,o)}function Gl(e,t){ei(e,t,Gl)}function qm(e,t,n){var r,i,a,o,u=en({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?i=t[a]:u[a]=t[a]===void 0&&o!==void 0?o[a]:t[a];return arguments.length>2&&(u.children=arguments.length>3?Na.call(arguments,2):n),Ji(e.type,u,r||e.key,i||e.ref,null)}function xe(e,t){var n={__c:t="__cC"+$m++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(u){u.__e=!0,yc(u)})},this.sub=function(o){i.push(o);var u=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),u&&u.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Na=xm.slice,V={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(u){e=u}throw e}},Um=0,At.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=en({},this.state),typeof e=="function"&&(e=e(en({},n),this.props)),e&&en(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),yc(this))},At.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),yc(this))},At.prototype.render=Ae,nr=[],jm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gc=function(e,t){return e.__v.__b-t.__v.__b},Uo.__r=0,$m=0;var cn,pe,Zu,Dd,ti=0,Ym=[],go=[],Fd=V.__b,Ud=V.__r,jd=V.diffed,$d=V.__c,xd=V.unmount;function yr(e,t){V.__h&&V.__h(pe,e,ti||t),ti=0;var n=pe.__H||(pe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:go}),n.__[e]}function We(e){return ti=1,br(Jm,e)}function br(e,t,n){var r=yr(cn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jm(void 0,t),function(u){var s=r.__N?r.__N[0]:r.__[0],c=r.t(s,u);s!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=pe,!pe.u)){var i=function(u,s,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return d.__c});if(f.every(function(d){return!d.__N}))return!a||a.call(this,u,s,c);var l=!1;return f.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(l=!0)}}),!(!l&&r.__c.props===u)&&(!a||a.call(this,u,s,c))};pe.u=!0;var a=pe.shouldComponentUpdate,o=pe.componentWillUpdate;pe.componentWillUpdate=function(u,s,c){if(this.__e){var f=a;a=void 0,i(u,s,c),a=f}o&&o.call(this,u,s,c)},pe.shouldComponentUpdate=i}return r.__N||r.__}function fe(e,t){var n=yr(cn++,3);!V.__s&&Wl(n.__H,t)&&(n.__=e,n.i=t,pe.__H.__h.push(n))}function _r(e,t){var n=yr(cn++,4);!V.__s&&Wl(n.__H,t)&&(n.__=e,n.i=t,pe.__h.push(n))}function ie(e){return ti=5,ce(function(){return{current:e}},[])}function Vm(e,t,n){ti=6,_r(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ce(e,t){var n=yr(cn++,7);return Wl(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function In(e,t){return ti=8,ce(function(){return e},t)}function ke(e){var t=pe.context[e.__c],n=yr(cn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(pe)),t.props.value):e.__}function Xm(e,t){V.useDebugValue&&V.useDebugValue(t?t(e):e)}function Aw(e){var t=yr(cn++,10),n=We();return t.__=e,pe.componentDidCatch||(pe.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Qm(){var e=yr(cn++,11);if(!e.__){for(var t=pe.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Cw(){for(var e;e=Ym.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yo),e.__H.__h.forEach(_c),e.__H.__h=[]}catch(t){e.__H.__h=[],V.__e(t,e.__v)}}V.__b=function(e){pe=null,Fd&&Fd(e)},V.__r=function(e){Ud&&Ud(e),cn=0;var t=(pe=e.__c).__H;t&&(Zu===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=go,n.__N=n.i=void 0})):(t.__h.forEach(yo),t.__h.forEach(_c),t.__h=[],cn=0)),Zu=pe},V.diffed=function(e){jd&&jd(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ym.push(t)!==1&&Dd===V.requestAnimationFrame||((Dd=V.requestAnimationFrame)||Iw)(Cw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==go&&(n.__=n.__V),n.i=void 0,n.__V=go})),Zu=pe=null},V.__c=function(e,t){t.some(function(n){try{n.__h.forEach(yo),n.__h=n.__h.filter(function(r){return!r.__||_c(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],V.__e(r,n.__v)}}),$d&&$d(e,t)},V.unmount=function(e){xd&&xd(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{yo(r)}catch(i){t=i}}),n.__H=void 0,t&&V.__e(t,n.__v))};var Bd=typeof requestAnimationFrame=="function";function Iw(e){var t,n=function(){clearTimeout(r),Bd&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Bd&&(t=requestAnimationFrame(n))}function yo(e){var t=pe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),pe=t}function _c(e){var t=pe;e.__c=e.__(),pe=t}function Wl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Jm(e,t){return typeof t=="function"?t(e):t}let Lr;const Rw=(e,t)=>{if(Lr=void 0,t&&t.type==="click"){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0)return e;const n=t.target.closest("a[href]");if(!n||n.origin!=location.origin||/^#/.test(n.getAttribute("href"))||!/^(_?self)?$/i.test(n.target))return e;Lr=!0,t.preventDefault(),t=n.href.replace(location.origin,"")}else typeof t=="string"?Lr=!0:t=location.pathname+location.search;return Lr===!0?history.pushState(null,"",t):Lr===!1&&history.replaceState(null,"",t),t};function Zm(e){const[t,n]=br(Rw,e.url||location.pathname+location.search),r=Lr===!0,i=ce(()=>{const a=new URL(t,location.origin),o=a.pathname.replace(/(.)\/$/g,"$1");return{url:t,path:o,query:Object.fromEntries(a.searchParams),route:n,wasPush:r}},[t]);return _r(()=>(addEventListener("click",n),addEventListener("popstate",n),()=>{removeEventListener("click",n),removeEventListener("popstate",n)}),[]),G(Zm.ctx.Provider,{value:i},e.children)}Promise.resolve();Zm.ctx=xe({});xe({});const Hd=V.__e;V.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),t.__k||(t.__k=[]),r.__c.__c(e,t)}Hd&&Hd(e,t,n)};let Kd;function yU(e,t){if(typeof window>"u")return;let n=document.querySelector("script[type=isodata]");t=t||n&&n.parentNode||document.body,!Kd&&n?Gl(e,t):ei(e,t),Kd=!0}function eg(e,t){for(var n in t)e[n]=t[n];return e}function Ec(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function es(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function $o(e){this.props=e}function tg(e,t){function n(i){var a=this.props.ref,o=a==i.ref;return!o&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!o:Ec(this.props,i)}function r(i){return this.shouldComponentUpdate=n,G(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}($o.prototype=new At).isPureReactComponent=!0,$o.prototype.shouldComponentUpdate=function(e,t){return Ec(this.props,e)||Ec(this.state,t)};var Gd=V.__b;V.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gd&&Gd(e)};var Pw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function he(e){function t(n){var r=eg({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Pw,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Wd=function(e,t){return e==null?null:Ft(Ft(e).map(t))},ng={map:Wd,forEach:Wd,count:function(e){return e?Ft(e).length:0},only:function(e){var t=Ft(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ft},Nw=V.__e;V.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Nw(e,t,n,r)};var zd=V.unmount;function rg(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=eg({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return rg(r,t,n)})),e}function ig(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ig(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Zi(){this.__u=0,this.t=null,this.__b=null}function ag(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function og(e){var t,n,r;function i(a){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return G(n,a)}return i.displayName="Lazy",i.__f=!0,i}function Ur(){this.u=null,this.o=null}V.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),zd&&zd(e)},(Zi.prototype=new At).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=ag(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(u):u())};n.__R=o;var u=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=ig(c,c.__c.__P,c.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},s=t.__h===!0;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Zi.prototype.componentWillUnmount=function(){this.t=[]},Zi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=rg(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&G(Ae,null,e.fallback);return i&&(i.__h=null),[G(Ae,null,t.__a?null:e.children),i]};var qd=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Lw(e){return this.getChildContext=function(){return e.context},e.children}function Mw(e){var t=this,n=e.i;t.componentWillUnmount=function(){ei(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),ei(G(Lw,{context:t.context},e.__v),t.l)}function zl(e,t){var n=G(Mw,{__v:e,i:t});return n.containerInfo=t,n}(Ur.prototype=new At).__a=function(e){var t=this,n=ag(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),qd(t,e,r)):i()};n?n(a):a()}},Ur.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ft(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ur.prototype.componentDidUpdate=Ur.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){qd(e,n,t)})};var ug=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,kw=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Dw=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fw=/[A-Z0-9]/g,Uw=typeof document<"u",jw=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function sg(e,t,n){return t.__k==null&&(t.textContent=""),ei(e,t),typeof n=="function"&&n(),e?e.__c:null}function cg(e,t,n){return Gl(e,t),typeof n=="function"&&n(),e?e.__c:null}At.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(At.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Yd=V.event;function $w(){}function xw(){return this.cancelBubble}function Bw(){return this.defaultPrevented}V.event=function(e){return Yd&&(e=Yd(e)),e.persist=$w,e.isPropagationStopped=xw,e.isDefaultPrevented=Bw,e.nativeEvent=e};var ql,Hw={enumerable:!1,configurable:!0,get:function(){return this.class}},Vd=V.vnode;V.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var a in n){var o=n[a];if(!(a==="value"&&"defaultValue"in n&&o==null||Uw&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var u=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&o===!0?o="":u==="ondoubleclick"?a="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||jw(n.type)?u==="onfocus"?a="onfocusin":u==="onblur"?a="onfocusout":Dw.test(a)?a=u:r.indexOf("-")===-1&&kw.test(a)?a=a.replace(Fw,"-$&").toLowerCase():o===null&&(o=void 0):u=a="oninput",u==="oninput"&&i[a=u]&&(a="oninputCapture"),i[a]=o}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ft(n.children).forEach(function(s){s.props.selected=i.value.indexOf(s.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Ft(n.children).forEach(function(s){s.props.selected=i.multiple?i.defaultValue.indexOf(s.props.value)!=-1:i.defaultValue==s.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Hw)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=ug,Vd&&Vd(e)};var Xd=V.__r;V.__r=function(e){Xd&&Xd(e),ql=e.__c};var Qd=V.diffed;V.diffed=function(e){Qd&&Qd(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ql=null};var lg={ReactCurrentDispatcher:{current:{readContext:function(e){return ql.__n[e.__c].props.value}}}},Kw="17.0.2";function fg(e){return G.bind(null,e)}function bi(e){return!!e&&e.$$typeof===ug}function dg(e){return bi(e)&&e.type===Ae}function Yl(e){return bi(e)?qm.apply(null,arguments):e}function pg(e){return!!e.__k&&(ei(null,e),!0)}function vg(e){return e&&(e.base||e.nodeType===1&&e)||null}var hg=function(e,t){return e(t)},mg=function(e,t){return e(t)},gg=Ae;function Vl(e){e()}function yg(e){return e}function bg(){return[!1,Vl]}var _g=_r,Eg=bi;function Sg(e,t){var n=t(),r=We({h:{__:n,v:t}}),i=r[0].h,a=r[1];return _r(function(){i.__=n,i.v=t,es(i.__,t())||a({h:i})},[e,n,t]),fe(function(){return es(i.__,i.v())||a({h:i}),e(function(){es(i.__,i.v())||a({h:i})})},[e]),n}var Y={useState:We,useId:Qm,useReducer:br,useEffect:fe,useLayoutEffect:_r,useInsertionEffect:_g,useTransition:bg,useDeferredValue:yg,useSyncExternalStore:Sg,startTransition:Vl,useRef:ie,useImperativeHandle:Vm,useMemo:ce,useCallback:In,useContext:ke,useDebugValue:Xm,version:"17.0.2",Children:ng,render:sg,hydrate:cg,unmountComponentAtNode:pg,createPortal:zl,createElement:G,createContext:xe,createFactory:fg,cloneElement:Yl,createRef:ga,Fragment:Ae,isValidElement:bi,isElement:Eg,isFragment:dg,findDOMNode:vg,Component:At,PureComponent:$o,memo:tg,forwardRef:he,flushSync:mg,unstable_batchedUpdates:hg,StrictMode:gg,Suspense:Zi,SuspenseList:Ur,lazy:og,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:lg};const ni=Object.freeze(Object.defineProperty({__proto__:null,Children:ng,Component:At,Fragment:Ae,PureComponent:$o,StrictMode:gg,Suspense:Zi,SuspenseList:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:lg,cloneElement:Yl,createContext:xe,createElement:G,createFactory:fg,createPortal:zl,createRef:ga,default:Y,findDOMNode:vg,flushSync:mg,forwardRef:he,hydrate:cg,isElement:Eg,isFragment:dg,isValidElement:bi,lazy:og,memo:tg,render:sg,startTransition:Vl,unmountComponentAtNode:pg,unstable_batchedUpdates:hg,useCallback:In,useContext:ke,useDebugValue:Xm,useDeferredValue:yg,useEffect:fe,useErrorBoundary:Aw,useId:Qm,useImperativeHandle:Vm,useInsertionEffect:_g,useLayoutEffect:_r,useMemo:ce,useReducer:br,useRef:ie,useState:We,useSyncExternalStore:Sg,useTransition:bg,version:Kw},Symbol.toStringTag,{value:"Module"}));var wg={exports:{}};(function(e,t){(function(){function n(){var r=window,i=document;if("scrollBehavior"in i.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var a=r.HTMLElement||r.Element,o=468,u={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:a.prototype.scroll||l,scrollIntoView:a.prototype.scrollIntoView},s=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(m){var E=["MSIE ","Trident/","Edge/"];return new RegExp(E.join("|")).test(m)}var f=c(r.navigator.userAgent)?1:0;function l(m,E){this.scrollLeft=m,this.scrollTop=E}function d(m){return .5*(1-Math.cos(Math.PI*m))}function p(m){if(m===null||typeof m!="object"||m.behavior===void 0||m.behavior==="auto"||m.behavior==="instant")return!0;if(typeof m=="object"&&m.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+m.behavior+" is not a valid value for enumeration ScrollBehavior.")}function v(m,E){if(E==="Y")return m.clientHeight+f<m.scrollHeight;if(E==="X")return m.clientWidth+f<m.scrollWidth}function h(m,E){var w=r.getComputedStyle(m,null)["overflow"+E];return w==="auto"||w==="scroll"}function _(m){var E=v(m,"Y")&&h(m,"Y"),w=v(m,"X")&&h(m,"X");return E||w}function g(m){for(;m!==i.body&&_(m)===!1;)m=m.parentNode||m.host;return m}function b(m){var E=s(),w,O,S,A=(E-m.startTime)/o;A=A>1?1:A,w=d(A),O=m.startX+(m.x-m.startX)*w,S=m.startY+(m.y-m.startY)*w,m.method.call(m.scrollable,O,S),(O!==m.x||S!==m.y)&&r.requestAnimationFrame(b.bind(r,m))}function y(m,E,w){var O,S,A,C,N=s();m===i.body?(O=r,S=r.scrollX||r.pageXOffset,A=r.scrollY||r.pageYOffset,C=u.scroll):(O=m,S=m.scrollLeft,A=m.scrollTop,C=l),b({scrollable:O,method:C,startTime:N,startX:S,startY:A,x:E,y:w})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){u.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}y.call(r,i.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])){u.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}y.call(r,i.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},a.prototype.scroll=a.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");u.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var m=arguments[0].left,E=arguments[0].top;y.call(this,this,typeof m>"u"?this.scrollLeft:~~m,typeof E>"u"?this.scrollTop:~~E)}},a.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){u.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},a.prototype.scrollIntoView=function(){if(p(arguments[0])===!0){u.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var m=g(this),E=m.getBoundingClientRect(),w=this.getBoundingClientRect();m!==i.body?(y.call(this,m,m.scrollLeft+w.left-E.left,m.scrollTop+w.top-E.top),r.getComputedStyle(m).position!=="fixed"&&r.scrollBy({left:E.left,top:E.top,behavior:"smooth"})):r.scrollBy({left:w.left,top:w.top,behavior:"smooth"})}}e.exports={polyfill:n}})()})(wg);var Gw=wg.exports;const bU=gr(Gw);/*
4
- Adaptation of "object-assign" library (https://www.npmjs.com/package/object-assign)
5
- exported as an ES module instead of CommonJS, to avoid extra configuration steps when using
6
- the ESM build of the SDK with tools that doesn't support CommonJS by default (e.g. Rollup).
7
-
8
- object-assign
9
- (c) Sindre Sorhus
10
- @license MIT
11
- */var Jd=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,zw=Object.prototype.propertyIsEnumerable;function qw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Yw(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var de=Yw()?Object.assign:function(e,t){for(var n,r=qw(e),i,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var o in n)Ww.call(n,o)&&(r[o]=n[o]);if(Jd){i=Jd(n);for(var u=0;u<i.length;u++)zw.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r},Og=0,Tg=1,Ag=2,Cg=3,Ig=4,Rg=5,Pg=6,Ng=7,Lg=8,Mg=9,kg=10,Dg=11,Fg=12,Ug=13,jg=14,$g=15,xg=16,Bg=17,Sc=18,Hg=19,Kg=20,Gg=21,Wg=22,zg=23,qg=24,Yg=25,Vg=26,Xg=27,Qg=28,Jg=29,Zg=30,ey=31,ty=32,ny=33,ry=34,iy=35,ay=36,oy=37,uy=38,sy=39,cy=100,ly=101,fy=102,dy=103,py=104,vy=105,hy=106,my=107,gy=108,yy=109,by=110,_y=111,Ey=112,Sy=113,wy=114,gu=115,Oy=116,Ty=117,Ay=118,Cy=119,Iy=120,Ry=121,Py=122,Ny=123,Ly=124,My=200,ky=201,Dy=202,Fy=203,Uy=204,jy=205,$y=206,xy=207,By=208,wc=209,Hy=210,Ky=211,Gy=212,Wy=213,zy=214,qy=215,Yy=216,Vy=217,Xy=218,Qy=219,Jy=220,Zy=221,Oc=222,bo=223,e0=224,t0=225,n0=226,r0=227,i0=228,a0=300,o0=301,u0=302,s0=303,c0=304,l0=305,f0=306,d0=307,p0=308,v0=309,h0=310,Xl=311,m0=312,g0=313,y0=314,_i=315,b0=316,_0=317,Ei=318,Si=319,E0=320,Ql=321,S0=322,Vw=323,Xw=324,w0=325,O0=326,T0=327,A0=328,ot="settings",ts="Factory instantiation",ba="engine",_o=ba+":combiner: ",Fe=ba+":matcher: ",Tc=ba+":value: ",qt="sync",ns=qt+":sync-manager: ",C0=qt+":offline: ",ht=qt+":streaming: ",jr=qt+":featureflag-changes: ",Qw=qt+":my-segments: ",rs=qt+":polling-manager: ",xo=qt+":submitter: ",ea="impressions-tracker: ",I0="events-tracker: ",Jw="unique-keys-tracker: ",Zd="cleanup: ",ep="Global fetch API is not available.";function Zw(e,t){var n=e.log,r=e.core.authorizationKey,i=e.version,a=e.runtime,o=a.ip,u=a.hostname,s=t&&t();s||n.error(s0,[ep]);var c={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+r,SplitSDKVersion:i};return o&&(c.SplitSDKMachineIP=o),u&&(c.SplitSDKMachineName=u),function(l,d,p,v){d===void 0&&(d={}),p===void 0&&(p=function(){}),v===void 0&&(v=!1);var h={headers:d.headers?de({},c,d.headers):c,method:d.method||"GET",body:d.body};return s?s(l,h).then(function(_){return _.ok?(p(),_):_.text().then(function(g){return Promise.reject({response:_,message:g})})}).catch(function(_){var g=_&&_.response,b="";if(g)switch(g.status){case 404:b="Invalid SDK key or resource not found.";break;default:b=_.message;break}else b=_.message||"Network Error";(!g||g.status!==403)&&n[v?"info":"error"](S0,[g?g.status:"NO_STATUS",l,b]);var y=new Error(b);throw y.statusCode=g&&g.status,p(y),y}):Promise.reject(new Error(ep))}}var Ut="control",tp={treatment:Ut,config:null},Ac="IMPRESSION",Cc="EVENT",jn="DEBUG",tn="OPTIMIZED",$n="NONE",Er="localhost",Jl="standalone",eO="producer",Zl="consumer",ef="consumer_partial",ta="MEMORY",Ic="LOCALSTORAGE",xn="GRANTED",wi="DECLINED",tf="UNKNOWN",R0="getTreatment",Rc="getTreatments",P0="getTreatmentWithConfig",N0="getTreatmentsWithConfig",L0="getTreatmentsByFlagSet",M0="getTreatmentsByFlagSets",k0="getTreatmentsWithConfigByFlagSet",D0="getTreatmentsWithConfigByFlagSets",Zn="track",ji="split",np="splits",rp="names",Bo=0,Pc=1,F0=2,tO=0,nO=1,rO=2,iO=0,aO=1,oO=2,U0="sp",uO="im",sO="ic",cO="ev",qa="te",lO="to",fO="se",j0="ms",dO="t",pO="ts",vO="tc",hO="tcs",mO="tf",gO="tfs",yO="tcf",bO="tcfs",_O="tr",EO=0,SO=10,wO=20,is=30,OO=40,$0=50,TO=60,ip=70,x0=80,AO=0,CO=1,IO=1,RO=0,PO=1,NO=2,as={headers:{"Cache-Control":"no-cache"}};function LO(e){return"users="+encodeURIComponent(e)}function MO(e,t,n){var r=e.urls,i=e.sync.__splitFiltersValidation&&e.sync.__splitFiltersValidation.queryString,a=e.sync.impressionsMode,o=Zw(e,t.getFetch);return{getSdkAPIHealthCheck:function(){var u=r.sdk+"/version";return o(u).then(function(){return!0}).catch(function(){return!1})},getEventsAPIHealthCheck:function(){var u=r.events+"/version";return o(u).then(function(){return!0}).catch(function(){return!1})},fetchAuth:function(u){var s=r.auth+"/v2/auth";if(u){var c=u.map(LO).join("&");c&&(s+="?"+c)}return o(s,void 0,n.trackHttp(lO))},fetchSplitChanges:function(u,s,c){var f=r.sdk+"/splitChanges?since="+u+(c?"&till="+c:"")+(i||"");return o(f,s?as:void 0,n.trackHttp(U0)).catch(function(l){throw l.statusCode===414&&e.log.error(T0),l})},fetchSegmentChanges:function(u,s,c,f){var l=r.sdk+"/segmentChanges/"+s+"?since="+u+(f?"&till="+f:"");return o(l,c?as:void 0,n.trackHttp(fO))},fetchMySegments:function(u,s){var c=r.sdk+"/mySegments/"+encodeURIComponent(u);return o(c,s?as:void 0,n.trackHttp(j0))},postEventsBulk:function(u,s){var c=r.events+"/events/bulk";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(cO))},postTestImpressionsBulk:function(u,s){var c=r.events+"/testImpressions/bulk";return o(c,{method:"POST",body:u,headers:de({SplitSDKImpressionsMode:a},s)},n.trackHttp(uO))},postTestImpressionsCount:function(u,s){var c=r.events+"/testImpressions/count";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(sO))},postUniqueKeysBulkCs:function(u,s){var c=r.telemetry+"/v1/keys/cs";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(qa))},postUniqueKeysBulkSs:function(u,s){var c=r.telemetry+"/v1/keys/ss";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(qa))},postMetricsConfig:function(u,s){var c=r.telemetry+"/v1/metrics/config";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(qa),!0)},postMetricsUsage:function(u,s){var c=r.telemetry+"/v1/metrics/usage";return o(c,{method:"POST",body:u,headers:s},n.trackHttp(qa),!0)}}}function yu(e,t,n,r){r===void 0&&(r="task");var i=0,a,o=!1,u=0,s,c;function f(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return i++,e.debug(oy,[r]),a=(a?a.then(function(){return t.apply(void 0,d)}):t.apply(void 0,d)).then(function(v){return i--,v}),a}function l(d){return f.apply(void 0,s).then(function(p){return o&&d===u&&(c=setTimeout(l,n,d)),p})}return{execute:f,isExecuting:function(){return i>0},start:function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];if(!o)return o=!0,u++,s=d,e.debug(ay,[r,n]),l(u)},stop:function(){o=!1,c&&(e.debug(uy,[r]),clearTimeout(c),c=void 0)},isRunning:function(){return o}}}function ri(e,t,n,r,i,a,o,u){o===void 0&&(o=0);var s=0,c;function f(){if(n.isEmpty()&&!c)return Promise.resolve();c=n.pop(c);var l=typeof c.length=="number"?c.length+" "+i:i;e[u?"debug":"info"](Oy,[l]);var d=JSON.stringify(a?a(c):c);return o||(c=void 0),t(d).then(function(){s=0,c=void 0}).catch(function(p){o?s===o?(s=0,c=void 0,e[u?"debug":"warn"](wc,[l,p])):(s++,e[u?"debug":"warn"](Hy,[l,p])):e[u?"debug":"warn"](wc,[l,p])})}return yu(e,f,r,i+" submitter")}function B0(e,t){var n=!1,r,i=e.start;e.start=function(){n=!0,r=setTimeout(i,t)};var a=e.stop;return e.stop=function(){n=!1,clearTimeout(r),a()},e.isRunning=function(){return n},e}var ap="events";function kO(e){var t=e.settings,n=t.log,r=t.scheduler.eventsPushRate,i=t.startup.eventsFirstPushWindow,a=e.splitApi.postEventsBulk,o=e.storage.events,u=ri(n,a,o,r,ap);return i>0&&(u=B0(u,i)),o.setOnFullQueueCb(function(){u.isRunning()&&(n.info(gu,[ap]),u.execute())}),u}function DO(e,t,n){return n===void 0&&(n=!1),be(e)&&be(t)?(n&&(e=e.toLowerCase(),t=t.toLowerCase()),e.slice(e.length-t.length)===t):!1}function nf(e,t){var n;if(ut(e))for(var r=Object.keys(e),i=0;i<r.length&&!n;i++){var a=r[i],o=t(e[a],a,e);o&&(n=e[a])}else if(Array.isArray(e))for(var i=0;i<e.length&&!n;i++){var o=t(e[i],i,e);o&&(n=e[i])}return n}function qn(e,t){if(Array.isArray(e)&&typeof t=="function"){for(var n=0;n<e.length;n++)if(t(e[n],n,e)===!0)return n}return-1}function Lt(e,t){var n=Object.keys(e);return n.forEach(function(r){return t(e[r],r,e)}),e}function Nc(e,t,n){var r=n;try{var i=t.split("."),a=e;i.forEach(function(o){return a=a[o]}),typeof a<"u"&&(r=a)}catch{}return r}function FO(e,t){var n={};if(Array.isArray(e)&&be(t))for(var r=0;r<e.length;r++){var i=e[r][t];be(i)&&(n[i]||(n[i]=[]),n[i].push(e[r]))}return n}function rf(e){return e===!0||e===!1}function ln(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"?Number.isFinite?Number.isFinite(e):isFinite(e):!1}function Lc(e){return e instanceof Number&&(e=e.valueOf()),e!==e}function ut(e){return e!==null&&typeof e=="object"&&(e.constructor===Object||e.constructor!=null&&e.constructor.name==="Object")}function be(e){return typeof e=="string"||e instanceof String}function H0(e){return be(e)?e.toUpperCase():e}function Eo(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e;if(ut(t)&&Object.keys(t).forEach(function(o){var u=t[o];ut(u)&&(i[o]&&ut(i[o])?u=Eo({},i[o],u):u=Eo({},u)),u!==void 0&&(i[o]=u)}),n&&n.length){var a=n.splice(0,1)[0];i=Eo.apply(void 0,Un([i,a],n,!1))}return i}function ii(e,t){return be(e)&&be(t)?e.slice(0,t.length)===t:!1}function Mr(e){if(typeof e=="number")return e;if(ut(e)&&typeof e.valueOf=="function"){var t=e.valueOf();e=ut(t)?t+"":t}return typeof e!="string"?e===0?e:+e:(e=e.replace(/^\s+|\s+$/g,""),+e)}function K0(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(function(n){return be(n)?n:""})+"";var t=e+"";return t==="0"&&1/e===Number.NEGATIVE_INFINITY?"-0":t}function bu(e){var t={};return e.filter(function(n){return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function UO(e,t){t===void 0&&(t=JSON.stringify);var n={};return e.filter(function(r){var i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}var op="impressions";function G0(e,t){var n=FO(t,"feature"),r=[];return Lt(n,function(i,a){r.push({f:a,i:i.map(function(o){var u={k:o.keyName,t:o.treatment,m:o.time,c:o.changeNumber,r:e?o.label:void 0,b:o.bucketingKey?o.bucketingKey:void 0,pt:o.pt?o.pt:void 0};return u})})}),r}function jO(e){var t=e.settings,n=t.log,r=t.scheduler.impressionsRefreshRate,i=t.core.labelsEnabled,a=e.splitApi.postTestImpressionsBulk,o=e.storage.impressions,u=ri(n,a,o,r,op,G0.bind(void 0,i),1);return o.setOnFullQueueCb(function(){u.isRunning()&&(n.info(gu,[op]),u.execute())}),u}function W0(e){for(var t=[],n=Object.keys(e),r=0;r<n.length;r++){var i=n[r].split("::");if(i.length===2){var a=i[0],o=i[1],u={f:a,m:Number(o),rc:e[n[r]]};t.push(u)}}return{pf:t}}var $O=18e5;function xO(e){var t=e.settings.log,n=e.splitApi.postTestImpressionsCount,r=e.storage.impressionCounts;if(r)return ri(t,n,r,$O,"impression counts",W0,1)}var Bn="state::splits-arrived",_u="state::splits-cache-loaded",Yn="state::segments-arrived",So="init::timeout",Sn="init::ready",Ho="init::cache-ready",z0="state::update";function BO(e,t){if(e==="localhost")return Er;if([Jl,eO,Zl,ef].indexOf(t)===-1)throw Error("Invalid mode provided");return t}function La(e){return Zl===e||ef===e}var HO=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function af(e,t,n,r){if(r===void 0&&(r="feature flag name"),t==null)e.error(_i,[n,r]);else if(!be(t))e.error(Ei,[n,r]);else{if(HO.test(t)&&(e.warn(zy,[n,r,t]),t=t.trim()),t.length>0)return t;e.error(Si,[n,r])}return!1}function of(e,t,n,r,i){if(r===void 0&&(r="feature flag names"),i===void 0&&(i="feature flag name"),Array.isArray(t)&&t.length>0){var a=[];if(t.forEach(function(o){var u=af(e,o,n,i);u&&a.push(u)}),a.length)return bu(a)}return e.error(E0,[n,r]),!1}var uf=[{type:"bySet",maxLength:50,queryParam:"sets="},{type:"byName",maxLength:400,queryParam:"names="},{type:"byPrefix",maxLength:50,queryParam:"prefixes="}],up=/^[a-z0-9][_a-z0-9]{0,49}$/,KO=/[A-Z]/;function GO(e){return uf.some(function(t){return t.type===e})}function WO(e,t,n,r){var i=of(e,n,ot,t+" filter",t+" filter value");if(i){if(t==="bySet"&&(i=q0(e,i,ot)),i.length>r)throw new Error(r+" unique values can be specified at most for '"+t+"' filter. You passed "+i.length+". Please consider reducing the amount or using other filter.");i.sort()}return i||[]}function zO(e){var t=[];return uf.forEach(function(n){var r=n.type,i=n.queryParam,a=e[r];a.length>0&&t.push(i+a.map(function(o){return encodeURIComponent(o)}).join(","))}),t.length>0?"&"+t.join("&"):null}function q0(e,t,n){var r=t.map(function(i){return KO.test(i)&&(e.warn(n0,[n,i]),i=i.toLowerCase()),i}).filter(function(i){return up.test(i)?typeof i=="string":(e.warn(t0,[n,i,up,i]),!1)});return bu(r)}function os(e,t){return nf(e,function(n){return n.type===t&&n.values.length>0})}function qO(e,t,n){var r={validFilters:[],queryString:null,groupedFilters:{bySet:[],byName:[],byPrefix:[]}};if(!t)return r;if(La(n))return e.warn(Qy),r;if(!Array.isArray(t)||t.length===0)return e.warn(Zy),r;r.validFilters=t.filter(function(a,o){return a&&GO(a.type)&&Array.isArray(a.values)?(r.groupedFilters[a.type]=r.groupedFilters[a.type].concat(a.values),!0):(e.warn(Jy,[o]),!1)}),uf.forEach(function(a){var o=a.type,u=a.maxLength;r.groupedFilters[o].length>0&&(r.groupedFilters[o]=WO(e,o,r.groupedFilters[o],u))});var i=os(r.validFilters,"bySet");return i&&((os(r.validFilters,"byName")||os(r.validFilters,"byPrefix"))&&e.error(A0),de(r.groupedFilters,{byName:[],byPrefix:[]})),r.queryString=zO(r.groupedFilters),e.debug(sy,[r.queryString]),r}function YO(e,t,n,r){var i=of(e,n,t,"flag sets","flag set"),a=i?q0(e,i,t):[];return r.length>0&&(a=a.filter(function(o){return r.indexOf(o)>-1?!0:(e.warn(r0,[t,o]),!1)})),a}function VO(e,t){return t=H0(t),[jn,tn,$n].indexOf(t)>-1?t:(e.error(Ql,["impressionsMode",[jn,tn,$n],tn]),tn)}var sp=250;function us(e,t,n,r){if(t==null)return e.error(_i,[n,r]),!1;if(ln(t))return e.warn(Wy,[n,r,t]),K0(t);if(be(t)){if(t=t.trim(),t.length>0&&t.length<=sp)return t;t.length===0?e.error(Si,[n,r]):t.length>sp&&e.error(b0,[n,r])}else e.error(Ei,[n,r]);return!1}function _a(e,t,n){if(ut(t)){var r=us(e,t.matchingKey,n,"matchingKey"),i=us(e,t.bucketingKey,n,"bucketingKey");return r&&i?{matchingKey:r,bucketingKey:i}:(e.error(_0,[n]),!1)}else return us(e,t,n,"key")}var XO=/[A-Z]/,ss="traffic_type";function Eu(e,t,n){if(t==null)e.error(_i,[n,ss]);else if(!be(t))e.error(Ei,[n,ss]);else if(t.length===0)e.error(Si,[n,ss]);else return XO.test(t)&&(e.warn(Yy,[n]),t=t.toLowerCase()),t;return!1}var kr={mode:Jl,core:{authorizationKey:void 0,key:void 0,trafficType:void 0,labelsEnabled:!0,IPAddressesEnabled:void 0},scheduler:{featuresRefreshRate:60,segmentsRefreshRate:60,telemetryRefreshRate:3600,impressionsRefreshRate:300,offlineRefreshRate:15,eventsPushRate:60,eventsQueueSize:500,impressionsQueueSize:3e4,pushRetryBackoffBase:1},urls:{sdk:"https://sdk.split.io/api",events:"https://events.split.io/api",auth:"https://auth.split.io/api",streaming:"https://streaming.split.io",telemetry:"https://telemetry.split.io/api"},storage:void 0,debug:void 0,impressionListener:void 0,version:void 0,integrations:void 0,streamingEnabled:!0,sync:{splitFilters:void 0,impressionsMode:tn,localhostMode:void 0,enabled:!0},log:void 0};function Bt(e){return Math.round(e*1e3)}function QO(e,t){var n=t.defaults,r=t.runtime,i=t.storage,a=t.integrations,o=t.logger,u=t.localhost,s=t.consent,c=Eo({},kr,n,e),f=o(c);c.log=f,c.sync.impressionsMode=VO(f,c.sync.impressionsMode);function l(g,b,y){return b>=y?b:(f.error(O0,[g,y]),y)}var d=c.scheduler,p=c.startup;d.featuresRefreshRate=Bt(d.featuresRefreshRate),d.segmentsRefreshRate=Bt(d.segmentsRefreshRate),d.offlineRefreshRate=Bt(d.offlineRefreshRate),d.eventsPushRate=Bt(d.eventsPushRate),d.telemetryRefreshRate=Bt(l("telemetryRefreshRate",d.telemetryRefreshRate,60)),Nc(e,"scheduler.impressionsRefreshRate")===void 0&&c.sync.impressionsMode===jn&&(d.impressionsRefreshRate=60),d.impressionsRefreshRate=Bt(d.impressionsRefreshRate),d.metricsRefreshRate&&f.warn("`metricsRefreshRate` will be deprecated soon. For configuring telemetry rates, update `telemetryRefreshRate` value in configs"),p.requestTimeoutBeforeReady=Bt(p.requestTimeoutBeforeReady),p.readyTimeout=Bt(p.readyTimeout),p.eventsFirstPushWindow=Bt(p.eventsFirstPushWindow),c.mode=BO(c.core.authorizationKey,c.mode),i&&(c.storage=i(c));var v=c.core.key;if(t.acceptKey){if(c.mode===Er&&v===void 0?c.core.key="localhost_key":c.core.key=_a(f,v,"Client instantiation"),t.acceptTT){var h=c.core.trafficType;h!==void 0&&(c.core.trafficType=Eu(f,h,"Client instantiation"))}}else v!==void 0&&f.warn("Provided `key` is ignored in server-side SDK."),c.core.key=void 0;c.runtime=r(c),a&&(c.integrations=a(c)),u&&(c.sync.localhostMode=u(c)),c.streamingEnabled!==!1&&(c.streamingEnabled=!0,d.pushRetryBackoffBase=Bt(d.pushRetryBackoffBase)),c.sync.enabled!==!1&&(c.sync.enabled=!0);var _=qO(f,c.sync.splitFilters,c.mode);return c.sync.splitFilters=_.validFilters,c.sync.__splitFiltersValidation=_,c.userConsent=s(c),c}var cs="sdk_key";function JO(e,t){var n=!1;return t==null?e.error(_i,[ts,cs]):be(t)?t.length>0?n=t:e.error(Si,[ts,cs]):e.error(Ei,[ts,cs]),n}var Ot={};function ZO(e,t){var n=JO(e,t);return n&&(Ot[n]?(e.warn(Oc,[Ot[n]+" factory/ies with this SDK Key"]),Ot[n]++):(Ot[n]=1,Object.keys(Ot).length>1&&e.warn(Oc,["an instance of the Split factory"]))),n}function eT(e){Ot[e]&&Ot[e]--,Ot[e]===0&&delete Ot[e]}function wo(e){var t=e();return function(){return Math.round(e()-t)}}var $i,xi,Bi,tT=($i={},$i[Jl]=tO,$i[Zl]=nO,$i[ef]=rO,$i),nT=(xi={},xi[tn]=iO,xi[jn]=aO,xi[$n]=oO,xi),rT=(Bi={},Bi[tf]=1,Bi[xn]=2,Bi[wi]=3,Bi);function iT(){return Object.keys(Ot).length}function aT(){return Object.keys(Ot).reduce(function(e,t){return e+Ot[t]-1},0)}function oT(e){var t=0;e.validFilters.forEach(function(i){i.type==="bySet"&&(t+=i.values.length)});var n=e.groupedFilters.bySet.length,r=t-n;return{flagSetsTotal:t,flagSetsIgnored:r}}function uT(e,t){return{oM:tT[e],st:t.toLowerCase(),aF:iT(),rF:aT()}}function sT(e,t){return{isEmpty:function(){return!1},clear:function(){},pop:function(){var n=t.urls,r=t.scheduler,i=t.core.key!==void 0,a=oT(t.sync.__splitFiltersValidation),o=a.flagSetsTotal,u=a.flagSetsIgnored;return de(uT(t.mode,t.storage.type),{sE:t.streamingEnabled,rR:{sp:r.featuresRefreshRate/1e3,se:i?void 0:r.segmentsRefreshRate/1e3,ms:i?r.segmentsRefreshRate/1e3:void 0,im:r.impressionsRefreshRate/1e3,ev:r.eventsPushRate/1e3,te:r.telemetryRefreshRate/1e3},uO:{s:n.sdk!==kr.urls.sdk,e:n.events!==kr.urls.events,a:n.auth!==kr.urls.auth,st:n.streaming!==kr.urls.streaming,t:n.telemetry!==kr.urls.telemetry},iQ:r.impressionsQueueSize,eQ:r.eventsQueueSize,iM:nT[t.sync.impressionsMode],iL:!!t.impressionListener,hP:!1,tR:e.getTimeUntilReady(),tC:e.getTimeUntilReadyFromCache(),nR:e.getNonReadyUsage(),t:e.popTags(),i:t.integrations&&t.integrations.map(function(s){return s.type}),uC:t.userConsent?rT[t.userConsent]:0,fsT:o,fsI:u})}}}function cT(e){var t=e.storage.telemetry,n=e.platform.now;if(!(!t||!n)){var r=e.settings,i=e.settings,a=i.log,o=i.scheduler.telemetryRefreshRate,u=e.splitApi,s=e.readiness,c=e.sdkReadinessManager,f=wo(n),l=B0(ri(a,u.postMetricsUsage,t,o,"telemetry stats",void 0,0,!0),o);return s.gate.once(Ho,function(){t.recordTimeUntilReadyFromCache(f())}),c.incInternalReadyCbCount(),s.gate.once(Sn,function(){if(t.recordTimeUntilReady(f()),l.isRunning()){var d=ri(a,u.postMetricsConfig,sT(t,r),0,"telemetry config",void 0,0,!0);d.execute()}}),l}}var cp="unique keys",lT=9e5;function fT(e){var t=e.settings,n=t.log,r=t.core.key,i=e.splitApi,a=i.postUniqueKeysBulkCs,o=i.postUniqueKeysBulkSs,u=e.storage.uniqueKeys,s=r!==void 0,c=s?a:o,f=ri(n,c,u,lT,cp);return u.setOnFullQueueCb(function(){f.isRunning()&&(n.info(gu,[cp]),f.execute())}),f}function dT(e){var t=[jO(e),kO(e)],n=xO(e);n&&t.push(n);var r=cT(e);return e.storage.uniqueKeys&&t.push(fT(e)),{start:function(i){i||t.forEach(function(a){return a.start()}),r&&r.start()},stop:function(i){t.forEach(function(a){return a.stop()}),!i&&r&&r.stop()},isRunning:function(){return t.some(function(i){return i.isRunning()})},execute:function(i){var a=i?[]:t.map(function(o){return o.execute()});return r&&a.push(r.execute()),Promise.all(a)},isExecuting:function(){return t.some(function(i){return i.isExecuting()})}}}var pT=600,na="PUSH_NONRETRYABLE_ERROR",Mc="PUSH_RETRYABLE_ERROR",ra="PUSH_SUBSYSTEM_UP",qr="PUSH_SUBSYSTEM_DOWN",Y0="MY_SEGMENTS_UPDATE",V0="MY_SEGMENTS_UPDATE_V2",X0="SEGMENT_UPDATE",Q0="SPLIT_KILL",J0="SPLIT_UPDATE",lp="CONTROL",kc="OCCUPANCY",An;(function(e){e.STREAMING_DISABLED="STREAMING_DISABLED",e.STREAMING_PAUSED="STREAMING_PAUSED",e.STREAMING_RESUMED="STREAMING_RESUMED",e.STREAMING_RESET="STREAMING_RESET"})(An||(An={}));function Ko(e){var t=e.userConsent;return!t||t===xn}function vT(e,t){return function(n){var r=n.settings,i=n.settings,a=i.log,o=i.streamingEnabled,u=i.sync.enabled,s=n.telemetryTracker,c=e&&e(n),f=u&&o&&c&&t?t(n,c):void 0,l=dT(n);function d(){c.isRunning()?a.info(Ay):(a.info(Ty),c.start(),s.streamingEvent(ip,CO))}function p(){a.info(Cy),c.isRunning()&&(c.stop(),s.streamingEvent(ip,AO)),c.syncAll()}f&&(f.on(ra,p),f.on(qr,d));var v=!1,h=!0;return{pollingManager:c,pushManager:f,submitterManager:l,start:function(){v=!0,c&&(u?f?(h&&(c.syncAll(),h=!1),f.start()):c.start():h&&(c.syncAll(),h=!1)),l.start(!Ko(r))},stop:function(){v=!1,f&&f.stop(),c&&c.isRunning()&&c.stop(),l.stop()},isRunning:function(){return v},flush:function(){return l.execute(!Ko(r))},shared:function(_,g,b){if(c){var y=c.add(_,g,b);return{isRunning:y.isRunning,start:function(){u?f?(c.isRunning()?b.splits.usesSegments()&&y.start():y.execute(),f.add(_,y)):b.splits.usesSegments()&&y.start():g.isReady()||y.execute()},stop:function(){var m=c.get(_);m&&(f&&f.remove(_),m.isRunning()&&m.stop(),c.remove(_))},flush:function(){return Promise.resolve()}}}}}}}var Su=function(){function e(t,n,r){this.baseMillis=e.__TEST__BASE_MILLIS||n||e.DEFAULT_BASE_MILLIS,this.maxMillis=e.__TEST__MAX_MILLIS||r||e.DEFAULT_MAX_MILLIS,this.attempts=0,this.cb=t}return e.prototype.scheduleCall=function(){var t=this,n=Math.min(this.baseMillis*Math.pow(2,this.attempts),this.maxMillis);return this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=setTimeout(function(){t.timeoutID=void 0,t.cb()},n),this.attempts++,n},e.prototype.reset=function(){this.attempts=0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=void 0)},e.DEFAULT_BASE_MILLIS=1e3,e.DEFAULT_MAX_MILLIS=18e5,e}();function hT(e){return be(e.data)&&(e.parsedData=JSON.parse(e.data)),e}function mT(e){if(e.data){var t=JSON.parse(e.data);return t.parsedData=JSON.parse(t.data),t.name&&t.name==="[meta]occupancy"&&(t.parsedData.type=kc),t}}var gT=[/control_pri$/,/control_sec$/],yT=[SO,wO];function bT(e,t){var n=gT.map(function(o){return{regex:o,hasPublishers:!0,oTime:-1,cTime:-1}}),r=!0,i=!0;function a(){return n.some(function(o){return o.hasPublishers})}return{handleOpen:function(){t.streamingEvent(EO),e.emit(ra)},isStreamingUp:function(){return i&&r},handleOccupancyEvent:function(o,u,s){for(var c=0;c<n.length;c++){var f=n[c];if(f.regex.test(u)){if(t.streamingEvent(yT[c],o),s>f.oTime){f.oTime=s,f.hasPublishers=o!==0;var l=a();i&&(!l&&r?e.emit(qr):l&&!r&&e.emit(ra)),r=l}return}}},handleControlEvent:function(o,u,s){if(o===An.STREAMING_RESET){e.emit(o);return}for(var c=0;c<n.length;c++){var f=n[c];if(f.regex.test(u)){s>f.cTime&&(f.cTime=s,o===An.STREAMING_DISABLED?(t.streamingEvent(is,RO),e.emit(na)):r&&(o===An.STREAMING_PAUSED&&i?(t.streamingEvent(is,NO),e.emit(qr)):o===An.STREAMING_RESUMED&&!i&&(t.streamingEvent(is,PO),e.emit(ra))),i=o===An.STREAMING_RESUMED);return}}}}}function _T(e,t,n){var r=bT(t,n);function i(a){if(a.parsedData&&a.parsedData.code){var o=a.parsedData.code;if(n.streamingEvent(TO,o),40140<=o&&o<=40149)return!0;if(4e4<=o&&o<=49999)return!1}else n.streamingEvent(OO,IO);return!0}return{handleOpen:function(){r.handleOpen()},handleError:function(a){var o=a;try{o=hT(a)}catch(s){e.warn($y,[s])}var u=o.parsedData&&o.parsedData.message||o.message;e.error(l0,[u]),i(o)?t.emit(Mc):t.emit(na)},handleMessage:function(a){var o;try{if(o=mT(a),!o)return}catch(l){e.warn(xy,[l]);return}var u=o.parsedData,s=o.data,c=o.channel,f=o.timestamp;if(e.debug(iy,[s]),!(!r.isStreamingUp()&&[kc,lp].indexOf(u.type)===-1))switch(u.type){case J0:case X0:case V0:case Q0:t.emit(u.type,u);break;case Y0:t.emit(u.type,u,c);break;case kc:r.handleOccupancyEvent(u.metrics.publishers,c,f);break;case lp:r.handleControlEvent(u.controlType,c,f);break}}}}function ET(e,t){var n=0,r=-1,i=!1,a,o,u=new Su(s);function s(){if(a=!0,n>r){i=!1;var c=n;e.execute(o,!0).then(function(f){a&&(f!==!1&&(o&&t.trackUpdatesFromSSE(j0),r=Math.max(r,c)),i?s():u.scheduleCall())})}else a=!1}return{put:function(c,f){c<=r||c<=n||(n=c,i=!0,o=f,(u.timeoutID||!a)&&s(),u.reset())},stop:function(){a=!1,u.reset()}}}var Z0=1e4,eb=6e4,tb=10;function ST(e,t,n){function r(a){var o=0,u=!1,s,c,f=new Su(l,Z0,eb);function l(){s=!0,o>n.getChangeNumber(a)?(u=!1,t.execute(!1,a,!0,c?o:void 0).then(function(){if(s)if(u)l();else{var d=f.attempts+1;if(o<=n.getChangeNumber(a)){e.debug("Refresh completed"+(c?" bypassing the CDN":"")+" in "+d+" attempts."),s=!1;return}if(d<tb){f.scheduleCall();return}c?(e.debug("No changes fetched after "+d+" attempts with CDN bypassed."),s=!1):(f.reset(),c=!0,l())}})):s=!1}return{put:function(d){var p=n.getChangeNumber(a);d<=p||d<=o||(o=d,u=!0,c=!1,(f.timeoutID||!s)&&l(),f.reset())},stop:function(){s=!1,f.reset()}}}var i={};return{put:function(a){var o=a.changeNumber,u=a.segmentName;i[u]||(i[u]=r(u)),i[u].put(o)},stop:function(){Object.keys(i).forEach(function(a){return i[a].stop()})}}}function wT(e,t,n,r,i,a){var o=0,u=!1,s,c,f,l=new Su(d,Z0,eb);function d(){if(s=!0,o>t.getChangeNumber()){u=!1;var v=f?{payload:f,changeNumber:o}:void 0;n.execute(!0,c?o:void 0,v).then(function(){if(s)if(u)d();else{v&&i.trackUpdatesFromSSE(U0),a&&a.execute(!0);var h=l.attempts+1;if(o<=t.getChangeNumber()){e.debug("Refresh completed"+(c?" bypassing the CDN":"")+" in "+h+" attempts."),s=!1;return}if(h<tb){l.scheduleCall();return}c?(e.debug("No changes fetched after "+h+" attempts with CDN bypassed."),s=!1):(l.reset(),c=!0,d())}})}else s=!1}function p(v,h){var _=v.changeNumber,g=v.pcn,b=t.getChangeNumber();_<=b||_<=o||(o=_,u=!0,c=!1,f=void 0,h&&b===g&&(f=h),(l.timeoutID||!s)&&d(),l.reset())}return{put:p,killSplit:function(v){var h=v.changeNumber,_=v.splitName,g=v.defaultTreatment;t.killLocally(_,g,h)&&r.emit(Bn,!0),p({changeNumber:h})},stop:function(){s=!1,l.reset()}}}var nb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function sf(e){var t=String(e).replace(/[=]+$/,"");if(t.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n="",r=0,i=void 0,a=void 0,o=0;a=t.charAt(o++);~a&&(i=r%4?i*64+a:a,r++%4)?n+=String.fromCharCode(255&i>>(-2*r&6)):0)a=nb.indexOf(a);return n}function OT(e){for(var t=String(e),n="",r=void 0,i=void 0,a=0,o=nb;t.charAt(a|0)||(o="=",a%1);n+=o.charAt(63&r>>8-a%1*8)){if(i=t.charCodeAt(a+=3/4),i>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return n}function TT(e){var t=e.split(".")[1],n=t.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(sf(n).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}function AT(e,t){var n=null;for(typeof e=="number"&&(n=e,e=function(){return null});n!==null||(n=e())!==null;)n<128?t(n&127):n<2048?(t(n>>6&31|192),t(n&63|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(n&63|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(n&63|128)),n=null}function CT(e,t){for(var n,r=null;(n=r!==null?r:e())!==null;){if(n>=55296&&n<=57343&&(r=e())!==null&&r>=56320&&r<=57343){t((n-55296)*1024+r-56320+65536),r=null;continue}t(n)}r!==null&&t(r)}function IT(e,t){CT(e,function(n){AT(n,t)})}var fp=String.fromCharCode;function RT(e){if(typeof e!="string")throw TypeError("Illegal argument: "+typeof e);var t=0;return function(){return t>=e.length?null:e.charCodeAt(t++)}}function PT(){var e=[],t=[];return function(){if(arguments.length===0)return t.join("")+fp.apply(String,e);e.length+arguments.length>1024&&(t.push(fp.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}function rb(e){var t;return IT(RT(e),t=PT()),t()}/*!
12
- * +----------------------------------------------------------------------------------+
13
- * | murmurHash3.js v3.0.0 (http://github.com/karanlyons/murmurHash3.js) |
14
- * | A TypeScript/JavaScript implementation of MurmurHash3's hashing algorithms. |
15
- * |----------------------------------------------------------------------------------|
16
- * | Copyright (c) 2012-2020 Karan Lyons. Freely distributable under the MIT license. |
17
- * +----------------------------------------------------------------------------------+
18
- */function rr(e,t){return(e&65535)*t+(((e>>>16)*t&65535)<<16)}function ls(e,t){return e<<t|e>>>32-t}function NT(e){return e^=e>>>16,e=rr(e,2246822507),e^=e>>>13,e=rr(e,3266489909),e^=e>>>16,e}function LT(e,t){e=e||"",t=t||0;for(var n=e.length%4,r=e.length-n,i=t,a=0,o=3432918353,u=461845907,s=0;s<r;s=s+4)a=e.charCodeAt(s)&255|(e.charCodeAt(s+1)&255)<<8|(e.charCodeAt(s+2)&255)<<16|(e.charCodeAt(s+3)&255)<<24,a=rr(a,o),a=ls(a,15),a=rr(a,u),i^=a,i=ls(i,13),i=rr(i,5)+3864292196;switch(a=0,n){case 3:a^=(e.charCodeAt(s+2)&255)<<16;case 2:a^=(e.charCodeAt(s+1)&255)<<8;case 1:a^=e.charCodeAt(s)&255,a=rr(a,o),a=ls(a,15),a=rr(a,u),i^=a}return i^=e.length,i=NT(i),i>>>0}function wu(e,t){return LT(rb(e),t>>>0)}function ib(e,t){return Math.abs(wu(e,t)%100)+1}function MT(e){return function(n){return e(n).then(function(r){return r.json()}).then(function(r){if(r.token){var i=TT(r.token);if(typeof i.iat!="number"||typeof i.exp!="number")throw new Error('token properties "issuedAt" (iat) or "expiration" (exp) are missing or invalid');var a=JSON.parse(i["x-ably-capability"]);return de({decodedToken:i,channels:a},r)}return r})}}function dp(e){return OT(wu(e,0).toString())}var kT="1.1",DT=/^control_/;function FT(e){var t={SplitSDKClientKey:be(e.core.authorizationKey)?e.core.authorizationKey.slice(-4):"",SplitSDKVersion:e.version},n=e.runtime,r=n.ip,i=n.hostname;return r&&(t.SplitSDKMachineIP=r),i&&(t.SplitSDKMachineName=i),t}var UT=function(){function e(t,n,r){if(this.eventSource=r&&r(),!this.eventSource)throw new Error("EventSource API is not available. ");this.streamingUrl=t.urls.streaming+"/sse",this.useHeaders=n,this.headers=FT(t)}return e.prototype.setEventHandler=function(t){this.handler=t},e.prototype.open=function(t){this.close();var n=Object.keys(t.channels).map(function(i){var a=DT.test(i)?"[?occupancy=metrics.publishers]":"";return encodeURIComponent(a+i)}).join(","),r=this.streamingUrl+"?channels="+n+"&accessToken="+t.token+"&v="+kT+"&heartbeats=true";this.connection=new this.eventSource(this.useHeaders?r:r+("&SplitSDKVersion="+this.headers.SplitSDKVersion+"&SplitSDKClientKey="+this.headers.SplitSDKClientKey),this.useHeaders?{headers:this.headers}:void 0),this.handler&&(this.connection.addEventListener("open",this.handler.handleOpen),this.connection.addEventListener("message",this.handler.handleMessage),this.connection.addEventListener("error",this.handler.handleError))},e.prototype.close=function(){this.connection&&this.connection.close()},e}();function ai(e){return ut(e)?e.matchingKey:e}function jT(e){return ut(e)?e.bucketingKey:void 0}function ab(e){return ut(e)?{matchingKey:e.matchingKey,bucketingKey:e.bucketingKey}:{matchingKey:e,bucketingKey:e}}var pp;(function(e){e[e.None=0]="None",e[e.Gzip=1]="Gzip",e[e.Zlib=2]="Zlib"})(pp||(pp={}));var ia;(function(e){e[e.UnboundedFetchRequest=0]="UnboundedFetchRequest",e[e.BoundedFetchRequest=1]="BoundedFetchRequest",e[e.KeyList=2]="KeyList",e[e.SegmentRemoval=3]="SegmentRemoval"})(ia||(ia={}));var Ya=function(){if([typeof Uint8Array,typeof Uint16Array,typeof Uint32Array].some(function(R){return R!="function"}))return"global Uint8Array object is not available for gzip/zlib decompression";var t=Uint8Array,n=Uint16Array,r=Uint32Array,i=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),o=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(R,M){for(var D=new n(31),j=0;j<31;++j)D[j]=M+=1<<R[j-1];for(var x=new r(D[30]),j=1;j<30;++j)for(var W=D[j];W<D[j+1];++W)x[W]=W-D[j]<<5|j;return[D,x]},s=u(i,2),c=s[0],f=s[1];c[28]=258,f[258]=28;for(var l=u(a,0),d=l[0],p=new n(32768),v=0;v<32768;++v){var h=(v&43690)>>>1|(v&21845)<<1;h=(h&52428)>>>2|(h&13107)<<2,h=(h&61680)>>>4|(h&3855)<<4,p[v]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var _=function(R,M,D){for(var j=R.length,x=0,W=new n(M);x<j;++x)++W[R[x]-1];var K=new n(M);for(x=0;x<M;++x)K[x]=K[x-1]+W[x-1]<<1;var B;if(D){B=new n(1<<M);var $=15-M;for(x=0;x<j;++x)if(R[x])for(var H=x<<4|R[x],Z=M-R[x],ae=K[R[x]-1]++<<Z,te=ae|(1<<Z)-1;ae<=te;++ae)B[p[ae]>>>$]=H}else for(B=new n(j),x=0;x<j;++x)R[x]&&(B[x]=p[K[R[x]-1]++]>>>15-R[x]);return B},g=new t(288),v=0;v<144;++v)g[v]=8;for(var v=144;v<256;++v)g[v]=9;for(var v=256;v<280;++v)g[v]=7;for(var v=280;v<288;++v)g[v]=8;for(var b=new t(32),v=0;v<32;++v)b[v]=5;var y=_(g,9,1),m=_(b,5,1),E=function(R){for(var M=R[0],D=1;D<R.length;++D)R[D]>M&&(M=R[D]);return M},w=function(R,M,D){var j=M/8|0;return(R[j]|R[j+1]<<8)>>(M&7)&D},O=function(R,M){var D=M/8|0;return(R[D]|R[D+1]<<8|R[D+2]<<16)>>(M&7)},S=function(R){return(R+7)/8|0},A=function(R,M,D){(M==null||M<0)&&(M=0),(D==null||D>R.length)&&(D=R.length);var j=new(R instanceof n?n:R instanceof r?r:t)(D-M);return j.set(R.subarray(M,D)),j},C=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],N=function(R,M,D){var j=new Error(M||C[R]);if(j.code=R,Error.captureStackTrace&&Error.captureStackTrace(j,N),!D)throw j;return j},L=function(R,M,D){var j=R.length;if(!j||D&&D.f&&!D.l)return M||new t(0);var x=!M||D,W=!D||D.i;D||(D={}),M||(M=new t(j*3));var K=function(z){var Se=M.length;if(z>Se){var Ve=new t(Math.max(Se*2,z));Ve.set(M),M=Ve}},B=D.f||0,$=D.p||0,H=D.b||0,Z=D.l,ae=D.d,te=D.m,Q=D.n,ne=j*8;do{if(!Z){B=w(R,$,1);var re=w(R,$+1,3);if($+=3,re)if(re==1)Z=y,ae=m,te=9,Q=5;else if(re==2){var Vt=w(R,$,31)+257,wr=w(R,$+10,15)+4,Or=Vt+w(R,$+5,31)+1;$+=14;for(var Xn=new t(Or),Mi=new t(19),it=0;it<wr;++it)Mi[o[it]]=w(R,$+it*3,7);$+=wr*3;for(var Ha=E(Mi),qu=(1<<Ha)-1,Yu=_(Mi,Ha,1),it=0;it<Or;){var Ka=Yu[w(R,$,qu)];$+=Ka&15;var se=Ka>>>4;if(se<16)Xn[it++]=se;else{var mn=0,Tr=0;for(se==16?(Tr=3+w(R,$,3),$+=2,mn=Xn[it-1]):se==17?(Tr=3+w(R,$,7),$+=3):se==18&&(Tr=11+w(R,$,127),$+=7);Tr--;)Xn[it++]=mn}}var ki=Xn.subarray(0,Vt),xt=Xn.subarray(Vt);te=E(ki),Q=E(xt),Z=_(ki,te,1),ae=_(xt,Q,1)}else N(1);else{var se=S($)+4,Rt=R[se-4]|R[se-3]<<8,we=se+Rt;if(we>j){W&&N(0);break}x&&K(H+Rt),M.set(R.subarray(se,we),H),D.b=H+=Rt,D.p=$=we*8,D.f=B;continue}if($>ne){W&&N(0);break}}x&&K(H+131072);for(var Vu=(1<<te)-1,Xu=(1<<Q)-1,Di=$;;Di=$){var mn=Z[O(R,$)&Vu],gn=mn>>>4;if($+=mn&15,$>ne){W&&N(0);break}if(mn||N(2),gn<256)M[H++]=gn;else if(gn==256){Di=$,Z=null;break}else{var Ga=gn-254;if(gn>264){var it=gn-257,Qn=i[it];Ga=w(R,$,(1<<Qn)-1)+c[it],$+=Qn}var Fi=ae[O(R,$)&Xu],F=Fi>>>4;Fi||N(3),$+=Fi&15;var xt=d[F];if(F>3){var Qn=a[F];xt+=O(R,$)&(1<<Qn)-1,$+=Qn}if($>ne){W&&N(0);break}x&&K(H+131072);for(var U=H+Ga;H<U;H+=4)M[H]=M[H-xt],M[H+1]=M[H+1-xt],M[H+2]=M[H+2-xt],M[H+3]=M[H+3-xt];H=U}}D.l=Z,D.p=Di,D.b=H,D.f=B,Z&&(B=1,D.m=te,D.d=ae,D.n=Q)}while(!B);return H==M.length?M:A(M,0,H)},k=function(R){(R[0]!=31||R[1]!=139||R[2]!=8)&&N(6,"invalid gzip data");var M=R[3],D=10;M&4&&(D+=R[10]|(R[11]<<8)+2);for(var j=(M>>3&1)+(M>>4&1);j>0;j-=!R[D++]);return D+(M&2)},P=function(R){var M=R.length;return(R[M-4]|R[M-3]<<8|R[M-2]<<16|R[M-1]<<24)>>>0},I=function(R){((R[0]&15)!=8||R[0]>>>4>7||(R[0]<<8|R[1])%31)&&N(6,"invalid zlib data"),R[1]&32&&N(6,"invalid zlib data: preset dictionaries not supported")};return{gunzipSync:function(R,M){return L(R.subarray(k(R),-8),M||new t(P(R)))},unzlibSync:function(R,M){return L((I(R),R.subarray(2,-4)),M)}}}(),$T=1,xT=2;function BT(e){return String.fromCharCode.apply(null,e)}function HT(e){var t=e.split("").map(function(n){return n.charCodeAt(0)});return new Uint8Array(t)}function ob(e,t){var n=sf(e),r=HT(n);if(typeof Ya=="string")throw new Error(Ya);if(t===$T)return Ya.gunzipSync(r);if(t===xT)return Ya.unzlibSync(r);throw new Error("Invalid compression algorithm #"+t)}function ub(e,t,n){n===void 0&&(n=!0);var r=ob(e,t),i=BT(r);return n&&(i=i.replace(/\d+/g,'"$&"')),JSON.parse(i)}function KT(e,t){return ob(e,t)}function GT(e,t){var n=parseInt(t.slice(8),16)%(e.length*8),r=Math.floor(n/8),i=n%8;return(e[r]&1<<i)>0}function WT(e,t){var n=!1;return e>0?ub(t,e,n):JSON.parse(sf(t))}var sb=function(){function e(t){var n=this;this.__setData__=[],Array.isArray(t)&&t.forEach(function(r){n.add(r)})}return e.prototype.clear=function(){this.__setData__.length&&(this.__setData__.length=0)},e.prototype.add=function(t){return this.has(t)?this:(this.__setData__.push(t),this)},e.prototype.delete=function(t){var n=this.__setData__.indexOf(t);return n===-1?!1:(this.__setData__.splice(n,1),!0)},e.prototype.has=function(t){return this.__setData__.indexOf(t)!==-1},e.prototype.forEach=function(t,n){if(typeof t!="function")throw new TypeError(t+" is not a function");for(var r=0;r<this.__setData__.length;r++){var i=this.__setData__[r];t.call(n,i,i,this)}},Object.defineProperty(e.prototype,"size",{get:function(){return this.__setData__.length},enumerable:!1,configurable:!0}),e}();function pr(e){return e instanceof sb?e.__setData__.slice():Array.from(e)}function zT(){return typeof Array.from=="function"&&typeof Set=="function"&&Set.prototype&&Set.prototype.values?Set:sb}var gt=zT();function qT(e,t){var n=new gt(pr(e));return t.forEach(function(r){n.add(r)}),n}function yn(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function wt(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Ar(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function lt(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function _e(e,t){return[e[0]^t[0],e[1]^t[1]]}function vp(e){return e=_e(e,[0,e[0]>>>1]),e=wt(e,[4283543511,3981806797]),e=_e(e,[0,e[0]>>>1]),e=wt(e,[3301882366,444984403]),e=_e(e,[0,e[0]>>>1]),e}function YT(e,t){e=e||"",t=t||0;for(var n=e.length%16,r=e.length-n,i=[0,t],a=[0,t],o=[0,0],u=[0,0],s=[2277735313,289559509],c=[1291169091,658871167],f=0;f<r;f=f+16)o=[e.charCodeAt(f+4)&255|(e.charCodeAt(f+5)&255)<<8|(e.charCodeAt(f+6)&255)<<16|(e.charCodeAt(f+7)&255)<<24,e.charCodeAt(f)&255|(e.charCodeAt(f+1)&255)<<8|(e.charCodeAt(f+2)&255)<<16|(e.charCodeAt(f+3)&255)<<24],u=[e.charCodeAt(f+12)&255|(e.charCodeAt(f+13)&255)<<8|(e.charCodeAt(f+14)&255)<<16|(e.charCodeAt(f+15)&255)<<24,e.charCodeAt(f+8)&255|(e.charCodeAt(f+9)&255)<<8|(e.charCodeAt(f+10)&255)<<16|(e.charCodeAt(f+11)&255)<<24],o=wt(o,s),o=Ar(o,31),o=wt(o,c),i=_e(i,o),i=Ar(i,27),i=yn(i,a),i=yn(wt(i,[0,5]),[0,1390208809]),u=wt(u,c),u=Ar(u,33),u=wt(u,s),a=_e(a,u),a=Ar(a,31),a=yn(a,i),a=yn(wt(a,[0,5]),[0,944331445]);switch(o=[0,0],u=[0,0],n){case 15:u=_e(u,lt([0,e.charCodeAt(f+14)],48));case 14:u=_e(u,lt([0,e.charCodeAt(f+13)],40));case 13:u=_e(u,lt([0,e.charCodeAt(f+12)],32));case 12:u=_e(u,lt([0,e.charCodeAt(f+11)],24));case 11:u=_e(u,lt([0,e.charCodeAt(f+10)],16));case 10:u=_e(u,lt([0,e.charCodeAt(f+9)],8));case 9:u=_e(u,[0,e.charCodeAt(f+8)]),u=wt(u,c),u=Ar(u,33),u=wt(u,s),a=_e(a,u);case 8:o=_e(o,lt([0,e.charCodeAt(f+7)],56));case 7:o=_e(o,lt([0,e.charCodeAt(f+6)],48));case 6:o=_e(o,lt([0,e.charCodeAt(f+5)],40));case 5:o=_e(o,lt([0,e.charCodeAt(f+4)],32));case 4:o=_e(o,lt([0,e.charCodeAt(f+3)],24));case 3:o=_e(o,lt([0,e.charCodeAt(f+2)],16));case 2:o=_e(o,lt([0,e.charCodeAt(f+1)],8));case 1:o=_e(o,[0,e.charCodeAt(f)]),o=wt(o,s),o=Ar(o,31),o=wt(o,c),i=_e(i,o)}return i=_e(i,[0,e.length]),a=_e(a,[0,e.length]),i=yn(i,a),a=yn(a,i),i=vp(i),a=vp(a),i=yn(i,a),a=yn(a,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function VT(e,t){return YT(rb(e),t>>>0)}function XT(e){var t,n,r=[0],i;for(t=0;t<e.length;t+=1){for(i=parseInt(e.charAt(t),16),n=r.length-1;n>=0;n-=1)r[n]=r[n]*16+i,i=r[n]/10|0,r[n]%=10;for(;i>0;)r.unshift(i%10),i=i/10|0}return r.join("")}function QT(e){var t=VT(e).slice(0,16);return{hex:t,dec:XT(t)}}function JT(e,t){var n=e.settings,r=e.storage,i=e.splitApi,a=e.readiness,o=e.platform,u=e.telemetryTracker,s=n.core.key?ai(n.core.key):void 0,c=n.log,f;try{f=new UT(n,!s,o.getEventSource)}catch(L){c.warn(By,[L]);return}var l=MT(i.fetchAuth),d=new o.EventEmitter,p=_T(c,d,u);f.setEventHandler(p);var v=s?void 0:ST(c,t.segmentsSyncTask,r.segments),h=wT(c,r.splits,t.splitsSyncTask,a.splits,u,s?void 0:t.segmentsSyncTask),_={},g={},b=!1,y,m,E=new Su(A,n.scheduler.pushRetryBackoffBase),w,O;function S(L){w&&clearTimeout(w),O&&clearTimeout(O);var k=L.decodedToken,P=k.exp-k.iat-pT,I=typeof L.connDelay=="number"&&L.connDelay>=0?L.connDelay:60;c.info(by,[P,I]),w=setTimeout(A,P*1e3),O=setTimeout(function(){y||f.open(L)},I*1e3),u.streamingEvent($0,k.exp)}function A(){if(!y){c.info(Ey),y=!1;var L=s?Object.keys(g):void 0;l(L).then(function(k){if(!y){if(!k.pushEnabled){c.info(Sy),d.emit(na);return}L&&L.length<Object.keys(g).length||S(k)}}).catch(function(k){if(!y){if(c.error(f0,[k.message]),k.statusCode>=400&&k.statusCode<500){u.streamingEvent(x0),d.emit(na);return}d.emit(Mc)}})}}function C(){y||(y=!0,f.close(),c.info(wy),w&&clearTimeout(w),O&&clearTimeout(O),E.reset(),N())}function N(){h.stop(),s?Lt(g,function(L){var k=L.worker;return k.stop()}):v.stop()}return d.on(qr,N),d.on(ra,function(){E.reset()}),d.on(na,function(){m=!0,C(),d.emit(qr)}),d.on(Mc,function(){f.close();var k=E.scheduleCall();c.info(_y,[k/1e3]),d.emit(qr)}),d.on(An.STREAMING_RESET,function(){y||(w&&clearTimeout(w),A())}),d.on(Q0,h.killSplit),d.on(J0,function(L){if(L.d&&L.c!==void 0)try{var k=WT(L.c,L.d);if(k){h.put(L,k);return}}catch(P){c.warn(e0,[P])}h.put(L)}),s?(d.on(Y0,function(k,P){var I=P.split("_")[2],R=_[I];R&&g[R]&&g[R].worker.put(k.changeNumber,k.includesPayload?k.segmentList?k.segmentList:[]:void 0)}),d.on(V0,function(k){switch(k.u){case ia.BoundedFetchRequest:{var P;try{P=KT(k.d,k.c)}catch(D){c.warn(bo,["BoundedFetchRequest",D]);break}Lt(g,function(D){var j=D.hash64,x=D.worker;GT(P,j.hex)&&x.put(k.changeNumber)});return}case ia.KeyList:{var I=void 0,R,M;try{I=ub(k.d,k.c),R=new gt(I.a),M=new gt(I.r)}catch(D){c.warn(bo,["KeyList",D]);break}Lt(g,function(D){var j=D.hash64,x=D.worker,W=R.has(j.dec)?!0:M.has(j.dec)?!1:void 0;W!==void 0&&x.put(k.changeNumber,{name:k.segmentName,add:W})});return}case ia.SegmentRemoval:if(!k.segmentName){c.warn(bo,["SegmentRemoval","No segment name was provided"]);break}Lt(g,function(D){var j=D.worker;return j.put(k.changeNumber,{name:k.segmentName,add:!1})});return}Lt(g,function(D){var j=D.worker;j.put(k.changeNumber)})})):d.on(X0,v.put),de(Object.create(d),{stop:function(){C(),s&&this.remove(s)},start:function(){m||y===!1||(y=!1,s?this.add(s,t.segmentsSyncTask):setTimeout(A))},isRunning:function(){return y===!1},add:function(L,k){var P=dp(L);_[P]||(_[P]=L,g[L]={hash64:QT(L),worker:ET(k,u)},b=!0,setTimeout(function(){b&&(b=!1,A())},0))},remove:function(L){var k=dp(L);delete _[k],delete g[L]}})}function ZT(e){return function(n,r,i){var a=e(n,r);return i&&(a=i(a)),a.then(function(o){return o.json()}).then(function(o){return o.mySegments.map(function(u){return u.name})})}}function cb(e,t){return e<1?t:new Promise(function(n,r){var i=setTimeout(function(){r(new Error("Operation timed out because it exceeded the configured time limit of "+e+" ms."))},e);t.then(function(a){clearTimeout(i),n(a)},function(a){clearTimeout(i),r(a)})})}function eA(e,t,n,r,i,a,o,u){var s=!0,c=!0;function f(p){return c&&(p=cb(a,p)),p}function l(p){var v;if(Array.isArray(p))v=r.resetSegments(p);else{var h=p.name,_=p.add;r.isInSegment(h)!==_?(v=!0,_?r.addToSegment(h):r.removeFromSegment(h)):v=!1}n.usesSegments()&&(v||s)&&(s=!1,i.emit(Yn))}function d(p,v,h){var _=v?new Promise(function(g){l(v),g(!0)}):t(u,h,f).then(function(g){return c=!1,l(g),!0});return _.catch(function(g){return c&&o>p?(p+=1,e.warn(Uy,[p,g]),d(p)):(c=!1,!1)})}return function(v,h){return d(0,v,h)}}function tA(e,t,n,r,i){return yu(r.log,eA(r.log,ZT(e),t.splits,t.segments,n.segments,r.startup.requestTimeoutBeforeReady,r.startup.retriesOnFailureBeforeReady,i),r.scheduler.segmentsRefreshRate,"mySegmentsUpdater")}function nA(e){return function(n,r,i,a){var o=e(n,r,i);return a&&(o=a(o)),o.then(function(u){return u.json()})}}function rA(e){var t=Promise.resolve(e.getRegisteredSegments());return t.then(function(n){return Promise.all(n.map(function(r){return e.getChangeNumber(r)})).then(function(r){return r.every(function(i){return i!==-1})})})}function iA(e){for(var t=e.conditions,n=new gt,r=0;r<t.length;r++){var i=t[r].matcherGroup.matchers;i.forEach(function(a){a.matcherType==="IN_SEGMENT"&&n.add(a.userDefinedSegmentMatcherData.segmentName)})}return n}function aA(e,t){var n=t.groupedFilters,r=n.bySet,i=n.byName,a=n.byPrefix;if(r.length>0)return e.sets&&e.sets.some(function(f){return r.indexOf(f)>-1});var o=i.length>0,u=a.length>0;if(!o&&!u)return!0;var s=o&&i.indexOf(e.name)>-1,c=u&&a.some(function(f){return ii(e.name,f)});return s||c}function oA(e,t){var n=new gt,r=e.reduce(function(i,a){return a.status==="ACTIVE"&&aA(a,t)?(i.added.push([a.name,a]),iA(a).forEach(function(o){n.add(o)})):i.removed.push(a.name),i},{added:[],removed:[],segments:[]});return r.segments=pr(n),r}function uA(e,t,n,r,i,a,o,u,s){o===void 0&&(o=0),u===void 0&&(u=0);var c=!0;function f(d){return c&&o&&(d=cb(o,d)),d}function l(d){var p=d[1],v=d[2];return!!(p&&p.some(function(h){return h})||v&&v.some(function(h){return h}))}return function(p,v,h){function _(b,y){y===void 0&&(y=0),e.debug(ey,[b]);var m=Promise.resolve(h?{splits:[h.payload],till:h.changeNumber}:t(b,p,v,f)).then(function(E){c=!1;var w=oA(E.splits,i);return e.debug(ty,[w.added.length]),e.debug(ny,[w.removed.length]),e.debug(ry,[w.segments.length]),Promise.all([n.setChangeNumber(E.till),n.addSplits(w.added),n.removeSplits(w.removed),r.registerSegments(w.segments)]).then(function(O){return a?Promise.resolve(!a.splitsArrived||b!==E.till&&l(O)&&(s||rA(r))).catch(function(){return!1}).then(function(S){return S&&a.emit(Bn),!0}):!0})}).catch(function(E){return e.warn(jy,[E]),c&&u>y?(y+=1,e.info(yy,[y,E]),_(b,y)):(c=!1,!1)});return a&&c&&Promise.resolve(n.checkCache()).then(function(E){E&&a.emit(_u)}),m}var g=Promise.resolve(n.getChangeNumber());return g.then(_)}}function sA(e,t,n,r,i){return yu(r.log,uA(r.log,nA(e),t.splits,t.segments,r.sync.__splitFiltersValidation,n.splits,r.startup.requestTimeoutBeforeReady,r.startup.retriesOnFailureBeforeReady,i),r.scheduler.featuresRefreshRate,"splitChangesUpdater")}function cA(e){var t=e.splitApi,n=e.storage,r=e.readiness,i=e.settings,a=i.log,o=sA(t.fetchSplitChanges,n,r,i,!0),u={},s=ai(i.core.key),c=d(s,r,n);function f(){Lt(u,function(p){p.start()})}function l(){Lt(u,function(p){p.isRunning()&&p.stop()})}r.splits.on(Bn,function(){if(o.isRunning()){var p=n.splits.usesSegments();p!==c.isRunning()&&(a.info(hy,[p?"ON":"OFF"]),p?f():l())}});function d(p,v,h){var _=tA(t.fetchMySegments,h,v,i,p);function g(){!v.isReady()&&!h.splits.usesSegments()&&v.segments.emit(Yn)}return h.splits.usesSegments()?v.splits.once(Bn,g):setTimeout(g,0),u[p]=_,_}return{splitsSyncTask:o,segmentsSyncTask:c,start:function(){a.info(my),o.start(),n.splits.usesSegments()&&f()},stop:function(){a.info(gy),o.isRunning()&&o.stop(),l()},isRunning:o.isRunning,syncAll:function(){var p=[o.execute()];return Lt(u,function(v){p.push(v.execute())}),Promise.all(p)},add:d,remove:function(p){delete u[p]},get:function(p){return u[p]}}}var lb=function(){function e(t){t===void 0&&(t=0),this.maxQueue=t,this.queue=[]}return e.prototype.setOnFullQueueCb=function(t){this.onFullQueue=t},e.prototype.track=function(t){var n;(n=this.queue).push.apply(n,t),this.maxQueue>0&&this.queue.length>=this.maxQueue&&this.onFullQueue&&this.onFullQueue()},e.prototype.clear=function(){this.queue=[]},e.prototype.pop=function(t){var n=this.queue;return this.clear(),t?t.concat(n):n},e.prototype.isEmpty=function(){return this.queue.length===0},e}(),lA=3600*1e3;function fb(e){return e-e%lA}var db=3e4,pb=function(){function e(t){t===void 0&&(t=db),this.cache={},this.cacheSize=0,this.maxStorage=t}return e.prototype._makeKey=function(t,n){return t+"::"+fb(n)},e.prototype.track=function(t,n,r){var i=this._makeKey(t,n),a=this.cache[i];this.cache[i]=a?a+r:r,this.onFullQueue&&(this.cacheSize=this.cacheSize+r,this.cacheSize>=this.maxStorage&&this.onFullQueue())},e.prototype.pop=function(t){var n=this.cache;return this.clear(),t?(Object.keys(n).forEach(function(r){t[r]?t[r]+=n[r]:t[r]=n[r]}),t):n},e.prototype.clear=function(){this.cache={},this.cacheSize=0},e.prototype.isEmpty=function(){return Object.keys(this.cache).length===0},e}(),fA=5*1024*1024,vb=function(){function e(t){t===void 0&&(t=0),this.maxQueue=t,this.queue=[],this.queueByteSize=0}return e.prototype.setOnFullQueueCb=function(t){this.onFullQueue=t},e.prototype.track=function(t,n){return n===void 0&&(n=0),this.queueByteSize+=n,this.queue.push(t),this._checkForFlush(),!0},e.prototype.clear=function(){this.queue=[],this.queueByteSize=0},e.prototype.pop=function(t){var n=this.queue;return this.clear(),t?t.concat(n):n},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype._checkForFlush=function(){(this.queueByteSize>fA||this.maxQueue>0&&this.queue.length>=this.maxQueue)&&this.onFullQueue&&this.onFullQueue()},e}(),dA=/[^.]+$/,pA="SPLITIO";function vA(e){return e?e+".SPLITIO":"SPLITIO"}var hA=function(){function e(t){t===void 0&&(t=pA),this.prefix=t}return e.prototype.buildTrafficTypeKey=function(t){return this.prefix+".trafficType."+t},e.prototype.buildFlagSetKey=function(t){return this.prefix+".flagSet."+t},e.prototype.buildSplitKey=function(t){return this.prefix+".split."+t},e.prototype.buildSplitsTillKey=function(){return this.prefix+".splits.till"},e.prototype.isSplitKey=function(t){return ii(t,this.prefix+".split.")},e.prototype.buildSplitKeyPrefix=function(){return this.prefix+".split."},e.prototype.buildSplitsWithSegmentCountKey=function(){return this.prefix+".splits.usingSegments"},e.prototype.buildSegmentNameKey=function(t){return this.prefix+".segment."+t},e.prototype.buildSegmentTillKey=function(t){return this.prefix+".segment."+t+".till"},e.prototype.extractKey=function(t){var n=t.match(dA);if(n&&n.length)return n[0];throw new Error("Invalid latency key provided")},e.prototype.buildHashKey=function(){return this.prefix+".hash"},e}();function mA(e){return wu(e.core.authorizationKey+"::"+e.sync.__splitFiltersValidation.queryString).toString(16)}var hp=function(e){nt(t,e);function t(n,r){var i=e.call(this,n)||this;return i.matchingKey=r,i.regexSplitsCacheKey=new RegExp("^"+n+"\\.(splits?|trafficType|flagSet)\\."),i}return t.prototype.buildSegmentNameKey=function(n){return this.prefix+"."+this.matchingKey+".segment."+n},t.prototype.extractSegmentName=function(n){var r=this.prefix+"."+this.matchingKey+".segment.";if(ii(n,r))return n.substr(r.length)},t.prototype.buildOldSegmentNameKey=function(n){return this.matchingKey+"."+this.prefix+".segment."+n},t.prototype.extractOldSegmentKey=function(n){var r=this.matchingKey+"."+this.prefix+".segment.";if(ii(n,r))return n.substr(r.length)},t.prototype.buildLastUpdatedKey=function(){return this.prefix+".splits.lastUpdated"},t.prototype.isSplitsCacheKey=function(n){return this.regexSplitsCacheKey.test(n)},t}(hA);function cf(){var e="__SPLITSOFTWARE__";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}var hb=function(){function e(){}return e.prototype.addSplits=function(t){var n=this;return t.map(function(r){return n.addSplit(r[0],r[1])})},e.prototype.removeSplits=function(t){var n=this;return t.map(function(r){return n.removeSplit(r)})},e.prototype.getSplits=function(t){var n=this,r={};return t.forEach(function(i){r[i]=n.getSplit(i)}),r},e.prototype.getAll=function(){var t=this;return this.getSplitNames().map(function(n){return t.getSplit(n)})},e.prototype.checkCache=function(){return!1},e.prototype.killLocally=function(t,n,r){var i=this.getSplit(t);if(i&&(!i.changeNumber||i.changeNumber<r)){var a=de({},i);return a.killed=!0,a.defaultTreatment=n,a.changeNumber=r,this.addSplit(t,a)}return!1},e}();function aa(e){for(var t=e.conditions||[],n=0;n<t.length;n++)for(var r=t[n].matcherGroup.matchers,i=0;i<r.length;i++)if(r[i].matcherType==="IN_SEGMENT")return!0;return!1}var pt="storage:localstorage: ",fs="1",gA=function(e){nt(t,e);function t(n,r,i){var a=e.call(this)||this;return a.keys=r,a.log=n.log,a.storageHash=mA(n),a.flagSetsFilter=n.sync.__splitFiltersValidation.groupedFilters.bySet,a._checkExpiration(i),a._checkFilterQuery(),a}return t.prototype._decrementCount=function(n){var r=Mr(localStorage.getItem(n))-1;r>0?localStorage.setItem(n,r):localStorage.removeItem(n)},t.prototype._decrementCounts=function(n){try{if(n){var r=this.keys.buildTrafficTypeKey(n.trafficTypeName);if(this._decrementCount(r),aa(n)){var i=this.keys.buildSplitsWithSegmentCountKey();this._decrementCount(i)}}}catch(a){this.log.error(pt+a)}},t.prototype._incrementCounts=function(n){try{if(n){var r=this.keys.buildTrafficTypeKey(n.trafficTypeName);if(localStorage.setItem(r,Mr(localStorage.getItem(r))+1),aa(n)){var i=this.keys.buildSplitsWithSegmentCountKey();localStorage.setItem(i,Mr(localStorage.getItem(i))+1)}}}catch(a){this.log.error(pt+a)}},t.prototype.clear=function(){this.log.info(pt+"Flushing Splits data from localStorage");for(var n=localStorage.length,r=[],i=0;i<n;i++){var a=localStorage.key(i);a!=null&&this.keys.isSplitsCacheKey(a)&&r.push(a)}r.forEach(function(o){localStorage.removeItem(o)}),this.hasSync=!1},t.prototype.addSplit=function(n,r){try{var i=this.keys.buildSplitKey(n),a=localStorage.getItem(i),o=a?JSON.parse(a):null;return localStorage.setItem(i,JSON.stringify(r)),this._incrementCounts(r),this._decrementCounts(o),o&&this.removeFromFlagSets(o.name,o.sets),this.addToFlagSets(r),!0}catch(u){return this.log.error(pt+u),!1}},t.prototype.removeSplit=function(n){try{var r=this.getSplit(n);return localStorage.removeItem(this.keys.buildSplitKey(n)),this._decrementCounts(r),r&&this.removeFromFlagSets(r.name,r.sets),!0}catch(i){return this.log.error(pt+i),!1}},t.prototype.getSplit=function(n){var r=localStorage.getItem(this.keys.buildSplitKey(n));return r&&JSON.parse(r)},t.prototype.setChangeNumber=function(n){if(this.updateNewFilter){this.log.info(pt+"SDK key or feature flag filter criteria was modified. Updating cache");var r=this.keys.buildHashKey();try{localStorage.setItem(r,this.storageHash)}catch(i){this.log.error(pt+i)}this.updateNewFilter=!1}try{return localStorage.setItem(this.keys.buildSplitsTillKey(),n+""),localStorage.setItem(this.keys.buildLastUpdatedKey(),Date.now()+""),this.hasSync=!0,!0}catch(i){return this.log.error(pt+i),!1}},t.prototype.getChangeNumber=function(){var n=-1,r=localStorage.getItem(this.keys.buildSplitsTillKey());return r!==null?(r=parseInt(r,10),Lc(r)?n:r):n},t.prototype.getSplitNames=function(){for(var n=localStorage.length,r=[],i=0;i<n;){var a=localStorage.key(i);a!=null&&this.keys.isSplitKey(a)&&r.push(this.keys.extractKey(a)),i++}return r},t.prototype.trafficTypeExists=function(n){var r=Mr(localStorage.getItem(this.keys.buildTrafficTypeKey(n)));return ln(r)&&r>0},t.prototype.usesSegments=function(){if(!this.hasSync)return!0;var n=localStorage.getItem(this.keys.buildSplitsWithSegmentCountKey()),r=n===null?0:Mr(n);return ln(r)?r>0:!0},t.prototype.checkCache=function(){return this.getChangeNumber()>-1},t.prototype._checkExpiration=function(n){var r=localStorage.getItem(this.keys.buildLastUpdatedKey());r!==null&&(r=parseInt(r,10),!Lc(r)&&n&&r<n&&this.clear())},t.prototype._checkFilterQuery=function(){var n=this.keys.buildHashKey(),r=localStorage.getItem(n);if(r!==this.storageHash)try{this.updateNewFilter=!0,this.checkCache()&&this.clear()}catch(i){this.log.error(pt+i)}},t.prototype.getNamesByFlagSets=function(n){var r=this;return n.map(function(i){var a=r.keys.buildFlagSetKey(i),o=localStorage.getItem(a);return new gt(o?JSON.parse(o):[])})},t.prototype.addToFlagSets=function(n){var r=this;n.sets&&n.sets.forEach(function(i){if(!(r.flagSetsFilter.length>0&&!r.flagSetsFilter.some(function(s){return s===i}))){var a=r.keys.buildFlagSetKey(i),o=localStorage.getItem(a),u=new gt(o?JSON.parse(o):[]);u.add(n.name),localStorage.setItem(a,JSON.stringify(pr(u)))}})},t.prototype.removeFromFlagSets=function(n,r){var i=this;r&&r.forEach(function(a){i.removeNames(a,n)})},t.prototype.removeNames=function(n,r){var i=this.keys.buildFlagSetKey(n),a=localStorage.getItem(i);if(a){var o=new gt(JSON.parse(a));if(o.delete(r),o.size===0){localStorage.removeItem(i);return}localStorage.setItem(i,JSON.stringify(pr(o)))}},t}(hb),mb=function(){function e(){}return e.prototype.registerSegments=function(t){return!1},e.prototype.setChangeNumber=function(t,n){return!0},e.prototype.getChangeNumber=function(t){return-1},e.prototype.resetSegments=function(t){return!0},e}(),mp=function(e){nt(t,e);function t(n,r){var i=e.call(this)||this;return i.log=n,i.keys=r,i}return t.prototype.clear=function(){this.log.info(pt+"Flushing MySegments data from localStorage"),this.resetSegments([])},t.prototype.addToSegment=function(n){var r=this.keys.buildSegmentNameKey(n);try{return localStorage.setItem(r,fs),!0}catch(i){return this.log.error(pt+i),!1}},t.prototype.removeFromSegment=function(n){var r=this.keys.buildSegmentNameKey(n);try{return localStorage.removeItem(r),!0}catch(i){return this.log.error(pt+i),!1}},t.prototype.isInSegment=function(n){return localStorage.getItem(this.keys.buildSegmentNameKey(n))===fs},t.prototype.resetSegments=function(n){var r=this,i=!1,a,o=Object.keys(localStorage).reduce(function(u,s){var c=r.keys.extractSegmentName(s);if(c)u.push(c);else if(c=r.keys.extractOldSegmentKey(s),c){var f=r.keys.buildSegmentNameKey(c);try{!localStorage.getItem(f)&&n.indexOf(c)>-1&&(localStorage.setItem(f,fs),u.push(c)),localStorage.removeItem(s)}catch(l){r.log.error(l)}}return u},[]);if(n.length===0&&o.length===n.length)return i;if(o.length!==n.length)i=!0,o.forEach(function(u){return r.removeFromSegment(u)}),n.forEach(function(u){return r.addToSegment(u)});else{for(a=0;a<n.length&&o.indexOf(n[a])!==-1;a++);a<n.length&&(i=!0,o.forEach(function(u){return r.removeFromSegment(u)}),n.forEach(function(u){return r.addToSegment(u)}))}return i},t.prototype.getRegisteredSegments=function(){var n=this;return Object.keys(localStorage).reduce(function(r,i){var a=n.keys.extractSegmentName(i);return a&&r.push(a),r},[])},t.prototype.getKeysCount=function(){return 1},t}(mb),Go=function(e){nt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.segmentCache={},n}return t.prototype.clear=function(){this.segmentCache={}},t.prototype.addToSegment=function(n){return this.segmentCache[n]=!0,!0},t.prototype.removeFromSegment=function(n){return delete this.segmentCache[n],!0},t.prototype.isInSegment=function(n){return this.segmentCache[n]===!0},t.prototype.resetSegments=function(n){var r=this,i=!1,a,o=Object.keys(this.segmentCache);if(n.length===0&&o.length===n.length)return i;if(o.length!==n.length)i=!0,this.segmentCache={},n.forEach(function(u){r.addToSegment(u)});else{for(a=0;a<n.length&&this.isInSegment(n[a]);a++);a<n.length&&(i=!0,this.segmentCache={},n.forEach(function(u){r.addToSegment(u)}))}return i},t.prototype.getRegisteredSegments=function(){return Object.keys(this.segmentCache)},t.prototype.getKeysCount=function(){return 1},t}(mb),Wo=function(e){nt(t,e);function t(n){var r=e.call(this)||this;return r.splitsCache={},r.ttCache={},r.changeNumber=-1,r.splitsWithSegmentsCount=0,r.flagSetsCache={},r.flagSetsFilter=n?n.groupedFilters.bySet:[],r}return t.prototype.clear=function(){this.splitsCache={},this.ttCache={},this.changeNumber=-1,this.splitsWithSegmentsCount=0},t.prototype.addSplit=function(n,r){var i=this.getSplit(n);if(i){var a=i.trafficTypeName;this.ttCache[a]--,this.ttCache[a]||delete this.ttCache[a],this.removeFromFlagSets(i.name,i.sets),aa(i)&&this.splitsWithSegmentsCount--}if(r){this.splitsCache[n]=r;var o=r.trafficTypeName;return this.ttCache[o]=(this.ttCache[o]||0)+1,this.addToFlagSets(r),aa(r)&&this.splitsWithSegmentsCount++,!0}else return!1},t.prototype.removeSplit=function(n){var r=this.getSplit(n);if(r){delete this.splitsCache[n];var i=r.trafficTypeName;return this.ttCache[i]--,this.ttCache[i]||delete this.ttCache[i],this.removeFromFlagSets(r.name,r.sets),aa(r)&&this.splitsWithSegmentsCount--,!0}else return!1},t.prototype.getSplit=function(n){return this.splitsCache[n]||null},t.prototype.setChangeNumber=function(n){return this.changeNumber=n,!0},t.prototype.getChangeNumber=function(){return this.changeNumber},t.prototype.getSplitNames=function(){return Object.keys(this.splitsCache)},t.prototype.trafficTypeExists=function(n){return ln(this.ttCache[n])&&this.ttCache[n]>0},t.prototype.usesSegments=function(){return this.getChangeNumber()===-1||this.splitsWithSegmentsCount>0},t.prototype.getNamesByFlagSets=function(n){var r=this;return n.map(function(i){return r.flagSetsCache[i]||new gt})},t.prototype.addToFlagSets=function(n){var r=this;n.sets&&n.sets.forEach(function(i){r.flagSetsFilter.length>0&&!r.flagSetsFilter.some(function(a){return a===i})||(r.flagSetsCache[i]||(r.flagSetsCache[i]=new gt([])),r.flagSetsCache[i].add(n.name))})},t.prototype.removeFromFlagSets=function(n,r){var i=this;r&&r.forEach(function(a){i.removeNames(a,n)})},t.prototype.removeNames=function(n,r){this.flagSetsCache[n]&&(this.flagSetsCache[n].delete(r),this.flagSetsCache[n].size===0&&delete this.flagSetsCache[n])},t}(hb),gb="GOOGLE_ANALYTICS_TO_SPLIT",yb="SPLIT_TO_GOOGLE_ANALYTICS",yA=864e6,bA=0,_A=22,EA=1.5;function gp(e){var t=Math.min(_A,Math.max(bA,Math.ceil(Math.log(e)/Math.log(EA))));return Lc(t)?0:t}var SA=20,wA=10;function yp(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}var OA=.001;function bb(e){var t=e.settings;return t.mode!==Er&&(t.core.key===void 0||Math.random()<=OA)}var _b=function(){function e(t,n){this.splits=t,this.segments=n,this.e=!0,this.notReadyUsage=0,this.impressionStats=[0,0,0],this.eventStats=[0,0],this.lastSync={},this.httpErrors={},this.httpLatencies={},this.authRejections=0,this.tokenRefreshes=0,this.streamingEvents=[],this.tags=[],this.exceptions={},this.latencies={},this.updatesFromSSE={sp:0,ms:0}}return e.prototype.isEmpty=function(){return this.e},e.prototype.clear=function(){},e.prototype.pop=function(){return this.e=!0,{lS:this.getLastSynchronization(),mL:this.popLatencies(),mE:this.popExceptions(),hE:this.popHttpErrors(),hL:this.popHttpLatencies(),tR:this.popTokenRefreshes(),aR:this.popAuthRejections(),iQ:this.getImpressionStats(Bo),iDe:this.getImpressionStats(F0),iDr:this.getImpressionStats(Pc),spC:this.splits&&this.splits.getSplitNames().length,seC:this.segments&&this.segments.getRegisteredSegments().length,skC:this.segments&&this.segments.getKeysCount(),sL:this.getSessionLength(),eQ:this.getEventStats(Bo),eD:this.getEventStats(Pc),sE:this.popStreamingEvents(),t:this.popTags(),ufs:this.popUpdatesFromSSE()}},e.prototype.getTimeUntilReady=function(){return this.timeUntilReady},e.prototype.recordTimeUntilReady=function(t){this.timeUntilReady=t},e.prototype.getTimeUntilReadyFromCache=function(){return this.timeUntilReadyFromCache},e.prototype.recordTimeUntilReadyFromCache=function(t){this.timeUntilReadyFromCache=t},e.prototype.getNonReadyUsage=function(){return this.notReadyUsage},e.prototype.recordNonReadyUsage=function(){this.notReadyUsage++},e.prototype.getImpressionStats=function(t){return this.impressionStats[t]},e.prototype.recordImpressionStats=function(t,n){this.impressionStats[t]+=n,this.e=!1},e.prototype.getEventStats=function(t){return this.eventStats[t]},e.prototype.recordEventStats=function(t,n){this.eventStats[t]+=n,this.e=!1},e.prototype.getLastSynchronization=function(){return this.lastSync},e.prototype.recordSuccessfulSync=function(t,n){this.lastSync[t]=n,this.e=!1},e.prototype.popHttpErrors=function(){var t=this.httpErrors;return this.httpErrors={},t},e.prototype.recordHttpError=function(t,n){var r=this.httpErrors[t]=this.httpErrors[t]||{};r[n]=(r[n]||0)+1,this.e=!1},e.prototype.popHttpLatencies=function(){var t=this.httpLatencies;return this.httpLatencies={},t},e.prototype.recordHttpLatency=function(t,n){var r=this.httpLatencies[t]=this.httpLatencies[t]||yp();r[gp(n)]++,this.e=!1},e.prototype.popAuthRejections=function(){var t=this.authRejections;return this.authRejections=0,t},e.prototype.recordAuthRejections=function(){this.authRejections++,this.e=!1},e.prototype.popTokenRefreshes=function(){var t=this.tokenRefreshes;return this.tokenRefreshes=0,t},e.prototype.recordTokenRefreshes=function(){this.tokenRefreshes++,this.e=!1},e.prototype.popStreamingEvents=function(){return this.streamingEvents.splice(0)},e.prototype.recordStreamingEvents=function(t){this.streamingEvents.length<SA&&this.streamingEvents.push(t),this.e=!1},e.prototype.popTags=function(){return this.tags.splice(0)},e.prototype.addTag=function(t){this.tags.length<wA&&this.tags.push(t),this.e=!1},e.prototype.getSessionLength=function(){return this.sessionLength},e.prototype.recordSessionLength=function(t){this.sessionLength=t,this.e=!1},e.prototype.popExceptions=function(){var t=this.exceptions;return this.exceptions={},t},e.prototype.recordException=function(t){this.exceptions[t]=(this.exceptions[t]||0)+1,this.e=!1},e.prototype.popLatencies=function(){var t=this.latencies;return this.latencies={},t},e.prototype.recordLatency=function(t,n){var r=this.latencies[t]=this.latencies[t]||yp();r[gp(n)]++,this.e=!1},e.prototype.popUpdatesFromSSE=function(){var t=this.updatesFromSSE;return this.updatesFromSSE={sp:0,ms:0},t},e.prototype.recordUpdatesFromSSE=function(t){this.updatesFromSSE[t]++,this.e=!1},e}(),Eb=function(){function e(t){t===void 0&&(t=db),this.uniqueTrackerSize=0,this.uniqueKeysTracker={},this.maxStorage=t}return e.prototype.setOnFullQueueCb=function(t){this.onFullQueue=t},e.prototype.track=function(t,n){this.uniqueKeysTracker[t]||(this.uniqueKeysTracker[t]=new gt);var r=this.uniqueKeysTracker[t];r.has(n)||(r.add(n),this.uniqueTrackerSize++),this.uniqueTrackerSize>=this.maxStorage&&this.onFullQueue&&this.onFullQueue()},e.prototype.clear=function(){this.uniqueTrackerSize=0,this.uniqueKeysTracker={}},e.prototype.pop=function(){var t=this.uniqueKeysTracker;return this.clear(),this.fromUniqueKeysCollector(t)},e.prototype.isEmpty=function(){return Object.keys(this.uniqueKeysTracker).length===0},e.prototype.fromUniqueKeysCollector=function(t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var a=r[i],o=pr(t[a]),u={k:a,fs:o};n.push(u)}return{keys:n}},e}();function Ou(e){var t=e.settings,n=t.scheduler,r=n.impressionsQueueSize,i=n.eventsQueueSize,a=t.sync,o=a.impressionsMode,u=a.__splitFiltersValidation,s=new Wo(u),c=new Go,f={splits:s,segments:c,impressions:new lb(r),impressionCounts:o!==jn?new pb:void 0,events:new vb(i),telemetry:bb(e)?new _b(s,c):void 0,uniqueKeys:o===$n?new Eb:void 0,destroy:function(){this.splits.clear(),this.segments.clear(),this.impressions.clear(),this.impressionCounts&&this.impressionCounts.clear(),this.events.clear(),this.uniqueKeys&&this.uniqueKeys.clear()},shared:function(){return{splits:this.splits,segments:new Go,impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,destroy:function(){this.splits=new Wo(u),this.segments.clear()}}}};if(e.settings.mode===Er){var l=function(){return!0};f.impressions.track=l,f.events.track=l,f.impressionCounts&&(f.impressionCounts.track=l),f.uniqueKeys&&(f.uniqueKeys.track=l)}return f}Ou.type=ta;function TA(e){e===void 0&&(e={});var t=vA(e.prefix);function n(r){if(!cf())return r.settings.log.warn(pt+"LocalStorage API is unavailable. Falling back to default MEMORY storage"),Ou(r);var i=r.settings,a=r.settings,o=a.log,u=a.scheduler,s=u.impressionsQueueSize,c=u.eventsQueueSize,f=a.sync,l=f.impressionsMode,d=f.__splitFiltersValidation,p=ai(i.core.key),v=new hp(t,p),h=Date.now()-yA,_=new gA(i,v,h),g=new mp(o,v);return{splits:_,segments:g,impressions:new lb(s),impressionCounts:l!==jn?new pb:void 0,events:new vb(c),telemetry:bb(r)?new _b(_,g):void 0,uniqueKeys:l===$n?new Eb:void 0,destroy:function(){var b;this.splits=new Wo(d),this.segments=new Go,this.impressions.clear(),this.impressionCounts&&this.impressionCounts.clear(),this.events.clear(),(b=this.uniqueKeys)===null||b===void 0||b.clear()},shared:function(b){var y=new hp(t,b);return{splits:this.splits,segments:new mp(o,y),impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,destroy:function(){this.splits=new Wo(d),this.segments=new Go}}}}}return n.type=Ic,n}function Te(e){return e!=null&&typeof e.then=="function"}function AA(e,t,n,r){if(!be(t)||t.length===0)return e.warn(r+": you passed an invalid attribute name, attribute name must be a non-empty string."),!1;var i=be(n),a=ln(n),o=rf(n),u=Array.isArray(n);return i||a||o||u?!0:(e.warn(r+": you passed an invalid attribute value for "+t+". Acceptable types are: string, number, boolean and array of strings."),!1)}function Sb(e,t,n){return t==null||ut(t)?t:(e.error(Xl,[n,"attributes"]),!1)}function bp(e,t,n){if(!Sb(e,t,n))return!1;var r=!0;return Object.keys(t).forEach(function(i){AA(e,i,t[i],n)||(r=!1)}),r}var CA=/^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/,ds="event_type";function wb(e,t,n){if(t==null)e.error(_i,[n,ds]);else if(!be(t))e.error(Ei,[n,ds]);else if(t.length===0)e.error(Si,[n,ds]);else if(!CA.test(t))e.error(h0,[n,t]);else return t;return!1}function Ob(e,t,n){return ln(t)||t==null?t:(e.error(g0,[n]),!1)}var Hi={NULL:0,STRING:2,BOOLEAN:4,NUMBER:8},IA=300,RA=1024*32,ps=1024;function Tb(e,t,n){if(t==null)return{properties:null,size:ps};if(!ut(t))return e.error(Xl,[n,"properties"]),{properties:!1,size:ps};var r=Object.keys(t),i=de({},t),a={properties:i,size:ps};r.length>IA&&e.warn(Gy,[n]);for(var o=0;o<r.length;o++){a.size+=r[o].length*Hi.STRING;var u=i[r[o]],s=be(u),c=ln(u),f=rf(u),l=u===null;if(s||c||f||l||(i[r[o]]=null,u=null,l=!0,e.warn(Ky,[n,r[o]])),l?a.size+=Hi.NULL:c?a.size+=Hi.NUMBER:f?a.size+=Hi.BOOLEAN:s&&(a.size+=u.length*Hi.STRING),a.size>RA){e.error(m0,[n]),a.properties=!1;break}}return a}function oa(e,t,n){return t.isDestroyed()?(e.error(y0,[n]),!1):!0}function Oo(e,t,n,r){return t.isReady()||t.isReadyFromCache()?!0:(e.warn(Fy,[n,r?" for feature flag "+r.toString():""]),!1)}var PA="killed",NA="default rule",Ab="definition not found",Cb="not ready",Tu="exception",LA="archived",MA="not in split";function Dc(e,t,n,r,i){return t.isReady()&&(r===Ab||r==null)?(e.warn(qy,[i,n]),!1):!0}function _p(e,t,n){e.warn(Vy,[n,t])}function kA(e,t,n,r,i,a){if(!t.isReady()||r===Er)return!0;var o=n.trafficTypeExists(i);return Te(o)?o.then(function(u){return u||_p(e,i,a),u}):(o||_p(e,i,a),o)}function DA(e){var t=e.conditions,n=nf(t,function(r){return r.conditionType==="ROLLOUT"});return n||(n=t[0]),n?n.partitions.map(function(r){return r.treatment}):[]}function Fc(e){return e?{name:e.name,trafficType:e.trafficTypeName,killed:e.killed,changeNumber:e.changeNumber||0,treatments:DA(e),configs:e.configurations||{},sets:e.sets||[],defaultTreatment:e.defaultTreatment}:null}function Ep(e){var t=[];return e.forEach(function(n){var r=Fc(n);r&&t.push(r)}),t}function FA(e,t,n){var r=n.readinessManager,i=n.sdkStatus,a=e.log,o=e.mode,u=La(o);return de(Object.create(i),{split:function(s){var c=af(a,s,ji);if(!oa(a,r,ji)||!Oo(a,r,ji)||!c)return u?Promise.resolve(null):null;var f=t.getSplit(c);return Te(f)?f.catch(function(){return null}).then(function(l){return Dc(a,r,c,l,ji),Fc(l)}):(Dc(a,r,c,f,ji),Fc(f))},splits:function(){if(!oa(a,r,np)||!Oo(a,r,np))return u?Promise.resolve([]):[];var s=t.getAll();return Te(s)?s.catch(function(){return[]}).then(Ep):Ep(s)},names:function(){if(!oa(a,r,rp)||!Oo(a,r,rp))return u?Promise.resolve([]):[];var s=t.getSplitNames();return Te(s)?s.catch(function(){return[]}):s}})}var UA=function(){function e(){this.attributesCache={}}return e.prototype.setAttribute=function(t,n){return this.attributesCache[t]=n,!0},e.prototype.getAttribute=function(t){return this.attributesCache[t]},e.prototype.setAttributes=function(t){return this.attributesCache=de(this.attributesCache,t),!0},e.prototype.getAll=function(){return this.attributesCache},e.prototype.removeAttribute=function(t){return Object.keys(this.attributesCache).indexOf(t)>=0?(delete this.attributesCache[t],!0):!1},e.prototype.clear=function(){return this.attributesCache={},!0},e}();function jA(e,t){var n=new UA,r=t.getTreatment,i=t.getTreatmentWithConfig,a=t.getTreatments,o=t.getTreatmentsWithConfig,u=t.getTreatmentsByFlagSets,s=t.getTreatmentsWithConfigByFlagSets,c=t.getTreatmentsByFlagSet,f=t.getTreatmentsWithConfigByFlagSet,l=t.track;function d(w,O,S){return r(w,O,E(S))}function p(w,O,S){return i(w,O,E(S))}function v(w,O,S){return a(w,O,E(S))}function h(w,O,S){return o(w,O,E(S))}function _(w,O,S){return u(w,O,E(S))}function g(w,O,S){return s(w,O,E(S))}function b(w,O,S){return c(w,O,E(S))}function y(w,O,S){return f(w,O,E(S))}function m(w,O,S,A,C){return l(w,O,S,A,C)}function E(w){var O=n.getAll();return Object.keys(O).length>0?de({},O,w):w}return de(t,{getTreatment:d,getTreatmentWithConfig:p,getTreatments:v,getTreatmentsWithConfig:h,getTreatmentsByFlagSets:_,getTreatmentsWithConfigByFlagSets:g,getTreatmentsByFlagSet:b,getTreatmentsWithConfigByFlagSet:y,track:m,setAttribute:function(w,O){var S={};return S[w]=O,bp(e,S,"setAttribute")?(e.debug("stored "+O+" for attribute "+w),n.setAttribute(w,O)):!1},getAttribute:function(w){return e.debug("retrieved attribute "+w),n.getAttribute(w+"")},setAttributes:function(w){return bp(e,w,"setAttributes")?n.setAttributes(w):!1},getAttributes:function(){return n.getAll()},removeAttribute:function(w){return e.debug("removed attribute "+w),n.removeAttribute(w+"")},clearAttributes:function(){return n.clear()}})}function Sp(e,t,n,r){var i=jA(e,t);return de(i,{getTreatment:i.getTreatment.bind(i,n),getTreatmentWithConfig:i.getTreatmentWithConfig.bind(i,n),getTreatments:i.getTreatments.bind(i,n),getTreatmentsWithConfig:i.getTreatmentsWithConfig.bind(i,n),getTreatmentsByFlagSets:i.getTreatmentsByFlagSets.bind(i,n),getTreatmentsWithConfigByFlagSets:i.getTreatmentsWithConfigByFlagSets.bind(i,n),getTreatmentsByFlagSet:i.getTreatmentsByFlagSet.bind(i,n),getTreatmentsWithConfigByFlagSet:i.getTreatmentsWithConfigByFlagSet.bind(i,n),track:r?i.track.bind(i,n,r):i.track.bind(i,n),isClientSide:!0,key:n,trafficType:r})}var Ee={UNDEFINED:0,ALL_KEYS:1,IN_SEGMENT:2,WHITELIST:3,EQUAL_TO:4,GREATER_THAN_OR_EQUAL_TO:5,LESS_THAN_OR_EQUAL_TO:6,BETWEEN:7,EQUAL_TO_SET:8,CONTAINS_ANY_OF_SET:9,CONTAINS_ALL_OF_SET:10,PART_OF_SET:11,ENDS_WITH:12,STARTS_WITH:13,CONTAINS_STRING:14,IN_SPLIT_TREATMENT:15,EQUAL_TO_BOOLEAN:16,MATCHES_STRING:17},Je={BOOLEAN:"BOOLEAN",STRING:"STRING",NUMBER:"NUMBER",SET:"SET",DATETIME:"DATETIME",NOT_SPECIFIED:"NOT_SPECIFIED"};function $A(e){var t=Ee[e];return t||Ee.UNDEFINED}function xA(e){return e?e.segmentName:void 0}function BA(e){return new gt(e.whitelist)}function wp(e){return e.whitelist}function Op(e){return e.value}function Ib(e){return new Date(e).setUTCHours(0,0,0,0)}function To(e){return new Date(e).setUTCSeconds(0,0)}function HA(e){var t=e.map(function(n){var r=n.matcherType,i=n.negate,a=n.keySelector,o=n.userDefinedSegmentMatcherData,u=n.whitelistMatcherData,s=n.unaryNumericMatcherData,c=n.betweenMatcherData,f=n.dependencyMatcherData,l=n.booleanMatcherData,d=n.stringMatcherData,p=a&&a.attribute,v=$A(r),h=Je.STRING,_=void 0;return v===Ee.IN_SEGMENT?_=xA(o):v===Ee.WHITELIST?_=BA(u):v===Ee.EQUAL_TO?(_=Op(s),h=Je.NUMBER,s.dataType==="DATETIME"&&(_=Ib(_),h=Je.DATETIME)):v===Ee.GREATER_THAN_OR_EQUAL_TO||v===Ee.LESS_THAN_OR_EQUAL_TO?(_=Op(s),h=Je.NUMBER,s.dataType==="DATETIME"&&(_=To(_),h=Je.DATETIME)):v===Ee.BETWEEN?(_=c,h=Je.NUMBER,_.dataType==="DATETIME"&&(_.start=To(_.start),_.end=To(_.end),h=Je.DATETIME)):v===Ee.EQUAL_TO_SET||v===Ee.CONTAINS_ANY_OF_SET||v===Ee.CONTAINS_ALL_OF_SET||v===Ee.PART_OF_SET?(_=wp(u),h=Je.SET):v===Ee.STARTS_WITH||v===Ee.ENDS_WITH||v===Ee.CONTAINS_STRING?_=wp(u):v===Ee.IN_SPLIT_TREATMENT?(_=f,h=Je.NOT_SPECIFIED):v===Ee.EQUAL_TO_BOOLEAN?(h=Je.BOOLEAN,_=l):v===Ee.MATCHES_STRING&&(_=d),{attribute:p,negate:i,type:v,value:_,dataType:h}});return qn(t,function(n){return n.type===Ee.UNDEFINED})===-1?t:[]}var KA=function(){function e(t,n){if(t[t.length-1]!==100)throw new RangeError("Provided invalid dataset as input");this._ranges=t,this._treatments=n}return e.parse=function(t){var n=t.reduce(function(a,o){var u=o.size,s=o.treatment;return a.ranges.push(a.inc+=u),a.treatments.push(s),a},{inc:0,ranges:[],treatments:[]}),r=n.ranges,i=n.treatments;return new e(r,i)},e.prototype.getTreatmentFor=function(t){if(t<0||t>100)throw new RangeError("Please provide a value between 0 and 100");var n=qn(this._ranges,function(i){return t<=i}),r=this._treatments[n];return r},e}();function GA(e){return function(n){return e.debug(Ig),n!=null}}function WA(e,t,n){return function(i){var a=n.segments.isInSegment(t,i);return Te(a)?a.then(function(o){return e.debug(Sc,[t,i,a]),o}):e.debug(Sc,[t,i,a]),a}}function zA(e,t){return function(r){var i=t.has(r);return e.debug(Wg,[r,pr(t).join(","),i]),i}}function qA(e,t){return function(r){var i=r===t;return e.debug(Fg,[r,t,i]),i}}function YA(e,t){return function(r){var i=r>=t;return e.debug($g,[r,t,i]),i}}function VA(e,t){return function(r){var i=r<=t;return e.debug(xg,[r,t,i]),i}}function XA(e,t){return function(r){var i=r>=t.start&&r<=t.end;return e.debug(Rg,[r,t.start,t.end,i]),i}}function QA(e,t){return function(r){for(var i=r.length===t.length,a=function(u){qn(t,function(s){return s===r[u]})<0&&(i=!1)},o=0;o<r.length&&i;o++)a(o);return e.debug(Ug,[r,t,i]),i}}function JA(e,t){return function(r){for(var i=!1,a=function(u){qn(r,function(s){return s===t[u]})>=0&&(i=!0)},o=0;o<t.length&&!i;o++)a(o);return e.debug(Lg,[r,t,i]),i}}function ZA(e,t){return function(r){var i=!0;if(r.length<t.length)i=!1;else for(var a=function(u){qn(r,function(s){return s===t[u]})<0&&(i=!1)},o=0;o<t.length&&i;o++)a(o);return e.debug(Ng,[r,t,i]),i}}function e2(e,t){return function(r){for(var i=r.length<=t.length,a=function(u){qn(t,function(s){return s===r[u]})<0&&(i=!1)},o=0;o<r.length&&i;o++)a(o);return e.debug(Bg,[r,t,i]),i}}function t2(e,t){return function(r){var i=t.some(function(a){return DO(r,a)});return e.debug(jg,[r,t,i]),i}}function n2(e,t){return function(r){var i=t.some(function(a){return ii(r,a)});return e.debug(Gg,[r,t,i]),i}}function r2(e,t){return function(r){var i=t.some(function(a){return be(r)&&r.indexOf(a)>-1});return e.debug(Mg,[r,t,i]),i}}function i2(e,t,n){var r=t.split,i=t.treatments;function a(o,u,s){var c=!1;return Array.isArray(u)&&(c=u.indexOf(o.treatment)!==-1),e.debug(kg,[s,o.treatment,o.label,s,u,c]),c}return function(u,s){var c=u.key,f=u.attributes;e.debug(Dg,[r,JSON.stringify(c),f?`
19
- attributes: `+JSON.stringify(f):""]);var l=s(e,c,r,f,n);return Te(l)?l.then(function(d){return a(d,i,r)}):a(l,i,r)}}function a2(e,t){return function(r){var i=t===r;return e.debug(Pg,[t,r]),i}}function o2(e,t){return function(r){var i;try{i=new RegExp(t)}catch{return e.debug(Kg,[t]),!1}var a=i.test(r);return e.debug(Hg,[r,t,a?"yes":"no"]),a}}var Tp=[void 0,GA,WA,zA,qA,YA,VA,XA,QA,JA,ZA,e2,t2,n2,r2,i2,a2,o2];function u2(e,t,n){var r=t.type,i=t.value,a;return Tp[r]&&(a=Tp[r](e,i,n)),a}function s2(e){var t=Mr(e);return isNaN(t)?void 0:t}function c2(e){var t=e;ut(e)&&(t=e.matchingKey?e.matchingKey:void 0);var n=K0(t);return n||void 0}function l2(e){var t=Array.isArray(e)?bu(e.map(function(n){return n+""})):[];return t.length?t:void 0}function f2(e){if(e===!0||e===!1)return e;if(typeof e=="string"){var t=e.toLocaleLowerCase();if(t==="true")return!0;if(t==="false")return!1}}function d2(e,t){return{key:e,attributes:t}}function p2(e,t){switch(e){case Ee.EQUAL_TO:return t==="DATETIME"?Ib:void 0;case Ee.GREATER_THAN_OR_EQUAL_TO:case Ee.LESS_THAN_OR_EQUAL_TO:case Ee.BETWEEN:return t==="DATETIME"?To:void 0;case Ee.IN_SPLIT_TREATMENT:return d2;default:return}}function v2(e,t,n,r,i){var a=p2(t,r),o;switch(r){case Je.NUMBER:case Je.DATETIME:o=s2(n);break;case Je.STRING:o=c2(n);break;case Je.SET:o=l2(n);break;case Je.BOOLEAN:o=f2(n);break;case Je.NOT_SPECIFIED:o=n;break;default:o=void 0}return a&&(o=a(o,i)),e.debug(qg,[n,r,o instanceof Object?JSON.stringify(o):o]),o}function h2(e,t,n,r){var i=void 0;return n?r?(i=r[n],e.debug(zg,[n,i])):e.warn(ky,[n]):i=t,i}function m2(e,t,n,r){var i=n.attribute,a=h2(e,t,i,r),o=v2(e,n.type,a,n.dataType,r);if(o!==void 0)return o;e.warn(My,[a+(i?" for attribute "+i:"")])}function g2(e,t,n,r){var i=ib(t,n),a=r.getTreatmentFor(i);return e.debug(Cg,[i,t,n,a]),a}function y2(e,t,n){if(e<100){var r=ib(t,n);if(r>e)return!1}return!0}function Ap(e,t,n,r,i,a){if(t){var o=g2(e,n,r,i);return{treatment:o,label:a}}}function b2(e,t,n,r,i){return function(o,u,s,c,f,l){if(i==="ROLLOUT"&&!y2(s,o.bucketingKey,c))return{treatment:void 0,label:MA};var d=t(o,f,l);return Te(d)?d.then(function(p){return Ap(e,p,o.bucketingKey,u,n,r)}):Ap(e,d,o.bucketingKey,u,n,r)}}function _2(e,t){function n(){return e.error(a0),{treatment:Ut,label:Tu}}function r(a){for(var o=a.length,u=0;u<o;u++){var s=a[u];if(s!==void 0)return e.debug(Tg,[s.treatment]),s}e.debug(Ag)}function i(a,o,u,s,c,f){var l=t.map(function(d){return d(a,o,u,s,c,f)});return qn(l,Te)!==-1?Promise.all(l).then(function(d){return r(d)}):r(l)}return!Array.isArray(t)||Array.isArray(t)&&t.length===0?n:i}function E2(e,t){function n(r){var i=r.every(function(a){return a});return e.debug(Og,[i]),i}return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=t.map(function(u){return u.apply(void 0,i)});return qn(o,Te)!==-1?Promise.all(o).then(n):n(o)}}function S2(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=t[i],o=a.matcherGroup,u=a.partitions,s=a.label,c=a.conditionType,f=HA(o.matchers),l=f.map(function(d){var p=u2(e,d,n);return function(v,h,_){var g=m2(e,v,d,h),b=g!==void 0&&p?p(g,_):!1;return Te(b)?b.then(function(y){return!!(y^d.negate)}):!!(b^d.negate)}});if(l.length===0){r=[];break}r.push(b2(e,E2(e,l),KA.parse(u),s,c))}return _2(e,r)}function Cp(e,t){return{treatment:Nc(e,"treatment",t),label:Nc(e,"label",NA)}}var w2=function(){function e(t,n){this.baseInfo=t,this.evaluator=n,typeof this.baseInfo.defaultTreatment!="string"&&(this.baseInfo.defaultTreatment=Ut)}return e.parse=function(t,n,r){var i=n.conditions,a=S2(t,i,r);return new e(n,a)},e.prototype.getKey=function(){return this.baseInfo.name},e.prototype.getTreatment=function(t,n,r){var i=this.baseInfo,a=i.killed,o=i.seed,u=i.defaultTreatment,s=i.trafficAllocation,c=i.trafficAllocationSeed,f,l,d;try{f=ab(t)}catch{return{treatment:Ut,label:Tu}}if(this.isGarbage())l=Ut,d=LA;else if(a)l=u,d=PA;else{var p=this.evaluator(f,o,s,c,n,r);return Te(p)?p.then(function(v){return Cp(v,u)}):Cp(p,u)}return{treatment:l,label:d}},e.prototype.isGarbage=function(){return this.baseInfo.status==="ARCHIVED"},e.prototype.getChangeNumber=function(){return this.baseInfo.changeNumber},e}(),Uc={treatment:Ut,label:Tu,config:null};function Ip(e){var t={};return e.forEach(function(n){t[n]=Uc}),t}function Rb(e,t,n,r,i){var a;try{a=i.splits.getSplit(n)}catch{return Uc}return Te(a)?a.then(function(o){return jc(e,o,t,r,i)}).catch(function(){return Uc}):jc(e,a,t,r,i)}function Pb(e,t,n,r,i){var a;try{a=i.splits.getSplits(n)}catch{return Ip(n)}return Te(a)?a.then(function(o){return Rp(e,n,o,t,r,i)}).catch(function(){return Ip(n)}):Rp(e,n,a,t,r,i)}function O2(e,t,n,r,i,a){var o;function u(s){for(var c=new gt,f=0;f<n.length;f++){var l=s[f];l.size?c=qT(c,l):e.warn(i0,[a,n[f]])}return c.size?Pb(e,t,pr(c),r,i):{}}try{o=i.splits.getNamesByFlagSets(n)}catch{return{}}return Te(o)?o.then(function(s){return u(s)}).catch(function(){return{}}):u(o)}function jc(e,t,n,r,i){var a={treatment:Ut,label:Ab,config:null};if(t){var o=w2.parse(e,t,i);if(a=o.getTreatment(n,r,Rb),Te(a))return a.then(function(u){return u.changeNumber=o.getChangeNumber(),u.config=t.configurations&&t.configurations[u.treatment]||null,u});a.changeNumber=o.getChangeNumber(),a.config=t.configurations&&t.configurations[a.treatment]||null}return a}function Rp(e,t,n,r,i,a){var o={},u=[];return t.forEach(function(s){var c=jc(e,n[s],r,i,a);Te(c)?u.push(c.then(function(f){o[s]=f})):o[s]=c}),u.length>0?Promise.all(u).then(function(){return o}):o}var $c={treatment:Ut,label:Cb};function Pp(e){var t={};return e.forEach(function(n){t[n]=$c}),t}function T2(e){var t=e.sdkReadinessManager.readinessManager,n=e.storage,r=e.settings,i=e.impressionsTracker,a=e.eventTracker,o=e.telemetryTracker,u=r.log,s=r.mode,c=La(s);function f(m,E,w,O,S){O===void 0&&(O=!1),S===void 0&&(S=R0);var A=o.trackEval(O?vO:dO),C=function(L){var k=[],P=b(L,E,m,w,O,S,k);return i.track(k,w),A(k[0]&&k[0].label),P},N=t.isReady()||t.isReadyFromCache()?Rb(u,m,E,w,n):c?Promise.resolve($c):$c;return Te(N)?N.then(function(L){return C(L)}):C(N)}function l(m,E,w){return f(m,E,w,!0,P0)}function d(m,E,w,O,S){O===void 0&&(O=!1),S===void 0&&(S=Rc);var A=o.trackEval(O?hO:pO),C=function(L){var k=[],P={};return Object.keys(L).forEach(function(I){P[I]=b(L[I],I,m,w,O,S,k)}),i.track(k,w),A(k[0]&&k[0].label),P},N=t.isReady()||t.isReadyFromCache()?Pb(u,m,E,w,n):c?Promise.resolve(Pp(E)):Pp(E);return Te(N)?N.then(function(L){return C(L)}):C(N)}function p(m,E,w){return d(m,E,w,!0,N0)}function v(m,E,w,O,S,A){O===void 0&&(O=!1),S===void 0&&(S=gO),A===void 0&&(A=M0);var C=o.trackEval(S),N=function(k){var P=[],I={},R=k;return Object.keys(R).forEach(function(M){I[M]=b(R[M],M,m,w,O,A,P)}),i.track(P,w),C(P[0]&&P[0].label),I},L=t.isReady()||t.isReadyFromCache()?O2(u,m,E,w,n,A):c?Promise.resolve({}):{};return Te(L)?L.then(function(k){return N(k)}):N(L)}function h(m,E,w){return v(m,E,w,!0,bO,D0)}function _(m,E,w){return v(m,[E],w,!1,mO,L0)}function g(m,E,w){return v(m,[E],w,!0,yO,k0)}function b(m,E,w,O,S,A,C){var N=ai(w),L=jT(w),k=m.treatment,P=m.label,I=m.changeNumber,R=m.config,M=R===void 0?null:R;return u.info(fy,[E,N,k,P]),Dc(u,t,E,P,A)&&(u.info(dy),C.push({feature:E,keyName:N,treatment:k,time:Date.now(),bucketingKey:L,label:P,changeNumber:I})),S?{treatment:k,config:M}:k}function y(m,E,w,O,S,A){A===void 0&&(A=1024);var C=o.trackEval(_O),N=ai(m),L=Date.now(),k={eventTypeId:w,trafficTypeName:E,value:O,timestamp:L,key:N,properties:S};kA(u,t,n.splits,s,E,Zn);var P=a.track(k,A);return Te(P)?P.then(function(I){return C(),I}):(C(),P)}return{getTreatment:f,getTreatmentWithConfig:l,getTreatments:d,getTreatmentsWithConfig:p,getTreatmentsByFlagSets:v,getTreatmentsWithConfigByFlagSets:h,getTreatmentsByFlagSet:_,getTreatmentsWithConfigByFlagSet:g,track:y,isClientSide:!1}}function A2(e,t,n){var r=e.log,i=e.mode,a=La(i);function o(g,b,y,m,E){var w=ii(m,Rc),O=_a(r,g,m),S=!1,A=[];b&&(S=w?of(r,b,m):af(r,b,m));var C=Sb(r,y,m),N=oa(r,n,m);E&&(A=YO(r,m,E,e.sync.__splitFiltersValidation.groupedFilters.bySet)),Oo(r,n,m,S);var L=N&&O&&(S||A.length>0)&&C!==!1;return{valid:L,key:O,splitOrSplits:S,flagSetOrFlagSets:A,attributes:C}}function u(g){return a?Promise.resolve(g):g}function s(g,b,y){var m=o(g,b,y,R0);return m.valid?t.getTreatment(m.key,m.splitOrSplits,m.attributes):u(Ut)}function c(g,b,y){var m=o(g,b,y,P0);return m.valid?t.getTreatmentWithConfig(m.key,m.splitOrSplits,m.attributes):u(de({},tp))}function f(g,b,y){var m=o(g,b,y,Rc);if(m.valid)return t.getTreatments(m.key,m.splitOrSplits,m.attributes);var E={};return m.splitOrSplits&&m.splitOrSplits.forEach(function(w){return E[w]=Ut}),u(E)}function l(g,b,y){var m=o(g,b,y,N0);if(m.valid)return t.getTreatmentsWithConfig(m.key,m.splitOrSplits,m.attributes);var E={};return m.splitOrSplits&&m.splitOrSplits.forEach(function(w){return E[w]=de({},tp)}),u(E)}function d(g,b,y){var m=o(g,void 0,y,M0,b);return m.valid?t.getTreatmentsByFlagSets(m.key,m.flagSetOrFlagSets,m.attributes):u({})}function p(g,b,y){var m=o(g,void 0,y,D0,b);return m.valid?t.getTreatmentsWithConfigByFlagSets(m.key,m.flagSetOrFlagSets,m.attributes):u({})}function v(g,b,y){var m=o(g,void 0,y,L0,[b]);return m.valid?t.getTreatmentsByFlagSet(m.key,m.flagSetOrFlagSets[0],m.attributes):u({})}function h(g,b,y){var m=o(g,void 0,y,k0,[b]);return m.valid?t.getTreatmentsWithConfigByFlagSet(m.key,m.flagSetOrFlagSets[0],m.attributes):u({})}function _(g,b,y,m,E){var w=_a(r,g,Zn),O=Eu(r,b,Zn),S=wb(r,y,Zn),A=Ob(r,m,Zn),C=Tb(r,E,Zn),N=C.properties,L=C.size,k=oa(r,n,Zn);return k&&w&&O&&S&&A!==!1&&N!==!1?t.track(w,O,S,A,N,L):a?Promise.resolve(!1):!1}return{getTreatment:s,getTreatmentWithConfig:c,getTreatments:f,getTreatmentsWithConfig:l,getTreatmentsByFlagSets:d,getTreatmentsWithConfigByFlagSets:p,getTreatmentsByFlagSet:v,getTreatmentsWithConfigByFlagSet:h,track:_}}var C2=1e3;function Np(e,t){var n=e.sdkReadinessManager,r=e.syncManager,i=e.storage,a=e.signalListener,o=e.settings,u=e.telemetryTracker,s=e.uniqueKeysTracker,c=0;function f(d,p){var v=Date.now(),h=v-c;return h<p?(o.log.warn("Flush cooldown, remaining time "+(p-h)/1e3+" seconds"),Promise.resolve()):(c=v,d())}function l(){return r?r.flush():Promise.resolve()}return de(Object.create(n.sdkStatus),A2(o,T2(e),n.readinessManager),{flush:function(){return f(l,C2)},destroy:function(){return n.readinessManager.destroy(),t||(eT(o.core.authorizationKey),u.sessionLength()),r&&r.stop(),l().then(function(){return a&&a.stop(),s&&s.stop(),i.destroy()})}})}function Lp(e,t){return(e.matchingKey?e.matchingKey:e)+"-"+(e.bucketingKey?e.bucketingKey:e)+"-"+(t!==void 0?t:"")}var Mp="Client instantiation";function I2(e){var t=e.storage,n=e.syncManager,r=e.sdkReadinessManager,i=e.settings,a=i.core,o=a.key,u=a.trafficType,s=i.startup.readyTimeout,c=i.log,f=Sp(c,Np(e),o,u),l=ab(o),d=Lp(l,u),p={};return p[d]=f,function(h,_){if(h===void 0)return c.debug(Xg),f;var g=_a(c,h,"Shared "+Mp);if(g===!1)throw new Error("Shared Client needs a valid key.");var b;if(_!==void 0&&(b=Eu(c,_,"Shared "+Mp),b===!1))throw new Error("Shared Client needs a valid traffic type or no traffic type at all.");var y=Lp(g,b);if(p[y])c.debug(Qg);else{var m=ai(g),E=r.shared(s),w=t.shared&&t.shared(m,function(S){if(S){E.readinessManager.timeout();return}E.readinessManager.segments.emit(Yn)}),O=n&&w&&n.shared(m,E.readinessManager,w);p[y]=Sp(c,Np(de({},e,{sdkReadinessManager:E,storage:w||t,syncManager:O,signalListener:void 0}),!0),g,b),O&&O.start(),c.info(py)}return p[y]}}var R2=function(){function e(t){var n=this;this.__mapKeysData__=[],this.__mapValuesData__=[],Array.isArray(t)&&t.forEach(function(r){n.set(r[0],r[1])})}return e.prototype.clear=function(){this.__mapKeysData__.length&&(this.__mapKeysData__.length=0,this.__mapValuesData__.length=0)},e.prototype.delete=function(t){var n=this.__mapKeysData__.indexOf(t);return n===-1?!1:(this.__mapKeysData__.splice(n,1),this.__mapValuesData__.splice(n,1),!0)},e.prototype.forEach=function(t,n){for(var r=0;r<this.__mapKeysData__.length;r++)t.call(n,this.__mapValuesData__[r],this.__mapKeysData__[r],this)},e.prototype.get=function(t){var n=this.__mapKeysData__.indexOf(t);if(n!==-1)return this.__mapValuesData__[n]},e.prototype.has=function(t){return this.__mapKeysData__.indexOf(t)!==-1},e.prototype.set=function(t,n){var r=this.__mapKeysData__.indexOf(t);return r===-1&&(r=this.__mapKeysData__.push(t)-1),this.__mapValuesData__[r]=n,this},Object.defineProperty(e.prototype,"size",{get:function(){return this.__mapKeysData__.length},enumerable:!1,configurable:!0}),e}();function P2(){return typeof Array.from=="function"&&typeof Map=="function"&&Map.prototype&&Map.prototype.values?Map:R2}var lf=P2(),ua=function(){function e(t,n,r,i){this.list=i,this.value=t,n?(n.next=this,this.prev=n):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}return e}(),N2=function(){function e(){this.tail=null,this.head=null,this.length=0}return e.prototype.removeNode=function(t){if(!(!t||!(t instanceof ua))){if(t.list!==this)throw new Error("removing node which does not belong to this list");var n=t.next,r=t.prev;return n&&(n.prev=r),r&&(r.next=n),t===this.head&&(this.head=n),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,n}},e.prototype.unshiftNode=function(t){if(!(!t||!(t instanceof ua))&&t!==this.head){t.list&&t.list.removeNode(t);var n=this.head;t.list=this,t.next=n,n&&(n.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.unshift=function(){for(var t=0,n=arguments.length;t<n;t++)this.head=new ua(arguments[t],null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},e}(),L2=function(){function e(t){this.maxLen=t||1,this.items=new lf,this.lru=new N2}return e.prototype.get=function(t){var n=this.items.get(t);if(!(!n||!(n instanceof ua)))return this.lru.unshiftNode(n),n.value.value},e.prototype.set=function(t,n){var r=this.items.get(t);if(r){if(!(r instanceof ua))return!1;this.lru.unshiftNode(r),this.lru.head.value.value=n}else{if(this.lru.length===this.maxLen){var i=this.lru.tail;if(!i)return!1;this.items.delete(i.value.key),this.lru.removeNode(this.lru.tail)}this.lru.unshift({key:t,value:n}),this.items.set(t,this.lru.head)}return!0},e}(),M2=function(){function e(t,n){this.cache=new L2(t),this.hasher=n}return e.prototype.testAndSet=function(t){var n=this.hasher(t),r=this.cache.get(n);return this.cache.set(n,t.time),r},e}();function k2(e){return e.keyName+":"+e.feature+":"+e.treatment+":"+e.label+":"+e.changeNumber}function D2(e){return wu(k2(e))}var F2=500;function U2(){return new M2(F2,D2)}function j2(e,t){var n=[];if(e.forEach(function(r){var i=r(t);i&&i.queue&&n.push(i)}),n.length!==0)return{handleImpression:function(r){n.forEach(function(i){return i.queue({type:Ac,payload:r})})},handleEvent:function(r){n.forEach(function(i){return i.queue({type:Cc,payload:r})})}}}var wn="ga-to-split: ",Ki="ga-to-split:mapper";function $2(e,t,n,r,i,a){var o=e.GoogleAnalyticsObject||"ga";e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o]("provide",t,n);var u=e[o].q&&e[o].q.push!==[].push;i&&!u&&r.error(wn+"integration is configured to autorequire the splitTracker plugin, but the necessary script does not seem to have run. Please check the docs."),a&&u&&a.addTag("integration:ga-autorequire")}var x2={eventTypeId:{event:"eventAction",social:"socialAction"},eventValue:{event:"eventValue",timing:"timingValue"},eventProperties:{pageview:["page"],screenview:["screenName"],event:["eventCategory","eventLabel"],social:["socialNetwork","socialTarget"],timing:["timingCategory","timingVar","timingLabel"],exception:["exDescription","exFatal"]}};function B2(e){return function(t){var n=t.get("hitType"),r=t.get(e.eventTypeId[n]||"hitType"),i=t.get(e.eventValue[n]),a={},o=e.eventProperties[n];if(o)for(var u=0;u<o.length;u++){var s=t.get(o[u]);s!==void 0&&(a[o[u]]=s)}return{eventTypeId:r,value:i,properties:a,timestamp:Date.now()}}}var H2=B2(x2),K2="ga";function G2(e){if(!Array.isArray(e))return[];var t=UO(e);return t.filter(function(n){if(!n)return!1;var r=n.key,i=n.trafficType;return!(!be(r)&&!ln(r)||!be(i))})}function W2(e,t){if(!wb(e,t.eventTypeId,Ki)||Ob(e,t.value,Ki)===!1)return!1;var n=Tb(e,t.properties,Ki).properties;return!(n===!1||t.timestamp&&!ln(t.timestamp)||t.key&&_a(e,t.key,Ki)===!1||t.trafficTypeName&&Eu(e,t.trafficTypeName,Ki)===!1)}var z2=/^[^a-zA-Z0-9]+/,q2=/[^-_.:a-zA-Z0-9]+/g;function Y2(e,t){if(!be(t)||t.length===0)return t;var n=t.replace(z2,"").replace(q2,"_"),r=n.slice(0,80);return r.length<n.length&&e.warn(wn+"EventTypeId was truncated because it cannot be more than 80 characters long."),r}function V2(e,t){var n=t.storage,r=t.settings,i=r.core,a=r.log,o=t.telemetryTracker,u={prefix:K2,identities:i.key&&i.trafficType?[{key:i.key,trafficType:i.trafficType}]:void 0},s=function(){function c(f,l){var d=de({},u,e,l);this.tracker=f;var p=G2(d.identities);if(p.length===0){a.warn(wn+"No valid identities were provided. Please check that you are passing a valid list of identities or providing a traffic type at the SDK configuration.");return}var v=p.length-d.identities.length;v&&a.warn(wn+(v+" identities were discarded because they are invalid or duplicated. Identities must be an array of objects with key and trafficType.")),d.identities=p,be(d.prefix)||(a.warn(wn+"The provided `prefix` was ignored since it is invalid. Please check that you are passing a string object as `prefix`."),d.prefix=void 0);var h=f.get("sendHitTask");f.set("sendHitTask",function(_){if(h(_),!(d.hits===!1||_.get("splitHit"))){try{if(d.filter&&!d.filter(_))return}catch(b){a.warn(wn+("custom filter threw: "+b));return}var g=H2(_);if(d.mapper){try{g=d.mapper(_,g)}catch(b){a.warn(wn+("custom mapper threw: "+b));return}if(!g)return}d.prefix&&(g.eventTypeId=d.prefix+"."+g.eventTypeId),g.eventTypeId=Y2(a,g.eventTypeId),W2(a,g)&&(g.key&&g.trafficTypeName?n.events.track(g):d.identities.forEach(function(b){var y=de({key:b.key,trafficTypeName:b.trafficType},g);n.events.track(y)}))}}),a.info(wn+"integration started")}return c}();$2(window,"splitTracker",s,a,e.autoRequire===!0,o)}function X2(e){e===void 0&&(e={});function t(n){return V2(e,n)}return t.type="GOOGLE_ANALYTICS_TO_SPLIT",t}var Gi="split-to-ga: ",kp="`ga` command queue not found.",Dp="No hit was sent.",Q2=function(){function e(t,n){this.trackerNames=e.defaultTrackerNames,this.log=t,n&&(typeof n.filter=="function"&&(this.filter=n.filter),typeof n.mapper=="function"&&(this.mapper=n.mapper),Array.isArray(n.trackerNames)&&(this.trackerNames=bu(n.trackerNames)),this.impressions=n.impressions,this.events=n.events),t.info(Gi+"integration started"),typeof e.getGa()!="function"&&t.warn(Gi+(kp+" No hits will be sent until it is available."))}return e.defaultMapper=function(t){var n=t.type,r=t.payload;switch(n){case Ac:return{hitType:"event",eventCategory:"split-impression",eventAction:"Evaluate "+r.impression.feature,eventLabel:"Treatment: "+r.impression.treatment+". Targeting rule: "+r.impression.label+".",nonInteraction:!0};case Cc:return{hitType:"event",eventCategory:"split-event",eventAction:r.eventTypeId,eventValue:r.value,nonInteraction:!0}}},e.getGa=function(){return typeof window<"u"?window[window.GoogleAnalyticsObject||"ga"]:void 0},e.validateFieldsObject=function(t,n){return n&&n.hitType?!0:(t.warn(Gi+"your custom mapper returned an invalid FieldsObject instance. It must be an object with at least a `hitType` field."),!1)},e.prototype.queue=function(t){var n=e.getGa();if(n){if(this.impressions===!1&&t.type===Ac||this.events===!1&&t.type===Cc)return;var r;try{if(this.filter&&!this.filter(t)||(r=e.defaultMapper(t),this.mapper&&(r=this.mapper(t,r),!r||!e.validateFieldsObject(this.log,r))))return}catch(i){this.log.warn(Gi+("queue method threw: "+i+". "+Dp));return}this.trackerNames.forEach(function(i){var a=i?i+".send":"send";r.splitHit=!0,n(a,r)})}else this.log.warn(Gi+(kp+" "+Dp))},e.defaultTrackerNames=[""],e}();function J2(e){e===void 0&&(e={});function t(n){return new Q2(n.settings.log,e)}return t.type="SPLIT_TO_GOOGLE_ANALYTICS",t}function Z2(e,t){var n=e.map(function(r){switch(r.type){case gb:return X2(r);case yb:return J2(r)}}).filter(function(r){return r&&typeof r=="function"});return j2(n,t)}function Nb(e){var t=Ou(e);return t.splits.checkCache=function(){return!0},t}Nb.type=ta;function Fp(e,t){var n=!1,r=!1;function i(o){var u=new Promise(function(c,f){return o.then(c,function(l){r?f(l):t(l)})}),s=u.then;return Object.defineProperty(u,"then",{value:function(c,f){var l=s.call(u,c,f);return typeof c=="function"&&(n=!0),typeof f=="function"?(r=!0,l):i(l)}}),u}var a=i(e);return a.hasOnFulfilled=function(){return n},a}function eC(e){var t=de(new e,{splitsArrived:!1,splitsCacheLoaded:!1});return t.on(Bn,function(n){n||(t.splitsArrived=!0)}),t.once(_u,function(){t.splitsCacheLoaded=!0}),t}function tC(e){var t=de(new e,{segmentsArrived:!1});return t.once(Yn,function(){t.segmentsArrived=!0}),t}function Lb(e,t,n){t===void 0&&(t=0),n===void 0&&(n=eC(e));var r=tC(e),i=new e,a=!1;n.splitsCacheLoaded?a=!0:n.once(_u,l);var o=!1;function u(){o||(o=!0,i.emit(So,"Split SDK emitted SDK_READY_TIMED_OUT event."))}var s;t>0&&(s=setTimeout(u,t));var c=!1;n.on(Bn,d),r.on(Yn,d);var f=!1;function l(){if(a=!0,!c)try{i.emit(Ho)}catch(v){setTimeout(function(){throw v},0)}}function d(v){if(c)try{i.emit(z0,v)}catch(h){setTimeout(function(){throw h},0)}else if(n.splitsArrived&&r.segmentsArrived){clearTimeout(s),c=!0;try{i.emit(Sn)}catch(h){setTimeout(function(){throw h},0)}}}var p=1;return{splits:n,segments:r,gate:i,shared:function(v){return v===void 0&&(v=0),p++,Lb(e,v,n)},timeout:u,setDestroyed:function(){f=!0},destroy:function(){f=!0,r.removeAllListeners(),i.removeAllListeners(),clearTimeout(s),p>0&&p--,p===0&&n.removeAllListeners()},isReady:function(){return c},hasTimedout:function(){return o},isReadyFromCache:function(){return a},isDestroyed:function(){return f},isOperational:function(){return(c||a)&&!f}}}var nC="newListener",rC="removeListener";function Mb(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=Lb(t,n));var i=0,a=0;r.gate.on(rC,function(c){c===Sn&&a--}),r.gate.on(nC,function(c){(c===Sn||c===So)&&(r.isReady()?e.error(u0,[c===Sn?"SDK_READY":"SDK_READY_TIMED_OUT"]):c===Sn&&a++)});var o=s();r.gate.once(Ho,function(){e.info(cy)});function u(c){e.error(c&&c.message)}function s(){var c=Fp(new Promise(function(f,l){r.gate.once(Sn,function(){e.info(ly),a===i&&!c.hasOnFulfilled()&&e.warn(Dy),f()}),r.gate.once(So,function(d){l(new Error(d))})}),u);return c}return{readinessManager:r,shared:function(c){return c===void 0&&(c=0),Mb(e,t,c,r.shared(c))},incInternalReadyCbCount:function(){i++},sdkStatus:de(Object.create(r.gate),{Event:{SDK_READY:Sn,SDK_READY_FROM_CACHE:Ho,SDK_UPDATE:z0,SDK_READY_TIMED_OUT:So},ready:function(){return r.hasTimedout()?r.isReady()?Promise.resolve():Fp(Promise.reject(new Error("Split SDK has emitted SDK_READY_TIMED_OUT event.")),u):o},__getStatus:function(){return{isReady:r.isReady(),isReadyFromCache:r.isReadyFromCache(),isOperational:r.isOperational(),hasTimedout:r.hasTimedout(),isDestroyed:r.isDestroyed()}}})}}function iC(e,t,n,r,i){var a=e.log,o=e.impressionListener,u=e.runtime,s=u.ip,c=u.hostname,f=e.version;return{track:function(l,d){if(e.userConsent!==wi){var p=l.length,v=n.process(l),h=v.impressionsToStore,_=v.impressionsToListener,g=v.deduped,b=_.length;if(h.length>0){var y=t.track(h);Te(y)?y.then(function(){a.info(Ry,[p])}).catch(function(w){a.error(d0,[p,w])}):i&&(i.recordImpressionStats(Bo,h.length),i.recordImpressionStats(F0,g))}if(o||r)for(var m=function(w){var O={impression:de({},_[w]),attributes:d,ip:s,hostname:c,sdkLanguageVersion:f};setTimeout(function(){r&&r.handleImpression(O);try{o&&o.logImpression(O)}catch(S){a.error(p0,[S])}},0)},E=0;E<b;E++)m(E)}}}}function aC(e,t,n,r){var i=e.log,a=e.mode,o=La(a);function u(s,c){var f=s.eventTypeId,l=s.trafficTypeName,d=s.key,p=s.value,v=s.timestamp,h=s.properties,_='event of type "'+f+'" for traffic type "'+l+'". Key: '+d+". Value: "+p+". Timestamp: "+v+". "+(h?"With properties.":"With no properties.");return c?(i.info(Iy,[_]),n&&setTimeout(function(){var g=de({},s);h&&(g.properties=de({},h)),n.handleEvent(g)},0)):i.error(v0,[_]),c}return{track:function(s,c){if(e.userConsent===wi)return o?Promise.resolve(!1):!1;var f=t.track(s,c);return Te(f)?f.then(u.bind(null,s)):(r&&r.recordEventStats(f?Bo:Pc,1),u(s,f))}}}function oC(e,t){if(e&&t){var n=wo(t);return{trackEval:function(i){var a=wo(t);return function(o){switch(o){case Tu:e.recordException(i);return;case Cb:e.recordNonReadyUsage&&e.recordNonReadyUsage()}e.recordLatency(i,a())}},trackHttp:function(i){var a=wo(t);return function(o){e.recordHttpLatency(i,a()),o&&o.statusCode?e.recordHttpError(i,o.statusCode):e.recordSuccessfulSync(i,Date.now())}},sessionLength:function(){e.recordSessionLength&&e.recordSessionLength(n())},streamingEvent:function(i,a){i===x0?e.recordAuthRejections():(e.recordStreamingEvents({e:i,d:a,t:Date.now()}),i===$0&&e.recordTokenRefreshes())},addTag:function(i){e.addTag&&e.addTag(i)},trackUpdatesFromSSE:function(i){e.recordUpdatesFromSSE(i)}}}else{var r=function(){return function(){}};return{trackEval:r,trackHttp:r,sessionLength:function(){},streamingEvent:function(){},addTag:function(){},trackUpdatesFromSSE:function(){}}}}var Ze={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",NONE:"NONE"},Cr={DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5};function ff(e){return!!nf(Ze,function(t){return e===t})}function Up(e,t){e===void 0&&(e=""),t===void 0&&(t=[]);var n=0;return e.replace(/%s/g,function(){return t[n++]})}var uC={prefix:"splitio",logLevel:Ze.NONE,showLevel:!0},sC=function(){function e(t,n){this.options=de({},uC,t),this.codes=n||new lf,this.logLevel=Cr[this.options.logLevel]}return e.prototype.setLogLevel=function(t){this.options.logLevel=t,this.logLevel=Cr[t]},e.prototype.debug=function(t,n){this._shouldLog(Cr.DEBUG)&&this._log(Ze.DEBUG,t,n)},e.prototype.info=function(t,n){this._shouldLog(Cr.INFO)&&this._log(Ze.INFO,t,n)},e.prototype.warn=function(t,n){this._shouldLog(Cr.WARN)&&this._log(Ze.WARN,t,n)},e.prototype.error=function(t,n){this._shouldLog(Cr.ERROR)&&this._log(Ze.ERROR,t,n)},e.prototype._log=function(t,n,r){if(typeof n=="number"){var i=this.codes.get(n);n=i?Up(i,r):"Message code "+n+(r?", with args: "+r.toString():"")}else r&&(n=Up(n,r));var a=this._generateLogMessage(t,n);console.log(a)},e.prototype._generateLogMessage=function(t,n){var r=" => ",i="";return this.options.showLevel&&(i+="["+t+"]"+(t===Ze.INFO||t===Ze.WARN?" ":"")+" "),this.options.prefix&&(i+=this.options.prefix+r),i+=n},e.prototype._shouldLog=function(t){return t>=this.logLevel},e}();function cC(e){function t(n){ff(n)?e.setLogLevel(n):e.error(o0)}return{enable:function(){t(Ze.DEBUG)},setLogLevel:t,disable:function(){t(Ze.NONE)},LogLevel:Ze}}function lC(e){return{process:function(t){return t.forEach(function(n){n.pt=e.testAndSet(n)}),{impressionsToStore:t,impressionsToListener:t,deduped:0}}}}function fC(e,t){return{process:function(n){var r=[];return n.forEach(function(i){i.pt=e.testAndSet(i);var a=Date.now();i.pt&&t.track(i.feature,a,1),(!i.pt||i.pt<fb(a))&&r.push(i)}),{impressionsToStore:r,impressionsToListener:n,deduped:n.length-r.length}}}}function dC(e,t){return{process:function(n){return n.forEach(function(r){var i=Date.now();e.track(r.feature,i,1),t.track(r.keyName,r.feature)}),{impressionsToStore:[],impressionsToListener:n,deduped:0}}}}var pC={add:function(){return!0},contains:function(){return!0},clear:function(){}};function vC(e,t,n){n===void 0&&(n=pC);var r;return n.refreshRate&&(r=setInterval(n.clear,n.refreshRate)),{track:function(i,a){if(!n.add(i,a)){e.debug(Jw+"The feature "+a+" and key "+i+" exist in the filter");return}t.track(i,a)},stop:function(){clearInterval(r)}}}function hC(e){var t=e.settings,n=e.platform,r=e.storageFactory,i=e.splitApiFactory,a=e.extraProps,o=e.syncManagerFactory,u=e.SignalListener,s=e.impressionsObserverFactory,c=e.integrationsManagerFactory,f=e.sdkManagerFactory,l=e.sdkClientMethodFactory,d=e.filterAdapterFactory,p=t.log,v=t.sync.impressionsMode;ZO(p,t.core.authorizationKey);var h=Mb(p,n.EventEmitter,t.startup.readyTimeout),_=h.readinessManager,g=r({settings:t,onReadyCb:function(I){if(I){_.timeout();return}_.splits.emit(Bn),_.segments.emit(Yn)}}),b=oC(g.telemetry,n.now),y=c&&c({settings:t,storage:g,telemetryTracker:b}),m=s(),E=v===$n?vC(p,g.uniqueKeys,d&&d()):void 0,w;switch(v){case tn:w=fC(m,g.impressionCounts);break;case $n:w=dC(g.impressionCounts,E);break;default:w=lC(m)}var O=iC(t,g.impressions,w,y,g.telemetry),S=aC(t,g.events,y,g.telemetry),A=i&&i(t,n,b),C={splitApi:A,eventTracker:S,impressionsTracker:O,telemetryTracker:b,uniqueKeysTracker:E,sdkReadinessManager:h,readiness:_,settings:t,storage:g,platform:n},N=o&&o(C);C.syncManager=N;var L=u&&new u(N,t,g,A);C.signalListener=L;var k=l(C),P=f(t,g.splits,h);return N&&N.start(),L&&L.start(),p.info(vy),de({client:k,manager:function(){return p.debug(Jg),P},Logger:cC(p),settings:t},a&&a(C))}var mC={GRANTED:xn,DECLINED:wi,UNKNOWN:tf};function gC(e){var t=e.settings,n=e.settings.log,r=e.syncManager,i=e.storage,a=i.events,o=i.impressions,u=i.impressionCounts;return Ko(t)||n.info(Ly,[t.userConsent]),{setStatus:function(s){var c,f;if(!rf(s))return n.warn(w0,["UserConsent.setStatus"]),!1;var l=s?xn:wi;return t.userConsent!==l?(n.info(Py,[t.userConsent,l]),t.userConsent=l,s?(c=r==null?void 0:r.submitterManager)===null||c===void 0||c.start():((f=r==null?void 0:r.submitterManager)===null||f===void 0||f.stop(!0),a.clear&&a.clear(),o.clear&&o.clear(),u&&u.clear&&u.clear())):n.info(Ny,[l]),!0},getStatus:function(){return t.userConsent},Status:mC}}function yC(){return{ip:!1,hostname:!1}}var bC=!!(typeof process<"u"&&typeof process.version<"u"&&process.version),_C=[[a0,_o+"Invalid feature flag, no valid rules found"],[o0,"logger: Invalid Log Level - No changes to the logs will be applied."],[s0,"The SDK will not get ready. Reason: %s"],[d0,ea+"Could not store impressions bulk with %s impression(s). Error: %s"],[p0,ea+"Impression listener logImpression method threw: %s."],[v0,I0+"Failed to queue %s"],[c0,C0+"There was an issue loading the mock feature flags data. No changes will be applied to the current cache. %s"],[l0,ht+"Failed to connect or error on streaming connection, with error message: %s"],[f0,ht+"Failed to authenticate for streaming. Error: %s."],[S0,"Response status is not OK. Status: %s. URL: %s. Message: %s"],[u0,"A listener was added for %s on the SDK, which has already fired and won't be emitted again. The callback won't be executed."],[y0,"%s: Client has already been destroyed - no calls possible."],[h0,'%s: you passed "%s", event_type must adhere to the regular expression /^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/g. This means an event_type must be alphanumeric, cannot be more than 80 characters long, and can only include a dash, underscore, period, or colon as separators of alphanumeric characters.'],[Xl,"%s: %s must be a plain object."],[m0,"%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded. Event not queued."],[g0,"%s: value must be a finite number."],[_i,"%s: you passed a null or undefined %s. It must be a non-empty string."],[b0,"%s: %s too long. It must have 250 characters or less."],[_0,"%s: Key must be an object with bucketingKey and matchingKey with valid string properties."],[Ei,"%s: you passed an invalid %s. It must be a non-empty string."],[Si,"%s: you passed an empty %s. It must be a non-empty string."],[E0,"%s: %s must be a non-empty array."],[w0,"%s: provided param must be a boolean value."],[Ql,ot+': you passed an invalid "%s" config param. It should be one of the following values: %s. Defaulting to "%s".'],[Vw,ot+': an invalid value was received for "sync.localhostMode" config. A valid entity should be provided for localhost mode.'],[Xw,ot+": the provided storage is invalid.%s Falling back into default MEMORY storage"],[O0,ot+': the provided "%s" config param is lower than allowed. Setting to the minimum value %s seconds'],[T0,ot+": the amount of flag sets provided are big causing uri length error."],[A0,ot+": the Set filter is exclusive and cannot be used simultaneously with names or prefix filters. Ignoring names and prefixes."]],EC=_C.concat([[My,Tc+"Value %s doesn't match with expected type."],[ky,Tc+"Defined attribute [%s], no attributes received."],[Uy,Qw+"Retrying download of segments #%s. Reason: %s"],[jy,jr+"Error while doing fetch of feature flags. %s"],[$y,ht+"Error parsing SSE error notification: %s"],[xy,ht+"Error parsing SSE message notification: %s"],[By,ht+"Falling back to polling mode. Reason: %s"],[wc,xo+"Dropping %s after retry. Reason: %s."],[Hy,xo+"Failed to push %s, keeping data to retry on next iteration. Reason: %s."],[Fy,"%s: the SDK is not ready, results may be incorrect%s. Make sure to wait for SDK readiness before using this method."],[Dy,"No listeners for SDK Readiness detected. Incorrect control treatments could have been logged if you called getTreatment/s while the SDK was not yet ready."],[Ky,'%s: Property "%s" is of invalid type. Setting value to null.'],[Gy,"%s: Event has more than 300 properties. Some of them will be trimmed when processed."],[Wy,'%s: %s "%s" is not of type string, converting.'],[zy,'%s: %s "%s" has extra whitespace, trimming.'],[qy,'%s: feature flag "%s" does not exist in this environment. Please double check what feature flags exist in the Split user interface.'],[Yy,"%s: traffic_type_name should be all lowercase - converting string to lowercase."],[Vy,`%s: traffic type "%s" does not have any corresponding feature flag in this environment, make sure you're tracking your events to a valid traffic type defined in the Split user interface.`],[r0,"%s: you passed %s which is not part of the configured FlagSetsFilter, ignoring Flag Set."],[Xy,ot+": %s integration item(s) at settings is invalid. %s"],[Qy,ot+": feature flag filters are not applicable for Consumer modes where the SDK does not keep rollout data in sync. Filters were discarded"],[Jy,ot+': feature flag filter at position %s is invalid. It must be an object with a valid filter type ("bySet", "byName" or "byPrefix") and a list of "values".'],[Zy,ot+": feature flag filter configuration must be a non-empty array of filter objects."],[Oc,ot+": You already have %s. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application"],[bo,ht+"Fetching MySegments due to an error processing %s notification: %s"],[e0,ht+"Fetching SplitChanges due to an error processing SPLIT_UPDATE notification: %s"],[t0,"%s: you passed %s, flag set must adhere to the regular expressions %s. This means a flag set must start with a letter or number, be in lowercase, alphanumeric and have a max length of 50 characters. %s was discarded."],[n0,"%s: flag set %s should be all lowercase - converting string to lowercase."],[i0,"%s: you passed %s flag set that does not contain cached feature flag names. Please double check what flag sets are in use in the Split user interface."]]),jp="Split SDK client is ready",SC=EC.concat([[cy,jp+" from cache"],[ly,jp],[fy,ea+"Feature flag: %s. Key: %s. Evaluation: %s. Label: %s"],[dy,ea+"Queueing corresponding impression."],[py,"New shared client instance created."],[vy,"New Split SDK instance created."],[Iy,I0+"Successfully queued %s"],[Ry,ea+"Successfully stored %s impression(s)."],[Py,"UserConsent: consent status changed from %s to %s."],[Ny,"UserConsent: call had no effect because it was the current consent status (%s)."],[Ly,"Starting the SDK with %s user consent. No data will be sent."],[hy,rs+"Turning segments data polling %s."],[my,rs+"Starting polling"],[gy,rs+"Stopping polling"],[yy,jr+"Retrying download of feature flags #%s. Reason: %s"],[gu,xo+"Flushing full %s queue and reseting timer."],[Oy,xo+"Pushing %s."],[by,ht+"Refreshing streaming token in %s seconds, and connecting streaming in %s seconds."],[_y,ht+"Attempting to reconnect streaming in %s seconds."],[Ey,ht+"Connecting streaming."],[Sy,ht+"Streaming is disabled for given SDK key. Switching to polling mode."],[wy,ht+"Disconnecting streaming."],[Ty,ns+"Streaming not available. Starting polling."],[Ay,ns+"Streaming couldn't connect. Continue polling."],[Cy,ns+"Streaming connected. Syncing and stopping polling."]]),wC=SC.concat([[Og,_o+"[andCombiner] evaluates to %s"],[Tg,_o+"Treatment found: %s"],[Ag,_o+"All predicates evaluated, no treatment found."],[Cg,ba+': using algo "murmur" bucket %s for key %s using seed %s - treatment %s'],[Ig,Fe+"[allMatcher] is always true"],[Rg,Fe+"[betweenMatcher] is %s between %s and %s? %s"],[Pg,Fe+"[booleanMatcher] %s === %s"],[Ng,Fe+"[containsAllMatcher] %s contains all elements of %s? %s"],[Lg,Fe+"[containsAnyMatcher] %s contains at least an element of %s? %s"],[Mg,Fe+"[containsStringMatcher] %s contains %s? %s"],[kg,Fe+'[dependencyMatcher] parent feature flag "%s" evaluated to "%s" with label "%s". %s evaluated treatment is part of [%s] ? %s.'],[Dg,Fe+'[dependencyMatcher] will evaluate parent feature flag: "%s" with key: %s %s'],[Fg,Fe+"[equalToMatcher] is %s equal to %s? %s"],[Ug,Fe+"[equalToSetMatcher] is %s equal to set %s? %s"],[jg,Fe+"[endsWithMatcher] %s ends with %s? %s"],[$g,Fe+"[greaterThanEqualMatcher] is %s greater than %s? %s"],[xg,Fe+"[lessThanEqualMatcher] is %s less than %s? %s"],[Bg,Fe+"[partOfMatcher] %s is part of %s? %s"],[Sc,Fe+"[segmentMatcher] evaluated %s / %s => %s"],[Hg,Fe+"[stringMatcher] does %s matches with %s? %s"],[Kg,Fe+"[stringMatcher] %s is an invalid regex"],[Gg,Fe+"[startsWithMatcher] %s starts with %s? %s"],[Wg,Fe+"[whitelistMatcher] evaluated %s in [%s] => %s"],[zg,Tc+"Extracted attribute [%s], [%s] will be used for matching."],[qg,ba+":sanitize: Attempted to sanitize [%s] which should be of type [%s]. Sanitized and processed value => [%s]"],[Yg,Zd+"Registering cleanup handler %s"],[Vg,Zd+"Deregistering cleanup handler %s"],[Xg,"Retrieving default SDK client."],[Qg,"Retrieving existing SDK client."],[Jg,"Retrieving manager instance."],[Zg,C0+`Feature flags data:
20
- %s`],[ey,jr+"Spin up feature flags update using since = %s"],[ty,jr+"New feature flags %s"],[ny,jr+"Removed feature flags %s"],[ry,jr+"Segment names collected %s"],[iy,ht+"New SSE message received, with data: %s."],[ay,qt+": Starting %s. Running each %s millis"],[oy,qt+": Running %s"],[uy,qt+": Stopping %s"],[sy,ot+': feature flags filtering criteria is "%s".']]);function OC(e){return typeof e=="boolean"?e?Ze.DEBUG:Ze.NONE:typeof e=="string"&&ff(e)?e:void 0}var TC=new lf(wC),AC="splitio_debug",CC="SPLITIO_DEBUG",vs=String(bC?process.env[CC]:cf()?localStorage.getItem(AC):""),zo=Ze.NONE;/^(enabled?|on)/i.test(vs)?zo=Ze.DEBUG:ff(vs)&&(zo=vs);function IC(e){var t=e.debug,n=t!==void 0?OC(t):zo,r=new sC({logLevel:n||zo},TC);return n||r._log(Ze.ERROR,"Invalid Log Level - No changes to the logs will be applied."),r}function RC(e){var t=e.treatment;return e.keys?{conditionType:"WHITELIST",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"WHITELIST",negate:!1,whitelistMatcherData:{whitelist:be(e.keys)?[e.keys]:e.keys}}]},partitions:[{treatment:t,size:100}],label:"whitelisted "+t}:{conditionType:"ROLLOUT",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"ALL_KEYS",negate:!1}]},partitions:[{treatment:t,size:100}],label:"default rule"}}function PC(e,t){return typeof e!=typeof t?!0:typeof e=="string"?e!==t:e.treatment!==t.treatment||e.config!==t.config}function NC(){var e={emptyMock:"1"};function t(n){var r=Object.keys(n);return r.length!==Object.keys(e).length?(e=n,!0):r.some(function(i){var a=!e[i],o=PC(e[i],n[i]),u=a||o;return u&&(e=n),u})}return function(r){var i=r.features||{};if(!t(i))return!1;var a={};return Lt(i,function(o,u){var s=o,c=null;ut(o)&&(s=o.treatment,c=o.config||c);var f={};c!==null&&(f[s]=c),a[u]={trafficTypeName:"localhost",conditions:[RC({treatment:s})],configurations:f}}),a}}function LC(e,t,n,r){var i=r.log,a=t.splits,o=!0;return function(){var s=[],c=null,f={};try{f=e(r)}catch(l){c=l,i.error(c0,[l])}return!c&&f?(i.debug(Zg,[JSON.stringify(f)]),Lt(f,function(l,d){s.push([d,{name:d,status:"ACTIVE",killed:!1,trafficAllocation:100,defaultTreatment:Ut,conditions:l.conditions||[],configurations:l.configurations,trafficTypeName:l.trafficTypeName}])}),Promise.all([a.clear(),a.addSplits(s)]).then(function(){return n.splits.emit(Bn),o&&(o=!1,Promise.resolve(a.checkCache()).then(function(l){l&&n.splits.emit(_u),n.segments.emit(Yn)})),!0})):Promise.resolve(!0)}}function MC(e,t,n,r){return yu(r.log,LC(e,t,n,r),r.scheduler.offlineRefreshRate,"offlineUpdater")}function $p(){return Promise.resolve()}function kC(e){return function(t){var n=t.settings,r=t.readiness,i=t.storage;return de(MC(e(),i,r,n),{flush:$p,shared:function(a,o){return{start:function(){setTimeout(function(){o.segments.emit(Yn)},0)},stop:function(){},isRunning:function(){return!0},flush:$p}}})}}var kb=kC(NC);kb.type="LocalhostFromObject";function DC(){return kb}var xp=[wi,xn,tf];function FC(e){var t=e.userConsent,n=e.log;return t=H0(t),xp.indexOf(t)>-1?t:(n.error(Ql,["userConsent",xp,xn]),xn)}var UC="10.25.1",jC={startup:{requestTimeoutBeforeReady:5,retriesOnFailureBeforeReady:1,readyTimeout:10,eventsFirstPushWindow:10},userConsent:xn,version:"javascript-"+UC},hs="LOCALSTORAGE";function $C(e){var t=e.log,n=e.mode,r=e.storage,i=r===void 0?{type:ta}:r,a=i.type,o=i.options,u=o===void 0?{}:o,s=i.prefix,c,f=function(){c=a,a=ta};return n===Er&&a===hs&&f(),(a!==ta&&a!==hs||a===hs&&!cf())&&(f(),t.error("Invalid or unavailable storage. Fallbacking into MEMORY storage")),{type:a,options:u,prefix:s,__originalType:c}}function xC(e,t,n){var r=e.integrations,i=e.log;if(!Array.isArray(r)||r.length===0)return[];var a=r.filter(t),o=r.length-a.length;return o&&i.warn(Xy,[o,n||""]),a}function BC(e,t){return t===void 0&&(t=[]),xC(e,function(n){return n&&be(n.type)&&t.indexOf(n.type)>-1},'Integration items must have a valid "type" value')}function HC(e){return BC(e,[gb,yb])}var KC={defaults:jC,acceptKey:!0,acceptTT:!0,runtime:yC,storage:$C,integrations:HC,logger:IC,localhost:function(){return DC()},consent:FC};function GC(e){return QO(e,KC)}var Yr=typeof Reflect=="object"?Reflect:null,Bp=Yr&&typeof Yr.apply=="function"?Yr.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},Ao;Yr&&typeof Yr.ownKeys=="function"?Ao=Yr.ownKeys:Object.getOwnPropertySymbols?Ao=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ao=function(t){return Object.getOwnPropertyNames(t)};function WC(e){console&&console.warn&&console.warn(e)}var Db=Number.isNaN||function(t){return t!==t};function ve(){ve.init.call(this)}ve.prototype._events=void 0;ve.prototype._eventsCount=0;ve.prototype._maxListeners=void 0;var Hp=10;function Au(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return Hp},set:function(e){if(typeof e!="number"||e<0||Db(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Hp=e}});ve.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ve.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Db(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Fb(e){return e._maxListeners===void 0?ve.defaultMaxListeners:e._maxListeners}ve.prototype.getMaxListeners=function(){return Fb(this)};ve.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")Bp(s,this,n);else for(var c=s.length,f=Bb(s,c),r=0;r<c;++r)Bp(f[r],this,n);return!0};function Ub(e,t,n,r){var i,a,o;if(Au(n),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),i=Fb(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,WC(u)}return e}ve.prototype.addListener=function(t,n){return Ub(this,t,n,!1)};ve.prototype.on=ve.prototype.addListener;ve.prototype.prependListener=function(t,n){return Ub(this,t,n,!0)};function zC(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function jb(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=zC.bind(r);return i.listener=n,r.wrapFn=i,i}ve.prototype.once=function(t,n){return Au(n),this.on(t,jb(this,t,n)),this};ve.prototype.prependOnceListener=function(t,n){return Au(n),this.prependListener(t,jb(this,t,n)),this};ve.prototype.removeListener=function(t,n){var r,i,a,o,u;if(Au(n),i=this._events,i===void 0)return this;if(r=i[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){u=r[o].listener,a=o;break}if(a<0)return this;a===0?r.shift():qC(r,a),r.length===1&&(i[t]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",t,u||n)}return this};ve.prototype.off=ve.prototype.removeListener;ve.prototype.removeAllListeners=function(t){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var a=Object.keys(r),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(t,n[i]);return this};function $b(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?YC(i):Bb(i,i.length)}ve.prototype.listeners=function(t){return $b(this,t,!0)};ve.prototype.rawListeners=function(t){return $b(this,t,!1)};ve.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xb.call(e,t)};ve.prototype.listenerCount=xb;function xb(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?Ao(this._events):[]};function Bb(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function qC(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function YC(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function VC(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,a=[],o=[],u={},s=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:s,headers:{keys:function(){return a},entries:function(){return o},get:function(f){return u[f.toLowerCase()]},has:function(f){return f.toLowerCase()in u}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(f,l,d){a.push(l=l.toLowerCase()),o.push([l,d]),u[l]=u[l]?u[l]+","+d:d}),n(s())},i.onerror=r,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}function XC(){return typeof fetch=="function"?fetch:VC}function QC(){return typeof EventSource=="function"?EventSource:void 0}var Kp="visibilitychange",Gp="pagehide",Wp="for visibilitychange and pagehide events.",JC=function(){function e(t,n,r,i){this.syncManager=t,this.settings=n,this.storage=r,this.serviceApi=i,this.flushData=this.flushData.bind(this),this.flushDataIfHidden=this.flushDataIfHidden.bind(this),this.fromImpressionsCollector=G0.bind(void 0,n.core.labelsEnabled)}return e.prototype.start=function(){this.settings.log.debug(Yg,[Wp]),typeof document<"u"&&document.addEventListener&&document.addEventListener(Kp,this.flushDataIfHidden),typeof window<"u"&&window.addEventListener&&window.addEventListener(Gp,this.flushData)},e.prototype.stop=function(){this.settings.log.debug(Vg,[Wp]),typeof document<"u"&&document.removeEventListener&&document.removeEventListener(Kp,this.flushDataIfHidden),typeof window<"u"&&window.removeEventListener&&window.removeEventListener(Gp,this.flushData)},e.prototype.flushData=function(){if(this.syncManager){var t=this.settings.urls,n=t.events,r=t.telemetry;if(Ko(this.settings)){var i=this.settings.sync.impressionsMode,a={sim:i===tn?tn:i===jn?jn:$n};this._flushData(n+"/testImpressions/beacon",this.storage.impressions,this.serviceApi.postTestImpressionsBulk,this.fromImpressionsCollector,a),this._flushData(n+"/events/beacon",this.storage.events,this.serviceApi.postEventsBulk),this.storage.impressionCounts&&this._flushData(n+"/testImpressions/count/beacon",this.storage.impressionCounts,this.serviceApi.postTestImpressionsCount,W0),this.storage.uniqueKeys&&this._flushData(r+"/v1/keys/cs/beacon",this.storage.uniqueKeys,this.serviceApi.postUniqueKeysBulkCs)}this.storage.telemetry&&this._flushData(r+"/v1/metrics/usage/beacon",this.storage.telemetry,this.serviceApi.postMetricsUsage)}},e.prototype.flushDataIfHidden=function(){document.visibilityState==="hidden"&&this.flushData()},e.prototype._flushData=function(t,n,r,i,a){if(!n.isEmpty()){var o=i?i(n.pop()):n.pop();this._sendBeacon(t,o,a)||r(JSON.stringify(o)).catch(function(){})}},e.prototype._sendBeacon=function(t,n,r){if(typeof navigator<"u"&&navigator.sendBeacon){var i={entries:n,token:this.settings.core.authorizationKey,sdk:this.settings.version};r&&de(i,r);var a=JSON.stringify(i);try{return navigator.sendBeacon(t,a)}catch{return!1}}return!1},e}();function ZC(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now.bind(performance):Date.now}var eI=ZC(),tI={getFetch:XC,getEventSource:QC,EventEmitter:ve,now:eI},nI=JC,rI=vT(cA,JT);function iI(e){return e.storage.type===Ic?TA(e.storage):e.storage.__originalType===Ic?Nb:Ou}function aI(e){var t={settings:e,platform:tI,storageFactory:iI(e),splitApiFactory:MO,syncManagerFactory:rI,sdkManagerFactory:FA,sdkClientMethodFactory:I2,SignalListener:nI,integrationsManagerFactory:e.integrations&&e.integrations.length>0?Z2.bind(null,e.integrations):void 0,impressionsObserverFactory:U2,extraProps:function(n){return{UserConsent:gC(n)}}};switch(e.mode){case Er:t.splitApiFactory=void 0,t.syncManagerFactory=e.sync.localhostMode,t.SignalListener=void 0;break}return t}function oI(e,t){var n=GC(e),r=aI(n);return t&&t(r),hC(r)}var uI="react-1.11.0",sI={treatment:"control",config:null},cI="[WARN] Both a config and factory props were provided to SplitFactoryProvider. Config prop will be ignored.",lI="React library is not available or its version is not supported. Check that it is properly installed or imported. Split SDK requires version 16.3.0+ of React.",fI="[WARN] Both names and flagSets properties were provided. flagSets will be ignored.";if(!Y||!Y.createContext)throw new Error(lI);var dI={client:null,factory:null,isReady:!1,isReadyFromCache:!1,isTimedout:!1,hasTimedout:!1,lastUpdate:0,isDestroyed:!1},Hb=Y.createContext(dI),zp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pI(e,t){return!!(e===t||zp(e)&&zp(t))}function vI(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!pI(e[n],t[n]))return!1;return!0}function hI(e,t){t===void 0&&(t=vI);var n,r=[],i,a=!1;function o(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a&&n===this&&t(u,r)||(i=e.apply(this,u),a=!0,n=this,r=u),i}return o}var mI=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),u=Object.keys(n);if(o.length!==u.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var f=o[c];if(!s(f))return!1;var l=t[f],d=n[f];if(a=r?r.call(i,l,d,f):void 0,a===!1||a===void 0&&l!==d)return!1}return!0};const Va=gr(mI);var sa=new Map;function gI(e){if(!sa.has(e)){var t=oI(e,function(n){n.settings.version=uI});t.clientInstances=new Set,t.config=e,sa.set(e,t)}return sa.get(e)}function xc(e,t,n){var r=t!==void 0?e.client(t,n):e.client();if(r.lastUpdate===void 0){var i=function(){var a=Date.now();r.lastUpdate=a>r.lastUpdate?a:r.lastUpdate+1};r.lastUpdate=0,r.on(r.Event.SDK_READY,i),r.on(r.Event.SDK_READY_FROM_CACHE,i),r.on(r.Event.SDK_READY_TIMED_OUT,i),r.on(r.Event.SDK_UPDATE,i)}return e.clientInstances&&e.clientInstances.add(r),r}function yI(e){var t=[];return e.clientInstances.forEach(function(n){return t.push(n.destroy())}),e.clientInstances.clear(),sa.delete(e.config),Promise.all(t)}function Vr(e){var t=e&&e.__getStatus(),n=t?t.isReady:!1,r=t?t.hasTimedout:!1;return{isReady:n,isReadyFromCache:t?t.isReadyFromCache:!1,isTimedout:r&&!n,hasTimedout:r,isDestroyed:t?t.isDestroyed:!1,lastUpdate:e&&e.lastUpdate||0}}function Kb(e,t){e&&t&&e.setAttributes(t)}function bI(e,t){if(t===void 0&&(t="feature flag names"),Array.isArray(e)&&e.length>0){var n=[];if(e.forEach(function(r){var i=EI(r);i&&n.push(i)}),n.length)return wI(n)}return console.log("[ERROR] "+t+" must be a non-empty array."),!1}var _I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function EI(e,t){if(t===void 0&&(t="feature flag name"),e==null)console.log("[ERROR] you passed a null or undefined "+t+", "+t+" must be a non-empty string.");else if(!OI(e))console.log("[ERROR] you passed an invalid "+t+", "+t+" must be a non-empty string.");else{if(_I.test(e)&&(console.log("[WARN] "+t+' "'+e+'" has extra whitespace, trimming.'),e=e.trim()),e.length>0)return e;console.log("[ERROR] you passed an empty "+t+", "+t+" must be a non-empty string.")}return!1}function SI(e){var t=bI(e);return t?t.reduce(function(n,r){return n[r]=sI,n},{}):{}}function wI(e){var t={};return e.filter(function(n){return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function OI(e){return typeof e=="string"||e instanceof String}function TI(){return hI(CI,AI)}function AI(e,t){return e[0]===t[0]&&e[1]===t[1]&&Va(e[2],t[2])&&Va(e[3],t[3])&&Va(e[4],t[4])&&Va(e[5],t[5])}function CI(e,t,n,r,i,a){return n&&a&&console.log(fI),e&&e.__getStatus().isOperational&&(n||a)?n?e.getTreatmentsWithConfig(n,r):e.getTreatmentsWithConfigByFlagSets(a,r):n?SI(n):{}}var df={updateOnSdkUpdate:!1,updateOnSdkTimedout:!1,updateOnSdkReady:!0,updateOnSdkReadyFromCache:!0};function II(e){var t=qe(qe({},df),e),n=t.updateOnSdkReady,r=t.updateOnSdkReadyFromCache,i=t.updateOnSdkTimedout,a=t.updateOnSdkUpdate,o=t.splitKey,u=t.trafficType,s=t.attributes,c=Y.useContext(Hb),f=c.client,l=c.factory,d=f;o&&l&&(d=xc(l,o,u)),Kb(d,s);var p=Vr(d),v=Y.useState(p.lastUpdate),h=v[1];return Y.useEffect(function(){if(d){var _=function(){return h(d.lastUpdate)},g=Vr(d);return n&&(g.isReady?p.isReady||_():d.once(d.Event.SDK_READY,_)),r&&(g.isReadyFromCache?p.isReadyFromCache||_():d.once(d.Event.SDK_READY_FROM_CACHE,_)),i&&(g.hasTimedout?p.hasTimedout||_():d.once(d.Event.SDK_READY_TIMED_OUT,_)),a&&d.on(d.Event.SDK_UPDATE,_),function(){d.off(d.Event.SDK_READY,_),d.off(d.Event.SDK_READY_FROM_CACHE,_),d.off(d.Event.SDK_READY_TIMED_OUT,_),d.off(d.Event.SDK_UPDATE,_)}}},[d,n,r,i,a,p]),qe({factory:l,client:d},p)}var RI=function(e){nt(t,e);function t(n){var r=e.call(this,n)||this;r.update=function(){r.setState({lastUpdate:r.state.client.lastUpdate})};var i=n.factory,a=n.client;return r.state=qe({factory:i,client:a},Vr(a)),r}return t.getDerivedStateFromProps=function(n,r){var i=n.client,a=n.factory,o=n.attributes;Kb(i,o);var u=Vr(i);return i!==r.client||u.isReady!==r.isReady||u.isReadyFromCache!==r.isReadyFromCache||u.hasTimedout!==r.hasTimedout||u.isDestroyed!==r.isDestroyed?qe({client:i,factory:a},u):null},t.prototype.subscribeToEvents=function(n){if(n){var r=Vr(n),i=this.state;this.props.updateOnSdkReady&&(r.isReady?i.isReady||this.update():n.once(n.Event.SDK_READY,this.update)),this.props.updateOnSdkReadyFromCache&&(r.isReadyFromCache?i.isReadyFromCache||this.update():n.once(n.Event.SDK_READY_FROM_CACHE,this.update)),this.props.updateOnSdkTimedout&&(r.hasTimedout?i.hasTimedout||this.update():n.once(n.Event.SDK_READY_TIMED_OUT,this.update)),this.props.updateOnSdkUpdate&&n.on(n.Event.SDK_UPDATE,this.update)}},t.prototype.unsubscribeFromEvents=function(n){n&&(n.off(n.Event.SDK_READY,this.update),n.off(n.Event.SDK_READY_FROM_CACHE,this.update),n.off(n.Event.SDK_READY_TIMED_OUT,this.update),n.off(n.Event.SDK_UPDATE,this.update))},t.prototype.componentDidMount=function(){this.subscribeToEvents(this.props.client)},t.prototype.componentDidUpdate=function(n){this.props.client!==n.client&&(this.unsubscribeFromEvents(n.client),this.subscribeToEvents(this.props.client))},t.prototype.componentWillUnmount=function(){this.unsubscribeFromEvents(this.props.client)},t.prototype.render=function(){var n=this.props.children;return Y.createElement(Hb.Provider,{value:this.state},typeof n=="function"?n(qe({},this.state)):n)},t.defaultProps=qe({children:null,factory:null,client:null},df),t}(Y.Component);function _U(e){var t=qe(qe({},df),e),n=t.config,r=t.factory,i=t.updateOnSdkReady,a=t.updateOnSdkReadyFromCache,o=t.updateOnSdkTimedout,u=t.updateOnSdkUpdate;n&&r&&(console.log(cI),n=void 0);var s=Y.useState(null),c=s[0],f=s[1],l=r||(c&&n===c.config?c:null),d=l?xc(l):null;return Y.useEffect(function(){if(n){var p=gI(n);return function(){yI(p)}}},[n]),Y.useEffect(function(){var p=n&&sa.get(n);if(p){var v=xc(p),h=Vr(v),_=function(){g(),f(p)},g=function(){v.off(v.Event.SDK_READY,_),v.off(v.Event.SDK_READY_FROM_CACHE,_),v.off(v.Event.SDK_READY_TIMED_OUT,_),v.off(v.Event.SDK_UPDATE,_)};return i&&(h.isReady?_():v.once(v.Event.SDK_READY,_)),a&&(h.isReadyFromCache?_():v.once(v.Event.SDK_READY_FROM_CACHE,_)),o&&(h.hasTimedout?_():v.once(v.Event.SDK_READY_TIMED_OUT,_)),u&&v.on(v.Event.SDK_UPDATE,_),g}},[n,i,a,o,u]),Y.createElement(RI,qe({},e,{factory:l,client:d}))}function EU(e){var t=II(qe(qe({},e),{attributes:void 0})),n=t.client,r=t.lastUpdate,i=e.names,a=e.flagSets,o=e.attributes,u=Y.useMemo(TI,[]),s=u(n,r,i,o,n?qe({},n.getAttributes()):{},a);return qe(qe({},t),{treatments:s})}globalThis&&globalThis.__spreadArray;function PI(e){return e}function NI(e){return function(){return e}}var LI=NI(void 0);function SU(e,t,n,r,i,a,o,u,s){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return u(o(a(i(r(n(t(e)))))));case 9:return s(u(o(a(i(r(n(t(e))))))));default:{for(var c=arguments[0],f=1;f<arguments.length;f++)c=arguments[f](c);return c}}}globalThis&&globalThis.__spreadArray;var MI=function(e){return e._tag==="Some"},kI={_tag:"None"},DI=function(e){return{_tag:"Some",value:e}},pf=kI,Gb=DI,wU=function(e){return function(t){return Cu(t)?pf:Gb(e(t.value))}},OU=MI,Cu=function(e){return e._tag==="None"},FI=function(e,t){return function(n){return Cu(n)?e():t(n.value)}},Wb=FI,TU=Wb,UI=function(e){return function(t){return Cu(t)?e():t.value}},AU=UI,jI=function(e){return e==null?pf:Gb(e)},CU=function(e){return function(t){return Cu(t)?pf:jI(e(t.value))}},IU=Wb(LI,PI);function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo.apply(this,arguments)}var $r;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($r||($r={}));var qp=function(e){return e},Yp="beforeunload",$I="hashchange",xI="popstate";function RU(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,i=r.history;function a(){var S=Qp(r.location.hash.substr(1)),A=S.pathname,C=A===void 0?"/":A,N=S.search,L=N===void 0?"":N,k=S.hash,P=k===void 0?"":k,I=i.state||{};return[I.idx,qp({pathname:C,search:L,hash:P,state:I.usr||null,key:I.key||"default"})]}var o=null;function u(){if(o)p.call(o),o=null;else{var S=$r.Pop,A=a(),C=A[0],N=A[1];if(p.length){if(C!=null){var L=f-C;L&&(o={action:S,location:N,retry:function(){w(L*-1)}},w(L))}}else y(S)}}r.addEventListener(xI,u),r.addEventListener($I,function(){var S=a(),A=S[1];ms(A)!==ms(l)&&u()});var s=$r.Pop,c=a(),f=c[0],l=c[1],d=Xp(),p=Xp();f==null&&(f=0,i.replaceState(qo({},i.state,{idx:f}),""));function v(){var S=document.querySelector("base"),A="";if(S&&S.getAttribute("href")){var C=r.location.href,N=C.indexOf("#");A=N===-1?C:C.slice(0,N)}return A}function h(S){return v()+"#"+(typeof S=="string"?S:ms(S))}function _(S,A){return A===void 0&&(A=null),qp(qo({pathname:l.pathname,hash:"",search:""},typeof S=="string"?Qp(S):S,{state:A,key:BI()}))}function g(S,A){return[{usr:S.state,key:S.key,idx:A},h(S)]}function b(S,A,C){return!p.length||(p.call({action:S,location:A,retry:C}),!1)}function y(S){s=S;var A=a();f=A[0],l=A[1],d.call({action:s,location:l})}function m(S,A){var C=$r.Push,N=_(S,A);function L(){m(S,A)}if(b(C,N,L)){var k=g(N,f+1),P=k[0],I=k[1];try{i.pushState(P,"",I)}catch{r.location.assign(I)}y(C)}}function E(S,A){var C=$r.Replace,N=_(S,A);function L(){E(S,A)}if(b(C,N,L)){var k=g(N,f),P=k[0],I=k[1];i.replaceState(P,"",I),y(C)}}function w(S){i.go(S)}var O={get action(){return s},get location(){return l},createHref:h,push:m,replace:E,go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(A){return d.push(A)},block:function(A){var C=p.push(A);return p.length===1&&r.addEventListener(Yp,Vp),function(){C(),p.length||r.removeEventListener(Yp,Vp)}}};return O}function Vp(e){e.preventDefault(),e.returnValue=""}function Xp(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function BI(){return Math.random().toString(36).substr(2,8)}function ms(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,i=r===void 0?"":r,a=e.hash,o=a===void 0?"":a;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Qp(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var HI={};function zb(e,t){for(var n in t)e[n]=t[n];return e}function qb(e,t,n){var r=/(?:\?([^#]*))?(#.*)?$/,i=e.match(r),a={},o;if(i&&i[1])for(var u=i[1].split("&"),s=0;s<u.length;s++){var c=u[s].split("=");a[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}e=Bc(e.replace(r,"")),t=Bc(t||"");for(var f=Math.max(e.length,t.length),l=0;l<f;l++)if(t[l]&&t[l].charAt(0)===":"){var d=t[l].replace(/(^:|[+*?]+$)/g,""),p=(t[l].match(/[+*?]+$/)||HI)[0]||"",v=~p.indexOf("+"),h=~p.indexOf("*"),_=e[l]||"";if(!_&&!h&&(p.indexOf("?")<0||v)){o=!1;break}if(a[d]=decodeURIComponent(_),v||h){a[d]=e.slice(l).map(decodeURIComponent).join("/");break}}else if(t[l]!==e[l]){o=!1;break}return n.default!==!0&&o===!1?!1:a}function KI(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function GI(e,t){return e.index=t,e.rank=qI(e),e.props}function Bc(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function WI(e){return e.charAt(0)==":"?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}function zI(e){return Bc(e).map(WI).join("")}function qI(e){return e.props.default?0:zI(e.props.path)}var vt=null,sr=[],Hc=[],YI={};function VI(e,t){t===void 0&&(t="push"),vt&&vt[t]?vt[t](e):typeof history<"u"&&history[t+"State"]&&history[t+"State"](null,null,e)}function vf(){var e;return vt&&vt.location?e=vt.location:vt&&vt.getCurrentLocation?e=vt.getCurrentLocation():e=typeof location<"u"?location:YI,""+(e.pathname||"")+(e.search||"")}function Yb(e,t){return t===void 0&&(t=!1),typeof e!="string"&&e.url&&(t=e.replace,e=e.url),XI(e)&&VI(e,t?"replace":"push"),Vb(e)}function XI(e){for(var t=sr.length;t--;)if(sr[t].canRoute(e))return!0;return!1}function Vb(e){for(var t=!1,n=0;n<sr.length;n++)sr[n].routeTo(e)===!0&&(t=!0);for(var r=Hc.length;r--;)Hc[r](e);return t}function Xb(e){if(!(!e||!e.getAttribute)){var t=e.getAttribute("href"),n=e.getAttribute("target");if(!(!t||!t.match(/^\//g)||n&&!n.match(/^_?self$/i)))return Yb(t)}}function QI(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||e.button!==0))return Xb(e.currentTarget||e.target||this),Qb(e)}function Qb(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function JI(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||e.button!==0)){var t=e.target;do if(String(t.nodeName).toUpperCase()==="A"&&t.getAttribute("href")){if(t.hasAttribute("native"))return;if(Xb(t))return Qb(e)}while(t=t.parentNode)}}var Jp=!1;function ZI(){Jp||(typeof addEventListener=="function"&&(vt||addEventListener("popstate",function(){Vb(vf())}),addEventListener("click",JI)),Jp=!0)}var Hn=function(e){function t(n){e.call(this,n),n.history&&(vt=n.history),this.state={url:n.url||vf()},ZI()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.shouldComponentUpdate=function(r){return r.static!==!0?!0:r.url!==this.props.url||r.onChange!==this.props.onChange},t.prototype.canRoute=function(r){var i=Ft(this.props.children);return this.getMatchingChildren(i,r,!1).length>0},t.prototype.routeTo=function(r){this.setState({url:r});var i=this.canRoute(r);return this.updating||this.forceUpdate(),i},t.prototype.componentWillMount=function(){sr.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var r=this;vt&&(this.unlisten=vt.listen(function(i){r.routeTo(""+(i.pathname||"")+(i.search||""))})),this.updating=!1},t.prototype.componentWillUnmount=function(){typeof this.unlisten=="function"&&this.unlisten(),sr.splice(sr.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(r,i,a){return r.filter(GI).sort(KI).map(function(o){var u=qb(i,o.props.path,o.props);if(u){if(a!==!1){var s={url:i,matches:u};return zb(s,u),delete s.ref,delete s.key,qm(o,s)}return o}}).filter(Boolean)},t.prototype.render=function(r,i){var a=r.children,o=r.onChange,u=i.url,s=this.getMatchingChildren(Ft(a),u,!0),c=s[0]||null,f=this.previousUrl;return u!==f&&(this.previousUrl=u,typeof o=="function"&&o({router:this,url:u,previous:f,active:s,current:c})),c},t}(At),eR=function(e){return G("a",zb({onClick:QI},e))},tR=function(e){return G(e.component,e)};Hn.subscribers=Hc;Hn.getCurrentUrl=vf;Hn.route=Yb;Hn.Router=Hn;Hn.Route=tR;Hn.Link=eR;Hn.exec=qb;const nR="application/json",Jb="Content-Type",Ir=Symbol(),Zb=Symbol();function Zp(e={}){var t;return(t=Object.entries(e).find(([n])=>n.toLowerCase()===Jb.toLowerCase()))===null||t===void 0?void 0:t[1]}function ev(e){return/^application\/.*json.*/.test(e)}const cr=function(e,t,n=!1){return Object.entries(t).reduce((r,[i,a])=>{const o=e[i];return Array.isArray(o)&&Array.isArray(a)?r[i]=n?[...o,...a]:a:typeof o=="object"&&typeof a=="object"?r[i]=cr(o,a,n):r[i]=a,r},{...e})},oi={options:{},errorType:"text",polyfills:{},polyfill(e,t=!0,n=!1,...r){const i=this.polyfills[e]||(typeof self<"u"?self[e]:null)||(typeof global<"u"?global[e]:null);if(t&&!i)throw new Error(e+" is not defined");return n&&i?new i(...r):i}};function rR(e,t=!1){oi.options=t?e:cr(oi.options,e)}function iR(e,t=!1){oi.polyfills=t?e:cr(oi.polyfills,e)}function aR(e){oi.errorType=e}const oR=e=>t=>e.reduceRight((n,r)=>r(n),t)||t;class e_ extends Error{}const uR=e=>{const t=Object.create(null);e=e._addons.reduce((y,m)=>m.beforeRequest&&m.beforeRequest(y,e._options,t)||y,e);const{_url:n,_options:r,_config:i,_catchers:a,_resolvers:o,_middlewares:u,_addons:s}=e,c=new Map(a),f=cr(i.options,r);let l=n;const d=oR(u)((y,m)=>(l=y,i.polyfill("fetch")(y,m)))(n,f),p=new Error,v=d.catch(y=>{throw{[Ir]:y}}).then(y=>{if(!y.ok){const m=new e_;if(m.cause=p,m.stack=m.stack+`
21
- CAUSE: `+p.stack,m.response=y,m.url=l,y.type==="opaque")throw m;return y.text().then(E=>{var w;if(m.message=E,i.errorType==="json"||((w=y.headers.get("Content-Type"))===null||w===void 0?void 0:w.split(";")[0])==="application/json")try{m.json=JSON.parse(E)}catch{}throw m.text=E,m.status=y.status,m})}return y}),h=y=>y.catch(m=>{const E=m.hasOwnProperty(Ir),w=E?m[Ir]:m,O=(w==null?void 0:w.status)&&c.get(w.status)||c.get(w==null?void 0:w.name)||E&&c.has(Ir)&&c.get(Ir);if(O)return O(w,e);const S=c.get(Zb);if(S)return S(w,e);throw w}),_=y=>m=>h(y?v.then(E=>E&&E[y]()).then(E=>m?m(E):E):v.then(E=>m?m(E):E)),g={_wretchReq:e,_fetchReq:d,_sharedState:t,res:_(null),json:_("json"),blob:_("blob"),formData:_("formData"),arrayBuffer:_("arrayBuffer"),text:_("text"),error(y,m){return c.set(y,m),this},badRequest(y){return this.error(400,y)},unauthorized(y){return this.error(401,y)},forbidden(y){return this.error(403,y)},notFound(y){return this.error(404,y)},timeout(y){return this.error(408,y)},internalError(y){return this.error(500,y)},fetchError(y){return this.error(Ir,y)}},b=s.reduce((y,m)=>({...y,...m.resolver}),g);return o.reduce((y,m)=>m(y,e),b)},sR={_url:"",_options:{},_config:oi,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon(e){return{...this,_addons:[...this._addons,e],...e.wretch}},errorType(e){return{...this,_config:{...this._config,errorType:e}}},polyfills(e,t=!1){return{...this,_config:{...this._config,polyfills:t?e:cr(this._config.polyfills,e)}}},url(e,t=!1){if(t)return{...this,_url:e};const n=this._url.split("?");return{...this,_url:n.length>1?n[0]+e+"?"+n[1]:this._url+e}},options(e,t=!1){return{...this,_options:t?e:cr(this._options,e)}},headers(e){return{...this,_options:cr(this._options,{headers:e||{}})}},accept(e){return this.headers({Accept:e})},content(e){return this.headers({[Jb]:e})},auth(e){return this.headers({Authorization:e})},catcher(e,t){const n=new Map(this._catchers);return n.set(e,t),{...this,_catchers:n}},catcherFallback(e){return this.catcher(Zb,e)},resolve(e,t=!1){return{...this,_resolvers:t?[e]:[...this._resolvers,e]}},defer(e,t=!1){return{...this,_deferred:t?[e]:[...this._deferred,e]}},middlewares(e,t=!1){return{...this,_middlewares:t?e:[...this._middlewares,...e]}},fetch(e=this._options.method,t="",n=null){let r=this.url(t).options({method:e});const i=Zp(r._options.headers),a=typeof n=="object"&&(!r._options.headers||!i||ev(i));return r=n?a?r.json(n,i):r.body(n):r,uR(r._deferred.reduce((o,u)=>u(o,o._url,o._options),r))},get(e=""){return this.fetch("GET",e)},delete(e=""){return this.fetch("DELETE",e)},put(e,t=""){return this.fetch("PUT",t,e)},post(e,t=""){return this.fetch("POST",t,e)},patch(e,t=""){return this.fetch("PATCH",t,e)},head(e=""){return this.fetch("HEAD",e)},opts(e=""){return this.fetch("OPTIONS",e)},body(e){return{...this,_options:{...this._options,body:e}}},json(e,t){const n=Zp(this._options.headers);return this.content(t||ev(n)&&n||nR).body(JSON.stringify(e))}};function ui(e="",t={}){return{...sR,_url:e,_options:t}}ui.default=ui;ui.options=rR;ui.errorType=aR;ui.polyfills=iR;ui.WretchError=e_;var cR=0;function PU(e,t,n,r,i,a){var o,u,s={};for(u in t)u=="ref"?o=t[u]:s[u]=t[u];var c={type:e,props:s,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--cR,__source:i,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)s[u]===void 0&&(s[u]=o[u]);return V.vnode&&V.vnode(c),c}var It={};(function(e){var t=J&&J.__spreadArray||function(O,S,A){if(A||arguments.length===2)for(var C=0,N=S.length,L;C<N;C++)(L||!(C in S))&&(L||(L=Array.prototype.slice.call(S,0,C)),L[C]=S[C]);return O.concat(L||Array.prototype.slice.call(S))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.not=e.SK=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.unsafeCoerce=e.identity=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0;var n=function(O){return function(){return{meet:function(S,A){return function(C){return O.meet(S(C),A(C))}},join:function(S,A){return function(C){return O.join(S(C),A(C))}},zero:function(){return O.zero},one:function(){return O.one},implies:function(S,A){return function(C){return O.implies(S(C),A(C))}},not:function(S){return function(A){return O.not(S(A))}}}}};e.getBooleanAlgebra=n;var r=function(O){return function(){return{concat:function(S,A){return function(C){return O.concat(S(C),A(C))}}}}};e.getSemigroup=r;var i=function(O){var S=(0,e.getSemigroup)(O);return function(){return{concat:S().concat,empty:function(){return O.empty}}}};e.getMonoid=i;var a=function(O){return{add:function(S,A){return function(C){return O.add(S(C),A(C))}},zero:function(){return O.zero},mul:function(S,A){return function(C){return O.mul(S(C),A(C))}},one:function(){return O.one}}};e.getSemiring=a;var o=function(O){var S=(0,e.getSemiring)(O);return{add:S.add,mul:S.mul,one:S.one,zero:S.zero,sub:function(A,C){return function(N){return O.sub(A(N),C(N))}}}};e.getRing=o;var u=function(O){return function(S){return S(O)}};e.apply=u;function s(O){return O}e.identity=s,e.unsafeCoerce=s;function c(O){return function(){return O}}e.constant=c,e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function f(O){return function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];return S.length>1?O(S[1],S[0]):function(C){return O(C)(S[0])}}}e.flip=f;function l(O,S,A,C,N,L,k,P,I){switch(arguments.length){case 1:return O;case 2:return function(){return S(O.apply(this,arguments))};case 3:return function(){return A(S(O.apply(this,arguments)))};case 4:return function(){return C(A(S(O.apply(this,arguments))))};case 5:return function(){return N(C(A(S(O.apply(this,arguments)))))};case 6:return function(){return L(N(C(A(S(O.apply(this,arguments))))))};case 7:return function(){return k(L(N(C(A(S(O.apply(this,arguments)))))))};case 8:return function(){return P(k(L(N(C(A(S(O.apply(this,arguments))))))))};case 9:return function(){return I(P(k(L(N(C(A(S(O.apply(this,arguments)))))))))}}}e.flow=l;function d(){for(var O=[],S=0;S<arguments.length;S++)O[S]=arguments[S];return O}e.tuple=d;function p(O){return O+1}e.increment=p;function v(O){return O-1}e.decrement=v;function h(O){throw new Error("Called `absurd` function which should be uncallable")}e.absurd=h;function _(O){return function(S){return O.apply(void 0,S)}}e.tupled=_;function g(O){return function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];return O(S)}}e.untupled=g;function b(O,S,A,C,N,L,k,P,I){switch(arguments.length){case 1:return O;case 2:return S(O);case 3:return A(S(O));case 4:return C(A(S(O)));case 5:return N(C(A(S(O))));case 6:return L(N(C(A(S(O)))));case 7:return k(L(N(C(A(S(O))))));case 8:return P(k(L(N(C(A(S(O)))))));case 9:return I(P(k(L(N(C(A(S(O))))))));default:{for(var R=arguments[0],M=1;M<arguments.length;M++)R=arguments[M](R);return R}}}e.pipe=b,e.hole=h;var y=function(O,S){return S};e.SK=y;function m(O){return function(S){return!O(S)}}e.not=m;var E=function(){return{concat:function(O,S){return l(O,S)},empty:s}};e.getEndomorphismMonoid=E;var w=function(O,S){var A=typeof O=="number"?function(C){return C.length>=O}:O;return function(){var C=Array.from(arguments);return A(arguments)?S.apply(this,C):function(N){return S.apply(void 0,t([N],C,!1))}}};e.dual=w})(It);function Mt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function si(e){return!!e&&!!e[yt]}function vr(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gR}(e)||Array.isArray(e)||!!e[sv]||!!(!((t=e.constructor)===null||t===void 0)&&t[sv])||hf(e)||mf(e))}function Ea(e,t,n){n===void 0&&(n=!1),Oi(e)===0?(n?Object.keys:Ef)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Oi(e){var t=e[yt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hf(e)?2:mf(e)?3:0}function Kc(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lR(e,t){return Oi(e)===2?e.get(t):e[t]}function t_(e,t,n){var r=Oi(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function fR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function hf(e){return hR&&e instanceof Map}function mf(e){return mR&&e instanceof Set}function er(e){return e.o||e.t}function gf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=yR(e);delete t[yt];for(var n=Ef(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function yf(e,t){return t===void 0&&(t=!1),bf(e)||si(e)||!vr(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=dR),Object.freeze(e),t&&Ea(e,function(n,r){return yf(r,!0)},!0)),e}function dR(){Mt(2)}function bf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Yt(e){var t=bR[e];return t||Mt(18,e),t}function tv(){return Sa}function gs(e,t){t&&(Yt("Patches"),e.u=[],e.s=[],e.v=t)}function Yo(e){Gc(e),e.p.forEach(pR),e.p=null}function Gc(e){e===Sa&&(Sa=e.l)}function nv(e){return Sa={p:[],l:Sa,h:e,m:!0,_:0}}function pR(e){var t=e[yt];t.i===0||t.i===1?t.j():t.g=!0}function ys(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Yt("ES5").S(t,e,r),r?(n[yt].P&&(Yo(t),Mt(4)),vr(e)&&(e=Vo(t,e),t.l||Xo(t,e)),t.u&&Yt("Patches").M(n[yt].t,e,t.u,t.s)):e=Vo(t,n,[]),Yo(t),t.u&&t.v(t.u,t.s),e!==n_?e:void 0}function Vo(e,t,n){if(bf(t))return t;var r=t[yt];if(!r)return Ea(t,function(u,s){return rv(e,r,t,u,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Xo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=gf(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Ea(a,function(u,s){return rv(e,r,i,u,s,n,o)}),Xo(e,i,!1),n&&e.u&&Yt("Patches").N(r,n,e.u,e.s)}return r.o}function rv(e,t,n,r,i,a,o){if(si(i)){var u=Vo(e,i,a&&t&&t.i!==3&&!Kc(t.R,r)?a.concat(r):void 0);if(t_(n,r,u),!si(u))return;e.m=!1}else o&&n.add(i);if(vr(i)&&!bf(i)){if(!e.h.D&&e._<1)return;Vo(e,i),t&&t.A.l||Xo(e,i)}}function Xo(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&yf(t,n)}function bs(e,t){var n=e[yt];return(n?er(n):e)[t]}function iv(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Wc(e){e.P||(e.P=!0,e.l&&Wc(e.l))}function _s(e){e.o||(e.o=gf(e.t))}function zc(e,t,n){var r=hf(t)?Yt("MapSet").F(t,n):mf(t)?Yt("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),u={i:o?1:0,A:a?a.A:tv(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},s=u,c=qc;o&&(s=[u],c=Vi);var f=Proxy.revocable(s,c),l=f.revoke,d=f.proxy;return u.k=d,u.j=l,d}(t,n):Yt("ES5").J(t,n);return(n?n.A:tv()).p.push(r),r}function vR(e){return si(e)||Mt(22,e),function t(n){if(!vr(n))return n;var r,i=n[yt],a=Oi(n);if(i){if(!i.P&&(i.i<4||!Yt("ES5").K(i)))return i.t;i.I=!0,r=av(n,a),i.I=!1}else r=av(n,a);return Ea(r,function(o,u){i&&lR(i.t,o)===u||t_(r,o,t(u))}),a===3?new Set(r):r}(e)}function av(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gf(e)}var ov,Sa,_f=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hR=typeof Map<"u",mR=typeof Set<"u",uv=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",n_=_f?Symbol.for("immer-nothing"):((ov={})["immer-nothing"]=!0,ov),sv=_f?Symbol.for("immer-draftable"):"__$immer_draftable",yt=_f?Symbol.for("immer-state"):"__$immer_state",gR=""+Object.prototype.constructor,Ef=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,yR=Object.getOwnPropertyDescriptors||function(e){var t={};return Ef(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},bR={},qc={get:function(e,t){if(t===yt)return e;var n=er(e);if(!Kc(n,t))return function(i,a,o){var u,s=iv(a,o);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!vr(r)?r:r===bs(e.t,t)?(_s(e),e.o[t]=zc(e.A.h,r,e)):r},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,n){var r=iv(er(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=bs(er(e),t),a=i==null?void 0:i[yt];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(fR(n,i)&&(n!==void 0||Kc(e.t,t)))return!0;_s(e),Wc(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return bs(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,_s(e),Wc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=er(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Mt(12)}},Vi={};Ea(qc,function(e,t){Vi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vi.deleteProperty=function(e,t){return Vi.set.call(this,e,t,void 0)},Vi.set=function(e,t,n){return qc.set.call(this,e[0],t,n,e[0])};var _R=function(){function e(n){var r=this;this.O=uv,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var u=a;a=i;var s=r;return function(h){var _=this;h===void 0&&(h=u);for(var g=arguments.length,b=Array(g>1?g-1:0),y=1;y<g;y++)b[y-1]=arguments[y];return s.produce(h,function(m){var E;return(E=a).call.apply(E,[_,m].concat(b))})}}var c;if(typeof a!="function"&&Mt(6),o!==void 0&&typeof o!="function"&&Mt(7),vr(i)){var f=nv(r),l=zc(r,i,void 0),d=!0;try{c=a(l),d=!1}finally{d?Yo(f):Gc(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return gs(f,o),ys(h,f)},function(h){throw Yo(f),h}):(gs(f,o),ys(c,f))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===n_&&(c=void 0),r.D&&yf(c,!0),o){var p=[],v=[];Yt("Patches").M(i,c,p,v),o(p,v)}return c}Mt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var f=arguments.length,l=Array(f>1?f-1:0),d=1;d<f;d++)l[d-1]=arguments[d];return r.produceWithPatches(c,function(p){return i.apply(void 0,[p].concat(l))})};var o,u,s=r.produce(i,a,function(c,f){o=c,u=f});return typeof Promise<"u"&&s instanceof Promise?s.then(function(c){return[c,o,u]}):[s,o,u]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){vr(n)||Mt(8),si(n)&&(n=vR(n));var r=nv(this),i=zc(this,n,void 0);return i[yt].C=!0,Gc(r),i},t.finishDraft=function(n,r){var i=n&&n[yt],a=i.A;return gs(a,r),ys(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!uv&&Mt(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=Yt("Patches").$;return si(n)?o(n,r):this.produce(n,function(u){return o(u,r)})},e}(),bt=new _R,NU=bt.produce;bt.produceWithPatches.bind(bt);bt.setAutoFreeze.bind(bt);bt.setUseProxies.bind(bt);bt.applyPatches.bind(bt);bt.createDraft.bind(bt);bt.finishDraft.bind(bt);var ER={},ci={},ze={},Ti={};(function(e){var t=J&&J.__spreadArray||function(O,S,A){if(A||arguments.length===2)for(var C=0,N=S.length,L;C<N;C++)(L||!(C in S))&&(L||(L=Array.prototype.slice.call(S,0,C)),L[C]=S[C]);return O.concat(L||Array.prototype.slice.call(S))};Object.defineProperty(e,"__esModule",{value:!0}),e.flatMapReader=e.flatMapTask=e.flatMapIO=e.flatMapEither=e.flatMapOption=e.flatMapNullable=e.liftOption=e.liftNullable=e.fromReadonlyNonEmptyArray=e.has=e.emptyRecord=e.emptyReadonlyArray=e.tail=e.head=e.isNonEmpty=e.singleton=e.right=e.left=e.isRight=e.isLeft=e.some=e.none=e.isSome=e.isNone=void 0;var n=It,r=function(O){return O._tag==="None"};e.isNone=r;var i=function(O){return O._tag==="Some"};e.isSome=i,e.none={_tag:"None"};var a=function(O){return{_tag:"Some",value:O}};e.some=a;var o=function(O){return O._tag==="Left"};e.isLeft=o;var u=function(O){return O._tag==="Right"};e.isRight=u;var s=function(O){return{_tag:"Left",left:O}};e.left=s;var c=function(O){return{_tag:"Right",right:O}};e.right=c;var f=function(O){return[O]};e.singleton=f;var l=function(O){return O.length>0};e.isNonEmpty=l;var d=function(O){return O[0]};e.head=d;var p=function(O){return O.slice(1)};e.tail=p,e.emptyReadonlyArray=[],e.emptyRecord={},e.has=Object.prototype.hasOwnProperty;var v=function(O){return t([O[0]],O.slice(1),!0)};e.fromReadonlyNonEmptyArray=v;var h=function(O){return function(S,A){return function(){for(var C=[],N=0;N<arguments.length;N++)C[N]=arguments[N];var L=S.apply(void 0,C);return O.fromEither(L==null?(0,e.left)(A.apply(void 0,C)):(0,e.right)(L))}}};e.liftNullable=h;var _=function(O){return function(S,A){return function(){for(var C=[],N=0;N<arguments.length;N++)C[N]=arguments[N];var L=S.apply(void 0,C);return O.fromEither((0,e.isNone)(L)?(0,e.left)(A.apply(void 0,C)):(0,e.right)(L.value))}}};e.liftOption=_;var g=function(O,S){return(0,n.dual)(3,function(A,C,N){return S.flatMap(A,(0,e.liftNullable)(O)(C,N))})};e.flatMapNullable=g;var b=function(O,S){return(0,n.dual)(3,function(A,C,N){return S.flatMap(A,(0,e.liftOption)(O)(C,N))})};e.flatMapOption=b;var y=function(O,S){return(0,n.dual)(2,function(A,C){return S.flatMap(A,function(N){return O.fromEither(C(N))})})};e.flatMapEither=y;var m=function(O,S){return(0,n.dual)(2,function(A,C){return S.flatMap(A,function(N){return O.fromIO(C(N))})})};e.flatMapIO=m;var E=function(O,S){return(0,n.dual)(2,function(A,C){return S.flatMap(A,function(N){return O.fromTask(C(N))})})};e.flatMapTask=E;var w=function(O,S){return(0,n.dual)(2,function(A,C){return S.flatMap(A,function(N){return O.fromReader(C(N))})})};e.flatMapReader=w})(Ti);var SR=J&&J.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),wR=J&&J.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OR=J&&J.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&SR(t,e,n);return wR(t,e),t};Object.defineProperty(ze,"__esModule",{value:!0});ze.sequenceS=ze.sequenceT=ze.getApplySemigroup=ze.apS=ze.apSecond=ze.apFirst=ze.ap=void 0;var TR=It,AR=OR(Ti);function CR(e,t){return function(n){return function(r){return e.ap(e.map(r,function(i){return function(a){return t.ap(i,a)}}),n)}}}ze.ap=CR;function IR(e){return function(t){return function(n){return e.ap(e.map(n,function(r){return function(){return r}}),t)}}}ze.apFirst=IR;function RR(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(r){return r}}),t)}}}ze.apSecond=RR;function PR(e){return function(t,n){return function(r){return e.ap(e.map(r,function(i){return function(a){var o;return Object.assign({},i,(o={},o[t]=a,o))}}),n)}}}ze.apS=PR;function NR(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(i){return function(a){return t.concat(i,a)}}),r)}}}}ze.getApplySemigroup=NR;function Sf(e,t,n){return function(r){for(var i=Array(n.length+1),a=0;a<n.length;a++)i[a]=n[a];return i[n.length]=r,t===0?e.apply(null,i):Sf(e,t-1,i)}}var Es={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function LR(e){return AR.has.call(Es,e)||(Es[e]=Sf(TR.tuple,e-1,[])),Es[e]}function MR(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=t.length,i=LR(r),a=e.map(t[0],i),o=1;o<r;o++)a=e.ap(a,t[o]);return a}}ze.sequenceT=MR;function kR(e){var t=e.length;switch(t){case 1:return function(n){var r;return r={},r[e[0]]=n,r};case 2:return function(n){return function(r){var i;return i={},i[e[0]]=n,i[e[1]]=r,i}};case 3:return function(n){return function(r){return function(i){var a;return a={},a[e[0]]=n,a[e[1]]=r,a[e[2]]=i,a}}};case 4:return function(n){return function(r){return function(i){return function(a){var o;return o={},o[e[0]]=n,o[e[1]]=r,o[e[2]]=i,o[e[3]]=a,o}}}};case 5:return function(n){return function(r){return function(i){return function(a){return function(o){var u;return u={},u[e[0]]=n,u[e[1]]=r,u[e[2]]=i,u[e[3]]=a,u[e[4]]=o,u}}}}};default:return Sf(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},a=0;a<t;a++)i[e[a]]=n[a];return i},t-1,[])}}function DR(e){return function(t){for(var n=Object.keys(t),r=n.length,i=kR(n),a=e.map(t[n[0]],i),o=1;o<r;o++)a=e.ap(a,t[n[o]]);return a}}ze.sequenceS=DR;var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.asUnit=Ge.as=Ge.getFunctorComposition=Ge.let=Ge.bindTo=Ge.flap=Ge.map=void 0;var FR=It;function r_(e,t){return function(n){return function(r){return e.map(r,function(i){return t.map(i,n)})}}}Ge.map=r_;function UR(e){return function(t){return function(n){return e.map(n,function(r){return r(t)})}}}Ge.flap=UR;function jR(e){return function(t){return function(n){return e.map(n,function(r){var i;return i={},i[t]=r,i})}}}Ge.bindTo=jR;function $R(e){return function(t,n){return function(r){return e.map(r,function(i){var a;return Object.assign({},i,(a={},a[t]=n(i),a))})}}}Ge.let=$R;function xR(e,t){var n=r_(e,t);return{map:function(r,i){return(0,FR.pipe)(r,n(i))}}}Ge.getFunctorComposition=xR;function i_(e){return function(t,n){return e.map(t,function(){return n})}}Ge.as=i_;function BR(e){var t=i_(e);return function(n){return t(n,void 0)}}Ge.asUnit=BR;Object.defineProperty(ci,"__esModule",{value:!0});ci.getApplicativeComposition=ci.getApplicativeMonoid=void 0;var a_=ze,HR=It,KR=Ge;function GR(e){var t=(0,a_.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}ci.getApplicativeMonoid=GR;function WR(e,t){var n=(0,KR.getFunctorComposition)(e,t).map,r=(0,a_.ap)(e,t);return{map:n,of:function(i){return e.of(t.of(i))},ap:function(i,a){return(0,HR.pipe)(i,r(a))}}}ci.getApplicativeComposition=WR;var an={};Object.defineProperty(an,"__esModule",{value:!0});an.bind=an.tap=an.chainFirst=void 0;function zR(e){var t=o_(e);return function(n){return function(r){return t(r,n)}}}an.chainFirst=zR;function o_(e){return function(t,n){return e.chain(t,function(r){return e.map(n(r),function(){return r})})}}an.tap=o_;function qR(e){return function(t,n){return function(r){return e.chain(r,function(i){return e.map(n(i),function(a){var o;return Object.assign({},i,(o={},o[t]=a,o))})})}}}an.bind=qR;var Le={},YR=J&&J.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),VR=J&&J.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),XR=J&&J.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&YR(t,e,n);return VR(t,e),t};Object.defineProperty(Le,"__esModule",{value:!0});Le.tapEither=Le.filterOrElse=Le.chainFirstEitherK=Le.chainEitherK=Le.fromEitherK=Le.chainOptionK=Le.fromOptionK=Le.fromPredicate=Le.fromOption=void 0;var QR=an,u_=It,lr=XR(Ti);function s_(e){return function(t){return function(n){return e.fromEither(lr.isNone(n)?lr.left(t()):lr.right(n.value))}}}Le.fromOption=s_;function JR(e){return function(t,n){return function(r){return e.fromEither(t(r)?lr.right(r):lr.left(n(r)))}}}Le.fromPredicate=JR;function c_(e){var t=s_(e);return function(n){var r=t(n);return function(i){return(0,u_.flow)(i,r)}}}Le.fromOptionK=c_;function ZR(e,t){var n=c_(e);return function(r){var i=n(r);return function(a){return function(o){return t.chain(o,i(a))}}}}Le.chainOptionK=ZR;function wf(e){return function(t){return(0,u_.flow)(t,e.fromEither)}}Le.fromEitherK=wf;function eP(e,t){var n=wf(e);return function(r){return function(i){return t.chain(i,n(r))}}}Le.chainEitherK=eP;function tP(e,t){var n=l_(e,t);return function(r){return function(i){return n(i,r)}}}Le.chainFirstEitherK=tP;function nP(e,t){return function(n,r){return function(i){return t.chain(i,function(a){return e.fromEither(n(a)?lr.right(a):lr.left(r(a)))})}}}Le.filterOrElse=nP;function l_(e,t){var n=wf(e),r=(0,QR.tap)(t);return function(i,a){return r(i,n(a))}}Le.tapEither=l_;var f_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.and=e.or=e.not=e.Contravariant=e.getMonoidAll=e.getSemigroupAll=e.getMonoidAny=e.getSemigroupAny=e.URI=e.contramap=void 0;var t=It,n=function(l,d){return(0,t.pipe)(l,(0,e.contramap)(d))},r=function(l){return function(d){return(0,t.flow)(l,d)}};e.contramap=r,e.URI="Predicate";var i=function(){return{concat:function(l,d){return(0,t.pipe)(l,(0,e.or)(d))}}};e.getSemigroupAny=i;var a=function(){return{concat:(0,e.getSemigroupAny)().concat,empty:t.constFalse}};e.getMonoidAny=a;var o=function(){return{concat:function(l,d){return(0,t.pipe)(l,(0,e.and)(d))}}};e.getSemigroupAll=o;var u=function(){return{concat:(0,e.getSemigroupAll)().concat,empty:t.constTrue}};e.getMonoidAll=u,e.Contravariant={URI:e.URI,contramap:n};var s=function(l){return function(d){return!l(d)}};e.not=s;var c=function(l){return function(d){return function(p){return d(p)||l(p)}}};e.or=c;var f=function(l){return function(d){return function(p){return d(p)&&l(p)}}};e.and=f})(f_);var d_={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.concatAll=Tt.endo=Tt.filterSecond=Tt.filterFirst=Tt.reverse=void 0;var rP=function(e){return{concat:function(t,n){return e.concat(n,t)}}};Tt.reverse=rP;var iP=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}};Tt.filterFirst=iP;var aP=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}};Tt.filterSecond=aP;var oP=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}};Tt.endo=oP;var uP=function(e){return function(t){return function(n){return n.reduce(function(r,i){return e.concat(r,i)},t)}}};Tt.concatAll=uP;var p_={},v_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.eqDate=e.eqNumber=e.eqString=e.eqBoolean=e.eq=e.strictEqual=e.getStructEq=e.getTupleEq=e.Contravariant=e.getMonoid=e.getSemigroup=e.eqStrict=e.URI=e.contramap=e.tuple=e.struct=e.fromEquals=void 0;var t=It,n=function(f){return{equals:function(l,d){return l===d||f(l,d)}}};e.fromEquals=n;var r=function(f){return(0,e.fromEquals)(function(l,d){for(var p in f)if(!f[p].equals(l[p],d[p]))return!1;return!0})};e.struct=r;var i=function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];return(0,e.fromEquals)(function(d,p){return f.every(function(v,h){return v.equals(d[h],p[h])})})};e.tuple=i;var a=function(f,l){return(0,t.pipe)(f,(0,e.contramap)(l))},o=function(f){return function(l){return(0,e.fromEquals)(function(d,p){return l.equals(f(d),f(p))})}};e.contramap=o,e.URI="Eq",e.eqStrict={equals:function(f,l){return f===l}};var u={equals:function(){return!0}},s=function(){return{concat:function(f,l){return(0,e.fromEquals)(function(d,p){return f.equals(d,p)&&l.equals(d,p)})}}};e.getSemigroup=s;var c=function(){return{concat:(0,e.getSemigroup)().concat,empty:u}};e.getMonoid=c,e.Contravariant={URI:e.URI,contramap:a},e.getTupleEq=e.tuple,e.getStructEq=e.struct,e.strictEqual=e.eqStrict.equals,e.eq=e.Contravariant,e.eqBoolean=e.eqStrict,e.eqString=e.eqStrict,e.eqNumber=e.eqStrict,e.eqDate={equals:function(f,l){return f.valueOf()===l.valueOf()}}})(v_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ordDate=e.ordNumber=e.ordString=e.ordBoolean=e.ord=e.getDualOrd=e.getTupleOrd=e.between=e.clamp=e.max=e.min=e.geq=e.leq=e.gt=e.lt=e.equals=e.trivial=e.Contravariant=e.getMonoid=e.getSemigroup=e.URI=e.contramap=e.reverse=e.tuple=e.fromCompare=e.equalsDefault=void 0;var t=v_,n=It,r=function(w){return function(O,S){return O===S||w(O,S)===0}};e.equalsDefault=r;var i=function(w){return{equals:(0,e.equalsDefault)(w),compare:function(O,S){return O===S?0:w(O,S)}}};e.fromCompare=i;var a=function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return(0,e.fromCompare)(function(S,A){for(var C=0;C<w.length-1;C++){var N=w[C].compare(S[C],A[C]);if(N!==0)return N}return w[C].compare(S[C],A[C])})};e.tuple=a;var o=function(w){return(0,e.fromCompare)(function(O,S){return w.compare(S,O)})};e.reverse=o;var u=function(w,O){return(0,n.pipe)(w,(0,e.contramap)(O))},s=function(w){return function(O){return(0,e.fromCompare)(function(S,A){return O.compare(w(S),w(A))})}};e.contramap=s,e.URI="Ord";var c=function(){return{concat:function(w,O){return(0,e.fromCompare)(function(S,A){var C=w.compare(S,A);return C!==0?C:O.compare(S,A)})}}};e.getSemigroup=c;var f=function(){return{concat:(0,e.getSemigroup)().concat,empty:(0,e.fromCompare)(function(){return 0})}};e.getMonoid=f,e.Contravariant={URI:e.URI,contramap:u},e.trivial={equals:n.constTrue,compare:(0,n.constant)(0)};var l=function(w){return function(O){return function(S){return S===O||w.compare(S,O)===0}}};e.equals=l;var d=function(w){return function(O,S){return w.compare(O,S)===-1}};e.lt=d;var p=function(w){return function(O,S){return w.compare(O,S)===1}};e.gt=p;var v=function(w){return function(O,S){return w.compare(O,S)!==1}};e.leq=v;var h=function(w){return function(O,S){return w.compare(O,S)!==-1}};e.geq=h;var _=function(w){return function(O,S){return O===S||w.compare(O,S)<1?O:S}};e.min=_;var g=function(w){return function(O,S){return O===S||w.compare(O,S)>-1?O:S}};e.max=g;var b=function(w){var O=(0,e.min)(w),S=(0,e.max)(w);return function(A,C){return function(N){return S(O(N,C),A)}}};e.clamp=b;var y=function(w){var O=(0,e.lt)(w),S=(0,e.gt)(w);return function(A,C){return function(N){return!(O(N,A)||S(N,C))}}};e.between=y,e.getTupleOrd=e.tuple,e.getDualOrd=e.reverse,e.ord=e.Contravariant;function m(w,O){return w<O?-1:w>O?1:0}var E={equals:t.eqStrict.equals,compare:m};e.ordBoolean=E,e.ordString=E,e.ordNumber=E,e.ordDate=(0,n.pipe)(e.ordNumber,(0,e.contramap)(function(w){return w.valueOf()}))})(p_);(function(e){var t=J&&J.__createBinding||(Object.create?function(b,y,m,E){E===void 0&&(E=m);var w=Object.getOwnPropertyDescriptor(y,m);(!w||("get"in w?!y.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(b,E,w)}:function(b,y,m,E){E===void 0&&(E=m),b[E]=y[m]}),n=J&&J.__setModuleDefault||(Object.create?function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}:function(b,y){b.default=y}),r=J&&J.__importStar||function(b){if(b&&b.__esModule)return b;var y={};if(b!=null)for(var m in b)m!=="default"&&Object.prototype.hasOwnProperty.call(b,m)&&t(y,b,m);return n(y,b),y};Object.defineProperty(e,"__esModule",{value:!0}),e.semigroupProduct=e.semigroupSum=e.semigroupString=e.getFunctionSemigroup=e.semigroupAny=e.semigroupAll=e.fold=e.getIntercalateSemigroup=e.getMeetSemigroup=e.getJoinSemigroup=e.getDualSemigroup=e.getStructSemigroup=e.getTupleSemigroup=e.getFirstSemigroup=e.getLastSemigroup=e.getObjectSemigroup=e.semigroupVoid=e.concatAll=e.last=e.first=e.intercalate=e.tuple=e.struct=e.reverse=e.constant=e.max=e.min=void 0;var i=It,a=r(Ti),o=r(Tt),u=r(p_),s=function(b){return{concat:u.min(b)}};e.min=s;var c=function(b){return{concat:u.max(b)}};e.max=c;var f=function(b){return{concat:function(){return b}}};e.constant=f,e.reverse=o.reverse;var l=function(b){return{concat:function(y,m){var E={};for(var w in b)a.has.call(b,w)&&(E[w]=b[w].concat(y[w],m[w]));return E}}};e.struct=l;var d=function(){for(var b=[],y=0;y<arguments.length;y++)b[y]=arguments[y];return{concat:function(m,E){return b.map(function(w,O){return w.concat(m[O],E[O])})}}};e.tuple=d;var p=function(b){return function(y){return{concat:function(m,E){return y.concat(m,y.concat(b,E))}}}};e.intercalate=p;var v=function(){return{concat:i.identity}};e.first=v;var h=function(){return{concat:function(b,y){return y}}};e.last=h,e.concatAll=o.concatAll,e.semigroupVoid=(0,e.constant)(void 0);var _=function(){return{concat:function(b,y){return Object.assign({},b,y)}}};e.getObjectSemigroup=_,e.getLastSemigroup=e.last,e.getFirstSemigroup=e.first,e.getTupleSemigroup=e.tuple,e.getStructSemigroup=e.struct,e.getDualSemigroup=e.reverse,e.getJoinSemigroup=e.max,e.getMeetSemigroup=e.min,e.getIntercalateSemigroup=e.intercalate;function g(b){var y=(0,e.concatAll)(b);return function(m,E){return E===void 0?y(m):y(m)(E)}}e.fold=g,e.semigroupAll={concat:function(b,y){return b&&y}},e.semigroupAny={concat:function(b,y){return b||y}},e.getFunctionSemigroup=i.getSemigroup,e.semigroupString={concat:function(b,y){return b+y}},e.semigroupSum={concat:function(b,y){return b+y}},e.semigroupProduct={concat:function(b,y){return b*y}}})(d_);var h_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.right=e.left=e.flap=e.Functor=e.Bifunctor=e.URI=e.bimap=e.mapLeft=e.map=e.separated=void 0;var t=It,n=Ge,r=function(d,p){return{left:d,right:p}};e.separated=r;var i=function(d,p){return(0,t.pipe)(d,(0,e.map)(p))},a=function(d,p){return(0,t.pipe)(d,(0,e.mapLeft)(p))},o=function(d,p,v){return(0,t.pipe)(d,(0,e.bimap)(p,v))},u=function(d){return function(p){return(0,e.separated)((0,e.left)(p),d((0,e.right)(p)))}};e.map=u;var s=function(d){return function(p){return(0,e.separated)(d((0,e.left)(p)),(0,e.right)(p))}};e.mapLeft=s;var c=function(d,p){return function(v){return(0,e.separated)(d((0,e.left)(v)),p((0,e.right)(v)))}};e.bimap=c,e.URI="Separated",e.Bifunctor={URI:e.URI,mapLeft:a,bimap:o},e.Functor={URI:e.URI,map:i},e.flap=(0,n.flap)(e.Functor);var f=function(d){return d.left};e.left=f;var l=function(d){return d.right};e.right=l})(h_);var Mn={},sP=J&&J.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cP=J&&J.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lP=J&&J.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&sP(t,e,n);return cP(t,e),t};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.filterE=Mn.witherDefault=Mn.wiltDefault=void 0;var cv=lP(Ti);function fP(e,t){return function(n){var r=e.traverse(n);return function(i,a){return n.map(r(i,a),t.separate)}}}Mn.wiltDefault=fP;function dP(e,t){return function(n){var r=e.traverse(n);return function(i,a){return n.map(r(i,a),t.compact)}}}Mn.witherDefault=dP;function pP(e){return function(t){var n=e.wither(t);return function(r){return function(i){return n(i,function(a){return t.map(r(a),function(o){return o?cv.some(a):cv.none})})}}}}Mn.filterE=pP;var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.guard=void 0;function vP(e,t){return function(n){return n?t.of(void 0):e.zero()}}Iu.guard=vP;(function(e){var t=J&&J.__createBinding||(Object.create?function(F,U,z,Se){Se===void 0&&(Se=z);var Ve=Object.getOwnPropertyDescriptor(U,z);(!Ve||("get"in Ve?!U.__esModule:Ve.writable||Ve.configurable))&&(Ve={enumerable:!0,get:function(){return U[z]}}),Object.defineProperty(F,Se,Ve)}:function(F,U,z,Se){Se===void 0&&(Se=z),F[Se]=U[z]}),n=J&&J.__setModuleDefault||(Object.create?function(F,U){Object.defineProperty(F,"default",{enumerable:!0,value:U})}:function(F,U){F.default=U}),r=J&&J.__importStar||function(F){if(F&&F.__esModule)return F;var U={};if(F!=null)for(var z in F)z!=="default"&&Object.prototype.hasOwnProperty.call(F,z)&&t(U,F,z);return n(U,F),U};Object.defineProperty(e,"__esModule",{value:!0}),e.Witherable=e.wilt=e.wither=e.Traversable=e.sequence=e.traverse=e.Filterable=e.partitionMap=e.partition=e.filterMap=e.filter=e.Compactable=e.separate=e.compact=e.Extend=e.extend=e.Alternative=e.guard=e.Zero=e.zero=e.Alt=e.alt=e.altW=e.orElse=e.Foldable=e.reduceRight=e.foldMap=e.reduce=e.Monad=e.Chain=e.flatMap=e.Applicative=e.Apply=e.ap=e.Pointed=e.of=e.asUnit=e.as=e.Functor=e.map=e.getMonoid=e.getOrd=e.getEq=e.getShow=e.URI=e.getRight=e.getLeft=e.fromPredicate=e.some=e.none=void 0,e.getFirstMonoid=e.getApplyMonoid=e.getApplySemigroup=e.option=e.mapNullable=e.getRefinement=e.chainFirst=e.chain=e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex=e.traverseReadonlyNonEmptyArrayWithIndex=e.ApT=e.apS=e.bind=e.let=e.bindTo=e.Do=e.exists=e.elem=e.toUndefined=e.toNullable=e.chainNullableK=e.fromNullableK=e.tryCatchK=e.tryCatch=e.fromNullable=e.chainFirstEitherK=e.chainEitherK=e.fromEitherK=e.duplicate=e.tapEither=e.tap=e.flatten=e.apSecond=e.apFirst=e.flap=e.getOrElse=e.getOrElseW=e.fold=e.match=e.foldW=e.matchW=e.isNone=e.isSome=e.FromEither=e.fromEither=e.MonadThrow=e.throwError=void 0,e.getLastMonoid=void 0;var i=ci,a=ze,o=r(an),u=Le,s=It,c=Ge,f=r(Ti),l=f_,d=d_,p=h_,v=Mn,h=Iu;e.none=f.none,e.some=f.some;function _(F){return function(U){return F(U)?(0,e.some)(U):e.none}}e.fromPredicate=_;var g=function(F){return F._tag==="Right"?e.none:(0,e.some)(F.left)};e.getLeft=g;var b=function(F){return F._tag==="Left"?e.none:(0,e.some)(F.right)};e.getRight=b;var y=function(F,U){return(0,s.pipe)(F,(0,e.map)(U))},m=function(F,U){return(0,s.pipe)(F,(0,e.ap)(U))},E=function(F,U,z){return(0,s.pipe)(F,(0,e.reduce)(U,z))},w=function(F){var U=(0,e.foldMap)(F);return function(z,Se){return(0,s.pipe)(z,U(Se))}},O=function(F,U,z){return(0,s.pipe)(F,(0,e.reduceRight)(U,z))},S=function(F){var U=(0,e.traverse)(F);return function(z,Se){return(0,s.pipe)(z,U(Se))}},A=function(F,U){return(0,s.pipe)(F,(0,e.alt)(U))},C=function(F,U){return(0,s.pipe)(F,(0,e.filter)(U))},N=function(F,U){return(0,s.pipe)(F,(0,e.filterMap)(U))},L=function(F,U){return(0,s.pipe)(F,(0,e.extend)(U))},k=function(F,U){return(0,s.pipe)(F,(0,e.partition)(U))},P=function(F,U){return(0,s.pipe)(F,(0,e.partitionMap)(U))};e.URI="Option";var I=function(F){return{show:function(U){return(0,e.isNone)(U)?"none":"some(".concat(F.show(U.value),")")}}};e.getShow=I;var R=function(F){return{equals:function(U,z){return U===z||((0,e.isNone)(U)?(0,e.isNone)(z):(0,e.isNone)(z)?!1:F.equals(U.value,z.value))}}};e.getEq=R;var M=function(F){return{equals:(0,e.getEq)(F).equals,compare:function(U,z){return U===z?0:(0,e.isSome)(U)?(0,e.isSome)(z)?F.compare(U.value,z.value):1:-1}}};e.getOrd=M;var D=function(F){return{concat:function(U,z){return(0,e.isNone)(U)?z:(0,e.isNone)(z)?U:(0,e.some)(F.concat(U.value,z.value))},empty:e.none}};e.getMonoid=D;var j=function(F){return function(U){return(0,e.isNone)(U)?e.none:(0,e.some)(F(U.value))}};e.map=j,e.Functor={URI:e.URI,map:y},e.as=(0,s.dual)(2,(0,c.as)(e.Functor)),e.asUnit=(0,c.asUnit)(e.Functor),e.of=e.some,e.Pointed={URI:e.URI,of:e.of};var x=function(F){return function(U){return(0,e.isNone)(U)||(0,e.isNone)(F)?e.none:(0,e.some)(U.value(F.value))}};e.ap=x,e.Apply={URI:e.URI,map:y,ap:m},e.Applicative={URI:e.URI,map:y,ap:m,of:e.of},e.flatMap=(0,s.dual)(2,function(F,U){return(0,e.isNone)(F)?e.none:U(F.value)}),e.Chain={URI:e.URI,map:y,ap:m,chain:e.flatMap},e.Monad={URI:e.URI,map:y,ap:m,of:e.of,chain:e.flatMap};var W=function(F,U){return function(z){return(0,e.isNone)(z)?F:U(F,z.value)}};e.reduce=W;var K=function(F){return function(U){return function(z){return(0,e.isNone)(z)?F.empty:U(z.value)}}};e.foldMap=K;var B=function(F,U){return function(z){return(0,e.isNone)(z)?F:U(z.value,F)}};e.reduceRight=B,e.Foldable={URI:e.URI,reduce:E,foldMap:w,reduceRight:O},e.orElse=(0,s.dual)(2,function(F,U){return(0,e.isNone)(F)?U():F}),e.altW=e.orElse,e.alt=e.orElse,e.Alt={URI:e.URI,map:y,alt:A};var $=function(){return e.none};e.zero=$,e.Zero={URI:e.URI,zero:e.zero},e.guard=(0,h.guard)(e.Zero,e.Pointed),e.Alternative={URI:e.URI,map:y,ap:m,of:e.of,alt:A,zero:e.zero};var H=function(F){return function(U){return(0,e.isNone)(U)?e.none:(0,e.some)(F(U))}};e.extend=H,e.Extend={URI:e.URI,map:y,extend:L},e.compact=(0,e.flatMap)(s.identity);var Z=(0,p.separated)(e.none,e.none),ae=function(F){return(0,e.isNone)(F)?Z:(0,p.separated)((0,e.getLeft)(F.value),(0,e.getRight)(F.value))};e.separate=ae,e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate};var te=function(F){return function(U){return(0,e.isNone)(U)?e.none:F(U.value)?U:e.none}};e.filter=te;var Q=function(F){return function(U){return(0,e.isNone)(U)?e.none:F(U.value)}};e.filterMap=Q;var ne=function(F){return function(U){return(0,p.separated)(C(U,(0,l.not)(F)),C(U,F))}};e.partition=ne;var re=function(F){return(0,s.flow)((0,e.map)(F),e.separate)};e.partitionMap=re,e.Filterable={URI:e.URI,map:y,compact:e.compact,separate:e.separate,filter:C,filterMap:N,partition:k,partitionMap:P};var se=function(F){return function(U){return function(z){return(0,e.isNone)(z)?F.of(e.none):F.map(U(z.value),e.some)}}};e.traverse=se;var Rt=function(F){return function(U){return(0,e.isNone)(U)?F.of(e.none):F.map(U.value,e.some)}};e.sequence=Rt,e.Traversable={URI:e.URI,map:y,reduce:E,foldMap:w,reduceRight:O,traverse:S,sequence:e.sequence};var we=(0,v.witherDefault)(e.Traversable,e.Compactable),Vt=(0,v.wiltDefault)(e.Traversable,e.Compactable),wr=function(F){var U=we(F);return function(z){return function(Se){return U(Se,z)}}};e.wither=wr;var Or=function(F){var U=Vt(F);return function(z){return function(Se){return U(Se,z)}}};e.wilt=Or,e.Witherable={URI:e.URI,map:y,reduce:E,foldMap:w,reduceRight:O,traverse:S,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:C,filterMap:N,partition:k,partitionMap:P,wither:we,wilt:Vt};var Xn=function(){return e.none};e.throwError=Xn,e.MonadThrow={URI:e.URI,map:y,ap:m,of:e.of,chain:e.flatMap,throwError:e.throwError},e.fromEither=e.getRight,e.FromEither={URI:e.URI,fromEither:e.fromEither},e.isSome=f.isSome;var Mi=function(F){return F._tag==="None"};e.isNone=Mi;var it=function(F,U){return function(z){return(0,e.isNone)(z)?F():U(z.value)}};e.matchW=it,e.foldW=e.matchW,e.match=e.matchW,e.fold=e.match;var Ha=function(F){return function(U){return(0,e.isNone)(U)?F():U.value}};e.getOrElseW=Ha,e.getOrElse=e.getOrElseW,e.flap=(0,c.flap)(e.Functor),e.apFirst=(0,a.apFirst)(e.Apply),e.apSecond=(0,a.apSecond)(e.Apply),e.flatten=e.compact,e.tap=(0,s.dual)(2,o.tap(e.Chain)),e.tapEither=(0,s.dual)(2,(0,u.tapEither)(e.FromEither,e.Chain)),e.duplicate=(0,e.extend)(s.identity),e.fromEitherK=(0,u.fromEitherK)(e.FromEither),e.chainEitherK=(0,u.chainEitherK)(e.FromEither,e.Chain),e.chainFirstEitherK=e.tapEither;var qu=function(F){return F==null?e.none:(0,e.some)(F)};e.fromNullable=qu;var Yu=function(F){try{return(0,e.some)(F())}catch{return e.none}};e.tryCatch=Yu;var Ka=function(F){return function(){for(var U=[],z=0;z<arguments.length;z++)U[z]=arguments[z];return(0,e.tryCatch)(function(){return F.apply(void 0,U)})}};e.tryCatchK=Ka;var mn=function(F){return(0,s.flow)(F,e.fromNullable)};e.fromNullableK=mn;var Tr=function(F){return function(U){return(0,e.isNone)(U)?e.none:(0,e.fromNullable)(F(U.value))}};e.chainNullableK=Tr,e.toNullable=(0,e.match)(s.constNull,s.identity),e.toUndefined=(0,e.match)(s.constUndefined,s.identity);function ki(F){return function(U,z){if(z===void 0){var Se=ki(F);return function(Ve){return Se(U,Ve)}}return(0,e.isNone)(z)?!1:F.equals(U,z.value)}}e.elem=ki;var xt=function(F){return function(U){return(0,e.isNone)(U)?!1:F(U.value)}};e.exists=xt,e.Do=(0,e.of)(f.emptyRecord),e.bindTo=(0,c.bindTo)(e.Functor);var Vu=(0,c.let)(e.Functor);e.let=Vu,e.bind=o.bind(e.Chain),e.apS=(0,a.apS)(e.Apply),e.ApT=(0,e.of)(f.emptyReadonlyArray);var Xu=function(F){return function(U){var z=F(0,f.head(U));if((0,e.isNone)(z))return e.none;for(var Se=[z.value],Ve=1;Ve<U.length;Ve++){var hd=F(Ve,U[Ve]);if((0,e.isNone)(hd))return e.none;Se.push(hd.value)}return(0,e.some)(Se)}};e.traverseReadonlyNonEmptyArrayWithIndex=Xu;var Di=function(F){var U=(0,e.traverseReadonlyNonEmptyArrayWithIndex)(F);return function(z){return f.isNonEmpty(z)?U(z):e.ApT}};e.traverseReadonlyArrayWithIndex=Di,e.traverseArrayWithIndex=e.traverseReadonlyArrayWithIndex;var gn=function(F){return(0,e.traverseReadonlyArrayWithIndex)(function(U,z){return F(z)})};e.traverseArray=gn,e.sequenceArray=(0,e.traverseArray)(s.identity),e.chain=e.flatMap,e.chainFirst=e.tap;function Ga(F){return function(U){return(0,e.isSome)(F(U))}}e.getRefinement=Ga,e.mapNullable=e.chainNullableK,e.option={URI:e.URI,map:y,of:e.of,ap:m,chain:e.flatMap,reduce:E,foldMap:w,reduceRight:O,traverse:S,sequence:e.sequence,zero:e.zero,alt:A,extend:L,compact:e.compact,separate:e.separate,filter:C,filterMap:N,partition:k,partitionMap:P,wither:we,wilt:Vt,throwError:e.throwError},e.getApplySemigroup=(0,a.getApplySemigroup)(e.Apply),e.getApplyMonoid=(0,i.getApplicativeMonoid)(e.Applicative);var Qn=function(){return(0,e.getMonoid)((0,d.first)())};e.getFirstMonoid=Qn;var Fi=function(){return(0,e.getMonoid)((0,d.last)())};e.getLastMonoid=Fi})(ER);var hP=Object.defineProperty,mP=(e,t,n)=>t in e?hP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ss=(e,t,n)=>(mP(e,typeof t!="symbol"?t+"":t,n),n);let gP=class{constructor(){Ss(this,"current",this.detect()),Ss(this,"handoffState","pending"),Ss(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},on=new gP,Ue=(e,t)=>{on.isServer?fe(e,t):_r(e,t)};function un(e){let t=ie(e);return Ue(()=>{t.current=e},[e]),t}function Ru(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function $t(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ru(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=$t();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ai(){let[e]=We($t);return fe(()=>()=>e.dispose(),[e]),e}let ee=function(e){let t=un(e);return Y.useCallback((...n)=>t.current(...n),[t])};function yP(){let e=typeof document>"u";return"useSyncExternalStore"in ni?(t=>t.useSyncExternalStore)(ni)(()=>()=>{},()=>!1,()=>!e):!1}function Ci(){let e=yP(),[t,n]=We(on.isHandoffComplete);return t&&on.isHandoffComplete===!1&&n(!1),fe(()=>{t!==!0&&n(!0)},[t]),fe(()=>on.handoff(),[]),e?!1:t}var lv;let _t=(lv=Y.useId)!=null?lv:function(){let e=Ci(),[t,n]=Y.useState(e?()=>on.nextId():null);return Ue(()=>{t===null&&n(on.nextId())},[t]),t!=null?""+t:void 0};function Pe(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Pe),r}function Ma(e){return on.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Yc=["[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 Zt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Zt||{}),m_=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(m_||{}),bP=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bP||{});function g_(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Yc)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Of=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Of||{});function Tf(e,t=0){var n;return e===((n=Ma(e))==null?void 0:n.body)?!1:Pe(t,{0(){return e.matches(Yc)},1(){let r=e;for(;r!==null;){if(r.matches(Yc))return!0;r=r.parentElement}return!1}})}function y_(e){let t=Ma(e);$t().nextFrame(()=>{t&&!Tf(t.activeElement,0)&&kn(e)})}var _P=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_P||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function kn(e){e==null||e.focus({preventScroll:!0})}let EP=["textarea","input"].join(",");function SP(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,EP))!=null?n:!1}function b_(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wP(e,t){return ca(g_(),t,{relativeTo:e})}function ca(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?b_(e):e:g_(e);i.length>0&&o.length>1&&(o=o.filter(p=>!i.includes(p))),r=r??a.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,l=o.length,d;do{if(f>=l||f+l<=0)return 0;let p=s+f;if(t&16)p=(p+l)%l;else{if(p<0)return 3;if(p>=l)return 1}d=o[p],d==null||d.focus(c),f+=u}while(d!==a.activeElement);return t&6&&SP(d)&&d.select(),2}function Xa(e,t,n){let r=un(t);fe(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function __(e,t,n){let r=un(t);fe(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function E_(e,t,n=!0){let r=ie(!1);fe(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,u){if(!r.current||o.defaultPrevented)return;let s=u(o);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let c=function f(l){return typeof l=="function"?f(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let f of c){if(f===null)continue;let l=f instanceof HTMLElement?f:f.current;if(l!=null&&l.contains(s)||o.composed&&o.composedPath().includes(l))return}return!Tf(s,Of.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let a=ie(null);Xa("pointerdown",o=>{var u,s;r.current&&(a.current=((s=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:s[0])||o.target)},!0),Xa("mousedown",o=>{var u,s;r.current&&(a.current=((s=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:s[0])||o.target)},!0),Xa("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),Xa("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),__("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function fv(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Af(e,t){let[n,r]=We(()=>fv(e));return Ue(()=>{r(fv(e))},[e.type,e.as]),Ue(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let S_=Symbol();function w_(e,t=!0){return Object.assign(e,{[S_]:t})}function De(...e){let t=ie(e);fe(()=>{t.current=e},[e]);let n=ee(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[S_]))?void 0:n}function OP({container:e,accept:t,walk:n,enabled:r=!0}){let i=ie(t),a=ie(n);fe(()=>{i.current=t,a.current=n},[t,n]),Ue(()=>{if(!e||!r)return;let o=Ma(e);if(!o)return;let u=i.current,s=a.current,c=Object.assign(l=>u(l),{acceptNode:u}),f=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;f.nextNode();)s(f.currentNode)},[e,r,i,a])}function TP(e){throw new Error("Unexpected object: "+e)}var kt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(kt||{});function AP(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((u,s,c)=>i!==-1&&c.length-s-1>=i?!1:!t.resolveDisabled(u));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,u)=>u<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(u=>!t.resolveDisabled(u));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:TP(e)}})();return a===-1?r:a}function Qo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Kn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Kn||{}),Rn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Rn||{});function Ce({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let u=O_(t,e);if(a)return Qa(u,n,r,o);let s=i??0;if(s&2){let{static:c=!1,...f}=u;if(c)return Qa(f,n,r,o)}if(s&1){let{unmount:c=!0,...f}=u;return Pe(c?0:1,{0(){return null},1(){return Qa({...f,hidden:!0,style:{display:"none"}},n,r,o)}})}return Qa(u,n,r,o)}function Qa(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...u}=ws(e,["unmount","static"]),s=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let f={};if(t){let l=!1,d=[];for(let[p,v]of Object.entries(t))typeof v=="boolean"&&(l=!0),v===!0&&d.push(p);l&&(f["data-headlessui-state"]=d.join(" "))}if(i===Ae&&Object.keys(Vc(u)).length>0){if(!bi(c)||Array.isArray(c)&&c.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(v=>` - ${v}`).join(`
22
- `),"","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(v=>` - ${v}`).join(`
23
- `)].join(`
24
- `));let l=c.props,d=typeof(l==null?void 0:l.className)=="function"?(...v)=>Qo(l==null?void 0:l.className(...v),u.className):Qo(l==null?void 0:l.className,u.className),p=d?{className:d}:{};return Yl(c,Object.assign({},O_(c.props,Vc(ws(u,["ref"]))),f,s,CP(c.ref,s.ref),p))}return G(i,Object.assign({},ws(u,["ref"]),i!==Ae&&s,i!==Ae&&f),c)}function CP(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function O_(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let u of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;u(i,...a)}}});return t}function Ie(e){var t;return Object.assign(he(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Vc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ws(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Pu(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&IP(n)?!1:r}function IP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function RP(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let PP="div";var wa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wa||{});function NP(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Ce({ourProps:i,theirProps:r,slot:{},defaultTag:PP,name:"Hidden"})}let Jo=Ie(NP),Cf=xe(null);Cf.displayName="OpenClosedContext";var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function ka(){return ke(Cf)}function If({value:e,children:t}){return Y.createElement(Cf.Provider,{value:e},t)}var me=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(me||{});function LP(e,t,n){let[r,i]=We(n),a=e!==void 0,o=ie(a),u=ie(!1),s=ie(!1);return a&&!o.current&&!u.current?(u.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!s.current&&(s.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,ee(c=>(a||i(c),t==null?void 0:t(c)))]}function Rf(e,t){let n=ie([]),r=ee(e);fe(()=>{let i=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let u=r(t,i);return n.current=t,u}},[r,...t])}function dv(e){return[e.screenX,e.screenY]}function MP(){let e=ie([-1,-1]);return{wasMoved(t){let n=dv(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=dv(t)}}}function kP(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ii(...e){return ce(()=>Ma(...e),[...e])}var Xi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Xi||{});function DP(){let e=ie(0);return __("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Da(){let e=ie(!1);return Ue(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function T_(e,t,n,r){let i=un(n);fe(()=>{e=e??window;function a(o){i.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function FP(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function A_(e){let t=ee(e),n=ie(!1);fe(()=>(n.current=!1,()=>{n.current=!0,Ru(()=>{n.current&&t()})}),[t])}function C_(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let UP="div";var I_=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(I_||{});function jP(e,t){let n=ie(null),r=De(n,t),{initialFocus:i,containers:a,features:o=30,...u}=e;Ci()||(o=1);let s=Ii(n);BP({ownerDocument:s},!!(o&16));let c=HP({ownerDocument:s,container:n,initialFocus:i},!!(o&2));KP({ownerDocument:s,container:n,containers:a,previousActiveElement:c},!!(o&8));let f=DP(),l=ee(h=>{let _=n.current;_&&(g=>g())(()=>{Pe(f.current,{[Xi.Forwards]:()=>{ca(_,Zt.First,{skipElements:[h.relatedTarget]})},[Xi.Backwards]:()=>{ca(_,Zt.Last,{skipElements:[h.relatedTarget]})}})})}),d=Ai(),p=ie(!1),v={ref:r,onKeyDown(h){h.key=="Tab"&&(p.current=!0,d.requestAnimationFrame(()=>{p.current=!1}))},onBlur(h){let _=C_(a);n.current instanceof HTMLElement&&_.add(n.current);let g=h.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(R_(_,g)||(p.current?ca(n.current,Pe(f.current,{[Xi.Forwards]:()=>Zt.Next,[Xi.Backwards]:()=>Zt.Previous})|Zt.WrapAround,{relativeTo:h.target}):h.target instanceof HTMLElement&&kn(h.target)))}};return Y.createElement(Y.Fragment,null,!!(o&4)&&Y.createElement(Jo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:wa.Focusable}),Ce({ourProps:v,theirProps:u,defaultTag:UP,name:"FocusTrap"}),!!(o&4)&&Y.createElement(Jo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:wa.Focusable}))}let $P=Ie(jP),Wi=Object.assign($P,{features:I_}),Cn=[];FP(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Cn[0]!==t.target&&(Cn.unshift(t.target),Cn=Cn.filter(n=>n!=null&&n.isConnected),Cn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xP(e=!0){let t=ie(Cn.slice());return Rf(([n],[r])=>{r===!0&&n===!1&&Ru(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Cn.slice())},[e,Cn,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function BP({ownerDocument:e},t){let n=xP(t);Rf(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&kn(n())},[t]),A_(()=>{t&&kn(n())})}function HP({ownerDocument:e,container:t,initialFocus:n},r){let i=ie(null),a=Da();return Rf(()=>{if(!r)return;let o=t.current;o&&Ru(()=>{if(!a.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){i.current=u;return}}else if(o.contains(u)){i.current=u;return}n!=null&&n.current?kn(n.current):ca(o,Zt.First)===m_.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=e==null?void 0:e.activeElement})},[r]),i}function KP({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let a=Da();T_(e==null?void 0:e.defaultView,"focus",o=>{if(!i||!a.current)return;let u=C_(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let c=o.target;c&&c instanceof HTMLElement?R_(u,c)?(r.current=c,kn(c)):(o.preventDefault(),o.stopPropagation(),kn(s)):kn(r.current)},!0)}function R_(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let P_=xe(!1);function GP(){return ke(P_)}function Xc(e){return Y.createElement(P_.Provider,{value:e.force},e.children)}function WP(e){let t=GP(),n=ke(N_),r=Ii(e),[i,a]=We(()=>{if(!t&&n!==null||on.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return fe(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),fe(()=>{t||n!==null&&a(n.current)},[n,a,t]),i}let zP=Ae;function qP(e,t){let n=e,r=ie(null),i=De(w_(f=>{r.current=f}),t),a=Ii(r),o=WP(r),[u]=We(()=>{var f;return on.isServer?null:(f=a==null?void 0:a.createElement("div"))!=null?f:null}),s=ke(Qc),c=Ci();return Ue(()=>{!o||!u||o.contains(u)||(u.setAttribute("data-headlessui-portal",""),o.appendChild(u))},[o,u]),Ue(()=>{if(u&&s)return s.register(u)},[s,u]),A_(()=>{var f;!o||!u||(u instanceof Node&&o.contains(u)&&o.removeChild(u),o.childNodes.length<=0&&((f=o.parentElement)==null||f.removeChild(o)))}),c?!o||!u?null:zl(Ce({ourProps:{ref:i},theirProps:n,defaultTag:zP,name:"Portal"}),u):null}let YP=Ae,N_=xe(null);function VP(e,t){let{target:n,...r}=e,i={ref:De(t)};return Y.createElement(N_.Provider,{value:n},Ce({ourProps:i,theirProps:r,defaultTag:YP,name:"Popover.Group"}))}let Qc=xe(null);function XP(){let e=ke(Qc),t=ie([]),n=ee(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=ee(a=>{let o=t.current.indexOf(a);o!==-1&&t.current.splice(o,1),e&&e.unregister(a)}),i=ce(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ce(()=>function({children:a}){return Y.createElement(Qc.Provider,{value:i},a)},[i])]}let QP=Ie(qP),JP=Ie(VP),Jc=Object.assign(QP,{Group:JP}),L_=xe(null);function M_(){let e=ke(L_);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,M_),t}return e}function k_(){let[e,t]=We([]);return[e.length>0?e.join(" "):void 0,ce(()=>function(n){let r=ee(a=>(t(o=>[...o,a]),()=>t(o=>{let u=o.slice(),s=u.indexOf(a);return s!==-1&&u.splice(s,1),u}))),i=ce(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return Y.createElement(L_.Provider,{value:i},n.children)},[t])]}let ZP="p";function eN(e,t){let n=_t(),{id:r=`headlessui-description-${n}`,...i}=e,a=M_(),o=De(t);Ue(()=>a.register(r),[r,a.register]);let u={ref:o,...a.props,id:r};return Ce({ourProps:u,theirProps:i,slot:a.slot||{},defaultTag:ZP,name:a.name||"Description"})}let tN=Ie(eN),D_=Object.assign(tN,{}),Pf=xe(()=>{});Pf.displayName="StackContext";var Zc=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Zc||{});function nN(){return ke(Pf)}function rN({children:e,onUpdate:t,type:n,element:r,enabled:i}){let a=nN(),o=ee((...u)=>{t==null||t(...u),a(...u)});return Ue(()=>{let u=i===void 0||i===!0;return u&&o(0,n,r),()=>{u&&o(1,n,r)}},[o,n,r,i]),Y.createElement(Pf.Provider,{value:o},e)}function iN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const aN=typeof Object.is=="function"?Object.is:iN,{useState:oN,useEffect:uN,useLayoutEffect:sN,useDebugValue:cN}=ni;function lN(e,t,n){const r=t(),[{inst:i},a]=oN({inst:{value:r,getSnapshot:t}});return sN(()=>{i.value=r,i.getSnapshot=t,Os(i)&&a({inst:i})},[e,r,t]),uN(()=>(Os(i)&&a({inst:i}),e(()=>{Os(i)&&a({inst:i})})),[e]),cN(r),r}function Os(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!aN(n,r)}catch{return!0}}function fN(e,t,n){return t()}const dN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pN=!dN,vN=pN?fN:lN,hN="useSyncExternalStore"in ni?(e=>e.useSyncExternalStore)(ni):vN;function mN(e){return hN(e.subscribe,e.getSnapshot,e.getSnapshot)}function gN(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(u=>u()))}}}function yN(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,a=e-i;n.style(r,"paddingRight",`${a}px`)}}}function bN(){if(!kP())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function i(a){return r.containers.flatMap(o=>o()).some(o=>o.contains(a))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let o=$t();o.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>o.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let u=o.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),c=t.querySelector(s);c&&!i(c)&&(a=c)}catch{}},!0),n.addEventListener(t,"touchmove",o=>{o.target instanceof HTMLElement&&!i(o.target)&&o.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}}function _N(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function EN(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let ar=gN(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:$t(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:EN(n)},i=[bN(),yN(),_N()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});ar.subscribe(()=>{let e=ar.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&ar.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&ar.dispatch("TEARDOWN",n)}});function SN(e,t,n){let r=mN(ar),i=e?r.get(e):void 0,a=i?i.count>0:!1;return Ue(()=>{if(!(!e||!t))return ar.dispatch("PUSH",e,n),()=>ar.dispatch("POP",e,n)},[t,e]),a}let Ts=new Map,zi=new Map;function pv(e,t=!0){Ue(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function i(){var o;if(!r)return;let u=(o=zi.get(r))!=null?o:1;if(u===1?zi.delete(r):zi.set(r,u-1),u!==1)return;let s=Ts.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,Ts.delete(r))}let a=(n=zi.get(r))!=null?n:0;return zi.set(r,a+1),a!==0||(Ts.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),i},[e,t])}function wN({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let i=ie((r=n==null?void 0:n.current)!=null?r:null),a=Ii(i),o=ee(()=>{var u;let s=[];for(let c of e)c!==null&&(c instanceof HTMLElement?s.push(c):"current"in c&&c.current instanceof HTMLElement&&s.push(c.current));if(t!=null&&t.current)for(let c of t.current)s.push(c);for(let c of(u=a==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?u:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(i.current)||s.some(f=>c.contains(f))||s.push(c));return s});return{resolveContainers:o,contains:ee(u=>o().some(s=>s.contains(u))),mainTreeNodeRef:i,MainTreeNode:ce(()=>function(){return n!=null?null:Y.createElement(Jo,{features:wa.Hidden,ref:i})},[i,n])}}var ON=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ON||{}),TN=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(TN||{});let AN={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Zo=xe(null);Zo.displayName="DialogContext";function Fa(e){let t=ke(Zo);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Fa),n}return t}function CN(e,t,n=()=>[document.body]){SN(e,t,r=>{var i;return{containers:[...(i=r.containers)!=null?i:[],n]}})}function IN(e,t){return Pe(t.type,AN,e,t)}let RN="div",PN=Kn.RenderStrategy|Kn.Static;function NN(e,t){var n;let r=_t(),{id:i=`headlessui-dialog-${r}`,open:a,onClose:o,initialFocus:u,__demoMode:s=!1,...c}=e,[f,l]=We(0),d=ka();a===void 0&&d!==null&&(a=(d&Re.Open)===Re.Open);let p=ie(null),v=De(p,t),h=Ii(p),_=e.hasOwnProperty("open")||d!==null,g=e.hasOwnProperty("onClose");if(!_&&!g)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!_)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!g)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof a!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let b=a?0:1,[y,m]=br(IN,{titleId:null,descriptionId:null,panelRef:ga()}),E=ee(()=>o(!1)),w=ee(Q=>m({type:0,id:Q})),O=Ci()?s?!1:b===0:!1,S=f>1,A=ke(Zo)!==null,[C,N]=XP(),{resolveContainers:L,mainTreeNodeRef:k,MainTreeNode:P}=wN({portals:C,defaultContainers:[(n=y.panelRef.current)!=null?n:p.current]}),I=S?"parent":"leaf",R=d!==null?(d&Re.Closing)===Re.Closing:!1,M=(()=>A||R?!1:O)(),D=In(()=>{var Q,ne;return(ne=Array.from((Q=h==null?void 0:h.querySelectorAll("body > *"))!=null?Q:[]).find(re=>re.id==="headlessui-portal-root"?!1:re.contains(k.current)&&re instanceof HTMLElement))!=null?ne:null},[k]);pv(D,M);let j=(()=>S?!0:O)(),x=In(()=>{var Q,ne;return(ne=Array.from((Q=h==null?void 0:h.querySelectorAll("[data-headlessui-portal]"))!=null?Q:[]).find(re=>re.contains(k.current)&&re instanceof HTMLElement))!=null?ne:null},[k]);pv(x,j);let W=(()=>!(!O||S))();E_(L,E,W);let K=(()=>!(S||b!==0))();T_(h==null?void 0:h.defaultView,"keydown",Q=>{K&&(Q.defaultPrevented||Q.key===me.Escape&&(Q.preventDefault(),Q.stopPropagation(),E()))});let B=(()=>!(R||b!==0||A))();CN(h,B,L),fe(()=>{if(b!==0||!p.current)return;let Q=new ResizeObserver(ne=>{for(let re of ne){let se=re.target.getBoundingClientRect();se.x===0&&se.y===0&&se.width===0&&se.height===0&&E()}});return Q.observe(p.current),()=>Q.disconnect()},[b,p,E]);let[$,H]=k_(),Z=ce(()=>[{dialogState:b,close:E,setTitleId:w},y],[b,y,E,w]),ae=ce(()=>({open:b===0}),[b]),te={ref:v,id:i,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":$};return Y.createElement(rN,{type:"Dialog",enabled:b===0,element:p,onUpdate:ee((Q,ne)=>{ne==="Dialog"&&Pe(Q,{[Zc.Add]:()=>l(re=>re+1),[Zc.Remove]:()=>l(re=>re-1)})})},Y.createElement(Xc,{force:!0},Y.createElement(Jc,null,Y.createElement(Zo.Provider,{value:Z},Y.createElement(Jc.Group,{target:p},Y.createElement(Xc,{force:!1},Y.createElement(H,{slot:ae,name:"Dialog.Description"},Y.createElement(Wi,{initialFocus:u,containers:L,features:O?Pe(I,{parent:Wi.features.RestoreFocus,leaf:Wi.features.All&~Wi.features.FocusLock}):Wi.features.None},Y.createElement(N,null,Ce({ourProps:te,theirProps:c,slot:ae,defaultTag:RN,features:PN,visible:b===0,name:"Dialog"}))))))))),Y.createElement(P,null))}let LN="div";function MN(e,t){let n=_t(),{id:r=`headlessui-dialog-overlay-${n}`,...i}=e,[{dialogState:a,close:o}]=Fa("Dialog.Overlay"),u=De(t),s=ee(f=>{if(f.target===f.currentTarget){if(Pu(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),o()}}),c=ce(()=>({open:a===0}),[a]);return Ce({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:i,slot:c,defaultTag:LN,name:"Dialog.Overlay"})}let kN="div";function DN(e,t){let n=_t(),{id:r=`headlessui-dialog-backdrop-${n}`,...i}=e,[{dialogState:a},o]=Fa("Dialog.Backdrop"),u=De(t);fe(()=>{if(o.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[o.panelRef]);let s=ce(()=>({open:a===0}),[a]);return Y.createElement(Xc,{force:!0},Y.createElement(Jc,null,Ce({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:i,slot:s,defaultTag:kN,name:"Dialog.Backdrop"})))}let FN="div";function UN(e,t){let n=_t(),{id:r=`headlessui-dialog-panel-${n}`,...i}=e,[{dialogState:a},o]=Fa("Dialog.Panel"),u=De(t,o.panelRef),s=ce(()=>({open:a===0}),[a]),c=ee(f=>{f.stopPropagation()});return Ce({ourProps:{ref:u,id:r,onClick:c},theirProps:i,slot:s,defaultTag:FN,name:"Dialog.Panel"})}let jN="h2";function $N(e,t){let n=_t(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:a,setTitleId:o}]=Fa("Dialog.Title"),u=De(t);fe(()=>(o(r),()=>o(null)),[r,o]);let s=ce(()=>({open:a===0}),[a]);return Ce({ourProps:{ref:u,id:r},theirProps:i,slot:s,defaultTag:jN,name:"Dialog.Title"})}let xN=Ie(NN),BN=Ie(DN),HN=Ie(UN),KN=Ie(MN),GN=Ie($N),MU=Object.assign(xN,{Backdrop:BN,Panel:HN,Overlay:KN,Title:GN,Description:D_});var vv;let WN=(vv=Y.startTransition)!=null?vv:function(e){e()};var zN=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zN||{}),qN=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(qN||{});let YN={0:e=>({...e,disclosureState:Pe(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},4(e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},5(e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Nf=xe(null);Nf.displayName="DisclosureContext";function Lf(e){let t=ke(Nf);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Lf),n}return t}let Mf=xe(null);Mf.displayName="DisclosureAPIContext";function F_(e){let t=ke(Mf);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,F_),n}return t}let kf=xe(null);kf.displayName="DisclosurePanelContext";function VN(){return ke(kf)}function XN(e,t){return Pe(t.type,YN,e,t)}let QN=Ae;function JN(e,t){let{defaultOpen:n=!1,...r}=e,i=ie(null),a=De(t,w_(_=>{i.current=_},e.as===void 0||e.as===Ae)),o=ie(null),u=ie(null),s=br(XN,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:u,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:f},l]=s,d=ee(_=>{l({type:1});let g=Ma(i);if(!g||!f)return;let b=(()=>_?_ instanceof HTMLElement?_:_.current instanceof HTMLElement?_.current:g.getElementById(f):g.getElementById(f))();b==null||b.focus()}),p=ce(()=>({close:d}),[d]),v=ce(()=>({open:c===0,close:d}),[c,d]),h={ref:a};return Y.createElement(Nf.Provider,{value:s},Y.createElement(Mf.Provider,{value:p},Y.createElement(If,{value:Pe(c,{0:Re.Open,1:Re.Closed})},Ce({ourProps:h,theirProps:r,slot:v,defaultTag:QN,name:"Disclosure"}))))}let ZN="button";function eL(e,t){let n=_t(),{id:r=`headlessui-disclosure-button-${n}`,...i}=e,[a,o]=Lf("Disclosure.Button"),u=VN(),s=u===null?!1:u===a.panelId,c=ie(null),f=De(c,t,s?null:a.buttonRef);fe(()=>{if(!s)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}},[r,o,s]);let l=ee(g=>{var b;if(s){if(a.disclosureState===1)return;switch(g.key){case me.Space:case me.Enter:g.preventDefault(),g.stopPropagation(),o({type:0}),(b=a.buttonRef.current)==null||b.focus();break}}else switch(g.key){case me.Space:case me.Enter:g.preventDefault(),g.stopPropagation(),o({type:0});break}}),d=ee(g=>{switch(g.key){case me.Space:g.preventDefault();break}}),p=ee(g=>{var b;Pu(g.currentTarget)||e.disabled||(s?(o({type:0}),(b=a.buttonRef.current)==null||b.focus()):o({type:0}))}),v=ce(()=>({open:a.disclosureState===0}),[a]),h=Af(e,c),_=s?{ref:f,type:h,onKeyDown:l,onClick:p}:{ref:f,id:r,type:h,"aria-expanded":a.disclosureState===0,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:l,onKeyUp:d,onClick:p};return Ce({ourProps:_,theirProps:i,slot:v,defaultTag:ZN,name:"Disclosure.Button"})}let tL="div",nL=Kn.RenderStrategy|Kn.Static;function rL(e,t){let n=_t(),{id:r=`headlessui-disclosure-panel-${n}`,...i}=e,[a,o]=Lf("Disclosure.Panel"),{close:u}=F_("Disclosure.Panel"),s=De(t,a.panelRef,p=>{WN(()=>o({type:p?4:5}))});fe(()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})}),[r,o]);let c=ka(),f=(()=>c!==null?(c&Re.Open)===Re.Open:a.disclosureState===0)(),l=ce(()=>({open:a.disclosureState===0,close:u}),[a,u]),d={ref:s,id:r};return Y.createElement(kf.Provider,{value:a.panelId},Ce({ourProps:d,theirProps:i,slot:l,defaultTag:tL,features:nL,visible:f,name:"Disclosure.Panel"}))}let iL=Ie(JN),aL=Ie(eL),oL=Ie(rL),kU=Object.assign(iL,{Button:aL,Panel:oL}),hv=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function mv(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let u of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))u.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return hv.test(o)&&(o=o.replace(hv,"")),o}function uL(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():mv(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return mv(e).trim()}function sL(e){let t=ie(""),n=ie("");return ee(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=uL(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var cL=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(cL||{}),lL=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(lL||{}),fL=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(fL||{});function As(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=b_(t(e.items.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}let dL={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n;let r=As(e),i=AP(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var u;return((u=o.dataRef.current.textValue)==null?void 0:u.startsWith(r))&&!o.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=As(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=As(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}}},Df=xe(null);Df.displayName="MenuContext";function Nu(e){let t=ke(Df);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Nu),n}return t}function pL(e,t){return Pe(t.type,dL,e,t)}let vL=Ae;function hL(e,t){let{__demoMode:n=!1,...r}=e,i=br(pL,{__demoMode:n,menuState:n?0:1,buttonRef:ga(),itemsRef:ga(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:o,buttonRef:u},s]=i,c=De(t);E_([u,o],(p,v)=>{var h;s({type:1}),Tf(v,Of.Loose)||(p.preventDefault(),(h=u.current)==null||h.focus())},a===0);let f=ee(()=>{s({type:1})}),l=ce(()=>({open:a===0,close:f}),[a,f]),d={ref:c};return Y.createElement(Df.Provider,{value:i},Y.createElement(If,{value:Pe(a,{0:Re.Open,1:Re.Closed})},Ce({ourProps:d,theirProps:r,slot:l,defaultTag:vL,name:"Menu"})))}let mL="button";function gL(e,t){var n;let r=_t(),{id:i=`headlessui-menu-button-${r}`,...a}=e,[o,u]=Nu("Menu.Button"),s=De(o.buttonRef,t),c=Ai(),f=ee(h=>{switch(h.key){case me.Space:case me.Enter:case me.ArrowDown:h.preventDefault(),h.stopPropagation(),u({type:0}),c.nextFrame(()=>u({type:2,focus:kt.First}));break;case me.ArrowUp:h.preventDefault(),h.stopPropagation(),u({type:0}),c.nextFrame(()=>u({type:2,focus:kt.Last}));break}}),l=ee(h=>{switch(h.key){case me.Space:h.preventDefault();break}}),d=ee(h=>{if(Pu(h.currentTarget))return h.preventDefault();e.disabled||(o.menuState===0?(u({type:1}),c.nextFrame(()=>{var _;return(_=o.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})})):(h.preventDefault(),u({type:0})))}),p=ce(()=>({open:o.menuState===0}),[o]),v={ref:s,id:i,type:Af(e,o.buttonRef),"aria-haspopup":"menu","aria-controls":(n=o.itemsRef.current)==null?void 0:n.id,"aria-expanded":o.menuState===0,onKeyDown:f,onKeyUp:l,onClick:d};return Ce({ourProps:v,theirProps:a,slot:p,defaultTag:mL,name:"Menu.Button"})}let yL="div",bL=Kn.RenderStrategy|Kn.Static;function _L(e,t){var n,r;let i=_t(),{id:a=`headlessui-menu-items-${i}`,...o}=e,[u,s]=Nu("Menu.Items"),c=De(u.itemsRef,t),f=Ii(u.itemsRef),l=Ai(),d=ka(),p=(()=>d!==null?(d&Re.Open)===Re.Open:u.menuState===0)();fe(()=>{let b=u.itemsRef.current;b&&u.menuState===0&&b!==(f==null?void 0:f.activeElement)&&b.focus({preventScroll:!0})},[u.menuState,u.itemsRef,f]),OP({container:u.itemsRef.current,enabled:u.menuState===0,accept(b){return b.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:b.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(b){b.setAttribute("role","none")}});let v=ee(b=>{var y,m;switch(l.dispose(),b.key){case me.Space:if(u.searchQuery!=="")return b.preventDefault(),b.stopPropagation(),s({type:3,value:b.key});case me.Enter:if(b.preventDefault(),b.stopPropagation(),s({type:1}),u.activeItemIndex!==null){let{dataRef:E}=u.items[u.activeItemIndex];(m=(y=E.current)==null?void 0:y.domRef.current)==null||m.click()}y_(u.buttonRef.current);break;case me.ArrowDown:return b.preventDefault(),b.stopPropagation(),s({type:2,focus:kt.Next});case me.ArrowUp:return b.preventDefault(),b.stopPropagation(),s({type:2,focus:kt.Previous});case me.Home:case me.PageUp:return b.preventDefault(),b.stopPropagation(),s({type:2,focus:kt.First});case me.End:case me.PageDown:return b.preventDefault(),b.stopPropagation(),s({type:2,focus:kt.Last});case me.Escape:b.preventDefault(),b.stopPropagation(),s({type:1}),$t().nextFrame(()=>{var E;return(E=u.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})});break;case me.Tab:b.preventDefault(),b.stopPropagation(),s({type:1}),$t().nextFrame(()=>{wP(u.buttonRef.current,b.shiftKey?Zt.Previous:Zt.Next)});break;default:b.key.length===1&&(s({type:3,value:b.key}),l.setTimeout(()=>s({type:4}),350));break}}),h=ee(b=>{switch(b.key){case me.Space:b.preventDefault();break}}),_=ce(()=>({open:u.menuState===0}),[u]),g={"aria-activedescendant":u.activeItemIndex===null||(n=u.items[u.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=u.buttonRef.current)==null?void 0:r.id,id:a,onKeyDown:v,onKeyUp:h,role:"menu",tabIndex:0,ref:c};return Ce({ourProps:g,theirProps:o,slot:_,defaultTag:yL,features:bL,visible:p,name:"Menu.Items"})}let EL=Ae;function SL(e,t){let n=_t(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[o,u]=Nu("Menu.Item"),s=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,c=ie(null),f=De(t,c);Ue(()=>{if(o.__demoMode||o.menuState!==0||!s||o.activationTrigger===0)return;let E=$t();return E.requestAnimationFrame(()=>{var w,O;(O=(w=c.current)==null?void 0:w.scrollIntoView)==null||O.call(w,{block:"nearest"})}),E.dispose},[o.__demoMode,c,s,o.menuState,o.activationTrigger,o.activeItemIndex]);let l=sL(c),d=ie({disabled:i,domRef:c,get textValue(){return l()}});Ue(()=>{d.current.disabled=i},[d,i]),Ue(()=>(u({type:5,id:r,dataRef:d}),()=>u({type:6,id:r})),[d,r]);let p=ee(()=>{u({type:1})}),v=ee(E=>{if(i)return E.preventDefault();u({type:1}),y_(o.buttonRef.current)}),h=ee(()=>{if(i)return u({type:2,focus:kt.Nothing});u({type:2,focus:kt.Specific,id:r})}),_=MP(),g=ee(E=>_.update(E)),b=ee(E=>{_.wasMoved(E)&&(i||s||u({type:2,focus:kt.Specific,id:r,trigger:0}))}),y=ee(E=>{_.wasMoved(E)&&(i||s&&u({type:2,focus:kt.Nothing}))}),m=ce(()=>({active:s,disabled:i,close:p}),[s,i,p]);return Ce({ourProps:{id:r,ref:f,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,disabled:void 0,onClick:v,onFocus:h,onPointerEnter:g,onMouseEnter:g,onPointerMove:b,onMouseMove:b,onPointerLeave:y,onMouseLeave:y},theirProps:a,slot:m,defaultTag:EL,name:"Menu.Item"})}let wL=Ie(hL),OL=Ie(gL),TL=Ie(_L),AL=Ie(SL),DU=Object.assign(wL,{Button:OL,Items:TL,Item:AL});function CL(e=0){let[t,n]=We(e),r=Da(),i=In(s=>{r.current&&n(c=>c|s)},[t,r]),a=In(s=>!!(t&s),[t]),o=In(s=>{r.current&&n(c=>c&~s)},[n,r]),u=In(s=>{r.current&&n(c=>c^s)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:u}}let U_=xe(null);function j_(){let e=ke(U_);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,j_),t}return e}function IL(){let[e,t]=We([]);return[e.length>0?e.join(" "):void 0,ce(()=>function(n){let r=ee(a=>(t(o=>[...o,a]),()=>t(o=>{let u=o.slice(),s=u.indexOf(a);return s!==-1&&u.splice(s,1),u}))),i=ce(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return Y.createElement(U_.Provider,{value:i},n.children)},[t])]}let RL="label";function PL(e,t){let n=_t(),{id:r=`headlessui-label-${n}`,passive:i=!1,...a}=e,o=j_(),u=De(t);Ue(()=>o.register(r),[r,o.register]);let s={ref:u,...o.props,id:r};return i&&("onClick"in s&&(delete s.htmlFor,delete s.onClick),"onClick"in a&&delete a.onClick),Ce({ourProps:s,theirProps:a,slot:o.slot||{},defaultTag:RL,name:o.name||"Label"})}let NL=Ie(PL),LL=Object.assign(NL,{}),Ff=xe(null);Ff.displayName="GroupContext";let ML=Ae;function kL(e){var t;let[n,r]=We(null),[i,a]=IL(),[o,u]=k_(),s=ce(()=>({switch:n,setSwitch:r,labelledby:i,describedby:o}),[n,r,i,o]),c={},f=e;return Y.createElement(u,{name:"Switch.Description"},Y.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=s.switch)==null?void 0:t.id,onClick(l){n&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},Y.createElement(Ff.Provider,{value:s},Ce({ourProps:c,theirProps:f,defaultTag:ML,name:"Switch.Group"}))))}let DL="button";function FL(e,t){let n=_t(),{id:r=`headlessui-switch-${n}`,checked:i,defaultChecked:a=!1,onChange:o,name:u,value:s,form:c,...f}=e,l=ke(Ff),d=ie(null),p=De(d,t,l===null?null:l.setSwitch),[v,h]=LP(i,o,a),_=ee(()=>h==null?void 0:h(!v)),g=ee(O=>{if(Pu(O.currentTarget))return O.preventDefault();O.preventDefault(),_()}),b=ee(O=>{O.key===me.Space?(O.preventDefault(),_()):O.key===me.Enter&&RP(O.currentTarget)}),y=ee(O=>O.preventDefault()),m=ce(()=>({checked:v}),[v]),E={id:r,ref:p,role:"switch",type:Af(e,d),tabIndex:0,"aria-checked":v,"aria-labelledby":l==null?void 0:l.labelledby,"aria-describedby":l==null?void 0:l.describedby,onClick:g,onKeyUp:b,onKeyPress:y},w=Ai();return fe(()=>{var O;let S=(O=d.current)==null?void 0:O.closest("form");S&&a!==void 0&&w.addEventListener(S,"reset",()=>{h(a)})},[d,h]),Y.createElement(Y.Fragment,null,u!=null&&v&&Y.createElement(Jo,{features:wa.Hidden,...Vc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:c,checked:v,name:u,value:s})}),Ce({ourProps:E,theirProps:f,slot:m,defaultTag:DL,name:"Switch"}))}let UL=Ie(FL),jL=kL,FU=Object.assign(UL,{Group:jL,Label:LL,Description:D_});function $L(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Cs(e,...t){e&&t.length>0&&e.classList.add(...t)}function Is(e,...t){e&&t.length>0&&e.classList.remove(...t)}function xL(e,t){let n=$t();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(s=>{let[c=0]=s.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,l)=>l-f);return c}),u=a+o;if(u!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},u),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let s=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function BL(e,t,n,r){let i=n?"enter":"leave",a=$t(),o=r!==void 0?$L(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=Pe(i,{enter:()=>t.enter,leave:()=>t.leave}),s=Pe(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Pe(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Is(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Cs(e,...t.base,...u,...c),a.nextFrame(()=>{Is(e,...t.base,...u,...c),Cs(e,...t.base,...u,...s),xL(e,()=>(Is(e,...t.base,...u),Cs(e,...t.base,...t.entered),o()))}),a.dispose}function HL({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=Da(),u=Ai(),s=un(n);Ue(()=>{e&&(s.current="enter")},[e]),Ue(()=>{let c=$t();u.add(c.dispose);let f=t.current;if(f&&s.current!=="idle"&&o.current)return c.dispose(),i.current(s.current),c.add(BL(f,r.current,s.current==="enter",()=>{c.dispose(),a.current(s.current)})),c.dispose},[n])}function bn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Lu=xe(null);Lu.displayName="TransitionContext";var KL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(KL||{});function GL(){let e=ke(Lu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function WL(){let e=ke(Mu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Mu=xe(null);Mu.displayName="NestingContext";function ku(e){return"children"in e?ku(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function $_(e,t){let n=un(e),r=ie([]),i=Da(),a=Ai(),o=ee((p,v=Rn.Hidden)=>{let h=r.current.findIndex(({el:_})=>_===p);h!==-1&&(Pe(v,{[Rn.Unmount](){r.current.splice(h,1)},[Rn.Hidden](){r.current[h].state="hidden"}}),a.microTask(()=>{var _;!ku(r)&&i.current&&((_=n.current)==null||_.call(n))}))}),u=ee(p=>{let v=r.current.find(({el:h})=>h===p);return v?v.state!=="visible"&&(v.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,Rn.Unmount)}),s=ie([]),c=ie(Promise.resolve()),f=ie({enter:[],leave:[],idle:[]}),l=ee((p,v,h)=>{s.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([_])=>_!==p)),t==null||t.chains.current[v].push([p,new Promise(_=>{s.current.push(_)})]),t==null||t.chains.current[v].push([p,new Promise(_=>{Promise.all(f.current[v].map(([g,b])=>b)).then(()=>_())})]),v==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>h(v)):h(v)}),d=ee((p,v,h)=>{Promise.all(f.current[v].splice(0).map(([_,g])=>g)).then(()=>{var _;(_=s.current.shift())==null||_()}).then(()=>h(v))});return ce(()=>({children:r,register:u,unregister:o,onStart:l,onStop:d,wait:c,chains:f}),[u,o,r,l,d,f,c])}function zL(){}let qL=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gv(e){var t;let n={};for(let r of qL)n[r]=(t=e[r])!=null?t:zL;return n}function YL(e){let t=ie(gv(e));return fe(()=>{t.current=gv(e)},[e]),t}let VL="div",x_=Kn.RenderStrategy;function XL(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:u,enter:s,enterFrom:c,enterTo:f,entered:l,leave:d,leaveFrom:p,leaveTo:v,...h}=e,_=ie(null),g=De(_,t),b=(n=h.unmount)==null||n?Rn.Unmount:Rn.Hidden,{show:y,appear:m,initial:E}=GL(),[w,O]=We(y?"visible":"hidden"),S=WL(),{register:A,unregister:C}=S;fe(()=>A(_),[A,_]),fe(()=>{if(b===Rn.Hidden&&_.current){if(y&&w!=="visible"){O("visible");return}return Pe(w,{hidden:()=>C(_),visible:()=>A(_)})}},[w,_,A,C,y,b]);let N=un({base:bn(h.className),enter:bn(s),enterFrom:bn(c),enterTo:bn(f),entered:bn(l),leave:bn(d),leaveFrom:bn(p),leaveTo:bn(v)}),L=YL({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:u}),k=Ci();fe(()=>{if(k&&w==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,w,k]);let P=E&&!m,I=m&&y&&E,R=(()=>!k||P?"idle":y?"enter":"leave")(),M=CL(0),D=ee(B=>Pe(B,{enter:()=>{M.addFlag(Re.Opening),L.current.beforeEnter()},leave:()=>{M.addFlag(Re.Closing),L.current.beforeLeave()},idle:()=>{}})),j=ee(B=>Pe(B,{enter:()=>{M.removeFlag(Re.Opening),L.current.afterEnter()},leave:()=>{M.removeFlag(Re.Closing),L.current.afterLeave()},idle:()=>{}})),x=$_(()=>{O("hidden"),C(_)},S);HL({immediate:I,container:_,classes:N,direction:R,onStart:un(B=>{x.onStart(_,B,D)}),onStop:un(B=>{x.onStop(_,B,j),B==="leave"&&!ku(x)&&(O("hidden"),C(_))})});let W=h,K={ref:g};return I?W={...W,className:Qo(h.className,...N.current.enter,...N.current.enterFrom)}:(W.className=Qo(h.className,(r=_.current)==null?void 0:r.className),W.className===""&&delete W.className),Y.createElement(Mu.Provider,{value:x},Y.createElement(If,{value:Pe(w,{visible:Re.Open,hidden:Re.Closed})|M.flags},Ce({ourProps:K,theirProps:W,defaultTag:VL,features:x_,visible:w==="visible",name:"Transition.Child"})))}function QL(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=ie(null),u=De(o,t);Ci();let s=ka();if(n===void 0&&s!==null&&(n=(s&Re.Open)===Re.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=We(n?"visible":"hidden"),l=$_(()=>{f("hidden")}),[d,p]=We(!0),v=ie([n]);Ue(()=>{d!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),p(!1))},[v,n]);let h=ce(()=>({show:n,appear:r,initial:d}),[n,r,d]);fe(()=>{if(n)f("visible");else if(!ku(l))f("hidden");else{let y=o.current;if(!y)return;let m=y.getBoundingClientRect();m.x===0&&m.y===0&&m.width===0&&m.height===0&&f("hidden")}},[n,l]);let _={unmount:i},g=ee(()=>{var y;d&&p(!1),(y=e.beforeEnter)==null||y.call(e)}),b=ee(()=>{var y;d&&p(!1),(y=e.beforeLeave)==null||y.call(e)});return Y.createElement(Mu.Provider,{value:l},Y.createElement(Lu.Provider,{value:h},Ce({ourProps:{..._,as:Ae,children:Y.createElement(B_,{ref:u,..._,...a,beforeEnter:g,beforeLeave:b})},theirProps:{},defaultTag:Ae,features:x_,visible:c==="visible",name:"Transition"})))}function JL(e,t){let n=ke(Lu)!==null,r=ka()!==null;return Y.createElement(Y.Fragment,null,!n&&r?Y.createElement(el,{ref:t,...e}):Y.createElement(B_,{ref:t,...e}))}let el=Ie(QL),B_=Ie(XL),ZL=Ie(JL),UU=Object.assign(el,{Child:ZL,Root:el});function e5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const t5=he(e5),jU=t5;function n5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"}))}const r5=he(n5),$U=r5;function i5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"}))}const a5=he(i5),xU=a5;function o5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}))}const u5=he(o5),BU=u5;function s5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"}))}const c5=he(s5),HU=c5;function l5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const f5=he(l5),KU=f5;function d5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const p5=he(d5),GU=p5;function v5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 11.25v8.25a1.5 1.5 0 01-1.5 1.5H5.25a1.5 1.5 0 01-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 109.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1114.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"}))}const h5=he(v5),WU=h5;function m5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z"}))}const g5=he(m5),zU=g5;function y5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"}))}const b5=he(y5),qU=b5;function _5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122"}))}const E5=he(_5),YU=E5;function S5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const w5=he(S5),VU=w5;function O5({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const T5=he(O5),XU=T5;function H_(e,t=!1,n,r=n.polyfill("FormData",!0,!0),i=[]){return Object.entries(e).forEach(([a,o])=>{let u=i.reduce((s,c)=>s?`${s}[${c}]`:c,null);if(u=u?`${u}[${a}]`:a,o instanceof Array||globalThis.FileList&&o instanceof FileList)for(const s of o)r.append(u,s);else t&&typeof o=="object"&&(!(t instanceof Array)||!t.includes(a))?o!==null&&H_(o,t,n,r,[...i,a]):r.append(u,o)}),r}const A5={wretch:{formData(e,t=!1){return this.body(H_(e,t,this._config))}}},QU=A5;function tl(e){this.message=e}tl.prototype=new Error,tl.prototype.name="InvalidCharacterError";var yv=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new tl("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function C5(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(yv(n).replace(/(.)/g,function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return yv(t)}}function eu(e){this.message=e}function JU(e,t){if(typeof e!="string")throw new eu("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(C5(e.split(".")[n]))}catch(r){throw new eu("Invalid token specified: "+r.message)}}eu.prototype=new Error,eu.prototype.name="InvalidTokenError";var Uf={exports:{}},K_=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(n,i)}},I5=K_,jf=Object.prototype.toString,$f=function(e){return function(t){var n=jf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Sr(e){return e=e.toLowerCase(),function(n){return $f(n)===e}}function xf(e){return Array.isArray(e)}function tu(e){return typeof e>"u"}function R5(e){return e!==null&&!tu(e)&&e.constructor!==null&&!tu(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var G_=Sr("ArrayBuffer");function P5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G_(e.buffer),t}function N5(e){return typeof e=="string"}function L5(e){return typeof e=="number"}function W_(e){return e!==null&&typeof e=="object"}function Co(e){if($f(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var M5=Sr("Date"),k5=Sr("File"),D5=Sr("Blob"),F5=Sr("FileList");function Bf(e){return jf.call(e)==="[object Function]"}function U5(e){return W_(e)&&Bf(e.pipe)}function j5(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||jf.call(e)===t||Bf(e.toString)&&e.toString()===t)}var $5=Sr("URLSearchParams");function x5(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function B5(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Hf(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),xf(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function nl(){var e={};function t(i,a){Co(e[a])&&Co(i)?e[a]=nl(e[a],i):Co(i)?e[a]=nl({},i):xf(i)?e[a]=i.slice():e[a]=i}for(var n=0,r=arguments.length;n<r;n++)Hf(arguments[n],t);return e}function H5(e,t,n){return Hf(t,function(i,a){n&&typeof i=="function"?e[a]=I5(i,n):e[a]=i}),e}function K5(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function G5(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function W5(e,t,n){var r,i,a,o={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],o[a]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function z5(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function q5(e){if(!e)return null;var t=e.length;if(tu(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var Y5=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Ye={isArray:xf,isArrayBuffer:G_,isBuffer:R5,isFormData:j5,isArrayBufferView:P5,isString:N5,isNumber:L5,isObject:W_,isPlainObject:Co,isUndefined:tu,isDate:M5,isFile:k5,isBlob:D5,isFunction:Bf,isStream:U5,isURLSearchParams:$5,isStandardBrowserEnv:B5,forEach:Hf,merge:nl,extend:H5,trim:x5,stripBOM:K5,inherits:G5,toFlatObject:W5,kindOf:$f,kindOfTest:Sr,endsWith:z5,toArray:q5,isTypedArray:Y5,isFileList:F5},Rr=Ye;function bv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var z_=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Rr.isURLSearchParams(n))i=n.toString();else{var a=[];Rr.forEach(n,function(s,c){s===null||typeof s>"u"||(Rr.isArray(s)?c=c+"[]":s=[s],Rr.forEach(s,function(l){Rr.isDate(l)?l=l.toISOString():Rr.isObject(l)&&(l=JSON.stringify(l)),a.push(bv(c)+"="+bv(l))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},V5=Ye;function Du(){this.handlers=[]}Du.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Du.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Du.prototype.forEach=function(t){V5.forEach(this.handlers,function(r){r!==null&&t(r)})};var X5=Du,Q5=Ye,J5=function(t,n){Q5.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},q_=Ye;function li(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}q_.inherits(li,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Y_=li.prototype,V_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){V_[e]={value:e}});Object.defineProperties(li,V_);Object.defineProperty(Y_,"isAxiosError",{value:!0});li.from=function(e,t,n,r,i,a){var o=Object.create(Y_);return q_.toFlatObject(e,o,function(s){return s!==Error.prototype}),li.call(o,e.message,t,n,r,i),o.name=e.name,a&&Object.assign(o,a),o};var Ri=li,X_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pt=Ye;function Z5(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":Pt.isDate(a)?a.toISOString():Pt.isArrayBuffer(a)||Pt.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,o){if(Pt.isPlainObject(a)||Pt.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);n.push(a),Pt.forEach(a,function(s,c){if(!Pt.isUndefined(s)){var f=o?o+"."+c:c,l;if(s&&!o&&typeof s=="object"){if(Pt.endsWith(c,"{}"))s=JSON.stringify(s);else if(Pt.endsWith(c,"[]")&&(l=Pt.toArray(s))){l.forEach(function(d){!Pt.isUndefined(d)&&t.append(f,r(d))});return}}i(s,f)}}),n.pop()}else t.append(o,r(a))}return i(e),t}var Q_=Z5,Rs,_v;function eM(){if(_v)return Rs;_v=1;var e=Ri;return Rs=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Rs}var Ps,Ev;function tM(){if(Ev)return Ps;Ev=1;var e=Ye;return Ps=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,o,u,s){var c=[];c.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),e.isString(o)&&c.push("path="+o),e.isString(u)&&c.push("domain="+u),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ps}var nM=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},rM=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},iM=nM,aM=rM,J_=function(t,n){return t&&!iM(n)?aM(t,n):n},Ns,Sv;function oM(){if(Sv)return Ns;Sv=1;var e=Ye,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ns=function(r){var i={},a,o,u;return r&&e.forEach(r.split(`
25
- `),function(c){if(u=c.indexOf(":"),a=e.trim(c.substr(0,u)).toLowerCase(),o=e.trim(c.substr(u+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},Ns}var Ls,wv;function uM(){if(wv)return Ls;wv=1;var e=Ye;return Ls=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(o){var u=o;return n&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(u){var s=e.isString(u)?a(u):u;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}(),Ls}var Ms,Ov;function Fu(){if(Ov)return Ms;Ov=1;var e=Ri,t=Ye;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Ms=n,Ms}var ks,Tv;function sM(){return Tv||(Tv=1,ks=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),ks}var Ds,Av;function Cv(){if(Av)return Ds;Av=1;var e=Ye,t=eM(),n=tM(),r=z_,i=J_,a=oM(),o=uM(),u=X_,s=Ri,c=Fu(),f=sM();return Ds=function(d){return new Promise(function(v,h){var _=d.data,g=d.headers,b=d.responseType,y;function m(){d.cancelToken&&d.cancelToken.unsubscribe(y),d.signal&&d.signal.removeEventListener("abort",y)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var E=new XMLHttpRequest;if(d.auth){var w=d.auth.username||"",O=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+O)}var S=i(d.baseURL,d.url);E.open(d.method.toUpperCase(),r(S,d.params,d.paramsSerializer),!0),E.timeout=d.timeout;function A(){if(E){var L="getAllResponseHeaders"in E?a(E.getAllResponseHeaders()):null,k=!b||b==="text"||b==="json"?E.responseText:E.response,P={data:k,status:E.status,statusText:E.statusText,headers:L,config:d,request:E};t(function(R){v(R),m()},function(R){h(R),m()},P),E=null}}if("onloadend"in E?E.onloadend=A:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(A)},E.onabort=function(){E&&(h(new s("Request aborted",s.ECONNABORTED,d,E)),E=null)},E.onerror=function(){h(new s("Network Error",s.ERR_NETWORK,d,E,E)),E=null},E.ontimeout=function(){var k=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",P=d.transitional||u;d.timeoutErrorMessage&&(k=d.timeoutErrorMessage),h(new s(k,P.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,d,E)),E=null},e.isStandardBrowserEnv()){var C=(d.withCredentials||o(S))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;C&&(g[d.xsrfHeaderName]=C)}"setRequestHeader"in E&&e.forEach(g,function(k,P){typeof _>"u"&&P.toLowerCase()==="content-type"?delete g[P]:E.setRequestHeader(P,k)}),e.isUndefined(d.withCredentials)||(E.withCredentials=!!d.withCredentials),b&&b!=="json"&&(E.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&E.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(y=function(L){E&&(h(!L||L&&L.type?new c:L),E.abort(),E=null)},d.cancelToken&&d.cancelToken.subscribe(y),d.signal&&(d.signal.aborted?y():d.signal.addEventListener("abort",y))),_||(_=null);var N=f(S);if(N&&["http","https","file"].indexOf(N)===-1){h(new s("Unsupported protocol "+N+":",s.ERR_BAD_REQUEST,d));return}E.send(_)})},Ds}var Fs,Iv;function cM(){return Iv||(Iv=1,Fs=null),Fs}var He=Ye,Rv=J5,Pv=Ri,lM=X_,fM=Q_,dM={"Content-Type":"application/x-www-form-urlencoded"};function Nv(e,t){!He.isUndefined(e)&&He.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function pM(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Cv()),e}function vM(e,t,n){if(He.isString(e))try{return(t||JSON.parse)(e),He.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Uu={transitional:lM,adapter:pM(),transformRequest:[function(t,n){if(Rv(n,"Accept"),Rv(n,"Content-Type"),He.isFormData(t)||He.isArrayBuffer(t)||He.isBuffer(t)||He.isStream(t)||He.isFile(t)||He.isBlob(t))return t;if(He.isArrayBufferView(t))return t.buffer;if(He.isURLSearchParams(t))return Nv(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=He.isObject(t),i=n&&n["Content-Type"],a;if((a=He.isFileList(t))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return fM(a?{"files[]":t}:t,o&&new o)}else if(r||i==="application/json")return Nv(n,"application/json"),vM(t);return t}],transformResponse:[function(t){var n=this.transitional||Uu.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&He.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?Pv.from(o,Pv.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cM()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};He.forEach(["delete","get","head"],function(t){Uu.headers[t]={}});He.forEach(["post","put","patch"],function(t){Uu.headers[t]=He.merge(dM)});var Kf=Uu,hM=Ye,mM=Kf,gM=function(t,n,r){var i=this||mM;return hM.forEach(r,function(o){t=o.call(i,t,n)}),t},Us,Lv;function Z_(){return Lv||(Lv=1,Us=function(t){return!!(t&&t.__CANCEL__)}),Us}var Mv=Ye,js=gM,yM=Z_(),bM=Kf,_M=Fu();function $s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _M}var EM=function(t){$s(t),t.headers=t.headers||{},t.data=js.call(t,t.data,t.headers,t.transformRequest),t.headers=Mv.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Mv.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||bM.adapter;return n(t).then(function(i){return $s(t),i.data=js.call(t,i.data,i.headers,t.transformResponse),i},function(i){return yM(i)||($s(t),i&&i.response&&(i.response.data=js.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},ft=Ye,e1=function(t,n){n=n||{};var r={};function i(f,l){return ft.isPlainObject(f)&&ft.isPlainObject(l)?ft.merge(f,l):ft.isPlainObject(l)?ft.merge({},l):ft.isArray(l)?l.slice():l}function a(f){if(ft.isUndefined(n[f])){if(!ft.isUndefined(t[f]))return i(void 0,t[f])}else return i(t[f],n[f])}function o(f){if(!ft.isUndefined(n[f]))return i(void 0,n[f])}function u(f){if(ft.isUndefined(n[f])){if(!ft.isUndefined(t[f]))return i(void 0,t[f])}else return i(void 0,n[f])}function s(f){if(f in n)return i(t[f],n[f]);if(f in t)return i(void 0,t[f])}var c={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s};return ft.forEach(Object.keys(t).concat(Object.keys(n)),function(l){var d=c[l]||a,p=d(l);ft.isUndefined(p)&&d!==s||(r[l]=p)}),r},xs,kv;function t1(){return kv||(kv=1,xs={version:"0.27.2"}),xs}var SM=t1().version,On=Ri,Gf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Gf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Dv={};Gf.transitional=function(t,n,r){function i(a,o){return"[Axios v"+SM+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return function(a,o,u){if(t===!1)throw new On(i(o," has been removed"+(n?" in "+n:"")),On.ERR_DEPRECATED);return n&&!Dv[o]&&(Dv[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};function wM(e,t,n){if(typeof e!="object")throw new On("options must be an object",On.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var u=e[a],s=u===void 0||o(u,a,e);if(s!==!0)throw new On("option "+a+" must be "+s,On.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new On("Unknown option "+a,On.ERR_BAD_OPTION)}}var OM={assertOptions:wM,validators:Gf},n1=Ye,TM=z_,Fv=X5,Uv=EM,ju=e1,AM=J_,r1=OM,Pr=r1.validators;function fi(e){this.defaults=e,this.interceptors={request:new Fv,response:new Fv}}fi.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ju(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&r1.assertOptions(r,{silentJSONParsing:Pr.transitional(Pr.boolean),forcedJSONParsing:Pr.transitional(Pr.boolean),clarifyTimeoutError:Pr.transitional(Pr.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(a=a&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var u;if(!a){var s=[Uv,void 0];for(Array.prototype.unshift.apply(s,i),s=s.concat(o),u=Promise.resolve(n);s.length;)u=u.then(s.shift(),s.shift());return u}for(var c=n;i.length;){var f=i.shift(),l=i.shift();try{c=f(c)}catch(d){l(d);break}}try{u=Uv(c)}catch(d){return Promise.reject(d)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};fi.prototype.getUri=function(t){t=ju(this.defaults,t);var n=AM(t.baseURL,t.url);return TM(n,t.params,t.paramsSerializer)};n1.forEach(["delete","get","head","options"],function(t){fi.prototype[t]=function(n,r){return this.request(ju(r||{},{method:t,url:n,data:(r||{}).data}))}});n1.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,u){return this.request(ju(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}fi.prototype[t]=n(),fi.prototype[t+"Form"]=n(!0)});var CM=fi,Bs,jv;function IM(){if(jv)return Bs;jv=1;var e=Fu();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(a){if(i._listeners){var o,u=i._listeners.length;for(o=0;o<u;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,u=new Promise(function(s){i.subscribe(s),o=s}).then(a);return u.cancel=function(){i.unsubscribe(o)},u},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},Bs=t,Bs}var Hs,$v;function RM(){return $v||($v=1,Hs=function(t){return function(r){return t.apply(null,r)}}),Hs}var Ks,xv;function PM(){if(xv)return Ks;xv=1;var e=Ye;return Ks=function(n){return e.isObject(n)&&n.isAxiosError===!0},Ks}var Bv=Ye,NM=K_,Io=CM,LM=e1,MM=Kf;function i1(e){var t=new Io(e),n=NM(Io.prototype.request,t);return Bv.extend(n,Io.prototype,t),Bv.extend(n,t),n.create=function(i){return i1(LM(e,i))},n}var st=i1(MM);st.Axios=Io;st.CanceledError=Fu();st.CancelToken=IM();st.isCancel=Z_();st.VERSION=t1().version;st.toFormData=Q_;st.AxiosError=Ri;st.Cancel=st.CanceledError;st.all=function(t){return Promise.all(t)};st.spread=RM();st.isAxiosError=PM();Uf.exports=st;Uf.exports.default=st;var kM=Uf.exports,DM=kM;const FM=gr(DM);var UM=Function.prototype.toString,Gs=Object.create,jM=Object.defineProperty,$M=Object.getOwnPropertyDescriptor,Hv=Object.getOwnPropertyNames,Wf=Object.getOwnPropertySymbols,xM=Object.getPrototypeOf,a1=Object.prototype,BM=a1.hasOwnProperty,HM=a1.propertyIsEnumerable,o1=typeof Wf=="function",KM=typeof WeakMap=="function",GM=function(){if(KM)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),u1=function(e,t){var n=e.__proto__||xM(e);if(!n)return Gs(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:Gs(n);if(~UM.call(r).indexOf("[native code]"))try{return new r}catch{}return Gs(n)},WM=function(e,t,n,r){var i=u1(e,t);r.set(e,i);for(var a in e)BM.call(e,a)&&(i[a]=n(e[a],r));if(o1)for(var o=Wf(e),u=0,s=o.length,c=void 0;u<s;++u)c=o[u],HM.call(e,c)&&(i[c]=n(e[c],r));return i},Kv=function(e,t,n,r){var i=u1(e,t);r.set(e,i);for(var a=o1?Hv(e).concat(Wf(e)):Hv(e),o=0,u=a.length,s=void 0,c=void 0;o<u;++o)if(s=a[o],s!=="callee"&&s!=="caller")if(c=$M(e,s),c){!c.get&&!c.set&&(c.value=n(e[s],r));try{jM(i,s,c)}catch{i[s]=c.value}}else i[s]=n(e[s],r);return i},zM=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},qM=Array.isArray,YM=Object.getPrototypeOf,VM=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function je(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||VM,i=n?Kv:WM,a=function(o,u){if(!o||typeof o!="object")return o;if(u.has(o))return u.get(o);var s=o.__proto__||YM(o),c=s&&s.constructor;if(!c||c===r.Object)return i(o,r,a,u);var f;if(qM(o)){if(n)return Kv(o,r,a,u);f=new c,u.set(o,f);for(var l=0,d=o.length;l<d;++l)f[l]=a(o[l],u);return f}if(o instanceof r.Date)return new c(o.getTime());if(o instanceof r.RegExp)return f=new c(o.source,o.flags||zM(o)),f.lastIndex=o.lastIndex,f;if(r.Map&&o instanceof r.Map)return f=new c,u.set(o,f),o.forEach(function(p,v){f.set(v,a(p,u))}),f;if(r.Set&&o instanceof r.Set)return f=new c,u.set(o,f),o.forEach(function(p){f.add(a(p,u))}),f;if(r.Blob&&o instanceof r.Blob)return o.slice(0,o.size,o.type);if(r.Buffer&&r.Buffer.isBuffer(o))return f=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(o.length):new c(o.length),u.set(o,f),o.copy(f),f;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(o))return f=new c(o.buffer.slice(0)),u.set(o,f),f;if(o instanceof r.ArrayBuffer)return f=o.slice(0),u.set(o,f),f}return typeof o.then=="function"||o instanceof Error||r.WeakMap&&o instanceof r.WeakMap||r.WeakSet&&o instanceof r.WeakSet?o:i(o,r,a,u)};return a(e,GM())}je.default=je;je.strict=function(t,n){return je(t,{isStrict:!0,realm:n?n.realm:void 0})};var XM=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0},Gv=typeof Symbol<"u"&&Symbol,QM=XM,JM=function(){return typeof Gv!="function"||typeof Symbol!="function"||typeof Gv("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:QM()},Wv={foo:{}},ZM=Object,ek=function(){return{__proto__:Wv}.foo===Wv.foo&&!({__proto__:null}instanceof ZM)},tk="Function.prototype.bind called on incompatible ",nk=Object.prototype.toString,rk=Math.max,ik="[object Function]",zv=function(t,n){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var a=0;a<n.length;a+=1)r[a+t.length]=n[a];return r},ak=function(t,n){for(var r=[],i=n||0,a=0;i<t.length;i+=1,a+=1)r[a]=t[i];return r},ok=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},uk=function(t){var n=this;if(typeof n!="function"||nk.apply(n)!==ik)throw new TypeError(tk+n);for(var r=ak(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,zv(r,arguments));return Object(f)===f?f:this}return n.apply(t,zv(r,arguments))},o=rk(0,n.length-r.length),u=[],s=0;s<o;s++)u[s]="$"+s;if(i=Function("binder","return function ("+ok(u,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},sk=uk,s1=Function.prototype.bind||sk,qv={}.hasOwnProperty,Ws=Function.prototype.call,ck=Ws.bind?Ws.bind(qv):function(e,t){return Ws.call(qv,e,t)},ue,di=SyntaxError,c1=Function,Xr=TypeError,zs=function(e){try{return c1('"use strict"; return ('+e+").constructor;")()}catch{}},fr=Object.getOwnPropertyDescriptor;if(fr)try{fr({},"")}catch{fr=null}var qs=function(){throw new Xr},lk=fr?function(){try{return arguments.callee,qs}catch{try{return fr(arguments,"callee").get}catch{return qs}}}():qs,Nr=JM(),fk=ek(),Ke=Object.getPrototypeOf||(fk?function(e){return e.__proto__}:null),Dr={},dk=typeof Uint8Array>"u"||!Ke?ue:Ke(Uint8Array),dr={"%AggregateError%":typeof AggregateError>"u"?ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ue:ArrayBuffer,"%ArrayIteratorPrototype%":Nr&&Ke?Ke([][Symbol.iterator]()):ue,"%AsyncFromSyncIteratorPrototype%":ue,"%AsyncFunction%":Dr,"%AsyncGenerator%":Dr,"%AsyncGeneratorFunction%":Dr,"%AsyncIteratorPrototype%":Dr,"%Atomics%":typeof Atomics>"u"?ue:Atomics,"%BigInt%":typeof BigInt>"u"?ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ue:FinalizationRegistry,"%Function%":c1,"%GeneratorFunction%":Dr,"%Int8Array%":typeof Int8Array>"u"?ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Nr&&Ke?Ke(Ke([][Symbol.iterator]())):ue,"%JSON%":typeof JSON=="object"?JSON:ue,"%Map%":typeof Map>"u"?ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Nr||!Ke?ue:Ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ue:Promise,"%Proxy%":typeof Proxy>"u"?ue:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Nr||!Ke?ue:Ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Nr&&Ke?Ke(""[Symbol.iterator]()):ue,"%Symbol%":Nr?Symbol:ue,"%SyntaxError%":di,"%ThrowTypeError%":lk,"%TypedArray%":dk,"%TypeError%":Xr,"%Uint8Array%":typeof Uint8Array>"u"?ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ue:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ue:WeakSet};if(Ke)try{null.error}catch(e){var pk=Ke(Ke(e));dr["%Error.prototype%"]=pk}var vk=function e(t){var n;if(t==="%AsyncFunction%")n=zs("async function () {}");else if(t==="%GeneratorFunction%")n=zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ke&&(n=Ke(i.prototype))}return dr[t]=n,n},Yv={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ua=s1,nu=ck,hk=Ua.call(Function.call,Array.prototype.concat),mk=Ua.call(Function.apply,Array.prototype.splice),Vv=Ua.call(Function.call,String.prototype.replace),ru=Ua.call(Function.call,String.prototype.slice),gk=Ua.call(Function.call,RegExp.prototype.exec),yk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bk=/\\(\\)?/g,_k=function(t){var n=ru(t,0,1),r=ru(t,-1);if(n==="%"&&r!=="%")throw new di("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new di("invalid intrinsic syntax, expected opening `%`");var i=[];return Vv(t,yk,function(a,o,u,s){i[i.length]=u?Vv(s,bk,"$1"):o||a}),i},Ek=function(t,n){var r=t,i;if(nu(Yv,r)&&(i=Yv[r],r="%"+i[0]+"%"),nu(dr,r)){var a=dr[r];if(a===Dr&&(a=vk(r)),typeof a>"u"&&!n)throw new Xr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new di("intrinsic "+t+" does not exist!")},zf=function(t,n){if(typeof t!="string"||t.length===0)throw new Xr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Xr('"allowMissing" argument must be a boolean');if(gk(/^%?[^%]*%?$/,t)===null)throw new di("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=_k(t),i=r.length>0?r[0]:"",a=Ek("%"+i+"%",n),o=a.name,u=a.value,s=!1,c=a.alias;c&&(i=c[0],mk(r,hk([0,1],c)));for(var f=1,l=!0;f<r.length;f+=1){var d=r[f],p=ru(d,0,1),v=ru(d,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new di("property names with quotes must have matching quotes");if((d==="constructor"||!l)&&(s=!0),i+="."+d,o="%"+i+"%",nu(dr,o))u=dr[o];else if(u!=null){if(!(d in u)){if(!n)throw new Xr("base intrinsic for "+t+" exists, but the property is not available.");return}if(fr&&f+1>=r.length){var h=fr(u,d);l=!!h,l&&"get"in h&&!("originalValue"in h.get)?u=h.get:u=u[d]}else l=nu(u,d),u=u[d];l&&!s&&(dr[o]=u)}}return u},l1={exports:{}};(function(e){var t=s1,n=zf,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),s=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(l){var d=a(t,i,arguments);if(o&&u){var p=o(d,"length");p.configurable&&u(d,"length",{value:1+s(0,l.length-(arguments.length-1))})}return d};var c=function(){return a(t,r,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(l1);var Sk=l1.exports,f1=zf,d1=Sk,wk=d1(f1("String.prototype.indexOf")),Ok=function(t,n){var r=f1(t,!!n);return typeof r=="function"&&wk(t,".prototype.")>-1?d1(r):r};const Tk={},Ak=Object.freeze(Object.defineProperty({__proto__:null,default:Tk},Symbol.toStringTag,{value:"Module"})),Ck=Jh(Ak);var qf=typeof Map=="function"&&Map.prototype,Ys=Object.getOwnPropertyDescriptor&&qf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,iu=qf&&Ys&&typeof Ys.get=="function"?Ys.get:null,Xv=qf&&Map.prototype.forEach,Yf=typeof Set=="function"&&Set.prototype,Vs=Object.getOwnPropertyDescriptor&&Yf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,au=Yf&&Vs&&typeof Vs.get=="function"?Vs.get:null,Qv=Yf&&Set.prototype.forEach,Ik=typeof WeakMap=="function"&&WeakMap.prototype,la=Ik?WeakMap.prototype.has:null,Rk=typeof WeakSet=="function"&&WeakSet.prototype,fa=Rk?WeakSet.prototype.has:null,Pk=typeof WeakRef=="function"&&WeakRef.prototype,Jv=Pk?WeakRef.prototype.deref:null,Nk=Boolean.prototype.valueOf,Lk=Object.prototype.toString,Mk=Function.prototype.toString,kk=String.prototype.match,Vf=String.prototype.slice,Pn=String.prototype.replace,Dk=String.prototype.toUpperCase,Zv=String.prototype.toLowerCase,p1=RegExp.prototype.test,eh=Array.prototype.concat,Kt=Array.prototype.join,Fk=Array.prototype.slice,th=Math.floor,rl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xs=Object.getOwnPropertySymbols,il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,pi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===pi||"symbol")?Symbol.toStringTag:null,v1=Object.prototype.propertyIsEnumerable,nh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function rh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||p1.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-th(-e):th(e);if(r!==e){var i=String(r),a=Vf.call(t,i.length+1);return Pn.call(i,n,"$&_")+"."+Pn.call(Pn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pn.call(t,n,"$&_")}var al=Ck,ih=al.custom,ah=m1(ih)?ih:null,Uk=function e(t,n,r,i){var a=n||{};if(Tn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Tn(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return y1(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return u?rh(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return u?rh(t,c):c}var f=typeof a.depth>"u"?5:a.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return ol(t)?"[Array]":"[Object]";var l=tD(a,r);if(typeof i>"u")i=[];else if(g1(i,t)>=0)return"[Circular]";function d(k,P,I){if(P&&(i=Fk.call(i),i.push(P)),I){var R={depth:a.depth};return Tn(a,"quoteStyle")&&(R.quoteStyle=a.quoteStyle),e(k,R,r+1,i)}return e(k,a,r+1,i)}if(typeof t=="function"&&!oh(t)){var p=zk(t),v=Ja(t,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(v.length>0?" { "+Kt.call(v,", ")+" }":"")}if(m1(t)){var h=pi?Pn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):il.call(t);return typeof t=="object"&&!pi?qi(h):h}if(Jk(t)){for(var _="<"+Zv.call(String(t.nodeName)),g=t.attributes||[],b=0;b<g.length;b++)_+=" "+g[b].name+"="+h1(jk(g[b].value),"double",a);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+Zv.call(String(t.nodeName))+">",_}if(ol(t)){if(t.length===0)return"[]";var y=Ja(t,d);return l&&!eD(y)?"["+ul(y,l)+"]":"[ "+Kt.call(y,", ")+" ]"}if(xk(t)){var m=Ja(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!v1.call(t,"cause")?"{ ["+String(t)+"] "+Kt.call(eh.call("[cause]: "+d(t.cause),m),", ")+" }":m.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Kt.call(m,", ")+" }"}if(typeof t=="object"&&o){if(ah&&typeof t[ah]=="function"&&al)return al(t,{depth:f-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qk(t)){var E=[];return Xv&&Xv.call(t,function(k,P){E.push(d(P,t,!0)+" => "+d(k,t))}),uh("Map",iu.call(t),E,l)}if(Xk(t)){var w=[];return Qv&&Qv.call(t,function(k){w.push(d(k,t))}),uh("Set",au.call(t),w,l)}if(Yk(t))return Qs("WeakMap");if(Qk(t))return Qs("WeakSet");if(Vk(t))return Qs("WeakRef");if(Hk(t))return qi(d(Number(t)));if(Gk(t))return qi(d(rl.call(t)));if(Kk(t))return qi(Nk.call(t));if(Bk(t))return qi(d(String(t)));if(t===J)return typeof window<"u"?"{ [object Window] }":"{ [object global] }";if(!$k(t)&&!oh(t)){var O=Ja(t,d),S=nh?nh(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",C=!S&&tt&&Object(t)===t&&tt in t?Vf.call(Vn(t),8,-1):A?"Object":"",N=S||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=N+(C||A?"["+Kt.call(eh.call([],C||[],A||[]),": ")+"] ":"");return O.length===0?L+"{}":l?L+"{"+ul(O,l)+"}":L+"{ "+Kt.call(O,", ")+" }"}return String(t)};function h1(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function jk(e){return Pn.call(String(e),/"/g,"&quot;")}function ol(e){return Vn(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function $k(e){return Vn(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function oh(e){return Vn(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function xk(e){return Vn(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function Bk(e){return Vn(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function Hk(e){return Vn(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function Kk(e){return Vn(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function m1(e){if(pi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!il)return!1;try{return il.call(e),!0}catch{}return!1}function Gk(e){if(!e||typeof e!="object"||!rl)return!1;try{return rl.call(e),!0}catch{}return!1}var Wk=Object.prototype.hasOwnProperty||function(e){return e in this};function Tn(e,t){return Wk.call(e,t)}function Vn(e){return Lk.call(e)}function zk(e){if(e.name)return e.name;var t=kk.call(Mk.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function g1(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function qk(e){if(!iu||!e||typeof e!="object")return!1;try{iu.call(e);try{au.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Yk(e){if(!la||!e||typeof e!="object")return!1;try{la.call(e,la);try{fa.call(e,fa)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Vk(e){if(!Jv||!e||typeof e!="object")return!1;try{return Jv.call(e),!0}catch{}return!1}function Xk(e){if(!au||!e||typeof e!="object")return!1;try{au.call(e);try{iu.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Qk(e){if(!fa||!e||typeof e!="object")return!1;try{fa.call(e,fa);try{la.call(e,la)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Jk(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function y1(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return y1(Vf.call(e,0,t.maxStringLength),t)+r}var i=Pn.call(Pn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Zk);return h1(i,"single",t)}function Zk(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Dk.call(t.toString(16))}function qi(e){return"Object("+e+")"}function Qs(e){return e+" { ? }"}function uh(e,t,n,r){var i=r?ul(n,r):Kt.call(n,", ");return e+" ("+t+") {"+i+"}"}function eD(e){for(var t=0;t<e.length;t++)if(g1(e[t],`
26
- `)>=0)return!1;return!0}function tD(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Kt.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Kt.call(Array(t+1),n)}}function ul(e,t){if(e.length===0)return"";var n=`
27
- `+t.prev+t.base;return n+Kt.call(e,","+n)+`
28
- `+t.prev}function Ja(e,t){var n=ol(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Tn(e,i)?t(e[i],e):""}var a=typeof Xs=="function"?Xs(e):[],o;if(pi){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)Tn(e,s)&&(n&&String(Number(s))===s&&s<e.length||pi&&o["$"+s]instanceof Symbol||(p1.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Xs=="function")for(var c=0;c<a.length;c++)v1.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var Xf=zf,Pi=Ok,nD=Uk,rD=Xf("%TypeError%"),Za=Xf("%WeakMap%",!0),eo=Xf("%Map%",!0),iD=Pi("WeakMap.prototype.get",!0),aD=Pi("WeakMap.prototype.set",!0),oD=Pi("WeakMap.prototype.has",!0),uD=Pi("Map.prototype.get",!0),sD=Pi("Map.prototype.set",!0),cD=Pi("Map.prototype.has",!0),Qf=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},lD=function(e,t){var n=Qf(e,t);return n&&n.value},fD=function(e,t,n){var r=Qf(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},dD=function(e,t){return!!Qf(e,t)},pD=function(){var t,n,r,i={assert:function(a){if(!i.has(a))throw new rD("Side channel does not contain "+nD(a))},get:function(a){if(Za&&a&&(typeof a=="object"||typeof a=="function")){if(t)return iD(t,a)}else if(eo){if(n)return uD(n,a)}else if(r)return lD(r,a)},has:function(a){if(Za&&a&&(typeof a=="object"||typeof a=="function")){if(t)return oD(t,a)}else if(eo){if(n)return cD(n,a)}else if(r)return dD(r,a);return!1},set:function(a,o){Za&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Za),aD(t,a,o)):eo?(n||(n=new eo),sD(n,a,o)):(r||(r={key:{},next:null}),fD(r,a,o))}};return i},vD=String.prototype.replace,hD=/%20/g,Js={RFC1738:"RFC1738",RFC3986:"RFC3986"},Jf={default:Js.RFC3986,formatters:{RFC1738:function(e){return vD.call(e,hD,"+")},RFC3986:function(e){return String(e)}},RFC1738:Js.RFC1738,RFC3986:Js.RFC3986},mD=Jf,Zs=Object.prototype.hasOwnProperty,ir=Array.isArray,Ht=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),gD=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(ir(r)){for(var i=[],a=0;a<r.length;++a)typeof r[a]<"u"&&i.push(r[a]);n.obj[n.prop]=i}}},b1=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},yD=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(ir(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Zs.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return ir(t)&&!ir(n)&&(i=b1(t,r)),ir(t)&&ir(n)?(n.forEach(function(a,o){if(Zs.call(t,o)){var u=t[o];u&&typeof u=="object"&&a&&typeof a=="object"?t[o]=e(u,a,r):t.push(a)}else t[o]=a}),t):Object.keys(n).reduce(function(a,o){var u=n[o];return Zs.call(a,o)?a[o]=e(a[o],u,r):a[o]=u,a},i)},bD=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},_D=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},ED=function(t,n,r,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var u="",s=0;s<o.length;++s){var c=o.charCodeAt(s);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===mD.RFC1738&&(c===40||c===41)){u+=o.charAt(s);continue}if(c<128){u=u+Ht[c];continue}if(c<2048){u=u+(Ht[192|c>>6]+Ht[128|c&63]);continue}if(c<55296||c>=57344){u=u+(Ht[224|c>>12]+Ht[128|c>>6&63]+Ht[128|c&63]);continue}s+=1,c=65536+((c&1023)<<10|o.charCodeAt(s)&1023),u+=Ht[240|c>>18]+Ht[128|c>>12&63]+Ht[128|c>>6&63]+Ht[128|c&63]}return u},SD=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var a=n[i],o=a.obj[a.prop],u=Object.keys(o),s=0;s<u.length;++s){var c=u[s],f=o[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:o,prop:c}),r.push(f))}return gD(n),t},wD=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},OD=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},TD=function(t,n){return[].concat(t,n)},AD=function(t,n){if(ir(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},_1={arrayToObject:b1,assign:bD,combine:TD,compact:SD,decode:_D,encode:ED,isBuffer:OD,isRegExp:wD,maybeMap:AD,merge:yD},E1=pD,Ro=_1,da=Jf,CD=Object.prototype.hasOwnProperty,sh={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Jt=Array.isArray,ID=Array.prototype.push,S1=function(e,t){ID.apply(e,Jt(t)?t:[t])},RD=Date.prototype.toISOString,ch=da.default,Xe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ro.encode,encodeValuesOnly:!1,format:ch,formatter:da.formatters[ch],indices:!1,serializeDate:function(t){return RD.call(t)},skipNulls:!1,strictNullHandling:!1},PD=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ec={},ND=function e(t,n,r,i,a,o,u,s,c,f,l,d,p,v,h,_){for(var g=t,b=_,y=0,m=!1;(b=b.get(ec))!==void 0&&!m;){var E=b.get(t);if(y+=1,typeof E<"u"){if(E===y)throw new RangeError("Cyclic object value");m=!0}typeof b.get(ec)>"u"&&(y=0)}if(typeof s=="function"?g=s(n,g):g instanceof Date?g=l(g):r==="comma"&&Jt(g)&&(g=Ro.maybeMap(g,function(R){return R instanceof Date?l(R):R})),g===null){if(a)return u&&!v?u(n,Xe.encoder,h,"key",d):n;g=""}if(PD(g)||Ro.isBuffer(g)){if(u){var w=v?n:u(n,Xe.encoder,h,"key",d);return[p(w)+"="+p(u(g,Xe.encoder,h,"value",d))]}return[p(n)+"="+p(String(g))]}var O=[];if(typeof g>"u")return O;var S;if(r==="comma"&&Jt(g))v&&u&&(g=Ro.maybeMap(g,u)),S=[{value:g.length>0?g.join(",")||null:void 0}];else if(Jt(s))S=s;else{var A=Object.keys(g);S=c?A.sort(c):A}for(var C=i&&Jt(g)&&g.length===1?n+"[]":n,N=0;N<S.length;++N){var L=S[N],k=typeof L=="object"&&typeof L.value<"u"?L.value:g[L];if(!(o&&k===null)){var P=Jt(g)?typeof r=="function"?r(C,L):C:C+(f?"."+L:"["+L+"]");_.set(t,y);var I=E1();I.set(ec,_),S1(O,e(k,P,r,i,a,o,r==="comma"&&v&&Jt(g)?null:u,s,c,f,l,d,p,v,h,I))}}return O},LD=function(t){if(!t)return Xe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Xe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=da.default;if(typeof t.format<"u"){if(!CD.call(da.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=da.formatters[r],a=Xe.filter;return(typeof t.filter=="function"||Jt(t.filter))&&(a=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Xe.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Xe.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Xe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Xe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Xe.encode,encoder:typeof t.encoder=="function"?t.encoder:Xe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Xe.encodeValuesOnly,filter:a,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Xe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Xe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Xe.strictNullHandling}},MD=function(e,t){var n=e,r=LD(t),i,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):Jt(r.filter)&&(a=r.filter,i=a);var o=[];if(typeof n!="object"||n===null)return"";var u;t&&t.arrayFormat in sh?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var s=sh[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=s==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=E1(),l=0;l<i.length;++l){var d=i[l];r.skipNulls&&n[d]===null||S1(o,ND(n[d],d,s,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var p=o.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),p.length>0?v+p:""},vi=_1,sl=Object.prototype.hasOwnProperty,kD=Array.isArray,Be={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:vi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},DD=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},w1=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},FD="utf8=%26%2310003%3B",UD="utf8=%E2%9C%93",jD=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=i.split(n.delimiter,a),u=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<o.length;++s)o[s].indexOf("utf8=")===0&&(o[s]===UD?c="utf-8":o[s]===FD&&(c="iso-8859-1"),u=s,s=o.length);for(s=0;s<o.length;++s)if(s!==u){var f=o[s],l=f.indexOf("]="),d=l===-1?f.indexOf("="):l+1,p,v;d===-1?(p=n.decoder(f,Be.decoder,c,"key"),v=n.strictNullHandling?null:""):(p=n.decoder(f.slice(0,d),Be.decoder,c,"key"),v=vi.maybeMap(w1(f.slice(d+1),n),function(h){return n.decoder(h,Be.decoder,c,"value")})),v&&n.interpretNumericEntities&&c==="iso-8859-1"&&(v=DD(v)),f.indexOf("[]=")>-1&&(v=kD(v)?[v]:v),sl.call(r,p)?r[p]=vi.combine(r[p],v):r[p]=v}return r},$D=function(e,t,n,r){for(var i=r?t:w1(t,n),a=e.length-1;a>=0;--a){var o,u=e[a];if(u==="[]"&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var s=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,c=parseInt(s,10);!n.parseArrays&&s===""?o={0:i}:!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=i):s!=="__proto__"&&(o[s]=i)}i=o}return i},xD=function(t,n,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=r.depth>0&&o.exec(a),c=s?a.slice(0,s.index):a,f=[];if(c){if(!r.plainObjects&&sl.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var l=0;r.depth>0&&(s=u.exec(a))!==null&&l<r.depth;){if(l+=1,!r.plainObjects&&sl.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+a.slice(s.index)+"]"),$D(f,n,r,i)}},BD=function(t){if(!t)return Be;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Be.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Be.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Be.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Be.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Be.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Be.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Be.comma,decoder:typeof t.decoder=="function"?t.decoder:Be.decoder,delimiter:typeof t.delimiter=="string"||vi.isRegExp(t.delimiter)?t.delimiter:Be.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Be.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Be.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Be.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Be.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Be.strictNullHandling}},HD=function(e,t){var n=BD(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?jD(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),o=0;o<a.length;++o){var u=a[o],s=xD(u,r[u],n,typeof e=="string");i=vi.merge(i,s,n)}return n.allowSparse===!0?i:vi.compact(i)},KD=MD,GD=HD,WD=Jf,zD={formats:WD,parse:GD,stringify:KD};const qD=gr(zD);var Zf={exports:{}};class O1 extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const YD=({limit:e,interval:t,strict:n})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const r=new Map;let i=0,a=0;function o(){const f=Date.now();return f-i>t?(a=1,i=f,0):(a<e?a++:(i+=t,a=1),i-f)}const u=[];function s(){const f=Date.now();if(u.length<e)return u.push(f),0;const l=u.shift()+t;return f>=l?(u.push(f),0):(u.push(l),l-f)}const c=n?s:o;return f=>{const l=function(...d){if(!l.isEnabled)return(async()=>f.apply(this,d))();let p;return new Promise((v,h)=>{p=setTimeout(()=>{v(f.apply(this,d)),r.delete(p)},c()),r.set(p,h)})};return l.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new O1);r.clear(),u.splice(0,u.length)},l.isEnabled=!0,l}};Zf.exports=YD;Zf.exports.AbortError=O1;var VD=Zf.exports;const XD=gr(VD);function QD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){JD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function ll(){ll=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var u=new RegExp(i,a);return t.set(u,o||t.get(i)),ou(u,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(u,s){var c=o[s];if(typeof c=="number")u[s]=i[c];else{for(var f=0;i[c[f]]===void 0&&f+1<c.length;)f++;u[s]=i[c[f]]}return u},Object.create(null))}return ZD(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);if(a){a.groups=r(a,this);var o=a.indices;o&&(o.groups=r(o,this))}return a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(s,c){var f=o[c];return"$"+(Array.isArray(f)?f.join("$"):f)}))}if(typeof a=="function"){var u=this;return e[Symbol.replace].call(this,i,function(){var s=arguments;return typeof s[s.length-1]!="object"&&(s=[].slice.call(s)).push(r(s,u)),a.apply(this,s)})}return e[Symbol.replace].call(this,i,a)},ll.apply(this,arguments)}function JD(e,t,n){return t=a3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}function ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ou(e,t)}function e3(e,t){return t3(e)||QD(e,t)||T1(e,t)||n3()}function t3(e){if(Array.isArray(e))return e}function T1(e,t){if(e){if(typeof e=="string")return fh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fh(e,t)}}function fh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r3(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=T1(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,u;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return a=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function i3(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a3(e){var t=i3(e,"string");return typeof t=="symbol"?t:String(t)}function o3(){return typeof process<"u"&&!process.browser}function u3(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function s3(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function c3(){return window}function fl(){}var dl=ll(/(\d+)(%)/,{value:1});function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(dl.test(e)){var r,i=(r=e.match(dl))===null||r===void 0?void 0:r.groups;if(i&&i.value){var a=parseInt(i.value)/100;n=Math.round(t*a)}}return Math.min(30,Math.max(1,n))}function dh(e,t){return t("info","Throttle request to ".concat(e,"/s")),XD({limit:e,interval:1e3,strict:!1})}var l3=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?fl:n,i=md(t)?tc(t):tc("auto",t),a=dh(i,r),o=!1,u=e.interceptors.request.use(function(c){return a(function(){return c})()},function(c){return Promise.reject(c)}),s=e.interceptors.response.use(function(c){if(!o&&md(t)&&(t==="auto"||dl.test(t))&&c.headers&&c.headers["x-contentful-ratelimit-second-limit"]){var f=parseInt(c.headers["x-contentful-ratelimit-second-limit"]),l=tc(t,f);l!==i&&(u&&e.interceptors.request.eject(u),i=l,a=dh(l,r),u=e.interceptors.request.use(function(d){return a(function(){return d})()},function(d){return Promise.reject(d)})),o=!0}return c},function(c){return Promise.reject(c)});return function(){e.interceptors.request.eject(u),e.interceptors.response.eject(s)}},f3=function(t){return new Promise(function(n){setTimeout(n,t)})},d3=function(t){return Math.pow(Math.SQRT2,t)};function p3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,i=r===void 0?fl:r,a=n.requestLogger,o=a===void 0?fl:a;e.interceptors.request.use(function(u){return o(u),u},function(u){return o(u),Promise.reject(u)}),e.interceptors.response.use(function(u){return i(u),u},function(u){var s=u.response,c=u.config;if(i(u),!c||!e.defaults.retryOnError)return Promise.reject(u);var f=c.attempts||1;if(f>t)return u.attempts=c.attempts,Promise.reject(u);var l=null,d=d3(f);return s?s.status>=500&&s.status<600?l="Server ".concat(s.status):s.status===429&&(l="Rate limit",s.headers&&u.response.headers["x-contentful-ratelimit-reset"]&&(d=s.headers["x-contentful-ratelimit-reset"])):l="Connection",l?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(l," error occurred. Waiting for ").concat(d," ms before retrying...")),c.attempts=f+1,delete c.httpAgent,delete c.httpsAgent,f3(d).then(function(){return e(c)})):Promise.reject(u)})}function v3(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=xr(xr({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var h3=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function A1(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(h,_){if(h==="error"&&_){var g=[_.name,_.message].filter(function(b){return b}).join(" - ");console.error("[error] ".concat(g)),console.error(_);return}console.log("[".concat(h,"] ").concat(_))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},r=xr(xr({},n),t);if(!r.accessToken){var i=new TypeError("Expected parameter accessToken");throw r.logHandler("error",i),i}var a=r.insecure?"http":"https",o=r.space?"".concat(r.space,"/"):"",u=r.defaultHostname,s=r.insecure?80:443;if(r.host&&h3.test(r.host)){var c=r.host.split(":");if(c.length===2){var f=e3(c,2);u=f[0],s=f[1]}else u=c[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var l=t.baseURL||"".concat(a,"://").concat(u,":").concat(s).concat(r.basePath,"/spaces/").concat(o);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:l,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:qD.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},p=e.create(d);return p.httpClientParams=t,p.cloneWithNewParams=function(v){return A1(e,xr(xr({},je(t)),v))},r.onBeforeRequest&&p.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&v3(p,r.accessToken),r.throttle&&l3(p,r.throttle),p3(p,r.retryLimit),r.onError&&p.interceptors.response.use(function(v){return v},r.onError),p}function tr(e){var t=e.query,n={};return delete t.resolveLinks,n.params=je(t),n}function C1(e){var t=Object.getOwnPropertyNames(e),n=r3(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=e[i];a&&cl(a)==="object"&&C1(a)}}catch(o){n.e(o)}finally{n.f()}return Object.freeze(e)}function Et(e){return C1(e.sys||{}),e}function ph(){var e=c3();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":a.indexOf(n)!==-1?"iOS":i.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function m3(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function g3(e,t,n,r){var i=[];t&&i.push("app ".concat(t)),n&&i.push("integration ".concat(n)),r&&i.push("feature "+r),i.push("sdk ".concat(e));var a=null;try{u3()?(a=ph(),i.push("platform ReactNative")):o3()?(a=m3(),i.push("platform node.js/".concat(s3()))):(a=ph(),i.push("platform browser"))}catch{a=null}return a&&i.push("os ".concat(a)),"".concat(i.filter(function(o){return o!==""}).join("; "),";")}function ct(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return je(this)}})}function Nt(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var i="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(i)}if(!Wa(n)||!Wa(t))throw e;var a=n==null?void 0:n.data,o={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};Wa(t)&&(o.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),a&&Wa(a)&&("requestId"in a&&(o.requestId=a.requestId||"UNKNOWN"),"message"in a&&(o.message=a.message||""),"details"in a&&(o.details=a.details||{}),"sys"in a&&"id"in a.sys&&(r=a.sys.id));var u=new Error;u.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{u.message=JSON.stringify(o,null," ")}catch{var s;u.message=(s=o==null?void 0:o.message)!==null&&s!==void 0?s:""}throw u}function y3(e){return Et(ct(e))}const b3=Object.freeze(Object.defineProperty({__proto__:null,wrapSpace:y3},Symbol.toStringTag,{value:"Module"}));var pl={exports:{}};(function(e,t){t=e.exports=n,t.getSerialize=r;function n(i,a,o,u){return JSON.stringify(i,r(a,u),o)}function r(i,a){var o=[],u=[];return a==null&&(a=function(s,c){return o[0]===c?"[Circular ~]":"[Circular ~."+u.slice(0,o.indexOf(c)).join(".")+"]"}),function(s,c){if(o.length>0){var f=o.indexOf(this);~f?o.splice(f+1):o.push(this),~f?u.splice(f,1/0,s):u.push(s),~o.indexOf(c)&&(c=a.call(this,s,c))}else o.push(c);return i==null?c:i.call(this,s,c)}}})(pl,pl.exports);var _3=pl.exports;const E3=gr(_3);function I1(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return E3(this,t,n,(r,i)=>({sys:{type:"Link",linkType:"Entry",id:i.sys.id,circular:!0}}))}})}var S3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w3=function(){function e(t,n){var r=[],i=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),s;!(i=(s=u.next()).done)&&(r.push(s.value),!(n&&r.length===n));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Yi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var Oa={},O3=function(t){return t&&t.sys&&t.sys.type==="Link"},T3=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},A3=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},vh=function(t,n){var r=n.entryId,i=n.linkType,a=n.spaceId,o=n.environmentId;return a&&o?t.get(a+"!"+o+"!"+i+"!"+r):t.get(i+"!"+r)},C3=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),i=w3(r,4);i[0];var a=i[1],o=i[2],u=o===void 0?"master":o,s=i[3];return{spaceId:a,environmentId:u,entryId:s}}},I3=function(t,n){var r=n.sys,i=r.type,a=r.linkType;if(i==="ResourceLink"){var o=n.sys.urn,u=C3(o),s=u.spaceId,c=u.environmentId,f=u.entryId,l=a.split(":")[1];return vh(t,{linkType:l,entryId:f,spaceId:s,environmentId:c})||Oa}var d=n.sys.id;return vh(t,{linkType:a,entryId:d})||Oa},R3=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==Oa});for(var n in t)t[n]===Oa&&delete t[n];return t},P3=function e(t,n,r,i){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":S3(t))==="object"){for(var a in t)t.hasOwnProperty(a)&&(t[a]=e(t[a],n,r,i));i&&(t=R3(t))}return t},N3=function(t,n,r){var i=I3(t,n);return i===Oa?r?i:n:i},L3=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(i){return n.indexOf(i)!==-1});return r.reduce(function(i,a){return i[a]=t[a],i},{})},R1=function(t,n){if(n=n||{},!t.items)return[];var r=je(t),i=Object.keys(r.includes||{}).reduce(function(u,s){return[].concat(Yi(u),Yi(t.includes[s]))},[]),a=[].concat(Yi(r.items),Yi(i)).filter(function(u){return!!u.sys}),o=new Map(a.reduce(function(u,s){var c=A3(s.sys).map(function(f){return[f,s]});return u.push.apply(u,Yi(c)),u},[]));return a.forEach(function(u){var s=L3(u,n.itemEntryPoints);Object.assign(u,P3(s,function(c){return O3(c)||T3(c)},function(c){return N3(o,c,n.removeUnresolved)},n.removeUnresolved))}),r.items};function M3(e){return Et(ct(je(e)))}function k3(e,t){let{resolveLinks:n,removeUnresolved:r}=t;const i=I1(ct(je(e)));return n&&(i.items=R1(i,{removeUnresolved:r,itemEntryPoints:["fields"]})),Et(i)}const D3=Object.freeze(Object.defineProperty({__proto__:null,wrapEntry:M3,wrapEntryCollection:k3},Symbol.toStringTag,{value:"Module"}));function F3(e){return Et(ct(je(e)))}function U3(e){return Et(ct(je(e)))}const j3=Object.freeze(Object.defineProperty({__proto__:null,wrapAsset:F3,wrapAssetCollection:U3},Symbol.toStringTag,{value:"Module"}));function $3(e){return Et(ct(je(e)))}const x3=Object.freeze(Object.defineProperty({__proto__:null,wrapAssetKey:$3},Symbol.toStringTag,{value:"Module"}));function B3(e){return Et(ct(je(e)))}function H3(e){return Et(ct(je(e)))}const K3=Object.freeze(Object.defineProperty({__proto__:null,wrapContentType:B3,wrapContentTypeCollection:H3},Symbol.toStringTag,{value:"Module"}));function G3(e){return Et(ct(je(e)))}function W3(e){return Et(ct(je(e)))}const z3=Object.freeze(Object.defineProperty({__proto__:null,wrapLocale:G3,wrapLocaleCollection:W3},Symbol.toStringTag,{value:"Module"}));function q3(e){return Et(ct(je(e)))}function Y3(e){return Et(ct(je(e)))}const V3=Object.freeze(Object.defineProperty({__proto__:null,wrapTag:q3,wrapTagCollection:Y3},Symbol.toStringTag,{value:"Module"})),Jn={space:b3,entry:D3,asset:j3,assetKey:x3,contentType:K3,locale:z3,tag:V3};function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hh(Object(n),!0).forEach(function(r){X3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X3(e,t,n){return t=Q3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q3(e){var t=J3(e,"string");return typeof t=="symbol"?t:String(t)}function J3(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}async function Z3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t&&t.content_type&&!t.type)t.type="Entry";else if(t&&t.content_type&&t.type&&t.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const r={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:i,removeUnresolved:a,paginate:o}=mh(mh({},r),n),s=await P1(e,[],t,{paginate:o});i&&(s.items=R1(s,{removeUnresolved:a,itemEntryPoints:["fields"]}));const c=eF(s.items);return s.nextSyncToken&&(c.nextSyncToken=s.nextSyncToken),s.nextPageToken&&(c.nextPageToken=s.nextPageToken),Et(I1(ct(c)))}function eF(e){const t=n=>(r,i)=>(i.sys.type===n&&r.push(ct(i)),r);return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}async function P1(e,t,n,r){let{paginate:i}=r;n.nextSyncToken&&(n.sync_token=n.nextSyncToken,delete n.nextSyncToken),n.nextPageToken&&(n.sync_token=n.nextPageToken,delete n.nextPageToken),n.sync_token&&(delete n.initial,delete n.type,delete n.content_type,delete n.limit);const o=(await e.get("sync",tr({query:n}))).data||{};return t=t.concat(o.items||[]),o.nextPageUrl?i?(delete n.initial,n.sync_token=nc(o.nextPageUrl),P1(e,t,n,{paginate:i})):{items:t,nextPageToken:nc(o.nextPageUrl)}:o.nextSyncUrl?{items:t,nextSyncToken:nc(o.nextSyncUrl)}:{items:[]}}function nc(e){const t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach(function(r){tF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tF(e,t,n){return t=nF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nF(e){var t=rF(e,"string");return typeof t=="symbol"?t:String(t)}function rF(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function to(e){if(!e.select)return e;const t=Array.isArray(e.select)?e.select:e.select.split(",").map(r=>r.trim()),n=new Set(t);return n.has("sys")?e:(n.add("sys.id"),n.add("sys.type"),yh(yh({},e),{},{select:[...n].join(",")}))}class rc extends Error{constructor(t,n){super(`Invalid "${t}" provided, `+n),this.name="ValidationError"}}function iF(e,t,n){if(n=n||{},typeof t!="number")throw new rc(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new rc(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&t<n.now)throw new rc(e,`value (${t}) cannot be in the past, current time was ${n.now}`)}function bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(n),!0).forEach(function(r){aF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aF(e,t,n){return t=oF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oF(e){var t=uF(e,"string");return typeof t=="symbol"?t:String(t)}function uF(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const sF=48*60*60;function cF(e){let{http:t,getGlobalOptions:n}=e;const{wrapSpace:r}=Jn.space,{wrapContentType:i,wrapContentTypeCollection:a}=Jn.contentType,{wrapEntry:o,wrapEntryCollection:u}=Jn.entry,{wrapAsset:s,wrapAssetCollection:c}=Jn.asset,{wrapTag:f,wrapTagCollection:l}=Jn.tag,{wrapAssetKey:d}=Jn.assetKey,{wrapLocaleCollection:p}=Jn.locale,v=P=>{const I=new Error("The resource could not be found.");return I.sys={type:"Error",id:"NotFound"},I.details={type:"Entry",id:P,environment:n().environment,space:n().space},I};async function h(){k(t);try{const P=await t.get("/");return r(P.data)}catch(P){Nt(P)}}async function _(P){L(t);try{const I=await t.get(`content_types/${P}`);return i(I.data)}catch(I){Nt(I)}}async function g(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(t);try{const I=await t.get("content_types",tr({query:P}));return a(I.data)}catch(I){Nt(I)}}async function b(P){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!P)throw v(P);try{const R=await this.getEntries(_h({"sys.id":P},I));if(R.items.length>0)return o(R.items[0]);throw v(P)}catch(R){Nt(R)}}async function y(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(t);const{resolveLinks:I,removeUnresolved:R}=n(P);P=to(P);try{const M=await t.get("entries",tr({query:P}));return u(M.data,{resolveLinks:I,removeUnresolved:R})}catch(M){Nt(M)}}async function m(P){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L(t),I=to(I);try{const R=await t.get(`assets/${P}`,tr({query:I}));return s(R.data)}catch(R){Nt(R)}}async function E(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(t),P=to(P);try{const I=await t.get("assets",tr({query:P}));return c(I.data)}catch(I){Nt(I)}}async function w(P){L(t);try{const I=await t.get(`tags/${P}`);return f(I.data)}catch(I){Nt(I)}}async function O(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(t),P=to(P);try{const I=await t.get("tags",tr({query:P}));return l(I.data)}catch(I){Nt(I)}}async function S(P){L(t);try{const I=Math.floor(Date.now()/1e3),R=I+sF;iF("expiresAt",P,{maximum:R,now:I});const M={expiresAt:P},D=await t.post("asset_keys",M);return d(D.data)}catch(I){Nt(I)}}async function A(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(t);try{const I=await t.get("locales",tr({query:P}));return p(I.data)}catch(I){Nt(I)}}async function C(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:R,removeUnresolved:M}=n(P);return L(t),Z3(t,P,_h({resolveLinks:R,removeUnresolved:M},I))}function N(P){const{resolveLinks:I,removeUnresolved:R}=n({});return u(P,{resolveLinks:I,removeUnresolved:R})}function L(P){P.defaults.baseURL=n().environmentBaseUrl}function k(P){P.defaults.baseURL=n().spaceBaseUrl}return{getSpace:h,getContentType:_,getContentTypes:g,getEntry:b,getEntries:y,getAsset:m,getAssets:E,getTag:w,getTags:O,createAssetKey:S,getLocales:A,parseEntries:N,sync:C}}function lF(e){return function(n){return Object.assign({},e,n)}}function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(n),!0).forEach(function(r){fF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fF(e,t,n){return t=dF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dF(e){var t=pF(e,"string");return typeof t=="symbol"?t:String(t)}function pF(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZU(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");const n=no(no({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),r=g3("contentful.js/9.3.5",n.application,n.integration);n.headers=no(no({},n.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});const i=A1(FM,n),a=lF({resolveLinks:n.resolveLinks,environment:n.environment,removeUnresolved:n.removeUnresolved,spaceBaseUrl:i.defaults.baseURL,environmentBaseUrl:`${i.defaults.baseURL}environments/${n.environment}`});return i.defaults.baseURL=a().environmentBaseUrl,cF({http:i,getGlobalOptions:a})}var vF={};const N1=Jh(ni);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P){return P&&typeof P=="object"&&"default"in P?P.default:P}var n=N1,r=t(n),i=function(){return i=Object.assign||function(I){for(var R,M=1,D=arguments.length;M<D;M++){R=arguments[M];for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&(I[j]=R[j])}return I},i.apply(this,arguments)},a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof J<"u"?J:typeof self<"u"?self:{};function o(P){return P&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P}function u(P,I){return I={exports:{}},P(I,I.exports),I.exports}var s=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0}),I.BLOCKS=void 0,function(R){R.DOCUMENT="document",R.PARAGRAPH="paragraph",R.HEADING_1="heading-1",R.HEADING_2="heading-2",R.HEADING_3="heading-3",R.HEADING_4="heading-4",R.HEADING_5="heading-5",R.HEADING_6="heading-6",R.OL_LIST="ordered-list",R.UL_LIST="unordered-list",R.LIST_ITEM="list-item",R.HR="hr",R.QUOTE="blockquote",R.EMBEDDED_ENTRY="embedded-entry-block",R.EMBEDDED_ASSET="embedded-asset-block",R.EMBEDDED_RESOURCE="embedded-resource-block",R.TABLE="table",R.TABLE_ROW="table-row",R.TABLE_CELL="table-cell",R.TABLE_HEADER_CELL="table-header-cell"}(I.BLOCKS||(I.BLOCKS={}))});o(s),s.BLOCKS;var c=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0}),I.INLINES=void 0,function(R){R.HYPERLINK="hyperlink",R.ENTRY_HYPERLINK="entry-hyperlink",R.ASSET_HYPERLINK="asset-hyperlink",R.RESOURCE_HYPERLINK="resource-hyperlink",R.EMBEDDED_ENTRY="embedded-entry-inline",R.EMBEDDED_RESOURCE="embedded-resource-inline"}(I.INLINES||(I.INLINES={}))});o(c),c.INLINES;var f=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0});var R;(function(M){M.BOLD="bold",M.ITALIC="italic",M.UNDERLINE="underline",M.CODE="code",M.SUPERSCRIPT="superscript",M.SUBSCRIPT="subscript"})(R||(R={})),I.default=R});o(f);var l=u(function(P,I){var R=a&&a.__spreadArray||function(x,W,K){if(K||arguments.length===2)for(var B=0,$=W.length,H;B<$;B++)(H||!(B in W))&&(H||(H=Array.prototype.slice.call(W,0,B)),H[B]=W[B]);return x.concat(H||Array.prototype.slice.call(W))},M=a&&a.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},D;Object.defineProperty(I,"__esModule",{value:!0}),I.V1_MARKS=I.V1_NODE_TYPES=I.TEXT_CONTAINERS=I.HEADINGS=I.CONTAINERS=I.VOID_BLOCKS=I.TABLE_BLOCKS=I.LIST_ITEM_BLOCKS=I.TOP_LEVEL_BLOCKS=void 0;var j=M(f);I.TOP_LEVEL_BLOCKS=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE,s.BLOCKS.TABLE],I.LIST_ITEM_BLOCKS=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],I.TABLE_BLOCKS=[s.BLOCKS.TABLE,s.BLOCKS.TABLE_ROW,s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL],I.VOID_BLOCKS=[s.BLOCKS.HR,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],I.CONTAINERS=(D={},D[s.BLOCKS.OL_LIST]=[s.BLOCKS.LIST_ITEM],D[s.BLOCKS.UL_LIST]=[s.BLOCKS.LIST_ITEM],D[s.BLOCKS.LIST_ITEM]=I.LIST_ITEM_BLOCKS,D[s.BLOCKS.QUOTE]=[s.BLOCKS.PARAGRAPH],D[s.BLOCKS.TABLE]=[s.BLOCKS.TABLE_ROW],D[s.BLOCKS.TABLE_ROW]=[s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL],D[s.BLOCKS.TABLE_CELL]=[s.BLOCKS.PARAGRAPH],D[s.BLOCKS.TABLE_HEADER_CELL]=[s.BLOCKS.PARAGRAPH],D),I.HEADINGS=[s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6],I.TEXT_CONTAINERS=R([s.BLOCKS.PARAGRAPH],I.HEADINGS,!0),I.V1_NODE_TYPES=[s.BLOCKS.DOCUMENT,s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.LIST_ITEM,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,c.INLINES.HYPERLINK,c.INLINES.ENTRY_HYPERLINK,c.INLINES.ASSET_HYPERLINK,c.INLINES.EMBEDDED_ENTRY,"text"],I.V1_MARKS=[j.default.BOLD,j.default.CODE,j.default.ITALIC,j.default.UNDERLINE]});o(l),l.V1_MARKS,l.V1_NODE_TYPES,l.TEXT_CONTAINERS,l.HEADINGS,l.CONTAINERS,l.VOID_BLOCKS,l.TABLE_BLOCKS,l.LIST_ITEM_BLOCKS,l.TOP_LEVEL_BLOCKS;var d=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0})});o(d);var p=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0})});o(p);var v=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0});var R={nodeType:s.BLOCKS.DOCUMENT,data:{},content:[{nodeType:s.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};I.default=R});o(v);var h=u(function(P,I){Object.defineProperty(I,"__esModule",{value:!0}),I.isText=I.isBlock=I.isInline=void 0;function R(x,W){for(var K=0,B=Object.keys(x);K<B.length;K++){var $=B[K];if(W===x[$])return!0}return!1}function M(x){return R(c.INLINES,x.nodeType)}I.isInline=M;function D(x){return R(s.BLOCKS,x.nodeType)}I.isBlock=D;function j(x){return x.nodeType==="text"}I.isText=j});o(h),h.isText,h.isBlock,h.isInline;var _=u(function(P,I){var R=a&&a.__createBinding||(Object.create?function(K,B,$,H){H===void 0&&(H=$);var Z=Object.getOwnPropertyDescriptor(B,$);(!Z||("get"in Z?!B.__esModule:Z.writable||Z.configurable))&&(Z={enumerable:!0,get:function(){return B[$]}}),Object.defineProperty(K,H,Z)}:function(K,B,$,H){H===void 0&&(H=$),K[H]=B[$]}),M=a&&a.__setModuleDefault||(Object.create?function(K,B){Object.defineProperty(K,"default",{enumerable:!0,value:B})}:function(K,B){K.default=B}),D=a&&a.__exportStar||function(K,B){for(var $ in K)$!=="default"&&!Object.prototype.hasOwnProperty.call(B,$)&&R(B,K,$)},j=a&&a.__importStar||function(K){if(K&&K.__esModule)return K;var B={};if(K!=null)for(var $ in K)$!=="default"&&Object.prototype.hasOwnProperty.call(K,$)&&R(B,K,$);return M(B,K),B},x=a&&a.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};Object.defineProperty(I,"__esModule",{value:!0}),I.helpers=I.EMPTY_DOCUMENT=I.MARKS=I.INLINES=I.BLOCKS=void 0,Object.defineProperty(I,"BLOCKS",{enumerable:!0,get:function(){return s.BLOCKS}}),Object.defineProperty(I,"INLINES",{enumerable:!0,get:function(){return c.INLINES}}),Object.defineProperty(I,"MARKS",{enumerable:!0,get:function(){return x(f).default}}),D(l,I),D(d,I),D(p,I),Object.defineProperty(I,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return x(v).default}});var W=j(h);I.helpers=W});o(_);var g=_.helpers;_.EMPTY_DOCUMENT;var b=_.MARKS,y=_.INLINES,m=_.BLOCKS;function E(P,I){return n.isValidElement(P)&&P.key===null?n.cloneElement(P,{key:I}):P}function w(P,I){return P.map(function(R,M){return E(O(R,I),M)})}function O(P,I){var R=I.renderNode,M=I.renderMark,D=I.renderText,j=I.preserveWhitespace;if(g.isText(P)){var x=D?D(P.value):P.value;if(j){x=x.replace(/ {2,}/g,function($){return"&nbsp;".repeat($.length)});var W=x.split(`
31
- `),K=[];W.forEach(function($,H){K.push($),H!==W.length-1&&K.push(r.createElement("br",null))}),x=K}return P.marks.reduce(function($,H){return M[H.type]?M[H.type]($):$},x)}else{var B=w(P.content,I);return!P.nodeType||!R[P.nodeType]?r.createElement(r.Fragment,null,B):R[P.nodeType](P,B)}}var S,A,C=(S={},S[m.DOCUMENT]=function(P,I){return I},S[m.PARAGRAPH]=function(P,I){return r.createElement("p",null,I)},S[m.HEADING_1]=function(P,I){return r.createElement("h1",null,I)},S[m.HEADING_2]=function(P,I){return r.createElement("h2",null,I)},S[m.HEADING_3]=function(P,I){return r.createElement("h3",null,I)},S[m.HEADING_4]=function(P,I){return r.createElement("h4",null,I)},S[m.HEADING_5]=function(P,I){return r.createElement("h5",null,I)},S[m.HEADING_6]=function(P,I){return r.createElement("h6",null,I)},S[m.EMBEDDED_ENTRY]=function(P,I){return r.createElement("div",null,I)},S[m.EMBEDDED_RESOURCE]=function(P,I){return r.createElement("div",null,I)},S[m.UL_LIST]=function(P,I){return r.createElement("ul",null,I)},S[m.OL_LIST]=function(P,I){return r.createElement("ol",null,I)},S[m.LIST_ITEM]=function(P,I){return r.createElement("li",null,I)},S[m.QUOTE]=function(P,I){return r.createElement("blockquote",null,I)},S[m.HR]=function(){return r.createElement("hr",null)},S[m.TABLE]=function(P,I){return r.createElement("table",null,r.createElement("tbody",null,I))},S[m.TABLE_ROW]=function(P,I){return r.createElement("tr",null,I)},S[m.TABLE_HEADER_CELL]=function(P,I){return r.createElement("th",null,I)},S[m.TABLE_CELL]=function(P,I){return r.createElement("td",null,I)},S[y.ASSET_HYPERLINK]=function(P){return L(y.ASSET_HYPERLINK,P)},S[y.ENTRY_HYPERLINK]=function(P){return L(y.ENTRY_HYPERLINK,P)},S[y.EMBEDDED_ENTRY]=function(P){return L(y.EMBEDDED_ENTRY,P)},S[y.HYPERLINK]=function(P,I){return r.createElement("a",{href:P.data.uri},I)},S),N=(A={},A[b.BOLD]=function(P){return r.createElement("b",null,P)},A[b.ITALIC]=function(P){return r.createElement("i",null,P)},A[b.UNDERLINE]=function(P){return r.createElement("u",null,P)},A[b.CODE]=function(P){return r.createElement("code",null,P)},A[b.SUPERSCRIPT]=function(P){return r.createElement("sup",null,P)},A[b.SUBSCRIPT]=function(P){return r.createElement("sub",null,P)},A);function L(P,I){return r.createElement("span",{key:I.data.target.sys.id},"type: ",I.nodeType," id: ",I.data.target.sys.id)}function k(P,I){return I===void 0&&(I={}),P?O(P,{renderNode:i(i({},C),I.renderNode),renderMark:i(i({},N),I.renderMark),renderText:I.renderText,preserveWhitespace:I.preserveWhitespace}):null}e.documentToReactComponents=k})(vF);var hF={},ja={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BLOCKS=void 0,function(t){t.DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell"}(e.BLOCKS||(e.BLOCKS={}))})(ja);var $u={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INLINES=void 0,function(t){t.HYPERLINK="hyperlink",t.ENTRY_HYPERLINK="entry-hyperlink",t.ASSET_HYPERLINK="asset-hyperlink",t.RESOURCE_HYPERLINK="resource-hyperlink",t.EMBEDDED_ENTRY="embedded-entry-inline",t.EMBEDDED_RESOURCE="embedded-resource-inline"}(e.INLINES||(e.INLINES={}))})($u);var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var vl;(function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript"})(vl||(vl={}));xu.default=vl;var L1={};(function(e){var t=J&&J.__spreadArray||function(u,s,c){if(c||arguments.length===2)for(var f=0,l=s.length,d;f<l;f++)(d||!(f in s))&&(d||(d=Array.prototype.slice.call(s,0,f)),d[f]=s[f]);return u.concat(d||Array.prototype.slice.call(s))},n=J&&J.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},r;Object.defineProperty(e,"__esModule",{value:!0}),e.V1_MARKS=e.V1_NODE_TYPES=e.TEXT_CONTAINERS=e.HEADINGS=e.CONTAINERS=e.VOID_BLOCKS=e.TABLE_BLOCKS=e.LIST_ITEM_BLOCKS=e.TOP_LEVEL_BLOCKS=void 0;var i=ja,a=$u,o=n(xu);e.TOP_LEVEL_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE,i.BLOCKS.TABLE],e.LIST_ITEM_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE],e.TABLE_BLOCKS=[i.BLOCKS.TABLE,i.BLOCKS.TABLE_ROW,i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],e.VOID_BLOCKS=[i.BLOCKS.HR,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE],e.CONTAINERS=(r={},r[i.BLOCKS.OL_LIST]=[i.BLOCKS.LIST_ITEM],r[i.BLOCKS.UL_LIST]=[i.BLOCKS.LIST_ITEM],r[i.BLOCKS.LIST_ITEM]=e.LIST_ITEM_BLOCKS,r[i.BLOCKS.QUOTE]=[i.BLOCKS.PARAGRAPH],r[i.BLOCKS.TABLE]=[i.BLOCKS.TABLE_ROW],r[i.BLOCKS.TABLE_ROW]=[i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],r[i.BLOCKS.TABLE_CELL]=[i.BLOCKS.PARAGRAPH],r[i.BLOCKS.TABLE_HEADER_CELL]=[i.BLOCKS.PARAGRAPH],r),e.HEADINGS=[i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6],e.TEXT_CONTAINERS=t([i.BLOCKS.PARAGRAPH],e.HEADINGS,!0),e.V1_NODE_TYPES=[i.BLOCKS.DOCUMENT,i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.LIST_ITEM,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,a.INLINES.HYPERLINK,a.INLINES.ENTRY_HYPERLINK,a.INLINES.ASSET_HYPERLINK,a.INLINES.EMBEDDED_ENTRY,"text"],e.V1_MARKS=[o.default.BOLD,o.default.CODE,o.default.ITALIC,o.default.UNDERLINE]})(L1);var M1={};Object.defineProperty(M1,"__esModule",{value:!0});var k1={};Object.defineProperty(k1,"__esModule",{value:!0});var ed={};Object.defineProperty(ed,"__esModule",{value:!0});var Sh=ja,mF={nodeType:Sh.BLOCKS.DOCUMENT,data:{},content:[{nodeType:Sh.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};ed.default=mF;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.isText=Dn.isBlock=Dn.isInline=void 0;var gF=ja,yF=$u;function D1(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t===e[i])return!0}return!1}function bF(e){return D1(yF.INLINES,e.nodeType)}Dn.isInline=bF;function _F(e){return D1(gF.BLOCKS,e.nodeType)}Dn.isBlock=_F;function EF(e){return e.nodeType==="text"}Dn.isText=EF;(function(e){var t=J&&J.__createBinding||(Object.create?function(l,d,p,v){v===void 0&&(v=p);var h=Object.getOwnPropertyDescriptor(d,p);(!h||("get"in h?!d.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return d[p]}}),Object.defineProperty(l,v,h)}:function(l,d,p,v){v===void 0&&(v=p),l[v]=d[p]}),n=J&&J.__setModuleDefault||(Object.create?function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}:function(l,d){l.default=d}),r=J&&J.__exportStar||function(l,d){for(var p in l)p!=="default"&&!Object.prototype.hasOwnProperty.call(d,p)&&t(d,l,p)},i=J&&J.__importStar||function(l){if(l&&l.__esModule)return l;var d={};if(l!=null)for(var p in l)p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)&&t(d,l,p);return n(d,l),d},a=J&&J.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.helpers=e.EMPTY_DOCUMENT=e.MARKS=e.INLINES=e.BLOCKS=void 0;var o=ja;Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return o.BLOCKS}});var u=$u;Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return u.INLINES}});var s=xu;Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return a(s).default}}),r(L1,e),r(M1,e),r(k1,e);var c=ed;Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return a(c).default}});var f=i(Dn);e.helpers=f})(hF);var SF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",n="briefcase",r=512,i=512,a=[128188],o="f0b1",u="M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96H64C28.7 96 0 124.7 0 160v96H192 320 512V160c0-35.3-28.7-64-64-64H384V56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM512 288H320v32c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32V288H0V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V288z";e.definition={prefix:t,iconName:n,icon:[r,i,a,o,u]},e.faBriefcase=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=u,e.aliases=a})(SF);var wF={},F1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",n="heart-pulse",r=512,i=512,a=["heartbeat"],o="f21e",u="M228.3 469.1L47.6 300.4c-4.2-3.9-8.2-8.1-11.9-12.4h87c22.6 0 43-13.6 51.7-34.5l10.5-25.2 49.3 109.5c3.8 8.5 12.1 14 21.4 14.1s17.8-5 22-13.3L320 253.7l1.7 3.4c9.5 19 28.9 31 50.1 31H476.3c-3.7 4.3-7.7 8.5-11.9 12.4L283.7 469.1c-7.5 7-17.4 10.9-27.7 10.9s-20.2-3.9-27.7-10.9zM503.7 240h-132c-3 0-5.8-1.7-7.2-4.4l-23.2-46.3c-4.1-8.1-12.4-13.3-21.5-13.3s-17.4 5.1-21.5 13.3l-41.4 82.8L205.9 158.2c-3.9-8.7-12.7-14.3-22.2-14.1s-18.1 5.9-21.8 14.8l-31.8 76.3c-1.2 3-4.2 4.9-7.4 4.9H16c-2.6 0-5 .4-7.3 1.1C3 225.2 0 208.2 0 190.9v-5.8c0-69.9 50.5-129.5 119.4-141C165 36.5 211.4 51.4 244 84l12 12 12-12c32.6-32.6 79-47.5 124.6-39.9C461.5 55.6 512 115.2 512 185.1v5.8c0 16.9-2.8 33.5-8.3 49.1z";e.definition={prefix:t,iconName:n,icon:[r,i,a,o,u]},e.faHeartPulse=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=u,e.aliases=a})(F1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=F1;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faHeartbeat=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases})(wF);var OF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",n="spa",r=576,i=512,a=[],o="f5bb",u="M183.1 235.3c33.7 20.7 62.9 48.1 85.8 80.5c7 9.9 13.4 20.3 19.1 31c5.7-10.8 12.1-21.1 19.1-31c22.9-32.4 52.1-59.8 85.8-80.5C437.6 207.8 490.1 192 546 192h9.9c11.1 0 20.1 9 20.1 20.1C576 360.1 456.1 480 308.1 480H288 267.9C119.9 480 0 360.1 0 212.1C0 201 9 192 20.1 192H30c55.9 0 108.4 15.8 153.1 43.3zM301.5 37.6c15.7 16.9 61.1 71.8 84.4 164.6c-38 21.6-71.4 50.8-97.9 85.6c-26.5-34.8-59.9-63.9-97.9-85.6c23.2-92.8 68.6-147.7 84.4-164.6C278 33.9 282.9 32 288 32s10 1.9 13.5 5.6z";e.definition={prefix:t,iconName:n,icon:[r,i,a,o,u]},e.faSpa=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=u,e.aliases=a})(OF);var TF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",n="umbrella-beach",r=576,i=512,a=[127958],o="f5ca",u="M346.3 271.8l-60.1-21.9L214 448H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H282.1l64.1-176.2zm121.1-.2l-3.3 9.1 67.7 24.6c18.1 6.6 38-4.2 39.6-23.4c6.5-78.5-23.9-155.5-80.8-208.5c2 8 3.2 16.3 3.4 24.8l.2 6c1.8 57-7.3 113.8-26.8 167.4zM462 99.1c-1.1-34.4-22.5-64.8-54.4-77.4c-.9-.4-1.9-.7-2.8-1.1c-33-11.7-69.8-2.4-93.1 23.8l-4 4.5C272.4 88.3 245 134.2 226.8 184l-3.3 9.1L434 269.7l3.3-9.1c18.1-49.8 26.6-102.5 24.9-155.5l-.2-6zM107.2 112.9c-11.1 15.7-2.8 36.8 15.3 43.4l71 25.8 3.3-9.1c19.5-53.6 49.1-103 87.1-145.5l4-4.5c6.2-6.9 13.1-13 20.5-18.2c-79.6 2.5-154.7 42.2-201.2 108z";e.definition={prefix:t,iconName:n,icon:[r,i,a,o,u]},e.faUmbrellaBeach=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=u,e.aliases=a})(TF);var AF={},U1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",n="square-dollar",r=448,i=512,a=["dollar-square","usd-square"],o="f2e9",u="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM244.8 133.6v14.2c9.7 1.2 19.4 3.9 29 6.6c1.9 .5 3.7 1 5.6 1.6c11.5 3.2 18.3 15.1 15.1 26.6s-15.1 18.2-26.6 15.1c-1.6-.4-3.1-.9-4.7-1.3c-7-2-14-3.9-21.1-5.3c-13.2-2.5-28.5-1.3-40.8 4c-11 4.8-20.1 16.4-7.6 24.4c9.8 6.3 21.8 9.5 33.2 12.6c2.4 .6 4.7 1.3 7 1.9c15.6 4.4 35.5 10.1 50.4 20.3c19.4 13.3 28.5 34.9 24.2 58.1c-4.1 22.4-19.7 37.1-38.4 44.7c-7.8 3.2-16.3 5.2-25.2 6.2l0 15.2c0 11.9-9.7 21.6-21.6 21.6s-21.6-9.7-21.6-21.6l0-17.4c-14.5-3.3-28.7-7.9-42.8-12.5c-11.3-3.7-17.5-16-13.7-27.3s16-17.5 27.3-13.7c2.5 .8 5 1.7 7.5 2.5c11.3 3.8 22.9 7.7 34.5 9.6c17 2.5 30.6 1 39.5-2.6c12-4.8 17.7-19.1 5.9-27.1c-10.1-6.9-22.6-10.3-34.5-13.5c-2.3-.6-4.5-1.2-6.8-1.9c-15.1-4.3-34-9.6-48.2-18.7c-19.5-12.5-29.4-33.3-25.2-56.4c4-21.8 21-36.3 39-44.1c5.5-2.4 11.4-4.3 17.5-5.7V133.6c0-11.9 9.7-21.6 21.6-21.6s21.6 9.7 21.6 21.6z";e.definition={prefix:t,iconName:n,icon:[r,i,a,o,u]},e.faSquareDollar=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=u,e.aliases=a})(U1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=U1;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faUsdSquare=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases})(AF);function wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(n),!0).forEach(function(r){$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function CF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IF(e,t,n){return t&&Oh(e.prototype,t),n&&Oh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){return PF(e)||LF(e,t)||j1(e,t)||kF()}function $a(e){return RF(e)||NF(e)||j1(e)||MF()}function RF(e){if(Array.isArray(e))return hl(e)}function PF(e){if(Array.isArray(e))return e}function NF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,u;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw u}}return r}}function j1(e,t){if(e){if(typeof e=="string")return hl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hl(e,t)}}function hl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Th=function(){},nd={},$1={},x1=null,B1={mark:Th,measure:Th};try{typeof window<"u"&&(nd=window),typeof document<"u"&&($1=document),typeof MutationObserver<"u"&&(x1=MutationObserver),typeof performance<"u"&&(B1=performance)}catch{}var DF=nd.navigator||{},Ah=DF.userAgent,Ch=Ah===void 0?"":Ah,Gn=nd,ye=$1,Ih=x1,ro=B1;Gn.document;var hn=!!ye.documentElement&&!!ye.head&&typeof ye.addEventListener=="function"&&typeof ye.createElement=="function",H1=~Ch.indexOf("MSIE")||~Ch.indexOf("Trident/"),io,ao,oo,uo,so,fn="___FONT_AWESOME___",ml=16,K1="fa",G1="svg-inline--fa",hr="data-fa-i2svg",gl="data-fa-pseudo-element",FF="data-fa-pseudo-element-pending",rd="data-prefix",id="data-icon",Rh="fontawesome-i2svg",UF="async",jF=["HTML","HEAD","STYLE","SCRIPT"],W1=function(){try{return!0}catch{return!1}}(),ge="classic",Oe="sharp",ad=[ge,Oe];function xa(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[ge]}})}var Ta=xa((io={},$e(io,ge,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),$e(io,Oe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),io)),Aa=xa((ao={},$e(ao,ge,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),$e(ao,Oe,{solid:"fass",regular:"fasr",light:"fasl"}),ao)),Ca=xa((oo={},$e(oo,ge,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),$e(oo,Oe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),oo)),$F=xa((uo={},$e(uo,ge,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),$e(uo,Oe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),uo)),xF=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,z1="fa-layers-text",BF=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,HF=xa((so={},$e(so,ge,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),$e(so,Oe,{900:"fass",400:"fasr",300:"fasl"}),so)),q1=[1,2,3,4,5,6,7,8,9,10],KF=q1.concat([11,12,13,14,15,16,17,18,19,20]),GF=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],or={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ia=new Set;Object.keys(Aa[ge]).map(Ia.add.bind(Ia));Object.keys(Aa[Oe]).map(Ia.add.bind(Ia));var WF=[].concat(ad,$a(Ia),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",or.GROUP,or.SWAP_OPACITY,or.PRIMARY,or.SECONDARY]).concat(q1.map(function(e){return"".concat(e,"x")})).concat(KF.map(function(e){return"w-".concat(e)})),pa=Gn.FontAwesomeConfig||{};function zF(e){var t=ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function qF(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ye&&typeof ye.querySelector=="function"){var YF=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];YF.forEach(function(e){var t=td(e,2),n=t[0],r=t[1],i=qF(zF(n));i!=null&&(pa[r]=i)})}var Y1={styleDefault:"solid",familyDefault:"classic",cssPrefix:K1,replacementClass:G1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};pa.familyPrefix&&(pa.cssPrefix=pa.familyPrefix);var hi=q(q({},Y1),pa);hi.autoReplaceSvg||(hi.observeMutations=!1);var X={};Object.keys(Y1).forEach(function(e){Object.defineProperty(X,e,{enumerable:!0,set:function(n){hi[e]=n,va.forEach(function(r){return r(X)})},get:function(){return hi[e]}})});Object.defineProperty(X,"familyPrefix",{enumerable:!0,set:function(t){hi.cssPrefix=t,va.forEach(function(n){return n(X)})},get:function(){return hi.cssPrefix}});Gn.FontAwesomeConfig=X;var va=[];function VF(e){return va.push(e),function(){va.splice(va.indexOf(e),1)}}var _n=ml,zt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function XF(e){if(!(!e||!hn)){var t=ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ye.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return ye.head.insertBefore(t,r),e}}var QF="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ra(){for(var e=12,t="";e-- >0;)t+=QF[Math.random()*62|0];return t}function Ni(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function od(e){return e.classList?Ni(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function V1(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function JF(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(V1(e[n]),'" ')},"").trim()}function Bu(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ud(e){return e.size!==zt.size||e.x!==zt.x||e.y!==zt.y||e.rotate!==zt.rotate||e.flipX||e.flipY}function ZF(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(u)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:c}}function e4(e){var t=e.transform,n=e.width,r=n===void 0?ml:n,i=e.height,a=i===void 0?ml:i,o=e.startCentered,u=o===void 0?!1:o,s="";return u&&H1?s+="translate(".concat(t.x/_n-r/2,"em, ").concat(t.y/_n-a/2,"em) "):u?s+="translate(calc(-50% + ".concat(t.x/_n,"em), calc(-50% + ").concat(t.y/_n,"em)) "):s+="translate(".concat(t.x/_n,"em, ").concat(t.y/_n,"em) "),s+="scale(".concat(t.size/_n*(t.flipX?-1:1),", ").concat(t.size/_n*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var t4=`:root, :host {
34
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
35
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
36
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
37
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
38
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
39
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
40
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
41
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
42
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
43
- }
44
-
45
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
46
- overflow: visible;
47
- box-sizing: content-box;
48
- }
49
-
50
- .svg-inline--fa {
51
- display: var(--fa-display, inline-block);
52
- height: 1em;
53
- overflow: visible;
54
- vertical-align: -0.125em;
55
- }
56
- .svg-inline--fa.fa-2xs {
57
- vertical-align: 0.1em;
58
- }
59
- .svg-inline--fa.fa-xs {
60
- vertical-align: 0em;
61
- }
62
- .svg-inline--fa.fa-sm {
63
- vertical-align: -0.0714285705em;
64
- }
65
- .svg-inline--fa.fa-lg {
66
- vertical-align: -0.2em;
67
- }
68
- .svg-inline--fa.fa-xl {
69
- vertical-align: -0.25em;
70
- }
71
- .svg-inline--fa.fa-2xl {
72
- vertical-align: -0.3125em;
73
- }
74
- .svg-inline--fa.fa-pull-left {
75
- margin-right: var(--fa-pull-margin, 0.3em);
76
- width: auto;
77
- }
78
- .svg-inline--fa.fa-pull-right {
79
- margin-left: var(--fa-pull-margin, 0.3em);
80
- width: auto;
81
- }
82
- .svg-inline--fa.fa-li {
83
- width: var(--fa-li-width, 2em);
84
- top: 0.25em;
85
- }
86
- .svg-inline--fa.fa-fw {
87
- width: var(--fa-fw-width, 1.25em);
88
- }
89
-
90
- .fa-layers svg.svg-inline--fa {
91
- bottom: 0;
92
- left: 0;
93
- margin: auto;
94
- position: absolute;
95
- right: 0;
96
- top: 0;
97
- }
98
-
99
- .fa-layers-counter, .fa-layers-text {
100
- display: inline-block;
101
- position: absolute;
102
- text-align: center;
103
- }
104
-
105
- .fa-layers {
106
- display: inline-block;
107
- height: 1em;
108
- position: relative;
109
- text-align: center;
110
- vertical-align: -0.125em;
111
- width: 1em;
112
- }
113
- .fa-layers svg.svg-inline--fa {
114
- -webkit-transform-origin: center center;
115
- transform-origin: center center;
116
- }
117
-
118
- .fa-layers-text {
119
- left: 50%;
120
- top: 50%;
121
- -webkit-transform: translate(-50%, -50%);
122
- transform: translate(-50%, -50%);
123
- -webkit-transform-origin: center center;
124
- transform-origin: center center;
125
- }
126
-
127
- .fa-layers-counter {
128
- background-color: var(--fa-counter-background-color, #ff253a);
129
- border-radius: var(--fa-counter-border-radius, 1em);
130
- box-sizing: border-box;
131
- color: var(--fa-inverse, #fff);
132
- line-height: var(--fa-counter-line-height, 1);
133
- max-width: var(--fa-counter-max-width, 5em);
134
- min-width: var(--fa-counter-min-width, 1.5em);
135
- overflow: hidden;
136
- padding: var(--fa-counter-padding, 0.25em 0.5em);
137
- right: var(--fa-right, 0);
138
- text-overflow: ellipsis;
139
- top: var(--fa-top, 0);
140
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
141
- transform: scale(var(--fa-counter-scale, 0.25));
142
- -webkit-transform-origin: top right;
143
- transform-origin: top right;
144
- }
145
-
146
- .fa-layers-bottom-right {
147
- bottom: var(--fa-bottom, 0);
148
- right: var(--fa-right, 0);
149
- top: auto;
150
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
151
- transform: scale(var(--fa-layers-scale, 0.25));
152
- -webkit-transform-origin: bottom right;
153
- transform-origin: bottom right;
154
- }
155
-
156
- .fa-layers-bottom-left {
157
- bottom: var(--fa-bottom, 0);
158
- left: var(--fa-left, 0);
159
- right: auto;
160
- top: auto;
161
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
162
- transform: scale(var(--fa-layers-scale, 0.25));
163
- -webkit-transform-origin: bottom left;
164
- transform-origin: bottom left;
165
- }
166
-
167
- .fa-layers-top-right {
168
- top: var(--fa-top, 0);
169
- right: var(--fa-right, 0);
170
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
171
- transform: scale(var(--fa-layers-scale, 0.25));
172
- -webkit-transform-origin: top right;
173
- transform-origin: top right;
174
- }
175
-
176
- .fa-layers-top-left {
177
- left: var(--fa-left, 0);
178
- right: auto;
179
- top: var(--fa-top, 0);
180
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
181
- transform: scale(var(--fa-layers-scale, 0.25));
182
- -webkit-transform-origin: top left;
183
- transform-origin: top left;
184
- }
185
-
186
- .fa-1x {
187
- font-size: 1em;
188
- }
189
-
190
- .fa-2x {
191
- font-size: 2em;
192
- }
193
-
194
- .fa-3x {
195
- font-size: 3em;
196
- }
197
-
198
- .fa-4x {
199
- font-size: 4em;
200
- }
201
-
202
- .fa-5x {
203
- font-size: 5em;
204
- }
205
-
206
- .fa-6x {
207
- font-size: 6em;
208
- }
209
-
210
- .fa-7x {
211
- font-size: 7em;
212
- }
213
-
214
- .fa-8x {
215
- font-size: 8em;
216
- }
217
-
218
- .fa-9x {
219
- font-size: 9em;
220
- }
221
-
222
- .fa-10x {
223
- font-size: 10em;
224
- }
225
-
226
- .fa-2xs {
227
- font-size: 0.625em;
228
- line-height: 0.1em;
229
- vertical-align: 0.225em;
230
- }
231
-
232
- .fa-xs {
233
- font-size: 0.75em;
234
- line-height: 0.0833333337em;
235
- vertical-align: 0.125em;
236
- }
237
-
238
- .fa-sm {
239
- font-size: 0.875em;
240
- line-height: 0.0714285718em;
241
- vertical-align: 0.0535714295em;
242
- }
243
-
244
- .fa-lg {
245
- font-size: 1.25em;
246
- line-height: 0.05em;
247
- vertical-align: -0.075em;
248
- }
249
-
250
- .fa-xl {
251
- font-size: 1.5em;
252
- line-height: 0.0416666682em;
253
- vertical-align: -0.125em;
254
- }
255
-
256
- .fa-2xl {
257
- font-size: 2em;
258
- line-height: 0.03125em;
259
- vertical-align: -0.1875em;
260
- }
261
-
262
- .fa-fw {
263
- text-align: center;
264
- width: 1.25em;
265
- }
266
-
267
- .fa-ul {
268
- list-style-type: none;
269
- margin-left: var(--fa-li-margin, 2.5em);
270
- padding-left: 0;
271
- }
272
- .fa-ul > li {
273
- position: relative;
274
- }
275
-
276
- .fa-li {
277
- left: calc(var(--fa-li-width, 2em) * -1);
278
- position: absolute;
279
- text-align: center;
280
- width: var(--fa-li-width, 2em);
281
- line-height: inherit;
282
- }
283
-
284
- .fa-border {
285
- border-color: var(--fa-border-color, #eee);
286
- border-radius: var(--fa-border-radius, 0.1em);
287
- border-style: var(--fa-border-style, solid);
288
- border-width: var(--fa-border-width, 0.08em);
289
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
290
- }
291
-
292
- .fa-pull-left {
293
- float: left;
294
- margin-right: var(--fa-pull-margin, 0.3em);
295
- }
296
-
297
- .fa-pull-right {
298
- float: right;
299
- margin-left: var(--fa-pull-margin, 0.3em);
300
- }
301
-
302
- .fa-beat {
303
- -webkit-animation-name: fa-beat;
304
- animation-name: fa-beat;
305
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
306
- animation-delay: var(--fa-animation-delay, 0s);
307
- -webkit-animation-direction: var(--fa-animation-direction, normal);
308
- animation-direction: var(--fa-animation-direction, normal);
309
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
310
- animation-duration: var(--fa-animation-duration, 1s);
311
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
312
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
313
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
314
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
315
- }
316
-
317
- .fa-bounce {
318
- -webkit-animation-name: fa-bounce;
319
- animation-name: fa-bounce;
320
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
321
- animation-delay: var(--fa-animation-delay, 0s);
322
- -webkit-animation-direction: var(--fa-animation-direction, normal);
323
- animation-direction: var(--fa-animation-direction, normal);
324
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
325
- animation-duration: var(--fa-animation-duration, 1s);
326
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
327
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
328
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
329
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
330
- }
331
-
332
- .fa-fade {
333
- -webkit-animation-name: fa-fade;
334
- animation-name: fa-fade;
335
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
336
- animation-delay: var(--fa-animation-delay, 0s);
337
- -webkit-animation-direction: var(--fa-animation-direction, normal);
338
- animation-direction: var(--fa-animation-direction, normal);
339
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
340
- animation-duration: var(--fa-animation-duration, 1s);
341
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
342
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
343
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
344
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
345
- }
346
-
347
- .fa-beat-fade {
348
- -webkit-animation-name: fa-beat-fade;
349
- animation-name: fa-beat-fade;
350
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
351
- animation-delay: var(--fa-animation-delay, 0s);
352
- -webkit-animation-direction: var(--fa-animation-direction, normal);
353
- animation-direction: var(--fa-animation-direction, normal);
354
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
355
- animation-duration: var(--fa-animation-duration, 1s);
356
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
357
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
358
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
359
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
360
- }
361
-
362
- .fa-flip {
363
- -webkit-animation-name: fa-flip;
364
- animation-name: fa-flip;
365
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
366
- animation-delay: var(--fa-animation-delay, 0s);
367
- -webkit-animation-direction: var(--fa-animation-direction, normal);
368
- animation-direction: var(--fa-animation-direction, normal);
369
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
370
- animation-duration: var(--fa-animation-duration, 1s);
371
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
372
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
373
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
374
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
375
- }
376
-
377
- .fa-shake {
378
- -webkit-animation-name: fa-shake;
379
- animation-name: fa-shake;
380
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
381
- animation-delay: var(--fa-animation-delay, 0s);
382
- -webkit-animation-direction: var(--fa-animation-direction, normal);
383
- animation-direction: var(--fa-animation-direction, normal);
384
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
385
- animation-duration: var(--fa-animation-duration, 1s);
386
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
387
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
388
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
389
- animation-timing-function: var(--fa-animation-timing, linear);
390
- }
391
-
392
- .fa-spin {
393
- -webkit-animation-name: fa-spin;
394
- animation-name: fa-spin;
395
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
396
- animation-delay: var(--fa-animation-delay, 0s);
397
- -webkit-animation-direction: var(--fa-animation-direction, normal);
398
- animation-direction: var(--fa-animation-direction, normal);
399
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
400
- animation-duration: var(--fa-animation-duration, 2s);
401
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
402
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
403
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
404
- animation-timing-function: var(--fa-animation-timing, linear);
405
- }
406
-
407
- .fa-spin-reverse {
408
- --fa-animation-direction: reverse;
409
- }
410
-
411
- .fa-pulse,
412
- .fa-spin-pulse {
413
- -webkit-animation-name: fa-spin;
414
- animation-name: fa-spin;
415
- -webkit-animation-direction: var(--fa-animation-direction, normal);
416
- animation-direction: var(--fa-animation-direction, normal);
417
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
418
- animation-duration: var(--fa-animation-duration, 1s);
419
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
420
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
421
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
422
- animation-timing-function: var(--fa-animation-timing, steps(8));
423
- }
424
-
425
- @media (prefers-reduced-motion: reduce) {
426
- .fa-beat,
427
- .fa-bounce,
428
- .fa-fade,
429
- .fa-beat-fade,
430
- .fa-flip,
431
- .fa-pulse,
432
- .fa-shake,
433
- .fa-spin,
434
- .fa-spin-pulse {
435
- -webkit-animation-delay: -1ms;
436
- animation-delay: -1ms;
437
- -webkit-animation-duration: 1ms;
438
- animation-duration: 1ms;
439
- -webkit-animation-iteration-count: 1;
440
- animation-iteration-count: 1;
441
- -webkit-transition-delay: 0s;
442
- transition-delay: 0s;
443
- -webkit-transition-duration: 0s;
444
- transition-duration: 0s;
445
- }
446
- }
447
- @-webkit-keyframes fa-beat {
448
- 0%, 90% {
449
- -webkit-transform: scale(1);
450
- transform: scale(1);
451
- }
452
- 45% {
453
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
454
- transform: scale(var(--fa-beat-scale, 1.25));
455
- }
456
- }
457
- @keyframes fa-beat {
458
- 0%, 90% {
459
- -webkit-transform: scale(1);
460
- transform: scale(1);
461
- }
462
- 45% {
463
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
464
- transform: scale(var(--fa-beat-scale, 1.25));
465
- }
466
- }
467
- @-webkit-keyframes fa-bounce {
468
- 0% {
469
- -webkit-transform: scale(1, 1) translateY(0);
470
- transform: scale(1, 1) translateY(0);
471
- }
472
- 10% {
473
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
474
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
475
- }
476
- 30% {
477
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
478
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
479
- }
480
- 50% {
481
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
482
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
483
- }
484
- 57% {
485
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
486
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
487
- }
488
- 64% {
489
- -webkit-transform: scale(1, 1) translateY(0);
490
- transform: scale(1, 1) translateY(0);
491
- }
492
- 100% {
493
- -webkit-transform: scale(1, 1) translateY(0);
494
- transform: scale(1, 1) translateY(0);
495
- }
496
- }
497
- @keyframes fa-bounce {
498
- 0% {
499
- -webkit-transform: scale(1, 1) translateY(0);
500
- transform: scale(1, 1) translateY(0);
501
- }
502
- 10% {
503
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
504
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
505
- }
506
- 30% {
507
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
508
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
509
- }
510
- 50% {
511
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
512
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
513
- }
514
- 57% {
515
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
516
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
517
- }
518
- 64% {
519
- -webkit-transform: scale(1, 1) translateY(0);
520
- transform: scale(1, 1) translateY(0);
521
- }
522
- 100% {
523
- -webkit-transform: scale(1, 1) translateY(0);
524
- transform: scale(1, 1) translateY(0);
525
- }
526
- }
527
- @-webkit-keyframes fa-fade {
528
- 50% {
529
- opacity: var(--fa-fade-opacity, 0.4);
530
- }
531
- }
532
- @keyframes fa-fade {
533
- 50% {
534
- opacity: var(--fa-fade-opacity, 0.4);
535
- }
536
- }
537
- @-webkit-keyframes fa-beat-fade {
538
- 0%, 100% {
539
- opacity: var(--fa-beat-fade-opacity, 0.4);
540
- -webkit-transform: scale(1);
541
- transform: scale(1);
542
- }
543
- 50% {
544
- opacity: 1;
545
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
546
- transform: scale(var(--fa-beat-fade-scale, 1.125));
547
- }
548
- }
549
- @keyframes fa-beat-fade {
550
- 0%, 100% {
551
- opacity: var(--fa-beat-fade-opacity, 0.4);
552
- -webkit-transform: scale(1);
553
- transform: scale(1);
554
- }
555
- 50% {
556
- opacity: 1;
557
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
558
- transform: scale(var(--fa-beat-fade-scale, 1.125));
559
- }
560
- }
561
- @-webkit-keyframes fa-flip {
562
- 50% {
563
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
564
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
565
- }
566
- }
567
- @keyframes fa-flip {
568
- 50% {
569
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
570
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
571
- }
572
- }
573
- @-webkit-keyframes fa-shake {
574
- 0% {
575
- -webkit-transform: rotate(-15deg);
576
- transform: rotate(-15deg);
577
- }
578
- 4% {
579
- -webkit-transform: rotate(15deg);
580
- transform: rotate(15deg);
581
- }
582
- 8%, 24% {
583
- -webkit-transform: rotate(-18deg);
584
- transform: rotate(-18deg);
585
- }
586
- 12%, 28% {
587
- -webkit-transform: rotate(18deg);
588
- transform: rotate(18deg);
589
- }
590
- 16% {
591
- -webkit-transform: rotate(-22deg);
592
- transform: rotate(-22deg);
593
- }
594
- 20% {
595
- -webkit-transform: rotate(22deg);
596
- transform: rotate(22deg);
597
- }
598
- 32% {
599
- -webkit-transform: rotate(-12deg);
600
- transform: rotate(-12deg);
601
- }
602
- 36% {
603
- -webkit-transform: rotate(12deg);
604
- transform: rotate(12deg);
605
- }
606
- 40%, 100% {
607
- -webkit-transform: rotate(0deg);
608
- transform: rotate(0deg);
609
- }
610
- }
611
- @keyframes fa-shake {
612
- 0% {
613
- -webkit-transform: rotate(-15deg);
614
- transform: rotate(-15deg);
615
- }
616
- 4% {
617
- -webkit-transform: rotate(15deg);
618
- transform: rotate(15deg);
619
- }
620
- 8%, 24% {
621
- -webkit-transform: rotate(-18deg);
622
- transform: rotate(-18deg);
623
- }
624
- 12%, 28% {
625
- -webkit-transform: rotate(18deg);
626
- transform: rotate(18deg);
627
- }
628
- 16% {
629
- -webkit-transform: rotate(-22deg);
630
- transform: rotate(-22deg);
631
- }
632
- 20% {
633
- -webkit-transform: rotate(22deg);
634
- transform: rotate(22deg);
635
- }
636
- 32% {
637
- -webkit-transform: rotate(-12deg);
638
- transform: rotate(-12deg);
639
- }
640
- 36% {
641
- -webkit-transform: rotate(12deg);
642
- transform: rotate(12deg);
643
- }
644
- 40%, 100% {
645
- -webkit-transform: rotate(0deg);
646
- transform: rotate(0deg);
647
- }
648
- }
649
- @-webkit-keyframes fa-spin {
650
- 0% {
651
- -webkit-transform: rotate(0deg);
652
- transform: rotate(0deg);
653
- }
654
- 100% {
655
- -webkit-transform: rotate(360deg);
656
- transform: rotate(360deg);
657
- }
658
- }
659
- @keyframes fa-spin {
660
- 0% {
661
- -webkit-transform: rotate(0deg);
662
- transform: rotate(0deg);
663
- }
664
- 100% {
665
- -webkit-transform: rotate(360deg);
666
- transform: rotate(360deg);
667
- }
668
- }
669
- .fa-rotate-90 {
670
- -webkit-transform: rotate(90deg);
671
- transform: rotate(90deg);
672
- }
673
-
674
- .fa-rotate-180 {
675
- -webkit-transform: rotate(180deg);
676
- transform: rotate(180deg);
677
- }
678
-
679
- .fa-rotate-270 {
680
- -webkit-transform: rotate(270deg);
681
- transform: rotate(270deg);
682
- }
683
-
684
- .fa-flip-horizontal {
685
- -webkit-transform: scale(-1, 1);
686
- transform: scale(-1, 1);
687
- }
688
-
689
- .fa-flip-vertical {
690
- -webkit-transform: scale(1, -1);
691
- transform: scale(1, -1);
692
- }
693
-
694
- .fa-flip-both,
695
- .fa-flip-horizontal.fa-flip-vertical {
696
- -webkit-transform: scale(-1, -1);
697
- transform: scale(-1, -1);
698
- }
699
-
700
- .fa-rotate-by {
701
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
702
- transform: rotate(var(--fa-rotate-angle, none));
703
- }
704
-
705
- .fa-stack {
706
- display: inline-block;
707
- vertical-align: middle;
708
- height: 2em;
709
- position: relative;
710
- width: 2.5em;
711
- }
712
-
713
- .fa-stack-1x,
714
- .fa-stack-2x {
715
- bottom: 0;
716
- left: 0;
717
- margin: auto;
718
- position: absolute;
719
- right: 0;
720
- top: 0;
721
- z-index: var(--fa-stack-z-index, auto);
722
- }
723
-
724
- .svg-inline--fa.fa-stack-1x {
725
- height: 1em;
726
- width: 1.25em;
727
- }
728
- .svg-inline--fa.fa-stack-2x {
729
- height: 2em;
730
- width: 2.5em;
731
- }
732
-
733
- .fa-inverse {
734
- color: var(--fa-inverse, #fff);
735
- }
736
-
737
- .sr-only,
738
- .fa-sr-only {
739
- position: absolute;
740
- width: 1px;
741
- height: 1px;
742
- padding: 0;
743
- margin: -1px;
744
- overflow: hidden;
745
- clip: rect(0, 0, 0, 0);
746
- white-space: nowrap;
747
- border-width: 0;
748
- }
749
-
750
- .sr-only-focusable:not(:focus),
751
- .fa-sr-only-focusable:not(:focus) {
752
- position: absolute;
753
- width: 1px;
754
- height: 1px;
755
- padding: 0;
756
- margin: -1px;
757
- overflow: hidden;
758
- clip: rect(0, 0, 0, 0);
759
- white-space: nowrap;
760
- border-width: 0;
761
- }
762
-
763
- .svg-inline--fa .fa-primary {
764
- fill: var(--fa-primary-color, currentColor);
765
- opacity: var(--fa-primary-opacity, 1);
766
- }
767
-
768
- .svg-inline--fa .fa-secondary {
769
- fill: var(--fa-secondary-color, currentColor);
770
- opacity: var(--fa-secondary-opacity, 0.4);
771
- }
772
-
773
- .svg-inline--fa.fa-swap-opacity .fa-primary {
774
- opacity: var(--fa-secondary-opacity, 0.4);
775
- }
776
-
777
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
778
- opacity: var(--fa-primary-opacity, 1);
779
- }
780
-
781
- .svg-inline--fa mask .fa-primary,
782
- .svg-inline--fa mask .fa-secondary {
783
- fill: black;
784
- }
785
-
786
- .fad.fa-inverse,
787
- .fa-duotone.fa-inverse {
788
- color: var(--fa-inverse, #fff);
789
- }`;function X1(){var e=K1,t=G1,n=X.cssPrefix,r=X.replacementClass,i=t4;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(u,".".concat(r))}return i}var Ph=!1;function ic(){X.autoAddCss&&!Ph&&(XF(X1()),Ph=!0)}var n4={mixout:function(){return{dom:{css:X1,insertCss:ic}}},hooks:function(){return{beforeDOMElementCreation:function(){ic()},beforeI2svg:function(){ic()}}}},dn=Gn||{};dn[fn]||(dn[fn]={});dn[fn].styles||(dn[fn].styles={});dn[fn].hooks||(dn[fn].hooks={});dn[fn].shims||(dn[fn].shims=[]);var Dt=dn[fn],Q1=[],r4=function e(){ye.removeEventListener("DOMContentLoaded",e),su=1,Q1.map(function(t){return t()})},su=!1;hn&&(su=(ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ye.readyState),su||ye.addEventListener("DOMContentLoaded",r4));function i4(e){hn&&(su?setTimeout(e,0):Q1.push(e))}function Ba(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?V1(e):"<".concat(t," ").concat(JF(r),">").concat(a.map(Ba).join(""),"</").concat(t,">")}function Nh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var a4=function(t,n){return function(r,i,a,o){return t.call(n,r,i,a,o)}},ac=function(t,n,r,i){var a=Object.keys(t),o=a.length,u=i!==void 0?a4(n,i):n,s,c,f;for(r===void 0?(s=1,f=t[a[0]]):(s=0,f=r);s<o;s++)c=a[s],f=u(f,t[c],c,t);return f};function o4(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function yl(e){var t=o4(e);return t.length===1?t[0].toString(16):null}function u4(e,t){var n=e.length,r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Lh(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function bl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=Lh(t);typeof Dt.hooks.addPack=="function"&&!i?Dt.hooks.addPack(e,Lh(t)):Dt.styles[e]=q(q({},Dt.styles[e]||{}),a),e==="fas"&&bl("fa",t)}var co,lo,fo,Br=Dt.styles,s4=Dt.shims,c4=(co={},$e(co,ge,Object.values(Ca[ge])),$e(co,Oe,Object.values(Ca[Oe])),co),sd=null,J1={},Z1={},eE={},tE={},nE={},l4=(lo={},$e(lo,ge,Object.keys(Ta[ge])),$e(lo,Oe,Object.keys(Ta[Oe])),lo);function f4(e){return~WF.indexOf(e)}function d4(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!f4(i)?i:null}var rE=function(){var t=function(a){return ac(Br,function(o,u,s){return o[s]=ac(u,a,{}),o},{})};J1=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var u=a[2].filter(function(s){return typeof s=="number"});u.forEach(function(s){i[s.toString(16)]=o})}return i}),Z1=t(function(i,a,o){if(i[o]=o,a[2]){var u=a[2].filter(function(s){return typeof s=="string"});u.forEach(function(s){i[s]=o})}return i}),nE=t(function(i,a,o){var u=a[2];return i[o]=o,u.forEach(function(s){i[s]=o}),i});var n="far"in Br||X.autoFetchSvg,r=ac(s4,function(i,a){var o=a[0],u=a[1],s=a[2];return u==="far"&&!n&&(u="fas"),typeof o=="string"&&(i.names[o]={prefix:u,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:u,iconName:s}),i},{names:{},unicodes:{}});eE=r.names,tE=r.unicodes,sd=Hu(X.styleDefault,{family:X.familyDefault})};VF(function(e){sd=Hu(e.styleDefault,{family:X.familyDefault})});rE();function cd(e,t){return(J1[e]||{})[t]}function p4(e,t){return(Z1[e]||{})[t]}function ur(e,t){return(nE[e]||{})[t]}function iE(e){return eE[e]||{prefix:null,iconName:null}}function v4(e){var t=tE[e],n=cd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Wn(){return sd}var ld=function(){return{prefix:null,iconName:null,rest:[]}};function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ge:n,i=Ta[r][e],a=Aa[r][e]||Aa[r][i],o=e in Dt.styles?e:null;return a||o||null}var Mh=(fo={},$e(fo,ge,Object.keys(Ca[ge])),$e(fo,Oe,Object.keys(Ca[Oe])),fo);function Ku(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,a=(t={},$e(t,ge,"".concat(X.cssPrefix,"-").concat(ge)),$e(t,Oe,"".concat(X.cssPrefix,"-").concat(Oe)),t),o=null,u=ge;(e.includes(a[ge])||e.some(function(c){return Mh[ge].includes(c)}))&&(u=ge),(e.includes(a[Oe])||e.some(function(c){return Mh[Oe].includes(c)}))&&(u=Oe);var s=e.reduce(function(c,f){var l=d4(X.cssPrefix,f);if(Br[f]?(f=c4[u].includes(f)?$F[u][f]:f,o=f,c.prefix=f):l4[u].indexOf(f)>-1?(o=f,c.prefix=Hu(f,{family:u})):l?c.iconName=l:f!==X.replacementClass&&f!==a[ge]&&f!==a[Oe]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var d=o==="fa"?iE(c.iconName):{},p=ur(c.prefix,c.iconName);d.prefix&&(o=null),c.iconName=d.iconName||p||c.iconName,c.prefix=d.prefix||c.prefix,c.prefix==="far"&&!Br.far&&Br.fas&&!X.autoFetchSvg&&(c.prefix="fas")}return c},ld());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&u===Oe&&(Br.fass||X.autoFetchSvg)&&(s.prefix="fass",s.iconName=ur(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=Wn()||"fas"),s}var h4=function(){function e(){CF(this,e),this.definitions={}}return IF(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(u){n.definitions[u]=q(q({},n.definitions[u]||{}),o[u]),bl(u,o[u]);var s=Ca[ge][u];s&&bl(s,o[u]),rE()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(a){var o=i[a],u=o.prefix,s=o.iconName,c=o.icon,f=c[2];n[u]||(n[u]={}),f.length>0&&f.forEach(function(l){typeof l=="string"&&(n[u][l]=c)}),n[u][s]=c}),n}}]),e}(),kh=[],Hr={},Qr={},m4=Object.keys(Qr);function g4(e,t){var n=t.mixoutsTo;return kh=e,Hr={},Object.keys(Qr).forEach(function(r){m4.indexOf(r)===-1&&delete Qr[r]}),kh.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),uu(i[o])==="object"&&Object.keys(i[o]).forEach(function(u){n[o]||(n[o]={}),n[o][u]=i[o][u]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(o){Hr[o]||(Hr[o]=[]),Hr[o].push(a[o])})}r.provides&&r.provides(Qr)}),n}function _l(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=Hr[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Hr[e]||[];i.forEach(function(a){a.apply(null,n)})}function pn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qr[e]?Qr[e].apply(null,t):void 0}function El(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Wn();if(t)return t=ur(n,t)||t,Nh(aE.definitions,n,t)||Nh(Dt.styles,n,t)}var aE=new h4,y4=function(){X.autoReplaceSvg=!1,X.observeMutations=!1,mr("noAuto")},b4={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return hn?(mr("beforeI2svg",t),pn("pseudoElements2svg",t),pn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;X.autoReplaceSvg===!1&&(X.autoReplaceSvg=!0),X.observeMutations=!0,i4(function(){E4({autoReplaceSvgRoot:n}),mr("watch",t)})}},_4={icon:function(t){if(t===null)return null;if(uu(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ur(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Hu(t[0]);return{prefix:r,iconName:ur(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(X.cssPrefix,"-"))>-1||t.match(xF))){var i=Ku(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Wn(),iconName:ur(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Wn();return{prefix:a,iconName:ur(a,t)||t}}}},St={noAuto:y4,config:X,dom:b4,parse:_4,library:aE,findIconDefinition:El,toHtml:Ba},E4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ye:n;(Object.keys(Dt.styles).length>0||X.autoFetchSvg)&&hn&&X.autoReplaceSvg&&St.dom.i2svg({node:r})};function Gu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ba(r)})}}),Object.defineProperty(e,"node",{get:function(){if(hn){var r=ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function S4(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ud(o)&&n.found&&!r.found){var u=n.width,s=n.height,c={x:u/s/2,y:.5};i.style=Bu(q(q({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function w4(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(X.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},i),{},{id:o}),children:r}]}]}function fd(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,u=e.symbol,s=e.title,c=e.maskId,f=e.titleId,l=e.extra,d=e.watchable,p=d===void 0?!1:d,v=r.found?r:n,h=v.width,_=v.height,g=i==="fak",b=[X.replacementClass,a?"".concat(X.cssPrefix,"-").concat(a):""].filter(function(A){return l.classes.indexOf(A)===-1}).filter(function(A){return A!==""||!!A}).concat(l.classes).join(" "),y={children:[],attributes:q(q({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:b,role:l.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(_)})},m=g&&!~l.classes.indexOf("fa-fw")?{width:"".concat(h/_*16*.0625,"em")}:{};p&&(y.attributes[hr]=""),s&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(f||Ra())},children:[s]}),delete y.attributes.title);var E=q(q({},y),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:u,styles:q(q({},m),l.styles)}),w=r.found&&n.found?pn("generateAbstractMask",E)||{children:[],attributes:{}}:pn("generateAbstractIcon",E)||{children:[],attributes:{}},O=w.children,S=w.attributes;return E.children=O,E.attributes=S,u?w4(E):S4(E)}function Dh(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,u=e.watchable,s=u===void 0?!1:u,c=q(q(q({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(c[hr]="");var f=q({},o.styles);ud(i)&&(f.transform=e4({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var l=Bu(f);l.length>0&&(c.style=l);var d=[];return d.push({tag:"span",attributes:c,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function O4(e){var t=e.content,n=e.title,r=e.extra,i=q(q(q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Bu(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var oc=Dt.styles;function Sl(e){var t=e[0],n=e[1],r=e.slice(4),i=td(r,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(X.cssPrefix,"-").concat(or.GROUP)},children:[{tag:"path",attributes:{class:"".concat(X.cssPrefix,"-").concat(or.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(X.cssPrefix,"-").concat(or.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:o}}var T4={found:!1,width:512,height:512};function A4(e,t){!W1&&!X.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function wl(e,t){var n=t;return t==="fa"&&X.styleDefault!==null&&(t=Wn()),new Promise(function(r,i){if(pn("missingIconAbstract"),n==="fa"){var a=iE(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&oc[t]&&oc[t][e]){var o=oc[t][e];return r(Sl(o))}A4(e,t),r(q(q({},T4),{},{icon:X.showMissingIcons&&e?pn("missingIconAbstract")||{}:{}}))})}var Fh=function(){},Ol=X.measurePerformance&&ro&&ro.mark&&ro.measure?ro:{mark:Fh,measure:Fh},Qi='FA "6.4.2"',C4=function(t){return Ol.mark("".concat(Qi," ").concat(t," begins")),function(){return oE(t)}},oE=function(t){Ol.mark("".concat(Qi," ").concat(t," ends")),Ol.measure("".concat(Qi," ").concat(t),"".concat(Qi," ").concat(t," begins"),"".concat(Qi," ").concat(t," ends"))},dd={begin:C4,end:oE},Po=function(){};function Uh(e){var t=e.getAttribute?e.getAttribute(hr):null;return typeof t=="string"}function I4(e){var t=e.getAttribute?e.getAttribute(rd):null,n=e.getAttribute?e.getAttribute(id):null;return t&&n}function R4(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(X.replacementClass)}function P4(){if(X.autoReplaceSvg===!0)return No.replace;var e=No[X.autoReplaceSvg];return e||No.replace}function N4(e){return ye.createElementNS("http://www.w3.org/2000/svg",e)}function L4(e){return ye.createElement(e)}function uE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?N4:L4:n;if(typeof e=="string")return ye.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(uE(o,{ceFn:r}))}),i}function M4(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var No={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(uE(i),n)}),n.getAttribute(hr)===null&&X.keepOriginalSource){var r=ye.createComment(M4(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~od(n).indexOf(X.replacementClass))return No.replace(t);var i=new RegExp("".concat(X.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce(function(u,s){return s===X.replacementClass||s.match(i)?u.toSvg.push(s):u.toNode.push(s),u},{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",a.toNode.join(" "))}var o=r.map(function(u){return Ba(u)}).join(`
790
- `);n.setAttribute(hr,""),n.innerHTML=o}};function jh(e){e()}function sE(e,t){var n=typeof t=="function"?t:Po;if(e.length===0)n();else{var r=jh;X.mutateApproach===UF&&(r=Gn.requestAnimationFrame||jh),r(function(){var i=P4(),a=dd.begin("mutate");e.map(i),a(),n()})}}var pd=!1;function cE(){pd=!0}function Tl(){pd=!1}var cu=null;function $h(e){if(Ih&&X.observeMutations){var t=e.treeCallback,n=t===void 0?Po:t,r=e.nodeCallback,i=r===void 0?Po:r,a=e.pseudoElementsCallback,o=a===void 0?Po:a,u=e.observeMutationsRoot,s=u===void 0?ye:u;cu=new Ih(function(c){if(!pd){var f=Wn();Ni(c).forEach(function(l){if(l.type==="childList"&&l.addedNodes.length>0&&!Uh(l.addedNodes[0])&&(X.searchPseudoElements&&o(l.target),n(l.target)),l.type==="attributes"&&l.target.parentNode&&X.searchPseudoElements&&o(l.target.parentNode),l.type==="attributes"&&Uh(l.target)&&~GF.indexOf(l.attributeName))if(l.attributeName==="class"&&I4(l.target)){var d=Ku(od(l.target)),p=d.prefix,v=d.iconName;l.target.setAttribute(rd,p||f),v&&l.target.setAttribute(id,v)}else R4(l.target)&&i(l.target)})}}),hn&&cu.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function k4(){cu&&cu.disconnect()}function D4(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var a=i.split(":"),o=a[0],u=a.slice(1);return o&&u.length>0&&(r[o]=u.join(":").trim()),r},{})),n}function F4(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Ku(od(e));return i.prefix||(i.prefix=Wn()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=p4(i.prefix,e.innerText)||cd(i.prefix,yl(e.innerText))),!i.iconName&&X.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function U4(e){var t=Ni(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return X.autoA11y&&(n?t["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(r||Ra()):(t["aria-hidden"]="true",t.focusable="false")),t}function j4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:zt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=F4(e),r=n.iconName,i=n.prefix,a=n.rest,o=U4(e),u=_l("parseNodeAttributes",{},e),s=t.styleParser?D4(e):[];return q({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:zt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},u)}var $4=Dt.styles;function lE(e){var t=X.autoReplaceSvg==="nest"?xh(e,{styleParser:!1}):xh(e);return~t.extra.classes.indexOf(z1)?pn("generateLayersText",e,t):pn("generateSvgReplacementMutation",e,t)}var zn=new Set;ad.map(function(e){zn.add("fa-".concat(e))});Object.keys(Ta[ge]).map(zn.add.bind(zn));Object.keys(Ta[Oe]).map(zn.add.bind(zn));zn=$a(zn);function Bh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!hn)return Promise.resolve();var n=ye.documentElement.classList,r=function(l){return n.add("".concat(Rh,"-").concat(l))},i=function(l){return n.remove("".concat(Rh,"-").concat(l))},a=X.autoFetchSvg?zn:ad.map(function(f){return"fa-".concat(f)}).concat(Object.keys($4));a.includes("fa")||a.push("fa");var o=[".".concat(z1,":not([").concat(hr,"])")].concat(a.map(function(f){return".".concat(f,":not([").concat(hr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var u=[];try{u=Ni(e.querySelectorAll(o))}catch{}if(u.length>0)r("pending"),i("complete");else return Promise.resolve();var s=dd.begin("onTree"),c=u.reduce(function(f,l){try{var d=lE(l);d&&f.push(d)}catch(p){W1||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise(function(f,l){Promise.all(c).then(function(d){sE(d,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),s(),f()})}).catch(function(d){s(),l(d)})})}function x4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;lE(e).then(function(n){n&&sE([n],t)})}function B4(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:El(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:El(i||{})),e(r,q(q({},n),{},{mask:i}))}}var H4=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?zt:r,a=n.symbol,o=a===void 0?!1:a,u=n.mask,s=u===void 0?null:u,c=n.maskId,f=c===void 0?null:c,l=n.title,d=l===void 0?null:l,p=n.titleId,v=p===void 0?null:p,h=n.classes,_=h===void 0?[]:h,g=n.attributes,b=g===void 0?{}:g,y=n.styles,m=y===void 0?{}:y;if(t){var E=t.prefix,w=t.iconName,O=t.icon;return Gu(q({type:"icon"},t),function(){return mr("beforeDOMElementCreation",{iconDefinition:t,params:n}),X.autoA11y&&(d?b["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(v||Ra()):(b["aria-hidden"]="true",b.focusable="false")),fd({icons:{main:Sl(O),mask:s?Sl(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:w,transform:q(q({},zt),i),symbol:o,title:d,maskId:f,titleId:v,extra:{attributes:b,styles:m,classes:_}})})}},K4={mixout:function(){return{icon:B4(H4)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Bh,n.nodeCallback=x4,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ye:r,a=n.callback,o=a===void 0?function(){}:a;return Bh(i,o)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,a=r.title,o=r.titleId,u=r.prefix,s=r.transform,c=r.symbol,f=r.mask,l=r.maskId,d=r.extra;return new Promise(function(p,v){Promise.all([wl(i,u),f.iconName?wl(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var _=td(h,2),g=_[0],b=_[1];p([n,fd({icons:{main:g,mask:b},prefix:u,iconName:i,transform:s,symbol:c,maskId:l,title:a,titleId:o,extra:d,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,a=n.main,o=n.transform,u=n.styles,s=Bu(u);s.length>0&&(i.style=s);var c;return ud(o)&&(c=pn("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),r.push(c||a.icon),{children:r,attributes:i}}}},G4={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,a=i===void 0?[]:i;return Gu({type:"layer"},function(){mr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(u){Array.isArray(u)?u.map(function(s){o=o.concat(s.abstract)}):o=o.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(X.cssPrefix,"-layers")].concat($a(a)).join(" ")},children:o}]})}}}},W4={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,a=i===void 0?null:i,o=r.classes,u=o===void 0?[]:o,s=r.attributes,c=s===void 0?{}:s,f=r.styles,l=f===void 0?{}:f;return Gu({type:"counter",content:n},function(){return mr("beforeDOMElementCreation",{content:n,params:r}),O4({content:n.toString(),title:a,extra:{attributes:c,styles:l,classes:["".concat(X.cssPrefix,"-layers-counter")].concat($a(u))}})})}}}},z4={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,a=i===void 0?zt:i,o=r.title,u=o===void 0?null:o,s=r.classes,c=s===void 0?[]:s,f=r.attributes,l=f===void 0?{}:f,d=r.styles,p=d===void 0?{}:d;return Gu({type:"text",content:n},function(){return mr("beforeDOMElementCreation",{content:n,params:r}),Dh({content:n,transform:q(q({},zt),a),title:u,extra:{attributes:l,styles:p,classes:["".concat(X.cssPrefix,"-layers-text")].concat($a(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,a=r.transform,o=r.extra,u=null,s=null;if(H1){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();u=f.width/c,s=f.height/c}return X.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Dh({content:n.innerHTML,width:u,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},q4=new RegExp('"',"ug"),Hh=[1105920,1112319];function Y4(e){var t=e.replace(q4,""),n=u4(t,0),r=n>=Hh[0]&&n<=Hh[1],i=t.length===2?t[0]===t[1]:!1;return{value:yl(i?t[0]:t),isSecondary:r||i}}function Kh(e,t){var n="".concat(FF).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Ni(e.children),o=a.filter(function(O){return O.getAttribute(gl)===t})[0],u=Gn.getComputedStyle(e,t),s=u.getPropertyValue("font-family").match(BF),c=u.getPropertyValue("font-weight"),f=u.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&f!=="none"&&f!==""){var l=u.getPropertyValue("content"),d=~["Sharp"].indexOf(s[2])?Oe:ge,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Aa[d][s[2].toLowerCase()]:HF[d][c],v=Y4(l),h=v.value,_=v.isSecondary,g=s[0].startsWith("FontAwesome"),b=cd(p,h),y=b;if(g){var m=v4(h);m.iconName&&m.prefix&&(b=m.iconName,p=m.prefix)}if(b&&!_&&(!o||o.getAttribute(rd)!==p||o.getAttribute(id)!==y)){e.setAttribute(n,y),o&&e.removeChild(o);var E=j4(),w=E.extra;w.attributes[gl]=t,wl(b,p).then(function(O){var S=fd(q(q({},E),{},{icons:{main:O,mask:ld()},prefix:p,iconName:y,extra:w,watchable:!0})),A=ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=S.map(function(C){return Ba(C)}).join(`
791
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function V4(e){return Promise.all([Kh(e,"::before"),Kh(e,"::after")])}function X4(e){return e.parentNode!==document.head&&!~jF.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gl)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Gh(e){if(hn)return new Promise(function(t,n){var r=Ni(e.querySelectorAll("*")).filter(X4).map(V4),i=dd.begin("searchPseudoElements");cE(),Promise.all(r).then(function(){i(),Tl(),t()}).catch(function(){i(),Tl(),n()})})}var Q4={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Gh,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ye:r;X.searchPseudoElements&&Gh(i)}}},Wh=!1,J4={mixout:function(){return{dom:{unwatch:function(){cE(),Wh=!0}}}},hooks:function(){return{bootstrap:function(){$h(_l("mutationObserverCallbacks",{}))},noAuto:function(){k4()},watch:function(n){var r=n.observeMutationsRoot;Wh?Tl():$h(_l("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},zh=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var a=i.toLowerCase().split("-"),o=a[0],u=a.slice(1).join("-");if(o&&u==="h")return r.flipX=!0,r;if(o&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(o){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n)},Z4={mixout:function(){return{parse:{transform:function(n){return zh(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=zh(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,a=n.containerWidth,o=n.iconWidth,u={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),l={transform:"".concat(s," ").concat(c," ").concat(f)},d={transform:"translate(".concat(o/2*-1," -256)")},p={outer:u,inner:l,path:d};return{tag:"g",attributes:q({},p.outer),children:[{tag:"g",attributes:q({},p.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:q(q({},r.icon.attributes),p.path)}]}]}}}},uc={x:0,y:0,width:"100%",height:"100%"};function qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function e6(e){return e.tag==="g"?e.children:[e]}var t6={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),a=i?Ku(i.split(" ").map(function(o){return o.trim()})):ld();return a.prefix||(a.prefix=Wn()),n.mask=a,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,a=n.main,o=n.mask,u=n.maskId,s=n.transform,c=a.width,f=a.icon,l=o.width,d=o.icon,p=ZF({transform:s,containerWidth:l,iconWidth:c}),v={tag:"rect",attributes:q(q({},uc),{},{fill:"white"})},h=f.children?{children:f.children.map(qh)}:{},_={tag:"g",attributes:q({},p.inner),children:[qh(q({tag:f.tag,attributes:q(q({},f.attributes),p.path)},h))]},g={tag:"g",attributes:q({},p.outer),children:[_]},b="mask-".concat(u||Ra()),y="clip-".concat(u||Ra()),m={tag:"mask",attributes:q(q({},uc),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,g]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:e6(d)},m]};return r.push(E,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},uc)}),{children:r,attributes:i}}}},n6={provides:function(t){var n=!1;Gn.matchMedia&&(n=Gn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:q(q({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=q(q({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:q(q({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:q(q({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(u),r.push({tag:"path",attributes:q(q({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:q(q({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:q(q({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},r6={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return n.symbol=a,n}}}},i6=[n4,K4,G4,W4,z4,Q4,J4,Z4,t6,n6,r6];g4(i6,{mixoutsTo:St});St.noAuto;St.config;St.library;St.dom;var Al=St.parse;St.findIconDefinition;St.toHtml;var a6=St.icon;St.layer;St.text;St.counter;var fE={exports:{}},o6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u6=o6,s6=u6;function dE(){}function pE(){}pE.resetWarningCache=dE;var c6=function(){function e(r,i,a,o,u,s){if(s!==s6){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:pE,resetWarningCache:dE};return n.PropTypes=n,n};fE.exports=c6();var l6=fE.exports;const oe=gr(l6);function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(n),!0).forEach(function(r){Kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f6(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function d6(e,t){if(e==null)return{};var n=f6(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cl(e){return p6(e)||v6(e)||h6(e)||m6()}function p6(e){if(Array.isArray(e))return Il(e)}function v6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h6(e,t){if(e){if(typeof e=="string")return Il(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Il(e,t)}}function Il(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
792
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g6(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,u=e.flash,s=e.spin,c=e.spinPulse,f=e.spinReverse,l=e.pulse,d=e.fixedWidth,p=e.inverse,v=e.border,h=e.listItem,_=e.flip,g=e.size,b=e.rotation,y=e.pull,m=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":u,"fa-spin":s,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":l,"fa-fw":d,"fa-inverse":p,"fa-border":v,"fa-li":h,"fa-flip":_===!0,"fa-flip-horizontal":_==="horizontal"||_==="both","fa-flip-vertical":_==="vertical"||_==="both"},Kr(t,"fa-".concat(g),typeof g<"u"&&g!==null),Kr(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),Kr(t,"fa-pull-".concat(y),typeof y<"u"&&y!==null),Kr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(m).map(function(E){return m[E]?E:null}).filter(function(E){return E})}function y6(e){return e=e-0,e===e}function vE(e){return y6(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var b6=["style"];function _6(e){return e.charAt(0).toUpperCase()+e.slice(1)}function E6(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=vE(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[_6(i)]=a:t[i]=a,t},{})}function hE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(s){return hE(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var f=t.attributes[c];switch(c){case"class":s.attrs.className=f,delete t.attributes.class;break;case"style":s.attrs.style=E6(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=f:s.attrs[vE(c)]=f}return s},{attrs:{}}),a=n.style,o=a===void 0?{}:a,u=d6(n,b6);return i.attrs.style=Nn(Nn({},i.attrs.style),o),e.apply(void 0,[t.tag,Nn(Nn({},i.attrs),u)].concat(Cl(r)))}var mE=!1;try{mE=!0}catch{}function S6(){if(!mE&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Vh(e){if(e&&lu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Al.icon)return Al.icon(e);if(e===null)return null;if(e&&lu(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function sc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var Wu=Y.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,u=e.titleId,s=e.maskId,c=Vh(n),f=sc("classes",[].concat(Cl(g6(e)),Cl(a.split(" ")))),l=sc("transform",typeof e.transform=="string"?Al.transform(e.transform):e.transform),d=sc("mask",Vh(r)),p=a6(c,Nn(Nn(Nn(Nn({},f),l),d),{},{symbol:i,title:o,titleId:u,maskId:s}));if(!p)return S6("Could not find icon",c),null;var v=p.abstract,h={ref:t};return Object.keys(e).forEach(function(_){Wu.defaultProps.hasOwnProperty(_)||(h[_]=e[_])}),w6(v[0],h)});Wu.displayName="FontAwesomeIcon";Wu.propTypes={beat:oe.bool,border:oe.bool,beatFade:oe.bool,bounce:oe.bool,className:oe.string,fade:oe.bool,flash:oe.bool,mask:oe.oneOfType([oe.object,oe.array,oe.string]),maskId:oe.string,fixedWidth:oe.bool,inverse:oe.bool,flip:oe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:oe.oneOfType([oe.object,oe.array,oe.string]),listItem:oe.bool,pull:oe.oneOf(["right","left"]),pulse:oe.bool,rotation:oe.oneOf([0,90,180,270]),shake:oe.bool,size:oe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oe.bool,spinPulse:oe.bool,spinReverse:oe.bool,symbol:oe.oneOfType([oe.bool,oe.string]),title:oe.string,titleId:oe.string,transform:oe.oneOfType([oe.string,oe.object]),swapOpacity:oe.bool};Wu.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var w6=hE.bind(null,Y.createElement);function O6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const T6=he(O6),e7=T6;function A6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))}const C6=he(A6),t7=C6;function I6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),G("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"}))}const R6=he(I6),n7=R6;function P6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))}const N6=he(P6),r7=N6;function L6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}))}const M6=he(L6),i7=M6;function k6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{d:"M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z"}))}const D6=he(k6),a7=D6;function F6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 9a.75.75 0 00-1.5 0v2.25H9a.75.75 0 000 1.5h2.25V15a.75.75 0 001.5 0v-2.25H15a.75.75 0 000-1.5h-2.25V9z",clipRule:"evenodd"}))}const U6=he(F6),o7=U6;function j6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"}))}const $6=he(j6),u7=$6;function x6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"}))}const B6=he(x6),s7=B6;function H6({title:e,titleId:t,...n},r){return G("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?G("title",{id:t},e):null,G("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"}))}const K6=he(H6),c7=K6;var G6={},mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.AnonymousSelectKey=mt.Select=mt.Not=mt.Guard=mt.PatternKind=void 0;mt.PatternKind=Symbol("@ts-pattern/pattern-kind");mt.Guard=Symbol("@ts-pattern/guard");mt.Not=Symbol("@ts-pattern/not");mt.Select=Symbol("@ts-pattern/select");mt.AnonymousSelectKey="@ts-pattern/__anonymous-select-key";var vd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.instanceOf=e.select=e.not=e.when=void 0;const t=mt,n=u=>({[t.PatternKind]:t.Guard,[t.Guard]:u});e.when=n;const r=u=>({[t.PatternKind]:t.Not,[t.Not]:u});e.not=r;function i(u){return u===void 0?{[t.PatternKind]:t.Select,[t.Select]:t.AnonymousSelectKey}:{[t.PatternKind]:t.Select,[t.Select]:u}}e.select=i;function a(u){return s=>s instanceof u}const o=u=>(0,e.when)(a(u));e.instanceOf=o})(vd);var zu={};Object.defineProperty(zu,"__esModule",{value:!0});zu.__=void 0;const Li=vd;function W6(e){return!0}function z6(e){return typeof e=="number"}function q6(e){return Number.isNaN(e)}function Y6(e){return typeof e=="string"}function V6(e){return typeof e=="boolean"}function X6(e){return e==null}const Q6=(0,Li.when)(W6),J6=(0,Li.when)(Y6),Z6=(0,Li.when)(z6),eU=(0,Li.when)(q6),tU=(0,Li.when)(V6),nU=(0,Li.when)(X6);zu.__=Object.assign(Q6,{string:J6,number:Z6,NaN:eU,boolean:tU,nullish:nU});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isMatching=e.match=e.instanceOf=e.select=e.not=e.when=e.__=void 0;const t=mt,n=vd;Object.defineProperty(e,"when",{enumerable:!0,get:function(){return n.when}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return n.not}}),Object.defineProperty(e,"select",{enumerable:!0,get:function(){return n.select}}),Object.defineProperty(e,"instanceOf",{enumerable:!0,get:function(){return n.instanceOf}});const r=zu;Object.defineProperty(e,"__",{enumerable:!0,get:function(){return r.__}});const i=d=>a(d,[]);e.match=i;const a=(d,p)=>{const v=()=>{const h=p.find(({test:_})=>_(d));if(!h){let _;try{_=JSON.stringify(d)}catch{_=d}throw new Error(`Pattern matching error: no pattern matches value ${_}`)}return h.handler(h.select(d),d)};return{with(...h){const _=h[h.length-1],g=[],b=[];for(let E=0;E<h.length-1;E++){const w=h[E];typeof w=="function"?b.push(w):g.push(w)}let y={};const m=E=>!!(g.some(w=>f(w,E,(O,S)=>{y[O]=S}))&&b.every(w=>w(E)));return a(d,p.concat([{test:m,handler:_,select:E=>Object.keys(y).length?t.AnonymousSelectKey in y?y[t.AnonymousSelectKey]:y:E}]))},when:(h,_)=>a(d,p.concat([{test:h,handler:_,select:g=>g}])),otherwise:h=>a(d,p.concat([{test:()=>!0,handler:h,select:_=>_}])).run(),exhaustive:()=>v(),run:v}},o=d=>!!(d&&typeof d=="object"),u=d=>{const p=d;return p&&p[t.PatternKind]===t.Guard},s=d=>{const p=d;return p&&p[t.PatternKind]===t.Not},c=d=>{const p=d;return p&&p[t.PatternKind]===t.Select},f=(d,p,v)=>{if(o(d)){if(u(d))return!!d[t.Guard](p);if(c(d))return v(d[t.Select],p),!0;if(s(d))return!f(d[t.Not],p,v);if(!o(p))return!1;if(Array.isArray(d)){if(!Array.isArray(p))return!1;if(d.length===1){const h={},_=(b,y)=>{h[b]=(h[b]||[]).concat([y])},g=p.every(b=>f(d[0],b,_));return g&&Object.keys(h).forEach(b=>v(b,h[b])),g}return d.length===p.length?d.every((h,_)=>f(h,p[_],v)):!1}if(d instanceof Map)return p instanceof Map?[...d.keys()].every(h=>f(d.get(h),p.get(h),v)):!1;if(d instanceof Set){if(!(p instanceof Set))return!1;if(d.size===0)return p.size===0;if(d.size===1){const[h]=[...d.values()];return Object.values(r.__).includes(h)?f([h],[...p.values()],v):p.has(h)}return[...d.values()].every(h=>p.has(h))}return Object.keys(d).every(h=>h in p&&f(d[h],p[h],v))}return p===d};function l(...d){if(d.length===1){const[p]=d;return v=>f(p,v,()=>{})}if(d.length===2){const[p,v]=d;return f(p,v,()=>{})}throw new Error(`isMatching wasn't given enough arguments: expected 1 or 2, received ${d.length}.`)}e.isMatching=l})(G6);var gE={exports:{}};(function(e,t){(function(n,r){e.exports=r(N1)})(J,function(n){return function(){var r={378:function(u){u.exports=function s(c,f){if(c===f)return!0;if(c&&f&&typeof c=="object"&&typeof f=="object"){if(c.constructor!==f.constructor)return!1;var l,d,p;if(Array.isArray(c)){if((l=c.length)!=f.length)return!1;for(d=l;d--!=0;)if(!s(c[d],f[d]))return!1;return!0}if(c.constructor===RegExp)return c.source===f.source&&c.flags===f.flags;if(c.valueOf!==Object.prototype.valueOf)return c.valueOf()===f.valueOf();if(c.toString!==Object.prototype.toString)return c.toString()===f.toString();if((l=(p=Object.keys(c)).length)!==Object.keys(f).length)return!1;for(d=l;d--!=0;)if(!Object.prototype.hasOwnProperty.call(f,p[d]))return!1;for(d=l;d--!=0;){var v=p[d];if(!s(c[v],f[v]))return!1}return!0}return c!=c&&f!=f}},145:function(u,s,c){c.r(s),s.default='@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popover{bottom:96px;position:fixed;right:16px;z-index:10001}.tf-v1-popover.open{max-width:100%;min-height:360px;min-width:360px}.tf-v1-popover-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;opacity:0;transition:opacity .25s ease-in-out;border-radius:4px;box-shadow:rgba(0,0,0,.08) 0 2px 4px,rgba(0,0,0,.06) 0 2px 12px}.tf-v1-popover-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popover-close{display:none}.tf-v1-popover-button{width:54px;height:54px;position:fixed;box-shadow:0 2px 12px rgba(0,0,0,.06),0 2px 4px rgba(0,0,0,.08);color:#fff;right:26px;bottom:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#3a7685;line-height:0;border:none;padding:0}.tf-v1-popover-button-icon{width:54px;height:54px;font-size:24px;border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center}.tf-v1-popover-button-icon svg.default{margin-top:6px}.tf-v1-popover-button-icon svg,.tf-v1-popover-button-icon img{max-width:54px;max-height:54px}.tf-v1-popover-button-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tf-v1-popover-tooltip{position:fixed;right:94px;bottom:33px;max-width:240px;padding:10px 25px 10px 10px;border-radius:8px;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.08),0 2px 12px rgba(0,0,0,.06);font-size:14px;font-family:Helvetica,Arial,sans-serif;line-height:22px}.tf-v1-popover-tooltip::before{background-color:#fff;content:"";display:block;width:12px;height:12px;position:absolute;right:-4px;bottom:15px;transform:rotate(45deg);box-shadow:2px -2px 2px 0 rgba(0,0,0,.06)}.tf-v1-popover-tooltip-text{overflow:hidden}.tf-v1-popover-tooltip-close{color:rgba(0,0,0,.2);cursor:pointer;margin-left:4px;display:inline-block;width:20px;height:20px;font-size:18px;text-align:center;position:absolute;top:8px;right:6px}.tf-v1-popover-tooltip-close:hover{color:rgba(0,0,0,.3)}.tf-v1-popover-tooltip.closing{transition:opacity .25s ease-in-out;opacity:0}.tf-v1-popover-unread-dot{width:8px;height:8px;border-radius:50%;background-color:#fa6b05;border:2px solid #fff;position:absolute;top:2px;right:2px}.tf-v1-popover-unread-dot.closing{transition:opacity .25s ease-in-out;opacity:0}.tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media(max-width: 480px){.tf-v1-popover.open{top:0;left:0;bottom:0;right:0;width:100% !important;height:100% !important}.tf-v1-popover.open .tf-v1-popover-close{display:block}.tf-v1-popover-wrapper{border-radius:0;box-shadow:none}.tf-v1-popover-wrapper iframe{border-radius:0}.tf-v1-popover-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0;z-index:1;opacity:0}.tf-v1-popover-close:hover{opacity:1}}@media(max-width: 480px)and (min-width: 481px){.tf-v1-popover-close{color:#fff !important}}@media(max-width: 480px){.tf-v1-popover-button{width:44px;height:44px;right:8px;bottom:8px}.tf-v1-popover-button-icon{font-size:20px}.tf-v1-popover-button-icon svg{margin-top:4px;max-height:24px;max-width:24px}.tf-v1-popover-button-icon img{max-width:44px;max-height:44px}.tf-v1-popover-tooltip{position:fixed;right:66px;bottom:8px;left:auto;font-size:12px}.tf-v1-popover-tooltip::before{bottom:14px}.tf-v1-popover-unread-dot{top:0;right:0}.tf-v1-spinner{border:3px solid #aaa;font-size:32px;width:1em;height:1em;border-radius:.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px}}'},792:function(u,s,c){c.r(s),s.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);transition:opacity .25s ease-in-out;z-index:10001;display:flex;align-items:center;justify-content:center}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity .25s ease-in-out;min-width:360px;min-height:360px}.tf-v1-popup .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popup .tf-v1-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:-34px;right:0;background:none;border:none;border-radius:0}.tf-v1-popup .tf-v1-close:hover{opacity:1}@media(min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}.tf-v1-popup .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media(max-width: 480px){.tf-v1-popup{width:100% !important;height:100% !important}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity .25s ease-in-out;min-width:100%;min-height:100%}.tf-v1-popup .tf-v1-iframe-wrapper iframe{border-radius:0}.tf-v1-popup .tf-v1-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0}.tf-v1-popup .tf-v1-close:hover{opacity:1}}@media(max-width: 480px)and (min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}"},838:function(u,s,c){c.r(s),s.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-sidetab{position:fixed;top:50%;right:0;width:400px;height:580px;transform:translate(100%, -50%);box-shadow:0 2px 4px rgba(0,0,0,.08),0 2px 12px rgba(0,0,0,.06);z-index:10001;will-change:transform}.tf-v1-sidetab.ready{transition:transform 400ms cubic-bezier(0.5, 0, 0.75, 0)}.tf-v1-sidetab iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px 0 0 8px}.tf-v1-sidetab.open{transform:translate(0, -50%)}.tf-v1-sidetab-wrapper{position:relative;height:100%}.tf-v1-sidetab-button{position:absolute;top:50%;left:-48px;transform:rotate(-90deg) translateX(-50%);transform-origin:left top;min-width:100px;max-width:540px;height:48px;display:flex;align-items:center;padding:12px 16px;border-radius:8px 8px 0 0;color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.08),0 2px 12px rgba(0,0,0,.06);background-color:#3a7685;cursor:pointer;border:0;text-decoration:none;outline:none}.tf-v1-sidetab-button-text{flex:1;font-size:18px;font-family:Helvetica,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-v1-sidetab-button-icon{width:24px;height:24px;font-size:24px;transform:rotate(90deg);margin-right:12px;position:relative;order:-1}.tf-v1-sidetab-button-icon>img{width:100%;height:100%;object-fit:contain}.tf-v1-sidetab-close{display:none}.tf-v1-sidetab .tf-v1-spinner{border:3px solid #aaa;font-size:24px;width:1em;height:1em;border-radius:.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;top:0;left:0;margin:0}@media(max-width: 480px){.tf-v1-sidetab{transition:unset}.tf-v1-sidetab.ready{transition:unset}.tf-v1-sidetab.open{top:0;left:0;right:0;bottom:0;transform:translate(0, 0);width:100% !important;height:100% !important}.tf-v1-sidetab-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0;display:block;z-index:1}.tf-v1-sidetab-close:hover{opacity:1}}@media(max-width: 480px)and (min-width: 481px){.tf-v1-sidetab-close{color:#fff !important}}"},630:function(u,s,c){c.r(s),s.default="@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-slider{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);transition:opacity .25s ease-in-out;z-index:10001}.tf-v1-slider .tf-v1-iframe-wrapper{max-width:calc(100vw - 26px);height:100%;position:absolute;top:0;transition:right .5s ease-in-out,left .5s ease-in-out}.tf-v1-slider .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:0}@media(min-width: 481px){.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:8px 0 0 8px}}.tf-v1-slider .tf-v1-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0}.tf-v1-slider .tf-v1-close:hover{opacity:1}@media(min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}@media(min-width: 481px){.tf-v1-slider .tf-v1-close{top:4px;left:-26px}}.tf-v1-slider .tf-v1-close:hover{opacity:1}.tf-v1-slider .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media(min-width: 481px){.tf-v1-slider.left .tf-v1-iframe-wrapper iframe{border-radius:0 8px 8px 0}.tf-v1-slider.left .tf-v1-close{left:auto;right:-24px}}@media(max-width: 480px){.tf-v1-slider{width:100% !important;height:100% !important}.tf-v1-slider .tf-v1-iframe-wrapper{width:100% !important;max-width:100vw;height:100%;transition:unset}.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:none}.tf-v1-slider .tf-v1-close{display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0;left:auto}.tf-v1-slider .tf-v1-close:hover{opacity:1}}@media(max-width: 480px)and (min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}"},684:function(u,s,c){c.r(s),s.default=".tf-v1-widget{width:100%;height:100%;min-height:inherit;position:relative}.tf-v1-widget iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px;min-height:inherit}.tf-v1-widget-close{display:none}.tf-v1-widget-iframe-overlay{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px;position:absolute;top:0;left:0}.tf-v1-widget-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10001;width:100% !important;height:100% !important}.tf-v1-widget-fullscreen .tf-v1-widget-close{display:block;display:block;padding:0;margin:0;position:absolute;font-size:32px;font-weight:normal;line-height:24px;width:24px;height:24px;text-align:center;text-transform:none;cursor:pointer;opacity:.75;transition:opacity .25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;background:none;border:none;border-radius:0;z-index:1}.tf-v1-widget-fullscreen .tf-v1-widget-close:hover{opacity:1}@media(min-width: 481px){.tf-v1-widget-fullscreen .tf-v1-widget-close{color:#fff !important}}.tf-v1-widget-fullscreen iframe{border-radius:0}"},281:function(u,s,c){var f=this&&this.__createBinding||(Object.create?function(d,p,v,h){h===void 0&&(h=v);var _=Object.getOwnPropertyDescriptor(p,v);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[v]}}),Object.defineProperty(d,h,_)}:function(d,p,v,h){h===void 0&&(h=v),d[h]=p[v]}),l=this&&this.__exportStar||function(d,p){for(var v in d)v==="default"||Object.prototype.hasOwnProperty.call(p,v)||f(p,d,v)};Object.defineProperty(s,"__esModule",{value:!0}),l(c(11),s),l(c(739),s),l(c(860),s)},794:function(u,s,c){var f=this&&this.__assign||function(){return f=Object.assign||function(v){for(var h,_=1,g=arguments.length;_<g;_++)for(var b in h=arguments[_])Object.prototype.hasOwnProperty.call(h,b)&&(v[b]=h[b]);return v},f.apply(this,arguments)},l=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(s,"__esModule",{value:!0}),s.InlineStyle=void 0;var d=l(c(156)),p=l(c(52));s.InlineStyle=function(v){var h=v.filename,_=c(367)("./".concat(h,".css")),g=(0,p.default)();return d.default.createElement("style",f({},g?{nonce:g}:{}),_.default)}},11:function(u,s,c){var f=this&&this.__assign||function(){return f=Object.assign||function(g){for(var b,y=1,m=arguments.length;y<m;y++)for(var E in b=arguments[y])Object.prototype.hasOwnProperty.call(b,E)&&(g[E]=b[E]);return g},f.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(g,b,y,m){m===void 0&&(m=y);var E=Object.getOwnPropertyDescriptor(b,y);E&&!("get"in E?!b.__esModule:E.writable||E.configurable)||(E={enumerable:!0,get:function(){return b[y]}}),Object.defineProperty(g,m,E)}:function(g,b,y,m){m===void 0&&(m=y),g[m]=b[y]}),d=this&&this.__setModuleDefault||(Object.create?function(g,b){Object.defineProperty(g,"default",{enumerable:!0,value:b})}:function(g,b){g.default=b}),p=this&&this.__importStar||function(g){if(g&&g.__esModule)return g;var b={};if(g!=null)for(var y in g)y!=="default"&&Object.prototype.hasOwnProperty.call(g,y)&&l(b,g,y);return d(b,g),b},v=this&&this.__rest||function(g,b){var y={};for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&b.indexOf(m)<0&&(y[m]=g[m]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var E=0;for(m=Object.getOwnPropertySymbols(g);E<m.length;E++)b.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(g,m[E])&&(y[m[E]]=g[m[E]])}return y};Object.defineProperty(s,"__esModule",{value:!0}),s.makeButtonComponent=s.emptyEmbed=void 0;var h=p(c(156)),_=c(794);s.emptyEmbed={unmount:function(){},open:function(){}},s.makeButtonComponent=function(g,b){return h.default.forwardRef(function(y,m){var E=y.id,w=y.children,O=y.as,S=O===void 0?"button":O,A=y.style,C=A===void 0?{}:A,N=y.className,L=N===void 0?"":N,k=y.buttonProps,P=v(y,["id","children","as","style","className","buttonProps"]),I=(0,h.useRef)(s.emptyEmbed),R=m||I;(0,h.useEffect)(function(){return R.current=g(E,P),function(){return R.current.unmount()}},[E,P,R]);var M=(0,h.useMemo)(function(){return function(){return R.current.open()}},[R]),D=h.default.createElement(S,f({style:C,className:L,onClick:M,"data-testid":"tf-v1-".concat(b),children:w},k));return h.default.createElement(h.default.Fragment,null,h.default.createElement(_.InlineStyle,{filename:b}),D)})}},739:function(u,s,c){var f=this&&this.__createBinding||(Object.create?function(g,b,y,m){m===void 0&&(m=y);var E=Object.getOwnPropertyDescriptor(b,y);E&&!("get"in E?!b.__esModule:E.writable||E.configurable)||(E={enumerable:!0,get:function(){return b[y]}}),Object.defineProperty(g,m,E)}:function(g,b,y,m){m===void 0&&(m=y),g[m]=b[y]}),l=this&&this.__setModuleDefault||(Object.create?function(g,b){Object.defineProperty(g,"default",{enumerable:!0,value:b})}:function(g,b){g.default=b}),d=this&&this.__importStar||function(g){if(g&&g.__esModule)return g;var b={};if(g!=null)for(var y in g)y!=="default"&&Object.prototype.hasOwnProperty.call(g,y)&&f(b,g,y);return l(b,g),b},p=this&&this.__rest||function(g,b){var y={};for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&b.indexOf(m)<0&&(y[m]=g[m]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var E=0;for(m=Object.getOwnPropertySymbols(g);E<m.length;E++)b.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(g,m[E])&&(y[m[E]]=g[m[E]])}return y};Object.defineProperty(s,"__esModule",{value:!0}),s.makeInitializerComponent=void 0;var v=d(c(156)),h=c(794),_={unmount:function(){}};s.makeInitializerComponent=function(g,b){return v.default.forwardRef(function(y,m){var E=y.id,w=p(y,["id"]),O=(0,v.useRef)(_),S=m||O;return(0,v.useEffect)(function(){return S.current=g(E,w),function(){S.current.unmount()}},[E,w,S]),v.default.createElement(h.InlineStyle,{filename:b})})}},860:function(u,s,c){var f=this&&this.__assign||function(){return f=Object.assign||function(b){for(var y,m=1,E=arguments.length;m<E;m++)for(var w in y=arguments[m])Object.prototype.hasOwnProperty.call(y,w)&&(b[w]=y[w]);return b},f.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(b,y,m,E){E===void 0&&(E=m);var w=Object.getOwnPropertyDescriptor(y,m);w&&!("get"in w?!y.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(b,E,w)}:function(b,y,m,E){E===void 0&&(E=m),b[E]=y[m]}),d=this&&this.__setModuleDefault||(Object.create?function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}:function(b,y){b.default=y}),p=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var y={};if(b!=null)for(var m in b)m!=="default"&&Object.prototype.hasOwnProperty.call(b,m)&&l(y,b,m);return d(y,b),y},v=this&&this.__rest||function(b,y){var m={};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&y.indexOf(E)<0&&(m[E]=b[E]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function"){var w=0;for(E=Object.getOwnPropertySymbols(b);w<E.length;w++)y.indexOf(E[w])<0&&Object.prototype.propertyIsEnumerable.call(b,E[w])&&(m[E[w]]=b[E[w]])}return m};Object.defineProperty(s,"__esModule",{value:!0}),s.Widget=void 0;var h=p(c(156)),_=c(611),g=c(794);s.Widget=function(b){var y=b.id,m=b.style,E=m===void 0?{}:m,w=b.className,O=w===void 0?"":w,S=v(b,["id","style","className"]),A=(0,h.useRef)(null);return(0,h.useEffect)(function(){if(A.current){var C=(0,_.createWidget)(y,f(f({},S),{container:A.current}));return function(){C.unmount()}}},[y,S]),h.default.createElement(h.default.Fragment,null,h.default.createElement(g.InlineStyle,{filename:"widget"}),h.default.createElement("div",{style:E,className:O,ref:A}))}},797:function(u,s,c){var f=this&&this.__createBinding||(Object.create?function(d,p,v,h){h===void 0&&(h=v);var _=Object.getOwnPropertyDescriptor(p,v);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[v]}}),Object.defineProperty(d,h,_)}:function(d,p,v,h){h===void 0&&(h=v),d[h]=p[v]}),l=this&&this.__exportStar||function(d,p){for(var v in d)v==="default"||Object.prototype.hasOwnProperty.call(p,v)||f(p,d,v)};Object.defineProperty(s,"__esModule",{value:!0}),l(c(553),s)},553:function(u,s,c){var f=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(s,"__esModule",{value:!0}),s.memoComponent=s.propsAreEqual=void 0;var l=c(156),d=f(c(378));s.propsAreEqual=function(p,v){return(0,d.default)(p,v)},s.memoComponent=function(p){return(0,l.memo)(p,s.propsAreEqual)}},52:function(u,s,c){Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(){return c.g.__webpack_nonce__!==void 0?c.g.__webpack_nonce__:null}},367:function(u,s,c){var f={"./popover.css":145,"./popup.css":792,"./sidetab.css":838,"./slider.css":630,"./widget.css":684};function l(p){var v=d(p);return c(v)}function d(p){if(!c.o(f,p)){var v=new Error("Cannot find module '"+p+"'");throw v.code="MODULE_NOT_FOUND",v}return f[p]}l.keys=function(){return Object.keys(f)},l.resolve=d,u.exports=l,l.id=367},611:function(u){u.exports=function(){var s={8027:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DEFAULT_DOMAIN=l.POPUP_SIZE=l.SLIDER_WIDTH=l.SLIDER_POSITION=l.LIVE_EMBED_ATTRIBUTE=l.SIDETAB_ATTRIBUTE=l.WIDGET_ATTRIBUTE=l.SLIDER_ATTRIBUTE=l.POPUP_ATTRIBUTE=l.POPOVER_ATTRIBUTE=void 0,l.POPOVER_ATTRIBUTE="data-tf-popover",l.POPUP_ATTRIBUTE="data-tf-popup",l.SLIDER_ATTRIBUTE="data-tf-slider",l.WIDGET_ATTRIBUTE="data-tf-widget",l.SIDETAB_ATTRIBUTE="data-tf-sidetab",l.LIVE_EMBED_ATTRIBUTE="data-tf-live",l.SLIDER_POSITION="right",l.SLIDER_WIDTH=800,l.POPUP_SIZE=100,l.DEFAULT_DOMAIN="form.typeform.com"},7528:function(f,l,d){var p=this&&this.__assign||function(){return p=Object.assign||function(m){for(var E,w=1,O=arguments.length;w<O;w++)for(var S in E=arguments[w])Object.prototype.hasOwnProperty.call(E,S)&&(m[S]=E[S]);return m},p.apply(this,arguments)},v=this&&this.__rest||function(m,E){var w={};for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&E.indexOf(O)<0&&(w[O]=m[O]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var S=0;for(O=Object.getOwnPropertySymbols(m);S<O.length;S++)E.indexOf(O[S])<0&&Object.prototype.propertyIsEnumerable.call(m,O[S])&&(w[O[S]]=m[O[S]])}return w};Object.defineProperty(l,"__esModule",{value:!0}),l.createPopover=void 0;var h=d(6797),_=d(1320),g=function(m,E){var w=m.parentNode;w&&(w.removeChild(m),w.appendChild(E))},b=function(m,E){m===void 0&&(m="span"),E===void 0&&(E="tf-v1-popover-button-icon");var w=document.createElement(m);return w.className="".concat(E," tf-v1-close-icon"),w.innerHTML="&times;",w.dataset.testid=E,w},y={buttonColor:"#3a7685"};l.createPopover=function(m,E){E===void 0&&(E={});var w,O,S,A=p(p({},y),E),C=A.domain,N=v(A,["domain"]),L=(0,h.createIframe)("popover",{formId:m,domain:C,options:N}),k=L.iframe,P=L.embedId,I=L.refresh,R=L.focus,M=function(te,Q){var ne=document.createElement("div");return ne.className="tf-v1-popover",ne.dataset.testid="tf-v1-popover",(0,h.setElementSize)(ne,{width:te,height:Q})}(N.width,N.height),D=function(){var te=document.createElement("div");return te.className="tf-v1-popover-wrapper",te.dataset.testid="tf-v1-popover-wrapper",te}(),j=function(te,Q){var ne=(0,h.getTextColor)(Q),re=document.createElement("div");re.className="tf-v1-popover-button-icon";var se=`<svg class="default" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
793
- <path d="M21 0H0V9L10.5743 24V16.5H21C22.6567 16.5 24 15.1567 24 13.5V3C24 1.34325 22.6567 0 21 0ZM7.5
794
- 9.75C6.672 9.75 6 9.07875 6 8.25C6 7.42125 6.672 6.75 7.5 6.75C8.328 6.75 9 7.42125 9 8.25C9 9.07875 8.328 9.75
795
- 7.5 9.75ZM12.75 9.75C11.922 9.75 11.25 9.07875 11.25 8.25C11.25 7.42125 11.922 6.75 12.75 6.75C13.578 6.75 14.25
796
- 7.42125 14.25 8.25C14.25 9.07875 13.578 9.75 12.75 9.75ZM18 9.75C17.172 9.75 16.5 9.07875 16.5 8.25C16.5 7.42125
797
- 17.172 6.75 18 6.75C18.828 6.75 19.5 7.42125 19.5 8.25C19.5 9.07875 18.828 9.75 18 9.75Z" fill="`.concat(ne,`"></path>
798
- </svg>`),Rt=te==null?void 0:te.startsWith("http");return re.innerHTML=Rt?"<img alt='popover trigger icon button' src='".concat(te,"'/>"):te??se,re.dataset.testid="default-icon",re}(N.customIcon,N.buttonColor||y.buttonColor),x=function(){var te=document.createElement("div");te.className="tf-v1-spinner";var Q=document.createElement("div");return Q.className="tf-v1-popover-button-icon",Q.dataset.testid="spinner-icon",Q.append(te),Q}(),W=b(),K=b("button","tf-v1-popover-close"),B=function(te,Q){Q===void 0&&(Q={});var ne=(0,h.getTextColor)(te),re=document.createElement("button");return re.className="tf-v1-popover-button",re.dataset.testid="tf-v1-popover-button",re.style.backgroundColor=te,re.style.color=ne,(0,h.addAttributesToElement)(re,Q),re}(N.buttonColor||y.buttonColor,N.buttonProps);(N.container||document.body).append(M),D.append(k),M.append(B),M.append(K),B.append(j);var $=function(){O&&O.parentNode&&(O.classList.add("closing"),setTimeout(function(){(0,h.unmountElement)(O)},250))};N.tooltip&&N.tooltip.length>0&&(O=function(te,Q){var ne=document.createElement("span");ne.className="tf-v1-popover-tooltip-close",ne.dataset.testid="tf-v1-popover-tooltip-close",ne.innerHTML="&times;",ne.onclick=Q;var re=document.createElement("div");re.className="tf-v1-popover-tooltip-text",re.innerHTML=te;var se=document.createElement("div");return se.className="tf-v1-popover-tooltip",se.dataset.testid="tf-v1-popover-tooltip",se.appendChild(re),se.appendChild(ne),se}(N.tooltip,$),M.append(O)),N.notificationDays&&(N.enableSandbox||(0,_.canBuildNotificationDot)(m))&&(S=(0,_.buildNotificationDot)(),B.append(S)),k.onload=function(){M.classList.add("open"),D.style.opacity="1",K.style.opacity="1",g(x,W),(0,h.addCustomKeyboardListener)(Z)};var H=function(){(0,h.isOpen)(D)||($(),S&&(S.classList.add("closing"),N.notificationDays&&!N.enableSandbox&&(0,_.saveNotificationDotHideUntilTime)(m,N.notificationDays),setTimeout(function(){(0,h.unmountElement)(S)},250)),setTimeout(function(){(0,h.isInPage)(D)?(D.style.opacity="0",K.style.opacity="0",D.style.display="flex",setTimeout(function(){M.classList.add("open"),D.style.opacity="1",K.style.opacity="1"}),g(j,W)):(M.append(D),g(j,x),D.style.opacity="0",K.style.opacity="0")}))},Z=function(){var te;(0,h.isOpen)(M)&&((te=E.onClose)===null||te===void 0||te.call(E),setTimeout(function(){N.keepSession?D.style.display="none":(0,h.unmountElement)(D),M.classList.remove("open"),g(W,j)},250))};(0,h.setAutoClose)(P,N.autoClose,Z);var ae=function(){(0,h.isOpen)(D)?Z():H()};return B.onclick=(0,h.invokeWithoutDefault)(ae),K.onclick=(0,h.invokeWithoutDefault)(Z),N.open&&!(0,h.isOpen)(D)&&(w=(0,h.handleCustomOpen)(H,N.open,N.openValue)),{open:H,close:Z,toggle:ae,refresh:I,focus:R,unmount:function(){(0,h.unmountElement)(M),N.open&&(w!=null&&w.remove)&&w.remove()}}}},1797:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(7528),l),v(d(6100),l)},1320:function(f,l){var d=this&&this.__assign||function(){return d=Object.assign||function(_){for(var g,b=1,y=arguments.length;b<y;b++)for(var m in g=arguments[b])Object.prototype.hasOwnProperty.call(g,m)&&(_[m]=g[m]);return _},d.apply(this,arguments)};Object.defineProperty(l,"__esModule",{value:!0}),l.buildNotificationDot=l.canBuildNotificationDot=l.saveNotificationDotHideUntilTime=void 0;var p="tfNotificationData",v=function(){var _=localStorage.getItem(p);return _?JSON.parse(_):{}},h=function(_){_&&localStorage.setItem(p,JSON.stringify(_))};l.saveNotificationDotHideUntilTime=function(_,g){var b,y=new Date;y.setDate(y.getDate()+g),h(d(d({},v()),((b={})[_]={hideUntilTime:y.getTime()},b)))},l.canBuildNotificationDot=function(_){var g=function(b){var y;return((y=v()[b])===null||y===void 0?void 0:y.hideUntilTime)||0}(_);return new Date().getTime()>g&&(g&&function(b){var y=v();delete y[b],h(y)}(_),!0)},l.buildNotificationDot=function(){var _=document.createElement("span");return _.className="tf-v1-popover-unread-dot",_.dataset.testid="tf-v1-popover-unread-dot",_}},6100:function(f,l){Object.defineProperty(l,"__esModule",{value:!0})},9630:function(f,l,d){var p=this&&this.__rest||function(g,b){var y={};for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&b.indexOf(m)<0&&(y[m]=g[m]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var E=0;for(m=Object.getOwnPropertySymbols(g);E<m.length;E++)b.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(g,m[E])&&(y[m[E]]=g[m[E]])}return y};Object.defineProperty(l,"__esModule",{value:!0}),l.createPopup=void 0;var v=d(6797),h=d(8027),_=d(6797);l.createPopup=function(g,b){if(b===void 0&&(b={}),!(0,v.hasDom)())return{open:function(){},close:function(){},toggle:function(){},refresh:function(){},focus:function(){},unmount:function(){}};var y,m=b.width,E=b.height,w=b.size,O=w===void 0?h.POPUP_SIZE:w,S=b.onClose,A=b.domain,C=p(b,["width","height","size","onClose","domain"]),N=(0,v.createIframe)("popup",{formId:g,domain:A,options:C}),L=N.iframe,k=N.embedId,P=N.refresh,I=N.focus,R=document.body.style.overflow,M=function(){var $=document.createElement("div");return $.className="tf-v1-popup",$.dataset.testid="tf-v1-popup",$.style.opacity="0",$}(),D=function(){var $=document.createElement("div");return $.className="tf-v1-spinner",$}(),j=function($,H,Z){var ae=document.createElement("div");return ae.className="tf-v1-iframe-wrapper",ae.style.opacity="0",(0,v.isDefined)($)&&(0,v.isDefined)(H)?(0,v.setElementSize)(ae,{width:$,height:H}):(ae.style.width="calc(".concat(Z,"% - 80px)"),ae.style.height="calc(".concat(Z,"% - 80px)"),ae)}(m,E,O);j.append(L),M.append(D),M.append(j);var x=C.container||document.body;L.onload=function(){j.style.opacity="1",setTimeout(function(){D.style.display="none"},250),(0,v.addCustomKeyboardListener)(K)};var W=function(){(0,_.isOpen)(M)||((0,_.isInPage)(M)?M.style.display="flex":(D.style.display="block",x.append(M)),document.body.style.overflow="hidden",setTimeout(function(){M.style.opacity="1"}))},K=function(){(0,_.isOpen)(M)&&(S==null||S(),M.style.opacity="0",document.body.style.overflow=R,setTimeout(function(){C.keepSession?M.style.display="none":B()},250))};j.append(function($){var H=document.createElement("button");return H.className="tf-v1-close tf-v1-close-icon",H.innerHTML="&times;",H.onclick=(0,v.invokeWithoutDefault)($),H}(K)),(0,v.setAutoClose)(k,C.autoClose,K),C.open&&!(0,_.isOpen)(M)&&(y=(0,v.handleCustomOpen)(W,C.open,C.openValue));var B=function(){(0,v.unmountElement)(M),C.open&&(y!=null&&y.remove)&&y.remove()};return{open:W,close:K,toggle:function(){(0,_.isOpen)(M)?K():W()},refresh:P,focus:I,unmount:B}}},5970:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(9630),l),v(d(7394),l)},7394:function(f,l){Object.defineProperty(l,"__esModule",{value:!0})},382:function(f,l,d){var p=this&&this.__assign||function(){return p=Object.assign||function(y){for(var m,E=1,w=arguments.length;E<w;E++)for(var O in m=arguments[E])Object.prototype.hasOwnProperty.call(m,O)&&(y[O]=m[O]);return y},p.apply(this,arguments)},v=this&&this.__rest||function(y,m){var E={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&m.indexOf(w)<0&&(E[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function"){var O=0;for(w=Object.getOwnPropertySymbols(y);O<w.length;O++)m.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(y,w[O])&&(E[w[O]]=y[w[O]])}return E};Object.defineProperty(l,"__esModule",{value:!0}),l.createSidetab=void 0;var h=d(6797),_={buttonColor:"#3a7685",buttonText:"Launch me"},g=function(y,m){y===void 0&&(y="div"),m===void 0&&(m="tf-v1-sidetab-button-icon");var E=document.createElement(y);return E.className="".concat(m," tf-v1-close-icon"),E.innerHTML="&times;",E.dataset.testid=m,E},b=function(y,m){var E=y.parentNode;E&&(E.removeChild(y),E.appendChild(m))};l.createSidetab=function(y,m){m===void 0&&(m={});var E,w=p(p({},_),m),O=w.domain,S=v(w,["domain"]),A=(0,h.createIframe)("side-tab",{formId:y,domain:O,options:S}),C=A.iframe,N=A.embedId,L=A.refresh,k=A.focus,P=function(H,Z,ae,te){var Q=document.createElement("div");return Q.className="tf-v1-sidetab",Q.dataset.testid="tf-v1-sidetab",(0,h.setElementSize)(Q,{width:H,height:Z}),ae!==void 0?(Q.style.top="calc(".concat((0,h.getValueWithUnits)(ae)," + ").concat((0,h.getValueWithUnits)(Z||580)," / 2)"),Q.style.bottom="auto"):te!==void 0&&(Q.style.top="auto",Q.style.bottom="calc(".concat((0,h.getValueWithUnits)(te)," - ").concat((0,h.getValueWithUnits)(Z||580)," / 2)")),Q}(S.width,S.height,S.top,S.bottom),I=function(){var H=document.createElement("div");return H.className="tf-v1-sidetab-wrapper",H.dataset.testid="tf-v1-sidetab-wrapper",H}(),R=function(){var H=document.createElement("div");H.className="tf-v1-spinner";var Z=document.createElement("div");return Z.className="tf-v1-sidetab-button-icon",Z.dataset.testid="spinner-icon",Z.append(H),Z}(),M=function(H){var Z=H.backgroundColor,ae=H.textColor,te=H.width,Q=H.height,ne=H.align,re=ne===void 0?"center":ne,se=H.buttonProps,Rt=se===void 0?{}:se,we=document.createElement("button");return we.className="tf-v1-sidetab-button",we.style.backgroundColor=Z,we.style.color=ae||(0,h.getTextColor)(Z),(0,h.addAttributesToElement)(we,Rt),(0,h.setElementSize)(we,{width:te,height:Q}),Q&&(we.style.left="-".concat((0,h.getValueWithUnits)(Q))),re==="top"?(we.style.transform="rotate(-90deg) translateX(-100%)",we.style.top="0"):re==="bottom"&&(we.style.transform="rotate(-90deg) translateX(0)",we.style.top="auto",we.style.bottom="-".concat((0,h.getValueWithUnits)(Q||48))),we}({backgroundColor:S.buttonColor||_.buttonColor,textColor:S.buttonTextColor,width:S.buttonHeight,height:S.buttonWidth,align:S.buttonAlign,buttonProps:S.buttonProps}),D=function(H,Z){var ae=document.createElement("span");return ae.className="tf-v1-sidetab-button-text",ae.innerHTML=H,Z&&(ae.style.fontSize=(0,h.getValueWithUnits)(Z)),ae}(S.buttonText||_.buttonText,S.buttonTextSize),j=function(H,Z,ae,te){var Q=ae||(0,h.getTextColor)(Z),ne=document.createElement("div");ne.className="tf-v1-sidetab-button-icon",te&&(ne.style.width=(0,h.getValueWithUnits)(te),ne.style.height=(0,h.getValueWithUnits)(te));var re=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
799
- <path d="M21 0H0V9L10.5743 24V16.5H21C22.6567 16.5 24 15.1567 24 13.5V3C24 1.34325 22.6567 0 21 0ZM7.5 9.75C6.672 9.75 6 9.07875 6 8.25C6 7.42125 6.672 6.75 7.5 6.75C8.328 6.75 9 7.42125 9 8.25C9 9.07875 8.328 9.75 7.5 9.75ZM12.75 9.75C11.922 9.75 11.25 9.07875 11.25 8.25C11.25 7.42125 11.922 6.75 12.75 6.75C13.578 6.75 14.25 7.42125 14.25 8.25C14.25 9.07875 13.578 9.75 12.75 9.75ZM18 9.75C17.172 9.75 16.5 9.07875 16.5 8.25C16.5 7.42125 17.172 6.75 18 6.75C18.828 6.75 19.5 7.42125 19.5 8.25C19.5 9.07875 18.828 9.75 18 9.75Z" fill="`.concat(Q,`"></path>
800
- </svg>`),se=H==null?void 0:H.startsWith("http");return ne.innerHTML=se?"<img alt='popover trigger icon button' src='".concat(H,"'/>"):H??re,ne.dataset.testid="default-icon",ne}(S.customIcon,S.buttonColor||_.buttonColor,S.buttonTextColor,S.buttonTextSize),x=g(),W=g("button","tf-v1-sidetab-close");(S.container||document.body).append(P),I.append(C),P.append(M),P.append(W),M.append(j),M.append(D),setTimeout(function(){P.classList.add("ready")},250),C.onload=function(){P.classList.add("open"),b(R,x),(0,h.addCustomKeyboardListener)(B)};var K=function(){(0,h.isOpen)(I)||((0,h.isInPage)(I)?(I.style.display="flex",P.classList.add("open"),b(j,x)):(P.append(I),b(j,R)))},B=function(){var H;(0,h.isOpen)(I)&&((H=S.onClose)===null||H===void 0||H.call(S),P.classList.remove("open"),setTimeout(function(){S.keepSession?I.style.display="none":(0,h.unmountElement)(I),b(x,j)},250))};(0,h.setAutoClose)(N,S.autoClose,B);var $=function(){(0,h.isOpen)(I)?B():K()};return M.onclick=(0,h.invokeWithoutDefault)($),W.onclick=(0,h.invokeWithoutDefault)(B),S.open&&!(0,h.isOpen)(I)&&(E=(0,h.handleCustomOpen)(K,S.open,S.openValue)),{open:K,close:B,toggle:$,refresh:L,focus:k,unmount:function(){(0,h.unmountElement)(P),S.open&&(E!=null&&E.remove)&&E.remove()}}}},1434:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(382),l),v(d(7668),l)},7668:function(f,l){Object.defineProperty(l,"__esModule",{value:!0})},2603:function(f,l,d){var p=this&&this.__rest||function(_,g){var b={};for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&g.indexOf(y)<0&&(b[y]=_[y]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var m=0;for(y=Object.getOwnPropertySymbols(_);m<y.length;m++)g.indexOf(y[m])<0&&Object.prototype.propertyIsEnumerable.call(_,y[m])&&(b[y[m]]=_[y[m]])}return b};Object.defineProperty(l,"__esModule",{value:!0}),l.createSlider=void 0;var v=d(6797),h=d(8027);l.createSlider=function(_,g){if(g===void 0&&(g={}),!(0,v.hasDom)())return{open:function(){},close:function(){},toggle:function(){},refresh:function(){},focus:function(){},unmount:function(){}};var b,y=g.position,m=y===void 0?h.SLIDER_POSITION:y,E=g.width,w=E===void 0?h.SLIDER_WIDTH:E,O=g.onClose,S=g.domain,A=p(g,["position","width","onClose","domain"]),C=(0,v.createIframe)("slider",{formId:_,domain:S,options:A}),N=C.iframe,L=C.embedId,k=C.refresh,P=C.focus,I=document.body.style.overflow,R=function(B){var $=document.createElement("div");return $.className="tf-v1-slider ".concat(B),$.dataset.testid="tf-v1-slider",$.style.opacity="0",$}(m),M=function(){var B=document.createElement("div");return B.className="tf-v1-spinner",B}(),D=function(B,$){var H=document.createElement("div");return H.className="tf-v1-iframe-wrapper",H.style[B]="-100%",(0,v.setElementSize)(H,{width:$})}(m,w);D.append(N),R.append(M),R.append(D);var j=A.container||document.body;N.onload=function(){D.style[m]="0",setTimeout(function(){M.style.display="none"},500),(0,v.addCustomKeyboardListener)(W)};var x=function(){(0,v.isOpen)(R)||((0,v.isInPage)(R)?(R.style.display="flex",setTimeout(function(){D.style[m]="0"})):(j.append(R),M.style.display="block"),document.body.style.overflow="hidden",setTimeout(function(){R.style.opacity="1"}))},W=function(){(0,v.isOpen)(R)&&(O==null||O(),R.style.opacity="0",D.style[m]="-100%",document.body.style.overflow=I,setTimeout(function(){A.keepSession?R.style.display="none":K()},500))};(0,v.setAutoClose)(L,A.autoClose,W),D.append(function(B){var $=document.createElement("button");return $.className="tf-v1-close tf-v1-close-icon",$.innerHTML="&times;",$.onclick=(0,v.invokeWithoutDefault)(B),$}(W)),A.open&&!(0,v.isOpen)(R)&&(b=(0,v.handleCustomOpen)(x,A.open,A.openValue));var K=function(){(0,v.unmountElement)(R),A.open&&(b!=null&&b.remove)&&b.remove()};return{open:x,close:W,toggle:function(){(0,v.isOpen)(R)?W():x()},refresh:k,focus:P,unmount:K}}},4071:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(2603),l),v(d(3162),l)},3162:function(f,l){Object.defineProperty(l,"__esModule",{value:!0})},718:function(f,l,d){var p=this&&this.__rest||function(y,m){var E={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&m.indexOf(w)<0&&(E[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function"){var O=0;for(w=Object.getOwnPropertySymbols(y);O<w.length;O++)m.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(y,w[O])&&(E[w[O]]=y[w[O]])}return E},v=this&&this.__read||function(y,m){var E=typeof Symbol=="function"&&y[Symbol.iterator];if(!E)return y;var w,O,S=E.call(y),A=[];try{for(;(m===void 0||m-- >0)&&!(w=S.next()).done;)A.push(w.value)}catch(C){O={error:C}}finally{try{w&&!w.done&&(E=S.return)&&E.call(S)}finally{if(O)throw O.error}}return A};Object.defineProperty(l,"__esModule",{value:!0}),l.createWidget=void 0;var h=d(6797),_=d(8554),g=d(2313),b=d(1126);l.createWidget=function(y,m){if(!(0,h.hasDom)())return{refresh:function(){},focus:function(){},unmount:function(){}};var E=m.domain,w=p(m,["domain"]);w.inlineOnMobile=m.inlineOnMobile||m.fullScreen,w.inlineOnMobile||!w.forceTouch&&!(0,h.isFullscreen)()||(w.displayAsFullScreenModal=!0,w.forceTouch=!0);var O=(0,h.createIframe)("widget",{formId:y,domain:E,options:w}),S=O.embedId,A=O.iframe,C=O.refresh,N=O.focus,L=(0,g.buildWidget)(A,w.width,w.height);if(w.fullScreen&&(0,b.overrideFullScreenStyles)(m.container,A),w.autoResize){var k=v(typeof w.autoResize=="string"?w.autoResize.split(",").map(function(K){return parseInt(K)}):[],2),P=k[0],I=k[1];window.addEventListener("message",(0,_.getFormHeightChangedHandler)(S,function(K){var B=Math.max(K.height,P||0);I&&(B=Math.min(B,I)),m.container.style.height="".concat(B,"px")}))}w.autoFocus&&window.addEventListener("message",(0,_.getFormReadyHandler)(S,function(){setTimeout(function(){N()},1e3)}));var R,M=function(){return m.container.append(L)};if(m.container.innerHTML="",m.lazy?(0,h.lazyInitialize)(m.container,M):M(),w.displayAsFullScreenModal){var D="",j=m.container,x=j.style.height;window.addEventListener("message",(0,_.getWelcomeScreenHiddenHandler)(S,function(){j.classList.add("tf-v1-widget-fullscreen"),m.opacity!==void 0&&(j.style.backgroundColor=D)})),window.addEventListener("message",(0,_.getFormThemeHandler)(S,function(K){var B;D=(0,h.changeColorOpacity)((B=K==null?void 0:K.theme)===null||B===void 0?void 0:B.backgroundColor)}));var W=((R=document.createElement("button")).className="tf-v1-widget-close tf-v1-close-icon",R.innerHTML="&times;",R);W.onclick=(0,h.invokeWithoutDefault)(function(){var K;if(j.style.height=x,(K=m.onClose)===null||K===void 0||K.call(m),j.classList.remove("tf-v1-widget-fullscreen"),j.style.backgroundColor="",m.keepSession){var B=document.createElement("div");B.className="tf-v1-widget-iframe-overlay",B.onclick=function(){j.classList.add("tf-v1-widget-fullscreen"),(0,h.unmountElement)(B)},L.append(B)}else m.container.innerHTML="",M(),j.append(W)}),j.append(W)}return{refresh:C,focus:N,unmount:function(){(0,h.unmountElement)(L)}}}},1419:function(f,l,d){Object.defineProperty(l,"__esModule",{value:!0}),l.buildWidget=void 0;var p=d(6797);l.buildWidget=function(v,h,_){var g=document.createElement("div");return g.className="tf-v1-widget",g.dataset.testid="tf-v1-widget",g.append(v),(0,p.setElementSize)(g,{width:h,height:_})}},2313:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(1419),l)},1126:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.overrideFullScreenStyles=void 0,l.overrideFullScreenStyles=function(d,p){Object.assign(d.style,{zIndex:"10001",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}),p.style.borderRadius="0",Object.assign(document.body.style,{overflow:"hidden"})}},9321:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(718),l),v(d(4058),l)},4058:function(f,l){Object.defineProperty(l,"__esModule",{value:!0})},1920:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(1797),l),v(d(5970),l),v(d(4071),l),v(d(9321),l),v(d(1434),l)},5084:function(f,l,d){Object.defineProperty(l,"__esModule",{value:!0}),l.addAttributesToElement=void 0;var p=d(7377);l.addAttributesToElement=function(v,h){h===void 0&&(h={}),Object.keys(h).forEach(function(_){v.setAttribute((0,p.camelCaseToKebabCase)(_),h[_])})}},3626:function(f,l,d){var p=this&&this.__assign||function(){return p=Object.assign||function(E){for(var w,O=1,S=arguments.length;O<S;O++)for(var A in w=arguments[O])Object.prototype.hasOwnProperty.call(w,A)&&(E[A]=w[A]);return E},p.apply(this,arguments)},v=this&&this.__read||function(E,w){var O=typeof Symbol=="function"&&E[Symbol.iterator];if(!O)return E;var S,A,C=O.call(E),N=[];try{for(;(w===void 0||w-- >0)&&!(S=C.next()).done;)N.push(S.value)}catch(L){A={error:L}}finally{try{S&&!S.done&&(O=C.return)&&O.call(C)}finally{if(A)throw A.error}}return N};Object.defineProperty(l,"__esModule",{value:!0}),l.buildIframeSrc=void 0;var h=d(8027),_=d(4527),g=d(2346),b=d(2698),y=d(863),m={widget:"embed-widget",popup:"popup-blank",slider:"popup-drawer",popover:"popup-popover","side-tab":"popup-side-panel"};l.buildIframeSrc=function(E){var w=E.domain,O=E.formId,S=E.type,A=E.embedId,C=E.options,N=function(R,M,D){var j=D.transitiveSearchParams,x=D.source,W=D.medium,K=D.mediumVersion,B=D.hideFooter,$=D.hideHeaders,H=D.opacity,Z=D.disableTracking,ae=D.enableSandbox,te=D.shareGaInstance,Q=D.forceTouch,ne=D.displayAsFullScreenModal,re=D.tracking,se=D.redirectTarget,Rt=D.autoResize,we=D.disableScroll,Vt=D.onEndingButtonClick,wr=D.noHeading,Or=(0,b.getTransitiveSearchParams)(j);return p(p(p({},{"typeform-embed-id":M,"typeform-embed":m[R],"typeform-source":x,"typeform-medium":W,"typeform-medium-version":K,"embed-hide-footer":B?"true":void 0,"embed-hide-headers":$?"true":void 0,"embed-opacity":H,"disable-tracking":Z||ae?"true":void 0,"__dangerous-disable-submissions":ae?"true":void 0,"share-ga-instance":te?"true":void 0,"force-touch":Q?"true":void 0,"add-placeholder-ws":R==="widget"&&ne?"true":void 0,"typeform-embed-redirect-target":se,"typeform-embed-auto-resize":Rt?"true":void 0,"typeform-embed-disable-scroll":we?"true":void 0,"typeform-embed-handle-ending-button-click":Vt?"true":void 0,"typeform-embed-no-heading":wr?"true":void 0}),Or),re)}(S,A,function(R){return R.noHeading||(R.noHeading=document.querySelectorAll("h1").length>0),p(p({},{source:(M=window==null?void 0:window.location)===null||M===void 0?void 0:M.hostname.replace(/^www\./,""),medium:"embed-sdk",mediumVersion:"next"}),(0,_.removeUndefinedKeys)(R));var M}(C)),L=function(R,M){return M===void 0&&(M=h.DEFAULT_DOMAIN),R.startsWith("http://")||R.startsWith("https://")?new URL(R):new URL("https://".concat(M,"/to/").concat(R))}(O,w);if(Object.entries(N).filter(function(R){var M=v(R,2)[1];return(0,g.isDefined)(M)}).forEach(function(R){var M=v(R,2),D=M[0],j=M[1];L.searchParams.set(D,j)}),C.hubspot){var k=(0,y.getHubspotHiddenFields)();C.hidden=p(p({},C.hidden),k)}if(C.hidden){var P=new URLSearchParams;Object.entries(C.hidden).filter(function(R){var M=v(R,2)[1];return(0,g.isDefined)(M)&&M!==""}).forEach(function(R){var M=v(R,2),D=M[0],j=M[1];typeof C.transitiveSearchParams=="boolean"&&L.searchParams.delete(D),P.set(D,j)});var I=P.toString();I&&(L.hash=I)}return L.href}},2391:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.changeColorOpacity=void 0,l.changeColorOpacity=function(d,p){return d===void 0&&(d=""),p===void 0&&(p=255),d.startsWith("rgba(")?d==null?void 0:d.replace(/, [\d.]+\)$/,", ".concat(p,")")):d}},8972:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.handleCustomOpen=void 0;var d={remove:function(){}};l.handleCustomOpen=function(p,v,h){switch(v){case"load":return p(),d;case"exit":return h?function(_,g){var b=0,y=function(m){m.clientY<_&&m.clientY<b?(document.removeEventListener("mousemove",y,!0),g()):b=m.clientY};return document.addEventListener("mousemove",y,!0),{remove:function(){return document.removeEventListener("mousemove",y,!0)}}}(h,p):d;case"time":return setTimeout(function(){p()},h),d;case"scroll":return h?function(_,g){function b(){var y=window.pageYOffset||document.documentElement.scrollTop,m=document.documentElement.clientTop||0,E=document.documentElement.scrollHeight,w=y-m,O=w/E*100,S=w+window.innerHeight>=E;(O>=_||S)&&(g(),document.removeEventListener("scroll",b))}return document.addEventListener("scroll",b),{remove:function(){return document.removeEventListener("scroll",b)}}}(h,p):d;default:return d}}},1553:function(f,l,d){Object.defineProperty(l,"__esModule",{value:!0}),l.createIframe=void 0;var p=d(3626),v=d(6797),h=d(8866),_=d(8554),g=d(2256),b=d(7144),y=d(5511);l.createIframe=function(m,E){var w=E.formId,O=E.domain,S=E.options,A=(0,h.generateEmbedId)(),C=S.iframeProps,N=C===void 0?{}:C,L=S.onReady,k=S.onStarted,P=S.onQuestionChanged,I=S.onHeightChanged,R=S.onSubmit,M=S.onEndingButtonClick,D=S.shareGaInstance,j=(0,p.buildIframeSrc)({formId:w,domain:O,embedId:A,type:m,options:S}),x=document.createElement("iframe");return x.src=j,x.dataset.testid="iframe",x.style.border="0px",x.allow="microphone; camera",(0,v.addAttributesToElement)(x,N),x.addEventListener("load",g.triggerIframeRedraw,{once:!0}),window.addEventListener("message",(0,_.getFormReadyHandler)(A,L)),window.addEventListener("message",(0,_.getFormStartedHandler)(A,k)),window.addEventListener("message",(0,_.getFormQuestionChangedHandler)(A,P)),window.addEventListener("message",(0,_.getFormHeightChangedHandler)(A,I)),window.addEventListener("message",(0,_.getFormSubmitHandler)(A,R)),window.addEventListener("message",(0,_.getFormThemeHandler)(A,function(W){var K;if(W!=null&&W.theme){var B=document.querySelector(".tf-v1-close-icon");B&&(B.style.color=(K=W.theme)===null||K===void 0?void 0:K.color)}})),window.addEventListener("message",(0,_.getThankYouScreenButtonClickHandler)(A,M)),m!=="widget"&&window.addEventListener("message",b.dispatchCustomKeyEventFromIframe),D&&window.addEventListener("message",(0,_.getFormReadyHandler)(A,function(){(0,v.setupGaInstance)(x,A,D)})),{iframe:x,embedId:A,refresh:function(){return(0,y.refreshIframe)(x)},focus:function(){var W;(W=x.contentWindow)===null||W===void 0||W.postMessage("embed-focus","*")}}}},8866:function(f,l){var d=this&&this.__read||function(p,v){var h=typeof Symbol=="function"&&p[Symbol.iterator];if(!h)return p;var _,g,b=h.call(p),y=[];try{for(;(v===void 0||v-- >0)&&!(_=b.next()).done;)y.push(_.value)}catch(m){g={error:m}}finally{try{_&&!_.done&&(h=b.return)&&h.call(b)}finally{if(g)throw g.error}}return y};Object.defineProperty(l,"__esModule",{value:!0}),l.generateEmbedId=void 0,l.generateEmbedId=function(){var p=Math.random();return d(String(p).split("."),2)[1]}},8554:function(f,l){var d=this&&this.__rest||function(v,h){var _={};for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&h.indexOf(g)<0&&(_[g]=v[g]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function"){var b=0;for(g=Object.getOwnPropertySymbols(v);b<g.length;b++)h.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(v,g[b])&&(_[g[b]]=v[g[b]])}return _};function p(v,h,_){return function(g){var b=g.data,y=b.type,m=b.embedId,E=d(b,["type","embedId"]);y===v&&m===h&&(_==null||_(E))}}Object.defineProperty(l,"__esModule",{value:!0}),l.getThankYouScreenButtonClickHandler=l.getFormThemeHandler=l.getWelcomeScreenHiddenHandler=l.getFormSubmitHandler=l.getFormHeightChangedHandler=l.getFormQuestionChangedHandler=l.getFormStartedHandler=l.getFormReadyHandler=void 0,l.getFormReadyHandler=function(v,h){return p("form-ready",v,h)},l.getFormStartedHandler=function(v,h){return p("form-started",v,h)},l.getFormQuestionChangedHandler=function(v,h){return p("form-screen-changed",v,h)},l.getFormHeightChangedHandler=function(v,h){return p("form-height-changed",v,h)},l.getFormSubmitHandler=function(v,h){return p("form-submit",v,h)},l.getWelcomeScreenHiddenHandler=function(v,h){return p("welcome-screen-hidden",v,h)},l.getFormThemeHandler=function(v,h){return p("form-theme",v,h)},l.getThankYouScreenButtonClickHandler=function(v,h){return p("thank-you-screen-button-click",v,h)}},339:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(1553),l),v(d(7144),l)},5511:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.refreshIframe=void 0,l.refreshIframe=function(d){if(d){var p=d.src;if(p.includes("&refresh")){var v=p.split("&refresh#");d.src=v.join("#")}else(v=p.split("#"))[0]="".concat(v[0],"&refresh"),d.src=v.join("#")}}},7144:function(f,l){var d=this&&this.__awaiter||function(_,g,b,y){return new(b||(b=Promise))(function(m,E){function w(A){try{S(y.next(A))}catch(C){E(C)}}function O(A){try{S(y.throw(A))}catch(C){E(C)}}function S(A){var C;A.done?m(A.value):(C=A.value,C instanceof b?C:new b(function(N){N(C)})).then(w,O)}S((y=y.apply(_,g||[])).next())})},p=this&&this.__generator||function(_,g){var b,y,m,E,w={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function O(S){return function(A){return function(C){if(b)throw new TypeError("Generator is already executing.");for(;E&&(E=0,C[0]&&(w=0)),w;)try{if(b=1,y&&(m=2&C[0]?y.return:C[0]?y.throw||((m=y.return)&&m.call(y),0):y.next)&&!(m=m.call(y,C[1])).done)return m;switch(y=0,m&&(C=[2&C[0],m.value]),C[0]){case 0:case 1:m=C;break;case 4:return w.label++,{value:C[1],done:!1};case 5:w.label++,y=C[1],C=[0];continue;case 7:C=w.ops.pop(),w.trys.pop();continue;default:if(!((m=(m=w.trys).length>0&&m[m.length-1])||C[0]!==6&&C[0]!==2)){w=0;continue}if(C[0]===3&&(!m||C[1]>m[0]&&C[1]<m[3])){w.label=C[1];break}if(C[0]===6&&w.label<m[1]){w.label=m[1],m=C;break}if(m&&w.label<m[2]){w.label=m[2],w.ops.push(C);break}m[2]&&w.ops.pop(),w.trys.pop();continue}C=g.call(_,w)}catch(N){C=[6,N],y=0}finally{b=m=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([S,A])}}};Object.defineProperty(l,"__esModule",{value:!0}),l.dispatchCustomKeyEventFromIframe=l.removeCustomKeyboardListener=l.addCustomKeyboardListener=void 0;var v="Escape",h=function(_,g){return d(void 0,void 0,void 0,function(){return p(this,function(b){return _.code===v&&typeof g=="function"&&(g(),(0,l.removeCustomKeyboardListener)()),[2]})})};l.addCustomKeyboardListener=function(_){return window.document.addEventListener("keydown",function(g){return h(g,_)})},l.removeCustomKeyboardListener=function(){return window.document.removeEventListener("keydown",h)},l.dispatchCustomKeyEventFromIframe=function(_){_.data.type==="form-close"&&window.document.dispatchEvent(new KeyboardEvent("keydown",{code:v}))}},2256:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.triggerIframeRedraw=void 0,l.triggerIframeRedraw=function(){this.style.transform="translateZ(0)"}},8939:function(f,l,d){Object.defineProperty(l,"__esModule",{value:!0}),l.getTextColor=void 0;var p=d(2938);l.getTextColor=function(v){if(!v)return"#FFFFFF";var h=v.startsWith("#")?(0,p.hexRgb)(v):function(y){var m={red:0,green:0,blue:0},E=y.match(/\d+/g);return E&&(m.red=parseInt(E[0],10),m.green=parseInt(E[0],10),m.blue=parseInt(E[0],10)),m}(v),_=h.red,g=h.green,b=h.blue;return Math.round((299*_+587*g+114*b)/1e3)>150?"#000000":"#FFFFFF"}},2698:function(f,l){var d=this&&this.__assign||function(){return d=Object.assign||function(p){for(var v,h=1,_=arguments.length;h<_;h++)for(var g in v=arguments[h])Object.prototype.hasOwnProperty.call(v,g)&&(p[g]=v[g]);return p},d.apply(this,arguments)};Object.defineProperty(l,"__esModule",{value:!0}),l.getTransitiveSearchParams=void 0,l.getTransitiveSearchParams=function(p){var v=new URL(window.location.href);return typeof p=="boolean"&&p?Object.fromEntries(v.searchParams.entries()):Array.isArray(p)&&p.length>0?p.reduce(function(h,_){var g,b=v.searchParams.get(_);return b?d(d({},h),((g={})[_]=b,g)):h},{}):{}}},8252:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.hasDom=void 0,l.hasDom=function(){return typeof document<"u"&&typeof window<"u"}},2938:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.hexRgb=void 0;var d="a-f\\d",p="#?[".concat(d,"]{3}[").concat(d,"]?"),v="#?[".concat(d,"]{6}([").concat(d,"]{2})?"),h=new RegExp("[^#".concat(d,"]"),"gi"),_=new RegExp("^".concat(p,"$|^").concat(v,"$"),"i");l.hexRgb=function(g){if(typeof g!="string"||h.test(g)||!_.test(g))throw new TypeError("Expected a valid hex string");(g=g.replace(/^#/,"")).length===8&&(g=g.slice(0,6)),g.length===4&&(g=g.slice(0,3)),g.length===3&&(g=g[0]+g[0]+g[1]+g[1]+g[2]+g[2]);var b=Number.parseInt(g,16);return{red:b>>16,green:b>>8&255,blue:255&b}}},863:function(f,l,d){var p=this&&this.__awaiter||function(_,g,b,y){return new(b||(b=Promise))(function(m,E){function w(A){try{S(y.next(A))}catch(C){E(C)}}function O(A){try{S(y.throw(A))}catch(C){E(C)}}function S(A){var C;A.done?m(A.value):(C=A.value,C instanceof b?C:new b(function(N){N(C)})).then(w,O)}S((y=y.apply(_,g||[])).next())})},v=this&&this.__generator||function(_,g){var b,y,m,E,w={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function O(S){return function(A){return function(C){if(b)throw new TypeError("Generator is already executing.");for(;E&&(E=0,C[0]&&(w=0)),w;)try{if(b=1,y&&(m=2&C[0]?y.return:C[0]?y.throw||((m=y.return)&&m.call(y),0):y.next)&&!(m=m.call(y,C[1])).done)return m;switch(y=0,m&&(C=[2&C[0],m.value]),C[0]){case 0:case 1:m=C;break;case 4:return w.label++,{value:C[1],done:!1};case 5:w.label++,y=C[1],C=[0];continue;case 7:C=w.ops.pop(),w.trys.pop();continue;default:if(!((m=(m=w.trys).length>0&&m[m.length-1])||C[0]!==6&&C[0]!==2)){w=0;continue}if(C[0]===3&&(!m||C[1]>m[0]&&C[1]<m[3])){w.label=C[1];break}if(C[0]===6&&w.label<m[1]){w.label=m[1],m=C;break}if(m&&w.label<m[2]){w.label=m[2],w.ops.push(C);break}m[2]&&w.ops.pop(),w.trys.pop();continue}C=g.call(_,w)}catch(N){C=[6,N],y=0}finally{b=m=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([S,A])}}};Object.defineProperty(l,"__esModule",{value:!0}),l.waitForHubspotCookie=l.getHubspotHiddenFields=l.getHubspotCookieValue=void 0;var h=d(4623);l.getHubspotCookieValue=function(){var _=document.cookie.match(new RegExp("(^| )".concat("hubspotutk","=([^;]+)")));return _&&_[2]||void 0},l.getHubspotHiddenFields=function(){return{hubspot_page_name:document.title,hubspot_page_url:window.location.href,hubspot_utk:(0,l.getHubspotCookieValue)()}},l.waitForHubspotCookie=function(){return p(void 0,void 0,void 0,function(){var _,g;return v(this,function(b){switch(b.label){case 0:_=10,g=0,b.label=1;case 1:return!(0,l.getHubspotCookieValue)()&&g<_?[4,(0,h.sleep)(250)]:[3,4];case 2:b.sent(),b.label=3;case 3:return g++,[3,1];case 4:return[2]}})})}},9071:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.includeCss=void 0,l.includeCss=function(d){var p=function(h){return"".concat("https://embed.typeform.com/next/css/").concat(h)}(d);if(!document.querySelector('link[href="'.concat(p,'"]'))){var v=document.createElement("link");v.rel="stylesheet",v.href=p,document.head.append(v)}}},6797:function(f,l,d){var p=this&&this.__createBinding||(Object.create?function(h,_,g,b){b===void 0&&(b=g);var y=Object.getOwnPropertyDescriptor(_,g);y&&!("get"in y?!_.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return _[g]}}),Object.defineProperty(h,b,y)}:function(h,_,g,b){b===void 0&&(b=g),h[b]=_[g]}),v=this&&this.__exportStar||function(h,_){for(var g in h)g==="default"||Object.prototype.hasOwnProperty.call(_,g)||p(_,h,g)};Object.defineProperty(l,"__esModule",{value:!0}),v(d(3626),l),v(d(339),l),v(d(8252),l),v(d(9071),l),v(d(2346),l),v(d(7377),l),v(d(6563),l),v(d(4527),l),v(d(9533),l),v(d(1451),l),v(d(8972),l),v(d(4748),l),v(d(4392),l),v(d(8939),l),v(d(9917),l),v(d(1987),l),v(d(2391),l),v(d(863),l),v(d(6890),l),v(d(5084),l)},6890:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.invokeWithoutDefault=void 0,l.invokeWithoutDefault=function(d){return function(p){p==null||p.preventDefault(),d()}}},2346:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.isDefined=void 0,l.isDefined=function(d){return d!=null}},1987:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.isVisible=l.isInPage=l.isOpen=void 0,l.isOpen=function(d){return(0,l.isInPage)(d)&&(0,l.isVisible)(d)},l.isInPage=function(d){return!!d.parentNode},l.isVisible=function(d){return d.style.display!=="none"}},9917:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.lazyInitialize=void 0,l.lazyInitialize=function(d,p){var v=new IntersectionObserver(function(h){h.forEach(function(_){_.isIntersecting&&(p(),v.unobserve(_.target))})});v.observe(d)}},7377:function(f,l){var d=this&&this.__assign||function(){return d=Object.assign||function(y){for(var m,E=1,w=arguments.length;E<w;E++)for(var O in m=arguments[E])Object.prototype.hasOwnProperty.call(m,O)&&(y[O]=m[O]);return y},d.apply(this,arguments)},p=this&&this.__read||function(y,m){var E=typeof Symbol=="function"&&y[Symbol.iterator];if(!E)return y;var w,O,S=E.call(y),A=[];try{for(;(m===void 0||m-- >0)&&!(w=S.next()).done;)A.push(w.value)}catch(C){O={error:C}}finally{try{w&&!w.done&&(E=S.return)&&E.call(S)}finally{if(O)throw O.error}}return A};Object.defineProperty(l,"__esModule",{value:!0}),l.loadOptionsFromAttributes=l.transformAttributeValue=l.camelCaseToKebabCase=void 0,l.camelCaseToKebabCase=function(y){return y.split("").map(function(m,E){return m.toUpperCase()===m?"".concat(E!==0?"-":"").concat(m.toLowerCase()):m}).join("")};var v=function(y){return y||void 0},h=function(y){if(y!==null)return y===""||y==="yes"||y==="true"},_=function(y){var m=y?parseInt(y,10):NaN;return isNaN(m)?void 0:m},g="%ESCAPED_COMMA%",b=function(y){if(y)return y.replace(/\s/g,"").replace(/\\,/g,g).split(",").filter(function(m){return!!m}).map(function(m){return m.replace(g,",")})};l.transformAttributeValue=function(y,m){var E,w,O;switch(m){case"string":return v(y);case"boolean":return h(y);case"integer":return _(y);case"function":return function(S){var A=S&&S in window?window[S]:void 0;return typeof A=="function"?A:void 0}(y);case"array":return b(y);case"record":return function(S){if(S)return S.replace(/\\,/g,g).split(",").filter(function(A){return!!A}).map(function(A){return A.replace(g,",")}).reduce(function(A,C){var N,L=C.match(/^([^=]+)=(.*)$/);if(L){var k=p(L,3),P=k[1],I=k[2];return d(d({},A),((N={})[P.trim()]=I,N))}return A},{})}(y);case"integerOrString":return function(S){if(S)return S.match(/^[0-9]+$/)?_(S):v(S)}(y);case"integerOrBoolean":return(E=_(y))!==null&&E!==void 0?E:h(y);case"stringOrBoolean":return(w=v(y))!==null&&w!==void 0?w:h(y);case"arrayOrBoolean":return(O=b(y))!==null&&O!==void 0?O:h(y);default:throw new Error("Invalid attribute transformation ".concat(m))}},l.loadOptionsFromAttributes=function(y,m){return Object.keys(m).reduce(function(E,w){var O;return d(d({},E),((O={})[w]=(0,l.transformAttributeValue)(y.getAttribute("data-tf-".concat((0,l.camelCaseToKebabCase)(w))),m[w]),O))},{})}},6563:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.isFullscreen=l.isMobile=l.isBigScreen=void 0,l.isBigScreen=function(){return window.screen.width>=1024&&window.screen.height>=768},l.isMobile=function(){return/mobile|tablet|android/i.test(navigator.userAgent.toLowerCase())},l.isFullscreen=function(){return(0,l.isMobile)()&&!(0,l.isBigScreen)()}},4527:function(f,l,d){var p=this&&this.__assign||function(){return p=Object.assign||function(_){for(var g,b=1,y=arguments.length;b<y;b++)for(var m in g=arguments[b])Object.prototype.hasOwnProperty.call(g,m)&&(_[m]=g[m]);return _},p.apply(this,arguments)},v=this&&this.__read||function(_,g){var b=typeof Symbol=="function"&&_[Symbol.iterator];if(!b)return _;var y,m,E=b.call(_),w=[];try{for(;(g===void 0||g-- >0)&&!(y=E.next()).done;)w.push(y.value)}catch(O){m={error:O}}finally{try{y&&!y.done&&(b=E.return)&&b.call(E)}finally{if(m)throw m.error}}return w};Object.defineProperty(l,"__esModule",{value:!0}),l.removeUndefinedKeys=void 0;var h=d(2346);l.removeUndefinedKeys=function(_){return Object.entries(_).filter(function(g){var b=v(g,2)[1];return(0,h.isDefined)(b)}).reduce(function(g,b){var y,m=v(b,2),E=m[0],w=m[1];return p(p({},g),((y={})[E]=w,y))},{})}},4748:function(f,l,d){Object.defineProperty(l,"__esModule",{value:!0}),l.setAutoClose=l.DEFAULT_AUTO_CLOSE_TIME=void 0;var p=d(8554);l.DEFAULT_AUTO_CLOSE_TIME=500,l.setAutoClose=function(v,h,_){h&&_&&window.addEventListener("message",(0,p.getFormSubmitHandler)(v,function(){return setTimeout(_,(b=typeof(g=h)=="number"?g:0,Math.max(b,l.DEFAULT_AUTO_CLOSE_TIME)));var g,b}))}},9533:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.setElementSize=l.getValueWithUnits=void 0,l.getValueWithUnits=function(d){return typeof d!="string"||d.match(/^[0-9]+$/)?"".concat(d,"px"):d},l.setElementSize=function(d,p){var v=p.width,h=p.height;return v&&(d.style.width=(0,l.getValueWithUnits)(v)),h&&(d.style.height=(0,l.getValueWithUnits)(h)),d}},4392:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.setupGaInstance=l.sendGaIdMessage=void 0,l.sendGaIdMessage=function(v,h,_){var g={embedId:v,gaClientId:h};setTimeout(function(){_&&_.contentWindow&&_.contentWindow.postMessage({type:"ga-client-id",data:g},"*")},0)};var d=function(v){console.error(v)},p=function(v){d("Whoops! You enabled the shareGaInstance feature in your typeform embed but ".concat(v,`.
801
-
802
- `)+`Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page and use correct tracker ID.
803
-
804
- It is also possible the Google Analytics was blocked by your adblock plugin.`)};l.setupGaInstance=function(v,h,_){var g=typeof _=="string"?_:void 0;if(window.gtag){if(g||(g=function(){if(window.dataLayer){var m=window.dataLayer.find(function(E){return E.length>1&&E[0]==="config"});return m&&m[1]}}()),!g)return void p("the tracking ID could not be retrieved");var b=!1;window.gtag("get",g,"client_id",function(m){b=!0,(0,l.sendGaIdMessage)(h,m,v)}),setTimeout(function(){b||p("the tracker with ID ".concat(g," was not found"))},3e3)}else try{var y=function(m,E){return E?m.find(function(w){return w.get("trackingId")===E}):m[0]}(window.ga.getAll(),g);y?(0,l.sendGaIdMessage)(h,y.get("clientId"),v):p("the tracker with ID ".concat(g," was not found"))}catch(m){p("the Google Analytics object was not found"),d(m)}}},4623:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.sleep=void 0,l.sleep=function(d){return new Promise(function(p){return setTimeout(p,d)})}},1451:function(f,l){Object.defineProperty(l,"__esModule",{value:!0}),l.unmountElement=void 0,l.unmountElement=function(d){var p;(p=d.parentNode)===null||p===void 0||p.removeChild(d)}}},c={};return function f(l){var d=c[l];if(d!==void 0)return d.exports;var p=c[l]={exports:{}};return s[l].call(p.exports,p,p.exports,f),p.exports}(1920)}()},156:function(u){u.exports=n}},i={};function a(u){var s=i[u];if(s!==void 0)return s.exports;var c=i[u]={exports:{}};return r[u].call(c.exports,c,c.exports,a),c.exports}a.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),a.o=function(u,s){return Object.prototype.hasOwnProperty.call(u,s)},a.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var o={};return function(){var u=o;Object.defineProperty(u,"__esModule",{value:!0}),u.Sidetab=u.Popover=u.SliderButton=u.PopupButton=u.Widget=void 0;var s=a(611),c=a(281),f=a(797),l=(0,f.memoComponent)(c.Widget);u.Widget=l;var d=(0,f.memoComponent)((0,c.makeButtonComponent)(s.createPopup,"popup"));u.PopupButton=d;var p=(0,f.memoComponent)((0,c.makeButtonComponent)(s.createSlider,"slider"));u.SliderButton=p;var v=(0,f.memoComponent)((0,c.makeInitializerComponent)(s.createPopover,"popover"));u.Popover=v;var h=(0,f.memoComponent)((0,c.makeInitializerComponent)(s.createSidetab,"sidetab"));u.Sidetab=h}(),o}()})})(gE);var l7=gE.exports,f7={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]};function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function Xh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rU(e,t){if(e){if(typeof e=="string")return Xh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xh(e,t)}}function d7(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
805
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,u;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){o=!0,u=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function iU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,t)}function p7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rl(e,t)}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fu(e)}function aU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oU(e,t){if(t&&(mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iU(e)}function v7(e){var t=aU();return function(){var r=fu(e),i;if(t){var a=fu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return oU(this,i)}}function h7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uU(e,t){if(mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yE(e){var t=uU(e,"string");return mi(t)==="symbol"?t:String(t)}function Qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yE(r.key),r)}}function m7(e,t,n){return t&&Qh(e.prototype,t),n&&Qh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g7(e,t,n){return t=yE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}export{ZU as $,TU as A,SU as B,Cu as C,AU as D,xE as E,ce as F,xe as G,Gb as H,jI as I,OU as J,Yb as K,mU as L,II as M,QU as N,ER as O,Ae as P,aw as Q,kU as R,ew as S,In as T,$U as U,Qm as V,DU as W,XU as X,UU as Y,JU as Z,mi as _,p7 as a,zU as a$,hF as a0,vF as a1,Wu as a2,AF as a3,OF as a4,wF as a5,SF as a6,TF as a7,Sd as a8,lU as a9,bU as aA,yU as aB,Zi as aC,Zm as aD,o7 as aE,Vm as aF,ng as aG,At as aH,KU as aI,r7 as aJ,s7 as aK,e7 as aL,u7 as aM,FU as aN,km as aO,CU as aP,IU as aQ,a7 as aR,HU as aS,xU as aT,qU as aU,VU as aV,GU as aW,Ul as aX,Bl as aY,WU as aZ,YU as a_,cU as aa,i7 as ab,c7 as ac,Zr as ad,cw as ae,dU as af,at as ag,G6 as ah,MU as ai,l7 as aj,f7 as ak,t7 as al,BU as am,EU as an,wU as ao,vf as ap,jU as aq,n7 as ar,Hn as as,RU as at,tR as au,og as av,_U as aw,gU as ax,hU as ay,pU as az,v7 as b,h7 as c,g7 as d,iU as e,m7 as f,d7 as g,ie as h,_g as i,G as j,he as k,We as l,CS as m,yi as n,ui as o,fe as p,ke as q,PU as r,ho as s,fU as t,pf as u,vU as v,Y as w,NU as x,_r as y,It as z};