youtuber-blog-frontend/build/client/_app/immutable/chunks/x.DX5gbQE3.js

13 lines
68 KiB
JavaScript
Raw Normal View History

2024-06-23 09:25:48 +00:00
import{d as Te,w as ne,a as Ne}from"./index.aejygcvy.js";import{r as oi,n as Q,h as cn,i as Y,w as fn,v as ri,x as Ce,u as ge,a as It,j as Tt,o as si,m as Ct,d as Qt,s as Re,e as Nt,p as ai,c as li,k as xt}from"./index.ClIX1ZeE.js";import{O as ui,N as Oe,ae as ci,ac as fi,s as Pt,c as G,u as X,g as Z,a as J,o as bt,F as ut,k as z,i as R,E as ct,y as L,z as Et,L as tt,e as nt,d as it,f as ot,D as M,v as rt,w as A,x as at,S,W as Bt,n as pe,ag as Ie,Y as di}from"./scheduler.TiWp2jL2.js";import{S as Ft,i as Dt,t as B,a as V,g as qt,e as Yt,h as fe,j as de,k as ie,c as hi,b as mi,m as bi,d as vi}from"./index.BGG1x4jY.js";import{g as x,a as gi}from"./spread.CgU5AtxT.js";import{a as Le,o as pi,c as _i,r as yi,g as wi,b as dn}from"./Toaster.svelte_svelte_type_style_lang.CL0N33eq.js";import{a as hn}from"./button.BSgz0N-_.js";import{I as Ti}from"./Icon.DZBLUDEC.js";function vs(e,t,n,i=!0){const o=t-n;return o<=0?i?e[e.length-1]:e[0]:e[o]}function gs(e,t,n,i=!0){const o=t+n;return o>e.length-1?i?e[0]:e[e.length-1]:e[o]}function ps(e,t,n=!0){return t===e.length-1?n?e[0]:e[t]:e[t+1]}function _s(e,t,n=!0){return t<=0?n?e[e.length-1]:e[0]:e[t-1]}function Ci(e){return e[e.length-1]}function Oi(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function ys(e,t,n=oi){const i=t.findIndex(o=>n(o,e));return i!==-1?t.splice(i,1):t.push(e),t}function ws(e){e.setAttribute("data-highlighted","")}function Ts(e){e.removeAttribute("data-highlighted")}function ke(e){return new Promise(t=>setTimeout(t,e))}let ki="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ei=(e=21)=>{let t="",n=e;for(;n--;)t+=ki[Math.random()*64|0];return t};function Ai(){return Ei(10)}function Si(e){return e.reduce((t,n)=>(t[n]=Ai(),t),{})}function Pi(e,t=500){let n=null;return function(...i){const o=()=>{n=null,e(...i)};n&&clearTimeout(n),n=setTimeout(o,t)}}const mn=()=>typeof window<"u";function Fi(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const bn=e=>mn()&&e.test(Fi().toLowerCase()),Di=()=>mn()&&!!navigator.maxTouchPoints,Ni=()=>bn(/^mac/)&&!Di(),Ri=()=>bn(/mac|iphone|ipad|ipod/i),Ii=()=>Ri()&&!Ni(),be="data-melt-scroll-lock";function Me(e,t){if(!e)return;const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Li(e,t,n){if(!e)return;const i=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{i?e.style.setProperty(t,i):e.style.removeProperty(t)}}function Mi(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Bi(e){const t=e??document,n=t.defaultView??window,{documentElement:i,body:o}=t;if(o.hasAttribute(be))return Q;o.setAttribute(be,"");const r=n.innerWidth-i.clientWidth,u=()=>Li(i,"--scrollbar-width",`${r}px`),s=Mi(i),l=n.getComputedStyle(o)[s],c=()=>Me(o,{overflow:"hidden",[s]:`calc(${l} + ${r}px)`}),f=()=>{const{scrollX:v,scrollY:y,visualViewport:g}=n,b=(g==null?void 0:g.offsetLeft)??0,w=(g==null?void 0:g.offsetTop)??0,k=Me(o,{position:"fixed",overflow:"hidden",top:`${-(y-Math.floor(w))}px`,left:`${-(v-Math.floor(b))}px`,right:"0",[s]:`calc(${l} + ${r}px)`});return()=>{k==null||k(),n.scrollTo(v,y)}},p=[u(),Ii()?f():c()];return()=>{p.forEach(v=>v==null?void 0:v()),o.removeAttribute(be)}}function Cs(e){const{open:t,forceVisible:n,activeTrigger:i}=e;return Te([t,n,i],([o,a,r])=>(o||a)&&r!==null)}function Vi(e){cn&&ke(1).then(()=>{const t=document.activeElement;!Y(t)||t===e||(t.tabIndex=-1,e&&(e.tabIndex=0,e.focus()))})}function vn(){return Array.from(document.querySelectorAll('a[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'))}function Os(e){const t=vn(),i=t.indexOf(e)+1,o=t[i];return i<t.length&&Y(o)?o:null}function ks(e){const t=vn(),i=t.indexOf(e)-1,o=t[i];return i>=0&&Y(o)?o:null}const Wi=new Set(["Shift","Control","Alt","Meta","CapsLock","NumLock"]),ji={onMatch:Vi,getCurrentItem:()=>document.activeElement};function
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var An=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ae=An.join(","),Sn=typeof Element>"u",St=Sn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,le=!Sn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ue=function e(t,n){var i;n===void 0&&(n=!0);var o=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),a=o===""||o==="true",r=a||n&&t&&e(t.parentNode);return r},No=function(t){var n,i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return i===""||i==="true"},Pn=function(t,n,i){if(ue(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ae));return n&&St.call(t,ae)&&o.unshift(t),o=o.filter(i),o},Fn=function e(t,n,i){for(var o=[],a=Array.from(t);a.length;){var r=a.shift();if(!ue(r,!1))if(r.tagName==="SLOT"){var u=r.assignedElements(),s=u.length?u:r.children,l=e(s,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:r,candidates:l})}else{var c=St.call(r,ae);c&&i.filter(r)&&(n||!t.includes(r))&&o.push(r);var f=r.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(r),p=!ue(f,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(f&&p){var v=e(f===!0?r.children:f.children,!0,i);i.flatten?o.push.apply(o,v):o.push({scopeParent:r,candidates:v})}else a.unshift.apply(a,r.children)}}return o},Dn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},kt=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||No(t))&&!Dn(t)?0:t.tabIndex},Ro=function(t,n){var i=kt(t);return i<0&&n&&!Dn(t)?0:i},Io=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Nn=function(t){return t.tagName==="INPUT"},Lo=function(t){return Nn(t)&&t.type==="hidden"},Mo=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return n},Bo=function(t,n){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===n)return t[i]},Vo=function(t){if(!t.name)return!0;var n=t.form||le(t),i=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(t.name));else try{o=i(t.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 a=Bo(o,t.form);return!a||a===t},Wo=function(t){return Nn(t)&&t.type==="radio"},jo=function(t){return Wo(t)&&!Vo(t)},Ko=function(t){var n,i=t&&le(t),o=(n=i)===null||n===void 0?void 0:n.host,a=!1;if(i&&i!==t){var r,u,s;for(a=!!((r=o)!==null&&r!==void 0&&(u=r.ownerDocument)!==null&&u!==void 0&&u.contains(o)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!a&&o;){var l,c,f;i=le(o),o=(l=i)===null||l===void 0?void 0:l.host,a=!!((c=o)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return a},He=function(t){var n=t.getBoundingClientRect(),i=n.width,o=n.height;return i===0&&o===0},Ho=function(t,n){var i=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=St.call(t,"details>summary:first-of-type"),r=a?t.parentElement:t;if(St.call(r,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var s=t.parentElement,l=le(t);if(s&&!s.shadowRoot&&o(s)===!0)return He(t);t.assignedSlot?t=t.assignedSlot:!s&&l!==t.ownerDocument?t=l.host:t=s}t=u}if(Ko(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-are
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ue(Object(n),!0).forEach(function(i){Zo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Zo(e,t,n){return t=Qo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qo(e){var t=Jo(e,"string");return typeof t=="symbol"?t:String(t)}var qe={activateTrap:function(t,n){if(t.length>0){var i=t[t.length-1];i!==n&&i.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var i=t.indexOf(n);i!==-1&&t.splice(i,1),t.length>0&&t[t.length-1].unpause()}},xo=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},$o=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Ut=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},tr=function(t){return Ut(t)&&!t.shiftKey},er=function(t){return Ut(t)&&t.shiftKey},Ye=function(t){return setTimeout(t,0)},Ge=function(t,n){var i=-1;return t.every(function(o,a){return n(o)?(i=a,!1):!0}),i},Ht=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,i):t},te=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},nr=[],ir=function(t,n){var i=(n==null?void 0:n.document)||document,o=(n==null?void 0:n.trapStack)||nr,a=ze({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:tr,isKeyBackward:er},n),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},u,s=function(h,d,C){return h&&h[d]!==void 0?h[d]:a[C||d]},l=function(h,d){var C=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return r.containerGroups.findIndex(function(E){var _=E.container,P=E.tabbableNodes;return _.contains(h)||(C==null?void 0:C.includes(_))||P.find(function(N){return N===h})})},c=function(h){var d=a[h];if(typeof d=="function"){for(var C=arguments.length,E=new Array(C>1?C-1:0),_=1;_<C;_++)E[_-1]=arguments[_];d=d.apply(void 0,E)}if(d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(h,"` was specified but was not a node, or did not return a node"))}var P=d;if(typeof d=="string"&&(P=i.querySelector(d),!P))throw new Error("`".concat(h,"` as selector refers to no known node"));return P},f=function(){var h=c("initialFocus");if(h===!1)return!1;if(h===void 0||!ve(h,a.tabbableOptions))if(l(i.activeElement)>=0)h=i.activeElement;else{var d=r.tabbableGroups[0],C=d&&d.firstTabbableNode;h=C||c("fallbackFocus")}if(!h)throw new Error("Your focus-trap needs to have at least one focusable element");return h},p=function(){if(r.containerGroups=r.containers.map(function(h){var d=Yo(h,a.tabbableOptions),C=Go(h,a.tabbableOptions),E=d.length>0?d[0]:void 0,_=d.length>0?d[d.length-1]:void 0,P=C.find(function(U){return Rt(U)}),N=C.slice().reverse().find(function(U){return Rt(U)}),j=!!d.find(function(U){return kt(U)>0});return{container:h,tabbableNodes:d,focusableNodes:C,posTabIndexesFound:j,firstTabbableNode:E,lastTabbableNode:_,firstDomTabbableNode:P,lastDomTabbableNode:N,nextTabbableNode:function(dt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments
transform: ${l} translate(${(1-g)*f}${p}, ${(1-g)*v}${y});
opacity: ${s-c*b}`}}function Vs(e,{delay:t=0,duration:n=400,easing:i=hn,start:o=0,opacity:a=0}={}){const r=getComputedStyle(e),u=+r.opacity,s=r.transform==="none"?"":r.transform,l=1-o,c=u*(1-a);return{delay:t,duration:n,easing:i,css:(f,p)=>`
transform: ${s} scale(${1-l*p});
opacity: ${u-c*p}
`}}function rs(e){let t;const n=e[2].default,i=G(n,e,e[3],null);return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,a){i&&i.m(o,a),t=!0},p(o,a){i&&i.p&&(!t||a&8)&&X(i,n,o,o[3],t?J(n,o[3],a,null):Z(o[3]),null)},i(o){t||(B(i,o),t=!0)},o(o){V(i,o),t=!1},d(o){i&&i.d(o)}}}function ss(e){let t,n;const i=[{name:"x"},e[1],{iconNode:e[0]}];let o={$$slots:{default:[rs]},$$scope:{ctx:e}};for(let a=0;a<i.length;a+=1)o=L(o,i[a]);return t=new Ti({props:o}),{c(){hi(t.$$.fragment)},l(a){mi(t.$$.fragment,a)},m(a,r){bi(t,a,r),n=!0},p(a,[r]){const u=r&3?x(i,[i[0],r&2&&gi(a[1]),r&1&&{iconNode:a[0]}]):{};r&8&&(u.$$scope={dirty:r,ctx:a}),t.$set(u)},i(a){n||(B(t.$$.fragment,a),n=!0)},o(a){V(t.$$.fragment,a),n=!1},d(a){vi(t,a)}}}function as(e,t,n){let{$$slots:i={},$$scope:o}=t;const a=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];return e.$$set=r=>{n(1,t=L(L({},t),Et(r))),"$$scope"in r&&n(3,o=r.$$scope)},t=Et(t),[a,t,i,o]}class Ws extends Ft{constructor(t){super(),Dt(this,t,as,ss,Pt,{})}}export{_s as A,ps as B,Ai as C,Ns as D,ys as E,Fo as F,Zt as G,Vs as H,Ws as X,Hi as a,Ln as b,Es as c,Cs as d,Be as e,Bi as f,Si as g,Vi as h,Os as i,ks as j,ws as k,Ss as l,Ps as m,Is as n,Ms as o,Rs as p,Bs as q,Ts as r,ke as s,Ds as t,As as u,Fs as v,Ls as w,Ci as x,vs as y,gs as z};