PageSourceSearch

https://elfmec.ru/_nuxt/72QGsI-q2.js

js elfmec.ru collected 2026-10-08 13:47:55 UTC 9,608 bytes, 1 lines download raw bytes

1import{s as e}from"./iWUf_mW-.js";import{Fn as t,L as n,ct as r,et as i,g as a,it as o,mt as s,qt as c,tn as l,v as u,xt as d,z as f}from"./2opt8qvw.js";import{f as p}from"./DnGh_CDU.js";import{i as m}from"./DJIQptMS.js";import{t as h}from"./BW3xJdEx.js";import{t as g}from"./BC_nO4ec.js";import{t as _}from"./BHojbsre.js";import{t as v}from"./DxRkvpx_.js";import{n as y,t as b}from"./bW6NxFOP.js";import{l as x,t as S}from"./jXA8D7AP.js";import{h as C,m as w}from"./DImY5TcV.js";import{n as T,t as E}from"./DpPjJ9mF2.js";import{t as D}from"./C0Zxg0_h2.js";var O=`__proto__`;function k(e,t){let n=[];return A(e,t,``,n),n}function A(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=j(e),a=j(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?A(t,a.get(e),i,r):r.push(new I(i,`removed`,void 0,P(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new I(a,`added`,P(t,a)))}return}if(M(e,i)||M(t,a))return;let o=N(e,n,i),s=N(t,n,a);o.hash!==s.hash&&r.push(new I(n,`changed`,s,o))}function j(e){let t=new Map;for(let n in e)n!==O&&t.set(n,e[n]);return t}function M(e,t){if(t)return!1;for(let t in e)if(t!==O)return!0;return!1}function N(e,t,n){return n?new L(t,e,F(e)):new L(t,e,`{}`,Object.create(null))}function P(e,t=``){if(typeof e!=`object`||!e)return new L(t,e,F(e));let n=Object.create(null),r=[];for(let i in e){if(i===O)continue;let a=P(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new L(t,e,`{${r.join(`:`)}}`,n)}function F(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return y(e)}}var I=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added   \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},L=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}},R=`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.locale.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`);function z(e){let t=Object.keys(e),n=t.filter(e=>e.startsWith(`aria-`)),r=t.filter(e=>e.startsWith(`data-`)),i=[...R,...n,...r];return C(e,...i)}function B(e,t){let n=k(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),i=Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)));return b(r,i)}function V(e){if(!(typeof window>`u`))return typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e):setTimeout(e,1)}function H(e){if(!(typeof window>`u`||e===void 0)){if(typeof window.cancelIdleCallback==`function`){window.cancelIdleCallback(e);return}clearTimeout(e)}}var U=null,W=new Map;function G(e,t){return typeof IntersectionObserver>`u`?()=>{}:(U||=new IntersectionObserver(e=>{for(let t of e){let e=W.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),W.set(e,t),U.observe(e),()=>{W.delete(e),U?.unobserve(e),W.size===0&&(U?.disconnect(),U=null)})}var K={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:[String,null],required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let n=e;function r(e){if(n.disabled){e.stopPropagation(),e.preventDefault();return}let t=[];if(n.onClick)for(let r of Array.isArray(n.onClick)?n.onClick:[n.onClick])t.push(r(e));return n.href&&n.navigate&&!n.isExternal&&n.navigate(e),Promise.all(t)}return(n,a)=>(s(),u(t(E),i(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:r}),{default:c(()=>[d(n.$slots,`default`)]),_:3},16,[`rel`,`target`]))}}
1,q={base:`outline-primary/25 focus-visible:outline-3 rounded-md`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},J=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},locale:{type:[Boolean,String],required:!1,default:void 0},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(y){let C=y,E=p(),O=v(),k=e(),A=D(w(C,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`locale`,`class`)),j=a(()=>S({extend:q,...h({variants:{active:{true:x(O.ui?.link?.variants?.active?.true,C.activeClass),false:x(O.ui?.link?.variants?.active?.false,C.inactiveClass)}}},O.ui?.link||{})})),M=a(()=>{let e=C.to??C.href;if(!e||typeof e!=`string`||C.external||m(e,{acceptRelative:!0})||C.locale===!1)return e;let t=k.$localePath;if(!t)return e;let n=k.$i18n?.localeCodes?.value;return n?.length&&RegExp(`^/(${n.join(`|`)})($|[/?#])`).test(e)?e:t(e,typeof C.locale==`string`?C.locale:void 0)||e}),N=a(()=>!M.value||C.external?!1:typeof M.value!=`string`||!(m(M.value,{acceptRelative:!0})||C.target&&C.target!==`_self`)),P=a(()=>C.noRel?null:C.rel===void 0?!N.value||C.target&&C.target!==`_self`?`noopener noreferrer`:null:C.rel||null);function F({route:e,isActive:t,isExactActive:n}={}){if(C.active!==void 0)return C.active;if(!M.value)return!1;if(C.exactQuery===`partial`){if(!B(e.query,E.query))return!1}else if(C.exactQuery===!0&&!b(e.query,E.query))return!1;return C.exactHash&&e.hash!==E.hash?!1:!!(C.exact&&n||!C.exact&&t)}function I({route:e,isActive:t,isExactActive:n,prefetched:r}={}){let i=F({route:e,isActive:t,isExactActive:n}),a=r?C.prefetchedClass:void 0;return C.raw?[C.class,i?C.activeClass:C.inactiveClass,a]:j.value({class:a?[C.class,a]:C.class,active:i,disabled:C.disabled})}let L=n(),R;function z(){R?.prefetch?.(k)}function U({prefetch:e,shouldPrefetch:t},n){if(!(!e||!t)&&(R={prefetch:e,shouldPrefetch:t},t(`interaction`)))return i({onPointerenter:n.onPointerenter,onFocus:n.onFocus},{onPointerenter:z,onFocus:z})}let W,J=null,Y=!1;return r(()=>{if(!R?.shouldPrefetch?.(`visibility`))return;let e=L?.proxy?.$el,t=e instanceof Element?e:e?.nextElementSibling;t&&g(()=>{Y||(W=V(()=>{J=G(t,()=>{J?.(),J=null,z()})}))})}),o(()=>{Y=!0,H(W),J?.(),J=null}),(e,n)=>{let r=_;return N.value?(s(),u(r,i({key:0},t(A),{to:M.value,custom:``}),{default:c(({href:n,navigate:r,route:a,isActive:o,isExactActive:p,...m})=>[y.custom?(s(),u(t(T),{key:0},{default:c(()=>[d(e.$slots,`default`,l(f({...e.$attrs,...y.exact&&p?{"aria-current":C.ariaCurrentValue}:{},...m.prefetched&&y.prefetchedClass?{class:y.prefetchedClass}:{},...U(m,e.$attrs),as:y.as,type:y.type,disabled:y.disabled,href:n,navigate:r,rel:P.value,target:m.target,isExternal:m.isExternal,active:F({route:a,isActive:o,isExactActive:p})})))]),_:2},1024)):(s(),u(K,i({key:1},{...e.$attrs,...y.exact&&p?{"aria-current":C.ariaCurrentValue}:{},as:y.as,type:y.type,disabled:y.disabled,href:n,navigate:r,rel:P.value,target:m.target,isExternal:m.isExternal,...U(m,e.$attrs)},{class:I({route:a,isActive:o,isExactActive:p,prefetched:m.prefetched}
1)}),{default:c(()=>[d(e.$slots,`default`,{active:F({route:a,isActive:o,isExactActive:p})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])):y.custom?(s(),u(t(T),{key:1},{default:c(()=>[d(e.$slots,`default`,l(f({...e.$attrs,as:y.as,type:y.type,disabled:y.disabled,...M.value?{href:String(M.value),target:C.target,rel:P.value,isExternal:!0}:{},active:y.active??!1})))]),_:3})):(s(),u(K,i({key:2},{...e.$attrs,as:y.as,type:y.type,disabled:y.disabled,...M.value?{href:String(M.value),target:C.target,rel:P.value,isExternal:!0}:{}},{class:I()}),{default:c(()=>[d(e.$slots,`default`,{active:y.active??!1})]),_:3},16,[`class`]))}}});export{K as n,z as r,J as t};

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