Buckets:
| ;exports.id=2483,exports.ids=[2483],exports.modules={18587:(a,b,c)=>{function d(a){var b;return"undefined"!=typeof window&&null!=window.navigator&&((null==(b=window.navigator.userAgentData)?void 0:b.brands.some(b=>a.test(b.brand)))||a.test(window.navigator.userAgent))}function e(a){var b;return"undefined"!=typeof window&&null!=window.navigator&&a.test((null==(b=window.navigator.userAgentData)?void 0:b.platform)||window.navigator.platform)}function f(a){let b=null;return()=>(null==b&&(b=a()),b)}c.d(b,{o:()=>I});let g=f(function(){return e(/^Mac/i)}),h=f(function(){return e(/^iPhone/i)}),i=f(function(){return e(/^iPad/i)||g()&&navigator.maxTouchPoints>1}),j=f(function(){return h()||i()});f(function(){return g()||j()}),f(function(){return d(/AppleWebKit/i)&&!k()});let k=f(function(){return d(/Chrome/i)}),l=f(function(){return d(/Android/i)});f(function(){return d(/Firefox/i)});let m=a=>{var b;return null!=(b=null==a?void 0:a.ownerDocument)?b:document},n=a=>a&&"window"in a&&a.window===a?a:m(a).defaultView||window;var o=c(38301);let p=null,q=new Set,r=new Map,s=!1,t=!1,u={Tab:!0,Escape:!0};function v(a,b){for(let c of q)c(a,b)}function w(a){s=!0,a.metaKey||!g()&&a.altKey||a.ctrlKey||"Control"===a.key||"Shift"===a.key||"Meta"===a.key||(p="keyboard",v("keyboard",a))}function x(a){p="pointer",("mousedown"===a.type||"pointerdown"===a.type)&&(s=!0,v("pointer",a))}function y(a){(0===a.mozInputSource&&a.isTrusted||(l()&&a.pointerType?"click"===a.type&&1===a.buttons:0===a.detail&&!a.pointerType))&&(s=!0,p="virtual")}function z(a){a.target!==window&&a.target!==document&&(s||t||(p="virtual",v("virtual",a)),s=!1,t=!1)}function A(){s=!1,t=!0}function B(a){if("undefined"==typeof window||r.get(n(a)))return;let b=n(a),c=m(a),d=b.HTMLElement.prototype.focus;b.HTMLElement.prototype.focus=function(){s=!0,d.apply(this,arguments)},c.addEventListener("keydown",w,!0),c.addEventListener("keyup",w,!0),c.addEventListener("click",y,!0),b.addEventListener("focus",z,!0),b.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(c.addEventListener("pointerdown",x,!0),c.addEventListener("pointermove",x,!0),c.addEventListener("pointerup",x,!0)):(c.addEventListener("mousedown",x,!0),c.addEventListener("mousemove",x,!0),c.addEventListener("mouseup",x,!0)),b.addEventListener("beforeunload",()=>{C(a)},{once:!0}),r.set(b,{focus:d})}let C=(a,b)=>{let c=n(a),d=m(a);b&&d.removeEventListener("DOMContentLoaded",b),r.has(c)&&(c.HTMLElement.prototype.focus=r.get(c).focus,d.removeEventListener("keydown",w,!0),d.removeEventListener("keyup",w,!0),d.removeEventListener("click",y,!0),c.removeEventListener("focus",z,!0),c.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(d.removeEventListener("pointerdown",x,!0),d.removeEventListener("pointermove",x,!0),d.removeEventListener("pointerup",x,!0)):(d.removeEventListener("mousedown",x,!0),d.removeEventListener("mousemove",x,!0),d.removeEventListener("mouseup",x,!0)),r.delete(c))};function D(){return"pointer"!==p}"undefined"!=typeof document&&function(a){let b,c=m(void 0);"loading"!==c.readyState?B(void 0):(b=()=>{B(a)},c.addEventListener("DOMContentLoaded",b)),()=>C(a,b)}();let E=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),F="undefined"!=typeof document?o.useLayoutEffect:()=>{};class G{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(a,b){this.nativeEvent=b,this.target=b.target,this.currentTarget=b.currentTarget,this.relatedTarget=b.relatedTarget,this.bubbles=b.bubbles,this.cancelable=b.cancelable,this.defaultPrevented=b.defaultPrevented,this.eventPhase=b.eventPhase,this.isTrusted=b.isTrusted,this.timeStamp=b.timeStamp,this.type=a}}function H(a){let b=(0,o.useRef)({isFocused:!1,observer:null});F(()=>{let a=b.current;return()=>{a.observer&&(a.observer.disconnect(),a.observer=null)}},[]);let c=function(a){let b=(0,o.useRef)(null);return F(()=>{b.current=a},[a]),(0,o.useCallback)((...a)=>{let c=b.current;return null==c?void 0:c(...a)},[])}(b=>{null==a||a(b)});return(0,o.useCallback)(a=>{if(a.target instanceof HTMLButtonElement||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLSelectElement){b.current.isFocused=!0;let d=a.target;d.addEventListener("focusout",a=>{b.current.isFocused=!1,d.disabled&&c(new G("blur",a)),b.current.observer&&(b.current.observer.disconnect(),b.current.observer=null)},{once:!0}),b.current.observer=new MutationObserver(()=>{if(b.current.isFocused&&d.disabled){var a;null==(a=b.current.observer)||a.disconnect();let c=d===document.activeElement?null:document.activeElement;d.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),d.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),b.current.observer.observe(d,{attributes:!0,attributeFilter:["disabled"]})}},[c])}function I(a={}){var b;let{autoFocus:c=!1,isTextInput:d,within:e}=a,f=(0,o.useRef)({isFocused:!1,isFocusVisible:c||D()}),[g,h]=(0,o.useState)(!1),[i,j]=(0,o.useState)(()=>f.current.isFocused&&f.current.isFocusVisible),k=(0,o.useCallback)(()=>j(f.current.isFocused&&f.current.isFocusVisible),[]),l=(0,o.useCallback)(a=>{f.current.isFocused=a,h(a),k()},[k]);b={isTextInput:d},B(),(0,o.useEffect)(()=>{let a=(a,c)=>{(function(a,b,c){var d;let e="undefined"!=typeof window?n(null==c?void 0:c.target).HTMLInputElement:HTMLInputElement,f="undefined"!=typeof window?n(null==c?void 0:c.target).HTMLTextAreaElement:HTMLTextAreaElement,g="undefined"!=typeof window?n(null==c?void 0:c.target).HTMLElement:HTMLElement,h="undefined"!=typeof window?n(null==c?void 0:c.target).KeyboardEvent:KeyboardEvent;return!((a=a||(null==c?void 0:c.target)instanceof e&&!E.has(null==c||null==(d=c.target)?void 0:d.type)||(null==c?void 0:c.target)instanceof f||(null==c?void 0:c.target)instanceof g&&(null==c?void 0:c.target.isContentEditable))&&"keyboard"===b&&c instanceof h&&!u[c.key])})(!!(null==b?void 0:b.isTextInput),a,c)&&(a=>{f.current.isFocusVisible=a,k()})(D())};return q.add(a),()=>{q.delete(a)}},[]);let{focusProps:p}=function(a){let{isDisabled:b,onFocus:c,onBlur:d,onFocusChange:e}=a,f=(0,o.useCallback)(a=>{if(a.target===a.currentTarget)return d&&d(a),e&&e(!1),!0},[d,e]),g=H(f),h=(0,o.useCallback)(a=>{let b=m(a.target);a.target===a.currentTarget&&b.activeElement===a.target&&(c&&c(a),e&&e(!0),g(a))},[e,c,g]);return{focusProps:{onFocus:!b&&(c||e||d)?h:void 0,onBlur:!b&&(d||e)?f:void 0}}}({isDisabled:e,onFocusChange:l}),{focusWithinProps:r}=function(a){let{isDisabled:b,onBlurWithin:c,onFocusWithin:d,onFocusWithinChange:e}=a,f=(0,o.useRef)({isFocusWithin:!1}),g=(0,o.useCallback)(a=>{f.current.isFocusWithin&&!a.currentTarget.contains(a.relatedTarget)&&(f.current.isFocusWithin=!1,c&&c(a),e&&e(!1))},[c,e,f]),h=H(g),i=(0,o.useCallback)(a=>{f.current.isFocusWithin||document.activeElement!==a.target||(d&&d(a),e&&e(!0),f.current.isFocusWithin=!0,h(a))},[d,e,h]);return b?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:i,onBlur:g}}}({isDisabled:!e,onFocusWithinChange:l});return{isFocused:g,isFocusVisible:i,focusProps:e?r:p}}},32483:(a,b,c)=>{c.d(b,{$:()=>j});var d=c(18587),e=c(82083),f=c(38301),g=c(58678),h=c(96075),i=c(86203);let j=(0,i.FX)(function(a,b){var c;let j=(0,h._)(),{disabled:k=j||!1,autoFocus:l=!1,...m}=a,{isFocusVisible:n,focusProps:o}=(0,d.o)({autoFocus:l}),{isHovered:p,hoverProps:q}=(0,e.M)({isDisabled:k}),{pressed:r,pressProps:s}=(0,g.Z)({disabled:k}),t=(0,i.v6)({ref:b,type:null!=(c=m.type)?c:"button",disabled:k||void 0,autoFocus:l},o,q,s),u=(0,f.useMemo)(()=>({disabled:k,hover:p,focus:n,active:r,autofocus:l}),[k,p,n,r,l]);return(0,i.Ci)()({ourProps:t,theirProps:m,slot:u,defaultTag:"button",name:"Button"})})},58678:(a,b,c)=>{c.d(b,{Z:()=>h});var d=c(38301),e=c(71588),f=c(64039),g=c(11200);function h({disabled:a=!1}={}){let b=(0,d.useRef)(null),[c,i]=(0,d.useState)(!1),j=(0,f.L)(),k=(0,g._)(()=>{b.current=null,i(!1),j.dispose()}),l=(0,g._)(a=>{if(j.dispose(),null===b.current){b.current=a.currentTarget,i(!0);{let c=(0,e.T)(a.currentTarget);j.addEventListener(c,"pointerup",k,!1),j.addEventListener(c,"pointermove",a=>{if(b.current){var c,d;let e,f;i((e=a.width/2,f=a.height/2,c={top:a.clientY-f,right:a.clientX+e,bottom:a.clientY+f,left:a.clientX-e},d=b.current.getBoundingClientRect(),!(!c||!d||c.right<d.left||c.left>d.right||c.bottom<d.top||c.top>d.bottom)))}},!1),j.addEventListener(c,"pointercancel",k,!1)}}});return{pressed:c,pressProps:a?{}:{onPointerDown:l,onPointerUp:k,onClick:k}}}},82083:(a,b,c)=>{c.d(b,{M:()=>j});var d=c(38301);let e=!1,f=0;function g(){e=!0,setTimeout(()=>{e=!1},50)}function h(a){"touch"===a.pointerType&&g()}function i(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",h):document.addEventListener("touchend",g),f++,()=>{--f>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",h):document.removeEventListener("touchend",g))}}function j(a){let{onHoverStart:b,onHoverChange:c,onHoverEnd:f,isDisabled:g}=a,[h,j]=(0,d.useState)(!1),k=(0,d.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,d.useEffect)(i,[]);let{hoverProps:l,triggerHoverEnd:m}=(0,d.useMemo)(()=>{let a=(a,d)=>{if(k.pointerType=d,g||"touch"===d||k.isHovered||!a.currentTarget.contains(a.target))return;k.isHovered=!0;let e=a.currentTarget;k.target=e,b&&b({type:"hoverstart",target:e,pointerType:d}),c&&c(!0),j(!0)},d=(a,b)=>{if(k.pointerType="",k.target=null,"touch"===b||!k.isHovered)return;k.isHovered=!1;let d=a.currentTarget;f&&f({type:"hoverend",target:d,pointerType:b}),c&&c(!1),j(!1)},h={};return"undefined"!=typeof PointerEvent?(h.onPointerEnter=b=>{e&&"mouse"===b.pointerType||a(b,b.pointerType)},h.onPointerLeave=a=>{!g&&a.currentTarget.contains(a.target)&&d(a,a.pointerType)}):(h.onTouchStart=()=>{k.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=b=>{k.ignoreEmulatedMouseEvents||e||a(b,"mouse"),k.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=a=>{!g&&a.currentTarget.contains(a.target)&&d(a,"mouse")}),{hoverProps:h,triggerHoverEnd:d}},[b,c,f,g,k]);return(0,d.useEffect)(()=>{g&&m({currentTarget:k.target},k.pointerType)},[g]),{hoverProps:l,isHovered:h}}}}; |
Xet Storage Details
- Size:
- 10.4 kB
- Xet hash:
- a8efbb18e7c0eb5241748e113f985290bd9bf2af8031d7084ae854ee5631477f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.