diff --git a/.gitignore b/.gitignore index 236b745..1631b61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .DS_Store /node_modules -/bower_components *.log diff --git a/LICENSE.md b/LICENSE.md index 1bb18d7..78a7804 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 ardean +Copyright (c) 2021 ardean Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8463c37..ae24f9f 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,8 @@ ## Setup ```bash - > bower i - > yarn install - > yarn start + > npm i + > npm start ``` ## License diff --git a/bower.json b/bower.json deleted file mode 100644 index 63f8643..0000000 --- a/bower.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "jsgbc-web", - "description": "A GameBoy Color Emulator for the Web", - "main": "src/index.js", - "authors": [ - "ardean" - ], - "license": "MIT", - "keywords": [ - "gameboy", - "color", - "emulator", - "gameboy-color", - "gameboy-color-emulator", - "gbc", - "html5", - "html5-canvas", - "canvas", - "jsgbc" - ], - "homepage": "https://github.com/ardean/jsGBC-web", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - "jsgbc-ui": "jsGBC-ui#v0.2.2" - } -} \ No newline at end of file diff --git a/build/tasks/assets.js b/build/tasks/assets.js deleted file mode 100644 index 3244957..0000000 --- a/build/tasks/assets.js +++ /dev/null @@ -1,5 +0,0 @@ -const gulp = require("gulp"); - -gulp.task("build-assets", () => { - return gulp.src("assets/**/*").pipe(gulp.dest("docs")); -}); diff --git a/build/tasks/css.js b/build/tasks/css.js deleted file mode 100644 index 4c82911..0000000 --- a/build/tasks/css.js +++ /dev/null @@ -1,5 +0,0 @@ -const gulp = require("gulp"); - -gulp.task("build-css", () => { - return gulp.src("styles/*.css").pipe(gulp.dest("docs/styles")); -}); diff --git a/build/tasks/index.js b/build/tasks/index.js deleted file mode 100644 index 4845317..0000000 --- a/build/tasks/index.js +++ /dev/null @@ -1,3 +0,0 @@ -const gulp = require("gulp"); - -gulp.task("build", ["build-webcomponents", "build-css", "build-assets"]); diff --git a/build/tasks/webcomponents.js b/build/tasks/webcomponents.js deleted file mode 100644 index be69d58..0000000 --- a/build/tasks/webcomponents.js +++ /dev/null @@ -1,13 +0,0 @@ -const gulp = require("gulp"); -const vulcanize = require("gulp-vulcanize"); - -gulp.task("build-webcomponents", () => { - return gulp - .src("index.html") - .pipe( - vulcanize({ - stripComments: true - }) - ) - .pipe(gulp.dest("docs")); -}); diff --git a/docs/android-chrome-192x192.png b/docs/android-chrome-192x192.png deleted file mode 100644 index 73238d2..0000000 Binary files a/docs/android-chrome-192x192.png and /dev/null differ diff --git a/docs/android-chrome-512x512.png b/docs/android-chrome-512x512.png deleted file mode 100644 index c853c3e..0000000 Binary files a/docs/android-chrome-512x512.png and /dev/null differ diff --git a/docs/apple-touch-icon.png b/docs/apple-touch-icon.png deleted file mode 100644 index 4e98c2b..0000000 Binary files a/docs/apple-touch-icon.png and /dev/null differ diff --git a/docs/bower_components/jsgbc-ui/images/lcd.png b/docs/bower_components/jsgbc-ui/images/lcd.png deleted file mode 100644 index 1e64e54..0000000 Binary files a/docs/bower_components/jsgbc-ui/images/lcd.png and /dev/null differ diff --git a/docs/bower_components/webcomponentsjs/webcomponents.min.js b/docs/bower_components/webcomponentsjs/webcomponents.min.js deleted file mode 100644 index ad8196b..0000000 --- a/docs/bower_components/webcomponentsjs/webcomponents.min.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license - * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt - */ -// @version 0.7.24 -!function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomponents.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(var r,o=0;r=t.attributes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){var i=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={}}n.shadow=n.shadow||n.shadowdom||n.polyfill,"native"===n.shadow?n.shadow=!1:n.shadow=n.shadow||!HTMLElement.prototype.createShadowRoot,n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.register),WebComponents.flags=n}(),WebComponents.flags.shadow&&("undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e){var t=e[this.name];return!(!t||t[0]!==e)&&(t[0]=t[1]=void 0,!0)},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=n}(),window.ShadowDOMPolyfill={},function(e){"use strict";function t(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1;if(navigator.getDeviceStorage)return!1;try{var e=new Function("return true;");return e()}catch(t){return!1}}function n(e){if(!e)throw new Error("Assertion failed")}function r(e,t){for(var n=W(t),r=0;r0||n>0;)if(0!=t)if(0!=n){var l,u=e[t-1][n-1],d=e[t-1][n],p=e[t][n-1];l=d0){for(var u=0;u0&&r.length>0;){var i=n.pop(),a=r.pop();if(i!==a)break;o=i}return o}function u(e,t,n){t instanceof G.Window&&(t=t.document);var o,i=A(t),a=A(n),s=r(n,e),o=l(i,a);o||(o=a.root);for(var c=o;c;c=c.parent)for(var u=0;u0;i--)if(!g(t[i],e,o,t,r))return!1;return!0}function w(e,t,n,r){var o=ie,i=t[0]||n;return g(i,e,o,t,r)}function v(e,t,n,r){for(var o=ae,i=1;i0&&g(n,e,o,t,r)}function g(e,t,n,r,o){var i=z.get(e);if(!i)return!0;var a=o||s(r,e);if(a===e){if(n===oe)return!0;n===ae&&(n=ie)}else if(n===ae&&!t.bubbles)return!0;if("relatedTarget"in t){var c=B(t),l=c.relatedTarget;if(l){if(l instanceof Object&&l.addEventListener){var d=V(l),p=u(t,e,d);if(p===a)return!0}else p=null;Z.set(t,p)}}J.set(t,n);var h=t.type,f=!1;X.set(t,a),Y.set(t,e),i.depth++;for(var m=0,w=i.length;m=0;a--)e.removeChild(i[a]),i[a].parentNode_=t;U=!1;for(var a=0;a>>/g," ")}function r(e){return String(e).replace(/:host\(([^\s]+)\)/g,"$1").replace(/([^\s]):host/g,"$1").replace(":host","*").replace(/\^|\/shadow\/|\/shadow-deep\/|::shadow|\/deep\/|::content|>>>/g," ")}function o(e,t){for(var n,r=e.firstElementChild;r;){if(r.matches(t))return r;if(n=o(r,t))return n;r=r.nextElementSibling}return null}function i(e,t){return e.matches(t)}function a(e,t,n){var r=e.localName;return r===t||r===n&&e.namespaceURI===j}function s(){return!0}function c(e,t,n){return e.localName===n}function l(e,t){return e.namespaceURI===t}function u(e,t,n){return e.namespaceURI===t&&e.localName===n}function d(e,t,n,r,o,i){for(var a=e.firstElementChild;a;)r(a,o,i)&&(n[t++]=a),t=d(a,t,n,r,o,i),a=a.nextElementSibling;return t}function p(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,null);if(c instanceof N)s=S.call(c,i);else{if(!(c instanceof C))return d(this,r,o,n,i,null);s=_.call(c,i)}return t(s,r,o,a)}function h(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a);if(c instanceof N)s=M.call(c,i,a);else{if(!(c instanceof C))return d(this,r,o,n,i,a);s=T.call(c,i,a)}return t(s,r,o,!1)}function f(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a);if(c instanceof N)s=L.call(c,i,a);else{if(!(c instanceof C))return d(this,r,o,n,i,a);s=O.call(c,i,a)}return t(s,r,o,!1)}var m=e.wrappers.HTMLCollection,w=e.wrappers.NodeList,v=e.getTreeScope,g=e.unsafeUnwrap,b=e.wrap,y=document.querySelector,E=document.documentElement.querySelector,_=document.querySelectorAll,S=document.documentElement.querySelectorAll,T=document.getElementsByTagName,M=document.documentElement.getElementsByTagName,O=document.getElementsByTagNameNS,L=document.documentElement.getElementsByTagNameNS,N=window.Element,C=window.HTMLDocument||window.Document,j="http://www.w3.org/1999/xhtml",D={ -querySelector:function(t){var r=n(t),i=r!==t;t=r;var a,s=g(this),c=v(this).root;if(c instanceof e.wrappers.ShadowRoot)return o(this,t);if(s instanceof N)a=b(E.call(s,t));else{if(!(s instanceof C))return o(this,t);a=b(y.call(s,t))}return a&&!i&&(c=v(a).root)&&c instanceof e.wrappers.ShadowRoot?o(this,t):a},querySelectorAll:function(e){var t=n(e),r=t!==e;e=t;var o=new w;return o.length=p.call(this,i,0,o,e,r),o}},H={matches:function(t){return t=r(t),e.originalMatches.call(g(this),t)}},x={getElementsByTagName:function(e){var t=new m,n="*"===e?s:a;return t.length=h.call(this,n,0,t,e,e.toLowerCase()),t},getElementsByClassName:function(e){return this.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){var n=new m,r=null;return r="*"===e?"*"===t?s:c:"*"===t?l:u,n.length=f.call(this,r,0,n,e||null,t),n}};e.GetElementsByInterface=x,e.SelectorsInterface=D,e.MatchesInterface=H}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}function n(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}var r=e.wrappers.NodeList,o={get firstElementChild(){return t(this.firstChild)},get lastElementChild(){return n(this.lastChild)},get childElementCount(){for(var e=0,t=this.firstElementChild;t;t=t.nextElementSibling)e++;return e},get children(){for(var e=new r,t=0,n=this.firstElementChild;n;n=n.nextElementSibling)e[t++]=n;return e.length=t,e},remove:function(){var e=this.parentNode;e&&e.removeChild(this)}},i={get nextElementSibling(){return t(this.nextSibling)},get previousElementSibling(){return n(this.previousSibling)}},a={getElementById:function(e){return/[ \t\n\r\f]/.test(e)?null:this.querySelector('[id="'+e+'"]')}};e.ChildNodeInterface=i,e.NonElementParentNodeInterface=a,e.ParentNodeInterface=o}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(this,e)}var n=e.ChildNodeInterface,r=e.wrappers.Node,o=e.enqueueMutation,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=window.CharacterData;t.prototype=Object.create(r.prototype),i(t.prototype,{get nodeValue(){return this.data},set nodeValue(e){this.data=e},get textContent(){return this.data},set textContent(e){this.data=e},get data(){return s(this).data},set data(e){var t=s(this).data;o(this,"characterData",{oldValue:t}),s(this).data=e}}),i(t.prototype,n),a(c,t,document.createTextNode("")),e.wrappers.CharacterData=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return e>>>0}function n(e){r.call(this,e)}var r=e.wrappers.CharacterData,o=(e.enqueueMutation,e.mixin),i=e.registerWrapper,a=window.Text;n.prototype=Object.create(r.prototype),o(n.prototype,{splitText:function(e){e=t(e);var n=this.data;if(e>n.length)throw new Error("IndexSizeError");var r=n.slice(0,e),o=n.slice(e);this.data=r;var i=this.ownerDocument.createTextNode(o);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}}),i(a,n,document.createTextNode("")),e.wrappers.Text=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return i(e).getAttribute("class")}function n(e,t){a(e,"attributes",{name:"class",namespace:null,oldValue:t})}function r(t){e.invalidateRendererBasedOnAttribute(t,"class")}function o(e,o,i){var a=e.ownerElement_;if(null==a)return o.apply(e,i);var s=t(a),c=o.apply(e,i);return t(a)!==s&&(n(a,s),r(a)),c}if(!window.DOMTokenList)return void console.warn("Missing DOMTokenList prototype, please include a compatible classList polyfill such as http://goo.gl/uTcepH.");var i=e.unsafeUnwrap,a=e.enqueueMutation,s=DOMTokenList.prototype.add;DOMTokenList.prototype.add=function(){o(this,s,arguments)};var c=DOMTokenList.prototype.remove;DOMTokenList.prototype.remove=function(){o(this,c,arguments)};var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(){return o(this,l,arguments)}}(window.ShadowDOMPolyfill),function(e){"use strict";function t(t,n){var r=t.parentNode;if(r&&r.shadowRoot){var o=e.getRendererForHost(r);o.dependsOnAttribute(n)&&o.invalidate()}}function n(e,t,n){u(e,"attributes",{name:t,namespace:null,oldValue:n})}function r(e){a.call(this,e)}var o=e.ChildNodeInterface,i=e.GetElementsByInterface,a=e.wrappers.Node,s=e.ParentNodeInterface,c=e.SelectorsInterface,l=e.MatchesInterface,u=(e.addWrapNodeListMethod,e.enqueueMutation),d=e.mixin,p=(e.oneOf,e.registerWrapper),h=e.unsafeUnwrap,f=e.wrappers,m=window.Element,w=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter(function(e){return m.prototype[e]}),v=w[0],g=m.prototype[v],b=new WeakMap;r.prototype=Object.create(a.prototype),d(r.prototype,{createShadowRoot:function(){var t=new f.ShadowRoot(this);h(this).polymerShadowRoot_=t;var n=e.getRendererForHost(this);return n.invalidate(),t},get shadowRoot(){return h(this).polymerShadowRoot_||null},setAttribute:function(e,r){var o=h(this).getAttribute(e);h(this).setAttribute(e,r),n(this,e,o),t(this,e)},removeAttribute:function(e){var r=h(this).getAttribute(e);h(this).removeAttribute(e),n(this,e,r),t(this,e)},get classList(){var e=b.get(this);if(!e){if(e=h(this).classList,!e)return;e.ownerElement_=this,b.set(this,e)}return e},get className(){return h(this).className},set className(e){this.setAttribute("class",e)},get id(){return h(this).id},set id(e){this.setAttribute("id",e)}}),w.forEach(function(e){"matches"!==e&&(r.prototype[e]=function(e){return this.matches(e)})}),m.prototype.webkitCreateShadowRoot&&(r.prototype.webkitCreateShadowRoot=r.prototype.createShadowRoot),d(r.prototype,o),d(r.prototype,i),d(r.prototype,s),d(r.prototype,c),d(r.prototype,l),p(m,r,document.createElementNS(null,"x")),e.invalidateRendererBasedOnAttribute=t,e.matchesNames=w,e.originalMatches=g,e.wrappers.Element=r}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function n(e){return e.replace(L,t)}function r(e){return e.replace(N,t)}function o(e){for(var t={},n=0;n"):c+">"+s(e)+"";case Node.TEXT_NODE:var d=e.data;return t&&j[t.localName]?d:r(d);case Node.COMMENT_NODE:return"";default:throw console.error(e),new Error("not implemented")}}function s(e){e instanceof O.HTMLTemplateElement&&(e=e.content);for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=a(n,e);return t}function c(e,t,n){var r=n||"div";e.textContent="";var o=T(e.ownerDocument.createElement(r));o.innerHTML=t;for(var i;i=o.firstChild;)e.appendChild(M(i))}function l(e){m.call(this,e)}function u(e,t){var n=T(e.cloneNode(!1));n.innerHTML=t;for(var r,o=T(document.createDocumentFragment());r=n.firstChild;)o.appendChild(r);return M(o)}function d(t){return function(){return e.renderAllPending(),S(this)[t]}}function p(e){w(l,e,d(e))}function h(t){Object.defineProperty(l.prototype,t,{get:d(t),set:function(n){e.renderAllPending(),S(this)[t]=n},configurable:!0,enumerable:!0})}function f(t){Object.defineProperty(l.prototype,t,{value:function(){return e.renderAllPending(),S(this)[t].apply(S(this),arguments)},configurable:!0,enumerable:!0})}var m=e.wrappers.Element,w=e.defineGetter,v=e.enqueueMutation,g=e.mixin,b=e.nodesWereAdded,y=e.nodesWereRemoved,E=e.registerWrapper,_=e.snapshotNodeList,S=e.unsafeUnwrap,T=e.unwrap,M=e.wrap,O=e.wrappers,L=/[&\u00A0"]/g,N=/[&\u00A0<>]/g,C=o(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),j=o(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),D="http://www.w3.org/1999/xhtml",H=/MSIE/.test(navigator.userAgent),x=window.HTMLElement,R=window.HTMLTemplateElement;l.prototype=Object.create(m.prototype),g(l.prototype,{get innerHTML(){return s(this)},set innerHTML(e){if(H&&j[this.localName])return void(this.textContent=e);var t=_(this.childNodes);this.invalidateShadowRenderer()?this instanceof O.HTMLTemplateElement?c(this.content,e):c(this,e,this.tagName):!R&&this instanceof O.HTMLTemplateElement?c(this.content,e):S(this).innerHTML=e;var n=_(this.childNodes);v(this,"childList",{addedNodes:n,removedNodes:t}),y(t),b(n,this)},get outerHTML(){return a(this,this.parentNode)},set outerHTML(e){var t=this.parentNode;if(t){t.invalidateShadowRenderer();var n=u(t,e);t.replaceChild(n,this)}},insertAdjacentHTML:function(e,t){var n,r;switch(String(e).toLowerCase()){case"beforebegin":n=this.parentNode,r=this;break;case"afterend":n=this.parentNode,r=this.nextSibling;break;case"afterbegin":n=this,r=this.firstChild;break;case"beforeend":n=this,r=null;break;default:return}var o=u(n,t);n.insertBefore(o,r)},get hidden(){return this.hasAttribute("hidden")},set hidden(e){e?this.setAttribute("hidden",""):this.removeAttribute("hidden")}}),["clientHeight","clientLeft","clientTop","clientWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(p),["scrollLeft","scrollTop"].forEach(h),["focus","getBoundingClientRect","getClientRects","scrollIntoView"].forEach(f),E(x,l,document.createElement("b")),e.wrappers.HTMLElement=l,e.getInnerHTML=s,e.setInnerHTML=c}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.wrap,s=window.HTMLCanvasElement;t.prototype=Object.create(n.prototype),r(t.prototype,{getContext:function(){var e=i(this).getContext.apply(i(this),arguments);return e&&a(e)}}),o(s,t,document.createElement("canvas")),e.wrappers.HTMLCanvasElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=window.HTMLContentElement;t.prototype=Object.create(n.prototype),r(t.prototype,{constructor:t,get select(){return this.getAttribute("select")},set select(e){this.setAttribute("select",e)},setAttribute:function(e,t){n.prototype.setAttribute.call(this,e,t),"select"===String(e).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),i&&o(i,t),e.wrappers.HTMLContentElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=window.HTMLFormElement;t.prototype=Object.create(n.prototype),r(t.prototype,{get elements(){return i(a(this).elements)}}),o(s,t,document.createElement("form")),e.wrappers.HTMLFormElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(this,e)}function n(e,t){if(!(this instanceof n))throw new TypeError("DOM object constructor cannot be called as a function.");var o=i(document.createElement("img"));r.call(this,o),a(o,this),void 0!==e&&(o.width=e),void 0!==t&&(o.height=t)}var r=e.wrappers.HTMLElement,o=e.registerWrapper,i=e.unwrap,a=e.rewrap,s=window.HTMLImageElement;t.prototype=Object.create(r.prototype),o(s,t,document.createElement("img")),n.prototype=t.prototype,e.wrappers.HTMLImageElement=t,e.wrappers.Image=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=(e.mixin,e.wrappers.NodeList,e.registerWrapper),o=window.HTMLShadowElement;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,o&&r(o,t),e.wrappers.HTMLShadowElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){if(!e.defaultView)return e;var t=d.get(e);if(!t){for(t=e.implementation.createHTMLDocument("");t.lastChild;)t.removeChild(t.lastChild);d.set(e,t)}return t}function n(e){for(var n,r=t(e.ownerDocument),o=c(r.createDocumentFragment());n=e.firstChild;)o.appendChild(n);return o}function r(e){if(o.call(this,e),!p){var t=n(e);u.set(this,l(t))}}var o=e.wrappers.HTMLElement,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=e.unwrap,l=e.wrap,u=new WeakMap,d=new WeakMap,p=window.HTMLTemplateElement;r.prototype=Object.create(o.prototype),i(r.prototype,{constructor:r,get content(){return p?l(s(this).content):u.get(this)}}),p&&a(p,r),e.wrappers.HTMLTemplateElement=r}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.registerWrapper,o=window.HTMLMediaElement;o&&(t.prototype=Object.create(n.prototype),r(o,t,document.createElement("audio")),e.wrappers.HTMLMediaElement=t)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(this,e)}function n(e){if(!(this instanceof n))throw new TypeError("DOM object constructor cannot be called as a function.");var t=i(document.createElement("audio"));r.call(this,t),a(t,this),t.setAttribute("preload","auto"),void 0!==e&&t.setAttribute("src",e)}var r=e.wrappers.HTMLMediaElement,o=e.registerWrapper,i=e.unwrap,a=e.rewrap,s=window.HTMLAudioElement;s&&(t.prototype=Object.create(r.prototype),o(s,t,document.createElement("audio")),n.prototype=t.prototype,e.wrappers.HTMLAudioElement=t,e.wrappers.Audio=n)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return e.replace(/\s+/g," ").trim()}function n(e){o.call(this,e)}function r(e,t,n,i){if(!(this instanceof r))throw new TypeError("DOM object constructor cannot be called as a function.");var a=c(document.createElement("option"));o.call(this,a),s(a,this),void 0!==e&&(a.text=e),void 0!==t&&a.setAttribute("value",t),n===!0&&a.setAttribute("selected",""),a.selected=i===!0}var o=e.wrappers.HTMLElement,i=e.mixin,a=e.registerWrapper,s=e.rewrap,c=e.unwrap,l=e.wrap,u=window.HTMLOptionElement;n.prototype=Object.create(o.prototype),i(n.prototype,{get text(){return t(this.textContent)},set text(e){this.textContent=t(String(e))},get form(){return l(c(this).form)}}),a(u,n,document.createElement("option")),r.prototype=n.prototype,e.wrappers.HTMLOptionElement=n,e.wrappers.Option=r}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wrap,s=window.HTMLSelectElement;t.prototype=Object.create(n.prototype),r(t.prototype,{add:function(e,t){"object"==typeof t&&(t=i(t)),i(this).add(i(e),t)},remove:function(e){return void 0===e?void n.prototype.remove.call(this):("object"==typeof e&&(e=i(e)),void i(this).remove(e))},get form(){return a(i(this).form)}}),o(s,t,document.createElement("select")),e.wrappers.HTMLSelectElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wrap,s=e.wrapHTMLCollection,c=window.HTMLTableElement;t.prototype=Object.create(n.prototype),r(t.prototype,{get caption(){return a(i(this).caption)},createCaption:function(){return a(i(this).createCaption())},get tHead(){return a(i(this).tHead)},createTHead:function(){return a(i(this).createTHead())},createTFoot:function(){return a(i(this).createTFoot())},get tFoot(){return a(i(this).tFoot)},get tBodies(){return s(i(this).tBodies)},createTBody:function(){return a(i(this).createTBody())},get rows(){return s(i(this).rows)},insertRow:function(e){return a(i(this).insertRow(e))}}),o(c,t,document.createElement("table")),e.wrappers.HTMLTableElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=e.wrap,c=window.HTMLTableSectionElement;t.prototype=Object.create(n.prototype),r(t.prototype,{constructor:t,get rows(){return i(a(this).rows)},insertRow:function(e){return s(a(this).insertRow(e))}}),o(c,t,document.createElement("thead")),e.wrappers.HTMLTableSectionElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=e.wrap,c=window.HTMLTableRowElement;t.prototype=Object.create(n.prototype),r(t.prototype,{get cells(){return i(a(this).cells)},insertCell:function(e){return s(a(this).insertCell(e))}}),o(c,t,document.createElement("tr")),e.wrappers.HTMLTableRowElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){switch(e.localName){case"content":return new n(e);case"shadow":return new o(e);case"template":return new i(e)}r.call(this,e)}var n=e.wrappers.HTMLContentElement,r=e.wrappers.HTMLElement,o=e.wrappers.HTMLShadowElement,i=e.wrappers.HTMLTemplateElement,a=(e.mixin,e.registerWrapper),s=window.HTMLUnknownElement;t.prototype=Object.create(r.prototype),a(s,t),e.wrappers.HTMLUnknownElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.Element,r=e.wrappers.HTMLElement,o=e.registerWrapper,i=(e.defineWrapGetter,e.unsafeUnwrap),a=e.wrap,s=e.mixin,c="http://www.w3.org/2000/svg",l=window.SVGElement,u=document.createElementNS(c,"title");if(!("classList"in u)){var d=Object.getOwnPropertyDescriptor(n.prototype,"classList");Object.defineProperty(r.prototype,"classList",d),delete n.prototype.classList}t.prototype=Object.create(n.prototype),s(t.prototype,{get ownerSVGElement(){return a(i(this).ownerSVGElement)}}),o(l,t,document.createElementNS(c,"title")),e.wrappers.SVGElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){p.call(this,e)}var n=e.mixin,r=e.registerWrapper,o=e.unwrap,i=e.wrap,a=window.SVGUseElement,s="http://www.w3.org/2000/svg",c=i(document.createElementNS(s,"g")),l=document.createElementNS(s,"use"),u=c.constructor,d=Object.getPrototypeOf(u.prototype),p=d.constructor;t.prototype=Object.create(d),"instanceRoot"in l&&n(t.prototype,{get instanceRoot(){return i(o(this).instanceRoot)},get animatedInstanceRoot(){return i(o(this).animatedInstanceRoot)}}),r(a,t,l),e.wrappers.SVGUseElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.EventTarget,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.wrap,s=window.SVGElementInstance;s&&(t.prototype=Object.create(n.prototype),r(t.prototype,{get correspondingElement(){return a(i(this).correspondingElement)},get correspondingUseElement(){return a(i(this).correspondingUseElement)},get parentNode(){return a(i(this).parentNode)},get childNodes(){throw new Error("Not implemented")},get firstChild(){return a(i(this).firstChild)},get lastChild(){return a(i(this).lastChild)},get previousSibling(){return a(i(this).previousSibling)},get nextSibling(){return a(i(this).nextSibling)}}),o(s,t),e.wrappers.SVGElementInstance=t)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){o(e,this)}var n=e.mixin,r=e.registerWrapper,o=e.setWrapper,i=e.unsafeUnwrap,a=e.unwrap,s=e.unwrapIfNeeded,c=e.wrap,l=window.CanvasRenderingContext2D;n(t.prototype,{get canvas(){return c(i(this).canvas)},drawImage:function(){arguments[0]=s(arguments[0]),i(this).drawImage.apply(i(this),arguments)},createPattern:function(){return arguments[0]=a(arguments[0]),i(this).createPattern.apply(i(this),arguments)}}),r(l,t,document.createElement("canvas").getContext("2d")),e.wrappers.CanvasRenderingContext2D=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){i(e,this)}var n=e.addForwardingProperties,r=e.mixin,o=e.registerWrapper,i=e.setWrapper,a=e.unsafeUnwrap,s=e.unwrapIfNeeded,c=e.wrap,l=window.WebGLRenderingContext;if(l){r(t.prototype,{get canvas(){return c(a(this).canvas)},texImage2D:function(){arguments[5]=s(arguments[5]),a(this).texImage2D.apply(a(this),arguments)},texSubImage2D:function(){arguments[6]=s(arguments[6]),a(this).texSubImage2D.apply(a(this),arguments)}});var u=Object.getPrototypeOf(l.prototype);u!==Object.prototype&&n(u,t.prototype);var d=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:null}:{};o(l,t,d),e.wrappers.WebGLRenderingContext=t}}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.Node,r=e.GetElementsByInterface,o=e.NonElementParentNodeInterface,i=e.ParentNodeInterface,a=e.SelectorsInterface,s=e.mixin,c=e.registerObject,l=e.registerWrapper,u=window.DocumentFragment;t.prototype=Object.create(n.prototype),s(t.prototype,i),s(t.prototype,a),s(t.prototype,r),s(t.prototype,o),l(u,t,document.createDocumentFragment()),e.wrappers.DocumentFragment=t;var d=c(document.createComment(""));e.wrappers.Comment=d}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){var t=d(u(e).ownerDocument.createDocumentFragment());n.call(this,t),c(t,this);var o=e.shadowRoot;f.set(this,o),this.treeScope_=new r(this,a(o||e)),h.set(this,e)}var n=e.wrappers.DocumentFragment,r=e.TreeScope,o=e.elementFromPoint,i=e.getInnerHTML,a=e.getTreeScope,s=e.mixin,c=e.rewrap,l=e.setInnerHTML,u=e.unsafeUnwrap,d=e.unwrap,p=e.wrap,h=new WeakMap,f=new WeakMap;t.prototype=Object.create(n.prototype),s(t.prototype,{constructor:t,get innerHTML(){return i(this)},set innerHTML(e){l(this,e),this.invalidateShadowRenderer()},get olderShadowRoot(){return f.get(this)||null},get host(){return h.get(this)||null},invalidateShadowRenderer:function(){return h.get(this).invalidateShadowRenderer()},elementFromPoint:function(e,t){return o(this,this.ownerDocument,e,t)},getSelection:function(){return document.getSelection()},get activeElement(){var e=d(this).ownerDocument.activeElement;if(!e||!e.nodeType)return null;for(var t=p(e);!this.contains(t);){for(;t.parentNode;)t=t.parentNode;if(!t.host)return null;t=t.host}return t}}),e.wrappers.ShadowRoot=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){var t=d(e).root;return t instanceof h?t.host:null}function n(t,n){if(t.shadowRoot){n=Math.min(t.childNodes.length-1,n);var r=t.childNodes[n];if(r){var o=e.getDestinationInsertionPoints(r);if(o.length>0){var i=o[0].parentNode;i.nodeType==Node.ELEMENT_NODE&&(t=i)}}}return t}function r(e){return e=u(e),t(e)||e}function o(e){a(e,this)}var i=e.registerWrapper,a=e.setWrapper,s=e.unsafeUnwrap,c=e.unwrap,l=e.unwrapIfNeeded,u=e.wrap,d=e.getTreeScope,p=window.Range,h=e.wrappers.ShadowRoot;o.prototype={get startContainer(){return r(s(this).startContainer)},get endContainer(){return r(s(this).endContainer)},get commonAncestorContainer(){return r(s(this).commonAncestorContainer)},setStart:function(e,t){e=n(e,t),s(this).setStart(l(e),t)},setEnd:function(e,t){e=n(e,t),s(this).setEnd(l(e),t)},setStartBefore:function(e){s(this).setStartBefore(l(e))},setStartAfter:function(e){s(this).setStartAfter(l(e))},setEndBefore:function(e){s(this).setEndBefore(l(e))},setEndAfter:function(e){s(this).setEndAfter(l(e))},selectNode:function(e){s(this).selectNode(l(e))},selectNodeContents:function(e){s(this).selectNodeContents(l(e))},compareBoundaryPoints:function(e,t){return s(this).compareBoundaryPoints(e,c(t))},extractContents:function(){return u(s(this).extractContents())},cloneContents:function(){return u(s(this).cloneContents())},insertNode:function(e){s(this).insertNode(l(e))},surroundContents:function(e){s(this).surroundContents(l(e))},cloneRange:function(){return u(s(this).cloneRange())},isPointInRange:function(e,t){return s(this).isPointInRange(l(e),t)},comparePoint:function(e,t){return s(this).comparePoint(l(e),t)},intersectsNode:function(e){return s(this).intersectsNode(l(e))},toString:function(){return s(this).toString()}},p.prototype.createContextualFragment&&(o.prototype.createContextualFragment=function(e){return u(s(this).createContextualFragment(e))}),i(window.Range,o,document.createRange()),e.wrappers.Range=o}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){e.previousSibling_=e.previousSibling,e.nextSibling_=e.nextSibling,e.parentNode_=e.parentNode}function n(n,o,i){var a=x(n),s=x(o),c=i?x(i):null;if(r(o),t(o),i)n.firstChild===i&&(n.firstChild_=i),i.previousSibling_=i.previousSibling;else{n.lastChild_=n.lastChild,n.lastChild===n.firstChild&&(n.firstChild_=n.firstChild);var l=R(a.lastChild);l&&(l.nextSibling_=l.nextSibling)}e.originalInsertBefore.call(a,s,c)}function r(n){var r=x(n),o=r.parentNode;if(o){var i=R(o);t(n),n.previousSibling&&(n.previousSibling.nextSibling_=n),n.nextSibling&&(n.nextSibling.previousSibling_=n),i.lastChild===n&&(i.lastChild_=n),i.firstChild===n&&(i.firstChild_=n),e.originalRemoveChild.call(o,r)}}function o(e){P.set(e,[])}function i(e){var t=P.get(e);return t||P.set(e,t=[]),t}function a(e){for(var t=[],n=0,r=e.firstChild;r;r=r.nextSibling)t[n++]=r;return t}function s(){for(var e=0;e=0;o--){var i=r[o],a=m(i);if(a){var s=i.olderShadowRoot;s&&(n=f(s));for(var c=0;c=0;u--)l=Object.create(l);["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"].forEach(function(e){var t=o[e];t&&(l[e]=function(){j(this)instanceof r||O(this),t.apply(j(this),arguments)})});var d={prototype:l};i&&(d["extends"]=i),r.prototype=o,r.prototype.constructor=r,e.constructorTable.set(l,r),e.nativePrototypeTable.set(o,l);k.call(C(this),t,d);return r},E([window.HTMLDocument||window.Document],["registerElement"])}E([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","insertBefore","querySelector","querySelectorAll","removeChild","replaceChild"]),E([window.HTMLBodyElement,window.HTMLHeadElement,window.HTMLHtmlElement],_),E([window.HTMLDocument||window.Document],["adoptNode","importNode","contains","createComment","createDocumentFragment","createElement","createElementNS","createEvent","createEventNS","createRange","createTextNode","createTreeWalker","elementFromPoint","getElementById","getElementsByName","getSelection"]),S(t.prototype,l),S(t.prototype,d),S(t.prototype,f),S(t.prototype,p),S(t.prototype,{get implementation(){var e=H.get(this);return e?e:(e=new a(C(this).implementation),H.set(this,e),e)},get defaultView(){return j(C(this).defaultView)}}),T(window.Document,t,document.implementation.createHTMLDocument("")),window.HTMLDocument&&T(window.HTMLDocument,t),D([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]);var A=document.implementation.createDocument;a.prototype.createDocument=function(){return arguments[2]=C(arguments[2]),j(A.apply(N(this),arguments))},s(a,"createDocumentType"),s(a,"createHTMLDocument"),c(a,"hasFeature"),T(window.DOMImplementation,a),E([window.DOMImplementation],["createDocument","createDocumentType","createHTMLDocument","hasFeature"]),e.adoptNodeNoRemove=r,e.wrappers.DOMImplementation=a,e.wrappers.Document=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.EventTarget,r=e.wrappers.Selection,o=e.mixin,i=e.registerWrapper,a=e.renderAllPending,s=e.unwrap,c=e.unwrapIfNeeded,l=e.wrap,u=window.Window,d=window.getComputedStyle,p=window.getDefaultComputedStyle,h=window.getSelection;t.prototype=Object.create(n.prototype),u.prototype.getComputedStyle=function(e,t){return l(this||window).getComputedStyle(c(e),t)},p&&(u.prototype.getDefaultComputedStyle=function(e,t){return l(this||window).getDefaultComputedStyle(c(e),t)}),u.prototype.getSelection=function(){return l(this||window).getSelection()},delete window.getComputedStyle,delete window.getDefaultComputedStyle,delete window.getSelection,["addEventListener","removeEventListener","dispatchEvent"].forEach(function(e){u.prototype[e]=function(){var t=l(this||window);return t[e].apply(t,arguments)},delete window[e]}),o(t.prototype,{getComputedStyle:function(e,t){return a(),d.call(s(this),c(e),t)},getSelection:function(){return a(),new r(h.call(s(this)))},get document(){return l(s(this).document)}}),p&&(t.prototype.getDefaultComputedStyle=function(e,t){return a(),p.call(s(this),c(e),t)}),i(u,t,window),e.wrappers.Window=t}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e.unwrap,n=window.DataTransfer||window.Clipboard,r=n.prototype.setDragImage;r&&(n.prototype.setDragImage=function(e,n,o){r.call(this,t(e),n,o)})}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){var t;t=e instanceof i?e:new i(e&&o(e)),r(t,this)}var n=e.registerWrapper,r=e.setWrapper,o=e.unwrap,i=window.FormData;i&&(n(i,t,new i),e.wrappers.FormData=t)}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e.unwrapIfNeeded,n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(e){return n.call(this,t(e))}}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){var t=n[e],r=window[t];if(r){var o=document.createElement(e),i=o.constructor;window[t]=i}}var n=(e.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content:"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(n).forEach(t),Object.getOwnPropertyNames(e.wrappers).forEach(function(t){window[t]=e.wrappers[t]})}(window.ShadowDOMPolyfill),function(e){function t(e,t){var n="";return Array.prototype.forEach.call(e,function(e){n+=e.textContent+"\n\n"}),t||(n=n.replace(d,"")),n}function n(e){var t=document.createElement("style");return t.textContent=e,t}function r(e){var t=n(e);document.head.appendChild(t);var r=[];if(t.sheet)try{r=t.sheet.cssRules}catch(o){}else console.warn("sheet not found",t);return t.parentNode.removeChild(t),r}function o(){C.initialized=!0,document.body.appendChild(C);var e=C.contentDocument,t=e.createElement("base");t.href=document.baseURI,e.head.appendChild(t)}function i(e){C.initialized||o(),document.body.appendChild(C),e(C.contentDocument),document.body.removeChild(C)}function a(e,t){if(t){var o;if(e.match("@import")&&D){var a=n(e);i(function(e){e.head.appendChild(a.impl),o=Array.prototype.slice.call(a.sheet.cssRules,0),t(o)})}else o=r(e),t(o)}}function s(e){e&&l().appendChild(document.createTextNode(e))}function c(e,t){var r=n(e);r.setAttribute(t,""),r.setAttribute(x,""),document.head.appendChild(r)}function l(){return j||(j=document.createElement("style"),j.setAttribute(x,""),j[x]=!0),j}var u={strictStyling:!1,registry:{},shimStyling:function(e,n,r){var o=this.prepareRoot(e,n,r),i=this.isTypeExtension(r),a=this.makeScopeSelector(n,i),s=t(o,!0);s=this.scopeCssText(s,a),e&&(e.shimmedStyle=s),this.addCssToDocument(s,n)},shimStyle:function(e,t){return this.shimCssText(e.textContent,t)},shimCssText:function(e,t){return e=this.insertDirectives(e),this.scopeCssText(e,t)},makeScopeSelector:function(e,t){return e?t?"[is="+e+"]":e:""},isTypeExtension:function(e){return e&&e.indexOf("-")<0},prepareRoot:function(e,t,n){var r=this.registerRoot(e,t,n);return this.replaceTextInStyles(r.rootStyles,this.insertDirectives),this.removeStyles(e,r.rootStyles),this.strictStyling&&this.applyScopeToContent(e,t),r.scopeStyles},removeStyles:function(e,t){for(var n,r=0,o=t.length;r","+","~"],r=e,o="["+t+"]";return n.forEach(function(e){var t=r.split(e);r=t.map(function(e){var t=e.trim().replace(L,"");return t&&n.indexOf(t)<0&&t.indexOf(o)<0&&(e=t.replace(/([^:]*)(:*)(.*)/,"$1"+o+"$2$3")),e}).join(e)}),r},insertPolyfillHostInCssText:function(e){return e.replace(M,b).replace(T,g)},propertiesFromRule:function(e){var t=e.style.cssText;e.style.content&&!e.style.content.match(/['"]+|attr/)&&(t=t.replace(/content:[^;]*;/g,"content: '"+e.style.content+"';"));var n=e.style;for(var r in n)"initial"===n[r]&&(t+=r+": initial; ");return t},replaceTextInStyles:function(e,t){e&&t&&(e instanceof Array||(e=[e]),Array.prototype.forEach.call(e,function(e){e.textContent=t.call(this,e.textContent)},this))},addCssToDocument:function(e,t){e.match("@import")?c(e,t):s(e)}},d=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,p=/\/\*\s*@polyfill ([^*]*\*+([^\/*][^*]*\*+)*\/)([^{]*?){/gim,h=/polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,f=/\/\*\s@polyfill-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim,m=/(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,w=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim,v=/(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,g="-shadowcsshost",b="-shadowcsscontext",y=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",E=new RegExp("("+g+y,"gim"),_=new RegExp("("+b+y,"gim"),S="([>\\s~+[.,{:][\\s\\S]*)?$",T=/\:host/gim,M=/\:host-context/gim,O=g+"-no-combinator",L=new RegExp(g,"gim"),N=(new RegExp(b,"gim"),[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow\//g,/\/shadow-deep\//g,/\^\^/g,/\^(?!=)/g]),C=document.createElement("iframe");C.style.display="none";var j,D=navigator.userAgent.match("Chrome"),H="shim-shadowdom",x="shim-shadowdom-css",R="no-shim";if(window.ShadowDOMPolyfill){s("style { display: none !important; }\n");var I=ShadowDOMPolyfill.wrap(document),P=I.querySelector("head");P.insertBefore(l(),P.childNodes[0]),document.addEventListener("DOMContentLoaded",function(){e.urlResolver;if(window.HTMLImports&&!HTMLImports.useNative){var t="link[rel=stylesheet]["+H+"]",n="style["+H+"]";HTMLImports.importer.documentPreloadSelectors+=","+t,HTMLImports.importer.importsPreloadSelectors+=","+t,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSelectors,t,n].join(",");var r=HTMLImports.parser.parseGeneric;HTMLImports.parser.parseGeneric=function(e){if(!e[x]){var t=e.__importElement||e;if(!t.hasAttribute(H))return void r.call(this,e);e.__resource&&(t=e.ownerDocument.createElement("style"),t.textContent=e.__resource),HTMLImports.path.resolveUrlsInStyle(t,e.href),t.textContent=u.shimStyle(t),t.removeAttribute(H,""),t.setAttribute(x,""),t[x]=!0,t.parentNode!==P&&(e.parentNode===P?P.replaceChild(t,e):this.addElementToDocument(t)),t.__importParsed=!0,this.markParsingComplete(e),this.parseNext()}};var o=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(e){return"link"===e.localName&&"stylesheet"===e.rel&&e.hasAttribute(H)?e.__resource:o.call(this,e)}}})}e.ShadowCSS=u}(window.WebComponents)),function(e){window.ShadowDOMPolyfill?(window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}}(window.WebComponents),function(e){"use strict";function t(e){return void 0!==p[e]}function n(){s.call(this),this._isInvalid=!0}function r(e){return""==e&&n.call(this),e.toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&t<127&&[34,35,60,62,63,96].indexOf(t)==-1?e:encodeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&t<127&&[34,35,60,62,96].indexOf(t)==-1?e:encodeURIComponent(e)}function a(e,a,s){function c(e){b.push(e)}var l=a||"scheme start",u=0,d="",v=!1,g=!1,b=[];e:for(;(e[u-1]!=f||0==u)&&!this._isInvalid;){var y=e[u];switch(l){case"scheme start":if(!y||!m.test(y)){if(a){c("Invalid scheme.");break e}d="",l="no scheme";continue}d+=y.toLowerCase(),l="scheme";break;case"scheme":if(y&&w.test(y))d+=y.toLowerCase();else{if(":"!=y){if(a){if(f==y)break e;c("Code point not allowed in scheme: "+y);break e}d="",u=0,l="no scheme";continue}if(this._scheme=d,d="",a)break e;t(this._scheme)&&(this._isRelative=!0),l="file"==this._scheme?"relative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==y?(this._query="?",l="query"):"#"==y?(this._fragment="#",l="fragment"):f!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this._schemeData+=o(y));break;case"no scheme":if(s&&t(s._scheme)){l="relative";continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!=y||"/"!=e[u+1]){c("Expected /, got: "+y),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=s._scheme),f==y){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;break e}if("/"==y||"\\"==y)"\\"==y&&c("\\ is an invalid code point."),l="relative slash";else if("?"==y)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,l="query";else{if("#"!=y){var E=e[u+1],_=e[u+2];("file"!=this._scheme||!m.test(y)||":"!=E&&"|"!=E||f!=_&&"/"!=_&&"\\"!=_&&"?"!=_&&"#"!=_)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),l="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,l="fragment"}break;case"relative slash":if("/"!=y&&"\\"!=y){"file"!=this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),l="relative path";continue}"\\"==y&&c("\\ is an invalid code point."),l="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=y){c("Expected '/', got: "+y),l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!=y){c("Expected '/', got: "+y);continue}break;case"authority ignore slashes":if("/"!=y&&"\\"!=y){l="authority";continue}c("Expected authority, got: "+y);break;case"authority":if("@"==y){v&&(c("@ already seen."),d+="%40"),v=!0;for(var S=0;S0){var o=n[r-1],i=h(o,e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=w.get(e);t||w.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=w.get(e),n=0;n=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,o){var i=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Math.random()),i.open("GET",n,t.async),i.addEventListener("readystatechange",function(e){if(4===i.readyState){var n=null;try{var a=i.getResponseHeader("Location");a&&(n="/"===a.substr(0,1)?location.origin+a:a)}catch(e){console.error(e.message)}r.call(o,!t.ok(i)&&i,i.response||i.responseText,n)}}),i.send(),i},loadDocument:function(e,t,n){this.load(e,t,n).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(function(e){var t=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(var t,n=0,r=e.length;n-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,r,null,a)}.bind(this),0)}else{var s=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t.load(e,s)}else setTimeout(function(){this.receive(e,r,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.cache[e]=r;for(var i,a=this.pending[e],s=0,c=a.length;s=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEvent(new CustomEvent("load",{bubbles:!1})):e.dispatchEvent(new CustomEvent("error",{bubbles:!1})),e.__pending)for(var t;e.__pending.length;)t=e.__pending.shift(),t&&t({target:e});this.parseNext()},parseLink:function(e){t(e)?this.parseImport(e):(e.href=e.href,this.parseGeneric(e))},parseStyle:function(e){var t=e;e=i(e),t.__appliedElement=e,e.__importElement=t,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:function(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLink;return t},addElementToDocument:function(e){var t=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){var n=this,r=function(o){e.removeEventListener("load",r),e.removeEventListener("error",r),t&&t(o),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addEventListener("error",r),l&&"style"===e.localName){var o=!1;if(e.textContent.indexOf("@import")==-1)o=!0;else if(e.sheet){o=!0;for(var i,a=e.sheet.cssRules,s=a?a.length:0,c=0;c=0},hasResource:function(e){return!t(e)||void 0!==e.__doc}};e.parser=p,e.IMPORT_SELECTOR=d}),window.HTMLImports.addModule(function(e){function t(e){return n(e,a)}function n(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}function r(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}function o(e,t){var n=document.implementation.createHTMLDocument(a);n._URL=t;var o=n.createElement("base");o.setAttribute("href",t),n.baseURI||r(n)||Object.defineProperty(n,"baseURI",{value:t});var i=n.createElement("meta");return i.setAttribute("charset","utf-8"),n.head.appendChild(i),n.head.appendChild(o),n.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}var i=e.flags,a=e.IMPORT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,l=e.Loader,u=e.Observer,d=e.parser,p={documents:{},documentPreloadSelectors:s,importsPreloadSelectors:[s].join(","),loadNode:function(e){h.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);h.addNodes(t)},marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){var t=e.ownerDocument||e;return t===c?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,n,r,a,s){if(i.load&&console.log("loaded",e,n),n.__resource=r,n.__error=a,t(n)){var c=this.documents[e];void 0===c&&(c=a?null:o(r,s||e),c&&(c.__importLink=n,this.bootDocument(c)),this.documents[e]=c),n.__doc=c}d.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),d.parseNext()},loadedAll:function(){d.parseNext()}},h=new l(p.loaded.bind(p),p.loadedAll.bind(p));if(p.observer=new u,!document.baseURI){var f={get:function(){var e=document.querySelector("base");return e?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",f),Object.defineProperty(c,"baseURI",f)}e.importer=p,e.importLoader=h}),window.HTMLImports.addModule(function(e){var t=e.parser,n=e.importer,r={added:function(e){for(var r,o,i,a,s=0,c=e.length;s=0)){n.push(e);for(var r,o=e.querySelectorAll("link[rel="+a+"]"),s=0,c=o.length;s=0&&b(r,HTMLElement),r)}function f(e,t){var n=e[t];e[t]=function(){var e=n.apply(this,arguments);return v(e),e}}var m,w=(e.isIE,e.upgradeDocumentTree),v=e.upgradeAll,g=e.upgradeWithDefinition,b=e.implementPrototype,y=e.useNative,E=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],_={},S="http://www.w3.org/1999/xhtml",T=document.createElement.bind(document),M=document.createElementNS.bind(document);m=Object.__proto__||y?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1},f(Node.prototype,"cloneNode"),f(document,"importNode"),document.registerElement=t,document.createElement=h,document.createElementNS=p,e.registry=_,e["instanceof"]=m,e.reservedTagList=E,e.getRegisteredDefinition=l,document.register=document.registerElement}),function(e){function t(){i(window.wrap(document)),window.CustomElements.ready=!0;var e=window.requestAnimationFrame||function(e){setTimeout(e,16)};e(function(){setTimeout(function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}var n=e.useNative,r=e.initializeModules;e.isIE;if(n){var o=function(){};e.watchShadow=o,e.upgrade=o,e.upgradeAll=o,e.upgradeDocumentTree=o,e.upgradeSubtree=o,e.takeRecords=o,e["instanceof"]=function(e,t){return e instanceof t}}else r();var i=e.upgradeDocumentTree,a=e.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e["import"]&&a(wrap(e["import"]))}),"complete"===document.readyState||e.flags.eager)t();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,t)}else t()}(window.CustomElements),function(e){Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice();return r.push.apply(r,arguments),t.apply(e,r)}})}(window.WebComponents),function(e){var t=document.createElement("style");t.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var n=document.querySelector("head");n.insertBefore(t,n.firstChild)}(window.WebComponents),function(e){window.Platform=e}(window.WebComponents); \ No newline at end of file diff --git a/docs/browserconfig.xml b/docs/browserconfig.xml deleted file mode 100644 index 5aecc91..0000000 --- a/docs/browserconfig.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - #00aba9 - - - diff --git a/docs/cache-polyfill.js b/docs/cache-polyfill.js deleted file mode 100644 index 745887a..0000000 --- a/docs/cache-polyfill.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Copyright 2015 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -(function () { - var nativeAddAll = Cache.prototype.addAll; - var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/); - - // Has nice behavior of `var` which everyone hates - if (userAgent) { - var agent = userAgent[1]; - var version = parseInt(userAgent[2]); - } - - if ( - nativeAddAll && (!userAgent || - (agent === 'Firefox' && version >= 46) || - (agent === 'Chrome' && version >= 50) - ) - ) { - return; - } - - Cache.prototype.addAll = function addAll(requests) { - var cache = this; - - // Since DOMExceptions are not constructable: - function NetworkError(message) { - this.name = 'NetworkError'; - this.code = 19; - this.message = message; - } - - NetworkError.prototype = Object.create(Error.prototype); - - return Promise.resolve().then(function () { - if (arguments.length < 1) throw new TypeError(); - - // Simulate sequence<(Request or USVString)> binding: - var sequence = []; - - requests = requests.map(function (request) { - if (request instanceof Request) { - return request; - } - else { - return String(request); // may throw TypeError - } - }); - - return Promise.all( - requests.map(function (request) { - if (typeof request === 'string') { - request = new Request(request); - } - - var scheme = new URL(request.url).protocol; - - if (scheme !== 'http:' && scheme !== 'https:') { - throw new NetworkError("Invalid scheme"); - } - - return fetch(request.clone()); - }) - ); - }).then(function (responses) { - // If some of the responses has not OK-eish status, - // then whole operation should reject - if (responses.some(function (response) { - return !response.ok; - })) { - throw new NetworkError('Incorrect response status'); - } - - // TODO: check that requests don't overwrite one another - // (don't think this is possible to polyfill due to opaque responses) - return Promise.all( - responses.map(function (response, i) { - return cache.put(requests[i], response); - }) - ); - }).then(function () { - return undefined; - }); - }; - - Cache.prototype.add = function add(request) { - return this.addAll([request]); - }; -}()); \ No newline at end of file diff --git a/docs/favicon-16x16.png b/docs/favicon-16x16.png deleted file mode 100644 index e87200c..0000000 Binary files a/docs/favicon-16x16.png and /dev/null differ diff --git a/docs/favicon-32x32.png b/docs/favicon-32x32.png deleted file mode 100644 index b9bd669..0000000 Binary files a/docs/favicon-32x32.png and /dev/null differ diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index 99bb5e6..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index f5d2135..0000000 --- a/docs/index.html +++ /dev/null @@ -1,9401 +0,0 @@ - - jsGBC Web - - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Loading...

- -
- -
- -
Insert Cartridge
- - -
- - -
Download Save
- -
- - -
Upload Save
- - -
-
-
-
-
- - Fork me on GitHub - - - - - - \ No newline at end of file diff --git a/docs/jsgbc-web.js b/docs/jsgbc-web.js deleted file mode 100644 index 16a496c..0000000 --- a/docs/jsgbc-web.js +++ /dev/null @@ -1,47 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["jsgbc-web"]=e():t["jsgbc-web"]=e()}(window,function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=58)}([function(t,e,r){"use strict";var i=r(4),s=r(50),n=r(17),a=r(97),o=r(11);function h(t){return t}function u(t,e){for(var r=0;r1;)try{return l.stringifyByChunk(t,i,r)}catch(t){r=Math.floor(r/2)}return l.stringifyByChar(t)}function f(t,e){for(var r=0;r "+t:t}},t.exports=i},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)s(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,i,s){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+i),s);else for(var n=0;n0&&e-1 in t)}B.fn=B.prototype={jquery:"3.3.1",constructor:B,length:0,toArray:function(){return h.call(this)},get:function(t){return null==t?h.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=B.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return B.each(this,t)},map:function(t){return this.pushStack(B.map(this,function(e,r){return t.call(e,r,e)}))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,r=+t+(t<0?e:0);return this.pushStack(r>=0&&r+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),q=new RegExp(I),Z=new RegExp("^"+D+"$"),V={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,K=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),tt=function(t,e,r){var i="0x"+e-65536;return i!=i||r?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){f()},st=Ct(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{H.apply(L=E.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(t){H={apply:L.length?function(t,e){x.apply(t,E.call(e))}:function(t,e){for(var r=t.length,i=0;t[r++]=e[i++];);t.length=r-1}}}function nt(t,e,i,s){var n,o,u,l,c,m,y,C=e&&e.ownerDocument,k=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return i;if(!s&&((e?e.ownerDocument||e:w)!==d&&f(e),e=e||d,p)){if(11!==k&&(c=$.exec(t)))if(n=c[1]){if(9===k){if(!(u=e.getElementById(n)))return i;if(u.id===n)return i.push(u),i}else if(C&&(u=C.getElementById(n))&&b(e,u)&&u.id===n)return i.push(u),i}else{if(c[2])return H.apply(i,e.getElementsByTagName(t)),i;if((n=c[3])&&r.getElementsByClassName&&e.getElementsByClassName)return H.apply(i,e.getElementsByClassName(n)),i}if(r.qsa&&!T[t+" "]&&(!g||!g.test(t))){if(1!==k)C=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((l=e.getAttribute("id"))?l=l.replace(et,rt):e.setAttribute("id",l=v),o=(m=a(t)).length;o--;)m[o]="#"+l+" "+yt(m[o]);y=m.join(","),C=Q.test(t)&&pt(e.parentNode)||e}if(y)try{return H.apply(i,C.querySelectorAll(y)),i}catch(t){}finally{l===v&&e.removeAttribute("id")}}}return h(t.replace(N,"$1"),e,i,s)}function at(){var t=[];return function e(r,s){return t.push(r+" ")>i.cacheLength&&delete e[t.shift()],e[r+" "]=s}}function ot(t){return t[v]=!0,t}function ht(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var r=t.split("|"),s=r.length;s--;)i.attrHandle[r[s]]=e}function lt(t,e){var r=e&&t,i=r&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(r)for(;r=r.nextSibling;)if(r===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var r=e.nodeName.toLowerCase();return("input"===r||"button"===r)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ot(function(e){return e=+e,ot(function(r,i){for(var s,n=t([],r.length,e),a=n.length;a--;)r[s=n[a]]&&(r[s]=!(i[s]=r[s]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in r=nt.support={},n=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},f=nt.setDocument=function(t){var e,s,a=t?t.ownerDocument||t:w;return a!==d&&9===a.nodeType&&a.documentElement?(m=(d=a).documentElement,p=!n(d),w!==d&&(s=d.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",it,!1):s.attachEvent&&s.attachEvent("onunload",it)),r.attributes=ht(function(t){return t.className="i",!t.getAttribute("className")}),r.getElementsByTagName=ht(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),r.getElementsByClassName=X.test(d.getElementsByClassName),r.getById=ht(function(t){return m.appendChild(t).id=v,!d.getElementsByName||!d.getElementsByName(v).length}),r.getById?(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var r=e.getElementById(t);return r?[r]:[]}}):(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){var r=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return r&&r.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var r,i,s,n=e.getElementById(t);if(n){if((r=n.getAttributeNode("id"))&&r.value===t)return[n];for(s=e.getElementsByName(t),i=0;n=s[i++];)if((r=n.getAttributeNode("id"))&&r.value===t)return[n]}return[]}}),i.find.TAG=r.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):r.qsa?e.querySelectorAll(t):void 0}:function(t,e){var r,i=[],s=0,n=e.getElementsByTagName(t);if("*"===t){for(;r=n[s++];)1===r.nodeType&&i.push(r);return i}return n},i.find.CLASS=r.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&p)return e.getElementsByClassName(t)},y=[],g=[],(r.qsa=X.test(d.querySelectorAll))&&(ht(function(t){m.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+O+"*(?:value|"+P+")"),t.querySelectorAll("[id~="+v+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+v+"+*").length||g.push(".#.+[+~]")}),ht(function(t){t.innerHTML="";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+O+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=X.test(C=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ht(function(t){r.disconnectedMatch=C.call(t,"*"),C.call(t,"[s!='']:x"),y.push("!=",I)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),e=X.test(m.compareDocumentPosition),b=e||X.test(m.contains)?function(t,e){var r=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!r.sortDetached&&e.compareDocumentPosition(t)===i?t===d||t.ownerDocument===w&&b(w,t)?-1:e===d||e.ownerDocument===w&&b(w,e)?1:l?M(l,t)-M(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var r,i=0,s=t.parentNode,n=e.parentNode,a=[t],o=[e];if(!s||!n)return t===d?-1:e===d?1:s?-1:n?1:l?M(l,t)-M(l,e):0;if(s===n)return lt(t,e);for(r=t;r=r.parentNode;)a.unshift(r);for(r=e;r=r.parentNode;)o.unshift(r);for(;a[i]===o[i];)i++;return i?lt(a[i],o[i]):a[i]===w?-1:o[i]===w?1:0},d):d},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&f(t),e=e.replace(U,"='$1']"),r.matchesSelector&&p&&!T[e+" "]&&(!y||!y.test(e))&&(!g||!g.test(e)))try{var i=C.call(t,e);if(i||r.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return nt(e,d,null,[t]).length>0},nt.contains=function(t,e){return(t.ownerDocument||t)!==d&&f(t),b(t,e)},nt.attr=function(t,e){(t.ownerDocument||t)!==d&&f(t);var s=i.attrHandle[e.toLowerCase()],n=s&&F.call(i.attrHandle,e.toLowerCase())?s(t,e,!p):void 0;return void 0!==n?n:r.attributes||!p?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},nt.escape=function(t){return(t+"").replace(et,rt)},nt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},nt.uniqueSort=function(t){var e,i=[],s=0,n=0;if(c=!r.detectDuplicates,l=!r.sortStable&&t.slice(0),t.sort(A),c){for(;e=t[n++];)e===t[n]&&(s=i.push(n));for(;s--;)t.splice(i[s],1)}return l=null,t},s=nt.getText=function(t){var e,r="",i=0,n=t.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=s(t)}else if(3===n||4===n)return t.nodeValue}else for(;e=t[i++];)r+=s(e);return r},(i=nt.selectors={cacheLength:50,createPseudo:ot,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(K,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(K,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||nt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&nt.error(t[0]),t},PSEUDO:function(t){var e,r=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":r&&q.test(r)&&(e=a(r,!0))&&(e=r.indexOf(")",r.length-e)-r.length)&&(t[0]=t[0].slice(0,e),t[2]=r.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(K,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var s=nt.attr(i,t);return null==s?"!="===e:!e||(s+="","="===e?s===r:"!="===e?s!==r:"^="===e?r&&0===s.indexOf(r):"*="===e?r&&s.indexOf(r)>-1:"$="===e?r&&s.slice(-r.length)===r:"~="===e?(" "+s.replace(G," ")+" ").indexOf(r)>-1:"|="===e&&(s===r||s.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,r,i,s){var n="nth"!==t.slice(0,3),a="last"!==t.slice(-4),o="of-type"===e;return 1===i&&0===s?function(t){return!!t.parentNode}:function(e,r,h){var u,l,c,f,d,m,p=n!==a?"nextSibling":"previousSibling",g=e.parentNode,y=o&&e.nodeName.toLowerCase(),C=!h&&!o,b=!1;if(g){if(n){for(;p;){for(f=e;f=f[p];)if(o?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;m=p="only"===t&&!m&&"nextSibling"}return!0}if(m=[a?g.firstChild:g.lastChild],a&&C){for(b=(d=(u=(l=(c=(f=g)[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]||[])[0]===k&&u[1])&&u[2],f=d&&g.childNodes[d];f=++d&&f&&f[p]||(b=d=0)||m.pop();)if(1===f.nodeType&&++b&&f===e){l[t]=[k,d,b];break}}else if(C&&(b=d=(u=(l=(c=(f=e)[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]||[])[0]===k&&u[1]),!1===b)for(;(f=++d&&f&&f[p]||(b=d=0)||m.pop())&&((o?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(C&&((l=(c=f[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]=[k,b]),f!==e)););return(b-=s)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var r,s=i.pseudos[t]||i.setFilters[t.toLowerCase()]||nt.error("unsupported pseudo: "+t);return s[v]?s(e):s.length>1?(r=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,r){for(var i,n=s(t,e),a=n.length;a--;)t[i=M(t,n[a])]=!(r[i]=n[a])}):function(t){return s(t,0,r)}):s}},pseudos:{not:ot(function(t){var e=[],r=[],i=o(t.replace(N,"$1"));return i[v]?ot(function(t,e,r,s){for(var n,a=i(t,null,s,[]),o=t.length;o--;)(n=a[o])&&(t[o]=!(e[o]=n))}):function(t,s,n){return e[0]=t,i(e,null,n,r),e[0]=null,!r.pop()}}),has:ot(function(t){return function(e){return nt(t,e).length>0}}),contains:ot(function(t){return t=t.replace(K,tt),function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}}),lang:ot(function(t){return Z.test(t||"")||nt.error("unsupported lang: "+t),t=t.replace(K,tt).toLowerCase(),function(e){var r;do{if(r=p?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(r=r.toLowerCase())===t||0===r.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:function(t){return t===m},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,r){return[r<0?r+e:r]}),even:mt(function(t,e){for(var r=0;r=0;)t.push(i);return t}),gt:mt(function(t,e,r){for(var i=r<0?r+e:r;++i1?function(e,r,i){for(var s=t.length;s--;)if(!t[s](e,r,i))return!1;return!0}:t[0]}function vt(t,e,r,i,s){for(var n,a=[],o=0,h=t.length,u=null!=e;o-1&&(n[u]=!(a[u]=c))}}else y=vt(y===a?y.splice(m,y.length):y),s?s(null,a,y,h):H.apply(a,y)})}function kt(t){for(var e,r,s,n=t.length,a=i.relative[t[0].type],o=a||i.relative[" "],h=a?1:0,l=Ct(function(t){return t===e},o,!0),c=Ct(function(t){return M(e,t)>-1},o,!0),f=[function(t,r,i){var s=!a&&(i||r!==u)||((e=r).nodeType?l(t,r,i):c(t,r,i));return e=null,s}];h1&&bt(f),h>1&&yt(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(N,"$1"),r,h0,s=t.length>0,n=function(n,a,o,h,l){var c,m,g,y=0,C="0",b=n&&[],v=[],w=u,B=n||s&&i.find.TAG("*",l),S=k+=null==w?1:Math.random()||.1,R=B.length;for(l&&(u=a===d||a||l);C!==R&&null!=(c=B[C]);C++){if(s&&c){for(m=0,a||c.ownerDocument===d||(f(c),o=!p);g=t[m++];)if(g(c,a||d,o)){h.push(c);break}l&&(k=S)}r&&((c=!g&&c)&&y--,n&&b.push(c))}if(y+=C,r&&C!==y){for(m=0;g=e[m++];)g(b,v,a,o);if(n){if(y>0)for(;C--;)b[C]||v[C]||(v[C]=_.call(h));v=vt(v)}H.apply(h,v),l&&!n&&v.length>0&&y+e.length>1&&nt.uniqueSort(h)}return l&&(k=S,u=w),b};return r?ot(n):n}(n,s))).selector=t}return o},h=nt.select=function(t,e,r,s){var n,h,u,l,c,f="function"==typeof t&&t,d=!s&&a(t=f.selector||t);if(r=r||[],1===d.length){if((h=d[0]=d[0].slice(0)).length>2&&"ID"===(u=h[0]).type&&9===e.nodeType&&p&&i.relative[h[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(K,tt),e)||[])[0]))return r;f&&(e=e.parentNode),t=t.slice(h.shift().value.length)}for(n=V.needsContext.test(t)?0:h.length;n--&&(u=h[n],!i.relative[l=u.type]);)if((c=i.find[l])&&(s=c(u.matches[0].replace(K,tt),Q.test(h[0].type)&&pt(e.parentNode)||e))){if(h.splice(n,1),!(t=s.length&&yt(h)))return H.apply(r,s),r;break}}return(f||o(t,d))(s,e,!p,r,!e||Q.test(t)&&pt(e.parentNode)||e),r},r.sortStable=v.split("").sort(A).join("")===v,r.detectDuplicates=!!c,f(),r.sortDetached=ht(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),ht(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,r){if(!r)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),r.attributes&&ht(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,r){if(!r&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ht(function(t){return null==t.getAttribute("disabled")})||ut(P,function(t,e,r){var i;if(!r)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),nt}(r);B.find=T,B.expr=T.selectors,B.expr[":"]=B.expr.pseudos,B.uniqueSort=B.unique=T.uniqueSort,B.text=T.getText,B.isXMLDoc=T.isXML,B.contains=T.contains,B.escapeSelector=T.escape;var A=function(t,e,r){for(var i=[],s=void 0!==r;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&B(t).is(r))break;i.push(t)}return i},F=function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r},L=B.expr.match.needsContext;function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var x=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,r){return C(e)?B.grep(t,function(t,i){return!!e.call(t,i,t)!==r}):e.nodeType?B.grep(t,function(t){return t===e!==r}):"string"!=typeof e?B.grep(t,function(t){return c.call(e,t)>-1!==r}):B.filter(e,t,r)}B.filter=function(t,e,r){var i=e[0];return r&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?B.find.matchesSelector(i,t)?[i]:[]:B.find.matches(t,B.grep(e,function(t){return 1===t.nodeType}))},B.fn.extend({find:function(t){var e,r,i=this.length,s=this;if("string"!=typeof t)return this.pushStack(B(t).filter(function(){for(e=0;e1?B.uniqueSort(r):r},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&L.test(t)?B(t):t||[],!1).length}});var E,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(B.fn.init=function(t,e,r){var i,s;if(!t)return this;if(r=r||E,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!i[1]&&e)return!e||e.jquery?(e||r).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof B?e[0]:e,B.merge(this,B.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),x.test(i[1])&&B.isPlainObject(e))for(i in e)C(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=a.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):C(t)?void 0!==r.ready?r.ready(t):t(B):B.makeArray(t,this)}).prototype=B.fn,E=B(a);var P=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function D(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}B.fn.extend({has:function(t){var e=B(t,this),r=e.length;return this.filter(function(){for(var t=0;t-1:1===r.nodeType&&B.find.matchesSelector(r,t))){n.push(r);break}return this.pushStack(n.length>1?B.uniqueSort(n):n)},index:function(t){return t?"string"==typeof t?c.call(B(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(B.uniqueSort(B.merge(this.get(),B(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),B.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,r){return A(t,"parentNode",r)},next:function(t){return D(t,"nextSibling")},prev:function(t){return D(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,r){return A(t,"nextSibling",r)},prevUntil:function(t,e,r){return A(t,"previousSibling",r)},siblings:function(t){return F((t.parentNode||{}).firstChild,t)},children:function(t){return F(t.firstChild)},contents:function(t){return _(t,"iframe")?t.contentDocument:(_(t,"template")&&(t=t.content||t),B.merge([],t.childNodes))}},function(t,e){B.fn[t]=function(r,i){var s=B.map(this,e,r);return"Until"!==t.slice(-5)&&(i=r),i&&"string"==typeof i&&(s=B.filter(i,s)),this.length>1&&(O[t]||B.uniqueSort(s),P.test(t)&&s.reverse()),this.pushStack(s)}});var W=/[^\x20\t\r\n\f]+/g;function I(t){return t}function G(t){throw t}function N(t,e,r,i){var s;try{t&&C(s=t.promise)?s.call(t).done(e).fail(r):t&&C(s=t.then)?s.call(t,e,r):e.apply(void 0,[t].slice(i))}catch(t){r.apply(void 0,[t])}}B.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return B.each(t.match(W)||[],function(t,r){e[r]=!0}),e}(t):B.extend({},t);var e,r,i,s,n=[],a=[],o=-1,h=function(){for(s=s||t.once,i=e=!0;a.length;o=-1)for(r=a.shift();++o-1;)n.splice(r,1),r<=o&&o--}),this},has:function(t){return t?B.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return s=a=[],n=r="",this},disabled:function(){return!n},lock:function(){return s=a=[],r||e||(n=r=""),this},locked:function(){return!!s},fireWith:function(t,r){return s||(r=[t,(r=r||[]).slice?r.slice():r],a.push(r),e||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},B.extend({Deferred:function(t){var e=[["notify","progress",B.Callbacks("memory"),B.Callbacks("memory"),2],["resolve","done",B.Callbacks("once memory"),B.Callbacks("once memory"),0,"resolved"],["reject","fail",B.Callbacks("once memory"),B.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return B.Deferred(function(r){B.each(e,function(e,i){var s=C(t[i[4]])&&t[i[4]];n[i[1]](function(){var t=s&&s.apply(this,arguments);t&&C(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[i[0]+"With"](this,s?[t]:arguments)})}),t=null}).promise()},then:function(t,i,s){var n=0;function a(t,e,i,s){return function(){var o=this,h=arguments,u=function(){var r,u;if(!(t=n&&(i!==G&&(o=void 0,h=[r]),e.rejectWith(o,h))}};t?l():(B.Deferred.getStackHook&&(l.stackTrace=B.Deferred.getStackHook()),r.setTimeout(l))}}return B.Deferred(function(r){e[0][3].add(a(0,r,C(s)?s:I,r.notifyWith)),e[1][3].add(a(0,r,C(t)?t:I)),e[2][3].add(a(0,r,C(i)?i:G))}).promise()},promise:function(t){return null!=t?B.extend(t,s):s}},n={};return B.each(e,function(t,r){var a=r[2],o=r[5];s[r[1]]=a.add,o&&a.add(function(){i=o},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),n[r[0]]=function(){return n[r[0]+"With"](this===n?void 0:this,arguments),this},n[r[0]+"With"]=a.fireWith}),s.promise(n),t&&t.call(n,n),n},when:function(t){var e=arguments.length,r=e,i=Array(r),s=h.call(arguments),n=B.Deferred(),a=function(t){return function(r){i[t]=this,s[t]=arguments.length>1?h.call(arguments):r,--e||n.resolveWith(i,s)}};if(e<=1&&(N(t,n.done(a(r)).resolve,n.reject,!e),"pending"===n.state()||C(s[r]&&s[r].then)))return n.then();for(;r--;)N(s[r],a(r),n.reject);return n.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;B.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},B.readyException=function(t){r.setTimeout(function(){throw t})};var j=B.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),B.ready()}B.fn.ready=function(t){return j.then(t).catch(function(t){B.readyException(t)}),this},B.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--B.readyWait:B.isReady)||(B.isReady=!0,!0!==t&&--B.readyWait>0||j.resolveWith(a,[B]))}}),B.ready.then=j.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?r.setTimeout(B.ready):(a.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var q=function(t,e,r,i,s,n,a){var o=0,h=t.length,u=null==r;if("object"===k(r))for(o in s=!0,r)q(t,e,o,r[o],!0,n,a);else if(void 0!==i&&(s=!0,C(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,r){return u.call(B(t),r)})),e))for(;o1,null,!0)},removeData:function(t){return this.each(function(){K.remove(this,t)})}}),B.extend({queue:function(t,e,r){var i;if(t)return e=(e||"fx")+"queue",i=Q.get(t,e),r&&(!i||Array.isArray(r)?i=Q.access(t,e,B.makeArray(r)):i.push(r)),i||[]},dequeue:function(t,e){e=e||"fx";var r=B.queue(t,e),i=r.length,s=r.shift(),n=B._queueHooks(t,e);"inprogress"===s&&(s=r.shift(),i--),s&&("fx"===e&&r.unshift("inprogress"),delete n.stop,s.call(t,function(){B.dequeue(t,e)},n)),!i&&n&&n.empty.fire()},_queueHooks:function(t,e){var r=e+"queueHooks";return Q.get(t,r)||Q.access(t,r,{empty:B.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",r])})})}}),B.fn.extend({queue:function(t,e){var r=2;return"string"!=typeof t&&(e=t,t="fx",r--),arguments.length\x20\t\r\n\f]+)/i,mt=/^$|^module$|\/(?:java|ecma)script/i,pt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function gt(t,e){var r;return r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?B.merge([t],r):r}function yt(t,e){for(var r=0,i=t.length;r-1)s&&s.push(n);else if(u=B.contains(n.ownerDocument,n),a=gt(c.appendChild(n),"script"),u&&yt(a),r)for(l=0;n=a[l++];)mt.test(n.type||"")&&r.push(n);return c}Ct=a.createDocumentFragment().appendChild(a.createElement("div")),(bt=a.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),Ct.appendChild(bt),y.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="",y.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue;var kt=a.documentElement,Bt=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Rt=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function At(){return!1}function Ft(){try{return a.activeElement}catch(t){}}function Lt(t,e,r,i,s,n){var a,o;if("object"==typeof e){for(o in"string"!=typeof r&&(i=i||r,r=void 0),e)Lt(t,o,r,i,e[o],n);return t}if(null==i&&null==s?(s=r,i=r=void 0):null==s&&("string"==typeof r?(s=i,i=void 0):(s=i,i=r,r=void 0)),!1===s)s=At;else if(!s)return t;return 1===n&&(a=s,(s=function(t){return B().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=B.guid++)),t.each(function(){B.event.add(this,e,s,i,r)})}B.event={global:{},add:function(t,e,r,i,s){var n,a,o,h,u,l,c,f,d,m,p,g=Q.get(t);if(g)for(r.handler&&(r=(n=r).handler,s=n.selector),s&&B.find.matchesSelector(kt,s),r.guid||(r.guid=B.guid++),(h=g.events)||(h=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==B&&B.event.triggered!==e.type?B.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(W)||[""]).length;u--;)d=p=(o=Rt.exec(e[u])||[])[1],m=(o[2]||"").split(".").sort(),d&&(c=B.event.special[d]||{},d=(s?c.delegateType:c.bindType)||d,c=B.event.special[d]||{},l=B.extend({type:d,origType:p,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&B.expr.match.needsContext.test(s),namespace:m.join(".")},n),(f=h[d])||((f=h[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,m,a)||t.addEventListener&&t.addEventListener(d,a)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=r.guid)),s?f.splice(f.delegateCount++,0,l):f.push(l),B.event.global[d]=!0)},remove:function(t,e,r,i,s){var n,a,o,h,u,l,c,f,d,m,p,g=Q.hasData(t)&&Q.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(W)||[""]).length;u--;)if(d=p=(o=Rt.exec(e[u])||[])[1],m=(o[2]||"").split(".").sort(),d){for(c=B.event.special[d]||{},f=h[d=(i?c.delegateType:c.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=n=f.length;n--;)l=f[n],!s&&p!==l.origType||r&&r.guid!==l.guid||o&&!o.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(f.splice(n,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(t,l));a&&!f.length&&(c.teardown&&!1!==c.teardown.call(t,m,g.handle)||B.removeEvent(t,d,g.handle),delete h[d])}else for(d in h)B.event.remove(t,d+e[u],r,i,!0);B.isEmptyObject(h)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,r,i,s,n,a,o=B.event.fix(t),h=new Array(arguments.length),u=(Q.get(this,"events")||{})[o.type]||[],l=B.event.special[o.type]||{};for(h[0]=o,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(n=[],a={},r=0;r-1:B.find(s,this,null,[u]).length),a[s]&&n.push(i);n.length&&o.push({elem:u,handlers:n})}return u=this,h\x20\t\r\n\f]*)[^>]*)\/>/gi,xt=/\s*$/g;function Mt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&B(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var r,i,s,n,a,o,h,u;if(1===e.nodeType){if(Q.hasData(t)&&(n=Q.access(t),a=Q.set(e,n),u=n.events))for(s in delete a.handle,a.events={},u)for(r=0,i=u[s].length;r1&&"string"==typeof m&&!y.checkClone&&Ht.test(m))return t.each(function(s){var n=t.eq(s);p&&(e[0]=m.call(this,s,n.html())),Wt(n,e,r,i)});if(f&&(n=(s=wt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===s.childNodes.length&&(s=n),n||i)){for(o=(a=B.map(gt(s,"script"),Pt)).length;c")},clone:function(t,e,r){var i,s,n,a,o,h,u,l=t.cloneNode(!0),c=B.contains(t.ownerDocument,t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||B.isXMLDoc(t)))for(a=gt(l),i=0,s=(n=gt(t)).length;i0&&yt(a,!c&>(t,"script")),l},cleanData:function(t){for(var e,r,i,s=B.event.special,n=0;void 0!==(r=t[n]);n++)if(X(r)){if(e=r[Q.expando]){if(e.events)for(i in e.events)s[i]?B.event.remove(r,i):B.removeEvent(r,i,e.handle);r[Q.expando]=void 0}r[K.expando]&&(r[K.expando]=void 0)}}}),B.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return q(this,function(t){return void 0===t?B.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return Wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(B.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return B.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},r=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!pt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=B.htmlPrefilter(t);try{for(;r=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-n-h-o-.5))),h}function te(t,e,r){var i=Nt(t),s=jt(t,e,i),n="border-box"===B.css(t,"boxSizing",!1,i),a=n;if(Gt.test(s)){if(!r)return s;s="auto"}return a=a&&(y.boxSizingReliable()||s===t.style[e]),("auto"===s||!parseFloat(s)&&"inline"===B.css(t,"display",!1,i))&&(s=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(s=parseFloat(s)||0)+Kt(t,e,r||(n?"border":"content"),a,i,s)+"px"}function ee(t,e,r,i,s){return new ee.prototype.init(t,e,r,i,s)}B.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=jt(t,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,n,a,o=Y(e),h=Zt.test(e),u=t.style;if(h||(e=$t(o)),a=B.cssHooks[e]||B.cssHooks[o],void 0===r)return a&&"get"in a&&void 0!==(s=a.get(t,!1,i))?s:u[e];"string"===(n=typeof r)&&(s=st.exec(r))&&s[1]&&(r=ht(t,e,s),n="number"),null!=r&&r==r&&("number"===n&&(r+=s&&s[3]||(B.cssNumber[o]?"":"px")),y.clearCloneStyle||""!==r||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(r=a.set(t,r,i))||(h?u.setProperty(e,r):u[e]=r))}},css:function(t,e,r,i){var s,n,a,o=Y(e);return Zt.test(e)||(e=$t(o)),(a=B.cssHooks[e]||B.cssHooks[o])&&"get"in a&&(s=a.get(t,!0,r)),void 0===s&&(s=jt(t,e,i)),"normal"===s&&e in Jt&&(s=Jt[e]),""===r||r?(n=parseFloat(s),!0===r||isFinite(n)?n||0:s):s}}),B.each(["height","width"],function(t,e){B.cssHooks[e]={get:function(t,r,i){if(r)return!qt.test(B.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,i):ot(t,Vt,function(){return te(t,e,i)})},set:function(t,r,i){var s,n=Nt(t),a="border-box"===B.css(t,"boxSizing",!1,n),o=i&&Kt(t,e,i,a,n);return a&&y.scrollboxSize()===n.position&&(o-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(n[e])-Kt(t,e,"border",!1,n)-.5)),o&&(s=st.exec(r))&&"px"!==(s[3]||"px")&&(t.style[e]=r,r=B.css(t,e)),Qt(0,r,o)}}}),B.cssHooks.marginLeft=Ut(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),B.each({margin:"",padding:"",border:"Width"},function(t,e){B.cssHooks[t+e]={expand:function(r){for(var i=0,s={},n="string"==typeof r?r.split(" "):[r];i<4;i++)s[t+nt[i]+e]=n[i]||n[i-2]||n[0];return s}},"margin"!==t&&(B.cssHooks[t+e].set=Qt)}),B.fn.extend({css:function(t,e){return q(this,function(t,e,r){var i,s,n={},a=0;if(Array.isArray(e)){for(i=Nt(t),s=e.length;a1)}}),B.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,r,i,s,n){this.elem=t,this.prop=r,this.easing=s||B.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=n||(B.cssNumber[r]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,r=ee.propHooks[this.prop];return this.options.duration?this.pos=e=B.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=B.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){B.fx.step[t.prop]?B.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[B.cssProps[t.prop]]&&!B.cssHooks[t.prop]?t.elem[t.prop]=t.now:B.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},B.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},B.fx=ee.prototype.init,B.fx.step={};var re,ie,se=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function ae(){ie&&(!1===a.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ae):r.setTimeout(ae,B.fx.interval),B.fx.tick())}function oe(){return r.setTimeout(function(){re=void 0}),re=Date.now()}function he(t,e){var r,i=0,s={height:t};for(e=e?1:0;i<4;i+=2-e)s["margin"+(r=nt[i])]=s["padding"+r]=t;return e&&(s.opacity=s.width=t),s}function ue(t,e,r){for(var i,s=(le.tweeners[e]||[]).concat(le.tweeners["*"]),n=0,a=s.length;n1)},removeAttr:function(t){return this.each(function(){B.removeAttr(this,t)})}}),B.extend({attr:function(t,e,r){var i,s,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===t.getAttribute?B.prop(t,e,r):(1===n&&B.isXMLDoc(t)||(s=B.attrHooks[e.toLowerCase()]||(B.expr.match.bool.test(e)?ce:void 0)),void 0!==r?null===r?void B.removeAttr(t,e):s&&"set"in s&&void 0!==(i=s.set(t,r,e))?i:(t.setAttribute(e,r+""),r):s&&"get"in s&&null!==(i=s.get(t,e))?i:null==(i=B.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&_(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}}},removeAttr:function(t,e){var r,i=0,s=e&&e.match(W);if(s&&1===t.nodeType)for(;r=s[i++];)t.removeAttribute(r)}}),ce={set:function(t,e,r){return!1===e?B.removeAttr(t,r):t.setAttribute(r,r),r}},B.each(B.expr.match.bool.source.match(/\w+/g),function(t,e){var r=fe[e]||B.find.attr;fe[e]=function(t,e,i){var s,n,a=e.toLowerCase();return i||(n=fe[a],fe[a]=s,s=null!=r(t,e,i)?a:null,fe[a]=n),s}});var de=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function pe(t){return(t.match(W)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(W)||[]}B.fn.extend({prop:function(t,e){return q(this,B.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[B.propFix[t]||t]})}}),B.extend({prop:function(t,e,r){var i,s,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&B.isXMLDoc(t)||(e=B.propFix[e]||e,s=B.propHooks[e]),void 0!==r?s&&"set"in s&&void 0!==(i=s.set(t,r,e))?i:t[e]=r:s&&"get"in s&&null!==(i=s.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=B.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(B.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),B.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){B.propFix[this.toLowerCase()]=this}),B.fn.extend({addClass:function(t){var e,r,i,s,n,a,o,h=0;if(C(t))return this.each(function(e){B(this).addClass(t.call(this,e,ge(this)))});if((e=ye(t)).length)for(;r=this[h++];)if(s=ge(r),i=1===r.nodeType&&" "+pe(s)+" "){for(a=0;n=e[a++];)i.indexOf(" "+n+" ")<0&&(i+=n+" ");s!==(o=pe(i))&&r.setAttribute("class",o)}return this},removeClass:function(t){var e,r,i,s,n,a,o,h=0;if(C(t))return this.each(function(e){B(this).removeClass(t.call(this,e,ge(this)))});if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;r=this[h++];)if(s=ge(r),i=1===r.nodeType&&" "+pe(s)+" "){for(a=0;n=e[a++];)for(;i.indexOf(" "+n+" ")>-1;)i=i.replace(" "+n+" "," ");s!==(o=pe(i))&&r.setAttribute("class",o)}return this},toggleClass:function(t,e){var r=typeof t,i="string"===r||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):C(t)?this.each(function(r){B(this).toggleClass(t.call(this,r,ge(this),e),e)}):this.each(function(){var e,s,n,a;if(i)for(s=0,n=B(this),a=ye(t);e=a[s++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==t&&"boolean"!==r||((e=ge(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,r,i=0;for(e=" "+t+" ";r=this[i++];)if(1===r.nodeType&&(" "+pe(ge(r))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;B.fn.extend({val:function(t){var e,r,i,s=this[0];return arguments.length?(i=C(t),this.each(function(r){var s;1===this.nodeType&&(null==(s=i?t.call(this,r,B(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=B.map(s,function(t){return null==t?"":t+""})),(e=B.valHooks[this.type]||B.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=B.valHooks[s.type]||B.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(r=e.get(s,"value"))?r:"string"==typeof(r=s.value)?r.replace(Ce,""):null==r?"":r:void 0}}),B.extend({valHooks:{option:{get:function(t){var e=B.find.attr(t,"value");return null!=e?e:pe(B.text(t))}},select:{get:function(t){var e,r,i,s=t.options,n=t.selectedIndex,a="select-one"===t.type,o=a?null:[],h=a?n+1:s.length;for(i=n<0?h:a?n:0;i-1)&&(r=!0);return r||(t.selectedIndex=-1),n}}}}),B.each(["radio","checkbox"],function(){B.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=B.inArray(B(t).val(),e)>-1}},y.checkOn||(B.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in r;var be=/^(?:focusinfocus|focusoutblur)$/,ve=function(t){t.stopPropagation()};B.extend(B.event,{trigger:function(t,e,i,s){var n,o,h,u,l,c,f,d,p=[i||a],g=m.call(t,"type")?t.type:t,y=m.call(t,"namespace")?t.namespace.split("."):[];if(o=d=h=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!be.test(g+B.event.triggered)&&(g.indexOf(".")>-1&&(g=(y=g.split(".")).shift(),y.sort()),l=g.indexOf(":")<0&&"on"+g,(t=t[B.expando]?t:new B.Event(g,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:B.makeArray(e,[t]),f=B.event.special[g]||{},s||!f.trigger||!1!==f.trigger.apply(i,e))){if(!s&&!f.noBubble&&!b(i)){for(u=f.delegateType||g,be.test(u+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),h=o;h===(i.ownerDocument||a)&&p.push(h.defaultView||h.parentWindow||r)}for(n=0;(o=p[n++])&&!t.isPropagationStopped();)d=o,t.type=n>1?u:f.bindType||g,(c=(Q.get(o,"events")||{})[t.type]&&Q.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&X(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=g,s||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!X(i)||l&&C(i[g])&&!b(i)&&((h=i[l])&&(i[l]=null),B.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,ve),i[g](),t.isPropagationStopped()&&d.removeEventListener(g,ve),B.event.triggered=void 0,h&&(i[l]=h)),t.result}},simulate:function(t,e,r){var i=B.extend(new B.Event,r,{type:t,isSimulated:!0});B.event.trigger(i,null,e)}}),B.fn.extend({trigger:function(t,e){return this.each(function(){B.event.trigger(t,e,this)})},triggerHandler:function(t,e){var r=this[0];if(r)return B.event.trigger(t,e,r,!0)}}),y.focusin||B.each({focus:"focusin",blur:"focusout"},function(t,e){var r=function(t){B.event.simulate(e,t.target,B.event.fix(t))};B.event.special[e]={setup:function(){var i=this.ownerDocument||this,s=Q.access(i,e);s||i.addEventListener(t,r,!0),Q.access(i,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this,s=Q.access(i,e)-1;s?Q.access(i,e,s):(i.removeEventListener(t,r,!0),Q.remove(i,e))}}});var we=r.location,ke=Date.now(),Be=/\?/;B.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||B.error("Invalid XML: "+t),e};var Se=/\[\]$/,Re=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,r,i){var s;if(Array.isArray(e))B.each(e,function(e,s){r||Se.test(t)?i(t,s):Fe(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,r,i)});else if(r||"object"!==k(e))i(t,e);else for(s in e)Fe(t+"["+s+"]",e[s],r,i)}B.param=function(t,e){var r,i=[],s=function(t,e){var r=C(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(t)||t.jquery&&!B.isPlainObject(t))B.each(t,function(){s(this.name,this.value)});else for(r in t)Fe(r,t[r],e,s);return i.join("&")},B.fn.extend({serialize:function(){return B.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=B.prop(this,"elements");return t?B.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!B(this).is(":disabled")&&Ae.test(this.nodeName)&&!Te.test(t)&&(this.checked||!ft.test(t))}).map(function(t,e){var r=B(this).val();return null==r?null:Array.isArray(r)?B.map(r,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:r.replace(Re,"\r\n")}}).get()}});var Le=/%20/g,_e=/#.*$/,xe=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ee=/^(?:GET|HEAD)$/,Me=/^\/\//,Pe={},Oe={},De="*/".concat("*"),We=a.createElement("a");function Ie(t){return function(e,r){"string"!=typeof e&&(r=e,e="*");var i,s=0,n=e.toLowerCase().match(W)||[];if(C(r))for(;i=n[s++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(r)):(t[i]=t[i]||[]).push(r)}}function Ge(t,e,r,i){var s={},n=t===Oe;function a(o){var h;return s[o]=!0,B.each(t[o]||[],function(t,o){var u=o(e,r,i);return"string"!=typeof u||n||s[u]?n?!(h=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),h}return a(e.dataTypes[0])||!s["*"]&&a("*")}function Ne(t,e){var r,i,s=B.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((s[r]?t:i||(i={}))[r]=e[r]);return i&&B.extend(!0,t,i),t}We.href=we.href,B.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":De,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":B.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ne(Ne(t,B.ajaxSettings),e):Ne(B.ajaxSettings,t)},ajaxPrefilter:Ie(Pe),ajaxTransport:Ie(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,s,n,o,h,u,l,c,f,d,m=B.ajaxSetup({},e),p=m.context||m,g=m.context&&(p.nodeType||p.jquery)?B(p):B.event,y=B.Deferred(),C=B.Callbacks("once memory"),b=m.statusCode||{},v={},w={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!o)for(o={};e=He.exec(n);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return l?n:null},setRequestHeader:function(t,e){return null==l&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,v[t]=e),this},overrideMimeType:function(t){return null==l&&(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return i&&i.abort(e),R(0,e),this}};if(y.promise(S),m.url=((t||m.url||we.href)+"").replace(Me,we.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(W)||[""],null==m.crossDomain){u=a.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=We.protocol+"//"+We.host!=u.protocol+"//"+u.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=B.param(m.data,m.traditional)),Ge(Pe,m,e,S),l)return S;for(f in(c=B.event&&m.global)&&0==B.active++&&B.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ee.test(m.type),s=m.url.replace(_e,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Le,"+")):(d=m.url.slice(s.length),m.data&&(m.processData||"string"==typeof m.data)&&(s+=(Be.test(s)?"&":"?")+m.data,delete m.data),!1===m.cache&&(s=s.replace(xe,"$1"),d=(Be.test(s)?"&":"?")+"_="+ke+++d),m.url=s+d),m.ifModified&&(B.lastModified[s]&&S.setRequestHeader("If-Modified-Since",B.lastModified[s]),B.etag[s]&&S.setRequestHeader("If-None-Match",B.etag[s])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&S.setRequestHeader("Content-Type",m.contentType),S.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+De+"; q=0.01":""):m.accepts["*"]),m.headers)S.setRequestHeader(f,m.headers[f]);if(m.beforeSend&&(!1===m.beforeSend.call(p,S,m)||l))return S.abort();if(k="abort",C.add(m.complete),S.done(m.success),S.fail(m.error),i=Ge(Oe,m,e,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,m]),l)return S;m.async&&m.timeout>0&&(h=r.setTimeout(function(){S.abort("timeout")},m.timeout));try{l=!1,i.send(v,R)}catch(t){if(l)throw t;R(-1,t)}}else R(-1,"No Transport");function R(t,e,a,o){var u,f,d,v,w,k=e;l||(l=!0,h&&r.clearTimeout(h),i=void 0,n=o||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(v=function(t,e,r){for(var i,s,n,a,o=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in o)if(o[s]&&o[s].test(i)){h.unshift(s);break}if(h[0]in r)n=h[0];else{for(s in r){if(!h[0]||t.converters[s+" "+h[0]]){n=s;break}a||(a=s)}n=n||a}if(n)return n!==h[0]&&h.unshift(n),r[n]}(m,S,a)),v=function(t,e,r,i){var s,n,a,o,h,u={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(n=l.shift();n;)if(t.responseFields[n]&&(r[t.responseFields[n]]=e),!h&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=n,n=l.shift())if("*"===n)n=h;else if("*"!==h&&h!==n){if(!(a=u[h+" "+n]||u["* "+n]))for(s in u)if((o=s.split(" "))[1]===n&&(a=u[h+" "+o[0]]||u["* "+o[0]])){!0===a?a=u[s]:!0!==u[s]&&(n=o[0],l.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+h+" to "+n}}}return{state:"success",data:e}}(m,v,S,u),u?(m.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(B.lastModified[s]=w),(w=S.getResponseHeader("etag"))&&(B.etag[s]=w)),204===t||"HEAD"===m.type?k="nocontent":304===t?k="notmodified":(k=v.state,f=v.data,u=!(d=v.error))):(d=k,!t&&k||(k="error",t<0&&(t=0))),S.status=t,S.statusText=(e||k)+"",u?y.resolveWith(p,[f,k,S]):y.rejectWith(p,[S,k,d]),S.statusCode(b),b=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,m,u?f:d]),C.fireWith(p,[S,k]),c&&(g.trigger("ajaxComplete",[S,m]),--B.active||B.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,r){return B.get(t,e,r,"json")},getScript:function(t,e){return B.get(t,void 0,e,"script")}}),B.each(["get","post"],function(t,e){B[e]=function(t,r,i,s){return C(r)&&(s=s||i,i=r,r=void 0),B.ajax(B.extend({url:t,type:e,dataType:s,data:r,success:i},B.isPlainObject(t)&&t))}}),B._evalUrl=function(t){return B.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},B.fn.extend({wrapAll:function(t){var e;return this[0]&&(C(t)&&(t=t.call(this[0])),e=B(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return C(t)?this.each(function(e){B(this).wrapInner(t.call(this,e))}):this.each(function(){var e=B(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)})},wrap:function(t){var e=C(t);return this.each(function(r){B(this).wrapAll(e?t.call(this,r):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){B(this).replaceWith(this.childNodes)}),this}}),B.expr.pseudos.hidden=function(t){return!B.expr.pseudos.visible(t)},B.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},B.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},je=B.ajaxSettings.xhr();y.cors=!!je&&"withCredentials"in je,y.ajax=je=!!je,B.ajaxTransport(function(t){var e,i;if(y.cors||je&&!t.crossDomain)return{send:function(s,n){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(a,s[a]);e=function(t){return function(){e&&(e=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?n(0,"error"):n(o.status,o.statusText):n(ze[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=e(),i=o.onerror=o.ontimeout=e("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&r.setTimeout(function(){e&&i()})},e=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),B.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),B.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return B.globalEval(t),t}}}),B.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),B.ajaxTransport("script",function(t){var e,r;if(t.crossDomain)return{send:function(i,s){e=B(" - @@ -27,7 +24,7 @@
- +

Loading...

@@ -56,12 +53,6 @@

Loading...

Fork me on GitHub - diff --git a/jsgbc-web.js b/jsgbc-web.js deleted file mode 100644 index 16a496c..0000000 --- a/jsgbc-web.js +++ /dev/null @@ -1,47 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["jsgbc-web"]=e():t["jsgbc-web"]=e()}(window,function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=58)}([function(t,e,r){"use strict";var i=r(4),s=r(50),n=r(17),a=r(97),o=r(11);function h(t){return t}function u(t,e){for(var r=0;r1;)try{return l.stringifyByChunk(t,i,r)}catch(t){r=Math.floor(r/2)}return l.stringifyByChar(t)}function f(t,e){for(var r=0;r "+t:t}},t.exports=i},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)s(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,i,s){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+i),s);else for(var n=0;n0&&e-1 in t)}B.fn=B.prototype={jquery:"3.3.1",constructor:B,length:0,toArray:function(){return h.call(this)},get:function(t){return null==t?h.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=B.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return B.each(this,t)},map:function(t){return this.pushStack(B.map(this,function(e,r){return t.call(e,r,e)}))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,r=+t+(t<0?e:0);return this.pushStack(r>=0&&r+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),q=new RegExp(I),Z=new RegExp("^"+D+"$"),V={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,K=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),tt=function(t,e,r){var i="0x"+e-65536;return i!=i||r?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){f()},st=Ct(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{H.apply(L=E.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(t){H={apply:L.length?function(t,e){x.apply(t,E.call(e))}:function(t,e){for(var r=t.length,i=0;t[r++]=e[i++];);t.length=r-1}}}function nt(t,e,i,s){var n,o,u,l,c,m,y,C=e&&e.ownerDocument,k=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return i;if(!s&&((e?e.ownerDocument||e:w)!==d&&f(e),e=e||d,p)){if(11!==k&&(c=$.exec(t)))if(n=c[1]){if(9===k){if(!(u=e.getElementById(n)))return i;if(u.id===n)return i.push(u),i}else if(C&&(u=C.getElementById(n))&&b(e,u)&&u.id===n)return i.push(u),i}else{if(c[2])return H.apply(i,e.getElementsByTagName(t)),i;if((n=c[3])&&r.getElementsByClassName&&e.getElementsByClassName)return H.apply(i,e.getElementsByClassName(n)),i}if(r.qsa&&!T[t+" "]&&(!g||!g.test(t))){if(1!==k)C=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((l=e.getAttribute("id"))?l=l.replace(et,rt):e.setAttribute("id",l=v),o=(m=a(t)).length;o--;)m[o]="#"+l+" "+yt(m[o]);y=m.join(","),C=Q.test(t)&&pt(e.parentNode)||e}if(y)try{return H.apply(i,C.querySelectorAll(y)),i}catch(t){}finally{l===v&&e.removeAttribute("id")}}}return h(t.replace(N,"$1"),e,i,s)}function at(){var t=[];return function e(r,s){return t.push(r+" ")>i.cacheLength&&delete e[t.shift()],e[r+" "]=s}}function ot(t){return t[v]=!0,t}function ht(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var r=t.split("|"),s=r.length;s--;)i.attrHandle[r[s]]=e}function lt(t,e){var r=e&&t,i=r&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(r)for(;r=r.nextSibling;)if(r===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var r=e.nodeName.toLowerCase();return("input"===r||"button"===r)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ot(function(e){return e=+e,ot(function(r,i){for(var s,n=t([],r.length,e),a=n.length;a--;)r[s=n[a]]&&(r[s]=!(i[s]=r[s]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in r=nt.support={},n=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},f=nt.setDocument=function(t){var e,s,a=t?t.ownerDocument||t:w;return a!==d&&9===a.nodeType&&a.documentElement?(m=(d=a).documentElement,p=!n(d),w!==d&&(s=d.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",it,!1):s.attachEvent&&s.attachEvent("onunload",it)),r.attributes=ht(function(t){return t.className="i",!t.getAttribute("className")}),r.getElementsByTagName=ht(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),r.getElementsByClassName=X.test(d.getElementsByClassName),r.getById=ht(function(t){return m.appendChild(t).id=v,!d.getElementsByName||!d.getElementsByName(v).length}),r.getById?(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var r=e.getElementById(t);return r?[r]:[]}}):(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){var r=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return r&&r.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var r,i,s,n=e.getElementById(t);if(n){if((r=n.getAttributeNode("id"))&&r.value===t)return[n];for(s=e.getElementsByName(t),i=0;n=s[i++];)if((r=n.getAttributeNode("id"))&&r.value===t)return[n]}return[]}}),i.find.TAG=r.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):r.qsa?e.querySelectorAll(t):void 0}:function(t,e){var r,i=[],s=0,n=e.getElementsByTagName(t);if("*"===t){for(;r=n[s++];)1===r.nodeType&&i.push(r);return i}return n},i.find.CLASS=r.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&p)return e.getElementsByClassName(t)},y=[],g=[],(r.qsa=X.test(d.querySelectorAll))&&(ht(function(t){m.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+O+"*(?:value|"+P+")"),t.querySelectorAll("[id~="+v+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+v+"+*").length||g.push(".#.+[+~]")}),ht(function(t){t.innerHTML="";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+O+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=X.test(C=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ht(function(t){r.disconnectedMatch=C.call(t,"*"),C.call(t,"[s!='']:x"),y.push("!=",I)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),e=X.test(m.compareDocumentPosition),b=e||X.test(m.contains)?function(t,e){var r=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!r.sortDetached&&e.compareDocumentPosition(t)===i?t===d||t.ownerDocument===w&&b(w,t)?-1:e===d||e.ownerDocument===w&&b(w,e)?1:l?M(l,t)-M(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var r,i=0,s=t.parentNode,n=e.parentNode,a=[t],o=[e];if(!s||!n)return t===d?-1:e===d?1:s?-1:n?1:l?M(l,t)-M(l,e):0;if(s===n)return lt(t,e);for(r=t;r=r.parentNode;)a.unshift(r);for(r=e;r=r.parentNode;)o.unshift(r);for(;a[i]===o[i];)i++;return i?lt(a[i],o[i]):a[i]===w?-1:o[i]===w?1:0},d):d},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&f(t),e=e.replace(U,"='$1']"),r.matchesSelector&&p&&!T[e+" "]&&(!y||!y.test(e))&&(!g||!g.test(e)))try{var i=C.call(t,e);if(i||r.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return nt(e,d,null,[t]).length>0},nt.contains=function(t,e){return(t.ownerDocument||t)!==d&&f(t),b(t,e)},nt.attr=function(t,e){(t.ownerDocument||t)!==d&&f(t);var s=i.attrHandle[e.toLowerCase()],n=s&&F.call(i.attrHandle,e.toLowerCase())?s(t,e,!p):void 0;return void 0!==n?n:r.attributes||!p?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},nt.escape=function(t){return(t+"").replace(et,rt)},nt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},nt.uniqueSort=function(t){var e,i=[],s=0,n=0;if(c=!r.detectDuplicates,l=!r.sortStable&&t.slice(0),t.sort(A),c){for(;e=t[n++];)e===t[n]&&(s=i.push(n));for(;s--;)t.splice(i[s],1)}return l=null,t},s=nt.getText=function(t){var e,r="",i=0,n=t.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=s(t)}else if(3===n||4===n)return t.nodeValue}else for(;e=t[i++];)r+=s(e);return r},(i=nt.selectors={cacheLength:50,createPseudo:ot,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(K,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(K,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||nt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&nt.error(t[0]),t},PSEUDO:function(t){var e,r=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":r&&q.test(r)&&(e=a(r,!0))&&(e=r.indexOf(")",r.length-e)-r.length)&&(t[0]=t[0].slice(0,e),t[2]=r.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(K,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var s=nt.attr(i,t);return null==s?"!="===e:!e||(s+="","="===e?s===r:"!="===e?s!==r:"^="===e?r&&0===s.indexOf(r):"*="===e?r&&s.indexOf(r)>-1:"$="===e?r&&s.slice(-r.length)===r:"~="===e?(" "+s.replace(G," ")+" ").indexOf(r)>-1:"|="===e&&(s===r||s.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,r,i,s){var n="nth"!==t.slice(0,3),a="last"!==t.slice(-4),o="of-type"===e;return 1===i&&0===s?function(t){return!!t.parentNode}:function(e,r,h){var u,l,c,f,d,m,p=n!==a?"nextSibling":"previousSibling",g=e.parentNode,y=o&&e.nodeName.toLowerCase(),C=!h&&!o,b=!1;if(g){if(n){for(;p;){for(f=e;f=f[p];)if(o?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;m=p="only"===t&&!m&&"nextSibling"}return!0}if(m=[a?g.firstChild:g.lastChild],a&&C){for(b=(d=(u=(l=(c=(f=g)[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]||[])[0]===k&&u[1])&&u[2],f=d&&g.childNodes[d];f=++d&&f&&f[p]||(b=d=0)||m.pop();)if(1===f.nodeType&&++b&&f===e){l[t]=[k,d,b];break}}else if(C&&(b=d=(u=(l=(c=(f=e)[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]||[])[0]===k&&u[1]),!1===b)for(;(f=++d&&f&&f[p]||(b=d=0)||m.pop())&&((o?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(C&&((l=(c=f[v]||(f[v]={}))[f.uniqueID]||(c[f.uniqueID]={}))[t]=[k,b]),f!==e)););return(b-=s)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var r,s=i.pseudos[t]||i.setFilters[t.toLowerCase()]||nt.error("unsupported pseudo: "+t);return s[v]?s(e):s.length>1?(r=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,r){for(var i,n=s(t,e),a=n.length;a--;)t[i=M(t,n[a])]=!(r[i]=n[a])}):function(t){return s(t,0,r)}):s}},pseudos:{not:ot(function(t){var e=[],r=[],i=o(t.replace(N,"$1"));return i[v]?ot(function(t,e,r,s){for(var n,a=i(t,null,s,[]),o=t.length;o--;)(n=a[o])&&(t[o]=!(e[o]=n))}):function(t,s,n){return e[0]=t,i(e,null,n,r),e[0]=null,!r.pop()}}),has:ot(function(t){return function(e){return nt(t,e).length>0}}),contains:ot(function(t){return t=t.replace(K,tt),function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}}),lang:ot(function(t){return Z.test(t||"")||nt.error("unsupported lang: "+t),t=t.replace(K,tt).toLowerCase(),function(e){var r;do{if(r=p?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(r=r.toLowerCase())===t||0===r.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:function(t){return t===m},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,r){return[r<0?r+e:r]}),even:mt(function(t,e){for(var r=0;r=0;)t.push(i);return t}),gt:mt(function(t,e,r){for(var i=r<0?r+e:r;++i1?function(e,r,i){for(var s=t.length;s--;)if(!t[s](e,r,i))return!1;return!0}:t[0]}function vt(t,e,r,i,s){for(var n,a=[],o=0,h=t.length,u=null!=e;o-1&&(n[u]=!(a[u]=c))}}else y=vt(y===a?y.splice(m,y.length):y),s?s(null,a,y,h):H.apply(a,y)})}function kt(t){for(var e,r,s,n=t.length,a=i.relative[t[0].type],o=a||i.relative[" "],h=a?1:0,l=Ct(function(t){return t===e},o,!0),c=Ct(function(t){return M(e,t)>-1},o,!0),f=[function(t,r,i){var s=!a&&(i||r!==u)||((e=r).nodeType?l(t,r,i):c(t,r,i));return e=null,s}];h1&&bt(f),h>1&&yt(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(N,"$1"),r,h0,s=t.length>0,n=function(n,a,o,h,l){var c,m,g,y=0,C="0",b=n&&[],v=[],w=u,B=n||s&&i.find.TAG("*",l),S=k+=null==w?1:Math.random()||.1,R=B.length;for(l&&(u=a===d||a||l);C!==R&&null!=(c=B[C]);C++){if(s&&c){for(m=0,a||c.ownerDocument===d||(f(c),o=!p);g=t[m++];)if(g(c,a||d,o)){h.push(c);break}l&&(k=S)}r&&((c=!g&&c)&&y--,n&&b.push(c))}if(y+=C,r&&C!==y){for(m=0;g=e[m++];)g(b,v,a,o);if(n){if(y>0)for(;C--;)b[C]||v[C]||(v[C]=_.call(h));v=vt(v)}H.apply(h,v),l&&!n&&v.length>0&&y+e.length>1&&nt.uniqueSort(h)}return l&&(k=S,u=w),b};return r?ot(n):n}(n,s))).selector=t}return o},h=nt.select=function(t,e,r,s){var n,h,u,l,c,f="function"==typeof t&&t,d=!s&&a(t=f.selector||t);if(r=r||[],1===d.length){if((h=d[0]=d[0].slice(0)).length>2&&"ID"===(u=h[0]).type&&9===e.nodeType&&p&&i.relative[h[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(K,tt),e)||[])[0]))return r;f&&(e=e.parentNode),t=t.slice(h.shift().value.length)}for(n=V.needsContext.test(t)?0:h.length;n--&&(u=h[n],!i.relative[l=u.type]);)if((c=i.find[l])&&(s=c(u.matches[0].replace(K,tt),Q.test(h[0].type)&&pt(e.parentNode)||e))){if(h.splice(n,1),!(t=s.length&&yt(h)))return H.apply(r,s),r;break}}return(f||o(t,d))(s,e,!p,r,!e||Q.test(t)&&pt(e.parentNode)||e),r},r.sortStable=v.split("").sort(A).join("")===v,r.detectDuplicates=!!c,f(),r.sortDetached=ht(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),ht(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,r){if(!r)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),r.attributes&&ht(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,r){if(!r&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ht(function(t){return null==t.getAttribute("disabled")})||ut(P,function(t,e,r){var i;if(!r)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),nt}(r);B.find=T,B.expr=T.selectors,B.expr[":"]=B.expr.pseudos,B.uniqueSort=B.unique=T.uniqueSort,B.text=T.getText,B.isXMLDoc=T.isXML,B.contains=T.contains,B.escapeSelector=T.escape;var A=function(t,e,r){for(var i=[],s=void 0!==r;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&B(t).is(r))break;i.push(t)}return i},F=function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r},L=B.expr.match.needsContext;function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var x=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,r){return C(e)?B.grep(t,function(t,i){return!!e.call(t,i,t)!==r}):e.nodeType?B.grep(t,function(t){return t===e!==r}):"string"!=typeof e?B.grep(t,function(t){return c.call(e,t)>-1!==r}):B.filter(e,t,r)}B.filter=function(t,e,r){var i=e[0];return r&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?B.find.matchesSelector(i,t)?[i]:[]:B.find.matches(t,B.grep(e,function(t){return 1===t.nodeType}))},B.fn.extend({find:function(t){var e,r,i=this.length,s=this;if("string"!=typeof t)return this.pushStack(B(t).filter(function(){for(e=0;e1?B.uniqueSort(r):r},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&L.test(t)?B(t):t||[],!1).length}});var E,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(B.fn.init=function(t,e,r){var i,s;if(!t)return this;if(r=r||E,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!i[1]&&e)return!e||e.jquery?(e||r).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof B?e[0]:e,B.merge(this,B.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),x.test(i[1])&&B.isPlainObject(e))for(i in e)C(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=a.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):C(t)?void 0!==r.ready?r.ready(t):t(B):B.makeArray(t,this)}).prototype=B.fn,E=B(a);var P=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function D(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}B.fn.extend({has:function(t){var e=B(t,this),r=e.length;return this.filter(function(){for(var t=0;t-1:1===r.nodeType&&B.find.matchesSelector(r,t))){n.push(r);break}return this.pushStack(n.length>1?B.uniqueSort(n):n)},index:function(t){return t?"string"==typeof t?c.call(B(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(B.uniqueSort(B.merge(this.get(),B(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),B.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,r){return A(t,"parentNode",r)},next:function(t){return D(t,"nextSibling")},prev:function(t){return D(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,r){return A(t,"nextSibling",r)},prevUntil:function(t,e,r){return A(t,"previousSibling",r)},siblings:function(t){return F((t.parentNode||{}).firstChild,t)},children:function(t){return F(t.firstChild)},contents:function(t){return _(t,"iframe")?t.contentDocument:(_(t,"template")&&(t=t.content||t),B.merge([],t.childNodes))}},function(t,e){B.fn[t]=function(r,i){var s=B.map(this,e,r);return"Until"!==t.slice(-5)&&(i=r),i&&"string"==typeof i&&(s=B.filter(i,s)),this.length>1&&(O[t]||B.uniqueSort(s),P.test(t)&&s.reverse()),this.pushStack(s)}});var W=/[^\x20\t\r\n\f]+/g;function I(t){return t}function G(t){throw t}function N(t,e,r,i){var s;try{t&&C(s=t.promise)?s.call(t).done(e).fail(r):t&&C(s=t.then)?s.call(t,e,r):e.apply(void 0,[t].slice(i))}catch(t){r.apply(void 0,[t])}}B.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return B.each(t.match(W)||[],function(t,r){e[r]=!0}),e}(t):B.extend({},t);var e,r,i,s,n=[],a=[],o=-1,h=function(){for(s=s||t.once,i=e=!0;a.length;o=-1)for(r=a.shift();++o-1;)n.splice(r,1),r<=o&&o--}),this},has:function(t){return t?B.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return s=a=[],n=r="",this},disabled:function(){return!n},lock:function(){return s=a=[],r||e||(n=r=""),this},locked:function(){return!!s},fireWith:function(t,r){return s||(r=[t,(r=r||[]).slice?r.slice():r],a.push(r),e||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},B.extend({Deferred:function(t){var e=[["notify","progress",B.Callbacks("memory"),B.Callbacks("memory"),2],["resolve","done",B.Callbacks("once memory"),B.Callbacks("once memory"),0,"resolved"],["reject","fail",B.Callbacks("once memory"),B.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return B.Deferred(function(r){B.each(e,function(e,i){var s=C(t[i[4]])&&t[i[4]];n[i[1]](function(){var t=s&&s.apply(this,arguments);t&&C(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[i[0]+"With"](this,s?[t]:arguments)})}),t=null}).promise()},then:function(t,i,s){var n=0;function a(t,e,i,s){return function(){var o=this,h=arguments,u=function(){var r,u;if(!(t=n&&(i!==G&&(o=void 0,h=[r]),e.rejectWith(o,h))}};t?l():(B.Deferred.getStackHook&&(l.stackTrace=B.Deferred.getStackHook()),r.setTimeout(l))}}return B.Deferred(function(r){e[0][3].add(a(0,r,C(s)?s:I,r.notifyWith)),e[1][3].add(a(0,r,C(t)?t:I)),e[2][3].add(a(0,r,C(i)?i:G))}).promise()},promise:function(t){return null!=t?B.extend(t,s):s}},n={};return B.each(e,function(t,r){var a=r[2],o=r[5];s[r[1]]=a.add,o&&a.add(function(){i=o},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),n[r[0]]=function(){return n[r[0]+"With"](this===n?void 0:this,arguments),this},n[r[0]+"With"]=a.fireWith}),s.promise(n),t&&t.call(n,n),n},when:function(t){var e=arguments.length,r=e,i=Array(r),s=h.call(arguments),n=B.Deferred(),a=function(t){return function(r){i[t]=this,s[t]=arguments.length>1?h.call(arguments):r,--e||n.resolveWith(i,s)}};if(e<=1&&(N(t,n.done(a(r)).resolve,n.reject,!e),"pending"===n.state()||C(s[r]&&s[r].then)))return n.then();for(;r--;)N(s[r],a(r),n.reject);return n.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;B.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},B.readyException=function(t){r.setTimeout(function(){throw t})};var j=B.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),B.ready()}B.fn.ready=function(t){return j.then(t).catch(function(t){B.readyException(t)}),this},B.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--B.readyWait:B.isReady)||(B.isReady=!0,!0!==t&&--B.readyWait>0||j.resolveWith(a,[B]))}}),B.ready.then=j.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?r.setTimeout(B.ready):(a.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var q=function(t,e,r,i,s,n,a){var o=0,h=t.length,u=null==r;if("object"===k(r))for(o in s=!0,r)q(t,e,o,r[o],!0,n,a);else if(void 0!==i&&(s=!0,C(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,r){return u.call(B(t),r)})),e))for(;o1,null,!0)},removeData:function(t){return this.each(function(){K.remove(this,t)})}}),B.extend({queue:function(t,e,r){var i;if(t)return e=(e||"fx")+"queue",i=Q.get(t,e),r&&(!i||Array.isArray(r)?i=Q.access(t,e,B.makeArray(r)):i.push(r)),i||[]},dequeue:function(t,e){e=e||"fx";var r=B.queue(t,e),i=r.length,s=r.shift(),n=B._queueHooks(t,e);"inprogress"===s&&(s=r.shift(),i--),s&&("fx"===e&&r.unshift("inprogress"),delete n.stop,s.call(t,function(){B.dequeue(t,e)},n)),!i&&n&&n.empty.fire()},_queueHooks:function(t,e){var r=e+"queueHooks";return Q.get(t,r)||Q.access(t,r,{empty:B.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",r])})})}}),B.fn.extend({queue:function(t,e){var r=2;return"string"!=typeof t&&(e=t,t="fx",r--),arguments.length\x20\t\r\n\f]+)/i,mt=/^$|^module$|\/(?:java|ecma)script/i,pt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function gt(t,e){var r;return r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?B.merge([t],r):r}function yt(t,e){for(var r=0,i=t.length;r-1)s&&s.push(n);else if(u=B.contains(n.ownerDocument,n),a=gt(c.appendChild(n),"script"),u&&yt(a),r)for(l=0;n=a[l++];)mt.test(n.type||"")&&r.push(n);return c}Ct=a.createDocumentFragment().appendChild(a.createElement("div")),(bt=a.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),Ct.appendChild(bt),y.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="",y.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue;var kt=a.documentElement,Bt=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Rt=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function At(){return!1}function Ft(){try{return a.activeElement}catch(t){}}function Lt(t,e,r,i,s,n){var a,o;if("object"==typeof e){for(o in"string"!=typeof r&&(i=i||r,r=void 0),e)Lt(t,o,r,i,e[o],n);return t}if(null==i&&null==s?(s=r,i=r=void 0):null==s&&("string"==typeof r?(s=i,i=void 0):(s=i,i=r,r=void 0)),!1===s)s=At;else if(!s)return t;return 1===n&&(a=s,(s=function(t){return B().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=B.guid++)),t.each(function(){B.event.add(this,e,s,i,r)})}B.event={global:{},add:function(t,e,r,i,s){var n,a,o,h,u,l,c,f,d,m,p,g=Q.get(t);if(g)for(r.handler&&(r=(n=r).handler,s=n.selector),s&&B.find.matchesSelector(kt,s),r.guid||(r.guid=B.guid++),(h=g.events)||(h=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==B&&B.event.triggered!==e.type?B.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(W)||[""]).length;u--;)d=p=(o=Rt.exec(e[u])||[])[1],m=(o[2]||"").split(".").sort(),d&&(c=B.event.special[d]||{},d=(s?c.delegateType:c.bindType)||d,c=B.event.special[d]||{},l=B.extend({type:d,origType:p,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&B.expr.match.needsContext.test(s),namespace:m.join(".")},n),(f=h[d])||((f=h[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,m,a)||t.addEventListener&&t.addEventListener(d,a)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=r.guid)),s?f.splice(f.delegateCount++,0,l):f.push(l),B.event.global[d]=!0)},remove:function(t,e,r,i,s){var n,a,o,h,u,l,c,f,d,m,p,g=Q.hasData(t)&&Q.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(W)||[""]).length;u--;)if(d=p=(o=Rt.exec(e[u])||[])[1],m=(o[2]||"").split(".").sort(),d){for(c=B.event.special[d]||{},f=h[d=(i?c.delegateType:c.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=n=f.length;n--;)l=f[n],!s&&p!==l.origType||r&&r.guid!==l.guid||o&&!o.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(f.splice(n,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(t,l));a&&!f.length&&(c.teardown&&!1!==c.teardown.call(t,m,g.handle)||B.removeEvent(t,d,g.handle),delete h[d])}else for(d in h)B.event.remove(t,d+e[u],r,i,!0);B.isEmptyObject(h)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,r,i,s,n,a,o=B.event.fix(t),h=new Array(arguments.length),u=(Q.get(this,"events")||{})[o.type]||[],l=B.event.special[o.type]||{};for(h[0]=o,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(n=[],a={},r=0;r-1:B.find(s,this,null,[u]).length),a[s]&&n.push(i);n.length&&o.push({elem:u,handlers:n})}return u=this,h\x20\t\r\n\f]*)[^>]*)\/>/gi,xt=/\s*$/g;function Mt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&B(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var r,i,s,n,a,o,h,u;if(1===e.nodeType){if(Q.hasData(t)&&(n=Q.access(t),a=Q.set(e,n),u=n.events))for(s in delete a.handle,a.events={},u)for(r=0,i=u[s].length;r1&&"string"==typeof m&&!y.checkClone&&Ht.test(m))return t.each(function(s){var n=t.eq(s);p&&(e[0]=m.call(this,s,n.html())),Wt(n,e,r,i)});if(f&&(n=(s=wt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===s.childNodes.length&&(s=n),n||i)){for(o=(a=B.map(gt(s,"script"),Pt)).length;c")},clone:function(t,e,r){var i,s,n,a,o,h,u,l=t.cloneNode(!0),c=B.contains(t.ownerDocument,t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||B.isXMLDoc(t)))for(a=gt(l),i=0,s=(n=gt(t)).length;i0&&yt(a,!c&>(t,"script")),l},cleanData:function(t){for(var e,r,i,s=B.event.special,n=0;void 0!==(r=t[n]);n++)if(X(r)){if(e=r[Q.expando]){if(e.events)for(i in e.events)s[i]?B.event.remove(r,i):B.removeEvent(r,i,e.handle);r[Q.expando]=void 0}r[K.expando]&&(r[K.expando]=void 0)}}}),B.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return q(this,function(t){return void 0===t?B.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return Wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(B.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return B.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},r=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!pt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=B.htmlPrefilter(t);try{for(;r=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-n-h-o-.5))),h}function te(t,e,r){var i=Nt(t),s=jt(t,e,i),n="border-box"===B.css(t,"boxSizing",!1,i),a=n;if(Gt.test(s)){if(!r)return s;s="auto"}return a=a&&(y.boxSizingReliable()||s===t.style[e]),("auto"===s||!parseFloat(s)&&"inline"===B.css(t,"display",!1,i))&&(s=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(s=parseFloat(s)||0)+Kt(t,e,r||(n?"border":"content"),a,i,s)+"px"}function ee(t,e,r,i,s){return new ee.prototype.init(t,e,r,i,s)}B.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=jt(t,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,n,a,o=Y(e),h=Zt.test(e),u=t.style;if(h||(e=$t(o)),a=B.cssHooks[e]||B.cssHooks[o],void 0===r)return a&&"get"in a&&void 0!==(s=a.get(t,!1,i))?s:u[e];"string"===(n=typeof r)&&(s=st.exec(r))&&s[1]&&(r=ht(t,e,s),n="number"),null!=r&&r==r&&("number"===n&&(r+=s&&s[3]||(B.cssNumber[o]?"":"px")),y.clearCloneStyle||""!==r||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(r=a.set(t,r,i))||(h?u.setProperty(e,r):u[e]=r))}},css:function(t,e,r,i){var s,n,a,o=Y(e);return Zt.test(e)||(e=$t(o)),(a=B.cssHooks[e]||B.cssHooks[o])&&"get"in a&&(s=a.get(t,!0,r)),void 0===s&&(s=jt(t,e,i)),"normal"===s&&e in Jt&&(s=Jt[e]),""===r||r?(n=parseFloat(s),!0===r||isFinite(n)?n||0:s):s}}),B.each(["height","width"],function(t,e){B.cssHooks[e]={get:function(t,r,i){if(r)return!qt.test(B.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,i):ot(t,Vt,function(){return te(t,e,i)})},set:function(t,r,i){var s,n=Nt(t),a="border-box"===B.css(t,"boxSizing",!1,n),o=i&&Kt(t,e,i,a,n);return a&&y.scrollboxSize()===n.position&&(o-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(n[e])-Kt(t,e,"border",!1,n)-.5)),o&&(s=st.exec(r))&&"px"!==(s[3]||"px")&&(t.style[e]=r,r=B.css(t,e)),Qt(0,r,o)}}}),B.cssHooks.marginLeft=Ut(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),B.each({margin:"",padding:"",border:"Width"},function(t,e){B.cssHooks[t+e]={expand:function(r){for(var i=0,s={},n="string"==typeof r?r.split(" "):[r];i<4;i++)s[t+nt[i]+e]=n[i]||n[i-2]||n[0];return s}},"margin"!==t&&(B.cssHooks[t+e].set=Qt)}),B.fn.extend({css:function(t,e){return q(this,function(t,e,r){var i,s,n={},a=0;if(Array.isArray(e)){for(i=Nt(t),s=e.length;a1)}}),B.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,r,i,s,n){this.elem=t,this.prop=r,this.easing=s||B.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=n||(B.cssNumber[r]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,r=ee.propHooks[this.prop];return this.options.duration?this.pos=e=B.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=B.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){B.fx.step[t.prop]?B.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[B.cssProps[t.prop]]&&!B.cssHooks[t.prop]?t.elem[t.prop]=t.now:B.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},B.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},B.fx=ee.prototype.init,B.fx.step={};var re,ie,se=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function ae(){ie&&(!1===a.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ae):r.setTimeout(ae,B.fx.interval),B.fx.tick())}function oe(){return r.setTimeout(function(){re=void 0}),re=Date.now()}function he(t,e){var r,i=0,s={height:t};for(e=e?1:0;i<4;i+=2-e)s["margin"+(r=nt[i])]=s["padding"+r]=t;return e&&(s.opacity=s.width=t),s}function ue(t,e,r){for(var i,s=(le.tweeners[e]||[]).concat(le.tweeners["*"]),n=0,a=s.length;n1)},removeAttr:function(t){return this.each(function(){B.removeAttr(this,t)})}}),B.extend({attr:function(t,e,r){var i,s,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===t.getAttribute?B.prop(t,e,r):(1===n&&B.isXMLDoc(t)||(s=B.attrHooks[e.toLowerCase()]||(B.expr.match.bool.test(e)?ce:void 0)),void 0!==r?null===r?void B.removeAttr(t,e):s&&"set"in s&&void 0!==(i=s.set(t,r,e))?i:(t.setAttribute(e,r+""),r):s&&"get"in s&&null!==(i=s.get(t,e))?i:null==(i=B.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&_(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}}},removeAttr:function(t,e){var r,i=0,s=e&&e.match(W);if(s&&1===t.nodeType)for(;r=s[i++];)t.removeAttribute(r)}}),ce={set:function(t,e,r){return!1===e?B.removeAttr(t,r):t.setAttribute(r,r),r}},B.each(B.expr.match.bool.source.match(/\w+/g),function(t,e){var r=fe[e]||B.find.attr;fe[e]=function(t,e,i){var s,n,a=e.toLowerCase();return i||(n=fe[a],fe[a]=s,s=null!=r(t,e,i)?a:null,fe[a]=n),s}});var de=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function pe(t){return(t.match(W)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(W)||[]}B.fn.extend({prop:function(t,e){return q(this,B.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[B.propFix[t]||t]})}}),B.extend({prop:function(t,e,r){var i,s,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&B.isXMLDoc(t)||(e=B.propFix[e]||e,s=B.propHooks[e]),void 0!==r?s&&"set"in s&&void 0!==(i=s.set(t,r,e))?i:t[e]=r:s&&"get"in s&&null!==(i=s.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=B.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(B.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),B.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){B.propFix[this.toLowerCase()]=this}),B.fn.extend({addClass:function(t){var e,r,i,s,n,a,o,h=0;if(C(t))return this.each(function(e){B(this).addClass(t.call(this,e,ge(this)))});if((e=ye(t)).length)for(;r=this[h++];)if(s=ge(r),i=1===r.nodeType&&" "+pe(s)+" "){for(a=0;n=e[a++];)i.indexOf(" "+n+" ")<0&&(i+=n+" ");s!==(o=pe(i))&&r.setAttribute("class",o)}return this},removeClass:function(t){var e,r,i,s,n,a,o,h=0;if(C(t))return this.each(function(e){B(this).removeClass(t.call(this,e,ge(this)))});if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;r=this[h++];)if(s=ge(r),i=1===r.nodeType&&" "+pe(s)+" "){for(a=0;n=e[a++];)for(;i.indexOf(" "+n+" ")>-1;)i=i.replace(" "+n+" "," ");s!==(o=pe(i))&&r.setAttribute("class",o)}return this},toggleClass:function(t,e){var r=typeof t,i="string"===r||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):C(t)?this.each(function(r){B(this).toggleClass(t.call(this,r,ge(this),e),e)}):this.each(function(){var e,s,n,a;if(i)for(s=0,n=B(this),a=ye(t);e=a[s++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==t&&"boolean"!==r||((e=ge(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,r,i=0;for(e=" "+t+" ";r=this[i++];)if(1===r.nodeType&&(" "+pe(ge(r))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;B.fn.extend({val:function(t){var e,r,i,s=this[0];return arguments.length?(i=C(t),this.each(function(r){var s;1===this.nodeType&&(null==(s=i?t.call(this,r,B(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=B.map(s,function(t){return null==t?"":t+""})),(e=B.valHooks[this.type]||B.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=B.valHooks[s.type]||B.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(r=e.get(s,"value"))?r:"string"==typeof(r=s.value)?r.replace(Ce,""):null==r?"":r:void 0}}),B.extend({valHooks:{option:{get:function(t){var e=B.find.attr(t,"value");return null!=e?e:pe(B.text(t))}},select:{get:function(t){var e,r,i,s=t.options,n=t.selectedIndex,a="select-one"===t.type,o=a?null:[],h=a?n+1:s.length;for(i=n<0?h:a?n:0;i-1)&&(r=!0);return r||(t.selectedIndex=-1),n}}}}),B.each(["radio","checkbox"],function(){B.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=B.inArray(B(t).val(),e)>-1}},y.checkOn||(B.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in r;var be=/^(?:focusinfocus|focusoutblur)$/,ve=function(t){t.stopPropagation()};B.extend(B.event,{trigger:function(t,e,i,s){var n,o,h,u,l,c,f,d,p=[i||a],g=m.call(t,"type")?t.type:t,y=m.call(t,"namespace")?t.namespace.split("."):[];if(o=d=h=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!be.test(g+B.event.triggered)&&(g.indexOf(".")>-1&&(g=(y=g.split(".")).shift(),y.sort()),l=g.indexOf(":")<0&&"on"+g,(t=t[B.expando]?t:new B.Event(g,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:B.makeArray(e,[t]),f=B.event.special[g]||{},s||!f.trigger||!1!==f.trigger.apply(i,e))){if(!s&&!f.noBubble&&!b(i)){for(u=f.delegateType||g,be.test(u+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),h=o;h===(i.ownerDocument||a)&&p.push(h.defaultView||h.parentWindow||r)}for(n=0;(o=p[n++])&&!t.isPropagationStopped();)d=o,t.type=n>1?u:f.bindType||g,(c=(Q.get(o,"events")||{})[t.type]&&Q.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&X(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=g,s||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!X(i)||l&&C(i[g])&&!b(i)&&((h=i[l])&&(i[l]=null),B.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,ve),i[g](),t.isPropagationStopped()&&d.removeEventListener(g,ve),B.event.triggered=void 0,h&&(i[l]=h)),t.result}},simulate:function(t,e,r){var i=B.extend(new B.Event,r,{type:t,isSimulated:!0});B.event.trigger(i,null,e)}}),B.fn.extend({trigger:function(t,e){return this.each(function(){B.event.trigger(t,e,this)})},triggerHandler:function(t,e){var r=this[0];if(r)return B.event.trigger(t,e,r,!0)}}),y.focusin||B.each({focus:"focusin",blur:"focusout"},function(t,e){var r=function(t){B.event.simulate(e,t.target,B.event.fix(t))};B.event.special[e]={setup:function(){var i=this.ownerDocument||this,s=Q.access(i,e);s||i.addEventListener(t,r,!0),Q.access(i,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this,s=Q.access(i,e)-1;s?Q.access(i,e,s):(i.removeEventListener(t,r,!0),Q.remove(i,e))}}});var we=r.location,ke=Date.now(),Be=/\?/;B.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||B.error("Invalid XML: "+t),e};var Se=/\[\]$/,Re=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,r,i){var s;if(Array.isArray(e))B.each(e,function(e,s){r||Se.test(t)?i(t,s):Fe(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,r,i)});else if(r||"object"!==k(e))i(t,e);else for(s in e)Fe(t+"["+s+"]",e[s],r,i)}B.param=function(t,e){var r,i=[],s=function(t,e){var r=C(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(t)||t.jquery&&!B.isPlainObject(t))B.each(t,function(){s(this.name,this.value)});else for(r in t)Fe(r,t[r],e,s);return i.join("&")},B.fn.extend({serialize:function(){return B.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=B.prop(this,"elements");return t?B.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!B(this).is(":disabled")&&Ae.test(this.nodeName)&&!Te.test(t)&&(this.checked||!ft.test(t))}).map(function(t,e){var r=B(this).val();return null==r?null:Array.isArray(r)?B.map(r,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:r.replace(Re,"\r\n")}}).get()}});var Le=/%20/g,_e=/#.*$/,xe=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ee=/^(?:GET|HEAD)$/,Me=/^\/\//,Pe={},Oe={},De="*/".concat("*"),We=a.createElement("a");function Ie(t){return function(e,r){"string"!=typeof e&&(r=e,e="*");var i,s=0,n=e.toLowerCase().match(W)||[];if(C(r))for(;i=n[s++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(r)):(t[i]=t[i]||[]).push(r)}}function Ge(t,e,r,i){var s={},n=t===Oe;function a(o){var h;return s[o]=!0,B.each(t[o]||[],function(t,o){var u=o(e,r,i);return"string"!=typeof u||n||s[u]?n?!(h=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),h}return a(e.dataTypes[0])||!s["*"]&&a("*")}function Ne(t,e){var r,i,s=B.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((s[r]?t:i||(i={}))[r]=e[r]);return i&&B.extend(!0,t,i),t}We.href=we.href,B.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":De,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":B.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ne(Ne(t,B.ajaxSettings),e):Ne(B.ajaxSettings,t)},ajaxPrefilter:Ie(Pe),ajaxTransport:Ie(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,s,n,o,h,u,l,c,f,d,m=B.ajaxSetup({},e),p=m.context||m,g=m.context&&(p.nodeType||p.jquery)?B(p):B.event,y=B.Deferred(),C=B.Callbacks("once memory"),b=m.statusCode||{},v={},w={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!o)for(o={};e=He.exec(n);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return l?n:null},setRequestHeader:function(t,e){return null==l&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,v[t]=e),this},overrideMimeType:function(t){return null==l&&(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return i&&i.abort(e),R(0,e),this}};if(y.promise(S),m.url=((t||m.url||we.href)+"").replace(Me,we.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(W)||[""],null==m.crossDomain){u=a.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=We.protocol+"//"+We.host!=u.protocol+"//"+u.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=B.param(m.data,m.traditional)),Ge(Pe,m,e,S),l)return S;for(f in(c=B.event&&m.global)&&0==B.active++&&B.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ee.test(m.type),s=m.url.replace(_e,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Le,"+")):(d=m.url.slice(s.length),m.data&&(m.processData||"string"==typeof m.data)&&(s+=(Be.test(s)?"&":"?")+m.data,delete m.data),!1===m.cache&&(s=s.replace(xe,"$1"),d=(Be.test(s)?"&":"?")+"_="+ke+++d),m.url=s+d),m.ifModified&&(B.lastModified[s]&&S.setRequestHeader("If-Modified-Since",B.lastModified[s]),B.etag[s]&&S.setRequestHeader("If-None-Match",B.etag[s])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&S.setRequestHeader("Content-Type",m.contentType),S.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+De+"; q=0.01":""):m.accepts["*"]),m.headers)S.setRequestHeader(f,m.headers[f]);if(m.beforeSend&&(!1===m.beforeSend.call(p,S,m)||l))return S.abort();if(k="abort",C.add(m.complete),S.done(m.success),S.fail(m.error),i=Ge(Oe,m,e,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,m]),l)return S;m.async&&m.timeout>0&&(h=r.setTimeout(function(){S.abort("timeout")},m.timeout));try{l=!1,i.send(v,R)}catch(t){if(l)throw t;R(-1,t)}}else R(-1,"No Transport");function R(t,e,a,o){var u,f,d,v,w,k=e;l||(l=!0,h&&r.clearTimeout(h),i=void 0,n=o||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(v=function(t,e,r){for(var i,s,n,a,o=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in o)if(o[s]&&o[s].test(i)){h.unshift(s);break}if(h[0]in r)n=h[0];else{for(s in r){if(!h[0]||t.converters[s+" "+h[0]]){n=s;break}a||(a=s)}n=n||a}if(n)return n!==h[0]&&h.unshift(n),r[n]}(m,S,a)),v=function(t,e,r,i){var s,n,a,o,h,u={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(n=l.shift();n;)if(t.responseFields[n]&&(r[t.responseFields[n]]=e),!h&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=n,n=l.shift())if("*"===n)n=h;else if("*"!==h&&h!==n){if(!(a=u[h+" "+n]||u["* "+n]))for(s in u)if((o=s.split(" "))[1]===n&&(a=u[h+" "+o[0]]||u["* "+o[0]])){!0===a?a=u[s]:!0!==u[s]&&(n=o[0],l.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+h+" to "+n}}}return{state:"success",data:e}}(m,v,S,u),u?(m.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(B.lastModified[s]=w),(w=S.getResponseHeader("etag"))&&(B.etag[s]=w)),204===t||"HEAD"===m.type?k="nocontent":304===t?k="notmodified":(k=v.state,f=v.data,u=!(d=v.error))):(d=k,!t&&k||(k="error",t<0&&(t=0))),S.status=t,S.statusText=(e||k)+"",u?y.resolveWith(p,[f,k,S]):y.rejectWith(p,[S,k,d]),S.statusCode(b),b=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,m,u?f:d]),C.fireWith(p,[S,k]),c&&(g.trigger("ajaxComplete",[S,m]),--B.active||B.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,r){return B.get(t,e,r,"json")},getScript:function(t,e){return B.get(t,void 0,e,"script")}}),B.each(["get","post"],function(t,e){B[e]=function(t,r,i,s){return C(r)&&(s=s||i,i=r,r=void 0),B.ajax(B.extend({url:t,type:e,dataType:s,data:r,success:i},B.isPlainObject(t)&&t))}}),B._evalUrl=function(t){return B.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},B.fn.extend({wrapAll:function(t){var e;return this[0]&&(C(t)&&(t=t.call(this[0])),e=B(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return C(t)?this.each(function(e){B(this).wrapInner(t.call(this,e))}):this.each(function(){var e=B(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)})},wrap:function(t){var e=C(t);return this.each(function(r){B(this).wrapAll(e?t.call(this,r):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){B(this).replaceWith(this.childNodes)}),this}}),B.expr.pseudos.hidden=function(t){return!B.expr.pseudos.visible(t)},B.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},B.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},je=B.ajaxSettings.xhr();y.cors=!!je&&"withCredentials"in je,y.ajax=je=!!je,B.ajaxTransport(function(t){var e,i;if(y.cors||je&&!t.crossDomain)return{send:function(s,n){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(a,s[a]);e=function(t){return function(){e&&(e=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?n(0,"error"):n(o.status,o.statusText):n(ze[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=e(),i=o.onerror=o.ontimeout=e("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&r.setTimeout(function(){e&&i()})},e=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),B.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),B.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return B.globalEval(t),t}}}),B.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),B.ajaxTransport("script",function(t){var e,r;if(t.crossDomain)return{send:function(i,s){e=B("