PageSourceSearch

https://www.knowledgebase.com/dist/js/main.913f560a04b2444b0472d96677c907d679d180470fe8c2901fefeabeb9178a5c.js

js knowledgebase.com collected 2026-10-02 04:17:36 UTC 437,193 bytes, 2 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2(()=>{var e={3052(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,s,a,o,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i(s=this._events[e]))return!1;if(r(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),s.apply(this,o)}else if(n(s))for(o=Array.prototype.slice.call(arguments,1),a=(u=s.slice()).length,c=0;c<a;c++)u[c].apply(this,o);return!0},t.prototype.addListener=function(e,s){var a;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(s.listener)?s.listener:s),this._events[e]?n(this._events[e])?this._events[e].push(s):this._events[e]=[this._events[e],s]:this._events[e]=s,n(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,s,a,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,s=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(o=a;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){s=o;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},7578(e,t,r){"use strict";r.d(t,{lg:()=>K,xI:()=>ie});class n{constructor(e,t,r){this.eventTarget=e,this.eventName=t,this.eventOptions=r,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){const t=function(e){if("immediatePropagationStopped"in e)return e;{const{stopImmediatePropagation:t}=e;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,t.call(this)}})}}(e);for(const e of this.bindings){if(t.immediatePropagationStopped)break;e.handleEvent(t)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((e,t)=>
vendor: 36,171 bytes, line 2
2{const r=e.index,n=t.index;return r<n?-1:r>n?1:0})}}class i{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(e=>e.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(e=>e.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((e,t)=>e.concat(Array.from(t.values())),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,t=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),t&&this.clearEventListenersForBinding(e)}handleError(e,t,r={}){this.application.handleError(e,`Error ${t}`,r)}clearEventListenersForBinding(e){const t=this.fetchEventListenerForBinding(e);t.hasBindings()||(t.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){const{eventTarget:t,eventName:r,eventOptions:n}=e,i=this.fetchEventListenerMapForEventTarget(t),s=this.cacheKey(r,n);i.delete(s),0==i.size&&this.eventListenerMaps.delete(t)}fetchEventListenerForBinding(e){const{eventTarget:t,eventName:r,eventOptions:n}=e;return this.fetchEventListener(t,r,n)}fetchEventListener(e,t,r){const n=this.fetchEventListenerMapForEventTarget(e),i=this.cacheKey(t,r);let s=n.get(i);return s||(s=this.createEventListener(e,t,r),n.set(i,s)),s}createEventListener(e,t,r){const i=new n(e,t,r);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(e){let t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t}cacheKey(e,t){const r=[e];return Object.keys(t).sort().forEach(e=>{r.push(`${t[e]?"":"!"}${e}`)}),r.join(":")}}const s={stop:({event:e,value:t})=>(t&&e.stopPropagation(),!0),prevent:({event:e,value:t})=>(t&&e.preventDefault(),!0),self:({event:e,value:t,element:r})=>!t||r===e.target},a=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function o(e){return e.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function c(e){return o(e.replace(/--/g,"-").replace(/__/g,"_"))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function h(e){return null!=e}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const f=["meta","ctrl","alt","shift"];class p{constructor(e,t,r,n){this.element=e,this.index=t,this.eventTarget=r.eventTarget||e,this.eventName=r.eventName||function(e){const t=e.tagName.toLowerCase();if(t in m)return m[t](e)}(e)||g("missing event name"),this.eventOptions=r.eventOptions||{},this.identifier=r.identifier||g("missing identifier"),this.methodName=r.methodName||g("missing method name"),this.keyFilter=r.keyFilter||"",this.schema=n}static forToken(e,t){return new this(e.element,e.index,function(e){const t=e.trim().match(a)||[];let r=t[2],n=t[3];return n&&!["keydown","keyup","keypress"].includes(r)&&(r+=`.${n}`,n=""),{eventTarget:(i=t[4],"window"==i?window:"document"==i?document:void 0),eventName:r,eventOptions:t[7]?(s=t[7],s.split(":").reduce((e,t)=>Object.assign(e,{[t.replace(/^!/,"")]:!/^!/.test(t)}),{})):{},identifier:t[5],methodName:t[6],keyFilter:t[1]||n};var i,s}(e.content),t)}toString(){const e=this.keyFilter?`.${this.keyFilter}`:"",t=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${t}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;const t=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,t))return!0;const r=t.filter(e=>!f.includes(e))[0];return!!r&&(d(this.keyMappings,r)||g(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[r].toLowerCase()!==e.key.toLowerCase())}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;const t=[this.keyFilter];return!!this.keyFilterDissatisfied(e,t)}get params(){const e={},t=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:r,value:n}of Array.from(this.element.attributes)){const i=r.match(t),s=i&&i[1];s&&(e[o(s)]=v(n))}return e}get eventTargetName(){return(e=this.eventTarget)==window?"window":e==document?"document":void 0;var e}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,t){const[r,n,i,s]=f.map(e=>t.includes(e));return e.metaKey!==r||e.ctrlKey!==n||e.altKey!==i||e.shiftKey!==s}}const m={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:e=>"submit"==e.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function g(e){throw new Error(e)}function v(e){try{return JSON.parse(e)}catch(t){return e}}class y{constructor(e,t){this.context=e,this.action=t}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(e){const t=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){const e=this.controller[this.methodName];if("function"==typeof e)return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){const{element:t}=this.action,{actionDescriptorFilters:r}=this.context.application,{controller:n}=this.context;let i=!0;for(const[s,a]of Object.entries(this.eventOptions))if(s in r){const o=r[s];i=i&&o({name:s,value:a,event:e,element:t,controller:n})}return i}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){const{target:t,currentTarget:r}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:t,currentTarget:r,action:this.methodName})}catch(t){const{identifier:r,controller:n,element:i,index:s}=this,a={identifier:r,controller:n,element:i,index:s,event:e};this.context.handleError(t,`invoking action "${this.action}"`,a)}}willBeInvokedByEvent(e){const t=e.target;return!(e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e))&&!(e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e))&&(this.element===t||(t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element)))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class _{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const e=new Set(this.matchElementsInTree());for(const t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(const t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){"attributes"==e.type?this.processAttributeChange(e.target,e.attributeName):"childList"==e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,t):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.processTree(e,this.removeElement)}}processAddedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.elementIsActive(e)&&this.processTree(e,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(const r of this.matchElementsInTree(e))t.call(this,r)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected==this.element.isConnected&&this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}}class b{constructor(e,t,r){this.attributeName=t,this.delegate=r,this.elementObserver=new _(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){const t=this.matchElement(e)?[e]:[],r=Array.from(e.querySelectorAll(this.selector));return t.concat(r)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}}function w(e,t){let r=e.get(t);return r||(r=new Set,e.set(t,r)),r}class x{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e.concat(Array.from(t)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e+t.size,0)}add(e,t){!function(e,t,r){w(e,t).add(r)}(this.valuesByKey,e,t)}delete(e,t){!function(e,t,r){w(e,t).delete(r),function(e,t){const r=e.get(t);null!=r&&0==r.size&&e.delete(t)}(e,t)}(this.valuesByKey,e,t)}has(e,t){const r=this.valuesByKey.get(e);return null!=r&&r.has(t)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some(t=>t.has(e))}getValuesForKey(e){const t=this.valuesByKey.get(e);return t?Array.from(t):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter(([t,r])=>r.has(e)).map(([e,t])=>e)}}class S{constructor(e,t,r,n){this._selector=t,this.details=n,this.elementObserver=new _(e,this),this.delegate=r,this.matchesByElement=new x}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(e){const{selector:t}=this;if(t){const r=e.matches(t);return this.delegate.selectorMatchElement?r&&this.delegate.selectorMatchElement(e,this.details):r}return!1}matchElementsInTree(e){const{selector:t}=this;if(t){const r=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(t)).filter(e=>this.matchElement(e));return r.concat(n)}return[]}elementMatched(e){const{selector:t}=this;t&&this.selectorMatched(e,t)}elementUnmatched(e){const t=this.matchesByElement.getKeysForValue(e);for(const r of t)this.selectorUnmatched(e,r)}elementAttributeChanged(e,t){const{selector:r}=this;if(r){const t=this.matchElement(e),n=this.matchesByElement.has(r,e);t&&!n?this.selectorMatched(e,r):!t&&n&&this.selectorUnmatched(e,r)}}selectorMatched(e,t){this.delegate.selectorMatched(e,t,this.details),this.matchesByElement.add(t,e)}selectorUnmatched(e,t){this.delegate.selectorUnmatched(e,t,this.details),this.matchesByElement.delete(t,e)}}class O{constructor(e,t){this.element=e,this.delegate=t,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){const t=e.attributeName;t&&this.refreshAttribute(t,e.oldValue)}refreshAttribute(e,t){const r=this.delegate.getStringMapKeyForAttribute(e);if(null!=r){this.stringMap.has(e)||this.stringMapKeyAdded(r,e);const n=this.element.getAttribute(e);if(this.stringMap.get(e)!=n&&this.stringMapValueChanged(n,r,t),null==n){const t=this.stringMap.get(e);this.stringMap.delete(e),t&&this.stringMapKeyRemoved(r,e,t)}else this.stringMap.set(e,n)}}stringMapKeyAdded(e,t){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,t)}stringMapValueChanged(e,t,r){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,t,r)}stringMapKeyRemoved(e,t,r){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,t,r)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(e=>e.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class E{constructor(e,t,r){this.attributeObserver=new b(e,t,this),this.delegate=r,this.tokensByElement=new x}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){const[t,r]=this.refreshTokensForElement(e);this.tokensUnmatched(t),this.tokensMatched(r)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach(e=>this.tokenMatched(e))}tokensUnmatched(e){e.forEach(e=>this.tokenUnmatched(e))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){const t=this.tokensByElement.getValuesForKey(e),r=this.readTokensForElement(e),n=function(e,t){const r=Math.max(e.length,t.length);return Array.from({length:r},(r,n)=>[e[n],t[n]])}(t,r).findIndex(([e,t])=>{return n=t,!((r=e)&&n&&r.index==n.index&&r.content==n.content);var r,n});return-1==n?[[],[]]:[t.slice(n),r.slice(n)]}readTokensForElement(e){const t=this.attributeName;return function(e,t,r){return e.trim().split(/\s+/).filter(e=>e.length).map((e,n)=>({element:t,attributeName:r,content:e,index:n}))}(e.getAttribute(t)||"",e,t)}}class R{constructor(e,t,r){this.tokenListObserver=new E(e,t,this),this.delegate=r,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){const{element:t}=e,{value:r}=this.fetchParseResultForToken(e);r&&(this.fetchValuesByTokenForElement(t).set(e,r),this.delegate.elementMatchedValue(t,r))}tokenUnmatched(e){const{element:t}=e,{value:r}=this.fetchParseResultForToken(e);r&&(this.fetchValuesByTokenForElement(t).delete(e),this.delegate.elementUnmatchedValue(t,r))}fetchParseResultForToken(e){let t=this.parseResultsByToken.get(e);return t||(t=this.parseToken(e),this.parseResultsByToken.set(e,t)),t}fetchValuesByTokenForElement(e){let t=this.valuesByTokenByElement.get(e);return t||(t=new Map,this.valuesByTokenByElement.set(e,t)),t}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(e){return{error:e}}}}class T{constructor(e,t){this.context=e,this.delegate=t,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new R(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){const t=new y(this.context,e);this.bindingsByAction.set(e,t),this.delegate.bindingConnected(t)}disconnectAction(e){const t=this.bindingsByAction.get(e);t&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(t))}disconnectAllActions(){this.bindings.forEach(e=>this.delegate.bindingDisconnected(e,!0)),this.bindingsByAction.clear()}parseValueForToken(e){const t=p.forToken(e,this.schema);if(t.identifier==this.identifier)return t}elementMatchedValue(e,t){this.connectAction(t)}elementUnmatchedValue(e,t){this.disconnectAction(t)}}class P{constructor(e,t){this.context=e,this.receiver=t,this.stringMapObserver=new O(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,t){const r=this.valueDescriptorMap[t];this.hasValue(e)||this.invokeChangedCallback(e,r.writer(this.receiver[e]),r.writer(r.defaultValue))}stringMapValueChanged(e,t,r){const n=this.valueDescriptorNameMap[t];null!==e&&(null===r&&(r=n.writer(n.defaultValue)),this.invokeChangedCallback(t,e,r))}stringMapKeyRemoved(e,t,r){const n=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,n.writer(this.receiver[e]),r):this.invokeChangedCallback(e,n.writer(n.defaultValue),r)}invokeChangedCallbacksForDefaultValues(){for(const{key:e,name:t,defaultValue:r,writer:n}of this.valueDescriptors)null==r||this.controller.data.has(e)||this.invokeChangedCallback(t,n(r),void 0)}invokeChangedCallback(e,t,r){const n=`${e}Changed`,i=this.receiver[n];if("function"==typeof i){const n=this.valueDescriptorNameMap[e];try{const e=n.reader(t);let s=r;r&&(s=n.reader(r)),i.call(this.receiver,e,s)}catch(e){throw e instanceof TypeError&&(e.message=`Stimulus Value "${this.context.identifier}.${n.name}" - ${e.message}`),e}}}get valueDescriptors(){const{valueDescriptorMap:e}=this;return Object.keys(e).map(t=>e[t])}get valueDescriptorNameMap(){const e={};return Object.keys(this.valueDescriptorMap).forEach(t=>{const r=this.valueDescriptorMap[t];e[r.name]=r}),e}hasValue(e){const t=`has${u(this.valueDescriptorNameMap[e].name)}`;return this.receiver[t]}}class A{constructor(e,t){this.context=e,this.delegate=t,this.targetsByName=new x}start(){this.tokenListObserver||(this.tokenListObserver=new E(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:t}){this.scope.containsElement(e)&&this.connectTarget(e,t)}tokenUnmatched({element:e,content:t}){this.disconnectTarget(e,t)}connectTarget(e,t){var r;this.targetsByName.has(t,e)||(this.targetsByName.add(t,e),null===(r=this.tokenListObserver)||void 0===r||r.pause(()=>this.delegate.targetConnected(e,t)))}disconnectTarget(e,t){var r;this.targetsByName.has(t,e)&&(this.targetsByName.delete(t,e),null===(r=this.tokenListObserver)||void 0===r||r.pause(()=>this.delegate.targetDisconnected(e,t)))}disconnectAllTargets(){for(const e of this.targetsByName.keys)for(const t of this.targetsByName.getValuesForKey(e))this.disconnectTarget(t,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function k(e,t){const r=j(e);return Array.from(r.reduce((e,r)=>(function(e,t){const r=e[t];return Array.isArray(r)?r:[]}(r,t).forEach(t=>e.add(t)),e),new Set))}function j(e){const t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}class F{constructor(e,t){this.started=!1,this.context=e,this.delegate=t,this.outletsByName=new x,this.outletElementsByName=new x,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}),this.started=!0,this.dependentContexts.forEach(e=>e.refresh()))}refresh(){this.selectorObserverMap.forEach(e=>e.refresh()),this.attributeObserverMap.forEach(e=>e.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(e=>e.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(e=>e.stop()),this.attributeObserverMap.clear())}selectorMatched(e,t,{outletName:r}){const n=this.getOutlet(e,r);n&&this.connectOutlet(n,e,r)}selectorUnmatched(e,t,{outletName:r}){const n=this.getOutletFromMap(e,r);n&&this.disconnectOutlet(n,e,r)}selectorMatchElement(e,{outletName:t}){const r=this.selector(t),n=this.hasOutlet(e,t),i=e.matches(`[${this.schema.controllerAttribute}~=${t}]`);return!!r&&n&&i&&e.matches(r)}elementMatchedAttribute(e,t){const r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}elementAttributeValueChanged(e,t){const r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}elementUnmatchedAttribute(e,t){const r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}connectOutlet(e,t,r){var n;this.outletElementsByName.has(r,t)||(this.outletsByName.add(r,e),this.outletElementsByName.add(r,t),null===(n=this.selectorObserverMap.get(r))||void 0===n||n.pause(()=>this.delegate.outletConnected(e,t,r)))}disconnectOutlet(e,t,r){var n;this.outletElementsByName.has(r,t)&&(this.outletsByName.delete(r,e),this.outletElementsByName.delete(r,t),null===(n=this.selectorObserverMap.get(r))||void 0===n||n.pause(()=>this.delegate.outletDisconnected(e,t,r)))}disconnectAllOutlets(){for(const e of this.outletElementsByName.keys)for(const t of this.outletElementsByName.getValuesForKey(e))for(const r of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(r,t,e)}updateSelectorObserverForOutlet(e){const t=this.selectorObserverMap.get(e);t&&(t.selector=this.selector(e))}setupSelectorObserverForOutlet(e){const t=this.selector(e),r=new S(document.body,t,this,{outletName:e});this.selectorObserverMap.set(e,r),r.start()}setupAttributeObserverForOutlet(e){const t=this.attributeNameForOutletName(e),r=new b(this.scope.element,t,this);this.attributeObserverMap.set(e,r),r.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find(t=>this.attributeNameForOutletName(t)===e)}get outletDependencies(){const e=new x;return this.router.modules.forEach(t=>{k(t.definition.controllerConstructor,"outlets").forEach(r=>e.add(r,t.identifier))}),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const e=this.dependentControllerIdentifiers;return this.router.contexts.filter(t=>e.includes(t.identifier))}hasOutlet(e,t){return!!this.getOutlet(e,t)||!!this.getOutletFromMap(e,t)}getOutlet(e,t){return this.application.getControllerForElementAndIdentifier(e,t)}getOutletFromMap(e,t){return this.outletsByName.getValuesForKey(t).find(t=>t.element===e)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class C{constructor(e,t){this.logDebugActivity=(e,t={})=>{const{identifier:r,controller:n,element:i}=this;t=Object.assign({identifier:r,controller:n,element:i},t),this.application.logDebugActivity(this.identifier,e,t)},this.module=e,this.scope=t,this.controller=new e.controllerConstructor(this),this.bindingObserver=new T(this,this.dispatcher),this.valueObserver=new P(this,this.controller),this.targetObserver=new A(this,this),this.outletObserver=new F(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(e){this.handleError(e,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(e){this.handleError(e,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(e){this.handleError(e,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,t,r={}){const{identifier:n,controller:i,element:s}=this;r=Object.assign({identifier:n,controller:i,element:s},r),this.application.handleError(e,`Error ${t}`,r)}targetConnected(e,t){this.invokeControllerMethod(`${t}TargetConnected`,e)}targetDisconnected(e,t){this.invokeControllerMethod(`${t}TargetDisconnected`,e)}outletConnected(e,t,r){this.invokeControllerMethod(`${c(r)}OutletConnected`,e,t)}outletDisconnected(e,t,r){this.invokeControllerMethod(`${c(r)}OutletDisconnected`,e,t)}invokeControllerMethod(e,...t){const r=this.controller;"function"==typeof r[e]&&r[e](...t)}}const I="function"==typeof Object.getOwnPropertySymbols?e=>[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]:Object.getOwnPropertyNames,M=(()=>{function e(e){function t(){return Reflect.construct(e,arguments,new.target)}return t.prototype=Object.create(e.prototype,{constructor:{value:t}}),Reflect.setPrototypeOf(t,e),t}try{return function(){const t=e(function(){this.a.call(this)});t.prototype.a=function(){},new t}(),e}catch(e){return e=>class extends e{}}})();class N{constructor(e,t){this.application=e,this.definition=function(e){return{identifier:e.identifier,controllerConstructor:(t=e.controllerConstructor,function(e,t){const r=M(e),n=function(e,t){return I(t).reduce((r,n)=>{const i=function(e,t,r){const n=Object.getOwnPropertyDescriptor(e,r);if(!n||!("value"in n)){const e=Object.getOwnPropertyDescriptor(t,r).value;return n&&(e.get=n.get||e.get,e.set=n.set||e.set),e}}(e,t,n);return i&&Object.assign(r,{[n]:i}),r},{})}(e.prototype,t);return Object.defineProperties(r.prototype,n),r}(t,function(e){return k(e,"blessings").reduce((t,r)=>{const n=r(e);for(const e in n){const r=t[e]||{};t[e]=Object.assign(r,n[e])}return t},{})}(t)))};var t}(t),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){const t=this.fetchContextForScope(e);this.connectedContexts.add(t),t.connect()}disconnectContextForScope(e){const t=this.contextsByScope.get(e);t&&(this.connectedContexts.delete(t),t.disconnect())}fetchContextForScope(e){let t=this.contextsByScope.get(e);return t||(t=new C(this,e),this.contextsByScope.set(e,t)),t}}class L{constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){return(this.data.get(this.getDataKey(e))||"").match(/[^\s]+/g)||[]}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}}class D{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){const t=this.getAttributeNameForKey(e);return this.element.getAttribute(t)}set(e,t){const r=this.getAttributeNameForKey(e);return this.element.setAttribute(r,t),this.get(e)}has(e){const t=this.getAttributeNameForKey(e);return this.element.hasAttribute(t)}delete(e){if(this.has(e)){const t=this.getAttributeNameForKey(e);return this.element.removeAttribute(t),!0}return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${l(e)}`}}class H{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,t,r){let n=this.warnedKeysByObject.get(e);n||(n=new Set,this.warnedKeysByObject.set(e,n)),n.has(t)||(n.add(t),this.logger.warn(r,e))}}function U(e,t){return`[${e}~="${t}"]`}class V{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findTarget(t)||this.findLegacyTarget(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllTargets(t),...this.findAllLegacyTargets(t)],[])}findTarget(e){const t=this.getSelectorForTargetName(e);return this.scope.findElement(t)}findAllTargets(e){const t=this.getSelectorForTargetName(e);return this.scope.findAllElements(t)}getSelectorForTargetName(e){return U(this.schema.targetAttributeForScope(this.identifier),e)}findLegacyTarget(e){const t=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(t),e)}findAllLegacyTargets(e){const t=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(t).map(t=>this.deprecate(t,e))}getLegacySelectorForTargetName(e){const t=`${this.identifier}.${e}`;return U(this.schema.targetAttribute,t)}deprecate(e,t){if(e){const{identifier:r}=this,n=this.schema.targetAttribute,i=this.schema.targetAttributeForScope(r);this.guide.warn(e,`target:${t}`,`Please replace ${n}="${r}.${t}" with ${i}="${t}". The ${n} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}}class ${constructor(e,t){this.scope=e,this.controllerElement=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findOutlet(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllOutlets(t)],[])}getSelectorForOutletName(e){const t=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(t)}findOutlet(e){const t=this.getSelectorForOutletName(e);if(t)return this.findElement(t,e)}findAllOutlets(e){const t=this.getSelectorForOutletName(e);return t?this.findAllElements(t,e):[]}findElement(e,t){return this.scope.queryElements(e).filter(r=>this.matchesElement(r,e,t))[0]}findAllElements(e,t){return this.scope.queryElements(e).filter(r=>this.matchesElement(r,e,t))}matchesElement(e,t,r){const n=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(t)&&n.split(" ").includes(r)}}class B{constructor(e,t,r,n){this.targets=new V(this),this.classes=new L(this),this.data=new D(this),this.containsElement=e=>e.closest(this.controllerSelector)===this.element,this.schema=e,this.element=t,this.identifier=r,this.guide=new H(n),this.outlets=new $(this.documentScope,t)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return U(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new B(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class W{constructor(e,t,r){this.element=e,this.schema=t,this.delegate=r,this.valueListObserver=new R(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){const{element:t,content:r}=e;return this.parseValueForElementAndIdentifier(t,r)}parseValueForElementAndIdentifier(e,t){const r=this.fetchScopesByIdentifierForElement(e);let n=r.get(t);return n||(n=this.delegate.createScopeForElementAndIdentifier(e,t),r.set(t,n)),n}elementMatchedValue(e,t){const r=(this.scopeReferenceCounts.get(t)||0)+1;this.scopeReferenceCounts.set(t,r),1==r&&this.delegate.scopeConnected(t)}elementUnmatchedValue(e,t){const r=this.scopeReferenceCounts.get(t);r&&(this.scopeReferenceCounts.set(t,r-1),1==r&&this.delegate.scopeDisconnected(t))}fetchScopesByIdentifierForElement(e){let t=this.scopesByIdentifierByElement.get(e);return t||(t=new Map,this.scopesByIdentifierByElement.set(e,t)),t}}class q{constructor(e){this.application=e,this.scopeObserver=new W(this.element,this.schema,this),this.scopesByIdentifier=new x,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((e,t)=>e.concat(t.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);const t=new N(this.application,e);this.connectModule(t);const r=e.controllerConstructor.afterLoad;r&&r.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){const t=this.modulesByIdentifier.get(e);t&&this.disconnectModule(t)}getContextForElementAndIdentifier(e,t){const r=this.modulesByIdentifier.get(t);if(r)return r.contexts.find(t=>t.element==e)}proposeToConnectScopeForElementAndIdentifier(e,t){const r=this.scopeObserver.parseValueForElementAndIdentifier(e,t);r?this.scopeObserver.elementMatchedValue(r.element,r):console.error(`Couldn't find or create scope for identifier: "${t}" and element:`,e)}handleError(e,t,r){this.application.handleError(e,t,r)}createScopeForElementAndIdentifier(e,t){return new B(this.schema,e,t,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.connectContextForScope(t))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.disconnectContextForScope(t))}}const Q={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:e=>`data-${e}-target`,outletAttributeForScope:(e,t)=>`data-${e}-${t}
2-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},z("abcdefghijklmnopqrstuvwxyz".split("").map(e=>[e,e]))),z("0123456789".split("").map(e=>[e,e])))};function z(e){return e.reduce((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:r}),{})}class K{constructor(e=document.documentElement,t=Q){this.logger=console,this.debug=!1,this.logDebugActivity=(e,t,r={})=>{this.debug&&this.logFormattedMessage(e,t,r)},this.element=e,this.schema=t,this.dispatcher=new i(this),this.router=new q(this),this.actionDescriptorFilters=Object.assign({},s)}static start(e,t){const r=new this(e,t);return r.start(),r}async start(){await new Promise(e=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",()=>e()):e()}),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,t){this.load({identifier:e,controllerConstructor:t})}registerActionOption(e,t){this.actionDescriptorFilters[e]=t}load(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>{e.controllerConstructor.shouldLoad&&this.router.loadDefinition(e)})}unload(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>this.router.unloadIdentifier(e))}get controllers(){return this.router.contexts.map(e=>e.controller)}getControllerForElementAndIdentifier(e,t){const r=this.router.getContextForElementAndIdentifier(e,t);return r?r.controller:null}handleError(e,t,r){var n;this.logger.error("%s\n\n%o\n\n%o",t,e,r),null===(n=window.onerror)||void 0===n||n.call(window,t,"",0,0,e)}logFormattedMessage(e,t,r={}){r=Object.assign({application:this},r),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},r)),this.logger.groupEnd()}}function J(e,t,r){return e.application.getControllerForElementAndIdentifier(t,r)}function X(e,t,r){let n=J(e,t,r);return n||(e.application.router.proposeToConnectScopeForElementAndIdentifier(t,r),n=J(e,t,r),n||void 0)}function G([e,t],r){return function(e){const{token:t,typeDefinition:r}=e,n=`${l(t)}-value`,i=function(e){const{controller:t,token:r,typeDefinition:n}=e,i=function(e){const{controller:t,token:r,typeObject:n}=e,i=h(n.type),s=h(n.default),a=i&&s,o=i&&!s,c=!i&&s,u=Y(n.type),l=Z(e.typeObject.default);if(o)return u;if(c)return l;if(u!==l)throw new Error(`The specified default value for the Stimulus Value "${t?`${t}.${r}`:r}" must match the defined type "${u}". The provided default value of "${n.default}" is of type "${l}".`);return a?u:void 0}({controller:t,token:r,typeObject:n}),s=Z(n),a=Y(n),o=i||s||a;if(o)return o;throw new Error(`Unknown value type "${t?`${t}.${n}`:r}" for "${r}" value`)}(e);return{type:i,key:n,name:o(n),get defaultValue(){return function(e){const t=Y(e);if(t)return ee[t];const r=d(e,"default"),n=d(e,"type"),i=e;if(r)return i.default;if(n){const{type:e}=i,t=Y(e);if(t)return ee[t]}return e}(r)},get hasCustomDefaultValue(){return void 0!==Z(r)},reader:te[i],writer:re[i]||re.default}}({controller:r,token:e,typeDefinition:t})}function Y(e){switch(e){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function Z(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(e)?"array":"[object Object]"===Object.prototype.toString.call(e)?"object":void 0}const ee={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},te={array(e){const t=JSON.parse(e);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${e}" of type "${Z(t)}"`);return t},boolean:e=>!("0"==e||"false"==String(e).toLowerCase()),number:e=>Number(e.replace(/_/g,"")),object(e){const t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${e}" of type "${Z(t)}"`);return t},string:e=>e},re={default:function(e){return`${e}`},array:ne,object:ne};function ne(e){return JSON.stringify(e)}class ie{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}
2get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:r={},prefix:n=this.identifier,bubbles:i=!0,cancelable:s=!0}={}){const a=new CustomEvent(n?`${n}:${e}`:e,{detail:r,bubbles:i,cancelable:s});return t.dispatchEvent(a),a}}ie.blessings=[function(e){return k(e,"classes").reduce((e,t)=>Object.assign(e,function(e){return{[`${e}Class`]:{get(){const{classes:t}=this;if(t.has(e))return t.get(e);{const r=t.getAttributeName(e);throw new Error(`Missing attribute "${r}"`)}}},[`${e}Classes`]:{get(){return this.classes.getAll(e)}},[`has${u(e)}Class`]:{get(){return this.classes.has(e)}}}}(t)),{})},function(e){return k(e,"targets").reduce((e,t)=>{return Object.assign(e,(r=t,{[`${r}Target`]:{get(){const e=this.targets.find(r);if(e)return e;throw new Error(`Missing target element "${r}" for "${this.identifier}" controller`)}},[`${r}Targets`]:{get(){return this.targets.findAll(r)}},[`has${u(r)}Target`]:{get(){return this.targets.has(r)}}}));var r},{})},function(e){const t=function(e,t){return j(e).reduce((e,r)=>(e.push(...function(e,t){const r=e[t];return r?Object.keys(r).map(e=>[e,r[e]]):[]}(r,t)),e),[])}(e,"values"),r={valueDescriptorMap:{get(){return t.reduce((e,t)=>{const r=G(t,this.identifier),n=this.data.getAttributeNameForKey(r.key);return Object.assign(e,{[n]:r})},{})}}};return t.reduce((e,t)=>Object.assign(e,function(e){const t=G(e,void 0),{key:r,name:n,reader:i,writer:s}=t;return{[n]:{get(){const e=this.data.get(r);return null!==e?i(e):t.defaultValue},set(e){void 0===e?this.data.delete(r):this.data.set(r,s(e))}},[`has${u(n)}`]:{get(){return this.data.has(r)||t.hasCustomDefaultValue}}}}(t)),r)},function(e){return k(e,"outlets").reduce((e,t)=>Object.assign(e,function(e){const t=c(e);return{[`${t}Outlet`]:{get(){const t=this.outlets.find(e),r=this.outlets.getSelectorForOutletName(e);if(t){const r=X(this,t,e);if(r)return r;throw new Error(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${r}".`)}},[`${t}Outlets`]:{get(){const t=this.outlets.findAll(e);return t.length>0?t.map(t=>{const r=X(this,t,e);if(r)return r;console.warn(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`,t)}).filter(e=>e):[]}},[`${t}OutletElement`]:{get(){const t=this.outlets.find(e),r=this.outlets.getSelectorForOutletName(e);if(t)return t;throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${r}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${u(t)}Outlet`]:{get(){return this.outlets.has(e)}}}}(t)),{})}],ie.targets=[],ie.outlets=[],ie.values={}},4360(e,t,r){"use strict";var n=r(7222),i=r(9180),s=r(5826),a=r(5502),o=r(3512);function c(e,t,r,i){return new n(e,t,r,i)}c.version=r(7569),c.AlgoliaSearchHelper=n,c.SearchParameters=a,c.RecommendParameters=i,c.SearchResults=o,c.RecommendResults=s,e.exports=c},615(e,t,r){"use strict";var n=r(3052);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(8791)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},9180(e){"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},e.exports=t},5826(e){"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;
vendor: 23,890 bytes, line 2
2e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}t.prototype={constructor:t},e.exports=t},1989(e,t,r){"use strict";var n=r(6163),i=r(9678),s=r(3694),a={addRefinement:function(e,t,r){if(a.isRefined(e,t,r))return e;var i=""+r,s=e[t]?e[t].concat(i):[i],o={};return o[t]=s,n(o,e)},removeRefinement:function(e,t,r){if(void 0===r)return a.clearRefinement(e,function(e,r){return t===r});var n=""+r;return a.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,r)?a.removeRefinement(e,t,r):a.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return s(e,[t]);if("function"==typeof t){var n=!1,a=Object.keys(e).reduce(function(i,s){var a=e[s]||[],o=a.filter(function(e){return!t(e,s,r)});return o.length!==a.length&&(n=!0),i[s]=o,i},{});return n?a:e}},isRefined:function(e,t,r){var n=Boolean(e[t])&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=a},5502(e,t,r){"use strict";var n=r(6163),i=r(1536),s=r(2870),a=r(7443),o=r(9678),c=r(3694),u=r(7556),l=r(9445),h=r(1989);function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return d(t[r],e)}):e===t}function f(e){var t=e?f._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==f.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}f.PARAMETERS=Object.keys(new f),f._parseNumbers=function(e){if(e instanceof f)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return a(e,t)},f.make=function(e){var t=new f(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},f.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&o(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},f.prototype={constructor:f,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){var n=r;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,i){return i===e&&r.op===t&&d(r.val,u(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var s=r[i],a={};return s=s||{},Object.keys(s).forEach(function(r){var n=s[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),a[r]=o}),n[i]=a,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var s,a,o=u(r),c=void 0!==(s=this.numericRefinements[e][t],a=o,i(s,function(e){return d(e,a)}));return n&&c},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=s(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return s(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return-1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=f.validate(this,e);if(t)throw t;var r=this,n=f._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),s=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?c(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(s)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=f},2524(e,t,r){"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",l=e._getHierarchicalFacetSeparator(n),h=e._getHierarchicalRootPath(n),d=e._getHierarchicalShowParentLevel(n),f=s(e._getHierarchicalFacetSortBy(n)),p=t.every(function(e){return e.exhaustive}),m=function(e,t,r,n,s){return function(u,l,h){var d=u;if(h>0){var f=0;for(d=u;f<h;){var p=d&&Array.isArray(d.data)?d.data:[];d=i(p,function(e){return e.isRefined}),f++}}if(d){var m=Object.keys(l.data).map(function(e){return[e,l.data[e]]}).filter(function(e){return function(e,t,r,n,i,s){return(!i||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length===1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(s||0===e.indexOf(r)))}(e[0],d.path||r,s,t,r,n)});d.data=a(m.map(function(e){var r=e[0];return function(e,t,r,n,i){var s=t.split(r);return{name:s[s.length-1].trim(),path:t,escapedValue:o(t),count:e,isRefined:n===t||0===n.indexOf(t+r),exhaustive:i,data:null}}(e[1],r,t,c(s),l.exhaustive)}),e[0],e[1])}return u}}(f,l,h,d,u),g=t;return h&&(g=t.slice(h.split(l).length)),g.reduce(m,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:p,data:null})}};var n=r(7384),i=r(1536),s=r(1848),a=r(7822),o=n.escapeFacetValue,c=n.unescapeFacetValue},3512(e,t,r){"use strict";var n=r(2958),i=r(6163),s=r(7384),a=r(1536),o=r(8394),c=r(1848),u=r(8700),l=r(7822),h=s.escapeFacetValue,d=s.unescapeFacetValue,f=r(2524);function p(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var s=t[0]||{};this._rawResults=t;var c=this;Object.keys(s).forEach(function(e){c[e]=s[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){c[e]=l[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var h=e.getRefinedDisjunctiveFacets(),g=p(e.facets),v=p(e.disjunctiveFacets),y=1,_=s.facets||{};Object.keys(_).forEach(function(t){var r,n,i=_[t],u=(r=e.hierarchicalFacets,n=t,a(r,function(e){return(e.attributes||[]).indexOf(n)>-1}));if(u){var l=u.attributes.indexOf(t),h=o(e.hierarchicalFacets,function(e){return e.name===u.name});c.hierarchicalFacets[h][l]={attribute:t,data:i,exhaustive:s.exhaustiveFacetsCount}}else{var d,f=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);f&&(d=v[t],c.disjunctiveFacets[d]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},m(c.disjunctiveFacets[d],s.facets_stats,t)),p&&(d=g[t],c.facets[d]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},m(c.facets[d],s.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),h.forEach(function(r){var n=t[y],a=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(a).forEach(function(t){var r,h=a[t];if(l){r=o(e.hierarchicalFacets,function(e){return e.name===l.name});var f=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===f)return;c.hierarchicalFacets[r][f].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][f].data,h):i(h,c.hierarchicalFacets[r][f].data)}else{r=v[t];var p=s.facets&&s.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(p,h),exhaustive:n.exhaustiveFacetsCount},m(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(d(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),s=e._getHierarchicalFacetSeparator(n),a=e.getHierarchicalRefinement(r);0===a.length||a[0].split(s).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=o(e.hierarchicalFacets,function(e){return e.name===n.name}),h=o(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==h){var d={};if(a.length>0&&!c.persistHierarchicalRootCount){var f=a[0].split(s)[0];d[f]=c.hierarchicalFacets[l][h].data[f]}c.hierarchicalFacets[l][h].data=i(d,u,c.hierarchicalFacets[l][h].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:_[t],exhaustive:s.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=a(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=h(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var s=a(e.hierarchicalFacets,r);if(!s)return s;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),u=d(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(o.rootPath)&&(u=u.replace(o.rootPath+c,""));var l=u.split(c);return l.unshift(t),y(s,l,0),s}}function y(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach(function(e){y(e,t,r+1)})}function _(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var s=t.data.map(function(t){return _(e,t,r,n+1)}),a=e(s,r[n]);return i({data:a},t)}function b(e,t){var r=a(e,function(e){return e.name===t});return r&&r.stats}function w(e,t,r,n,i){var s=a(i,function(e){return e.name===r}),o=s&&s.data&&s.data[n]?s.data[n]:0,c=s&&s.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:c}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)}
2,g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=v(this,e);if(r){var n=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),s=this;return _(function(e,t){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(s,t);if(n.facetOrdering&&r)return function(e,t){var r=[],n=[],i=t.hide||[],s=(t.order||[]).reduce(function(e,t,r){return e[t]=r,e},{});e.forEach(function(e){var t=e.path||e.name,a=i.indexOf(t)>-1;a||void 0===s[t]?a||n.push(e):r[s[t]]=e}),r=r.filter(function(e){return e});var a,o=t.sortRemainingBy;return"hidden"===o?r:(a="alpha"===o?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(l(n,a[0],a[1])))}(e,r);if(Array.isArray(n.sortBy)){var i=c(n.sortBy,g.DEFAULT_SORT),a=l(e,i[0],i[1]),o=r&&r.hide?r.hide:[];if(o.length>0){var u=[];return a.forEach(function(e){var t=e.path||e.name;-1===o.indexOf(t)&&u.push(e)}),u}return a}if("function"==typeof n.sortBy)return function(e,t){return t.sort(e)}(n.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:s._state.getHierarchicalFacetByName(r.name).attributes)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?b(this.facets,e):this._state.isDisjunctiveFacet(e)?b(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
vendor: 4,818 bytes, line 2
2h(function(e){r.push(w(0,"facet",n,e,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(e){r.push(w(0,"exclude",n,e,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(e){r.push(w(0,"disjunctive",n,e,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(i),o=r.split(s),c=a(n,function(e){return e.name===t}),u=o.reduce(function(e,t){var r=e&&a(e.data,function(e){return e.name===t});return void 0!==r?r:e},c),l=u&&u.count||0,h=u&&u.exhaustive||!1,d=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:d,count:l,exhaustive:h}}(e,n,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=g},7222(e,t,r){"use strict";var n=r(3052),i=r(615),s=r(7384).escapeFacetValue,a=r(8791),o=r(7443),c=r(9678),u=r(3694),l=r(9180),h=r(5826),d=r(7889),f=r(5502),p=r(3512),m=r(6762),g=r(7569);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=f.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function _(){return this.state.page}a(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=d._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e});this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(d._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),s="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(s);var a=this.client.initIndex(n.index);if("function"!=typeof a.findAnswers)throw new Error(s);return a.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(n||{}),c=o.isDisjunctiveFacet(e),u=d.getSearchForFacetQuery(e,t,r,o);this._currentNbQueries++;var l,h=this;i?l=this.client.searchForFacetValues([{indexName:o.index,params:u}]):a?l=this.client.initIndex(o.index).searchForFacetValues(u):(delete u.facetName,l=this.client.search([{type:"facet",facet:e,indexName:o.index,params:u}]).then(function(e){return e.results[0]}
vendor: 9,416 bytes, line 2
2)),this.emit("searchForFacetValues",{state:o,facet:e,query:t});var f=this.lastResults&&this.lastResults.index===o.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return l.then(function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return f.indexOf(r.value)>-1||(r.escapedValue=s(r.value),r.isRefined=c?o.isDisjunctiveFacetRefined(e,r.escapedValue):o.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i=this.state.setQueryParameters(n||{}),a=i.isDisjunctiveFacet(e);this._currentNbQueries++;var o,c=this;return o=this.client.searchForFacetValues({compositionID:i.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:d._getCompositionHitsSearchParams(i)}}}),this.emit("searchForFacetValues",{state:i,facet:e,query:t}),o.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=s(t.value),t.isRefined=a?i.isDisjunctiveFacetRefined(e,t.escapedValue):i.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},v.prototype.hasRefinements=function(e){return!!c(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=_,v.prototype.getPage=_,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=d._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?d._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),s=Array.prototype.concat.apply(n,i),a=this._queryId++;if(this._currentNbQueries++,!s.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,a));
vendor: 4,128 bytes, line 2
2try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,r,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=d._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw new Error("Only one query is allowed when using a composition.");var s=n[0];try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var s=this._recommendCache,a=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var a=t.getModifiedRecommendState(new l);return n.push({state:a,index:r,helper:t}),i=Array.prototype.concat.apply(i,a.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:a,results:t.lastRecommendResults}}),a._buildQueries(r,s)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,s),a);if(0!==o.length)if(o.length>0&&void 0===this.client.getRecommendations)console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");else{var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),s=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(s).length<=0&&(s=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,a=e.helper,o=void 0!==r?i.splice(0,r):i;if(t.index){if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new p(t,[e],n._searchResultsOptions);return void 0!==s&&(r._rawContent=s),r});a.lastResults=new p(t,[o[0]],n._searchResultsOptions),a.lastResults.feeds=c,void 0!==s&&(a.lastResults._rawContent=s)}else a.lastResults=new p(t,o,n._searchResultsOptions),void 0!==s&&(a.lastResults._rawContent=s);a.emit("result",{results:a.lastResults,state:t})}else a.emit("result",{results:null,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,s={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){s[e]||(s[e]=[]),s[e].push(t)}),Object.keys(s).forEach(function(e){var t=s[e],a=n.results[t[0]];1!==t.length?i[e]=Object.assign({},a,{hits:m(r,t.map(function(e){return n.results[e].hits}))}):i[e]=a});var a={};r.forEach(function(e){a[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new h(t,a),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})):r.emit("recommend:result",{results:null,state:t})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryId
2Received,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},2958(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},6163(e){"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},7384(e){"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},1536(e){"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}},8394(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}},3596(e){e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},1848(e,t,r){"use strict";var n=r(1536);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),s=n(r,function(e){return e[0]===i[0]});return i.length>1||!s?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(s[0]),e[1].push(s[1]),e)},[[],[]])}},8791(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},2870(e){"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},7443(e){"use strict";function t(e){return"object"==typeof e&&null!==e?n(Array.isArray(e)?[]:{},e):e}function r(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return e;for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&"__proto__"!==s&&"constructor"!==s){var a=i[s],o=e[s];void 0!==o&&void 0===a||(r(o)&&r(a)?e[s]=n(o,a):e[s]=t(a))}return e}e.exports=function(e){r(e)||(e={});for(var t=1,i=arguments.length;t<i;t++){var s=arguments[t];r(s)&&n(e,s)}return e}},8700(e){"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},9678(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},3694(e){"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},7822(e){"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,s=null===t;if(!s&&e>t||n&&i||!r)return 1;if(!n&&e<t||s&&r||!i)return-1}return 0}e.exports=function(e,r,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var i=e.map(function(e,t){return{criteria:r.map(function(t){return e[t]}),index:t,value:e}});return i.sort(function(e,r){for(var i=-1;++i<e.criteria.length;){var s=t(e.criteria[i],r.criteria[i]);if(s)return i>=n.length?s:"desc"===n[i]?-s:s}return e.index-r.index}),i.map(function(e){return e.value})}},7556(e){"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},7889(e,t,r){"use strict";var n=r(7443);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var s={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:s._getHitsSearchParams(t)}
vendor: 2,725 bytes, line 2
2),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),a=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(o).length>1){var c=a[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,a){var o=s._getDisjunctiveFacetSearchParams(t,n.attribute,0===a);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),h=c[a-1];a>0?o.facetFilters=l.concat(h.attribute+":"+h.value):l.length>0?o.facetFilters=l:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:s._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)).sort(),r=s._getFacetFilters(e),a=s._getNumericFilters(e),o=s._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),a.length>0&&(c.numericFilters=a),i(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(s._getHitsHierarchicalFacetsAttributes(e)).sort(),r=s._getFacetFilters(e),a=s._getNumericFilters(e),o=s._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),a.length>0&&(c.numericFilters=a);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var a=s._getFacetFilters(e,t,r),o=s._getNumericFilters(e,t),c=s._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return u.facets=l?s._getDisjunctiveHierarchicalFacetAttribute(e,l,r):t,o.length>0&&(u.numericFilters=o),a.length>0&&(u.facetFilters=a),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
2Object.keys(i).forEach(function(e){var s=i[e]||[];t!==n&&s.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var s=e.facetsExcludes||{};Object.keys(s).sort().forEach(function(e){(s[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach(function(e){var r=a[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var s=(o[i]||[])[0];if(void 0!==s){var a,c,u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===s.indexOf(l)||!h&&!0===r||h&&h.split(l).length===s.split(l).length)return;h?(c=h.split(l).length-1,s=h):(c=s.split(l).length-2,s=s.slice(0,s.lastIndexOf(l))),a=u.attributes[c]}else c=s.split(l).length-1,a=u.attributes[c];a&&n.push([a+":"+s])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),s=n.split(i).length,a=r.attributes.slice(0,s+1);return t.concat(a)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),s=0;return i&&(s=i.split(n).length),[t.attributes[s]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,r,a){var o=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),i(n({},s._getHitsSearchParams(o),c))}};e.exports=s},9445(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},6762(e,t,r){"use strict";var n=r(1536),i=r(3596);e.exports=function(e,t){var r={};return t.forEach(function(t){t.forEach(function(t,n){e.includes(t.objectID)||(r[t.objectID]?r[t.objectID]={indexSum:r[t.objectID].indexSum+n,count:r[t.objectID].count+1}:r[t.objectID]={indexSum:n,count:1})})}),function(e,t){var r=[];return Object.keys(e).forEach(function(n){e[n].count<2&&(e[n].indexSum+=100),r.push({objectID:n,avgOfIndices:e[n].indexSum/t})}),r.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})}(r,t.length).reduce(function(e,r){var s=n(i(t),function(e){return e.objectID===r.objectID});return s?e.concat(s):e},[])}},7569(e){"use strict";e.exports="3.29.3"},4703(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>wi});var n=r(7578);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a,o,c,u,l,h,d,f,p,m,g,v,y,_,b,w,x,S={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},O={duration:.5,overwrite:!1,delay:0},E=1e8,R=1e-8,T=2*Math.PI,P=T/4,A=0,k=Math.sqrt,j=Math.cos,F=Math.sin,C=function(e){return"string"==typeof e},I=function(e){return"function"==typeof e},M=function(e){return"number"==typeof e},N=function(e){return void 0===e},L=function(e){return"object"==typeof e},D=function(e){return!1!==e},H=function(){return"undefined"!=typeof window},U=function(e){return I(e)||C(e)},V="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,B=/random\([^)]+\)/g,W=/,\s*/g,q=/(?:-?\.?\d|\.)+/gi,Q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,z=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,K=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,J=/[+-]=-?[.\d]+/,X=/[^,'"\[\]\s]+/gi,G=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Y={},Z={},ee=function(e){return(Z=ke(e,Y))&&Ar},te=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},re=function(e,t){return!t&&console.warn(e)},ne=function(e,t){return e&&(Y[e]=t)&&Z&&(Z[e]=t)||Y},ie=function(){return 0},se={suppressEvents:!0,isStart:!0,kill:!1},ae={suppressEvents:!0,kill:!1},oe={suppressEvents:!0},ce={},ue=[],le={},he={},de={},fe=30,pe=[],me="",ge=function(e){var t,r,n=e[0];if(L(n)||I(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=pe.length;r--&&!pe[r].targetTest(n););t=pe[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Bt(e[r],t)))||e.splice(r,1);return e},ve=function(e){return e._gsap||ge(ot(e))[0]._gsap},ye=function(e,t,r){return(r=e[t])&&I(r)?e[t]():N(r)&&e.getAttribute&&e.getAttribute(t)||r}
vendor: 11,819 bytes, line 2
2,_e=function(e,t){return(e=e.split(",")).forEach(t)||e},be=function(e){return Math.round(1e5*e)/1e5||0},we=function(e){return Math.round(1e7*e)/1e7||0},xe=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},Se=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Oe=function(){var e,t,r=ue.length,n=ue.slice(0);for(le={},ue.length=0,e=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Ee=function(e){return!!(e._initted||e._startAt||e.add)},Re=function(e,t,r,n){ue.length&&!o&&Oe(),e.render(t,r,n||!!(o&&t<0&&Ee(e))),ue.length&&!o&&Oe()},Te=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(X).length<2?t:C(e)?e.trim():e},Pe=function(e){return e},Ae=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ke=function(e,t){for(var r in t)e[r]=t[r];return e},je=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=L(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},Fe=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},Ce=function(e){var t,r=e.parent||u,n=e.keyframes?(t=$(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):Ae;if(D(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},Ie=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,a=e[n];if(i)for(s=t[i];a&&a[i]>s;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Me=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,s=t._next;i?i._next=s:e[r]===t&&(e[r]=s),s?s._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},Ne=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Le=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},De=function(e,t,r,n){return e._startAt&&(o?e._startAt.revert(ae):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},He=function e(t){return!t||t._ts&&e(t.parent)},Ue=function(e){return e._repeat?Ve(e._tTime,e=e.duration()+e._rDelay)*e:0},Ve=function(e,t){var r=Math.floor(e=we(e/t));return e&&r===e?r-1:r},$e=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Be=function(e){return e._end=we(e._start+(e._tDur/Math.abs(e._ts||e._rts||R)||0))},We=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=we(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Be(e),r._dirty||Le(r,e)),e},qe=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=$e(e.rawTime(),t),(!t._dur||nt(0,t.totalDuration(),r)-t._tTime>R)&&t.render(r,!0)),Le(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},Qe=function(e,t,r,n){return t.parent&&Ne(t),t._start=we((M(r)?r:r||e!==u?et(e,r,t):e._time)+t._delay),t._end=we(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ie(e,t,"_first","_last",e._sort?"_start":0),Xe(t)||(e._recent=t),n||qe(e,t),e._ts<0&&We(e,e._tTime),e},ze=function(e,t){return(Y.ScrollTrigger||te("scrollTrigger",t))&&Y.ScrollTrigger.create(t,e)},Ke=function(e,t,r,n,i){return Gt(e,t,i),e._initted?!r&&e._pt&&!o&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&p!==jt.frame?(ue.push(e),e._lazy=[i,n],1):void 0:1},Je=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Xe=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},Ge=function(e,t,r,n){var i=e._repeat,s=we(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=s/e._dur),e._dur=s,e._tDur=i?i<0?1e10:we(s*(i+1)+e._rDelay*i):s,a>0&&!n&&We(e,e._tTime=e._tDur*a),e.parent&&Be(e),r||Le(e.parent,e),e},Ye=function(e){return e instanceof qt?Le(e):Ge(e,e._dur)},Ze={_start:0,endTime:ie,totalDuration:ie},et=function e(t,r,n){var i,s,a,o=t.labels,c=t._recent||Ze,u=t.duration()>=E?c.endTime(!1):t._dur;return C(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?c._start:c.endTime(c._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?c:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=u),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*($(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},tt=function(e,t,r){var n,i,s=M(t[1]),a=(s?2:1)+(e<2?0:1),o=t[a];if(s&&(o.duration=t[1]),o.parent=r,e){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=D(i.vars.inherit)&&i.parent;o.immediateRender=D(n.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return new rr(t[0],o,t[a+1])},rt=function(e,t){return e||0===e?t(e):t},nt=function(e,t,r){return r<e?e:r>t?t:r},it=function(e,t){return C(e)&&(t=G.exec(e))?t[1]:""},st=[].slice,at=function(e,t){return e&&L(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&L(e[0]))&&!e.nodeType&&e!==l},ot=function(e,t,r){return c&&!t&&c.selector?c.selector(e):!C(e)||r||!h&&Ft()?$(e)?function(e,t,r){return void 0===r&&(r=[]),e.forEach(function(e){var n;return C(e)&&!t||at(e,1)?(n=r).push.apply(n,ot(e)):r.push(e)})||r}(e,r):at(e)?st.call(e,0):e?[e]:[]:st.call((t||d).querySelectorAll(e),0)},ct=function(e){return e=ot(e)[0]||re("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ot(t,r.querySelectorAll?r:r===e?re("Invalid scope")||d.createElement("div"):e)}},ut=function(e){return e.sort(function(){return.5-Math.random()})},lt=function(e){if(I(e))return e;var t=L(e)?e:{each:e},r=Dt(t.ease),n=t.from||0,i=parseFloat(t.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,c=t.axis,u=n,l=n;return C(n)?u=l={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],l=n[1]),function(e,a,h){var d,f,p,m,g,v,y,_,b,w=(h||t).length,x=s[w];if(!x){if(!(b="auto"===t.grid?0:(t.grid||[1,E])[1])){for(y=-E;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b<w&&b--}for(x=s[w]=[],d=o?Math.min(b,w)*u-.5:n%b,f=b===E?0:o?w*l/b-.5:n/b|0,y=0,_=E,v=0;v<w;v++)p=v%b-d,m=f-(v/b|0),x[v]=g=c?Math.abs("y"===c?m:p):k(p*p+m*m),g>y&&(y=g),g<_&&(_=g);"random"===n&&ut(x),x.max=y-_,x.min=_,x.v=w=(parseFloat(t.amount)||parseFloat(t.each)*(b>w?w-1:c?"y"===c?w/b:b:Math.max(b,w/b))||0)*("edges"===n?-1:1),x.b=w<0?i-w:i,x.u=it(t.amount||t.each)||0,r=r&&w<0?Lt(r):r}return w=(x[e]-x.min)/x.max||0,we(x.b+(r?r(w):w)*x.v)+x.u}},ht=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=we(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(M(r)?0:it(r))}},dt=function(e,t){var r,n,i=$(e);return!i&&L(e)&&(r=i=e.radius||E,e.values?(e=ot(e.values),(n=!M(e[0]))&&(r*=r)):e=ht(e.increment)),rt(t,i?I(e)?function(t){return n=e(t),Math.abs(n-t)<=r?n:t}:function(t){for(var i,s,a=parseFloat(n?t.x:t),o=parseFloat(n?t.y:0),c=E,u=0,l=e.length;l--;)(i=n?(i=e[l].x-a)*i+(s=e[l].y-o)*s:Math.abs(e[l]-a))<c&&(c=i,u=l);return u=!r||c<=r?e[u]:t,n||u===t||M(t)?u:u+it(t)}:ht(e))},ft=function(e,t,r,n){return rt($(e)?!t:!0===r?!!(r=0):!n,function(){return $(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},pt=function(e,t,r){return rt(r,function(r){return e[~~t(r)]})},mt=function(e){return e.replace(B,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(W);return ft(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},gt=function(e,t,r,n,i){var s=t-e,a=n-r;return rt(i,function(t){return r+((t-e)/s*a||0)})},vt=function(e,t,r){var n,i,s,a=e.labels,o=E;for(n in a)(i=a[n]-t)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},yt=function(e,t,r){var n,i,s,a=e.vars,o=a[t],u=c,l=e._ctx;if(o)return n=a[t+"Params"],i=a.callbackScope||e,r&&ue.length&&Oe(),l&&(c=l),s=n?o.apply(i,n):o.call(i),c=u,s},_t=function(e){return Ne(e),e.scrollTrigger&&e.scrollTrigger.kill(!!o),e.progress()<1&&yt(e,"onInterrupt"),e},bt=[],wt=function(e){if(e)if(e=!e.name&&e.default||e,H()||e.headless){var t=e.name,r=I(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:ie,render:hr,add:Jt,kill:fr,modifier:dr,rawVars:0},s={targetTest:0,get:0,getSetter:or,aliases:{},register:0};if(Ft(),e!==n){if(he[t])return;Ae(n,Ae(Fe(e,i),s)),ke(n.prototype,ke(i,Fe(e,s))),he[n.prop=t]=n,e.targetTest&&(pe.push(n),ce[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ne(t,n),e.register&&e.register(Ar,n,gr)}else bt.push(e)},xt=255,St={aqua:[0,xt,xt],lime:[0,xt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,xt],navy:[0,0,128],white:[xt,xt,xt],olive:[128,128,0],yellow:[xt,xt,0],orange:[xt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[xt,0,0],pink:[xt,192,203],cyan:[0,xt,xt],transparent:[xt,xt,xt,0]},Ot=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*xt+.5|0},Et=function(e,t,r){var n,i,s,a,o,c,u,l,h,d,f=e?M(e)?[e>>16,e>>8&xt,e&xt]:0:St.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),St[e])f=St[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),i=e.charAt(2),s=e.charAt(3),e="#"+n+n+i+i+s+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&xt,f&xt,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>8&xt,e&xt]}else if("hsl"===e.substr(0,3))if(f=d=e.match(q),t){if(~e.indexOf("="))return f=e.match(Q),r&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,o=+f[1]/100,n=2*(c=+f[2]/100)-(i=c<=.5?c*(o+1):c+o-c*o),f.length>3&&(f[3]*=1),f[0]=Ot(a+1/3,n,i),f[1]=Ot(a,n,i),f[2]=Ot(a-1/3,n,i);else f=e.match(q)||St.transparent;f=f.map(Number)}return t&&!d&&(n=f[0]/xt,i=f[1]/xt,s=f[2]/xt,c=((u=Math.max(n,i,s))+(l=Math.min(n,i,s)))/2,u===l?a=o=0:(h=u-l,o=c>.5?h/(2-u-l):h/(u+l),a=u===n?(i-s)/h+(i<s?6:0):u===i?(s-n)/h+2:(n-i)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*o+.5),f[2]=~~(100*c+.5)),r&&f.length<4&&(f[3]=1),f},Rt=function(e){var t=[],r=[],n=-1;return e.split(Pt).forEach(function(e){var i=e.match(z)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},Tt=function(e,t,r){var n,i,s,a,o="",c=(e+o).match(Pt),u=t?"hsla(":"rgba(",l=0;if(!c)return e;if(c=c.map(function(e){return(e=Et(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(s=Rt(e),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=e.replace(Pt,"1").split(z)).length-1;l<a;l++)o+=i[l]+(~n.indexOf(l)?c.shift()||u+"0,0,0,0)":(s.length?s:c.length?c:r).shift());if(!i)for(a=(i=e.split(Pt)).length-1;l<a;l++)o+=i[l]+c[l];return o+i[a]},Pt=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in St)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),At=/hsl[a]?\(/,kt=function(e){var t,r=e.join(" ");if(Pt.lastIndex=0,Pt.test(r))return t=At.test(r),e[1]=Tt(e[1],t),e[0]=Tt(e[0],t,Rt(e[1])),!0},jt=function(){var e,t,r,n,i,s,a=Date.now,o=500,c=33,u=a(),p=u,m=1e3/240,v=m,y=[],_=function r(l){var h,d,f,g,_=a()-p,b=!0===l;if((_>o||_<0)&&(u+=_-c),((h=(f=(p+=_)-u)-v)>0||b)&&(g=++n.frame,i=f-1e3*n.time,n.time=f/=1e3,v+=h+(h>=m?4:m-h),d=1),b||(e=t(r)),d)for(s=0;s<y.length;s++)y[s](f,i,g,l)};return n={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(e){return i/(1e3/(e||60))},wake:function(){f&&(!h&&H()&&(l=h=window,d=l.document||{},Y.gsap=Ar,(l.gsapVersions||(l.gsapVersions=[])).push(Ar.version),ee(Z||l.GreenSockGlobals||!l.gsap&&l||{}),bt.forEach(wt)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,e&&n.sleep(),t=r||function(e){return setTimeout(e,v-1e3*n.time+1|0)},g=1,_(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(e),g=0,t=ie},lagSmoothing:function(e,t){o=e||1/0,c=Math.min(t||33,o)},fps:function(e){m=1e3/(e||240),v=1e3*n.time+m},add:function(e,t,r){var i=t?function(t,r,s,a){e(t,r,s,a),n.remove(i)}:e;
vendor: 7,942 bytes, line 2
2return n.remove(e),y[r?"unshift":"push"](i),Ft(),i},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&s>=t&&s--},_listeners:y}}(),Ft=function(){return!g&&jt.wake()},Ct={},It=/^[\d.\-M][\d.\-,\s]/,Mt=/["']/g,Nt=function(e){for(var t,r,n,i={},s=e.substr(1,e.length-3).split(":"),a=s[0],o=1,c=s.length;o<c;o++)r=s[o],t=o!==c-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[a]=isNaN(n)?n.replace(Mt,"").trim():+n,a=r.substr(t+1).trim();return i},Lt=function(e){return function(t){return 1-e(1-t)}},Dt=function(e,t){return e&&(I(e)?e:Ct[e]||function(e){var t,r,n,i,s=(e+"").split("("),a=Ct[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[Nt(s[1])]:(t=e,r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r),t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)).split(",").map(Te)):Ct._CE&&It.test(e)?Ct._CE("",e):a}(e))||t},Ht=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var i,s={easeIn:t,easeOut:r,easeInOut:n};return _e(e,function(e){for(var t in Ct[e]=Y[e]=s,Ct[i=e.toLowerCase()]=r,s)Ct[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=Ct[e+"."+t]=s[t]}),s},Ut=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},Vt=function e(t,r,n){var i=r>=1?r:1,s=(n||(t?.3:.45))/(r<1?r:1),a=s/T*(Math.asin(1/i)||0),o=function(e){return 1===e?1:i*Math.pow(2,-10*e)*F((e-a)*s)+1},c="out"===t?o:"in"===t?function(e){return 1-o(1-e)}:Ut(o);return s=T/s,c.config=function(r,n){return e(t,r,n)},c},$t=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Ut(n);return i.config=function(r){return e(t,r)},i};_e("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;Ht(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow(2*(1-e),r)/2})}),Ct.Linear.easeNone=Ct.none=Ct.Linear.easeIn,Ht("Elastic",Vt("in"),Vt("out"),Vt()),v=7.5625,b=2*(_=1/(y=2.75)),w=2.5*_,Ht("Bounce",function(e){return 1-x(1-e)},x=function(e){return e<_?v*e*e:e<b?v*Math.pow(e-1.5/y,2)+.75:e<w?v*(e-=2.25/y)*e+.9375:v*Math.pow(e-2.625/y,2)+.984375}),Ht("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ht("Circ",function(e){return-(k(1-e*e)-1)}),Ht("Sine",function(e){return 1===e?1:1-j(e*P)}),Ht("Back",$t("in"),$t("out"),$t()),Ct.SteppedEase=Ct.steps=Y.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+(t?0:1),i=t?1:0;return function(e){return((n*nt(0,.99999999,e)|0)+i)*r}}},O.ease=Ct["quad.out"],_e("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return me+=e+","+e+"Params,"});var Bt=function(e,t){this.id=A++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ye,this.set=t?t.getSetter:or},Wt=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Ge(this,+e.duration,1,1),this.data=e.data,c&&(this._ctx=c,c.data.push(this)),g||jt.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Ge(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ft(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(We(this,e),!r._dp||r.parent||qe(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Qe(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===R||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Re(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ue(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Ue(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?Ve(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?$e(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(nt(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),Be(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ft(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==R&&(this._tTime-=R)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=we(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Qe(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(D(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$e(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=oe);var t=o;return o=e,Ee(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),o=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ye(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ye(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(et(this,e),D(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,D(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-R))},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>
vendor: 47,708 bytes, line 2
21?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var i=I(e)?e:Pe,s=function(){var e=t.then;t.then=null,r&&r(),I(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?s():t._prom=s})},t.kill=function(){_t(this)},e}();Ae(Wt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var qt=function(e){function t(t,r){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=D(t.sortChildren),u&&Qe(t.parent||u,i(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&ze(i(n),t.scrollTrigger),n}s(t,e);var r=t.prototype;return r.to=function(e,t,r){return tt(0,arguments,this),this},r.from=function(e,t,r){return tt(1,arguments,this),this},r.fromTo=function(e,t,r,n){return tt(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,Ce(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new rr(e,t,et(this,r),1),this},r.call=function(e,t,r){return Qe(this,rr.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,s,a){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new rr(e,r,et(this,i)),this},r.staggerFrom=function(e,t,r,n,i,s,a){return r.runBackwards=1,Ce(r).immediateRender=D(r.immediateRender),this.staggerTo(e,t,r,n,i,s,a)},r.staggerFromTo=function(e,t,r,n,i,s,a,o){return n.startAt=r,Ce(n).immediateRender=D(n.immediateRender),this.staggerTo(e,t,n,i,s,a,o)},r.render=function(e,t,r){var n,i,s,a,c,l,h,d,f,p,m,g,v=this._time,y=this._dirty?this.totalDuration():this._tDur,_=this._dur,b=e<=0?0:we(e),w=this._zTime<0!=e<0&&(this._initted||!_);if(this!==u&&b>y&&e>=0&&(b=y),b!==this._tTime||r||w){if(v!==this._time&&_&&(b+=this._time-v,e+=this._time-v),n=b,f=this._start,l=!(d=this._ts),w&&(_||(v=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,c=_+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,r);if(n=we(b%c),b===y?(a=this._repeat,n=_):((a=~~(p=we(b/c)))&&a===p&&(n=_,a--),n>_&&(n=_)),p=Ve(this._tTime,c),!v&&this._tTime&&p!==a&&this._tTime-p*c-this._dur<=0&&(p=a),m&&1&a&&(n=_-n,g=1),a!==p&&!this._lock){var x=m&&1&p,S=x===(m&&1&a);if(a<p&&(x=!x),v=x?0:b%_?_:b,this._lock=1,this.render(v||(g?0:we(a*c)),t,!_)._lock=0,this._tTime=b,!t&&this.parent&&yt(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1,p=a),v&&v!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,y=this._tDur,S&&(this._lock=2,v=x?_:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}}(this,we(v),we(n)),h&&(b-=n-(n=h._start))),this._tTime=b,this._time=n,this._act=!!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,v=0),!v&&b&&_&&!t&&!p&&(yt(this,"onStart"),this._tTime!==b))return this;if(n>=v&&e>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){h=0,s&&(b+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var O=e<0?e:n;i;){if(s=i._prev,(i._act||O<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(O-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(O-i._start)*i._ts,t,r||o&&Ee(i)),n!==this._time||!this._ts&&!l){h=0,s&&(b+=this._zTime=O?-1e-8:R);break}}i=s}}if(h&&!t&&(this.pause(),h.render(n>=v?0:-1e-8)._zTime=n>=v?1:-1,this._ts))return this._start=f,Be(this),this.render(e,t,r);this._onUpdate&&!t&&yt(this,"onUpdate",!0),(b===y&&this._tTime>=this.totalDuration()||!b&&v)&&(f!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((e||!_)&&(b===y&&this._ts>0||!b&&this._ts<0)&&Ne(this,1),t||e<0&&!v||!b&&!v&&y||(yt(this,b===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<y&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(e,t){var r=this;if(M(t)||(t=et(this,t,e)),!(e instanceof Wt)){if($(e))return e.forEach(function(e){return r.add(e,t)}),this;if(C(e))return this.addLabel(e,t);if(!I(e))return this;e=rr.delayedCall(0,e)}return this!==e?Qe(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-E);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof rr?t&&i.push(s):(r&&i.push(s),e&&i.push.apply(i,s.getChildren(!0,t,r)))),s=s._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return C(e)?this.removeLabel(e):I(e)?this.killTweensOf(e):(e.parent===this&&Me(this,e),e===this._recent&&(this._recent=this._last),Le(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=we(jt.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=et(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=rr.delayedCall(0,t||ie,r);return n.data="isPause",this._hasPause=1,Qe(this,n,et(this,e))},r.removePause=function(e){var t=this._first;for(e=et(this,e);t;)t._start===e&&"isPause"===t.data&&Ne(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)Qt!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=ot(e),s=this._first,a=M(t);s;)s instanceof rr?Se(s._targets,i)&&(a?(!Qt||s._initted&&s._ts)&&s.globalTime(0)<=t&&s.globalTime(s.totalDuration())>t:!t||s.isActive())&&n.push(s):(r=s.getTweensOf(i,t)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=et(n,e),s=t,a=s.startAt,o=s.onStart,c=s.onStartParams,u=s.immediateRender,l=rr.to(n,Ae({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||R,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());l._dur!==e&&Ge(l,e,0,1).render(l._time,!0,!0),r=1}o&&o.apply(l,c||[])}},t));return u?l.render(0):l},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,Ae({startAt:{time:et(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),vt(this,et(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),vt(this,et(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+R)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(e=we(e);i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in s)s[n]>=r&&(s[n]+=e);return Le(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Le(this)},r.totalDuration=function(e){var t,r,n,i=0,s=this,a=s._last,o=E;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-e:e));if(s._dirty){for(n=s.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Qe(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=we(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=t;Ge(s,s===u&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(e){if(u._ts&&(Re(u,$e(e,u)),p=jt.frame),jt.frame>=fe){fe+=S.autoSleep||120;var t=u._first;if((!t||!t._ts)&&S.autoSleep&&jt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||jt.sleep()}}},t}(Wt);Ae(qt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qt,zt,Kt=function(e,t,r,n,i,s,a){var o,c,u,l,h,d,f,p,m=new gr(this._pt,e,t,0,1,lr,null,i),g=0,v=0;for(m.b=r,m.e=n,r+="",(f=~(n+="").indexOf("random("))&&(n=mt(n)),s&&(s(p=[r,n],e,t),r=p[0],n=p[1]),c=r.match(K)||[];o=K.exec(n);)l=o[0],h=n.substring(g,o.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),l!==c[v++]&&(d=parseFloat(c[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:d,c:"="===l.charAt(1)?xe(d,l)-d:parseFloat(l)-d,m:u&&u<4?Math.round:0},g=K.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=a,(J.test(n)||f)&&(m.e=0),this._pt=m,m},Jt=function(e,t,r,n,i,s,a,o,c,u){I(n)&&(n=n(i||0,e,s));var l,h=e[t],d="get"!==r?r:I(h)?c?e[t.indexOf("set")||!I(e["get"+t.substr(3)])?t:"get"+t.substr(3)](c):e[t]():h,f=I(h)?c?sr:ir:nr;if(C(n)&&(~n.indexOf("random(")&&(n=mt(n)),"="===n.charAt(1)&&((l=xe(d,n)+(it(d)||0))||0===l)&&(n=l)),!u||d!==n||zt)return isNaN(d*n)||""===n?(!h&&!(t in e)&&te(t,n),Kt.call(this,e,t,d,n,f,o||S.stringFilter,c)):(l=new gr(this._pt,e,t,+d||0,n-(d||0),"boolean"==typeof h?ur:cr,0,f),c&&(l.fp=c),a&&l.modifier(a,this,e),this._pt=l)},Xt=function(e,t,r,n,i,s){var a,o,c,u;if(he[e]&&!1!==(a=new he[e]).init(i,a.rawVars?t[e]:function(e,t,r,n,i){if(I(e)&&(e=Zt(e,i,t,r,n)),!L(e)||e.style&&e.nodeType||$(e)||V(e))return C(e)?Zt(e,i,t,r,n):e;var s,a={};for(s in e)a[s]=Zt(e[s],i,t,r,n);return a}(t[e],n,i,s,r),r,n,s)&&(r._pt=o=new gr(r._pt,i,e,0,1,a.render,a,0,a.priority),r!==m))for(c=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)c[a._props[u]]=o;return a},Gt=function e(t,r,n){var i,s,c,l,h,d,f,p,m,g,v,y,_,b=t.vars,w=b.ease,x=b.startAt,S=b.immediateRender,T=b.lazy,P=b.onUpdate,A=b.runBackwards,k=b.yoyoEase,j=b.keyframes,F=b.autoRevert,C=t._dur,I=t._startAt,M=t._targets,N=t.parent,L=N&&"nested"===N.data?N.vars.targets:M,H="auto"===t._overwrite&&!a,U=t.timeline,V=b.easeReverse||k;if(U&&(!j||!w)&&(w="none"),t._ease=Dt(w,O.ease),t._rEase=V&&(Dt(V)||t._ease),t._from=!U&&!!b.runBackwards,t._from&&(t.ratio=1),!U||j&&!b.stagger){if(y=(p=M[0]?ve(M[0]).harness:0)&&b[p.prop],i=Fe(b,ce),I&&(I._zTime<0&&I.progress(1),r<0&&A&&S&&!F?I.render(-1,!0):I.revert(A&&C?ae:se),I._lazy=0),x){if(Ne(t._startAt=rr.set(M,Ae({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:!I&&D(T),startAt:null,delay:0,onUpdate:P&&function(){return yt(t,"onUpdate")},stagger:0},x))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(o||!S&&!F)&&t._startAt.revert(ae),S&&C&&r<=0&&n<=0)return void(r&&(t._zTime=r))}else if(A&&C&&!I)if(r&&(S=!1),c=Ae({overwrite:!1,data:"isFromStart",lazy:S&&!I&&D(T),immediateRender:S,stagger:0,parent:N},i),y&&(c[p.prop]=y),Ne(t._startAt=rr.set(M,c)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(o?t._startAt.revert(ae):t._startAt.render(-1,!0)),t._zTime=r,S){if(!r)return}else e(t._startAt,R,R);for(t._pt=t._ptCache=0,T=C&&D(T)||T&&!C,s=0;s<M.length;s++){if(f=(h=M[s])._gsap||ge(M)[s]._gsap,t._ptLookup[s]=g={},le[f.id]&&ue.length&&Oe(),v=L===M?s:L.indexOf(h),p&&!1!==(m=new p).init(h,y||i,t,v,L)&&(t._pt=l=new gr(t._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(e){g[e]=l}),m.priority&&(d=1)),!p||y)for(c in i)he[c]&&(m=Xt(c,i,t,v,h,L))?m.priority&&(d=1):g[c]=l=Jt.call(t,h,c,"get",i[c],v,L,0,b.stringFilter);t._op&&t._op[s]&&t.kill(h,t._op[s]),H&&t._pt&&(Qt=t,u.killTweensOf(h,g,t.globalTime(r)),_=!t.parent,Qt=0),t._pt&&T&&(le[f.id]=1)}d&&mr(t),t._onInit&&t._onInit(t)}t._onUpdate=P,t._initted=(!t._op||t._pt)&&!_,j&&r<=0&&U.render(E,!0,!0)},Yt=function(e,t,r,n){var i,s,a=t.ease||n||"power1.inOut";if($(t))s=r[e]||(r[e]=[]),t.forEach(function(e,r){return s.push({t:r/(t.length-1)*100,v:e,e:a})});else for(i in t)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(e),v:t[i],e:a})},Zt=function(e,t,r,n,i){return I(e)?e.call(t,r,n,i):C(e)&&~e.indexOf("random(")?mt(e):e},er=me+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",tr={};_e(er+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return tr[e]=1});var rr=function(e){function t(t,r,n,s){var o;"number"==typeof r&&(n.duration=r,r=n,n=null);var c,l,h,d,f,p,m,g,v=(o=e.call(this,s?r:Ce(r))||this).vars,y=v.duration,_=v.delay,b=v.immediateRender,w=v.stagger,x=v.overwrite,O=v.keyframes,E=v.defaults,R=v.scrollTrigger,T=r.parent||u,P=($(t)||V(t)?M(t[0]):"length"in r)?[t]:ot(t);if(o._targets=P.length?ge(P):re("GSAP target "+t+" not found. https://gsap.com",!S.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=x,O||w||U(y)||U(_)){var A=(r=o.vars).easeReverse||r.yoyoEase;if((c=o.timeline=new qt({data:"nested",defaults:E||{},targets:T&&"nested"===T.data?T.vars.targets:P})).kill(),c.parent=c._dp=i(o),c._start=0,w||U(y)||U(_)){if(d=P.length,m=w&&lt(w),L(w))for(f in w)~er.indexOf(f)&&(g||(g={}),g[f]=w[f]);for(l=0;l<d;l++)(h=Fe(r,tr)).stagger=0,A&&(h.easeReverse=A),g&&ke(h,g),p=P[l],h.duration=+Zt(y,i(o),l,p,P),h.delay=(+Zt(_,i(o),l,p,P)||0)-o._delay,!w&&1===d&&h.delay&&(o._delay=_=h.delay,o._start+=_,h.delay=0),c.to(p,h,m?m(l,p,P):0),c._ease=Ct.none;c.duration()?y=_=0:o.timeline=0}else if(O){Ce(Ae(c.vars.defaults,{ease:"none"})),c._ease=Dt(O.ease||r.ease||"none");var k,j,F,C=0;if($(O))O.forEach(function(e){return c.to(P,e,">")}),c.duration();else{for(f in h={},O)"ease"===f||"easeEach"===f||Yt(f,O[f],h,O.easeEach);for(f in h)for(k=h[f].sort(function(e,t){return e.t-t.t}),C=0,l=0;l<k.length;l++)(F={ease:(j=k[l]).e,duration:(j.t-(l?k[l-1].t:0))/100*y})[f]=j.v,c.to(P,F,C),C+=F.duration;c.duration()<y&&c.to({},{duration:y-c.duration()})}}y||o.duration(y=c.duration())}else o.timeline=0;return!0!==x||a||(Qt=i(o),u.killTweensOf(P),Qt=0),Qe(T,i(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(b||!y&&!O&&o._start===we(T._time)&&D(b)&&He(i(o))&&"nested"!==T.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-_)||0)),R&&ze(i(o),R),o}s(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,s,a,c,u,l,h,d=this._time,f=this._tDur,p=this._dur,m=e<0,g=e>f-R&&!m?f:e<R?0:e;if(p){if(g!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,h=this.timeline,this._repeat){if(a=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*a+e,t,r);if(n=we(g%a),g===f?(s=this._repeat,n=p):(s=~~(c=we(g/a)))&&s===c?(n=p,s--):n>p&&(n=p),(u=this._yoyo&&1&s)&&(n=p-n),c=Ve(this._tTime,a),n===d&&!r&&this._initted&&s===c)return this._tTime=g,this;s!==c&&this.vars.repeatRefresh&&!u&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(we(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(Ke(this,m?e:n,r,t,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&s!==c))return this;if(p!==this._dur)return this.render(e,t,r)}if(this._rEase){var v=n<d;if(v!==this._inv){var y=v?d:p-d;this._inv=v,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=y?(v?-1:1)/y:0,this._invScale=v?-this.ratio:1-this.ratio,this._invEase=v?this._rEase:this._ease}this.ratio=l=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=l=this._ease(n/p);if(this._from&&(this.ratio=l=1-l),this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&g&&!t&&!c&&(yt(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;h&&h.render(e<0?e:h._dur*h._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&De(this,e,0,r),yt(this,"onUpdate")),this._repeat&&s!==c&&this.vars.onRepeat&&!t&&this.parent&&yt(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&De(this,e,0,!0),(e||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ne(this,1),t||m&&!d||!(g||d||u)||(yt(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,r,n){var i,s,a,c=e.ratio,u=t<0||!t&&(!e._start&&Je(e)&&(e._initted||!Xe(e))||(e._ts<0||e._dp._ts<0)&&!Xe(e))?0:1,l=e._rDelay,h=0;if(l&&e._repeat&&(h=nt(0,e._tDur,t),s=Ve(h,l),e._yoyo&&1&s&&(u=1-u),s!==Ve(e._tTime,l)&&(c=1-u,e.vars.repeatRefresh&&e._initted&&e.invalidate())),u!==c||o||n||e._zTime===R||!t&&e._zTime){if(!e._initted&&Ke(e,t,n,r,h))return;for(a=e._zTime,e._zTime=t||(r?R:0),r||(r=t&&!a),e.ratio=u,e._from&&(u=1-u),e._time=0,e._tTime=h,i=e._pt;i;)i.r(u,i.d),i=i._next;t<0&&De(e,t,0,!0),e._onUpdate&&!r&&yt(e,"onUpdate"),h&&e._repeat&&!r&&e.parent&&yt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===u&&(u&&Ne(e,1),r||o||(yt(e,u?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,i){g||jt.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Gt(this,s),function(e,t,r,n,i,s,a,o){var c,u,l,h,d=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!d)for(d=e._ptCache[t]=[],l=e._ptLookup,h=e._targets.length;h--;){if((c=l[h][t])&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return zt=1,e.vars[t]="+=0",Gt(e,a),zt=0,o?re(t+" not eligible for reset. Try splitting into individual properties"):1;d.push(c)}for(h=d.length;h--;)(c=(u=d[h])._pt||u).s=!n&&0!==n||i?c.s+(n||0)+s*c.c:n,c.c=r-c.s,u.e&&(u.e=be(r)+it(u.e)),u.b&&(u.b=c.s+it(u.b))}(this,e,t,r,n,this._ease(s/this._dur),s,i)?this.resetTo(e,t,r,n,1):(We(this,0),this.parent||Ie(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?_t(this):this.scrollTrigger&&this.scrollTrigger.kill(!!o),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Qt&&!0!==Qt.vars.overwrite)._first||_t(this),this.parent&&r!==this.timeline.totalDuration()&&Ge(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,c,u,l,h=this._targets,d=e?ot(e):h,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0}(h,d))return"all"===t&&(this._pt=0),_t(this);for(n=this._op=this._op||[],"all"!==t&&(C(t)&&(c={},_e(t,function(e){return c[e]=1}),t=c),t=function(e,t){var r,n,i,s,a=e[0]?ve(e[0]).harness:0,o=a&&a.aliases;if(!o)return t;for(n in r=ke({},t),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(h,t)),l=h.length;l--;)if(~d.indexOf(h[l]))for(c in i=f[l],"all"===t?(n[l]=t,a=i,s={}):(s=n[l]=n[l]||{},a=t),a)(u=i&&i[c])&&("kill"in u.d&&!0!==u.d.kill(c)||Me(this,u,"_pt"),delete i[c]),"all"!==s&&(s[c]=1);return this._initted&&!this._pt&&p&&_t(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return tt(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return tt(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return u.killTweensOf(e,t,r)},t}(Wt);Ae(rr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_e("staggerTo,staggerFrom,staggerFromTo",function(e){rr[e]=function(){var t=new qt,r=st.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var nr=function(e,t,r){return e[t]=r},ir=function(e,t,r){return e[t](r)},sr=function(e,t,r,n){return e[t](n.fp,r)},ar=function(e,t,r){return e.setAttribute(t,r)},or=function(e,t){return I(e[t])?ir:N(e[t])&&e.setAttribute?ar:nr},cr=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},ur=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},lr=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round(1e4*(r.s+r.c*e))/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},hr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},dr=function(e,t,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(e,t,r),s=i},fr=function(e){for(var t,r,n=this._pt;n;)r=n._next,n.p===e&&!n.op||n.op===e?Me(this,n,"_pt"):n.dep||(t=1),n=r;return!t},pr=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},mr=function(e){for(var t,r,n,i,s=e._pt;s;){for(t=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=t}e._pt=n},gr=function(){function e(e,t,r,n,i,s,a,o,c){this.t=t,this.s=n,this.c=i,this.p=r,this.r=s||cr,this.d=a||this,this.set=o||nr,this.pr=c||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=pr,this.m=e,this.mt=r,this.tween=t},e}();_e(me+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return ce[e]=1}),Y.TweenMax=Y.TweenLite=rr,Y.TimelineLite=Y.TimelineMax=qt,u=new qt({sortChildren:!1,defaults:O,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),S.stringFilter=kt;var vr=[],yr={},_r=[],br=0,wr=0,xr=function(e){return(yr[e]||_r).map(function(e){return e()})},Sr=function(){var e=Date.now(),t=[];e-br>2&&(xr("matchMediaInit"),vr.forEach(function(e){var r,n,i,s,a=e.queries,o=e.conditions;for(n in a)(r=l.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(e.revert(),i&&t.push(e))}),xr("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),br=e,xr("matchMedia"))},Or=function(){function e(e,t){this.selector=t&&ct(t),this.data=[],this._r=[],this.isReverted=!1,this.id=wr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){I(e)&&(r=t,t=e,e=I);var n=this,i=function(){var e,i=c,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ct(r)),c=n,e=t.apply(n,arguments),I(e)&&n._r.push(e),c=i,n.selector=s,n.isReverted=!1,e};return n.last=i,e===I?i(n,function(e){return n.add(null,e)}):e?n[e]=i:i},t.ignore=function(e){var t=c;c=null,e(this),c=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof e?t.push.apply(t,r.getTweens()):r instanceof rr&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e?function(){for(var t,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(t=r.data[i]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(e){return n.splice(n.indexOf(e),1)}));for(n.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),i=r.data.length;i--;)(t=r.data[i])instanceof qt?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof rr)&&t.revert&&t.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var n=vr.length;n--;)vr[n].id===this.id&&vr.splice(n,1)},t.revert=function(e){this.kill(e||{})},e}(),Er=function(){function e(e){this.contexts=[],this.scope=e,c&&c.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){L(e)||(e={matches:e});var n,i,s,a=new Or(0,r||this.scope),o=a.conditions={};for(i in c&&!a.selector&&(a.selector=c.selector),this.contexts.push(a),t=a.add("onMatch",t),a.queries=e,e)"all"===i?s=1:(n=l.matchMedia(e[i]))&&(vr.indexOf(a)<0&&vr.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Sr):n.addEventListener("change",Sr));return s&&t(a,function(e){return a.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Rr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return wt(e)})},timeline:function(e){return new qt(e)},getTweensOf:function(e,t){return u.getTweensOf(e,t)},getProperty:function(e,t,r,n){C(e)&&(e=ot(e)[0]);var i=ve(e||{}).get,s=r?Pe:Te;return"native"===r&&(r=""),e?t?s((he[t]&&he[t].get||i)(e,t,r,n)):function(t,r,n){return s((he[t]&&he[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=ot(e)).length>1){var n=e.map(function(e){return Ar.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var s=he[t],a=ve(e),o=a.harness&&(a.harness.aliases||{})[t]||t,c=s?function(t){var n=new s;m._pt=0,n.init(e,r?t+r:t,m,0,[e]),n.render(1,n),m._pt&&hr(1,m)}:a.set(e,o);return s?c:function(t){return c(e,o,r?t+r:t,a,1)}},quickTo:function(e,t,r){var n,i=Ar.to(e,Ae(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(e,r,n){return i.resetTo(t,e,r,n)};return s.tween=i,s},isTweening:function(e){return u.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Dt(e.ease,O.ease)),je(O,e||{})},config:function(e){return je(S,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,s=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!he[e]&&!Y[e]&&re(t+" effect requires "+e+" plugin.")}),de[t]=function(e,t,n){return r(ot(e),Ae(t||{},i),n)},s&&(qt.prototype[t]=function(e,r,n){return this.add(de[t](e,L(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){Ct[e]=Dt(t)},parseEase:function(e,t){return arguments.length?Dt(e,t):Ct},getById:function(e){return u.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new qt(e);for(i.smoothChildTiming=D(e.smoothChildTiming),u.remove(i),i._dp=0,i._time=i._tTime=u._time,r=u._first;r;)n=r._next,!t&&!r._dur&&r instanceof rr&&r.vars.onComplete===r._targets[0]||Qe(i,r,r._start-r._delay),r=n;return Qe(u,i,0),i},context:function(e,t){return e?new Or(e,t):c},matchMedia:function(e){return new Er(e)},matchMediaRefresh:function(){return vr.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||Sr()},addEventListener:function(e,t){var r=yr[e]||(yr[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=yr[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var i=r-t;return $(t)?pt(t,e(0,t.length),r):rt(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,s=2*i;return $(t)?pt(t,e(0,t.length-1),r):rt(n,function(e){return t+((e=(s+(e-t)%s)%s||0)>i?s-e:e)})},distribute:lt,random:ft,snap:dt,normalize:function(e,t,r){return gt(e,t,0,1,r)},getUnit:it,clamp:function(e,t,r){return rt(r,function(r){return nt(e,t,r)})},splitColor:Et,toArray:ot,selector:ct,mapRange:gt,pipe:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||it(r))}},interpolate:function e(t,r,n,i){var s=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!s){var a,o,c,u,l,h=C(t),d={};if(!0===n&&(i=1)&&(n=null),h)t={p:t},r={p:r};else if($(t)&&!$(r)){for(c=[],u=t.length,l=u-2,o=1;o<u;o++)c.push(e(t[o-1],t[o]));u--,s=function(e){e*=u;var t=Math.min(l,~~e);return c[t](e-t)},n=r}else i||(t=ke($(t)?[]:{},t));if(!c){for(a in r)Jt.call(d,t,a,"get",r[a]);s=function(e){return hr(e,d)||(h?t.p:t)}}}return rt(n,s)},shuffle:ut},install:ee,effects:de,ticker:jt,updateRoot:qt.updateRoot,plugins:he,globalTimeline:u,core:{PropTween:gr,globals:ne,Tween:rr,Timeline:qt,Animation:Wt,getCache:ve,_removeLinkedListItem:Me,reverting:function(){return o},context:function(e){return e&&c&&(c.data.push(e),e._ctx=c),c},suppressOverwrites:function(e){return a=e}}};_e("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Rr[e]=rr[e]}),jt.add(qt.updateRoot),m=Rr.to({},{duration:0});var Tr=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},Pr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(C(r)&&(n={},_e(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}!function(e,t){var r,n,i,s=e._targets;for(r in t)for(n=s.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Tr(i,r)),i&&i.modifier&&i.modifier(t[r],e,s[n],r))}(e,r)}}}},Ar=Rr.registerPlugin({name:"attr",init:function(e,t,r,n,i){var s,a,o;for(s in this.tween=r,t)o=e.getAttribute(s)||"",(a=this.add(e,"setAttribute",(o||0)+"",t[s],n,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)o?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Pr("roundProps",ht),Pr("modifiers"),Pr("snap",dt))||Rr;rr.version=qt.version=Ar.version="3.15.0",f=1,H()&&Ft(),Ct.Power0,Ct.Power1,Ct.Power2,Ct.Power3,Ct.Power4,Ct.Linear,Ct.Quad,Ct.Cubic,Ct.Quart,Ct.Quint,Ct.Strong,Ct.Elastic,Ct.Back,Ct.SteppedEase,Ct.Bounce,Ct.Sine,Ct.Expo,Ct.Circ;var kr,jr,Fr,Cr,Ir,Mr,Nr,Lr,Dr={},Hr=180/Math.PI,Ur=Math.PI/180,Vr=Math.atan2,$r=/([A-Z])/g,Br=/(left|right|width|margin|padding|x)/i,Wr=/[\s,\(]\S/,qr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qr=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},zr=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Kr=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Jr=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Xr=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Gr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Yr=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Zr=function(e,t,r){return e.style[t]=r},en=function(e,t,r){return e.style.setProperty(t,r)},tn=function(e,t,r){return e._gsap[t]=r},rn=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},nn=function(e,t,r,n,i){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},sn=function(e,t,r,n,i){var s=e._gsap;s[t]=r,s.renderTransform(i,s)},an="transform",on=an+"Origin",cn=function e(t,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(t in Dr&&s){if(this.tfm=this.tfm||{},"transform"===t)return qr.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=qr[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=Rn(i,e)}):this.tfm[t]=a.x?a[t]:Rn(i,t),t===on&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(an)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(on,r,"")),t=an}(s||r)&&this.props.push(t,r,s[t])},un=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ln=function(){var e,t,r=this.props,n=this.target,i=n.style,s=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace($r,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)s[t]=this.tfm[t];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=Nr())&&e.isStart||i[an]||(un(i),s.zOrigin&&i[on]&&(i[on]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},hn=function(e,t){var r={target:e,props:[],revert:ln,save:cn};return e._gsap||Ar.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},dn=function(e,t){var r=jr.createElementNS?jr.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):jr.createElement(e);return r&&r.style?r:jr.createElement(e)},fn=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace($r,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,mn(r)||r,1)||""},pn="O,Moz,ms,Ms,Webkit".split(","),mn=function(e,t,r){var n=(t||Ir).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(pn[i]+e in n););return i<0?null:(3===i?"ms":i>=0?pn[i]:"")+e},gn=function(){"undefined"!=typeof window&&window.document&&(kr=window,jr=kr.document,Fr=jr.documentElement,Ir=dn("div")||{style:{}},dn("div"),an=mn(an),on=an+"Origin",Ir.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Lr=!!mn("perspective"),Nr=Ar.core.reverting,Cr=1)},vn=function(e){var t,r=e.ownerSVGElement,n=dn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",n.appendChild(i),Fr.appendChild(n);try{t=i.getBBox()}catch(e){}return n.removeChild(i),Fr.removeChild(n),t},yn=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},_n=function(e){var t,r;try{t=e.getBBox()}catch(n){t=vn(e),r=1}return t&&(t.width||t.height)||r||(t=vn(e)),!t||t.width||t.x||t.y?t:{x:+yn(e,["x","cx","x1"])||0,y:+yn(e,["y","cy","y1"])||0,width:0,height:0}},bn=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!_n(e))},wn=function(e,t){if(t){var r,n=e.style;t in Dr&&t!==on&&(t=an),n.removeProperty?("ms"!==(r=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty("--"===r?t:t.replace($r,"-$1").toLowerCase())):n.removeAttribute(t)}},xn=function(e,t,r,n,i,s){var a=new gr(e._pt,t,r,0,1,s?Yr:Gr);return e._pt=a,a.b=n,a.e=i,e._props.push(r),a},Sn={deg:1,rad:1,turn:1},On={grid:1,flex:1},En=function e(t,r,n,i){var s,a,o,c,u=parseFloat(n)||0,l=(n+"").trim().substr((u+"").length)||"px",h=Ir.style,d=Br.test(r),f="svg"===t.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===l||!u||Sn[i]||Sn[l])return u;if("px"!==l&&!g&&(u=e(t,r,n,"px")),c=t.getCTM&&bn(t),(v||"%"===l)&&(Dr[r]||~r.indexOf("adius")))return s=c?t.getBBox()[d?"width":"height"]:t[p],be(v?u/s*m:u/100*s);if(h[d?"width":"height"]=m+(g?l:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&t.appendChild&&!f?t:t.parentNode,c&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==jr&&a.appendChild||(a=jr.body),(o=a._gsap)&&v&&o.width&&d&&o.time===jt.time&&!o.uncache)return be(u/o.width*m);if(!v||"height"!==r&&"width"!==r)(v||"%"===l)&&!On[fn(a,"display")]&&(h.position=fn(t,"position")),a===t&&(h.position="static"),a.appendChild(Ir),s=Ir[p],a.removeChild(Ir),h.position="absolute";else{var y=t.style[r];t.style[r]=m+i,s=t[p],y?t.style[r]=y:wn(t,r)}return d&&v&&((o=ve(a)).time=jt.time,o.width=a[p]),be(g?s*u/m:s&&u?m/s*u:0)},Rn=function(e,t,r,n){var i;return Cr||gn(),t in qr&&"transform"!==t&&~(t=qr[t]).indexOf(",")&&(t=t.split(",")[0]),Dr[t]&&"transform"!==t?(i=Dn(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:Hn(fn(e,on))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=jn[t]&&jn[t](e,t,r)||fn(e,t)||ye(e,t)||("opacity"===t?1:0)),r&&!~(i+"").trim().indexOf(" ")?En(e,t,i,r)+r:i},Tn=function(e,t,r,n){if(!r||"none"===r){var i=mn(t,e,1),s=i&&fn(e,i,1);s&&s!==r?(t=i,r=s):"borderColor"===t&&(r=fn(e,"borderTopColor"))}var a,o,c,u,l,h,d,f,p,m,g,v=new gr(this._pt,e.style,t,0,1,lr),y=0,_=0;if(v.b=r,v.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=fn(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=e.style[t],e.style[t]=n,n=fn(e,t)||n,h?e.style[t]=h:wn(e,t)),kt(a=[r,n]),n=a[1],c=(r=a[0]).match(z)||[],(n.match(z)||[]).length){for(;o=z.exec(n);)d=o[0],p=n.substring(y,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),d!==(h=c[_++]||"")&&(u=parseFloat(h)||0,g=h.substr((u+"").length),"="===d.charAt(1)&&(d=xe(u,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=z.lastIndex-m.length,m||(m=m||S.units[t]||g,y===n.length&&(n+=m,v.e+=m)),g!==m&&(u=En(e,t,h,m)||0),v._pt={_next:v._pt,p:p||1===_?p:",",s:u,c:f-u,m:l&&l<4||"zIndex"===t?Math.round:0});v.c=y<n.length?n.substring(y,n.length):""}else v.r="display"===t&&"none"===n?Yr:Gr;return J.test(n)&&(v.e=0),this._pt=v,v},Pn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},An=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(e=r,r=n,n=e),t[0]=Pn[r]||r,t[1]=Pn[n]||n,t.join(" ")},kn=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,s=t.t,a=s.style,o=t.u,c=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Dr[r]&&(n=1,r="transformOrigin"===r?on:an),wn(s,r);n&&(wn(s,an),c&&(c.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Dn(s,1),c.uncache=1,un(a)))}},jn={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var s=e._pt=new gr(e._pt,t,r,0,0,kn);return s.u=n,s.pr=-10,s.tween=i,e._props.push(r),1}}},Fn=[1,0,0,1,0,0],Cn={},In=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Mn=function(e){var t=fn(e,an);return In(t)?Fn:t.substr(7).match(Q).map(be)},Nn=function(e,t){var r,n,i,s,a=e._gsap||ve(e),o=e.style,c=Mn(e);return a.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(c=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Fn:c:(c!==Fn||e.offsetParent||e===Fr||a.svg||(i=o.display,o.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(s=1,n=e.nextElementSibling,Fr.appendChild(e)),c=Mn(e),i?o.display=i:wn(e,"display"),s&&(n?r.insertBefore(e,n):r?r.appendChild(e):Fr.removeChild(e))),t&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},Ln=function(e,t,r,n,i,s){var a,o,c,u=e._gsap,l=i||Nn(e,!0),h=u.xOrigin||0,d=u.yOrigin||0,f=u.xOffset||0,p=u.yOffset||0,m=l[0],g=l[1],v=l[2],y=l[3],_=l[4],b=l[5],w=t.split(" "),x=parseFloat(w[0])||0,S=parseFloat(w[1])||0;r?l!==Fn&&(o=m*y-g*v)&&(c=x*(-g/o)+S*(m/o)-(m*b-g*_)/o,x=x*(y/o)+S*(-v/o)+(v*b-y*_)/o,S=c):(x=(a=_n(e)).x+(~w[0].indexOf("%")?x/100*a.width:x),S=a.y+(~(w[1]||w[0]).indexOf("%")?S/100*a.height:S)),n||!1!==n&&u.smooth?(_=x-h,b=S-d,u.xOffset=f+(_*m+b*v)-_,u.yOffset=p+(_*g+b*y)-b):u.xOffset=u.yOffset=0,u.xOrigin=x,u.yOrigin=S,u.smooth=!!n,u.origin=t,u.originIsAbsolute=!!r,e.style[on]="0px 0px",s&&(xn(s,u,"xOrigin",h,x),xn(s,u,"yOrigin",d,S),xn(s,u,"xOffset",f,u.xOffset),xn(s,u,"yOffset",p,u.yOffset)),e.setAttribute("data-svg-origin",x+" "+S)},Dn=function(e,t){var r=e._gsap||new Bt(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,s,a,o,c,u,l,h,d,f,p,m,g,v,y,_,b,w,x,O,E,R,T,P,A,k,j,F,C,I,M,N=e.style,L=r.scaleX<0,D="px",H="deg",U=getComputedStyle(e),V=fn(e,on)||"0";return n=i=s=c=u=l=h=d=f=0,a=o=1,r.svg=!(!e.getCTM||!bn(e)),U.translate&&("none"===U.translate&&"none"===U.scale&&"none"===U.rotate||(N[an]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[an]?U[an]:"")),N.scale=N.rotate=N.translate="none"),g=Nn(e,r.svg),r.svg&&(r.uncache?(P=e.getBBox(),V=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",T=""):T=!t&&e.getAttribute("data-svg-origin"),Ln(e,T||V,!!T||r.originIsAbsolute,!1!==r.smooth,g)),p=r.xOrigin||0,m=r.yOrigin||0,g!==Fn&&(b=g[0],w=g[1],x=g[2],O=g[3],n=E=g[4],i=R=g[5],6===g.length?(a=Math.sqrt(b*b+w*w),o=Math.sqrt(O*O+x*x),c=b||w?Vr(w,b)*Hr:0,(h=x||O?Vr(x,O)*Hr+c:0)&&(o*=Math.abs(Math.cos(h*Ur))),r.svg&&(n-=p-(p*b+m*x),i-=m-(p*w+m*O))):(M=g[6],C=g[7],k=g[8],j=g[9],F=g[10],I=g[11],n=g[12],i=g[13],s=g[14],u=(v=Vr(M,F))*Hr,v&&(T=E*(y=Math.cos(-v))+k*(_=Math.sin(-v)),P=R*y+j*_,A=M*y+F*_,k=E*-_+k*y,j=R*-_+j*y,F=M*-_+F*y,I=C*-_+I*y,E=T,R=P,M=A),l=(v=Vr(-x,F))*Hr,v&&(y=Math.cos(-v),I=O*(_=Math.sin(-v))+I*y,b=T=b*y-k*_,w=P=w*y-j*_,x=A=x*y-F*_),c=(v=Vr(w,b))*Hr,v&&(T=b*(y=Math.cos(v))+w*(_=Math.sin(v)),P=E*y+R*_,w=w*y-b*_,R=R*y-E*_,b=T,E=P),u&&Math.abs(u)+Math.abs(c)>359.9&&(u=c=0,l=180-l),a=be(Math.sqrt(b*b+w*w+x*x)),o=be(Math.sqrt(R*R+M*M)),v=Vr(E,R),h=Math.abs(v)>2e-4?v*Hr:0,f=I?1/(I<0?-I:I):0),r.svg&&(T=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!In(fn(e,an)),T&&e.setAttribute("transform",T))),Math.abs(h)>90&&Math.abs(h)<270&&(L?(a*=-1,h+=c<=0?180:-180,c+=c<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+D,r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+D,r.z=s+D,r.scaleX=be(a),r.scaleY=be(o),r.rotation=be(c)+H,r.rotationX=be(u)+H,r.rotationY=be(l)+H,r.skewX=h+H,r.skewY=d+H,r.transformPerspective=f+D,(r.zOrigin=parseFloat(V.split(" ")[2])||!t&&r.zOrigin||0)&&(N[on]=Hn(V)),r.xOffset=r.yOffset=0,r.force3D=S.force3D,r.renderTransform=r.svg?Qn:Lr?qn:Vn,r.uncache=0,r},Hn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Un=function(e,t,r){var n=it(t);return be(parseFloat(t)+parseFloat(En(e,"x",r+"px",n)))+n},Vn=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,qn(e,t)},$n="0deg",Bn="0px",Wn=") ",qn=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,c=r.rotation,u=r.rotationY,l=r.rotationX,h=r.skewX,d=r.skewY,f=r.scaleX,p=r.scaleY,m=r.transformPerspective,g=r.force3D,v=r.target,y=r.zOrigin,_="",b="auto"===g&&e&&1!==e||!0===g;if(y&&(l!==$n||u!==$n)){var w,x=parseFloat(u)*Ur,S=Math.sin(x),O=Math.cos(x);x=parseFloat(l)*Ur,w=Math.cos(x),s=Un(v,s,S*w*-y),a=Un(v,a,-Math.sin(x)*-y),o=Un(v,o,O*w*-y+y)}m!==Bn&&(_+="perspective("+m+Wn),(n||i)&&(_+="translate("+n+"%, "+i+"%) "),(b||s!==Bn||a!==Bn||o!==Bn)&&(_+=o!==Bn||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Wn),c!==$n&&(_+="rotate("+c+Wn),u!==$n&&(_+="rotateY("+u+Wn),l!==$n&&(_+="rotateX("+l+Wn),h===$n&&d===$n||(_+="skew("+h+", "+d+Wn),1===f&&1===p||(_+="scale("+f+", "+p+Wn),v.style[an]=_||"translate(0, 0)"},Qn=function(e,t){var r,n,i,s,a,o=t||this,c=o.xPercent,u=o.yPercent,l=o.x,h=o.y,d=o.rotation,f=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,_=o.yOrigin,b=o.xOffset,w=o.yOffset,x=o.forceCSS,S=parseFloat(l),O=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=Ur,f*=Ur,r=Math.cos(d)*m,n=Math.sin(d)*m,i=Math.sin(d-f)*-g,s=Math.cos(d-f)*g,f&&(p*=Ur,a=Math.tan(f-p),i*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),n*=a)),r=be(r),n=be(n),i=be(i),s=be(s)):(r=m,s=g,n=i=0),(S&&!~(l+"").indexOf("px")||O&&!~(h+"").indexOf("px"))&&(S=En(v,"x",l,"px"),O=En(v,"y",h,"px")),(y||_||b||w)&&(S=be(S+y-(y*r+_*i)+b),O=be(O+_-(y*n+_*s)+w)),(c||u)&&(a=v.getBBox(),S=be(S+c/100*a.width),O=be(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+S+","+O+")",v.setAttribute("transform",a),x&&(v.style[an]=a)},zn=function(e,t,r,n,i){var s,a,o=360,c=C(i),u=parseFloat(i)*(c&&~i.indexOf("rad")?Hr:1)-n,l=n+u+"deg";return c&&("short"===(s=i.split("_")[1])&&(u%=o)!==u%180&&(u+=u<0?o:-360),"cw"===s&&u<0?u=(u+36e9)%o-~~(u/o)*o:"ccw"===s&&u>0&&(u=(u-36e9)%o-~~(u/o)*o)),e._pt=a=new gr(e._pt,t,r,n,u,zr),a.e=l,a.u="deg",e._props.push(r),a},Kn=function(e,t){for(var r in t)e[r]=t[r];return e},Jn=function(e,t,r){var n,i,s,a,o,c,u,l=Kn({},r._gsap),h=r.style;for(i in l.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[an]=t,n=Dn(r,1),wn(r,an),r.setAttribute("transform",s)):(s=getComputedStyle(r)[an],h[an]=t,n=Dn(r,1),h[an]=s),Dr)(s=l[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=it(s)!==(u=it(a))?En(r,i,s,u):parseFloat(s),c=parseFloat(a),e._pt=new gr(e._pt,n,i,o,c-o,Qr),e._pt.u=u||0,e._props.push(i));Kn(n,l)};_e("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",s="Left",a=(t<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map(function(r){return t<2?e+r:"border"+r+e});jn[t>1?"border"+e:e]=function(e,t,r,n,i){var s,o;if(arguments.length<4)return s=a.map(function(t){return Rn(e,t,r)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach(function(e,t){return o[e]=s[t]=s[t]||s[(t-1)/2|0]}),e.init(t,o,i)}});var Xn,Gn,Yn={name:"css",register:gn,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var s,a,o,c,u,l,h,d,f,p,m,g,v,y,_,b,w,x=this._props,O=e.style,E=r.vars.startAt;for(h in Cr||gn(),this.styles=this.styles||hn(e),b=this.styles.props,this.tween=r,t)if("autoRound"!==h&&(a=t[h],!he[h]||!Xt(h,t,r,n,e,i)))if(u=typeof a,l=jn[h],"function"===u&&(u=typeof(a=a.call(r,n,e,i))),"string"===u&&~a.indexOf("random(")&&(a=mt(a)),l)l(this,e,h,a,r)&&(_=1);else if("--"===h.substr(0,2))s=(getComputedStyle(e).getPropertyValue(h)+"").trim(),a+="",Pt.lastIndex=0,Pt.test(s)||(d=it(s),(f=it(a))?d!==f&&(s=En(e,h,s,f)+f):d&&(a+=d)),this.add(O,"setProperty",s,a,n,i,0,0,h),x.push(h),b.push(h,0,O[h]);else if("undefined"!==u){if(E&&h in E?(s="function"==typeof E[h]?E[h].call(r,n,e,i):E[h],C(s)&&~s.indexOf("random(")&&(s=mt(s)),it(s+"")||"auto"===s||(s+=S.units[h]||it(Rn(e,h))||""),"="===(s+"").charAt(1)&&(s=Rn(e,h))):s=Rn(e,h),c=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in qr&&("autoAlpha"===h&&(1===c&&"hidden"===Rn(e,"visibility")&&o&&(c=0),b.push("visibility",0,O.visibility),xn(this,O,"visibility",c?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=qr[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Dr){if(this.styles.save(h),w=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=fn(e,a.substring(4,a.indexOf(")")))).substring(0,5)){var R=e.style.perspective;e.style.perspective=a,a=fn(e,"perspective"),R?e.style.perspective=R:wn(e,"perspective")}o=parseFloat(a)}if(g||((v=e._gsap).renderTransform&&!t.parseTransform||Dn(e,t.parseTransform),y=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new gr(this._pt,O,an,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new gr(this._pt,v,"scaleY",v.scaleY,(p?xe(v.scaleY,p+o):o)-v.scaleY||0,Qr),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(on,0,O[on]),a=An(a),v.svg?Ln(e,a,0,y,0,this):((f=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&xn(this,v,"zOrigin",v.zOrigin,f),xn(this,O,h,Hn(s),Hn(a)));continue}if("svgOrigin"===h){Ln(e,a,1,y,0,this);continue}if(h in Cn){zn(this,v,h,c,p?xe(c,p+a):a);continue}if("smoothOrigin"===h){xn(this,v,"smooth",v.smooth,a);continue}if("force3D"===h){v[h]=a;continue}if("transform"===h){Jn(this,a,e);continue}}}else h in O||(h=mn(h)||h);if(m||(o||0===o)&&(c||0===c)&&!Wr.test(a)&&h in O)o||(o=0),(d=(s+"").substr((c+"").length))!==(f=it(a)||(h in S.units?S.units[h]:d))&&(c=En(e,h,s,f)),this._pt=new gr(this._pt,m?v:O,h,c,(p?xe(c,p+o):o)-c,m||"px"!==f&&"zIndex"!==h||!1===t.autoRound?Qr:Xr),this._pt.u=f||0,m&&w!==a?(this._pt.b=s,this._pt.e=w,this._pt.r=Jr):d!==f&&"%"!==f&&(this._pt.b=s,this._pt.r=Kr);else if(h in O)Tn.call(this,e,h,s,p?p+a:a);else if(h in e)this.add(e,h,s||e[h],p?p+a:a,n,i);else if("parseTransform"!==h){te(h,a);continue}m||(h in O?b.push(h,0,O[h]):"function"==typeof e[h]?b.push(h,2,e[h]()):b.push(h,1,s||e[h])),x.push(h)}_&&mr(this)},render:function(e,t){if(t.tween._time||!Nr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Rn,aliases:qr,getSetter:function(e,t,r){var n=qr[t];return n&&n.indexOf(",")<0&&(t=n),t in Dr&&t!==on&&(e._gsap.x||Rn(e,"x"))?r&&Mr===r?"scale"===t?rn:tn:(Mr=r||{})&&("scale"===t?nn:sn):e.style&&!N(e.style[t])?Zr:~t.indexOf("-")?en:or(e,t)},core:{_removeProperty:wn,_getMatrix:Nn}};Ar.utils.checkPrefix=mn,Ar.core.getStyleSaver=hn,Gn=_e("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Xn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Dr[e]=1}
2),_e(Xn,function(e){S.units[e]="deg",Cn[e]=1}),qr[Gn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Xn,_e("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");qr[t[1]]=Gn[t[0]]}),_e("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){S.units[e]="px"}),Ar.registerPlugin(Yn);var Zn=Ar.registerPlugin(Yn)||Ar;Zn.core.Tween;let ei,ti,ri,ni,ii,si,ai=()=>"undefined"!=typeof window,oi=()=>ei||ai()&&(ei=window.gsap)&&ei.registerPlugin&&ei,ci=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,ui={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},li=e=>Math.round(1e4*e)/1e4,hi=e=>parseFloat(e||0),di=(e,t)=>hi(e.getAttribute(t)),fi=Math.sqrt,pi=(e,t,r,n,i,s)=>fi(((hi(r)-hi(e))*i)**2+((hi(n)-hi(t))*s)**2),mi=e=>console.warn(e),gi=e=>"non-scaling-stroke"===e.getAttribute("vector-effect"),vi=e=>{if(!(e=ti(e)[0]))return 0;let t,r,n,i,s,a,o,c=e.tagName.toLowerCase(),u=e.style,l=1,h=1;gi(e)&&(h=e.getScreenCTM(),l=fi(h.a*h.a+h.b*h.b),h=fi(h.d*h.d+h.c*h.c));try{r=e.getBBox()}catch(e){mi("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}let{x:d,y:f,width:p,height:m}=r||{x:0,y:0,width:0,height:0};if(r&&(p||m)||!ui[c]||(p=di(e,ui[c][0]),m=di(e,ui[c][1]),"rect"!==c&&"line"!==c&&(p*=2,m*=2),"line"===c&&(d=di(e,"x1"),f=di(e,"y1"),p=Math.abs(p-d),m=Math.abs(m-f))),"path"===c)i=u.strokeDasharray,u.strokeDasharray="none",t=e.getTotalLength()||0,l!==h&&mi("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(l+h)/2,u.strokeDasharray=i;else if("rect"===c)t=2*p*l+2*m*h;else if("line"===c)t=pi(d,f,d+p,f+m,l,h);else if("polyline"===c||"polygon"===c)for(n=e.getAttribute("points").match(ci)||[],"polygon"===c&&n.push(n[0],n[1]),t=0,s=2;s<n.length;s+=2)t+=pi(n[s-2],n[s-1],n[s],n[s+1],l,h)||0;else"circle"!==c&&"ellipse"!==c||(a=p/2*l,o=m/2*h,t=Math.PI*(3*(a+o)-fi((3*a+o)*(a+3*o))));return t||0},yi=(e,t)=>{if(!(e=ti(e)[0]))return[0,0];t||(t=vi(e)+1);let r=ni.getComputedStyle(e),n=r.strokeDasharray||"",i=hi(r.strokeDashoffset),s=n.indexOf(",");return s<0&&(s=n.indexOf(" ")),n=s<0?t:hi(n.substr(0,s))||1e-5,n>t&&(n=t),[Math.max(0,-i),Math.max(0,n-i)]},_i=()=>{ai()&&(ri=document,ni=window,si=ei=oi(),ti=ei.utils.toArray,ii=-1!==((ni.navigator||{}).userAgent||"").indexOf("Edge"))};const bi={version:"3.4.2",name:"drawSVG",register(e){ei=e,_i()},init(e,t,r,n,i){if(!e.getBBox)return!1;si||_i();let s,a,o,c,u=vi(e)+1;return this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",s=yi(e,u),a=((e,t,r)=>{let n,i,s=e.indexOf(" ");return s<0?(n=void 0!==r?r+"":e,i=e):(n=e.substr(0,s),i=e.substr(s+1)),n=~n.indexOf("%")?hi(n)/100*t:hi(n),i=~i.indexOf("%")?hi(i)/100*t:hi(i),n>i?[i,n]:[n,i]})(t,u,s[0]),this._length=li(u+10),0===s[0]&&0===a[0]?(o=Math.max(1e-5,a[1]-u),this._dash=li(u+o),this._offset=li(u-s[1]+o),this._offsetPT=this.add(this,"_offset",this._offset,li(u-a[1]+o))):(this._dash=li(s[1]-s[0])||1e-6,this._offset=li(-s[0]),this._dashPT=this.add(this,"_dash",this._dash,li(a[1]-a[0])||1e-5),this._offsetPT=this.add(this,"_offset",this._offset,li(-a[0]))),ii&&(c=ni.getComputedStyle(e),c.strokeLinecap!==c.strokeLinejoin&&(a=hi(c.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",a,a+.01))),this._live=gi(e)||~(t+"").indexOf("live"),this._props.push("drawSVG"),1},render(e,t){let r,n,i,s,a=t._pt,o=t._style;if(a){for(t._live&&(r=vi(t._target)+11,r!==t._length&&(n=r/t._length,t._length=r,t._offsetPT.s*=n,t._offsetPT.c*=n,t._dashPT?(t._dashPT.s*=n,t._dashPT.c*=n):t._dash*=n));a;)a.r(e,a.d),a=a._next;i=t._dash,s=t._offset,r=t._length,o.strokeDashoffset=t._offset,1!==e&&e?o.strokeDasharray=i+"px,"+r+"px":(i-s<.001&&r-i<=10&&(o.strokeDashoffset=s+1),o.strokeDasharray=s<.001&&r-i<=10?"none":s===i?"0px, 999999px":i+"px,"+r+"px")}},getLength:vi,getPosition:yi};oi()&&ei.registerPlugin(bi),Zn.registerPlugin(bi);class wi extends n.xI{initialize(){Zn.set(this.progressTarget,{drawSVG:"0% 33%"});const e=this.screensTarget.querySelectorAll("img"),t=Zn.timeline({paused:!0}).addLabel("0").to(e[1],{opacity:1,ease:"none"}).to(this.progressTarget,{drawSVG:"37.5% 64%",ease:"none"},"<").addLabel("1").to(e[2],{opacity:1,ease:"none"}).to(this.progressTarget,{drawSVG:"71.5% 100%",ease:"none"},"<").addLabel("2");[].forEach.call(this.featureTargets,(e,r)=>{e.addEventListener("mouseenter",()=>{t.tweenTo(`${r}`,{ease:"power3.inOut"})})})}}var xi,Si,Oi;xi=wi,Oi=["progress","screen","screens","feature"],(Si=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(Si="targets"))in xi?Object.defineProperty(xi,Si,{value:Oi,enumerable:!0,configurable:!0,writable:!0}):xi[Si]=Oi},8794(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{_modifyClasses(e,t){(this.elementTargets.length?this.elementTargets:[this.element]).forEac
2h(r=>{const n=r.dataset[t]?.trim();(n?.length?n.split(" "):[]).forEach(t=>{r.classList[e](t)})})}addClass(){this._modifyClasses("add","attributeAddClass")}removeClass(){this._modifyClasses("remove","attributeRemoveClass")}toggleClass(){this._modifyClasses("toggle","attributeToggleClass")}toggleHidden(e){(this.elementTargets.length?this.elementTargets:[this.element]).forEach(e=>{e.hidden=!e.hidden});const t="true"===e.currentTarget.getAttribute("aria-expanded");e.currentTarget.setAttribute("aria-expanded",!t)}}n=o,s=["element"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},1813(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{open(){window.LiveChatWidget?.call("maximize")}};r.d(t,["default",0,i])},4798(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{static get targets(){return["text","success"]}async copy(e){e.preventDefault(),await navigator.clipboard.writeText(this.textTarget.value),this.successTarget.classList.add("v--revealed");const t=this;setTimeout(function(){t.successTarget.classList.remove("v--revealed")},2e3)}};r.d(t,["default",0,i])},3551(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{constructor(e){super(e),this.onIntersection=this.onIntersection.bind(this)}initialize(){this.previousIntersection=null,this.previousY=0,this.previousRatio=0}connect(){if(this.expanded=!1,this.signupElements=document.querySelectorAll(".o-signup-element"),this.signupElements.length){for(let e=0;e<this.signupElements.length;e++)if(null!==this.signupElements[e].offsetParent){this.firstSignupElement=this.signupElements[e];break}this.observer=new IntersectionObserver(this.onIntersection,{root:null,rootMargin:"-90px 0px 0px 0px",threshold:.5}),this.observer.observe(this.firstSignupElement)}}disconnect(){this.observer.disconnect()}onIntersection(e){const[t]=e,r=t.boundingClientRect.y,n=t.intersectionRatio,{isIntersecting:i}=t;r<this.previousY?n>this.previousRatio&&i||(this.expanded=!0):r>this.previousY&&i&&(n<this.previousRatio||(this.expanded=!1)),this.previousY=r,this.previousRatio=n}get expanded(){return this.data.get("isExpanded")}set expanded(e){this.expanded!==e&&(this.data.set("isExpanded",e),this.buttonTarget.classList.toggle("v--signup",e),this.buttonTarget.classList.toggle("v--secondary",!e))}}n=o,s=["button"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},6470(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{constructor(e){if(super(e),"VIDEO"===this.element.nodeName||!this.hasVideoTarget)throw console.warn('You\'re using "lazyplay" controller directly on <video /> element or your component is missing such element. Please use "{{< resource/video >}}" shortcode instead.',this.element);this.onIntersection=this.onIntersection.bind(this),this.onLoadedData=this.onLoadedData.bind(this)}connect(){this.observer=new IntersectionObserver(this.onIntersection,{root:null}),this.observer.observe(this.videoTarget),this.videoTarget.addEventListener("loadeddata",this.onLoadedData)}onIntersection(e){const[t]=e;t.isIntersecting&&(this.observer.disconnect(),this.videoTarget.readyState<=1?this.videoTarget.load():(this.videoTarget.currentTime=0,this.videoTarget.play()))}onLoadedData(){this.videoTarget.readyState>=2&&(this.videoTarget.hidden=!1,this.hasPosterTarget&&(this.posterTarget.hidden=!0,this.videoTarget.play()))}}n=o,s=["poster","video"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},7252(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>m});
2var n,i,s,a=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(r.hover=window.matchMedia("(hover: hover)").matches,r.none=window.matchMedia("(hover: none)").matches||window.matchMedia("(hover: on-demand)").matches,r.anyHover=window.matchMedia("(any-hover: hover)").matches,r.anyNone=window.matchMedia("(any-hover: none)").matches||window.matchMedia("(any-hover: on-demand)").matches)}};r.update(),t.default=r}),o=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=d(a()),n=d(l()),i=d(h()),s=d(u()),o=d(c());function d(e){return e&&e.__esModule?e:{default:e}}var f={state:{detectHover:r.default,detectPointer:n.default,detectTouchEvents:i.default,detectPointerEvents:s.default,detectPassiveEvents:o.default},update:function(){f.state.detectHover.update(),f.state.detectPointer.update(),f.state.detectTouchEvents.update(),f.state.detectPointerEvents.update(),f.state.detectPassiveEvents.update(),f.updateOnlyOwnProperties()},updateOnlyOwnProperties:function(){var e,t,r;"undefined"!=typeof window&&(f.passiveEvents=f.state.detectPassiveEvents.hasSupport||!1,f.hasTouch=f.state.detectTouchEvents.hasApi||f.state.detectPointerEvents.hasTouch||!1,f.deviceType=(e=f.hasTouch,t=f.state.detectHover.anyHover,r=f.state.detectPointer.anyFine,e&&(t||r)?"hybrid":e?"touchOnly":"mouseOnly"),f.hasTouchEventsApi=f.state.detectTouchEvents.hasApi,f.hasPointerEventsApi=f.state.detectPointerEvents.hasApi,f.maxTouchPoints=function(e,t){function r(e){return"number"==typeof e}return r(e)&&r(t)?Math.max(e,t):r(e)?e:r(t)?t:void 0}(f.state.detectTouchEvents.maxTouchPoints,f.state.detectPointerEvents.maxTouchPoints),f.primaryHover=(f.state.detectHover.hover?"hover":f.state.detectHover.none&&"none")||"mouseOnly"===f.deviceType&&"hover"||"touchOnly"===f.deviceType&&"none"||void 0,f.primaryPointer=(f.state.detectPointer.fine?"fine":f.state.detectPointer.coarse&&"coarse")||f.state.detectPointer.none&&"none"||"mouseOnly"===f.deviceType&&"fine"||"touchOnly"===f.deviceType&&"coarse"||void 0)},pointerEventsPrefix:s.default.prefix};f.updateOnlyOwnProperties(),t.default=f}),c=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),r.hasSupport=e}}};r.update(),t.default=r}),u=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={pointerdown:"MSPointerDown",pointerup:"MSPointerUp",pointercancel:"MSPointerCancel",pointermove:"MSPointerMove",pointerover:"MSPointerOver",pointerout:"MSPointerOut",pointerenter:"MSPointerEnter",pointerleave:"MSPointerLeave",gotpointercapture:"MSGotPointerCapture",lostpointercapture:"MSLostPointerCapture",maxTouchPoints:"msMaxTouchPoints"},n={update:function(){"undefined"!=typeof window&&("PointerEvent"in window?(n.hasApi=!0,n.requiresPrefix=!1):window.navigator&&"msPointerEnabled"in window.navigator?(n.hasApi=!0,n.requiresPrefix=!0):(n.hasApi=!1,n.requiresPrefix=void 0),n.maxTouchPoints=n.hasApi&&window.navigator&&window.navigator[n.prefix("maxTouchPoints")]||void 0,n.hasTouch=n.hasApi?n.maxTouchPoints>0:void 0)},prefix:function(e){return n.requiresPrefix&&r[e]||e}};n.update(),t.default=n}),l=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(r.fine=window.matchMedia("(pointer: fine)").matches,r.coarse=window.matchMedia("(pointer: coarse)").matches,r.none=window.matchMedia("(pointer: none)").matches,r.anyFine=window.matchMedia("(any-pointer: fine)").matches,r.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,r.anyNone=window.matchMedia("(any-pointer: none)").matches)}};r.update(),t.default=r}),h=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},n={update:function(){"object"===("undefined"==typeof window?"undefined":r(window))&&(n.hasApi="ontouchstart"in window,n.maxTouchPoints=n.hasApi?window.navigator&&window.navigator.maxTouchPoints:void 0)}};n.update(),t.default=n}
2),d=r.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mouseEventsMap={click:"click",dblclick:"dblclick",mousedown:"pointerdown",mouseup:"pointerup",mouseenter:"pointerenter",mouseleave:"pointerleave",mouseover:"pointerover",mouseout:"pointerout",mousemove:"pointermove"},t.touchEventsMap={touchstart:"pointerdown",touchend:"pointerup",touchmove:"pointermove",touchcancel:"pointercancel"}}),f=r.cw(function(e,t){t.A=function(e,t,r){var i,a="mouseOnly"===(i=n.default).deviceType?u:"touchOnly"===i.deviceType&&i.hasTouchEventsApi?c:"hybrid"===i.deviceType&&i.hasTouchEventsApi?l:i.hasTouch&&i.hasPointerEventsApi?h:function(){},o=a===l?new s(e):void 0;Object.keys(t).forEach(function(i){var s=t[i],c=function(e){var t,r,i=e.split(" ");return{events:i.filter(function(e){return"passive"!==e&&"capture"!==e}),listenerOptions:(t=-1!==i.indexOf("passive"),r=-1!==i.indexOf("capture"),t&&n.default.passiveEvents?{capture:r,passive:t}:r)}}(i),u=c.events,l=c.listenerOptions;u.forEach(function(t){a({target:e,event:t,handler:s,listenerOptions:l,touchState:o,pointerOptions:r})})})};var r,n=(r=o())&&r.__esModule?r:{default:r},i=d();function s(e){var t=this;this.start=void 0,this.end=void 0,this.active=!1;var r=!n.default.passiveEvents||{passive:!0,capture:!0};e.addEventListener("touchstart",function(){t.start=new Date,t.active=!0},r),e.addEventListener("touchend",function(){t.end=new Date,t.active=!1},r),e.addEventListener("touchcancel",function(){t.end=new Date,t.active=!1},r)}function a(e){var t=this;this.start=void 0;var r=!n.default.passiveEvents||{passive:!0,capture:!0};e.addEventListener("touchstart",function(){t.start=new Date},r)}function c(e){var t=e.target,r=e.event,n=e.handler,s=e.listenerOptions,o=e.touchState;if(i.touchEventsMap[r])t.addEventListener(r,n,s);else if("click"===r){var c=o||new a(t);t.addEventListener("touchend",function(e){new Date-c.start<500&&n(e)},s)}}function u(e){var t=e.target,r=e.event,n=e.handler,s=e.listenerOptions;i.mouseEventsMap[r]&&t.addEventListener(r,n,s)}function l(e){var t=e.target,r=e.event,n=e.handler,s=e.listenerOptions,a=e.touchState;c({target:t,event:r,handler:n,listenerOptions:s,touchState:a}),i.mouseEventsMap[r]&&t.addEventListener(r,function(e){!a.active&&new Date-a.end>600&&n(e)},s)}function h(e){var t=e.target,r=e.event,s=e.handler,a=e.listenerOptions,o=e.pointerOptions,c=i.touchEventsMap[r],u=i.mouseEventsMap[r];if(!o||!1!==o[c]&&!1!==o[u]){var l=n.default.pointerEventsPrefix;"click"===u||"dblclick"===u?t.addEventListener(u,s,a):u?t.addEventListener(l(u),function(e){"mouse"===h(e)&&s(e)},a):c&&t.addEventListener(l(c),function(e){"touch"===h(e)&&s(e)},a)}function h(e){return-1!==["touch",2,"pen",3].indexOf(e.pointerType)?"touch":-1!==["mouse",4].indexOf(e.pointerType)?"mouse":void 0}}}),p=r(7578);f();class m extends p.xI{connect(){this.setListeners(),this.adjustPositions()}adjustPositions(){[].forEach.call(this.topTargets,e=>{const t=e.nextElementSibling;if(t){const e=t.getBoundingClientRect(),r=window.innerWidth-e.x-e.width;r<54&&(t.style.left=r-84+"px")}})}setListeners(){[].forEach.call(this.topTargets,e=>{(0,f().A)(e,{click:e=>{"A"!==e.target.nodeName&&(e.preventDefault(),this.toggle(e.target))}})}),[].forEach.call(this.rootTargets,e=>{(0,f().A)(e,{mouseenter:e=>{e.preventDefault(),this.open(e.target)},mouseleave:e=>{e.preventDefault(),this.close(e.target)}})})}getRoot(e){return e.closest("li")}isOpened(e){return this.getRoot(e).classList.contains("v--opened")}toggle(e){this.isOpened(e)?this.close(e):this.open(e)}open(e){[].forEach.call(this.rootTargets,e=>{this.close(e)}),this.getRoot(e).classList.add("v--opened"),this.element.classList.add("v--has-opened")}close(e){this.getRoot(e).classList.remove("v--opened"),this.element.classList.remove("v--has-opened")}}n=m,s=["root","top"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},4115(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{connect(){this.replaceImageOnMediaQueryMatch()}replaceImage(e){this.imageTarget.width=e.getAttribute("data-width"),this.imageTarget.height=e.getAttribute("data-height"),this.imageTarget.removeAttribute("class"),this.imageTarget.setAttribute("class",e.getAttribute("data-class")),this.imageTarget.setAttribute("alt",e.getAttribute("data-alt")),e.srcset!==e.getAttribute("data-src")&&setTimeout(()=>{e.srcset=e.getAttribute("data-src")},0)}replaceImageOnMediaQueryMatch(){for(const e of this.sourceTargets){const t=window.matchMedia(e.media);t.matches&&this.replaceImage(e),t.addEventListener("change",t=>{t.matches&&this.replaceImage(e)})}}}n=o,s=["picture","source","image"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},3125(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{toggle(e){[].forEach.call(this.contentTargets,e=>{e.hidden=!e.hidden});const t="true"===e.currentTarget.getAttribute("aria-expanded");e.currentTarget.setAttribute("aria-expanded",!t)}}n=o,s=["content"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},3862(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(7578);function i(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=["source_url","source_type","source_id","referrer","landing_page","partner_id","promocode","sscid","discount","coupon","url","chat_purpose","industry","company_
2size","country","phone","audience","ghtests","coupon_code","promo_code","region","environment"],a=/^utm_[a-zA-Z0-9_]+$/,o=e=>s.includes(e)||a.test(e);class c extends n.xI{initialize(){if(c.initialized)return;c.initialized=!0;const e=(()=>{if("undefined"==typeof window)return{};const e=new URLSearchParams(window.location.search),t={};return e.forEach((e,r)=>{o(r)&&(t[r]=e)}),t})(),t=(()=>{if("undefined"==typeof document)return{};const e={};return(document.cookie?document.cookie.split(";"):[]).forEach(t=>{const[r,...n]=t.trim().split("=");if(!r)return;let i;try{i=decodeURIComponent(r)}catch{i=r}if(!o(i))return;const s=n.join("=");try{e[i]=decodeURIComponent(s)}catch{e[i]=s}}),e})(),r=new URLSearchParams({...t,...e});!document.referrer||document.referrer.startsWith("https://knowledgebase.com")||document.referrer.startsWith("https://www.knowledgebase.com")||document.referrer.startsWith("http://localhost")||e.utm_source||r.set("utm_source",document.referrer),c.urlUtms=`&${r.toString()}`,r.forEach((e,t)=>{document.cookie=`${t}=${encodeURIComponent(e)}; Path=/; SameSite=Lax; Secure`})}connect(){this.element.action?this.element.action+=c.urlUtms:this.element.href+=c.urlUtms}}i(c,"targets",[]),i(c,"initialized",!1),i(c,"urlUtms","")},2401(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>Ze});var n=r(7578);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function s(e){return e instanceof i(e).Element||e instanceof Element}function a(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var c=Math.max,u=Math.min,l=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(h())}function f(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,c=1;t&&a(e)&&(o=e.offsetWidth>0&&l(n.width)/e.offsetWidth||1,c=e.offsetHeight>0&&l(n.height)/e.offsetHeight||1);var u=(s(e)?i(e):window).visualViewport,h=!d()&&r,f=(n.left+(h&&u?u.offsetLeft:0))/o,p=(n.top+(h&&u?u.offsetTop:0))/c,m=n.width/o,g=n.height/c;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function m(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return f(g(e)).left+p(e).scrollLeft}function y(e){return i(e).getComputedStyle(e)}function _(e){var t=y(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function b(e,t,r){void 0===r&&(r=!1);var n,s,o=a(t),c=a(t)&&function(e){var t=e.getBoundingClientRect(),r=l(t.width)/e.offsetWidth||1,n=l(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),u=g(t),h=f(e,c,r),d={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(o||!o&&!r)&&(("body"!==m(t)||_(u))&&(d=(n=t)!==i(n)&&a(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:p(n)),a(t)?((y=f(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):u&&(y.x=v(u))),{x:h.left+d.scrollLeft-y.x,y:h.top+d.scrollTop-y.y,width:h.width,height:h.height}}function w(e){var t=f(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function x(e){return"html"===m(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||g(e)}function S(e){return["html","body","#document"].indexOf(m(e))>=0?e.ownerDocument.body:a(e)&&_(e)?e:S(x(e))}function O(e,t){var r;void 0===t&&(t=[]);var n=S(e),s=n===(null==(r=e.ownerDocument)?void 0:r.body),a=i(n),o=s?[a].concat(a.visualViewport||[],_(n)?n:[]):n,c=t.concat(o);return s?c:c.concat(O(x(o)))}function E(e){return["table","td","th"].indexOf(m(e))>=0}function R(e){return a(e)&&"fixed"!==y(e).position?e.offsetParent:null}function T(e){for(var t=i(e),r=R(e);r&&E(r)&&"static"===y(r).position;)r=R(r);return r&&("html"===m(r)||"body"===m(r)&&"static"===y(r).position)?t:r||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&a(e)&&"fixed"===y(e).position)return null;var r=x(e);for(o(r)&&(r=r.host);a(r)&&["html","body"].indexOf(m(r))<0;){var n=y(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var P="top",A="bottom",k="right",j="left",F="auto",C=[P,A,k,j],I="start",M="end",N="viewport",L="popper",D=C.reduce(function(e,t){return e.concat([t+"-"+I,t+"-"+M])},[]),H=[].concat(C,[F]).reduce(function(e,t){return e.concat([t,t+"-"+I,t+"-"+M])},[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function V(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 4,367 bytes, line 2
2h(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}var $={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function W(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?$:i;return function(e,t,r){void 0===r&&(r=a);var i,o,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,h={state:c,setOptions:function(r){var i="function"==typeof r?r(c.options):r;d(),c.options=Object.assign({},a,c.options,i),c.scrollParents={reference:s(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var o,l,f=function(e){var t=V(e);return U.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((o=[].concat(n,c.options.modifiers),l=o.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return c.orderedModifiers=f.filter(function(e){return e.enabled}),c.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var s=i({state:c,name:t,instance:h,options:n});u.push(s||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,r=e.popper;if(B(t,r)){c.rects={reference:b(t,T(r),"fixed"===c.options.strategy),popper:w(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(e){return c.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<c.orderedModifiers.length;n++)if(!0!==c.reset){var i=c.orderedModifiers[n],s=i.fn,a=i.options,o=void 0===a?{}:a,u=i.name;"function"==typeof s&&(c=s({state:c,options:o,name:u,instance:h})||c)}else c.reset=!1,n=-1}}},update:(i=function(){return new Promise(function(e){h.forceUpdate(),e(c)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(i())})})),o}),destroy:function(){d(),l=!0}};if(!B(e,t))return h;function d(){u.forEach(function(e){return e()}),u=[]}return h.setOptions(r).then(function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)}),h}}var q={passive:!0};function Q(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e){var t,r=e.reference,n=e.element,i=e.placement,s=i?Q(i):null,a=i?z(i):null,o=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(s){case P:t={x:o,y:r.y-n.height};break;case A:t={x:o,y:r.y+r.height};break;case k:t={x:r.x+r.width,y:c};break;case j:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=s?K(s):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case I:t[u]=t[u]-(r[l]/2-n[l]/2);break;case M:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(e){var t,r=e.popper,n=e.popperRect,s=e.placement,a=e.variation,o=e.offsets,c=e.position,u=e.gpuAcceleration,h=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=o.x,m=void 0===p?0:p,v=o.y,_=void 0===v?0:v,b="function"==typeof d?d({x:m,y:_}):{x:m,y:_};m=b.x,_=b.y;var w=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),S=j,O=P,E=window;if(h){var R=T(r),F="clientHeight",C="clientWidth";R===i(r)&&"static"!==y(R=g(r)).position&&"absolute"===c&&(F="scrollHeight",C="scrollWidth"),(s===P||(s===j||s===k)&&a===M)&&(O=A,_-=(f&&R===E&&E.visualViewport?E.visualViewport.height:R[F])-n.height,_*=u?1:-1),s!==j&&(s!==P&&s!==A||a!==M)||(S=k,m-=(f&&R===E&&E.visualViewport?E.visualViewport.width:R[C])-n.width,m*=u?1:-1)}var I,N=Object.assign({position:c},h&&X),L=!0===d?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:l(r*i)/i||0,y:l(n*i)/i||0}}({x:m,y:_},i(r)):{x:m,y:_};return m=L.x,_=L.y,u?Object.assign({},N,((I={})[O]=x?"0":"",I[S]=w?"0":"",I.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",I)):Object.assign({},N,((t={})[O]=x?_+"px":"",t[S]=w?m+"px":"",t.transform="",t))}const Y={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
vendor: 5,292 bytes, line 2
2Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];a(i)&&m(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});a(n)&&m(n)&&(Object.assign(n.style,s),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,function(e){return Z[e]})}var te={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,function(e){return te[e]})}function ne(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&o(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function se(e,t,r){return t===N?ie(function(e,t){var r=i(e),n=g(e),s=r.visualViewport,a=n.clientWidth,o=n.clientHeight,c=0,u=0;if(s){a=s.width,o=s.height;var l=d();(l||!l&&"fixed"===t)&&(c=s.offsetLeft,u=s.offsetTop)}return{width:a,height:o,x:c+v(e),y:u}}(e,r)):s(t)?function(e,t){var r=f(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):ie(function(e){var t,r=g(e),n=p(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=c(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=c(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+v(e),u=-n.scrollTop;return"rtl"===y(i||r).direction&&(o+=c(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:o,y:u}}(g(e)))}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ce(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,l=void 0===o?e.strategy:o,h=r.boundary,d=void 0===h?"clippingParents":h,p=r.rootBoundary,v=void 0===p?N:p,_=r.elementContext,b=void 0===_?L:_,w=r.altBoundary,S=void 0!==w&&w,E=r.padding,R=void 0===E?0:E,j=ae("number"!=typeof R?R:oe(R,C)),F=b===L?"reference":L,I=e.rects.popper,M=e.elements[S?F:b],D=function(e,t,r,n){var i="clippingParents"===t?function(e){var t=O(x(e)),r=["absolute","fixed"].indexOf(y(e).position)>=0&&a(e)?T(e):e;return s(r)?t.filter(function(e){return s(e)&&ne(e,r)&&"body"!==m(e)}):[]}(e):[].concat(t),o=[].concat(i,[r]),l=o[0],h=o.reduce(function(t,r){var i=se(e,r,n);return t.top=c(i.top,t.top),t.right=u(i.right,t.right),t.bottom=u(i.bottom,t.bottom),t.left=c(i.left,t.left),t},se(e,l,n));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}(s(M)?M:M.contextElement||g(e.elements.popper),d,v,l),H=f(e.elements.reference),U=J({reference:H,element:I,strategy:"absolute",placement:i}),V=ie(Object.assign({},I,U)),$=b===L?V:H,B={top:D.top-$.top+j.top,bottom:$.bottom-D.bottom+j.bottom,left:D.left-$.left+j.left,right:$.right-D.right+j.right},W=e.modifiersData.offset;if(b===L&&W){var q=W[i];Object.keys(B).forEach(function(e){var t=[k,A].indexOf(e)>=0?1:-1,r=[P,A].indexOf(e)>=0?"y":"x";B[e]+=q[r]*t})}return B}function ue(e,t,r){return c(e,u(t,r))}function le(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function he(e){return[P,k,A,j].some(function(t){return e[t]>=0})}var de=W({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,s=n.scroll,a=void 0===s||s,o=n.resize,c=void 0===o||o,u=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener("scroll",r.update,q)}),c&&u.addEventListener("resize",r.update,q),function(){a&&l.forEach(function(e){e.removeEventListener("scroll",r.update,q)}),c&&u.removeEventListener("resize",r.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,s=r.adaptive,a=void 0===s||s,o=r.roundOffsets,c=void 0===o||o,u={placement:Q(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,G(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roun
vendor: 4,799 bytes, line 2
2dOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,G(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Y,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=void 0===i?[0,0]:i,a=H.reduce(function(e,r){return e[r]=function(e,t,r){var n=Q(e),i=[j,P].indexOf(n)>=0?-1:1,s="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=s[0],o=s[1];return a=a||0,o=(o||0)*i,[j,k].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(r,t.rects,s),e},{}),o=a[t.placement],c=o.x,u=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=void 0===i||i,a=r.altAxis,o=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,h=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=Q(g),y=c||(v!==g&&p?function(e){if(Q(e)===F)return[];var t=ee(e);return[re(e),t,re(t)]}(g):[ee(g)]),_=[g].concat(y).reduce(function(e,r){return e.concat(Q(r)===F?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,a=r.padding,o=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?H:c,l=z(n),h=l?o?D:D.filter(function(e){return z(e)===l}):C,d=h.filter(function(e){return u.indexOf(e)>=0});0===d.length&&(d=h);var f=d.reduce(function(t,r){return t[r]=ce(e,{placement:r,boundary:i,rootBoundary:s,padding:a})[Q(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:l,rootBoundary:h,padding:u,flipVariations:p,allowedAutoPlacements:m}):r)},[]),b=t.rects.reference,w=t.rects.popper,x=new Map,S=!0,O=_[0],E=0;E<_.length;E++){var R=_[E],T=Q(R),M=z(R)===I,N=[P,A].indexOf(T)>=0,L=N?"width":"height",U=ce(t,{placement:R,boundary:l,rootBoundary:h,altBoundary:d,padding:u}),V=N?M?k:j:M?A:P;b[L]>w[L]&&(V=ee(V));var $=ee(V),B=[];if(s&&B.push(U[T]<=0),o&&B.push(U[V]<=0,U[$]<=0),B.every(function(e){return e})){O=R,S=!1;break}x.set(R,B)}if(S)for(var W=function(e){var t=_.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},q=p?3:1;q>0&&"break"!==W(q);q--);t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=void 0===i||i,a=r.altAxis,o=void 0!==a&&a,l=r.boundary,h=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,m=void 0===p||p,g=r.tetherOffset,v=void 0===g?0:g,y=ce(t,{boundary:l,rootBoundary:h,padding:f,altBoundary:d}),_=Q(t.placement),b=z(t.placement),x=!b,S=K(_),O="x"===S?"y":"x",E=t.modifiersData.popperOffsets,R=t.rects.reference,F=t.rects.popper,C="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,M="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(s){var D,H="y"===S?P:j,U="y"===S?A:k,V="y"===S?"height":"width",$=E[S],B=$+y[H],W=$-y[U],q=m?-F[V]/2:0,J=b===I?R[V]:F[V],X=b===I?-F[V]:-R[V],G=t.elements.arrow,Y=m&&G?w(G):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[H],te=Z[U],re=ue(0,R[V],Y[V]),ne=x?R[V]/2-q-re-ee-M.mainAxis:J-re-ee-M.mainAxis,ie=x?-R[V]/2+q+re+te+M.mainAxis:X+re+te+M.mainAxis,se=t.elements.arrow&&T(t.elements.arrow),ae=se?"y"===S?se.clientTop||0:se.clientLeft||0:0,oe=null!=(D=null==N?void 0:N[S])?D:0,le=$+ie-oe,he=ue(m?u(B,$+ne-oe-ae):B,$,m?c(W,le):W);E[S]=he,L[S]=he-$}if(o){var de,fe="x"===S?P:j,pe="x"===S?A:k,me=E[O],ge="y"===O?"height":"width",ve=me+y[fe],ye=me-y[pe],_e=-1!==[P,j].indexOf(_),be=null!=(de=null==N?void 0:N[O])?de:0,we=_e?ve:me-R[ge]-F[ge]-be+M.altAxis,xe=_e?me+R[ge]+F[ge]-be-M.altAxis:ye,Se=m&&_e?function(e,t,r){var n=ue(e,t,r);return n>r?r:n}(we,me,xe):ue(m?we:ve,me,m?xe:ye);E[O]=Se,L[O]=Se-me}t.modifiersData[n]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,o=Q(r.placement),c=K(o),u=[j,k].indexOf(o)>=0?"height":"width";if(s&&a){var l=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,C))}(i.padding,r),h=w(s),d="y"===c?P:j,f="y"===c?A:k,p=r.rects.reference[u]+r.re
vendor: 6,730 bytes, line 2
2cts.reference[c]-a[c]-r.rects.popper[u],m=a[c]-r.rects.reference[c],g=T(s),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,_=l[d],b=v-h[u]-l[f],x=v/2-h[u]/2+y,S=ue(_,x,b),O=c;r.modifiersData[n]=((t={})[O]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ne(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),o=ce(t,{altBoundary:!0}),c=le(a,n),u=le(o,i,s),l=he(c),h=he(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}}]}),fe="tippy-content",pe="tippy-arrow",me="tippy-svg-arrow",ge={passive:!0,capture:!0},ve=function(){return document.body};function ye(e,t,r){return Array.isArray(e)?e[t]??(Array.isArray(r)?r[t]:r):e}function _e(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function be(e,t){return"function"==typeof e?e.apply(void 0,t):e}function we(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function xe(e){return[].concat(e)}function Se(e,t){-1===e.indexOf(t)&&e.push(t)}function Oe(e){return[].slice.call(e)}function Ee(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function Re(){return document.createElement("div")}function Te(e){return["Element","Fragment"].some(function(t){return _e(e,t)})}function Pe(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Ae(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ke(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function je(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Fe={isTouch:!1},Ce=0;function Ie(){Fe.isTouch||(Fe.isTouch=!0,window.performance&&document.addEventListener("mousemove",Me))}function Me(){var e=performance.now();e-Ce<20&&(Fe.isTouch=!1,document.removeEventListener("mousemove",Me)),Ce=e}function Ne(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var Le=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),De=Object.assign({appendTo:ve,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),He=Object.keys(De);function Ue(e){var t=(e.plugins||[]).reduce(function(t,r){var n,i=r.name,s=r.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=De[i])?n:s),t},{});return Object.assign({},e,t)}function Ve(e,t){var r=Object.assign({},t,{content:be(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ue(Object.assign({},De,{plugins:t}))):He).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},De.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function $e(e,t){e.innerHTML=t}function Be(e){var t=Re();return!0===e?t.className=pe:(t.className=me,Te(e)?t.appendChild(e):$e(t,e)),t}function We(e,t){Te(t.content)?($e(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?$e(e,t.content):e.textContent=t.content)}function qe(e){var t=e.firstElementChild,r=Oe(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(fe)}),arrow:r.find(function(e){return e.classList.contains(pe)||e.classList.contains(me)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Qe(e){var t=Re(),r=Re();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Re();function i(r,n){var i=qe(t),s=i.box,a=i.content,o=i.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||We(a,e.props),n.arrow?o?r.arrow!==n.arrow&&(s.removeChild(o),s.appendChild(Be(n.arrow))):s.appendChild(Be(n.arrow)):o&&s.removeChild(o)}return n.className=fe,n.setAttribute("data-state","hidden"),We(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}Qe.$$tippy=!0;var ze=1,Ke=[],Je=[];function Xe(e,t){var r,n,i,s,a,o,c,u,l=Ve(e,Object.assign({},De,Ue(Ee(t)))),h=!1,d=!1,f=!1,p=!1,m=[],g=we(z,l.interactiveDebounce),v=ze++,y=(u=l.plugins).filter(function(e,t){return u.indexOf(e)===t}),_={id:v,reference:e,popper:Re(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(i)},setProps:function(t){if(!_.state.isDestroyed){C("onBeforeUpdate",[_,t]),q();var r=_.props,n=Ve(e,Object.assign({},r,Ee(t),{ignoreAttributes:!0}));_.props=n,W(),r.interactiveDebounce!==n.interactiveDebounce&&(N(),g=we(z,n.interactiveDebounce)),r.triggerTarget&&!n.triggerTarget?xe(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded"),M(),F(),x&&x(r,n),_.popperInstance&&(G(),Z().forEac
2h(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),C("onAfterUpdate",[_,t])}},setContent:function(e){_.setProps({content:e})},show:function(){var e=_.state.isVisible,t=_.state.isDestroyed,r=!_.state.isEnabled,n=Fe.isTouch&&!_.props.touch,i=ye(_.props.duration,0,De.duration);if(!(e||t||r||n||P().hasAttribute("disabled")||(C("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,T()&&(w.style.visibility="visible"),F(),U(),_.state.isMounted||(w.style.transition="none"),T()){var s=k();Pe([s.box,s.content],0)}var a,c,u;o=function(){var e;if(_.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,T()&&_.props.animation){var t=k(),r=t.box,n=t.content;Pe([r,n],i),Ae([r,n],"visible")}I(),M(),Se(Je,_),null==(e=_.popperInstance)||e.forceUpdate(),C("onMount",[_]),_.props.animation&&T()&&function(e){$(e,function(){_.state.isShown=!0,C("onShown",[_])})}(i)}},c=_.props.appendTo,u=P(),(a=_.props.interactive&&c===ve||"parent"===c?u.parentNode:be(c,[u])).contains(w)||a.appendChild(w),_.state.isMounted=!0,G()}},hide:function(){var e=!_.state.isVisible,t=_.state.isDestroyed,r=!_.state.isEnabled,n=ye(_.props.duration,1,De.duration);if(!(e||t||r)&&(C("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,p=!1,h=!1,T()&&(w.style.visibility="hidden"),N(),V(),F(!0),T()){var i=k(),s=i.box,a=i.content;_.props.animation&&(Pe([s,a],n),Ae([s,a],"hidden"))}I(),M(),_.props.animation?T()&&function(e,t){$(e,function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()})}(n,_.unmount):_.unmount()}},hideWithInteractivity:function(e){A().addEventListener("mousemove",g),Se(Ke,g),g(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){_.state.isVisible&&_.hide(),_.state.isMounted&&(Y(),Z().forEach(function(e){e._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w),Je=Je.filter(function(e){return e!==_}),_.state.isMounted=!1,C("onHidden",[_]))},destroy:function(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),q(),delete e._tippy,_.state.isDestroyed=!0,C("onDestroy",[_]))}};if(!l.render)return _;var b=l.render(_),w=b.popper,x=b.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var S=y.map(function(e){return e.fn(_)}),O=e.hasAttribute("aria-expanded");return W(),M(),F(),C("onCreate",[_]),l.showOnCreate&&ee(),w.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",g)}),_;function E(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function R(){return"hold"===E()[0]}function T(){var e;return!(null==(e=_.props.render)||!e.$$tippy)}function P(){return c||e}function A(){var e,t,r=P().parentNode;return r?null!=(t=xe(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function k(){return qe(w)}function j(e){return _.state.isMounted&&!_.state.isVisible||Fe.isTouch||s&&"focus"===s.type?0:ye(_.props.delay,e?0:1,De.delay)}function F(e){void 0===e&&(e=!1),w.style.pointerEvents=_.props.interactive&&!e?"":"none",w.style.zIndex=""+_.props.zIndex}function C(e,t,r){var n;void 0===r&&(r=!0),S.forEach(function(r){r[e]&&r[e].apply(r,t)}),r&&(n=_.props)[e].apply(n,t)}function I(){var t=_.props.aria;if(t.content){var r="aria-"+t.content,n=w.id;xe(_.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(_.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function M(){!O&&_.props.aria.expanded&&xe(_.props.triggerTarget||e).forEach(function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){A().removeEventListener("mousemove",g),Ke=Ke.filter(function(e){return e!==g})}function L(t){if(!Fe.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!_.props.interactive||!je(w,r)){if(xe(_.props.triggerTarget||e).some(function(e){return je(e,r)})){if(Fe.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout(function(){d=!1}),_.state.isMounted||V())}}}function D(){f=!0}function H(){f=!1}function U(){var e=A();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,ge),e.addEventListener("touchstart",H,ge),e.addEventListener("touchmove",D,ge)}function V(){var e=A();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,ge),e.removeEventListener("touchstart",H,ge),e.removeEventListener("touchmove",D,ge)}function $(e,t){var r=k().box;function n(e){e.target===r&&(ke(r,"remove",n),t())}if(0===e)return t();ke(r,"remove",a),ke(r,"add",n),a=n}function B(t,r,n){void 0===n&&(n=!1),xe(_.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),m.push({node:e,eventType:t,handler:r,options:n})})}function W(){var e;R()&&(B("touchstart",Q,{passive:!0}),B("touchend",K,{passive:!0}
vendor: 4,199 bytes, line 2
2)),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(B(e,Q),e){case"mouseenter":B("mouseleave",K);break;case"focus":B(Le?"focusout":"blur",J);break;case"focusin":B("focusout",J)}})}function q(){m.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),m=[]}function Q(e){var t,r=!1;if(_.state.isEnabled&&!X(e)&&!d){var n="focus"===(null==(t=s)?void 0:t.type);s=e,c=e.currentTarget,M(),!_.state.isVisible&&_e(e,"MouseEvent")&&Ke.forEach(function(t){return t(e)}),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||h)&&!1!==_.props.hideOnClick&&_.state.isVisible?r=!0:ee(e),"click"===e.type&&(h=!r),r&&!n&&te(e)}}function z(e){var t=e.target,r=P().contains(t)||w.contains(t);if("mousemove"!==e.type||!r){var n=Z().concat(w).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],o=i.modifiersData.offset;if(!o)return!0;var c="bottom"===a?o.top.y:0,u="top"===a?o.bottom.y:0,l="right"===a?o.left.x:0,h="left"===a?o.right.x:0,d=t.top-n+c>s,f=n-t.bottom-u>s,p=t.left-r+l>s,m=r-t.right-h>s;return d||f||p||m})})(n,e)&&(N(),te(e))}}function K(e){X(e)||_.props.trigger.indexOf("click")>=0&&h||(_.props.interactive?_.hideWithInteractivity(e):te(e))}function J(e){_.props.trigger.indexOf("focusin")<0&&e.target!==P()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!Fe.isTouch&&R()!==e.type.indexOf("touch")>=0}function G(){Y();var t=_.props,r=t.popperOptions,n=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,c=T()?qe(w).arrow:null,u=s?{getBoundingClientRect:s,contextElement:s.contextElement||P()}:e,l=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var r=k().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];T()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==r?void 0:r.modifiers)||[]),_.popperInstance=de(u,w,Object.assign({},r,{placement:n,onFirstUpdate:o,modifiers:l}))}function Y(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Z(){return Oe(w.querySelectorAll("[data-tippy-root]"))}function ee(e){_.clearDelayTimeouts(),e&&C("onTrigger",[_,e]),U();var t=j(!0),n=E(),i=n[0],s=n[1];Fe.isTouch&&"hold"===i&&s&&(t=s),t?r=setTimeout(function(){_.show()},t):_.show()}function te(e){if(_.clearDelayTimeouts(),C("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&h)){var t=j(!1);t?n=setTimeout(function(){_.state.isVisible&&_.hide()},t):i=requestAnimationFrame(function(){_.hide()})}}else V()}}function Ge(e,t){void 0===t&&(t={});var r=De.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ie,ge),window.addEventListener("blur",Ne);var n,i=Object.assign({},t,{plugins:r}),s=(n=e,Te(n)?[n]:function(e){return _e(e,"NodeList")}(n)?Oe(n):Array.isArray(n)?n:Oe(document.querySelectorAll(n))).reduce(function(e,t){var r=t&&Xe(t,i);return r&&e.push(r),e},[]);return Te(e)?s[0]:s}Ge.defaultProps=De,Ge.setDefaultProps=function(e){Object.keys(e).forEach(function(t){De[t]=e[t]})},Ge.currentInput=Fe,Object.assign({},Y,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Ge.setDefaultProps({render:Qe});
2const Ye=Ge,Ze=class extends n.xI{initialize(){const e=this.element,t=[...document.querySelectorAll("dialog")].find(t=>t.contains(e)),{maxWidth:r}=e.dataset;let n=275;"none"===r?n="none":void 0!==r&&(n=Number(r));const i=["knowledgebase",e.dataset.theme].filter(Boolean).join(" ");Ye(e,{content:e.dataset.tooltip,placement:e.dataset.placement||"bottom",allowHTML:!0,maxWidth:n,theme:i,zIndex:e.dataset.zIndex||10002,...t&&{appendTo:t}})}}},7152(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n,i,s,a=r(7578);class o extends a.xI{showImages(e,t){this.featureTargets.forEach(e=>{e.classList.remove("v--active")}),e.classList.add("v--active");for(const e of this.galleryTarget.querySelectorAll("img, video"))e.hidden=!0;const r=this.galleryTarget.querySelectorAll("img, video")[this.featureTargets.indexOf(e)];r.hidden=!1,r.classList.add(t)}switch(e){this.showImages(e.currentTarget,"u-anim-fade-in-right")}zoom(e){this.showImages(e.currentTarget,"u-anim-zoom-in")}fadeIn(e){this.showImages(e.currentTarget,"u-anim-fade-in")}}n=o,s=["feature","gallery"],(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="targets"))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},6839(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{send(){"undefined"!=typeof dataLayer&&this.data.has("category")&&dataLayer.push({event:"generic",eventCategory:this.data.get("category"),eventAction:this.data.get("action"),eventLabel:this.data.get("label"),eventValue:this.data.get("value")})}};r.d(t,["default",0,i])},2228(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{static targets=["answer"];connect(){this.closeOnOutsideClick=this.closeOnOutsideClick.bind(this)}disconnect(){window.removeEventListener("click",this.closeOnOutsideClick)}toggleAnswer(e){const t=e.currentTarget,r=this.answerTarget.classList.toggle("v--show-answer");t.setAttribute("aria-expanded",String(r)),window.removeEventListener("click",this.closeOnOutsideClick),r&&window.addEventListener("click",this.closeOnOutsideClick)}closeOnOutsideClick(e){this.answerTarget.contains(e.target)||(this.answerTarget.classList.remove("v--show-answer"),this.answerTarget.querySelector("[aria-expanded]")?.setAttribute("aria-expanded","false"),window.removeEventListener("click",this.closeOnOutsideClick))}};r.d(t,["default",0,i])},5673(e,t,r){"use strict";r.r(t);r.d(t,["default",0,(e,t)=>{const r=!!e&&`query=${encodeURIComponent(e)}`,n=!!t&&`page=${t+1}`;let i=r||n?`?${r||n}`:"";return i+=r&&n?`&${n}`:"",i+=location.hash.length?location.hash:"",i}])},8441(e,t,r){"use strict";r.r(t);var n=r(2148),i=r.n(n),s=r(5673);r.d(t,["default",0,e=>{const{pages:t,currentRefinement:r,nbPages:n,isFirstPage:a,isLastPage:o,refine:c,widgetParams:u,nbHits:l,instantSearchInstance:h}=e,d=document.querySelector("#search-pagination-prev").innerHTML,f=i().compile(d),p=document.querySelector("#search-pagination-item").innerHTML,m=i().compile(p),g=document.querySelector("#search-pagination-next").innerHTML,v=i().compile(g);u.container.innerHTML=l?`\n    <ul class="c-pagination__list">\n      ${f.render({prevPage:r-1,isFirstPage:a})}\n      ${t.map(e=>m.render({currentPageIndex:e,currentPage:e+1,active:r===e})).join("")}\n       ${v.render({nextPage:r+1,isLastPage:o,lastPageIndex:n-1,lastPage:n})}\n    </ul>\n  `:"";const y=h.helper?.getQuery();if(!y)return;const _=(0,s.default)(y.query,r);window.history.replaceState({},"",`${location.pathname}${_}`),[...u.container.querySelectorAll("a")].forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),c(e.currentTarget.dataset.value),window.scrollTo(0,0)})})}])},3675(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>se});var n,i,s,a,o=r(7578),c=r(5394),u=r(9916),l=r(2929),h=r(7371),d=r(5662),f=r(2782),p=r(8542),m=r(1195),g=r(1265),v=0,y=[],_=p.fF,b=_.__b,w=_.__r,x=_.diffed,S=_.__c,O=_.unmount,E=_.__;function R(e,t){_.__h&&_.__h(i,e,v||t),v=0;var r=i.__H||(i.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function T(e){return v=5,function(e,t){var r=R(n++,7);return C(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}(function(){return{current:e}},[])}function P(){for(var e;e=y.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(j),t.__h.some(F),t.__h=[]}catch(r){t.__h=[],_.__e(r,e.__v)}}}_.__b=function(e){i=null,b&&b(e)},_.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),E&&E(e,t)}
2,_.__r=function(e){w&&w(e),n=0;var t=(i=e.__c).__H;t&&(s===i?(t.__h=[],i.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(j),t.__h.some(F),t.__h=[],n=0)),s=i},_.diffed=function(e){x&&x(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==y.push(t)&&a===_.requestAnimationFrame||((a=_.requestAnimationFrame)||k)(P)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),s=i=null},_.__c=function(e,t){t.some(function(e){try{e.__h.some(j),e.__h=e.__h.filter(function(e){return!e.__||F(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],_.__e(r,e.__v)}}),S&&S(e,t)},_.unmount=function(e){O&&O(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{j(e)}catch(e){t=e}}),r.__H=void 0,t&&_.__e(t,r.__v))};var A="function"==typeof requestAnimationFrame;function k(e){var t,r=function(){clearTimeout(n),A&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);A&&(t=requestAnimationFrame(r))}function j(e){var t=i,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),i=t}function F(e){var t=i;e.__c=e.__(),i=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function I(e,t){return"function"==typeof t?t(e):t}function M(e,t){return e.toLocaleString(t)}var N=r(5808),L={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},D=function(e){var t=e.nbHits,r=e.nbSortedHits,s=e.areHitsSorted,a=e.cssClasses,o=e.templateProps,c=(0,m._)(e,["nbHits","nbSortedHits","areHitsSorted","cssClasses","templateProps"]),u=function(e,t,r){if(r){var n="sorted out of ".concat(M(e));return 0===t?"No relevant results ".concat(n):1===t?"1 relevant result ".concat(n):"".concat(M(t||0)," relevant results ").concat(n)}return 0===e?"No results":1===e?"1 result":"".concat(M(e)," results")}(t,r,s),l=(0,g._)((v=1,function(e,t){var r=R(n++,2);if(r.t=e,!r.__c&&(r.__=[I(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=i,!i.__f)){var s=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,s=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),a){var o=a.call(this,e,t,n);return i?o||s:o}return!i||s};i.__f=!0;var a=i.shouldComponentUpdate,o=i.componentWillUpdate;i.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,s(e,t,r),a=n}o&&o.call(this,e,t,r)},i.shouldComponentUpdate=s}return r.__N||r.__}(I,"")),2),y=l[0],b=l[1],w=T(),x=T(!0);return function(e,t){var r=R(n++,3);!_.__s&&C(r.__H,t)&&(r.__=function(){if(!x.current)return clearTimeout(w.current),w.current=setTimeout(function(){b(u)},1400),function(){return clearTimeout(w.current)};x.current=!1},r.u=t,i.__H.__h.push(r))}(0,[u]),(0,p.h)("div",{className:(0,f.cx)(a.root)},(0,p.h)(N.A,(0,d._)((0,h._)({},o),{templateKey:"text",rootTagName:"span",rootProps:{className:a.text},data:(0,h._)({hasManySortedResults:r&&r>1,hasNoSortedResults:0===r,hasOneSortedResults:1===r,hasManyResults:t>1,hasNoResults:0===t,hasOneResult:1===t,nbHits:t,nbSortedHits:r,areHitsSorted:s,cssClasses:a},c)})),(0,p.h)("span",{className:"ais-Stats-announcement",role:"status","aria-live":"polite","aria-atomic":"true",style:L},y))},H=r(8421),U=r(1677),V=r(3295),$=(0,H.V)({name:"stats",connector:!0}),B=r(8986),W=r(4382),q=(0,H.V)({name:"stats"}),Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.descendantName,r=e.modifierName,n=t?"-".concat(t):"",i=r?"--".concat(r):"";return"".concat("ais","-").concat("Stats").concat(n).concat(i)},z={text:function(e){return"".concat(e.areHitsSorted?(t=e,r=t.nbHits,n=t.hasNoSortedResults,i=t.hasOneSortedResults,s=t.hasManySortedResults,a=t.nbSortedHits,o="sorted out of ".concat(M(r)),n?"No relevant results ".concat(o):i?"1 relevant result ".concat(o):s?"".concat(M(a||0)," relevant results ").concat(o):""):function(e){var t=e.nbHits,r=e.hasNoResults,n=e.hasOneResult,i=e.hasManyResults;return r?"No results":n?"1 result":i?"".concat(M(t)," results"):""}(e)," found in ").concat(e.processingTimeMS,"ms");var t,r,n,i,s,a,o}
2},K=function(e){var t=e||{},r=t.container,n=t.cssClasses,i=void 0===n?{}:n,s=t.templates,a=void 0===s?{}:s;if(!r)throw new Error(q("The `container` option is required."));var o=(0,B.e)(r),c={root:(0,f.cx)(Q(),i.root),text:(0,f.cx)(Q({descendantName:"text"}),i.text)},u=function(e){var t=e.renderState,r=e.cssClasses,n=e.containerNode,i=e.templates;return function(e,s){var a=e.hitsPerPage,o=e.nbHits,c=e.nbSortedHits,u=e.areHitsSorted,l=e.nbPages,h=e.page,d=e.processingTimeMS,f=e.query,m=e.instantSearchInstance;s?t.templateProps=(0,W.C)({defaultTemplates:z,templatesConfig:m.templatesConfig,templates:i}):(0,p.XX)((0,p.h)(D,{cssClasses:r,hitsPerPage:a,nbHits:o,nbSortedHits:c,areHitsSorted:u,nbPages:l,page:h,processingTimeMS:d,query:f,templateProps:t.templateProps}),n)}}({containerNode:o,cssClasses:c,templates:a,renderState:{}}),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.l;return(0,U.t)(e,$()),function(r){return{$$type:"ais.stats",init:function(t){var r=t.instantSearchInstance;e((0,d._)((0,h._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,d._)((0,h._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return(0,d._)((0,h._)({},e),{stats:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.state;return t?{hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbSortedHits:t.nbSortedHits,areHitsSorted:void 0!==t.appliedRelevancyStrictness&&t.appliedRelevancyStrictness>0&&t.nbSortedHits!==t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:r}:{hitsPerPage:n.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:n.page||0,processingTimeMS:-1,query:n.query||"",widgetParams:r}}}}}(u,function(){return(0,p.XX)(null,o)});return(0,d._)((0,h._)({},l({})),{$$widgetType:"ais.stats"})},J=r(9729),X=r(3304),G=r(1901),Y=r(7837),Z=r(3604);function ee(e){var t=e.start,r=void 0===t?0:t,n=e.end,i=e.step,s=void 0===i?1:i,a=0===s?1:s,o=Math.round((n-r)/a);return(0,Z._)(Array(o)).map(function(e,t){return r+t*a})}var te=function(){function e(t){(0,X._)(this,e),(0,Y._)(this,"currentPage",void 0),(0,Y._)(this,"total",void 0),(0,Y._)(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return(0,G._)(e,[{key:"pages",value:function(){var e=this,t=e.total,r=e.currentPage,n=e.padding;if(0===t)return[0];var i=this.nbPagesDisplayed(n,t);if(i===t)return ee({end:t});var s=this.calculatePaddingLeft(r,n,t,i);return ee({start:r-s,end:r+(i-s)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,r,n){return e<=t?e:e>=r-t?n-(r-e):t}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}(),re=(0,H.V)({name:"pagination",connector:!0}),ne=r(7164),ie=r(8441);r(9860);const se=class extends o.xI{static targets=["results","search","input","button","stats","pagination","paginationMobile","marketplaceResults"];connect(){this.monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.resultsHeight=!1,this.initAlgoliaSearch()}initAlgoliaSearch(){this.configureSearch(),this.search.on("render",()=>{this.hasMarketplaceResultsTarget&&this.displayMarketplaceResults(),window.Sharer.init()}),this.hasMarketplaceResultsTarget&&(this.configureMarketplaceSearch(),this.searchMarketplace.on("render",()=>{this.displayMarketplaceResults()}),this.searchMarketplace.start()),this.search.start()}configureSearch(){this.searchClient=(0,u.p)(this.element.dataset.appId,this.element.dataset.searchKey);const e=this.element.dataset.searchIndex,t=parseInt(this.getParameterByName("page"))||1,r=this.getParameterByName("query")||"";this.search=(0,c.A)({indexName:e,searchClient:this.searchClient,initialUiState:{[e]:{page:t,query:r}}});const n=document.querySelector("#search-results-item").innerHTML,i=document.querySelector("#search-results-empty").innerHTML,s=document.querySelector("#search-stats").innerHTML,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.l;return(0,U.t)(e,re()),function(r){var n=r||{},i=n.totalPages,s=n.padding,a=new te({currentPage:0,total:0,padding:void 0===s?3:s}),o={};return{$$type:"ais.pagination",init:function(t){var r=t.instantSearchInstance;e((0,d._)((0,h._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,d._)((0,h._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("page",void 0)},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?(0,d._)((0,h._)({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=r.page?r.page-1:0;return e.setQueryParameter("page",n)},getWidgetRenderState:function(e){var t=e.results,n=e.helper,s=e.state,c=e.createURL;o.refine||(o.refine=function(e){n.setPage(e),n.search()}),o.createURL||(o.createURL=function(e){return c(function(t){return(0,d._)((0,h._)({},t),{page:e+1})})});var u=s.page||0,l=function(e){var t=e.nbPages;return void 0!==i?Math.min(i,t):t}(t||{nbPages:0});return a.currentPage=u,a.total=l,{createURL:o.createURL,refine:o.refine,canRefine:l>1,currentRefinement:u,nbHits:(null==t?void 0:t.nbHits)||0,nbPages:l,pages:t?a.pages():[],isFirstPage:a.isFirstPage(),isLastPage:a.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return(0,d._)((0,h._)({},e),{pagination:this.getWidgetRenderState(t)})}}}}(ie.default),o=(0,ne.A)(this.renderSearchBox.bind(this));this.search.addWidgets([(0,l.A)({hitsPerPage:7}),o({container:this.searchTarget}),a({container:this.paginationTarget}),a({container:this.paginationMobileTarget,totalPages:3}),K({container:this.statsTarget,templates:{text:s}}),(0,J.A)({container:this.resultsTarget,templates:{item:n,empty:i},transformItems:e=>{const t=e.map(e=>{const t=new Date(1e3*e.lastmod);return e.lastmod=`${this.monthNames[t.getMonth()]} ${t.getDate()}, ${t.getFullYear()}`,1===e.__position&&(e.firstResult=!0),e});return t.length&&(1===t[0].__position?(this.hasMarketplaceResultsTarget&&t.splice(5,0,{appendApps:!0}
2),t.splice(1,0,{headingItem:!0})):t.splice(0,0,{headingItem:!0})),t}})])}configureMarketplaceSearch(){const e=document.querySelector("#search-marketplace-item").innerHTML;this.searchMarketplace=(0,c.A)({indexName:"dps.prod.applications.published",searchClient:this.searchClient}),this.searchMarketplace.addWidgets([(0,l.A)({hitsPerPage:12,query:this.getParameterByName("query"),filters:"hidden:false AND NOT customProps.isService:true"}),(0,J.A)({container:this.marketplaceResultsTarget,templates:{item:e,empty:""},transformItems:e=>{const t=e.filter(e=>"true"!==e.customProps.isService&&"true"!==e.customProps.usingBeta&&"true"!==e.customProps.hiddenForBeta);return t.splice(6,6),t}})])}renderSearchBox(e,t){const{query:r,refine:n}=e;t&&(this.searchTarget.addEventListener("submit",this.submitHandler.bind(this)),this.inputTarget.addEventListener("input",e=>{const t=e.target.value;n(t),this.hasMarketplaceResultsTarget&&this.searchMarketplace.helper.setQuery(t).setPage(0).search(),window.scrollTo(0,0)})),this.inputTarget.value=r}submitHandler(e){e.preventDefault()}getParameterByName(e){const t=window.location.href,r=e.replace(/\\/g,"\\\\").replace(/[\[\]]/g,"\\$&"),n=new RegExp(`[?&]${r}(=([^&#]*)|&|#|$)`).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}displayMarketplaceResults(){const e=this.marketplaceResultsTarget.querySelector(".c-search-apps__result"),t=document.querySelector("#marketplace-results"),r=document.querySelector("#apps-wrapper");t&&r&&(t.innerHTML=e?this.marketplaceResultsTarget.innerHTML:"",r.classList.toggle("u-hidden",!e))}}},1185(e,t,r){"use strict";r.r(t);
2var n=r(7578),i=r(5394),s=r(9916),a=r(2929),o=r(9729),c=r(7164);const u=class extends n.xI{static targets=["results","search","input"];connect(){this.initAlgoliaSearch(),this.inputTarget.addEventListener("keyup",this.openResults.bind(this)),this.searchTarget.addEventListener("keydown",this.jumpToFirstResult.bind(this)),this.resultsTarget.addEventListener("keydown",this.navigate.bind(this)),this.searchTarget.addEventListener("click",this.openResults.bind(this)),document.body.addEventListener("click",this.closeResults.bind(this))}initAlgoliaSearch(){this.configureSearch(),this.search.start()}configureSearch(){this.searchClient=(0,s.p)(this.element.dataset.appId,this.element.dataset.searchKey),this.search=(0,i.A)({indexName:this.element.dataset.searchIndex,searchClient:this.searchClient,searchFunction:e=>{e.state.query&&e.search()}});const e=document.querySelector("#search-results-item").innerHTML,t=document.querySelector("#search-results-empty").innerHTML,r=(0,c.A)(this.renderSearchBox.bind(this));this.search.addWidgets([(0,a.A)({hitsPerPage:10}),r({container:this.searchTarget}),(0,o.A)({container:this.resultsTarget,templates:{item:e,empty:t}})])}renderSearchBox(e,t){const{query:r,refine:n}=e;t&&this.inputTarget.addEventListener("input",e=>{const t=e.target.value;n(t),t?this.openResults():this.close()}),this.inputTarget.value=r}openResults(){""!==this.search.helper.state.query&&(this.resultsTarget.classList.add("v--shown"),this.element.classList.add("v--ov-shown"),this.searchTarget.classList.add("v--active"))}close(){this.resultsTarget.classList.remove("v--shown"),this.element.classList.remove("v--ov-shown"),this.searchTarget.classList.remove("v--active")}closeResults(e){this.searchTarget.contains(e.target)||this.resultsTarget.contains(e.target)||this.close()}jumpToFirstResult(e){if(40===e.keyCode){const t=this.resultsTarget.getElementsByTagName("a");e.preventDefault(),t.length&&t[0].focus()}}navigate(e){switch(e.keyCode){case 38:e.preventDefault(),document.activeElement.parentNode.previousSibling?document.activeElement.parentNode.previousSibling.children[0].focus():this.inputTarget.focus();break;case 40:e.preventDefault(),document.activeElement.parentNode.nextSibling&&document.activeElement.parentNode.nextSibling.children[0].focus()}}};r.d(t,["default",0,u])},9739(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{static targets=["toc","headline","list"];initialize(){this.listTarget.classList.add("u-hidden"),this.initializeObserver()}initializeObserver(){const e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.tocTarget.classList.remove("v--sticky"):this.tocTarget.classList.add("v--sticky")})});document.querySelectorAll(".t-legal-article__content > p:first-child").forEach(t=>{e.observe(t)})}displayTableofContents(){this.listTarget.classList.toggle("u-hidden")}};r.d(t,["default",0,i])},1254(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{static targets=["close","input"];connect(){this.inputTarget.addEventListener("focus",this.open.bind(this)),this.inputTarget.addEventListener("blur",this.close.bind(this))}open(){this.closeTarget.setAttribute("aria-expanded",!0),this.element.classList.add("v--unset"),this.closeTarget.classList.add("v--disabled")}close(){this.closeTarget.setAttribute("aria-expanded",!1),this.closeTarget.classList.remove("v--disabled"),this.element.classList.remove("v--unset")}};r.d(t,["default",0,i])},6208(e,t,r){"use strict";r.r(t);var n=r(7578);const i=class extends n.xI{static targets=["hidden","button"];showMore(){this.hiddenTargets.forEach(e=>{e.classList.remove("u-hidden")}),this.buttonTarget.classList.add("u-hidden")}};r.d(t,["default",0,i])},7785(e,t,r){"use strict";var n=r(9524),i=r(4811),s=r(6255),a=r(2728);e.exports=a||n.call(s,i)},4811(e){"use strict";e.exports=Function.prototype.apply},6255(e){"use strict";e.exports=Function.prototype.call},2427(e,t,r){"use strict";var n=r(9524),i=r(1102),s=r(6255),a=r(7785);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,s,e)}},2728(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7678(e,t,r){"use strict";var n,i=r(2427),s=r(5667);try{n=[].__proto__===Array.prototype}
2catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&s&&s(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(e){return c(null==e?e:o(e))}},8004(e){"use strict";e.exports=EvalError},1488(e){"use strict";e.exports=Error},6469(e){"use strict";e.exports=RangeError},2557(e){"use strict";e.exports=ReferenceError},3429(e){"use strict";e.exports=SyntaxError},1102(e){"use strict";e.exports=TypeError},5966(e){"use strict";e.exports=URIError},3254(e){"use strict";e.exports=Object},9276(){!function(){"use strict";function e(e){var t=!0,r=!1,n=null,i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function o(e){t=!1}function c(){document.addEventListener("mousemove",u),document.addEventListener("mousedown",u),document.addEventListener("mouseup",u),document.addEventListener("pointermove",u),document.addEventListener("pointerdown",u),document.addEventListener("pointerup",u),document.addEventListener("touchmove",u),document.addEventListener("touchstart",u),document.addEventListener("touchend",u)}function u(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",u),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",u),document.removeEventListener("pointermove",u),document.removeEventListener("pointerdown",u),document.removeEventListener("pointerup",u),document.removeEventListener("touchmove",u),document.removeEventListener("touchstart",u),document.removeEventListener("touchend",u))}document.addEventListener("keydown",function(r){r.metaKey||r.altKey||r.ctrlKey||(s(e.activeElement)&&a(e.activeElement),t=!0)},!0),document.addEventListener("mousedown",o,!0),document.addEventListener("pointerdown",o,!0),document.addEventListener("touchstart",o,!0),document.addEventListener("visibilitychange",function(e){"hidden"===document.visibilityState&&(r&&(t=!0),c())},!0),c(),e.addEventListener("focus",function(e){var r,n,o;s(e.target)&&(t||(r=e.target,n=r.type,"INPUT"===(o=r.tagName)&&i[n]&&!r.readOnly||"TEXTAREA"===o&&!r.readOnly||r.isContentEditable))&&a(e.target)},!0),e.addEventListener("blur",function(e){var t;s(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(n),n=window.setTimeout(function(){r=!1},100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))},!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},9992(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),o=r(0,i.length-a.length),c=[],u=0;u<o;u++)c[u]="$"+u;if(s=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,s.prototype=new l,l.prototype=null}return s}},9524(e,t,r){"use strict";var n=r(9992);e.exports=Function.prototype.bind||n},3752(e,t,r){"use strict";var n=r(3254);e.exports=n.getPrototypeOf||null},248(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},4252(e,t,r){"use strict";var n=r(248),i=r(3752),s=r(7678);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:s?function(e){return s(e)}:null},1333(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},5667(e,t,r){"use strict";var n=r(1333);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},1514(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(9712);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9712(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},2740(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(9524);e.exports=s.call(n,i)},4036(e,t){!function(e){var t=/\S/,r=/\"/g,n=/\n/g,i=/\r/g,s=/\\/g,a=/\u2028/,o=/\u2029/;function c(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function u(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function l(e,t,r){if(t.charAt(r)!=e.charAt(0))return!1;for(var n=1,i=e.length;n<i;n++)if(t.charAt(r+n)!=e.charAt(n))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,n){var i=r.length,s=0,a=null,o=null,h="",d=[],f=!1,p=0,m=0,g="{{",v="}}";function y(){h.length>0&&(d.push({tag:"_t",text:new String(h)}),h="")}function _(r,n){if(y(),r&&function(){for(var r=!0,n=m;n<d.length;n++)if(!(r=e.tags[d[n].tag]<e.tags._v||"_t"==d[n].tag&&null===d[n].text.match(t)))return!1;return r}())for(var i,s=m;s<d.length;s++)d[s].text&&((i=d[s+1])&&">"==i.tag&&(i.indent=d[s].text.toString()),d.splice(s,1));else n||d.push({tag:"\n"});f=!1,m=d.length}function b(e,t){var r="="+v,n=e.indexOf(r,t),i=u(e.substring(e.indexOf("=",t)+1,n)).split(" ");return g=i[0],v=i[i.length-1],n+r.length-1}for(n&&(n=n.split(" "),g=n[0],v=n[1]),p=0;p<i;p++)0==s?l(g,r,p)?(--p,y(),s=1):"\n"==r.charAt(p)?_(f):h+=r.charAt(p):1==s?(p+=g.length-1,"="==(a=(o=e.tags[r.charAt(p+1)])?r.charAt(p+1):"_v")?(p=b(r,p),s=0):(o&&p++,s=2),f=p):l(v,r,p)?(d.push({tag:a,n:u(h),otag:g,ctag:v,i:"/"==a?f-g.length:p+v.length}),h="",p+=v.length-1,s=0,"{"==a&&("}}"==v?p++:c(d[d.length-1]))):h+=r.charAt(p);return _(f,!0),d};var h={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,r,n,i){var s,a=[],o=null,c=null;for(s=n[n.length-1];t.length>0;){if(c=t.shift(),s&&"<"==s.tag&&!(c.tag in h))throw new Error("Illegal content in < super tag.");if(e.tags[c.tag]<=e.tags.$||f(c,i))n.push(c),c.nodes=d(t,c.tag,n,i);else{if("/"==c.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+c.n);if(o=n.pop(),c.n!=o.n&&!p(c.n,o.n,i))throw new Error("Nesting error: "+o.n+" vs. "+c.n);return o.end=c.i,a}"\n"==c.tag&&(c.last=0==t.length||"\n"==t[0].tag)}a.push(c)}if(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return a}function f(e,t){for(var r=0,n=t.length;r<n;r++)if(t[r].o==e.n)return e.tag="#",!0}function p(e,t,r){for(var n=0,i=r.length;n<i;n++)if(r[n].c==e&&r[n].o==t)return!0}function m(e){var t=[];for(var r in e.partials)t.push('"'+v(r)+'":{name:"'+v(e.partials[r].name)+'", '+m(e.partials[r])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var r in e)t.push('"'+v(r)+'": function(c,p,t,i) {'+e[r]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,r,n){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+m(t)+"}"};var g=0;function v(e){return e.replace(s,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(o,"\\u2029")}function y(e){return~e.indexOf(".")?"d":"f"}function _(e,t){var r="<"+(t.prefix||"")+e.n+g++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+v(r)+'",c,p,"'+(e.indent||"")+'"));',r}function b(e,t){t.code+="t.b(t.t(t."+y(e.n)+'("'+v(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,r,n){g=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),n.asString?this.stringify(i,r,n):this.makeTemplate(i,r,n)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,r){var n=this.makePartials(e);return n.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(n,t,this,r)},e.makePartials=function(e){var t,r={subs:{},partials:e.partials,name:e.name};for(t in r.partials)r.partials[t]=this.makePartials(r.partials[t]);for(t in e.subs)r.subs[t]=new Function("c","p","t","i",e.subs[t]);return r},e.codegen={"#":function(t,r){r.code+="if(t.s(t."+y(t.n)+'("'+v(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,r),r.code+="});c.pop();}"},"^":function(t,r){r.code+="if(!t.s(t."+y(t.n)+'("'+v(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,r),r.code+="};"},">":_,"<":function(t,r){var n={partials:{}
vendor: 7,146 bytes, line 2
2,code:"",subs:{},inPartial:!0};e.walk(t.nodes,n);var i=r.partials[_(t,r)];i.subs=n.subs,i.partials=n.partials},$:function(t,r){var n={subs:{},code:"",partials:r.partials,prefix:t.n};e.walk(t.nodes,n),r.subs[t.n]=n.code,r.inPartial||(r.code+='t.sub("'+v(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+v(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+v(e.text)+'"')},"{":b,"&":b},e.walk=function(t,r){for(var n,i=0,s=t.length;i<s;i++)(n=e.codegen[t[i].tag])&&n(t[i],r);return r},e.parse=function(e,t,r){return d(e,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,r){r=r||{};var n=e.cacheKey(t,r),i=this.cache[n];if(i){var s=i.partials;for(var a in s)delete s[a].instance;return i}return i=this.generate(this.parse(this.scan(t,r.delimiters),t,r),t,r),this.cache[n]=i}}(t)},2148(e,t,r){var n=r(4036);n.Template=r(4207).Template,n.template=n.Template,e.exports=n},4207(e,t){!function(e){function t(e,t,r){var n;return t&&"object"==typeof t&&(void 0!==t[e]?n=t[e]:r&&t.get&&"function"==typeof t.get&&(n=t.get(e))),n}e.Template=function(e,t,r,n){e=e||{},this.r=e.code||this.r,this.c=r,this.options=n||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,r){return""},v:function(e){return e=c(e),o.test(e)?e.replace(r,"&amp;").replace(n,"&lt;").replace(i,"&gt;").replace(s,"&#39;").replace(a,"&quot;"):e},t:c,render:function(e,t,r){return this.ri([e],t||{},r)},ri:function(e,t,r){return this.r(e,t,r)},ep:function(e,t){var r=this.partials[e],n=t[r.name];if(r.instance&&r.base==n)return r.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[e].base=n,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);n=function(e,t,r,n,i,s){function a(){}function o(){}var c;a.prototype=e,o.prototype=e.subs;var u=new a;for(c in u.subs=new o,u.subsText={},u.buf="",n=n||{},u.stackSubs=n,u.subsText=s,t)n[c]||(n[c]=t[c]);for(c in n)u.subs[c]=n[c];for(c in i=i||{},u.stackPartials=i,r)i[c]||(i[c]=r[c]);for(c in i)u.partials[c]=i[c];return u}(n,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=n,n},rp:function(e,t,r,n){var i=this.ep(e,r);return i?i.ri(t,r,n):""},rs:function(e,t,r){var n=e[e.length-1];if(u(n))for(var i=0;i<n.length;i++)e.push(n[i]),r(e,t,this),e.pop();else r(e,t,this)},s:function(e,t,r,n,i,s,a){var o;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,r,n,i,s,a)),o=!!e,!n&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,r,n,i){var s,a=e.split("."),o=this.f(a[0],r,n,i),c=this.options.modelGet,l=null;if("."===e&&u(r[r.length-2]))o=r[r.length-1];else for(var h=1;h<a.length;h++)void 0!==(s=t(a[h],o,c))?(l=o,o=s):o="";return!(i&&!o)&&(i||"function"!=typeof o||(r.push(l),o=this.mv(o,r,n),r.pop()),o)},f:function(e,r,n,i){for(var s=!1,a=!1,o=this.options.modelGet,c=r.length-1;c>=0;c--)if(void 0!==(s=t(e,r[c],o))){a=!0;break}return a?(i||"function"!=typeof s||(s=this.mv(s,r,n)),s):!i&&""},ls:function(e,t,r,n,i){var s=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,n)),t,r)),this.options.delimiters=s,!1},ct:function(e,t,r){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,r)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,r,n,i,s,a){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!n||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,r,o.substring(i,s),a)):u},mv:function(e,t,r){var n=t[t.length-1],i=e.call(n);return"function"==typeof i?this.ct(c(i.call(n)),n,r):i},sub:function(e,t,r,n){var i=this.subs[e];i&&(this.activeSub=e,i(t,r,this,n),this.activeSub=!1)}};var r=/&/g,n=/</g,i=/>/g,s=/\'/g,a=/\"/g,o=/[&<>\"\']/;function c(e){return String(e??"")}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},7412(e){"use strict";e.exports=Math.abs},2418(e){"use strict";e.exports=Math.floor},9313(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7958(e){"use strict";e.exports=Math.max},5003(e){"use strict";e.exports=Math.min},250(e){"use strict";e.exports=Math.pow},1844(e){"use strict";e.exports=Math.round},7279(e,t,r){"use strict";var n=r(9313);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},8311(e,t,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&c&&"function"==typeof c.get?c.get:null,l=o&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,O=Array.prototype.join,E=Array.prototype.slice,R=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-R(-e):R(e);if(n!==e){var i=String(n),s=y.call(t,i.length+1);return _.call(i,r,"$&_")+"."+_.call(_.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var M=r(4058),N=M.custom,L=q(N)?N:null,D={__proto__:null,double:'"',single:"'"},H={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,i=D[n];return i+e+i}function V(e){return _.call(String(e),/"/g,"&quot;")}function $(e){return!j||!("object"==typeof e&&(j in e||void 0!==e[j]))}function B(e){return"[object Array]"===K(e)&&$(e)}function W(e){return"[object RegExp]"===K(e)&&$(e)}function q(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
vendor: 6,384 bytes, line 2
2if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,o){var c=n||{};if(z(c,"quoteStyle")&&!z(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return X(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return b?I(t,x):x}if("bigint"==typeof t){var R=String(t)+"n";return b?I(t,R):R}var P=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var N,H=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(c,i);if(void 0===o)o=[];else if(J(o,t)>=0)return"[Circular]";function Q(t,r,n){if(r&&(o=E.call(o)).push(r),n){var s={depth:c.depth};return z(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),e(t,s,i+1,o)}return e(t,c,i+1,o)}if("function"==typeof t&&!W(t)){var G=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,Q);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(ne.length>0?" { "+O.call(ne,", ")+" }":"")}if(q(t)){var ie=k?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||k?ie:Y(ie)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var se="<"+w.call(String(t.nodeName)),ae=t.attributes||[],oe=0;oe<ae.length;oe++)se+=" "+ae[oe].name+"="+U(V(ae[oe].value),"double",c);return se+=">",t.childNodes&&t.childNodes.length&&(se+="..."),se+"</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ce=re(t,Q);return H&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,H)+"]":"[ "+O.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&$(e)}(t)){var ue=re(t,Q);return"cause"in Error.prototype||!("cause"in t)||F.call(t,"cause")?0===ue.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ue,", ")+" }":"{ ["+String(t)+"] "+O.call(S.call("[cause]: "+Q(t.cause),ue),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&M)return M(t,{depth:P-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,r){le.push(Q(r,t,!0)+" => "+Q(e,t))}),ee("Map",s.call(t),le,H)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var he=[];return l&&l.call(t,function(e){he.push(Q(e,t))}),ee("Set",u.call(t),he,H)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===K(e)&&$(e)}(t))return Y(Q(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Y(Q(T.call(t)));if(function(e){return"[object Boolean]"===K(e)&&$(e)}(t))return Y(p.call(t));if(function(e){return"[object String]"===K(e)&&$(e)}(t))return Y(Q(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&$(e)}(t)&&!W(t)){var de=re(t,Q),fe=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",me=!fe&&j&&Object(t)===t&&j in t?y.call(K(t),8,-1):pe?"Object":"",ge=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||pe?"["+O.call(S.call([],me||[],pe||[]),": ")+"] ":"");return 0===de.length?ge+"{}":H?ge+"{"+te(de,H)+"}":ge+"{ "+O.call(de,", ")+" }"}return String(t)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return Q.call(e,t)}function K(e){return m.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function X(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return X(y.call(e,0,t.maxStringLength),t)+n}var i=H[t.quoteStyle||"single"];return i.lastIndex=0,U(_.call(_.call(e,i,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Y(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):O.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=z(e,i)?t(e[i],e):""}var s,a="function"==typeof P?P(e):[];if(k){s={};for(var o=0;o<a.length;o++)s["$"+a[o]]=a[o]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&s["$"+c
vendor: 4,135 bytes, line 2
2]instanceof Symbol||(x.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof P)for(var u=0;u<a.length;u++)F.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},8542(e,t,r){"use strict";r.d(t,{FK:()=>R,XX:()=>K,_3:()=>E,fF:()=>i,h:()=>S,n:()=>S,uA:()=>T});var n,i,s,a,o,c,u,l,h,d,f,p,m,g,v={},y=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function w(e,t){for(var r in t)e[r]=t[r];return e}function x(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function S(e,t,r){var i,s,a,o={};for(a in t)"key"==a?i=t[a]:"ref"==a?s=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return O(e,o,i,s,null)}function O(e,t,r,n,a){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++s,__i:-1,__u:0};return null==a&&null!=i.vnode&&i.vnode(o),o}function E(){return{current:null}}function R(e){return e.children}function T(e,t){this.props=e,this.context=t}function P(e,t){if(null==t)return e.__?P(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?P(e):null}function A(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],s=[],a=w({},t);a.__v=t.__v+1,i.vnode&&i.vnode(a),U(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??P(t),!!(32&t.__u),s),a.__v=t.__v,a.__.__k[a.__i]=a,$(n,a,s),t.__e=t.__=null,a.__e!=r&&k(a)}}function k(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),k(e)}function j(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!F.__r++||o!=i.debounceRendering)&&((o=i.debounceRendering)||c)(F)}function F(){try{for(var e,t=1;a.length;)a.length>t&&a.sort(u),e=a.shift(),t=a.length,A(e)}finally{a.length=F.__r=0}}function C(e,t,r,n,i,s,a,o,c,u,l){var h,d,f,p,m,g,_=n&&n.__k||y,b=t.length;for(c=I(r,t,_,c,b),h=0;h<b;h++)null!=(f=r.__k[h])&&(d=-1!=f.__i&&_[f.__i]||v,f.__i=h,g=U(e,f,d,i,s,a,o,c,u,l),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&q(d.ref,null,f),l.push(f.ref,f.__c||p,f)),null==m&&null!=p&&(m=p),4&f.__u?(c=M(f,c,e),d.__e&&(d.__e=null)):"function"==typeof f.type&&void 0!==g?c=g:p&&(c=p.nextSibling),f.__u&=-7);return r.__e=m,c}function I(e,t,r,n,i){var s,a,o,c,u,l=r.length,h=l,d=0;for(e.__k=new Array(i),s=0;s<i;s++)null!=(a=t[s])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[s]=O(null,a,null,null,null):b(a)?a=e.__k[s]=O(R,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[s]=O(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[s]=a,c=s+d,a.__=e,a.__b=e.__b+1,o=null,-1!=(u=a.__i=N(a,r,c,h))&&(h--,(o=r[u])&&(o.__u|=2)),null==o||null==o.__v?(-1==u&&(i>l?d--:i<l&&d++),"function"!=typeof a.type&&(a.__u|=4)):u!=c&&(u==c-1?d--:u==c+1?d++:(u>c?d--:d++,a.__u|=4))):e.__k[s]=null;if(h)for(s=0;s<l;s++)null!=(o=r[s])&&!(2&o.__u)&&(o.__e==n&&(n=P(o)),Q(o,o));return n}function M(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=M(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=P(e)),t=r.insertBefore(e.__e,t||null));do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function N(e,t,r,n){var i,s,a,o=e.key,c=e.type,u=t[r],l=null!=u&&!(2&u.__u);if(null===u&&null==o||l&&o==u.key&&c==u.type)return r;if(n>(l?1:0))for(i=r-1,s=r+1;i>=0||s<t.length;)if(null!=(u=t[a=i>=0?i--:s++])&&!(2&u.__u)&&o==u.key&&c==u.type)return a;return-1}function L(e,t,r){"-"==t[0]?e.setProperty(t,r??""):e[t]=null==r?"":"number"!=typeof r||_.test(t)?r:r+"px"}function D(e,t,r,n,i){var s,a;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||L(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||L(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(f,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}
vendor: 6,395 bytes, line 2
2),e.l[t+s]=r,r?n?r[d]=n[d]:(r[d]=p,e.addEventListener(t,s?g:m,s)):e.removeEventListener(t,s?g:m,s);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=r??"";break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function H(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t[h])t[h]=p++;else if(t[h]<r[d])return;return r(i.event?i.event(t):t)}}}function U(e,t,r,n,s,a,o,c,u,l){var h,d,f,p,m,g,v,_,S,O,E,A,k,j,F,I,M=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(u=!!(32&r.__u),a=[c=t.__e=r.__e]),(h=i.__b)&&h(t);e:if("function"==typeof M){d=o.length;try{if(S=t.props,O=M.prototype&&M.prototype.render,E=(h=M.contextType)&&n[h.__c],A=h?E?E.props.value:h.__:n,r.__c?_=(f=t.__c=r.__c).__=f.__E:(O?t.__c=f=new M(S,A):(t.__c=f=new T(S,A),f.constructor=M,f.render=z),E&&E.sub(f),f.state||(f.state={}),f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),O&&null==f.__s&&(f.__s=f.state),O&&null!=M.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=w({},f.__s)),w(f.__s,M.getDerivedStateFromProps(S,f.__s))),m=f.props,g=f.state,f.__v=t,p)O&&null==M.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),O&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(O&&null==M.getDerivedStateFromProps&&S!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(S,A),t.__v==r.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(S,f.__s,A)){t.__v!=r.__v&&(f.props=S,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),y.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f),c=P(r);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(S,f.__s,A),O&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(m,g,v)})}if(f.context=A,f.props=S,f.__P=e,f.__e=!1,k=i.__r,j=0,O)f.state=f.__s,f.__d=!1,k&&k(t),h=f.render(f.props,f.state,f.context),y.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,k&&k(t),h=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++j<25);f.state=f.__s,null!=f.getChildContext&&(n=w(w({},n),f.getChildContext())),O&&!p&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(m,g)),F=null!=h&&h.type===R&&null==h.key?B(h.props.children):h,c=C(e,b(F)?F:[F],t,r,n,s,a,o,c,u,l),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__E=f.__=null)}catch(e){if(o.length=d,t.__v=null,u||null!=a){if(e.then){for(t.__u|=u?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;null!=a&&(a[a.indexOf(c)]=null),t.__e=c}else if(null!=a)for(I=a.length;I--;)x(a[I])}else t.__e=r.__e;null==t.__k&&(t.__k=r.__k||[]),e.then||V(t),i.__e(e,t,r)}}else null==a&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=W(r.__e,t,r,n,s,a,o,u,l);return(h=i.diffed)&&h(t),128&t.__u?void 0:c}function V(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(V))}function $(e,t,r){for(var n=0;n<r.length;n++)q(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function B(e){return"object"!=typeof e||null==e||e.__b>0?e:b(e)?e.map(B):void 0!==e.constructor?null:w({},e)}function W(e,t,r,s,a,o,c,u,l){var h,d,f,p,m,g,y,_=r.props||v,w=t.props,S=t.type;if("svg"==S?a="http://www.w3.org/2000/svg":"math"==S?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=o)for(h=0;h<o.length;h++)if((m=o[h])&&"setAttribute"in m==!!S&&(S?m.localName==S:3==m.nodeType)){e=m,o[h]=null;break}if(null==e){if(null==S)return document.createTextNode(w);e=document.createElementNS(a,S,w.is&&w),u&&(i.__m&&i.__m(t,o),u=!1),o=null}if(null==S)_===w||u&&e.data==w||(e.data=w);else{if(o="textarea"==S&&null!=w.defaultValue?null:o&&n.call(e.childNodes),!u&&null!=o)for(_={},h=0;h<e.attributes.length;h++)_[(m=e.attributes[h]).name]=m.value;for(h in _)m=_[h],"dangerouslySetInnerHTML"==h?f=m:"children"==h||h in w||"value"==h&&"defaultValue"in w||"checked"==h&&"defaultChecked"in w||D(e,h,null,m,a);for(h in w)m=w[h],"children"==h?p=m:"dangerouslySetInnerHTML"==h?d=m:"value"==h?g=m:"checked"==h?y=m:u&&"function"!=typeof m||_[h]===m||D(e,h,m,_[h],a);if(d)u||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),C("template"==t.type?e.content:e,b(p)?p:[p],t,r,s,"foreignObject"==S?"http://www.w3.org/1999/xhtml":a,o,c,o?o[0]:r.__k&&P(r,0),u,l),null!=o)for(h=o.length;h--;)x(o[h]);u&&"textarea"!=S||(h="value","progress"==S&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[h]||"progress"==S&&!g||"option"==S&&g!=_[h])&&D(e,h,g,_[h],a),h="checked",null!=y&&y!=e[h]&&D(e,h,y,_[h],a))}return e}function q(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,r)}}function Q(e,t,r){var n,s;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||q(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=n.__n=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&Q(n[s],t,r||"function"!=typeof e.type);r||x(e.__e),e.__c=e.__=e.__e=void 0}function z(e,t,r){return this.constructor(e,r)}function K(e,t,r){var s,a,o,c;t==document&&(t=document.documentElement),i.__&&i.__(e,t),a=(s="function"==typeof r)?null:r&&r.__k||t.__k,o=[],c=[],U(t,e=(!s&&r||t).__k=S(R,null,[e]),a||v,v,t.namespaceURI,!s&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,o,!s&&r?r:a?a.__e:t.firstChild,s,c),$(o,e,c),e.props.children=null}n=y.slice,i={__e:function(e,t,r,n){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},s=0,T.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},r),this.props)),e&&w(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),j(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),j(this))},T.prototype.render=R,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
2ise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,l=Math.random().toString(8),h="__d"+l,d="__a"+l,f=/(PointerCapture)$|Capture$/i,p=0,m=H(!1),g=H(!0)},9860(){!function(e,t){"use strict";var r=function(e){this.elem=e};r.init=function(){var e,n=t.querySelectorAll("[data-sharer]"),i=n.length;for(e=0;e<i;e++)n[e].addEventListener("click",r.add)},r.add=function(e){var t=e.currentTarget||e.srcElement;new r(t).share()},r.prototype={constructor:r,getValue:function(e){var t=this.elem.getAttribute("data-"+e);return t&&"hashtag"===e&&(t.startsWith("#")||(t="#"+t)),null===t?"":t},share:function(){var e=this.getValue("sharer").toLowerCase(),t={facebook:{shareUrl:"https://www.facebook.com/sharer/sharer.php",params:{u:this.getValue("url"),hashtag:this.getValue("hashtag"),quote:this.getValue("quote")}},linkedin:{shareUrl:"https://www.linkedin.com/shareArticle",params:{url:this.getValue("url"),mini:!0}},twitter:{shareUrl:"https://twitter.com/intent/tweet",params:{text:this.getValue("title"),url:this.getValue("url"),hashtags:this.getValue("hashtags"),via:this.getValue("via"),related:this.getValue("related"),in_reply_to:this.getValue("in_reply_to")}},x:{shareUrl:"https://x.com/intent/tweet",params:{text:this.getValue("title"),url:this.getValue("url"),hashtags:this.getValue("hashtags"),via:this.getValue("via"),related:this.getValue("related"),in_reply_to:this.getValue("in_reply_to")}},threads:{shareUrl:"https://threads.net/intent/post",params:{text:this.getValue("title")+" "+this.getValue("url")}},bluesky:{shareUrl:"https://bsky.app/intent/compose",params:{text:this.getValue("title")+" "+this.getValue("url")}},email:{shareUrl:"mailto:"+this.getValue("to"),params:{subject:this.getValue("subject"),body:this.getValue("title")+"\n"+this.getValue("url")}},whatsapp:{shareUrl:"true"===this.getValue("web")
vendor: 5,443 bytes, line 2
2?"https://web.whatsapp.com/send":"https://wa.me/",params:{phone:this.getValue("to"),text:this.getValue("title")+" "+this.getValue("url")}},telegram:{shareUrl:"https://t.me/share",params:{text:this.getValue("title"),url:this.getValue("url")}},viber:{shareUrl:"viber://forward",params:{text:this.getValue("title")+" "+this.getValue("url")}},line:{shareUrl:"http://line.me/R/msg/text/?"+encodeURIComponent(this.getValue("title")+" "+this.getValue("url"))},pinterest:{shareUrl:"https://www.pinterest.com/pin/create/button/",params:{url:this.getValue("url"),media:this.getValue("image"),description:this.getValue("description")}},tumblr:{shareUrl:"http://tumblr.com/widgets/share/tool",params:{canonicalUrl:this.getValue("url"),content:this.getValue("url"),posttype:"link",title:this.getValue("title"),caption:this.getValue("caption"),tags:this.getValue("tags")}},hackernews:{shareUrl:"https://news.ycombinator.com/submitlink",params:{u:this.getValue("url"),t:this.getValue("title")}},reddit:{shareUrl:"https://www.reddit.com/submit",params:{url:this.getValue("url"),title:this.getValue("title")}},vk:{shareUrl:"http://vk.com/share.php",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("caption"),image:this.getValue("image")}},xing:{shareUrl:"https://www.xing.com/social/share/spi",params:{url:this.getValue("url")}},buffer:{shareUrl:"https://buffer.com/add",params:{url:this.getValue("url"),title:this.getValue("title"),via:this.getValue("via"),picture:this.getValue("picture")}},instapaper:{shareUrl:"http://www.instapaper.com/edit",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("description")}},pocket:{shareUrl:"https://getpocket.com/save",params:{url:this.getValue("url")}},mashable:{shareUrl:"https://mashable.com/submit",params:{url:this.getValue("url"),title:this.getValue("title")}},mix:{shareUrl:"https://mix.com/add",params:{url:this.getValue("url")}},flipboard:{shareUrl:"https://share.flipboard.com/bookmarklet/popout",params:{v:2,title:this.getValue("title"),url:this.getValue("url"),t:Date.now()}},weibo:{shareUrl:"http://service.weibo.com/share/share.php",params:{url:this.getValue("url"),title:this.getValue("title"),pic:this.getValue("image"),appkey:this.getValue("appkey"),ralateUid:this.getValue("ralateuid"),language:"zh_cn"}},blogger:{shareUrl:"https://www.blogger.com/blog-this.g",params:{u:this.getValue("url"),n:this.getValue("title"),t:this.getValue("description")}},baidu:{shareUrl:"http://cang.baidu.com/do/add",params:{it:this.getValue("title"),iu:this.getValue("url")}},douban:{shareUrl:"https://www.douban.com/share/service",params:{name:this.getValue("name"),href:this.getValue("url"),image:this.getValue("image"),comment:this.getValue("description")}},okru:{shareUrl:"https://connect.ok.ru/dk",params:{"st.cmd":"WidgetSharePreview","st.shareUrl":this.getValue("url"),title:this.getValue("title")}},mailru:{shareUrl:"http://connect.mail.ru/share",params:{share_url:this.getValue("url"),linkname:this.getValue("title"),linknote:this.getValue("description"),type:"page"}},evernote:{shareUrl:"https://www.evernote.com/clip.action",params:{url:this.getValue("url"),title:this.getValue("title")}},skype:{shareUrl:"https://web.skype.com/share",params:{url:this.getValue("url"),title:this.getValue("title")}},delicious:{shareUrl:"https://del.icio.us/post",params:{url:this.getValue("url"),title:this.getValue("title")}},sms:{shareUrl:"sms://",params:{body:this.getValue("body")}},trello:{shareUrl:"https://trello.com/add-card",params:{url:this.getValue("url"),name:this.getValue("title"),desc:this.getValue("description"),mode:"popup"}},messenger:{shareUrl:"fb-messenger://share",params:{link:this.getValue("url")}},odnoklassniki:{shareUrl:"https://connect.ok.ru/dk",params:{"st.cmd":"WidgetSharePreview","st.deprecated":1,"st.shareUrl":this.getValue("url")}},meneame:{shareUrl:"https://www.meneame.net/submit",params:{url:this.getValue("url")}},diaspora:{shareUrl:"https://share.diasporafoundation.org",params:{title:this.getValue("title"),url:this.getValue("url")}},googlebookmarks:{shareUrl:"https://www.google.com/bookmarks/mark",params:{op:"edit",bkmk:this.getValue("url"),title:this.getValue("title")}},qzone:{shareUrl:"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",params:{url:this.getValue("url")}},refind:{shareUrl:"https://refind.com",params:{url:this.getValue("url")}},surfingbird:{shareUrl:"https://surfingbird.ru/share",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("description")}},yahoomail:{shareUrl:"http://compose.mail.yahoo.com",params:{to:this.getValue("to"),subject:this.getValue("subject"),body:this.getValue("body")}},wordpress:{shareUrl:"https://wordpress.com/wp-admin/press-this.php",params:{u:this.getValue("url"),t:this.getValue("title"),s:this.getValue("title")}},amazon:{shareUrl:"https://www.amazon.com/gp/wishlist/static-add",params:{u:this.getValue("url"),t:this.getValue("title")}},pinboard:{shareUrl:"https://pinboard.in/add",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("description")}},threema:{shareUrl:"threema://compose",params:{text:this.getValue("text"),id:this.getValue("id")}},kakaostory:{shareUrl:"https://story.kakao.com/share",params:{url:this.getValue("url")}},yummly:{shareUrl:"http://www.yummly.com/urb/verify",params:{url:this.getValue("url"),title:this.getValue("title"),yumtype:"button"}}}
2[e];return t&&(t.width=this.getValue("width"),t.height=this.getValue("height")),void 0!==t&&this.urlSharer(t)},urlSharer:function(t){var r,n=t.params||{},i=Object.keys(n),s=i.length>0?"?":"";for(r=0;r<i.length;r++)"?"!==s&&(s+="&"),n[i[r]]&&(s+=i[r]+"="+encodeURIComponent(n[i[r]]));t.shareUrl+=s;var a="true"===this.getValue("link"),o="true"===this.getValue("blank");if(a)o?e.open(t.shareUrl,"_blank"):e.location.href=t.shareUrl;else{var c=t.width||600,u=t.height||480,l=e.innerWidth/2-c/2+e.screenX,h="scrollbars=no, width="+c+", height="+u+", top="+(e.innerHeight/2-u/2+e.screenY)+", left="+l,d=e.open(t.shareUrl,"",h);e.focus&&d.focus()}}},"complete"===t.readyState||"loading"!==t.readyState?r.init():t.addEventListener("DOMContentLoaded",r.init),e.Sharer=r}(window,document)},3902(e,t,r){"use strict";var n=r(8311),i=r(1102),s=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=function(e,t){if(e)return s(e,t,!0)}(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var r=s(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!s(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=s(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},6475(e,t,r){const n={"./app-showcase_controller.js":4703,"./attribute_controller.js":8794,"./chat-widget_controller.js":1813,"./copy-button_controller.js":4798,"./highlight-signup_controller.js":3551,"./lazyplay_controller.js":6470,"./menu_controller.js":7252,"./progressive-image_controller.js":4115,"./show_controller.js":3125,"./signup_controller.js":3862,"./tippy_controller.js":2401,"./tour_controller.js":7152,"./track_controller.js":6839};function i(e){const t=s(e);return r(t)}function s(e){if(!r.o(n,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=6475},5646(e,t,r){const n={"./accordion-tile_controller.js":2228,"./algolia-search-results/get-query-string.js":5673,"./algolia-search-results/render-pagination.js":8441,"./algolia-search-results_controller.js":3675,"./algolia-search_controller.js":1185,"./legal-toc_controller.js":9739,"./mobile-search_controller.js":1254,"./show-more-elements_controller.js":6208};function i(e){const t=s(e);return r(t)}function s(e){if(!r.o(n,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=5646},4058(){},1161(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},8642(e,t,r){"use strict";
2function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}r.d(t,{_:()=>a});var s=r(9392);function a(e,t,r){return t=n(t),a=e,!(o=i()?Reflect.construct(t,r||[],n(e).constructor):t.apply(e,r))||"object"!==(0,s._)(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a):o;var a,o}},3304(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},1901(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>i})},7837(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{_:()=>n})},1653(e,t,r){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{_:()=>n})},9797(e,t,r){"use strict";
2function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)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}}),t&&n(e,t)}r.d(t,{_:()=>i})},7716(e,t,r){"use strict";function n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{_:()=>n})},7655(e,t,r){"use strict";function n(e){if(null==e)throw new TypeError("Cannot destructure "+e);return e}r.d(t,{_:()=>n})},7371(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(7837);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},5662(e,t,r){"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},1195(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i,s={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(e),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n]);return s}if(s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.getOwnPropertyNames(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n]);return s}r.d(t,{_:()=>n})},1265(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(9680);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s=[],a=!0,o=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(s.push(n.value),!t||s.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(o)throw i}}return s}}(e,t)||(0,n._)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3604(e,t,r){"use strict";r.d(t,{_:()=>s});var n=r(1161),i=r(9680);function s(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i._)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9392(e,t,r){"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},9680(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(1161);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n._)(e,t):void 0}}},9916(e,t,r){"use strict";function n(e){let t;const r=`algolia-client-js-${e.key}`;function n(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function i(){return JSON.parse(n().getItem(r)||"{}")}function s(){return new Promise(e=>setTimeout(e,0))}return{get:(t,a,o={miss:()=>Promise.resolve()})=>s().then(()=>{const{namespace:s,changed:c}=function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=i(),n=(new Date).getTime();let s=!1;return{namespace:Object.fromEntries(Object.entries(r).filter(([,e])=>e&&void 0!==e.timestamp?!(t&&e.timestamp+t<n&&(s=!0,1)):(s=!0,!1))),changed:s}}(),u=s[JSON.stringify(t)];return c&&function(e){n().setItem(r,JSON.stringify(e))}(s),u?u.value:a().then(e=>o.miss(e).then(()=>e))}),set:(e,t)=>s().then(()=>{const s=i();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},n().setItem(r,JSON.stringify(s)),t}),delete:e=>s().then(()=>{const t=i();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{n().removeItem(r)})}}function i(e){const t=[...e.caches],r=t.shift();return void 0===r?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,s={miss:()=>Promise.resolve()})=>r.get(e,n,s).catch(()=>
2i({caches:t}).get(e,n,s)),set:(e,n)=>r.set(e,n).catch(()=>i({caches:t}).set(e,n)),delete:e=>r.delete(e).catch(()=>i({caches:t}).delete(e)),clear:()=>r.clear().catch(()=>i({caches:t}).clear())}}function s(e={serializable:!0}){let t={};return{get(r,n,i={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const a=n();return a.then(e=>i.miss(e)).then(()=>a)},set:(r,n)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function a({algoliaAgents:e,client:t,version:r}){const n=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach(e=>n.add(e)),n}r.d(t,{p:()=>M});var o=class{data=[];eventType="";lastEventId=null;retry=null;decode(e){if(""===e)return this.dispatch();if(":"===e[0])return null;const t=e.indexOf(":");let r,n;switch(-1===t?(r=e,n=""):(r=e.slice(0,t),n=e.slice(t+1)," "===n[0]&&(n=n.slice(1))),r){case"data":this.data.push(n);break;case"event":this.eventType=n;break;case"id":n.includes("\0")||(this.lastEventId=n);break;case"retry":/^[0-9]+$/.test(n)&&(this.retry=parseInt(n,10))}return null}dispatch(){const e=this.eventType;if(this.eventType="",0===this.data.length)return null;const t={data:this.data.join("\n"),event:e,id:this.lastEventId,retry:this.retry};return this.data=[],t}};async function*c(e){const t=new o;for await(const r of async function*(e){const t=new TextDecoder("utf-8"),r=[];let n=0,i=!1,s=!0;for await(const a of function(e){return Symbol.asyncIterator in e?e:async function*(e){const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}(e)}(e)){const e=t.decode(a,{stream:!0});let o=0;for(i&&(i=!1,e.length>0&&"\n"===e[0]&&(o=1));o<e.length;){const t=e.indexOf("\r",o),a=e.indexOf("\n",o);if(-1===t&&-1===a){const t=e.slice(o);if(r.push(t),n+=t.length,n>10485760)throw new Error("SSE line buffer exceeded 10MB");break}let c,u;-1!==t&&(-1===a||t<a)?(c=t,t+1<e.length?u="\n"===e[t+1]?2:1:(i=!0,u=1)):(c=a,u=1);const l=e.slice(o,c);r.push(l);let h=1===r.length?r[0]:r.join("");r.length=0,n=0,s&&(h.startsWith("\ufeff")&&(h=h.slice(1)),s=!1),yield h,o=c+u}}const a=t.decode();if(a&&r.push(a),r.length>0){let e=r.join("");s&&e.startsWith("\ufeff")&&(e=e.slice(1)),yield e}}(e)){const e=t.decode(r);null!==e&&(yield e)}}var u=12e4;function l(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>u},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=u}}}var h=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},d=class extends h{stackTrace;correlationId;constructor(e,t,r,n){super(n?`${e} (Correlation-ID: ${n})`:e,r),this.stackTrace=t,this.correlationId=n}},f=class extends d{constructor(e,t){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError",t)}},p=class extends d{status;constructor(e,t,r,n="ApiError",i){super(e,r,n,i),this.status=t}},m=class extends h{response;correlationId;constructor(e,t,r){super(r?`${e} (Correlation-ID: ${r})`:e,"DeserializationError"),this.response=t,this.correlationId=r}},g=class extends p{error;constructor(e,t,r,n,i){super(e,t,n,"DetailedApiError",i),this.error=r}};function v(e,t,r){const n=(i=r,Object.keys(i).filter(e=>void 0!==i[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(i[e])?i[e].join(","):i[e]).replace(/\+/g,"%20")}`).join("&"));var i;let s=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return n.length&&(s+=`?${n}`),s}function y(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function _(e,t,r){const n={Accept:"application/json",...e,...t,...r},i={};
2return Object.keys(n).forEach(e=>{const t=n[e];i[e.toLowerCase()]=t}),i}function b(e){if(204!==e.status&&0!==e.content.length)try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e,w(e.headers))}}function w(e){if(!e)return;if(void 0!==e["correlation-id"])return e["correlation-id"];const t=Object.keys(e).find(e=>"correlation-id"===e.toLowerCase());return void 0===t?void 0:e[t]}var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function S(){var e;let t="";if("function"==typeof(null==(e=globalThis.crypto)?void 0:e.getRandomValues)){const e=new Uint8Array(11);globalThis.crypto.getRandomValues(e);for(const r of e)t+=x[r%62];return t}for(let e=0;e<11;e++)t+=x[Math.floor(62*Math.random())];return t}var O=1e3;function E({status:e}){return 429===~~e}var R=/^HTTP 429(?:\D|$)/;function T(e){return"object"==typeof e&&null!==e&&"status"in e?E(e):e instanceof Error&&R.test(e.message)}function P(e){if("object"==typeof e&&null!==e&&"headers"in e)return e.headers}function A(e){var t;const r=null==(t=null==e?void 0:e["retry-after"])?void 0:t.trim();if(void 0===r||0===r.length)return O;if(!/^\d+$/.test(r))return O;const n=Number.parseInt(r,10);return n<=0?O:1e3*n}function k(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function j(e,t,r){if(null==r||"string"==typeof r&&0===r.length)throw new Error(`Parameter \`${e}\` is required when calling \`${t}\`.`)}function F(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let e=r.indexOf(": ");e>0&&(t[r.slice(0,e).toLowerCase()]=r.slice(e+2))}return t}var C="5.59.0";function I(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1)),i=e[r];t[r]=e[n],t[n]=i}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function M(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");const{compression:o,...u}=r||{};return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){const s=function(e,t,r="WithinHeaders"){const n={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?n:{},queryParameters:()=>"WithinQueryParameters"===r?n:{}}}(e,t,r),o=function({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:i,algoliaAgent:s,timeouts:a,requester:o,requestsCache:u,responsesCache:h,compress:d,compression:m,requestIdChannel:x,maxRateLimitRetries:O=3}){function R(e,t){void 0===x||void 0!==e["request-id"]||Object.keys(t).some(e=>"x-algolia-request-id"===e.toLowerCase())||("headers"===x?e["request-id"]=S():t["x-algolia-request-id"]=S())}const j=e=>new Promise(t=>{setTimeout(t,e)});async function F(e){const r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(l(e))))),n=r.filter(e=>e.isUp()),i=r.filter(e=>e.isTimedOut()),s=[...n,...i];return{hosts:s.length>0?s:e,getTimeout:(e,t)=>(0===i.length&&0===e?1:i.length+3+e)*t}}async function C(c,u,h){const b=[],x=y(c,u),S=_(r,c.headers,u.headers),T="gzip"===m&&void 0!==x&&x.length>750&&("POST"===c.method||"PUT"===c.method);T&&void 0===d&&n.info("Compression is disabled because no compress method is available.");const P=T&&void 0!==d,C=P?await d(x):x;P&&(S["content-encoding"]="gzip");const I="GET"===c.method?{...c.data,...u.data}:{},M={...i,...c.queryParameters,...I};if(s.value&&(M["x-algolia-agent"]=s.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?M[e]=u.queryParameters[e].toString():M[e]=u.queryParameters[e];R(S,M);let N=0,L=O;const D=async(e,r)=>{const i=e.pop();if(void 0===i)throw new f(function(e){return e.map(e=>k(e))}(b),function(e){for(let t=e.length-1;t>=0;t--){const r=w(e[t].response.headers);if(void 0!==r)return r}}(b));const s={...a,...u.timeouts},d={data:C,headers:S,method:c.method,url:v(i,c.path,M),connectTimeout:r(N,s.connect),responseTimeout:r(N,h?s.read:s.write)},m=t=>{const r={request:d,response:t,host:i,triesLeft:e.length};return b.push(r),r},y=await o.send(d);if(E(y)&&L>0){L--,e.push(i);const t=m(y),s=A(y.headers);return n.info("Retryable failure",{...k(t),wait:s,rateLimitRetriesLeft:L}),await j(s),D(e,r)}if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0===~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(y)){const s=m(y);return y.isTimedOut&&N++,n.info("Retryable failure",k(s)),await t.set(i,l(i,y.isTimedOut?"timed out":"down")),D(e,r)}if(function({status:e}){return 2==~~(e/100)}(y))return y;throw m(y),function(e,t){const{content:r,status:n}=e,i=w(e.headers);try{const e=JSON.parse(r);return"error"in e?new g(e.message,n,e.error,t,i):new p(e.message,n,t,"ApiError",i)}catch{}return new p(r,n,t,"ApiError",i)}(y,b)},H=e.filter(e=>"readWrite"===e.accept||(h?"read"===e.accept:"write"===e.accept)),U=await F(H);return D([...U.hosts].reverse(),U.getTimeout)}return{hostsCache:t,requester:o,timeouts:a,logger:n,algoliaAgent:s,baseHeaders:r,baseQueryParameters:i,requestIdChannel:x,hosts:e,maxRateLimitRetries:O,request:function(e,t={}){const n=()=>C(e,t,s).then(e=>b(e)),s=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return n();const a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return h.get(a,()=>u.get(a,()=>u.set(a,n()).then(e=>Promise.all([u.delete(a),e]),e=>Promise.all([u.delete(a),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>h.set(a,e)})},requestWithHttpInfo:function(e,t={}){return C(e,t,e.useReadTransporter||"GET"===e.method).then(e=>function(e){return{status:e.status,headers:e.headers,content:e.content,data:b(e)}}(e))},requestStream:async function*(t,u={}){if(!o.sendStream)throw new Error("This requester does not support streaming");const l=y(t,u),h=_(r,t.headers,u.headers);h.accept="text/event-stream";const d="GET"===t.method?{...t.data,...u.data}:{},p={...i,...t.queryParameters,...d};if(s.value&&(p["x-algolia-agent"]=s.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?p[e]=u.queryParameters[e].toString():p[e]=u.queryParameters[e];R(h,p);const m=t.useReadTransporter||"GET"===t.method,g=e.filter(e=>"readWrite"===e.accept||(m?"read"===e.accept:"write"===e.accept)),b=(await F(g)).hosts[0];if(!b)throw new f([]);const w={...a,...u.timeouts},x={data:l,headers:h,method:t.method,url:v(b,t.path,p),connectTimeout:w.connect,responseTimeout:m?w.read:w.write};let S=O;for(;;){let e;
2try{e=await o.sendStream(x)}catch(e){if(T(e)&&S>0){S--;const t=A(P(e));n.info("Retryable failure",{wait:t,rateLimitRetriesLeft:S,host:b}),await j(t);continue}throw e}return void(yield*c(e))}},requestsCache:u,responsesCache:h}}({hosts:I(e),...i,algoliaAgent:a({algoliaAgents:n,client:"Lite",version:C}),baseHeaders:{"content-type":"text/plain",...s.headers(),...i.baseHeaders},baseQueryParameters:{...s.queryParameters(),...i.baseQueryParameters}});return{transporter:o,appId:e,apiKey:t,clearCache:()=>Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(()=>{}),get _ua(){return o.algoliaAgent.value},addAlgoliaAgent(e,t){o.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?o.baseQueryParameters["x-algolia-api-key"]=e:o.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:r},n){j("path","customPost",e);const i={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return o.request(i,n)},customPostWithHTTPInfo({path:e,parameters:t,body:r},n){j("path","customPostWithHTTPInfo",e);const i={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return o.requestWithHttpInfo(i,n)},getRecommendations(e,t){e&&Array.isArray(e)&&(e={requests:e}),j("getRecommendationsParams","getRecommendations",e),j("getRecommendationsParams.requests","getRecommendations",e.requests);const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.request(r,t)},getRecommendationsWithHTTPInfo(e,t){e&&Array.isArray(e)&&(e={requests:e}),j("getRecommendationsParams","getRecommendationsWithHTTPInfo",e),j("getRecommendationsParams.requests","getRecommendationsWithHTTPInfo",e.requests);const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.requestWithHttpInfo(r,t)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})};e=t}j("searchMethodParams","search",e),j("searchMethodParams.requests","search",e.requests);const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.request(r,t)},searchWithHTTPInfo(e,t){if(e&&Array.isArray(e)){const t={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})};e=t}j("searchMethodParams","searchWithHTTPInfo",e),j("searchMethodParams.requests","searchWithHTTPInfo",e.requests);const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return o.requestWithHttpInfo(r,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n,i=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),s=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(s),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(s),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(s),clearTimeout(n),t({content:r.responseText,headers:F(r.getAllResponseHeaders()),status:r.status,isTimedOut:!1})},r.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",requestIdChannel:"queryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[n({key:`${C}-${e}`}),s()]}),...u})}},2782(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])}
2,[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},5808(e,t,r){"use strict";r.d(t,{A:()=>$});var n=r(8642),i=r(3304),s=r(1901),a=r(7837),o=r(9797),c=r(7716),u=r(7371),l=r(5662),h=r(3604),d=r(9392),f=r(8542);function p(e){return e!==Object(e)}function m(e,t){if(e===t)return!0;if(p(e)||p(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var r=!0,n=!1,i=void 0;try{for(var s,a=Object.keys(e)[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var o=s.value;if(!(o in t))return!1;if(!m(e[o],t[o]))return!1}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}return!0}var g=r(2148);r.dn(_);var v=function(e,t,r,n){var i;t[0]=0;for(var s=1;s<t.length;s++){var a=t[s++],o=t[s]?(t[0]|=a?1:2,r[t[s++]]):t[++s];3===a?n[0]=o:4===a?n[1]=Object.assign(n[1]||{},o):5===a?(n[1]=n[1]||{})[t[++s]]=o:6===a?n[1][t[++s]]+=o+"":a?(i=e.apply(o,v(e,o,r,["",null])),n.push(i),o[0]?t[0]|=2:(t[s-2]=0,t[s]=i)):n.push(o)}return n},y=new Map;function _(e){var t=y.get(this);return t||(t=new Map,y.set(this,t)),(t=v(this,t.get(e)||(t.set(e,t=function(e){for(var t,r,n=1,i="",s="",a=[0],o=function(e){1===n&&(e||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,e,i):3===n&&(e||i)?(a.push(3,e,i),n=2):2===n&&"..."===i&&e?a.push(4,e,0):2===n&&i&&!e?a.push(5,0,!0,i):n>=5&&((i||!e&&5===n)&&(a.push(n,0,i,r),n=6),e&&(a.push(n,e,0,r),n=6)),i=""},c=0;c<e.length;c++){c&&(1===n&&o(),o(c));for(var u=0;u<e[c].length;u++)t=e[c][u],1===n?"<"===t?(o(),a=[a],n=3):i+=t:4===n?"--"===i&&">"===t?(n=1,i=""):i=t+i[0]:s?t===s?s="":i+=t:'"'===t||"'"===t?s=t:">"===t?(o(),n=1):n&&("="===t?(n=5,r=i,i=""):"/"===t&&(n<5||">"===e[c][u+1])?(o(),3===n&&(a=a[0]),n=a,(a=a[0]).push(2,0,n),n=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),n=2):i+=t),3===n&&"!--"===i&&(n=4,a=a[0])}return o(),a}(e)),t),arguments,[])).length>1?t:t[0]}var b,w,x,S,O=_.bind(f.h),E=r(1195),R=r(2782),T=(b={createElement:f.n,Fragment:f.FK},S=function(e){var t=e.createElement;return function(e){var r=e.classNames,n=e.children,i=e.highlightedTagName,s=e.isHighlighted,a=e.nonHighlightedTagName;return t(s?i:a,{className:s?r.highlighted:r.nonHighlighted},n)}}({createElement:w=b.createElement,Fragment:x=b.Fragment}),function(e){var t=e.parts,r=e.highlightedTagName,n=void 0===r?"mark":r,i=e.nonHighlightedTagName,s=void 0===i?"span":i,a=e.separator,o=void 0===a?", ":a,c=e.className,h=e.classNames,d=void 0===h?{}:h,f=(0,E._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return w("span",(0,l._)((0,u._)({},f),{className:(0,R.cx)(d.root,c)}),t.map(function(e,r){var i=r===t.length-1;return w(x,{key:r},e.map(function(e,t){return w(S,{key:t,classNames:d,highlightedTagName:n,nonHighlightedTagName:s,isHighlighted:e.isHighlighted},e.value)}),!i&&w("span",{className:d.separator},o))}))});function P(e){var t=e.classNames,r=void 0===t?{}:t,n=(0,E._)(e,["classNames"]);return(0,f.h)(T,(0,u._)({classNames:{root:(0,R.cx)("ais-Highlight",r.root),highlighted:(0,R.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,R.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,R.cx)("ais-Highlight-separator",r.separator)}},n))}function A(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var k=r(9505);function j(e){var t=k.sn.highlightPostTag,r=k.sn.highlightPreTag,n=e.split(r),i=n.shift(),s=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(e){var r=e.split(t);s.push({value:r[0],isHighlighted:!0}),""!==r[1]&&s.push({value:r[1],isHighlighted:!1})}),s}var F=r(6916);function C(e){return Array.isArray(e)?e:[e]}function I(e){var t=e.hit,r=e.attribute,n=e.cssClasses,i=(0,E._)(e,["hit","attribute","cssClasses"]),s=C(A(t._highlightResult,r)||[]).map(function(e){var t=e.value;return j((0,F.x)(t||""))});return(0,f.h)(P,(0,l._)((0,u._)({},i),{parts:s,classNames:n}))}function M(e){var t=e.classNames,r=void 0===t?{}:t,n=(0,E._)(e,["classNames"]);return(0,f.h)(T,(0,u._)({classNames:{root:(0,R.cx)("ais-ReverseHighlight",r.root),highlighted:(0,R.cx)("ais-ReverseHighlight-highlighted",r.highlighted),nonHighlighted:(0,R.cx)("ais-ReverseHighlight-nonHighlighted",r.nonHighlighted),separator:(0,R.cx)("ais-ReverseHighlight-separator",r.separator)}},n))}
2function N(e){var t=e.hit,r=e.attribute,n=e.cssClasses,i=(0,E._)(e,["hit","attribute","cssClasses"]),s=C(A(t._highlightResult,r)||[]).map(function(e){var t=e.value;return j((0,F.x)(t||"")).map(function(e){var t=e.isHighlighted,r=(0,E._)(e,["isHighlighted"]);return(0,l._)((0,u._)({},r),{isHighlighted:!t})})});return(0,f.h)(M,(0,l._)((0,u._)({},i),{parts:s,classNames:n}))}function L(e){var t=e.classNames,r=void 0===t?{}:t,n=(0,E._)(e,["classNames"]);return(0,f.h)(T,(0,u._)({classNames:{root:(0,R.cx)("ais-Snippet",r.root),highlighted:(0,R.cx)("ais-Snippet-highlighted",r.highlighted),nonHighlighted:(0,R.cx)("ais-Snippet-nonHighlighted",r.nonHighlighted),separator:(0,R.cx)("ais-Snippet-separator",r.separator)}},n))}function D(e){var t=e.hit,r=e.attribute,n=e.cssClasses,i=(0,E._)(e,["hit","attribute","cssClasses"]),s=C(A(t._snippetResult,r)||[]).map(function(e){var t=e.value;return j((0,F.x)(t||""))});return(0,f.h)(L,(0,l._)((0,u._)({},i),{parts:s,classNames:n}))}function H(e){var t=e.classNames,r=void 0===t?{}:t,n=(0,E._)(e,["classNames"]);return(0,f.h)(T,(0,u._)({classNames:{root:(0,R.cx)("ais-ReverseSnippet",r.root),highlighted:(0,R.cx)("ais-ReverseSnippet-highlighted",r.highlighted),nonHighlighted:(0,R.cx)("ais-ReverseSnippet-nonHighlighted",r.nonHighlighted),separator:(0,R.cx)("ais-ReverseSnippet-separator",r.separator)}},n))}function U(e){var t=e.hit,r=e.attribute,n=e.cssClasses,i=(0,E._)(e,["hit","attribute","cssClasses"]),s=C(A(t._snippetResult,r)||[]).map(function(e){var t=e.value;return j((0,F.x)(t||"")).map(function(e){var t=e.isHighlighted,r=(0,E._)(e,["isHighlighted"]);return(0,l._)((0,u._)({},r),{isHighlighted:!t})})});return(0,f.h)(H,(0,l._)((0,u._)({},i),{parts:s,classNames:n}))}var V=function(e){function t(){var e;return(0,i._)(this,t),e=(0,n._)(this,t,arguments),(0,a._)(e,"ref",(0,f._3)()),(0,a._)(e,"nodes",[]),e}
2return(0,o._)(t,e),(0,s._)(t,[{key:"componentDidMount",value:function(){var e=new DocumentFragment,t=document.createElement("div");t.innerHTML=this.props.content,this.nodes=(0,h._)(t.childNodes),this.nodes.forEach(function(t){return e.appendChild(t)}),this.ref.current.replaceWith(e)}},{key:"componentWillUnmount",value:function(){this.nodes.forEach(function(e){(0,c._)(e,Element)?e.outerHTML="":e.nodeValue=""}),this.nodes[0]&&this.nodes[0].nodeValue&&(this.nodes[0].nodeValue="")}},{key:"render",value:function(){return(0,f.h)("div",{ref:this.ref})}}]),t}(f.uA),$=function(e){function t(){return(0,i._)(this,t),(0,n._)(this,t,arguments)}return(0,o._)(t,e),(0,s._)(t,[{key:"shouldComponentUpdate",value:function(e){return!m(this.props.data,e.data)||this.props.templateKey!==e.templateKey||!m(this.props.rootProps,e.rootProps)}},{key:"render",value:function(){var e="fragment"===this.props.rootTagName?f.FK:this.props.rootTagName,t=this.props.useCustomCompileOptions[this.props.templateKey]?this.props.templatesConfig.compileOptions:{},r=function(e){var t=e.templates,r=e.templateKey,n=e.compileOptions,i=e.helpers,s=e.data,o=e.bindEvent,c=e.sendEvent,h=t[r];if("string"!=typeof h&&"function"!=typeof h)throw new Error("Template must be 'string' or 'function', was '".concat(void 0===h?"undefined":(0,d._)(h),"' (key: ").concat(r,")"));if("function"==typeof h){var f=o||{};return f.html=O,f.sendEvent=c,f.components={Highlight:I,ReverseHighlight:N,Snippet:D,ReverseSnippet:U},h(s,f)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(e).reduce(function(n,i){return(0,l._)((0,u._)({},n),(0,a._)({},i,function(){var n=this;return function(s){return e[i].call(r,s,function(e){return g.compile(e,t).render(n)})}}))},{})}(i,n,s);return g.compile(h,n).render((0,l._)((0,u._)({},s),{helpers:p})).replace(/[ \n\r\t\f\xA0]+/g,function(e){return e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:t,helpers:this.props.templatesConfig.helpers,data:this.props.data,bindEvent:this.props.bindEvent,sendEvent:this.props.sendEvent});return null===r?null:"object"===(void 0===r?"undefined":(0,d._)(r))?(0,f.h)(e,this.props.rootProps,r):e===f.FK?(0,f.h)(V,{content:r,key:Math.random()}):(0,f.h)(e,(0,l._)((0,u._)({},this.props.rootProps),{dangerouslySetInnerHTML:{__html:r}}))}}]),t}(f.uA);(0,a._)($,"defaultProps",{data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}})},7164(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(7371),i=r(5662),s=r(8421),a=r(1677),o=r(3295),c=(0,s.V)({name:"search-box",connector:!0}),u=function(e,t){return t(e)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.l;return(0,a.t)(e,c()),function(r){var s,a,o=(r||{}).queryHook,c=void 0===o?u:o;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,i=e.state;return s||(s=function(e){c(e,function(e){return t.setQuery(e).search()})},a=function(){t.setQuery("").search()}),{query:i.query||"",refine:s,clear:a,widgetParams:r,isSearchStalled:"stalled"===n.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,i._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}}},5394(e,t,r){"use strict";r.d(t,{A:()=>mt});var n=r.cw(function(e,t){var n=a(),i=r(2427),s=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&s(e,".prototype.")>-1?i([r]):r}}),i=r.cw(function(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r}),s=()=>r(1102),a=r.cw(function(e,t){var n,a=r(3254),b=r(1488),w=r(8004),x=r(6469),S=r(2557),O=r(3429),E=s(),R=r(5966),T=f(),P=p(),A=m(),k=g(),j=v(),F=y(),C=_(),I=Function,M=function(e){try{return I('"use strict"; return ('+e+").constructor;")()}catch(e){}},N=l(),L=i(),D=function(){throw new E},H=N?function(){try{return D}catch(e){try{return N(arguments,"callee").get}catch(e){return D}}}():D,U=h()(),V=u(),$=o(),B=c(),W=r(4811),q=r(6255),Q={},z="undefined"!=typeof Uint8Array&&V?V(Uint8Array):n,K={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":U&&V?V([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":b,"%eval%":eval,"%EvalError%":w,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":I,"%GeneratorFunction%":Q,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":U&&V?V(V([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&U&&V?V((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":x,"%ReferenceError%":S,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&U&&V?V((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&V?V(""[Symbol.iterator]()):n,"%Symbol%":U?Symbol:n,"%SyntaxError%":O,"%ThrowTypeError%":H,"%TypedArray%":z,"%TypeError%":E,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":R,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":W,"%Object.defineProperty%":L,"%Object.getPrototypeOf%":$,"%Math.abs%":T,"%Math.floor%":P,"%Math.max%":A,"%Math.min%":k,"%Math.pow%":j,"%Math.round%":F,"%Math.sign%":C,"%Reflect.getPrototypeOf%":B};if(V)try{null.error}catch(e){var J=V(V(e));K["%Error.prototype%"]=J}var X=function e(t){var r;if("%AsyncFunction%"===t)r=M("async function () {}");else if("%GeneratorFunction%"===t)r=M("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=M("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&V&&(r=V(i.prototype))}return K[t]=r,r},G={__proto__:null,"%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"]},Y=r(9524),Z=d(),ee=Y.call(q,Array.prototype.concat),te=Y.call(W,Array.prototype.splice),re=Y.call(q,String.prototype.replace),ne=Y.call(q,String.prototype.slice),ie=Y.call(q,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,oe=function(e,t){var r,n=e;
vendor: 20,734 bytes, line 2
2if(Z(G,n)&&(n="%"+(r=G[n])[0]+"%"),Z(K,n)){var i=K[n];if(i===Q&&(i=X(n)),void 0===i&&!t)throw new E("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new O("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new E('"allowMissing" argument must be a boolean');if(null===ie(/^%?[^%]*%?$/,e))throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ne(e,0,1),r=ne(e,-1);if("%"===t&&"%"!==r)throw new O("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new O("invalid intrinsic syntax, expected opening `%`");var n=[];return re(e,se,function(e,t,r,i){n[n.length]=r?re(i,ae,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",i=oe("%"+n+"%",t),s=i.name,a=i.value,o=!1,c=i.alias;c&&(n=c[0],te(r,ee([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var h=r[u],d=ne(h,0,1),f=ne(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===f||"'"===f||"`"===f)&&d!==f)throw new O("property names with quotes must have matching quotes");if("constructor"!==h&&l||(o=!0),Z(K,s="%"+(n+="."+h)+"%"))a=K[s];else if(null!=a){if(!(h in a)){if(!t)throw new E("base intrinsic for "+e+" exists, but the property is not available.");return}if(N&&u+1>=r.length){var p=N(a,h);a=(l=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:a[h]}else l=Z(a,h),a=a[h];l&&!o&&(K[s]=a)}}return a}}),o=()=>r(3752),c=()=>r(248),u=()=>r(4252),l=()=>r(5667),h=()=>r(1514),d=()=>r(2740),f=()=>r(7412),p=()=>r(2418),m=()=>r(7958),g=()=>r(5003),v=()=>r(250),y=()=>r(1844),_=()=>r(7279),b=()=>r(8311),w=r.cw(function(e,t){var r=String.prototype.replace,n=/%20/g,i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:i}}),x=r.cw(function(e,t){var r=O(),n=S(),i=w();e.exports={formats:i,parse:n,stringify:r}}),S=r.cw(function(e,t){var r=E(),n=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},o=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,i=e.indexOf(",");i>-1;){if((n+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");i=e.indexOf(",",i+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,i,s){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],s=r.indexOf("["),a=s>=0?r.slice(0,s):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var o=r.length,c=s,u=0;c>=0&&u<t.depth;){for(var l=1,h=c+1,d=-1;h<o&&d<0;){var f=r.charCodeAt(h);91===f?l+=1:93===f&&0==(l-=1)&&(d=h),h+=1}if(d<0)return i[i.length]="["+r.slice(c)+"]",i;var p=r.slice(c,d+1),m=p.slice(1,-1);if(!t.plainObjects&&n.call(Object.prototype,m)&&!t.allowPrototypes)return;i[i.length]=p,u+=1,c=r.indexOf("[",d+1)}if(c>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(c)+"]"}return i}(e,i);if(a)return function(e,t,n,i){var s=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");s=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=i?t:o(t,n,s),u=e.length-1;u>=0;--u){var l,h=e[u];if("[]"===h&&n.parseArrays)l=r.isOverflow(c)?c:n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:r.combine([],c,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{l=n.plainObjects?{__proto__:null}:{};var d="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,f=n.decodeDotInKeys?d.replace(/%2E/g,"."):d,p=parseInt(f,10),m=!isNaN(p)&&h!==f&&String(p)===f&&p>=0&&n.parseArrays;if(n.parseArrays||""!==f)if(m&&p<n.arrayLimit)(l=[])[p]=c;else{if(m&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");m?(l[p]=c,r.markOverflow(l,p)):"__proto__"!==f&&(l[f]=c)}else l={0:c}}c=l}return c}(a,t,i,s)}};e.exports=function(e,t){var u=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,n=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:s.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return u.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&h.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var d,f=-1,p=t.charset;if(t.charsetSentinel)for(d=0;d<h.length;++d)0===h[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[d]?p="utf-8":"utf8=%26%2310003%3B"===h[d]&&(p="iso-8859-1"),f=d,d=h.length);for(d=0;d<h.length;++d)if(d!==f){var m,g,v=h[d],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;if(-1===_?(m=t.decoder(v,s.decoder,p,"key"),g=t.strictNullHandling?null:""):null!==(m=t.decoder(v.slice(0,_),s.decoder,p,"key"))&&(g=r.maybeMap(o(v.slice(_+1),t,i(c[m])?c[m].length:0),function(e){return t.decoder(e,s.decoder,p,"value")})),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=a(String(g))),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),t.comma&&i(g)&&g.length>t.arrayLimit&&(g=r.combine([],g,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var b=n.call(c,m);b&&("combine"===t.duplicates||v.indexOf("[]=")>-1)?c[m]=r.combine(c[m],g,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):b&&"last"!==t.duplicates||(c[m]=g)}}return c}(e,u):e,h=u.plainObjects?{__proto__:null}:{},d=Object.keys(l),f=0;f<d.length;++f){var p=d[f],m=c(p,l[p],u,"string"==typeof e);h=r.merge(h,m,u)}return!0===u.allowSparse?h:r.compact(h)}}),O=r.cw(function(e,t){var r=P(),n=E(),i=w(),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,o(t)?t:[t])},l=Date.prototype.toISOString,h=i.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f={},p=function e(t,i,s,a,c,l,h,p,m,g,v,y,_,b,w,x,S,O,E,R){var T=t;if(R>E)throw new RangeError("Input depth exceeded depth option of "+E);for(var P,A=O,k=0,j=!1;void 0!==(A=A.get(f))&&!j;){var F=A.get(t);if(k+=1,void 0!==F){if(F===k)throw new RangeError("Cyclic object value");j=!0}void 0===A.get(f)&&(k=0)}if((T="function"==typeof g?g(i,T):T)instanceof Date?T=_(T):"comma"===s&&o(T)&&(T=n.maybeMap(T,function(e){return e instanceof Date?_(e):e})),null===T){if(l)return w(m&&!x?m(i,d.encoder,S,"key",b):i);T=""}if("string"==typeof(P=T)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||n.isBuffer(T))return m?[w(x?i:m(i,d.encoder,S,"key",b))+"="+w(m(T,d.encoder,S,"value",b))]:[w(i)+"="+w(String(T))];var C,I=[];if(void 0===T)return I;if("comma"===s&&o(T))x&&m&&(T=n.maybeMap(T,function(e){return null==e?e:m(e)})),C=[{value:T.length>0?T.join(",")||null:void 0}];else if(o(g))C=g;else{var M=Object.keys(T);C=v?M.sort(v):M}var N=p?String(i).replace(/\./g,"%2E"):String(i),L=a&&o(T)&&1===T.length?N+"[]":N;if(c&&o(T)&&0===T.length&&0===Object.keys(T).length)return L+"[]";for(var D=0;D<C.length;++D){var H=C[D],U="object"==typeof H&&H&&void 0!==H.value?H.value:T[H];if(!h||null!==U){var V=y&&p?String(H).replace(/\./g,"%2E"):String(H),$=o(T)?"function"==typeof s?s(L,V):L:L+(y?"."+V:"["+V+"]");O.set(t,k);var B=r();B.set(f,O),u(I,e(U,$,s,a,c,l,h,p,"comma"===s&&x&&o(T)?null:m,g,v,y,_,b,w,x,S,B,E,R+1))}}return I};e.exports=function(e,t){var n,c=e,l=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,c=i.formatters[r],u=d.filter;if(("function"==typeof e.filter||o(e.filter))&&(u=e.filter),n=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:d.depth,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:r,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?c=(0,l.filter)("",c):o(l.filter)&&(n=l.filter);var h=[];if("object"!=typeof c||null===c)return"";var f=a[l.arrayFormat],m="comma"===f&&l.commaRoundTrip;n||(n=Object.keys(c)),l.sort&&n.sort(l.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v];if(null!=y){var _=c[y];if(!l.skipNulls||null!==_){var b=l.encodeDotInKeys?String(y).replace(/\./g,"%2E"):String(y);u(h,p(_,b,f,m,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g,l.depth,0))}}}var w=h.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B"+l.delimiter:x+="utf8=%E2%9C%93"+l.delimiter),w.length>0?x+w:""}}),E=r.cw(function(e,t){var r=w(),n=P(),s=i(),a=Object.prototype.hasOwnProperty,o=Array.isArray,c=n(),u=function(e,t){return c.set(e,t),e},l=function(e){return c.has(e)},h=function(e){return c.get(e)},d=function(e,t){c.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),p=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},m=function(e,t,r){"__proto__"===t&&s?s(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},g=1024;e.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return m(e,r,t[r]),e},e)},combine:function(e,t,r,n,i){if(l(e)){if(i)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");for(var s=o(t)?t:[t],a=h(e),c=0;c<s.length;++c)e[a+=1]=s[c];return d(e,a),e}var f=[].concat(e,t);if(f.length>r){if(i)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return u(p(f,{plainObjects:n}),f.length-1)}return f},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=n(),i=0;i<t.length;++i)for(var s=t[i],a=s.obj[s.prop],c=Object.keys(a),u=0;u<c.length;++u){var l=c[u],h=a[l];"object"!=typeof h||null===h||r.has(h)||(t[t.length]={obj:a,prop:l},r.set(h,!0))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&(n[n.length]=r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,n,i,s){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",c=0;c<a.length;c+=g){var u=a.length>=g?a.slice(c,c+g):a;if(c+g<a.length){var l=u.charCodeAt(u.length-1);l>=55296&&l<=56319&&(u=u.slice(0,-1),c-=1)}for(var h=[],d=0;d<u.length;++d){var p=u.charCodeAt(d);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||s===r.RFC1738&&(40===p||41===p)?h[h.length]=u.charAt(d):p<128?h[h.length]=f[p]:p<2048?h[h.length]=f[192|p>>6]+f[128|63&p]:p<55296||p>=57344?h[h.length]=f[224|p>>12]+f[128|p>>6&63]+f[128|63&p]:(d+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(d)),h[h.length]=f[240|p>>18]+f[128|p>>12&63]+f[128|p>>6&63]+f[128|63&p])}o+=h.join("")}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(t.concat(r),n),i)}t[i]=r}else{if(!t||"object"!=typeof t)return[t,r];if(l(t)){var s=h(t)+1;t[s]=r,d(t,s)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(l(r)){for(var c=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<c.length;g++)f[parseInt(c[g],10)+1]=r[c[g]];return u(f,h(r)+1)}var v=[t].concat(r);if(n&&"number"==typeof n.arrayLimit&&v.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(v,n),v.length-1)}return v}var y=t;if(o(t)&&!o(r)&&(y=p(t,n)),o(t)&&o(r)){if(r.forEach(function(r,i){if(a.call(t,i)){var s=t[i];s&&"object"==typeof s&&r&&"object"==typeof r?t[i]=e(s,r,n):t[t.length]=r}else t[i]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,i){var s=r[i];if(a.call(t,i)?m(t,i,e(t[i],s,n)):m(t,i,s),l(r)&&!l(t)&&u(t,h(r)),l(t)){var o=parseInt(i,10);String(o)===i&&o>=0&&o>h(t)&&d(t,o)}return t},y)}}}),R=r.cw(function(e,t){var r=a(),i=n(),o=b(),c=s(),u=r("%Map%",!0),l=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),p=i("Map.prototype.size",!0);e.exports=!!u&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,r){e||(e=new u),h(e,t,r)}};return t}}),T=r.cw(function(e,t){var r=a(),i=n(),o=b(),c=R(),u=s(),l=r("%WeakMap%",!0),h=i("WeakMap.prototype.get",!0),d=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),p=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new u("Side channel does not contain "+o(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(c&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?h(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),d(e,r,n)):c&&(t||(t=c()),t.set(r,n))}};return r}:c}),P=r.cw(function(e,t){var n=s(),i=b(),a=r(3902),o=R(),c=T()||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new n("Side channel does not contain "+r)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}),A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName,i=r?"-".concat(r):"",s=n?"--".concat(n):"";
2return"".concat("ais","-").concat(e).concat(i).concat(s)}},k=r(4360),j="<mark>",F="</mark>";function C(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var I=A("Highlight");function M(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=(C(i._highlightResult,t)||{}).value,c=void 0===o?"":o,u=I({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return c.replace(new RegExp(j,"g"),"<".concat(n,' class="').concat(u,'">')).replace(new RegExp(F,"g"),"</".concat(n,">"))}function N(e){var t=j,r=F;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}function L(e){var t=F,r=j,n=e.split(r),i=n.shift(),s=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(e){var r=e.split(t);s.push({value:r[0],isHighlighted:!0}),""!==r[1]&&s.push({value:r[1],isHighlighted:!1})}),s}var D=r(7371),H=r(5662),U={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},V=/&(amp|quot|lt|gt|#39);/g,$=RegExp(V.source),B=new RegExp(/\w/i);function W(e,t){var r,n,i,s,a,o=e[t],c=null===(r=null===(i=e[t+1])||void 0===i?void 0:i.isHighlighted)||void 0===r||r,u=null===(n=null===(s=e[t-1])||void 0===s?void 0:s.isHighlighted)||void 0===n||n;return B.test((a=o.value)&&$.test(a)?a.replace(V,function(e){return U[e]}):a)||u!==c?o.isHighlighted:u}function q(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){return(0,H._)((0,D._)({},t),{isHighlighted:!W(e,r)})}):e.map(function(e){return(0,H._)((0,D._)({},e),{isHighlighted:!1})})}var Q=A("ReverseHighlight");function z(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=(C(i._highlightResult,t)||{}).value,c=void 0===o?"":o,u=Q({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return N(q(L(c))).replace(new RegExp(j,"g"),"<".concat(n,' class="').concat(u,'">')).replace(new RegExp(F,"g"),"</".concat(n,">"))}var K=A("Snippet");function J(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=(C(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=K({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return c.replace(new RegExp(j,"g"),"<".concat(n,' class="').concat(u,'">')).replace(new RegExp(F,"g"),"</".concat(n,">"))}var X=A("ReverseSnippet");function G(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=(C(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=X({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return N(q(L(c))).replace(new RegExp(j,"g"),"<".concat(n,' class="').concat(u,'">')).replace(new RegExp(F,"g"),"</".concat(n,">"))}var Y=r(9392);function Z(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var ee="ais.usage.sessionId",te=null;function re(){if(te)return te;try{var e=sessionStorage.getItem(ee);return e?te=e:(te=Z(),sessionStorage.setItem(ee,te),te)}catch(e){return te=Z()}}function ne(e,t){return function(e){var t,r=e.method,n=e.payload;if("object"!==(void 0===n?"undefined":(0,Y._)(n)))throw new Error("The insights helper expects the payload to be an object.");try{t=function(e){return btoa(encodeURIComponent(JSON.stringify(e)))}(n)}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}function ie(){return function(){if("object"===("undefined"==typeof document?"undefined":(0,Y._)(document))&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}()}var se=r(7716),ae=r(1195);function oe(e){return e!==Object(e)}function ce(e,t){if(e===t)return!0;if(oe(e)||oe(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var r=!0,n=!1,i=void 0;try{for(var s,a=Object.keys(e)[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var o=s.value;if(!(o in t))return!1;if(!ce(e[o],t[o]))return!1}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}return!0}function ue(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window})}function le(e){var t=e||{};return t.page,(0,ae._)(t,["page"])}var he=r(8642),de=r(3304),fe=r(1901),pe=r(7837),me=r(9797),ge=r(1265),ve=r(3604),ye=r(3052);function _e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}function be(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}function we(e){var t=e;return t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua}function xe(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",s="x-algolia-api-key";return[r[i]||n[i],r[s]||n[s]]}return[e.applicationID,e.apiKey]}var Se=["ais.index","ais.feedContainer"];function Oe(e){return Se.includes(e.$$type)}function Ee(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,render
2State:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function Re(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function Te(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,H._)((0,D._)({},r.renderState),(0,pe._)({},i,(0,D._)({},r.renderState[i],t)))}function Pe(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];if(void 0!==n){var i=function(e){if(null==e)return null;var t=void 0===e?"undefined":(0,Y._)(e);if("string"===t||"number"===t||"boolean"===t)return{value:String(e),type:t};if(Array.isArray(e)||"object"===t){var r=Array.isArray(e)?"array":"object";try{return{value:JSON.stringify(e),type:r}}catch(e){return{type:r}}}return"function"===t?{value:e.name,type:"function"}:null}(n);i?t.push((0,D._)({name:r},i)):t.push({name:r})}}),t}function Ae(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.mainIndex,n=Ee(t,r,t._initialUiState);return e.map(function(e){var r={};if(e.getWidgetRenderState){var i=e.getWidgetRenderState(n);i&&i.widgetParams&&(r=i.widgetParams)}var s=Pe(r),a=Oe(e)?Ae(e.getWidgets(),t,e):[];return{type:e.$$widgetType||e.$$type||"unknown",params:s,children:a}})}var ke="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},je="4.118.0",Fe="2.17.2",Ce="https://cdn.jsdelivr.net/npm/search-insights@".concat(Fe,"/dist/search-insights.min.js"),Ie=["searchClient","insightsClient","initialUiState"];function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,s=void 0!==i&&i,a=e.$$automatic,o=void 0!==a&&a,c=t;t||null===t||ue(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(c=t[r]),c||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=Fe,t[r].shouldAddScript=!0),c=t[r])});var u=c||_e;return function(e){var t,i=e.instantSearchInstance,a=i.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});(t=i).unuse.apply(t,(0,ve._)(a));var c,l,h,d=(0,ge._)(xe(i.client),2),f=d[0],p=d[1],m=void 0,g=void 0,v=void 0,y=u.queue;Array.isArray(y)&&(c=(0,ge._)(["setUserToken","init"].map(function(e){var t=(0,ge._)(be(y.slice().reverse(),function(t){return(0,ge._)(t,1)[0]===e})||[],2);return t[1]}),2),g=c[0],m=c[1]),u("getUserToken",null,function(e,t){v=Le(t)}),!r&&Ne(u)||u("init",(0,D._)({appId:f,apiKey:p,partial:!0},r));var _=null;return{$$type:"ais.insights",$$internal:s,$$automatic:o,onStateChange:function(){},subscribe:function(){if(u.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=Ce,t.onerror=function(){i.emit("error",new Error(e))},document.body.appendChild(t),u.shouldAddScript=!1}catch(t){u.shouldAddScript=!1,i.emit("error",new Error(e))}}},started:function(){u("addAlgoliaAgent","insights-middleware"),h=i.mainHelper;var e,t=u.queue;Array.isArray(t)&&(e=(0,ge._)(["setUserToken","init"].map(function(e){var r=(0,ge._)(be(t.slice().reverse(),function(t){return(0,ge._)(t,1)[0]===e})||[],2);return r[1]}),2),g=e[0],m=e[1]),l=function(e){var t,r,n=(null===(r=e._initialResults)||void 0===r||null===(t=r[e.indexName])||void 0===t?void 0:t.state)||{},i=e.mainHelper.state;return{userToken:n.userToken||i.userToken,clickAnalytics:n.clickAnalytics||i.clickAnalytics}}(i),o||h.overrideStateWithoutTriggeringChangeEvent((0,H._)((0,D._)({},h.state),{clickAnalytics:!0})),s||i.scheduleSearch();var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Le(e);if(r){var n=h.state.userToken;t?s():setTimeout(s,0)}function s(){h.overrideStateWithoutTriggeringChangeEvent((0,H._)((0,D._)({},h.state),{userToken:r})),n&&n!==r&&(h._recommendCache={},i.scheduleSearch())}};function c(e){a(e,!0),u("setUserToken",e)}var d,p=void 0,y=ie();p=y||"anonymous-".concat(Z());var b=l.userToken;(null==r?void 0:r.userToken)&&(d=r.userToken),d?c(d):b?c(b):v?c(v):g?c(g):p&&
2(c(p),((null==r?void 0:r.useCookie)||(null==m?void 0:m.useCookie))&&function(e,t){var r=new Date;r.setTime(r.getTime()+(t||15552e6));var n="expires=".concat(r.toUTCString());document.cookie="_ALGOLIA=".concat(e,";").concat(n,";path=/")}(p,(null==r?void 0:r.cookieDuration)||(null==m?void 0:m.cookieDuration))),u("onUserTokenChange",function(e){return a(e,!0)},{immediate:!0});var w=u;Ne(u)&&(w=function(e,t){var r=(0,ge._)(xe(i.client),2),n=r[0],s=r[1];return u(e,t,{headers:{"X-Algolia-Application-Id":n,"X-Algolia-API-Key":s}})});var x,S=new Set;i.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;!t||t.queryID&&t.queryID===x||(x=t.queryID,S.clear())}),i.sendEventToInsights=function(e){if(n)n(e,w);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=function(e){return t.queryID?"".concat(t.queryID,":").concat(e):e},i=t.objectIDs.filter(function(e){return!S.has(r(e))});if(0===i.length)return;i.forEach(function(e){return S.add(r(e))}),t.objectIDs=i}e.payload.algoliaSource=["instantsearch"],o&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),w(e.insightsMethod,e.payload)}},ue(function(){var e=re(),t=function(){try{var t=Math.round(ke()-i._createdAt);r={eventName:"__start__",algoliaAgent:we(i.client),version:je,applicationId:f,performance:{bootstrapMs:t},widgets:[{type:"ais.instantSearch",params:i._initialOptions?Pe((a=i._initialOptions,o=(0,ve._)(Ie),null==a?a:Object.keys(a).reduce(function(e,t){if(o.indexOf(t)>=0)return e;var r=t;return e[r]=a[r],e},{}))):[],children:Ae(i.mainIndex.getWidgets(),i)}]},s=null===(n=h.state)||void 0===n?void 0:n.userToken,w("sendEvents",[(0,D._)({eventType:"instantsearch",timestamp:Date.now(),sessionID:e,userToken:s?String(s):void 0},r)])}catch(e){}var r,n,s,a,o};i.once("render",t),_=function(){return i.removeListener("render",t)}})},unsubscribe:function(){_&&_(),u("onUserTokenChange",void 0),i.sendEventToInsights=_e,h&&l&&(h.overrideStateWithoutTriggeringChangeEvent((0,D._)({},h.state,l)),i.scheduleSearch())}}}}function Ne(e){var t=(0,ge._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function Le(e){if(e)return"number"==typeof e?e.toString():e}function De(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.mainIndex,i=Ee(t,n,t._initialUiState);e.forEach(function(e){var n={};if(e.getWidgetRenderState){var s=e.getWidgetRenderState(i);s&&s.widgetParams&&(n=s.widgetParams)}var a=Object.keys(n).filter(function(e){return void 0!==n[e]});r.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:a}),Oe(e)&&De(e.getWidgets(),t,r,e)})}function He(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).$$internal,t=void 0!==e&&e;return function(e){var r=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),s=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:t,onStateChange:function(){},subscribe:function(){setTimeout(function(){n.ua=we(r.client),De(r.mainIndex.getWidgets(),r,n),r.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),s.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}var Ue=function(e){e&&(window.document.title=e)},Ve=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,s=void 0===i?400:i,a=t.createURL,o=t.parseURL,c=t.getLocation,u=t.start,l=t.dispose,h=t.push,d=t.cleanUrlOnDispose;(0,de._)(this,e),(0,pe._)(this,"$$type","ais.browser"),(0,pe._)(this,"windowTitle",void 0),(0,pe._)(this,"writeDelay",void 0),(0,pe._)(this,"_createURL",void 0),(0,pe._)(this,"parseURL",void 0),(0,pe._)(this,"getLocation",void 0),(0,pe._)(this,"writeTimer",void 0),(0,pe._)(this,"_onPopState",void 0),(0,pe._)(this,"inPopState",!1),(0,pe._)(this,"isDisposed",!1),(0,pe._)(this,"latestAcknowledgedHistory",0),(0,pe._)(this,"_start",void 0),(0,pe._)(this,"_dispose",void 0),(0,pe._)(this,"_push",void 0),(0,pe._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=s,this._createURL=a,this.parseURL=o,this.getLocation=c,this._start=u,this._dispose=l,this._push=h,this._cleanUrlOnDispose=void 0===d||d,ue(function(e){var t=e.window,n=r.windowTitle&&r.windowTitle(r.read());Ue(n),r.latestAcknowledgedHistory=t.history.length})}return(0,fe._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:x(),location:this.getLocation()})}},{key:"write",value:function(e){var t=this;ue(function(r){var n=r.window,i=t.createURL(e),s=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){Ue(s),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,s||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}}
2,{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},ue(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:x(),routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,ue(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return ue(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function $e(e){return e.configure,(0,ae._)(e,["configure"])}var Be=0;function We(e){"recommend"===e.dependsOn&&(e.$$id=Be++)}var qe=Promise.resolve();function Qe(e,t){var r=null,n=!1,i=null,s=function(){for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];null===r?(i=a,r=qe.then(function(){r=null;var t=i;i=null,n?n=!1:e.apply(void 0,(0,ve._)(t))})):t&&null!==i&&(i=t(i,a))};return s.wait=function(){if(null===r)throw new Error("The deferred function should be called before calling `wait()`");return r},s.cancel=function(){null!==r&&(n=!0)},s}function ze(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){return["https://www.algolia.com/doc/api-reference/widgets/",(t=e).name,"/js/",void 0!==(r=t.connector)&&r?"#connector":""].join("");var t,r}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}var Ke=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:(0,D._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})}(e,t),n=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)}(function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},e.hierarchicalFacets)})}(r,t),t),i=function(e,t){return e.setQueryParameters({numericRefinements:(0,D._)({},e.numericRefinements,t.numericRefinements)})}(n,t),s=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:(0,D._)({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})}(i,t),a=function(e,t){return e.setQueryParameters({facetsExcludes:(0,D._)({},e.facetsExcludes,t.facetsExcludes)})}(s,t),o=function(e,t){return e.setQueryParameters({facetsRefinements:(0,D._)({},e.facetsRefinements,t.facetsRefinements)})}(a,t),c=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)}(o,t),u=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e}(c,t),l=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)}(u,t);return function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,ae._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}(l,t)})};function Je(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var Xe=ze({name:"index-widget"});function Ge(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,s=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:s})),n!==e.recommendState&&(e.recommendState=n)}function Ye(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return Oe(r)?e:r.getWidgetUiState||r.getWidgetState?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function Ze(e,t){var r=t.initialSearchParameters,n=(0,ae._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||Oe(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function et(e,t){var r=t.initialRecommendParameters,n=(0,ae._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!Oe(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}function tt(e){var t=e.filter(Oe);0!==t.length&&t.forEach(function(e){var t=e.getHelper();Ge(t,{state:t.state.resetPage(),recommendState:t.recommendState,isPageReset:!0}),tt(e.getWidgets())})}function rt(e){return e.filter(Oe).reduce(function(e,t){var r;return(r=e).concat.apply(r,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat((0,ve._)(rt(t.getWidgets()))))},[])}function nt(e){return e.reduce(function(e,t){if(Oe(t)){if(t._isolated)return e;
vendor: 4,523 bytes, line 2
2var r=nt(t.getWidgets());return{hasSearchWidget:e.hasSearchWidget||r.hasSearchWidget,hasRecommendWidget:e.hasRecommendWidget||r.hasRecommendWidget}}return"recommend"===t.dependsOn?(0,H._)((0,D._)({},e),{hasRecommendWidget:!0}):"none"===t.dependsOn?e:(0,H._)((0,D._)({},e),{hasSearchWidget:!0})},{hasSearchWidget:!1,hasRecommendWidget:!1})}function it(e){var t=nt(e.mainIndex.getWidgets()),r=t.hasSearchWidget,n=t.hasRecommendWidget;e._hasSearchWidget=r,e._hasRecommendWidget=n}var st=function(e){var t;if(void 0===e||void 0===e.indexName&&!e.isolated&&!e.EXPERIMENTAL_isolated)throw new Error(Xe("The `indexName` option is required."));var r,n=e.indexName,i=void 0===n?"":n,s=e.indexId,a=void 0===s?i:s,o=e.isolated,c=void 0===o?null!==(t=e.EXPERIMENTAL_isolated)&&void 0!==t&&t:o,u=[],l={},h=null,d=null,f=null,p=null,m=null,g=function(){h&&it(h)};return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:c,getIndexName:function(){return i},getIndexId:function(){return a},getHelper:function(){return f},getResults:function(){return(null==p?void 0:p.lastResults)?(p.lastResults._state=f.state,p.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||Oe(e)||void 0===e.$$id?this.getResults():(null==f?void 0:f.lastRecommendResults)?f.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return m},getScopedResults:function(){var e=this.getParent();return rt(e?e.getWidgets():0===i.length?this.getWidgets():[this])},getParent:function(){return c?null:d},createURL:function(e){return"function"==typeof e?h._createURL((0,pe._)({},a,e(l))):h._createURL((0,pe._)({},a,Ye(u,{searchParameters:e,helper:f})))},scheduleLocalSearch:Qe(function(){c&&(null==f||f.search())}),getWidgets:function(){return u},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw new Error(Xe("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw new Error(Xe("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,Oe(e)||We(e)}),u=u.concat(r),g(),h&&Boolean(r.length)&&(Ge(f,{state:Ze(u,{uiState:l,initialSearchParameters:f.state}),recommendState:et(u,{uiState:l,initialRecommendParameters:f.recommendState}),_uiState:l}),r.forEach(function(e){e.getRenderState&&Te({renderState:e.getRenderState(h.renderState[t.getIndexId()]||{},Ee(h,t,h._initialUiState)),instantSearchInstance:h,parent:t})}),r.forEach(function(e){e.init&&e.init(Ee(h,t,h._initialUiState))}),c?this.scheduleLocalSearch():h.scheduleSearch()),this},updateWidget:function(e,t){if("function"!=typeof e.dispose)throw new Error(Xe("The widget definition expects a `dispose` method."));if("function"!=typeof t.init&&"function"!=typeof t.render)throw new Error(Xe("The widget definition expects a `render` and/or an `init` method."));var r=l;e.parent=void 0,t.parent=this,Oe(t)||We(t);var n=u.slice(),i=n.indexOf(e);if(-1===i?n.push(t):n[i]=t,u=n,g(),!h)return this;var s=e.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:this}),a=(0,se._)(s,k.RecommendParameters)?s:f.recommendState,o=s&&!(0,se._)(s,k.RecommendParameters)?s:f.state,d=h.future.preserveSharedStateOnUnmount?new k.SearchParameters({index:this.getIndexName()}):o;l=Ye(u,{searchParameters:Ze(u,{uiState:r,initialSearchParameters:d}),helper:f});var p=Ze(u,{uiState:l,initialSearchParameters:d});return Ge(f,{state:p,recommendState:et(u,{uiState:l,initialRecommendParameters:a}),_uiState:l}),t.getRenderState&&Te({renderState:t.getRenderState(h.renderState[this.getIndexId()]||{},Ee(h,this,h._initialUiState)),instantSearchInstance:h,parent:this}),t.init&&t.init(Ee(h,this,h._initialUiState)),c?this.scheduleLocalSearch():h.scheduleSearch(),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw new Error(Xe("The `removeWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.dispose}))throw new Error(Xe("The widget definition expects a `dispose` method."));if(u=u.filter(function(e){return-1===r.indexOf(e)}),r.forEach(function(e){e.parent=void 0}),g(),h&&Boolean(r.length)){var n=r.reduce(function(e,r){var n=r.dispose({helper:f,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return(0,se._)(n,k.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e}
2,{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),i=n.cleanedSearchState,s=n.cleanedRecommendState,a=h.future.preserveSharedStateOnUnmount?Ze(u,{uiState:l,initialSearchParameters:new k.SearchParameters({index:this.getIndexName()})}):Ze(u,{uiState:Ye(u,{searchParameters:i,helper:f}),initialSearchParameters:i});l=Ye(u,{searchParameters:a,helper:f}),f.setState(a),f.recommendState=s,u.length&&(c?this.scheduleLocalSearch():h.scheduleSearch())}return this},init:function(e){var t,r=this,n=e.instantSearchInstance,s=e.parent,o=e.uiState;if(null===f){h=n,d=s,l=o[a]||{};var v=n.mainHelper,y=Ze(u,{uiState:l,initialSearchParameters:new k.SearchParameters({index:i})}),_=et(u,{uiState:l,initialRecommendParameters:new k.RecommendParameters});(f=k(v.getClient(),y.index,y)).recommendState=_,f.search=function(){return c?(n.status="loading",r.render({instantSearchInstance:n}),n.compositionID?f.searchWithComposition():f.searchOnlyWithDerivedHelpers()):n.onStateChange?(n.onStateChange({uiState:n.mainIndex.getWidgetUiState({}),setUiState:function(e){return n.setUiState(e,!1)}}),v):v.search()},f.searchWithoutTriggeringOnStateChange=function(){return v.search()},f.searchForFacetValues=function(e,t,n,i){var s=Ke.apply(void 0,[v.state].concat((0,ve._)(Je(r)))).setQueryParameters(i);return v.searchForFacetValues(e,t,n,s)};var b=i?f:k({},"__empty_index__",{}),w=c?b:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(s,v);p=w.derive(function(){return Ke.apply(void 0,[v.state].concat((0,ve._)(Je(r))))},function(){return function(e,t){var r=t.userToken,n=t.clickAnalytics;if(void 0===r&&void 0===n)return e;var i=(0,D._)({},void 0===n?{}:{clickAnalytics:n},void 0===r?{}:{userToken:r});return new k.RecommendParameters({params:e.params.map(function(e){var t=e.queryParameters,r=e.fallbackParameters;return(0,D._)((0,H._)((0,D._)({},e),{queryParameters:(0,D._)({},i,t)}),r&&{fallbackParameters:(0,D._)({},i,r)})})})}(r.getHelper().recommendState,v.state)});var x=null===(t=n._initialResults)||void 0===t?void 0:t[this.getIndexId()];if(null==x?void 0:x.results){var S=new k.SearchResults(new k.SearchParameters(x.state),x.results);p.lastResults=S,f.lastResults=S}if(null==x?void 0:x.recommendResults){var O=new k.RecommendResults(new k.RecommendParameters({params:x.recommendResults.params}),x.recommendResults.results);p.lastRecommendResults=O,f.lastRecommendResults=O}f.on("change",function(e){e.isPageReset&&tt(u)}),p.on("search",function(){n.scheduleStalledRender()}),p.on("result",function(e){var t=e.results;n.scheduleRender(),f.lastResults=t,m=null==t?void 0:t._state}),p.on("recommend:result",function(e){var t=e.recommend;n.scheduleRender(),f.lastRecommendResults=t.results}),u.forEach(function(e){e.getRenderState&&Te({renderState:e.getRenderState(n.renderState[r.getIndexId()]||{},Ee(n,r,o)),instantSearchInstance:n,parent:r})}),u.forEach(function(e){e.init&&e.init(Ee(n,r,o))}),f.on("change",function(e){var t=e.state,r=e._uiState;l=Ye(u,{searchParameters:t,helper:f},r||{}),n.onStateChange||n.onInternalStateChange()}),x&&n.scheduleRender(),g()}},render:function(e){var t=this,n=e.instantSearchInstance;"error"!==n.status?r=void 0:n.error!==r&&!n.mainHelper.hasPendingRequests()&&m&&(r=n.error,f.setState(m));var s=this.getResults()||(null==p?void 0:p.lastRecommendResults)||c&&!i?u:u.filter(function(e){return e.shouldRender});(s=s.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){e.getRenderState&&Te({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},Re(n,t,e)),instantSearchInstance:n,parent:t})}),s.forEach(function(e){e.render&&e.render(Re(n,t,e))})},dispose:function(){var e=this;u.forEach(function(t){t.dispose&&f&&t.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:e})}),h=null,d=null,null==f||f.removeAllListeners(),f=null,null==p||p.detach(),p=null},getWidgetUiState:function(e){return u.filter(Oe).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,H._)((0,D._)({},e),(0,pe._)({},a,(0,D._)({},e[a],l))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return Ze(u,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){l=Ye(u,{searchParameters:this.getHelper().state,helper:this.getHelper()},l)},setIndexUiState:function(e){var t="function"==typeof e?e(l):e;h.setUiState(function(e){return(0,H._)((0,D._)({},e),(0,pe._)({},a,t))})}}};function at(e){var t=e.numberLocale;return{formatNumber:function(e,r){return function(e,t){return e.toLocaleStr
2ing(t)}(Number(r(e)),t)},highlight:function(e,t){try{var r=JSON.parse(e);return t(M((0,H._)((0,D._)({},r),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r=JSON.parse(e);return t(z((0,H._)((0,D._)({},r),{hit:this})))}catch(e){throw new Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r=JSON.parse(e);return t(J((0,H._)((0,D._)({},r),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r=JSON.parse(e);return t(G((0,H._)((0,D._)({},r),{hit:this})))}catch(e){throw new Error('\n  The reverseSnippet helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r=JSON.parse(e),n=r.method,i=r.payload;return t(ne(n,(0,D._)({objectIDs:[this.objectID]},i)))}catch(e){throw new Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}}}function ot(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(Oe).forEach(function(t){return ot(e,t)})}function ct(e){var t;return(null===(t=e.compositionFeedsResults)||void 0===t?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function ut(e){return Object.keys(e).map(function(t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r}).join("&")}var lt=ze({name:"instantsearch"});function ht(){return"#"}var dt={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ft=function(e){function t(e){var r;(0,de._)(this,t),r=(0,he._)(this,t),(0,pe._)(r,"client",void 0),(0,pe._)(r,"indexName",void 0),(0,pe._)(r,"compositionID",void 0),(0,pe._)(r,"insightsClient",void 0),(0,pe._)(r,"onStateChange",null),(0,pe._)(r,"future",void 0),(0,pe._)(r,"helper",void 0),(0,pe._)(r,"mainHelper",void 0),(0,pe._)(r,"mainIndex",void 0),(0,pe._)(r,"started",void 0),(0,pe._)(r,"templatesConfig",void 0),(0,pe._)(r,"renderState",{}),(0,pe._)(r,"_stalledSearchDelay",void 0),(0,pe._)(r,"_searchStalledTimer",void 0),(0,pe._)(r,"_initialUiState",void 0),(0,pe._)(r,"_initialResults",void 0),(0,pe._)(r,"_manuallyResetScheduleSearch",!1),(0,pe._)(r,"_resetScheduleSearch",void 0),(0,pe._)(r,"_createURL",void 0),(0,pe._)(r,"_searchFunction",void 0),(0,pe._)(r,"_mainHelperSearch",void 0),(0,pe._)(r,"_hasSearchWidget",!1),(0,pe._)(r,"_hasRecommendWidget",!1),(0,pe._)(r,"_insights",void 0),(0,pe._)(r,"_initialOptions",void 0),(0,pe._)(r,"middleware",[]),(0,pe._)(r,"sendEventToInsights",void 0),(0,pe._)(r,"_createdAt",ke()),(0,pe._)(r,"status","idle"),(0,pe._)(r,"error",void 0),(0,pe._)(r,"scheduleSearch",Qe(function(){r.started&&r.mainHelper.search()})),(0,pe._)(r,"scheduleRender",Qe(function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(null===(e=r.mainHelper)||void 0===e?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")},function(e,t){var r=(0,ge._)(e,1)[0],n=void 0===r||r,i=(0,ge._)(t,1)[0];return[n||void 0===i||i]})),(0,pe._)(r,"onInternalStateChange",Qe(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var n=e.indexName,i=void 0===n?"":n,s=e.compositionID,a=e.numberLocale,o=e.initialUiState,c=void 0===o?{}:o,u=e.routing,l=void 0===u?null:u,h=e.insights,d=void 0===h?void 0:h,f=e.searchFunction,p=e.stalledSearchDelay,m=void 0===p?200:p,g=e.searchClient,v=void 0===g?null:g,y=e.insightsClient,_=void 0===y?null:y,b=e.onStateChange,w=void 0===b?null:b,x=e.future,S=void 0===x?(0,D._)({},dt,e.future||{}):x;if(null===v)throw new Error(lt("The `searchClient` option is required."));if("function"!=typeof v.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof v.addAlgoliaAgent&&v.addAlgoliaAgent("instantsearch.js (".concat(je,")")),_&&"function"!=typeof _)throw new Error(lt("The `insightsClient` option should be a function."));if(r._initialOptions=e,r.client=v,r.future=S,r.insightsClient=_,r.indexName=i,r.compositionID=s,r.helper=null,r.mainHelper=null,r.mainIndex=st({indexName:r.compositionID||r.indexName}),r.onStateChange=w,r.started=!1,r.templatesConfig={helpers:at({numberLocale:a}),compileOptions:{}},r._stalledSearchDelay=m,r._searchStalledTimer=null,r._createURL=ht,r._initialUiState=c,r._initialResults=null,r._insights=d,f&&(r._searchFunction=f),r.sendEventToInsights=_e,l){var O="boolean"==typeof l?{}:l;O.$$internal=!0,r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,s=n.hostname,a=n.port,o=void 0===a?"":a,c=n.pathname,u=n.hash,l=t.stringify(r),h=""===o?"":":".concat(o);return l?"".concat(i,"//").concat(s).concat(h).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(s).concat(h).concat(c).concat(u)}:t,n=e.parseURL,i=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,s=e.writeDelay,a=void 0===s?400:s,o=e.windowTitle,c=e.getLocation,u=void 0===c?function(){return ue(function(e){return e.window.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,l=e.start,h=e.dispose,d=e.push,f=e.cleanUrlOnDispose;return new Ve({createURL:r,parseURL:i,writeDelay:a,windowTitle:o,getLocation:u,start:l,dispose:h,push:d,cleanUrlOnDispose:f})}():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,H._)((0,D._)({},t),(0,pe._)({},r,$e(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"object"!==(void 0===n?"undefined":(0,Y._)(n))||null===n?t:(0,H._)((0,D._)({},t),(0,pe._)({},r,$e(n)))},{})}}:n,s=e.$$internal,a=void 0!==s&&s;return function(e){var t=e.instantSearchInstance;
2t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),s=Object.keys(e).reduce(function(t,r){return(0,H._)((0,D._)({},t),(0,pe._)({},r,e[r]))},n),a=i.stateToRoute(s);return r.createURL(a)};var n=void 0,s=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:a,onStateChange:function(e){var t=e.uiState,s=i.stateToRoute(t);void 0!==n&&ce(n,s)||(r.write(s),n=s)},subscribe:function(){t._initialUiState=(0,D._)({},s,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null===(e=r.start)||void 0===e||e.call(r)},unsubscribe:function(){r.dispose()}}}}(O))}if(d){var E="boolean"==typeof d?{}:d;E.$$internal=!0,r.use(Me(E))}return ue(function(e){var t,r;return(null===(r=e.window.navigator)||void 0===r||null===(t=r.userAgent)||void 0===t?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(He({$$internal:!0})),r}return(0,me._)(t,e),(0,fe._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=(0,D._)({$$type:"__unknown__",$$internal:!1,subscribe:_e,started:_e,unsubscribe:_e,onStateChange:_e},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,ve._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw new Error(lt("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&Oe(e)&&!e._isolated}))throw new Error(lt("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw new Error(lt("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(lt("The `start` method has already been called once."));var t,r,n,i=this.mainHelper||k(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(i.searchForFacetValues=i.searchForCompositionFacetValues.bind(i)),i.search=function(){var t=e._hasSearchWidget||e._hasRecommendWidget;return t&&(e.status="loading"),e.scheduleRender(!t),e._hasSearchWidget&&(e.compositionID?i.searchWithComposition():i.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&i.recommend(),i},this._searchFunction){var s={search:function(){return new Promise(_e)}};this._mainHelperSearch=i.search.bind(i),i.search=function(){var t=e.mainIndex.getHelper(),r=k(s,t.state.index,t.state);return r.once("search",function(r){var n=r.state;t.overrideStateWithoutTriggeringChangeEvent(n),e._mainHelperSearch()}),r.on("change",function(e){var r=e.state;t.setState(r)}),e._searchFunction(r),i}}if(i.on("error",function(t){var r=t.error;if(!(0,se._)(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},new Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!e._hasSearchWidget&&!e._hasRecommendWidget),e.emit("error",r)}),this.mainHelper=i,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,s=n.requestParam
2s,a=ct(n),o=a&&i?a.map(function(e,t){return(0,D._)({indexName:i.index||e.index},(null==s?void 0:s[t])||e.params?{params:ut((null==s?void 0:s[t])||(r=e.params,r.split("&").reduce(function(e,t){var r=(0,ge._)(t.split("="),2),n=r[0],i=r[1];return e[n]=i?decodeURIComponent(i):"",e},{})))}:{});var r}):[];return e.concat(o)},[])],n=Object.keys(t).reduce(function(e,r){var n=ct(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];var a=Array.isArray(t)?t.map(function(e){return(0,H._)((0,D._)({},e),{params:ut(e.params)})}):ut(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[a].concat((0,ve._)(n))},function(){return i.apply(void 0,[t].concat((0,ve._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var s="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,H._)((0,D._)({},e.cache),(0,pe._)({},s,JSON.stringify({results:Object.keys(t).map(function(e){return ct(t[e])})})))}}}(this.client,this._initialResults),t=this.mainHelper,r=this._initialResults,n=Object.keys(r).reduce(function(e,t){var n=r[t];return n.recommendResults?(0,D._)({},e,n.recommendResults.results):e},{}),t._recommendCache=n;var a=this.scheduleSearch;this.scheduleSearch=Qe(_e),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=a}:Qe(function(){e.scheduleSearch=a})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&i.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(Me({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null===(e=this.mainHelper)||void 0===e||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()}),this._initialOptions=null}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.mainHelper)throw new Error(lt("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var n="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:n,setUiState:function(e){ot("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(ot(n,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw new Error(lt("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(lt("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(ye),pt=function(e,t){return e},mt=function(e){return new ft(e)};mt.version=je,mt.createInfiniteHitsSessionStorageCache=pt(function(){var e=["ais.infiniteHits",(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key].filter(Boolean).join(":");return{read:function(t){var r=t.state,n=ue(function(e){return e.window.sessionStorage});if(!n)return null;try{var i=JSON.parse(n.getItem(e));return i&&ce(i.state,le(r))?i.hits:null}catch(t){if((0,se._)(t,SyntaxError))try{n.removeItem(e)}catch(e){}return null}},write:function(t){var r=t.state,n=t.hits,i=ue(function(e){return e.window.sessionStorage});if(i)try{i.setItem(e,JSON.stringify({state:le(r),hits:n}))}catch(e){}}}}),mt.highlight=pt(M),mt.reverseHighlight=pt(z),mt.snippet=pt(J),mt.reverseSnippet=pt(G),mt.insights=ne,mt.getInsightsAnonymousUserToken=function(){return ie()}
2,Object.defineProperty(mt,"widgets",{get:function(){throw new ReferenceError("\"instantsearch.widgets\" are not available from the ES build.\n\nTo import the widgets:\n\nimport { searchBox } from 'instantsearch.js/es/widgets'")}}),Object.defineProperty(mt,"connectors",{get:function(){throw new ReferenceError("\"instantsearch.connectors\" are not available from the ES build.\n\nTo import the connectors:\n\nimport { connectSearchBox } from 'instantsearch.js/es/connectors'")}}),Object.defineProperty(mt,"templates",{get:function(){throw new ReferenceError("\"instantsearch.templates\" are not available from the ES build.\n\nTo import the templates:\n\nimport { carousel } from 'instantsearch.js/es/templates'")}})},4382(e,t,r){"use strict";r.d(t,{C:()=>a});var n=r(7371),i=r(3604),s=r(5046);function a(e){var t=e.defaultTemplates,r=e.templates,a=e.templatesConfig,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.s)((0,i._)(Object.keys(e||{})).concat((0,i._)(Object.keys(t)))).reduce(function(r,n){var i=e?e[n]:void 0,s=t[n],a=void 0!==s&&s!==i;return r.templates[n]=a?s:i,r.useCustomCompileOptions[n]=a,r},{templates:{},useCustomCompileOptions:{}})}(t,r);return(0,n._)({templatesConfig:a},o)}},1677(e,t,r){"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw new Error("The render function is not valid (received type ".concat((r=e,Object.prototype.toString.call(r).slice(8,-1)),").\n\n").concat(t));var r}r.d(t,{t:()=>n})},8421(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){return["https://www.algolia.com/doc/api-reference/widgets/",(t=e).name,"/js/",void 0!==(r=t.connector)&&r?"#connector":""].join("");var t,r}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>n})},9505(e,t,r){"use strict";r.d(t,{FU:()=>l,S8:()=>f,sn:()=>h});var n=r(7837),i=r(1653),s=r(7655),a=r(7371),o=r(5662),c=r(6916),u=r(616),l={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},h={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function d(e){return(0,u.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,o._)((0,a._)({},t),(0,n._)({},r,d(e[r])))},{}):Array.isArray(e)?e.map(d):(0,o._)((0,a._)({},e),{value:(t=e.value,(0,c.i)(t).replace(new RegExp(l.highlightPreTag,"g"),h.highlightPreTag).replace(new RegExp(l.highlightPostTag,"g"),h.highlightPostTag))});var t}function f(e){return void 0===e.__escaped&&((e=e.map(function(e){(0,s._)(e);var t=(0,i._)({},e);return t._highlightResult&&(t._highlightResult=d(t._highlightResult)),t._snippetResult&&(t._snippetResult=d(t._snippetResult)),t})).__escaped=!0),e}},6916(e,t,r){"use strict";r.d(t,{i:()=>a,x:()=>l});var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,s=RegExp(i.source);function a(e){return e&&s.test(e)?e.replace(i,function(e){return n[e]}):e}var o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},c=/&(amp|quot|lt|gt|#39);/g,u=RegExp(c.source);function l(e){return e&&u.test(e)?e.replace(c,function(e){return o[e]}):e}},8986(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(7716);function i(e){var t,r="string"==typeof e,i=r?document.querySelector(e):e;if(t=i,!((0,n._)(t,HTMLElement)||Boolean(t)&&t.nodeType>0)){var s="Container must be `string` or `HTMLElement`.";throw r&&(s+=" Unable to find ".concat(e)),new Error(s)}return i}},616(e,t,r){"use strict";r.d(t,{Q:()=>i});var n=r(9392);function i(e){if(!function(e){return"object"===(void 0===e?"undefined":(0,n._)(e))&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},3295(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},5046(e,t,r){"use strict";function n(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}r.d(t,{s:()=>n})},2929(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(7371),i=r(5662),s=r(7837),a=r(4360),o=r(616),c=r(8421),u=r(1195),l=r(5046),h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})}(e,t),i=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)}(function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},e.hierarchicalFacets)})}(r,t),t),s=function(e,t){return e.setQueryParameters({numericRefinements:(0,n._)({},e.numericRefinements,t.numericRefinements)})}(i,t),a=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})}(s,t),o=function(e,t){return e.setQueryParameters({facetsExcludes:(0,n._)({},e.facetsExcludes,t.facetsExcludes)})}(a,t),c=function(e,t){return e.setQueryParameters({facetsRefinements:(0,n._)({},e.facetsRefinements,t.facetsRefinements)})}(o,t),h=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)}(c,t),d=function(e,t){var r=(0,l.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(
2Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e}(h,t),f=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)}(d,t);return function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,u._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}(f,t)})},d=r(3295),f=(0,c.V)({name:"configure",connector:!0});function p(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return(0,i._)((0,n._)({},e),(0,s._)({},t,void 0))},{}))}var m=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.l;return function(r){if(!r||!(0,o.Q)(r.searchParameters))throw new Error(f("The `searchParameters` option expects an object."));var s={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),p(n,r)},getRenderState:function(e,t){var r,s=this.getWidgetRenderState(t);return(0,i._)((0,n._)({},e),{configure:(0,i._)((0,n._)({},s),{widgetParams:(0,i._)((0,n._)({},s.widgetParams),{searchParameters:h(new a.SearchParameters(null===(r=e.configure)||void 0===r?void 0:r.widgetParams.searchParameters),new a.SearchParameters(s.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return s.refine||(s.refine=function(e){return function(t){var n=p(e.state,r),i=h(n,new a.SearchParameters(t));r.searchParameters=t,e.setState(i).search()}}(t)),{refine:s.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var i=t.uiState;return h(e,new a.SearchParameters((0,n._)({},i.configure,r.searchParameters)))},getWidgetUiState:function(e){return(0,i._)((0,n._)({},e),{configure:(0,n._)({},e.configure,r.searchParameters)})}}}}(d.l);return(0,i._)((0,n._)({},t({searchParameters:e})),{$$widgetType:"ais.configure"})}},9729(e,t,r){"use strict";r.d(t,{A:()=>C});var n=r(1653),i=r(7655),s=r(7371),a=r(5662),o=r(1195),c=r(2782),u=r(8542),l=r(5808),h=r(7837),d=r(1265),f=r(9392);function p(e){return JSON.parse(decodeURIComponent(atob(e)))}function m(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(1===n.length&&"object"===(0,f._)(n[0]))return[n[0]];var a=(0,d._)(n[0].split(":"),2),o=a[0],c=a[1],u=n[1],l=n[2],h=n[3]||{};if(!u)return[];if(("click"===o||"conversion"===o)&&!l)return[];var p=Array.isArray(u)?u:[u];if(0===p.length)return[];var m=p[0].__queryID,g=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(p),v=g.map(function(e){return e.map(function(e){return e.objectID})}),y=g.map(function(e){return e.map(function(e){return e.__position})});return"view"===o?"idle"!==i.status?[]:g.map(function(e,n){var i;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:o,payload:(0,s._)({eventName:l||"Hits Viewed",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,objectIDs:v[n]},h),hits:e,eventModifier:c}}):"click"===o?g.map(function(e,n){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:o,payload:(0,s._)({eventName:l||"Hit Clicked",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,queryID:m,objectIDs:v[n],positions:y[n]},h),hits:e,eventModifier:c}}):"conversion"===o?g.map(function(e,n){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:o,payload:(0,s._)({eventName:l||"Hit Converted",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,queryID:m,objectIDs:v[n]},h),hits:e,eventModifier:c}}):[]}var g=r(8421),v=r(1677),y=r(9505),_=r(3295),b=(0,g.V)({name:"hits",connector:!0}),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.l;return(0,v.t)(e,b()),function(r){var n,i,o=r||{},c=o.escapeHTML,u=void 0===c||c,l=o.transformItems,d=void 0===l?function(e){return e}:l;return{$$type:"ais.hits",init:function(t){e((0,a._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,a._)((0,s._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,a._)((0,s._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,o,c,l=e.results,h=e.helper,f=e.instantSearchInstance;if(n||(n=function(e){var t=e.instantSearchInstance,r=e.helper,n=e.widgetType,i={},s=void 0;return function(){for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];m({widgetType:n,helper:r,methodName:"sendEvent",args:a,instantSearchInstance:t}
2).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&i[e.eventType]||(i[e.eventType]=!0,t.sendEventToInsights(e))}),clearTimeout(s),s=setTimeout(function(){i={}},0)}}({instantSearchInstance:f,helper:h,widgetType:this.$$type})),i||(i=function(e){var t=e.helper,r=e.widgetType,n=e.instantSearchInstance;return function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];var a,o=m({widgetType:r,helper:t,methodName:"bindEvent",args:i,instantSearchInstance:n});return o.length?"data-insights-event=".concat((a=o,btoa(encodeURIComponent(JSON.stringify(a))))):""}}({helper:h,widgetType:this.$$type,instantSearchInstance:f})),!l)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:n,bindEvent:i,widgetParams:r};u&&l.hits.length>0&&(l.hits=(0,y.S8)(l.hits));var p=function(e,t,r){return e.map(function(e,n){return(0,a._)((0,s._)({},e),{__position:r*t+n+1})})}(l.hits,l.page,l.hitsPerPage),g=function(e,t){return t?e.map(function(e){return(0,a._)((0,s._)({},e),{__queryID:t})}):e}(p,l.queryID),v=d(g,{results:l});return{hits:v,items:v,results:l,banner:null===(c=l.renderingContent)||void 0===c||null===(o=c.widgets)||void 0===o||null===(t=o.banners)||void 0===t?void 0:t[0],sendEvent:n,bindEvent:i,widgetParams:r}},dispose:function(e){var r=e.state;return t(),u?r.setQueryParameters(Object.keys(y.FU).reduce(function(e,t){return(0,a._)((0,s._)({},e),(0,h._)({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return u?e.setQueryParameters(y.FU):e}}}};function x(e,t,r){for(var n=e;n&&!r(n);){if(n===t)return null;n=n.parentElement}return n}var S={empty:function(){return"No results"},item:function(e){return(0,u.h)(u.FK,null,JSON.stringify((r=["__hitIndex"],null==(t=e)?t:Object.keys(t).reduce(function(e,n){if(r.indexOf(n)>=0)return e;var i=n;return e[i]=t[i],e},{})),null,2));var t,r}},O=r(5046);function E(e){return function(t,r){return e(function(e,r){var n=e.results,i=e.hits,o=e.instantSearchInstance;if(n&&i&&o){var c=function(e,t,r){return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];var c=(0,d._)(a,1)[0];if(!e){var u=(0,g.V)({name:"instantsearch"});throw new Error(u("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(c.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var l=function(e){var t=e.method,r=e.results,n=e.hits,i=e.objectIDs,s=r.index,a=function(e,t){return t.map(function(t){var r=function(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n]))return r}(e,function(e){return e.objectID===t});if(void 0===r)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return r})}(n,i),o=function(e){var t=(0,O.s)(e.map(function(e){return e.__queryID}));if(t.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var r=t[0];if("string"!=typeof r)throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return r}(a);switch(t){case"clickedObjectIDsAfterSearch":var c=function(e){return e.map(function(e){return e.__position})}(a);return{index:s,queryID:o,objectIDs:i,positions:c};case"convertedObjectIDsAfterSearch":return{index:s,queryID:o,objectIDs:i};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}}({method:n,results:t,hits:r,objectIDs:c.objectIDs});e(n,(0,s._)({},l,c))}}(o.insightsClient,n,i);return t((0,a._)((0,s._)({},e),{insights:c}),r)}return t(e,r)},r)}}var R,T,P,A=r(8986),k=r(4382),j=(0,g.V)({name:"hits"}),F=(R={createElement:u.h,Fragment:u.FK},P=function(e){var t=e.createElement;return function(e){var r=e.classNames,n=e.banner;return n.image.urls[0].url?t("aside",{className:(0,c.cx)("ais-Hits-banner",r.bannerRoot)},n.link?t("a",{className:(0,c.cx)("ais-Hits-banner-link",r.bannerLink),href:n.link.url,target:n.link.target},t("img",{className:(0,c.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title}
2)):t("img",{className:(0,c.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title})):null}}({createElement:T=R.createElement,Fragment:R.Fragment}),function(e){var t=e.classNames,r=void 0===t?{}:t,n=e.hits,i=e.itemComponent,u=e.sendEvent,l=e.emptyComponent,h=e.banner,d=e.bannerComponent,f=(0,o._)(e,["classNames","hits","itemComponent","sendEvent","emptyComponent","banner","bannerComponent"]);return T("div",(0,a._)((0,s._)({},f),{className:(0,c.cx)("ais-Hits",r.root,0===n.length&&(0,c.cx)("ais-Hits--empty",r.emptyRoot),f.className)}),h&&(d?T(d,{className:(0,c.cx)("ais-Hits-banner",r.bannerRoot),banner:h}):T(P,{classNames:r,banner:h})),0===n.length&&l?T(l,null):T("ol",{className:(0,c.cx)("ais-Hits-list",r.list)},n.map(function(e,t){return T(i,{key:e.objectID,hit:e,index:t,className:(0,c.cx)("ais-Hits-item",r.item),onClick:function(){u("click:internal",e,"Hit Clicked")},onAuxClick:function(){u("click:internal",e,"Hit Clicked")}})})))}),C=function(e){var t=e||{},r=t.container,c=t.escapeHTML,h=t.transformItems,d=t.templates,f=void 0===d?{}:d,m=t.cssClasses,g=void 0===m?{}:m;if(!r)throw new Error(j("The `container` option is required."));var v=(0,A.e)(r),y=function(e){var t=e.renderState,r=e.cssClasses,c=e.containerNode,h=e.templates;return function(e,d){var f=e.items,m=e.results,g=e.instantSearchInstance,v=e.insights,y=e.bindEvent,_=e.sendEvent,b=e.banner;if(d)t.templateProps=(0,k.C)({defaultTemplates:S,templatesConfig:g.templatesConfig,templates:h});else{var w=function(e){var t=e.insights,r=e.sendEvent;return function(e){var n=x(e.target,e.currentTarget,function(e){return e.hasAttribute("data-insights-event")});n&&function(e){var t=e.getAttribute("data-insights-event");
2if("string"!=typeof t)throw new Error("The insights middleware expects `data-insights-event` to be a base64-encoded JSON string.");try{return p(t)}catch(e){throw new Error("The insights middleware was unable to parse `data-insights-event`.")}}(n).forEach(function(e){return r(e)});var i=x(e.target,e.currentTarget,function(e){return e.hasAttribute("data-insights-method")&&e.hasAttribute("data-insights-payload")});if(i){var s=function(e){var t=e.getAttribute("data-insights-method"),r=e.getAttribute("data-insights-payload");if("string"!=typeof r)throw new Error("The insights helper expects `data-insights-payload` to be a base64-encoded JSON string.");try{return{method:t,payload:p(r)}}catch(e){throw new Error("The insights helper was unable to parse `data-insights-payload`.")}}(i),a=s.method,o=s.payload;t(a,o)}}}({insights:v,sendEvent:_});(0,u.XX)((0,u.h)(F,{hits:f,itemComponent:function(e){var r=e.hit,n=e.index,i=(0,o._)(e,["hit","index"]);return(0,u.h)(l.A,(0,a._)((0,s._)({},t.templateProps),{templateKey:"item",rootTagName:"li",rootProps:(0,a._)((0,s._)({},i),{onClick:function(e){w(e),i.onClick()},onAuxClick:function(e){w(e),i.onAuxClick()}}),data:(0,a._)((0,s._)({},r),{get __hitIndex(){return n}}),bindEvent:y,sendEvent:_}))},sendEvent:_,classNames:r,emptyComponent:function(e){(0,i._)(e);var r=(0,n._)({},e);return(0,u.h)(l.A,(0,a._)((0,s._)({},t.templateProps),{rootProps:r,templateKey:"empty",data:m,rootTagName:"fragment"}))},banner:b,bannerComponent:h.banner?function(e){return(0,u.h)(l.A,(0,a._)((0,s._)({},t.templateProps),{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),c)}}}({containerNode:v,cssClasses:g,renderState:{},templates:f}),_=E(w)(y,function(){return(0,u.XX)(null,v)});return(0,a._)((0,s._)({},_({escapeHTML:c,transformItems:h})),{$$widgetType:"ais.hits"})}}};const t={};function r(n){const i=t[n];if(void 0!==i)return i.exports;const s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],s=t[n++],a=0===s?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:s};r.o(e,i)||Object.defineProperty(e,i,a)}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=r.cw(function(e,t){const n=r(5646);r.d(t,["U",0,n])}),t=r(7578);function n(e){return e.keys().map(t=>function(e,t){const r=function(e){const t=(e.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(t)return t.replace(/_/g,"-").replace(/\//g,"--")}(t);if(r)return function(e,t){const r=e.default;if("function"==typeof r)return{identifier:t,controllerConstructor:r}}(e(t),r)}(e,t)).filter(e=>e)}var i=["accounts.livechat.com/signup","accounts.labs.livechat.com/signup","accounts.staging.livechat.com/signup","accounts.text.com/signup","accounts.labs.text.com/signup","accounts.staging.text.com/signup","partners.livechat.com/app/auth/sign-up","partners.labs.livechat.com/app/auth/sign-up","app.knowledgebase.ai"],s=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],a=["region","sscid","discount","
2internal_campaign"],o=["text.com","livechat.com","livechatinc.com","helpdesk.com","chatbot.com","knowledgebase.com","knowledgebase.ai","openwidget.com","lc.chat","netlify.app","localhost"],c=["fbclid","wbraid","gbraid","gclid","qclid","_fbp","rdt_cid","li_fat_id"],u=["_fbp"],l={exact:{FPLC:1,_fplc:1,FPAU:60},prefix:[["_gcl_",90],["_ga",730]],default:90},h=["hubspotutk","__hstc"],d="__hutk",f="__hstc",p=(e,t)=>{try{let{searchParams:r}=new URL(e);return t?Array.from(r.keys()).some(e=>e.startsWith(t)):r.size>0}catch{return!1}};function m(e,t,r){if(!t||0===Object.keys(t).length)return;let n=Object.entries(t).filter(e=>void 0!==e[1]&&""!==e[1]).map(([e,t])=>({key:e,value:t}));if(0===n.length)return;let i=e=>{e.forEach(e=>{let t="FORM"===e.tagName,r=t?"action":"href",i=e.getAttribute(r);if(!i)return;let s=p(i,"utm_")?n.filter(({key:e})=>!e.startsWith("utm_")):n,a=((e,t)=>{let r="string"==typeof e?new URL(e,window.location.origin):e;return t.forEach(({key:e,value:t})=>{r.searchParams.set(e,t)}),r})(i,s).toString();if(e.setAttribute(r,a),t){let t=e;s.forEach(({key:e,value:r})=>{let n=Array.from(t.elements).find(t=>"name"in t&&t.name===e);if(n)n.value=r;else{let n=document.createElement("input");n.type="hidden",n.name=e,n.value=r,t.appendChild(n)}})}})};r&&r.length?i(r):e.forEach(e=>{let t=document.querySelectorAll(`a[href*="${e}"]`),r=document.querySelectorAll(`form[action*="${e}"]`);i([...t,...r])})}function g(e,t,r={}){let n=t[e];if(!n)return;let i=r.ignoreNoReferrer??!1;o.forEach(t=>{document.querySelectorAll(`a[href*="${t}"]`).forEach(t=>{let r,s=t.getAttribute("rel")||"";if(!(!i&&s.includes("noreferrer")||s.includes("nofollow"))){try{r=new URL(t.href)}catch{return}r.hostname!==window.location.hostname&&(r.searchParams.set(e,n),t.setAttribute("href",r.toString()))}}),document.querySelectorAll(`form[action*="${t}"]`).forEach(t=>{let r,s=t.getAttribute("rel")||"";if(!i&&s.includes("noreferrer")||s.includes("nofollow"))return;try{r=new URL(t.action)}catch{return}if(r.hostname===window.location.hostname)return;r.searchParams.set(e,n),t.setAttribute("action",r.toString());let a=Array.from(t.elements).find(t=>"name"in t&&t.name===e);if(a)a.value=n;else{let r=document.createElement("input");r.type="hidden",r.name=e,r.value=n,t.appendChild(r)}})})}var v=()=>{if(typeof window>"u"||typeof document>"u")throw Error("This should be only run on a browser")},y=()=>typeof window<"u"&&"true"===localStorage.getItem("debug"),_="metrics_local_data",b="metrics_local_timestamp",w="metrics_session_data",x="metrics_session_timestamp",S=(e,t="session")=>{let r="local"===t?localStorage:sessionStorage;return JSON.parse(r.getItem(e)||"{}")},O=(e,t="session")=>{let r="local"===t?localStorage:sessionStorage;return Number(r.getItem(e))||0},E=(e,t,r="session")=>("local"===r?localStorage:sessionStorage).setItem(e,JSON.stringify(t));function R(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var T={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},P=function e(t,r){function n(e,n,i){if(!(typeof document>"u")){"number"==typeof(i=R({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in i)i[a]&&(s+="; "+a,!0!==i[a]&&(s+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+s}}return Object.create({set:n,get:function(e){if(!(typeof document>"u"||arguments.length&&!e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var s=r[i].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(o in n||(n[o]=t.read(a,o)),e===o)break}catch{}}return e?n[e]:n}},remove:function(e,t){n(e,"",R({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,R({},this.attributes,t))},withConverter:function(t){return e(R({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}(T,{path:"/"});function A(){let e=window.location.hostname;if("localhost"===e||/^\d+\.\d+\.\d+\.\d+$/.test(e))return;let t=e.split("."),r="__store_metrics_domain_test";for(let e=t.length-1;e>=1;e--){let n="."+t.slice(e-1).join(".");if(P.set(r,"1",{domain:n,path:"/",sameSite:"Lax",secure:"https:"===window.location.protocol}),P.get(r))return P.remove(r,{domain:n,path:"/"}),n}}var k=e=>{if("string"==typeof e){let t=P.get(e);return t?[[e,t]]:[]}let t=P.get();return Object.entries(t).filter(([t])=>e.test(t))};function j(e,t={}){let{domain:r,getExpiry:n,defaultExpiry:i=90}=t,s="https:"===window.location.protocol;Object.entries(e).forEach(([e,t])=>{P.set(e,t,{expires:n?n(e):i,path:"/",sameSite:"Lax",secure:s,...r?{domain:r}:{}})})}var F=(e,t)=>{let r=new URLSearchParams((e=>{if(void 0===e)return window.location.search;try{return new URL(e).search}catch{return""}})(t)),n={};
2return e.forEach(e=>{let t=r.get(e);t&&(n[e]=t)}),n},C=()=>{let e={};return c.filter(e=>"fbclid"!==e).flatMap(e=>k(e)).forEach(([t,r])=>{e[t]=r}),e},I=e=>{if(e in l.exact)return l.exact[e];let t=l.prefix.find(([t])=>e.startsWith(t));return t?t[1]:l.default},M={[d]:"hubspotutk",[f]:"__hstc"},N={hubspotutk:d,__hstc:f};var L=/^G[A-Z]\d+\.\d+\.(.*)/,D=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),H=e=>window.btoa(e).replace(/=/g,"."),U=(e,t,r)=>{let n=[e+"_ga"];r?.length?r.forEach(t=>n.push(e+"_ga_"+t)):n.push(RegExp("^"+D(e)+"_ga_[A-Z0-9]+$")),n.push("FPLC","FPAU");let i=["_aw","_dc","_gb","_ag","_gf","_ha","_au"];return i.forEach(e=>{n.push(t+e)}),e&&t!==e&&i.forEach(t=>{n.push(e+t)}),n},V=(e,t,r,n)=>{let i=/([^?#]+)(\?[^#]*)?(#.*)?/.exec(r);if(!i)return"";let s=i[1],a=i[2]||"",o=i[3]||"",c=e+"="+t,u=t=>{let r=RegExp("(^|&)"+D(e)+"=[^&]*&?");return(t=t.replace(r,"$1")).endsWith("&")&&(t=t.slice(0,-1)),t&&!t.endsWith("&")&&(t+="&"),t+c};return n?o="#"+u(o.substring(1)):a="?"+u(a.substring(1)),s+a+o},$=(e={})=>{v();let t=e.gaCookiesPrefix??"",r=e.conversionLinkerCookiesPrefix??(t?t+"_gcl":"_gcl"),n=e.ga4Streams,i=e.debug??!1,s=(e=>{let t,{cookiesNamesList:r,gaCookiesPrefix:n,conversionLinkerCookiesPrefix:i}=e,s=RegExp("^"+D(n)+"_ga"),a=[];return Array.isArray(r)||"object"!=typeof r?(r.forEach(e=>{(e instanceof RegExp?(e=>{let t=("; "+document.cookie).split("; "),r=[];for(let n=t.length-1;n>=0;n--){let i=t[n].indexOf("=");if(-1===i)continue;let s=t[n].substring(0,i),a=t[n].substring(i+1);s&&(e instanceof RegExp?e.test(s):e===s)&&r.push([s,a])}return r})(e):(()=>{let t=(e=>{let t=("; "+document.cookie).split("; ");for(let r=t.length-1;r>=0;r--){let n=t[r].indexOf("=");if(-1===n)continue;let i=t[r].substring(0,n),s=t[r].substring(n+1);if(i&&(e instanceof RegExp?e.test(i):e===i))return[i,s]}return null})(e);return t?[t]:[]})()).forEach(([e,r])=>{if(!r)return;if("FPLC"===e)return void(t=r);let o=r;if(s.test(e)){let e=L.exec(o);e&&(o=e[1])}else if(e===i+"_au"||n&&e===n+"_au"||"FPAU"===e){let e=o.split(".");e.length>2&&(o=e.slice(2).join("."))}a.push(e+"*"+H(o))})}),t&&a.push("_fplc*"+H(t)),a):(Object.entries(r).forEach(([e,r])=>{"FPLC"!==e?a.push(e+"*"+H(r)):t=r}),t&&a.push("_fplc*"+H(t)),a)})({cookiesNamesList:e.cookiesNamesList??U(t,r,n),gaCookiesPrefix:t,conversionLinkerCookiesPrefix:r});if(!s.length)return"";let a=function(e){let t,r=[window.navigator.userAgent,(new Date).getTimezoneOffset(),window.navigator.language,Math.floor((new Date).getTime()/60/1e3)-0,e?e.join("*"):""].join("*"),n=[];for(let e=0;e<256;e++){t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;n[e]=t}let i=-1;for(let e=0;e<r.length;e++)i=i>>>8^n[255&(i^r.charCodeAt(e))];return((-1^i)>>>0).toString(36)}(s);return i&&s.push("text_test*"+a),["1",a,s.join("*")].join("*")},B=(e,t)=>!t?.length||t.some(t=>e===t||e.endsWith("."+t)),W=e=>{v(),(e.disableNativeGtmDecorators??!0)&&(()=>{let e=window.google_tag_data?.gl;if(e)try{Object.defineProperty(e,"decorators",{get:()=>[],set:()=>{},configurable:!0})}catch{e.decorators=[]}})();let t=e.linkerQueryParameterName??"_gl",r=e.useFragment??!1,n=e.gaCookiesPrefix??"",i=e.conversionLinkerCookiesPrefix??(n?n+"_gcl":"_gcl"),s=e.ga4Streams,a=e.cookiesNamesList??U(n,i,s),o=e.allowedDomains,c=$({gaCookiesPrefix:n,conversionLinkerCookiesPrefix:i,cookiesNamesList:a,debug:e.debug??!1});if(!c)return;let u,{entity:l}=e;u=l instanceof NodeList?Array.from(l):Array.isArray(l)?l:[l];let h=[];return u.forEach(e=>{if("string"==typeof e){let n;try{if(n=new URL(e,window.location.href).hostname,n===window.location.hostname||!B(n,o))return}catch{return}let i=V(t,c,e,r);i&&h.push(i)}else if("A"===e.tagName){let n;try{if(n=new URL(e.href).hostname,n===window.location.hostname||!B(n,o))return}catch{return}let i=((e,t,r,n)=>{if(!r.href)return;let i=V(e,t,r.href,n);return i?(r.href=i,r):void 0})(t,c,e,r);i&&h.push(i)}else if("FORM"===e.tagName){let r;try{if(r=new URL(e.action).hostname,r===window.location.hostname||!B(r,o))return}catch{return}let n=((e,t,r)=>{if(!r.action)return;if("get"===(r.method||"").toLowerCase()){let n=!1,i=r.querySelector(`input[name="${e}"]`);if(i&&(i.setAttribute("value",t),n=!0),!n){let n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),r.appendChild(n)}return r}let n=V(e,t,r.action,!1);return n?(r.action=n,r):void 0})(t,c,e);n&&h.push(n)}}),h.length>0?h:void 0};function q(){(({cookieDomain:e,url:t}={})=>{v();let r=e??A(),n=F(c,t);if(y()&&console.log("Click ID Metrics: Data from parameters:",n),Object.keys(n).length){let e=Object.fromEntries(Object.entries(n).filter(([e])=>u.includes(e)));Object.keys(e).length&&j(e,{domain:r,getExpiry:e=>I(e)})}let i=C();y()&&console.log("Click ID Metrics: Data from cookies:",i);let s=(({url:e}={})=>{let t=C(),r=F(c,e),n=(()=>{let e=k("_fbc");if(!e.length)return null;let[,t]=e[0],r=t.split(".");return r.length<4?null:r[3]})(),i={...t};return n&&(i.fbclid=n),{...i,...r}})({url:t});Object.keys(s).length&&(m(o,s),y()&&console.log("Click ID Metrics: URLs decorated with params:",s))})(),(({cookieDomain:e,url:t}={})=>{v();let r=e??A(),n=(e=>{let t=new URLSearchParams(e?new URL(e).search:window.location.search),r={};
2return Object.entries(M).forEach(([e,n])=>{let i=t.get(e);i&&(r[n]=i)}),r})(t);y()&&console.log("HubSpot Metrics: Data from URL parameters:",n),Object.keys(n).length&&(j(n,{domain:r,defaultExpiry:180}),y()&&console.log("HubSpot Metrics: Cookies set from URL parameters"));let i=(()=>{let e={};return h.forEach(t=>{let r=P.get(t);r&&(e[t]=r)}),e})();if(y()&&console.log("HubSpot Metrics: Data from cookies:",i),Object.keys(i).length){let e={};Object.entries(i).forEach(([t,r])=>{let n=N[t];n&&(e[n]=r)}),y()&&console.log("HubSpot Metrics: Decoration params:",e),Object.keys(e).length&&(m(o,e),y()&&console.log("HubSpot Metrics: URLs decorated"))}})()}function Q(){const e=window.google_tag_data?.gl;if(e)try{Object.defineProperty(e,"decorators",{get:()=>[],set:()=>{},configurable:!0})}catch{e.decorators=[]}}r(9276),function(){let{localStorageKey:e=_,localStorageTimestampKey:t=b,sessionStorageKey:r=w,sessionStorageTimestampKey:n=x,url:c}={};v(),y()&&console.log("Store Metrics [log]: Initiated");let u=new URL(c??document.location.href),l=Date.now(),h={local:S(e,"local")||{},session:S(r,"session")||{}},d={local:{},session:{}},f=O(t,"local"),R=O(n,"session");l-f>10368e6&&((e,t="session")=>{let r="local"===t?localStorage:sessionStorage;e.forEach(e=>{r.removeItem(e)})})([e,t],"local");let T=s.some(e=>h.session[e]);y()&&console.log("Store Metrics [log]: hasUTMsStored",T);let P=document.referrer?new URL(document.referrer):null;y()&&console.log("Store Metrics [log]: documentReferrer",P);let A=u.searchParams.get("referrer");A?d.session.referrer=A:P&&!((e,t=o)=>{let r=e.toLowerCase();return t.some(e=>{let t=e.toLowerCase();return r===t||r.endsWith(`.${t}`)})})(P.hostname,o)&&(d.session.referrer=P.href);let k=u.searchParams.get("landing_page");k?d.session.landing_page=k:(!R||!h.session?.landing_page)&&(d.session.landing_page=u.origin+u.pathname),s.forEach(e=>{p(u.href,"utm_")&&(delete h.session[e],u.searchParams.has(e)&&(d.session[e]=u.searchParams.get(e)||void 0))}),!d.session.utm_source&&p(u.href,"utm_")&&(d.session.utm_source=d.session.referrer||h.session.referrer),u.searchParams.has("a")&&(d.local.partner_id=u.searchParams.get("a")||void 0),u.searchParams.has("partner_id")&&(d.local.partner_id=u.searchParams.get("partner_id")||void 0);let j=!!d.session.referrer,F=!d.session.referrer,C=!(!d.session.utm_source&&!d.session.utm_medium),I=!!d.local.partner_id,M=!0;(I||j&&!I||F&&!C&&!I)&&(y()&&console.log("Store Metrics [log]: Not resetting partner_id"),M=!1),M&&(y()&&console.log("Store Metrics [log]: Resetting partner_id"),d.local.partner_id=void 0),y()&&(console.log("Store Metrics [log]: hasReferrer",j),console.log("Store Metrics [log]: isDirectVisit",F),console.log("Store Metrics [log]: hasUtmSourceOrMedium is being set now",C),console.log("Store Metrics [log]: currentData.session.referrer",d.session.referrer)),a.forEach(e=>{u.searchParams.has(e)&&(d.session[e]=u.searchParams.get(e)||void 0)});let N={...h.local,...d.local};Object.keys(N).length&&(E(t,l,"local"),E(e,N,"local"));let L={...h.session,...d.session};Object.keys(L).length&&(E(n,l,"session"),E(r,L,"session"));let D={...h.session,...h.local,...d.session,...d.local};m(i,D),s.forEach(e=>{g(e,D,{ignoreNoReferrer:!0})}),g("partner_id",D,{ignoreNoReferrer:!0}),g("referrer",D),g("internal_campaign",D,{ignoreNoReferrer:!0}),g("landing_page",D,{ignoreNoReferrer:!0})}(),q();const z=function(){const{hostname:e}=window.location;return"labs.knowledgebase.com"===e||e.endsWith(".labs.knowledgebase.com")?{gaCookiesPrefix:"labs",ga4Streams:["6Q7P2SBM7W","F8YTRKHX3H"]}:"staging.knowledgebase.com"===e||e.endsWith(".staging.knowledgebase.com")?{gaCookiesPrefix:"staging",ga4Streams:["QPQZCM4P1J","XVT209N3HK"]}:{ga4Streams:["RQYQC70KNS","6B6WKKDZ3Q"]}}();Q(),window.addEventListener("load",Q,{once:!0}),document.addEventListener("click",e=>{const t=e.target?.closest?.("a");t?.href&&(q(),Q(),W({entity:t,allowedDomains:o,...z}))},!0),document.addEventListener("submit",e=>{const t=e.target;t?.action&&(q(),Q(),W({entity:t,allowedDomains:o,...z}))},!0),void 0===window.scrollOffsetFunction&&(window.scrollOffsetFunction=function(){const e=document.getElementsByClassName("c-navbar");
2if(void 0!==e[0]){const t=e[0].getBoundingClientRect(),r=getComputedStyle(e[0]);if("sticky"===r.position||"fixed"===r.position)return t.bottom-t.top+30}return 0});const K=t.lg.start(),J=r(6475),X=e().U;K.load(n(J)),K.load(n(X)),window.application=K})()})();

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