@thednp/shorty 2.0.0-alpha4 → 2.0.0-alpha5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/shorty.cjs +1 -1
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +57 -51
- package/dist/shorty.js +1 -1
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs +160 -162
- package/dist/shorty.mjs.map +1 -1
- package/package.json +10 -4
- package/src/attr/getAttribute.ts +3 -1
- package/src/attr/getAttributeNS.ts +3 -1
- package/src/attr/hasAttribute.ts +1 -0
- package/src/attr/hasAttributeNS.ts +3 -1
- package/src/attr/removeAttribute.ts +1 -0
- package/src/attr/removeAttributeNS.ts +3 -1
- package/src/attr/setAttribute.ts +3 -1
- package/src/attr/setAttributeNS.ts +1 -0
- package/src/boolean/isMobile.ts +1 -1
- package/src/boolean/support3DTransform.ts +1 -1
- package/src/boolean/supportAnimation.ts +1 -1
- package/src/boolean/supportPassive.ts +1 -1
- package/src/boolean/supportTouch.ts +2 -1
- package/src/boolean/supportTransform.ts +1 -1
- package/src/boolean/supportTransition.ts +1 -1
- package/src/event/off.ts +5 -3
- package/src/event/on.ts +5 -3
- package/src/event/one.ts +6 -1
- package/src/get/getBoundingClientRect.ts +5 -1
- package/src/get/getDocument.ts +4 -3
- package/src/get/getDocumentBody.ts +1 -1
- package/src/get/getElementAnimationDelay.ts +2 -1
- package/src/get/getElementAnimationDuration.ts +2 -1
- package/src/get/getElementTransitionDelay.ts +2 -1
- package/src/get/getElementTransitionDuration.ts +2 -1
- package/src/get/getParentNode.ts +2 -1
- package/src/get/getRectRelativeToOffsetParent.ts +1 -0
- package/src/get/getUID.ts +2 -2
- package/src/get/getWindow.ts +1 -0
- package/src/index.ts +10 -2
- package/src/interface/originalEvent.ts +2 -1
- package/src/is/isCanvas.ts +2 -2
- package/src/is/isCustomElement.ts +2 -2
- package/src/is/isDocument.ts +2 -1
- package/src/is/isElement.ts +3 -2
- package/src/is/isElementsArray.ts +2 -1
- package/src/is/isFunction.ts +2 -1
- package/src/is/isHTMLCollection.ts +1 -1
- package/src/is/isHTMLElement.ts +3 -1
- package/src/is/isHTMLImageElement.ts +2 -1
- package/src/is/isJSON.ts +1 -1
- package/src/is/isMap.ts +2 -1
- package/src/is/isMedia.ts +5 -2
- package/src/is/isNode.ts +2 -2
- package/src/is/isNodeList.ts +2 -1
- package/src/is/isNumber.ts +1 -1
- package/src/is/isObject.ts +1 -1
- package/src/is/isRTL.ts +1 -0
- package/src/is/isSVGElement.ts +1 -1
- package/src/is/isScaledElement.ts +5 -2
- package/src/is/isShadowRoot.ts +1 -1
- package/src/is/isString.ts +1 -1
- package/src/is/isTableElement.ts +3 -1
- package/src/is/isWeakMap.ts +2 -1
- package/src/is/isWindow.ts +2 -1
- package/src/misc/Float32ArrayFrom.ts +1 -0
- package/src/misc/Float64ArrayFrom.ts +1 -0
- package/src/misc/ObjectAssign.ts +35 -3
- package/src/misc/ObjectEntries.ts +3 -1
- package/src/misc/ObjectKeys.ts +2 -1
- package/src/misc/ObjectValues.ts +3 -1
- package/src/misc/{OriginalEvent.ts → createCustomEvent.ts} +9 -5
- package/src/misc/createElement.ts +10 -7
- package/src/misc/createElementNS.ts +9 -5
- package/src/misc/data.ts +31 -16
- package/src/misc/distinct.ts +1 -0
- package/src/misc/normalizeValue.ts +9 -7
- package/src/misc/setElementStyle.ts +3 -2
- package/src/misc/timer.ts +16 -13
- package/src/selectors/getCustomElements.ts +1 -0
- package/src/selectors/getElementsByClassName.ts +7 -2
- package/src/selectors/getElementsByTagName.ts +4 -1
- package/src/selectors/querySelector.ts +2 -2
- package/src/strings/mouseHoverEvents.ts +3 -1
package/dist/shorty.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v6.12.0
|
|
2
2
|
|
|
3
|
-
declare function on(element: EventTarget, eventName: string, listener: EventListener, options?: AddEventListenerOptions): void;
|
|
4
|
-
declare function off(element: EventTarget, eventName: string, listener: EventListener, options?: AddEventListenerOptions): void;
|
|
5
|
-
declare function isScaledElement(element?: HTMLElement): boolean;
|
|
6
3
|
export interface NavigatorUABrand {
|
|
7
4
|
readonly brand: string;
|
|
8
5
|
readonly version: string;
|
|
@@ -12,6 +9,10 @@ export interface NavigatorUAData {
|
|
|
12
9
|
readonly mobile: boolean;
|
|
13
10
|
readonly platform: string;
|
|
14
11
|
}
|
|
12
|
+
export interface OriginalEvent extends CustomEvent<any> {
|
|
13
|
+
readonly type: string;
|
|
14
|
+
relatedTarget?: EventTarget;
|
|
15
|
+
}
|
|
15
16
|
export interface OffsetRect {
|
|
16
17
|
width: number;
|
|
17
18
|
height: number;
|
|
@@ -26,9 +27,6 @@ export interface CustomElement extends HTMLElement {
|
|
|
26
27
|
attributeChangedCallback?: () => void;
|
|
27
28
|
[key: string]: any;
|
|
28
29
|
}
|
|
29
|
-
export interface OriginalEvent<T> extends CustomEvent<T> {
|
|
30
|
-
relatedTarget?: EventTarget;
|
|
31
|
-
}
|
|
32
30
|
export interface BoundingClientRect {
|
|
33
31
|
width: number;
|
|
34
32
|
height: number;
|
|
@@ -277,22 +275,24 @@ declare const SHORTY: {
|
|
|
277
275
|
addClass: (element: HTMLElement, ...classNAME: string[]) => void;
|
|
278
276
|
removeClass: (element: HTMLElement, ...classNAME: string[]) => void;
|
|
279
277
|
hasClass: (element: HTMLElement, classNAME: string) => boolean;
|
|
280
|
-
on:
|
|
281
|
-
off:
|
|
278
|
+
on: (element: EventTarget, eventName: string, listener: EventListener, options?: AddEventListenerOptions | undefined) => void;
|
|
279
|
+
off: (element: EventTarget, eventName: string, listener: EventListener, options?: AddEventListenerOptions | undefined) => void;
|
|
282
280
|
one: (element: EventTarget, eventName: string, listener: EventListener, options?: AddEventListenerOptions | undefined) => void;
|
|
281
|
+
documentBody: HTMLElement;
|
|
282
|
+
documentElement: HTMLElement;
|
|
283
|
+
documentHead: HTMLHeadElement;
|
|
283
284
|
dispatchEvent: (element: EventTarget, event: Event) => boolean;
|
|
284
285
|
distinct: <T>(value: T, index: number, arr: T[]) => boolean;
|
|
285
286
|
Data: {
|
|
286
|
-
set: <T_1>(element: HTMLElement, component:
|
|
287
|
-
getAllFor: (component:
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
get: <T_2>(element: HTMLElement, component: string) => T_2 | null;
|
|
291
|
-
remove: (element: HTMLElement, component: string) => void;
|
|
287
|
+
set: <T_1 extends new (...args: ConstructorParameters<T_1>) => InstanceType<T_1>>(element: HTMLElement, component: T_1, instance: InstanceType<T_1>) => void;
|
|
288
|
+
getAllFor: <T_2 extends new (...args: ConstructorParameters<T_2>) => InstanceType<T_2>>(component: T_2) => Map<HTMLElement, InstanceType<T_2>> | null;
|
|
289
|
+
get: <T_3 extends new (...args: ConstructorParameters<T_3>) => InstanceType<T_3>>(element: HTMLElement, component: T_3) => InstanceType<T_3> | null;
|
|
290
|
+
remove: <T_4 extends new (...args: ConstructorParameters<T_4>) => InstanceType<T_4>>(element: HTMLElement, component: T_4) => void;
|
|
292
291
|
};
|
|
293
|
-
getInstance: <
|
|
294
|
-
createElement: (param?: string |
|
|
295
|
-
createElementNS: (ns: string, param?: string |
|
|
292
|
+
getInstance: <T_5 extends new (...args: ConstructorParameters<T_5>) => InstanceType<T_5>>(target: HTMLElement, component: T_5) => InstanceType<T_5> | null;
|
|
293
|
+
createElement: (param?: string | undefined) => HTMLElement | undefined;
|
|
294
|
+
createElementNS: (ns: string, param?: string | undefined) => HTMLElement | undefined;
|
|
295
|
+
createCustomEvent: <T_6 extends OriginalEvent>(eventType: string, config?: CustomEventInit<any> | undefined) => T_6;
|
|
296
296
|
toUpperCase: (source: string) => string;
|
|
297
297
|
toLowerCase: (source: string) => string;
|
|
298
298
|
Timer: {
|
|
@@ -313,36 +313,36 @@ declare const SHORTY: {
|
|
|
313
313
|
x: number;
|
|
314
314
|
y: number;
|
|
315
315
|
};
|
|
316
|
-
getParentNode: (node: Node) => Node;
|
|
316
|
+
getParentNode: (node: Node) => Node | ParentNode;
|
|
317
317
|
getRectRelativeToOffsetParent: (element: HTMLElement, offsetParent: HTMLElement, scroll: {
|
|
318
318
|
x: number;
|
|
319
319
|
y: number;
|
|
320
320
|
}) => OffsetRect;
|
|
321
321
|
getWindow: (node?: Node | undefined) => Window;
|
|
322
322
|
isArray: (obj?: any) => obj is any[];
|
|
323
|
-
isCanvas: (element?:
|
|
324
|
-
isString: (str?:
|
|
325
|
-
isCustomElement: <
|
|
326
|
-
isElement: (element?:
|
|
327
|
-
isJSON: (str?:
|
|
328
|
-
isMap: (obj?:
|
|
329
|
-
isWeakMap: (obj?:
|
|
330
|
-
isNode: (node?:
|
|
331
|
-
isNumber: (num?:
|
|
332
|
-
isHTMLElement: (element?:
|
|
333
|
-
isHTMLImageElement: (element?:
|
|
334
|
-
isSVGElement: (element?:
|
|
335
|
-
isNodeList: (obj?:
|
|
336
|
-
isHTMLCollection: (obj?:
|
|
337
|
-
isScaledElement:
|
|
338
|
-
isTableElement: (element?:
|
|
339
|
-
isShadowRoot: (element?:
|
|
340
|
-
isDocument: (obj?:
|
|
323
|
+
isCanvas: (element?: Node | undefined) => element is HTMLCanvasElement;
|
|
324
|
+
isString: (str?: string | undefined) => str is string;
|
|
325
|
+
isCustomElement: <T_7 extends CustomElement>(element?: Node | T_7 | undefined) => element is T_7;
|
|
326
|
+
isElement: (element?: Element | Node | undefined) => element is Element;
|
|
327
|
+
isJSON: (str?: string | undefined) => boolean;
|
|
328
|
+
isMap: <T_8 extends Map<any, any>>(obj?: T_8 | undefined) => obj is T_8;
|
|
329
|
+
isWeakMap: <T_9 extends WeakMap<any, unknown>>(obj?: T_9 | undefined) => obj is T_9;
|
|
330
|
+
isNode: (node?: Node | undefined) => node is Node;
|
|
331
|
+
isNumber: (num?: number | undefined) => num is number;
|
|
332
|
+
isHTMLElement: (element?: Node | HTMLElement | undefined) => element is HTMLElement;
|
|
333
|
+
isHTMLImageElement: (element?: HTMLImageElement | undefined) => element is HTMLImageElement;
|
|
334
|
+
isSVGElement: (element?: SVGElement | undefined) => element is SVGElement;
|
|
335
|
+
isNodeList: (obj?: NodeList | undefined) => obj is NodeList;
|
|
336
|
+
isHTMLCollection: (obj?: HTMLCollection | undefined) => obj is HTMLCollection;
|
|
337
|
+
isScaledElement: (element?: HTMLElement | undefined) => boolean;
|
|
338
|
+
isTableElement: (element?: HTMLTableElement | HTMLTableCellElement | undefined) => element is HTMLTableElement | HTMLTableCellElement;
|
|
339
|
+
isShadowRoot: (element?: Node | ShadowRoot | undefined) => element is ShadowRoot;
|
|
340
|
+
isDocument: (obj?: Node | Document | undefined) => obj is Document;
|
|
341
341
|
isElementsArray: (obj?: any) => obj is HTMLElement[];
|
|
342
|
-
isFunction: (
|
|
343
|
-
isObject: (obj?:
|
|
344
|
-
isWindow: (obj?:
|
|
345
|
-
isMedia: (element?:
|
|
342
|
+
isFunction: <T_10 extends (...arg0: any[]) => any>(fn?: T_10 | undefined) => fn is T_10;
|
|
343
|
+
isObject: (obj?: object | undefined) => obj is object;
|
|
344
|
+
isWindow: (obj?: Node | Window | undefined) => obj is Window;
|
|
345
|
+
isMedia: (element?: HTMLCanvasElement | HTMLImageElement | SVGElement | HTMLVideoElement | undefined) => element is HTMLCanvasElement | HTMLImageElement | SVGElement | HTMLVideoElement;
|
|
346
346
|
isRTL: (node?: Node | undefined) => boolean;
|
|
347
347
|
closest: (element: HTMLElement, selector: string) => HTMLElement | null;
|
|
348
348
|
querySelector: (selector: string | Node, parent?: ParentNode | undefined) => HTMLElement | null;
|
|
@@ -352,28 +352,34 @@ declare const SHORTY: {
|
|
|
352
352
|
getElementsByClassName: (selector: string, parent?: ParentNode | undefined) => HTMLCollectionOf<HTMLElement>;
|
|
353
353
|
getElementsByTagName: (selector: string, parent?: ParentNode | undefined) => HTMLCollectionOf<HTMLElement>;
|
|
354
354
|
matches: (target: Element, selector: string) => boolean;
|
|
355
|
-
normalizeValue: (value?: any) => any;
|
|
356
|
-
normalizeOptions: <
|
|
355
|
+
normalizeValue: (value?: string | number | boolean | undefined) => string | number | boolean | ((...args: any[]) => any) | null;
|
|
356
|
+
normalizeOptions: <T_11 extends {
|
|
357
357
|
[key: string]: any;
|
|
358
|
-
}>(element: HTMLElement, defaultOps:
|
|
358
|
+
}>(element: HTMLElement, defaultOps: T_11, inputOps: Partial<T_11>, ns?: string | undefined) => T_11;
|
|
359
359
|
reflow: (element: HTMLElement) => number;
|
|
360
360
|
noop: () => void;
|
|
361
361
|
focus: (element: HTMLOrSVGElement, options?: FocusOptions | undefined) => void;
|
|
362
362
|
getUID: (element: HTMLElement, key?: string | undefined) => number;
|
|
363
|
-
ArrayFrom: <
|
|
363
|
+
ArrayFrom: <T_12>(arr: ArrayLike<T_12> | Iterable<T_12>) => T_12[];
|
|
364
364
|
Float32ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float32Array;
|
|
365
365
|
Float64ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float64Array;
|
|
366
|
-
ObjectAssign:
|
|
367
|
-
|
|
366
|
+
ObjectAssign: {
|
|
367
|
+
<T_13, U>(target: T_13, source: U): T_13 & U;
|
|
368
|
+
<T_14, U_1, V>(target: T_14, source1: U_1, source2: V): T_14 & U_1 & V;
|
|
369
|
+
<T_15, U_2, V_1, W>(target: T_15, source1: U_2, source2: V_1, source3: W): T_15 & U_2 & V_1 & W;
|
|
370
|
+
<T_16, U_3, V_2, W_1, Q>(target: T_16, source1: U_3, source2: V_2, source3: W_1, source4: Q): T_16 & U_3 & V_2 & W_1 & Q;
|
|
371
|
+
<T_17, U_4, V_3, W_2, Q_1, R>(target: T_17, source1: U_4, source2: V_3, source3: W_2, source4: Q_1, source5: R): T_17 & U_4 & V_3 & W_2 & Q_1 & R;
|
|
372
|
+
(target: any, ...sources: any[]): any;
|
|
373
|
+
};
|
|
374
|
+
ObjectEntries: <O extends Record<string, any>>(obj: O) => [
|
|
368
375
|
keyof O,
|
|
369
376
|
O[keyof O]
|
|
370
377
|
][];
|
|
371
|
-
ObjectKeys: <O_1 extends
|
|
372
|
-
ObjectValues: <O_2 extends
|
|
373
|
-
OriginalEvent: <T_7>(EventType: string, config?: CustomEventInit<T_7> | undefined) => OriginalEvent<T_7>;
|
|
378
|
+
ObjectKeys: <O_1 extends Record<string, any>>(obj: O_1) => (keyof O_1)[];
|
|
379
|
+
ObjectValues: <O_2 extends Record<string, unknown>>(obj: O_2) => O_2[keyof O_2][];
|
|
374
380
|
getBoundingClientRect: (element: HTMLElement, includeScale?: boolean | undefined) => BoundingClientRect;
|
|
375
|
-
getDocument: (node?:
|
|
376
|
-
getDocumentBody: (node?:
|
|
381
|
+
getDocument: (node?: Node | Document | Window | undefined) => Document;
|
|
382
|
+
getDocumentBody: (node?: Node | undefined) => HTMLElement;
|
|
377
383
|
getDocumentElement: (node?: Node | undefined) => HTMLElement;
|
|
378
384
|
getDocumentHead: (node?: Node | undefined) => HTMLElement & HTMLHeadElement;
|
|
379
385
|
getElementStyle: (element: HTMLElement, property: string) => string;
|
package/dist/shorty.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var SHORTY=function(){"use strict";const le="aria-checked",de="aria-description",fe="aria-describedby",pe="aria-expanded",me="aria-haspopup",ge="aria-hidden",Ee="aria-label",ve="aria-labelledby",be="aria-modal",he="aria-pressed",ye="aria-selected",we="aria-valuemin",Ae="aria-valuemax",Se="aria-valuenow",Me="aria-valuetext",R="abort",U="beforeunload",W="blur",Q="change",j="contextmenu",L="DOMContentLoaded",q="DOMMouseScroll",Y="error",G="focus",J="focusin",K="focusout",X="gesturechange",Z="gestureend",$="gesturestart",_="keydown",tt="keypress",et="keyup",nt="load",ot="click",st="dblclick",ct="mousedown",rt="mouseup",it="hover",at="mouseenter",ut="mouseleave",lt="mousein",dt="mouseout",ft="mouseover",pt="mousemove",mt="mousewheel",gt="move",Et="orientationchange",vt="pointercancel",bt="pointerdown",ht="pointerleave",yt="pointermove",wt="pointerup",At="readystatechange",St="reset",Mt="resize",Tt="select",kt="selectend",Nt="selectstart",Dt="scroll",Ct="submit",Lt="touchstart",Ot="touchmove",It="touchcancel",zt="touchend",xt="unload",Te={DOMContentLoaded:L,DOMMouseScroll:q,abort:R,beforeunload:U,blur:W,change:Q,click:ot,contextmenu:j,dblclick:st,error:Y,focus:G,focusin:J,focusout:K,gesturechange:X,gestureend:Z,gesturestart:$,hover:it,keydown:_,keypress:tt,keyup:et,load:nt,mousedown:ct,mousemove:pt,mousein:lt,mouseout:dt,mouseenter:at,mouseleave:ut,mouseover:ft,mouseup:rt,mousewheel:mt,move:gt,orientationchange:Et,pointercancel:vt,pointerdown:bt,pointerleave:ht,pointermove:yt,pointerup:wt,readystatechange:At,reset:St,resize:Mt,scroll:Dt,select:Tt,selectend:kt,selectstart:Nt,submit:Ct,touchcancel:It,touchend:zt,touchmove:Ot,touchstart:Lt,unload:xt},ke="loadstart",Ne={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},De={down:"mousedown",up:"mouseup"},Ce="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Le={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Oe={in:"focusin",out:"focusout"},Ie={Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},ze="Alt",xe="ArrowDown",He="ArrowUp",Be="ArrowLeft",Ve="ArrowRight",Pe="Backspace",Fe="CapsLock",Re="Control",Ue="Delete",We="Enter",Qe="Escape",je="Insert",qe="Meta",Ye="Pause",Ge="ScrollLock",Je="Shift",Ke="Space",Xe="Tab",Ht="animationDuration",Bt="animationDelay",O="animationName",T="animationend",Vt="transitionDuration",Pt="transitionDelay",k="transitionend",I="transitionProperty",Ze="addEventListener",$e="removeEventListener",_e={linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},tn="offsetHeight",en="offsetWidth",nn="scrollHeight",on="scrollWidth",sn="tabindex",h=navigator.userAgentData,{userAgent:cn}=navigator,y=cn,Ft=/iPhone|iPad|iPod|Android/i;let z=!1;h?z=h.brands.some(t=>Ft.test(t.brand)):z=Ft.test(y);const rn=z,Rt=/(iPhone|iPod|iPad)/,an=h?h.brands.some(t=>Rt.test(t.brand)):Rt.test(y),un=y?y.includes("Firefox"):!1,{head:N}=document,ln=["webkitPerspective","perspective"].some(t=>t in N.style);function Ut(t,e,n,o){const s=o||!1;t.addEventListener(e,n,s)}function Wt(t,e,n,o){const s=o||!1;t.removeEventListener(e,n,s)}const Qt=(t,e,n,o)=>{const s=c=>{c.target===t&&(n.apply(t,[c]),Wt(t,e,s,o))};Ut(t,e,s,o)},jt=()=>{},dn=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get(){return t=!0,t}});Qt(document,L,jt,e)}catch{}return t})(),fn=["webkitTransform","transform"].some(t=>t in N.style),pn="ontouchstart"in window||"msMaxTouchPoints"in navigator,mn=["webkitAnimation","animation"].some(t=>t in N.style),gn=["webkitTransition","transition"].some(t=>t in N.style),qt=(t,e)=>t.getAttribute(e),En=(t,e,n)=>e.getAttributeNS(t,n),vn=(t,e)=>t.hasAttribute(e),bn=(t,e,n)=>e.hasAttributeNS(t,n),x=(t,e,n)=>t.setAttribute(e,n),hn=(t,e,n,o)=>e.setAttributeNS(t,n,o),yn=(t,e)=>t.removeAttribute(e),wn=(t,e,n)=>e.removeAttributeNS(t,n),An=(t,...e)=>{t.classList.add(...e)},Sn=(t,...e)=>{t.classList.remove(...e)},Mn=(t,e)=>t.classList.contains(e),Tn=t=>Array.from(t),a=t=>t&&t.nodeType===1||!1,w=new Map,D={set:(t,e,n)=>{if(!a(t))return;w.has(e)||w.set(e,new Map),w.get(e).set(t,n)},getAllFor:t=>w.get(t)||null,get:(t,e)=>{if(!a(t)||!e)return null;const n=D.getAllFor(e);return t&&n&&n.get(t)||null},remove:(t,e)=>{const n=D.getAllFor(e);!n||!a(t)||(n.delete(t),n.size===0&&w.delete(e))}},kn=(t,e)=>D.get(t,e),A=t=>typeof t=="string"||!1,l=t=>t&&[1,2,3,4,5,6,7,8,9,10,11].some(e=>t.nodeType===e)||!1,H=t=>t&&t.constructor.name==="Window"||!1,B=t=>t&&t.nodeType===9||!1,d=t=>B(t)?t:l(t)?t.ownerDocument:H(t)?t.document:window.document,E=t=>Object.entries(t),Yt=t=>{if(!t)return;if(typeof t=="string")return d().createElement(t);const{tagName:e}=t,n=Yt(e);if(!n)return;const o={...t};return delete o.tagName,E(o).forEach(([s,c])=>{A(c)&&x(n,s,c)}),n},Gt=(t,e)=>{if(!t||!e)return;if(typeof e=="string")return d().createElementNS(t,e);const{tagName:n}=e,o=Gt(t,n);if(!o)return;const s={...e};return delete s.tagName,E(s).forEach(([c,i])=>{A(i)&&x(o,c,i)}),o},V=(t,e)=>t.dispatchEvent(e),Nn=(t,e,n)=>n.indexOf(t)===e,f=(t,e)=>{const n=getComputedStyle(t),o=e.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Jt=t=>{const e=f(t,O),n=f(t,Bt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Kt=t=>{const e=f(t,O),n=f(t,Ht),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Dn=(t,e)=>{let n=0;const o=new Event(T),s=Kt(t),c=Jt(t);if(s){const i=u=>{u.target===t&&(e.apply(t,[u]),t.removeEventListener(T,i),n=1)};t.addEventListener(T,i),setTimeout(()=>{n||V(t,o)},s+c+17)}else e.apply(t,[o])},Xt=t=>{const e=f(t,I),n=f(t,Pt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Zt=t=>{const e=f(t,I),n=f(t,Vt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Cn=(t,e)=>{let n=0;const o=new Event(k),s=Zt(t),c=Xt(t);if(s){const i=u=>{u.target===t&&(e.apply(t,[u]),t.removeEventListener(k,i),n=1)};t.addEventListener(k,i),setTimeout(()=>{n||V(t,o)},s+c+17)}else e.apply(t,[o])},Ln=t=>Float32Array.from(Array.from(t)),On=t=>Float64Array.from(Array.from(t)),In=(t,e)=>t.focus(e),P=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,$t=t=>t.toLowerCase(),zn=(t,e,n,o)=>{const s={...n},c={...t.dataset},i={...e},u={},m="title";return E(c).forEach(([r,g])=>{const C=o&&typeof r=="string"&&r.includes(o)?r.replace(o,"").replace(/[A-Z]/g,lo=>$t(lo)):r;u[C]=P(g)}),E(s).forEach(([r,g])=>{s[r]=P(g)}),E(e).forEach(([r,g])=>{r in s?i[r]=s[r]:r in u?i[r]=u[r]:i[r]=r===m?qt(t,m):g}),i},F=(t,...e)=>Object.assign(t,...e),xn=t=>Object.keys(t),Hn=t=>Object.values(t),_t=t=>typeof t=="object"||!1,Bn=(t,e)=>{const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return _t(e)&&F(n,e),n},Vn={passive:!0},Pn=t=>t.offsetHeight,Fn=(t,e)=>{E(e).forEach(([n,o])=>{if(o&&A(n)&&n.includes("--"))t.style.setProperty(n,o);else{const s={};s[n]=o,F(t.style,s)}})},S=t=>t&&t.constructor.name==="Map"||!1,te=t=>typeof t=="number"||!1,p=new Map,Rn={set:(t,e,n,o)=>{!a(t)||(o&&o.length?(p.has(t)||p.set(t,new Map),p.get(t).set(o,setTimeout(e,n))):p.set(t,setTimeout(e,n)))},get:(t,e)=>{if(!a(t))return null;const n=p.get(t);return e&&S(n)?n.get(e)||null:te(n)?n:null},clear:(t,e)=>{if(!a(t))return;const n=p.get(t);e&&e.length&&S(n)?S(n)&&(clearTimeout(n.get(e)),n.delete(e),n.size===0&&p.delete(t)):(clearTimeout(n),p.delete(t))}},Un=t=>t.toUpperCase(),v=(t,e)=>{const{width:n,height:o,top:s,right:c,bottom:i,left:u}=t.getBoundingClientRect();let m=1,r=1;if(e&&a(t)){const{offsetWidth:g,offsetHeight:C}=t;m=g>0?Math.round(n)/g:1,r=C>0?Math.round(o)/C:1}return{width:n/m,height:o/r,top:s/r,right:c/m,bottom:i/r,left:u/m,x:u/m,y:s/r}},Wn=t=>d(t).body,M=t=>d(t).documentElement,Qn=t=>d(t).head,jn=t=>{const e=H(t),n=e?t.scrollX:t.scrollLeft,o=e?t.scrollY:t.scrollTop;return{x:n,y:o}},ee=t=>t&&t.constructor.name==="ShadowRoot"||!1,qn=t=>t.nodeName==="HTML"?t:a(t)&&t.assignedSlot||l(t)&&t.parentNode||ee(t)&&t.host||M(t);function ne(t){if(!a(t))return!1;const{width:e,height:n}=v(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s}const Yn=(t,e,n)=>{const o=a(e),s=v(t,o&&ne(e)),c={x:0,y:0};if(o){const i=v(e,!0);c.x=i.x+e.clientLeft,c.y=i.y+e.clientTop}return{x:s.left+n.x-c.x,y:s.top+n.y-c.y,width:s.width,height:s.height}};let oe=0,se=0;const b=new Map,ce=(t,e)=>{let n=e?oe:se;if(e){const o=ce(t),s=b.get(o)||new Map;b.has(o)||b.set(o,s),S(s)&&!s.has(e)?(s.set(e,n),oe+=1):n=s.get(e)}else{const o=t.id||t;b.has(o)?n=b.get(o):(b.set(o,n),se+=1)}return n},Gn=t=>{var e;return t?B(t)?t.defaultView:l(t)?(e=t==null?void 0:t.ownerDocument)==null?void 0:e.defaultView:t:window},re=t=>Array.isArray(t)||!1,Jn=t=>t&&t.constructor.name==="HTMLCanvasElement"||!1,ie=t=>t&&!!t.shadowRoot||!1,Kn=t=>t&&[1,2,3,4,5,6,7,8].some(e=>t.nodeType===e)||!1,Xn=t=>{if(!l(t))return!1;const{top:e,bottom:n}=v(t),{clientHeight:o}=M(t);return e<=o&&n>=0},Zn=t=>{if(!l(t))return!1;const{clientWidth:e,clientHeight:n}=M(t),{top:o,left:s,bottom:c,right:i}=v(t,!0);return o>=0&&s>=0&&c<=n&&i<=e},$n=t=>re(t)&&t.every(a)||!1,_n=t=>t&&t.constructor.name==="Function"||!1,to=t=>t&&t.constructor.name==="HTMLCollection"||!1,eo=t=>t&&t.tagName==="IMG"||!1,no=t=>{if(!A(t))return!1;try{JSON.parse(t)}catch{return!1}return!0},oo=t=>t&&t.constructor.name==="WeakMap"||!1,so=t=>t&&t.nodeType===1&&["SVG","Image","Video","Canvas"].some(e=>t.constructor.name.includes(e))||!1,co=t=>t&&t.constructor.name==="NodeList"||!1,ro=t=>M(t).dir==="rtl",io=t=>t&&t.constructor.name.includes("SVG")||!1,ao=t=>t&&["TABLE","TD","TH"].includes(t.tagName)||!1,ae=(t,e)=>t?t.closest(e)||ae(t.getRootNode().host,e):null,uo=(t,e)=>l(t)?t:(e&&l(e)?e:d()).querySelector(t),ue=(t,e)=>(l(e)?e:d()).getElementsByTagName(t);return{ariaChecked:le,ariaDescription:de,ariaDescribedBy:fe,ariaExpanded:pe,ariaHidden:ge,ariaHasPopup:me,ariaLabel:Ee,ariaLabelledBy:ve,ariaModal:be,ariaPressed:he,ariaSelected:ye,ariaValueMin:we,ariaValueMax:Ae,ariaValueNow:Se,ariaValueText:Me,nativeEvents:Te,abortEvent:R,blurEvent:W,moveEvent:gt,changeEvent:Q,errorEvent:Y,resetEvent:St,resizeEvent:Mt,scrollEvent:Dt,submitEvent:Ct,loadEvent:nt,loadstartEvent:ke,unloadEvent:xt,readystatechangeEvent:At,beforeunloadEvent:U,orientationchangeEvent:Et,contextmenuEvent:j,DOMContentLoadedEvent:L,DOMMouseScrollEvent:q,selectEvent:Tt,selectendEvent:kt,selectstartEvent:Nt,mouseClickEvents:De,mouseclickEvent:ot,mousedblclickEvent:st,mousedownEvent:ct,mouseupEvent:rt,mousehoverEvent:it,mouseHoverEvents:Ce,mouseenterEvent:at,mouseleaveEvent:ut,mouseinEvent:lt,mouseoutEvent:dt,mouseoverEvent:ft,mousemoveEvent:pt,mousewheelEvent:mt,mouseSwipeEvents:Ne,touchEvents:Le,touchstartEvent:Lt,touchmoveEvent:Ot,touchcancelEvent:It,touchendEvent:zt,pointercancelEvent:vt,pointerdownEvent:bt,pointerleaveEvent:ht,pointermoveEvent:yt,pointerupEvent:wt,focusEvents:Oe,focusEvent:G,focusinEvent:J,focusoutEvent:K,gesturechangeEvent:X,gestureendEvent:Z,gesturestartEvent:$,bezierEasings:_e,animationDuration:Ht,animationDelay:Bt,animationName:O,animationEndEvent:T,transitionDuration:Vt,transitionDelay:Pt,transitionEndEvent:k,transitionProperty:I,isMobile:rn,isApple:an,isFirefox:un,support3DTransform:ln,supportPassive:dn,supportTransform:fn,supportTouch:pn,supportAnimation:mn,supportTransition:gn,addEventListener:Ze,removeEventListener:$e,keyboardEventKeys:Ie,keydownEvent:_,keypressEvent:tt,keyupEvent:et,keyAlt:ze,keyArrowDown:xe,keyArrowLeft:Be,keyArrowRight:Ve,keyArrowUp:He,keyBackspace:Pe,keyCapsLock:Fe,keyControl:Re,keyDelete:Ue,keyEnter:We,keyEscape:Qe,keyInsert:je,keyMeta:qe,keyPause:Ye,keyScrollLock:Ge,keyShift:Je,keySpace:Ke,keyTab:Xe,offsetHeight:tn,offsetWidth:en,scrollHeight:nn,scrollWidth:on,userAgentData:h,userAgent:y,tabindex:sn,addClass:An,removeClass:Sn,hasClass:Mn,on:Ut,off:Wt,one:Qt,dispatchEvent:V,distinct:Nn,Data:D,getInstance:kn,createElement:Yt,createElementNS:Gt,toUpperCase:Un,toLowerCase:$t,Timer:Rn,emulateAnimationEnd:Dn,emulateTransitionEnd:Cn,isElementInScrollRange:Xn,isElementInViewport:Zn,passiveHandler:Vn,getElementAnimationDuration:Kt,getElementAnimationDelay:Jt,getElementTransitionDuration:Zt,getElementTransitionDelay:Xt,getNodeScroll:jn,getParentNode:qn,getRectRelativeToOffsetParent:Yn,getWindow:Gn,isArray:re,isCanvas:Jn,isString:A,isCustomElement:ie,isElement:Kn,isJSON:no,isMap:S,isWeakMap:oo,isNode:l,isNumber:te,isHTMLElement:a,isHTMLImageElement:eo,isSVGElement:io,isNodeList:co,isHTMLCollection:to,isScaledElement:ne,isTableElement:ao,isShadowRoot:ee,isDocument:B,isElementsArray:$n,isFunction:_n,isObject:_t,isWindow:H,isMedia:so,isRTL:ro,closest:ae,querySelector:uo,getCustomElements:t=>[...ue("*",t)].filter(ie),getElementById:(t,e)=>d(e).getElementById(t)||null,querySelectorAll:(t,e)=>(l(e)?e:d()).querySelectorAll(t),getElementsByClassName:(t,e)=>(e&&l(e)?e:d()).getElementsByClassName(t),getElementsByTagName:ue,matches:(t,e)=>t.matches(e),normalizeValue:P,normalizeOptions:zn,reflow:Pn,noop:jt,focus:In,getUID:ce,ArrayFrom:Tn,Float32ArrayFrom:Ln,Float64ArrayFrom:On,ObjectAssign:F,ObjectEntries:E,ObjectKeys:xn,ObjectValues:Hn,OriginalEvent:Bn,getBoundingClientRect:v,getDocument:d,getDocumentBody:Wn,getDocumentElement:M,getDocumentHead:Qn,getElementStyle:f,setElementStyle:Fn,hasAttribute:vn,hasAttributeNS:bn,getAttribute:qt,getAttributeNS:En,setAttribute:x,setAttributeNS:hn,removeAttribute:yn,removeAttributeNS:wn}}();
|
|
1
|
+
var SHORTY=function(){"use strict";const le="aria-checked",de="aria-description",pe="aria-describedby",me="aria-expanded",fe="aria-haspopup",ge="aria-hidden",Ee="aria-label",ve="aria-labelledby",be="aria-modal",he="aria-pressed",ye="aria-selected",we="aria-valuemin",Ae="aria-valuemax",Se="aria-valuenow",Ne="aria-valuetext",U="abort",F="beforeunload",W="blur",Q="change",j="contextmenu",L="DOMContentLoaded",q="DOMMouseScroll",Y="error",G="focus",J="focusin",K="focusout",X="gesturechange",Z="gestureend",$="gesturestart",_="keydown",tt="keypress",et="keyup",nt="load",ot="click",st="dblclick",ct="mousedown",rt="mouseup",it="hover",at="mouseenter",ut="mouseleave",lt="mousein",dt="mouseout",pt="mouseover",mt="mousemove",ft="mousewheel",gt="move",Et="orientationchange",vt="pointercancel",bt="pointerdown",ht="pointerleave",yt="pointermove",wt="pointerup",At="readystatechange",St="reset",Nt="resize",Mt="select",Tt="selectend",kt="selectstart",Ct="scroll",Dt="submit",Lt="touchstart",Ot="touchmove",It="touchcancel",zt="touchend",xt="unload",Me={DOMContentLoaded:L,DOMMouseScroll:q,abort:U,beforeunload:F,blur:W,change:Q,click:ot,contextmenu:j,dblclick:st,error:Y,focus:G,focusin:J,focusout:K,gesturechange:X,gestureend:Z,gesturestart:$,hover:it,keydown:_,keypress:tt,keyup:et,load:nt,mousedown:ct,mousemove:mt,mousein:lt,mouseout:dt,mouseenter:at,mouseleave:ut,mouseover:pt,mouseup:rt,mousewheel:ft,move:gt,orientationchange:Et,pointercancel:vt,pointerdown:bt,pointerleave:ht,pointermove:yt,pointerup:wt,readystatechange:At,reset:St,resize:Nt,scroll:Ct,select:Mt,selectend:Tt,selectstart:kt,submit:Dt,touchcancel:It,touchend:zt,touchmove:Ot,touchstart:Lt,unload:xt},Te="loadstart",ke={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Ce={down:"mousedown",up:"mouseup"},De="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Le={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Oe={in:"focusin",out:"focusout"},Ie={Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},ze="Alt",xe="ArrowDown",Be="ArrowUp",He="ArrowLeft",Ve="ArrowRight",Pe="Backspace",Re="CapsLock",Ue="Control",Fe="Delete",We="Enter",Qe="Escape",je="Insert",qe="Meta",Ye="Pause",Ge="ScrollLock",Je="Shift",Ke="Space",Xe="Tab",Bt="animationDuration",Ht="animationDelay",O="animationName",M="animationend",Vt="transitionDuration",Pt="transitionDelay",T="transitionend",I="transitionProperty",Ze="addEventListener",$e="removeEventListener",_e={linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},tn="offsetHeight",en="offsetWidth",nn="scrollHeight",on="scrollWidth",sn="tabindex",y=navigator.userAgentData,{userAgent:cn}=navigator,w=cn,Rt=/iPhone|iPad|iPod|Android/i;let z=!1;y?z=y.brands.some(t=>Rt.test(t.brand)):z=Rt.test(w);const rn=z,Ut=/(iPhone|iPod|iPad)/,an=y?y.brands.some(t=>Ut.test(t.brand)):Ut.test(w),un=w?w.includes("Firefox"):!1,{head:A}=document,ln=["webkitPerspective","perspective"].some(t=>t in A.style),Ft=(t,e,n,o)=>{const s=o||!1;t.addEventListener(e,n,s)},Wt=(t,e,n,o)=>{const s=o||!1;t.removeEventListener(e,n,s)},Qt=(t,e,n,o)=>{const s=c=>{c.target===t&&(n.apply(t,[c]),Wt(t,e,s,o))};Ft(t,e,s,o)},jt=()=>{},dn=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});Qt(document,L,jt,e)}catch{}return t})(),pn=["webkitTransform","transform"].some(t=>t in A.style),mn="ontouchstart"in window||"msMaxTouchPoints"in navigator,fn=["webkitAnimation","animation"].some(t=>t in A.style),gn=["webkitTransition","transition"].some(t=>t in A.style),qt=(t,e)=>t.getAttribute(e),En=(t,e,n)=>e.getAttributeNS(t,n),vn=(t,e)=>t.hasAttribute(e),bn=(t,e,n)=>e.hasAttributeNS(t,n),x=(t,e,n)=>t.setAttribute(e,n),hn=(t,e,n,o)=>e.setAttributeNS(t,n,o),yn=(t,e)=>t.removeAttribute(e),wn=(t,e,n)=>e.removeAttributeNS(t,n),An=(t,...e)=>{t.classList.add(...e)},Sn=(t,...e)=>{t.classList.remove(...e)},Nn=(t,e)=>t.classList.contains(e),{body:Mn}=document,{documentElement:Tn}=document,kn=t=>Array.from(t),a=t=>t&&t.nodeType===1||!1,S=new Map,k={set:(t,e,n)=>{if(!a(t))return;S.has(e)||S.set(e,new Map),S.get(e).set(t,n)},getAllFor:t=>S.get(t)||null,get:(t,e)=>{if(!a(t)||!e)return null;const n=k.getAllFor(e);return t&&n&&n.get(t)||null},remove:(t,e)=>{const n=k.getAllFor(e);!n||!a(t)||(n.delete(t),n.size===0&&S.delete(e))}},Cn=(t,e)=>k.get(t,e),p=t=>typeof t=="string"||!1,l=t=>t&&[1,2,3,4,5,6,7,8,9,10,11].some(e=>t.nodeType===e)||!1,B=t=>t&&t.constructor.name==="Window"||!1,H=t=>t&&t.nodeType===9||!1,d=t=>B(t)?t.document:H(t)?t:l(t)?t.ownerDocument:window.document,v=t=>Object.entries(t),Yt=t=>{if(!t)return;if(p(t))return d().createElement(t);const{tagName:e}=t,n=Yt(e);if(!n)return;const o={...t};return delete o.tagName,v(o).forEach(([s,c])=>{p(s)&&p(c)&&x(n,s,c)}),n},Gt=(t,e)=>{if(!t||!e)return;if(p(e))return d().createElementNS(t,e);const{tagName:n}=e,o=Gt(t,n);if(!o)return;const s={...e};return delete s.tagName,v(s).forEach(([c,i])=>{p(c)&&p(i)&&x(o,c,i)}),o},V=(t,e)=>t.dispatchEvent(e),Dn=(t,e,n)=>n.indexOf(t)===e,m=(t,e)=>{const n=getComputedStyle(t),o=e.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Jt=t=>{const e=m(t,O),n=m(t,Ht),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Kt=t=>{const e=m(t,O),n=m(t,Bt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Ln=(t,e)=>{let n=0;const o=new Event(M),s=Kt(t),c=Jt(t);if(s){const i=u=>{u.target===t&&(e.apply(t,[u]),t.removeEventListener(M,i),n=1)};t.addEventListener(M,i),setTimeout(()=>{n||V(t,o)},s+c+17)}else e.apply(t,[o])},Xt=t=>{const e=m(t,I),n=m(t,Pt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Zt=t=>{const e=m(t,I),n=m(t,Vt),o=n.includes("ms")?1:1e3,s=e&&e!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},On=(t,e)=>{let n=0;const o=new Event(T),s=Zt(t),c=Xt(t);if(s){const i=u=>{u.target===t&&(e.apply(t,[u]),t.removeEventListener(T,i),n=1)};t.addEventListener(T,i),setTimeout(()=>{n||V(t,o)},s+c+17)}else e.apply(t,[o])},In=t=>Float32Array.from(Array.from(t)),zn=t=>Float64Array.from(Array.from(t)),xn=(t,e)=>t.focus(e),P=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,$t=t=>t.toLowerCase(),Bn=(t,e,n,o)=>{const s={...n},c={...t.dataset},i={...e},u={},g="title";return v(c).forEach(([r,E])=>{const D=o&&typeof r=="string"&&r.includes(o)?r.replace(o,"").replace(/[A-Z]/g,mo=>$t(mo)):r;u[D]=P(E)}),v(s).forEach(([r,E])=>{s[r]=P(E)}),v(e).forEach(([r,E])=>{r in s?i[r]=s[r]:r in u?i[r]=u[r]:i[r]=r===g?qt(t,g):E}),i},R=(t,...e)=>Object.assign(t,...e),Hn=t=>Object.keys(t),Vn=t=>Object.values(t),_t=t=>typeof t=="object"||!1,Pn=(t,e)=>{const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return _t(e)&&R(n,e),n},Rn={passive:!0},Un=t=>t.offsetHeight,Fn=(t,e)=>{v(e).forEach(([n,o])=>{if(o&&p(n)&&n.includes("--"))t.style.setProperty(n,o);else{const s={};s[n]=o,R(t.style,s)}})},C=t=>t&&t.constructor.name==="Map"||!1,te=t=>typeof t=="number"||!1,f=new Map,Wn={set:(t,e,n,o)=>{!a(t)||(o&&o.length?(f.has(t)||f.set(t,new Map),f.get(t).set(o,setTimeout(e,n))):f.set(t,setTimeout(e,n)))},get:(t,e)=>{if(!a(t))return null;const n=f.get(t);return e&&n&&C(n)?n.get(e)||null:te(n)?n:null},clear:(t,e)=>{if(!a(t))return;const n=f.get(t);e&&e.length&&C(n)?(clearTimeout(n.get(e)),n.delete(e),n.size===0&&f.delete(t)):(clearTimeout(n),f.delete(t))}},Qn=t=>t.toUpperCase(),b=(t,e)=>{const{width:n,height:o,top:s,right:c,bottom:i,left:u}=t.getBoundingClientRect();let g=1,r=1;if(e&&a(t)){const{offsetWidth:E,offsetHeight:D}=t;g=E>0?Math.round(n)/E:1,r=D>0?Math.round(o)/D:1}return{width:n/g,height:o/r,top:s/r,right:c/g,bottom:i/r,left:u/g,x:u/g,y:s/r}},jn=t=>d(t).body,N=t=>d(t).documentElement,qn=t=>d(t).head,Yn=t=>{const e=B(t),n=e?t.scrollX:t.scrollLeft,o=e?t.scrollY:t.scrollTop;return{x:n,y:o}},ee=t=>t&&t.constructor.name==="ShadowRoot"||!1,Gn=t=>t.nodeName==="HTML"?t:a(t)&&t.assignedSlot||l(t)&&t.parentNode||ee(t)&&t.host||N(t),ne=t=>{if(!a(t))return!1;const{width:e,height:n}=b(t),{offsetWidth:o,offsetHeight:s}=t;return Math.round(e)!==o||Math.round(n)!==s},Jn=(t,e,n)=>{const o=a(e),s=b(t,o&&ne(e)),c={x:0,y:0};if(o){const i=b(e,!0);c.x=i.x+e.clientLeft,c.y=i.y+e.clientTop}return{x:s.left+n.x-c.x,y:s.top+n.y-c.y,width:s.width,height:s.height}};let oe=0,se=0;const h=new Map,ce=(t,e)=>{let n=e?oe:se;if(e){const o=ce(t),s=h.get(o)||new Map;h.has(o)||h.set(o,s),C(s)&&!s.has(e)?(s.set(e,n),oe+=1):n=s.get(e)}else{const o=t.id||t;h.has(o)?n=h.get(o):(h.set(o,n),se+=1)}return n},Kn=t=>{var e;return t?H(t)?t.defaultView:l(t)?(e=t==null?void 0:t.ownerDocument)==null?void 0:e.defaultView:t:window},re=t=>Array.isArray(t)||!1,Xn=t=>t&&t.nodeName==="CANVAS"||!1,ie=t=>t&&!!t.shadowRoot||!1,Zn=t=>t&&[1,2,3,4,5,6,7,8].some(e=>t.nodeType===e)||!1,$n=t=>{if(!l(t))return!1;const{top:e,bottom:n}=b(t),{clientHeight:o}=N(t);return e<=o&&n>=0},_n=t=>{if(!l(t))return!1;const{clientWidth:e,clientHeight:n}=N(t),{top:o,left:s,bottom:c,right:i}=b(t,!0);return o>=0&&s>=0&&c<=n&&i<=e},to=t=>re(t)&&t.every(a)||!1,eo=t=>typeof t=="function"||!1,no=t=>t&&t.constructor.name==="HTMLCollection"||!1,oo=t=>t&&t.tagName==="IMG"||!1,so=t=>{if(!p(t))return!1;try{JSON.parse(t)}catch{return!1}return!0},co=t=>t&&t.constructor.name==="WeakMap"||!1,ro=t=>t&&t.nodeType===1&&["SVG","Image","Video","Canvas"].some(e=>t.constructor.name.includes(e))||!1,io=t=>t&&t.constructor.name==="NodeList"||!1,ao=t=>N(t).dir==="rtl",uo=t=>t&&t.constructor.name.includes("SVG")||!1,lo=t=>t&&["TABLE","TD","TH"].includes(t.tagName)||!1,ae=(t,e)=>t?t.closest(e)||ae(t.getRootNode().host,e):null,po=(t,e)=>l(t)?t:(e&&l(e)?e:d()).querySelector(t),ue=(t,e)=>(l(e)?e:d()).getElementsByTagName(t);return{ariaChecked:le,ariaDescription:de,ariaDescribedBy:pe,ariaExpanded:me,ariaHidden:ge,ariaHasPopup:fe,ariaLabel:Ee,ariaLabelledBy:ve,ariaModal:be,ariaPressed:he,ariaSelected:ye,ariaValueMin:we,ariaValueMax:Ae,ariaValueNow:Se,ariaValueText:Ne,nativeEvents:Me,abortEvent:U,blurEvent:W,moveEvent:gt,changeEvent:Q,errorEvent:Y,resetEvent:St,resizeEvent:Nt,scrollEvent:Ct,submitEvent:Dt,loadEvent:nt,loadstartEvent:Te,unloadEvent:xt,readystatechangeEvent:At,beforeunloadEvent:F,orientationchangeEvent:Et,contextmenuEvent:j,DOMContentLoadedEvent:L,DOMMouseScrollEvent:q,selectEvent:Mt,selectendEvent:Tt,selectstartEvent:kt,mouseClickEvents:Ce,mouseclickEvent:ot,mousedblclickEvent:st,mousedownEvent:ct,mouseupEvent:rt,mousehoverEvent:it,mouseHoverEvents:De,mouseenterEvent:at,mouseleaveEvent:ut,mouseinEvent:lt,mouseoutEvent:dt,mouseoverEvent:pt,mousemoveEvent:mt,mousewheelEvent:ft,mouseSwipeEvents:ke,touchEvents:Le,touchstartEvent:Lt,touchmoveEvent:Ot,touchcancelEvent:It,touchendEvent:zt,pointercancelEvent:vt,pointerdownEvent:bt,pointerleaveEvent:ht,pointermoveEvent:yt,pointerupEvent:wt,focusEvents:Oe,focusEvent:G,focusinEvent:J,focusoutEvent:K,gesturechangeEvent:X,gestureendEvent:Z,gesturestartEvent:$,bezierEasings:_e,animationDuration:Bt,animationDelay:Ht,animationName:O,animationEndEvent:M,transitionDuration:Vt,transitionDelay:Pt,transitionEndEvent:T,transitionProperty:I,isMobile:rn,isApple:an,isFirefox:un,support3DTransform:ln,supportPassive:dn,supportTransform:pn,supportTouch:mn,supportAnimation:fn,supportTransition:gn,addEventListener:Ze,removeEventListener:$e,keyboardEventKeys:Ie,keydownEvent:_,keypressEvent:tt,keyupEvent:et,keyAlt:ze,keyArrowDown:xe,keyArrowLeft:He,keyArrowRight:Ve,keyArrowUp:Be,keyBackspace:Pe,keyCapsLock:Re,keyControl:Ue,keyDelete:Fe,keyEnter:We,keyEscape:Qe,keyInsert:je,keyMeta:qe,keyPause:Ye,keyScrollLock:Ge,keyShift:Je,keySpace:Ke,keyTab:Xe,offsetHeight:tn,offsetWidth:en,scrollHeight:nn,scrollWidth:on,userAgentData:y,userAgent:w,tabindex:sn,addClass:An,removeClass:Sn,hasClass:Nn,on:Ft,off:Wt,one:Qt,documentBody:Mn,documentElement:Tn,documentHead:A,dispatchEvent:V,distinct:Dn,Data:k,getInstance:Cn,createElement:Yt,createElementNS:Gt,createCustomEvent:Pn,toUpperCase:Qn,toLowerCase:$t,Timer:Wn,emulateAnimationEnd:Ln,emulateTransitionEnd:On,isElementInScrollRange:$n,isElementInViewport:_n,passiveHandler:Rn,getElementAnimationDuration:Kt,getElementAnimationDelay:Jt,getElementTransitionDuration:Zt,getElementTransitionDelay:Xt,getNodeScroll:Yn,getParentNode:Gn,getRectRelativeToOffsetParent:Jn,getWindow:Kn,isArray:re,isCanvas:Xn,isString:p,isCustomElement:ie,isElement:Zn,isJSON:so,isMap:C,isWeakMap:co,isNode:l,isNumber:te,isHTMLElement:a,isHTMLImageElement:oo,isSVGElement:uo,isNodeList:io,isHTMLCollection:no,isScaledElement:ne,isTableElement:lo,isShadowRoot:ee,isDocument:H,isElementsArray:to,isFunction:eo,isObject:_t,isWindow:B,isMedia:ro,isRTL:ao,closest:ae,querySelector:po,getCustomElements:t=>[...ue("*",t)].filter(ie),getElementById:(t,e)=>d(e).getElementById(t)||null,querySelectorAll:(t,e)=>(l(e)?e:d()).querySelectorAll(t),getElementsByClassName:(t,e)=>(e&&l(e)?e:d()).getElementsByClassName(t),getElementsByTagName:ue,matches:(t,e)=>t.matches(e),normalizeValue:P,normalizeOptions:Bn,reflow:Un,noop:jt,focus:xn,getUID:ce,ArrayFrom:kn,Float32ArrayFrom:In,Float64ArrayFrom:zn,ObjectAssign:R,ObjectEntries:v,ObjectKeys:Hn,ObjectValues:Vn,getBoundingClientRect:b,getDocument:d,getDocumentBody:jn,getDocumentElement:N,getDocumentHead:qn,getElementStyle:m,setElementStyle:Fn,hasAttribute:vn,hasAttributeNS:bn,getAttribute:qt,getAttributeNS:En,setAttribute:x,setAttributeNS:hn,removeAttribute:yn,removeAttributeNS:wn}}();
|
|
2
2
|
//# sourceMappingURL=shorty.js.map
|