import{t as R,h as P,v as D,R as j,P as q,Q as A,S as k,M as G,D as F,y as Q,q as x,H as h,T as ,ドルK as w,u as U}from"./CzAdaxHH.js";function E(e,t){return j()?(q(e,t),!0):!1}const z=new WeakMap,K=(...e)=>{var t;const n=e[0],u=(t=A())===null||t===void 0?void 0:t.proxy,i=u??j();if(i==null&&!k())throw new Error("injectLocal must be called in setup");return i&&z.has(i)&&n in z.get(i)?z.get(i)[n]:G(...e)},Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalthis instanceof WorkerGlobalScope;const B=e=>e!=null,_=Object.prototype.toString,J=e=>_.call(e)==="[object Object]",I=()=>{};function V(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function W(e){return Array.isArray(e)?e:[e]}function X(e){const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}const Z=/-(\w)/g,ee=X(e=>e.replace(Z,(t,n)=>n?n.toUpperCase():""));function te(e){return A()}function ne(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let u=0;return{next:()=>({value:t[u++],done:u>t.length})}}}),n}else return Object.assign([...t],e)}function C(e,t=!0,n){te()?P(e,n):t?e():D(e)}function N(e,t,n){return R(e,t,{...n,immediate:!0})}function ae(e={}){const{inheritAttrs:t=!0,name:n="ReusableTemplate"}=e,u=h(),i=F({name:`${n}.define`,setup(s,{slots:l}){return()=>{u.value=l.default}}}),r=F({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(s,{attrs:l,slots:v}){return()=>{var a;if(!u.value)throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(a=u.value)===null||a===void 0?void 0:a.call(u,{...e.props==null?oe(l):s,$slots:v});return t&&c?.length===1?c[0]:c}}});return ne({define:i,reuse:r},[i,r])}function oe(e){const t={};for(const n in e)t[ee(n)]=e[n];return t}const y=Y?window:void 0;function m(e){var t;const n=w(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function M(...e){const t=(u,i,r,s)=>(u.addEventListener(i,r,s),()=>u.removeEventListener(i,r,s)),n=x(()=>{const u=W(w(e[0])).filter(i=>i!=null);return u.every(i=>typeof i!="string")?u:void 0});return N(()=>{var u,i;return[(u=(i=n.value)===null||i===void 0?void 0:i.map(r=>m(r)))!==null&&u!==void 0?u:[y].filter(r=>r!=null),W(w(n.value?e[1]:e[0])),W(U(n.value?e[2]:e[1])),w(n.value?e[3]:e[2])]},([u,i,r,s],l,v)=>{if(!u?.length||!i?.length||!r?.length)return;const a=J(s)?{...s}:s,c=u.flatMap(o=>i.flatMap(f=>r.map(d=>t(o,f,d,a))));v(()=>{c.forEach(o=>o())})},{flush:"post"})}function ie(){const e=h(!1),t=A();return t&&P(()=>{e.value=!0},t),e}function T(e){const t=ie();return x(()=>(t.value,!!e()))}function ue(e,t,n={}){const{window:u=y,...i}=n;let r;const s=T(()=>u&&"MutationObserver"in u),l=()=>{r&&(r.disconnect(),r=void 0)},v=R(x(()=>{const o=W(w(e)).map(m).filter(B);return new Set(o)}),o=>{l(),s.value&&o.size&&(r=new MutationObserver(t),o.forEach(f=>r.observe(f,i)))},{immediate:!0,flush:"post"}),a=()=>r?.takeRecords(),c=()=>{v(),l()};return E(c),{isSupported:s,stop:c,takeRecords:a}}function ce(e,t={}){const{immediate:n=!0,fpsLimit:u=null,window:i=y,once:r=!1}=t,s=h(!1),l=x(()=>{const d=w(u);return d?1e3/d:null});let v=0,a=null;function c(d){if(!s.value||!i)return;v||(v=d);const p=d-v;if(l.value&&pn&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=h(typeof u=="number"),s=h(),l=h(!1),v=a=>{l.value=a.matches};return Q(()=>{if(r.value){r.value=!i.value,l.value=w(e).split(",").some(a=>{const c=a.includes("not all"),o=a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(o||f);return o&&d&&(d=u>=V(o[1])),f&&d&&(d=u<=v(f[1])),c?!d:d});return}i.value&&(s.value=n.matchmedia(w(e)),l.value=s.value.matches)}),m(s,"change",v,{passive:!0}),x(()=>l.value)}function de(e={}){const{window:t=y}=e,n=h(1),u=H(()=>`(resolution: ${n.value}dppx)`,e);let i=I;return t&&(i=N(u,()=>n.value=t.devicePixelRatio)),{pixelRatio:$(n),stop:i}}function L(e,t,n={}){const{window:u=y,...i}=n;let r;const s=T(()=>u&&"ResizeObserver"in u),l=()=>{r&&(r.disconnect(),r=void 0)},v=R(x(()=>{const c=w(e);return Array.isArray(c)?c.map(o=>m(o)):[m(c)]}),c=>{if(l(),s.value&&u){r=new ResizeObserver(t);for(const o of c)o&&r.observe(o,i)}},{immediate:!0,flush:"post"}),a=()=>{l(),v()};return E(a),{isSupported:s,stop:a}}function ve(e,t={}){const{reset:n=!0,windowResize:u=!0,windowScroll:i=!0,immediate:r=!0,updateTiming:s="sync"}=t,l=h(0),v=h(0),a=h(0),c=h(0),o=h(0),f=h(0),d=h(0),p=h(0);function S(){const O=m(e);if(!O){n&&(l.value=0,v.value=0,a.value=0,c.value=0,o.value=0,f.value=0,d.value=0,p.value=0);return}const b=O.getBoundingClientRect();l.value=b.height,v.value=b.bottom,a.value=b.left,c.value=b.right,o.value=b.top,f.value=b.width,d.value=b.x,p.value=b.y}function g(){s==="sync"?S():s==="next-frame"&&requestAnimationFrame(()=>S())}return L(e,g),R(()=>m(e),O=>!O&&g()),ue(e,g,{attributeFilter:["style","class"]}),i&&M("scroll",g,{capture:!0,passive:!0}),u&&M("resize",g,{passive:!0}),C(()=>{r&&g()}),{height:l,bottom:v,left:a,right:c,top:o,width:f,x:d,y:p,update:g}}function fe(e,t={width:0,height:0},n={}){const{window:u=y,box:i="content-box"}=n,r=x(()=>{var o;return(o=m(e))===null||o===void 0||(o=o.namespaceURI)===null||o===void 0?void 0:o.includes("svg")}),s=h(t.width),l=h(t.height),{stop:v}=L(e,([o])=>{const f=i==="border-box"?o.borderBoxSize:i==="content-box"?o.contentBoxSize:o.devicePixelContentBoxSize;if(u&&r.value){const d=m(e);if(d){const p=d.getBoundingClientRect();s.value=p.width,l.value=p.height}}else if(f){const d=W(f);s.value=d.reduce((p,{inlineSize:S})=>p+S,0),l.value=d.reduce((p,{blockSize:S})=>p+S,0)}else s.value=o.contentRect.width,l.value=o.contentRect.height},n);C(()=>{const o=m(e);o&&(s.value="offsetWidth"in o?o.offsetWidth:t.width,l.value="offsetHeight"in o?o.offsetHeight:t.height)});const a=R(()=>m(e),o=>{s.value=o?t.width:0,l.value=o?t.height:0});function c(){v(),a()}return{width:s,height:l,stop:c}}function he(e,t,n={}){const{root:u,rootMargin:i,threshold:r=0,window:s=y,immediate:l=!0}=n,v=T(()=>s&&"IntersectionObserver"in s),a=x(()=>W(w(e)).map(m).filter(B));let c=I;const o=h(l),f=v.value?R(()=>[a.value,m(u),w(i),o.value],([p,S,g])=>{if(c(),!o.value||!p.length)return;const O=new IntersectionObserver(t,{root:m(S),rootMargin:g,threshold:r});p.forEach(b=>b&&O.observe(b)),c=()=>{O.disconnect(),c=I}},{immediate:l,flush:"post"}):I,d=()=>{c(),f(),o.value=!1};return E(d),{isSupported:v,isActive:o,pause(){c(),o.value=!1},resume(){o.value=!0},stop:d}}function pe(e={}){const{window:t=y,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:u=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0,type:s="inner"}=e,l=h(n),v=h(u),a=()=>{if(t)if(s==="outer")l.value=t.outerWidth,v.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:o,height:f,scale:d}=t.visualViewport;l.value=Math.round(o*d),v.value=Math.round(f*d)}else r?(l.value=t.innerWidth,v.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,v.value=t.document.documentElement.clientHeight)};a(),C(a);const c={passive:!0};return M("resize",a,c),t&&s==="visual"&&t.visualViewport&&M(t.visualViewport,"resize",a,c),i&&R(H("(orientation: portrait)"),()=>a()),{width:l,height:v}}export{H as a,ve as b,ae as c,fe as d,ce as e,he as f,de as g,pe as h,E as i,C as t,M as u};

AltStyle によって変換されたページ (->オリジナル) /