PageSourceSearch

https://petstory.ru/product-finder/_nuxt/Bry1NtI6.js

js petstory.ru collected 2026-10-01 10:39:32 UTC 40,329 bytes, 6 lines download raw bytes

1import{u as O,o as At,g as ze,a as Ot,b as Ft,w as Y,r as M,d as Ye,c as Dt,e as ct,f as $e,n as ue,h as pe,i as Pe,v as xe,j as te,k as ie,T as Ze,m as le,t as Je,l as Ke,p as It,q as Qe,s as Rt,x as Lt,y as Me,z,A as Ge,B as W,C as Pt,D as xt,E as et,F as dt,G as Mt,H as Te,I as Bt,J as Ne,K as Se,L as tt,M as Vt,N as Be,O as jt}from"./Cxdmyf11.js";function ft(t){return Ot()?(Ft(t),!0):!1}function vt(t){return typeof t=="function"?t():O(t)}const _t=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Kt=Object.prototype.toString,Gt=t=>Kt.call(t)==="[object Object]",Ht=()=>{};function Wt(t){return ze()}function zt(t,e){Wt()&&At(t,e)}function pt(t){var e;const a=vt(t);return(e=a?.$el)!=null?e:a}const Yt=_t?window:void 0;function Q(...t){let e,a,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([a,n,i]=t,e=Yt):[e,a,n,i]=t,!e)return Ht;Array.isArray(a)||(a=[a]),Array.isArray(n)||(n=[n]);const s=[],r=()=>{s.forEach(b=>b()),s.length=0},o=(b,f,T,k)=>(b.addEventListener(f,T,k),()=>b.removeEventListener(f,T,k)),l=Y(()=>[pt(e),vt(i)],([b,f])=>{if(r(),!b)return;const T=Gt(f)?{...f}:f;s.push(...a.flatMap(k=>n.map(I=>o(b,k,I,T))))},{immediate:!0,flush:"post"}),d=()=>{l(),r()};return ft(d),d}var bt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ae=bt.join(","),ht=typeof Element>"u",re=ht?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oe=!ht&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Fe=function(e,a){var n;a===void 0&&(a=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=i===""||i==="true",r=s||a&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Fe(e.parentNode));return r},$t=function(e){var a,n=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"contenteditable");return n===""||n==="true"},mt=function(e,a,n){if(Fe(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Ae));return a&&re.call(e,Ae)&&i.unshift(e),i=i.filter(n),i},De=function(e,a,n){for(var i=[],s=Array.from(e);s.length;){var r=s.shift();if(!Fe(r,!1))if(r.tagName==="SLOT"){var o=r.assignedElements(),l=o.length?o:r.children,d=De(l,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:r,candidates:d})}else{var b=re.call(r,Ae);b&&n.filter(r)&&(a||!e.includes(r))&&i.push(r);var f=r.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(r),T=!Fe(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(f&&T){var k=De(f===!0?r.children:f.children,!0,n);n.flatten?i.push.apply(i,k):i.push({scopeParent:r,candidates:k})}else s.unshift.apply(s,r.children)}}return i},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ae=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||$t(e))&&!yt(e)?0:e.tabIndex},Ut=function(e,a){var n=ae(e);return n<0&&a&&!yt(e)?0:n},qt=function(e,a){return e.tabIndex===a.tabIndex?e.documentOrder-a.documentOrder:e.tabIndex-a.tabIndex},gt=function(e){return e.tagName==="INPUT"},Xt=function(e){return gt(e)&&e.type==="hidden"},Zt=function(e){var a=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return a},Jt=function(e,a){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===a)return e[n]},Qt=function(e){if(!e.name)return!0;var a=e.form||Oe(e),n=function(o){return a.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var s=Jt(i,e.form);return!s||s===e},ea=function(e){return gt(e)&&e.type==="radio"},ta=function(e){return ea(e)&&!Qt(e)},aa=function(e){var a,n=e&&Oe(e),i=(a=n)===null||a===void 0?void 0:a.host,s=!1;if(n&&n!==e){var r,o,l;for(s=!!((r=i)!==null&&r!==void 0&&(o=r.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&i;){var d,b,f;n=Oe(i),i=(d=n)===null||d===void 0?void 0:d.host,s=!!((b=i)!==null&&b!==void 0&&(f=b.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return s},at=function(e){var a=e.getBoundingClientRect(),n=a.width,i=a.height;return n===0&&i===0},na=function(e,a){var n=a.displayCheck,i=a.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var r=getComputedStyle(e),o=r.visibility;if(o==="hidden"||o==="collapse")return!0;var l=re.call(e,"details>summary:first-of-type"),d=l?e.parentElement:e;if(re.call(d,"details:not([open]) *"))return!0;
vendor: 6,578 bytes, lines 1-3
1if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var b=e;e;){var f=e.parentElement,T=Oe(e);if(f&&!f.shadowRoot&&i(f)===!0)return at(e);e.assignedSlot?e=e.assignedSlot:!f&&T!==e.ownerDocument?e=T.host:e=f}e=b}if(aa(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return at(e);return!1},ra=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var a=e.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var n=0;n<a.children.length;n++){var i=a.children.item(n);if(i.tagName==="LEGEND")return re.call(a,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}a=a.parentElement}return!1},Ie=function(e,a){return!(a.disabled||Xt(a)||na(a,e)||Zt(a)||ra(a))},He=function(e,a){return!(ta(a)||ae(a)<0||!Ie(e,a))},oa=function(e){var a=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},wt=function(e){var a=[],n=[];return e.forEach(function(i,s){var r=!!i.scopeParent,o=r?i.scopeParent:i,l=Ut(o,r),d=r?wt(i.candidates):o;l===0?r?a.push.apply(a,d):a.push(o):n.push({documentOrder:s,tabIndex:l,item:i,isScope:r,content:d})}),n.sort(qt).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(a)},ia=function(e,a){a=a||{};var n;return a.getShadowRoot?n=De([e],a.includeContainer,{filter:He.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:oa}):n=mt(e,a.includeContainer,He.bind(null,a)),wt(n)},la=function(e,a){a=a||{};var n;return a.getShadowRoot?n=De([e],a.includeContainer,{filter:Ie.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):n=mt(e,a.includeContainer,Ie.bind(null,a)),n},oe=function(e,a){if(a=a||{},!e)throw new Error("No node provided");return re.call(e,Ae)===!1?!1:He(a,e)},ua=bt.concat("iframe:not([inert]):not([inert] *)").join(","),Ve=function(e,a){if(a=a||{},!e)throw new Error("No node provided");return re.call(e,ua)===!1?!1:Ie(a,e)};function We(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}function sa(t){if(Array.isArray(t))return We(t)}function nt(t,e){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=Tt(t))||e){a&&(t=a);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,r=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var l=a.next();return r=l.done,l},e:function(l){o=!0,s=l},f:function(){try{r||a.return==null||a.return()}finally{if(o)throw s}}}}function ca(t,e,a){return(e=ba(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function da(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,n)}return a}function ot(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?rt(Object(a),!0).forEach(function(n){ca(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):rt(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function va(t){return sa(t)||da(t)||Tt(t)||fa()}function pa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var n=a.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ba(t){var e=pa(t,"string");return typeof e=="symbol"?e:e+""}function Tt(t,e){if(t){if(typeof t=="string")return We(t,e);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?We(t,e):void 0}}var Z={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,a){var n=Z.getActiveTrap(e);a!==n&&Z.pauseTrap(e);var i=e.indexOf(a);i===-1||e.splice(i,1),e.push(a)},deactivateTrap:function(e,a){var n=e.indexOf(a);n!==-1&&e.splice(n,1),Z.unpauseTrap(e)},pauseTrap:function(e){var a=Z.getActiveTrap(e);a?._setPausedState(!0)},unpauseTrap:function(e){var a=Z.getActiveTrap(e);a&&!a._isManuallyPaused()&&a._setPausedState(!1)}},ha=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},ma=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},be=function(e){return e?.key==="Tab"||e?.keyCode===9},ya=function(e){return be(e)&&!e.shiftKey},ga=function(e){return be(e)&&e.shiftKey},it=function(e){return setTimeout(e,0)},de=function(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},Ee=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},wa=[],Ta=function(e,a){var n=a?.document||document,i=a?.trapStack||wa,s=ot({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:ya,isKeyBackward:ga},a),r={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,c,v){return u&&u[c]!==void 0?u[c]:s[v||c]},d=function(u,c){var v=typeof c?.composedPath=="function"?c.composedPath():void 0;return r.containerGroups.findIndex(function(g){var y=g.container,w=g.tabbableNodes;return y.contains(u)||v?.includes(y)||w.find(function(m){return m===u})})},b=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=c.hasFallback,g=v===void 0?!1:v,y=c.params,w=y===void 0?[]:y,m=s[u];if(typeof m=="function"&&(m=m.apply(void 0,va(w))),m===!0&&(m=void 0),!m){if(m===void 0||m===!1)return m;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var E=m;if(typeof m=="string"){try{E=n.querySelector(m)}catch(N){throw new Error("`".concat(u,'` appears to be an invali
3d selector; error="').concat(N.message,'"'))}if(!E&&!g)throw new Error("`".concat(u,"` as selector refers to no known node"))}return E},f=function(){var u=b("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Ve(u,s.tabbableOptions))if(d(n.activeElement)>=0)u=n.activeElement;else{var c=r.tabbableGroups[0],v=c&&c.firstTabbableNode;u=v||b("fallbackFocus")}else u===null&&(u=b("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},T=function(){if(r.containerGroups=r.containers.map(function(u){var c=ia(u,s.tabbableOptions),v=la(u,s.tabbableOptions),g=c.length>0?c[0]:void 0,y=c.length>0?c[c.length-1]:void 0,w=v.find(function(N){return oe(N)}),m=v.slice().reverse().find(function(N){return oe(N)}),E=!!c.find(function(N){return ae(N)>0});return{container:u,tabbableNodes:c,focusableNodes:v,posTabIndexesFound:E,firstTabbableNode:g,lastTabbableNode:y,firstDomTabbableNode:w,lastDomTabbableNode:m,nextTabbableNode:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=c.indexOf(x);return G<0?j?v.slice(v.indexOf(x)+1).find(function(U){return oe(U)}):v.slice(0,v.indexOf(x)).reverse().find(function(U){return oe(U)}):c[G+(j?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(u){return u.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},k=function(u){var c=u.activeElement;if(c)return c.shadowRoot&&c.shadowRoot.activeElement!==null?k(c.shadowRoot):c},I=function(u){if(u!==!1&&u!==k(document)){if(!u||!u.focus){I(f());return}u.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=u,ha(u)&&u.select()}},_=function(u){var c=b("setReturnFocus",{params:[u]});return c||(c===!1?!1:u)},B=function(u){var c=u.target,v=u.event,g=u.isBackward,y=g===void 0?!1:g;c=c||Ee(v),T();var w=null;if(r.tabbableGroups.length>0){var m=d(c,v),E=m>=0?r.containerGroups[m]:void 0;if(m<0)y?w=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:w=r.tabbableGroups[0].firstTabbableNode;else if(y){var N=r.tabbableGroups.findIndex(function(ce){var h=ce.firstTabbableNode;return c===h});if(N<0&&(E.container===c||Ve(c,s.tabbableOptions)&&!oe(c,s.tabbableOptions)&&!E.nextTabbableNode(c,!1))&&(N=m),N>=0){var x=N===0?r.tabbableGroups.length-1:N-1,j=r.tabbableGroups[x];w=ae(c)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else be(v)||(w=E.nextTabbableNode(c,!1))}else{var G=r.tabbableGroups.findIndex(function(ce){var h=ce.lastTabbableNode;return c===h});if(G<0&&(E.container===c||Ve(c,s.tabbableOptions)&&!oe(c,s.tabbableOptions)&&!E.nextTabbableNode(c))&&(G=m),G>=0){var U=G===r.tabbableGroups.length-1?0:G+1,q=r.tabbableGroups[U];w=ae(c)>=0?q.firstTabbableNode:q.firstDomTabbableNode}else be(v)||(w=E.nextTabbableNode(c))}}else w=b("fallbackFocus");return w},C=function(u){var c=Ee(u);if(!(d(c,u)>=0)){if(de(s.clickOutsideDeactivates,u)){o.deactivate({returnFocus:s.returnFocusOnDeactivate});return}de(s.allowOutsideClick,u)||u.preventDefault()}},K=function(u){var c=Ee(u),v=d(c,u)>=0;if(v||c instanceof Document)v&&(r.mostRecentlyFocusedNode=c);else{u.stopImmediatePropagation();var g,y=!0;if(r.mostRecentlyFocusedNode)if(ae(r.mostRecentlyFocusedNode)>0){var w=d(r.mostRecentlyFocusedNode),m=r.containerGroups[w].tabbableNodes;if(m.length>0){var E=m.findIndex(function(N){return N===r.mostRecentlyFocusedNode});E>=0&&(s.isKeyForward(r.recentNavEvent)?E+1<m.length&&(g=m[E+1],y=!1):E-1>=0&&(g=m[E-1],y=!1))}}else r.containerGroups.some(function(N){return N.tabbableNodes.some(function(x){return ae(x)>0})})||(y=!1);else y=!1;y&&(g=B({target:r.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(r.recentNavEvent)})),I(g||r.mostRecentlyFocusedNode||f())}r.recentNavEvent=void 0},V=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=u;var v=B({event:u,isBackward:c});v&&(be(u)&&u.preventDefault(),I(v))},H=function(u){(s.isKeyForward(u)||s.isKeyBackward(u))&&V(u,s.isKeyBackward(u))},p=function(u){ma(u)&&de(s.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},F=function(u){var c=Ee(u);d(c,u)>=0||de(s.clickOutsideDeactivates,u)||de(s.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},S=function(){if(r.active)return Z.activateTrap(i,o),r.delayInitialFocusTimer=s.delayInitialFocus?it(function(){I(f())}):I(f()),n.addEventListener("focusin",K,!0),n.addEventListener("mousedown",C,{capture:!0,passive:!1}),n.addEventListener("touchstart",C,{capture:!0,passive:!1}),n.addEventListener("click",F,{capture:!0,passive:!1}),n.addEventListener("keydown",H,{capture:!0,passive:!1}),n.addEventListener("keydown",p),o},P=function(u){r.active&&!r.paused&&o._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var c=new Set,v=new Set,g=nt(u),y;try{for(g.s();!(y=g.n()).done;){var w=y.value;c.add(w);for(var m=typeof ShadowRoot<"u"&&w.getRootNode()instanceof ShadowRoot,E=w;E;){c.add(E);var N=E.parentElement,x=[];N?x=N.children:!N&&m&&(x=E.getRootNode().children,N=E.getRootNode().host,m=typeof ShadowRoot<"u"&&N.getRootNode()instanceof ShadowRoot);var j=nt(x),G;try{for(j.s();!(G=j.n()).done;){var U=G.value;v.add(U)}}catch(q){j.e(q)}finally{j.f()}E=N}}}catch(q){g.e(q)}finally{g.f()}c.forEach(function(q){v.delete(q)}),r.adjacentElements=v},R=function(){if(r.active)return n.removeEventListener("focusin",K,!0),n.removeEventListener("mousedown",C,!0),n.removeEventListener("touchstart",C,!0),n.removeEventListener("click",F,!0),n.removeEventListener("keydown",H,!0),n.removeEventListener("keydown",p),o},se=function(u){var c=u.some(function(v){var g=Array.from(v.removedNodes
3);return g.some(function(y){return y===r.mostRecentlyFocusedNode})});c&&I(f())},J=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(se):void 0,$=function(){J&&(J.disconnect(),r.active&&!r.paused&&r.containers.map(function(u){J.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return r.active},get paused(){return r.paused},activate:function(u){if(r.active)return this;var c=l(u,"onActivate"),v=l(u,"onPostActivate"),g=l(u,"checkCanFocusTrap"),y=Z.getActiveTrap(i),w=!1;if(y&&!y.paused){var m;(m=y._setSubtreeIsolation)===null||m===void 0||m.call(y,!1),w=!0}try{g||T(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=k(n),c?.();var E=function(){g&&T(),S(),$(),s.isolateSubtrees&&o._setSubtreeIsolation(!0),v?.()};if(g)return g(r.containers.concat()).then(E,E),this;E()}catch(x){if(y===Z.getActiveTrap(i)&&w){var N;(N=y._setSubtreeIsolation)===null||N===void 0||N.call(y,!0)}throw x}return this},deactivate:function(u){if(!r.active)return this;var c=ot({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},u);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||o._setSubtreeIsolation(!1),r.alreadySilent.clear(),R(),r.active=!1,r.paused=!1,$(),Z.deactivateTrap(i,o);var v=l(c,"onDeactivate"),g=l(c,"onPostDeactivate"),y=l(c,"checkCanReturnFocus"),w=l(c,"returnFocus","returnFocusOnDeactivate");v?.();var m=function(){it(function(){w&&I(_(r.nodeFocusedBeforeActivation)),g?.()})};return w&&y?(y(_(r.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(u){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return r.active?(r.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var c=[].concat(u).filter(Boolean);return r.containers=c.map(function(v){return typeof v=="string"?n.querySelector(v):v}),s.isolateSubtrees&&P(r.containers),r.active&&(T(),s.isolateSubtrees&&!r.paused&&o._setSubtreeIsolation(!0)),$(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(u,c){if(r.paused===u)return this;if(r.paused=u,u){var v=l(c,"onPause"),g=l(c,"onPostPause");v?.(),R(),$(),o._setSubtreeIsolation(!1),g?.()}else{var y=l(c,"onUnpause"),w=l(c,"onPostUnpause");y?.(),o._setSubtreeIsolation(!0),T(),S(),$(),w?.()}return this}},_setSubtreeIsolation:{value:function(u){s.isolateSubtrees&&r.adjacentElements.forEach(function(c){var v;u?s.isolateSubtrees==="aria-hidden"?((c.ariaHidden==="true"||((v=c.getAttribute("aria-hidden"))===null||v===void 0?void 0:v.toLowerCase())==="true")&&r.alreadySilent.add(c),c.setAttribute("aria-hidden","true")):((c.inert||c.hasAttribute("inert"))&&r.alreadySilent.add(c),c.setAttribute("inert",!0)):r.alreadySilent.has(c)||(s.isolateSubtrees==="aria-hidden"?c.removeAttribute("aria-hidden"):c.removeAttribute("inert"))})}}}),o.updateContainerElements(e),o};function Sa(t,e={}){let a;const{immediate:n,...i}=e,s=M(!1),r=M(!1),o=f=>a&&a.activate(f),l=f=>a&&a.deactivate(f),d=()=>{a&&(a.pause(),r.value=!0)},b=()=>{a&&(a.unpause(),r.value=!1)};return Y(()=>pt(t),f=>{f&&(a=Ta(f,{...i,onActivate(){s.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){s.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),ft(()=>l()),{hasFocus:s,isPaused:r,activate:o,deactivate:l,pause:d,unpause:b}}const Ea=t=>(...e)=>{t&&(t?.(...e),t=null)},we=()=>{};function ke(t,e,a){return t>a?a:t<e?e:t}const Ue=t=>typeof t=="string";function je(t,e){var a;const n=((a=ve(t,e))==null?void 0:a[0])||e;t.push(n)}function ve(t,e){const a=t.indexOf(e);if(a!==-1)return t.splice(a,1)}function St(t){return Object.entries(t)}const ka={teleportTo:{type:[String,null,Boolean,Object],default:"body"},modalId:{type:[String,Number,Symbol],default:void 0},modelValue:{type:Boolean,default:void 0},displayDirective:{type:String,default:"if",validator:t=>["if","show","visible"].includes(t)},hideOverlay:{type:Boolean,default:void 0},overlayBehavior:{type:String,default:"auto",validator:t=>["auto","persist"].includes(t)},overlayTransition:{type:[String,Object],default:void 0},contentTransition:{type:[String,Object],default:void 0},overlayClass:{type:void 0,default:void 0},contentClass:{type:void 0,default:void 0},overlayStyle:{type:[String,Object,Array],default:void 0},contentStyle:{type:[String,Object,Array],default:void 0},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!0},background:{type:String,default:"non-interactive",validator:t=>["interactive","non-interactive"].includes(t)},focusTrap:{type:[Boolean,Object],default:()=>({allowOutsideClick:!0})},lockScroll:{type:Boolean,default:!0},reserveScrollBarGap:{type:Boolean,default:!0},zIndexFn:{type:Function,default:({index:t})=>1e3+2*t},swipeToClose:{type:String,default:"none",validator:t=>["none","up","right","down","left"].includes(t)},threshold:{type:Number,default:0},showSwipeBanner:{type:Boolean,default:void 0},preventNavigationGestures:{type:Boolean,default:void 0}};function lt(t=!1){const e=M(t),a=M(e.value?0:void 0);return[e,a,{beforeEnter(){a.value=1},afterEnter(){a.value=0},beforeLeave(){a.value=3},afterLeave(){a.value=2}}]}function Na(t,e){const{modelValueLocal:a,onEntering:n,onEnter:i,onLeaving:s,onLeave:r}=e,o=M(a.value),[l,d,b]=lt(o.value),[f,T,k]=lt(o.value),I=z(()=>
3typeof t.contentTransition=="string"?{name:t.contentTransition,appear:!0}:{appear:!0,...t.contentTransition}),_=z(()=>typeof t.overlayTransition=="string"?{name:t.overlayTransition,appear:!0}:{appear:!0,...t.overlayTransition}),B=z(()=>(t.hideOverlay||T.value===2)&&d.value===2);Y(B,V=>{V&&(o.value=!1)}),Y(d,V=>{if(V===1){if(!o.value)return;n?.()}else if(V===0){if(!o.value)return;i?.()}else V===3?s?.():V===2&&r?.()});async function C(){o.value=!0,await ue(),l.value=!0,f.value=!0}function K(){l.value=!1,f.value=!1}return{visible:o,contentVisible:l,contentListeners:b,contentTransition:I,overlayVisible:f,overlayListeners:k,overlayTransition:_,enterTransition:C,leaveTransition:K}}function Ca(t,e,a){const{vfmRootEl:n,vfmContentEl:i,visible:s,modelValueLocal:r}=a,o=M();function l(){s.value&&t.escToClose&&(r.value=!1)}function d(f){o.value=f?.target}function b(){var f;o.value===n.value&&(t.clickToClose?r.value=!1:((f=i.value)==null||f.focus(),e("clickOutside")))}return{onEsc:l,onMouseupRoot:b,onMousedown:d}}function Aa(t,e,a){let n=!1;const{open:i,close:s}=a,r=M(!1),o={get value(){return r.value},set value(d){l(d)}};function l(d){(d?i():s())?(r.value=d,d!==t.modelValue&&e("update:modelValue",d)):(n=!0,e("update:modelValue",!d),ue(()=>{n=!1}))}return Y(()=>t.modelValue,d=>{n||(o.value=!!d)}),{modelValueLocal:o}}function Oa(t,e){if(t.focusTrap===!1)return{focus(){},blur(){}};const{focusEl:a}=e,{hasFocus:n,activate:i,deactivate:s}=Sa(a,t.focusTrap);function r(){requestAnimationFrame(()=>{i()})}function o(){n.value&&s()}return{focus:r,blur:o}}let qe=!1;if(typeof window<"u"){const t={get passive(){qe=!0}};window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}const Et=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);let ee=[],Re=!1,Ce=0,kt=-1,he,me;const Fa=t=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["auto","scroll"].includes(e.overflowY)&&t.scrollHeight>t.clientHeight},Da=(t,e)=>!(t.scrollTop===0&&e<0||t.scrollTop+t.clientHeight+e>=t.scrollHeight&&e>0),Ia=t=>{const e=[];for(;t;){if(e.push(t),t.classList.contains("vfm"))return e;t=t.parentElement}return e},Ra=(t,e)=>{let a=!1;return Ia(t).forEach(n=>{Fa(n)&&Da(n,e)&&(a=!0)}),a},Nt=t=>ee.some(()=>Ra(t,-Ce)),Xe=t=>{const e=t||window.event;return Nt(e.target)||e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)},La=t=>{if(me===void 0){const e=!!t&&t.reserveScrollBarGap===!0,a=window.innerWidth-document.documentElement.clientWidth;if(e&&a>0){const n=parseInt(getComputedStyle(document.body).getPropertyValue("padding-right"),10);me=document.body.style.paddingRight,document.body.style.paddingRight=`${n+a}px`}}he===void 0&&(he=document.body.style.overflow,document.body.style.overflow="hidden")},Pa=()=>{me!==void 0&&(document.body.style.paddingRight=me,me=void 0),he!==void 0&&(document.body.style.overflow=he,he=void 0)},xa=t=>t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1,Ma=(t,e)=>(Ce=t.targetTouches[0].clientY-kt,Nt(t.target)?!1:e&&e.scrollTop===0&&Ce>0||xa(e)&&Ce<0?Xe(t):(t.stopPropagation(),!0)),Ba=(t,e)=>{if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(ee.some(n=>n.targetElement===t))return;const a={targetElement:t,options:e||{}};ee=[...ee,a],Et?(t.ontouchstart=n=>{n.targetTouches.length===1&&(kt=n.targetTouches[0].clientY)},t.ontouchmove=n=>{n.targetTouches.length===1&&Ma(n,t)},Re||(document.addEventListener("touchmove",Xe,qe?{passive:!1}:void 0),Re=!0)):La(e)},Va=t=>{if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}ee=ee.filter(e=>e.targetElement!==t),Et?(t.ontouchstart=null,t.ontouchmove=null,Re&&ee.length===0&&(document.removeEventListener("touchmove",Xe,qe?{passive:!1}:void 0),Re=!1)):ee.length||Pa()};function ja(t,e){const{lockScrollEl:a,modelValueLocal:n}=e;let i;Y(a,o=>{o&&(i=o)},{immediate:!0}),Y(()=>t.lockScroll,o=>{o?r():s()}),$e(()=>{s()});function s(){i&&Va(i)}function r(){n.value&&t.lockScroll&&i&&Ba(i,{reserveScrollBarGap:t.reserveScrollBarGap,allowTouchMove:o=>{for(;o&&o!==document.body;){if(o.getAttribute("vfm-scroll-lock-ignore")!==null)return!0;o=o.parentElement}return!1}})}return{enableBodyScroll:s,disableBodyScroll:r}}function _a(t){const e=M();function a(i){var s;e.value=(s=t.zIndexFn)==null?void 0:s.call(t,{index:i<=-1?0:i})}function n(){e.value=void 0}return{zIndex:e,refreshZIndex:a,resetZIndex:n}}const _e={beforeMount(t,{value:e},{transition:a}){t._vov=t.style.visibility==="hidden"?"":t.style.visibility,a&&e?a.beforeEnter(t):fe(t,e)},mounted(t,{value:e},{transition:a}){a&&e&&a.enter(t)},updated(t,{value:e,oldValue:a},{transition:n}){!e!=!a&&(n?e?(n.beforeEnter(t),fe(t,!0),n.enter(t)):n.leave(t,()=>{fe(t,!1)}):fe(t,e))},beforeUnmount(t,{value:e}){fe(t,e)}};function fe(t,e){t.style.visibility=e?t._vov:"hidden"}const ut=t=>
3{if(t instanceof MouseEvent){const{clientX:e,clientY:a}=t;return{x:e,y:a}}else{const{clientX:e,clientY:a}=t.targetTouches[0];return{x:e,y:a}}};function Ka(t){if(!t)return!1;let e=!1;const a={get passive(){return e=!0,!1}};return t.addEventListener("x",we,a),t.removeEventListener("x",we),e}function Ga(t,{threshold:e=0,onSwipeStart:a,onSwipe:n,onSwipeEnd:i,passive:s=!0}){const r=Ge({x:0,y:0}),o=Ge({x:0,y:0}),l=z(()=>r.x-o.x),d=z(()=>r.y-o.y),{max:b,abs:f}=Math,T=z(()=>b(f(l.value),f(d.value))>=e),k=M(!1),I=z(()=>T.value?f(l.value)>f(d.value)?l.value>0?"left":"right":d.value>0?"up":"down":"none"),_=(S,P)=>{r.x=S,r.y=P},B=(S,P)=>{o.x=S,o.y=P};let C,K;function V(S){C.capture&&!C.passive&&S.preventDefault();const{x:P,y:R}=ut(S);_(P,R),B(P,R),a?.(S),K=[Q(t,"mousemove",H,C),Q(t,"touchmove",H,C),Q(t,"mouseup",p,C),Q(t,"touchend",p,C),Q(t,"touchcancel",p,C)]}function H(S){const{x:P,y:R}=ut(S);B(P,R),!k.value&&T.value&&(k.value=!0),k.value&&n?.(S)}function p(S){k.value&&i?.(S,I.value),k.value=!1,K.forEach(P=>P())}let F=[];return ct(()=>{const S=Ka(window?.document);s?C=S?{passive:!0}:{capture:!1}:C=S?{passive:!1,capture:!0}:{capture:!0},F=[Q(t,"mousedown",V,C),Q(t,"touchstart",V,C)]}),{isSwiping:k,direction:I,coordsStart:r,coordsEnd:o,lengthX:l,lengthY:d,stop:()=>{F.forEach(S=>S()),K.forEach(S=>S())}}}function Ha(t,e){const{vfmContentEl:a,modelValueLocal:n}=e,i=.1,s=300,r=M(),o=z(()=>{if(!(t.swipeToClose===void 0||t.swipeToClose==="none"))return t.showSwipeBanner?r.value:a.value}),l=M(0),d=M(!0);let b=we,f=!0,T,k=!1;const{lengthX:I,lengthY:_,direction:B,isSwiping:C}=Ga(o,{threshold:t.threshold,onSwipeStart(p){b=Q(document,"selectionchange",()=>{var F;d.value=(F=window.getSelection())==null?void 0:F.isCollapsed}),T=new Date().getTime(),k=H(p?.target)},onSwipe(){var p,F,S,P;if(k&&d.value&&B.value===t.swipeToClose){if(B.value==="up"){const R=ke(Math.abs(_.value||0),0,((p=o.value)==null?void 0:p.offsetHeight)||0)-(t.threshold||0);l.value=R}else if(B.value==="down"){const R=ke(Math.abs(_.value||0),0,((F=o.value)==null?void 0:F.offsetHeight)||0)-(t.threshold||0);l.value=-R}else if(B.value==="right"){const R=ke(Math.abs(I.value||0),0,((S=o.value)==null?void 0:S.offsetWidth)||0)-(t.threshold||0);l.value=-R}else if(B.value==="left"){const R=ke(Math.abs(I.value||0),0,((P=o.value)==null?void 0:P.offsetWidth)||0)-(t.threshold||0);l.value=R}}},onSwipeEnd(p,F){if(b(),!d.value){d.value=!0;return}const S=new Date().getTime(),P=F===t.swipeToClose,R=(()=>{var J,$;if(F==="up"||F==="down")return Math.abs(_?.value||0)>i*(((J=o.value)==null?void 0:J.offsetHeight)||0);if(F==="left"||F==="right")return Math.abs(I?.value||0)>i*((($=o.value)==null?void 0:$.offsetWidth)||0)})(),se=S-T<=s;if(f&&k&&P&&(R||se)){n.value=!1;return}l.value=0}}),K=z(()=>{if(t.swipeToClose==="none")return;const p=(()=>{switch(t.swipeToClose){case"up":case"down":return"translateY";case"left":case"right":return"translateX"}})();return{class:{"vfm-bounce-back":!C.value},style:{transform:`${p}(${-l.value}px)`}}});Y(()=>d.value,p=>{p||(l.value=0)}),Y(()=>n.value,p=>{p&&(l.value=0)}),Y(()=>l.value,(p,F)=>{switch(t.swipeToClose){case"down":case"right":f=p<F;break;case"up":case"left":f=p>F;break}});function V(p){t.preventNavigationGestures&&p.preventDefault()}function H(p){const F=p?.tagName;if(!F||["INPUT","TEXTAREA"].includes(F))return!1;const S=(()=>{switch(t.swipeToClose){case"up":return p?.scrollTop+p?.clientHeight===p?.scrollHeight;case"left":return p?.scrollLeft+p?.clientWidth===p?.scrollWidth;case"down":return p?.scrollTop===0;case"right":return p?.scrollLeft===0;default:return!1}})();return p===o.value?S:S&&H(p?.parentElement)}return{vfmContentEl:a,swipeBannerEl:r,bindSwipe:K,onTouchStartSwipeBanner:V}}const Ct=Symbol("vfm");let ne;const Wa=t=>ne=t,za={install:we,modals:[],openedModals:[],openedModalOverlays:[],dynamicModals:[],modalsContainers:M([]),get:()=>{},toggle:()=>{},open:()=>{},close:()=>{},closeAll:()=>Promise.allSettled([])},Ya=()=>ze()&&Bt(Ct,za)||ne;function Za(){const t=Se([]),e=Se([]),a=Se([]),n=Se([]),i=M([]),s=Ne({install(r){r.provide(Ct,s),r.config.globalProperties.$vfm=s},modals:t,openedModals:e,openedModalOverlays:a,dynamicModals:n,modalsContainers:i,get(r){return t.find(o=>{var l,d;
3return((d=(l=ye(o))==null?void 0:l.value.modalId)==null?void 0:d.value)===r})},toggle(r,o){var l;const d=s.get(r);return(l=ye(d))==null?void 0:l.value.toggle(o)},open(r){return s.toggle(r,!0)},close(r){return s.toggle(r,!1)},closeAll(){return Promise.allSettled(e.reduce((r,o)=>{const l=ye(o),d=l?.value.toggle(!1);return d&&r.push(d),r},[]))}});return Wa(s),s}function ye(t){var e;return(e=t?.exposed)==null?void 0:e.modalExposed}const $a=Ye({inheritAttrs:!1}),Ua=Ye({...$a,__name:"VueFinalModal",props:ka,emits:["update:modelValue","beforeOpen","opened","beforeClose","closed","clickOutside"],setup(t,{expose:e,emit:a}){const n=t,i=a,s=Dt(),r=ze(),{modals:o,openedModals:l,openedModalOverlays:d}=ge(),b=M(),f=M(),{focus:T,blur:k}=Oa(n,{focusEl:b}),{zIndex:I,refreshZIndex:_,resetZIndex:B}=_a(n),{modelValueLocal:C}=Aa(n,i,{open:E,close:N}),{enableBodyScroll:K,disableBodyScroll:V}=ja(n,{lockScrollEl:b,modelValueLocal:C});let H=we;const{visible:p,contentVisible:F,contentListeners:S,contentTransition:P,overlayVisible:R,overlayListeners:se,overlayTransition:J,enterTransition:$,leaveTransition:A}=Na(n,{modelValueLocal:C,onEntering(){ue(()=>{V(),T()})},onEnter(){i("opened"),H("opened")},onLeave(){ve(l,r),B(),K(),i("closed"),H("closed")}}),{onEsc:u,onMouseupRoot:c,onMousedown:v}=Ca(n,i,{vfmRootEl:b,vfmContentEl:f,visible:p,modelValueLocal:C}),{swipeBannerEl:g,bindSwipe:y,onTouchStartSwipeBanner:w}=Ha(n,{vfmContentEl:f,modelValueLocal:C}),m=z(()=>r?l.indexOf(r):-1);Y([()=>n.zIndexFn,m],()=>{p.value&&_(m.value)}),ct(()=>{je(o,r)}),n.modelValue&&(C.value=!0);function E(){let h=!1;return i("beforeOpen",{stop:()=>h=!0}),h?!1:(je(l,r),je(d,r),j(),$(),!0)}function N(){let h=!1;return i("beforeClose",{stop:()=>h=!0}),h?!1:(ve(d,r),j(),k(),A(),!0)}function x(){C.value=!1}$e(()=>{K(),ve(o,r),ve(l,r),k(),j()});async function j(){await ue();const h=d.filter(D=>{var L;const X=ye(D);return X?.value.overlayBehavior.value==="auto"&&!((L=X?.value.hideOverlay)!=null&&L.value)});h.forEach((D,L)=>{const X=ye(D);X!=null&&X.value&&(X.value.overlayVisible.value=L===h.length-1)})}const G=Me(()=>n.modalId),U=Me(()=>n.hideOverlay),q=Me(()=>n.overlayBehavior),ce=z(()=>({modalId:G,hideOverlay:U,overlayBehavior:q,overlayVisible:R,toggle(h){return new Promise(D=>{H=Ea(X=>D(X));const L=typeof h=="boolean"?h:!C.value;C.value=L})}}));return e({modalExposed:ce}),(h,D)=>(W(),pe(Lt,{to:h.teleportTo?h.teleportTo:void 0,disabled:!h.teleportTo},[h.displayDirective!=="if"||O(p)?Pe((W(),te("div",le({key:0},O(s),{ref_key:"vfmRootEl",ref:b,class:["vfm vfm--fixed vfm--inset",{"vfm--prevent-none":h.background==="interactive"}],style:{zIndex:O(I)},role:"dialog","aria-modal":"true",onKeydown:D[7]||(D[7]=Rt(()=>O(u)(),["esc"])),onMouseup:D[8]||(D[8]=Qe(()=>O(c)(),["self"])),onMousedown:D[9]||(D[9]=Qe(L=>O(v)(L),["self"]))}),[U.value?ie("",!0):(W(),pe(Ze,le({key:0},O(J),Je(O(se))),{default:Ke(()=>[h.displayDirective!=="if"||O(R)?Pe((W(),te("div",{key:0,class:xt(["vfm__overlay vfm--overlay vfm--absolute vfm--inset vfm--prevent-none",h.overlayClass]),style:Pt(h.overlayStyle),"aria-hidden":"true"},null,6)),[[xe,h.displayDirective!=="show"||O(R)],[O(_e),h.displayDirective!=="visible"||O(R)]]):ie("",!0)]),_:1},16)),It(Ze,le(O(P),Je(O(S))),{default:Ke(()=>[h.displayDirective!=="if"||O(F)?Pe((W(),te("div",le({key:0,ref_key:"vfmContentEl",ref:f,class:["vfm__content vfm--outline-none",[h.contentClass,{"vfm--prevent-auto":h.background==="interactive"}]],style:h.contentStyle,tabindex:"0"},O(y),{onMousedown:D[6]||(D[6]=()=>O(v)())}),[et(h.$slots,"default",dt(Mt({close:x}))),h.showSwipeBanner?(W(),te("div",{key:0,ref_key:"swipeBannerEl",ref:g,class:"vfm-swipe-banner-container",onTouchstart:D[2]||(D[2]=L=>O(w)(L))},[et(h.$slots,"swipe-banner",{},()=>[Te("div",{class:"vfm-swipe-banner-back",onTouchstart:D[0]||(D[0]=L=>h.swipeToClose==="left"&&L.preventDefault())},null,32),Te("div",{class:"vfm-swipe-banner-forward",onTouchstart:D[1]||(D[1]=L=>h.swipeToClose==="right"&&L.preventDefault())},null,32)])],544)):!h.showSwipeBanner&&h.preventNavigationGestures?(W(),te("div",{key:1,class:"vfm-swipe-banner-container",onTouchstart:D[5]||(D[5]=L=>O(w)(L))},[Te("div",{class:"vfm-swipe-banner-back",onTouchstart:D[3]||(D[3]=L=>
3h.swipeToClose==="left"&&L.preventDefault())},null,32),Te("div",{class:"vfm-swipe-banner-forward",onTouchstart:D[4]||(D[4]=L=>h.swipeToClose==="right"&&L.preventDefault())},null,32)],32)):ie("",!0)],16)),[[xe,h.displayDirective!=="show"||O(F)],[O(_e),h.displayDirective!=="visible"||O(F)]]):ie("",!0)]),_:3},16)],16)),[[xe,h.displayDirective!=="show"||O(p)],[O(_e),h.displayDirective!=="visible"||O(p)]]):ie("",!0)],8,["to","disabled"]))}});function ge(){const t=Ya();if(!t)throw new Error(`[Vue Final Modal]: getActiveVfm was called with no active Vfm. Did you forget to install vfm?
4	const vfm = createVfm()
5	app.use(vfm)
6This will fail in production.`);return t}function st(t,e=Ua){const{component:a,slots:n,...i}=t,s=typeof n>"u"?{}:Object.fromEntries(St(n).map(([r,o])=>Ue(o)?[r,o]:Le(o)?[r,{...o,component:Ne(o.component)}]:[r,Ne(o)]));return{...i,component:Ne(a||e),slots:s}}function Ja(t){const e=Ge({id:Symbol("useModal"),modelValue:!!(t!=null&&t.defaultModelValue),resolveOpened:()=>{},resolveClosed:()=>{},attrs:{},...st(t)});zt(()=>{e!=null&&e.keepAlive||o()}),e.modelValue===!0&&(ne?ne?.dynamicModals.push(e):ue(()=>{const l=ge();l?.dynamicModals.push(e)}));async function a(){let l;return ne?l=ne:(await ue(),l=ge()),e.modelValue?Promise.resolve("[Vue Final Modal] modal is already opened."):(o(),e.modelValue=!0,l.dynamicModals.push(e),new Promise(d=>{e.resolveOpened=()=>d("opened")}))}function n(){return e.modelValue?(e.modelValue=!1,new Promise(l=>
6{e.resolveClosed=()=>l("closed")})):Promise.resolve("[Vue Final Modal] modal is already closed.")}function i(l){const{slots:d,...b}=st(l,e.component);l.defaultModelValue!==void 0&&(e.defaultModelValue=l.defaultModelValue),l?.keepAlive!==void 0&&(e.keepAlive=l?.keepAlive),s(e,b),d&&St(d).forEach(([f,T])=>{const k=e.slots[f];Ue(k)?e.slots[f]=T:Le(k)&&Le(T)?s(k,T):e.slots[f]=T})}function s(l,d){d.component&&(l.component=d.component),d.attrs&&r(l.attrs,d.attrs)}function r(l,d){return Object.entries(d).forEach(([b,f])=>{l[b]=f}),l}function o(){const l=ge(),d=l.dynamicModals.indexOf(e);d!==-1&&l.dynamicModals.splice(d,1)}return{options:e,open:a,close:n,patchOptions:i,destroy:o}}function Qa(t){return t}function Le(t){return typeof t=="object"&&t!==null?"component"in t:!1}const qa=["innerHTML"],en=Ye({__name:"ModalsContainer",setup(t){const{modalsContainers:e,dynamicModals:a}=ge(),n=Symbol("ModalsContainer"),i=z(()=>{var o;return n===((o=e.value)==null?void 0:o[0])});e.value.push(n),$e(()=>{e.value=e.value.filter(o=>o!==n)});function s(o){var l,d,b;(d=(l=a[o])==null?void 0:l.resolveClosed)==null||d.call(l),(b=a[o])!=null&&b.keepAlive||a.splice(o,1)}function r(o){var l,d;(d=(l=a[o])==null?void 0:l.resolveOpened)==null||d.call(l)}return(o,l)=>i.value?(W(!0),te(jt,{key:0},tt(O(a),(d,b)=>(W(),pe(Be(d.component),le({key:d.id},{displayDirective:d!=null&&d.keepAlive?"show":void 0,...typeof d.attrs=="object"?d.attrs:{}},{modelValue:d.modelValue,"onUpdate:modelValue":f=>d.modelValue=f,onClosed:()=>s(b),onOpened:()=>r(b)}),Vt({_:2},[tt(d.slots,(f,T)=>({name:T,fn:Ke(()=>[O(Ue)(f)?(W(),te("div",{key:0,innerHTML:f},null,8,qa)):O(Le)(f)?(W(),pe(Be(f.component),dt(le({key:1},f.attrs)),null,16)):(W(),pe(Be(f),{key:2}))])}))]),1040,["modelValue","onUpdate:modelValue","onClosed","onOpened"]))),128)):ie("",!0)}});export{Qa as $,Ja as G,Ua as R,en as W,Za as z};

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.