(()=>{"use strict";var e={8396(e,t,n){var r=n(456),o=n(2958);const i=(0,r.q6)(void 0);n.d(t,["N",0,e=>{const t=(0,r.To)(()=>(0,o.$)(e.config));return(0,r.a0)(i.Provider,{value:()=>t(),get children(){return e.children}})},"_",0,()=>{const e=(0,r.NT)(i);if(!e)throw new Error("Cannot useConfiguration() outside of ConfigurationContext");return e}])},2958(e,t,n){n.d(t,{j:()=>T,$:()=>M});const r={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function o(e){var t,n,o;return e?{lang:null!==(t=null==e?void 0:e.lang)&&void 0!==t?t:void 0,message:null==e?void 0:e.message,abortEarly:null!==(n=null==e?void 0:e.abortEarly)&&void 0!==n?n:void 0,abortPipeEarly:null!==(o=null==e?void 0:e.abortPipeEarly)&&void 0!==o?o:void 0}:r}function i(e){var t;return null===(t=void 0)||void 0===t?void 0:t.get(e)}function l(e){var t;return null===(t=void 0)||void 0===t?void 0:t.get(e)}function a(e,t){var n;return null===(n=void 0)||void 0===n||null===(n=n.get(e))||void 0===n?void 0:n.get(t)}function s(e){var t,n;const r=typeof e;return"string"===r?'"'.concat(e,'"'):"number"===r||"bigint"===r||"boolean"===r?"".concat(e):"object"===r||"function"===r?null!==(t=e&&(null===(n=Object.getPrototypeOf(e))||void 0===n||null===(n=n.constructor)||void 0===n?void 0:n.name))&&void 0!==t?t:"null":r}function u(e,t,n,r,o){var u,c,d,f,h,p,v,g;const y=o&&"input"in o?o.input:n.value,m=null!==(u=null!==(c=null==o?void 0:o.expected)&&void 0!==c?c:e.expects)&&void 0!==u?u:null,b=null!==(d=null==o?void 0:o.received)&&void 0!==d?d:s(y),w={kind:e.kind,type:e.type,input:y,expected:m,received:b,message:"Invalid ".concat(t,": ").concat(m?"Expected ".concat(m," but r"):"R","eceived ").concat(b),requirement:e.requirement,path:null==o?void 0:o.path,issues:null==o?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},A="schema"===e.kind,S=null!==(f=null!==(h=null!==(p=null!==(v=null!==(g=null==o?void 0:o.message)&&void 0!==g?g:e.message)&&void 0!==v?v:a(e.reference,w.lang))&&void 0!==p?p:A?l(w.lang):null)&&void 0!==h?h:r.message)&&void 0!==f?f:i(w.lang);void 0!==S&&(w.message="function"==typeof S?S(w):S),A&&(n.typed=!1),n.issues?n.issues.push(w):n.issues=[w]}const c=new WeakMap;function d(e){let t=c.get(e);return t||(t={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},o())},c.set(e,t)),t}function f(e,t){var n;const r=[...new Set(e)];return r.length>1?"(".concat(r.join(" ".concat(t," ")),")"):null!==(n=r[0])&&void 0!==n?n:"never"}var h=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function p(e,t){return{kind:"validation",type:"max_value",reference:p,async:!1,expects:"<=".concat(e instanceof Date?e.toJSON():s(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value<=this.requirement||u(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():s(e.value)}),e}}}function v(e,t){return{kind:"validation",type:"min_value",reference:v,async:!1,expects:">=".concat(e instanceof Date?e.toJSON():s(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value>=this.requirement||u(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():s(e.value)}),e}}}function g(e,t,n){return"function"==typeof e.fallback?e.fallback(t,n):e.fallback}function y(e,t){return{...e,fallback:t,get"~standard"(){return d(this)},"~run"(t,n){const r=e["~run"](t,n);return r.issues?{typed:!0,value:g(this,r,n)}:r}}}function m(e,t,n){return"function"==typeof e.default?e.default(t,n):e.default}function b(e){return{kind:"schema",type:"boolean",reference:b,expects:"boolean",async:!1,message:e,get"~standard"(){return d(this)},"~run"(e,t){return"boolean"==typeof e.value?e.typed=!0:u(this,"type",e,t),e}}}function w(e,t){const n=[];for(const t in e)"".concat(+t)===t&&"string"==typeof e[t]&&Object.is(e[e[t]],+t)||n.push(e[t]);return{kind:"schema",type:"enum",reference:w,expects:f(n.map(s),"|"),async:!1,enum:e,options:n,message:t,get"~standard"(){return d(this)},"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:u(this,"type",e,t),e}}}function A(e){return{kind:"schema",type:"number",reference:A,expects:"number",async:!1,message:e,get"~standard"(){return d(this)},"~run"(e,t){return"number"!=typeof e.value||isNaN(e.value)?u(this,"type",e,t):e.typed=!0,e}}}function S(e,t){return{kind:"schema",type:"object",reference:S,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return d(this)},"~run"(e,t){const n=e.value;if(n&&"object"==typeof n){e.typed=!0,e.value={};for(const o in this.entries){const i=this.entries[o];if(o in n||("exact_optional"===i.type||"optional"===i.type||"nullish"===i.type)&&void 0!==i.default){const l=o in n?n[o]:m(i),a=i["~run"]({value:l},t);if(a.issues){const i={type:"object",origin:"value",input:n,key:o,value:l};for(const t of a.issues){var r;t.path?t.path.unshift(i):t.path=[i],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value[o]=a.value}else if(void 0!==i.fallback)e.value[o]=g(i);else if("exact_optional"!==i.type&&"optional"!==i.type&&"nullish"!==i.type&&(u(this,"key",e,t,{input:void 0,expected:'"'.concat(o,'"'),path:[{type:"object",origin:"key",input:n,key:o,value:n[o]}]}),t.abortEarly))break}}else u(this,"type",e,t);return e}}}function E(e,t){return{kind:"schema",type:"optional",reference:E,expects:"(".concat(e.expects," | undefined)"),async:!1,wrapped:e,default:t,get"~standard"(){return d(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=m(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function k(e){return{kind:"schema",type:"string",reference:k,expects:"string",async:!1,message:e,get"~standard"(){return d(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:u(this,"type",e,t),e}}}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{...t[0],pipe:t,get"~standard"(){return d(this)},"~run"(e,n){for(const r of t)if("metadata"!==r.kind){if(e.issues&&("schema"===r.kind||"transformation"===r.kind)){e.typed=!1;break}e.issues&&(n.abortEarly||n.abortPipeEarly)||(e=r["~run"](e,n))}return e}}}var O=n(7122);const P=(e,t)=>x(A(),v(e),p(t)),C=/^(\d+)\s* \s*(\d*(?:\.\d+)?%)\s* \s*(\d*(?:\.\d+)?%)$/;let T=function(e){return e.MEMORY="MEMORY",e.DEFAULT="DEFAULT",e}({});const j=function e(t,n){return{kind:"schema",type:"custom",reference:e,expects:"unknown",async:!1,check:t,message:n,get"~standard"(){return d(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:u(this,"type",e,t),e}}}(e=>void 0===e||"string"==typeof e&&C.test(e)),L=S({appId:k(),apiUrl:k(),watermark:y(b(),!0),placeholderText:y(k(),"Искать на сайте"),disableLinks:y(b(),!1),disableImages:y(b(),!1),currency:y(w(O.S),O.S.RUB),disablePrices:y(b(),!1),router:y(S({mode:y(w(T),T.MEMORY)}),{mode:T.MEMORY}),theme:y(E(S({primaryColor:y(E(j),void 0),textColor:y(E(j),void 0),textSize:y(x(A(),v(12),p(24)),16)})),void 0),displayParams:y(function e(t,n){return{kind:"schema",type:"array",reference:e,expects:"Array",async:!1,item:t,message:n,get"~standard"(){return d(this)},"~run"(e,t){const n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let o=0;o<n.length;o++){const i=n[o],l=this.item["~run"]({value:i},t);if(l.issues){const a={type:"array",origin:"value",input:n,key:o,value:i};for(const t of l.issues){var r;t.path?t.path.unshift(a):t.path=[a],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=l.issues),t.abortEarly){e.typed=!1;break}}l.typed||(e.typed=!1),e.value.push(l.value)}}else u(this,"type",e,t);return e}}}(S({name:k()})),[]),displayOfferCounter:y(b(),!0),displayUnits:y(b(),!0),displayCloseButton:y(b(),!1),history:y(S({enabled:y(b(),!0),maxItems:y(P(0,10),5)}),{enabled:!0,maxItems:5}),catalog:y(S({enabled:y(b(),!1),facetedSearch:y(S({enabled:y(b(),!1)}),{enabled:!1}),pagination:y(S({enabled:y(b(),!0),perPage:y(P(0,50),20)}),{enabled:!0,perPage:20})}),{enabled:!1,pagination:{enabled:!0,perPage:20},facetedSearch:{enabled:!1}})});function M(e){try{return function(e,t,n){const r=e["~run"]({value:t},o(n));if(r.issues)throw new h(r.issues);return r.value}(L,e)}catch(e){throw new Error("Cannot validate widget config",{cause:e})}}},6008(e,t,n){n.d(t,["E",0,"poisk-dev-search-bar","q",0,"[data-poisk-dev-host]"])},2624(e,t,n){const r=console;n.d(t,["v",0,r])},1931(e,t,n){var r=n(90);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,["p",0,()=>{const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,r.ok)(),2),t=e[0],n=e[1];return[t,(e,t)=>n(e,t)]}])},7122(e,t,n){n.d(t,{S:()=>r});let r=function(e){return e.RUB="RUB",e.USD="USD",e.EUR="EUR",e.KZT="KZT",e}({})},90(e,t,n){n.d(t,{Ix:()=>Q,fS:()=>G});var r=n(2262),o=n(456);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(){let e=new Set,t=!1;return{subscribe:function(t){return e.add(t),()=>e.delete(t)},confirm:function(n,r){if(t)return!(t=!1);const o={to:n,options:r,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const i of e)i.listener({...o,from:i.location,retry:e=>{e&&(t=!0),i.navigate(n,{...r,resolve:!1})}});return!o.defaultPrevented}}}let s;function u(){window.history.state&&null!=window.history.state._depth||window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),s=window.history.state._depth}u();const c=/^(?:[a-z0-9]+:)?\/\//i,d=/^\/+|(\/)\/+$/g,f="http://sr";function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.replace(d,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function p(e,t,n){if(c.test(t))return;const r=h(e),o=n&&h(n);let i="";return i=!o||t.startsWith("/")?r:0!==o.toLowerCase().indexOf(r.toLowerCase())?r+o:o,(i||"/")+h(t,!i)}function v(e,t){return h(e).replace(/\/*(\*.*)?$/g,"")+h(t)}function g(e){const t={};return e.searchParams.forEach((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e}),t}function y(e,t,n){const r=i(e.split("/*",2),2),o=r[0],l=r[1],a=o.split("/").filter(Boolean),s=a.length;return e=>{const r=e.split("/").filter(Boolean),o=r.length-s;if(o<0||o>0&&void 0===l&&!t)return null;const i={path:s?"":"/",params:{}},u=e=>void 0===n?void 0:n[e];for(let e=0;e<s;e++){const t=a[e],n=":"===t[0],o=n?r[e]:r[e].toLowerCase(),l=n?t.slice(1):t.toLowerCase();if(n&&m(o,u(l)))i.params[l]=o;else if(n||!m(o,l))return null;i.path+="/".concat(o)}if(l){const e=o?r.slice(-o).join("/"):"";if(!m(e,u(l)))return null;i.params[l]=e}return i}}function m(e,t){const n=t=>t===e;return void 0===t||("string"==typeof t?n(t):"function"==typeof t?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e))}function b(e){const t=i(e.pattern.split("/*",2),2),n=t[0],r=t[1],o=n.split("/").filter(Boolean);return o.reduce((e,t)=>e+(t.startsWith(":")?2:3),o.length-(void 0===r?0:1))}function w(e){const t=new Map,n=(0,o.QQ)();return new Proxy({},{get:(r,i)=>(t.has(i)||(0,o.vP)(n,()=>t.set(i,(0,o.To)(()=>e()[i]))),t.get(i)()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),ownKeys:()=>Reflect.ownKeys(e())})}function A(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const o=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)o.push(n+=t[1]),r=r.slice(t[0].length);return A(r).reduce((e,t)=>[...e,...o.map(e=>e+t)],[])}const S=(0,o.q6)(),E=(0,o.q6)(),k=()=>function(e){if(null==e)throw new Error("<A> and 'use' router primitives can be only used inside a Route.");return e}((0,o.NT)(S)),x=()=>k().navigatorFactory();function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.component,r=e.preload,o=e.load,i=e.children,l=e.info,a=!i||Array.isArray(i)&&!i.length,s={key:e,component:n,preload:r||o,info:l};return C(e.path).reduce((n,r)=>{for(const o of A(r)){const i=v(t,o);let l=a?i:i.split("/*",1)[0];l=l.split("/").map(e=>e.startsWith(":")||e.startsWith("*")?e:encodeURIComponent(e)).join("/"),n.push({...s,originalPath:r,pattern:l,matcher:y(l,!a,e.matchFilters)})}return n},[])}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{routes:e,score:1e4*b(e[e.length-1])-t,matcher(t){const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r],i=o.matcher(t);if(!i)return null;n.unshift({...i,route:o})}return n}}}function C(e){return Array.isArray(e)?e:[e]}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=C(e);for(let e=0,i=o.length;e<i;e++){const i=o[e];if(i&&"object"==typeof i){i.hasOwnProperty("path")||(i.path="");const e=O(i,t);for(const t of e){n.push(t);const e=Array.isArray(i.children)&&0===i.children.length;if(i.children&&!e)T(i.children,t.pattern,n,r);else{const e=P([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function j(e,t){for(let n=0,r=e.length;n<r;n++){const r=e[n].matcher(t);if(r)return r}return[]}let L;function M(){return L}let I=!1;function R(){return I}function N(e){I=e}function $(e,t,n,r){const i=e.base,l=e.location,a=e.params,s=r().route,u=s.pattern,c=s.component,d=s.preload,f=(0,o.To)(()=>r().path);c&&c.preload&&c.preload(),I=!0;const h=d?d({params:a,location:l,intent:L||"initial"}):void 0;return I=!1,{parent:t,pattern:u,path:f,outlet:()=>c?(0,o.a0)(c,{params:a,location:l,data:h,get children(){return n()}}):n(),resolvePath:e=>p(i.path(),e,f())}}const D=e=>t=>{const n=t.base,l=(0,o.Y_)(()=>t.children),s=(0,o.To)(()=>T(l(),t.base||""));let u;const c=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=i(e.signal,2),s=l[0],u=l[1],c=e.utils,d=void 0===c?{}:c,h=d.parsePath||(e=>e),v=d.renderPath||(e=>e),y=d.beforeLeave||a(),m=p("",r.base||"");if(void 0===m)throw new Error("".concat(m," is not a valid base path"));m&&!s().value&&u({value:m,replace:!0,scroll:!1});const b=i((0,o.n5)(!1),2),A=b[0],S=b[1];let k;const x=(e,t)=>{t.value===P()&&t.state===M()||(void 0===k&&S(!0),L=e,k=t,(0,o.KQ)(()=>{k===t&&(C(k.value),R(k.state),(0,o.Sc)(),D[1](e=>e.filter(e=>e.pending)))}).finally(()=>{k===t&&(0,o.vA)(()=>{L=void 0,"navigate"===e&&function(e){const t=$[0];t&&(u({...e,replace:t.replace,scroll:t.scroll}),$.length=0)}(k),S(!1),k=void 0})}))},O=i((0,o.n5)(s().value),2),P=O[0],C=O[1],T=i((0,o.n5)(s().state),2),M=T[0],R=T[1],N=function(e,t,n){const r=new URL(f),i=(0,o.To)(t=>{const n=e();try{return new URL(n,r)}catch(e){return console.error("Invalid path ".concat(n)),t}},r,{equals:(e,t)=>e.href===t.href}),l=(0,o.To)(()=>i().pathname),a=(0,o.To)(()=>i().search,!0),s=(0,o.To)(()=>i().hash),u=(0,o.on)(a,()=>g(i()));return{get pathname(){return l()},get search(){return a()},get hash(){return s()},get state(){return t()},get key(){return""},query:n?n(u):w(u)}}(P,M,d.queryWrapper),$=[],D=(0,o.n5)([]),U=(0,o.To)(()=>"function"==typeof r.transformUrl?j(t(),r.transformUrl(N.pathname)):j(t(),N.pathname)),q=()=>{const e=U(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},F=d.paramsWrapper?d.paramsWrapper(q,t):w(q),_={pattern:m,path:()=>m,outlet:()=>null,resolvePath:e=>p(m,e)};return(0,o.gb)((0,o.on)(s,e=>x("native",e),{defer:!0})),{base:_,location:N,params:F,isRouting:A,renderPath:v,parsePath:h,navigatorFactory:function(e){return e=e||(0,o.NT)(E)||_,(t,n)=>function(e,t,n){(0,o.vz)(()=>{if("number"==typeof t)return void(t&&(d.go?d.go(t):console.warn("Router integration does not support relative routing")));const r=!t||"?"===t[0],o={replace:!1,resolve:!r,scroll:!0,...n},i=o.replace,l=o.resolve,a=o.scroll,s=o.state,u=l?e.resolvePath(t):p(r&&N.pathname||"",t);if(void 0===u)throw new Error("Path '".concat(t,"' is not a routable path"));if($.length>=100)throw new Error("Too many redirects");const c=P();u===c&&s===M()||y.confirm(u,n)&&($.push({value:c,replace:i,scroll:a,state:M()}),x("navigate",{value:u,state:s}))})}(e,t,n)},matches:U,beforeLeave:y,preloadRoute:function(e,r){const i=j(t(),e.pathname),l=L;L="preload";for(let t in i){const l=i[t],a=l.route,s=l.params;a.component&&a.component.preload&&a.component.preload();const u=a.preload;I=!0,r&&u&&(0,o.vP)(n(),()=>u({params:s,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:g(e),state:null,key:""},intent:"preload"})),I=!1}L=l},singleFlight:void 0===r.singleFlight||r.singleFlight,submissions:D}}(e,s,()=>u,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(c),(0,o.a0)(S.Provider,{value:c,get children(){return(0,o.a0)(U,{routerState:c,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[(0,r.ph)(()=>(u=(0,o.QQ)())&&null),(0,o.a0)(q,{routerState:c,get branches(){return s()}})]}})}})};function U(e){const t=e.routerState.location,n=e.routerState.params,r=(0,o.To)(()=>e.preload&&(0,o.vz)(()=>{N(!0),e.preload({params:n,location:t,intent:M()||"initial"}),N(!1)}));return(0,o.a0)(o.wv,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>(0,o.a0)(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function q(e){const t=[];let n;const r=(0,o.To)((0,o.on)(e.routerState.matches,(i,l,a)=>{let s=l&&i.length===l.length;const u=[];for(let n=0,c=i.length;n<c;n++){const c=l&&l[n],d=i[n];a&&c&&d.route.key===c.route.key?u[n]=a[n]:(s=!1,t[n]&&t[n](),(0,o.Hr)(o=>{t[n]=o,u[n]=$(e.routerState,u[n-1]||e.routerState.base,F(()=>r()[n+1]),()=>e.routerState.matches()[n])}))}return t.splice(i.length).forEach(e=>e()),a&&s?a:(n=u[0],u)}));return F(()=>r()&&n)()}const F=e=>()=>(0,o.a0)(o.wv,{get when(){return e()},keyed:!0,children:e=>(0,o.a0)(E.Provider,{value:e,get children(){return e.outlet()}})});function _(e){let t=!1;const n=e=>"string"==typeof e?{value:e}:e,r=function(e,t,n){let r=i(e,2),o=r[0],l=r[1];return[o,n?e=>l(n(e)):l]}((0,o.n5)(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),0,n=>(!t&&e.set(n),o.sE.registry&&!o.sE.done&&(o.sE.done=!0),n));return e.init&&(0,o.Ki)(e.init(function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.get();t=!0,r[1](n(o)),t=!1})),D({signal:r,create:e.create,utils:e.utils})}function B(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}let V=new Map;function K(){return V}function H(e,t){e.GET&&(e=e.GET);const n=function(){const n=K(),r=M(),i=R(),l=(0,o.QQ)()?x():void 0,a=Date.now();for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];const d=t+z(u);let f,h,p=n.get(d);if((0,o.ZR)()&&(f=!0,(0,o.Ki)(()=>p[4].count--)),p&&p[0]&&("native"===r||p[4].count||Date.now()-p[0]<5e3)){f&&(p[4].count++,p[4][0]()),"preload"===p[3]&&"preload"!==r&&(p[0]=a);let e=p[1];return"preload"!==r&&(e="then"in p[1]?p[1].then(v(!1),v(!0)):v(!1)(p[1]),"navigate"===r&&(0,o.KQ)(()=>p[4][1](p[0]))),i&&"then"in e&&e.catch(()=>{}),e}return o.sE.has&&o.sE.has(d)?(h=o.sE.load(d),delete globalThis._$HY.r[d]):h=e(...u),p?(p[0]=a,p[1]=h,p[3]=r,"navigate"===r&&(0,o.KQ)(()=>p[4][1](p[0]))):(n.set(d,p=[a,h,,r,(0,o.n5)(a)]),p[4].count=0),f&&(p[4].count++,p[4][0]()),"preload"!==r&&(h="then"in h?h.then(v(!1),v(!0)):v(!1)(h)),i&&"then"in h&&h.catch(()=>{}),h;function v(e){return async t=>{if(t instanceof Response){const e=t.headers.get("Location");if(null!==e)return void(l&&e.startsWith("/")?(0,o.KQ)(()=>{l(e,{replace:!0})}):window.location.href=e);t.customBody&&(t=await t.customBody())}if(e)throw t;return p[2]=t,t}}};return n.keyFor=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t+z(n)},n.key=t,n}function z(e){return JSON.stringify(e,(e,t)=>function(e){let t;return null!=e&&"object"==typeof e&&(!(t=Object.getPrototypeOf(e))||t===Object.prototype)}(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}setInterval(()=>{const e=Date.now();for(let n of V.entries()){var t=i(n,2);let r=t[0],o=t[1];!o[4].count&&e-o[0]>18e4&&V.delete(r)}},3e5),H.get=e=>K().get(e)[2],H.set=(e,t)=>{const n=K(),r=Date.now();let i=n.get(e);i?(i[0]=r,i[1]=Promise.resolve(t),i[2]=t,i[3]="preload"):(n.set(e,i=[r,Promise.resolve(t),t,"preload",(0,o.n5)(r)]),i[4].count=0)},H.delete=e=>K().delete(e),H.clear=()=>K().clear();const Y=new Map;function W(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/_server",l=arguments.length>3?arguments[3]:void 0;return a=>{const s=a.base.path(),u=a.navigatorFactory(a.base);let c,d;function h(e){if(e.defaultPrevented||0!==e.button||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;const n=e.composedPath().find(e=>e instanceof Node&&"A"===e.nodeName.toUpperCase());if(!n||t&&!n.hasAttribute("link"))return;const r="http://www.w3.org/2000/svg"===n.namespaceURI,o=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!o&&!n.hasAttribute("state"))return;const i=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||i&&i.includes("external"))return;const l=r?new URL(o,document.baseURI):new URL(o);return l.origin!==window.location.origin||s&&l.pathname&&!l.pathname.toLowerCase().startsWith(s.toLowerCase())?void 0:[n,l]}function p(e){const t=h(e);if(!t)return;const n=i(t,2),r=n[0],o=n[1],l=a.parsePath(o.pathname+o.search+o.hash),s=r.getAttribute("state");e.preventDefault(),u(l,{resolve:!1,replace:r.hasAttribute("replace"),scroll:!r.hasAttribute("noscroll"),state:s?JSON.parse(s):void 0})}function v(e){const t=h(e);if(!t)return;const n=i(t,2),r=n[0],o=n[1];l&&(o.pathname=l(o.pathname)),a.preloadRoute(o,"false"!==r.getAttribute("preload"))}function g(e){clearTimeout(c);const t=h(e);if(!t)return d=null;const n=i(t,2),r=n[0],o=n[1];d!==r&&(l&&(o.pathname=l(o.pathname)),c=setTimeout(()=>{a.preloadRoute(o,"false"!==r.getAttribute("preload")),d=r},20))}function y(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute("formaction")?e.submitter.getAttribute("formaction"):e.target.getAttribute("action");if(!t)return;if(!t.startsWith("https://action/")){const e=new URL(t,f);if(t=a.parsePath(e.pathname+e.search),!t.startsWith(n))return}if("POST"!==e.target.method.toUpperCase())throw new Error("Only POST forms are supported for Actions");const r=Y.get(t);if(r){e.preventDefault();const t=new FormData(e.target,e.submitter);r.call({r:a,f:e.target},"multipart/form-data"===e.target.enctype?t:new URLSearchParams(t))}}(0,r.z_)(["click","submit"]),document.addEventListener("click",p),e&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",v,{passive:!0}),document.addEventListener("touchstart",v,{passive:!0})),document.addEventListener("submit",y),(0,o.Ki)(()=>{document.removeEventListener("click",p),e&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",v),document.removeEventListener("touchstart",v)),document.removeEventListener("submit",y)})}}function Q(e){const t=()=>{const e=window.location.pathname.replace(/^\/+/,"/")+window.location.search,t=window.history.state&&window.history.state._depth&&1===Object.keys(window.history.state).length?void 0:window.history.state;return{value:e+window.location.hash,state:t}},n=a();return _({get:t,set(e){let t=e.value,n=e.replace,r=e.scroll,o=e.state;n?window.history.replaceState(function(e){return{...e,_depth:window.history.state&&window.history.state._depth}}(o),"",t):window.history.pushState(o,"",t),B(decodeURIComponent(window.location.hash.slice(1)),r),u()},init:e=>{return r=window,o="popstate",i=function(e,t){let n=!1;return()=>{const r=s;u();const o=null==r?null:s-r;n?n=!1:o&&t(o)?(n=!0,window.history.go(-o)):e()}}(e,e=>{if(e&&e<0)return!n.confirm(e);{const e=t();return!n.confirm(e.value,{state:e.state})}}),r.addEventListener(o,i),()=>r.removeEventListener(o,i);var r,o,i},create:W(e.preload,e.explicitLinks,e.actionBase,e.transformUrl),utils:{go:e=>window.history.go(e),beforeLeave:n}})(e)}function G(e){const t=e.history||function(){const e=["/"];let t=0;const n=[],r=r=>{t=Math.max(0,Math.min(t+r,e.length-1));const o=e[t];n.forEach(e=>e(o))};return{get:()=>e[t],set:r=>{let o=r.value,i=r.scroll;r.replace?e[t]=o:(e.splice(t+1,e.length-t,o),t++),n.forEach(e=>e(o)),setTimeout(()=>{i&&B(o.split("#")[1]||"",!0)},0)},back:()=>{r(-1)},forward:()=>{r(1)},go:r,listen:e=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})}}();return _({get:t.get,set:t.set,init:t.listen,create:W(e.preload,e.explicitLinks,e.actionBase),utils:{go:t.go}})(e)}n.d(t,["ok",0,()=>{const e=k().location,t=x();return[e.query,(n,r)=>{const l=(0,o.vz)(()=>function(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(e=>{let t=i(e,2),r=t[0],o=t[1];null==o||""===o||o instanceof Array&&!o.length?n.delete(r):o instanceof Array?(n.delete(r),o.forEach(e=>{n.append(r,String(e))})):n.set(r,String(o))});const r=n.toString();return r?"?".concat(r):""}(e.search,n)+e.hash);t(l,{scroll:!1,resolve:!1,...r})}]},"qh",0,e=>{const t=(0,o.Y_)(()=>e.children);return(0,o.v6)(e,{get children(){return t()}})}])},456(e,t,n){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Ds:()=>we,EH:()=>O,Hr:()=>S,KQ:()=>D,KZ:()=>k,Ki:()=>I,NT:()=>_,QQ:()=>N,RZ:()=>me,Rc:()=>M,Sc:()=>Pe,To:()=>P,YG:()=>xe,Y_:()=>B,ZR:()=>R,Zg:()=>C,a:()=>Se,a0:()=>de,dO:()=>ke,gb:()=>x,n5:()=>E,on:()=>L,q6:()=>F,rg:()=>ye,tH:()=>Ce,tY:()=>je,v6:()=>ge,vA:()=>T,vP:()=>$,vz:()=>j,wv:()=>Ee});const i={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return l(this.context.count)},getNextContextId(){return l(this.context.count++)}};function l(e){const t=String(e),n=t.length-1;return i.context.id+(n?String.fromCharCode(96+n):"")+t}function a(e){i.context=e}const s=Symbol("solid-proxy"),u="function"==typeof Proxy,c=Symbol("solid-track"),d=(Symbol("solid-dev-component"),{equals:(e,t)=>e===t});let f=null,h=X;const p={owned:null,cleanups:null,context:null,owner:null},v={};var g=null;let y=null,m=null,b=null,w=null,A=0;function S(e,t){const n=m,r=g,o=0===e.length,i=void 0===t?r:t,l=o?p:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>j(()=>ne(l)));g=l,m=null;try{return Z(a,!0)}finally{m=n,g=r}}function E(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},d,t):d).equals||void 0};return[H.bind(n),e=>("function"==typeof e&&(e=y&&y.running&&y.sources.has(n)?e(n.tValue):e(n.value)),z(n,e))]}function k(e,t,n){const r=Q(e,t,!0,1);Y(r)}function x(e,t,n){const r=Q(e,t,!1,1);Y(r)}function O(e,t,n){h=J;const r=Q(e,t,!1,1),o=V&&_(V);o&&(r.suspense=o),n&&n.render||(r.user=!0),w?w.push(r):Y(r)}function P(e,t,n){n=n?Object.assign({},d,n):d;const r=Q(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Y(r),H.bind(r)}function C(e,t,n){let o,l,a;"function"==typeof t?(o=e,l=t,a=n||{}):(o=!0,l=e,a=t||{});let s=null,u=v,c=null,d=!1,f=!1,h="initialValue"in a,p="function"==typeof o&&P(o);const b=new Set,w=r((a.storage||E)(a.initialValue),2),A=w[0],S=w[1],x=r(E(void 0),2),O=x[0],C=x[1],T=r(E(void 0,{equals:!1}),2),L=T[0],M=T[1],I=r(E(h?"ready":"unresolved"),2),R=I[0],N=I[1];function D(e,t,n,r){return s===e&&(s=null,void 0!==r&&(h=!0),e!==u&&t!==u||!a.onHydrated||queueMicrotask(()=>a.onHydrated(r,{value:t})),u=v,y&&e&&d?(y.promises.delete(e),d=!1,Z(()=>{y.running=!0,U(t,n)},!1)):U(t,n)),t}function U(e,t){Z(()=>{void 0===t&&S(()=>e),N(void 0!==t?"errored":h?"ready":"unresolved"),C(t);for(const e of b.keys())e.decrement();b.clear()},!1)}function q(){const e=V&&_(V),t=A(),n=O();if(void 0!==n&&!s)throw n;return m&&!m.user&&e&&k(()=>{L(),s&&(e.resolved&&y&&d?y.promises.add(s):b.has(e)||(e.increment(),b.add(e)))}),t}function F(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&f)return;f=!1;const t=p?p():o;if(d=y&&y.running,null==t||!1===t)return void D(s,j(A));let n;y&&s&&y.promises.delete(s);const r=u!==v?u:j(()=>{try{return l(t,{value:A(),refetching:e})}catch(e){n=e}});var i;if(void 0===n)return(i=r)&&"object"==typeof i&&"then"in i?(s=r,"v"in r?(1===r.s?D(s,r.v,void 0,t):D(s,void 0,oe(r.v),t),r):(f=!0,queueMicrotask(()=>f=!1),Z(()=>{N(h?"refreshing":"pending"),M()},!1),r.then(e=>D(r,e,void 0,t),e=>D(r,void 0,oe(e),t)))):(D(s,r,void 0,t),r);D(s,void 0,oe(n),t)}i.context&&(c=i.getNextContextId(),"initial"===a.ssrLoadFrom?u=a.initialValue:i.load&&i.has(c)&&(u=i.load(c))),Object.defineProperties(q,{state:{get:()=>R()},error:{get:()=>O()},loading:{get(){const e=R();return"pending"===e||"refreshing"===e}},latest:{get(){if(!h)return q();const e=O();if(e&&!s)throw e;return A()}}});let B=g;return p?k(()=>(B=g,F(!1))):F(!1),[q,{refetch:e=>$(B,()=>F(e)),mutate:S}]}function T(e){return Z(e,!1)}function j(e){if(null===m)return e();const t=m;m=null;try{return e()}finally{m=t}}function L(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let l;if(r){l=Array(e.length);for(let t=0;t<e.length;t++)l[t]=e[t]()}else l=e();if(i)return i=!1,n;const a=j(()=>t(l,o,n));return o=l,a}}function M(e){O(()=>j(e))}function I(e){return null===g||(null===g.cleanups?g.cleanups=[e]:g.cleanups.push(e)),e}function R(){return m}function N(){return g}function $(e,t){const n=g,r=m;g=e,m=null;try{return Z(t,!0)}catch(e){le(e)}finally{g=n,m=r}}function D(e){if(y&&y.running)return e(),y.done;const t=m,n=g;return Promise.resolve().then(()=>{let r;return m=t,g=n,V&&(r=y||(y={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(e=>r.resolve=e)),r.running=!0),Z(e,!1),m=g=null,r?r.done:void 0})}const U=r(E(!1),2),q=(U[0],U[1]);function F(e,t){const n=Symbol("context");return{id:n,Provider:se(n),defaultValue:e}}function _(e){let t;return g&&g.context&&void 0!==(t=g.context[e.id])?t:e.defaultValue}function B(e){const t=P(e),n=P(()=>ae(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}let V;function K(){return V||(V=F())}function H(){const e=y&&y.running;if(this.sources&&(e?this.tState:this.state))if(1===(e?this.tState:this.state))Y(this);else{const e=b;b=null,Z(()=>ee(this),!1),b=e}if(m){const e=this.observers;if(!e||e[e.length-1]!==m){const t=e?e.length:0;m.sources?(m.sources.push(this),m.sourceSlots.push(t)):(m.sources=[this],m.sourceSlots=[t]),e?(e.push(m),this.observerSlots.push(m.sources.length-1)):(this.observers=[m],this.observerSlots=[m.sources.length-1])}}return e&&y.sources.has(this)?this.tValue:this.value}function z(e,t,n){let r=y&&y.running&&y.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(y){const r=y.running;(r||!n&&y.sources.has(e))&&(y.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Z(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=y&&y.running;r&&y.disposed.has(n)||((r?n.tState:n.state)||(n.pure?b.push(n):w.push(n),n.observers&&te(n)),r?n.tState=1:n.state=1)}if(b.length>1e6)throw b=[],new Error},!1)}return t}function Y(e){if(!e.fn)return;ne(e);const t=A;W(e,y&&y.running&&y.sources.has(e)?e.tValue:e.value,t),y&&!y.running&&y.sources.has(e)&&queueMicrotask(()=>{Z(()=>{y&&(y.running=!0),m=g=e,W(e,e.tValue,t),m=g=null},!1)})}function W(e,t,n){let r;const o=g,i=m;m=g=e;try{r=e.fn(t)}catch(t){return e.pure&&(y&&y.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(ne),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(ne),e.owned=null)),e.updatedAt=n+1,le(t)}finally{m=i,g=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?z(e,r,!0):y&&y.running&&e.pure?(y.sources.has(e)||(e.value=r),y.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function Q(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};return y&&y.running&&(o.state=0,o.tState=r),null===g||g!==p&&(y&&y.running&&g.pure?g.tOwned?g.tOwned.push(o):g.tOwned=[o]:g.owned?g.owned.push(o):g.owned=[o]),o}function G(e){const t=y&&y.running;if(0===(t?e.tState:e.state))return;if(2===(t?e.tState:e.state))return ee(e);if(e.suspense&&j(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<A);){if(t&&y.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,o=n[r+1];for(;(t=t.owner)&&t!==o;)if(y.disposed.has(t))return}if(1===(t?e.tState:e.state))Y(e);else if(2===(t?e.tState:e.state)){const t=b;b=null,Z(()=>ee(e,n[0]),!1),b=t}}}function Z(e,t){if(b)return e();let n=!1;t||(b=[]),w?n=!0:w=[],A++;try{const t=e();return function(e){if(b&&(X(b),b=null),e)return;let t;if(y)if(y.promises.size||y.queue.size){if(y.running)return y.running=!1,y.effects.push.apply(y.effects,w),w=null,void q(!0)}else{const e=y.sources,n=y.disposed;w.push.apply(w,y.effects),t=y.resolve;for(const e of w)"tState"in e&&(e.state=e.tState),delete e.tState;y=null,Z(()=>{for(const e of n)ne(e);for(const t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)ne(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}q(!1)},!1)}const n=w;w=null,n.length&&Z(()=>h(n),!1),t&&t()}(n),t}catch(e){n||(w=null),b=null,le(e)}}function X(e){for(let t=0;t<e.length;t++)G(e[t])}function J(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:G(r)}if(i.context){if(i.count)return i.effects||(i.effects=[]),void i.effects.push(...e.slice(0,n));a()}for(!i.effects||!i.done&&i.count||(e=[...i.effects,...e],n+=i.effects.length,delete i.effects),t=0;t<n;t++)G(e[t])}function ee(e,t){const n=y&&y.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];if(o.sources){const e=n?o.tState:o.state;1===e?o!==t&&(!o.updatedAt||o.updatedAt<A)&&G(o):2===e&&ee(o,t)}}}function te(e){const t=y&&y.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?r.tState:r.state)||(t?r.tState=2:r.state=2,r.pure?b.push(r):w.push(r),r.observers&&te(r))}}function ne(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ne(e.tOwned[t]);delete e.tOwned}if(y&&y.running&&e.pure)re(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ne(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}y&&y.running?e.tState=0:e.state=0}function re(e,t){if(t||(e.tState=0,y.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)re(e.owned[t])}function oe(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function ie(e,t,n){try{for(const n of t)n(e)}catch(e){le(e,n&&n.owner||null)}}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;const n=f&&t&&t.context&&t.context[f],r=oe(e);if(!n)throw r;w?w.push({fn(){ie(r,n,t)},state:1}):ie(r,n,t)}function ae(e){if("function"==typeof e&&!e.length)return ae(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=ae(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e]);else t.push(r)}return t}return e}function se(e,t){return function(t){let n;return x(()=>n=j(()=>(g.context={...g.context,[e]:t.value},B(()=>t.children))),void 0),n}}const ue=Symbol("fallback");function ce(e){for(let t=0;t<e.length;t++)e[t]()}function de(e,t){return j(()=>e(t||{}))}function fe(){return!0}const he={get:(e,t,n)=>t===s?n:e.get(t),has:(e,t)=>t===s||e.has(t),set:fe,deleteProperty:fe,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:fe,deleteProperty:fe}),ownKeys:e=>e.keys()};function pe(e){return(e="function"==typeof e?e():e)?e:{}}function ve(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let e=0;e<t.length;e++){const n=t[e];r=r||!!n&&s in n,t[e]="function"==typeof n?(r=!0,P(n)):n}if(u&&r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=pe(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in pe(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(pe(t[n])));return[...new Set(e)]}},he);const o={},i=Object.create(null);for(let e=t.length-1;e>=0;e--){const n=t[e];if(!n)continue;const r=Object.getOwnPropertyNames(n);for(let e=r.length-1;e>=0;e--){const t=r[e];if("__proto__"===t||"constructor"===t)continue;const l=Object.getOwnPropertyDescriptor(n,t);if(i[t]){const e=o[t];e&&(l.get?e.push(l.get.bind(n)):void 0!==l.value&&e.push(()=>l.value))}else i[t]=l.get?{enumerable:!0,configurable:!0,get:ve.bind(o[t]=[l.get.bind(n)])}:void 0!==l.value?l:void 0}}const l={},a=Object.keys(i);for(let e=a.length-1;e>=0;e--){const t=a[e],n=i[t];n&&n.get?Object.defineProperty(l,t,n):l[t]=n?n.value:void 0}return l}function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=n.length;if(u&&s in e){const t=o>1?n.flat():n[0],r=n.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},he));return r.push(new Proxy({get:n=>t.includes(n)?void 0:e[n],has:n=>!t.includes(n)&&n in e,keys:()=>Object.keys(e).filter(e=>!t.includes(e))},he)),r}const i=[];for(let e=0;e<=o;e++)i[e]={};for(const t of Object.getOwnPropertyNames(e)){let r=o;for(let e=0;e<n.length;e++)if(n[e].includes(t)){r=e;break}const l=Object.getOwnPropertyDescriptor(e,t);!l.get&&!l.set&&l.enumerable&&l.writable&&l.configurable?i[r][t]=l.value:Object.defineProperty(i[r],t,l)}return i}function me(e){let t,n;const o=o=>{const l=i.context;if(l){const o=r(E(),2),s=o[0],u=o[1];i.count||(i.count=0),i.count++,(n||(n=e())).then(e=>{!i.done&&a(l),i.count--,u(()=>e.default),a()}),t=s}else if(!t){const o=r(C(()=>(n||(n=e())).then(e=>e.default)),1)[0];t=o}let s;return P(()=>(s=t())?j(()=>{if(!l||i.done)return s(o);const e=i.context;a(l);const t=s(o);return a(e),t}):"")};return o.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),o}let be=0;function we(){return i.context?i.getNextContextId():"cl-".concat(be++)}const Ae=e=>"Stale read from <".concat(e,">.");function Se(e){const t="fallback"in e&&{fallback:()=>e.fallback};return P(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],i=[],l=[],a=0,s=t.length>1?[]:null;return I(()=>ce(l)),()=>{let u,d,f=e()||[],h=f.length;return f[c],j(()=>{let e,t,r,c,v,g,y,m,b;if(0===h)0!==a&&(ce(l),l=[],o=[],i=[],a=0,s&&(s=[])),n.fallback&&(o=[ue],i[0]=S(e=>(l[0]=e,n.fallback())),a=1);else if(0===a){for(i=new Array(h),d=0;d<h;d++)o[d]=f[d],i[d]=S(p);a=h}else{for(r=new Array(h),c=new Array(h),s&&(v=new Array(h)),g=0,y=Math.min(a,h);g<y&&o[g]===f[g];g++);for(y=a-1,m=h-1;y>=g&&m>=g&&o[y]===f[m];y--,m--)r[m]=i[y],c[m]=l[y],s&&(v[m]=s[y]);for(e=new Map,t=new Array(m+1),d=m;d>=g;d--)b=f[d],u=e.get(b),t[d]=void 0===u?-1:u,e.set(b,d);for(u=g;u<=y;u++)b=o[u],d=e.get(b),void 0!==d&&-1!==d?(r[d]=i[u],c[d]=l[u],s&&(v[d]=s[u]),d=t[d],e.set(b,d)):l[u]();for(d=g;d<h;d++)d in r?(i[d]=r[d],l[d]=c[d],s&&(s[d]=v[d],s[d](d))):i[d]=S(p);i=i.slice(0,a=h),o=f.slice(0)}return i});function p(e){if(l[d]=e,s){const e=r(E(d),2),n=e[0],o=e[1];return s[d]=o,t(f[d],n)}return t(f[d])}}}(()=>e.each,e.children,t||void 0))}function Ee(e){const t=e.keyed,n=P(()=>e.when,void 0,void 0),r=t?n:P(n,void 0,{equals:(e,t)=>!e==!t});return P(()=>{const o=r();if(o){const i=e.children;return"function"==typeof i&&i.length>0?j(()=>i(t?o:()=>{if(!j(r))throw Ae("Show");return n()})):i}return e.fallback},void 0,void 0)}function ke(e){const t=B(()=>e.children),n=P(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let e=0;e<n.length;e++){const t=e,o=n[e],i=r,l=P(()=>i()?void 0:o.when,void 0,void 0),a=o.keyed?l:P(l,void 0,{equals:(e,t)=>!e==!t});r=()=>i()||(a()?[t,l,o]:void 0)}return r});return P(()=>{const t=n()();if(!t)return e.fallback;const o=r(t,3),i=o[0],l=o[1],a=o[2],s=a.children;return"function"==typeof s&&s.length>0?j(()=>s(a.keyed?l():()=>{var e;if((null===(e=j(n)())||void 0===e?void 0:e[0])!==i)throw Ae("Match");return l()})):s},void 0,void 0)}function xe(e){return e}let Oe;function Pe(){Oe&&[...Oe].forEach(e=>e())}function Ce(e){let t;i.context&&i.load&&(t=i.load(i.getContextId()));const n=r(E(t,void 0),2),o=n[0],l=n[1];return Oe||(Oe=new Set),Oe.add(l),I(()=>Oe.delete(l)),P(()=>{let t;if(t=o()){const n=e.fallback;return"function"==typeof n&&n.length?j(()=>n(t,()=>l())):n}return function(t,n){f||(f=Symbol("error")),(g=Q(void 0,void 0,!0)).context={...g.context,[f]:[n]},y&&y.running&&y.sources.add(g);try{return e.children}catch(e){le(e)}finally{g=g.owner}}(0,l)},void 0,void 0)}const Te=F();function je(e){let t,n,o,l,s,u=0;const c=r(E(!1),2),d=c[0],f=c[1],h=K(),p={increment:()=>{1===++u&&f(!0)},decrement:()=>{0===--u&&f(!1)},inFallback:d,effects:[],resolved:!1},v=N();if(i.context&&i.load){const e=i.getContextId();let t=i.load(e);if(t&&("object"!=typeof t||1!==t.s?o=t:i.gather(e)),o&&"$$f"!==o){const t=r(E(void 0,{equals:!1}),2),u=t[0],c=t[1];l=u,o.then(()=>{if(i.done)return c();i.gather(e),a(n),c(),a()},e=>{s=e,c()})}}const g=_(Te);let y;return g&&(t=g.register(p.inFallback)),I(()=>y&&y()),de(h.Provider,{value:p,get children(){return P(()=>{if(s)throw s;if(n=i.context,l)return l(),l=void 0;n&&"$$f"===o&&a();const r=P(()=>e.children);return P(i=>{const l=p.inFallback(),s=t?t():{},u=s.showContent,c=void 0===u||u,d=s.showFallback,f=void 0===d||d;return(!l||o&&"$$f"!==o)&&c?(p.resolved=!0,y&&y(),y=n=o=void 0,h=p.effects,w.push.apply(w,h),h.length=0,r()):f?y?i:S(t=>(y=t,n&&(a({id:n.id+"F",count:0}),n=void 0),e.fallback),v):void 0;var h})})}})}n.d(t,["WX",0,c,"dg",0,s,"sE",0,i])},2262(e,t,n){n.d(t,{$h:()=>b,Bq:()=>y,Qi:()=>I,XX:()=>p,Yr:()=>S,Yx:()=>A,ZL:()=>M,il:()=>w,s7:()=>m,vs:()=>v,z_:()=>g});var r=n(456);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const l=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable","allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"]),a=new Set(["innerHTML","textContent","innerText","children"]),s=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),u=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}}),c=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),d=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),f={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},h="_$DX_DELEGATE";function p(e,t,n){let o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,r.Hr)(r=>{o=r,t===document?e():S(t,e(),t.firstChild?null:void 0,n)},i.owner),()=>{o(),t.textContent=""}}function v(e,t,n,o){let i;const l=()=>{const t=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:o?t.firstChild:t.content.firstChild},a=t?()=>(0,r.vz)(()=>document.importNode(i||(i=l()),!0)):()=>(i||(i=l())).cloneNode(!0);return a.cloneNode=a,a}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[h]||(t[h]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,O))}}function y(e,t,n){E(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function m(e,t){E(e)||(null==t?e.removeAttribute("class"):e.className=t)}function b(e,t,n){null!=n?e.style.setProperty(t,n):e.style.removeProperty(t)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o={};return(arguments.length>3?arguments[3]:void 0)||(0,r.gb)(()=>o.children=P(e,t.children,o.children)),(0,r.gb)(()=>"function"==typeof t.ref&&A(t.ref,e)),(0,r.gb)(()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const r in o)if(!(r in t)){if("children"===r)continue;o[r]=x(e,r,null,o[r],n,i,t)}for(const l in t){if("children"===l){r||P(e,t.children);continue}const a=t[l];o[l]=x(e,l,a,o[l],n,i,t)}}(e,t,n,!0,o,!0)),o}function A(e,t,n){return(0,r.vz)(()=>e(t,n))}function S(e,t,n,o){if(void 0===n||o||(o=[]),"function"!=typeof t)return P(e,t,o,n);(0,r.gb)(r=>P(e,t(),r,n),o)}function E(e){return!!r.sE.context&&!r.sE.done&&(!e||e.isConnected)}function k(e,t,n){const r=t.trim().split(/\s+/);for(let t=0,o=r.length;t<o;t++)e.classList.toggle(r[t],n)}function x(e,t,n,r,o,i,d){let h,p,v,b,w;if("style"===t)return function(e,t,n){if(!t)return n?y(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let i,l;for(i=0,l=o.length;i<l;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(k(e,r,!1),delete n[r])}for(i=0,l=r.length;i<l;i++){const o=r[i],l=!!t[o];o&&"undefined"!==o&&n[o]!==l&&l&&(k(e,o,!0),n[o]=l)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=c.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e["$$".concat(t)]=n[0],e["$$".concat(t,"Data")]=n[1]):e["$$".concat(t)]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}(e,o,n,i),i&&g([o]))}else if("attr:"===t.slice(0,5))y(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){E(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((w="prop:"===t.slice(0,5))||(v=a.has(t))||!o&&((b=function(e,t){const n=u[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(p=l.has(t)))||(h=e.nodeName.includes("-")||"is"in d)){if(w)t=t.slice(5),p=!0;else if(E(e))return n;"class"===t||"className"===t?m(e,n):!h||p||v?e[b||t]=n:e[A=t,A.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=n}else{const r=o&&t.indexOf(":")>-1&&f[t.split(":")[0]];r?function(e,t,n,r){E(e)||(null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}(e,r,t,n):y(e,s[t]||t,n)}var A;return n}function O(e){if(r.sE.registry&&r.sE.events&&r.sE.events.find(t=>{let n=o(t,2);return n[0],n[1]===e}))return;let t=e.target;const n="$$".concat(e.type),i=e.target,l=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),s=()=>{const r=t[n];if(r&&!t.disabled){const o=t["".concat(n,"Data")];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},u=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),r.sE.registry&&!r.sE.done&&(r.sE.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,u();break}if(t.parentNode===l)break}}else u();a(i)}function P(e,t,n,o,i){const l=E(e);if(l){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const a=typeof t,s=void 0!==o;if(e=s&&n[0]&&n[0].parentNode||e,"string"===a||"number"===a){if(l)return n;if("number"===a&&(t=t.toString())===n)return n;if(s){let r=n[0];r&&3===r.nodeType?r.data!==t&&(r.data=t):r=document.createTextNode(t),n=j(e,n,o,r)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===a){if(l)return n;n=j(e,n,o)}else{if("function"===a)return(0,r.gb)(()=>{let r=t();for(;"function"==typeof r;)r=r();n=P(e,r,n,o)}),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(C(a,t,n,i))return(0,r.gb)(()=>n=P(e,a,n,o,!0)),()=>n;if(l){if(!a.length)return n;if(void 0===o)return n=[...e.childNodes];let t=a[0];if(t.parentNode!==e)return n;const r=[t];for(;(t=t.nextSibling)!==o;)r.push(t);return n=r}if(0===a.length){if(n=j(e,n,o),s)return n}else u?0===n.length?T(e,a,o):function(e,t,n){let r=n.length,o=t.length,i=r,l=0,a=0,s=t[o-1].nextSibling,u=null;for(;l<o||a<i;)if(t[l]!==n[a]){for(;t[o-1]===n[i-1];)o--,i--;if(o===l){const t=i<r?a?n[a-1].nextSibling:n[i-a]:s;for(;a<i;)e.insertBefore(n[a++],t)}else if(i===a)for(;l<o;)u&&u.has(t[l])||t[l].remove(),l++;else if(t[l]===n[i-1]&&n[a]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[a++],t[l++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!u){u=new Map;let e=a;for(;e<i;)u.set(n[e],e++)}const r=u.get(t[l]);if(null!=r)if(a<r&&r<i){let s,c=l,d=1;for(;++c<o&&c<i&&null!=(s=u.get(t[c]))&&s===r+d;)d++;if(d>r-a){const o=t[l];for(;a<r;)e.insertBefore(n[a++],o)}else e.replaceChild(n[a++],t[l++])}else l++;else t[l++].remove()}}else l++,a++}(e,n,a):(n&&j(e),T(e,a));n=a}else if(t.nodeType){if(l&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=j(e,n,o,t);j(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function C(e,t,n,r){let o=!1;for(let i=0,l=t.length;i<l;i++){let l,a=t[i],s=n&&n[e.length];if(null==a||!0===a||!1===a);else if("object"==(l=typeof a)&&a.nodeType)e.push(a);else if(Array.isArray(a))o=C(e,a,s)||o;else if("function"===l)if(r){for(;"function"==typeof a;)a=a();o=C(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function j(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const l=t[i];if(o!==l){const t=l.parentNode===e;r||i?t&&l.remove():t?e.replaceChild(o,l):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function L(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e,{is:t})}function M(e){const t=e.useShadow,n=document.createTextNode(""),i=(0,r.QQ)();let l,a=!!r.sE.context;return(0,r.EH)(()=>{a&&((0,r.QQ)().user=a=!1),l||(l=(0,r.vP)(i,()=>(0,r.To)(()=>e.children)));const s=e.mount||document.body;if(s instanceof HTMLHeadElement){const e=o((0,r.n5)(!1),2),t=e[0],n=e[1],i=()=>n(!0);(0,r.Hr)(e=>S(s,()=>t()?e():l(),null)),(0,r.Ki)(i)}else{const o=L(e.isSVG?"g":"div",e.isSVG),i=t&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"_$host",{get:()=>n.parentNode,configurable:!0}),S(i,l),s.appendChild(o),e.ref&&e.ref(o),(0,r.Ki)(()=>s.removeChild(o))}},void 0,{render:!a}),n}function I(e){return function(e,t){const n=(0,r.To)(e);return(0,r.To)(()=>{const e=n();switch(typeof e){case"function":return(0,r.vz)(()=>e(t));case"string":const n=d.has(e),o=r.sE.context?function(e){let t,n;return E()&&(t=r.sE.registry.get(n=r.sE.getNextContextId()))?(r.sE.completed&&r.sE.completed.add(t),r.sE.registry.delete(n),t):e()}():L(e,n,(0,r.vz)(()=>t.is));return w(o,t,n),o}})}(()=>e.component,o((0,r.rg)(e,["component"]),2)[1])}Symbol(),n.d(t,["ph",0,e=>(0,r.To)(()=>e()),"yS",0,()=>{}])}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++];n.o(e,o)?0===i&&r++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+({344:"CatalogWidgetAsync",806:"ApplicationModalAsync"}[e]||e)+"."+{344:"b16ad611d2f59049fa5d",431:"222d21bd9f971aa6a2b2",806:"bd43f192db648ae5898f",875:"b1d2daf9cc95b275ec89"}[e]+".chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="poiskDevWidget:";n.l=(r,o,i,l)=>{if(e[r])return void e[r].push(o);let a,s;if(void 0!==i){const e=document.getElementsByTagName("script");for(var u=0;u<e.length;u++){const n=e[u];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+i){a=n;break}}}a||(s=!0,a=document.createElement("script"),a.charset="utf-8",n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r,0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous")),e[r]=[o];const c=(t,n)=>{a.onerror=a.onload=null,clearTimeout(d);const o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(n)),t)return t(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="https://cdn.poisk.dev/web-widget/",(()=>{const e={792:0};n.f.j=(t,r)=>{let o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{const i=new Promise((n,r)=>o=e[t]=[n,r]);r.push(o[2]=i);const l=n.p+n.u(t),a=new Error,s=r=>{if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",a.name="ChunkLoadError",a.type=e,a.request=n,a.event=r,o[1](a)}};n.l(l,s,"chunk-"+t,t)}};const t=(t,r)=>{let[o,i,l]=r;var a,s,u=0;if(o.some(t=>0!==e[t])){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);l&&l(n)}for(t&&t(r);u<o.length;u++)s=o[u],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=self.webpackChunkpoiskDevWidget=self.webpackChunkpoiskDevWidget||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let r={};n.r(r),n.d(r,{renderApp:()=>R});var o=n(456),i=n(2262),l=n(90),a=n(8396),s=n(2958),u=n(2624),c=n(1931),d=(0,i.vs)('<div><div class="fixed inset-0 z-50 bg-overlay/50"></div><div class="fixed inset-0 z-50 flex w-screen flex-col items-center overflow-y-auto overflow-x-hidden"><div class="flex w-screen grow flex-col bg-background lg:my-4 lg:w-[min(calc(100vw-8rem),1400px)]"><div class="mx-4 my-3 h-12 bg-default-100 lg:mb-5"></div><div class="flex h-full"role=status><div class="grid min-h-[140px] w-full place-items-center overflow-x-scroll rounded-lg p-6 lg:overflow-visible"><svg class="animate-spin text-default-400"viewBox="0 0 64 64"fill=none xmlns=http://www.w3.org/2000/svg width=48 height=48><path d="M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z"stroke=currentColor stroke-width=5 stroke-linecap=round stroke-linejoin=round></path><path d="M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762"stroke=currentColor stroke-width=5 stroke-linecap=round stroke-linejoin=round class=text-primary>');const f=()=>d(),h=e=>{var t;return(null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||e.path||[]};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const v=e=>{var t;return null==e||null===(t=e.matches)||void 0===t?void 0:t.call(e,"[data-poisk-dev-trigger]")},g={"tvoiodelo.ru":["button.header-search",".searchinput button.btn-search",".searchinput input.q"],"electric-spb.com":["#title-search-input","#title-search btn.btn-secondary.m-0","#title-search"],"46koles.ru":["#ftSearch input","#ftSearch .search-button","#input-search","#button-search"]};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=(0,o.RZ)(()=>Promise.all([n.e(431),n.e(806)]).then(n.bind(n,5395))),b="poiskDevApplication",w=()=>{const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,c.p)(),2),t=e[0],n=e[1],r=(0,a._)(),i=()=>Boolean(t.pdAppOpen),l=e=>{n(e?{pdAppOpen:"true"}:{pdAppOpen:null,pdCatId:null,pdSelParams:null,pdMinPrice:null,pdMaxPrice:null,pdQuery:null,pdMode:null})};var d;return(0,o.Rc)(()=>{if(r().router.mode!==s.j.MEMORY)return;const e=e=>{null!=e&&e.state&&b in e.state&&l(!1)};window.addEventListener("popstate",e,{passive:!0}),(0,o.Ki)(()=>{window.removeEventListener("popstate",e)})}),(0,o.Rc)(()=>{const e=setTimeout(()=>{m.preload().catch(u.v.error)},3e3);(0,o.Ki)(()=>{window.clearTimeout(e)})}),d=e=>{e instanceof HTMLElement&&e.blur(),e instanceof HTMLInputElement&&(e.value=""),(()=>{const e=!i();l(e),e&&r().router.mode===s.j.MEMORY&&history.pushState({[b]:!0},"")})()},(0,o.Rc)(()=>{var e;const t=null===(e=Object.entries(g).find(e=>{let t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0];return window.origin.includes(t)}))||void 0===e?void 0:e[1];if(!t)return;const n=[],r=e=>{e.currentTarget instanceof HTMLElement&&(e.stopPropagation(),e.preventDefault(),d(e.currentTarget))},i=e=>{e.currentTarget instanceof HTMLInputElement&&(e.stopPropagation(),e.preventDefault(),d(e.currentTarget))};for(const e of t){const t=Array.from(document.querySelectorAll(e));for(const e of t)e.addEventListener("click",r),n.push(()=>e.removeEventListener("click",r)),e instanceof HTMLInputElement&&(e.addEventListener("focus",i),n.push(()=>e.removeEventListener("focus",i)))}(0,o.Ki)(()=>{n.forEach(e=>e())})}),(0,o.Rc)(()=>{const e=e=>{const t=h(e).find(e=>e instanceof Element&&v(e));t&&t instanceof Element&&d(t)},t=e=>{const t=h(e).find(e=>e instanceof Element&&v(e));t&&t instanceof HTMLInputElement&&d(t)};document.addEventListener("focusin",t,{passive:!0,capture:!0}),document.addEventListener("click",e,{passive:!0,capture:!0}),(0,o.Ki)(()=>{document.removeEventListener("focusin",t,{capture:!0}),document.removeEventListener("click",e,{capture:!0})})}),(0,o.a0)(o.wv,{get when(){return i()},get children(){return(0,o.a0)(o.tH,{fallback:()=>null,get children(){return(0,o.a0)(o.tY,{get fallback(){return(0,o.a0)(f,{})},get children(){return(0,o.a0)(m,{onOpenChange:l})}})}})}})},A=()=>{const e=(0,a._)()().router.mode,t=(0,o.a0)(l.qh,{path:"*",component:w});return(0,o.a0)(o.dO,{get children(){return[(0,o.a0)(o.YG,{get when(){return e===s.j.MEMORY},get children(){return(0,o.a0)(l.fS,{explicitLinks:!0,children:t})}}),(0,o.a0)(o.YG,{get when(){return e===s.j.DEFAULT},get children(){return(0,o.a0)(l.Ix,{explicitLinks:!0,children:t})}})]}})};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const E=function(e){if(Array.isArray(e))return e}(O=(0,o.n5)())||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,l=[],a=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(a=(n=o.call(t)).done)&&(l.push(n.value),2!==l.length);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(O)||function(e){if(e){if("string"==typeof e)return S(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=E[0],x=E[1];var O,P=(0,i.vs)("<div>");function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=e=>{const t=(0,a._)(),n=(0,o.To)(()=>{var e,n,r;const o={"--nextui-primary":null===(e=t().theme)||void 0===e?void 0:e.primaryColor,"--nextui-foreground":null===(n=t().theme)||void 0===n?void 0:n.textColor,"--poisk-dev-font-size":"".concat((null===(r=t().theme)||void 0===r?void 0:r.textSize)||16,"px")};return Object.fromEntries(Object.entries(o).filter(e=>{let t=C(e,2)[1];return Boolean(t)}))});return(0,o.Rc)(()=>{const e=document.createElement("style"),t=Object.entries(n()).reduce((e,t)=>{let n=C(t,2),r=n[0],o=n[1];return e+"".concat(r,": ").concat(o,";\n")},"");e.textContent=".light[data-poisk-dev-root] {\n      ".concat(t,"\n    }\n  ");const r=k();null==r||r.append(e),(0,o.Ki)(()=>{e.remove()})}),r=P(),(0,i.Yr)(r,()=>e.children),(0,o.gb)(()=>(0,i.Bq)(r,"data-theme",Object.keys(n()).length>0?"true":"false")),r;var r};var L=n(6008);const M={};let I=null;const R=e=>{var t;const n=(()=>{if(I)return I;const e=document.querySelector(L.q);if(!e)return null;const t=e.shadowRoot;if(!t)return null;if(x(t),!I){const e=["light","text-foreground"],n=document.createElement("div");n.classList.add(...e),n.dataset.poiskDevRoot="",t.appendChild(n),I=n}return I})();var r;if(!n)return null===(r=M.current)||void 0===r||r.call(M),void u.v.error("Cannot find root to render");null===(t=M.current)||void 0===t||t.call(M);const l=(0,i.XX)(()=>(0,o.a0)(o.tH,{fallback:()=>null,get children(){return(0,o.a0)(o.tY,{get children(){return(0,o.a0)(a.N,{config:e,get children(){return(0,o.a0)(j,{get children(){return(0,o.a0)(A,{})}})}})}})}}),n);return M.current=()=>{l(),delete M.current},M.current};self.poiskDevWidget=r})();
try {
let host = document.querySelector("[data-poisk-dev-host]");

if (!host) {
  host = document.createElement("div");
  host.dataset.poiskDevHost = "";
  document.body.appendChild(host);
}

let shadowRoot = host.shadowRoot || host.attachShadow({ mode: "open" });
;["https://cdn.poisk.dev/web-widget/static/css/main.ff1df4579c729c6dcd67.entry.css"].forEach((src) => { 
      const link = document.createElement('link');
      link.type = 'text/css';
      link.rel = 'stylesheet';
      link.href = src;
      link.crossorigin = 'anonymous'; 
      shadowRoot.appendChild(link);
    });
const config = JSON.parse('null')  ;
const render = () => { /** no-render  */ }
if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", render); }
else { render(); }
} catch {}