1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,958678,(e,t,n)=>{t.exports=e.r(280963)},591494,e=>{"use strict";let t,n;var r,i=e.i(350461),o=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&f(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&f(e,n,t[n]);return e},m=e.z,g=(e,t)=>function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports},y=(e,t,n)=>f(e,"symbol"!=typeof t?t+"":t,n),v=g({"node_modules/@constructor-io/constructorio-id/src/constructorio-id.js"(e,t){function n(e){let t;try{t=window[e];let n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return DOMException&&e instanceof DOMException&&("QuotaExceededError"===e.name||"QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||-1!==e.toString().indexOf("QUOTA_EXCEEDED_ERR")||-1!==e.toString().indexOf("QuotaExceededError"))&&t&&0!==t.length}}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){r=Object(r);for(var i=Object.keys(Object(r)),o=0,s=i.length;s>o;o++){var l=i[o],a=Object.getOwnPropertyDescriptor(r,l);void 0!==a&&a.enumerable&&(t[l]=r[l])}}}return t}});var r=function(e){var t;Object.assign(this,{user_agent:null,persist:!0,cookie_name_client_id:"ConstructorioID_client_id",cookie_name_session_id:"ConstructorioID_session_id",cookie_name_session_data:"ConstructorioID_session",cookie_domain:null,cookie_secure:null,cookie_samesite:null,cookie_days_to_live:365,local_name_client_id:"_constructorio_search_client_id",local_name_session_id:"_constructorio_search_session_id",local_name_session_data:"_constructorio_search_session",on_node:"undefined"==typeof window,session_is_new:null,new_to_beacon:null,client_id_storage_location:"cookie",session_id_storage_location:"local"},e),this.client_id||(!this.on_node&&this.persist?("cookie"===this.client_id_storage_location&&(t=this.get_cookie(this.cookie_name_client_id))&&(this.delete_cookie(this.cookie_name_client_id),this.set_cookie(this.cookie_name_client_id,t)),"local"===this.client_id_storage_location&&(t=this.get_local_object(this.local_name_client_id)),this.client_id=t||this.generate_client_id()):this.client_id=this.generate_client_id()),this.session_id||(!this.on_node&&this.persist?this.session_id=this.generate_session_id():this.session_id=1),this.on_node||(this.user_agent=this.user_agent||window&&window.navigator&&window.navigator.userAgent)};r.prototype.set_cookie=function(e,t){if(!this.on_node&&this.persist){var n=e+"="+t+"; expires="+new Date(Date.now()+24*this.cookie_days_to_live*36e5).toUTCString()+"; path=/";return this.cookie_domain&&(n+="; domain="+this.cookie_domain),this.cookie_secure&&(n+="; secure"),this.cookie_samesite&&(n+="; samesite="+this.cookie_samesite),document.cookie=n,n}return null},r.prototype.get_cookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r];try{for(var o=decodeURIComponent(i);" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return o.substring(t.length,o.length)}catch(e){}}},r.prototype.delete_cookie=function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},r.prototype.generate_client_id=function(){var e;if(!this.on_node){var t=this.get_cookie(this.cookie_name_client_id),n=this.get_local_object(this.local_name_client_id);"cookie"===this.client_id_storage_location&&n&&(e=n,this.set_cookie(this.cookie_name_client_id,e),this.delete_local_object(this.local_name_client_id)),"local"===this.client_id_storage_location&&t&&(e=t,this.set_local_object(this.local_name_client_id,e),this.delete_cookie(this.cookie_name_client_id))}return e||(e="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)}),"cookie"===this.client_id_storage_location&&this.set_cookie(this.cookie_name_client_id,e),"local"===this.client_id_storage_location&&this.set_local_object(this.local_name_client_id,e)),e},r.prototype.get_local_object=function(e){var t,r=n("localStorage")&&window&&window.localStorage;if(r&&"string"==typeof e)try{t=JSON.parse(r.getItem(e))}catch(n){t=r.getItem(e)}return t},r.prototype.set_local_object=function(e,t){var r=n("localStorage")&&window&&window.localStorage;if(r&&"string"==typeof e){if("object"==typeof t)try{r.setItem(e,JSON.stringify(t))}catch(e){}if("string"==typeof t||"number"==typeof t)try{r.setItem(e,t)}catch(e){}}},r.prototype.delete_local_object=function(e){var t=n("localStorage")&&window&&window.localStorage;if(t&&"string"==typeof e)try{t.removeItem(e)}catch(e){}},r.prototype.generate_session_id=function(){var e,t=this.get_cookie(this.cookie_name_session_data),n=this.get_local_object(this.local_name_session_data),r=Date.now();if("local"===this.session_id_storage_location&&((e=this.get_local_object(this.local_name_session_data))||!t||(e=t,this.delete_cookie(this.cookie_name_session_data))),"cookie"===this.session_id_storage_location){e=this.get_cookie(this.cookie_name_session_data);try{e=JSON.parse(e)}catch(e){}!e&&n&&(e=n,this.delete_local_object(this.local_name_session_data))}var i=1,o=1;e&&"object"==typeof e&&(o=parseInt(e.sessionId,10)||1,i=e.lastTime>r-18e5?o:o+1),this.session_id=i,this.session_is_new=!e||o!==i,e&&e.newToBeacon&&(this.new_to_beacon=!0);let s={sessionId:i,lastTime:r};return this.session_is_new&&(s.newToBeacon=!0),"local"===this.session_id_storage_location&&(this.set_local_object(this.local_name_session_id,i),this.set_local_object(this.local_name_session_data,s)),"cookie"===this.session_id_storage_location&&(this.cookie_domain&&(this.delete_cookie(this.cookie_name_session_id),this.delete_cookie(this.cookie_name_session_data)),this.set_cookie(this.cookie_name_session_id,i),this.set_cookie(this.cookie_name_session_data,JSON.stringify(s))),i},void 0!==t&&void 0!==m&&(t.exports=r)}}),_=g({"node_modules/crc-32/crc32.js"(t){var n,r=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}(t),r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],a=n[5],u=n[6],c=n[7],p=n[8],d=n[9],f=n[10],h=n[11],m=n[12],g=n[13],y=n[14];e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,o=e.length;i<o;)r=r>>>8^t[(r^e.charCodeAt(i++))&255];return~r},e.buf=function(e,n){for(var v=-1^n,_=e.length-15,b=0;b<_;)v=y[e[b++]^255&v]^g[e[b++]^v>>8&255]^m[e[b++]^v>>16&255]^h[e[b++]^v>>>24]^f[e[b++]]^d[e[b++]]^p[e[b++]]^c[e[b++]]^u[e[b++]]^a[e[b++]]^l[e[b++]]^s[e[b++]]^o[e[b++]]^i[e[b++]]^r[e[b++]]^t[e[b++]];for(_+=15;b<_;)v=v>>>8^t[(v^e[b++])&255];return~v},e.str=function(e,n){for(var r=-1^n,i=0,o=e.length,s=0,l=0;i<o;)(s=e.charCodeAt(i++))<128?r=r>>>8^t[(r^s)&255]:s<2048?r=(r=r>>>8^t[(r^(192|s>>6&31))&255])>>>8^t[(r^(128|63&s))&255]:s>=55296&&s<57344?(s=(1023&s)+64,l=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[(r^(240|s>>8&7))&255])>>>8^t[(r^(128|s>>2&63))&255])>>>8^t[(r^(128|l>>6&15|(3&s)<<4))&255])>>>8^t[(r^(128|63&l))&255]):r=(r=(r=r>>>8^t[(r^(224|s>>12&15))&255])>>>8^t[(r^(128|s>>6&63))&255])>>>8^t[(r^(128|63&s))&255];return~r}};if("undefined"==typeof DO_NOT_EXPORT_CRC)if("object"==typeof t)r(t);else if("function"==typeof define&&define.amd)e.r,module,r(n={}),void 0!==n&&e.v(n);else r({});else r({})}}),b=g({"src/utils/store.js"(e,t){function n(e){let t;try{t=window[e];let n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return"undefined"!=typeof DOMException&&e instanceof DOMException&&("QuotaExceededError"===e.name||"QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||-1!==e.toString().indexOf("QUOTA_EXCEEDED_ERR")||-1!==e.toString().indexOf("QuotaExceededError"))&&t&&0!==t.length}}t.exports={local:{overflow:{},get(e){let t=this.overflow[e];if(t)return t;if(!n("localStorage"))return null;let r=localStorage.getItem(e);if(r)try{return JSON.parse(r)}catch(e){return r}return null},set(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(n){this.overflow[e]=t}},remove(e){var t;(null==(t=this.overflow)?void 0:t[e])&&delete this.overflow[e],n("localStorage")&&localStorage.removeItem(e)},key(e){var t,r;if(!n("localStorage"))return null==(t=Object.keys(this.overflow))?void 0:t[e];let i=null==localStorage?void 0:localStorage.key(e),o=(null==localStorage?void 0:localStorage.length)||0;if(e>=o){let t=e-o;return null==(r=Object.keys(this.overflow))?void 0:r[t]}return i},length(){let e=Object.keys(this.overflow).length;return n("localStorage")?localStorage.length+e:e},clear(){this.overflow={},n("localStorage")&&localStorage.clear()}},session:{overflow:{},get(e){let t=this.overflow[e];if(t)return t;if(!n("sessionStorage"))return null;let r=sessionStorage.getItem(e);if(r)try{return JSON.parse(r)}catch(e){return r}return null},set(e,t){try{sessionStorage.setItem(e,JSON.stringify(t))}catch(n){this.overflow[e]=t}},remove(e){var t;(null==(t=this.overflow)?void 0:t[e])&&delete this.overflow[e],n("sessionStorage")&&sessionStorage.removeItem(e)},key(e){var t,r;if(!n("sessionStorage"))return null==(t=Object.keys(this.overflow))?void 0:t[e];let i=null==sessionStorage?void 0:sessionStorage.key(e),o=(null==sessionStorage?void 0:sessionStorage.length)||0;if(e>=o){let t=e-o;return null==(r=Object.keys(this.overflow))?void 0:r[t]}return i},length(){let e=Object.keys(this.overflow).length;return n("sessionStorage")?sessionStorage.length+e:e},clear(){this.overflow={},n("sessionStorage")&&sessionStorage.clear()}},canUseStorage:n}}}),k=g({"src/utils/helpers.js"(e,t){var n=_(),r=b(),i="_constructorio_purchase_order_ids",o=[{pattern:/[\w\-+\\.]+@([\w-]+\.)+[\w-]{2,4}/,replaceWith:"<email_omitted>"},{pattern:/^(?:\+\d{11,12}|\+\d{1,3}\s\d{3}\s\d{3}\s\d{3,4}|\(\d{3}\)\d{7}|\(\d{3}\)\s\d{3}\s\d{4}|\(\d{3}\)\d{3}-\d{4}|\(\d{3}\)\s\d{3}-\d{4})$/,replaceWith:"<phone_omitted>"},{pattern:/^(?:4[0-9]{15}|(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}
1|27[01][0-9]|2720)[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$/,replaceWith:"<credit_omitted>"}],s=2e3,l={trimNonBreakingSpaces:e=>e.replace(/\s/g," ").trim(),encodeURIComponentRFC3986:e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),cleanParams:e=>{let t={};return Object.keys(e).forEach(n=>{let r=e[n];"string"==typeof r?t[n]=l.trimNonBreakingSpaces(r):t[n]=r}),t},trimUrl:(e,t=s)=>{let n=e.toString();if(n.length<=t)return n;let r=new URL(e.toString()),{searchParams:i}=r,o=Array.from(i.entries());if(0===o.length)return l.truncateString(n,t);o.sort((e,t)=>{let n=e[0].length+e[1].length;return t[0].length+t[1].length-n});for(let e=0;e<o.length&&!(n.length<=t);e+=1)i.delete(o[e][0]),n=r.toString();return n.length>t?l.truncateString(n,t):n},cleanAndValidateUrl:(e,t)=>{let n=null;try{(null==e?void 0:e.startsWith("android-app"))&&(e=null==e?void 0:e.replace("android-app","https"));let r=new URL(e,t);n=new URL(l.trimUrl(r)).toString()}catch(e){}return n},throwHttpErrorFromResponse:(e,t)=>t.json().then(n=>{throw e.message=n.message,e.status=t.status,e.statusText=t.statusText,e.url=t.url,e.headers=t.headers,e}),canUseDOM:()=>!!("undefined"!=typeof window&&window.document&&window.document.createElement),addEventListener:(e,t,n)=>{l.canUseDOM()&&window.addEventListener(e,t,n)},removeEventListener:(e,t,n)=>{l.canUseDOM()&&window.removeEventListener(e,t,n)},getNavigator:()=>l.canUseDOM()?window.navigator:{userAgent:"",webdriver:!1},isNil:e=>null==e,getWindowLocation:()=>l.canUseDOM()?window.location:{},getDocumentReferrer:()=>{let e=null;try{l.canUseDOM()&&(e=l.cleanAndValidateUrl(document.referrer))}catch(e){}return e},getCanonicalUrl:()=>{let e=null;try{if(l.canUseDOM()){let t=null==document?void 0:document.querySelector('link[rel="canonical"]'),n=null==t?void 0:t.getAttribute("href");n&&(e=l.cleanAndValidateUrl(n,document.location.href))}}catch(e){}return e},dispatchEvent:e=>{l.canUseDOM()&&window.dispatchEvent(e)},createCustomEvent:(e,t)=>{if(l.canUseDOM())try{return new window.CustomEvent(e,{detail:t})}catch(r){let n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}return null},hasOrderIdRecord({orderId:e,apiKey:t}){let o=e;t&&(o=`${t}-${e}`);let s=n.str(o.toString()),l=r.local.get(i);return"string"==typeof l&&(l=JSON.parse(l)),!!(l&&l.includes(s))||null},addOrderIdRecord({orderId:e,apiKey:t}){let o=e;t&&(o=`${t}-${e}`);let s=n.str(o.toString()),l=r.local.get(i);if("string"==typeof l&&(l=JSON.parse(l)),l){if(l.includes(s))return;l.length>=10&&(l=l.slice(-9)),l.push(s)}else l=[s];r.local.set(i,l)},applyNetworkTimeout:(e={},t={},n=null)=>{let r=e&&e.networkParameters&&e.networkParameters.timeout,i=t&&t.timeout||r;"number"==typeof i&&n&&setTimeout(()=>n.abort(),i)},stringify:(e,t,n)=>{if(!e)return"";let r=[];return Object.keys(e).forEach(i=>{let o,s=e[i],a=l.encodeURIComponentRFC3986(i);if(null!=s){let e=t?`${t}%5B${a}%5D`:a;o=Array.isArray(s)?l.stringify(s,e,"array"):"object"==typeof s?l.stringify(s,e,"object"):"object"===n?`${e}=${l.encodeURIComponentRFC3986(s)}`:`${t||a}=${l.encodeURIComponentRFC3986(s)}`,r.push(o)}}),r.join("&")},toSnakeCase:e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),toSnakeCaseKeys:(e,t=!1)=>{let n={};return Object.keys(e).forEach(r=>{n[l.toSnakeCase(r)]=t&&"object"==typeof e[r]&&!Array.isArray(e[r])?l.toSnakeCaseKeys(e[r],t):e[r]}),n},containsPii(e,t){let n=e.toLowerCase();return t.test(n)},obfuscatePiiRequest(e){var t,n,r;let i=e;try{let s=new URL(e),a=null==(t=null==s?void 0:s.pathname)?void 0:t.split("/"),u=null==(r=null==(n=null==s?void 0:s.search)?void 0:n.split("&"))?void 0:r.map(e=>{var t;return null==(t=e.split("="))?void 0:t[1]});o.forEach(({pattern:e,replaceWith:t})=>{a.forEach(n=>{let r=decodeURIComponent(n);l.containsPii(r,e)&&(i=i.replaceAll(n,t))}),u.forEach(n=>{let r=decodeURIComponent(n);l.containsPii(r,e)&&(i=i.replaceAll(r,t))})})}catch(e){}return i},convertResponseToJson:e=>e.ok?e.json().catch(()=>e.text().then(t=>
1{throw Error(`Server responded with an invalid JSON object. Response code: ${e.code}, Response: ${t}`)})):l.throwHttpErrorFromResponse(Error(),e),addHTTPSToString(e,t=!1){if("string"!=typeof e)return null;let n=e.startsWith("https://"),r=e.startsWith("http://");return!n&&r?t?e:e.replace("http","https"):r||n?e:`https://${e}`},truncateString:(e,t)=>e.slice(0,t),toValidAdditionalTrackingKeys:(e,t)=>{if(!Array.isArray(e))return null;let n=[...new Set(e.filter(e=>e&&"string"==typeof e&&e!==t))];return n.length?n:null},toValidTestCells:e=>{if(!e||"object"!=typeof e||Array.isArray(e))return{};let t={};return Object.keys(e).forEach(n=>{"string"==typeof e[n]&&""!==e[n].trim()&&(t[n]=e[n])}),t},applyWindowParameterGetters:e=>{if(!l.canUseDOM())return;let t=(t,n,r)=>{let i=e[t]||void 0;Object.defineProperty(e,t,{get(){if(r(i))return i;let e=window.cnstrc&&window.cnstrc[n]||window[`cnstrc${n.charAt(0).toUpperCase()}${n.slice(1)}`];return r(e)?e:void 0},set(e){i=e},enumerable:!0,configurable:!0})};t("userId","userId",e=>"string"==typeof e&&e.length>0),t("segments","userSegments",e=>Array.isArray(e)&&e.length>0);let n=e.testCells||void 0;Object.defineProperty(e,"testCells",{get(){if(n&&Object.keys(n).length>0)return n;let e=window.cnstrc&&window.cnstrc.testCells||window.cnstrcTestCells,t=l.toValidTestCells(e);if(t&&Object.keys(t).length>0)return t},set(e){n=e},enumerable:!0,configurable:!0})},getBehaviorUrl:e=>{let t=new URL(e);return t.hostname.startsWith("behavior")||(t.hostname=`behavior.${t.hostname}`),t}};t.exports=l}}),x=g({"src/utils/event-dispatcher.js"(e,t){var n=k();t.exports=class{constructor(e){this.events=[],this.enabled=!e||!1!==e.enabled,this.waitForBeacon=!e||!1!==e.waitForBeacon,this.active=this.enabled,this.waitForBeacon&&(this.active=!1,n.canUseDOM()&&(window.ConstructorioAutocomplete||window.ConstructorioBeacon||window.ConstructorioTracker)&&this.enabled&&(this.active=!0,this.dispatchEvents()),n.addEventListener("cio.beacon.loaded",()=>{this.enabled&&(this.active=!0,this.dispatchEvents())}))}queue(e,t){this.events.push({name:e,data:t}),this.active&&this.dispatchEvents()}dispatchEvents(){for(;this.events.length;){let{name:e,data:t}=this.events.shift(),r=`cio.client.${e}`;n.dispatchEvent(n.createCustomEvent(r,t))}}}}}),w=g({"src/modules/search.js"(e,t){var n=x(),r=k();function i(e,t,n,o=!1){let{apiKey:s,version:l,serviceUrl:a,sessionId:u,clientId:c,userId:p,segments:d,testCells:f}=n,h={c:l};if(h.key=s,h.i=c,h.s=u,!e||"string"!=typeof e)throw Error("query is a required parameter of type string");if(f&&Object.keys(f).forEach(e=>{h[`ef-${e}`]=f[e]}),d&&d.length&&(h.us=d),p&&(h.ui=String(p)),t){let{offset:e,page:n,resultsPerPage:i,filters:o,sortBy:s,sortOrder:l,section:a,fmtOptions:u,hiddenFields:c,hiddenFacets:p,variationsMap:d,qsParam:f,preFilterExpression:m,filterMatchTypes:g}=t;r.isNil(e)||(h.offset=e),r.isNil(n)||(h.page=n),r.isNil(i)||(h.num_results_per_page=i),o&&(h.filters=o),g&&(h.filter_match_types=g),s&&(h.sort_by=s),l&&(h.sort_order=l),a&&(h.section=a),u&&(h.fmt_options=u),c&&(h.fmt_options?h.fmt_options.hidden_fields=c:h.fmt_options={hidden_fields:c}),p&&(h.fmt_options?h.fmt_options.hidden_facets=p:h.fmt_options={hidden_facets:p}),d&&(h.variations_map=JSON.stringify(d)),m&&(h.pre_filter_expression=JSON.stringify(m)),f&&(h.qs=JSON.stringify(f))}h._dt=Date.now(),h=r.cleanParams(h);let m=r.stringify(h);return`${a}/${o?"search/natural_language":"search"}/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}?${m}`}t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getSearchResults(e,t,n={}){let o,s,{fetch:l}=this.options;if("function"==typeof AbortController){let e=new AbortController;s=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{o=i(e,t,this.options)}catch(e){return Promise.reject(e)}return l(o,{signal:s}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.results)return e.result_id&&e.response.results.forEach(t=>{t.result_id=e.result_id}),this.eventDispatcher.queue("search.getSearchResults.completed",e),e;if(e.response&&e.response.redirect)return this.eventDispatcher.queue("search.getSearchResults.completed",e),e;throw Error("getSearchResults response data is malformed")})}getVoiceSearchResults(e,t,n={}){let o,s,{fetch:l}=this.options;if("function"==typeof AbortController){let e=new AbortController;s=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{o=i(e,t,this.options,!0)}catch(e){return Promise.reject(e)}return l(o,{signal:s}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.results)return e.result_id&&e.response.results.forEac
1h(t=>{t.result_id=e.result_id}),this.eventDispatcher.queue("search.getVoiceSearchResults.completed",e),e;if(e.response&&e.response.redirect)return this.eventDispatcher.queue("search.getVoiceSearchResults.completed",e),e;throw Error("getVoiceSearchResults response data is malformed")})}}}}),S=g({"src/modules/browse.js"(e,t){var n=x(),r=k();function i(e,t){let{apiKey:n,version:i,sessionId:o,clientId:s,userId:l,segments:a,testCells:u}=t,c={c:i};if(c.key=n,c.i=s,c.s=o,u&&Object.keys(u).forEach(e=>{c[`ef-${e}`]=u[e]}),a&&a.length&&(c.us=a),l&&(c.ui=String(l)),e){let{page:t,offset:n,resultsPerPage:i,filters:o,sortBy:s,sortOrder:l,section:a,fmtOptions:u,hiddenFields:p,hiddenFacets:d,variationsMap:f,qsParam:h,preFilterExpression:m,filterMatchTypes:g}=e;r.isNil(t)||(c.page=t),r.isNil(n)||(c.offset=n),r.isNil(i)||(c.num_results_per_page=i),o&&(c.filters=o),g&&(c.filter_match_types=g),s&&(c.sort_by=s),l&&(c.sort_order=l),a&&(c.section=a),u&&(c.fmt_options=u),p&&(c.fmt_options?c.fmt_options.hidden_fields=p:c.fmt_options={hidden_fields:p}),d&&(c.fmt_options?c.fmt_options.hidden_facets=d:c.fmt_options={hidden_facets:d}),f&&(c.variations_map=JSON.stringify(f)),m&&(c.pre_filter_expression=JSON.stringify(m)),h&&(c.qs=JSON.stringify(h))}return c._dt=Date.now(),c=r.cleanParams(c)}t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getBrowseResults(e,t,n,o={}){let s,l,{fetch:a}=this.options;if("function"==typeof AbortController){let e=new AbortController;l=e&&e.signal,r.applyNetworkTimeout(this.options,o,e)}try{s=function(e,t,n,o){let{serviceUrl:s}=o;if(!e||"string"!=typeof e)throw Error("filterName is a required parameter of type string");if(!t||"string"!=typeof t)throw Error("filterValue is a required parameter of type string");let l=i(n,o),a=r.stringify(l);return`${s}/browse/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(t))}?${a}`}(e,t,n,this.options)}catch(e){return Promise.reject(e)}return a(s,{signal:l}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.results)return e.result_id&&e.response.results.forEach(t=>{t.result_id=e.result_id}),this.eventDispatcher.queue("browse.getBrowseResults.completed",e),e;throw Error("getBrowseResults response data is malformed")})}getBrowseResultsForItemIds(e,t,n={}){let o,l,{fetch:u}=this.options;if("function"==typeof AbortController){let e=new AbortController;l=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{o=function(e,t,n){let o,{serviceUrl:l}=n;if(!e||!Array.isArray(e)||!e.length)throw Error("ids is a required parameter of type array");let u=(o=h({},i(t,n)),s(o,a({ids:e}))),c=r.stringify(u);return`${l}/browse/items?${c}`}(e,t,this.options)}catch(e){return Promise.reject(e)}return u(o,{signal:l}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.results)return e.result_id&&e.response.results.forEach(t=>{t.result_id=e.result_id}),this.eventDispatcher.queue("browse.getBrowseResultsForItemIds.completed",e),e;throw Error("getBrowseResultsForItemIds response data is malformed")})}getBrowseGroups(e,t={}){let n,{fetch:o}=this.options,{serviceUrl:s}=this.options,l=i(e,this.options);if("function"==typeof AbortController){let e=new AbortController;n=e&&e.signal,r.applyNetworkTimeout(this.options,t,e)}delete l._dt;let a=r.stringify(l);return o(`${s}/browse/groups?${a}`,{signal:n}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.groups)return this.eventDispatcher.queue("browse.getBrowseGroups.completed",e),e;throw Error("getBrowseGroups response data is malformed")})}getBrowseFacets(e,t){let n,o,{fetch:s}=this.options;if("function"==typeof AbortController){let e=new AbortController;o=e&&e.signal,r.applyNetworkTimeout(this.options,t,e)}try{n=function(e,t){let{serviceUrl:n}=t,o=h({},i(e,t));delete o._dt;let s=r.stringify(o);return`${n}/browse/facets?${s}`}(e,this.options)}catch(e){return Promise.reject(e)}return s(n,{signal:o}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.facets)return this.eventDispatcher.queue("browse.getBrowseFacets.completed",e),e;throw Error("getBrowseFacets response data is malformed")})}getBrowseFacetOptions(e,t={},n={}){let o,s,{fetch:l}=this.options;if("function"==typeof AbortController){let e=new AbortController;s=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{o=function(e,t,n){let{serviceUrl:o}=n;
1if(!e||"string"!=typeof e)throw Error("facetName is a required parameter of type string");let s=h({},i(t,n));s.facet_name=e,delete s._dt;let l=r.stringify(s);return`${o}/browse/facet_options?${l}`}(e,t,this.options)}catch(e){return Promise.reject(e)}return l(o,{signal:s}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.facets)return this.eventDispatcher.queue("browse.getBrowseFacetOptions.completed",e),e;throw Error("getBrowseFacetOptions response data is malformed")})}}}}),E=g({"src/modules/autocomplete.js"(e,t){var n=x(),{convertResponseToJson:r,cleanParams:i,applyNetworkTimeout:o,trimNonBreakingSpaces:s,encodeURIComponentRFC3986:l,stringify:a}=k();t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getAutocompleteResults(e,t,n={}){let u,c,{fetch:p}=this.options;if("function"==typeof AbortController){let e=new AbortController;c=e&&e.signal,o(this.options,n,e)}try{u=function(e,t,n){let{apiKey:r,version:o,serviceUrl:u,sessionId:c,clientId:p,userId:d,segments:f,testCells:h}=n,m={c:o};if(m.key=r,m.i=p,m.s=c,!e||"string"!=typeof e)throw Error("query is a required parameter of type string");if(h&&Object.keys(h).forEach(e=>{m[`ef-${e}`]=h[e]}),f&&f.length&&(m.us=f),d&&(m.ui=String(d)),t){let{numResults:e,resultsPerSection:n,filters:r,filtersPerSection:i,hiddenFields:o,variationsMap:s,preFilterExpression:l,preFilterExpressionPerSection:a,qsParam:u,fmtOptions:c}=t;e&&(m.num_results=e),n&&Object.keys(n).forEach(e=>{m[`num_results_${e}`]=n[e]}
1),r&&(m.filters=r),i&&Object.keys(i).forEach(e=>{m[`filters[${e}]`]=i[e]}),l&&(m.pre_filter_expression=JSON.stringify(l)),a&&Object.keys(a).forEach(e=>{m[`pre_filter_expression[${e}]`]=JSON.stringify(a[e])}),c&&(m.fmt_options=c),o&&(m.fmt_options?m.fmt_options.hidden_fields=o:m.fmt_options={hidden_fields:o}),s&&(m.variations_map=JSON.stringify(s)),u&&(m.qs=JSON.stringify(u))}m._dt=Date.now();let g=a(m=i(m)),y=e.replace(/^\//,"|");return`${u}/autocomplete/${l(s(y))}?${g}`}(e,t,this.options)}catch(e){return Promise.reject(e)}return p(u,{signal:c}).then(r).then(e=>{if(e.sections)return e.result_id&&Object.keys(e.sections).forEach(t=>{let n=e.sections[t];n.length&&n.forEach(t=>{t.result_id=e.result_id})}),this.eventDispatcher.queue("autocomplete.getAutocompleteResults.completed",e),e;throw Error("getAutocompleteResults response data is malformed")})}}}}),A=g({"src/modules/recommendations.js"(e,t){var n=x(),r=k();t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getRecommendations(e,t,n={}){let i,o,{fetch:s}=this.options;if("function"==typeof AbortController){let e=new AbortController;o=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{i=function(e,t,n){let{apiKey:i,version:o,serviceUrl:s,sessionId:l,userId:a,clientId:u,segments:c,testCells:p}=n,d={c:o};if(d.key=i,d.i=u,d.s=l,!e||"string"!=typeof e)throw Error("podId is a required parameter of type string");if(c&&c.length&&(d.us=c),a&&(d.ui=String(a)),p&&Object.keys(p).forEach(e=>{d[`ef-${e}`]=p[e]}),t){let{numResults:e,itemIds:n,variationId:i,section:o,term:s,filters:l,variationsMap:a,hiddenFields:u,preFilterExpression:c,fmtOptions:p}=t;if(r.isNil(e)||(d.num_results=e),n&&(d.item_id=n),i){if(!n||"string"==typeof n&&!n.trim())throw Error("itemIds is a required parameter for variationId");if(Array.isArray(n)&&!n.length)throw Error("At least one itemId is a required parameter for variationId");d.variation_id=i}o&&(d.section=o),s&&(d.term=s),l&&(d.filters=l),p&&(d.fmt_options=p),u&&(d.fmt_options?d.fmt_options.hidden_fields=u:d.fmt_options={hidden_fields:u}),a&&(d.variations_map=JSON.stringify(a)),c&&(d.pre_filter_expression=JSON.stringify(c))}d._dt=Date.now(),d=r.cleanParams(d);let f=r.stringify(d);return`${s}/recommendations/v1/pods/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}?${f}`}(e,t,this.options)}catch(e){return Promise.reject(e)}return s(i,{signal:o}).then(r.convertResponseToJson).then(e=>{if(e.response&&e.response.results)return e.result_id&&e.response.results.forEach(t=>{t.result_id=e.result_id}),this.eventDispatcher.queue("recommendations.getRecommendations.completed",e),e;throw Error("getRecommendations response data is malformed")})}}}}),C=g({"src/utils/events.js"(e,t){var n,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise(function(n,r){var i,o,s;function l(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",l),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&(i=e,o=l,s={once:!0},"function"==typeof i.on&&g(i,"error",o,s))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,console&&console.warn&&console.warn(l)}return e}function p(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,l,a="";if(s&&s.message)a=" ("+s.message+")";else if(null!=s){try{l=JSON.stringify(s)}catch(e){l=void 0}"string"!=typeof l&&(l=Object.prototype.toString.call(s)),a=" ("+l+")"}var u=Error("Unhandled error."+a);throw u.context=s,u}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else for(var p=c.length,d=m(c,p),n=0;n<p;++n)i(d[n],this,t);return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
vendor: 3,063 bytes, line 1
1("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}}}),T=g({"src/utils/botlist.js"(e,t){t.exports=["Googlebot/","Googlebot-Mobile","Googlebot-Image","Googlebot-News","Googlebot-Video","Storebot-Google","Google-InspectionTool","GoogleOther","Google-CloudVertexBot","AdsBot-Google([^-]|$)","AdsBot-Google-Mobile","Feedfetcher-Google","Mediapartners-Google","Mediapartners \\(Googlebot\\)","APIs-Google","bingbot","Slurp","[wW]get","curl","LinkedInBot","Python-urllib","python-requests","libwww","httpunit","nutch","Go-http-client","phpcrawl","msnbot","jyxobot","FAST-WebCrawler","FAST Enterprise Crawler","BIGLOTRON","Teoma","convera","seekbot","Gigabot","Gigablast","exabot","ia_archiver","GingerCrawler","webmon ","HTTrack","grub\\.org","UsineNouvelleCrawler","antibot","netresearchserver","speedy","fluffy","bibnum\\.bnf","findlink","msrbot","panscient","yacybot","AISearchBot","ips-agent","tagoobot","MJ12bot","woriobot","yanga","buzzbot","mlbot","YandexBot","yandex\\.com/bots","purebot","Linguee Bot","CyberPatrol","voilabot","Baiduspider","citeseerxbot","spbot","twengabot","postrank","turnitinbot","scribdbot","page2rss","sitebot","linkdex","Adidxbot","blekkobot","ezooms","dotbot","Mail\\.RU_Bot","discobot","heritrix","findthatfile","europarchive\\.org","NerdByNature\\.Bot","sistrix crawler","Ahrefs(Bot|SiteAudit)","fuelbot","CrunchBot","centurybot9","IndeedBot","mappydata","woobot","ZoominfoBot","PrivacyAwareBot","Multiviewbot","SWIMGBot","Grobbot","eright","Apercite","semanticbot","Aboundex","domaincrawler","wbsearchbot","summify","CCBot","edisterbot","seznambot","ec2linkfinder","gslfbot","aiHitBot","intelium_bot","facebookexternalhit","Yeti","RetrevoPageAnalyzer","lb-spider","Sogou","lssbot","careerbot","
1wotbox","wocbot","ichiro","DuckDuckBot","lssrocketcrawler","drupact","webcompanycrawler","acoonbot","openindexspider","gnam gnam spider","web-archive-net\\.com\\.bot","backlinkcrawler","coccoc","integromedb","content crawler spider","toplistbot","it2media-domain-crawler","ip-web-crawler\\.com","siteexplorer\\.info","elisabot","proximic","changedetection","arabot","WeSEE:Search","niki-bot","CrystalSemanticsBot","rogerbot","360Spider","psbot","InterfaxScanBot","CC Metadata Scaper","g00g1e\\.net","GrapeshotCrawler","urlappendbot","brainobot","fr-crawler","binlar","SimpleCrawler","Twitterbot","cXensebot","smtbot","bnf\\.fr_bot","A6-Indexer","ADmantX","Facebot","OrangeBot/","memorybot","AdvBot","MegaIndex","SemanticScholarBot","ltx71","nerdybot","xovibot","BUbiNG","Qwantify","archive\\.org_bot","Applebot","TweetmemeBot","crawler4j","findxbot","S[eE][mM]rushBot","yoozBot","lipperhey","Y!J","Domain Re-Animator Bot","AddThis","Screaming Frog SEO Spider","MetaURI","Scrapy","Livelap[bB]ot","OpenHoseBot","CapsuleChecker","collection@infegy\\.com","IstellaBot","DeuSu/","betaBot","Cliqzbot/","MojeekBot/","netEstate NE Crawler","SafeSearch microdata crawler","Gluten Free Crawler/","Sonic","Sysomos","Trove","deadlinkchecker","Slack-ImgProxy","Embedly","RankActiveLinkBot","iskanie","SafeDNSBot","SkypeUriPreview","Veoozbot","Slackbot","redditbot","datagnionbot","Google-Adwords-Instant","adbeat_bot","WhatsApp","contxbot","pinterest","electricmonk","GarlikCrawler","BingPreview/","vebidoobot","FemtosearchBot","Yahoo Link Preview","MetaJobBot","DomainStatsBot","mindUpBot","Daum/","Jugendschutzprogramm-Crawler","Xenu Link Sleuth","Pcore-HTTP","moatbot","KosmioBot","pingdom","PhantomJS","Gowikibot","PiplBot","Discordbot","TelegramBot","Jetslide","newsharecounts","James BOT","Barkrowler","TinEye","SocialRankIOBot","trendictionbot","Ocarinabot","epicbot","Primalbot","DuckDuckGo-Favicons-Bot","GnowitNewsbot","Leikibot","LinkArchiver","YaK/","PaperLiBot","Digg Deeper","dcrawl","Snacktory","AndersPinkBot","Fyrebot","EveryoneSocialBot","Mediatoolkitbot","Luminator-robots","ExtLinksBot","SurveyBot","NING/","okhttp","Nuzzel","omgili","PocketParser","YisouSpider","um-LN","ToutiaoSpider","MuckRack","Jamie's Spider","AHC/","NetcraftSurveyAgent","Laserlikebot","Apache-HttpClient","AppEngine-Google","Jetty","Upflow","Thinklab","Traackr\\.com","Twurly","Mastodon","http_get","DnyzBot","botify","007ac9 Crawler","BehloolBot","BrandVerity","check_http","BDCbot","ZumBot","EZID","ICC-Crawler","ArchiveBot","^LCC ","filterdb\\.iss\\.net/crawler","BLP_bbot","BomboraBot","Buck/","Companybook-Crawler","Genieo","magpie-crawler","MeltwaterNews","Moreover","newspaper/","ScoutJet","(^| )sentry/","StorygizeBot","UptimeRobot","OutclicksBot","seoscanners","Hatena","Google Web Preview","MauiBot","AlphaBot","SBL-BOT","IAS crawler","adscanner","Netvibes","acapbot","Baidu-YunGuanCe","bitlybot","blogmuraBot","Bot\\.AraTurka\\.com","bot-pge\\.chlooe\\.com","BoxcarBot","BTWebClient","ContextAd Bot","Digincore bot","Disqus","Feedly","Fetch/","Fever","Flamingo_SearchEngine","FlipboardProxy","g2reader-bot","imrbot","K7MLWCBot","Kemvibot","Landau-Media-Spider","linkapediabot","vkShare","Siteimprove\\.com","BLEXBot/","DareBoost","ZuperlistBot/","Miniflux/","Feedspotbot/","Diffbot/","SEOkicks","tracemyfile","Nimbostratus-Bot","Bytespider","BTTAgent","OnCrawl"]}}),q=g({"src/utils/humanity-check.js"(e,t){var n=b(),r=T(),i=k(),o="_constructorio_is_human",s=["scroll","resize","touchmove","mouseover","mousemove","keydown","keypress","keyup","focus"];t.exports=class{constructor(e={}){const{humanityCheckLocation:t}=e;this.store="local"===t?n.local:n.session,this.hasPerformedHumanEvent=this.getIsHumanFromStorage();const r=()=>
1{this.hasPerformedHumanEvent=!0,this.store.set(o,!0),s.forEach(e=>{i.removeEventListener(e,r,!0)})};this.hasPerformedHumanEvent||s.forEach(e=>{i.addEventListener(e,r,!0)})}getIsHumanFromStorage(){return!!this.store.get(o)}getIsHumanFromSessionStorage(){return!!n.session.get(o)}isBot(){let{userAgent:e,webdriver:t}=i.getNavigator(),n=RegExp(`(${r.join("|")})`);return!(!e.match(n)&&!t&&this.getIsHumanFromStorage())}}}}),P=g({"src/utils/request-queue.js"(e,t){var n=b(),r=q(),i=k(),{obfuscatePiiRequest:o}=k(),l="_constructorio_requests";t.exports=class e{constructor(e,t){this.options=e,this.eventemitter=t,this.humanity=new r(e),this.requestPending=!1,this.pageUnloading=!1,this.sendTrackingEvents=!!e&&!0===e.sendTrackingEvents,i.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?this.pageUnloading=!0:"visible"===document.visibilityState&&!0===this.pageUnloading&&(this.pageUnloading=!1,this.sendTrackingEvents&&this.send())}),this.sendTrackingEvents&&this.send()}queue(t,n="GET",r={},l={}){var u;if(this.sendTrackingEvents&&(!i.canUseDOM()||!this.humanity.isBot())){let c=e.get(),p=o(t);c.push({url:p,method:n,body:r,networkParameters:l});let d=null==(u=this.options)?void 0:u.additionalTrackingKeys;if(null==d?void 0:d.length){let e=i.encodeURIComponentRFC3986(this.options.apiKey);d.forEach(u=>{let p=i.encodeURIComponentRFC3986(u),d=t.replace(`key=${e}`,`key=${p}`);c.push({url:o(d),method:n,body:s(h({},r),a({key:u})),networkParameters:l})})}e.set(c)}}sendEvents(){let{fetch:t}=this.options,n=e.get();if((!i.canUseDOM()||!this.humanity.isBot())&&!this.requestPending&&!this.pageUnloading&&n.length){let r,o,s=n.shift(),{networkParameters:l}=s,a=this;if(e.set(n),l&&"function"==typeof AbortController){let e=new AbortController;({signal:o}=e),i.applyNetworkTimeout(this.options,l,e)}if("string"==typeof s&&(s={url:s,method:"GET"}),s.url){let t=s.url.match(/\?.*_dt=([^&]+)/),n=parseInt(t&&t[1],10),r=+new Date;if(n&&Number.isInteger(n)&&r-n>18e4){this.sendTrackingEvents=!1,e.remove();return}}"GET"===s.method&&(r=t(s.url,{signal:o})),"POST"===s.method&&(r=t(s.url,{method:s.method,body:JSON.stringify(s.body),mode:"cors",headers:{"Content-Type":"text/plain"},signal:o})),r&&(this.requestPending=!0,r.then(e=>{e.ok?(a.eventemitter&&a.eventemitter.emit("success",{url:s.url,method:s.method,message:"ok"}),this.requestPending=!1,this.send()):e.json().then(e=>{a.eventemitter&&a.eventemitter.emit("error",{url:s.url,method:s.method,message:e&&e.message}),this.requestPending=!1,this.send()}).catch(e=>{a.eventemitter&&a.eventemitter.emit("error",{url:s.url,method:s.method,message:e.type}),this.requestPending=!1,this.send()})}).catch(e=>{a.eventemitter&&a.eventemitter.emit("error",{url:s.url,method:s.method,message:e&&e.toString&&e.toString()}),this.requestPending=!1,this.send()}))}}send(){this.sendTrackingEvents&&(this.options&&0===this.options.trackingSendDelay?this.sendEvents():setTimeout(this.sendEvents.bind(this),this.options&&this.options.trackingSendDelay||250))}static get(){return n.local.get(l)||[]}static set(t){!t||Array.isArray(t)&&0===t.length?e.remove():n.local.set(l,t);let r=e.get();Array.isArray(r)&&r.length!==t.length&&(this.sendTrackingEvents=!1,e.remove())}static remove(){n.local.remove(l)}}}}),O=g({"src/modules/tracker.js"(e,t){var n=C(),r=k(),i=P();function o(e,t){let{apiKey:n,version:i,sessionId:o,clientId:s,userId:l,segments:a,testCells:u,requestMethod:c,beaconMode:p}=t,{host:d,pathname:f,search:h}=r.getWindowLocation(),m=r.getCanonicalUrl(),g=r.getDocumentReferrer(),y=!1!==t.sendReferrerWithTrackingEvents,v=Object.assign(e);if(i&&(v.c=i),s&&(v.i=s),o&&(v.s=o),l&&(v.ui=String(l)),a&&a.length&&(v.us=a),n&&(v.key=n),g&&(v.document_referrer=g),m&&(v.canonical_url=m),u&&Object.keys(u).forEach(e=>{v[`ef-${e}`]=u[e]}),p&&c&&c.match(/POST/i)&&(v.beacon=!0),y&&d&&(v.origin_referrer=d,f&&(v.origin_referrer+=f),h))try{let e=[];new URLSearchParams(h).forEach((t,n)=>{n.match(/utm_/)&&e.push(`${n}=${t}`)}),e.length&&(v.origin_referrer+=`?${e.join("&")}`)}catch(e){}return v._dt=Date.now(),v=r.cleanParams(v)}function l(e,t){return r.stringify(o(e,t))}var u=class{constructor(e){this.options=e||{},this.eventemitter=new n,this.requests=new i(e,this.eventemitter)}trackSessionStartV2(e={}){let t=`${this.options.serviceUrl}/v2/behavioral_action/session_start?`;return this.requests.queue(`${t}${l({},this.options)}`,"POST",void 0,e),this.requests.send(),!0}trackSessionStart(e={}){let t=`${this.options.serviceUrl}/behavior?`;return this.requests.queue(`${t}${l({action:"session_start"},this.options)}`,void 0,void 0,e),this.requests.send(),!0}trackInputFocusV2(e="",t={},n={}){let r=`${this.options.serviceUrl}/v2/behavioral_action/focus?`,i={},{analyticsTags:u=null}=t;u&&(i.analytics_tags=u),i.user_input=e;let c="POST",p=o(i,s(h({},this.options),a({requestMethod:c})));return this.requests.queue(`${r}${l({},this.options)}`,c,p,n),this.requests.send(),!0}trackInputFocus(e={}){let t=`${this.options.serviceUrl}/behavior?`;return this.requests.queue(`${t}${l({action:"focus"},this.options)}`,void 0,void 0,e),this.requests.send(),!0}
1trackItemDetailLoad(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/item_detail_load?`,i={},{item_name:u,name:c,item_id:p,customer_id:d,customerId:f=d,variation_id:m,itemName:g=u||c,itemId:y=p||f,variationId:v=m,url:_,analyticsTags:b}=e;g&&(i.item_name=g),y&&(i.item_id=y),v&&(i.variation_id=v),b&&(i.analytics_tags=b),_&&(i.url=r.truncateString(_,2048));let k=`${n}${l({},this.options)}`,x="POST",w=o(i,s(h({},this.options),a({requestMethod:x})));return this.requests.queue(k,x,w,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAutocompleteSelectV2(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let r=`${this.options.serviceUrl}/v2/behavioral_action/autocomplete_select?`,{original_query:i,originalQuery:u=i,user_input:c,userInput:p=u||c,original_section:d,section:f=d,tr:m,group_id:g,groupId:y=g,item_id:v,itemId:_=v,variation_id:b,variationId:k=b,slCampaignId:x,slCampaignOwner:w}=t,S={},E={user_input:p,tr:m,group_id:y,item_id:_,variation_id:k,item_name:e,section:f};f&&(S.section=f),x&&(E.sl_campaign_id=x),w&&(E.sl_campaign_owner=w);let A=`${r}${l(S,this.options)}`,C="POST",T=o(E,s(h({},this.options),a({requestMethod:C})));return this.requests.queue(A,C,T,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackAutocompleteSelect(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let i=`${this.options.serviceUrl}/autocomplete/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}/select?`,o={},{original_query:s,originalQuery:a=s,section:u,original_section:c,originalSection:p=c,tr:d,group_id:f,groupId:h=f,display_name:m,displayName:g=m,item_id:y,itemId:v=y,slCampaignOwner:_,slCampaignId:b}=t;return a&&(o.original_query=a),d&&(o.tr=d),(p||u)&&(o.section=p||u),h&&(o.group={group_id:h,display_name:g}),v&&(o.item_id=v),b&&(o.sl_campaign_id=b),_&&(o.sl_campaign_owner=_),this.requests.queue(`${i}${l(o,this.options)}`,void 0,void 0,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackSearchSubmitV2(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let r=`${this.options.serviceUrl}/v2/behavioral_action/search_submit?`,{original_query:i,originalQuery:u=i,user_input:c,userInput:p=u||c,group_id:d,groupId:f=d,section:m,analyticsTags:g=null}=t,y={},v={user_input:p,search_term:e,section:m};f&&(v.filters={group_id:f}),m&&(y.section=m),g&&(v.analytics_tags=g);let _=`${r}${l(y,this.options)}`,b="POST",k=o(v,s(h({},this.options),a({requestMethod:b})));return this.requests.queue(_,b,k,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackSearchSubmit(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let i=`${this.options.serviceUrl}/autocomplete/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}/search?`,o={},{original_query:s,originalQuery:a=s,group_id:u,groupId:c=u,display_name:p,displayName:d=p,analyticsTags:f}=t;return a&&(o.original_query=a),c&&(o.group={group_id:c,display_name:d}),f&&(o.analytics_tags=f),this.requests.queue(`${i}${l(o,this.options)}`,void 0,void 0,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackSearchResultsLoaded(e,t,n={}){var i,u,c;if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let p,d=`${this.options.serviceUrl}/v2/behavioral_action/search_result_load?`,{num_results:f,numResults:m=f,result_count:g,customerIds:y,customer_ids:v=y,itemIds:_,item_ids:b=_,items:k=v||b,result_page:x,resultPage:w=x,result_offset:S,resultOffset:E=S,result_id:A,resultId:C=A,sort_order:T,sortOrder:q=T,sort_by:P,sortBy:O=P,selected_filters:I,selectedFilters:R=I,url:j=(null==(i=r.getWindowLocation())?void 0:i.href)||"N/A",section:N,analyticsTags:D,resultCount:L=null!=(c=null!=(u=null!=m?m:g)?u:null==k?void 0:k.length)?c:0}
1=t,z={};k&&Array.isArray(k)&&0!==k.length&&(p="string"==typeof k[0]||"number"==typeof k[0]?k.map(e=>({item_id:String(e)})):k.map(e=>r.toSnakeCaseKeys(e,!1))),N&&(z.section=N);let $={search_term:e,result_count:L,items:p,result_page:w,result_offset:E,result_id:C,sort_order:q,sort_by:O,selected_filters:R,url:r.truncateString(j,2048),section:N,analytics_tags:D},U=`${d}${l(z,this.options)}`,B="POST",M=o($,s(h({},this.options),a({requestMethod:B})));return this.requests.queue(U,B,M,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackSearchResultClickV2(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let r=`${this.options.serviceUrl}/v2/behavioral_action/search_result_click?`,{num_results:i,customer_id:u,item_id:c,itemId:p=u||c,name:d,item_name:f,itemName:m=d||f,variation_id:g,variationId:y=g,result_id:v,resultId:_=v,result_count:b,resultCount:k=i||b,result_page:x,resultPage:w=x,result_offset:S,resultOffset:E=S,result_position_on_page:A,resultPositionOnPage:C=A,num_results_per_page:T,numResultsPerPage:q=T,selected_filters:P,selectedFilters:O=P,section:I,analyticsTags:R,slCampaignId:j,slCampaignOwner:N}=t,D={};I&&(D.section=I);let L=`${r}${l(D,this.options)}`,z="POST",$=o({sl_campaign_id:j,sl_campaign_owner:N,item_name:m,item_id:p,variation_id:y,result_id:_,result_count:k,result_page:w,result_offset:E,result_position_on_page:C,num_results_per_page:q,selected_filters:O,section:I,search_term:e,analytics_tags:R},s(h({},this.options),a({requestMethod:z})));return this.requests.queue(L,z,$,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackSearchResultClick(e,t,n={}){if(e&&"string"==typeof e){if(t&&"object"==typeof t&&!Array.isArray(t)){let i=`${this.options.serviceUrl}/autocomplete/${r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(e))}/click_through?`,o={},{item_name:s,name:a,itemName:u=s||a,item_id:c,itemId:p=c,customer_id:d,customerId:f=d||p,variation_id:h,variationId:m=h,result_id:g,resultId:y=g,item_is_convertible:v,itemIsConvertible:_=v,section:b,analyticsTags:k,slCampaignOwner:x,slCampaignId:w}=t;return u&&(o.name=u),f&&(o.customer_id=f),m&&(o.variation_id=m),y&&(o.result_id=y),"boolean"==typeof _&&(o.item_is_convertible=_),b&&(o.section=b),k&&(o.analytics_tags=k),w&&(o.sl_campaign_id=w),x&&(o.sl_campaign_owner=x),this.requests.queue(`${i}${l(o,this.options)}`,void 0,void 0,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}return this.requests.send(),Error("term is a required parameter of type string")}trackConversion(e,t,n={}){if(t&&"object"==typeof t&&!Array.isArray(t)){let r=`${this.options.serviceUrl}/v2/behavioral_action/conversion?`,i={},u={},{name:c,item_name:p,itemName:d=p||c,customer_id:f,customerId:m=f,item_id:g,itemId:y=g||m,variation_id:v,variationId:_=v,revenue:b,section:k="Products",display_name:x,displayName:w=x,type:S,is_custom_type:E,isCustomType:A=E,analyticsTags:C}=t;y&&(u.item_id=y),d&&(u.item_name=d),_&&(u.variation_id=_),(b||0===b)&&(u.revenue=b.toString()),k&&(i.section=k,u.section=k),u.search_term=e||"TERM_UNKNOWN",S&&(u.type=S),A&&(u.is_custom_type=A),w&&(u.display_name=w),C&&(u.analytics_tags=C);let T=`${r}${l(i,this.options)}`,q="POST",P=o(u,s(h({},this.options),a({requestMethod:q})));return this.requests.queue(T,q,P,n),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackPurchase(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/purchase?`,i={},u={},{items:c,revenue:p,order_id:d,orderId:f=d,section:m,analyticsTags:g}=e,{apiKey:y}=this.options;if(f){if(r.hasOrderIdRecord({orderId:f,apiKey:y}))return!1;r.addOrderIdRecord({orderId:f,apiKey:y}),u.order_id=f}c&&Array.isArray(c)&&(u.items=c.slice(0,100).map(e=>r.toSnakeCaseKeys(e,!1))),(p||0===p)&&(u.revenue=p),m?i.section=m:i.section="Products",g&&(u.anal
1ytics_tags=g);let v=`${n}${l(i,this.options)}`,_="POST",b=o(u,s(h({},this.options),a({requestMethod:_})));return this.requests.queue(v,_,b,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackRecommendationView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/recommendation_result_view?`,i={},{result_count:u,result_page:c,resultPage:p=c,result_offset:d,resultOffset:f=d,result_id:m,resultId:g=m,section:y,url:v,pod_id:_,podId:b=_,num_results_viewed:k,numResultsViewed:x=k,items:w,analyticsTags:S,seedItemIds:E,resultCount:A=u||(null==w?void 0:w.length)||0}=e;r.isNil(A)||(i.result_count=A),r.isNil(p)||(i.result_page=p),r.isNil(f)||(i.result_offset=f),g&&(i.result_id=g),y?i.section=y:i.section="Products",v&&(i.url=r.truncateString(v,2048)),b&&(i.pod_id=b),r.isNil(x)||(i.num_results_viewed=x),w&&Array.isArray(w)&&(i.items=w.slice(0,100).map(e=>r.toSnakeCaseKeys(e,!1))),S&&(i.analytics_tags=S),"number"==typeof E?i.seed_item_ids=[String(E)]:(null==E?void 0:E.length)&&"string"==typeof E?i.seed_item_ids=[E]:(null==E?void 0:E.length)&&Array.isArray(E)&&(i.seed_item_ids=E);let C=`${n}${l({},this.options)}`,T="POST",q=o(i,s(h({},this.options),a({requestMethod:T})));return this.requests.queue(C,T,q,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackResultsImpressionView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let{items:n,filterName:i,filterValue:u,searchTerm:c}=e;if(!n||!Array.isArray(n)||0===n.length)return Error("items is a required parameter of type array");for(let e=0;e<n.length;e+=1){let t=n[e];if(!t||"object"!=typeof t||Array.isArray(t))return Error("All items must be objects");if(!t.itemId||"string"!=typeof t.itemId)return Error("itemId is a required property of type string for each item");if(!t.itemName||"string"!=typeof t.itemName)return Error("itemName is a required property of type string for each item")}let p=`${this.options.serviceUrl}/v2/behavioral_action/impression_view?`,d={items:n.map(e=>r.toSnakeCaseKeys(e,!1))};i&&(d.filter_name=i),u&&(d.filter_value=u),c&&(d.search_term=c);let f=`${p}${l({},this.options)}`,m="POST",g=o(d,s(h({},this.options),a({requestMethod:m})));return this.requests.queue(f,m,g,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackMediaImpressionView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=r.getBehaviorUrl(this.options.mediaServiceUrl),i=`${n.toString()}v2/ad_behavioral_action/display_ad_view?`,u={},{bannerAdId:c,placementId:p,analyticsTags:d}=e;r.isNil(c)||(u.banner_ad_id=c),r.isNil(p)||(u.placement_id=p),r.isNil(d)||(u.analytics_tags=d);let f=`${i}${l({},this.options)}`,m="POST",g=o(u,s(h({},this.options),a({requestMethod:m})));return this.requests.queue(f,m,g,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackMediaImpressionClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=r.getBehaviorUrl(this.options.mediaServiceUrl),i=`${n.toString()}v2/ad_behavioral_action/display_ad_click?`,u={},{bannerAdId:c,placementId:p,analyticsTags:d}=e;r.isNil(c)||(u.banner_ad_id=c),r.isNil(p)||(u.placement_id=p),r.isNil(d)||(u.analytics_tags=d);let f=`${i}${l({},this.options)}`,m="POST",g=o(u,s(h({},this.options),a({requestMethod:m})));return this.requests.queue(f,m,g,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackRecommendationClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/recommendation_result_click?`,i={},{variation_id:u,variationId:c=u,section:p="Products",result_id:d,resultId:f=d,result_count:m,resultCount:g=m,result_page:y,resultPage:v=y,result_offset:_,resultOffset:b=_,result_position_on_page:k,resultPositionOnPage:x=k,num_results_per_page:w,numResultsPerPage:S=w,pod_id:E,podId:A=E,strategy_id:C,strategyId:T=C,item_id:q,itemId:P=q,item_name:O,itemName:I=O,analyticsTags:R,slCampaignId:j,slCampaignOwner:N,seedItemIds:D}=e;c&&(i.variation_id=c),p&&(i.section=p),f&&(i.result_id=f),r.isNil(g)||(i.result_count=g),r.isNil(v)||(i.result_page=v),r.isNil(b)||(i.result_offset=b),r.isNil(x)||(i.result_position_on_page=x),r.isNil(S)||(i.num_results_per_page=S),A&&(i.pod_id=A),T&&(i.strategy_id=T),P&&(i.item_id=P),I&&(i.item_name=I),R&&(i.analytics_tags=R),j&&(i.sl_campaign_id=j),N&&(i.sl_campaign_owner=N),"number"==typeof D?i.seed_item_ids=[String(D)]:(null==D?void 0:D.length)&&"string"==typeof D?i.seed_item_ids=[D]:(null==D?void 0:D.length)&&Array.isArray(D)&&(i.seed_item_ids=D);let L=`${n}${l({},this.options)}`,z="POST",$=o(i,s(h({},this.options),a({requestMethod:z})));return this.requests.queue(L,z,$,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackBrowseResultsLoaded(e,t={}){var n;if(e&&"object"==typeof e&&!Array.isArray(e)){let i=`${this.options.serviceUrl}/v2/behavioral_action/browse_result_load?`,u={},{section:c="Products",result_count:p,result_page:d,resultPage:f=d,result_offset:m,resultOffset:g=m,result_id:y,resultId:v=y,selected_filters:_,selectedFilters:b=_,url:k,sort_order:x,sortOrder:w=x,sort_by:S,sortBy:E=S,filter_name:A,filterName:C=A,filter_value:T,filterValue:q=T,items:P,analyticsTags:O,resultCount:I=null!=(n=null!=p?p:null==P?void 0:P.length)?n:0}=e;c&&(u.section=c),r.isNil(I)||(u.result_count=I),r.isNil(f)||(u.result_page=f),r.isNil(g)||(u.result_offset=g),v&&(u.result_id=v),b&&(u.selected_filters=b),k&&(u.url=r.truncateString(k,2048)),w&&(u.sort_order=w),E&&(u.sort_by=E),C&&
1(u.filter_name=C),q&&(u.filter_value=q),P&&Array.isArray(P)&&(u.items=P.map(e=>r.toSnakeCaseKeys(e,!1))),O&&(u.analytics_tags=O);let R=`${i}${l({},this.options)}`,j="POST",N=o(u,s(h({},this.options),a({requestMethod:j})));return this.requests.queue(R,j,N,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackBrowseResultClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/browse_result_click?`,i={},{section:u="Products",variation_id:c,variationId:p=c,result_id:d,resultId:f=d,result_count:m,resultCount:g=m,result_page:y,resultPage:v=y,result_offset:_,resultOffset:b=_,result_position_on_page:k,resultPositionOnPage:x=k,num_results_per_page:w,numResultsPerPage:S=w,selected_filters:E,selectedFilters:A=E,filter_name:C,filterName:T=C,filter_value:q,filterValue:P=q,customer_id:O,customerId:I=O,item_id:R,itemId:j=I||R,item_name:N,name:D,itemName:L=N||D,analyticsTags:z,slCampaignId:$,slCampaignOwner:U}=e;u&&(i.section=u),p&&(i.variation_id=p),f&&(i.result_id=f),r.isNil(g)||(i.result_count=g),r.isNil(v)||(i.result_page=v),r.isNil(b)||(i.result_offset=b),r.isNil(x)||(i.result_position_on_page=x),r.isNil(S)||(i.num_results_per_page=S),A&&(i.selected_filters=A),T&&(i.filter_name=T),P&&(i.filter_value=P),j&&(i.item_id=j),L&&(i.item_name=L),z&&(i.analytics_tags=z),$&&(i.sl_campaign_id=$),U&&(i.sl_campaign_owner=U);let B=`${n}${l({},this.options)}`,M="POST",F=o(i,s(h({},this.options),a({requestMethod:M})));return this.requests.queue(B,M,F,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackBrowseRedirect(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/browse_redirect?`,r={},{searchTerm:i,userInput:u,section:c="Products",selectedFilters:p,redirectToUrl:d,sortOrder:f,sortBy:m,filterName:g,filterValue:y,analyticsTags:v}=e;i&&(r.search_term=i),u&&(r.user_input=u),d&&(r.redirect_to_url=d),c&&(r.section=c),p&&(r.selected_filters=p),f&&(r.sort_order=f),m&&(r.sort_by=m),g&&(r.filter_name=g),y&&(r.filter_value=y),v&&(r.analytics_tags=v);let _=`${n}${l({},this.options)}`,b="POST",k=o(r,s(h({},this.options),a({requestMethod:b})));return this.requests.queue(_,b,k,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackGenericResultClick(e,t={}){if("object"==typeof e){let n=`${this.options.serviceUrl}/v2/behavioral_action/result_click?`,i={},{item_id:u,itemId:c=u,item_name:p,itemName:d=p,variation_id:f,variationId:m=f,section:g="Products",result_offset:y,resultOffset:v=y,analyticsTags:_}=e;if(c){i.section=g,i.item_id=c,d&&(i.item_name=d),m&&(i.variation_id=m),r.isNil(v)||(i.result_offset=v),_&&(i.analytics_tags=_);let e=`${n}${l({},this.options)}`,u="POST",p=o(i,s(h({},this.options),a({requestMethod:u})));return this.requests.queue(e,u,p,t),this.requests.send(),!0}}return this.requests.send(),Error('A parameters object with an "itemId" property is required.')}trackQuizResultsLoaded(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/quiz_result_load?`,{quiz_id:i,quizId:u=i,quiz_version_id:c,quizVersionId:p=c,quiz_session_id:d,quizSessionId:f=d,url:m,section:g="Products",result_count:y,resultCount:v=y,result_id:_,resultId:b=_,result_page:k,resultPage:x=k,result_offset:w,resultOffset:S=w,items:E}=e,A={},C={};if(E&&Array.isArray(E)&&(C.items=E.slice(0,100).map(e=>r.toSnakeCaseKeys(e,!1))),"string"!=typeof u)return Error('"quizId" is a required parameter of type string');if("string"!=typeof p)return Error('"quizVersionId" is a required parameter of type string');if("string"!=typeof f)return Error('"quizSessionId" is a required parameter of type string');if("string"!=typeof m)return Error('"url" is a required parameter of type string');if(C.quiz_id=u,C.quiz_version_id=p,C.quiz_session_id=f,C.url=r.truncateString(m,2048),!r.isNil(g)){if("string"!=typeof g)return Error('"section" must be a string');A.section=g,C.section=g}if(!r.isNil(v)){if("number"!=typeof v)return Error('"resultCount" must be a number');C.result_count=v}if(!r.isNil(b)){if("string"!=typeof b)return Error('"resultId" must be a string');C.result_id=b}if(!r.isNil(x)){if("number"!=typeof x)return Error('"resultPage" must be a number');C.result_page=x}
1if(!r.isNil(S)){if("number"!=typeof S)return Error('"resultOffset" must be a number');C.result_offset=S}let T=`${n}${l(A,this.options)}`,q="POST",P=o(C,s(h({},this.options),a({requestMethod:q})));return this.requests.queue(T,q,P,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackQuizResultClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/quiz_result_click?`,{quiz_id:i,quizId:u=i,quiz_version_id:c,quizVersionId:p=c,quiz_session_id:d,quizSessionId:f=d,item_id:m,itemId:g=m,item_name:y,itemName:v=y,result_count:_,resultCount:b=_,result_id:k,resultId:x=k,result_page:w,resultPage:S=w,result_offset:E,resultOffset:A=E,num_results_per_page:C,numResultsPerPage:T=C,result_position_on_page:q,resultPositionOnPage:P=q,section:O="Products",variationId:I}=e,R={},j={};if("string"!=typeof u)return Error('"quizId" is a required parameter of type string');if("string"!=typeof p)return Error('"quizVersionId" is a required parameter of type string');if("string"!=typeof f)return Error('"quizSessionId" is a required parameter of type string');if("string"!=typeof g&&"string"!=typeof v)return Error('"itemId" or "itemName" is a required parameter of type string');if(j.quiz_id=u,j.quiz_version_id=p,j.quiz_session_id=f,!r.isNil(g)){if("string"!=typeof g)return Error('"itemId" must be a string');j.item_id=g}if(!r.isNil(v)){if("string"!=typeof v)return Error('"itemName" must be a string');j.item_name=v}if(!r.isNil(I)){if("string"!=typeof I)return Error('"variationId" must be a string');j.variation_id=I}if(!r.isNil(O)){if("string"!=typeof O)return Error('"section" must be a string');R.section=O}if(!r.isNil(b)){if("number"!=typeof b)return Error('"resultCount" must be a number');j.result_count=b}if(!r.isNil(x)){if("string"!=typeof x)return Error('"resultId" must be a string');j.result_id=x}if(!r.isNil(S)){if("number"!=typeof S)return Error('"resultPage" must be a number');j.result_page=S}if(!r.isNil(A)){if("number"!=typeof A)return Error('"resultOffset" must be a number');j.result_offset=A}if(!r.isNil(T)){if("number"!=typeof T)return Error('"numResultsPerPage" must be a number');j.num_results_per_page=T}if(!r.isNil(P)){if("number"!=typeof P)return Error('"resultPositionOnPage" must be a number');j.result_position_on_page=P}let N=`${n}${l(R,this.options)}`,D="POST",L=o(j,s(h({},this.options),a({requestMethod:D})));return this.requests.queue(N,D,L,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackQuizConversion(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/quiz_conversion?`,{quiz_id:i,quizId:u=i,quiz_version_id:c,quizVersionId:p=c,quiz_session_id:d,quizSessionId:f=d,item_id:m,itemId:g=m,item_name:y,itemName:v=y,variation_id:_,variationId:b=_,revenue:k,section:x="Products",type:w,is_custom_type:S,isCustomType:E=S,display_name:A,displayName:C=A}=e,T={};if("string"!=typeof u)return Error('"quizId" is a required parameter of type string');if("string"!=typeof p)return Error('"quizVersionId" is a required parameter of type string');if("string"!=typeof f)return Error('"quizSessionId" is a required parameter of type string');if("string"!=typeof g&&"string"!=typeof v)return Error('"itemId" or "itemName" is a required parameter of type string');if(T.quiz_id=u,T.quiz_version_id=p,T.quiz_session_id=f,!r.isNil(g)){if("string"!=typeof g)return Error('"itemId" must be a string');T.item_id=g}if(!r.isNil(v)){if("string"!=typeof v)return Error('"itemName" must be a string');T.item_name=v}if(!r.isNil(b)){if("string"!=typeof b)return Error('"variationId" must be a string');T.variation_id=b}if(!r.isNil(k)){if("string"!=typeof k)return Error('"revenue" must be a string');T.revenue=k}if(!r.isNil(x)){if("string"!=typeof x)return Error('"section" must be a string');T.section=x}if(!r.isNil(w)){if("string"!=typeof w)return Error('"type" must be a string');T.type=w}if(!r.isNil(E)){if("boolean"!=typeof E)return Error('"isCustomType" must be a boolean');T.is_custom_type=E}if(!r.isNil(C)){if("string"!=typeof C)return Error('"displayName" must be a string');T.display_name=C}let q=`${n}${l({},this.options)}`,P="POST",O=o(T,s(h({},this.options),a({requestMethod:P})));return this.requests.queue(q,P,O,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentSubmit(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_submit?`,{section:r,intent:i,threadId:u}=e,c={intent:i,section:r};u&&(c.thread_id=u);let p=`${n}${l({},this.options)}`,d="POST",f=o(c,s(h({},this.options),a({requestMethod:d})));return this.requests.queue(p,d,f,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentResultLoadStarted(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_result_load_start?`,{section:r,intentResultId:i,intent:u,threadId:c}=e,p={intent_result_id:i,intent:u,section:r};c&&(p.thread_id=c);let d=`${n}${l({},this.options)}`,f="POST",m=o(p,s(h({},this.options),a({requestMethod:f})));return this.requests.queue(d,f,m,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentResultLoadFinished(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_result_load_finish?`,{section:r,searchResultCount:i,intentResultId:u,intent:c,threadId:p}=e,d={intent_result_id:u,section:r,intent:c,search_result_count:i};
1p&&(d.thread_id=p);let f=`${n}${l({},this.options)}`,m="POST",g=o(d,s(h({},this.options),a({requestMethod:m})));return this.requests.queue(f,m,g,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentResultClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_search_result_click?`,{section:r="Products",variationId:i,intentResultId:u,searchResultId:c,itemId:p,itemName:d,intent:f,threadId:m}=e,g={section:r,variation_id:i,intent_result_id:u,search_result_id:c,item_id:p,item_name:d,intent:f};m&&(g.thread_id=m);let y=`${n}${l({},this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentResultView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_search_result_view?`,{section:i="Products",items:u,numResultsViewed:c,intentResultId:p,searchResultId:d,intent:f,threadId:m}=e,g={section:i,intent_result_id:p,search_result_id:d,num_results_viewed:c,items:u&&Array.isArray(u)&&u.slice(0,100).map(e=>r.toSnakeCaseKeys(e,!1)),intent:f};m&&(g.thread_id=m);let y=`${n}${l({},this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters are required of type object")}trackAgentSearchSubmit(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/assistant_search_submit?`,{section:r,intent:i,searchTerm:u,searchResultId:c,intentResultId:p,threadId:d}=e,f={intent:i,section:r,search_term:u,search_result_id:c,intent_result_id:p};d&&(f.thread_id=d);let m=`${n}${l({},this.options)}`,g="POST",y=o(f,s(h({},this.options),a({requestMethod:g})));return this.requests.queue(m,g,y,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackAssistantSubmit(e,t={}){return this.trackAgentSubmit(e,t)}trackAssistantResultLoadStarted(e,t={}){return this.trackAgentResultLoadStarted(e,t)}trackAssistantResultLoadFinished(e,t={}){return this.trackAgentResultLoadFinished(e,t)}trackAssistantResultClick(e,t={}){return this.trackAgentResultClick(e,t)}trackAssistantResultView(e,t={}){return this.trackAgentResultView(e,t)}trackAssistantSearchSubmit(e,t={}){return this.trackAgentSearchSubmit(e,t)}trackProductInsightsAgentViews(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_views?`,{section:r,questions:i,itemId:u,itemName:c,variationId:p,viewTimespans:d,threadId:f}=e,m={},g={questions:i,item_id:u,item_name:c,variation_id:p,view_timespans:d};f&&(g.thread_id=f),r&&(m.section=r);let y=`${n}${l(m,this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_view?`,{section:r,questions:i,itemId:u,itemName:c,variationId:p,threadId:d}=e,f={},m={questions:i,item_id:u,item_name:c,variation_id:p};d&&(m.thread_id=d),r&&(f.section=r);let g=`${n}${l(f,this.options)}`,y="POST",v=o(m,s(h({},this.options),a({requestMethod:y})));return this.requests.queue(g,y,v,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentOutOfView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_out_of_view?`,{section:r,itemId:i,itemName:u,variationId:c,threadId:p}=e,d={},f={item_id:i,item_name:u,variation_id:c};p&&(f.thread_id=p),r&&(d.section=r);let m=`${n}${l(d,this.options)}`,g="POST",y=o(f,s(h({},this.options),a({requestMethod:g})));return this.requests.queue(m,g,y,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentFocus(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_focus?`,{section:r,itemId:i,itemName:u,variationId:c,threadId:p}=e,d={},f={item_id:i,item_name:u,variation_id:c};p&&(f.thread_id=p),r&&(d.section=r);let m=`${n}${l(d,this.options)}`,g="POST",y=o(f,s(h({},this.options),a({requestMethod:g})));return this.requests.queue(m,g,y,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentQuestionClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_question_click?`,{section:r,itemId:i,itemName:u,variationId:c,question:p,threadId:d,questionTopic:f}=e,m={},g={item_id:i,item_name:u,variation_id:c,question:p};d&&(g.thread_id=d),f&&(g.question_topic=f),r&&(m.section=r);let y=`${n}${l(m,this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentQuestionSubmit(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_question_submit?`,{section:r,itemId:i,itemName:u,variationId:c,question:p,threadId:d,questionTopic:f}=e,m={},g={item_id:i,item_name:u,variation_id:c,question:p};d&&(g.thread_id=d),f&&(g.question_topic=f),r&&(m.section=r);let y=`${n}${l(m,this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentAnswerView(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_answer_view?`,{section:i,itemId:u,itemName:c,variationId:p,question:d,answerText:f,qnaResultId:m,items:g,followUpQuestions:y,threadId:v}=e,_={},b={item_id:u,item_name:c,variation_id:p,question:d,answer_text:f,qna_result_id:m};g&&Array.isArray(g)&&(b.items=g.map(e=>r.toSnakeCaseKeys(e,!1))),y&&Array.isArray(y)&&(b.follow_up_questions=y.map(e=>r.toSnakeCaseKeys(e,!1))),v&&(b.thread_id=v),i&&(_.section=i);let k=`${n}${l(_,this.options)}`,x="POST",w=o(b,s(h({},this.options),a({requestMethod:x})));return this.requests.queue(k,x,w,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentAnswerFeedback(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_answer_feedback?`,{section:r,itemId:i,itemName:u,variationId:c,feedbackLabel:p,qnaResultId:d,threadId:f}=e,m={},g={item_id:i,item_name:u,variation_id:c,feedback_label:p,qna_result_id:d};f&&(g.thread_id=f),r&&(m.section=r);let y=`${n}${l(m,this.options)}`,v="POST",_=o(g,s(h({},this.options),a({requestMethod:v})));return this.requests.queue(y,v,_,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}trackProductInsightsAgentResultClick(e,t={}){if(e&&"object"==typeof e&&!Array.isArray(e)){let n=`${this.options.serviceUrl}/v2/behavioral_action/product_insights_agent_result_click?`,{section:i,itemId:u,itemName:c,variationId:p,position:d,question:f,seedItemId:m,seedItemName:g,seedVariationId:y,qnaResultId:v,threadId:_}=e,b={},k={item_id:u,item_name:c,variation_id:p,question:f,seed_item_id:m};r.isNil(d)||(k.position=d),g&&(k.seed_item_name=g),y&&(k.seed_variation_id=y),v&&(k.qna_result_id=v),_&&(k.thread_id=_),i&&(b.section=i);let x=`${n}${l(b,this.options)}`,w="POST",S=o(k,s(h({},this.options),a({requestMethod:w})));return this.requests.queue(x,w,S,t),this.requests.send(),!0}return this.requests.send(),Error("parameters is a required parameter of type object")}on(e,t){return"success"!==e&&"error"!==e?Error('messageType must be a string of value "success" or "error"'):t&&"function"==typeof t?(this.eventemitter.on(e,t),!0):Error("callback is required and must be a function")}};
1u.RequestQueue=i,t.exports=u}}),I={},R={default:()=>r};for(var j in R)o(I,j,{get:R[j],enumerable:!0});var N=(t={"src/version.js"(){r="2.93.0"}},function(){return t&&(n=(0,t[u(t)[0]])(t=0)),n}),D=g({"src/modules/quizzes.js"(e,t){var n=x(),r=k();function i(e,t,n,i){let{apiKey:o,clientId:s,sessionId:l,segments:a,userId:u,version:c,quizzesServiceUrl:p}=n,d={c:c},f="";if(d.key=o,d.i=s,d.s=l,a&&a.length&&(d.us=a),u&&(d.ui=String(u)),!e||"string"!=typeof e)throw Error("quizId is a required parameter of type string");if("results"===i&&("object"!=typeof t.answers||!Array.isArray(t.answers)||0===t.answers.length))throw Error("answers is a required parameter of type array");if(t){let{section:e,answers:n,quizSessionId:i,quizVersionId:o,page:s,resultsPerPage:l,filters:a,fmtOptions:u,hiddenFields:c,skipTracking:p}=t;e&&(d.section=e),o&&(d.quiz_version_id=o),i&&(d.quiz_session_id=i),n&&n.length&&(f=`&${r.stringify({a:n.map(e=>[...e.map(encodeURIComponent)].join(","))})}`),r.isNil(s)||(d.page=s),r.isNil(l)||(d.num_results_per_page=l),a&&(d.filters=a),u&&(d.fmt_options=u),c&&(d.fmt_options?d.fmt_options.hidden_fields=c:d.fmt_options={hidden_fields:c}),p&&(d.skip_tracking=p)}d._dt=Date.now(),d=r.cleanParams(d);let h=r.stringify(d);return`${p}/v1/quizzes/${encodeURIComponent(e)}/${encodeURIComponent(i)}/?${h}${f}`}t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getQuizNextQuestion(e,t,n={}){let o,{fetch:s}=this.options,l=new AbortController,{signal:a}=l;try{o=i(e,t,this.options,"next")}catch(e){return Promise.reject(e)}return r.applyNetworkTimeout(this.options,n,l),s(o,{signal:a}).then(r.convertResponseToJson).then(e=>{if(e.quiz_version_id)return this.eventDispatcher.queue("quizzes.getQuizNextQuestion.completed",e),e;throw Error("getQuizNextQuestion response data is malformed")})}getQuizResults(e,t,n={}){let o,{fetch:s}=this.options,l=new AbortController,{signal:a}=l;try{o=i(e,t,this.options,"results")}catch(e){return Promise.reject(e)}return r.applyNetworkTimeout(this.options,n,l),s(o,{signal:a}).then(r.convertResponseToJson).then(e=>{if(e.quiz_version_id)return this.eventDispatcher.queue("quizzes.getQuizResults.completed",e),e;throw Error("getQuizResults response data is malformed")})}getQuizResultsConfig(e,t,n={}){let o,{fetch:s}=this.options,l=new AbortController,{signal:a}=l;try{o=i(e,t,this.options,"results_config")}catch(e){return Promise.reject(e)}return r.applyNetworkTimeout(this.options,n,l),s(o,{signal:a}).then(r.convertResponseToJson).then(e=>{if(e.quiz_version_id)return this.eventDispatcher.queue("quizzes.getQuizResultsConfig.completed",e),e;throw Error("getQuizResultsConfig response data is malformed")})}getQuizAllQuestions(e,t,n={}){let o,{fetch:s}=this.options,l=new AbortController,{signal:a}=l;try{o=i(e,t,this.options,"all_questions")}catch(e){return Promise.reject(e)}return r.applyNetworkTimeout(this.options,n,l),s(o,{signal:a}).then(r.convertResponseToJson).then(e=>{if(e.quiz_version_id)return this.eventDispatcher.queue("quizzes.getQuizAllQuestions.completed",e),e;throw Error("getQuizAllQuestions response data is malformed")})}}}}),L=g({"src/modules/agent.js"(e,t){var{cleanParams:n,trimNonBreakingSpaces:r,encodeURIComponentRFC3986:i,stringify:o,isNil:s}=k();function l(e,t,l){let{apiKey:a,version:u,sessionId:c,clientId:p,userId:d,segments:f,testCells:h,agentServiceUrl:m,assistantServiceUrl:g}=l,y={c:u};if(y.key=a,y.i=p,y.s=c,!e||"string"!=typeof e)throw Error("intent is a required parameter of type string");if(!t||!t.domain||"string"!=typeof t.domain)throw Error("parameters.domain is a required parameter of type string");if(h&&Object.keys(h).forEach(e=>{y[`ef-${e}`]=h[e]}),f&&f.length&&(y.us=f),d&&(y.ui=String(d)),t){let{domain:e,numResultsPerPage:n,threadId:r,guard:i,numResultsPerEvent:o,numResultEvents:l,qsParam:a,preFilterExpression:u,fmtOptions:c}=t;e&&(y.domain=e),n&&(y.num_results_per_page=n),r&&(y.thread_id=r),s(i)||(y.guard=i),o&&(y.num_results_per_event=o),l&&(y.num_result_events=l),a&&(y.qs=JSON.stringify(a)),u&&(y.pre_filter_expression=JSON.stringify(u)),c&&(y.fmt_options=c)}y._dt=Date.now();let v=o(y=n(y)),_=e.replace(/^\//,"|");return`${m||g}/v1/intent/${i(r(_))}?${v}`}
1function a(e,t,n){Object.values(n).forEach(r=>{r!==n.END&&e.addEventListener(r,e=>{let n=JSON.parse(e.data);t.enqueue({type:r,data:n})})}),e.addEventListener(n.END,()=>{t.close(),e.close()}),e.onerror=n=>{t.error(n),e.close()}}var u=class e{constructor(e){this.options=e||{}}getAgentResultsStream(t,n){let r,i;try{let o=l(t,n,this.options);r=new EventSource(o),i=new ReadableStream({start(t){a(r,t,e.EventTypes)},cancel(){r.close()}})}catch(e){throw i?null==i||i.cancel():null==r||r.close(),Error(e.message)}return i}};y(u,"EventTypes",{START:"start",GROUP:"group",SEARCH_RESULT:"search_result",ARTICLE_REFERENCE:"article_reference",RECIPE_INFO:"recipe_info",RECIPE_INSTRUCTIONS:"recipe_instructions",SERVER_ERROR:"server_error",IMAGE_META:"image_meta",MESSAGE:"message",FOLLOW_UP_QUESTIONS:"follow_up_questions",END:"end"}),t.exports=u,t.exports.createAgentUrl=l,t.exports.setupEventListeners=a}}),z=g({"src/modules/pia.js"(e,t){var n=x(),r=k();function i(e,t,n,i){let{apiKey:o,clientId:s,sessionId:l,segments:a,userId:u,version:c,agentServiceUrl:p,assistantServiceUrl:d}=n,f={c:c};if(f.key=o,f.i=s,f.s=l,!e||"string"!=typeof e)throw Error("itemId is a required parameter of type string");if(f.item_id=e,a&&a.length&&(f.us=a),u&&(f.ui=String(u)),t){let{threadId:e,variationId:n,numResults:i,preFilterExpression:o,guard:s,fmtOptions:l}=t;e&&(f.thread_id=e),n&&(f.variation_id=n),r.isNil(i)||(f.num_results=i),o&&(f.pre_filter_expression=JSON.stringify(o)),r.isNil(s)||(f.guard=s),l&&(f.fmt_options=l)}f._dt=Date.now(),f=r.cleanParams(f);let h=r.stringify(f);return`${p||d}/v1/item_questions${i}?${h}`}t.exports=class{constructor(e){this.options=e||{},this.eventDispatcher=new n(e.eventDispatcher)}getSuggestedQuestions(e,t,n={}){let o,s,{fetch:l}=this.options;if("function"==typeof AbortController){let e=new AbortController;s=e&&e.signal,r.applyNetworkTimeout(this.options,n,e)}try{o=i(e,t,this.options,"")}catch(e){return Promise.reject(e)}return l(o,{signal:s}).then(r.convertResponseToJson).then(e=>{if(e.questions)return this.eventDispatcher.queue("pia.getSuggestedQuestions.completed",e),e;throw Error("getSuggestedQuestions response data is malformed")})}getAnswerResults(e,t,n,o={}){let s,l,{fetch:a}=this.options;if(!t||"string"!=typeof t)return Promise.reject(Error("question is a required parameter of type string"));if("function"==typeof AbortController){let e=new AbortController;l=e&&e.signal,r.applyNetworkTimeout(this.options,o,e)}try{let o=r.encodeURIComponentRFC3986(r.trimNonBreakingSpaces(t));s=i(e,n,this.options,`/${o}/answer`)}catch(e){return Promise.reject(e)}return a(s,{signal:l}).then(r.convertResponseToJson).then(e=>{if(e.qna_result_id)return this.eventDispatcher.queue("pia.getAnswerResults.completed",e),e;throw Error("getAnswerResults response data is malformed")})}}}}),$=g({"src/modules/assistant.js"(e,t){var n=L(),{createAgentUrl:r,setupEventListeners:i}=L();t.exports=class extends n{constructor(){super(...arguments),y(this,"EventTypes",n.EventTypes)}getAssistantResultsStream(e,t){return this.getAgentResultsStream(e,t)}},t.exports.createAssistantUrl=r,t.exports.setupEventListeners=i}});let U=g({"src/constructorio.js"(e,t){var n=v(),r=w(),s=S(),a=E(),c=A(),d=O(),f=x(),h=k(),{default:m}=(N(),((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))p.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e})(o({},"__esModule",{value:!0}),I)),g=D(),y=L(),_=z(),b=$(),C=class{constructor(e={}){let t,o;const{apiKey:l,version:u,serviceUrl:p,allowHttpServiceUrl:v=!1,quizzesServiceUrl:k,agentServiceUrl:x,assistantServiceUrl:w,mediaServiceUrl:S,segments:E,testCells:A,clientId:C,sessionId:T,userId:q,fetch:P,trackingSendDelay:O,sendReferrerWithTrackingEvents:I,sendTrackingEvents:R,eventDispatcher:j,idOptions:N,beaconMode:D,networkParameters:L,humanityCheckLocation:z,useWindowParameters:$,additionalTrackingKeys:U}=e;if(!l||"string"!=typeof l)throw Error("API key is a required parameter of type string");const B="undefined"!=typeof window&&window.CLIENT_VERSION;if(h.canUseDOM())({session_id:t,client_id:o}=new n(N||{}));else{if(!T||"number"!=typeof T)throw Error("sessionId is a required user parameter of type number");if(!C||"string"!=typeof C)throw Error("clientId is a required user parameter of type string")}const M=p&&p.replace(/\/$/,"");this.options={apiKey:l,version:u||B||(()=>{let e=[];return h.canUseDOM()||e.push("domless"),void 0!==i.default&&void 0!==i.default.env&&i.default.env.BUNDLED&&e.push("bundled"),`ciojs-client-${e.join("-")}${e.length?"-":""}${m}`})(),serviceUrl:h.addHTTPSToString(M,v)||"https://ac.cnstrc.com",allowHttpServiceUrl:v,quizzesServiceUrl:k&&k.replace(/\/$/,"")||"https://quizzes.cnstrc.com",agentServiceUrl:x&&x.replace(/\/$/,"")||"https://agent.cnstrc.com",assistantServiceUrl:w&&w.replace(/\/$/,"")||"https://assistant.cnstrc.com",mediaServiceUrl:S&&S.replace(/\/$/,"")||"https://media-cnstrc.com",sessionId:T||t,clientId:C||o,userId:q,segments:E,testCells:h.toValidTestCells(A),fetch:P||fetch,trackingSendDelay:O,sendTrackingEvents:R,sendReferrerWithTrackingEvents:I,eventDispatcher:j,beaconMode:!1!==D,networkParameters:L||{},humanityCheckLocation:z||"session",useWindowParameters:!0===$,additionalTrackingKeys:h.toValidAdditionalTrackingKeys(U,l)},!0===$&&h.applyWindowParameterGetters(this.options),this.search=new r(this.options),this.browse=new s(this.options),this.autocomplete=new a(this.options),this.recommendations=new c(this.options),this.tracker=new d(this.options),this.quizzes=new g(this.options),this.agent=new y(this.options),this.agent.pia=new _(this.options),this.assistant=new b(this.options),new f(e.eventDispatcher).queue("instantiated",this.options)}setClientOptions(e){if(Object.keys(e).length){let{apiKey:t,segments:n,testCells:r,sessionId:i,userId:o,sendTrackingEvents:s,serviceUrl:l,additionalTrackingKeys:a}=e;if(t&&(this.options.apiKey=t,this.options.additionalTrackingKeys=h.toValidAdditionalTrackingKeys(this.options.additionalTrackingKeys,t)),n&&(this.options.segments=n),r&&(this.options.testCells=h.toValidTestCells(r)),"boolean"==typeof s&&(this.options.sendTrackingEvents=s,this.tracker.requests.sendTrackingEvents=s),i&&!h.canUseDOM()&&(this.options.sessionId=i),"userId"in e&&(this.options.userId=o),"string"==typeof l&&l.length){let e=l.replace(/\/$/,""),t=h.addHTTPSToString(e,this.options.allowHttpServiceUrl);this.options.serviceUrl=t||this.options.serviceUrl}(Array.isArray(a)||null===a)&&(this.options.additionalTrackingKeys=h.toValidAdditionalTrackingKeys(a,this.options.apiKey))}}};C.Tracker=d,h.canUseDOM()&&(window.ConstructorioClient=C),t.exports=C}})();e.s(["default",0,U])},407753,e=>{"use strict";var t=e.i(609863);e.i(60505);var n=e.i(325630);let r="CVR Not AI1",i=({productVariants:e,priceField:t,excludeSkus:i=[],isUsingShopifyData:o=!1})=>{let s=e.reduce((e,s)=>{if(i.find(e=>e===r?!(0,n.getIsAllInOneVariant)(s.sku)&&s.sku.includes("CVR"):s.sku.includes(e)))return e;let l=Number(o?s[t]?.amount:s[t])||0;return l<e.min&&(e.min=l),l>e.max&&(e.max=l),e},{min:1/0,max:0});return[s.min,s.max]};e.s(["compareNumberArrays",0,(e,t)=>{if(e===t)return!0;
1if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},"getPriceRange",0,({filterSystem:e,productVariants:t,priceField:o,systemFacetOptions:s,sku:l,isUsingShopifyData:a})=>{let u=(0,n.getIsAllInOneVariant)(l),c=l?.includes("PMT-");if(!e)return i({productVariants:t,priceField:o,excludeSkus:l?.includes("SY2")?["CVR","SYS"]:u||c?[]:["CVR","SY2"],isUsingShopifyData:a});let p=Array.isArray(e)?e[0]:e;if("All-In-One Rug"===p)return i({productVariants:t,priceField:o,excludeSkus:["SY2","SYS",r]});let d=s?.find(e=>e.value?.toLowerCase()===p?.toLowerCase())?.data?.sku;return d?.includes("SYS")?i({productVariants:t,priceField:o,excludeSkus:["CVR","SY2"]}):d?.includes("SY2")?i({productVariants:t,priceField:o,excludeSkus:["CVR","SYS"]}):d?.includes("CVR")?i({productVariants:t,priceField:o,excludeSkus:["SYS","SY2","TMP","PLS","CJT","SWL"]}):void 0},"getShowPriceRange",0,({sku:e,isSizeFilterActive:n=!1})=>!t.SKUS_WITH_NO_PRICE_RANGE.find(t=>e.includes(t))&&!n])},474290,437488,671238,e=>{"use strict";var t=e.i(191788),n=e.i(433139),r=e.i(591494),i=e.i(609863),o=e.i(818960),s=e.i(407753);let l=({results:e=[],locale:t,filterSize:n,filterSystem:r,facets:l=[]})=>{let a=l.find(e=>"system"===e.field)?.values;return e.map(e=>{let{handle:l,daysSincePublished:u,image_url:c,tags:p,reviewsAverage:d,reviewsCount:f,available:h,mediaImages:m,productType:g,sku:y,size:v,system:_,texture:b,inventoryCount:k,inventoryPolicy:x,relatedProducts:w,productVariants:S,collectionIds:E,variation_id:A,hover_state_image_override:C,purchases:T,sunset_date:q,product_title_override:P,title:O,id:I}=e.data,R=m?.map(e=>({altText:e.altText,url:e.transformedSrc}))||[],j=(0,o.makeSizeUrlParam)(v,"?"),N=(0,o.makeSystemUrlParam)(y,j?"&":"?"),D=`/products/${l}${j}${N}`,L=i.LOCALE_TO_PRICE_FIELD[t]||"price",z=e.data[L],$=i.LOCALE_TO_COMPARE_AT_PRICE_FIELD[t]||"compareAtPrice";return{activeVariant:{active:!0,alt:c,available:h,compare_at_price:e.data[$],id:A,variantTitle:O,image:c,price:z,priceRange:(0,s.getPriceRange)({filterSystem:r,productVariants:S,priceField:L,systemFacetOptions:a,sku:y}),compareAtPriceRange:(0,s.getPriceRange)({filterSystem:r,productVariants:S,priceField:$,systemFacetOptions:a,sku:y}),showPriceRange:(0,s.getShowPriceRange)({sku:y,isSizeFilterActive:!!n}),size:v,system:_,texture:b,sku:y},relatedProducts:(0,o.formatRelatedProducts)(w,l),url:D,handle:l,product_type:g,hoverStateImageOverride:C,uid:I,id:I,tags:p,tagMap:(0,o.formatResultTagMap)(p),rating:d,ratingCount:f,daysSincePublished:u,purchases:T,sunsetDate:q,inventoryCount:k,inventoryPolicy:x?.toLowerCase(),name:e.value,titleOverride:P,imageUrl:c,imagesWithAltText:R,recommendationStrategy:e?.strategy?.id,collectionIds:E}})};e.s(["parseProductResults",0,l],437488);var a=e.i(763059),u=e.i(27114);function c({podId:e,locale:s,numResults:c,section:p,itemId:d,variationId:f}){let[h,m]=(0,t.useState)({searchSuggestions:[],productSuggestions:[],resultId:"",totalNumResults:0}),[g,y]=(0,t.useState)("initiating"),{user:v}=(0,a.useAuthCustomerContext)(),_=(0,u.parseShopifyId)(v?.id);return(0,t.useEffect)(()=>{let t=new r.default({apiKey:n.constructorKeys[s].id,..._&&{userId:_}});if("initiating"!==g&&y("updating"),!e){m({searchSuggestions:[],productSuggestions:[],resultId:"",totalNumResults:0}),y("succeeded");return}t.recommendations.getRecommendations(e,{numResults:c,section:p,itemIds:d?[d]:[],...f&&{variationId:f}}).then(e=>{m((({response:e,locale:t})=>{let{response:n,request:r,result_id:s}=e||{},{results:a,total_num_results:u}=n||{},{pod_id:c,section:p}=r||{};return{searchSuggestions:(({results:e,podId:t,section:n})=>t===i.ZERO_STATE_SEARCH_SUGGESTIONS_POD_ID&&n===i.SEARCH_SUGGESTIONS_SECTION?(e||[]).map(e=>(0,o.capitalizeFirstLetterOfEachWord)(e.value)):[])({results:a,podId:c,section:p}),productSuggestions:(({results:e,section:t,locale:n})=>t===i.PRODUCTS_SECTION?l({results:e,locale:n}):[])({results:a,section:p,locale:t}),resultId:s,totalNumResults:u}})({response:e,locale:s})),y("succeeded")}).catch(e=>console.log("constructorio.recommendations error:",e))},[e,_,f]),{status:g,recommendationsResponse:h}}e.s(["useConstructorRecommendations",()=>c],474290);var p=e.i(391398),d=e.i(272043);e.s(["LoadingSkeleton",0,e=>{let{className:t,width:n,height:r}=e;return(0,p.jsx)("div",{className:(0,d.default)("loading-skeleton","bg-gray-300","rounded-md",r||"h-96",n||"w-full",t)})}],671238)},403326,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function p(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function d(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c}
1;return function(t){return t.position=new h(e),g(o),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var i=Error(t.source+":"+n+":"+c+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=c,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,d(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(o);var _,b=[];for(y(b);_=function(){var e=f(),t=g(s);if(t){if(v(),!g(l))return m("property missing ':'");var n=g(a),i=e({type:"declaration",property:p(t[0].replace(r,"")),value:n?p(n[0].replace(r,"")):""});return g(u),i}}();)!1!==_&&(b.push(_),y(b));return b}},379805,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(403326))},341847,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||o.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,u):e.replace(s,u)).replace(i,a))}},974224,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(379805)),i=e.r(341847);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,t.exports=o},687283,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(s)return s(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,o,s,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(t=arguments[d],null!=t)for(n in t)r=c(p,n),p!==(i=c(t,n))&&(h&&i&&(a(i)||(o=l(i)))?(o?(o=!1,s=r&&l(r)?r:[]):s=r&&a(r)?r:{},u(p,{name:n,newValue:e(h,s,i)})):void 0!==i&&u(p,{name:n,newValue:i}));return p}},407654,e=>{"use strict";function t(){}function n(){}let r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o={};function s(e,t){return((t||o).jsx?i:r).test(e)}let l=/[ \t\n\f\r]/g;function a(e){return""===e.replace(l,"")}class u{constructor(e,t){this.attribute=t,this.property=e}}u.prototype.attribute="",u.prototype.booleanish=!1,u.prototype.boolean=!1,u.prototype.commaOrSpaceSeparated=!1,u.prototype.commaSeparated=!1,u.prototype.defined=!1,u.prototype.mustUseProperty=!1,u.prototype.number=!1,u.prototype.overloadedBoolean=!1,u.prototype.property="",u.prototype.spaceSeparated=!1,u.prototype.space=void 0;let c=0,p=v(),d=v(),f=v(),h=v(),m=v(),g=v(),y=v();function v(){return 2**++c}e.s(["boolean",0,p,"booleanish",0,d,"commaOrSpaceSeparated",0,y,"commaSeparated",0,g,"number",0,h,"overloadedBoolean",0,f,"spaceSeparated",0,m],137801);var _=e.i(137801);let b=Object.keys(_);class k extends u{constructor(e,t,n,r){let i=-1;
1if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<b.length;){const e=b[i];!function(e,t,n){n&&(e[t]=n)}(this,b[i],(n&_[e])===_[e])}}}function x(e){return e.toLowerCase()}k.prototype.defined=!0;let w=/[A-Z]/g,S=/-[a-z]/g,E=/^data[-\w.:]+$/i;function A(e){return"-"+e.toLowerCase()}function C(e){return e.charAt(1).toUpperCase()}let T={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class q{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function P(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new q(n,r,t)}function O(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new k(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[x(r)]=r,n[x(o.attribute)]=r}return new q(t,n,e.space)}q.prototype.normal={},q.prototype.property={},q.prototype.space=void 0;let I=O({properties:{ariaActiveDescendant:null,ariaAtomic:d,ariaAutoComplete:null,ariaBusy:d,ariaChecked:d,ariaColCount:h,ariaColIndex:h,ariaColSpan:h,ariaControls:m,ariaCurrent:null,ariaDescribedBy:m,ariaDetails:null,ariaDisabled:d,ariaDropEffect:m,ariaErrorMessage:null,ariaExpanded:d,ariaFlowTo:m,ariaGrabbed:d,ariaHasPopup:null,ariaHidden:d,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:m,ariaLevel:h,ariaLive:null,ariaModal:d,ariaMultiLine:d,ariaMultiSelectable:d,ariaOrientation:null,ariaOwns:m,ariaPlaceholder:null,ariaPosInSet:h,ariaPressed:d,ariaReadOnly:d,ariaRelevant:null,ariaRequired:d,ariaRoleDescription:m,ariaRowCount:h,ariaRowIndex:h,ariaRowSpan:h,ariaSelected:d,ariaSetSize:h,ariaSort:null,ariaValueMax:h,ariaValueMin:h,ariaValueNow:h,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function R(e,t){return t in e?e[t]:t}function j(e,t){return R(e,t.toLowerCase())}let N=O({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:m,accessKey:m,action:null,allow:null,allowFullScreen:p,allowPaymentRequest:p,allowUserMedia:p,alpha:p,alt:null,as:null,async:p,autoCapitalize:null,autoComplete:m,autoFocus:p,autoPlay:p,blocking:m,capture:null,charSet:null,checked:p,cite:null,className:m,closedBy:null,colorSpace:null,cols:h,colSpan:h,command:null,commandFor:null,content:null,contentEditable:d,controls:p,controlsList:m,coords:h|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p,defer:p,dir:null,dirName:null,disabled:p,download:f,draggable:d,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p,formTarget:null,headers:m,height:h,hidden:f,high:h,href:null,hrefLang:null,htmlFor:m,httpEquiv:m,id:null,imageSizes:null,imageSrcSet:null,inert:p,inputMode:null,integrity:null,is:null,isMap:p,itemId:null,itemProp:m,itemRef:m,itemScope:p,itemType:m,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p,low:h,manifest:null,max:null,maxLength:h,media:null,method:null,min:null,minLength:h,multiple:p,muted:p,name:null,nonce:null,noModule:p,noValidate:p,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p,optimum:h,pattern:null,ping:m,placeholder:null,playsInl
1ine:p,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p,referrerPolicy:null,rel:m,required:p,reversed:p,rows:h,rowSpan:h,sandbox:m,scope:null,scoped:p,seamless:p,selected:p,shadowRootClonable:p,shadowRootCustomElementRegistry:p,shadowRootDelegatesFocus:p,shadowRootMode:null,shadowRootSerializable:p,shape:null,size:h,sizes:null,slot:null,span:h,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:null,start:h,step:null,style:null,tabIndex:h,target:null,title:null,translate:null,type:null,typeMustMatch:p,useMap:null,value:d,width:h,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:m,axis:null,background:null,bgColor:null,border:h,borderColor:null,bottomMargin:h,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p,declare:p,event:null,face:null,frame:null,frameBorder:null,hSpace:h,leftMargin:h,link:null,longDesc:null,lowSrc:null,marginHeight:h,marginWidth:h,noResize:p,noHref:p,noShade:p,noWrap:p,object:null,profile:null,prompt:null,rev:null,rightMargin:h,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:h,valueType:null,version:null,vAlign:null,vLink:null,vSpace:h,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:p,disablePictureInPicture:p,disableRemotePlayback:p,exportParts:g,part:m,prefix:null,property:null,results:h,security:null,unselectable:null},space:"html",transform:j}),D=O({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:y,accentHeight:h,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:h,amplitude:h,arabicForm:null,ascent:h,attributeName:null,attributeType:null,azimuth:h,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:h,by:null,calcMode:null,capHeight:h,className:m,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:h,diffuseConstant:h,direction:null,display:null,dur:null,divisor:h,dominantBaseline:null,download:p,dx:null,dy:null,edgeMode:null,editable:null,elevation:h,enableBackground:null,end:null,event:null,exponent:h,externalResourcesRequired:null,fill:null,fillOpacity:h,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:g,g2:g,glyphName:g,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:h,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:h,horizOriginX:h,horizOriginY:h,id:null,ideographic:h,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:h,k:h,k1:h,k2:h,k3:h,k4:h,kernelMatrix:y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:h,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:h,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:h,overlineThickness:h,paintOrder:null,panose1:null,path:null,pathLength:h,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:m,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:h,pointsAtY:h,pointsAtZ:h,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:y,rev:y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:y,requiredFeatures:y,requiredFonts:y,requiredFormats:y,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:h,specularExponent:h,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:h,strikethroughThickness:h,string:null,stroke:null,strokeDashArray:y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:h,strokeOpacity:h,strokeWidth:null,style:null,surfaceScale:h,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:y,tabIndex:h,tableValues:null,target:null,targetX:h,targetY:h,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:h,underlineThickness:h,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:h,values:null,vAlphabetic:h,vMathematical:h,vectorEffect:null,vHanging:h,vIdeographic:h,version:null,vertAdvY:h,vertOriginX:h,vertOriginY:h,viewB
1ox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:h,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:R}),L=O({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),z=O({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:j}),$=O({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),U=P([I,N,L,z,$],"html"),B=P([I,D,L,z,$],"svg");var M=e.i(974224);let F=H("end"),V=H("start");function H(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?Q(e.position):"start"in e||"end"in e?Q(e):"line"in e||"column"in e?G(e):"":""}function G(e){return K(e&&e.line)+":"+K(e&&e.column)}function Q(e){return G(e&&e.start)+"-"+G(e&&e.end)}function K(e){return e&&"number"==typeof e?e:1}class W extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=J(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}W.prototype.file="",W.prototype.name="",W.prototype.reason="",W.prototype.message="",W.prototype.stack="",W.prototype.column=void 0,W.prototype.line=void 0,W.prototype.ancestors=void 0,W.prototype.cause=void 0,W.prototype.fatal=void 0,W.prototype.place=void 0,W.prototype.ruleId=void 0,W.prototype.source=void 0;let Y={}.hasOwnProperty,X=new Map,Z=/[A-Z]/g,ee=new Set(["table","tbody","thead","tfoot","tr"]),et=new Set(["td","th"]),en="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function er(e,n,r){var i,o,s,l,c,p,d,f,h;let m,g,y,v,_,b,q,P,O,I,R;return"element"===n.type?(i=e,o=n,s=r,g=m=i.schema,"svg"===o.tagName.toLowerCase()&&"html"===m.space&&(i.schema=B),i.ancestors.push(o),y=el(i,o.tagName,!1),v=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Y.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=x(t),r=t,i=u;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&E.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(S,C);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!S.test(e)){let n=e.replace(w,A);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=k}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,M.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new W("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=en+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Y.call(e,t)&&(n[function(e){let t=e.replace(Z,eu);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?T[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,s]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof s&&et.has(t.tagName)?n=s:i[r]=s}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(i,o),_=es(i,o),ee.has(o.tagName)&&(_=_.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&a(e.value):a(e))})),ei(i,v,y,o),eo(v,_),i.ancestors.pop(),i.schema=m,i.create(o,y,v,s)):"mdxFlowExpression"===n.type||"mdxTextExpression"===n.type?function(e,n){if(n.data&&n.data.estree&&e.evaluater){let r=n.data.estree.body[0];return t("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}ea(e,n.position)}(e,n):"mdxJsxFlowElement"===n.type||"mdxJsxTextElement"===n.type?(l=e,c=n,p=r,q=b=l.schema,"svg"===c.name&&"html"===b.space&&(l.schema=B),l.ancestors.push(c),P=null===c.name?l.Fragment:el(l,c.name,!0),O=function(e,n){let r={};for(let i of n.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&e.evaluater){let n=i.data.estree.body[0];t("ExpressionStatement"===n.type);let o=n.expression;t("ObjectExpression"===o.type);let s=o.properties[0];t("SpreadElement"===s.type),Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else ea(e,n.position);else{let o,s=i.name;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&e.evaluater){let n=i.value.data.estree.body[0];t("ExpressionStatement"===n.type),o=e.evaluater.evaluateExpression(n.expression)}else ea(e,n.position);else o=null===i.value||i.value;r[s]=o}return r}(l,c),I=es(l,c),ei(l,O,P,c),eo(O,I),l.ancestors.pop(),l.schema=b,l.create(c,P,O,p)):"mdxjsEsm"===n.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ea(e,t.position)}(e,n):"root"===n.type?(d=e,f=n,h=r,eo(R={},es(d,f)),d.create(f,d.Fragment,R,h)):"text"===n.type?n.value:void 0}function ei(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function es(e,t){let n=[],r=-1,i=e.passKeys?new Map:X;for(;++r<t.children.length;){let o,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let l=er(e,s,o);void 0!==l&&n.push(l)}return n}function el(e,n,r){let i;if(r)if(n.includes(".")){let e,r=n.split("."),o=-1;for(;++o<r.length;){let t=s(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}t(e,"always a result"),i=e}else i=s(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else i={type:"Literal",value:n};if("Literal"===i.type){let t=i.value;return Y.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);ea(e)}function ea(e,t){let n=new W("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=en+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eu(e){return"-"+e.toLowerCase()}let ec={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ep=e.i(391398);e.i(191788);let ed={};function ef(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eh(e.children,t,n)}return Array.isArray(e)?eh(e,t,n):""}function eh(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ef(e[i],t,n);return r.join("")}function em(e,t,n,r){let i,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function eg(e,t){return e.length>0?(em(e,e.length,0,t),e):t}let ey={}.hasOwnProperty,ev=eP(/[A-Za-z]/),e_=eP(/[\dA-Za-z]/),eb=eP(/[#-'*+\--9=?A-Z^-~]/);function ek(e){return null!==e&&(e<32||127===e)}let ex=eP(/\d/),ew=eP(/[\dA-Fa-f]/),eS=eP(/[!-/:-@[-`{-~]/);function eE(e){return null!==e&&e<-2}function eA(e){return null!==e&&(e<0||32===e)}function eC(e){return -2===e||-1===e||32===e}let eT=eP(/\p{P}|\p{S}/u),eq=eP(/\s/);function eP(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eO(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eC(r)?(e.enter(n),function r(s){return eC(s)&&o++<i?(e.consume(s),r):(e.exit(n),t(s))}(r)):t(r)}}let eI={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eE(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eR={tokenize:function(e){let t,n,r,i=this,o=[],s=0;return l;function l(t){if(s<o.length){let n=o[s];return i.containerState=n[1],e.attempt(n[0].continuation,a,u)(t)}return u(t)}function a(e){if(s++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(s);let l=r;
1for(;l<i.events.length;)i.events[l][1].end={...n},l++;return em(i.events,o+1,0,i.events.slice(r)),i.events.length=l,u(e)}return l(e)}function u(n){if(s===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(ej,c,p)(n)}function c(e){return t&&y(),g(s),d(e)}function p(e){return i.parser.lazy[i.now().line]=s!==o.length,r=i.now().offset,h(e)}function d(t){return i.containerState={},e.attempt(ej,f,h)(t)}function f(e){return s++,o.push([i.currentConstruct,i.containerState]),d(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eE(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,i.interrupt=void 0,l):(e.consume(n),t)}(r)}function m(e,o){let l=i.sliceStream(e);if(o&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let l=i.events.length,a=l;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(g(s),o=l;o<i.events.length;)i.events[o][1].end={...n},o++;em(i.events,a+1,0,i.events.slice(l)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ej={tokenize:function(e,t,n){return eO(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eN={partial:!0,tokenize:function(e,t,n){return function(t){return eC(t)?eO(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eE(e)?t(e):n(e)}}};class eD{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eL(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eL(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eL(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eL(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eL(this.left,t.reverse())}}}function eL(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ez(e){let t,n,r,i,o,s,l,a={},u=-1,c=new eD(e);for(;++u<c.length;){for(;u in a;)u=a[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],s=t-1,l=[],a=i._tokenizer;!a&&(a=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let u=a.events,c=[],p={},d=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++s)[1]!==f;);l.push(s),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&a.defineSki
1p(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),d=g.length;d--;){let t=u.slice(g[d],g[d+1]),n=l.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)p[h+c[d][0]]=h+c[d][1],h+=c[d][1]-c[d][0]-1;return p}(c,u)),u=a[u],l=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return em(e,0,1/0,c.slice(0)),!l}let e$={resolve:function(e){return ez(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eE(t)?e.check(eU,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,i,"linePrefix")};function i(i){if(null===i||eE(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eB={tokenize:function(e){let t=this,n=e.attempt(eN,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eO(e,e.attempt(this.parser.constructs.flow,r,e.attempt(e$,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eM={resolveAll:eJ()},eF=eH("string"),eV=eH("text");function eH(e){return{resolveAll:eJ("text"===e?eG:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return a(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),l)}function l(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),l)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eJ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eG(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),s=o.length,l=-1,a=0;for(;s--;){let e=o[s];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)a++,l--;if(l)break;l=-1}else if(-2===e)r=!0,a++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let o={type:n===e.length||r||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:i.start._bufferIndex+l,_index:i.start._index+s,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function eQ(e){return null===e||eA(e)||eq(e)?1:eT(e)?2:void 0}function eK(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let eW={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,l,a,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
1n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p={...e[n][1].end},d={...e[c][1].start};eY(p,-l),eY(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[c][1].start={...s.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=eg(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=eg(a,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),a=eg(a,eK(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=eg(a,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=eg(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,em(e,n-1,c-n+3,a),c=n+a.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=eQ(i);return function(s){return n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let a=e.exit("attentionSequence"),u=eQ(l),c=!u||2===u&&o||r.includes(l),p=!o||2===o&&u||r.includes(i);return a._open=!!(42===n?c:c&&(o||!p)),a._close=!!(42===n?p:p&&(u||!c)),t(l)}(s)}}};function eY(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eX={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eC(t)?eO(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eX,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eC(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},eZ={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eS(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e0=document.createElement("i");function e1(e){let t="&"+e+";";e0.innerHTML=t;let n=e0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e2={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=e_,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ew,u):(e.enter("characterReferenceValue"),r=7,i=ex,u(t))}function u(l){if(59===l&&s){let r=e.exit("characterReferenceValue");return i!==e_||e1(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&s++<r?(e.consume(l),u):n(l)}}},e4={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e3={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};
1function s(t){return e.enter("codeFencedFence"),eC(t)?eO(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=l?(e.exit("codeFencedFenceSequence"),eC(i)?eO(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eE(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,l=0;return function(t){var o;let u;return o=t,s=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l<3?n(i):(e.exit("codeFencedFenceSequence"),eC(i)?eO(e,a,"whitespace")(i):a(i))}(o)};function a(o){return null===o||eE(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(e4,c,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eE(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):eC(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eO(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eE(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eE(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,h,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return s>0&&eC(t)?eO(e,f,"linePrefix",s+1)(t):f(t)}function f(t){return null===t||eE(t)?e.check(e4,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eE(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},e5={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eO(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eE(n)?e.attempt(e6,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eE(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e6={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eO(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eE(e)?i(e):n(e)}}};function e9(e,t,n,r,i,o,s,l,a){let u=a||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),p):null===t||32===t||41===t||ek(t)?n(t):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function p(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||eE(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(i){return!c&&(null===i||41===i||eA(i))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||ek(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function e8(e,t,n,r,i,o){let s,l=this,a=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(p){return a>999||null===p||91===p||93===p&&!s||94===p&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):93===p?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):eE(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||eE(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!eC(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function e7(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,l):n(t)};function l(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),a(n))}function a(t){return t===s?(e.exit(o),l(s)):null===t?n(t):eE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eO(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||eE(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function te(e,t){let n;return function r(i){return eE(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eC(i)?eO(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tn={partial:!0,tokenize:function(e,t,n){return function(t){return eA(t)?te(e,r)(t):n(t)};function r(t){return e7(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eC(t)?eO(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eE(e)?t(e):n(e)}}},tr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ti=["pre","script","style","textarea"],to={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e
1N,t,n)}}},ts={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tl={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&em(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,l=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(i=s);let a={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return o=eg(o=[["enter",a,t],["enter",u,t]],e.slice(r+1,r+l+3)),o=eg(o,[["enter",c,t]]),o=eg(o,eK(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),o=eg(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=eg(o,e.slice(i+1)),o=eg(o,[["exit",a,t]]),em(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(tt(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(ta,u,i?u:c)(t):91===t?e.attempt(tu,u,i?a:c)(t):i?u(t):c(t)}function a(t){return e.attempt(tc,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},ta={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eA(t)?te(e,i)(t):i(t)}function i(t){return 41===t?u(t):e9(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eA(t)?te(e,l)(t):u(t)}function s(e){return n(e)}function l(t){return 34===t||39===t||40===t?e7(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function a(t){return eA(t)?te(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tu={tokenize:function(e,t,n){let r=this;return function(t){return e8.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tc={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tp={name:"labelStartImage",resolveAll:tl.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},td={name:"labelStartLink",resolveAll:tl.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tf={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eO(e,t,"linePrefix")}}},th={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var s;return e.enter("thematicBreak"),r=s=o,function o(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eC(n)?eO(e,o,"whitespace")(n):o(n))}(s)):i>=3&&(null===s||eE(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},tm={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eN,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eO(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eC(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
1=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ty,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eO(e,e.attempt(tm,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ex(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(th,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return ex(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eN,r.interrupt?n:a,e.attempt(tg,c,u))}
1function a(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eC(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tg={partial:!0,tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return!eC(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ty={partial:!0,tokenize:function(e,t,n){let r=this;return eO(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tv={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let l,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eC(n)?eO(e,o,"lineSuffix")(n):o(n))}(s)):n(t)};function o(r){return null===r||eE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,e8.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=tt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return eA(t)?te(e,l)(t):l(t)}function l(t){return e9(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(tn,u,u)(t)}function u(t){return eC(t)?eO(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eE(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},"disable",0,{null:[]},"document",0,{42:tm,43:tm,45:tm,48:tm,49:tm,50:tm,51:tm,52:tm,53:tm,54:tm,55:tm,56:tm,57:tm,62:eX},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},em(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eA(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eE(r)?(e.exit("atxHeading"),t(r)):eC(r)?eO(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eA(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:th,45:[tv,th],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,s,l,a=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),r=3,a.interrupt?t:I):ev(s)?(e.consume(s),o=String.fromCharCode(s),h):n(s)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,s=0,d):ev(i)?(e.consume(i),r=4,a.interrupt?t:I):n(i)}function p(r){return 45===r?(e.consume(r),a.interrupt?t:I):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?a.interrupt?t:S:d:n(r)}function f(t){return ev(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||eA(s)){let l=47===s,u=o.toLowerCase();return!l&&!i&&ti.includes(u)?(r=1,a.interrupt?t(s):S(s)):tr.includes(o.toLowerCase())?(r=6,l)?(e.consume(s),m):a.interrupt?t(s):S(s):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(s):i?function t(n){return eC(n)?(e.consume(n),t):x(n)}(s):g(s))}return 45===s||e_(s)?(e.consume(s),o+=String.fromCharCode(s),h):n(s)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||ev(t)?(e.consume(t),y):eC(t)?(e.consume(t),g):x(t)}function y(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),_):eC(t)?(e.consume(t),v):g(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,b):eC(t)?(e.consume(t),_):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eA(n)?v(n):(e.consume(n),t)}(t)}function b(t){return t===l?(e.consume(t),l=null,k):null===t||eE(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||eC(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||eE(t)?S(t):eC(t)?(e.consume(t),w):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),q):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),O):eE(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(to,j,E)(t)):null===t||eE(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(ts,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||eE(t)?E(t):(e.enter("htmlFlowData"),S(t))}function T(t){return 45===t?(e.consume(t),I):S(t)}function q(t){return 47===t?(e.consume(t),o="",P):S(t)}function P(t){if(62===t){let n=o.toLowerCase();return ti.includes(n)?(e.consume(t),R):S(t)}return ev(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):S(t)}function O(t){return 93===t?(e.consume(t),I):S(t)}function I(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),I):S(t)}function R(t){return null===t||eE(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},61:tv,95:th,96:e3,126:e3},"flowInitial",0,{[-2]:e5,[-1]:e5,32:e5},"insideSpan",0,{null:[eW,eM]},"string",0,{38:e2,92:eZ},"text",0,{[-5]:tf,[-4]:tf,[-3]:tf,33:tp,38:e2,42:eW,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ev(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||e_(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||e_(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ek(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),a):eb(t)?(e.consume(t),l):n(t)}function a(i){return e_(i)?function i(o){return 46===o?(e.consume(o),r=0,a):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||e_(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),b):63===t?(e.consume(t),v):ev(t)?(e.consume(t),x):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):ev(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):eE(t)?(o=c,P(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),d):c(t)}
1function d(e){return 62===e?q(e):45===e?p(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eE(t)?(o=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?q(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?q(t):eE(t)?(o=y,P(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),_):eE(t)?(o=v,P(t)):(e.consume(t),v)}function _(e){return 62===e?q(e):v(e)}function b(t){return ev(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||e_(t)?(e.consume(t),k):function t(n){return eE(n)?(o=t,P(n)):eC(n)?(e.consume(n),t):q(n)}(t)}function x(t){return 45===t||e_(t)?(e.consume(t),x):47===t||62===t||eA(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),q):58===t||95===t||ev(t)?(e.consume(t),S):eE(t)?(o=w,P(t)):eC(t)?(e.consume(t),w):q(t)}function S(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):eE(n)?(o=t,P(n)):eC(n)?(e.consume(n),t):w(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):eE(t)?(o=E,P(t)):eC(t)?(e.consume(t),E):(e.consume(t),C)}function A(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eE(t)?(o=A,P(t)):(e.consume(t),A)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eA(t)?w(t):(e.consume(t),C)}function T(e){return 47===e||62===e||eA(e)?w(e):n(e)}function q(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return eC(t)?eO(e,I,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:td,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eZ],93:tl,95:eW,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),s):96===a?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",l(s))}(a)):eE(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(a))}function l(t){return null===t||32===t||96===t||eE(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}}}}],823051);var t_=e.i(823051);let tb=/[\0\t\n\r]/g;function tk(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tw(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tk(n.slice(t?2:1),t?16:10)}return e1(n)||e}let tS={}.hasOwnProperty;function tE(e){return{line:e.line,column:e.column,offset:e.offset}}function tA(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end}
1)+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function tC(e){let t=this;t.parser=function(n){var r,i;let o,s,l,a;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tk(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e1(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tE(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tx,tw),n.identifier=tt(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tE(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
1ype)&&(u.call(this,e),c.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tS.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},s={stack:[r],tokenStack:[],config:t,enter:o,exit:l,buffer:i,resume:a,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,s,l=t-1,a=-1,u=!1;for(;++l<=n;){let t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||a||o||(o=l),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=l;for(i=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(l,0,["enter",i,t[2]]),l++,n++,o=void 0,s=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tS.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},s),e[c][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||tA).call(s,void 0,e[0])}for(r.position={start:tE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tE(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tA).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): itâs not open");n.position.end=tE(e.end)}function a(){var e;return e=this.stack.pop(),ef(e,"boolean"!=typeof ed.includeImageAlt||ed.includeImageAlt,"boolean"!=typeof ed.includeHtml||ed.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tE(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tE(e.end)}function p(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!ez(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ey.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ey.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);em(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([t_,...(e||{}).extensions||[]]),content:n(eI),defined:[],document:n(eR),flow:n(eB),lazy:{},string:n(eF),text:n(eV)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
1olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],s=[],l=[],a={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){eE(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,s=e[r];if("string"==typeof s)o=s;else switch(s){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(s)}n=-2===s,i.push(o)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(s=eg(s,e),function(){let e;for(;r._index<s.length;){let n=s[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==s[s.length-1])?[]:(m(t,0),u.events=eK(o,u.events,u),u.events)}},c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,s)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e,t){t.restore()}function h(e,t){return function(n,i,o){var s;let c,p,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,p=0,0===e.length)?o:y(e[p])}function y(e){return function(n){let i,o,s,c,p;return(i=d(),o=u.previous,s=u.currentConstruct,c=u.events.length,p=Array.from(l),h={from:c,restore:function(){r=i,u.previous=o,u.currentConstruct=s,u.events.length=c,l=p,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?_(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,v,_)(n)}}function v(t){return e(f,h),i}function _(e){return(h.restore(),++p<c.length)?y(c[p]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&em(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((s=1,l="",a=!0,function(e,t,n){let r,i,u,c,p,d=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,l="",a&&(65279===e.charCodeAt(0)&&u++,a=void 0);u<e.length;){if(tb.lastIndex=u,c=(r=tb.exec(e))&&void 0!==r.index?r.index:e.length,p=e.charCodeAt(c),!r){l=e.slice(u);break}if(10===p&&u===c&&o)d.push(-3),o=void 0;else switch(o&&(d.push(-5),o=void 0),u<c&&(d.push(e.slice(u,c)),s+=c-u),p){case 0:d.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),d.push(-2);s++<i;)d.push(-1);break;case 10:d.push(-4),s=1;break;default:o=!0,s=1}u=c+1}return n&&(o&&d.push(-5),l&&d.push(l),d.push(null)),d})(n,r,!0))))}}let{defineProperty:tT}=Object,tq="object"==typeof self?self:globalThis,tP=(e,t)=>
1{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new tq[e](t)},tO=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,s]=e[i];switch(o){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s){let i=r(t),o=r(n);"__proto__"===i?tT(e,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):e[i]=o}return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n("function"==typeof tq[e]?tP(e,t):Error(t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}case"-0":return -0}return n(tP(o,s),i)})(0)},{toString:tI}={},{keys:tR,is:tj}=Object,tN=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tI.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},tD=([e,t])=>0===e&&("function"===t||"symbol"===t),tL=(e,{json:t,lossy:n}={})=>{var r,i,o;let s,l,a=[];return(r=!(t||n),i=!!t,o=new Map,s=(e,t)=>{let n=a.push(e)-1;return o.set(t,n),n},l=e=>{if(o.has(e))return o.get(e);let[t,n]=tN(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"number":if(!e&&tj(e,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return s([-1],e)}return s([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],i=s([t,r],e);for(let t of e)r.push(l(t));return i}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(i&&"toJSON"in e)return l(e.toJSON());let o=[],a=s([t,o],e);for(let t of tR(e))(r||!tD(tN(e[t])))&&o.push([l(t),l(e[t])]);return a}case 3:return s([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],i=s([t,n],e);for(let[t,i]of e)(r||!(tD(tN(t))||tD(tN(i))))&&n.push([l(t),l(i)]);return i}case 6:{let n=[],i=s([t,n],e);for(let t of e)(r||!tD(tN(t)))&&n.push(l(t));return i}}let{message:u}=e;return s([t,{name:n,message:u}],e)})(e),a},tz="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tO(tL(e,t)):structuredClone(e):(e,t)=>tO(tL(e,t));function t$(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),s="";if(37===o&&e_(e.charCodeAt(n+1))&&e_(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tU(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tM=function(e){var t,n;if(null==e)return tV;if("function"==typeof e)return tF(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tM(e[n]);return tF(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tF(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tF(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tF(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tV(){return!0}let tH=[];function tJ(e,t,n,r){var i,o,s;let l,a,u,c,p,d;"function"==typeof t&&"function"!=typeof n?(a=void 0,u=t,l=n):(a=t,u=n,l=r),i=a,o=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return u(e,r,n)},s=l,"function"==typeof i&&"function"!=typeof o?(s=o,o=i):c=i,p=tM(c),d=s?-1:1,(function e(t,n,r){let l=t&&"object"==typeof t?t:{};if("string"==typeof l.type){let e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(a,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return a;function a(){var l;let a,u,c,f=tH;if((!i||p(t,n,r[r.length-1]||void 0))&&!1===(f=Array.isArray(l=o(t,r))?l:"number"==typeof l?[!0,l]:null==l?tH:[l])[0])return f;if("children"in t&&t.children&&t.children&&"skip"!==f[0])for(u=(s?t.children.length:-1)+d,c=r.concat(t);u>-1&&u<t.children.length;){if(!1===(a=e(t.children[u],u,c)())[0])return a;u="number"==typeof a[1]?a[1]:u+d}return f}})(e,void 0,[])()}function tG(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function tQ(e){let t=e.spread;return null==t?e.children.length>1:t}function tK(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tW={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
1,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=t$(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,l+=1,e.footnoteCounts.set(i,l);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:t$(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:t$(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:t$(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:t$(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tQ(n[r])}return t}(n):tQ(t),o={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let e=r[l];(i||0!==l||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let a=r[r.length-1];a&&(i||"element"!==a.type||"p"!==a.tagName)&&s.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=V(t.children[1]),s=F(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
1,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,a=[];for(;++l<s;){let n=t.children[l],r={},s=o?o[l]:void 0;s&&(r.align=s);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),a.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(tK(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tK(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tY,yaml:tY,definition:tY,footnoteDefinition:tY};function tY(){}let tX={}.hasOwnProperty,tZ={};function t0(e,t){e.position&&(t.position=function(e){let t=V(e),n=F(e);if(t&&n)return{start:t,end:n}}(e))}function t1(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tz(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t2(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function t4(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function t3(e,n){let r,i,o,s,l=(r=n||tZ,i=new Map,o=new Map,s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=t4(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=t4(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t1,definitionById:i,footnoteById:o,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tW,...r.handlers},one:function(e,t){let n=e.type,r=s.handlers[n];if(tX.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tz(n);return r.children=s.all(e),r}return tz(e)}return(s.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(tX.call(n,"hProperties")||tX.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(s,e,t)},options:r,patch:t0,wrap:t2},tJ(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s),a=l.one(e,void 0),u=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tU,r=e.options.footnoteBackLabel||tB,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],a=-1;for(;++a<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[a]);if(!i)continue;let o=e.all(i),s=String(i.identifier).toUpperCase(),u=t$(s.toLowerCase()),c=0,p=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++c<=d;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,c);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...p)}else o.push(...p);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tz(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(l),c=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&(t("children"in c),c.children.push({type:"text",value:"\n"},u)),c}function t5(e,t){return e&&"run"in e?async function(n,r){let i=t3(n,{file:r,...t});await e.run(i,r)}:function(n,r){return t3(n,{file:r,...e||t})}}function t6(e){if(e)throw e}var t9=e.i(687283);function t8(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let t7=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nr(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,l=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(i=o):(l=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},ne=function(e){let t;if(nr(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nt=function(e){let t;nr(e);let n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1)}return o<0||r<0||0===s||1===s&&o===r-1&&o===i+1?"":e.slice(o,r)},nn=function(...e){var t;let n,r,i,o=-1;for(;++o<e.length;
1)nr(e[o]),e[o]&&(i=void 0===i?e[o]:i+"/"+e[o]);return void 0===i?".":(nr(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",o=0,s=-1,l=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else if(47===n)break;else n=47;if(47===n){if(s===a-1||1===l);else if(s!==a-1&&2===l){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=a,l=0;continue}}else if(i.length>0){i="",o=0,s=a,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),o=a-s-1;s=a,l=0}else 46===n&&l>-1?l++:l=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nr(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function ni(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let no=["history","path","basename","stem","extname","dirname"];class ns{constructor(e){let t,n;t=e?ni(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<no.length;){const e=no[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)no.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?t7(this.path):void 0}set basename(e){na(e,"basename"),nl(e,"basename"),this.path=nn(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ne(this.path):void 0}set dirname(e){nu(this.basename,"dirname"),this.path=nn(e||"",this.basename)}get extname(){return"string"==typeof this.path?nt(this.path):void 0}set extname(e){if(nl(e,"extname"),nu(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nn(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ni(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ni(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),na(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?t7(this.path,this.extname):void 0}set stem(e){na(e,"stem"),nl(e,"stem"),this.path=nn(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new W(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nl(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function na(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nu(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nc=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},np={}.hasOwnProperty;class nd extends nc{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...s){let l=e[++n],a=-1;if(o)return void r(o);for(;++a<t.length;)(null===s[a]||void 0===s[a])&&(s[a]=t[a]);t=s,l?(function(e,t){let n;return function(...t){let o,s=e.length>t.length;
1s&&t.push(r);try{o=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nd,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,t9.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(ng("data",this.frozen),this.namespace[e]=t,this):np.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ng("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=n_(e),n=this.parser||this.Parser;return nh("parse",n),n(String(t),t)}process(e,n){let r=this;return this.freeze(),nh("process",this.parser||this.Parser),nm("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(i,o){let s=n_(e),l=r.parse(s);function a(e,r){e||!r?o(e):i?i(r):(t(n,"`done` is defined if `resolve` is not"),n(void 0,r))}r.run(l,s,function(e,t,n){var i,o;if(e||!t||!n)return a(e);let s=r.stringify(t,n);"string"==typeof(i=s)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?n.value=s:n.result=s,a(e,n)})}}processSync(e){let n,r=!1;return this.freeze(),nh("processSync",this.parser||this.Parser),nm("processSync",this.compiler||this.Compiler),this.process(e,function(e,t){r=!0,t6(e),n=t}),nv("processSync","process",r),t(n,"we either bailed on an error or have a tree"),n}run(e,n,r){ny(e),this.freeze();let i=this.transformers;return r||"function"!=typeof n||(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(o,s){t("function"!=typeof n,"`file` canât be a `done` anymore, we checked");let l=n_(n);i.run(e,l,function(n,i,l){let a=i||e;n?s(n):o?o(a):(t(r,"`done` is defined if `resolve` is not"),r(void 0,a,l))})}}runSync(e,n){let r,i=!1;return this.run(e,n,function(e,t){t6(e),r=t,i=!0}),nv("runSync","run",i),t(r,"we either bailed on an error or have a tree"),r}stringify(e,t){this.freeze();let n=n_(t),r=this.compiler||this.Compiler;return nm("stringify",r),ny(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ng("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,t9.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)s(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,s=n[i][1];t8(s)&&t8(r)&&(r=(0,t9.default)(!0,s,r)),n[i]=[e,r,...o]}}}}let nf=new nd().freeze();function nh(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nm(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ng(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ny(e){if(!t8(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nv(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n_(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new ns(e)}let nb=[],nk={allowDangerousHtml:!0},nx=/^(https?|ircs?|mailto|xmpp)$/i,nw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nS(e){var t;let r,i,o,s,l,a=(r=(t=e).rehypePlugins||nb,i=t.remarkPlugins||nb,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nk}:nk,nf().use(tC).use(i).use(t5,o).use(r)),u=(s=e.children||"",l=new ns,"string"==typeof s?l.value=s:n("Unexpected value `"+s+"` for `children` prop, expected `string`"),l);return function(e,t){let r=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nE;for(let e of nw)Object.hasOwn(t,e.from)&&n("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&s&&n("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),tJ(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return l?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ec)if(Object.hasOwn(ec,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ec[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&i&&"number"==typeof t&&(o=!i(e,t,n)),o&&n&&"number"==typeof t)return a&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=l,r=t.jsxDEV,s=function(e,t,i,o){let s=Array.isArray(i.children),l=V(e);return r(t,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:n,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?o:i;return r?s(t,n,r):s(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?B:U,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=er(a,e,void 0);return u&&"string"!=typeof u?u:a.create(e,a.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ep.Fragment,components:o,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(u),u),e)}function nE(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nx.test(e.slice(0,t))?e:""}e.s(["default",()=>nS],407654)}]);
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.