/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../shared/dist/index.js"),t=require("vue"),n=e.isClient?window:void 0,o=e.isClient?window.navigator:void 0;function a(e){var n;const o=t.toValue(e);return null!==(n=null==o?void 0:o.$el)&&void 0!==n?n:o}function i(...o){const i=t.computed(()=>{const n=e.toArray(t.toValue(o[0])).filter(e=>null!=e);return n.every(e=>"string"!=typeof e)?n:void 0});return e.watchImmediate(()=>{var r,u;return[null!==(r=null===(u=i.value)||void 0===u?void 0:u.map(e=>a(e)))&&void 0!==r?r:[n].filter(e=>null!=e),e.toArray(t.toValue(i.value?o[1]:o[0])),e.toArray(t.unref(i.value?o[2]:o[1])),t.toValue(i.value?o[3]:o[2])]},([t,n,o,a],i,r)=>{if(!(null==t?void 0:t.length)||!(null==n?void 0:n.length)||!(null==o?void 0:o.length))return;const u=e.isObject(a)?{...a}:a,l=t.flatMap(e=>n.flatMap(t=>o.map(n=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,t,n,u))));r(()=>{l.forEach(e=>e())})},{flush:"post"})}function r(){const e=t.shallowRef(!1),n=t.getCurrentInstance();return n&&t.onMounted(()=>{e.value=!0},n),e}function u(e){const n=r();return t.computed(()=>(n.value,Boolean(e())))}function l(n,a={}){const{controls:r=!1,navigator:l=o}=a,s=u(()=>l&&"permissions"in l),c=t.shallowRef(),d="string"==typeof n?{name:n}:n,p=t.shallowRef(),v=()=>{var e,t;p.value=null!==(e=null===(t=c.value)||void 0===t?void 0:t.state)&&void 0!==e?e:"prompt"};i(c,"change",v,{passive:!0});const f=e.createSingletonPromise(async()=>{if(s.value){if(!c.value)try{c.value=await l.permissions.query(d)}catch(e){c.value=void 0}finally{v()}return r?t.toRaw(c.value):void 0}});return f(),r?{state:p,isSupported:s,query:f}:p}const s={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]},c=Object.assign({},{linear:e.identity},s);function d([e,t,n,o]){const a=(e,t)=>1-3*t+3*e,i=(e,t)=>3*t-6*e,r=e=>3*e,u=(e,t,n)=>((a(t,n)*e+i(t,n))*e+r(t))*e,l=(e,t,n)=>3*a(t,n)*e*e+2*i(t,n)*e+r(t);return a=>e===t&&n===o?a:u((t=>{let o=t;for(let a=0;a<4;++a){const a=l(o,e,n);if(0===a)return o;o-=(u(o,e,n)-t)/a}return o})(a),t,o)}function p(e,t,n){return e+n*(t-e)}function v(e,n,o){const a=t.toValue(e),i=t.toValue(n);if("number"==typeof a&&"number"==typeof i)return p(a,i,o);if(Array.isArray(a)&&Array.isArray(i))return a.map((e,n)=>p(e,t.toValue(i[n]),o));throw new TypeError("Unknown transition type, specify an interpolation function.")}function f(n){var o;return"function"==typeof n?n:null!==(o=t.toValue(n))&&void 0!==o?o:e.identity}function y(e,o,a,i={}){var r;const{window:u=n}=i,l=t.toValue(o),s=t.toValue(a),c=null!==(r=t.toValue(i.duration))&&void 0!==r?r:1e3,p=Date.now(),y=Date.now()+c,m="function"==typeof i.interpolation?i.interpolation:v,w=void 0!==i.easing?f(i.easing):f(i.transition),x="function"==typeof w?w:d(w);return new Promise(t=>{e.value=l;const n=()=>{var o;if(null===(o=i.abort)||void 0===o?void 0:o.call(i))return void t();const a=Date.now();e.value=m(l,s,x((a-p)/c)),a<y?null==u||u.requestAnimationFrame(n):(e.value=s,t())};n()})}exports.createSingletonPromise=e.createSingletonPromise,exports.identity=e.identity,exports.isClient=e.isClient,exports.isObject=e.isObject,exports.promiseTimeout=e.promiseTimeout,exports.toArray=e.toArray,exports.tryOnScopeDispose=e.tryOnScopeDispose,exports.useTimeoutFn=e.useTimeoutFn,exports.watchImmediate=e.watchImmediate,exports.TransitionPresets=c,exports.defaultNavigator=o,exports.defaultWindow=n,exports.transition=y,exports.unrefElement=a,exports.useClipboard=function(n={}){const{navigator:a=o,read:r=!1,source:s,copiedDuring:c=1500,legacy:d=!1}=n,p=u(()=>a&&"clipboard"in a),v=l("clipboard-read"),f=l("clipboard-write"),y=t.computed(()=>p.value||d),m=t.shallowRef(""),w=t.shallowRef(!1),x=e.useTimeoutFn(()=>w.value=!1,c,{immediate:!1});function b(e){return"granted"===e||"prompt"===e}return y.value&&r&&i(["copy","cut"],async function(){let e=!(p.value&&b(v.value));if(!e)try{m.value=await a.clipboard.readText()}catch(i){e=!0}var t,n,o;e&&(m.value=null!==(t=null===(n=document)||void 0===n||null===(o=n.getSelection)||void 0===o||null===(o=o.call(n))||void 0===o?void 0:o.toString())&&void 0!==t?t:"")},{passive:!0}),{isSupported:y,text:t.readonly(m),copied:t.readonly(w),copy:async function(e=t.toValue(s)){if(y.value&&null!=e){let t=!(p.value&&b(f.value));if(!t)try{await a.clipboard.writeText(e)}catch(n){t=!0}t&&function(e){const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.opacity="0",t.setAttribute("readonly",""),document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),m.value=e,w.value=!0,x.start()}}}},exports.useEventListener=i,exports.useMounted=r,exports.usePermission=l,exports.useSupported=u,exports.useTransition=function(n,o={}){let a=0;const i=()=>{const e=t.toValue(n);return void 0===o.interpolation&&Array.isArray(e)?e.map(t.toValue):e},r=t.shallowRef(i());return t.watch(i,async n=>{var i,u;if(t.toValue(o.disabled))return;const l=++a;o.delay&&await e.promiseTimeout(t.toValue(o.delay)),l===a&&(null===(i=o.onStarted)||void 0===i||i.call(o),await y(r,r.value,n,{...o,abort:()=>{var e;return l!==a||(null===(e=o.abort)||void 0===e?void 0:e.call(o))}}),null===(u=o.onFinished)||void 0===u||u.call(o))},{deep:!0}),t.watch(()=>t.toValue(o.disabled),e=>{e&&(a++,r.value=i())}),e.tryOnScopeDispose(()=>{a++}),t.computed(()=>t.toValue(o.disabled)?i():r.value)};