How to use Pe method in Playwright Internal

Best JavaScript code snippet using playwright-internal

layui.all.js

Source:layui.all.js Github

copy

Full Screen

...2299 }, Pe = function (e, t, n, r, i, o, a) {2300 var s = 0, u = e.length, l = null == n;2301 if ("object" === pe.type(n)) {2302 i = !0;2303 for (s in n) Pe(e, t, s, n[s], !0, o, a)2304 } else if (void 0 !== r && (i = !0, pe.isFunction(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function (e, t, n) {2305 return l.call(pe(e), n)2306 })), t)) for (; s < u; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n)));2307 return i ? e : l ? t.call(e) : u ? t(e[0], n) : o2308 }, Be = /^(?:checkbox|radio)$/i, We = /<([\w:-]+)/, Ie = /^$|\/(?:java|ecma)script/i, $e = /^\s+/,2309 ze = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";2310 !function () {2311 var e = re.createElement("div"), t = re.createDocumentFragment(), n = re.createElement("input");2312 e.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", fe.leadingWhitespace = 3 === e.firstChild.nodeType, fe.tbody = !e.getElementsByTagName("tbody").length, fe.htmlSerialize = !!e.getElementsByTagName("link").length, fe.html5Clone = "<:nav></:nav>" !== re.createElement("nav").cloneNode(!0).outerHTML, n.type = "checkbox", n.checked = !0, t.appendChild(n), fe.appendChecked = n.checked, e.innerHTML = "<textarea>x</textarea>", fe.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue, t.appendChild(e), n = re.createElement("input"), n.setAttribute("type", "radio"), n.setAttribute("checked", "checked"), n.setAttribute("name", "t"), e.appendChild(n), fe.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, fe.noCloneEvent = !!e.addEventListener, e[pe.expando] = 1, fe.attributes = !e.getAttribute(pe.expando)2313 }();2314 var Xe = {2315 option: [1, "<select multiple='multiple'>", "</select>"],2316 legend: [1, "<fieldset>", "</fieldset>"],2317 area: [1, "<map>", "</map>"],2318 param: [1, "<object>", "</object>"],2319 thead: [1, "<table>", "</table>"],2320 tr: [2, "<table><tbody>", "</tbody></table>"],2321 col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],2322 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],2323 _default: fe.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]2324 };2325 Xe.optgroup = Xe.option, Xe.tbody = Xe.tfoot = Xe.colgroup = Xe.caption = Xe.thead, Xe.th = Xe.td;2326 var Ue = /<|&#?\w+;/, Ve = /<tbody/i;2327 !function () {2328 var t, n, r = re.createElement("div");2329 for (t in{2330 submit: !0,2331 change: !0,2332 focusin: !02333 }) n = "on" + t, (fe[t] = n in e) || (r.setAttribute(n, "t"), fe[t] = r.attributes[n].expando === !1);2334 r = null2335 }();2336 var Ye = /^(?:input|select|textarea)$/i, Je = /^key/, Ge = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,2337 Ke = /^(?:focusinfocus|focusoutblur)$/, Qe = /^([^.]*)(?:\.(.+)|)/;2338 pe.event = {2339 global: {},2340 add: function (e, t, n, r, i) {2341 var o, a, s, u, l, c, f, d, p, h, g, m = pe._data(e);2342 if (m) {2343 for (n.handler && (u = n, n = u.handler, i = u.selector), n.guid || (n.guid = pe.guid++), (a = m.events) || (a = m.events = {}), (c = m.handle) || (c = m.handle = function (e) {2344 return "undefined" == typeof pe || e && pe.event.triggered === e.type ? void 0 : pe.event.dispatch.apply(c.elem, arguments)2345 }, c.elem = e), t = (t || "").match(De) || [""], s = t.length; s--;) o = Qe.exec(t[s]) || [], p = g = o[1], h = (o[2] || "").split(".").sort(), p && (l = pe.event.special[p] || {}, p = (i ? l.delegateType : l.bindType) || p, l = pe.event.special[p] || {}, f = pe.extend({2346 type: p,2347 origType: g,2348 data: r,2349 handler: n,2350 guid: n.guid,2351 selector: i,2352 needsContext: i && pe.expr.match.needsContext.test(i),2353 namespace: h.join(".")2354 }, u), (d = a[p]) || (d = a[p] = [], d.delegateCount = 0, l.setup && l.setup.call(e, r, h, c) !== !1 || (e.addEventListener ? e.addEventListener(p, c, !1) : e.attachEvent && e.attachEvent("on" + p, c))), l.add && (l.add.call(e, f), f.handler.guid || (f.handler.guid = n.guid)), i ? d.splice(d.delegateCount++, 0, f) : d.push(f), pe.event.global[p] = !0);2355 e = null2356 }2357 },2358 remove: function (e, t, n, r, i) {2359 var o, a, s, u, l, c, f, d, p, h, g, m = pe.hasData(e) && pe._data(e);2360 if (m && (c = m.events)) {2361 for (t = (t || "").match(De) || [""], l = t.length; l--;) if (s = Qe.exec(t[l]) || [], p = g = s[1], h = (s[2] || "").split(".").sort(), p) {2362 for (f = pe.event.special[p] || {}, p = (r ? f.delegateType : f.bindType) || p, d = c[p] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = o = d.length; o--;) a = d[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (d.splice(o, 1), a.selector && d.delegateCount--, f.remove && f.remove.call(e, a));2363 u && !d.length && (f.teardown && f.teardown.call(e, h, m.handle) !== !1 || pe.removeEvent(e, p, m.handle), delete c[p])2364 } else for (p in c) pe.event.remove(e, p + t[l], n, r, !0);2365 pe.isEmptyObject(c) && (delete m.handle, pe._removeData(e, "events"))2366 }2367 },2368 trigger: function (t, n, r, i) {2369 var o, a, s, u, l, c, f, d = [r || re], p = ce.call(t, "type") ? t.type : t,2370 h = ce.call(t, "namespace") ? t.namespace.split(".") : [];2371 if (s = c = r = r || re, 3 !== r.nodeType && 8 !== r.nodeType && !Ke.test(p + pe.event.triggered) && (p.indexOf(".") > -1 && (h = p.split("."), p = h.shift(), h.sort()), a = p.indexOf(":") < 0 && "on" + p, t = t[pe.expando] ? t : new pe.Event(p, "object" == typeof t && t), t.isTrigger = i ? 2 : 3, t.namespace = h.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), n = null == n ? [t] : pe.makeArray(n, [t]), l = pe.event.special[p] || {}, i || !l.trigger || l.trigger.apply(r, n) !== !1)) {2372 if (!i && !l.noBubble && !pe.isWindow(r)) {2373 for (u = l.delegateType || p, Ke.test(u + p) || (s = s.parentNode); s; s = s.parentNode) d.push(s), c = s;2374 c === (r.ownerDocument || re) && d.push(c.defaultView || c.parentWindow || e)2375 }2376 for (f = 0; (s = d[f++]) && !t.isPropagationStopped();) t.type = f > 1 ? u : l.bindType || p, o = (pe._data(s, "events") || {})[t.type] && pe._data(s, "handle"), o && o.apply(s, n), o = a && s[a], o && o.apply && He(s) && (t.result = o.apply(s, n), t.result === !1 && t.preventDefault());2377 if (t.type = p, !i && !t.isDefaultPrevented() && (!l._default || l._default.apply(d.pop(), n) === !1) && He(r) && a && r[p] && !pe.isWindow(r)) {2378 c = r[a], c && (r[a] = null), pe.event.triggered = p;2379 try {2380 r[p]()2381 } catch (g) {2382 }2383 pe.event.triggered = void 0, c && (r[a] = c)2384 }2385 return t.result2386 }2387 },2388 dispatch: function (e) {2389 e = pe.event.fix(e);2390 var t, n, r, i, o, a = [], s = ie.call(arguments), u = (pe._data(this, "events") || {})[e.type] || [],2391 l = pe.event.special[e.type] || {};2392 if (s[0] = e, e.delegateTarget = this, !l.preDispatch || l.preDispatch.call(this, e) !== !1) {2393 for (a = pe.event.handlers.call(this, e, u), t = 0; (i = a[t++]) && !e.isPropagationStopped();) for (e.currentTarget = i.elem, n = 0; (o = i.handlers[n++]) && !e.isImmediatePropagationStopped();) e.rnamespace && !e.rnamespace.test(o.namespace) || (e.handleObj = o, e.data = o.data, r = ((pe.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, s), void 0 !== r && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()));2394 return l.postDispatch && l.postDispatch.call(this, e), e.result2395 }2396 },2397 handlers: function (e, t) {2398 var n, r, i, o, a = [], s = t.delegateCount, u = e.target;2399 if (s && u.nodeType && ("click" !== e.type || isNaN(e.button) || e.button < 1)) for (; u != this; u = u.parentNode || this) if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {2400 for (r = [], n = 0; n < s; n++) o = t[n], i = o.selector + " ", void 0 === r[i] && (r[i] = o.needsContext ? pe(i, this).index(u) > -1 : pe.find(i, this, null, [u]).length), r[i] && r.push(o);2401 r.length && a.push({elem: u, handlers: r})2402 }2403 return s < t.length && a.push({elem: this, handlers: t.slice(s)}), a2404 },2405 fix: function (e) {2406 if (e[pe.expando]) return e;2407 var t, n, r, i = e.type, o = e, a = this.fixHooks[i];2408 for (a || (this.fixHooks[i] = a = Ge.test(i) ? this.mouseHooks : Je.test(i) ? this.keyHooks : {}), r = a.props ? this.props.concat(a.props) : this.props, e = new pe.Event(o), t = r.length; t--;) n = r[t], e[n] = o[n];2409 return e.target || (e.target = o.srcElement || re), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, a.filter ? a.filter(e, o) : e2410 },2411 props: "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),2412 fixHooks: {},2413 keyHooks: {2414 props: "char charCode key keyCode".split(" "), filter: function (e, t) {2415 return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e2416 }2417 },2418 mouseHooks: {2419 props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),2420 filter: function (e, t) {2421 var n, r, i, o = t.button, a = t.fromElement;2422 return null == e.pageX && null != t.clientX && (r = e.target.ownerDocument || re, i = r.documentElement, n = r.body, e.pageX = t.clientX + (i && i.scrollLeft || n && n.scrollLeft || 0) - (i && i.clientLeft || n && n.clientLeft || 0), e.pageY = t.clientY + (i && i.scrollTop || n && n.scrollTop || 0) - (i && i.clientTop || n && n.clientTop || 0)), !e.relatedTarget && a && (e.relatedTarget = a === e.target ? t.toElement : a), e.which || void 0 === o || (e.which = 1 & o ? 1 : 2 & o ? 3 : 4 & o ? 2 : 0), e2423 }2424 },2425 special: {2426 load: {noBubble: !0}, focus: {2427 trigger: function () {2428 if (this !== b() && this.focus) try {2429 return this.focus(), !12430 } catch (e) {2431 }2432 }, delegateType: "focusin"2433 }, blur: {2434 trigger: function () {2435 if (this === b() && this.blur) return this.blur(), !12436 }, delegateType: "focusout"2437 }, click: {2438 trigger: function () {2439 if (pe.nodeName(this, "input") && "checkbox" === this.type && this.click) return this.click(), !12440 }, _default: function (e) {2441 return pe.nodeName(e.target, "a")2442 }2443 }, beforeunload: {2444 postDispatch: function (e) {2445 void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)2446 }2447 }2448 },2449 simulate: function (e, t, n) {2450 var r = pe.extend(new pe.Event, n, {type: e, isSimulated: !0});2451 pe.event.trigger(r, null, t), r.isDefaultPrevented() && n.preventDefault()2452 }2453 }, pe.removeEvent = re.removeEventListener ? function (e, t, n) {2454 e.removeEventListener && e.removeEventListener(t, n)2455 } : function (e, t, n) {2456 var r = "on" + t;2457 e.detachEvent && ("undefined" == typeof e[r] && (e[r] = null), e.detachEvent(r, n))2458 }, pe.Event = function (e, t) {2459 return this instanceof pe.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && e.returnValue === !1 ? v : x) : this.type = e, t && pe.extend(this, t), this.timeStamp = e && e.timeStamp || pe.now(), void(this[pe.expando] = !0)) : new pe.Event(e, t)2460 }, pe.Event.prototype = {2461 constructor: pe.Event,2462 isDefaultPrevented: x,2463 isPropagationStopped: x,2464 isImmediatePropagationStopped: x,2465 preventDefault: function () {2466 var e = this.originalEvent;2467 this.isDefaultPrevented = v, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)2468 },2469 stopPropagation: function () {2470 var e = this.originalEvent;2471 this.isPropagationStopped = v, e && !this.isSimulated && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)2472 },2473 stopImmediatePropagation: function () {2474 var e = this.originalEvent;2475 this.isImmediatePropagationStopped = v, e && e.stopImmediatePropagation && e.stopImmediatePropagation(), this.stopPropagation()2476 }2477 }, pe.each({2478 mouseenter: "mouseover",2479 mouseleave: "mouseout",2480 pointerenter: "pointerover",2481 pointerleave: "pointerout"2482 }, function (e, t) {2483 pe.event.special[e] = {2484 delegateType: t, bindType: t, handle: function (e) {2485 var n, r = this, i = e.relatedTarget, o = e.handleObj;2486 return i && (i === r || pe.contains(r, i)) || (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n2487 }2488 }2489 }), fe.submit || (pe.event.special.submit = {2490 setup: function () {2491 return !pe.nodeName(this, "form") && void pe.event.add(this, "click._submit keypress._submit", function (e) {2492 var t = e.target, n = pe.nodeName(t, "input") || pe.nodeName(t, "button") ? pe.prop(t, "form") : void 0;2493 n && !pe._data(n, "submit") && (pe.event.add(n, "submit._submit", function (e) {2494 e._submitBubble = !02495 }), pe._data(n, "submit", !0))2496 })2497 }, postDispatch: function (e) {2498 e._submitBubble && (delete e._submitBubble, this.parentNode && !e.isTrigger && pe.event.simulate("submit", this.parentNode, e))2499 }, teardown: function () {2500 return !pe.nodeName(this, "form") && void pe.event.remove(this, "._submit")2501 }2502 }), fe.change || (pe.event.special.change = {2503 setup: function () {2504 return Ye.test(this.nodeName) ? ("checkbox" !== this.type && "radio" !== this.type || (pe.event.add(this, "propertychange._change", function (e) {2505 "checked" === e.originalEvent.propertyName && (this._justChanged = !0)2506 }), pe.event.add(this, "click._change", function (e) {2507 this._justChanged && !e.isTrigger && (this._justChanged = !1), pe.event.simulate("change", this, e)2508 })), !1) : void pe.event.add(this, "beforeactivate._change", function (e) {2509 var t = e.target;2510 Ye.test(t.nodeName) && !pe._data(t, "change") && (pe.event.add(t, "change._change", function (e) {2511 !this.parentNode || e.isSimulated || e.isTrigger || pe.event.simulate("change", this.parentNode, e)2512 }), pe._data(t, "change", !0))2513 })2514 }, handle: function (e) {2515 var t = e.target;2516 if (this !== t || e.isSimulated || e.isTrigger || "radio" !== t.type && "checkbox" !== t.type) return e.handleObj.handler.apply(this, arguments)2517 }, teardown: function () {2518 return pe.event.remove(this, "._change"), !Ye.test(this.nodeName)2519 }2520 }), fe.focusin || pe.each({focus: "focusin", blur: "focusout"}, function (e, t) {2521 var n = function (e) {2522 pe.event.simulate(t, e.target, pe.event.fix(e))2523 };2524 pe.event.special[t] = {2525 setup: function () {2526 var r = this.ownerDocument || this, i = pe._data(r, t);2527 i || r.addEventListener(e, n, !0), pe._data(r, t, (i || 0) + 1)2528 }, teardown: function () {2529 var r = this.ownerDocument || this, i = pe._data(r, t) - 1;2530 i ? pe._data(r, t, i) : (r.removeEventListener(e, n, !0), pe._removeData(r, t))2531 }2532 }2533 }), pe.fn.extend({2534 on: function (e, t, n, r) {2535 return w(this, e, t, n, r)2536 }, one: function (e, t, n, r) {2537 return w(this, e, t, n, r, 1)2538 }, off: function (e, t, n) {2539 var r, i;2540 if (e && e.preventDefault && e.handleObj) return r = e.handleObj, pe(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this;2541 if ("object" == typeof e) {2542 for (i in e) this.off(i, t, e[i]);2543 return this2544 }2545 return t !== !1 && "function" != typeof t || (n = t, t = void 0), n === !1 && (n = x), this.each(function () {2546 pe.event.remove(this, e, n, t)2547 })2548 }, trigger: function (e, t) {2549 return this.each(function () {2550 pe.event.trigger(e, t, this)2551 })2552 }, triggerHandler: function (e, t) {2553 var n = this[0];2554 if (n) return pe.event.trigger(e, t, n, !0)2555 }2556 });2557 var Ze = / jQuery\d+="(?:null|\d+)"/g, et = new RegExp("<(?:" + ze + ")[\\s/>]", "i"),2558 tt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi, nt = /<script|<style|<link/i,2559 rt = /checked\s*(?:[^=]|=\s*.checked.)/i, it = /^true\/(.*)/, ot = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,2560 at = p(re), st = at.appendChild(re.createElement("div"));2561 pe.extend({2562 htmlPrefilter: function (e) {2563 return e.replace(tt, "<$1></$2>")2564 }, clone: function (e, t, n) {2565 var r, i, o, a, s, u = pe.contains(e.ownerDocument, e);2566 if (fe.html5Clone || pe.isXMLDoc(e) || !et.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (st.innerHTML = e.outerHTML, st.removeChild(o = st.firstChild)), !(fe.noCloneEvent && fe.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || pe.isXMLDoc(e))) for (r = h(o), s = h(e), a = 0; null != (i = s[a]); ++a) r[a] && k(i, r[a]);2567 if (t) if (n) for (s = s || h(e), r = r || h(o), a = 0; null != (i = s[a]); a++) N(i, r[a]); else N(e, o);2568 return r = h(o, "script"), r.length > 0 && g(r, !u && h(e, "script")), r = s = i = null, o2569 }, cleanData: function (e, t) {2570 for (var n, r, i, o, a = 0, s = pe.expando, u = pe.cache, l = fe.attributes, c = pe.event.special; null != (n = e[a]); a++) if ((t || He(n)) && (i = n[s], o = i && u[i])) {2571 if (o.events) for (r in o.events) c[r] ? pe.event.remove(n, r) : pe.removeEvent(n, r, o.handle);2572 u[i] && (delete u[i], l || "undefined" == typeof n.removeAttribute ? n[s] = void 0 : n.removeAttribute(s), ne.push(i))2573 }2574 }2575 }), pe.fn.extend({2576 domManip: S, detach: function (e) {2577 return A(this, e, !0)2578 }, remove: function (e) {2579 return A(this, e)2580 }, text: function (e) {2581 return Pe(this, function (e) {2582 return void 0 === e ? pe.text(this) : this.empty().append((this[0] && this[0].ownerDocument || re).createTextNode(e))2583 }, null, e, arguments.length)2584 }, append: function () {2585 return S(this, arguments, function (e) {2586 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {2587 var t = T(this, e);2588 t.appendChild(e)2589 }2590 })2591 }, prepend: function () {2592 return S(this, arguments, function (e) {2593 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {2594 var t = T(this, e);2595 t.insertBefore(e, t.firstChild)2596 }2597 })2598 }, before: function () {2599 return S(this, arguments, function (e) {2600 this.parentNode && this.parentNode.insertBefore(e, this)2601 })2602 }, after: function () {2603 return S(this, arguments, function (e) {2604 this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)2605 })2606 }, empty: function () {2607 for (var e, t = 0; null != (e = this[t]); t++) {2608 for (1 === e.nodeType && pe.cleanData(h(e, !1)); e.firstChild;) e.removeChild(e.firstChild);2609 e.options && pe.nodeName(e, "select") && (e.options.length = 0)2610 }2611 return this2612 }, clone: function (e, t) {2613 return e = null != e && e, t = null == t ? e : t, this.map(function () {2614 return pe.clone(this, e, t)2615 })2616 }, html: function (e) {2617 return Pe(this, function (e) {2618 var t = this[0] || {}, n = 0, r = this.length;2619 if (void 0 === e) return 1 === t.nodeType ? t.innerHTML.replace(Ze, "") : void 0;2620 if ("string" == typeof e && !nt.test(e) && (fe.htmlSerialize || !et.test(e)) && (fe.leadingWhitespace || !$e.test(e)) && !Xe[(We.exec(e) || ["", ""])[1].toLowerCase()]) {2621 e = pe.htmlPrefilter(e);2622 try {2623 for (; n < r; n++) t = this[n] || {}, 1 === t.nodeType && (pe.cleanData(h(t, !1)), t.innerHTML = e);2624 t = 02625 } catch (i) {2626 }2627 }2628 t && this.empty().append(e)2629 }, null, e, arguments.length)2630 }, replaceWith: function () {2631 var e = [];2632 return S(this, arguments, function (t) {2633 var n = this.parentNode;2634 pe.inArray(this, e) < 0 && (pe.cleanData(h(this)),2635 n && n.replaceChild(t, this))2636 }, e)2637 }2638 }), pe.each({2639 appendTo: "append",2640 prependTo: "prepend",2641 insertBefore: "before",2642 insertAfter: "after",2643 replaceAll: "replaceWith"2644 }, function (e, t) {2645 pe.fn[e] = function (e) {2646 for (var n, r = 0, i = [], o = pe(e), a = o.length - 1; r <= a; r++) n = r === a ? this : this.clone(!0), pe(o[r])[t](n), ae.apply(i, n.get());2647 return this.pushStack(i)2648 }2649 });2650 var ut, lt = {HTML: "block", BODY: "block"}, ct = /^margin/, ft = new RegExp("^(" + Fe + ")(?!px)[a-z%]+$", "i"),2651 dt = function (e, t, n, r) {2652 var i, o, a = {};2653 for (o in t) a[o] = e.style[o], e.style[o] = t[o];2654 i = n.apply(e, r || []);2655 for (o in t) e.style[o] = a[o];2656 return i2657 }, pt = re.documentElement;2658 !function () {2659 function t() {2660 var t, c, f = re.documentElement;2661 f.appendChild(u), l.style.cssText = "-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%", n = i = s = !1, r = a = !0, e.getComputedStyle && (c = e.getComputedStyle(l), n = "1%" !== (c || {}).top, s = "2px" === (c || {}).marginLeft, i = "4px" === (c || {width: "4px"}).width, l.style.marginRight = "50%", r = "4px" === (c || {marginRight: "4px"}).marginRight, t = l.appendChild(re.createElement("div")), t.style.cssText = l.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", t.style.marginRight = t.style.width = "0", l.style.width = "1px", a = !parseFloat((e.getComputedStyle(t) || {}).marginRight), l.removeChild(t)), l.style.display = "none", o = 0 === l.getClientRects().length, o && (l.style.display = "", l.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", t = l.getElementsByTagName("td"), t[0].style.cssText = "margin:0;border:0;padding:0;display:none", o = 0 === t[0].offsetHeight, o && (t[0].style.display = "", t[1].style.display = "none", o = 0 === t[0].offsetHeight)), f.removeChild(u)2662 }2663 var n, r, i, o, a, s, u = re.createElement("div"), l = re.createElement("div");2664 l.style && (l.style.cssText = "float:left;opacity:.5", fe.opacity = "0.5" === l.style.opacity, fe.cssFloat = !!l.style.cssFloat, l.style.backgroundClip = "content-box", l.cloneNode(!0).style.backgroundClip = "", fe.clearCloneStyle = "content-box" === l.style.backgroundClip, u = re.createElement("div"), u.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", l.innerHTML = "", u.appendChild(l), fe.boxSizing = "" === l.style.boxSizing || "" === l.style.MozBoxSizing || "" === l.style.WebkitBoxSizing, pe.extend(fe, {2665 reliableHiddenOffsets: function () {2666 return null == n && t(), o2667 }, boxSizingReliable: function () {2668 return null == n && t(), i2669 }, pixelMarginRight: function () {2670 return null == n && t(), r2671 }, pixelPosition: function () {2672 return null == n && t(), n2673 }, reliableMarginRight: function () {2674 return null == n && t(), a2675 }, reliableMarginLeft: function () {2676 return null == n && t(), s2677 }2678 }))2679 }();2680 var ht, gt, mt = /^(top|right|bottom|left)$/;2681 e.getComputedStyle ? (ht = function (t) {2682 var n = t.ownerDocument.defaultView;2683 return n && n.opener || (n = e), n.getComputedStyle(t)2684 }, gt = function (e, t, n) {2685 var r, i, o, a, s = e.style;2686 return n = n || ht(e), a = n ? n.getPropertyValue(t) || n[t] : void 0, "" !== a && void 0 !== a || pe.contains(e.ownerDocument, e) || (a = pe.style(e, t)), n && !fe.pixelMarginRight() && ft.test(a) && ct.test(t) && (r = s.width, i = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = r, s.minWidth = i, s.maxWidth = o), void 0 === a ? a : a + ""2687 }) : pt.currentStyle && (ht = function (e) {2688 return e.currentStyle2689 }, gt = function (e, t, n) {2690 var r, i, o, a, s = e.style;2691 return n = n || ht(e), a = n ? n[t] : void 0, null == a && s && s[t] && (a = s[t]), ft.test(a) && !mt.test(t) && (r = s.left, i = e.runtimeStyle, o = i && i.left, o && (i.left = e.currentStyle.left), s.left = "fontSize" === t ? "1em" : a, a = s.pixelLeft + "px", s.left = r, o && (i.left = o)), void 0 === a ? a : a + "" || "auto"2692 });2693 var yt = /alpha\([^)]*\)/i, vt = /opacity\s*=\s*([^)]*)/i, xt = /^(none|table(?!-c[ea]).+)/,2694 bt = new RegExp("^(" + Fe + ")(.*)$", "i"), wt = {position: "absolute", visibility: "hidden", display: "block"},2695 Tt = {letterSpacing: "0", fontWeight: "400"}, Ct = ["Webkit", "O", "Moz", "ms"],2696 Et = re.createElement("div").style;2697 pe.extend({2698 cssHooks: {2699 opacity: {2700 get: function (e, t) {2701 if (t) {2702 var n = gt(e, "opacity");2703 return "" === n ? "1" : n2704 }2705 }2706 }2707 },2708 cssNumber: {2709 animationIterationCount: !0,2710 columnCount: !0,2711 fillOpacity: !0,2712 flexGrow: !0,2713 flexShrink: !0,2714 fontWeight: !0,2715 lineHeight: !0,2716 opacity: !0,2717 order: !0,2718 orphans: !0,2719 widows: !0,2720 zIndex: !0,2721 zoom: !02722 },2723 cssProps: {"float": fe.cssFloat ? "cssFloat" : "styleFloat"},2724 style: function (e, t, n, r) {2725 if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {2726 var i, o, a, s = pe.camelCase(t), u = e.style;2727 if (t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s), a = pe.cssHooks[t] || pe.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : u[t];2728 if (o = typeof n, "string" === o && (i = Me.exec(n)) && i[1] && (n = d(e, t, i), o = "number"), null != n && n === n && ("number" === o && (n += i && i[3] || (pe.cssNumber[s] ? "" : "px")), fe.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (u[t] = "inherit"), !(a && "set" in a && void 0 === (n = a.set(e, n, r))))) try {2729 u[t] = n2730 } catch (l) {2731 }2732 }2733 },2734 css: function (e, t, n, r) {2735 var i, o, a, s = pe.camelCase(t);2736 return t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s), a = pe.cssHooks[t] || pe.cssHooks[s], a && "get" in a && (o = a.get(e, !0, n)), void 0 === o && (o = gt(e, t, r)), "normal" === o && t in Tt && (o = Tt[t]), "" === n || n ? (i = parseFloat(o), n === !0 || isFinite(i) ? i || 0 : o) : o2737 }2738 }), pe.each(["height", "width"], function (e, t) {2739 pe.cssHooks[t] = {2740 get: function (e, n, r) {2741 if (n) return xt.test(pe.css(e, "display")) && 0 === e.offsetWidth ? dt(e, wt, function () {2742 return M(e, t, r)2743 }) : M(e, t, r)2744 }, set: function (e, n, r) {2745 var i = r && ht(e);2746 return _(e, n, r ? F(e, t, r, fe.boxSizing && "border-box" === pe.css(e, "boxSizing", !1, i), i) : 0)2747 }2748 }2749 }), fe.opacity || (pe.cssHooks.opacity = {2750 get: function (e, t) {2751 return vt.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""2752 }, set: function (e, t) {2753 var n = e.style, r = e.currentStyle, i = pe.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "",2754 o = r && r.filter || n.filter || "";2755 n.zoom = 1, (t >= 1 || "" === t) && "" === pe.trim(o.replace(yt, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = yt.test(o) ? o.replace(yt, i) : o + " " + i)2756 }2757 }), pe.cssHooks.marginRight = L(fe.reliableMarginRight, function (e, t) {2758 if (t) return dt(e, {display: "inline-block"}, gt, [e, "marginRight"])2759 }), pe.cssHooks.marginLeft = L(fe.reliableMarginLeft, function (e, t) {2760 if (t) return (parseFloat(gt(e, "marginLeft")) || (pe.contains(e.ownerDocument, e) ? e.getBoundingClientRect().left - dt(e, {marginLeft: 0}, function () {2761 return e.getBoundingClientRect().left2762 }) : 0)) + "px"2763 }), pe.each({margin: "", padding: "", border: "Width"}, function (e, t) {2764 pe.cssHooks[e + t] = {2765 expand: function (n) {2766 for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++) i[e + Oe[r] + t] = o[r] || o[r - 2] || o[0];2767 return i2768 }2769 }, ct.test(e) || (pe.cssHooks[e + t].set = _)2770 }), pe.fn.extend({2771 css: function (e, t) {2772 return Pe(this, function (e, t, n) {2773 var r, i, o = {}, a = 0;2774 if (pe.isArray(t)) {2775 for (r = ht(e), i = t.length; a < i; a++) o[t[a]] = pe.css(e, t[a], !1, r);2776 return o2777 }2778 return void 0 !== n ? pe.style(e, t, n) : pe.css(e, t)2779 }, e, t, arguments.length > 1)2780 }, show: function () {2781 return q(this, !0)2782 }, hide: function () {2783 return q(this)2784 }, toggle: function (e) {2785 return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () {2786 Re(this) ? pe(this).show() : pe(this).hide()2787 })2788 }2789 }), pe.Tween = O, O.prototype = {2790 constructor: O, init: function (e, t, n, r, i, o) {2791 this.elem = e, this.prop = n, this.easing = i || pe.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (pe.cssNumber[n] ? "" : "px")2792 }, cur: function () {2793 var e = O.propHooks[this.prop];2794 return e && e.get ? e.get(this) : O.propHooks._default.get(this)2795 }, run: function (e) {2796 var t, n = O.propHooks[this.prop];2797 return this.options.duration ? this.pos = t = pe.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : O.propHooks._default.set(this), this2798 }2799 }, O.prototype.init.prototype = O.prototype, O.propHooks = {2800 _default: {2801 get: function (e) {2802 var t;2803 return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = pe.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0)2804 }, set: function (e) {2805 pe.fx.step[e.prop] ? pe.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[pe.cssProps[e.prop]] && !pe.cssHooks[e.prop] ? e.elem[e.prop] = e.now : pe.style(e.elem, e.prop, e.now + e.unit)2806 }2807 }2808 }, O.propHooks.scrollTop = O.propHooks.scrollLeft = {2809 set: function (e) {2810 e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)2811 }2812 }, pe.easing = {2813 linear: function (e) {2814 return e2815 }, swing: function (e) {2816 return .5 - Math.cos(e * Math.PI) / 22817 }, _default: "swing"2818 }, pe.fx = O.prototype.init, pe.fx.step = {};2819 var Nt, kt, St = /^(?:toggle|show|hide)$/, At = /queueHooks$/;2820 pe.Animation = pe.extend($, {2821 tweeners: {2822 "*": [function (e, t) {2823 var n = this.createTween(e, t);2824 return d(n.elem, e, Me.exec(t), n), n2825 }]2826 }, tweener: function (e, t) {2827 pe.isFunction(e) ? (t = e, e = ["*"]) : e = e.match(De);2828 for (var n, r = 0, i = e.length; r < i; r++) n = e[r], $.tweeners[n] = $.tweeners[n] || [], $.tweeners[n].unshift(t)2829 }, prefilters: [W], prefilter: function (e, t) {2830 t ? $.prefilters.unshift(e) : $.prefilters.push(e)2831 }2832 }), pe.speed = function (e, t, n) {2833 var r = e && "object" == typeof e ? pe.extend({}, e) : {2834 complete: n || !n && t || pe.isFunction(e) && e,2835 duration: e,2836 easing: n && t || t && !pe.isFunction(t) && t2837 };2838 return r.duration = pe.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in pe.fx.speeds ? pe.fx.speeds[r.duration] : pe.fx.speeds._default, null != r.queue && r.queue !== !0 || (r.queue = "fx"), r.old = r.complete, r.complete = function () {2839 pe.isFunction(r.old) && r.old.call(this), r.queue && pe.dequeue(this, r.queue)2840 }, r2841 }, pe.fn.extend({2842 fadeTo: function (e, t, n, r) {2843 return this.filter(Re).css("opacity", 0).show().end().animate({opacity: t}, e, n, r)2844 }, animate: function (e, t, n, r) {2845 var i = pe.isEmptyObject(e), o = pe.speed(t, n, r), a = function () {2846 var t = $(this, pe.extend({}, e), o);2847 (i || pe._data(this, "finish")) && t.stop(!0)2848 };2849 return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)2850 }, stop: function (e, t, n) {2851 var r = function (e) {2852 var t = e.stop;2853 delete e.stop, t(n)2854 };2855 return "string" != typeof e && (n = t, t = e, e = void 0), t && e !== !1 && this.queue(e || "fx", []), this.each(function () {2856 var t = !0, i = null != e && e + "queueHooks", o = pe.timers, a = pe._data(this);2857 if (i) a[i] && a[i].stop && r(a[i]); else for (i in a) a[i] && a[i].stop && At.test(i) && r(a[i]);2858 for (i = o.length; i--;) o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), t = !1, o.splice(i, 1));2859 !t && n || pe.dequeue(this, e)2860 })2861 }, finish: function (e) {2862 return e !== !1 && (e = e || "fx"), this.each(function () {2863 var t, n = pe._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = pe.timers,2864 a = r ? r.length : 0;2865 for (n.finish = !0, pe.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));2866 for (t = 0; t < a; t++) r[t] && r[t].finish && r[t].finish.call(this);2867 delete n.finish2868 })2869 }2870 }), pe.each(["toggle", "show", "hide"], function (e, t) {2871 var n = pe.fn[t];2872 pe.fn[t] = function (e, r, i) {2873 return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(P(t, !0), e, r, i)2874 }2875 }), pe.each({2876 slideDown: P("show"),2877 slideUp: P("hide"),2878 slideToggle: P("toggle"),2879 fadeIn: {opacity: "show"},2880 fadeOut: {opacity: "hide"},2881 fadeToggle: {opacity: "toggle"}2882 }, function (e, t) {2883 pe.fn[e] = function (e, n, r) {2884 return this.animate(t, e, n, r)2885 }2886 }), pe.timers = [], pe.fx.tick = function () {2887 var e, t = pe.timers, n = 0;2888 for (Nt = pe.now(); n < t.length; n++) e = t[n], e() || t[n] !== e || t.splice(n--, 1);2889 t.length || pe.fx.stop(), Nt = void 02890 }, pe.fx.timer = function (e) {2891 pe.timers.push(e), e() ? pe.fx.start() : pe.timers.pop()2892 }, pe.fx.interval = 13, pe.fx.start = function () {2893 kt || (kt = e.setInterval(pe.fx.tick, pe.fx.interval))2894 }, pe.fx.stop = function () {2895 e.clearInterval(kt), kt = null2896 }, pe.fx.speeds = {slow: 600, fast: 200, _default: 400}, pe.fn.delay = function (t, n) {2897 return t = pe.fx ? pe.fx.speeds[t] || t : t, n = n || "fx", this.queue(n, function (n, r) {2898 var i = e.setTimeout(n, t);2899 r.stop = function () {2900 e.clearTimeout(i)2901 }2902 })2903 }, function () {2904 var e, t = re.createElement("input"), n = re.createElement("div"), r = re.createElement("select"),2905 i = r.appendChild(re.createElement("option"));2906 n = re.createElement("div"), n.setAttribute("className", "t"), n.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", e = n.getElementsByTagName("a")[0], t.setAttribute("type", "checkbox"), n.appendChild(t), e = n.getElementsByTagName("a")[0], e.style.cssText = "top:1px", fe.getSetAttribute = "t" !== n.className, fe.style = /top/.test(e.getAttribute("style")), fe.hrefNormalized = "/a" === e.getAttribute("href"), fe.checkOn = !!t.value, fe.optSelected = i.selected, fe.enctype = !!re.createElement("form").enctype, r.disabled = !0, fe.optDisabled = !i.disabled, t = re.createElement("input"), t.setAttribute("value", ""), fe.input = "" === t.getAttribute("value"), t.value = "t", t.setAttribute("type", "radio"), fe.radioValue = "t" === t.value2907 }();2908 var Dt = /\r/g, jt = /[\x20\t\r\n\f]+/g;2909 pe.fn.extend({2910 val: function (e) {2911 var t, n, r, i = this[0];2912 {2913 if (arguments.length) return r = pe.isFunction(e), this.each(function (n) {2914 var i;2915 1 === this.nodeType && (i = r ? e.call(this, n, pe(this).val()) : e, null == i ? i = "" : "number" == typeof i ? i += "" : pe.isArray(i) && (i = pe.map(i, function (e) {2916 return null == e ? "" : e + ""2917 })), t = pe.valHooks[this.type] || pe.valHooks[this.nodeName.toLowerCase()], t && "set" in t && void 0 !== t.set(this, i, "value") || (this.value = i))2918 });2919 if (i) return t = pe.valHooks[i.type] || pe.valHooks[i.nodeName.toLowerCase()], t && "get" in t && void 0 !== (n = t.get(i, "value")) ? n : (n = i.value, "string" == typeof n ? n.replace(Dt, "") : null == n ? "" : n)2920 }2921 }2922 }), pe.extend({2923 valHooks: {2924 option: {2925 get: function (e) {2926 var t = pe.find.attr(e, "value");2927 return null != t ? t : pe.trim(pe.text(e)).replace(jt, " ")2928 }2929 }, select: {2930 get: function (e) {2931 for (var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || i < 0, a = o ? null : [], s = o ? i + 1 : r.length, u = i < 0 ? s : o ? i : 0; u < s; u++) if (n = r[u], (n.selected || u === i) && (fe.optDisabled ? !n.disabled : null === n.getAttribute("disabled")) && (!n.parentNode.disabled || !pe.nodeName(n.parentNode, "optgroup"))) {2932 if (t = pe(n).val(), o) return t;2933 a.push(t)2934 }2935 return a2936 }, set: function (e, t) {2937 for (var n, r, i = e.options, o = pe.makeArray(t), a = i.length; a--;) if (r = i[a], pe.inArray(pe.valHooks.option.get(r), o) > -1) try {2938 r.selected = n = !02939 } catch (s) {2940 r.scrollHeight2941 } else r.selected = !1;2942 return n || (e.selectedIndex = -1), i2943 }2944 }2945 }2946 }), pe.each(["radio", "checkbox"], function () {2947 pe.valHooks[this] = {2948 set: function (e, t) {2949 if (pe.isArray(t)) return e.checked = pe.inArray(pe(e).val(), t) > -12950 }2951 }, fe.checkOn || (pe.valHooks[this].get = function (e) {2952 return null === e.getAttribute("value") ? "on" : e.value2953 })2954 });2955 var Lt, Ht, qt = pe.expr.attrHandle, _t = /^(?:checked|selected)$/i, Ft = fe.getSetAttribute, Mt = fe.input;2956 pe.fn.extend({2957 attr: function (e, t) {2958 return Pe(this, pe.attr, e, t, arguments.length > 1)2959 }, removeAttr: function (e) {2960 return this.each(function () {2961 pe.removeAttr(this, e)2962 })2963 }2964 }), pe.extend({2965 attr: function (e, t, n) {2966 var r, i, o = e.nodeType;2967 if (3 !== o && 8 !== o && 2 !== o) return "undefined" == typeof e.getAttribute ? pe.prop(e, t, n) : (1 === o && pe.isXMLDoc(e) || (t = t.toLowerCase(), i = pe.attrHooks[t] || (pe.expr.match.bool.test(t) ? Ht : Lt)), void 0 !== n ? null === n ? void pe.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : (r = pe.find.attr(e, t), null == r ? void 0 : r))2968 }, attrHooks: {2969 type: {2970 set: function (e, t) {2971 if (!fe.radioValue && "radio" === t && pe.nodeName(e, "input")) {2972 var n = e.value;2973 return e.setAttribute("type", t), n && (e.value = n), t2974 }2975 }2976 }2977 }, removeAttr: function (e, t) {2978 var n, r, i = 0, o = t && t.match(De);2979 if (o && 1 === e.nodeType) for (; n = o[i++];) r = pe.propFix[n] || n, pe.expr.match.bool.test(n) ? Mt && Ft || !_t.test(n) ? e[r] = !1 : e[pe.camelCase("default-" + n)] = e[r] = !1 : pe.attr(e, n, ""), e.removeAttribute(Ft ? n : r)2980 }2981 }), Ht = {2982 set: function (e, t, n) {2983 return t === !1 ? pe.removeAttr(e, n) : Mt && Ft || !_t.test(n) ? e.setAttribute(!Ft && pe.propFix[n] || n, n) : e[pe.camelCase("default-" + n)] = e[n] = !0, n2984 }2985 }, pe.each(pe.expr.match.bool.source.match(/\w+/g), function (e, t) {2986 var n = qt[t] || pe.find.attr;2987 Mt && Ft || !_t.test(t) ? qt[t] = function (e, t, r) {2988 var i, o;2989 return r || (o = qt[t], qt[t] = i, i = null != n(e, t, r) ? t.toLowerCase() : null, qt[t] = o), i2990 } : qt[t] = function (e, t, n) {2991 if (!n) return e[pe.camelCase("default-" + t)] ? t.toLowerCase() : null2992 }2993 }), Mt && Ft || (pe.attrHooks.value = {2994 set: function (e, t, n) {2995 return pe.nodeName(e, "input") ? void(e.defaultValue = t) : Lt && Lt.set(e, t, n)2996 }2997 }), Ft || (Lt = {2998 set: function (e, t, n) {2999 var r = e.getAttributeNode(n);3000 if (r || e.setAttributeNode(r = e.ownerDocument.createAttribute(n)), r.value = t += "", "value" === n || t === e.getAttribute(n)) return t3001 }3002 }, qt.id = qt.name = qt.coords = function (e, t, n) {3003 var r;3004 if (!n) return (r = e.getAttributeNode(t)) && "" !== r.value ? r.value : null3005 }, pe.valHooks.button = {3006 get: function (e, t) {3007 var n = e.getAttributeNode(t);3008 if (n && n.specified) return n.value3009 }, set: Lt.set3010 }, pe.attrHooks.contenteditable = {3011 set: function (e, t, n) {3012 Lt.set(e, "" !== t && t, n)3013 }3014 }, pe.each(["width", "height"], function (e, t) {3015 pe.attrHooks[t] = {3016 set: function (e, n) {3017 if ("" === n) return e.setAttribute(t, "auto"), n3018 }3019 }3020 })), fe.style || (pe.attrHooks.style = {3021 get: function (e) {3022 return e.style.cssText || void 03023 }, set: function (e, t) {3024 return e.style.cssText = t + ""3025 }3026 });3027 var Ot = /^(?:input|select|textarea|button|object)$/i, Rt = /^(?:a|area)$/i;3028 pe.fn.extend({3029 prop: function (e, t) {3030 return Pe(this, pe.prop, e, t, arguments.length > 1)3031 }, removeProp: function (e) {3032 return e = pe.propFix[e] || e, this.each(function () {3033 try {3034 this[e] = void 0, delete this[e]3035 } catch (t) {3036 }3037 })3038 }3039 }), pe.extend({3040 prop: function (e, t, n) {3041 var r, i, o = e.nodeType;3042 if (3 !== o && 8 !== o && 2 !== o) return 1 === o && pe.isXMLDoc(e) || (t = pe.propFix[t] || t, i = pe.propHooks[t]), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t]3043 }, propHooks: {3044 tabIndex: {3045 get: function (e) {3046 var t = pe.find.attr(e, "tabindex");3047 return t ? parseInt(t, 10) : Ot.test(e.nodeName) || Rt.test(e.nodeName) && e.href ? 0 : -13048 }3049 }3050 }, propFix: {"for": "htmlFor", "class": "className"}3051 }), fe.hrefNormalized || pe.each(["href", "src"], function (e, t) {3052 pe.propHooks[t] = {3053 get: function (e) {3054 return e.getAttribute(t, 4)3055 }3056 }3057 }), fe.optSelected || (pe.propHooks.selected = {3058 get: function (e) {3059 var t = e.parentNode;3060 return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null3061 }, set: function (e) {3062 var t = e.parentNode;3063 t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex)3064 }3065 }), pe.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {3066 pe.propFix[this.toLowerCase()] = this3067 }), fe.enctype || (pe.propFix.enctype = "encoding");3068 var Pt = /[\t\r\n\f]/g;3069 pe.fn.extend({3070 addClass: function (e) {3071 var t, n, r, i, o, a, s, u = 0;3072 if (pe.isFunction(e)) return this.each(function (t) {3073 pe(this).addClass(e.call(this, t, z(this)))3074 });3075 if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {3076 for (a = 0; o = t[a++];) r.indexOf(" " + o + " ") < 0 && (r += o + " ");3077 s = pe.trim(r), i !== s && pe.attr(n, "class", s)3078 }3079 return this3080 }, removeClass: function (e) {3081 var t, n, r, i, o, a, s, u = 0;3082 if (pe.isFunction(e)) return this.each(function (t) {3083 pe(this).removeClass(e.call(this, t, z(this)))3084 });3085 if (!arguments.length) return this.attr("class", "");3086 if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {3087 for (a = 0; o = t[a++];) for (; r.indexOf(" " + o + " ") > -1;) r = r.replace(" " + o + " ", " ");3088 s = pe.trim(r), i !== s && pe.attr(n, "class", s)3089 }3090 return this3091 }, toggleClass: function (e, t) {3092 var n = typeof e;3093 return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : pe.isFunction(e) ? this.each(function (n) {3094 pe(this).toggleClass(e.call(this, n, z(this), t), t)3095 }) : this.each(function () {3096 var t, r, i, o;3097 if ("string" === n) for (r = 0, i = pe(this), o = e.match(De) || []; t = o[r++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t); else void 0 !== e && "boolean" !== n || (t = z(this), t && pe._data(this, "__className__", t), pe.attr(this, "class", t || e === !1 ? "" : pe._data(this, "__className__") || ""))3098 })3099 }, hasClass: function (e) {3100 var t, n, r = 0;3101 for (t = " " + e + " "; n = this[r++];) if (1 === n.nodeType && (" " + z(n) + " ").replace(Pt, " ").indexOf(t) > -1) return !0;3102 return !13103 }3104 }), pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (e, t) {3105 pe.fn[t] = function (e, n) {3106 return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)3107 }3108 }), pe.fn.extend({3109 hover: function (e, t) {3110 return this.mouseenter(e).mouseleave(t || e)3111 }3112 });3113 var Bt = e.location, Wt = pe.now(), It = /\?/,3114 $t = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;3115 pe.parseJSON = function (t) {3116 if (e.JSON && e.JSON.parse) return e.JSON.parse(t + "");3117 var n, r = null, i = pe.trim(t + "");3118 return i && !pe.trim(i.replace($t, function (e, t, i, o) {3119 return n && t && (r = 0), 0 === r ? e : (n = i || t, r += !o - !i, "")3120 })) ? Function("return " + i)() : pe.error("Invalid JSON: " + t)3121 }, pe.parseXML = function (t) {3122 var n, r;3123 if (!t || "string" != typeof t) return null;3124 try {3125 e.DOMParser ? (r = new e.DOMParser, n = r.parseFromString(t, "text/xml")) : (n = new e.ActiveXObject("Microsoft.XMLDOM"), n.async = "false", n.loadXML(t))3126 } catch (i) {3127 n = void 03128 }3129 return n && n.documentElement && !n.getElementsByTagName("parsererror").length || pe.error("Invalid XML: " + t), n3130 };3131 var zt = /#.*$/, Xt = /([?&])_=[^&]*/, Ut = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,3132 Vt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Yt = /^(?:GET|HEAD)$/, Jt = /^\/\//,3133 Gt = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, Kt = {}, Qt = {}, Zt = "*/".concat("*"),3134 en = Bt.href, tn = Gt.exec(en.toLowerCase()) || [];3135 pe.extend({3136 active: 0,3137 lastModified: {},3138 etag: {},3139 ajaxSettings: {3140 url: en,3141 type: "GET",3142 isLocal: Vt.test(tn[1]),3143 global: !0,3144 processData: !0,3145 async: !0,3146 contentType: "application/x-www-form-urlencoded; charset=UTF-8",3147 accepts: {3148 "*": Zt,3149 text: "text/plain",3150 html: "text/html",3151 xml: "application/xml, text/xml",3152 json: "application/json, text/javascript"3153 },3154 contents: {xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/},3155 responseFields: {xml: "responseXML", text: "responseText", json: "responseJSON"},3156 converters: {"* text": String, "text html": !0, "text json": pe.parseJSON, "text xml": pe.parseXML},3157 flatOptions: {url: !0, context: !0}3158 },3159 ajaxSetup: function (e, t) {3160 return t ? V(V(e, pe.ajaxSettings), t) : V(pe.ajaxSettings, e)3161 },3162 ajaxPrefilter: X(Kt),3163 ajaxTransport: X(Qt),3164 ajax: function (t, n) {3165 function r(t, n, r, i) {3166 var o, f, v, x, w, C = n;3167 2 !== b && (b = 2, u && e.clearTimeout(u), c = void 0, s = i || "", T.readyState = t > 0 ? 4 : 0, o = t >= 200 && t < 300 || 304 === t, r && (x = Y(d, T, r)), x = J(d, x, T, o), o ? (d.ifModified && (w = T.getResponseHeader("Last-Modified"), w && (pe.lastModified[a] = w), w = T.getResponseHeader("etag"), w && (pe.etag[a] = w)), 204 === t || "HEAD" === d.type ? C = "nocontent" : 304 === t ? C = "notmodified" : (C = x.state, f = x.data, v = x.error, o = !v)) : (v = C, !t && C || (C = "error", t < 0 && (t = 0))), T.status = t, T.statusText = (n || C) + "", o ? g.resolveWith(p, [f, C, T]) : g.rejectWith(p, [T, C, v]), T.statusCode(y), y = void 0, l && h.trigger(o ? "ajaxSuccess" : "ajaxError", [T, d, o ? f : v]), m.fireWith(p, [T, C]), l && (h.trigger("ajaxComplete", [T, d]), --pe.active || pe.event.trigger("ajaxStop")))3168 }3169 "object" == typeof t && (n = t, t = void 0), n = n || {};3170 var i, o, a, s, u, l, c, f, d = pe.ajaxSetup({}, n), p = d.context || d,3171 h = d.context && (p.nodeType || p.jquery) ? pe(p) : pe.event, g = pe.Deferred(),3172 m = pe.Callbacks("once memory"), y = d.statusCode || {}, v = {}, x = {}, b = 0, w = "canceled", T = {3173 readyState: 0, getResponseHeader: function (e) {3174 var t;3175 if (2 === b) {3176 if (!f) for (f = {}; t = Ut.exec(s);) f[t[1].toLowerCase()] = t[2];3177 t = f[e.toLowerCase()]3178 }3179 return null == t ? null : t3180 }, getAllResponseHeaders: function () {3181 return 2 === b ? s : null3182 }, setRequestHeader: function (e, t) {3183 var n = e.toLowerCase();3184 return b || (e = x[n] = x[n] || e, v[e] = t), this3185 }, overrideMimeType: function (e) {3186 return b || (d.mimeType = e), this3187 }, statusCode: function (e) {3188 var t;3189 if (e) if (b < 2) for (t in e) y[t] = [y[t], e[t]]; else T.always(e[T.status]);3190 return this3191 }, abort: function (e) {3192 var t = e || w;3193 return c && c.abort(t), r(0, t), this3194 }3195 };3196 if (g.promise(T).complete = m.add, T.success = T.done, T.error = T.fail, d.url = ((t || d.url || en) + "").replace(zt, "").replace(Jt, tn[1] + "//"), d.type = n.method || n.type || d.method || d.type, d.dataTypes = pe.trim(d.dataType || "*").toLowerCase().match(De) || [""], null == d.crossDomain && (i = Gt.exec(d.url.toLowerCase()), d.crossDomain = !(!i || i[1] === tn[1] && i[2] === tn[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (tn[3] || ("http:" === tn[1] ? "80" : "443")))), d.data && d.processData && "string" != typeof d.data && (d.data = pe.param(d.data, d.traditional)), U(Kt, d, n, T), 2 === b) return T;3197 l = pe.event && d.global, l && 0 === pe.active++ && pe.event.trigger("ajaxStart"), d.type = d.type.toUpperCase(), d.hasContent = !Yt.test(d.type), a = d.url, d.hasContent || (d.data && (a = d.url += (It.test(a) ? "&" : "?") + d.data, delete d.data), d.cache === !1 && (d.url = Xt.test(a) ? a.replace(Xt, "$1_=" + Wt++) : a + (It.test(a) ? "&" : "?") + "_=" + Wt++)), d.ifModified && (pe.lastModified[a] && T.setRequestHeader("If-Modified-Since", pe.lastModified[a]), pe.etag[a] && T.setRequestHeader("If-None-Match", pe.etag[a])), (d.data && d.hasContent && d.contentType !== !1 || n.contentType) && T.setRequestHeader("Content-Type", d.contentType), T.setRequestHeader("Accept", d.dataTypes[0] && d.accepts[d.dataTypes[0]] ? d.accepts[d.dataTypes[0]] + ("*" !== d.dataTypes[0] ? ", " + Zt + "; q=0.01" : "") : d.accepts["*"]);3198 for (o in d.headers) T.setRequestHeader(o, d.headers[o]);3199 if (d.beforeSend && (d.beforeSend.call(p, T, d) === !1 || 2 === b)) return T.abort();3200 w = "abort";3201 for (o in{success: 1, error: 1, complete: 1}) T[o](d[o]);3202 if (c = U(Qt, d, n, T)) {3203 if (T.readyState = 1, l && h.trigger("ajaxSend", [T, d]), 2 === b) return T;3204 d.async && d.timeout > 0 && (u = e.setTimeout(function () {3205 T.abort("timeout")3206 }, d.timeout));3207 try {3208 b = 1, c.send(v, r)3209 } catch (C) {3210 if (!(b < 2)) throw C;3211 r(-1, C)3212 }3213 } else r(-1, "No Transport");3214 return T3215 },3216 getJSON: function (e, t, n) {3217 return pe.get(e, t, n, "json")3218 },3219 getScript: function (e, t) {3220 return pe.get(e, void 0, t, "script")3221 }3222 }), pe.each(["get", "post"], function (e, t) {3223 pe[t] = function (e, n, r, i) {3224 return pe.isFunction(n) && (i = i || r, r = n, n = void 0), pe.ajax(pe.extend({3225 url: e,3226 type: t,3227 dataType: i,3228 data: n,3229 success: r3230 }, pe.isPlainObject(e) && e))3231 }3232 }), pe._evalUrl = function (e) {3233 return pe.ajax({url: e, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, "throws": !0})3234 }, pe.fn.extend({3235 wrapAll: function (e) {3236 if (pe.isFunction(e)) return this.each(function (t) {3237 pe(this).wrapAll(e.call(this, t))3238 });3239 if (this[0]) {3240 var t = pe(e, this[0].ownerDocument).eq(0).clone(!0);3241 this[0].parentNode && t.insertBefore(this[0]), t.map(function () {3242 for (var e = this; e.firstChild && 1 === e.firstChild.nodeType;) e = e.firstChild;3243 return e3244 }).append(this)3245 }3246 return this3247 }, wrapInner: function (e) {3248 return pe.isFunction(e) ? this.each(function (t) {3249 pe(this).wrapInner(e.call(this, t))3250 }) : this.each(function () {3251 var t = pe(this), n = t.contents();3252 n.length ? n.wrapAll(e) : t.append(e)3253 })3254 }, wrap: function (e) {3255 var t = pe.isFunction(e);3256 return this.each(function (n) {3257 pe(this).wrapAll(t ? e.call(this, n) : e)3258 })3259 }, unwrap: function () {3260 return this.parent().each(function () {3261 pe.nodeName(this, "body") || pe(this).replaceWith(this.childNodes)3262 }).end()3263 }3264 }), pe.expr.filters.hidden = function (e) {3265 return fe.reliableHiddenOffsets() ? e.offsetWidth <= 0 && e.offsetHeight <= 0 && !e.getClientRects().length : K(e)3266 }, pe.expr.filters.visible = function (e) {3267 return !pe.expr.filters.hidden(e)3268 };3269 var nn = /%20/g, rn = /\[\]$/, on = /\r?\n/g, an = /^(?:submit|button|image|reset|file)$/i,3270 sn = /^(?:input|select|textarea|keygen)/i;3271 pe.param = function (e, t) {3272 var n, r = [], i = function (e, t) {3273 t = pe.isFunction(t) ? t() : null == t ? "" : t, r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)3274 };3275 if (void 0 === t && (t = pe.ajaxSettings && pe.ajaxSettings.traditional), pe.isArray(e) || e.jquery && !pe.isPlainObject(e)) pe.each(e, function () {3276 i(this.name, this.value)3277 }); else for (n in e) Q(n, e[n], t, i);3278 return r.join("&").replace(nn, "+")3279 }, pe.fn.extend({3280 serialize: function () {3281 return pe.param(this.serializeArray())3282 }, serializeArray: function () {3283 return this.map(function () {3284 var e = pe.prop(this, "elements");3285 return e ? pe.makeArray(e) : this3286 }).filter(function () {3287 var e = this.type;3288 return this.name && !pe(this).is(":disabled") && sn.test(this.nodeName) && !an.test(e) && (this.checked || !Be.test(e))3289 }).map(function (e, t) {3290 var n = pe(this).val();3291 return null == n ? null : pe.isArray(n) ? pe.map(n, function (e) {3292 return {name: t.name, value: e.replace(on, "\r\n")}3293 }) : {name: t.name, value: n.replace(on, "\r\n")}3294 }).get()3295 }3296 }), pe.ajaxSettings.xhr = void 0 !== e.ActiveXObject ? function () {3297 return this.isLocal ? ee() : re.documentMode > 8 ? Z() : /^(get|post|head|put|delete|options)$/i.test(this.type) && Z() || ee()3298 } : Z;3299 var un = 0, ln = {}, cn = pe.ajaxSettings.xhr();3300 e.attachEvent && e.attachEvent("onunload", function () {3301 for (var e in ln) ln[e](void 0, !0)3302 }), fe.cors = !!cn && "withCredentials" in cn, cn = fe.ajax = !!cn, cn && pe.ajaxTransport(function (t) {3303 if (!t.crossDomain || fe.cors) {3304 var n;3305 return {3306 send: function (r, i) {3307 var o, a = t.xhr(), s = ++un;3308 if (a.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) for (o in t.xhrFields) a[o] = t.xhrFields[o];3309 t.mimeType && a.overrideMimeType && a.overrideMimeType(t.mimeType), t.crossDomain || r["X-Requested-With"] || (r["X-Requested-With"] = "XMLHttpRequest");3310 for (o in r) void 0 !== r[o] && a.setRequestHeader(o, r[o] + "");3311 a.send(t.hasContent && t.data || null), n = function (e, r) {3312 var o, u, l;3313 if (n && (r || 4 === a.readyState)) if (delete ln[s], n = void 0, a.onreadystatechange = pe.noop, r) 4 !== a.readyState && a.abort(); else {3314 l = {}, o = a.status, "string" == typeof a.responseText && (l.text = a.responseText);3315 try {3316 u = a.statusText3317 } catch (c) {3318 u = ""3319 }3320 o || !t.isLocal || t.crossDomain ? 1223 === o && (o = 204) : o = l.text ? 200 : 4043321 }3322 l && i(o, u, l, a.getAllResponseHeaders())3323 }, t.async ? 4 === a.readyState ? e.setTimeout(n) : a.onreadystatechange = ln[s] = n : n()3324 }, abort: function () {3325 n && n(void 0, !0)3326 }3327 }3328 }3329 }), pe.ajaxSetup({3330 accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},3331 contents: {script: /\b(?:java|ecma)script\b/},3332 converters: {3333 "text script": function (e) {3334 return pe.globalEval(e), e3335 }3336 }3337 }), pe.ajaxPrefilter("script", function (e) {3338 void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)3339 }), pe.ajaxTransport("script", function (e) {3340 if (e.crossDomain) {3341 var t, n = re.head || pe("head")[0] || re.documentElement;3342 return {3343 send: function (r, i) {3344 t = re.createElement("script"), t.async = !0, e.scriptCharset && (t.charset = e.scriptCharset), t.src = e.url, t.onload = t.onreadystatechange = function (e, n) {3345 (n || !t.readyState || /loaded|complete/.test(t.readyState)) && (t.onload = t.onreadystatechange = null, t.parentNode && t.parentNode.removeChild(t), t = null, n || i(200, "success"))3346 }, n.insertBefore(t, n.firstChild)3347 }, abort: function () {3348 t && t.onload(void 0, !0)3349 }3350 }3351 }3352 });3353 var fn = [], dn = /(=)\?(?=&|$)|\?\?/;3354 pe.ajaxSetup({3355 jsonp: "callback", jsonpCallback: function () {3356 var e = fn.pop() || pe.expando + "_" + Wt++;3357 return this[e] = !0, e3358 }3359 }), pe.ajaxPrefilter("json jsonp", function (t, n, r) {3360 var i, o, a,3361 s = t.jsonp !== !1 && (dn.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && dn.test(t.data) && "data");3362 if (s || "jsonp" === t.dataTypes[0]) return i = t.jsonpCallback = pe.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, s ? t[s] = t[s].replace(dn, "$1" + i) : t.jsonp !== !1 && (t.url += (It.test(t.url) ? "&" : "?") + t.jsonp + "=" + i), t.converters["script json"] = function () {3363 return a || pe.error(i + " was not called"), a[0]3364 }, t.dataTypes[0] = "json", o = e[i], e[i] = function () {3365 a = arguments3366 }, r.always(function () {3367 void 0 === o ? pe(e).removeProp(i) : e[i] = o, t[i] && (t.jsonpCallback = n.jsonpCallback, fn.push(i)), a && pe.isFunction(o) && o(a[0]), a = o = void 03368 }), "script"3369 }), pe.parseHTML = function (e, t, n) {3370 if (!e || "string" != typeof e) return null;3371 "boolean" == typeof t && (n = t, t = !1), t = t || re;3372 var r = Te.exec(e), i = !n && [];3373 return r ? [t.createElement(r[1])] : (r = y([e], t, i), i && i.length && pe(i).remove(), pe.merge([], r.childNodes))3374 };3375 var pn = pe.fn.load;3376 return pe.fn.load = function (e, t, n) {3377 if ("string" != typeof e && pn) return pn.apply(this, arguments);3378 var r, i, o, a = this, s = e.indexOf(" ");3379 return s > -1 && (r = pe.trim(e.slice(s, e.length)), e = e.slice(0, s)), pe.isFunction(t) ? (n = t, t = void 0) : t && "object" == typeof t && (i = "POST"), a.length > 0 && pe.ajax({3380 url: e,3381 type: i || "GET",3382 dataType: "html",3383 data: t3384 }).done(function (e) {3385 o = arguments, a.html(r ? pe("<div>").append(pe.parseHTML(e)).find(r) : e)3386 }).always(n && function (e, t) {3387 a.each(function () {3388 n.apply(this, o || [e.responseText, t, e])3389 })3390 }), this3391 }, pe.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) {3392 pe.fn[t] = function (e) {3393 return this.on(t, e)3394 }3395 }), pe.expr.filters.animated = function (e) {3396 return pe.grep(pe.timers, function (t) {3397 return e === t.elem3398 }).length3399 }, pe.offset = {3400 setOffset: function (e, t, n) {3401 var r, i, o, a, s, u, l, c = pe.css(e, "position"), f = pe(e), d = {};3402 "static" === c && (e.style.position = "relative"), s = f.offset(), o = pe.css(e, "top"), u = pe.css(e, "left"), l = ("absolute" === c || "fixed" === c) && pe.inArray("auto", [o, u]) > -1, l ? (r = f.position(), a = r.top, i = r.left) : (a = parseFloat(o) || 0, i = parseFloat(u) || 0), pe.isFunction(t) && (t = t.call(e, n, pe.extend({}, s))), null != t.top && (d.top = t.top - s.top + a), null != t.left && (d.left = t.left - s.left + i), "using" in t ? t.using.call(e, d) : f.css(d)3403 }3404 }, pe.fn.extend({3405 offset: function (e) {3406 if (arguments.length) return void 0 === e ? this : this.each(function (t) {3407 pe.offset.setOffset(this, e, t)3408 });3409 var t, n, r = {top: 0, left: 0}, i = this[0], o = i && i.ownerDocument;3410 if (o) return t = o.documentElement, pe.contains(t, i) ? ("undefined" != typeof i.getBoundingClientRect && (r = i.getBoundingClientRect()), n = te(o), {3411 top: r.top + (n.pageYOffset || t.scrollTop) - (t.clientTop || 0),3412 left: r.left + (n.pageXOffset || t.scrollLeft) - (t.clientLeft || 0)3413 }) : r3414 }, position: function () {3415 if (this[0]) {3416 var e, t, n = {top: 0, left: 0}, r = this[0];3417 return "fixed" === pe.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), pe.nodeName(e[0], "html") || (n = e.offset()), n.top += pe.css(e[0], "borderTopWidth", !0), n.left += pe.css(e[0], "borderLeftWidth", !0)), {3418 top: t.top - n.top - pe.css(r, "marginTop", !0),3419 left: t.left - n.left - pe.css(r, "marginLeft", !0)3420 }3421 }3422 }, offsetParent: function () {3423 return this.map(function () {3424 for (var e = this.offsetParent; e && !pe.nodeName(e, "html") && "static" === pe.css(e, "position");) e = e.offsetParent;3425 return e || pt3426 })3427 }3428 }), pe.each({scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function (e, t) {3429 var n = /Y/.test(t);3430 pe.fn[e] = function (r) {3431 return Pe(this, function (e, r, i) {3432 var o = te(e);3433 return void 0 === i ? o ? t in o ? o[t] : o.document.documentElement[r] : e[r] : void(o ? o.scrollTo(n ? pe(o).scrollLeft() : i, n ? i : pe(o).scrollTop()) : e[r] = i)3434 }, e, r, arguments.length, null)3435 }3436 }), pe.each(["top", "left"], function (e, t) {3437 pe.cssHooks[t] = L(fe.pixelPosition, function (e, n) {3438 if (n) return n = gt(e, t), ft.test(n) ? pe(e).position()[t] + "px" : n3439 })3440 }), pe.each({Height: "height", Width: "width"}, function (e, t) {3441 pe.each({padding: "inner" + e, content: t, "": "outer" + e}, function (n, r) {3442 pe.fn[r] = function (r, i) {3443 var o = arguments.length && (n || "boolean" != typeof r),3444 a = n || (r === !0 || i === !0 ? "margin" : "border");3445 return Pe(this, function (t, n, r) {3446 var i;3447 return pe.isWindow(t) ? t.document.documentElement["client" + e] : 9 === t.nodeType ? (i = t.documentElement, Math.max(t.body["scroll" + e], i["scroll" + e], t.body["offset" + e], i["offset" + e], i["client" + e])) : void 0 === r ? pe.css(t, n, a) : pe.style(t, n, r, a)3448 }, t, o ? r : void 0, o, null)3449 }3450 })3451 }), pe.fn.extend({3452 bind: function (e, t, n) {3453 return this.on(e, null, t, n)3454 }, unbind: function (e, t) {3455 return this.off(e, null, t)3456 }, delegate: function (e, t, n, r) {3457 return this.on(t, e, n, r)3458 }, undelegate: function (e, t, n) {3459 return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)...

Full Screen

Full Screen

jquery.js

Source:jquery.js Github

copy

Full Screen

...1965 u = e.length,1966 l = null == n;1967 if ("object" === pe.type(n)) {1968 i = !0;1969 for (s in n) Pe(e, t, s, n[s], !0, o, a)1970 } else if (void 0 !== r && (i = !0, pe.isFunction(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function(e, t, n) {1971 return l.call(pe(e), n)1972 })), t)) for (; s < u; s++) t(e[s], n, a ? r: r.call(e[s], s, t(e[s], n)));1973 return i ? e: l ? t.call(e) : u ? t(e[0], n) : o1974 },1975 Be = /^(?:checkbox|radio)$/i,1976 We = /<([\w:-]+)/,1977 Ie = /^$|\/(?:java|ecma)script/i,1978 $e = /^\s+/,1979 ze = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video"; !1980 function() {1981 var e = re.createElement("div"),1982 t = re.createDocumentFragment(),1983 n = re.createElement("input");1984 e.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",1985 fe.leadingWhitespace = 3 === e.firstChild.nodeType,1986 fe.tbody = !e.getElementsByTagName("tbody").length,1987 fe.htmlSerialize = !!e.getElementsByTagName("link").length,1988 fe.html5Clone = "<:nav></:nav>" !== re.createElement("nav").cloneNode(!0).outerHTML,1989 n.type = "checkbox",1990 n.checked = !0,1991 t.appendChild(n),1992 fe.appendChecked = n.checked,1993 e.innerHTML = "<textarea>x</textarea>",1994 fe.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue,1995 t.appendChild(e),1996 n = re.createElement("input"),1997 n.setAttribute("type", "radio"),1998 n.setAttribute("checked", "checked"),1999 n.setAttribute("name", "t"),2000 e.appendChild(n),2001 fe.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked,2002 fe.noCloneEvent = !!e.addEventListener,2003 e[pe.expando] = 1,2004 fe.attributes = !e.getAttribute(pe.expando)2005 } ();2006 var Xe = {2007 option: [1, "<select multiple='multiple'>", "</select>"],2008 legend: [1, "<fieldset>", "</fieldset>"],2009 area: [1, "<map>", "</map>"],2010 param: [1, "<object>", "</object>"],2011 thead: [1, "<table>", "</table>"],2012 tr: [2, "<table><tbody>", "</tbody></table>"],2013 col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],2014 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],2015 _default: fe.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]2016 };2017 Xe.optgroup = Xe.option,2018 Xe.tbody = Xe.tfoot = Xe.colgroup = Xe.caption = Xe.thead,2019 Xe.th = Xe.td;2020 var Ue = /<|&#?\w+;/,2021 Ve = /<tbody/i; !2022 function() {2023 var t, n, r = re.createElement("div");2024 for (t in {2025 submit: !0,2026 change: !0,2027 focusin: !02028 }) n = "on" + t,2029 (fe[t] = n in e) || (r.setAttribute(n, "t"), fe[t] = r.attributes[n].expando === !1);2030 r = null2031 } ();2032 var Ye = /^(?:input|select|textarea)$/i,2033 Je = /^key/,2034 Ge = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,2035 Ke = /^(?:focusinfocus|focusoutblur)$/,2036 Qe = /^([^.]*)(?:\.(.+)|)/;2037 pe.event = {2038 global: {},2039 add: function(e, t, n, r, i) {2040 var o, a, s, u, l, c, f, d, p, h, g, m = pe._data(e);2041 if (m) {2042 for (n.handler && (u = n, n = u.handler, i = u.selector), n.guid || (n.guid = pe.guid++), (a = m.events) || (a = m.events = {}), (c = m.handle) || (c = m.handle = function(e) {2043 return "undefined" == typeof pe || e && pe.event.triggered === e.type ? void 0 : pe.event.dispatch.apply(c.elem, arguments)2044 },2045 c.elem = e), t = (t || "").match(De) || [""], s = t.length; s--;) o = Qe.exec(t[s]) || [],2046 p = g = o[1],2047 h = (o[2] || "").split(".").sort(),2048 p && (l = pe.event.special[p] || {},2049 p = (i ? l.delegateType: l.bindType) || p, l = pe.event.special[p] || {},2050 f = pe.extend({2051 type: p,2052 origType: g,2053 data: r,2054 handler: n,2055 guid: n.guid,2056 selector: i,2057 needsContext: i && pe.expr.match.needsContext.test(i),2058 namespace: h.join(".")2059 },2060 u), (d = a[p]) || (d = a[p] = [], d.delegateCount = 0, l.setup && l.setup.call(e, r, h, c) !== !1 || (e.addEventListener ? e.addEventListener(p, c, !1) : e.attachEvent && e.attachEvent("on" + p, c))), l.add && (l.add.call(e, f), f.handler.guid || (f.handler.guid = n.guid)), i ? d.splice(d.delegateCount++, 0, f) : d.push(f), pe.event.global[p] = !0);2061 e = null2062 }2063 },2064 remove: function(e, t, n, r, i) {2065 var o, a, s, u, l, c, f, d, p, h, g, m = pe.hasData(e) && pe._data(e);2066 if (m && (c = m.events)) {2067 for (t = (t || "").match(De) || [""], l = t.length; l--;) if (s = Qe.exec(t[l]) || [], p = g = s[1], h = (s[2] || "").split(".").sort(), p) {2068 for (f = pe.event.special[p] || {},2069 p = (r ? f.delegateType: f.bindType) || p, d = c[p] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = o = d.length; o--;) a = d[o],2070 !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (d.splice(o, 1), a.selector && d.delegateCount--, f.remove && f.remove.call(e, a));2071 u && !d.length && (f.teardown && f.teardown.call(e, h, m.handle) !== !1 || pe.removeEvent(e, p, m.handle), delete c[p])2072 } else for (p in c) pe.event.remove(e, p + t[l], n, r, !0);2073 pe.isEmptyObject(c) && (delete m.handle, pe._removeData(e, "events"))2074 }2075 },2076 trigger: function(t, n, r, i) {2077 var o, a, s, u, l, c, f, d = [r || re],2078 p = ce.call(t, "type") ? t.type: t,2079 h = ce.call(t, "namespace") ? t.namespace.split(".") : [];2080 if (s = c = r = r || re, 3 !== r.nodeType && 8 !== r.nodeType && !Ke.test(p + pe.event.triggered) && (p.indexOf(".") > -1 && (h = p.split("."), p = h.shift(), h.sort()), a = p.indexOf(":") < 0 && "on" + p, t = t[pe.expando] ? t: new pe.Event(p, "object" == typeof t && t), t.isTrigger = i ? 2 : 3, t.namespace = h.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), n = null == n ? [t] : pe.makeArray(n, [t]), l = pe.event.special[p] || {},2081 i || !l.trigger || l.trigger.apply(r, n) !== !1)) {2082 if (!i && !l.noBubble && !pe.isWindow(r)) {2083 for (u = l.delegateType || p, Ke.test(u + p) || (s = s.parentNode); s; s = s.parentNode) d.push(s),2084 c = s;2085 c === (r.ownerDocument || re) && d.push(c.defaultView || c.parentWindow || e)2086 }2087 for (f = 0; (s = d[f++]) && !t.isPropagationStopped();) t.type = f > 1 ? u: l.bindType || p,2088 o = (pe._data(s, "events") || {})[t.type] && pe._data(s, "handle"),2089 o && o.apply(s, n),2090 o = a && s[a],2091 o && o.apply && He(s) && (t.result = o.apply(s, n), t.result === !1 && t.preventDefault());2092 if (t.type = p, !i && !t.isDefaultPrevented() && (!l._default || l._default.apply(d.pop(), n) === !1) && He(r) && a && r[p] && !pe.isWindow(r)) {2093 c = r[a],2094 c && (r[a] = null),2095 pe.event.triggered = p;2096 try {2097 r[p]()2098 } catch(g) {}2099 pe.event.triggered = void 0,2100 c && (r[a] = c)2101 }2102 return t.result2103 }2104 },2105 dispatch: function(e) {2106 e = pe.event.fix(e);2107 var t, n, r, i, o, a = [],2108 s = ie.call(arguments),2109 u = (pe._data(this, "events") || {})[e.type] || [],2110 l = pe.event.special[e.type] || {};2111 if (s[0] = e, e.delegateTarget = this, !l.preDispatch || l.preDispatch.call(this, e) !== !1) {2112 for (a = pe.event.handlers.call(this, e, u), t = 0; (i = a[t++]) && !e.isPropagationStopped();) for (e.currentTarget = i.elem, n = 0; (o = i.handlers[n++]) && !e.isImmediatePropagationStopped();) e.rnamespace && !e.rnamespace.test(o.namespace) || (e.handleObj = o, e.data = o.data, r = ((pe.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, s), void 0 !== r && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()));2113 return l.postDispatch && l.postDispatch.call(this, e),2114 e.result2115 }2116 },2117 handlers: function(e, t) {2118 var n, r, i, o, a = [],2119 s = t.delegateCount,2120 u = e.target;2121 if (s && u.nodeType && ("click" !== e.type || isNaN(e.button) || e.button < 1)) for (; u != this; u = u.parentNode || this) if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {2122 for (r = [], n = 0; n < s; n++) o = t[n],2123 i = o.selector + " ",2124 void 0 === r[i] && (r[i] = o.needsContext ? pe(i, this).index(u) > -1 : pe.find(i, this, null, [u]).length),2125 r[i] && r.push(o);2126 r.length && a.push({2127 elem: u,2128 handlers: r2129 })2130 }2131 return s < t.length && a.push({2132 elem: this,2133 handlers: t.slice(s)2134 }),2135 a2136 },2137 fix: function(e) {2138 if (e[pe.expando]) return e;2139 var t, n, r, i = e.type,2140 o = e,2141 a = this.fixHooks[i];2142 for (a || (this.fixHooks[i] = a = Ge.test(i) ? this.mouseHooks: Je.test(i) ? this.keyHooks: {}), r = a.props ? this.props.concat(a.props) : this.props, e = new pe.Event(o), t = r.length; t--;) n = r[t],2143 e[n] = o[n];2144 return e.target || (e.target = o.srcElement || re),2145 3 === e.target.nodeType && (e.target = e.target.parentNode),2146 e.metaKey = !!e.metaKey,2147 a.filter ? a.filter(e, o) : e2148 },2149 props: "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),2150 fixHooks: {},2151 keyHooks: {2152 props: "char charCode key keyCode".split(" "),2153 filter: function(e, t) {2154 return null == e.which && (e.which = null != t.charCode ? t.charCode: t.keyCode),2155 e2156 }2157 },2158 mouseHooks: {2159 props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),2160 filter: function(e, t) {2161 var n, r, i, o = t.button,2162 a = t.fromElement;2163 return null == e.pageX && null != t.clientX && (r = e.target.ownerDocument || re, i = r.documentElement, n = r.body, e.pageX = t.clientX + (i && i.scrollLeft || n && n.scrollLeft || 0) - (i && i.clientLeft || n && n.clientLeft || 0), e.pageY = t.clientY + (i && i.scrollTop || n && n.scrollTop || 0) - (i && i.clientTop || n && n.clientTop || 0)),2164 !e.relatedTarget && a && (e.relatedTarget = a === e.target ? t.toElement: a),2165 e.which || void 0 === o || (e.which = 1 & o ? 1 : 2 & o ? 3 : 4 & o ? 2 : 0),2166 e2167 }2168 },2169 special: {2170 load: {2171 noBubble: !02172 },2173 focus: {2174 trigger: function() {2175 if (this !== b() && this.focus) try {2176 return this.focus(),2177 !12178 } catch(e) {}2179 },2180 delegateType: "focusin"2181 },2182 blur: {2183 trigger: function() {2184 if (this === b() && this.blur) return this.blur(),2185 !12186 },2187 delegateType: "focusout"2188 },2189 click: {2190 trigger: function() {2191 if (pe.nodeName(this, "input") && "checkbox" === this.type && this.click) return this.click(),2192 !12193 },2194 _default: function(e) {2195 return pe.nodeName(e.target, "a")2196 }2197 },2198 beforeunload: {2199 postDispatch: function(e) {2200 void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)2201 }2202 }2203 },2204 simulate: function(e, t, n) {2205 var r = pe.extend(new pe.Event, n, {2206 type: e,2207 isSimulated: !02208 });2209 pe.event.trigger(r, null, t),2210 r.isDefaultPrevented() && n.preventDefault()2211 }2212 },2213 pe.removeEvent = re.removeEventListener ?2214 function(e, t, n) {2215 e.removeEventListener && e.removeEventListener(t, n)2216 }: function(e, t, n) {2217 var r = "on" + t;2218 e.detachEvent && ("undefined" == typeof e[r] && (e[r] = null), e.detachEvent(r, n))2219 },2220 pe.Event = function(e, t) {2221 return this instanceof pe.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && e.returnValue === !1 ? v: x) : this.type = e, t && pe.extend(this, t), this.timeStamp = e && e.timeStamp || pe.now(), void(this[pe.expando] = !0)) : new pe.Event(e, t)2222 },2223 pe.Event.prototype = {2224 constructor: pe.Event,2225 isDefaultPrevented: x,2226 isPropagationStopped: x,2227 isImmediatePropagationStopped: x,2228 preventDefault: function() {2229 var e = this.originalEvent;2230 this.isDefaultPrevented = v,2231 e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)2232 },2233 stopPropagation: function() {2234 var e = this.originalEvent;2235 this.isPropagationStopped = v,2236 e && !this.isSimulated && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)2237 },2238 stopImmediatePropagation: function() {2239 var e = this.originalEvent;2240 this.isImmediatePropagationStopped = v,2241 e && e.stopImmediatePropagation && e.stopImmediatePropagation(),2242 this.stopPropagation()2243 }2244 },2245 pe.each({2246 mouseenter: "mouseover",2247 mouseleave: "mouseout",2248 pointerenter: "pointerover",2249 pointerleave: "pointerout"2250 },2251 function(e, t) {2252 pe.event.special[e] = {2253 delegateType: t,2254 bindType: t,2255 handle: function(e) {2256 var n, r = this,2257 i = e.relatedTarget,2258 o = e.handleObj;2259 return i && (i === r || pe.contains(r, i)) || (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t),2260 n2261 }2262 }2263 }),2264 fe.submit || (pe.event.special.submit = {2265 setup: function() {2266 return ! pe.nodeName(this, "form") && void pe.event.add(this, "click._submit keypress._submit",2267 function(e) {2268 var t = e.target,2269 n = pe.nodeName(t, "input") || pe.nodeName(t, "button") ? pe.prop(t, "form") : void 0;2270 n && !pe._data(n, "submit") && (pe.event.add(n, "submit._submit",2271 function(e) {2272 e._submitBubble = !02273 }), pe._data(n, "submit", !0))2274 })2275 },2276 postDispatch: function(e) {2277 e._submitBubble && (delete e._submitBubble, this.parentNode && !e.isTrigger && pe.event.simulate("submit", this.parentNode, e))2278 },2279 teardown: function() {2280 return ! pe.nodeName(this, "form") && void pe.event.remove(this, "._submit")2281 }2282 }),2283 fe.change || (pe.event.special.change = {2284 setup: function() {2285 return Ye.test(this.nodeName) ? ("checkbox" !== this.type && "radio" !== this.type || (pe.event.add(this, "propertychange._change",2286 function(e) {2287 "checked" === e.originalEvent.propertyName && (this._justChanged = !0)2288 }), pe.event.add(this, "click._change",2289 function(e) {2290 this._justChanged && !e.isTrigger && (this._justChanged = !1),2291 pe.event.simulate("change", this, e)2292 })), !1) : void pe.event.add(this, "beforeactivate._change",2293 function(e) {2294 var t = e.target;2295 Ye.test(t.nodeName) && !pe._data(t, "change") && (pe.event.add(t, "change._change",2296 function(e) { ! this.parentNode || e.isSimulated || e.isTrigger || pe.event.simulate("change", this.parentNode, e)2297 }), pe._data(t, "change", !0))2298 })2299 },2300 handle: function(e) {2301 var t = e.target;2302 if (this !== t || e.isSimulated || e.isTrigger || "radio" !== t.type && "checkbox" !== t.type) return e.handleObj.handler.apply(this, arguments)2303 },2304 teardown: function() {2305 return pe.event.remove(this, "._change"),2306 !Ye.test(this.nodeName)2307 }2308 }),2309 fe.focusin || pe.each({2310 focus: "focusin",2311 blur: "focusout"2312 },2313 function(e, t) {2314 var n = function(e) {2315 pe.event.simulate(t, e.target, pe.event.fix(e))2316 };2317 pe.event.special[t] = {2318 setup: function() {2319 var r = this.ownerDocument || this,2320 i = pe._data(r, t);2321 i || r.addEventListener(e, n, !0),2322 pe._data(r, t, (i || 0) + 1)2323 },2324 teardown: function() {2325 var r = this.ownerDocument || this,2326 i = pe._data(r, t) - 1;2327 i ? pe._data(r, t, i) : (r.removeEventListener(e, n, !0), pe._removeData(r, t))2328 }2329 }2330 }),2331 pe.fn.extend({2332 on: function(e, t, n, r) {2333 return w(this, e, t, n, r)2334 },2335 one: function(e, t, n, r) {2336 return w(this, e, t, n, r, 1)2337 },2338 off: function(e, t, n) {2339 var r, i;2340 if (e && e.preventDefault && e.handleObj) return r = e.handleObj,2341 pe(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace: r.origType, r.selector, r.handler),2342 this;2343 if ("object" == typeof e) {2344 for (i in e) this.off(i, t, e[i]);2345 return this2346 }2347 return t !== !1 && "function" != typeof t || (n = t, t = void 0),2348 n === !1 && (n = x),2349 this.each(function() {2350 pe.event.remove(this, e, n, t)2351 })2352 },2353 trigger: function(e, t) {2354 return this.each(function() {2355 pe.event.trigger(e, t, this)2356 })2357 },2358 triggerHandler: function(e, t) {2359 var n = this[0];2360 if (n) return pe.event.trigger(e, t, n, !0)2361 }2362 });2363 var Ze = / jQuery\d+="(?:null|\d+)"/g,2364 et = new RegExp("<(?:" + ze + ")[\\s/>]", "i"),2365 tt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,2366 nt = /<script|<style|<link/i,2367 rt = /checked\s*(?:[^=]|=\s*.checked.)/i,2368 it = /^true\/(.*)/,2369 ot = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,2370 at = p(re),2371 st = at.appendChild(re.createElement("div"));2372 pe.extend({2373 htmlPrefilter: function(e) {2374 return e.replace(tt, "<$1></$2>")2375 },2376 clone: function(e, t, n) {2377 var r, i, o, a, s, u = pe.contains(e.ownerDocument, e);2378 if (fe.html5Clone || pe.isXMLDoc(e) || !et.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (st.innerHTML = e.outerHTML, st.removeChild(o = st.firstChild)), !(fe.noCloneEvent && fe.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || pe.isXMLDoc(e))) for (r = h(o), s = h(e), a = 0; null != (i = s[a]); ++a) r[a] && k(i, r[a]);2379 if (t) if (n) for (s = s || h(e), r = r || h(o), a = 0; null != (i = s[a]); a++) N(i, r[a]);2380 else N(e, o);2381 return r = h(o, "script"),2382 r.length > 0 && g(r, !u && h(e, "script")),2383 r = s = i = null,2384 o2385 },2386 cleanData: function(e, t) {2387 for (var n, r, i, o, a = 0,2388 s = pe.expando,2389 u = pe.cache,2390 l = fe.attributes,2391 c = pe.event.special; null != (n = e[a]); a++) if ((t || He(n)) && (i = n[s], o = i && u[i])) {2392 if (o.events) for (r in o.events) c[r] ? pe.event.remove(n, r) : pe.removeEvent(n, r, o.handle);2393 u[i] && (delete u[i], l || "undefined" == typeof n.removeAttribute ? n[s] = void 0 : n.removeAttribute(s), ne.push(i))2394 }2395 }2396 }),2397 pe.fn.extend({2398 domManip: S,2399 detach: function(e) {2400 return A(this, e, !0)2401 },2402 remove: function(e) {2403 return A(this, e)2404 },2405 text: function(e) {2406 return Pe(this,2407 function(e) {2408 return void 0 === e ? pe.text(this) : this.empty().append((this[0] && this[0].ownerDocument || re).createTextNode(e))2409 },2410 null, e, arguments.length)2411 },2412 append: function() {2413 return S(this, arguments,2414 function(e) {2415 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {2416 var t = T(this, e);2417 t.appendChild(e)2418 }2419 })2420 },2421 prepend: function() {2422 return S(this, arguments,2423 function(e) {2424 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {2425 var t = T(this, e);2426 t.insertBefore(e, t.firstChild)2427 }2428 })2429 },2430 before: function() {2431 return S(this, arguments,2432 function(e) {2433 this.parentNode && this.parentNode.insertBefore(e, this)2434 })2435 },2436 after: function() {2437 return S(this, arguments,2438 function(e) {2439 this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)2440 })2441 },2442 empty: function() {2443 for (var e, t = 0; null != (e = this[t]); t++) {2444 for (1 === e.nodeType && pe.cleanData(h(e, !1)); e.firstChild;) e.removeChild(e.firstChild);2445 e.options && pe.nodeName(e, "select") && (e.options.length = 0)2446 }2447 return this2448 },2449 clone: function(e, t) {2450 return e = null != e && e,2451 t = null == t ? e: t,2452 this.map(function() {2453 return pe.clone(this, e, t)2454 })2455 },2456 html: function(e) {2457 return Pe(this,2458 function(e) {2459 var t = this[0] || {},2460 n = 0,2461 r = this.length;2462 if (void 0 === e) return 1 === t.nodeType ? t.innerHTML.replace(Ze, "") : void 0;2463 if ("string" == typeof e && !nt.test(e) && (fe.htmlSerialize || !et.test(e)) && (fe.leadingWhitespace || !$e.test(e)) && !Xe[(We.exec(e) || ["", ""])[1].toLowerCase()]) {2464 e = pe.htmlPrefilter(e);2465 try {2466 for (; n < r; n++) t = this[n] || {},2467 1 === t.nodeType && (pe.cleanData(h(t, !1)), t.innerHTML = e);2468 t = 02469 } catch(i) {}2470 }2471 t && this.empty().append(e)2472 },2473 null, e, arguments.length)2474 },2475 replaceWith: function() {2476 var e = [];2477 return S(this, arguments,2478 function(t) {2479 var n = this.parentNode;2480 pe.inArray(this, e) < 0 && (pe.cleanData(h(this)), n && n.replaceChild(t, this))2481 },2482 e)2483 }2484 }),2485 pe.each({2486 appendTo: "append",2487 prependTo: "prepend",2488 insertBefore: "before",2489 insertAfter: "after",2490 replaceAll: "replaceWith"2491 },2492 function(e, t) {2493 pe.fn[e] = function(e) {2494 for (var n, r = 0,2495 i = [], o = pe(e), a = o.length - 1; r <= a; r++) n = r === a ? this: this.clone(!0),2496 pe(o[r])[t](n),2497 ae.apply(i, n.get());2498 return this.pushStack(i)2499 }2500 });2501 var ut, lt = {2502 HTML: "block",2503 BODY: "block"2504 },2505 ct = /^margin/,2506 ft = new RegExp("^(" + Fe + ")(?!px)[a-z%]+$", "i"),2507 dt = function(e, t, n, r) {2508 var i, o, a = {};2509 for (o in t) a[o] = e.style[o],2510 e.style[o] = t[o];2511 i = n.apply(e, r || []);2512 for (o in t) e.style[o] = a[o];2513 return i2514 },2515 pt = re.documentElement; !2516 function() {2517 function t() {2518 var t, c, f = re.documentElement;2519 f.appendChild(u),2520 l.style.cssText = "-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",2521 n = i = s = !1,2522 r = a = !0,2523 e.getComputedStyle && (c = e.getComputedStyle(l), n = "1%" !== (c || {}).top, s = "2px" === (c || {}).marginLeft, i = "4px" === (c || {2524 width: "4px"2525 }).width, l.style.marginRight = "50%", r = "4px" === (c || {2526 marginRight: "4px"2527 }).marginRight, t = l.appendChild(re.createElement("div")), t.style.cssText = l.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", t.style.marginRight = t.style.width = "0", l.style.width = "1px", a = !parseFloat((e.getComputedStyle(t) || {}).marginRight), l.removeChild(t)),2528 l.style.display = "none",2529 o = 0 === l.getClientRects().length,2530 o && (l.style.display = "", l.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", t = l.getElementsByTagName("td"), t[0].style.cssText = "margin:0;border:0;padding:0;display:none", o = 0 === t[0].offsetHeight, o && (t[0].style.display = "", t[1].style.display = "none", o = 0 === t[0].offsetHeight)),2531 f.removeChild(u)2532 }2533 var n, r, i, o, a, s, u = re.createElement("div"),2534 l = re.createElement("div");2535 l.style && (l.style.cssText = "float:left;opacity:.5", fe.opacity = "0.5" === l.style.opacity, fe.cssFloat = !!l.style.cssFloat, l.style.backgroundClip = "content-box", l.cloneNode(!0).style.backgroundClip = "", fe.clearCloneStyle = "content-box" === l.style.backgroundClip, u = re.createElement("div"), u.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", l.innerHTML = "", u.appendChild(l), fe.boxSizing = "" === l.style.boxSizing || "" === l.style.MozBoxSizing || "" === l.style.WebkitBoxSizing, pe.extend(fe, {2536 reliableHiddenOffsets: function() {2537 return null == n && t(),2538 o2539 },2540 boxSizingReliable: function() {2541 return null == n && t(),2542 i2543 },2544 pixelMarginRight: function() {2545 return null == n && t(),2546 r2547 },2548 pixelPosition: function() {2549 return null == n && t(),2550 n2551 },2552 reliableMarginRight: function() {2553 return null == n && t(),2554 a2555 },2556 reliableMarginLeft: function() {2557 return null == n && t(),2558 s2559 }2560 }))2561 } ();2562 var ht, gt, mt = /^(top|right|bottom|left)$/;2563 e.getComputedStyle ? (ht = function(t) {2564 var n = t.ownerDocument.defaultView;2565 return n && n.opener || (n = e),2566 n.getComputedStyle(t)2567 },2568 gt = function(e, t, n) {2569 var r, i, o, a, s = e.style;2570 return n = n || ht(e),2571 a = n ? n.getPropertyValue(t) || n[t] : void 0,2572 "" !== a && void 0 !== a || pe.contains(e.ownerDocument, e) || (a = pe.style(e, t)),2573 n && !fe.pixelMarginRight() && ft.test(a) && ct.test(t) && (r = s.width, i = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = r, s.minWidth = i, s.maxWidth = o),2574 void 0 === a ? a: a + ""2575 }) : pt.currentStyle && (ht = function(e) {2576 return e.currentStyle2577 },2578 gt = function(e, t, n) {2579 var r, i, o, a, s = e.style;2580 return n = n || ht(e),2581 a = n ? n[t] : void 0,2582 null == a && s && s[t] && (a = s[t]),2583 ft.test(a) && !mt.test(t) && (r = s.left, i = e.runtimeStyle, o = i && i.left, o && (i.left = e.currentStyle.left), s.left = "fontSize" === t ? "1em": a, a = s.pixelLeft + "px", s.left = r, o && (i.left = o)),2584 void 0 === a ? a: a + "" || "auto"2585 });2586 var yt = /alpha\([^)]*\)/i,2587 vt = /opacity\s*=\s*([^)]*)/i,2588 xt = /^(none|table(?!-c[ea]).+)/,2589 bt = new RegExp("^(" + Fe + ")(.*)$", "i"),2590 wt = {2591 position: "absolute",2592 visibility: "hidden",2593 display: "block"2594 },2595 Tt = {2596 letterSpacing: "0",2597 fontWeight: "400"2598 },2599 Ct = ["Webkit", "O", "Moz", "ms"],2600 Et = re.createElement("div").style;2601 pe.extend({2602 cssHooks: {2603 opacity: {2604 get: function(e, t) {2605 if (t) {2606 var n = gt(e, "opacity");2607 return "" === n ? "1": n2608 }2609 }2610 }2611 },2612 cssNumber: {2613 animationIterationCount: !0,2614 columnCount: !0,2615 fillOpacity: !0,2616 flexGrow: !0,2617 flexShrink: !0,2618 fontWeight: !0,2619 lineHeight: !0,2620 opacity: !0,2621 order: !0,2622 orphans: !0,2623 widows: !0,2624 zIndex: !0,2625 zoom: !02626 },2627 cssProps: {2628 "float": fe.cssFloat ? "cssFloat": "styleFloat"2629 },2630 style: function(e, t, n, r) {2631 if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {2632 var i, o, a, s = pe.camelCase(t),2633 u = e.style;2634 if (t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s), a = pe.cssHooks[t] || pe.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i: u[t];2635 if (o = typeof n, "string" === o && (i = Me.exec(n)) && i[1] && (n = d(e, t, i), o = "number"), null != n && n === n && ("number" === o && (n += i && i[3] || (pe.cssNumber[s] ? "": "px")), fe.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (u[t] = "inherit"), !(a && "set" in a && void 0 === (n = a.set(e, n, r))))) try {2636 u[t] = n2637 } catch(l) {}2638 }2639 },2640 css: function(e, t, n, r) {2641 var i, o, a, s = pe.camelCase(t);2642 return t = pe.cssProps[s] || (pe.cssProps[s] = H(s) || s),2643 a = pe.cssHooks[t] || pe.cssHooks[s],2644 a && "get" in a && (o = a.get(e, !0, n)),2645 void 0 === o && (o = gt(e, t, r)),2646 "normal" === o && t in Tt && (o = Tt[t]),2647 "" === n || n ? (i = parseFloat(o), n === !0 || isFinite(i) ? i || 0 : o) : o2648 }2649 }),2650 pe.each(["height", "width"],2651 function(e, t) {2652 pe.cssHooks[t] = {2653 get: function(e, n, r) {2654 if (n) return xt.test(pe.css(e, "display")) && 0 === e.offsetWidth ? dt(e, wt,2655 function() {2656 return M(e, t, r)2657 }) : M(e, t, r)2658 },2659 set: function(e, n, r) {2660 var i = r && ht(e);2661 return _(e, n, r ? F(e, t, r, fe.boxSizing && "border-box" === pe.css(e, "boxSizing", !1, i), i) : 0)2662 }2663 }2664 }),2665 fe.opacity || (pe.cssHooks.opacity = {2666 get: function(e, t) {2667 return vt.test((t && e.currentStyle ? e.currentStyle.filter: e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "": t ? "1": ""2668 },2669 set: function(e, t) {2670 var n = e.style,2671 r = e.currentStyle,2672 i = pe.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")": "",2673 o = r && r.filter || n.filter || "";2674 n.zoom = 1,2675 (t >= 1 || "" === t) && "" === pe.trim(o.replace(yt, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = yt.test(o) ? o.replace(yt, i) : o + " " + i)2676 }2677 }),2678 pe.cssHooks.marginRight = L(fe.reliableMarginRight,2679 function(e, t) {2680 if (t) return dt(e, {2681 display: "inline-block"2682 },2683 gt, [e, "marginRight"])2684 }),2685 pe.cssHooks.marginLeft = L(fe.reliableMarginLeft,2686 function(e, t) {2687 if (t) return (parseFloat(gt(e, "marginLeft")) || (pe.contains(e.ownerDocument, e) ? e.getBoundingClientRect().left - dt(e, {2688 marginLeft: 02689 },2690 function() {2691 return e.getBoundingClientRect().left2692 }) : 0)) + "px"2693 }),2694 pe.each({2695 margin: "",2696 padding: "",2697 border: "Width"2698 },2699 function(e, t) {2700 pe.cssHooks[e + t] = {2701 expand: function(n) {2702 for (var r = 0,2703 i = {},2704 o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++) i[e + Oe[r] + t] = o[r] || o[r - 2] || o[0];2705 return i2706 }2707 },2708 ct.test(e) || (pe.cssHooks[e + t].set = _)2709 }),2710 pe.fn.extend({2711 css: function(e, t) {2712 return Pe(this,2713 function(e, t, n) {2714 var r, i, o = {},2715 a = 0;2716 if (pe.isArray(t)) {2717 for (r = ht(e), i = t.length; a < i; a++) o[t[a]] = pe.css(e, t[a], !1, r);2718 return o2719 }2720 return void 0 !== n ? pe.style(e, t, n) : pe.css(e, t)2721 },2722 e, t, arguments.length > 1)2723 },2724 show: function() {2725 return q(this, !0)2726 },2727 hide: function() {2728 return q(this)2729 },2730 toggle: function(e) {2731 return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {2732 Re(this) ? pe(this).show() : pe(this).hide()2733 })2734 }2735 }),2736 pe.Tween = O,2737 O.prototype = {2738 constructor: O,2739 init: function(e, t, n, r, i, o) {2740 this.elem = e,2741 this.prop = n,2742 this.easing = i || pe.easing._default,2743 this.options = t,2744 this.start = this.now = this.cur(),2745 this.end = r,2746 this.unit = o || (pe.cssNumber[n] ? "": "px")2747 },2748 cur: function() {2749 var e = O.propHooks[this.prop];2750 return e && e.get ? e.get(this) : O.propHooks._default.get(this)2751 },2752 run: function(e) {2753 var t, n = O.propHooks[this.prop];2754 return this.options.duration ? this.pos = t = pe.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e,2755 this.now = (this.end - this.start) * t + this.start,2756 this.options.step && this.options.step.call(this.elem, this.now, this),2757 n && n.set ? n.set(this) : O.propHooks._default.set(this),2758 this2759 }2760 },2761 O.prototype.init.prototype = O.prototype,2762 O.propHooks = {2763 _default: {2764 get: function(e) {2765 var t;2766 return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = pe.css(e.elem, e.prop, ""), t && "auto" !== t ? t: 0)2767 },2768 set: function(e) {2769 pe.fx.step[e.prop] ? pe.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[pe.cssProps[e.prop]] && !pe.cssHooks[e.prop] ? e.elem[e.prop] = e.now: pe.style(e.elem, e.prop, e.now + e.unit)2770 }2771 }2772 },2773 O.propHooks.scrollTop = O.propHooks.scrollLeft = {2774 set: function(e) {2775 e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)2776 }2777 },2778 pe.easing = {2779 linear: function(e) {2780 return e2781 },2782 swing: function(e) {2783 return.5 - Math.cos(e * Math.PI) / 22784 },2785 _default: "swing"2786 },2787 pe.fx = O.prototype.init,2788 pe.fx.step = {};2789 var Nt, kt, St = /^(?:toggle|show|hide)$/,2790 At = /queueHooks$/;2791 pe.Animation = pe.extend($, {2792 tweeners: {2793 "*": [function(e, t) {2794 var n = this.createTween(e, t);2795 return d(n.elem, e, Me.exec(t), n),2796 n2797 }]2798 },2799 tweener: function(e, t) {2800 pe.isFunction(e) ? (t = e, e = ["*"]) : e = e.match(De);2801 for (var n, r = 0,2802 i = e.length; r < i; r++) n = e[r],2803 $.tweeners[n] = $.tweeners[n] || [],2804 $.tweeners[n].unshift(t)2805 },2806 prefilters: [W],2807 prefilter: function(e, t) {2808 t ? $.prefilters.unshift(e) : $.prefilters.push(e)2809 }2810 }),2811 pe.speed = function(e, t, n) {2812 var r = e && "object" == typeof e ? pe.extend({},2813 e) : {2814 complete: n || !n && t || pe.isFunction(e) && e,2815 duration: e,2816 easing: n && t || t && !pe.isFunction(t) && t2817 };2818 return r.duration = pe.fx.off ? 0 : "number" == typeof r.duration ? r.duration: r.duration in pe.fx.speeds ? pe.fx.speeds[r.duration] : pe.fx.speeds._default,2819 null != r.queue && r.queue !== !0 || (r.queue = "fx"),2820 r.old = r.complete,2821 r.complete = function() {2822 pe.isFunction(r.old) && r.old.call(this),2823 r.queue && pe.dequeue(this, r.queue)2824 },2825 r2826 },2827 pe.fn.extend({2828 fadeTo: function(e, t, n, r) {2829 return this.filter(Re).css("opacity", 0).show().end().animate({2830 opacity: t2831 },2832 e, n, r)2833 },2834 animate: function(e, t, n, r) {2835 var i = pe.isEmptyObject(e),2836 o = pe.speed(t, n, r),2837 a = function() {2838 var t = $(this, pe.extend({},2839 e), o); (i || pe._data(this, "finish")) && t.stop(!0)2840 };2841 return a.finish = a,2842 i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)2843 },2844 stop: function(e, t, n) {2845 var r = function(e) {2846 var t = e.stop;2847 delete e.stop,2848 t(n)2849 };2850 return "string" != typeof e && (n = t, t = e, e = void 0),2851 t && e !== !1 && this.queue(e || "fx", []),2852 this.each(function() {2853 var t = !0,2854 i = null != e && e + "queueHooks",2855 o = pe.timers,2856 a = pe._data(this);2857 if (i) a[i] && a[i].stop && r(a[i]);2858 else for (i in a) a[i] && a[i].stop && At.test(i) && r(a[i]);2859 for (i = o.length; i--;) o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), t = !1, o.splice(i, 1)); ! t && n || pe.dequeue(this, e)2860 })2861 },2862 finish: function(e) {2863 return e !== !1 && (e = e || "fx"),2864 this.each(function() {2865 var t, n = pe._data(this),2866 r = n[e + "queue"],2867 i = n[e + "queueHooks"],2868 o = pe.timers,2869 a = r ? r.length: 0;2870 for (n.finish = !0, pe.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));2871 for (t = 0; t < a; t++) r[t] && r[t].finish && r[t].finish.call(this);2872 delete n.finish2873 })2874 }2875 }),2876 pe.each(["toggle", "show", "hide"],2877 function(e, t) {2878 var n = pe.fn[t];2879 pe.fn[t] = function(e, r, i) {2880 return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(P(t, !0), e, r, i)2881 }2882 }),2883 pe.each({2884 slideDown: P("show"),2885 slideUp: P("hide"),2886 slideToggle: P("toggle"),2887 fadeIn: {2888 opacity: "show"2889 },2890 fadeOut: {2891 opacity: "hide"2892 },2893 fadeToggle: {2894 opacity: "toggle"2895 }2896 },2897 function(e, t) {2898 pe.fn[e] = function(e, n, r) {2899 return this.animate(t, e, n, r)2900 }2901 }),2902 pe.timers = [],2903 pe.fx.tick = function() {2904 var e, t = pe.timers,2905 n = 0;2906 for (Nt = pe.now(); n < t.length; n++) e = t[n],2907 e() || t[n] !== e || t.splice(n--, 1);2908 t.length || pe.fx.stop(),2909 Nt = void 02910 },2911 pe.fx.timer = function(e) {2912 pe.timers.push(e),2913 e() ? pe.fx.start() : pe.timers.pop()2914 },2915 pe.fx.interval = 13,2916 pe.fx.start = function() {2917 kt || (kt = e.setInterval(pe.fx.tick, pe.fx.interval))2918 },2919 pe.fx.stop = function() {2920 e.clearInterval(kt),2921 kt = null2922 },2923 pe.fx.speeds = {2924 slow: 600,2925 fast: 200,2926 _default: 4002927 },2928 pe.fn.delay = function(t, n) {2929 return t = pe.fx ? pe.fx.speeds[t] || t: t,2930 n = n || "fx",2931 this.queue(n,2932 function(n, r) {2933 var i = e.setTimeout(n, t);2934 r.stop = function() {2935 e.clearTimeout(i)2936 }2937 })2938 },2939 function() {2940 var e, t = re.createElement("input"),2941 n = re.createElement("div"),2942 r = re.createElement("select"),2943 i = r.appendChild(re.createElement("option"));2944 n = re.createElement("div"),2945 n.setAttribute("className", "t"),2946 n.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",2947 e = n.getElementsByTagName("a")[0],2948 t.setAttribute("type", "checkbox"),2949 n.appendChild(t),2950 e = n.getElementsByTagName("a")[0],2951 e.style.cssText = "top:1px",2952 fe.getSetAttribute = "t" !== n.className,2953 fe.style = /top/.test(e.getAttribute("style")),2954 fe.hrefNormalized = "/a" === e.getAttribute("href"),2955 fe.checkOn = !!t.value,2956 fe.optSelected = i.selected,2957 fe.enctype = !!re.createElement("form").enctype,2958 r.disabled = !0,2959 fe.optDisabled = !i.disabled,2960 t = re.createElement("input"),2961 t.setAttribute("value", ""),2962 fe.input = "" === t.getAttribute("value"),2963 t.value = "t",2964 t.setAttribute("type", "radio"),2965 fe.radioValue = "t" === t.value2966 } ();2967 var Dt = /\r/g,2968 jt = /[\x20\t\r\n\f]+/g;2969 pe.fn.extend({2970 val: function(e) {2971 var t, n, r, i = this[0]; {2972 if (arguments.length) return r = pe.isFunction(e),2973 this.each(function(n) {2974 var i;2975 1 === this.nodeType && (i = r ? e.call(this, n, pe(this).val()) : e, null == i ? i = "": "number" == typeof i ? i += "": pe.isArray(i) && (i = pe.map(i,2976 function(e) {2977 return null == e ? "": e + ""2978 })), t = pe.valHooks[this.type] || pe.valHooks[this.nodeName.toLowerCase()], t && "set" in t && void 0 !== t.set(this, i, "value") || (this.value = i))2979 });2980 if (i) return t = pe.valHooks[i.type] || pe.valHooks[i.nodeName.toLowerCase()],2981 t && "get" in t && void 0 !== (n = t.get(i, "value")) ? n: (n = i.value, "string" == typeof n ? n.replace(Dt, "") : null == n ? "": n)2982 }2983 }2984 }),2985 pe.extend({2986 valHooks: {2987 option: {2988 get: function(e) {2989 var t = pe.find.attr(e, "value");2990 return null != t ? t: pe.trim(pe.text(e)).replace(jt, " ")2991 }2992 },2993 select: {2994 get: function(e) {2995 for (var t, n, r = e.options,2996 i = e.selectedIndex,2997 o = "select-one" === e.type || i < 0,2998 a = o ? null: [], s = o ? i + 1 : r.length, u = i < 0 ? s: o ? i: 0; u < s; u++) if (n = r[u], (n.selected || u === i) && (fe.optDisabled ? !n.disabled: null === n.getAttribute("disabled")) && (!n.parentNode.disabled || !pe.nodeName(n.parentNode, "optgroup"))) {2999 if (t = pe(n).val(), o) return t;3000 a.push(t)3001 }3002 return a3003 },3004 set: function(e, t) {3005 for (var n, r, i = e.options,3006 o = pe.makeArray(t), a = i.length; a--;) if (r = i[a], pe.inArray(pe.valHooks.option.get(r), o) > -1) try {3007 r.selected = n = !03008 } catch(s) {3009 r.scrollHeight3010 } else r.selected = !1;3011 return n || (e.selectedIndex = -1),3012 i3013 }3014 }3015 }3016 }),3017 pe.each(["radio", "checkbox"],3018 function() {3019 pe.valHooks[this] = {3020 set: function(e, t) {3021 if (pe.isArray(t)) return e.checked = pe.inArray(pe(e).val(), t) > -13022 }3023 },3024 fe.checkOn || (pe.valHooks[this].get = function(e) {3025 return null === e.getAttribute("value") ? "on": e.value3026 })3027 });3028 var Lt, Ht, qt = pe.expr.attrHandle,3029 _t = /^(?:checked|selected)$/i,3030 Ft = fe.getSetAttribute,3031 Mt = fe.input;3032 pe.fn.extend({3033 attr: function(e, t) {3034 return Pe(this, pe.attr, e, t, arguments.length > 1)3035 },3036 removeAttr: function(e) {3037 return this.each(function() {3038 pe.removeAttr(this, e)3039 })3040 }3041 }),3042 pe.extend({3043 attr: function(e, t, n) {3044 var r, i, o = e.nodeType;3045 if (3 !== o && 8 !== o && 2 !== o) return "undefined" == typeof e.getAttribute ? pe.prop(e, t, n) : (1 === o && pe.isXMLDoc(e) || (t = t.toLowerCase(), i = pe.attrHooks[t] || (pe.expr.match.bool.test(t) ? Ht: Lt)), void 0 !== n ? null === n ? void pe.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r: (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r: (r = pe.find.attr(e, t), null == r ? void 0 : r))3046 },3047 attrHooks: {3048 type: {3049 set: function(e, t) {3050 if (!fe.radioValue && "radio" === t && pe.nodeName(e, "input")) {3051 var n = e.value;3052 return e.setAttribute("type", t),3053 n && (e.value = n),3054 t3055 }3056 }3057 }3058 },3059 removeAttr: function(e, t) {3060 var n, r, i = 0,3061 o = t && t.match(De);3062 if (o && 1 === e.nodeType) for (; n = o[i++];) r = pe.propFix[n] || n,3063 pe.expr.match.bool.test(n) ? Mt && Ft || !_t.test(n) ? e[r] = !1 : e[pe.camelCase("default-" + n)] = e[r] = !1 : pe.attr(e, n, ""),3064 e.removeAttribute(Ft ? n: r)3065 }3066 }),3067 Ht = {3068 set: function(e, t, n) {3069 return t === !1 ? pe.removeAttr(e, n) : Mt && Ft || !_t.test(n) ? e.setAttribute(!Ft && pe.propFix[n] || n, n) : e[pe.camelCase("default-" + n)] = e[n] = !0,3070 n3071 }3072 },3073 pe.each(pe.expr.match.bool.source.match(/\w+/g),3074 function(e, t) {3075 var n = qt[t] || pe.find.attr;3076 Mt && Ft || !_t.test(t) ? qt[t] = function(e, t, r) {3077 var i, o;3078 return r || (o = qt[t], qt[t] = i, i = null != n(e, t, r) ? t.toLowerCase() : null, qt[t] = o),3079 i3080 }: qt[t] = function(e, t, n) {3081 if (!n) return e[pe.camelCase("default-" + t)] ? t.toLowerCase() : null3082 }3083 }),3084 Mt && Ft || (pe.attrHooks.value = {3085 set: function(e, t, n) {3086 return pe.nodeName(e, "input") ? void(e.defaultValue = t) : Lt && Lt.set(e, t, n)3087 }3088 }),3089 Ft || (Lt = {3090 set: function(e, t, n) {3091 var r = e.getAttributeNode(n);3092 if (r || e.setAttributeNode(r = e.ownerDocument.createAttribute(n)), r.value = t += "", "value" === n || t === e.getAttribute(n)) return t3093 }3094 },3095 qt.id = qt.name = qt.coords = function(e, t, n) {3096 var r;3097 if (!n) return (r = e.getAttributeNode(t)) && "" !== r.value ? r.value: null3098 },3099 pe.valHooks.button = {3100 get: function(e, t) {3101 var n = e.getAttributeNode(t);3102 if (n && n.specified) return n.value3103 },3104 set: Lt.set3105 },3106 pe.attrHooks.contenteditable = {3107 set: function(e, t, n) {3108 Lt.set(e, "" !== t && t, n)3109 }3110 },3111 pe.each(["width", "height"],3112 function(e, t) {3113 pe.attrHooks[t] = {3114 set: function(e, n) {3115 if ("" === n) return e.setAttribute(t, "auto"),3116 n3117 }3118 }3119 })),3120 fe.style || (pe.attrHooks.style = {3121 get: function(e) {3122 return e.style.cssText || void 03123 },3124 set: function(e, t) {3125 return e.style.cssText = t + ""3126 }3127 });3128 var Ot = /^(?:input|select|textarea|button|object)$/i,3129 Rt = /^(?:a|area)$/i;3130 pe.fn.extend({3131 prop: function(e, t) {3132 return Pe(this, pe.prop, e, t, arguments.length > 1)3133 },3134 removeProp: function(e) {3135 return e = pe.propFix[e] || e,3136 this.each(function() {3137 try {3138 this[e] = void 0,3139 delete this[e]3140 } catch(t) {}3141 })3142 }3143 }),3144 pe.extend({3145 prop: function(e, t, n) {3146 var r, i, o = e.nodeType;3147 if (3 !== o && 8 !== o && 2 !== o) return 1 === o && pe.isXMLDoc(e) || (t = pe.propFix[t] || t, i = pe.propHooks[t]),3148 void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r: e[t] = n: i && "get" in i && null !== (r = i.get(e, t)) ? r: e[t]3149 },3150 propHooks: {3151 tabIndex: {3152 get: function(e) {3153 var t = pe.find.attr(e, "tabindex");3154 return t ? parseInt(t, 10) : Ot.test(e.nodeName) || Rt.test(e.nodeName) && e.href ? 0 : -13155 }3156 }3157 },3158 propFix: {3159 "for": "htmlFor",3160 "class": "className"3161 }3162 }),3163 fe.hrefNormalized || pe.each(["href", "src"],3164 function(e, t) {3165 pe.propHooks[t] = {3166 get: function(e) {3167 return e.getAttribute(t, 4)3168 }3169 }3170 }),3171 fe.optSelected || (pe.propHooks.selected = {3172 get: function(e) {3173 var t = e.parentNode;3174 return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex),3175 null3176 },3177 set: function(e) {3178 var t = e.parentNode;3179 t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex)3180 }3181 }),3182 pe.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"],3183 function() {3184 pe.propFix[this.toLowerCase()] = this3185 }),3186 fe.enctype || (pe.propFix.enctype = "encoding");3187 var Pt = /[\t\r\n\f]/g;3188 pe.fn.extend({3189 addClass: function(e) {3190 var t, n, r, i, o, a, s, u = 0;3191 if (pe.isFunction(e)) return this.each(function(t) {3192 pe(this).addClass(e.call(this, t, z(this)))3193 });3194 if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {3195 for (a = 0; o = t[a++];) r.indexOf(" " + o + " ") < 0 && (r += o + " ");3196 s = pe.trim(r),3197 i !== s && pe.attr(n, "class", s)3198 }3199 return this3200 },3201 removeClass: function(e) {3202 var t, n, r, i, o, a, s, u = 0;3203 if (pe.isFunction(e)) return this.each(function(t) {3204 pe(this).removeClass(e.call(this, t, z(this)))3205 });3206 if (!arguments.length) return this.attr("class", "");3207 if ("string" == typeof e && e) for (t = e.match(De) || []; n = this[u++];) if (i = z(n), r = 1 === n.nodeType && (" " + i + " ").replace(Pt, " ")) {3208 for (a = 0; o = t[a++];) for (; r.indexOf(" " + o + " ") > -1;) r = r.replace(" " + o + " ", " ");3209 s = pe.trim(r),3210 i !== s && pe.attr(n, "class", s)3211 }3212 return this3213 },3214 toggleClass: function(e, t) {3215 var n = typeof e;3216 return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : pe.isFunction(e) ? this.each(function(n) {3217 pe(this).toggleClass(e.call(this, n, z(this), t), t)3218 }) : this.each(function() {3219 var t, r, i, o;3220 if ("string" === n) for (r = 0, i = pe(this), o = e.match(De) || []; t = o[r++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);3221 else void 0 !== e && "boolean" !== n || (t = z(this), t && pe._data(this, "__className__", t), pe.attr(this, "class", t || e === !1 ? "": pe._data(this, "__className__") || ""))3222 })3223 },3224 hasClass: function(e) {3225 var t, n, r = 0;3226 for (t = " " + e + " "; n = this[r++];) if (1 === n.nodeType && (" " + z(n) + " ").replace(Pt, " ").indexOf(t) > -1) return ! 0;3227 return ! 13228 }3229 }),3230 pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),3231 function(e, t) {3232 pe.fn[t] = function(e, n) {3233 return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)3234 }3235 }),3236 pe.fn.extend({3237 hover: function(e, t) {3238 return this.mouseenter(e).mouseleave(t || e)3239 }3240 });3241 var Bt = e.location,3242 Wt = pe.now(),3243 It = /\?/,3244 $t = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;3245 pe.parseJSON = function(t) {3246 if (e.JSON && e.JSON.parse) return e.JSON.parse(t + "");3247 var n, r = null,3248 i = pe.trim(t + "");3249 return i && !pe.trim(i.replace($t,3250 function(e, t, i, o) {3251 return n && t && (r = 0),3252 0 === r ? e: (n = i || t, r += !o - !i, "")3253 })) ? Function("return " + i)() : pe.error("Invalid JSON: " + t)3254 },3255 pe.parseXML = function(t) {3256 var n, r;3257 if (!t || "string" != typeof t) return null;3258 try {3259 e.DOMParser ? (r = new e.DOMParser, n = r.parseFromString(t, "text/xml")) : (n = new e.ActiveXObject("Microsoft.XMLDOM"), n.async = "false", n.loadXML(t))3260 } catch(i) {3261 n = void 03262 }3263 return n && n.documentElement && !n.getElementsByTagName("parsererror").length || pe.error("Invalid XML: " + t),3264 n3265 };3266 var zt = /#.*$/,3267 Xt = /([?&])_=[^&]*/,3268 Ut = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,3269 Vt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,3270 Yt = /^(?:GET|HEAD)$/,3271 Jt = /^\/\//,3272 Gt = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,3273 Kt = {},3274 Qt = {},3275 Zt = "*/".concat("*"),3276 en = Bt.href,3277 tn = Gt.exec(en.toLowerCase()) || [];3278 pe.extend({3279 active: 0,3280 lastModified: {},3281 etag: {},3282 ajaxSettings: {3283 url: en,3284 type: "GET",3285 isLocal: Vt.test(tn[1]),3286 global: !0,3287 processData: !0,3288 async: !0,3289 contentType: "application/x-www-form-urlencoded; charset=UTF-8",3290 accepts: {3291 "*": Zt,3292 text: "text/plain",3293 html: "text/html",3294 xml: "application/xml, text/xml",3295 json: "application/json, text/javascript"3296 },3297 contents: {3298 xml: /\bxml\b/,3299 html: /\bhtml/,3300 json: /\bjson\b/3301 },3302 responseFields: {3303 xml: "responseXML",3304 text: "responseText",3305 json: "responseJSON"3306 },3307 converters: {3308 "* text": String,3309 "text html": !0,3310 "text json": pe.parseJSON,3311 "text xml": pe.parseXML3312 },3313 flatOptions: {3314 url: !0,3315 context: !03316 }3317 },3318 ajaxSetup: function(e, t) {3319 return t ? V(V(e, pe.ajaxSettings), t) : V(pe.ajaxSettings, e)3320 },3321 ajaxPrefilter: X(Kt),3322 ajaxTransport: X(Qt),3323 ajax: function(t, n) {3324 function r(t, n, r, i) {3325 var o, f, v, x, w, C = n;3326 2 !== b && (b = 2, u && e.clearTimeout(u), c = void 0, s = i || "", T.readyState = t > 0 ? 4 : 0, o = t >= 200 && t < 300 || 304 === t, r && (x = Y(d, T, r)), x = J(d, x, T, o), o ? (d.ifModified && (w = T.getResponseHeader("Last-Modified"), w && (pe.lastModified[a] = w), w = T.getResponseHeader("etag"), w && (pe.etag[a] = w)), 204 === t || "HEAD" === d.type ? C = "nocontent": 304 === t ? C = "notmodified": (C = x.state, f = x.data, v = x.error, o = !v)) : (v = C, !t && C || (C = "error", t < 0 && (t = 0))), T.status = t, T.statusText = (n || C) + "", o ? g.resolveWith(p, [f, C, T]) : g.rejectWith(p, [T, C, v]), T.statusCode(y), y = void 0, l && h.trigger(o ? "ajaxSuccess": "ajaxError", [T, d, o ? f: v]), m.fireWith(p, [T, C]), l && (h.trigger("ajaxComplete", [T, d]), --pe.active || pe.event.trigger("ajaxStop")))3327 }3328 "object" == typeof t && (n = t, t = void 0),3329 n = n || {};3330 var i, o, a, s, u, l, c, f, d = pe.ajaxSetup({},3331 n),3332 p = d.context || d,3333 h = d.context && (p.nodeType || p.jquery) ? pe(p) : pe.event,3334 g = pe.Deferred(),3335 m = pe.Callbacks("once memory"),3336 y = d.statusCode || {},3337 v = {},3338 x = {},3339 b = 0,3340 w = "canceled",3341 T = {3342 readyState: 0,3343 getResponseHeader: function(e) {3344 var t;3345 if (2 === b) {3346 if (!f) for (f = {}; t = Ut.exec(s);) f[t[1].toLowerCase()] = t[2];3347 t = f[e.toLowerCase()]3348 }3349 return null == t ? null: t3350 },3351 getAllResponseHeaders: function() {3352 return 2 === b ? s: null3353 },3354 setRequestHeader: function(e, t) {3355 var n = e.toLowerCase();3356 return b || (e = x[n] = x[n] || e, v[e] = t),3357 this3358 },3359 overrideMimeType: function(e) {3360 return b || (d.mimeType = e),3361 this3362 },3363 statusCode: function(e) {3364 var t;3365 if (e) if (b < 2) for (t in e) y[t] = [y[t], e[t]];3366 else T.always(e[T.status]);3367 return this3368 },3369 abort: function(e) {3370 var t = e || w;3371 return c && c.abort(t),3372 r(0, t),3373 this3374 }3375 };3376 if (g.promise(T).complete = m.add, T.success = T.done, T.error = T.fail, d.url = ((t || d.url || en) + "").replace(zt, "").replace(Jt, tn[1] + "//"), d.type = n.method || n.type || d.method || d.type, d.dataTypes = pe.trim(d.dataType || "*").toLowerCase().match(De) || [""], null == d.crossDomain && (i = Gt.exec(d.url.toLowerCase()), d.crossDomain = !(!i || i[1] === tn[1] && i[2] === tn[2] && (i[3] || ("http:" === i[1] ? "80": "443")) === (tn[3] || ("http:" === tn[1] ? "80": "443")))), d.data && d.processData && "string" != typeof d.data && (d.data = pe.param(d.data, d.traditional)), U(Kt, d, n, T), 2 === b) return T;3377 l = pe.event && d.global,3378 l && 0 === pe.active++&&pe.event.trigger("ajaxStart"),3379 d.type = d.type.toUpperCase(),3380 d.hasContent = !Yt.test(d.type),3381 a = d.url,3382 d.hasContent || (d.data && (a = d.url += (It.test(a) ? "&": "?") + d.data, delete d.data), d.cache === !1 && (d.url = Xt.test(a) ? a.replace(Xt, "$1_=" + Wt++) : a + (It.test(a) ? "&": "?") + "_=" + Wt++)),3383 d.ifModified && (pe.lastModified[a] && T.setRequestHeader("If-Modified-Since", pe.lastModified[a]), pe.etag[a] && T.setRequestHeader("If-None-Match", pe.etag[a])),3384 (d.data && d.hasContent && d.contentType !== !1 || n.contentType) && T.setRequestHeader("Content-Type", d.contentType),3385 T.setRequestHeader("Accept", d.dataTypes[0] && d.accepts[d.dataTypes[0]] ? d.accepts[d.dataTypes[0]] + ("*" !== d.dataTypes[0] ? ", " + Zt + "; q=0.01": "") : d.accepts["*"]);3386 for (o in d.headers) T.setRequestHeader(o, d.headers[o]);3387 if (d.beforeSend && (d.beforeSend.call(p, T, d) === !1 || 2 === b)) return T.abort();3388 w = "abort";3389 for (o in {3390 success: 1,3391 error: 1,3392 complete: 13393 }) T[o](d[o]);3394 if (c = U(Qt, d, n, T)) {3395 if (T.readyState = 1, l && h.trigger("ajaxSend", [T, d]), 2 === b) return T;3396 d.async && d.timeout > 0 && (u = e.setTimeout(function() {3397 T.abort("timeout")3398 },3399 d.timeout));3400 try {3401 b = 1,3402 c.send(v, r)3403 } catch(C) {3404 if (! (b < 2)) throw C;3405 r( - 1, C)3406 }3407 } else r( - 1, "No Transport");3408 return T3409 },3410 getJSON: function(e, t, n) {3411 return pe.get(e, t, n, "json")3412 },3413 getScript: function(e, t) {3414 return pe.get(e, void 0, t, "script")3415 }3416 }),3417 pe.each(["get", "post"],3418 function(e, t) {3419 pe[t] = function(e, n, r, i) {3420 return pe.isFunction(n) && (i = i || r, r = n, n = void 0),3421 pe.ajax(pe.extend({3422 url: e,3423 type: t,3424 dataType: i,3425 data: n,3426 success: r3427 },3428 pe.isPlainObject(e) && e))3429 }3430 }),3431 pe._evalUrl = function(e) {3432 return pe.ajax({3433 url: e,3434 type: "GET",3435 dataType: "script",3436 cache: !0,3437 async: !1,3438 global: !1,3439 "throws": !03440 })3441 },3442 pe.fn.extend({3443 wrapAll: function(e) {3444 if (pe.isFunction(e)) return this.each(function(t) {3445 pe(this).wrapAll(e.call(this, t))3446 });3447 if (this[0]) {3448 var t = pe(e, this[0].ownerDocument).eq(0).clone(!0);3449 this[0].parentNode && t.insertBefore(this[0]),3450 t.map(function() {3451 for (var e = this; e.firstChild && 1 === e.firstChild.nodeType;) e = e.firstChild;3452 return e3453 }).append(this)3454 }3455 return this3456 },3457 wrapInner: function(e) {3458 return pe.isFunction(e) ? this.each(function(t) {3459 pe(this).wrapInner(e.call(this, t))3460 }) : this.each(function() {3461 var t = pe(this),3462 n = t.contents();3463 n.length ? n.wrapAll(e) : t.append(e)3464 })3465 },3466 wrap: function(e) {3467 var t = pe.isFunction(e);3468 return this.each(function(n) {3469 pe(this).wrapAll(t ? e.call(this, n) : e)3470 })3471 },3472 unwrap: function() {3473 return this.parent().each(function() {3474 pe.nodeName(this, "body") || pe(this).replaceWith(this.childNodes)3475 }).end()3476 }3477 }),3478 pe.expr.filters.hidden = function(e) {3479 return fe.reliableHiddenOffsets() ? e.offsetWidth <= 0 && e.offsetHeight <= 0 && !e.getClientRects().length: K(e)3480 },3481 pe.expr.filters.visible = function(e) {3482 return ! pe.expr.filters.hidden(e)3483 };3484 var nn = /%20/g,3485 rn = /\[\]$/,3486 on = /\r?\n/g,3487 an = /^(?:submit|button|image|reset|file)$/i,3488 sn = /^(?:input|select|textarea|keygen)/i;3489 pe.param = function(e, t) {3490 var n, r = [],3491 i = function(e, t) {3492 t = pe.isFunction(t) ? t() : null == t ? "": t,3493 r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)3494 };3495 if (void 0 === t && (t = pe.ajaxSettings && pe.ajaxSettings.traditional), pe.isArray(e) || e.jquery && !pe.isPlainObject(e)) pe.each(e,3496 function() {3497 i(this.name, this.value)3498 });3499 else for (n in e) Q(n, e[n], t, i);3500 return r.join("&").replace(nn, "+")3501 },3502 pe.fn.extend({3503 serialize: function() {3504 return pe.param(this.serializeArray())3505 },3506 serializeArray: function() {3507 return this.map(function() {3508 var e = pe.prop(this, "elements");3509 return e ? pe.makeArray(e) : this3510 }).filter(function() {3511 var e = this.type;3512 return this.name && !pe(this).is(":disabled") && sn.test(this.nodeName) && !an.test(e) && (this.checked || !Be.test(e))3513 }).map(function(e, t) {3514 var n = pe(this).val();3515 return null == n ? null: pe.isArray(n) ? pe.map(n,3516 function(e) {3517 return {3518 name: t.name,3519 value: e.replace(on, "\r\n")3520 }3521 }) : {3522 name: t.name,3523 value: n.replace(on, "\r\n")3524 }3525 }).get()3526 }3527 }),3528 pe.ajaxSettings.xhr = void 0 !== e.ActiveXObject ?3529 function() {3530 return this.isLocal ? ee() : re.documentMode > 8 ? Z() : /^(get|post|head|put|delete|options)$/i.test(this.type) && Z() || ee()3531 }: Z;3532 var un = 0,3533 ln = {},3534 cn = pe.ajaxSettings.xhr();3535 e.attachEvent && e.attachEvent("onunload",3536 function() {3537 for (var e in ln) ln[e](void 0, !0)3538 }),3539 fe.cors = !!cn && "withCredentials" in cn,3540 cn = fe.ajax = !!cn,3541 cn && pe.ajaxTransport(function(t) {3542 if (!t.crossDomain || fe.cors) {3543 var n;3544 return {3545 send: function(r, i) {3546 var o, a = t.xhr(),3547 s = ++un;3548 if (a.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) for (o in t.xhrFields) a[o] = t.xhrFields[o];3549 t.mimeType && a.overrideMimeType && a.overrideMimeType(t.mimeType),3550 t.crossDomain || r["X-Requested-With"] || (r["X-Requested-With"] = "XMLHttpRequest");3551 for (o in r) void 0 !== r[o] && a.setRequestHeader(o, r[o] + "");3552 a.send(t.hasContent && t.data || null),3553 n = function(e, r) {3554 var o, u, l;3555 if (n && (r || 4 === a.readyState)) if (delete ln[s], n = void 0, a.onreadystatechange = pe.noop, r) 4 !== a.readyState && a.abort();3556 else {3557 l = {},3558 o = a.status,3559 "string" == typeof a.responseText && (l.text = a.responseText);3560 try {3561 u = a.statusText3562 } catch(c) {3563 u = ""3564 }3565 o || !t.isLocal || t.crossDomain ? 1223 === o && (o = 204) : o = l.text ? 200 : 4043566 }3567 l && i(o, u, l, a.getAllResponseHeaders())3568 },3569 t.async ? 4 === a.readyState ? e.setTimeout(n) : a.onreadystatechange = ln[s] = n: n()3570 },3571 abort: function() {3572 n && n(void 0, !0)3573 }3574 }3575 }3576 }),3577 pe.ajaxSetup({3578 accepts: {3579 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"3580 },3581 contents: {3582 script: /\b(?:java|ecma)script\b/3583 },3584 converters: {3585 "text script": function(e) {3586 return pe.globalEval(e),3587 e3588 }3589 }3590 }),3591 pe.ajaxPrefilter("script",3592 function(e) {3593 void 0 === e.cache && (e.cache = !1),3594 e.crossDomain && (e.type = "GET", e.global = !1)3595 }),3596 pe.ajaxTransport("script",3597 function(e) {3598 if (e.crossDomain) {3599 var t, n = re.head || pe("head")[0] || re.documentElement;3600 return {3601 send: function(r, i) {3602 t = re.createElement("script"),3603 t.async = !0,3604 e.scriptCharset && (t.charset = e.scriptCharset),3605 t.src = e.url,3606 t.onload = t.onreadystatechange = function(e, n) { (n || !t.readyState || /loaded|complete/.test(t.readyState)) && (t.onload = t.onreadystatechange = null, t.parentNode && t.parentNode.removeChild(t), t = null, n || i(200, "success"))3607 },3608 n.insertBefore(t, n.firstChild)3609 },3610 abort: function() {3611 t && t.onload(void 0, !0)3612 }3613 }3614 }3615 });3616 var fn = [],3617 dn = /(=)\?(?=&|$)|\?\?/;3618 pe.ajaxSetup({3619 jsonp: "callback",3620 jsonpCallback: function() {3621 var e = fn.pop() || pe.expando + "_" + Wt++;3622 return this[e] = !0,3623 e3624 }3625 }),3626 pe.ajaxPrefilter("json jsonp",3627 function(t, n, r) {3628 var i, o, a, s = t.jsonp !== !1 && (dn.test(t.url) ? "url": "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && dn.test(t.data) && "data");3629 if (s || "jsonp" === t.dataTypes[0]) return i = t.jsonpCallback = pe.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback,3630 s ? t[s] = t[s].replace(dn, "$1" + i) : t.jsonp !== !1 && (t.url += (It.test(t.url) ? "&": "?") + t.jsonp + "=" + i),3631 t.converters["script json"] = function() {3632 return a || pe.error(i + " was not called"),3633 a[0]3634 },3635 t.dataTypes[0] = "json",3636 o = e[i],3637 e[i] = function() {3638 a = arguments3639 },3640 r.always(function() {3641 void 0 === o ? pe(e).removeProp(i) : e[i] = o,3642 t[i] && (t.jsonpCallback = n.jsonpCallback, fn.push(i)),3643 a && pe.isFunction(o) && o(a[0]),3644 a = o = void 03645 }),3646 "script"3647 }),3648 pe.parseHTML = function(e, t, n) {3649 if (!e || "string" != typeof e) return null;3650 "boolean" == typeof t && (n = t, t = !1),3651 t = t || re;3652 var r = Te.exec(e),3653 i = !n && [];3654 return r ? [t.createElement(r[1])] : (r = y([e], t, i), i && i.length && pe(i).remove(), pe.merge([], r.childNodes))3655 };3656 var pn = pe.fn.load;3657 return pe.fn.load = function(e, t, n) {3658 if ("string" != typeof e && pn) return pn.apply(this, arguments);3659 var r, i, o, a = this,3660 s = e.indexOf(" ");3661 return s > -1 && (r = pe.trim(e.slice(s, e.length)), e = e.slice(0, s)),3662 pe.isFunction(t) ? (n = t, t = void 0) : t && "object" == typeof t && (i = "POST"),3663 a.length > 0 && pe.ajax({3664 url: e,3665 type: i || "GET",3666 dataType: "html",3667 data: t3668 }).done(function(e) {3669 o = arguments,3670 a.html(r ? pe("<div>").append(pe.parseHTML(e)).find(r) : e)3671 }).always(n &&3672 function(e, t) {3673 a.each(function() {3674 n.apply(this, o || [e.responseText, t, e])3675 })3676 }),3677 this3678 },3679 pe.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"],3680 function(e, t) {3681 pe.fn[t] = function(e) {3682 return this.on(t, e)3683 }3684 }),3685 pe.expr.filters.animated = function(e) {3686 return pe.grep(pe.timers,3687 function(t) {3688 return e === t.elem3689 }).length3690 },3691 pe.offset = {3692 setOffset: function(e, t, n) {3693 var r, i, o, a, s, u, l, c = pe.css(e, "position"),3694 f = pe(e),3695 d = {};3696 "static" === c && (e.style.position = "relative"),3697 s = f.offset(),3698 o = pe.css(e, "top"),3699 u = pe.css(e, "left"),3700 l = ("absolute" === c || "fixed" === c) && pe.inArray("auto", [o, u]) > -1,3701 l ? (r = f.position(), a = r.top, i = r.left) : (a = parseFloat(o) || 0, i = parseFloat(u) || 0),3702 pe.isFunction(t) && (t = t.call(e, n, pe.extend({},3703 s))),3704 null != t.top && (d.top = t.top - s.top + a),3705 null != t.left && (d.left = t.left - s.left + i),3706 "using" in t ? t.using.call(e, d) : f.css(d)3707 }3708 },3709 pe.fn.extend({3710 offset: function(e) {3711 if (arguments.length) return void 0 === e ? this: this.each(function(t) {3712 pe.offset.setOffset(this, e, t)3713 });3714 var t, n, r = {3715 top: 0,3716 left: 03717 },3718 i = this[0],3719 o = i && i.ownerDocument;3720 if (o) return t = o.documentElement,3721 pe.contains(t, i) ? ("undefined" != typeof i.getBoundingClientRect && (r = i.getBoundingClientRect()), n = te(o), {3722 top: r.top + (n.pageYOffset || t.scrollTop) - (t.clientTop || 0),3723 left: r.left + (n.pageXOffset || t.scrollLeft) - (t.clientLeft || 0)3724 }) : r3725 },3726 position: function() {3727 if (this[0]) {3728 var e, t, n = {3729 top: 0,3730 left: 03731 },3732 r = this[0];3733 return "fixed" === pe.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), pe.nodeName(e[0], "html") || (n = e.offset()), n.top += pe.css(e[0], "borderTopWidth", !0), n.left += pe.css(e[0], "borderLeftWidth", !0)),3734 {3735 top: t.top - n.top - pe.css(r, "marginTop", !0),3736 left: t.left - n.left - pe.css(r, "marginLeft", !0)3737 }3738 }3739 },3740 offsetParent: function() {3741 return this.map(function() {3742 for (var e = this.offsetParent; e && !pe.nodeName(e, "html") && "static" === pe.css(e, "position");) e = e.offsetParent;3743 return e || pt3744 })3745 }3746 }),3747 pe.each({3748 scrollLeft: "pageXOffset",3749 scrollTop: "pageYOffset"3750 },3751 function(e, t) {3752 var n = /Y/.test(t);3753 pe.fn[e] = function(r) {3754 return Pe(this,3755 function(e, r, i) {3756 var o = te(e);3757 return void 0 === i ? o ? t in o ? o[t] : o.document.documentElement[r] : e[r] : void(o ? o.scrollTo(n ? pe(o).scrollLeft() : i, n ? i: pe(o).scrollTop()) : e[r] = i)3758 },3759 e, r, arguments.length, null)3760 }3761 }),3762 pe.each(["top", "left"],3763 function(e, t) {3764 pe.cssHooks[t] = L(fe.pixelPosition,3765 function(e, n) {3766 if (n) return n = gt(e, t),3767 ft.test(n) ? pe(e).position()[t] + "px": n3768 })3769 }),3770 pe.each({3771 Height: "height",3772 Width: "width"3773 },3774 function(e, t) {3775 pe.each({3776 padding: "inner" + e,3777 content: t,3778 "": "outer" + e3779 },3780 function(n, r) {3781 pe.fn[r] = function(r, i) {3782 var o = arguments.length && (n || "boolean" != typeof r),3783 a = n || (r === !0 || i === !0 ? "margin": "border");3784 return Pe(this,3785 function(t, n, r) {3786 var i;3787 return pe.isWindow(t) ? t.document.documentElement["client" + e] : 9 === t.nodeType ? (i = t.documentElement, Math.max(t.body["scroll" + e], i["scroll" + e], t.body["offset" + e], i["offset" + e], i["client" + e])) : void 0 === r ? pe.css(t, n, a) : pe.style(t, n, r, a)3788 },3789 t, o ? r: void 0, o, null)3790 }3791 })3792 }),3793 pe.fn.extend({3794 bind: function(e, t, n) {3795 return this.on(e, null, t, n)3796 },3797 unbind: function(e, t) {3798 return this.off(e, null, t)...

Full Screen

Full Screen

data.js

Source:data.js Github

copy

Full Screen

1var defaultWidth =2 window.screen.width > 7683 ? (window.screen.width * 1) / 34 : window.screen.width;5var style = {6 Wrapper: {},7 Containers: {8 DefaultStyle: {9 position: "fixed",10 width: defaultWidth,11 padding: "10px 10px 10px 20px",12 zIndex: 9998,13 WebkitBoxSizing: "",14 MozBoxSizing: "",15 boxSizing: "",16 height: "auto",17 display: "inline-block",18 border: "0",19 fontSize: "14px",20 WebkitFontSmoothing: "antialiased",21 fontFamily: '"Roboto","Helvetica Neue",Arial,sans-serif',22 fontWeight: "400",23 color: "#FFFFFF"24 },25 tl: {26 top: "0px",27 bottom: "auto",28 left: "0px",29 right: "auto"30 },31 tr: {32 top: "0px",33 bottom: "auto",34 left: "auto",35 right: "0px"36 },37 tc: {38 top: "0px",39 bottom: "auto",40 margin: "0 auto",41 left: "50%",42 marginLeft: -(defaultWidth / 2)43 },44 bl: {45 top: "auto",46 bottom: "0px",47 left: "0px",48 right: "auto"49 },50 br: {51 top: "auto",52 bottom: "0px",53 left: "auto",54 right: "0px"55 },56 bc: {57 top: "auto",58 bottom: "0px",59 margin: "0 auto",60 left: "50%",61 marginLeft: -(defaultWidth / 2)62 }63 },64 NotificationItem: {65 DefaultStyle: {66 position: "relative",67 width: "100%",68 cursor: "pointer",69 borderRadius: "4px",70 fontSize: "14px",71 margin: "10px 0 0",72 padding: "10px",73 display: "block",74 WebkitBoxSizing: "border-box",75 MozBoxSizing: "border-box",76 boxSizing: "border-box",77 opacity: 0,78 transition: "all 0.5s ease-in-out",79 WebkitTransform: "translate3d(0, 0, 0)",80 transform: "translate3d(0, 0, 0)",81 willChange: "transform, opacity",82 isHidden: {83 opacity: 084 },85 isVisible: {86 opacity: 187 }88 },89 success: {90 borderTop: 0,91 backgroundColor: "#a1e82c",92 WebkitBoxShadow: 0,93 MozBoxShadow: 0,94 boxShadow: 095 },96 error: {97 borderTop: 0,98 backgroundColor: "#fc727a",99 WebkitBoxShadow: 0,100 MozBoxShadow: 0,101 boxShadow: 0102 },103 warning: {104 borderTop: 0,105 backgroundColor: "#ffbc67",106 WebkitBoxShadow: 0,107 MozBoxShadow: 0,108 boxShadow: 0109 },110 info: {111 borderTop: 0,112 backgroundColor: "#63d8f1",113 WebkitBoxShadow: 0,114 MozBoxShadow: 0,115 boxShadow: 0116 }117 },118 Title: {119 DefaultStyle: {120 fontSize: "30px",121 margin: "0",122 padding: 0,123 fontWeight: "bold",124 color: "#FFFFFF",125 display: "block",126 left: "15px",127 position: "absolute",128 top: "50%",129 marginTop: "-15px"130 }131 },132 MessageWrapper: {133 DefaultStyle: {134 marginLeft: "55px",135 marginRight: "30px",136 padding: "0 12px 0 0",137 color: "#FFFFFF",138 maxWidthwidth: "89%"139 }140 },141 Dismiss: {142 DefaultStyle: {143 fontFamily: "inherit",144 fontSize: "21px",145 color: "#000",146 float: "right",147 position: "absolute",148 right: "10px",149 top: "50%",150 marginTop: "-13px",151 backgroundColor: "#FFFFFF",152 display: "block",153 borderRadius: "50%",154 opacity: ".4",155 lineHeight: "11px",156 width: "25px",157 height: "25px",158 outline: "0 !important",159 textAlign: "center",160 padding: "6px 3px 3px 3px",161 fontWeight: "300",162 marginLeft: "65px"163 },164 success: {165 // color: '#f0f5ea',166 // backgroundColor: '#a1e82c'167 },168 error: {169 // color: '#f4e9e9',170 // backgroundColor: '#fc727a'171 },172 warning: {173 // color: '#f9f6f0',174 // backgroundColor: '#ffbc67'175 },176 info: {177 // color: '#e8f0f4',178 // backgroundColor: '#63d8f1'179 }180 },181 Action: {182 DefaultStyle: {183 background: "#ffffff",184 borderRadius: "2px",185 padding: "6px 20px",186 fontWeight: "bold",187 margin: "10px 0 0 0",188 border: 0189 },190 success: {191 backgroundColor: "#a1e82c",192 color: "#ffffff"193 },194 error: {195 backgroundColor: "#fc727a",196 color: "#ffffff"197 },198 warning: {199 backgroundColor: "#ffbc67",200 color: "#ffffff"201 },202 info: {203 backgroundColor: "#63d8f1",204 color: "#ffffff"205 }206 },207 ActionWrapper: {208 DefaultStyle: {209 margin: 0,210 padding: 0211 }212 }213};214//215// //216// // // For tables217// //218//219const thArray = ["ID", "Name", "Salary", "Country", "City"];220const tdArray = [221 ["1", "Dakota Rice", "$36,738", "Niger", "Oud-Turnhout"],222 ["2", "Minerva Hooper", "$23,789", "Curaçao", "Sinaai-Waas"],223 ["3", "Sage Rodriguez", "$56,142", "Netherlands", "Baileux"],224 ["4", "Philip Chaney", "$38,735", "Korea, South", "Overland Park"],225 ["5", "Doris Greene", "$63,542", "Malawi", "Feldkirchen in Kärnten"],226 ["6", "Mason Porter", "$78,615", "Chile", "Gloucester"]227];228const data1 = [229 {'ID': "1", "Name": "Dakota Rice", "Salary": "$36,738", "Country": "Niger", "City": "Oud-Turnhout"},230 {'ID': "2", "Name": "Minerva Hooper", "Salary": "$23,789", "Country": "Curaçao", "City": "Sinaai-Waas"},231 {'ID': "3", "Name": "Sage Rodriguez", "Salary": "$56,142", "Country": "Netherlands", "City": "Baileux"},232 {'ID': "4", "Name": "Philip Chaney", "Salary": "$38,735", "Country": "Korea", "City": "Overland Park"},233 {'ID': "5", "Name": "Doris Greene", "Salary": "$63,542", "Country": "Malawi", "City": "Feldkirchen in Kärnten"},234 {'ID': "6", "Name": "Mason Porter", "Salary": "$78,615", "Country": "Chile", "City": "Gloucester"}235];236const data2 = [237 {'ID': "1", "Name": "Dakota Rice", "Salary": "$36,738", "Country": "Niger", "City": "Oud-Turnhout"},238 {'ID': "2", "Name": "Minerva Hooper", "Salary": "$23,789", "Country": "Curaçao", "City": "Sinaai-Waas"},239 {'ID': "3", "Name": "Sage Rodriguez", "Salary": "$56,142", "Country": "Netherlands", "City": "Baileux"},240 {'ID': "4", "Name": "Philip Chaney", "Salary": "$38,735", "Country": "Korea", "City": "Overland Park"},241 {'ID': "5", "Name": "Doris Greene", "Salary": "$63,542", "Country": "Malawi", "City": "Feldkirchen in Kärnten"},242 {'ID': "6", "Name": "Mason Porter", "Salary": "$78,615", "Country": "Chile", "City": "Gloucester"},243 {'ID': "7", "Name": "Dakota Rice", "Salary": "$36,738", "Country": "Niger", "City": "Oud-Turnhout"},244 {'ID': "8", "Name": "Minerva Hooper", "Salary": "$23,789", "Country": "Curaçao", "City": "Sinaai-Waas"},245 {'ID': "9", "Name": "Sage Rodriguez", "Salary": "$56,142", "Country": "Netherlands", "City": "Baileux"},246 {'ID': "10", "Name": "Philip Chaney", "Salary": "$38,735", "Country": "Korea", "City": "Overland Park"},247 {'ID': "11", "Name": "Doris Greene", "Salary": "$63,542", "Country": "Malawi", "City": "Feldkirchen in Kärnten"},248 {'ID': "12", "Name": "Mason Porter", "Salary": "$78,615", "Country": "Chile", "City": "Gloucester"}249];250const columns = [251 {252 Header: 'ID',253 accessor: 'ID',254 },255 {256 Header: 'Name',257 accessor: 'Name',258 },259 {260 Header: 'Salary',261 accessor: 'Salary',262 },263 {264 Header: 'Country',265 accessor: 'Country',266 },267 {268 Header: 'City',269 accessor: 'City',270 }271]272//273// //274// // // For icons275// //276//277const iconsArray = [278 "pe-7s-album",279 "pe-7s-arc",280 "pe-7s-back-2",281 "pe-7s-bandaid",282 "pe-7s-car",283 "pe-7s-diamond",284 "pe-7s-door-lock",285 "pe-7s-eyedropper",286 "pe-7s-female",287 "pe-7s-gym",288 "pe-7s-hammer",289 "pe-7s-headphones",290 "pe-7s-helm",291 "pe-7s-hourglass",292 "pe-7s-leaf",293 "pe-7s-magic-wand",294 "pe-7s-male",295 "pe-7s-map-2",296 "pe-7s-next-2",297 "pe-7s-paint-bucket",298 "pe-7s-pendrive",299 "pe-7s-photo",300 "pe-7s-piggy",301 "pe-7s-plugin",302 "pe-7s-refresh-2",303 "pe-7s-rocket",304 "pe-7s-settings",305 "pe-7s-shield",306 "pe-7s-smile",307 "pe-7s-usb",308 "pe-7s-vector",309 "pe-7s-wine",310 "pe-7s-cloud-upload",311 "pe-7s-cash",312 "pe-7s-close",313 "pe-7s-bluetooth",314 "pe-7s-cloud-download",315 "pe-7s-way",316 "pe-7s-close-circle",317 "pe-7s-id",318 "pe-7s-angle-up",319 "pe-7s-wristwatch",320 "pe-7s-angle-up-circle",321 "pe-7s-world",322 "pe-7s-angle-right",323 "pe-7s-volume",324 "pe-7s-angle-right-circle",325 "pe-7s-users",326 "pe-7s-angle-left",327 "pe-7s-user-female",328 "pe-7s-angle-left-circle",329 "pe-7s-up-arrow",330 "pe-7s-angle-down",331 "pe-7s-switch",332 "pe-7s-angle-down-circle",333 "pe-7s-scissors",334 "pe-7s-wallet",335 "pe-7s-safe",336 "pe-7s-volume2",337 "pe-7s-volume1",338 "pe-7s-voicemail",339 "pe-7s-video",340 "pe-7s-user",341 "pe-7s-upload",342 "pe-7s-unlock",343 "pe-7s-umbrella",344 "pe-7s-trash",345 "pe-7s-tools",346 "pe-7s-timer",347 "pe-7s-ticket",348 "pe-7s-target",349 "pe-7s-sun",350 "pe-7s-study",351 "pe-7s-stopwatch",352 "pe-7s-star",353 "pe-7s-speaker",354 "pe-7s-signal",355 "pe-7s-shuffle",356 "pe-7s-shopbag",357 "pe-7s-share",358 "pe-7s-server",359 "pe-7s-search",360 "pe-7s-film",361 "pe-7s-science",362 "pe-7s-disk",363 "pe-7s-ribbon",364 "pe-7s-repeat",365 "pe-7s-refresh",366 "pe-7s-add-user",367 "pe-7s-refresh-cloud",368 "pe-7s-paperclip",369 "pe-7s-radio",370 "pe-7s-note2",371 "pe-7s-print",372 "pe-7s-network",373 "pe-7s-prev",374 "pe-7s-mute",375 "pe-7s-power",376 "pe-7s-medal",377 "pe-7s-portfolio",378 "pe-7s-like2",379 "pe-7s-plus",380 "pe-7s-left-arrow",381 "pe-7s-play",382 "pe-7s-key",383 "pe-7s-plane",384 "pe-7s-joy",385 "pe-7s-photo-gallery",386 "pe-7s-pin",387 "pe-7s-phone",388 "pe-7s-plug",389 "pe-7s-pen",390 "pe-7s-right-arrow",391 "pe-7s-paper-plane",392 "pe-7s-delete-user",393 "pe-7s-paint",394 "pe-7s-bottom-arrow",395 "pe-7s-notebook",396 "pe-7s-note",397 "pe-7s-next",398 "pe-7s-news-paper",399 "pe-7s-musiclist",400 "pe-7s-music",401 "pe-7s-mouse",402 "pe-7s-more",403 "pe-7s-moon",404 "pe-7s-monitor",405 "pe-7s-micro",406 "pe-7s-menu",407 "pe-7s-map",408 "pe-7s-map-marker",409 "pe-7s-mail",410 "pe-7s-mail-open",411 "pe-7s-mail-open-file",412 "pe-7s-magnet",413 "pe-7s-loop",414 "pe-7s-look",415 "pe-7s-lock",416 "pe-7s-lintern",417 "pe-7s-link",418 "pe-7s-like",419 "pe-7s-light",420 "pe-7s-less",421 "pe-7s-keypad",422 "pe-7s-junk",423 "pe-7s-info",424 "pe-7s-home",425 "pe-7s-help2",426 "pe-7s-help1",427 "pe-7s-graph3",428 "pe-7s-graph2",429 "pe-7s-graph1",430 "pe-7s-graph",431 "pe-7s-global",432 "pe-7s-gleam",433 "pe-7s-glasses",434 "pe-7s-gift",435 "pe-7s-folder",436 "pe-7s-flag",437 "pe-7s-filter",438 "pe-7s-file",439 "pe-7s-expand1",440 "pe-7s-exapnd2",441 "pe-7s-edit",442 "pe-7s-drop",443 "pe-7s-drawer",444 "pe-7s-download",445 "pe-7s-display2",446 "pe-7s-display1",447 "pe-7s-diskette",448 "pe-7s-date",449 "pe-7s-cup",450 "pe-7s-culture",451 "pe-7s-crop",452 "pe-7s-credit",453 "pe-7s-copy-file",454 "pe-7s-config",455 "pe-7s-compass",456 "pe-7s-comment",457 "pe-7s-coffee",458 "pe-7s-cloud",459 "pe-7s-clock",460 "pe-7s-check",461 "pe-7s-chat",462 "pe-7s-cart",463 "pe-7s-camera",464 "pe-7s-call",465 "pe-7s-calculator",466 "pe-7s-browser",467 "pe-7s-box2",468 "pe-7s-box1",469 "pe-7s-bookmarks",470 "pe-7s-bicycle",471 "pe-7s-bell",472 "pe-7s-battery",473 "pe-7s-ball",474 "pe-7s-back",475 "pe-7s-attention",476 "pe-7s-anchor",477 "pe-7s-albums",478 "pe-7s-alarm",479 "pe-7s-airplay"480];481var dataPie = {482 labels: ["40%", "20%", "40%"],483 series: [40, 20, 40]484};485var legendPie = {486 names: ["Open", "Bounce", "Unsubscribe"],487 types: ["info", "danger", "warning"]488};489// Data for Line Chart490var dataSales = {491 labels: [492 "9:00AM",493 "12:00AM",494 "3:00PM",495 "6:00PM",496 "9:00PM",497 "12:00PM",498 "3:00AM",499 "6:00AM"500 ],501 series: [502 [287, 385, 490, 492, 554, 586, 698, 695],503 [67, 152, 143, 240, 287, 335, 435, 437],504 [23, 113, 67, 108, 190, 239, 307, 308]505 ]506};507var optionsSales = {508 low: 0,509 high: 800,510 showArea: false,511 height: "245px",512 axisX: {513 showGrid: false514 },515 lineSmooth: true,516 showLine: true,517 showPoint: true,518 fullWidth: true,519 chartPadding: {520 right: 50521 }522};523var responsiveSales = [524 [525 "screen and (max-width: 640px)",526 {527 axisX: {528 labelInterpolationFnc: function(value) {529 return value[0];530 }531 }532 }533 ]534];535var legendSales = {536 names: ["Open", "Click", "Click Second Time"],537 types: ["info", "danger", "warning"]538};539// Data for Bar Chart540var dataBar = {541 labels: [542 "Jan",543 "Feb",544 "Mar",545 "Apr",546 "Mai",547 "Jun",548 "Jul",549 "Aug",550 "Sep",551 "Oct",552 "Nov",553 "Dec"554 ],555 series: [556 [542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895],557 [412, 243, 280, 580, 453, 353, 300, 364, 368, 410, 636, 695]558 ]559};560var optionsBar = {561 seriesBarDistance: 10,562 axisX: {563 showGrid: false564 },565 height: "245px"566};567var responsiveBar = [568 [569 "screen and (max-width: 640px)",570 {571 seriesBarDistance: 5,572 axisX: {573 labelInterpolationFnc: function(value) {574 return value[0];575 }576 }577 }578 ]579];580var legendBar = {581 names: ["Tesla Model S", "BMW 5 Series"],582 types: ["info", "danger"]583};584let chart1_2_options = {585 maintainAspectRatio: false,586 legend: {587 display: false,588 },589 tooltips: {590 backgroundColor: "#f5f5f5",591 titleFontColor: "#333",592 bodyFontColor: "#666",593 bodySpacing: 4,594 xPadding: 12,595 mode: "nearest",596 intersect: 0,597 position: "nearest",598 },599 responsive: true,600 scales: {601 yAxes: [602 {603 barPercentage: 1.6,604 gridLines: {605 drawBorder: false,606 color: "rgba(29,140,248,0.0)",607 zeroLineColor: "transparent",608 },609 ticks: {610 suggestedMin: 60,611 suggestedMax: 125,612 padding: 20,613 fontColor: "#9a9a9a",614 },615 },616 ],617 xAxes: [618 {619 barPercentage: 1.6,620 gridLines: {621 drawBorder: false,622 color: "rgba(29,140,248,0.1)",623 zeroLineColor: "transparent",624 },625 ticks: {626 padding: 20,627 fontColor: "#9a9a9a",628 },629 },630 ],631 },632 };633 634 let chartExample1 = {635 data1: (canvas) => {636 let ctx = canvas.getContext("2d");637 638 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);639 640 gradientStroke.addColorStop(1, "rgba(29,140,248,0.2)");641 gradientStroke.addColorStop(0.4, "rgba(29,140,248,0.0)");642 gradientStroke.addColorStop(0, "rgba(29,140,248,0)"); //blue colors643 644 return {645 labels: [646 "JAN",647 "FEB",648 "MAR",649 "APR",650 "MAY",651 "JUN",652 "JUL",653 "AUG",654 "SEP",655 "OCT",656 "NOV",657 "DEC",658 ],659 datasets: [660 {661 label: "My First dataset",662 fill: true,663 backgroundColor: gradientStroke,664 borderColor: "#1f8ef1",665 borderWidth: 2,666 borderDash: [],667 borderDashOffset: 0.0,668 pointBackgroundColor: "#1f8ef1",669 pointBorderColor: "rgba(255,255,255,0)",670 pointHoverBackgroundColor: "#1f8ef1",671 pointBorderWidth: 20,672 pointHoverRadius: 4,673 pointHoverBorderWidth: 15,674 pointRadius: 4,675 data: [100, 70, 90, 70, 85, 60, 75, 60, 90, 80, 110, 100],676 },677 ],678 };679 },680 data2: (canvas) => {681 let ctx = canvas.getContext("2d");682 683 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);684 685 gradientStroke.addColorStop(1, "rgba(29,140,248,0.2)");686 gradientStroke.addColorStop(0.4, "rgba(29,140,248,0.0)");687 gradientStroke.addColorStop(0, "rgba(29,140,248,0)"); //blue colors688 689 return {690 labels: [691 "JAN",692 "FEB",693 "MAR",694 "APR",695 "MAY",696 "JUN",697 "JUL",698 "AUG",699 "SEP",700 "OCT",701 "NOV",702 "DEC",703 ],704 datasets: [705 {706 label: "My First dataset",707 fill: true,708 backgroundColor: gradientStroke,709 borderColor: "#1f8ef1",710 borderWidth: 2,711 borderDash: [],712 borderDashOffset: 0.0,713 pointBackgroundColor: "#1f8ef1",714 pointBorderColor: "rgba(255,255,255,0)",715 pointHoverBackgroundColor: "#1f8ef1",716 pointBorderWidth: 20,717 pointHoverRadius: 4,718 pointHoverBorderWidth: 15,719 pointRadius: 4,720 data: [80, 120, 105, 110, 95, 105, 90, 100, 80, 95, 70, 120],721 },722 ],723 };724 },725 data3: (canvas) => {726 let ctx = canvas.getContext("2d");727 728 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);729 730 gradientStroke.addColorStop(1, "rgba(29,140,248,0.2)");731 gradientStroke.addColorStop(0.4, "rgba(29,140,248,0.0)");732 gradientStroke.addColorStop(0, "rgba(29,140,248,0)");733 734 return {735 labels: [736 "JAN",737 "FEB",738 "MAR",739 "APR",740 "MAY",741 "JUN",742 "JUL",743 "AUG",744 "SEP",745 "OCT",746 "NOV",747 "DEC",748 ],749 datasets: [750 {751 label: "My First dataset",752 fill: true,753 backgroundColor: gradientStroke,754 borderColor: "#1f8ef1",755 borderWidth: 2,756 borderDash: [],757 borderDashOffset: 0.0,758 pointBackgroundColor: "#1f8ef1",759 pointBorderColor: "rgba(255,255,255,0)",760 pointHoverBackgroundColor: "#1f8ef1",761 pointBorderWidth: 20,762 pointHoverRadius: 4,763 pointHoverBorderWidth: 15,764 pointRadius: 4,765 data: [60, 80, 65, 130, 80, 105, 90, 130, 70, 115, 60, 130],766 },767 ],768 };769 },770 options: chart1_2_options,771 };772 773 let chartExample2 = {774 data: (canvas) => {775 let ctx = canvas.getContext("2d");776 777 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);778 779 gradientStroke.addColorStop(1, "rgba(29,140,248,0.2)");780 gradientStroke.addColorStop(0.4, "rgba(29,140,248,0.0)");781 gradientStroke.addColorStop(0, "rgba(29,140,248,0)"); //blue colors782 783 return {784 labels: ["JUL", "AUG", "SEP", "OCT", "NOV", "DEC"],785 datasets: [786 {787 label: "Data",788 fill: true,789 backgroundColor: gradientStroke,790 borderColor: "#1f8ef1",791 borderWidth: 2,792 borderDash: [],793 borderDashOffset: 0.0,794 pointBackgroundColor: "#1f8ef1",795 pointBorderColor: "rgba(255,255,255,0)",796 pointHoverBackgroundColor: "#1f8ef1",797 pointBorderWidth: 20,798 pointHoverRadius: 4,799 pointHoverBorderWidth: 15,800 pointRadius: 4,801 data: [80, 100, 70, 80, 120, 80],802 },803 ],804 };805 },806 options: chart1_2_options,807 };808 let chartExample3 = {809 data: (canvas) => {810 let ctx = canvas.getContext("2d");811 812 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);813 814 gradientStroke.addColorStop(1, "rgba(72,72,176,0.1)");815 gradientStroke.addColorStop(0.4, "rgba(72,72,176,0.0)");816 gradientStroke.addColorStop(0, "rgba(119,52,169,0)"); //purple colors817 818 return {819 labels: ["USA", "GER", "AUS", "UK", "RO", "BR"],820 datasets: [821 {822 label: "Countries",823 fill: true,824 backgroundColor: gradientStroke,825 hoverBackgroundColor: gradientStroke,826 borderColor: "#d048b6",827 borderWidth: 2,828 borderDash: [],829 borderDashOffset: 0.0,830 data: [53, 20, 10, 80, 100, 45],831 },832 ],833 };834 },835 options: {836 maintainAspectRatio: false,837 legend: {838 display: false,839 },840 tooltips: {841 backgroundColor: "#f5f5f5",842 titleFontColor: "#333",843 bodyFontColor: "#666",844 bodySpacing: 4,845 xPadding: 12,846 mode: "nearest",847 intersect: 0,848 position: "nearest",849 },850 responsive: true,851 scales: {852 yAxes: [853 {854 gridLines: {855 drawBorder: false,856 color: "rgba(225,78,202,0.1)",857 zeroLineColor: "transparent",858 },859 ticks: {860 suggestedMin: 60,861 suggestedMax: 120,862 padding: 20,863 fontColor: "#9e9e9e",864 },865 },866 ],867 xAxes: [868 {869 gridLines: {870 drawBorder: false,871 color: "rgba(225,78,202,0.1)",872 zeroLineColor: "transparent",873 },874 ticks: {875 padding: 20,876 fontColor: "#9e9e9e",877 },878 },879 ],880 },881 },882 };883 884 885 const chartExample4 = {886 data: (canvas) => {887 let ctx = canvas.getContext("2d");888 889 let gradientStroke = ctx.createLinearGradient(0, 230, 0, 50);890 891 gradientStroke.addColorStop(1, "rgba(66,134,121,0.15)");892 gradientStroke.addColorStop(0.4, "rgba(66,134,121,0.0)");893 gradientStroke.addColorStop(0, "rgba(66,134,121,0)");894 895 return {896 labels: ["JUL", "AUG", "SEP", "OCT", "NOV"],897 datasets: [898 {899 label: "My First dataset",900 fill: true,901 backgroundColor: gradientStroke,902 borderColor: "#00d6b4",903 borderWidth: 2,904 borderDash: [],905 borderDashOffset: 0.0,906 pointBackgroundColor: "#00d6b4",907 pointBorderColor: "rgba(255,255,255,0)",908 pointHoverBackgroundColor: "#00d6b4",909 pointBorderWidth: 20,910 pointHoverRadius: 4,911 pointHoverBorderWidth: 15,912 pointRadius: 4,913 data: [90, 27, 60, 12, 80],914 },915 ],916 };917 },918 options: {919 maintainAspectRatio: false,920 legend: {921 display: false,922 },923 924 tooltips: {925 backgroundColor: "#f5f5f5",926 titleFontColor: "#333",927 bodyFontColor: "#666",928 bodySpacing: 4,929 xPadding: 12,930 mode: "nearest",931 intersect: 0,932 position: "nearest",933 },934 responsive: true,935 scales: {936 yAxes: [937 {938 barPercentage: 1.6,939 gridLines: {940 drawBorder: false,941 color: "rgba(29,140,248,0.0)",942 zeroLineColor: "transparent",943 },944 ticks: {945 suggestedMin: 50,946 suggestedMax: 125,947 padding: 20,948 fontColor: "#9e9e9e",949 },950 },951 ],952 953 xAxes: [954 {955 barPercentage: 1.6,956 gridLines: {957 drawBorder: false,958 color: "rgba(0,242,195,0.1)",959 zeroLineColor: "transparent",960 },961 ticks: {962 padding: 20,963 fontColor: "#9e9e9e",964 },965 },966 ],967 },968 },969 };970 971module.exports = {972 style,973 thArray,974 tdArray,975 iconsArray,976 dataPie,977 legendPie,978 dataSales,979 optionsSales,980 responsiveSales,981 legendSales,982 dataBar,983 optionsBar,984 responsiveBar,985 legendBar,986 chartExample1, 987 chartExample2, 988 chartExample3, 989 chartExample4, 990 columns,991 data1,992 data2...

Full Screen

Full Screen

Variables.jsx

Source:Variables.jsx Github

copy

Full Screen

1/*!2=========================================================3* Light Bootstrap Dashboard React - v1.3.04=========================================================5* Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard-react6* Copyright 2019 Creative Tim (https://www.creative-tim.com)7* Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard-react/blob/master/LICENSE.md)8* Coded by Creative Tim9=========================================================10* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.11*/12//13// //14// // // For notifications15// //16//17var defaultWidth =18 window.screen.width > 76819 ? (window.screen.width * 1) / 320 : window.screen.width;21var style = {22 Wrapper: {},23 Containers: {24 DefaultStyle: {25 position: "fixed",26 width: defaultWidth,27 padding: "10px 10px 10px 20px",28 zIndex: 9998,29 WebkitBoxSizing: "",30 MozBoxSizing: "",31 boxSizing: "",32 height: "auto",33 display: "inline-block",34 border: "0",35 fontSize: "14px",36 WebkitFontSmoothing: "antialiased",37 fontFamily: '"Roboto","Helvetica Neue",Arial,sans-serif',38 fontWeight: "400",39 color: "#FFFFFF"40 },41 tl: {42 top: "0px",43 bottom: "auto",44 left: "0px",45 right: "auto"46 },47 tr: {48 top: "0px",49 bottom: "auto",50 left: "auto",51 right: "0px"52 },53 tc: {54 top: "0px",55 bottom: "auto",56 margin: "0 auto",57 left: "50%",58 marginLeft: -(defaultWidth / 2)59 },60 bl: {61 top: "auto",62 bottom: "0px",63 left: "0px",64 right: "auto"65 },66 br: {67 top: "auto",68 bottom: "0px",69 left: "auto",70 right: "0px"71 },72 bc: {73 top: "auto",74 bottom: "0px",75 margin: "0 auto",76 left: "50%",77 marginLeft: -(defaultWidth / 2)78 }79 },80 NotificationItem: {81 DefaultStyle: {82 position: "relative",83 width: "100%",84 cursor: "pointer",85 borderRadius: "4px",86 fontSize: "14px",87 margin: "10px 0 0",88 padding: "10px",89 display: "block",90 WebkitBoxSizing: "border-box",91 MozBoxSizing: "border-box",92 boxSizing: "border-box",93 opacity: 0,94 transition: "all 0.5s ease-in-out",95 WebkitTransform: "translate3d(0, 0, 0)",96 transform: "translate3d(0, 0, 0)",97 willChange: "transform, opacity",98 isHidden: {99 opacity: 0100 },101 isVisible: {102 opacity: 1103 }104 },105 success: {106 borderTop: 0,107 backgroundColor: "#a1e82c",108 WebkitBoxShadow: 0,109 MozBoxShadow: 0,110 boxShadow: 0111 },112 error: {113 borderTop: 0,114 backgroundColor: "#fc727a",115 WebkitBoxShadow: 0,116 MozBoxShadow: 0,117 boxShadow: 0118 },119 warning: {120 borderTop: 0,121 backgroundColor: "#ffbc67",122 WebkitBoxShadow: 0,123 MozBoxShadow: 0,124 boxShadow: 0125 },126 info: {127 borderTop: 0,128 backgroundColor: "#63d8f1",129 WebkitBoxShadow: 0,130 MozBoxShadow: 0,131 boxShadow: 0132 }133 },134 Title: {135 DefaultStyle: {136 fontSize: "30px",137 margin: "0",138 padding: 0,139 fontWeight: "bold",140 color: "#FFFFFF",141 display: "block",142 left: "15px",143 position: "absolute",144 top: "50%",145 marginTop: "-15px"146 }147 },148 MessageWrapper: {149 DefaultStyle: {150 marginLeft: "55px",151 marginRight: "30px",152 padding: "0 12px 0 0",153 color: "#FFFFFF",154 maxWidthwidth: "89%"155 }156 },157 Dismiss: {158 DefaultStyle: {159 fontFamily: "inherit",160 fontSize: "21px",161 color: "#000",162 float: "right",163 position: "absolute",164 right: "10px",165 top: "50%",166 marginTop: "-13px",167 backgroundColor: "#FFFFFF",168 display: "block",169 borderRadius: "50%",170 opacity: ".4",171 lineHeight: "11px",172 width: "25px",173 height: "25px",174 outline: "0 !important",175 textAlign: "center",176 padding: "6px 3px 3px 3px",177 fontWeight: "300",178 marginLeft: "65px"179 },180 success: {181 // color: '#f0f5ea',182 // backgroundColor: '#a1e82c'183 },184 error: {185 // color: '#f4e9e9',186 // backgroundColor: '#fc727a'187 },188 warning: {189 // color: '#f9f6f0',190 // backgroundColor: '#ffbc67'191 },192 info: {193 // color: '#e8f0f4',194 // backgroundColor: '#63d8f1'195 }196 },197 Action: {198 DefaultStyle: {199 background: "#ffffff",200 borderRadius: "2px",201 padding: "6px 20px",202 fontWeight: "bold",203 margin: "10px 0 0 0",204 border: 0205 },206 success: {207 backgroundColor: "#a1e82c",208 color: "#ffffff"209 },210 error: {211 backgroundColor: "#fc727a",212 color: "#ffffff"213 },214 warning: {215 backgroundColor: "#ffbc67",216 color: "#ffffff"217 },218 info: {219 backgroundColor: "#63d8f1",220 color: "#ffffff"221 }222 },223 ActionWrapper: {224 DefaultStyle: {225 margin: 0,226 padding: 0227 }228 }229};230//231// //232// // // For tables233// //234//235const thArray = ["ID", "Name", "Salary", "Country", "City"];236const tdArray = [237 ["1", "Dakota Rice", "$36,738", "Niger", "Oud-Turnhout"],238 ["2", "Minerva Hooper", "$23,789", "Curaçao", "Sinaai-Waas"],239 ["3", "Sage Rodriguez", "$56,142", "Netherlands", "Baileux"],240 ["4", "Philip Chaney", "$38,735", "Korea, South", "Overland Park"],241 ["5", "Doris Greene", "$63,542", "Malawi", "Feldkirchen in Kärnten"],242 ["6", "Mason Porter", "$78,615", "Chile", "Gloucester"]243];244//245// //246// // // For icons247// //248//249const iconsArray = [250 "pe-7s-album",251 "pe-7s-arc",252 "pe-7s-back-2",253 "pe-7s-bandaid",254 "pe-7s-car",255 "pe-7s-diamond",256 "pe-7s-door-lock",257 "pe-7s-eyedropper",258 "pe-7s-female",259 "pe-7s-gym",260 "pe-7s-hammer",261 "pe-7s-headphones",262 "pe-7s-helm",263 "pe-7s-hourglass",264 "pe-7s-leaf",265 "pe-7s-magic-wand",266 "pe-7s-male",267 "pe-7s-map-2",268 "pe-7s-next-2",269 "pe-7s-paint-bucket",270 "pe-7s-pendrive",271 "pe-7s-photo",272 "pe-7s-piggy",273 "pe-7s-plugin",274 "pe-7s-refresh-2",275 "pe-7s-rocket",276 "pe-7s-settings",277 "pe-7s-shield",278 "pe-7s-smile",279 "pe-7s-usb",280 "pe-7s-vector",281 "pe-7s-wine",282 "pe-7s-cloud-upload",283 "pe-7s-cash",284 "pe-7s-close",285 "pe-7s-bluetooth",286 "pe-7s-cloud-download",287 "pe-7s-way",288 "pe-7s-close-circle",289 "pe-7s-id",290 "pe-7s-angle-up",291 "pe-7s-wristwatch",292 "pe-7s-angle-up-circle",293 "pe-7s-world",294 "pe-7s-angle-right",295 "pe-7s-volume",296 "pe-7s-angle-right-circle",297 "pe-7s-users",298 "pe-7s-angle-left",299 "pe-7s-user-female",300 "pe-7s-angle-left-circle",301 "pe-7s-up-arrow",302 "pe-7s-angle-down",303 "pe-7s-switch",304 "pe-7s-angle-down-circle",305 "pe-7s-scissors",306 "pe-7s-wallet",307 "pe-7s-safe",308 "pe-7s-volume2",309 "pe-7s-volume1",310 "pe-7s-voicemail",311 "pe-7s-video",312 "pe-7s-user",313 "pe-7s-upload",314 "pe-7s-unlock",315 "pe-7s-umbrella",316 "pe-7s-trash",317 "pe-7s-tools",318 "pe-7s-timer",319 "pe-7s-ticket",320 "pe-7s-target",321 "pe-7s-sun",322 "pe-7s-study",323 "pe-7s-stopwatch",324 "pe-7s-star",325 "pe-7s-speaker",326 "pe-7s-signal",327 "pe-7s-shuffle",328 "pe-7s-shopbag",329 "pe-7s-share",330 "pe-7s-server",331 "pe-7s-search",332 "pe-7s-film",333 "pe-7s-science",334 "pe-7s-disk",335 "pe-7s-ribbon",336 "pe-7s-repeat",337 "pe-7s-refresh",338 "pe-7s-add-user",339 "pe-7s-refresh-cloud",340 "pe-7s-paperclip",341 "pe-7s-radio",342 "pe-7s-note2",343 "pe-7s-print",344 "pe-7s-network",345 "pe-7s-prev",346 "pe-7s-mute",347 "pe-7s-power",348 "pe-7s-medal",349 "pe-7s-portfolio",350 "pe-7s-like2",351 "pe-7s-plus",352 "pe-7s-left-arrow",353 "pe-7s-play",354 "pe-7s-key",355 "pe-7s-plane",356 "pe-7s-joy",357 "pe-7s-photo-gallery",358 "pe-7s-pin",359 "pe-7s-phone",360 "pe-7s-plug",361 "pe-7s-pen",362 "pe-7s-right-arrow",363 "pe-7s-paper-plane",364 "pe-7s-delete-user",365 "pe-7s-paint",366 "pe-7s-bottom-arrow",367 "pe-7s-notebook",368 "pe-7s-note",369 "pe-7s-next",370 "pe-7s-news-paper",371 "pe-7s-musiclist",372 "pe-7s-music",373 "pe-7s-mouse",374 "pe-7s-more",375 "pe-7s-moon",376 "pe-7s-monitor",377 "pe-7s-micro",378 "pe-7s-menu",379 "pe-7s-map",380 "pe-7s-map-marker",381 "pe-7s-mail",382 "pe-7s-mail-open",383 "pe-7s-mail-open-file",384 "pe-7s-magnet",385 "pe-7s-loop",386 "pe-7s-look",387 "pe-7s-lock",388 "pe-7s-lintern",389 "pe-7s-link",390 "pe-7s-like",391 "pe-7s-light",392 "pe-7s-less",393 "pe-7s-keypad",394 "pe-7s-junk",395 "pe-7s-info",396 "pe-7s-home",397 "pe-7s-help2",398 "pe-7s-help1",399 "pe-7s-graph3",400 "pe-7s-graph2",401 "pe-7s-graph1",402 "pe-7s-graph",403 "pe-7s-global",404 "pe-7s-gleam",405 "pe-7s-glasses",406 "pe-7s-gift",407 "pe-7s-folder",408 "pe-7s-flag",409 "pe-7s-filter",410 "pe-7s-file",411 "pe-7s-expand1",412 "pe-7s-exapnd2",413 "pe-7s-edit",414 "pe-7s-drop",415 "pe-7s-drawer",416 "pe-7s-download",417 "pe-7s-display2",418 "pe-7s-display1",419 "pe-7s-diskette",420 "pe-7s-date",421 "pe-7s-cup",422 "pe-7s-culture",423 "pe-7s-crop",424 "pe-7s-credit",425 "pe-7s-copy-file",426 "pe-7s-config",427 "pe-7s-compass",428 "pe-7s-comment",429 "pe-7s-coffee",430 "pe-7s-cloud",431 "pe-7s-clock",432 "pe-7s-check",433 "pe-7s-chat",434 "pe-7s-cart",435 "pe-7s-camera",436 "pe-7s-call",437 "pe-7s-calculator",438 "pe-7s-browser",439 "pe-7s-box2",440 "pe-7s-box1",441 "pe-7s-bookmarks",442 "pe-7s-bicycle",443 "pe-7s-bell",444 "pe-7s-battery",445 "pe-7s-ball",446 "pe-7s-back",447 "pe-7s-attention",448 "pe-7s-anchor",449 "pe-7s-albums",450 "pe-7s-alarm",451 "pe-7s-airplay"452];453//454// //455// // // // For dashboard's charts456// //457//458// Data for Pie Chart459var dataPie = {460 labels: ["40%", "20%", "40%"],461 series: [40, 20, 40]462};463var legendPie = {464 names: ["Open", "Bounce", "Unsubscribe"],465 types: ["info", "danger", "warning"]466};467// Data for Line Chart468var dataSales = {469 labels: [470 "9:00AM",471 "12:00AM",472 "3:00PM",473 "6:00PM",474 "9:00PM",475 "12:00PM",476 "3:00AM",477 "6:00AM"478 ],479 series: [480 [287, 385, 490, 492, 554, 586, 698, 695],481 [67, 152, 143, 240, 287, 335, 435, 437],482 [23, 113, 67, 108, 190, 239, 307, 308]483 ]484};485var optionsSales = {486 low: 0,487 high: 800,488 showArea: false,489 height: "245px",490 axisX: {491 showGrid: false492 },493 lineSmooth: true,494 showLine: true,495 showPoint: true,496 fullWidth: true,497 chartPadding: {498 right: 50499 }500};501var responsiveSales = [502 [503 "screen and (max-width: 640px)",504 {505 axisX: {506 labelInterpolationFnc: function(value) {507 return value[0];508 }509 }510 }511 ]512];513var legendSales = {514 names: ["Open", "Click", "Click Second Time"],515 types: ["info", "danger", "warning"]516};517// Data for Bar Chart518var dataBar = {519 labels: [520 "Jan",521 "Feb",522 "Mar",523 "Apr",524 "Mai",525 "Jun",526 "Jul",527 "Aug",528 "Sep",529 "Oct",530 "Nov",531 "Dec"532 ],533 series: [534 [542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895],535 [412, 243, 280, 580, 453, 353, 300, 364, 368, 410, 636, 695]536 ]537};538var optionsBar = {539 seriesBarDistance: 10,540 axisX: {541 showGrid: false542 },543 height: "245px"544};545var responsiveBar = [546 [547 "screen and (max-width: 640px)",548 {549 seriesBarDistance: 5,550 axisX: {551 labelInterpolationFnc: function(value) {552 return value[0];553 }554 }555 }556 ]557];558var legendBar = {559 names: ["Tesla Model S", "BMW 5 Series"],560 types: ["info", "danger"]561};562module.exports = {563 style, // For notifications (App container and Notifications view)564 thArray,565 tdArray, // For tables (TableList view)566 iconsArray, // For icons (Icons view)567 dataPie,568 legendPie,569 dataSales,570 optionsSales,571 responsiveSales,572 legendSales,573 dataBar,574 optionsBar,575 responsiveBar,576 legendBar // For charts (Dashboard view)...

Full Screen

Full Screen

cidades_PE.js

Source:cidades_PE.js Github

copy

Full Screen

1exports.seed = function(knex) {2 return knex("cities").insert([3{ name: 'Calçado', name_order: 'Calcado', uf: 'PE' },4 { name: 'Calumbi', name_order: 'Calumbi', uf: 'PE' },5 { name: 'Camaragibe', name_order: 'Camaragibe', uf: 'PE' },6 { name: 'Camocim de São Félix', name_order: 'Camocim de Sao Felix', uf: 'PE' },7 { name: 'Camutanga', name_order: 'Camutanga', uf: 'PE' },8 { name: 'Canhotinho', name_order: 'Canhotinho', uf: 'PE' },9 { name: 'Capoeiras', name_order: 'Capoeiras', uf: 'PE' },10 { name: 'Carnaíba', name_order: 'Carnaiba', uf: 'PE' },11 { name: 'Carnaubeira da Penha', name_order: 'Carnaubeira da Penha', uf: 'PE' },12 { name: 'Carpina', name_order: 'Carpina', uf: 'PE' },13 { name: 'Caruaru', name_order: 'Caruaru', uf: 'PE' },14 { name: 'Casinhas', name_order: 'Casinhas', uf: 'PE' },15 { name: 'Catende', name_order: 'Catende', uf: 'PE' },16 { name: 'Cedro', name_order: 'Cedro', uf: 'PE' },17 { name: 'Chã de Alegria', name_order: 'Cha de Alegria', uf: 'PE' },18 { name: 'Chã Grande', name_order: 'Cha Grande', uf: 'PE' },19 { name: 'Condado', name_order: 'Condado', uf: 'PE' },20 { name: 'Correntes', name_order: 'Correntes', uf: 'PE' },21 { name: 'Cortês', name_order: 'Cortes', uf: 'PE' },22 { name: 'Cumaru', name_order: 'Cumaru', uf: 'PE' },23 { name: 'Cupira', name_order: 'Cupira', uf: 'PE' },24 { name: 'Custódia', name_order: 'Custodia', uf: 'PE' },25 { name: 'Dormentes', name_order: 'Dormentes', uf: 'PE' },26 { name: 'Escada', name_order: 'Escada', uf: 'PE' },27 { name: 'Exu', name_order: 'Exu', uf: 'PE' },28 { name: 'Feira Nova', name_order: 'Feira Nova', uf: 'PE' },29 { name: 'Fernando de Noronha', name_order: 'Fernando de Noronha', uf: 'PE' },30 { name: 'Ferreiros', name_order: 'Ferreiros', uf: 'PE' },31 { name: 'Flores', name_order: 'Flores', uf: 'PE' },32 { name: 'Floresta', name_order: 'Floresta', uf: 'PE' },33 { name: 'Frei Miguelinho', name_order: 'Frei Miguelinho', uf: 'PE' },34 { name: 'Gameleira', name_order: 'Gameleira', uf: 'PE' },35 { name: 'Garanhuns', name_order: 'Garanhuns', uf: 'PE' },36 { name: 'Glória do Goitá', name_order: 'Gloria do Goita', uf: 'PE' },37 { name: 'Goiana', name_order: 'Goiana', uf: 'PE' },38 { name: 'Granito', name_order: 'Granito', uf: 'PE' },39 { name: 'Gravatá', name_order: 'Gravata', uf: 'PE' },40 { name: 'Iati', name_order: 'Iati', uf: 'PE' },41 { name: 'Ibimirim', name_order: 'Ibimirim', uf: 'PE' },42 { name: 'Ibirajuba', name_order: 'Ibirajuba', uf: 'PE' },43 { name: 'Igarassu', name_order: 'Igarassu', uf: 'PE' },44 { name: 'Iguaraci', name_order: 'Iguaraci', uf: 'PE' },45 { name: 'Inajá', name_order: 'Inaja', uf: 'PE' },46 { name: 'Ingazeira', name_order: 'Ingazeira', uf: 'PE' },47 { name: 'Ipojuca', name_order: 'Ipojuca', uf: 'PE' },48 { name: 'Ipubi', name_order: 'Ipubi', uf: 'PE' },49 { name: 'Itacuruba', name_order: 'Itacuruba', uf: 'PE' },50 { name: 'Itaíba', name_order: 'Itaiba', uf: 'PE' },51 { name: 'Ilha de Itamaracá', name_order: 'Ilha de Itamaraca', uf: 'PE' },52 { name: 'Itambé', name_order: 'Itambe', uf: 'PE' },53 { name: 'Itapetim', name_order: 'Itapetim', uf: 'PE' },54 { name: 'Itapissuma', name_order: 'Itapissuma', uf: 'PE' },55 { name: 'Itaquitinga', name_order: 'Itaquitinga', uf: 'PE' },56 { name: 'Jaboatão Dos Guararapes', name_order: 'Jaboatao Dos Guararapes', uf: 'PE' },57 { name: 'Jaqueira', name_order: 'Jaqueira', uf: 'PE' },58 { name: 'Jataúba', name_order: 'Jatauba', uf: 'PE' },59 { name: 'Jatobá', name_order: 'Jatoba', uf: 'PE' },60 { name: 'João Alfredo', name_order: 'Joao Alfredo', uf: 'PE' },61 { name: 'Joaquim Nabuco', name_order: 'Joaquim Nabuco', uf: 'PE' },62 { name: 'Jucati', name_order: 'Jucati', uf: 'PE' },63 { name: 'Jupi', name_order: 'Jupi', uf: 'PE' },64 { name: 'Jurema', name_order: 'Jurema', uf: 'PE' },65 { name: 'Lagoa do Carro', name_order: 'Lagoa do Carro', uf: 'PE' },66 { name: 'Lagoa do Itaenga', name_order: 'Lagoa do Itaenga', uf: 'PE' },67 { name: 'Lagoa do Ouro', name_order: 'Lagoa do Ouro', uf: 'PE' },68 { name: 'Lagoa Dos Gatos', name_order: 'Lagoa Dos Gatos', uf: 'PE' },69 { name: 'Lagoa Grande', name_order: 'Lagoa Grande', uf: 'PE' },70 { name: 'Lajedo', name_order: 'Lajedo', uf: 'PE' },71 { name: 'Limoeiro', name_order: 'Limoeiro', uf: 'PE' },72 { name: 'Macaparana', name_order: 'Macaparana', uf: 'PE' },73 { name: 'Machados', name_order: 'Machados', uf: 'PE' },74 { name: 'Manari', name_order: 'Manari', uf: 'PE' },75 { name: 'Maraial', name_order: 'Maraial', uf: 'PE' },76 { name: 'Mirandiba', name_order: 'Mirandiba', uf: 'PE' },77 { name: 'Moreno', name_order: 'Moreno', uf: 'PE' },78 { name: 'Nazaré da Mata', name_order: 'Nazare da Mata', uf: 'PE' },79 { name: 'Olinda', name_order: 'Olinda', uf: 'PE' },80 { name: 'Orobó', name_order: 'Orobo', uf: 'PE' },81 { name: 'Orocó', name_order: 'Oroco', uf: 'PE' },82 { name: 'Ouricuri', name_order: 'Ouricuri', uf: 'PE' },83 { name: 'Palmares', name_order: 'Palmares', uf: 'PE' },84 { name: 'Palmeirina', name_order: 'Palmeirina', uf: 'PE' },85 { name: 'Panelas', name_order: 'Panelas', uf: 'PE' },86 { name: 'Paranatama', name_order: 'Paranatama', uf: 'PE' },87 { name: 'Parnamirim', name_order: 'Parnamirim', uf: 'PE' },88 { name: 'Passira', name_order: 'Passira', uf: 'PE' },89 { name: 'Paudalho', name_order: 'Paudalho', uf: 'PE' },90 { name: 'Paulista', name_order: 'Paulista', uf: 'PE' },91 { name: 'Pedra', name_order: 'Pedra', uf: 'PE' },92 { name: 'Pesqueira', name_order: 'Pesqueira', uf: 'PE' },93 { name: 'Petrolândia', name_order: 'Petrolandia', uf: 'PE' },94 { name: 'Petrolina', name_order: 'Petrolina', uf: 'PE' },95 { name: 'Poção', name_order: 'Pocao', uf: 'PE' },96 { name: 'Pombos', name_order: 'Pombos', uf: 'PE' },97 { name: 'Primavera', name_order: 'Primavera', uf: 'PE' },98 { name: 'Quipapá', name_order: 'Quipapa', uf: 'PE' },99 { name: 'Quixaba', name_order: 'Quixaba', uf: 'PE' },100 { name: 'Recife', name_order: 'Recife', uf: 'PE' },101 { name: 'Riacho Das Almas', name_order: 'Riacho Das Almas', uf: 'PE' },102 { name: 'Ribeirão', name_order: 'Ribeirao', uf: 'PE' },103 { name: 'Rio Formoso', name_order: 'Rio Formoso', uf: 'PE' },104 { name: 'Sairé', name_order: 'Saire', uf: 'PE' },105 { name: 'Salgadinho', name_order: 'Salgadinho', uf: 'PE' },106 { name: 'Salgueiro', name_order: 'Salgueiro', uf: 'PE' },107 { name: 'Saloá', name_order: 'Saloa', uf: 'PE' },108 { name: 'Sanharó', name_order: 'Sanharo', uf: 'PE' },109 { name: 'Santa Cruz', name_order: 'Santa Cruz', uf: 'PE' },110 { name: 'Santa Cruz da Baixa Verde', name_order: 'Santa Cruz da Baixa Verde', uf: 'PE' },111 { name: 'Santa Cruz do Capibaribe', name_order: 'Santa Cruz do Capibaribe', uf: 'PE' },112 { name: 'Santa Filomena', name_order: 'Santa Filomena', uf: 'PE' },113 { name: 'Santa Maria da Boa Vista', name_order: 'Santa Maria da Boa Vista', uf: 'PE' },114 { name: 'Santa Maria do Cambucá', name_order: 'Santa Maria do Cambuca', uf: 'PE' },115 { name: 'Santa Terezinha', name_order: 'Santa Terezinha', uf: 'PE' },116 { name: 'São Benedito do Sul', name_order: 'Sao Benedito do Sul', uf: 'PE' },117 { name: 'São Bento do Una', name_order: 'Sao Bento do Una', uf: 'PE' },118 { name: 'São Caitano', name_order: 'Sao Caitano', uf: 'PE' },119 { name: 'São João', name_order: 'Sao Joao', uf: 'PE' },120 { name: 'São Joaquim do Monte', name_order: 'Sao Joaquim do Monte', uf: 'PE' },121 { name: 'São José da Coroa Grande', name_order: 'Sao Jose da Coroa Grande', uf: 'PE' },122 { name: 'São José do Belmonte', name_order: 'Sao Jose do Belmonte', uf: 'PE' },123 { name: 'São José do Egito', name_order: 'Sao Jose do Egito', uf: 'PE' },124 { name: 'São Lourenço da Mata', name_order: 'Sao Lourenco da Mata', uf: 'PE' },125 { name: 'São Vicente Ferrer', name_order: 'Sao Vicente Ferrer', uf: 'PE' },126 { name: 'Serra Talhada', name_order: 'Serra Talhada', uf: 'PE' },127 { name: 'Serrita', name_order: 'Serrita', uf: 'PE' },128 { name: 'Sertânia', name_order: 'Sertania', uf: 'PE' },129 { name: 'Sirinhaém', name_order: 'Sirinhaem', uf: 'PE' },130 { name: 'Moreilândia', name_order: 'Moreilandia', uf: 'PE' },131 { name: 'Solidão', name_order: 'Solidao', uf: 'PE' },132 { name: 'Surubim', name_order: 'Surubim', uf: 'PE' },133 { name: 'Tabira', name_order: 'Tabira', uf: 'PE' },134 { name: 'Tacaimbó', name_order: 'Tacaimbo', uf: 'PE' },135 { name: 'Tacaratu', name_order: 'Tacaratu', uf: 'PE' },136 { name: 'Tamandaré', name_order: 'Tamandare', uf: 'PE' },137 { name: 'Taquaritinga do Norte', name_order: 'Taquaritinga do Norte', uf: 'PE' },138 { name: 'Terezinha', name_order: 'Terezinha', uf: 'PE' },139 { name: 'Terra Nova', name_order: 'Terra Nova', uf: 'PE' },140 { name: 'Timbaúba', name_order: 'Timbauba', uf: 'PE' },141 { name: 'Toritama', name_order: 'Toritama', uf: 'PE' },142 { name: 'Tracunhaém', name_order: 'Tracunhaem', uf: 'PE' },143 { name: 'Trindade', name_order: 'Trindade', uf: 'PE' },144 { name: 'Triunfo', name_order: 'Triunfo', uf: 'PE' },145 { name: 'Tupanatinga', name_order: 'Tupanatinga', uf: 'PE' },146 { name: 'Tuparetama', name_order: 'Tuparetama', uf: 'PE' },147 { name: 'Venturosa', name_order: 'Venturosa', uf: 'PE' },148 { name: 'Verdejante', name_order: 'Verdejante', uf: 'PE' },149 { name: 'Vertente do Lério', name_order: 'Vertente do Lerio', uf: 'PE' },150 { name: 'Vertentes', name_order: 'Vertentes', uf: 'PE' },151 { name: 'Vicência', name_order: 'Vicencia', uf: 'PE' },152 { name: 'Vitória de Santo Antão', name_order: 'Vitoria de Santo Antao', uf: 'PE' },153 { name: 'Xexéu', name_order: 'Xexeu', uf: 'PE' },154 ]);...

Full Screen

Full Screen

Pe7Icons.js

Source:Pe7Icons.js Github

copy

Full Screen

1import React, { Fragment } from "react";2import CSSTransitionGroup from "react-transition-group/CSSTransitionGroup";3import { Row, Col, Card, CardBody, CardTitle, Container } from "reactstrap";4const iconData = [5 "pe-7s-album",6 "pe-7s-arc",7 "pe-7s-back-2",8 "pe-7s-bandaid",9 "pe-7s-car",10 "pe-7s-diamond",11 "pe-7s-door-lock",12 "pe-7s-eyedropper",13 "pe-7s-female",14 "pe-7s-gym",15 "pe-7s-hammer",16 "pe-7s-headphones",17 "pe-7s-helm",18 "pe-7s-hourglass",19 "pe-7s-leaf",20 "pe-7s-magic-wand",21 "pe-7s-male",22 "pe-7s-map-2",23 "pe-7s-next-2",24 "pe-7s-paint-bucket",25 "pe-7s-pendrive",26 "pe-7s-photo",27 "pe-7s-piggy",28 "pe-7s-plugin",29 "pe-7s-refresh-2",30 "pe-7s-rocket",31 "pe-7s-settings",32 "pe-7s-shield",33 "pe-7s-smile",34 "pe-7s-usb",35 "pe-7s-vector",36 "pe-7s-wine",37 "pe-7s-cloud-upload",38 "pe-7s-cash",39 "pe-7s-close",40 "pe-7s-bluetooth",41 "pe-7s-cloud-download",42 "pe-7s-way",43 "pe-7s-close-circle",44 "pe-7s-id",45 "pe-7s-angle-up",46 "pe-7s-wristwatch",47 "pe-7s-angle-up-circle",48 "pe-7s-world",49 "pe-7s-angle-right",50 "pe-7s-volume",51 "pe-7s-angle-right-circle",52 "pe-7s-users",53 "pe-7s-angle-left",54 "pe-7s-user-female",55 "pe-7s-angle-left-circle",56 "pe-7s-up-arrow",57 "pe-7s-angle-down",58 "pe-7s-switch",59 "pe-7s-angle-down-circle",60 "pe-7s-scissors",61 "pe-7s-wallet",62 "pe-7s-safe",63 "pe-7s-volume2",64 "pe-7s-volume1",65 "pe-7s-voicemail",66 "pe-7s-video",67 "pe-7s-user",68 "pe-7s-upload",69 "pe-7s-unlock",70 "pe-7s-umbrella",71 "pe-7s-trash",72 "pe-7s-tools",73 "pe-7s-timer",74 "pe-7s-ticket",75 "pe-7s-target",76 "pe-7s-sun",77 "pe-7s-study",78 "pe-7s-stopwatch",79 "pe-7s-star",80 "pe-7s-speaker",81 "pe-7s-signal",82 "pe-7s-shuffle",83 "pe-7s-shopbag",84 "pe-7s-share",85 "pe-7s-server",86 "pe-7s-search",87 "pe-7s-film",88 "pe-7s-science",89 "pe-7s-disk",90 "pe-7s-ribbon",91 "pe-7s-repeat",92 "pe-7s-refresh",93 "pe-7s-add-user",94 "pe-7s-refresh-cloud",95 "pe-7s-paperclip",96 "pe-7s-radio",97 "pe-7s-note2",98 "pe-7s-print",99 "pe-7s-network",100 "pe-7s-prev",101 "pe-7s-mute",102 "pe-7s-power",103 "pe-7s-medal",104 "pe-7s-portfolio",105 "pe-7s-like2",106 "pe-7s-plus",107 "pe-7s-left-arrow",108 "pe-7s-play",109 "pe-7s-key",110 "pe-7s-plane",111 "pe-7s-joy",112 "pe-7s-photo-gallery",113 "pe-7s-pin",114 "pe-7s-phone",115 "pe-7s-plug",116 "pe-7s-pen",117 "pe-7s-right-arrow",118 "pe-7s-paper-plane",119 "pe-7s-delete-user",120 "pe-7s-paint",121 "pe-7s-bottom-arrow",122 "pe-7s-notebook",123 "pe-7s-note",124 "pe-7s-next",125 "pe-7s-news-paper",126 "pe-7s-musiclist",127 "pe-7s-music",128 "pe-7s-mouse",129 "pe-7s-more",130 "pe-7s-moon",131 "pe-7s-monitor",132 "pe-7s-micro",133 "pe-7s-menu",134 "pe-7s-map",135 "pe-7s-map-marker",136 "pe-7s-mail",137 "pe-7s-mail-open",138 "pe-7s-mail-open-file",139 "pe-7s-magnet",140 "pe-7s-loop",141 "pe-7s-look",142 "pe-7s-lock",143 "pe-7s-lintern",144 "pe-7s-link",145 "pe-7s-like",146 "pe-7s-light",147 "pe-7s-less",148 "pe-7s-keypad",149 "pe-7s-junk",150 "pe-7s-info",151 "pe-7s-home",152 "pe-7s-help2",153 "pe-7s-help1",154 "pe-7s-graph3",155 "pe-7s-graph2",156 "pe-7s-graph1",157 "pe-7s-graph",158 "pe-7s-global",159 "pe-7s-gleam",160 "pe-7s-glasses",161 "pe-7s-gift",162 "pe-7s-folder",163 "pe-7s-flag",164 "pe-7s-filter",165 "pe-7s-file",166 "pe-7s-expand1",167 "pe-7s-exapnd2",168 "pe-7s-edit",169 "pe-7s-drop",170 "pe-7s-drawer",171 "pe-7s-download",172 "pe-7s-display2",173 "pe-7s-display1",174 "pe-7s-diskette",175 "pe-7s-date",176 "pe-7s-cup",177 "pe-7s-culture",178 "pe-7s-crop",179 "pe-7s-credit",180 "pe-7s-copy-file",181 "pe-7s-config",182 "pe-7s-compass",183 "pe-7s-comment",184 "pe-7s-coffee",185 "pe-7s-cloud",186 "pe-7s-clock",187 "pe-7s-check",188 "pe-7s-chat",189 "pe-7s-cart",190 "pe-7s-camera",191 "pe-7s-call",192 "pe-7s-calculator",193 "pe-7s-browser",194 "pe-7s-box2",195 "pe-7s-box1",196 "pe-7s-bookmarks",197 "pe-7s-bicycle",198 "pe-7s-bell",199 "pe-7s-battery",200 "pe-7s-ball",201 "pe-7s-back",202 "pe-7s-attention",203 "pe-7s-anchor",204 "pe-7s-albums",205 "pe-7s-alarm",206 "pe-7s-airplay",207];208const Pe7IconsExamples = () => (209 <Fragment>210 <CSSTransitionGroup component="div" transitionName="TabsAnimation" transitionAppear={true}211 transitionAppearTimeout={0} transitionEnter={false} transitionLeave={false}>212 <Container fluid>213 <Row>214 <Col md="12">215 <Card className="main-card mb-3">216 <CardBody>217 <CardTitle>Gradient Icons</CardTitle>218 <div className="font-icon-wrapper font-icon-lg">219 <i className="pe-7s-filter icon-gradient bg-warm-flame"> </i>220 </div>221 <div className="font-icon-wrapper font-icon-lg">222 <i className="pe-7s-help1 icon-gradient bg-night-fade"> </i>223 </div>224 <div className="font-icon-wrapper font-icon-lg">225 <i className="pe-7s-moon icon-gradient bg-sunny-morning"> </i>226 </div>227 <div className="font-icon-wrapper font-icon-lg">228 <i className="pe-7s-plane icon-gradient bg-tempting-azure"> {" "} </i>229 </div>230 <div className="font-icon-wrapper font-icon-lg">231 <i className="pe-7s-box2 icon-gradient bg-amy-crisp"> </i>232 </div>233 <div className="font-icon-wrapper font-icon-lg">234 <i className="pe-7s-lock icon-gradient bg-malibu-beach"> </i>235 </div>236 <div className="font-icon-wrapper font-icon-lg">237 <i className="pe-7s-monitor icon-gradient bg-mean-fruit"> </i>238 </div>239 <div className="font-icon-wrapper font-icon-lg">240 <i className="pe-7s-mouse icon-gradient bg-heavy-rain"> </i>241 </div>242 <div className="font-icon-wrapper font-icon-lg">243 <i className="pe-7s-paint icon-gradient bg-arielle-smile"> {" "} </i>244 </div>245 <div className="font-icon-wrapper font-icon-lg">246 <i className="pe-7s-menu icon-gradient bg-ripe-malin"> </i>247 </div>248 <div className="font-icon-wrapper font-icon-lg">249 <i className="pe-7s-wristwatch icon-gradient bg-deep-blue"> {" "}</i>250 </div>251 <div className="font-icon-wrapper font-icon-lg">252 <i className="pe-7s-volume2 icon-gradient bg-happy-itmeo"> {" "} </i>253 </div>254 <div className="font-icon-wrapper font-icon-lg">255 <i className="pe-7s-video icon-gradient bg-happy-fisher"> </i>256 </div>257 <div className="font-icon-wrapper font-icon-lg">258 <i className="pe-7s-wallet icon-gradient bg-plum-plate"> </i>259 </div>260 <div className="font-icon-wrapper font-icon-lg">261 <i className="pe-7s-paint-bucket icon-gradient bg-grow-early"> {" "} </i>262 </div>263 <div className="font-icon-wrapper font-icon-lg">264 <i className="pe-7s-diamond icon-gradient bg-strong-bliss"> {" "} </i>265 </div>266 <div className="font-icon-wrapper font-icon-lg">267 <i className="pe-7s-magic-wand icon-gradient bg-mixed-hopes"> {" "} </i>268 </div>269 <div className="font-icon-wrapper font-icon-lg">270 <i className="pe-7s-arc icon-gradient bg-premium-dark"> </i>271 </div>272 <div className="font-icon-wrapper font-icon-lg">273 <i className="pe-7s-hourglass icon-gradient bg-love-kiss"> {" "} </i>274 </div>275 </CardBody>276 </Card>277 </Col>278 <Col md="12">279 <Card className="main-card mb-3">280 <CardBody>281 <Row>282 {iconData.map((iconName) => (283 <Col md="2" key={iconName}>284 <div className="font-icon-wrapper">285 <i className={iconName}> </i>286 <p>{iconName}</p>287 </div>288 </Col>289 ))}290 </Row>291 </CardBody>292 </Card>293 </Col>294 </Row>295 </Container>296 </CSSTransitionGroup>297 </Fragment>298);...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1//2// //3// // // For notifications4// //5//6export const defaultWidth =7 window.screen.width > 7688 ? (window.screen.width * 1) / 39 : window.screen.width;10export const styleNotifications = {11 Wrapper: {},12 Containers: {13 DefaultStyle: {14 position: 'fixed',15 width: defaultWidth,16 padding: '10px 10px 10px 20px',17 zIndex: 9998,18 WebkitBoxSizing: '',19 MozBoxSizing: '',20 boxSizing: '',21 height: 'auto',22 display: 'inline-block',23 border: '0',24 fontSize: '14px',25 WebkitFontSmoothing: 'antialiased',26 fontFamily: '"Roboto","Helvetica Neue",Arial,sans-serif',27 fontWeight: '400',28 color: '#FFFFFF'29 },30 tl: {31 top: '0px',32 bottom: 'auto',33 left: '0px',34 right: 'auto'35 },36 tr: {37 top: '0px',38 bottom: 'auto',39 left: 'auto',40 right: '0px'41 },42 tc: {43 top: '0px',44 bottom: 'auto',45 margin: '0 auto',46 left: '50%',47 marginLeft: -(defaultWidth / 2)48 },49 bl: {50 top: 'auto',51 bottom: '0px',52 left: '0px',53 right: 'auto'54 },55 br: {56 top: 'auto',57 bottom: '0px',58 left: 'auto',59 right: '0px'60 },61 bc: {62 top: 'auto',63 bottom: '0px',64 margin: '0 auto',65 left: '50%',66 marginLeft: -(defaultWidth / 2)67 }68 },69 NotificationItem: {70 DefaultStyle: {71 position: 'relative',72 width: '100%',73 cursor: 'pointer',74 borderRadius: '4px',75 fontSize: '14px',76 margin: '10px 0 0',77 padding: '10px',78 display: 'block',79 WebkitBoxSizing: 'border-box',80 MozBoxSizing: 'border-box',81 boxSizing: 'border-box',82 opacity: 0,83 transition: 'all 0.5s ease-in-out',84 WebkitTransform: 'translate3d(0, 0, 0)',85 transform: 'translate3d(0, 0, 0)',86 willChange: 'transform, opacity',87 isHidden: {88 opacity: 089 },90 isVisible: {91 opacity: 192 }93 },94 success: {95 borderTop: 0,96 backgroundColor: '#a1e82c',97 WebkitBoxShadow: 0,98 MozBoxShadow: 0,99 boxShadow: 0100 },101 error: {102 borderTop: 0,103 backgroundColor: '#fc727a',104 WebkitBoxShadow: 0,105 MozBoxShadow: 0,106 boxShadow: 0107 },108 warning: {109 borderTop: 0,110 backgroundColor: '#ffbc67',111 WebkitBoxShadow: 0,112 MozBoxShadow: 0,113 boxShadow: 0114 },115 info: {116 borderTop: 0,117 backgroundColor: '#63d8f1',118 WebkitBoxShadow: 0,119 MozBoxShadow: 0,120 boxShadow: 0121 }122 },123 Title: {124 DefaultStyle: {125 fontSize: '30px',126 margin: '0',127 padding: 0,128 fontWeight: 'bold',129 color: '#FFFFFF',130 display: 'block',131 left: '15px',132 position: 'absolute',133 top: '50%',134 marginTop: '-15px'135 }136 },137 MessageWrapper: {138 DefaultStyle: {139 marginLeft: '55px',140 marginRight: '30px',141 padding: '0 12px 0 0',142 color: '#FFFFFF',143 maxWidthwidth: '89%'144 }145 },146 Dismiss: {147 DefaultStyle: {148 fontFamily: 'inherit',149 fontSize: '21px',150 color: '#000',151 float: 'right',152 position: 'absolute',153 right: '10px',154 top: '50%',155 marginTop: '-13px',156 backgroundColor: '#FFFFFF',157 display: 'block',158 borderRadius: '50%',159 opacity: '.4',160 lineHeight: '11px',161 width: '25px',162 height: '25px',163 outline: '0 !important',164 textAlign: 'center',165 padding: '6px 3px 3px 3px',166 fontWeight: '300',167 marginLeft: '65px'168 },169 success: {170 // color: '#f0f5ea',171 // backgroundColor: '#a1e82c'172 },173 error: {174 // color: '#f4e9e9',175 // backgroundColor: '#fc727a'176 },177 warning: {178 // color: '#f9f6f0',179 // backgroundColor: '#ffbc67'180 },181 info: {182 // color: '#e8f0f4',183 // backgroundColor: '#63d8f1'184 }185 },186 Action: {187 DefaultStyle: {188 background: '#ffffff',189 borderRadius: '2px',190 padding: '6px 20px',191 fontWeight: 'bold',192 margin: '10px 0 0 0',193 border: 0194 },195 success: {196 backgroundColor: '#a1e82c',197 color: '#ffffff'198 },199 error: {200 backgroundColor: '#fc727a',201 color: '#ffffff'202 },203 warning: {204 backgroundColor: '#ffbc67',205 color: '#ffffff'206 },207 info: {208 backgroundColor: '#63d8f1',209 color: '#ffffff'210 }211 },212 ActionWrapper: {213 DefaultStyle: {214 margin: 0,215 padding: 0216 }217 }218};219//220// //221// // // For icons222// //223//224export const iconsArray = [225 'pe-7s-album',226 'pe-7s-arc',227 'pe-7s-back-2',228 'pe-7s-bandaid',229 'pe-7s-car',230 'pe-7s-diamond',231 'pe-7s-door-lock',232 'pe-7s-eyedropper',233 'pe-7s-female',234 'pe-7s-gym',235 'pe-7s-hammer',236 'pe-7s-headphones',237 'pe-7s-helm',238 'pe-7s-hourglass',239 'pe-7s-leaf',240 'pe-7s-magic-wand',241 'pe-7s-male',242 'pe-7s-map-2',243 'pe-7s-next-2',244 'pe-7s-paint-bucket',245 'pe-7s-pendrive',246 'pe-7s-photo',247 'pe-7s-piggy',248 'pe-7s-plugin',249 'pe-7s-refresh-2',250 'pe-7s-rocket',251 'pe-7s-settings',252 'pe-7s-shield',253 'pe-7s-smile',254 'pe-7s-usb',255 'pe-7s-vector',256 'pe-7s-wine',257 'pe-7s-cloud-upload',258 'pe-7s-cash',259 'pe-7s-close',260 'pe-7s-bluetooth',261 'pe-7s-cloud-download',262 'pe-7s-way',263 'pe-7s-close-circle',264 'pe-7s-id',265 'pe-7s-angle-up',266 'pe-7s-wristwatch',267 'pe-7s-angle-up-circle',268 'pe-7s-world',269 'pe-7s-angle-right',270 'pe-7s-volume',271 'pe-7s-angle-right-circle',272 'pe-7s-users',273 'pe-7s-angle-left',274 'pe-7s-user-female',275 'pe-7s-angle-left-circle',276 'pe-7s-up-arrow',277 'pe-7s-angle-down',278 'pe-7s-switch',279 'pe-7s-angle-down-circle',280 'pe-7s-scissors',281 'pe-7s-wallet',282 'pe-7s-safe',283 'pe-7s-volume2',284 'pe-7s-volume1',285 'pe-7s-voicemail',286 'pe-7s-video',287 'pe-7s-user',288 'pe-7s-upload',289 'pe-7s-unlock',290 'pe-7s-umbrella',291 'pe-7s-trash',292 'pe-7s-tools',293 'pe-7s-timer',294 'pe-7s-ticket',295 'pe-7s-target',296 'pe-7s-sun',297 'pe-7s-study',298 'pe-7s-stopwatch',299 'pe-7s-star',300 'pe-7s-speaker',301 'pe-7s-signal',302 'pe-7s-shuffle',303 'pe-7s-shopbag',304 'pe-7s-share',305 'pe-7s-server',306 'pe-7s-search',307 'pe-7s-film',308 'pe-7s-science',309 'pe-7s-disk',310 'pe-7s-ribbon',311 'pe-7s-repeat',312 'pe-7s-refresh',313 'pe-7s-add-user',314 'pe-7s-refresh-cloud',315 'pe-7s-paperclip',316 'pe-7s-radio',317 'pe-7s-note2',318 'pe-7s-print',319 'pe-7s-network',320 'pe-7s-prev',321 'pe-7s-mute',322 'pe-7s-power',323 'pe-7s-medal',324 'pe-7s-portfolio',325 'pe-7s-like2',326 'pe-7s-plus',327 'pe-7s-left-arrow',328 'pe-7s-play',329 'pe-7s-key',330 'pe-7s-plane',331 'pe-7s-joy',332 'pe-7s-photo-gallery',333 'pe-7s-pin',334 'pe-7s-phone',335 'pe-7s-plug',336 'pe-7s-pen',337 'pe-7s-right-arrow',338 'pe-7s-paper-plane',339 'pe-7s-delete-user',340 'pe-7s-paint',341 'pe-7s-bottom-arrow',342 'pe-7s-notebook',343 'pe-7s-note',344 'pe-7s-next',345 'pe-7s-news-paper',346 'pe-7s-musiclist',347 'pe-7s-music',348 'pe-7s-mouse',349 'pe-7s-more',350 'pe-7s-moon',351 'pe-7s-monitor',352 'pe-7s-micro',353 'pe-7s-menu',354 'pe-7s-map',355 'pe-7s-map-marker',356 'pe-7s-mail',357 'pe-7s-mail-open',358 'pe-7s-mail-open-file',359 'pe-7s-magnet',360 'pe-7s-loop',361 'pe-7s-look',362 'pe-7s-lock',363 'pe-7s-lintern',364 'pe-7s-link',365 'pe-7s-like',366 'pe-7s-light',367 'pe-7s-less',368 'pe-7s-keypad',369 'pe-7s-junk',370 'pe-7s-info',371 'pe-7s-home',372 'pe-7s-help2',373 'pe-7s-help1',374 'pe-7s-graph3',375 'pe-7s-graph2',376 'pe-7s-graph1',377 'pe-7s-graph',378 'pe-7s-global',379 'pe-7s-gleam',380 'pe-7s-glasses',381 'pe-7s-gift',382 'pe-7s-folder',383 'pe-7s-flag',384 'pe-7s-filter',385 'pe-7s-file',386 'pe-7s-expand1',387 'pe-7s-exapnd2',388 'pe-7s-edit',389 'pe-7s-drop',390 'pe-7s-drawer',391 'pe-7s-download',392 'pe-7s-display2',393 'pe-7s-display1',394 'pe-7s-diskette',395 'pe-7s-date',396 'pe-7s-cup',397 'pe-7s-culture',398 'pe-7s-crop',399 'pe-7s-credit',400 'pe-7s-copy-file',401 'pe-7s-config',402 'pe-7s-compass',403 'pe-7s-comment',404 'pe-7s-coffee',405 'pe-7s-cloud',406 'pe-7s-clock',407 'pe-7s-check',408 'pe-7s-chat',409 'pe-7s-cart',410 'pe-7s-camera',411 'pe-7s-call',412 'pe-7s-calculator',413 'pe-7s-browser',414 'pe-7s-box2',415 'pe-7s-box1',416 'pe-7s-bookmarks',417 'pe-7s-bicycle',418 'pe-7s-bell',419 'pe-7s-battery',420 'pe-7s-ball',421 'pe-7s-back',422 'pe-7s-attention',423 'pe-7s-anchor',424 'pe-7s-albums',425 'pe-7s-alarm',426 'pe-7s-airplay'...

Full Screen

Full Screen

profileeditor.test.js

Source:profileeditor.test.js Github

copy

Full Screen

1'use strict';2require('should');3var _ = require('lodash');4var benv = require('benv');5var read = require('fs').readFileSync;6var serverSettings = require('./fixtures/default-server-settings');7var nowData = require('../lib/data/ddata')();8nowData.sgvs.push({ mgdl: 100, mills: Date.now(), direction: 'Flat', type: 'sgv' });9var exampleProfile = {10 defaultProfile : 'Default'11 , store: {12 'Default' : {13 //General values14 'dia':3,15 // Simple style values, 'from' are in minutes from midnight16 'carbratio': [17 {18 'time': '00:00',19 'value': 3020 }],21 'carbs_hr':30,22 'delay': 20,23 'sens': [24 {25 'time': '00:00',26 'value': 10027 }28 , {29 'time': '8:00',30 'value': 8031 }],32 'startDate': new Date(),33 'timezone': 'UTC',34 //perGIvalues style values35 'perGIvalues': false,36 'carbs_hr_high': 30,37 'carbs_hr_medium': 30,38 'carbs_hr_low': 30,39 'delay_high': 15,40 'delay_medium': 20,41 'delay_low': 20,42 'basal':[43 {44 'time': '00:00',45 'value': 0.146 }],47 'target_low':[48 {49 'time': '00:00',50 'value': 10051 }],52 'target_high':[53 {54 'time': '00:00',55 'value': 12056 }]57 }58 }59};60var someData = {61 '/api/v1/profile.json': [exampleProfile]62 };63describe('Profile editor', function ( ) {64 this.timeout(40000); //TODO: see why this test takes longer on Travis to complete65 var headless = require('./fixtures/headless')(benv, this);66 before(function (done) {67 done( );68 });69 after(function (done) {70 done( );71 });72 beforeEach(function (done) {73 var opts = {74 htmlFile: __dirname + '/../views/profileindex.html'75 , mockProfileEditor: true76 , mockAjax: someData77 , benvRequires: [78 __dirname + '/../static/profile/js/profileeditor.js'79 ]80 };81 headless.setup(opts, done);82 });83 afterEach(function (done) {84 headless.teardown( );85 done( );86 });87 it ('should produce some html', function (done) {88 var client = require('../lib/client');89 var hashauth = require('../lib/hashauth');90 hashauth.init(client,$);91 hashauth.verifyAuthentication = function mockVerifyAuthentication(next) {92 hashauth.authenticated = true;93 next(true);94 };95 window.confirm = function mockConfirm (text) {96 console.log('Confirm:', text);97 return true;98 };99 window.alert = function mockAlert () {100 return true;101 };102 client.init();103 client.dataUpdate(nowData);104 105 //var result = $('body').html();106 //var filesys = require('fs');107 //var logfile = filesys.createWriteStream('out.html', { flags: 'a'} )108 //logfile.write($('body').html());109 110 // database records manipulation111 $('#pe_databaserecords option').length.should.be.equal(1);112 $('#pe_records_add').click();113 $('#pe_databaserecords option').length.should.be.equal(2);114 $('#pe_records_remove').click();115 $('#pe_databaserecords option').length.should.be.equal(1);116 $('#pe_records_clone').click();117 $('#pe_databaserecords option').length.should.be.equal(2);118 $('#pe_databaserecords option').val(0);119 //console.log($('#pe_databaserecords').html());120 //console.log($('#pe_databaserecords').val());121 // database records manipulation122 $('#pe_profiles option').length.should.be.equal(1);123 $('#pe_profile_add').click();124 $('#pe_profiles option').length.should.be.equal(2);125 $('#pe_profile_name').val('Test');126 $('#pe_profiles option').val('Default');127 $('#pe_profiles option').val('Test');128 $('#pe_profile_remove').click();129 $('#pe_profiles option').length.should.be.equal(1);130 $('#pe_profile_clone').click();131 $('#pe_profiles option').length.should.be.equal(2);132 $('#pe_profiles option').val('Default');133 //console.log($('#pe_profiles').html());134 //console.log($('#pe_profiles').val());135 // I:C range136 $('#pe_ic_val_0').val().should.be.equal('30');137 $('#pe_ic_placeholder').find('img.addsingle').click();138 $('#pe_ic_val_0').val().should.be.equal('0');139 $('#pe_ic_val_1').val().should.be.equal('30');140 $('#pe_ic_placeholder').find('img.delsingle').click();141 $('#pe_ic_val_0').val().should.be.equal('30');142 // traget bg range143 $('#pe_targetbg_low_0').val().should.be.equal('100');144 $('#pe_targetbg_placeholder').find('img.addtargetbg').click();145 $('#pe_targetbg_low_0').val().should.be.equal('0');146 $('#pe_targetbg_low_1').val().should.be.equal('100');147 $('#pe_targetbg_placeholder').find('img.deltargetbg').click();148 $('#pe_targetbg_low_0').val().should.be.equal('100');149 $('#pe_submit').click();150 done();151 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.screenshot({ path: 'google.png' });7 await browser.close();8})();9const { chromium } = require('playwright');10(async () => {11 const browser = await chromium.launch();12 const context = await browser.newContext();13 const page = await context.newPage();14 await page.screenshot({ path: 'google.png' });15 await browser.close();16})();17const { chromium } = require('playwright');18(async () => {19 const browser = await chromium.launch();20 const context = await browser.newContext();21 const page = await context.newPage();22 await page.screenshot({ path: 'google.png' });23 await browser.close();24})();25const { chromium } = require('playwright');26(async () => {27 const browser = await chromium.launch();28 const context = await browser.newContext();29 const page = await context.newPage();30 await page.screenshot({ path: 'google.png' });31 await browser.close();32})();33const { chromium } = require('playwright');34(async () => {35 const browser = await chromium.launch();36 const context = await browser.newContext();37 const page = await context.newPage();38 await page.screenshot({ path: 'google.png' });39 await browser.close();40})();41const { chromium } = require('playwright');42(async () => {43 const browser = await chromium.launch();44 const context = await browser.newContext();45 const page = await context.newPage();46 await page.screenshot({

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const page = await browser.newPage();5 await page.screenshot({ path: 'example.png' });6 await browser.close();7})();8const { chromium } = require('playwright');9(async () => {10 const browser = await chromium.launch();11 const page = await browser.newPage();12 await page.screenshot({ path: 'example.png' });13 await browser.close();14})();15const { chromium } = require('playwright');16(async () => {17 const browser = await chromium.launch();18 const page = await browser.newPage();19 await page.screenshot({ path: 'example.png' });20 await browser.close();21})();22const { chromium } = require('playwright');23(async () => {24 const browser = await chromium.launch();25 const page = await browser.newPage();26 await page.screenshot({ path: 'example.png' });27 await browser.close();28})();29const { chromium } = require('playwright');30(async () => {31 const browser = await chromium.launch();32 const page = await browser.newPage();33 await page.screenshot({ path: 'example.png' });34 await browser.close();35})();36const { chromium } = require('playwright');37(async () => {38 const browser = await chromium.launch();39 const page = await browser.newPage();40 await page.screenshot({ path: 'example.png' });41 await browser.close();42})();43const { chromium } =

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch({ headless: false });4 const page = await browser.newPage();5 const result = await page.evaluate(() => {6 const { Pe } = window['playwright'];7 return Pe();8 });9 console.log(result);10 await browser.close();11})();12{ browserName: 'chrome',

Full Screen

Using AI Code Generation

copy

Full Screen

1const { test, expect } = require('@playwright/test');2test('my test', async ({ page }) => {3 const title = page.title();4 expect(title).toBe('Playwright');5});6test('my test', async ({ page }) => {7 const title = page.title();8 expect(title).toBe('Playwright');9});10test('my test', async ({ page }) => {11 const title = page.title();12 expect(title).toBe('Playwright');13});14test('my test', async ({ page }) => {15 const title = page.title();16 expect(title).toBe('Playwright');17});18test('my test', async ({ page }) => {19 const title = page.title();20 expect(title).toBe('Playwright');21});22test('my test', async ({ page }) => {23 const title = page.title();24 expect(title).toBe('Playwright');25});26test('my test', async ({ page }) => {27 const title = page.title();28 expect(title).toBe('Playwright');29});30test('my test', async ({ page }) => {31 const title = page.title();32 expect(title).toBe('Playwright');33});34test('my test', async ({ page }) => {35 const title = page.title();36 expect(title).toBe('Playwright');37});38test('my test', async ({ page }) => {39 const title = page.title();40 expect(title).toBe('

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Pe } = require('playwright-internal');2const { test, expect } = require('@playwright/test');3test('basic test', async ({ page }) => {4 const title = await page.title();5 expect(title).toBe('Playwright');6 const [button] = await page.$$('a:has-text("Docs")');7 await button.click();8 await Pe.waitForNavigation(page);9 await page.waitForSelector('text=Docs');10 await page.screenshot({ path: `example.png` });11});12### Pe.waitForNavigation(page)13### Pe.waitForResponse(page, url, options)14### Pe.waitForRequest(page, url, options)15### Pe.waitForSelector(page, selector, options)

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Pe } = require('playwright-internal');2const { Pe } = require('playwright-internal');3const { test } = require('@playwright/test');4test('should work', async ({ page }) => {5 const pe = new Pe(page);6 const pe = new Pe(page);7 const text = await pe.innerText('h1');8 expect(text).toBe('Example Domain');9});10#### `new Pe(page)`11#### `Pe#innerText(selector)`12#### `Pe#innerTextAll(selector)`13#### `Pe#value(selector)`14#### `Pe#valueAll(selector)`15#### `Pe#getAttribute(selector, name)`16#### `Pe#getAttributeAll(selector, name)`17#### `Pe#getAttributeAll(selector, name)`18#### `Pe#hasAttribute(selector, name)`

Full Screen

Using AI Code Generation

copy

Full Screen

1const { PlaywrightInternal } = require('@playwright/test');2const { chromium } = require('playwright');3const { test } = require('@playwright/test');4test('test', async ({ page }) => {5 const internal = new PlaywrightInternal(page);6 const element = await internal.PE('text=Get Started');7 await element.click();8});9const { test } = require('@playwright/test');10const { chromium } = require('playwright');11const { TestRunner } = require('@playwright/test/lib/test/runner');12test('test', async ({ page }) => {13 const runner = new TestRunner();14 const element = await runner.PE('text=Get Started');15 await element.click();16});17const { PlaywrightInternal } = require('@playwright/test');18const { chromium } = require('playwright');19const { test } = require('@playwright/test');20test('test', async ({ page }) => {21 const internal = new PlaywrightInternal(page);22 const element = await internal.PE('text=Get Started');23 await element.click();24});25const { PlaywrightInternal } = require('@playwright/test');26const { chromium } = require('playwright');27const { test } = require('@playwright/test');28test('test', async ({ page }) => {29 const internal = new PlaywrightInternal(page);30 const element = await internal.PE('text=Get Started');31 await element.click();32});

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Pe } = require('@playwright/test');2const { test } = require('@playwright/test');3test('Pe', async ({ page }) => {4 const selector = 'text=Get started';5 const element = await Pe(page).elementHandle(selector);6 await element.click();7});8module.exports = {9 testEnvironmentOptions: {10 'jest-playwright': {11 launchOptions: {12 },13 },14 },15};16"scripts": {17}18Pe (220ms)19 {20 "element": {21 "_page": {22 },23 "_context": {24 },25 "_initializer": {26 }27 }28 }29 at Object.<anonymous> (test.js:9:13)30 {31 "element": {32 "_page": {33 },34 "_context": {35 },36 "_initializer": {37 }38 }39 }40 at Object.<anonymous> (test.js:12:13)

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('playwright');2const { Pe } = Playwright;3const { Pe } = require('playwright/lib/client/pe');4const { Pe } = require('playwright/lib/client/pe');5const { Pe } = require('playwright/lib/client/pe');6const { Pe } = require('playwright/lib/client/pe');7const { Pe } = require('playwright/lib/client/pe');

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful