formtastic-jquery_inputmask 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +3 -0
  3. data/bower.json +19 -0
  4. data/lib/formtastic/jquery_inputmask/engine.rb +1 -1
  5. data/lib/formtastic/jquery_inputmask/version.rb +1 -1
  6. data/vendor/inputmask/.bower.json +59 -0
  7. data/vendor/inputmask/bower.json +40 -0
  8. data/vendor/inputmask/dist/inputmask/bindings/inputmask.binding.js +21 -0
  9. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.js +62 -0
  10. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js +13 -0
  11. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.js +133 -0
  12. data/vendor/inputmask/dist/inputmask/global/document.js +11 -0
  13. data/vendor/inputmask/dist/inputmask/global/window.js +11 -0
  14. data/vendor/inputmask/dist/inputmask/inputmask.date.extensions.js +490 -0
  15. data/vendor/inputmask/dist/inputmask/inputmask.extensions.js +97 -0
  16. data/vendor/inputmask/dist/inputmask/inputmask.js +1643 -0
  17. data/vendor/inputmask/dist/inputmask/inputmask.numeric.extensions.js +347 -0
  18. data/vendor/inputmask/dist/inputmask/inputmask.phone.extensions.js +61 -0
  19. data/vendor/inputmask/dist/inputmask/inputmask.regex.extensions.js +115 -0
  20. data/vendor/inputmask/dist/inputmask/jquery.inputmask.js +62 -0
  21. data/vendor/inputmask/dist/inputmask/phone-codes/phone-be.js +244 -0
  22. data/vendor/inputmask/dist/inputmask/phone-codes/phone-nl.js +924 -0
  23. data/vendor/inputmask/dist/inputmask/phone-codes/phone-ru.js +19240 -0
  24. data/vendor/inputmask/dist/inputmask/phone-codes/phone-uk.js +1009 -0
  25. data/vendor/inputmask/dist/inputmask/phone-codes/phone.js +2111 -0
  26. data/vendor/inputmask/dist/jquery.inputmask.bundle.js +3085 -0
  27. data/vendor/inputmask/dist/min/inputmask/inputmask.date.extensions.min.js +9 -0
  28. data/vendor/inputmask/dist/min/inputmask/inputmask.extensions.min.js +9 -0
  29. data/vendor/inputmask/dist/min/inputmask/inputmask.min.js +10 -0
  30. data/vendor/inputmask/dist/min/inputmask/inputmask.numeric.extensions.min.js +9 -0
  31. data/vendor/inputmask/dist/min/inputmask/inputmask.phone.extensions.min.js +9 -0
  32. data/vendor/inputmask/dist/min/inputmask/inputmask.regex.extensions.min.js +9 -0
  33. data/vendor/inputmask/dist/min/inputmask/jquery.inputmask.min.js +9 -0
  34. data/vendor/inputmask/dist/min/jquery.inputmask.bundle.min.js +11 -0
  35. data/vendor/jquery/.bower.json +25 -0
  36. data/vendor/jquery/AUTHORS.txt +301 -0
  37. data/vendor/jquery/LICENSE.txt +36 -0
  38. data/vendor/jquery/README.md +67 -0
  39. data/vendor/jquery/bower.json +14 -0
  40. data/vendor/jquery/dist/core.js +476 -0
  41. data/vendor/jquery/dist/jquery.js +10253 -0
  42. data/vendor/jquery/dist/jquery.min.js +4 -0
  43. data/vendor/jquery/dist/jquery.min.map +1 -0
  44. data/vendor/jquery/dist/jquery.slim.js +8160 -0
  45. data/vendor/jquery/dist/jquery.slim.min.js +4 -0
  46. data/vendor/jquery/dist/jquery.slim.min.map +1 -0
  47. data/vendor/jquery/external/sizzle/LICENSE.txt +36 -0
  48. data/vendor/jquery/external/sizzle/dist/sizzle.js +2272 -0
  49. data/vendor/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  50. data/vendor/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  51. data/vendor/jquery/src/.eslintrc.json +5 -0
  52. data/vendor/jquery/src/ajax.js +855 -0
  53. data/vendor/jquery/src/ajax/jsonp.js +102 -0
  54. data/vendor/jquery/src/ajax/load.js +76 -0
  55. data/vendor/jquery/src/ajax/parseXML.js +30 -0
  56. data/vendor/jquery/src/ajax/script.js +77 -0
  57. data/vendor/jquery/src/ajax/var/location.js +5 -0
  58. data/vendor/jquery/src/ajax/var/nonce.js +7 -0
  59. data/vendor/jquery/src/ajax/var/rquery.js +5 -0
  60. data/vendor/jquery/src/ajax/xhr.js +169 -0
  61. data/vendor/jquery/src/attributes.js +13 -0
  62. data/vendor/jquery/src/attributes/attr.js +141 -0
  63. data/vendor/jquery/src/attributes/classes.js +174 -0
  64. data/vendor/jquery/src/attributes/prop.js +143 -0
  65. data/vendor/jquery/src/attributes/support.js +33 -0
  66. data/vendor/jquery/src/attributes/val.js +190 -0
  67. data/vendor/jquery/src/callbacks.js +234 -0
  68. data/vendor/jquery/src/core.js +476 -0
  69. data/vendor/jquery/src/core/DOMEval.js +16 -0
  70. data/vendor/jquery/src/core/access.js +70 -0
  71. data/vendor/jquery/src/core/init.js +128 -0
  72. data/vendor/jquery/src/core/nodeName.js +13 -0
  73. data/vendor/jquery/src/core/parseHTML.js +65 -0
  74. data/vendor/jquery/src/core/ready-no-deferred.js +96 -0
  75. data/vendor/jquery/src/core/ready.js +86 -0
  76. data/vendor/jquery/src/core/readyException.js +13 -0
  77. data/vendor/jquery/src/core/stripAndCollapse.js +14 -0
  78. data/vendor/jquery/src/core/support.js +20 -0
  79. data/vendor/jquery/src/core/var/rsingleTag.js +6 -0
  80. data/vendor/jquery/src/css.js +438 -0
  81. data/vendor/jquery/src/css/addGetHookIf.js +26 -0
  82. data/vendor/jquery/src/css/adjustCSS.js +71 -0
  83. data/vendor/jquery/src/css/curCSS.js +65 -0
  84. data/vendor/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  85. data/vendor/jquery/src/css/showHide.js +105 -0
  86. data/vendor/jquery/src/css/support.js +89 -0
  87. data/vendor/jquery/src/css/var/cssExpand.js +5 -0
  88. data/vendor/jquery/src/css/var/getStyles.js +17 -0
  89. data/vendor/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  90. data/vendor/jquery/src/css/var/rmargin.js +5 -0
  91. data/vendor/jquery/src/css/var/rnumnonpx.js +7 -0
  92. data/vendor/jquery/src/css/var/swap.js +26 -0
  93. data/vendor/jquery/src/data.js +179 -0
  94. data/vendor/jquery/src/data/Data.js +161 -0
  95. data/vendor/jquery/src/data/var/acceptData.js +19 -0
  96. data/vendor/jquery/src/data/var/dataPriv.js +7 -0
  97. data/vendor/jquery/src/data/var/dataUser.js +7 -0
  98. data/vendor/jquery/src/deferred.js +391 -0
  99. data/vendor/jquery/src/deferred/exceptionHook.js +21 -0
  100. data/vendor/jquery/src/deprecated.js +40 -0
  101. data/vendor/jquery/src/dimensions.js +56 -0
  102. data/vendor/jquery/src/effects.js +699 -0
  103. data/vendor/jquery/src/effects/Tween.js +123 -0
  104. data/vendor/jquery/src/effects/animatedSelector.js +15 -0
  105. data/vendor/jquery/src/event.js +746 -0
  106. data/vendor/jquery/src/event/ajax.js +22 -0
  107. data/vendor/jquery/src/event/alias.js +29 -0
  108. data/vendor/jquery/src/event/focusin.js +55 -0
  109. data/vendor/jquery/src/event/support.js +11 -0
  110. data/vendor/jquery/src/event/trigger.js +185 -0
  111. data/vendor/jquery/src/exports/amd.js +26 -0
  112. data/vendor/jquery/src/exports/global.js +34 -0
  113. data/vendor/jquery/src/jquery.js +41 -0
  114. data/vendor/jquery/src/manipulation.js +488 -0
  115. data/vendor/jquery/src/manipulation/_evalUrl.js +23 -0
  116. data/vendor/jquery/src/manipulation/buildFragment.js +104 -0
  117. data/vendor/jquery/src/manipulation/getAll.js +32 -0
  118. data/vendor/jquery/src/manipulation/setGlobalEval.js +22 -0
  119. data/vendor/jquery/src/manipulation/support.js +35 -0
  120. data/vendor/jquery/src/manipulation/var/rcheckableType.js +5 -0
  121. data/vendor/jquery/src/manipulation/var/rscriptType.js +5 -0
  122. data/vendor/jquery/src/manipulation/var/rtagName.js +5 -0
  123. data/vendor/jquery/src/manipulation/wrapMap.js +29 -0
  124. data/vendor/jquery/src/offset.js +229 -0
  125. data/vendor/jquery/src/queue.js +145 -0
  126. data/vendor/jquery/src/queue/delay.js +24 -0
  127. data/vendor/jquery/src/selector-native.js +237 -0
  128. data/vendor/jquery/src/selector-sizzle.js +19 -0
  129. data/vendor/jquery/src/selector.js +3 -0
  130. data/vendor/jquery/src/serialize.js +130 -0
  131. data/vendor/jquery/src/traversing.js +191 -0
  132. data/vendor/jquery/src/traversing/findFilter.js +106 -0
  133. data/vendor/jquery/src/traversing/var/dir.js +22 -0
  134. data/vendor/jquery/src/traversing/var/rneedsContext.js +8 -0
  135. data/vendor/jquery/src/traversing/var/siblings.js +17 -0
  136. data/vendor/jquery/src/var/ObjectFunctionString.js +7 -0
  137. data/vendor/jquery/src/var/arr.js +5 -0
  138. data/vendor/jquery/src/var/class2type.js +6 -0
  139. data/vendor/jquery/src/var/concat.js +7 -0
  140. data/vendor/jquery/src/var/document.js +5 -0
  141. data/vendor/jquery/src/var/documentElement.js +7 -0
  142. data/vendor/jquery/src/var/fnToString.js +7 -0
  143. data/vendor/jquery/src/var/getProto.js +5 -0
  144. data/vendor/jquery/src/var/hasOwn.js +7 -0
  145. data/vendor/jquery/src/var/indexOf.js +7 -0
  146. data/vendor/jquery/src/var/pnum.js +5 -0
  147. data/vendor/jquery/src/var/push.js +7 -0
  148. data/vendor/jquery/src/var/rcssNum.js +9 -0
  149. data/vendor/jquery/src/var/rnothtmlwhite.js +8 -0
  150. data/vendor/jquery/src/var/slice.js +7 -0
  151. data/vendor/jquery/src/var/support.js +6 -0
  152. data/vendor/jquery/src/var/toString.js +7 -0
  153. data/vendor/jquery/src/wrap.js +77 -0
  154. metadata +152 -3
  155. data/.gitmodules +0 -3
@@ -0,0 +1,3 @@
1
+ /*! Sizzle v2.3.3 | (c) jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});var Aa=a.Sizzle;ga.noConflict=function(){return a.Sizzle===ga&&(a.Sizzle=Aa),ga},"function"==typeof define&&define.amd?define(function(){return ga}):"undefined"!=typeof module&&module.exports?module.exports=ga:a.Sizzle=ga}(window);
3
+ //# sourceMappingURL=sizzle.min.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["sizzle.js"],"names":["window","i","support","Expr","getText","isXML","tokenize","compile","select","outermostContext","sortInput","hasDuplicate","setDocument","document","docElem","documentIsHTML","rbuggyQSA","rbuggyMatches","matches","contains","expando","Date","preferredDoc","dirruns","done","classCache","createCache","tokenCache","compilerCache","sortOrder","a","b","hasOwn","hasOwnProperty","arr","pop","push_native","push","slice","indexOf","list","elem","len","length","booleans","whitespace","identifier","attributes","pseudos","rwhitespace","RegExp","rtrim","rcomma","rcombinators","rattributeQuotes","rpseudo","ridentifier","matchExpr","ID","CLASS","TAG","ATTR","PSEUDO","CHILD","bool","needsContext","rinputs","rheader","rnative","rquickExpr","rsibling","runescape","funescape","_","escaped","escapedWhitespace","high","String","fromCharCode","rcssescape","fcssescape","ch","asCodePoint","charCodeAt","toString","unloadHandler","disabledAncestor","addCombinator","disabled","dir","next","apply","call","childNodes","nodeType","e","target","els","j","Sizzle","selector","context","results","seed","m","nid","match","groups","newSelector","newContext","ownerDocument","exec","getElementById","id","getElementsByTagName","getElementsByClassName","qsa","test","nodeName","toLowerCase","getAttribute","replace","setAttribute","toSelector","join","testContext","parentNode","querySelectorAll","qsaError","removeAttribute","keys","cache","key","value","cacheLength","shift","markFunction","fn","assert","el","createElement","removeChild","addHandle","attrs","handler","split","attrHandle","siblingCheck","cur","diff","sourceIndex","nextSibling","createInputPseudo","type","name","createButtonPseudo","createDisabledPseudo","isDisabled","createPositionalPseudo","argument","matchIndexes","documentElement","node","hasCompare","subWindow","doc","defaultView","top","addEventListener","attachEvent","className","appendChild","createComment","getById","getElementsByName","filter","attrId","find","getAttributeNode","elems","tag","tmp","innerHTML","input","matchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","sortDetached","aup","ap","bp","unshift","expr","elements","ret","attr","val","undefined","specified","escape","sel","error","msg","Error","uniqueSort","duplicates","detectDuplicates","sortStable","sort","splice","textContent","firstChild","nodeValue","selectors","createPseudo","relative",">","first"," ","+","~","preFilter","excess","unquoted","nodeNameSelector","pattern","operator","check","result","what","last","simple","forward","ofType","xml","uniqueCache","outerCache","nodeIndex","start","parent","useCache","lastChild","uniqueID","pseudo","args","setFilters","idx","matched","not","matcher","unmatched","has","text","innerText","lang","elemLang","hash","location","root","focus","activeElement","hasFocus","href","tabIndex","enabled","checked","selected","selectedIndex","empty","header","button","eq","even","odd","lt","gt","radio","checkbox","file","password","image","submit","reset","prototype","filters","parseOnly","tokens","soFar","preFilters","cached","combinator","base","skip","checkNonElements","doneName","oldCache","newCache","elementMatcher","matchers","multipleContexts","contexts","condense","map","newUnmatched","mapped","setMatcher","postFilter","postFinder","postSelector","temp","preMap","postMap","preexisting","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","implicitRelative","matchContext","matchAnyContext","concat","matcherFromGroupMatchers","elementMatchers","setMatchers","bySet","byElement","superMatcher","outermost","matchedCount","setMatched","contextBackup","dirrunsUnique","Math","random","token","compiled","defaultValue","_sizzle","noConflict","define","amd","module","exports"],"mappings":";CAUA,SAAWA,GAEX,GAAIC,GACHC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,EACAC,EACAC,EACAC,EACA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,QAAS,IACY,KAA1CiB,EAAG+E,WAAWlG,aAAc,YAEnCsB,GAAW,QAAS,SAAUrG,EAAMiH,EAAMrJ,GACzC,IAAMA,GAAyC,UAAhCoC,EAAK6E,SAASC,cAC5B,MAAO9E,GAAK+S,eAOT9M,GAAO,SAAUC,GACtB,MAAsC,OAA/BA,EAAGnB,aAAa,eAEvBsB,GAAWlG,EAAU,SAAUH,EAAMiH,EAAMrJ,GAC1C,GAAIsM,EACJ,KAAMtM,EACL,MAAOoC,GAAMiH,MAAW,EAAOA,EAAKnC,eACjCoF,EAAMlK,EAAKyI,iBAAkBxB,KAAWiD,EAAIE,UAC7CF,EAAItE,MACL,MAMJ,IAAIoN,IAAUzV,EAAOmG,MAErBA,IAAOuP,WAAa,WAKnB,MAJK1V,GAAOmG,SAAWA,KACtBnG,EAAOmG,OAASsP,IAGVtP,IAGe,kBAAXwP,SAAyBA,OAAOC,IAC3CD,OAAO,WAAa,MAAOxP,MAEE,mBAAX0P,SAA0BA,OAAOC,QACnDD,OAAOC,QAAU3P,GAEjBnG,EAAOmG,OAASA,IAIbnG","file":"sizzle.min.js"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "../.eslintrc-browser.json"
5
+ }
@@ -0,0 +1,855 @@
1
+ define( [
2
+ "./core",
3
+ "./var/document",
4
+ "./var/rnothtmlwhite",
5
+ "./ajax/var/location",
6
+ "./ajax/var/nonce",
7
+ "./ajax/var/rquery",
8
+
9
+ "./core/init",
10
+ "./ajax/parseXML",
11
+ "./event/trigger",
12
+ "./deferred",
13
+ "./serialize" // jQuery.param
14
+ ], function( jQuery, document, rnothtmlwhite, location, nonce, rquery ) {
15
+
16
+ "use strict";
17
+
18
+ var
19
+ r20 = /%20/g,
20
+ rhash = /#.*$/,
21
+ rantiCache = /([?&])_=[^&]*/,
22
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
23
+
24
+ // #7653, #8125, #8152: local protocol detection
25
+ rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
26
+ rnoContent = /^(?:GET|HEAD)$/,
27
+ rprotocol = /^\/\//,
28
+
29
+ /* Prefilters
30
+ * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
31
+ * 2) These are called:
32
+ * - BEFORE asking for a transport
33
+ * - AFTER param serialization (s.data is a string if s.processData is true)
34
+ * 3) key is the dataType
35
+ * 4) the catchall symbol "*" can be used
36
+ * 5) execution will start with transport dataType and THEN continue down to "*" if needed
37
+ */
38
+ prefilters = {},
39
+
40
+ /* Transports bindings
41
+ * 1) key is the dataType
42
+ * 2) the catchall symbol "*" can be used
43
+ * 3) selection will start with transport dataType and THEN go to "*" if needed
44
+ */
45
+ transports = {},
46
+
47
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
48
+ allTypes = "*/".concat( "*" ),
49
+
50
+ // Anchor tag for parsing the document origin
51
+ originAnchor = document.createElement( "a" );
52
+ originAnchor.href = location.href;
53
+
54
+ // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
55
+ function addToPrefiltersOrTransports( structure ) {
56
+
57
+ // dataTypeExpression is optional and defaults to "*"
58
+ return function( dataTypeExpression, func ) {
59
+
60
+ if ( typeof dataTypeExpression !== "string" ) {
61
+ func = dataTypeExpression;
62
+ dataTypeExpression = "*";
63
+ }
64
+
65
+ var dataType,
66
+ i = 0,
67
+ dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
68
+
69
+ if ( jQuery.isFunction( func ) ) {
70
+
71
+ // For each dataType in the dataTypeExpression
72
+ while ( ( dataType = dataTypes[ i++ ] ) ) {
73
+
74
+ // Prepend if requested
75
+ if ( dataType[ 0 ] === "+" ) {
76
+ dataType = dataType.slice( 1 ) || "*";
77
+ ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
78
+
79
+ // Otherwise append
80
+ } else {
81
+ ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
82
+ }
83
+ }
84
+ }
85
+ };
86
+ }
87
+
88
+ // Base inspection function for prefilters and transports
89
+ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
90
+
91
+ var inspected = {},
92
+ seekingTransport = ( structure === transports );
93
+
94
+ function inspect( dataType ) {
95
+ var selected;
96
+ inspected[ dataType ] = true;
97
+ jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
98
+ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
99
+ if ( typeof dataTypeOrTransport === "string" &&
100
+ !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
101
+
102
+ options.dataTypes.unshift( dataTypeOrTransport );
103
+ inspect( dataTypeOrTransport );
104
+ return false;
105
+ } else if ( seekingTransport ) {
106
+ return !( selected = dataTypeOrTransport );
107
+ }
108
+ } );
109
+ return selected;
110
+ }
111
+
112
+ return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
113
+ }
114
+
115
+ // A special extend for ajax options
116
+ // that takes "flat" options (not to be deep extended)
117
+ // Fixes #9887
118
+ function ajaxExtend( target, src ) {
119
+ var key, deep,
120
+ flatOptions = jQuery.ajaxSettings.flatOptions || {};
121
+
122
+ for ( key in src ) {
123
+ if ( src[ key ] !== undefined ) {
124
+ ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
125
+ }
126
+ }
127
+ if ( deep ) {
128
+ jQuery.extend( true, target, deep );
129
+ }
130
+
131
+ return target;
132
+ }
133
+
134
+ /* Handles responses to an ajax request:
135
+ * - finds the right dataType (mediates between content-type and expected dataType)
136
+ * - returns the corresponding response
137
+ */
138
+ function ajaxHandleResponses( s, jqXHR, responses ) {
139
+
140
+ var ct, type, finalDataType, firstDataType,
141
+ contents = s.contents,
142
+ dataTypes = s.dataTypes;
143
+
144
+ // Remove auto dataType and get content-type in the process
145
+ while ( dataTypes[ 0 ] === "*" ) {
146
+ dataTypes.shift();
147
+ if ( ct === undefined ) {
148
+ ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
149
+ }
150
+ }
151
+
152
+ // Check if we're dealing with a known content-type
153
+ if ( ct ) {
154
+ for ( type in contents ) {
155
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
156
+ dataTypes.unshift( type );
157
+ break;
158
+ }
159
+ }
160
+ }
161
+
162
+ // Check to see if we have a response for the expected dataType
163
+ if ( dataTypes[ 0 ] in responses ) {
164
+ finalDataType = dataTypes[ 0 ];
165
+ } else {
166
+
167
+ // Try convertible dataTypes
168
+ for ( type in responses ) {
169
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
170
+ finalDataType = type;
171
+ break;
172
+ }
173
+ if ( !firstDataType ) {
174
+ firstDataType = type;
175
+ }
176
+ }
177
+
178
+ // Or just use first one
179
+ finalDataType = finalDataType || firstDataType;
180
+ }
181
+
182
+ // If we found a dataType
183
+ // We add the dataType to the list if needed
184
+ // and return the corresponding response
185
+ if ( finalDataType ) {
186
+ if ( finalDataType !== dataTypes[ 0 ] ) {
187
+ dataTypes.unshift( finalDataType );
188
+ }
189
+ return responses[ finalDataType ];
190
+ }
191
+ }
192
+
193
+ /* Chain conversions given the request and the original response
194
+ * Also sets the responseXXX fields on the jqXHR instance
195
+ */
196
+ function ajaxConvert( s, response, jqXHR, isSuccess ) {
197
+ var conv2, current, conv, tmp, prev,
198
+ converters = {},
199
+
200
+ // Work with a copy of dataTypes in case we need to modify it for conversion
201
+ dataTypes = s.dataTypes.slice();
202
+
203
+ // Create converters map with lowercased keys
204
+ if ( dataTypes[ 1 ] ) {
205
+ for ( conv in s.converters ) {
206
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
207
+ }
208
+ }
209
+
210
+ current = dataTypes.shift();
211
+
212
+ // Convert to each sequential dataType
213
+ while ( current ) {
214
+
215
+ if ( s.responseFields[ current ] ) {
216
+ jqXHR[ s.responseFields[ current ] ] = response;
217
+ }
218
+
219
+ // Apply the dataFilter if provided
220
+ if ( !prev && isSuccess && s.dataFilter ) {
221
+ response = s.dataFilter( response, s.dataType );
222
+ }
223
+
224
+ prev = current;
225
+ current = dataTypes.shift();
226
+
227
+ if ( current ) {
228
+
229
+ // There's only work to do if current dataType is non-auto
230
+ if ( current === "*" ) {
231
+
232
+ current = prev;
233
+
234
+ // Convert response if prev dataType is non-auto and differs from current
235
+ } else if ( prev !== "*" && prev !== current ) {
236
+
237
+ // Seek a direct converter
238
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
239
+
240
+ // If none found, seek a pair
241
+ if ( !conv ) {
242
+ for ( conv2 in converters ) {
243
+
244
+ // If conv2 outputs current
245
+ tmp = conv2.split( " " );
246
+ if ( tmp[ 1 ] === current ) {
247
+
248
+ // If prev can be converted to accepted input
249
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
250
+ converters[ "* " + tmp[ 0 ] ];
251
+ if ( conv ) {
252
+
253
+ // Condense equivalence converters
254
+ if ( conv === true ) {
255
+ conv = converters[ conv2 ];
256
+
257
+ // Otherwise, insert the intermediate dataType
258
+ } else if ( converters[ conv2 ] !== true ) {
259
+ current = tmp[ 0 ];
260
+ dataTypes.unshift( tmp[ 1 ] );
261
+ }
262
+ break;
263
+ }
264
+ }
265
+ }
266
+ }
267
+
268
+ // Apply converter (if not an equivalence)
269
+ if ( conv !== true ) {
270
+
271
+ // Unless errors are allowed to bubble, catch and return them
272
+ if ( conv && s.throws ) {
273
+ response = conv( response );
274
+ } else {
275
+ try {
276
+ response = conv( response );
277
+ } catch ( e ) {
278
+ return {
279
+ state: "parsererror",
280
+ error: conv ? e : "No conversion from " + prev + " to " + current
281
+ };
282
+ }
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+
289
+ return { state: "success", data: response };
290
+ }
291
+
292
+ jQuery.extend( {
293
+
294
+ // Counter for holding the number of active queries
295
+ active: 0,
296
+
297
+ // Last-Modified header cache for next request
298
+ lastModified: {},
299
+ etag: {},
300
+
301
+ ajaxSettings: {
302
+ url: location.href,
303
+ type: "GET",
304
+ isLocal: rlocalProtocol.test( location.protocol ),
305
+ global: true,
306
+ processData: true,
307
+ async: true,
308
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
309
+
310
+ /*
311
+ timeout: 0,
312
+ data: null,
313
+ dataType: null,
314
+ username: null,
315
+ password: null,
316
+ cache: null,
317
+ throws: false,
318
+ traditional: false,
319
+ headers: {},
320
+ */
321
+
322
+ accepts: {
323
+ "*": allTypes,
324
+ text: "text/plain",
325
+ html: "text/html",
326
+ xml: "application/xml, text/xml",
327
+ json: "application/json, text/javascript"
328
+ },
329
+
330
+ contents: {
331
+ xml: /\bxml\b/,
332
+ html: /\bhtml/,
333
+ json: /\bjson\b/
334
+ },
335
+
336
+ responseFields: {
337
+ xml: "responseXML",
338
+ text: "responseText",
339
+ json: "responseJSON"
340
+ },
341
+
342
+ // Data converters
343
+ // Keys separate source (or catchall "*") and destination types with a single space
344
+ converters: {
345
+
346
+ // Convert anything to text
347
+ "* text": String,
348
+
349
+ // Text to html (true = no transformation)
350
+ "text html": true,
351
+
352
+ // Evaluate text as a json expression
353
+ "text json": JSON.parse,
354
+
355
+ // Parse text as xml
356
+ "text xml": jQuery.parseXML
357
+ },
358
+
359
+ // For options that shouldn't be deep extended:
360
+ // you can add your own custom options here if
361
+ // and when you create one that shouldn't be
362
+ // deep extended (see ajaxExtend)
363
+ flatOptions: {
364
+ url: true,
365
+ context: true
366
+ }
367
+ },
368
+
369
+ // Creates a full fledged settings object into target
370
+ // with both ajaxSettings and settings fields.
371
+ // If target is omitted, writes into ajaxSettings.
372
+ ajaxSetup: function( target, settings ) {
373
+ return settings ?
374
+
375
+ // Building a settings object
376
+ ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
377
+
378
+ // Extending ajaxSettings
379
+ ajaxExtend( jQuery.ajaxSettings, target );
380
+ },
381
+
382
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
383
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
384
+
385
+ // Main method
386
+ ajax: function( url, options ) {
387
+
388
+ // If url is an object, simulate pre-1.5 signature
389
+ if ( typeof url === "object" ) {
390
+ options = url;
391
+ url = undefined;
392
+ }
393
+
394
+ // Force options to be an object
395
+ options = options || {};
396
+
397
+ var transport,
398
+
399
+ // URL without anti-cache param
400
+ cacheURL,
401
+
402
+ // Response headers
403
+ responseHeadersString,
404
+ responseHeaders,
405
+
406
+ // timeout handle
407
+ timeoutTimer,
408
+
409
+ // Url cleanup var
410
+ urlAnchor,
411
+
412
+ // Request state (becomes false upon send and true upon completion)
413
+ completed,
414
+
415
+ // To know if global events are to be dispatched
416
+ fireGlobals,
417
+
418
+ // Loop variable
419
+ i,
420
+
421
+ // uncached part of the url
422
+ uncached,
423
+
424
+ // Create the final options object
425
+ s = jQuery.ajaxSetup( {}, options ),
426
+
427
+ // Callbacks context
428
+ callbackContext = s.context || s,
429
+
430
+ // Context for global events is callbackContext if it is a DOM node or jQuery collection
431
+ globalEventContext = s.context &&
432
+ ( callbackContext.nodeType || callbackContext.jquery ) ?
433
+ jQuery( callbackContext ) :
434
+ jQuery.event,
435
+
436
+ // Deferreds
437
+ deferred = jQuery.Deferred(),
438
+ completeDeferred = jQuery.Callbacks( "once memory" ),
439
+
440
+ // Status-dependent callbacks
441
+ statusCode = s.statusCode || {},
442
+
443
+ // Headers (they are sent all at once)
444
+ requestHeaders = {},
445
+ requestHeadersNames = {},
446
+
447
+ // Default abort message
448
+ strAbort = "canceled",
449
+
450
+ // Fake xhr
451
+ jqXHR = {
452
+ readyState: 0,
453
+
454
+ // Builds headers hashtable if needed
455
+ getResponseHeader: function( key ) {
456
+ var match;
457
+ if ( completed ) {
458
+ if ( !responseHeaders ) {
459
+ responseHeaders = {};
460
+ while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
461
+ responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
462
+ }
463
+ }
464
+ match = responseHeaders[ key.toLowerCase() ];
465
+ }
466
+ return match == null ? null : match;
467
+ },
468
+
469
+ // Raw string
470
+ getAllResponseHeaders: function() {
471
+ return completed ? responseHeadersString : null;
472
+ },
473
+
474
+ // Caches the header
475
+ setRequestHeader: function( name, value ) {
476
+ if ( completed == null ) {
477
+ name = requestHeadersNames[ name.toLowerCase() ] =
478
+ requestHeadersNames[ name.toLowerCase() ] || name;
479
+ requestHeaders[ name ] = value;
480
+ }
481
+ return this;
482
+ },
483
+
484
+ // Overrides response content-type header
485
+ overrideMimeType: function( type ) {
486
+ if ( completed == null ) {
487
+ s.mimeType = type;
488
+ }
489
+ return this;
490
+ },
491
+
492
+ // Status-dependent callbacks
493
+ statusCode: function( map ) {
494
+ var code;
495
+ if ( map ) {
496
+ if ( completed ) {
497
+
498
+ // Execute the appropriate callbacks
499
+ jqXHR.always( map[ jqXHR.status ] );
500
+ } else {
501
+
502
+ // Lazy-add the new callbacks in a way that preserves old ones
503
+ for ( code in map ) {
504
+ statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
505
+ }
506
+ }
507
+ }
508
+ return this;
509
+ },
510
+
511
+ // Cancel the request
512
+ abort: function( statusText ) {
513
+ var finalText = statusText || strAbort;
514
+ if ( transport ) {
515
+ transport.abort( finalText );
516
+ }
517
+ done( 0, finalText );
518
+ return this;
519
+ }
520
+ };
521
+
522
+ // Attach deferreds
523
+ deferred.promise( jqXHR );
524
+
525
+ // Add protocol if not provided (prefilters might expect it)
526
+ // Handle falsy url in the settings object (#10093: consistency with old signature)
527
+ // We also use the url parameter if available
528
+ s.url = ( ( url || s.url || location.href ) + "" )
529
+ .replace( rprotocol, location.protocol + "//" );
530
+
531
+ // Alias method option to type as per ticket #12004
532
+ s.type = options.method || options.type || s.method || s.type;
533
+
534
+ // Extract dataTypes list
535
+ s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
536
+
537
+ // A cross-domain request is in order when the origin doesn't match the current origin.
538
+ if ( s.crossDomain == null ) {
539
+ urlAnchor = document.createElement( "a" );
540
+
541
+ // Support: IE <=8 - 11, Edge 12 - 13
542
+ // IE throws exception on accessing the href property if url is malformed,
543
+ // e.g. http://example.com:80x/
544
+ try {
545
+ urlAnchor.href = s.url;
546
+
547
+ // Support: IE <=8 - 11 only
548
+ // Anchor's host property isn't correctly set when s.url is relative
549
+ urlAnchor.href = urlAnchor.href;
550
+ s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
551
+ urlAnchor.protocol + "//" + urlAnchor.host;
552
+ } catch ( e ) {
553
+
554
+ // If there is an error parsing the URL, assume it is crossDomain,
555
+ // it can be rejected by the transport if it is invalid
556
+ s.crossDomain = true;
557
+ }
558
+ }
559
+
560
+ // Convert data if not already a string
561
+ if ( s.data && s.processData && typeof s.data !== "string" ) {
562
+ s.data = jQuery.param( s.data, s.traditional );
563
+ }
564
+
565
+ // Apply prefilters
566
+ inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
567
+
568
+ // If request was aborted inside a prefilter, stop there
569
+ if ( completed ) {
570
+ return jqXHR;
571
+ }
572
+
573
+ // We can fire global events as of now if asked to
574
+ // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
575
+ fireGlobals = jQuery.event && s.global;
576
+
577
+ // Watch for a new set of requests
578
+ if ( fireGlobals && jQuery.active++ === 0 ) {
579
+ jQuery.event.trigger( "ajaxStart" );
580
+ }
581
+
582
+ // Uppercase the type
583
+ s.type = s.type.toUpperCase();
584
+
585
+ // Determine if request has content
586
+ s.hasContent = !rnoContent.test( s.type );
587
+
588
+ // Save the URL in case we're toying with the If-Modified-Since
589
+ // and/or If-None-Match header later on
590
+ // Remove hash to simplify url manipulation
591
+ cacheURL = s.url.replace( rhash, "" );
592
+
593
+ // More options handling for requests with no content
594
+ if ( !s.hasContent ) {
595
+
596
+ // Remember the hash so we can put it back
597
+ uncached = s.url.slice( cacheURL.length );
598
+
599
+ // If data is available, append data to url
600
+ if ( s.data ) {
601
+ cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
602
+
603
+ // #9682: remove data so that it's not used in an eventual retry
604
+ delete s.data;
605
+ }
606
+
607
+ // Add or update anti-cache param if needed
608
+ if ( s.cache === false ) {
609
+ cacheURL = cacheURL.replace( rantiCache, "$1" );
610
+ uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
611
+ }
612
+
613
+ // Put hash and anti-cache on the URL that will be requested (gh-1732)
614
+ s.url = cacheURL + uncached;
615
+
616
+ // Change '%20' to '+' if this is encoded form body content (gh-2658)
617
+ } else if ( s.data && s.processData &&
618
+ ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
619
+ s.data = s.data.replace( r20, "+" );
620
+ }
621
+
622
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
623
+ if ( s.ifModified ) {
624
+ if ( jQuery.lastModified[ cacheURL ] ) {
625
+ jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
626
+ }
627
+ if ( jQuery.etag[ cacheURL ] ) {
628
+ jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
629
+ }
630
+ }
631
+
632
+ // Set the correct header, if data is being sent
633
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
634
+ jqXHR.setRequestHeader( "Content-Type", s.contentType );
635
+ }
636
+
637
+ // Set the Accepts header for the server, depending on the dataType
638
+ jqXHR.setRequestHeader(
639
+ "Accept",
640
+ s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
641
+ s.accepts[ s.dataTypes[ 0 ] ] +
642
+ ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
643
+ s.accepts[ "*" ]
644
+ );
645
+
646
+ // Check for headers option
647
+ for ( i in s.headers ) {
648
+ jqXHR.setRequestHeader( i, s.headers[ i ] );
649
+ }
650
+
651
+ // Allow custom headers/mimetypes and early abort
652
+ if ( s.beforeSend &&
653
+ ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
654
+
655
+ // Abort if not done already and return
656
+ return jqXHR.abort();
657
+ }
658
+
659
+ // Aborting is no longer a cancellation
660
+ strAbort = "abort";
661
+
662
+ // Install callbacks on deferreds
663
+ completeDeferred.add( s.complete );
664
+ jqXHR.done( s.success );
665
+ jqXHR.fail( s.error );
666
+
667
+ // Get transport
668
+ transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
669
+
670
+ // If no transport, we auto-abort
671
+ if ( !transport ) {
672
+ done( -1, "No Transport" );
673
+ } else {
674
+ jqXHR.readyState = 1;
675
+
676
+ // Send global event
677
+ if ( fireGlobals ) {
678
+ globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
679
+ }
680
+
681
+ // If request was aborted inside ajaxSend, stop there
682
+ if ( completed ) {
683
+ return jqXHR;
684
+ }
685
+
686
+ // Timeout
687
+ if ( s.async && s.timeout > 0 ) {
688
+ timeoutTimer = window.setTimeout( function() {
689
+ jqXHR.abort( "timeout" );
690
+ }, s.timeout );
691
+ }
692
+
693
+ try {
694
+ completed = false;
695
+ transport.send( requestHeaders, done );
696
+ } catch ( e ) {
697
+
698
+ // Rethrow post-completion exceptions
699
+ if ( completed ) {
700
+ throw e;
701
+ }
702
+
703
+ // Propagate others as results
704
+ done( -1, e );
705
+ }
706
+ }
707
+
708
+ // Callback for when everything is done
709
+ function done( status, nativeStatusText, responses, headers ) {
710
+ var isSuccess, success, error, response, modified,
711
+ statusText = nativeStatusText;
712
+
713
+ // Ignore repeat invocations
714
+ if ( completed ) {
715
+ return;
716
+ }
717
+
718
+ completed = true;
719
+
720
+ // Clear timeout if it exists
721
+ if ( timeoutTimer ) {
722
+ window.clearTimeout( timeoutTimer );
723
+ }
724
+
725
+ // Dereference transport for early garbage collection
726
+ // (no matter how long the jqXHR object will be used)
727
+ transport = undefined;
728
+
729
+ // Cache response headers
730
+ responseHeadersString = headers || "";
731
+
732
+ // Set readyState
733
+ jqXHR.readyState = status > 0 ? 4 : 0;
734
+
735
+ // Determine if successful
736
+ isSuccess = status >= 200 && status < 300 || status === 304;
737
+
738
+ // Get response data
739
+ if ( responses ) {
740
+ response = ajaxHandleResponses( s, jqXHR, responses );
741
+ }
742
+
743
+ // Convert no matter what (that way responseXXX fields are always set)
744
+ response = ajaxConvert( s, response, jqXHR, isSuccess );
745
+
746
+ // If successful, handle type chaining
747
+ if ( isSuccess ) {
748
+
749
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
750
+ if ( s.ifModified ) {
751
+ modified = jqXHR.getResponseHeader( "Last-Modified" );
752
+ if ( modified ) {
753
+ jQuery.lastModified[ cacheURL ] = modified;
754
+ }
755
+ modified = jqXHR.getResponseHeader( "etag" );
756
+ if ( modified ) {
757
+ jQuery.etag[ cacheURL ] = modified;
758
+ }
759
+ }
760
+
761
+ // if no content
762
+ if ( status === 204 || s.type === "HEAD" ) {
763
+ statusText = "nocontent";
764
+
765
+ // if not modified
766
+ } else if ( status === 304 ) {
767
+ statusText = "notmodified";
768
+
769
+ // If we have data, let's convert it
770
+ } else {
771
+ statusText = response.state;
772
+ success = response.data;
773
+ error = response.error;
774
+ isSuccess = !error;
775
+ }
776
+ } else {
777
+
778
+ // Extract error from statusText and normalize for non-aborts
779
+ error = statusText;
780
+ if ( status || !statusText ) {
781
+ statusText = "error";
782
+ if ( status < 0 ) {
783
+ status = 0;
784
+ }
785
+ }
786
+ }
787
+
788
+ // Set data for the fake xhr object
789
+ jqXHR.status = status;
790
+ jqXHR.statusText = ( nativeStatusText || statusText ) + "";
791
+
792
+ // Success/Error
793
+ if ( isSuccess ) {
794
+ deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
795
+ } else {
796
+ deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
797
+ }
798
+
799
+ // Status-dependent callbacks
800
+ jqXHR.statusCode( statusCode );
801
+ statusCode = undefined;
802
+
803
+ if ( fireGlobals ) {
804
+ globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
805
+ [ jqXHR, s, isSuccess ? success : error ] );
806
+ }
807
+
808
+ // Complete
809
+ completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
810
+
811
+ if ( fireGlobals ) {
812
+ globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
813
+
814
+ // Handle the global AJAX counter
815
+ if ( !( --jQuery.active ) ) {
816
+ jQuery.event.trigger( "ajaxStop" );
817
+ }
818
+ }
819
+ }
820
+
821
+ return jqXHR;
822
+ },
823
+
824
+ getJSON: function( url, data, callback ) {
825
+ return jQuery.get( url, data, callback, "json" );
826
+ },
827
+
828
+ getScript: function( url, callback ) {
829
+ return jQuery.get( url, undefined, callback, "script" );
830
+ }
831
+ } );
832
+
833
+ jQuery.each( [ "get", "post" ], function( i, method ) {
834
+ jQuery[ method ] = function( url, data, callback, type ) {
835
+
836
+ // Shift arguments if data argument was omitted
837
+ if ( jQuery.isFunction( data ) ) {
838
+ type = type || callback;
839
+ callback = data;
840
+ data = undefined;
841
+ }
842
+
843
+ // The url can be an options object (which then must have .url)
844
+ return jQuery.ajax( jQuery.extend( {
845
+ url: url,
846
+ type: method,
847
+ dataType: type,
848
+ data: data,
849
+ success: callback
850
+ }, jQuery.isPlainObject( url ) && url ) );
851
+ };
852
+ } );
853
+
854
+ return jQuery;
855
+ } );