1function e(e,t){return new Promise(n=>{let r=new IntersectionObserver(t=>{for(let i of t)if(i.isIntersecting){r.disconnect(),n(e);break}},t);r.observe(e)})}var t=window.requestIdleCallback??(e=>{setTimeout(e,1)});function n(e,n={timeout:100}){return r=>new Promise((i,a)=>{t(()=>{e(r).then(i).catch(a)},n)})}function r(t,n){return r=>e(r,{rootMargin:`200px`,...n}).then(t)}function i(e,t,i){let a=async n=>(await e())[t];return i?.whenIdle&&(a=i?.whenIdle===!0?n(a):n(a,i.whenIdle)),i?.whenVisible&&(a=i?.whenVisible===!0?r(a):r(a,i.whenVisible)),a}var a=`modulepreload`,o=function(e,t){return new URL(e,t).href},s={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),c=i?.nonce||i?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=l(t.map(t=>{if(t=o(t,n),t=u(t),t in s)return;s[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:a,r||(i.as=`script`),i.crossOrigin=``,i.href=t,c&&i.setAttribute(`nonce`,c),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function l(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,"isPending",{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}var u=0;function d(){return`sp-${++u}`}var f=class{prototypes;constructor(){this.prototypes=new Map}registerPrototype(e,t){this.prototypes.set(e,t)}async createComponent(e,t){let n=this.createConfig(e.getAttribute(t)),r=new(await(this.getComponentPrototype(e,t)))(e,n);return r.__id=this.getNextId(),r.__el=e,r.__type=t,r}clear(){this.prototypes.clear()}getTypes(){return[...this.prototypes.keys()]}async getComponentPrototype(e,t){let n=this.prototypes.get(t);if(!n)throw Error(`unable to find Class for ${t}`);return n(e)}getNextId(){return d()}createConfig(e){if(e===null||e.trim()===``)return{};try{return JSON.parse(e)}catch(t){console.error(`unable to parse "${e}"`,t)}return{}}};function p(e){[`complete`,`interactive`].includes(document.readyState)?setTimeout(e):document.addEventListener(`DOMContentLoaded`,e)}var m=class{instanceMap=new Map;markedForDestruction;bootstrapCycles=0;bootstrappedInstances=0;destroyedInstances=0;coolingTime=3e4;observer;observerIsStarted=!1;baseElement;factory;bootstrapListeners;abortController;constructor(e){this.baseElement=()=>e??document.body,this.markedForDestruction=new WeakMap,this.factory=new f,this.observer=new MutationObserver(this.processMutation.bind(this)),this.bootstrapListeners=new Set,this.abortController=new AbortController,this.abortController.signal.addEventListener(`abort`,()=>{this.factory.clear(),this.bootstrapListeners.clear(),this.observer.disconnect()},{signal:this.abortController.signal}),p(()=>{this.triggerReadyEvent(),this.startObserver(),this.bootstrap()})}async withNoObserver(e){this.stopObserver(),await e(),this.startObserver()}resetCounter(){this.bootstrapCycles=0,this.bootstrappedInstances=0,this.destroyedInstances=0}startObserver(){this.observerIsStarted||=(this.observer.observe(this.baseElement(),{childList:!0,subtree:!0,attributes:!1,characterData:!1}),!0)}triggerReadyEvent(){window.dispatchEvent(new CustomEvent(`bootstrapperReady`,{detail:{bootstrapper:this}}))}stopObserver(){this.observerIsStarted&&=(this.observer.disconnect(),!1)}register(e,t){this.factory.registerPrototype(e,t)}hasPrototype(e){return this.factory.getTypes().includes(e)}registerImport(e,t,n,r){this.factory.registerPrototype(e,i(t,n,r))}registerSync(e,t){this.factory.registerPrototype(e,()=>Promise.resolve(t))}clearClasses(){this.factory.clear()}clearInstances(){this.instanceMap.clear()}async bootstrapElementAttribute(e,t){this.makeElementAsBeingCurrentlyBootstrapping(e,t);let n=await this.factory.createComponent(e,t);n.finish&&n.finish(),this.markElementBootstrapped(e,t,n),n.__el.dispatchEvent(new CustomEvent(`bootstrap`,{bubbles:!1,cancelable:!1,detail:{instance:n,type:n.__type}}));for(let n of this.bootstrapListeners)n(e,t);return n}async bootstrap(e){let t=e??this.baseElement(),n=[];for(let e of this.factory.getTypes()){let r=`[${e}]:not([${e}-bootstrapped])`;for(let i of Array.from(t.querySelectorAll(r))){let t=this.bootstrapElementAttribute(i,e).cat
1ch(t=>{throw console.error(`unable to bootstrap ${e}`,t),t});n.push(t)}}return this.bootstrapCycles++,Promise.allSettled(n).then(e=>e.filter(e=>e.status===`fulfilled`).length)}whenIdleFor(e){let t=null;return new Promise(n=>{t=l(()=>n(),e),this.bootstrapListeners.add(t)}).finally(()=>{t&&this.bootstrapListeners.delete(t)})}info(){return{cycles:this.bootstrapCycles,bootstrapped:this.bootstrappedInstances,destroyed:this.destroyedInstances}}ingestLegacyInstance(e,t){if(!this.instanceMap.has(e))this.instanceMap.set(e,t);else{let e=this.factory.getNextId(),n=t.__type;t.__id=e,t.__el.setAttribute(n,e),this.instanceMap.set(e,t)}}destroyInstance(e){e.destroy&&e.destroy(),this.markElementDestroyed(e.__el,e.__type,e)}destroyInstancesByElement(e){let t=this.factory.getTypes();for(let n of t){let t=e.getAttribute(`${n}-bootstrapped`);if(t!==null){let e=this.getInstanceById(t);e&&this.destroyInstance(e)}}}getInstanceById(e){return this.instanceMap.get(e)??null}getInstanceByElement(e,t){if(this.isElementBootstrapped(e,t)){let n=e.getAttribute(`${t}-bootstrapped`);if(n)return this.getInstanceById(n)}return null}isElementBootstrapped(e,t){return e.hasAttribute(`${t}-bootstrapped`)}hasClassForDataAttribute(e){return this.factory.getTypes().includes(e)}whenElementIsBootstrapped(e,t){return new Promise(n=>{let r=this.getInstanceByElement(e,t);if(r){n(r);return}let i=new AbortController;this.abortController.signal.addEventListener(`abort`,()=>i.abort()),e.addEventListener(`bootstrap`,e=>{e.detail.instance.__type===t&&(n(e.detail.instance),i.abort())},{signal:i.signal})})}markElementBootstrapped(e,t,n){e.setAttribute(`${t}-bootstrapped`,n.__id),n&&(this.instanceMap.set(n.__id,n),this.bootstrappedInstances++)}makeElementAsBeingCurrentlyBootstrapping(e,t){e.setAttribute(`${t}-bootstrapped`,`-1`)}markElementDestroyed(e,t,n){e.removeAttribute(`${t}-bootstrapped`),this.instanceMap.delete(n.__id),this.destroyedInstances++}prepareForDestruction(e){clearTimeout(this.markedForDestruction.get(e));let t=setTimeout(()=>{this.baseElement().contains(e)?this.remidyDestruction(e):this.destroyInstancesByElement(e),this.markedForDestruction.delete(e)},this.coolingTime);this.markedForDestruction.set(e,t)}remidyDestruction(e){this.clearDestructionMark(e),this.updateElementBootstrappedAttributes(e)}prepareDetachedInstancesForDestruction(){for(let e of this.instanceMap.values())this.baseElement().contains(e.__el)||this.prepareForDestruction(e.__el)}processMutation(e){let t=0;for(let n of e)n.type===`childList`&&(n.removedNodes.length>0&&this.prepareDetachedInstancesForDestruction(),t+=n.addedNodes.length);t>0&&this.bootstrap(),this.triggerWaitingMutationListeners()}mutationObserverListeners=[];triggerWaitingMutationListeners(){let e=[...this.mutationObserverListeners];this.mutationObserverListeners=[];for(let t of e){let e=t.deref();e&&e(void 0)}}clearDestructionMark(e){clearTimeout(this.markedForDestruction.get(e)),this.markedForDestruction.delete(e)}isMarkedForDestruction(e){return this.markedForDestruction.has(e)}destroy(){this.abortController.abort()}updateElementBootstrappedAttributes(e){e.getAttributeNames().filter((e,t,n)=>n.indexOf(`${e}-bootstrapped`)>-1).forEach(t=>{this.getInstanceByElement(e,t)||e.removeAttribute(`${t}-bootstrapped`)})}async __internalWaitForNextMutation(){return new Promise(e=>{this.mutationObserverListeners.push(new WeakRef(e))})}__internalRegisterGlobal(){window.__spBootstrapper=this}};function h(){if(window.__spBootstrapper)return console.warn(`Multiple Bootstrappers found, falling back to previous found Bootstrapper instance`),window.__spBootstrapper;let e=new m;return e.__internalRegisterGlobal(),e}var g=h();export{n as i,c as n,r,g as t};
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.