@swisspost/internet-header 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/cjs/index-87874f19.js +50 -1
  2. package/dist/cjs/{klp-widget.controller-8e2198a2.js → klp-widget.controller-7908f551.js} +32 -20
  3. package/dist/cjs/klp-widget.controller-7908f551.js.map +1 -0
  4. package/dist/cjs/{language.service-9334ca5d.js → language.service-672abba5.js} +2 -2
  5. package/dist/cjs/language.service-672abba5.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/post-klp-login-widget.cjs.entry.js +2 -2
  8. package/dist/cjs/post-klp-login-widget.cjs.entry.js.map +1 -1
  9. package/dist/cjs/post-language-switch.cjs.entry.js +1 -1
  10. package/dist/cjs/post-main-navigation.cjs.entry.js +2 -2
  11. package/dist/cjs/post-main-navigation.cjs.entry.js.map +1 -1
  12. package/dist/cjs/post-search.cjs.entry.js +4 -1
  13. package/dist/cjs/post-search.cjs.entry.js.map +1 -1
  14. package/dist/cjs/post-skiplinks.cjs.entry.js +1 -1
  15. package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js +1328 -8
  16. package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js.map +1 -1
  17. package/dist/cjs/swisspost-internet-footer.cjs.entry.js +2 -2
  18. package/dist/cjs/swisspost-internet-footer.cjs.entry.js.map +1 -1
  19. package/dist/cjs/swisspost-internet-header.cjs.entry.js +67 -37
  20. package/dist/cjs/swisspost-internet-header.cjs.entry.js.map +1 -1
  21. package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
  22. package/dist/collection/assets/js/klp-login-widget.js +1 -1
  23. package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.css +35 -27
  24. package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js +57 -6
  25. package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js.map +1 -1
  26. package/dist/collection/components/post-internet-footer/post-internet-footer.css +29 -21
  27. package/dist/collection/components/post-internet-header/logo-animation/logo-animation.js +6 -3
  28. package/dist/collection/components/post-internet-header/logo-animation/logo-animation.js.map +1 -1
  29. package/dist/collection/components/post-internet-header/post-internet-header.js +33 -26
  30. package/dist/collection/components/post-internet-header/post-internet-header.js.map +1 -1
  31. package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.css +8 -4
  32. package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js +1 -1
  33. package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js.map +1 -1
  34. package/dist/collection/components/post-main-navigation/post-main-navigation.css +6 -2
  35. package/dist/collection/components/post-search/post-search.css +119 -565
  36. package/dist/collection/components/post-search/post-search.js +3 -0
  37. package/dist/collection/components/post-search/post-search.js.map +1 -1
  38. package/dist/collection/services/language.service.js +1 -1
  39. package/dist/collection/services/language.service.js.map +1 -1
  40. package/dist/collection/utils/scrollparent.js +21 -0
  41. package/dist/collection/utils/scrollparent.js.map +1 -0
  42. package/dist/components/klp-widget.controller.js +31 -19
  43. package/dist/components/klp-widget.controller.js.map +1 -1
  44. package/dist/components/language.service.js +1 -1
  45. package/dist/components/language.service.js.map +1 -1
  46. package/dist/components/post-klp-login-widget2.js +1 -1
  47. package/dist/components/post-klp-login-widget2.js.map +1 -1
  48. package/dist/components/post-main-navigation2.js +1 -1
  49. package/dist/components/post-main-navigation2.js.map +1 -1
  50. package/dist/components/post-search2.js +4 -1
  51. package/dist/components/post-search2.js.map +1 -1
  52. package/dist/components/swisspost-internet-breadcrumbs.js +1329 -8
  53. package/dist/components/swisspost-internet-breadcrumbs.js.map +1 -1
  54. package/dist/components/swisspost-internet-footer.js +1 -1
  55. package/dist/components/swisspost-internet-footer.js.map +1 -1
  56. package/dist/components/swisspost-internet-header.js +68 -38
  57. package/dist/components/swisspost-internet-header.js.map +1 -1
  58. package/dist/docs.d.ts +322 -0
  59. package/dist/docs.json +914 -0
  60. package/dist/esm/index-82f4f02c.js +50 -1
  61. package/dist/esm/{klp-widget.controller-e9029567.js → klp-widget.controller-30d47ff4.js} +32 -20
  62. package/dist/esm/klp-widget.controller-30d47ff4.js.map +1 -0
  63. package/dist/esm/{language.service-bd0f3b6f.js → language.service-4289815d.js} +2 -2
  64. package/dist/esm/language.service-4289815d.js.map +1 -0
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/post-klp-login-widget.entry.js +2 -2
  67. package/dist/esm/post-klp-login-widget.entry.js.map +1 -1
  68. package/dist/esm/post-language-switch.entry.js +1 -1
  69. package/dist/esm/post-main-navigation.entry.js +2 -2
  70. package/dist/esm/post-main-navigation.entry.js.map +1 -1
  71. package/dist/esm/post-search.entry.js +4 -1
  72. package/dist/esm/post-search.entry.js.map +1 -1
  73. package/dist/esm/post-skiplinks.entry.js +1 -1
  74. package/dist/esm/swisspost-internet-breadcrumbs.entry.js +1328 -8
  75. package/dist/esm/swisspost-internet-breadcrumbs.entry.js.map +1 -1
  76. package/dist/esm/swisspost-internet-footer.entry.js +2 -2
  77. package/dist/esm/swisspost-internet-footer.entry.js.map +1 -1
  78. package/dist/esm/swisspost-internet-header.entry.js +67 -37
  79. package/dist/esm/swisspost-internet-header.entry.js.map +1 -1
  80. package/dist/esm/swisspost-internet-header.js +1 -1
  81. package/dist/esm-es5/index-82f4f02c.js +1 -2
  82. package/dist/esm-es5/index-82f4f02c.js.map +1 -1
  83. package/dist/esm-es5/klp-widget.controller-30d47ff4.js +13 -0
  84. package/dist/esm-es5/klp-widget.controller-30d47ff4.js.map +1 -0
  85. package/dist/esm-es5/language.service-4289815d.js +2 -0
  86. package/dist/esm-es5/language.service-4289815d.js.map +1 -0
  87. package/dist/esm-es5/loader.js +1 -1
  88. package/dist/esm-es5/loader.js.map +1 -1
  89. package/dist/esm-es5/post-klp-login-widget.entry.js +1 -1
  90. package/dist/esm-es5/post-klp-login-widget.entry.js.map +1 -1
  91. package/dist/esm-es5/post-language-switch.entry.js +1 -1
  92. package/dist/esm-es5/post-main-navigation.entry.js +1 -1
  93. package/dist/esm-es5/post-main-navigation.entry.js.map +1 -1
  94. package/dist/esm-es5/post-search.entry.js +1 -1
  95. package/dist/esm-es5/post-search.entry.js.map +1 -1
  96. package/dist/esm-es5/post-skiplinks.entry.js +1 -1
  97. package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js +2 -2
  98. package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js.map +1 -1
  99. package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
  100. package/dist/esm-es5/swisspost-internet-footer.entry.js.map +1 -1
  101. package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
  102. package/dist/esm-es5/swisspost-internet-header.entry.js.map +1 -1
  103. package/dist/esm-es5/swisspost-internet-header.js +1 -1
  104. package/dist/esm-es5/swisspost-internet-header.js.map +1 -1
  105. package/dist/swisspost-internet-header/{p-0dd2de97.entry.js → p-02df8ca4.entry.js} +2 -2
  106. package/dist/swisspost-internet-header/p-0de024c6.system.entry.js +2 -0
  107. package/dist/swisspost-internet-header/{p-e1fa55e3.system.entry.js.map → p-0de024c6.system.entry.js.map} +1 -1
  108. package/dist/swisspost-internet-header/p-2ab12ef9.entry.js +2 -0
  109. package/dist/swisspost-internet-header/{p-273fd39b.entry.js.map → p-2ab12ef9.entry.js.map} +1 -1
  110. package/dist/swisspost-internet-header/p-33f6c69f.entry.js +2 -0
  111. package/dist/swisspost-internet-header/{p-9ab24fb3.entry.js.map → p-33f6c69f.entry.js.map} +1 -1
  112. package/dist/swisspost-internet-header/p-34da85e6.system.entry.js +2 -0
  113. package/dist/swisspost-internet-header/{p-e2df6e93.system.entry.js.map → p-34da85e6.system.entry.js.map} +1 -1
  114. package/dist/swisspost-internet-header/p-3cfe4534.entry.js +2 -0
  115. package/dist/swisspost-internet-header/p-3cfe4534.entry.js.map +1 -0
  116. package/dist/swisspost-internet-header/p-43320028.system.entry.js +2 -0
  117. package/dist/swisspost-internet-header/p-43320028.system.entry.js.map +1 -0
  118. package/dist/swisspost-internet-header/p-55fbc914.entry.js +2 -0
  119. package/dist/swisspost-internet-header/{p-811b9615.entry.js.map → p-55fbc914.entry.js.map} +1 -1
  120. package/dist/swisspost-internet-header/p-5d893017.system.js +1 -1
  121. package/dist/swisspost-internet-header/p-5d893017.system.js.map +1 -1
  122. package/dist/swisspost-internet-header/p-66d1bf9a.js +13 -0
  123. package/dist/swisspost-internet-header/p-66d1bf9a.js.map +1 -0
  124. package/dist/swisspost-internet-header/p-6dc0fc47.system.entry.js +2 -0
  125. package/dist/swisspost-internet-header/p-6dc0fc47.system.entry.js.map +1 -0
  126. package/dist/swisspost-internet-header/p-75dde9a2.entry.js +7 -0
  127. package/dist/swisspost-internet-header/p-75dde9a2.entry.js.map +1 -0
  128. package/dist/swisspost-internet-header/{p-6f69aff4.system.entry.js → p-781ea7c2.system.entry.js} +2 -2
  129. package/dist/swisspost-internet-header/p-a5f5bb55.js +2 -0
  130. package/dist/swisspost-internet-header/p-a5f5bb55.js.map +1 -0
  131. package/dist/swisspost-internet-header/{p-131078ce.system.entry.js → p-a691c791.system.entry.js} +2 -2
  132. package/dist/swisspost-internet-header/p-b4c0cb5a.system.js +13 -0
  133. package/dist/swisspost-internet-header/p-b4c0cb5a.system.js.map +1 -0
  134. package/dist/swisspost-internet-header/p-b5758d6a.system.entry.js +7 -0
  135. package/dist/swisspost-internet-header/p-b5758d6a.system.entry.js.map +1 -0
  136. package/dist/swisspost-internet-header/p-bf99c127.system.js +2 -0
  137. package/dist/swisspost-internet-header/p-bf99c127.system.js.map +1 -0
  138. package/dist/swisspost-internet-header/{p-9ec1f474.entry.js → p-cbba35a8.entry.js} +2 -2
  139. package/dist/swisspost-internet-header/p-cf9fb780.system.entry.js +2 -0
  140. package/dist/swisspost-internet-header/{p-a366648c.system.entry.js.map → p-cf9fb780.system.entry.js.map} +1 -1
  141. package/dist/swisspost-internet-header/p-db8023e1.entry.js +2 -0
  142. package/dist/swisspost-internet-header/{p-5b233b42.entry.js.map → p-db8023e1.entry.js.map} +1 -1
  143. package/dist/swisspost-internet-header/swisspost-internet-header.css +1 -3
  144. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
  145. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js.map +1 -1
  146. package/dist/types/components/post-internet-breadcrumbs/post-internet-breadcrumbs.d.ts +8 -3
  147. package/dist/types/components/post-internet-header/post-internet-header.d.ts +4 -3
  148. package/dist/types/components.d.ts +11 -6
  149. package/dist/types/services/language.service.d.ts +2 -5
  150. package/dist/types/utils/scrollparent.d.ts +1 -0
  151. package/package.json +14 -13
  152. package/readme.md +45 -10
  153. package/dist/cjs/klp-widget.controller-8e2198a2.js.map +0 -1
  154. package/dist/cjs/language.service-9334ca5d.js.map +0 -1
  155. package/dist/esm/klp-widget.controller-e9029567.js.map +0 -1
  156. package/dist/esm/language.service-bd0f3b6f.js.map +0 -1
  157. package/dist/esm-es5/klp-widget.controller-e9029567.js +0 -13
  158. package/dist/esm-es5/klp-widget.controller-e9029567.js.map +0 -1
  159. package/dist/esm-es5/language.service-bd0f3b6f.js +0 -2
  160. package/dist/esm-es5/language.service-bd0f3b6f.js.map +0 -1
  161. package/dist/swisspost-internet-header/p-06d32a28.entry.js +0 -7
  162. package/dist/swisspost-internet-header/p-06d32a28.entry.js.map +0 -1
  163. package/dist/swisspost-internet-header/p-273fd39b.entry.js +0 -2
  164. package/dist/swisspost-internet-header/p-4099b274.system.js +0 -2
  165. package/dist/swisspost-internet-header/p-4099b274.system.js.map +0 -1
  166. package/dist/swisspost-internet-header/p-5b233b42.entry.js +0 -2
  167. package/dist/swisspost-internet-header/p-6426cae8.system.js +0 -13
  168. package/dist/swisspost-internet-header/p-6426cae8.system.js.map +0 -1
  169. package/dist/swisspost-internet-header/p-7bed0797.js +0 -2
  170. package/dist/swisspost-internet-header/p-7bed0797.js.map +0 -1
  171. package/dist/swisspost-internet-header/p-811b9615.entry.js +0 -2
  172. package/dist/swisspost-internet-header/p-84f78f40.system.entry.js +0 -2
  173. package/dist/swisspost-internet-header/p-84f78f40.system.entry.js.map +0 -1
  174. package/dist/swisspost-internet-header/p-8ad474a9.js +0 -13
  175. package/dist/swisspost-internet-header/p-8ad474a9.js.map +0 -1
  176. package/dist/swisspost-internet-header/p-97c90e22.system.entry.js +0 -7
  177. package/dist/swisspost-internet-header/p-97c90e22.system.entry.js.map +0 -1
  178. package/dist/swisspost-internet-header/p-9ab24fb3.entry.js +0 -2
  179. package/dist/swisspost-internet-header/p-a366648c.system.entry.js +0 -2
  180. package/dist/swisspost-internet-header/p-b33e74a6.entry.js +0 -2
  181. package/dist/swisspost-internet-header/p-b33e74a6.entry.js.map +0 -1
  182. package/dist/swisspost-internet-header/p-d6a99399.system.entry.js +0 -2
  183. package/dist/swisspost-internet-header/p-d6a99399.system.entry.js.map +0 -1
  184. package/dist/swisspost-internet-header/p-e1fa55e3.system.entry.js +0 -2
  185. package/dist/swisspost-internet-header/p-e2df6e93.system.entry.js +0 -2
  186. /package/dist/swisspost-internet-header/{p-0dd2de97.entry.js.map → p-02df8ca4.entry.js.map} +0 -0
  187. /package/dist/swisspost-internet-header/{p-6f69aff4.system.entry.js.map → p-781ea7c2.system.entry.js.map} +0 -0
  188. /package/dist/swisspost-internet-header/{p-131078ce.system.entry.js.map → p-a691c791.system.entry.js.map} +0 -0
  189. /package/dist/swisspost-internet-header/{p-9ec1f474.entry.js.map → p-cbba35a8.entry.js.map} +0 -0
@@ -1,13 +0,0 @@
1
- System.register(["./p-f887c8bb.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.a;n=e.c}],execute:function(){(function(e){var t;if(typeof window!=="undefined"){t=window}else if(typeof self!=="undefined"){t=self}t.SockJS=e()})((function(){return function(){function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return r(n||e)}),c,c.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}return e}()({1:[function(e,t,n){(function(n){(function(){var i=e("./transport-list");t.exports=e("./main")(i);if("_sockjs_onload"in n){setTimeout(n._sockjs_onload,1)}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./main":14,"./transport-list":16}],2:[function(e,t,n){var i=e("inherits"),r=e("./event");function o(){r.call(this);this.initEvent("close",false,false);this.wasClean=false;this.code=0;this.reason=""}i(o,r);t.exports=o},{"./event":4,inherits:57}],3:[function(e,t,n){var i=e("inherits"),r=e("./eventtarget");function o(){r.call(this)}i(o,r);o.prototype.removeAllListeners=function(e){if(e){delete this._listeners[e]}else{this._listeners={}}};o.prototype.once=function(e,t){var n=this,i=false;function r(){n.removeListener(e,r);if(!i){i=true;t.apply(this,arguments)}}this.on(e,r)};o.prototype.emit=function(){var e=arguments[0];var t=this._listeners[e];if(!t){return}var n=arguments.length;var i=new Array(n-1);for(var r=1;r<n;r++){i[r-1]=arguments[r]}for(var o=0;o<t.length;o++){t[o].apply(this,i)}};o.prototype.on=o.prototype.addListener=r.prototype.addEventListener;o.prototype.removeListener=r.prototype.removeEventListener;t.exports.EventEmitter=o},{"./eventtarget":5,inherits:57}],4:[function(e,t,n){function i(e){this.type=e}i.prototype.initEvent=function(e,t,n){this.type=e;this.bubbles=t;this.cancelable=n;this.timeStamp=+new Date;return this};i.prototype.stopPropagation=function(){};i.prototype.preventDefault=function(){};i.CAPTURING_PHASE=1;i.AT_TARGET=2;i.BUBBLING_PHASE=3;t.exports=i},{}],5:[function(e,t,n){function i(){this._listeners={}}i.prototype.addEventListener=function(e,t){if(!(e in this._listeners)){this._listeners[e]=[]}var n=this._listeners[e];if(n.indexOf(t)===-1){n=n.concat([t])}this._listeners[e]=n};i.prototype.removeEventListener=function(e,t){var n=this._listeners[e];if(!n){return}var i=n.indexOf(t);if(i!==-1){if(n.length>1){this._listeners[e]=n.slice(0,i).concat(n.slice(i+1))}else{delete this._listeners[e]}return}};i.prototype.dispatchEvent=function(){var e=arguments[0];var t=e.type;var n=arguments.length===1?[e]:Array.apply(null,arguments);if(this["on"+t]){this["on"+t].apply(this,n)}if(t in this._listeners){var i=this._listeners[t];for(var r=0;r<i.length;r++){i[r].apply(this,n)}}};t.exports=i},{}],6:[function(e,t,n){var i=e("inherits"),r=e("./event");function o(e){r.call(this);this.initEvent("message",false,false);this.data=e}i(o,r);t.exports=o},{"./event":4,inherits:57}],7:[function(e,t,n){var i=e("./utils/iframe");function r(e){this._transport=e;e.on("message",this._transportMessage.bind(this));e.on("close",this._transportClose.bind(this))}r.prototype._transportClose=function(e,t){i.postMessage("c",JSON.stringify([e,t]))};r.prototype._transportMessage=function(e){i.postMessage("t",e)};r.prototype._send=function(e){this._transport.send(e)};r.prototype._close=function(){this._transport.close();this._transport.removeAllListeners()};t.exports=r},{"./utils/iframe":47}],8:[function(e,t,n){(function(n){(function(){var n=e("./utils/url"),i=e("./utils/event"),r=e("./facade"),o=e("./info-iframe-receiver"),s=e("./utils/iframe"),a=e("./location");t.exports=function(e,t){var u={};t.forEach((function(e){if(e.facadeTransport){u[e.facadeTransport.transportName]=e.facadeTransport}}));u[o.transportName]=o;var l;e.bootstrap_iframe=function(){var t;s.currentWindowId=a.hash.slice(1);var o=function(i){if(i.source!==parent){return}if(typeof l==="undefined"){l=i.origin}if(i.origin!==l){return}var o;try{o=JSON.parse(i.data)}catch(e){return}if(o.windowId!==s.currentWindowId){return}switch(o.type){case"s":var c;try{c=JSON.parse(o.data)}catch(e){break}var f=c[0];var d=c[1];var p=c[2];var h=c[3];if(f!==e.version){throw new Error("Incompatible SockJS! Main site uses:"+' "'+f+'", the iframe:'+' "'+e.version+'".')}if(!n.isOriginEqual(p,a.href)||!n.isOriginEqual(h,a.href)){throw new Error("Can't connect to different domain from within an "+"iframe. ("+a.href+", "+p+", "+h+")")}t=new r(new u[d](p,h));break;case"m":t._send(o.data);break;case"c":if(t){t._close()}t=null;break}};i.attachEvent("message",o);s.postMessage("s")}}}).call(this)}).call(this,{env:{}})},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:55}],9:[function(e,t,n){(function(n){(function(){var n=e("events").EventEmitter,i=e("inherits"),r=e("./utils/object");function o(e,t){n.call(this);var i=this;var o=+new Date;this.xo=new t("GET",e);this.xo.once("finish",(function(e,t){var n,s;if(e===200){s=+new Date-o;if(t){try{n=JSON.parse(t)}catch(e){}}if(!r.isObject(n)){n={}}}i.emit("finish",n,s);i.removeAllListeners()}))}i(o,n);o.prototype.close=function(){this.removeAllListeners();this.xo.close()};t.exports=o}).call(this)}).call(this,{env:{}})},{"./utils/object":49,debug:55,events:3,inherits:57}],10:[function(e,t,n){var i=e("inherits"),r=e("events").EventEmitter,o=e("./transport/sender/xhr-local"),s=e("./info-ajax");function a(e){var t=this;r.call(this);this.ir=new s(e,o);this.ir.once("finish",(function(e,n){t.ir=null;t.emit("message",JSON.stringify([e,n]))}))}i(a,r);a.transportName="iframe-info-receiver";a.prototype.close=function(){if(this.ir){this.ir.close();this.ir=null}this.removeAllListeners()};t.exports=a},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:57}],11:[function(e,t,n){(function(n,i){(function(){var n=e("events").EventEmitter,r=e("inherits"),o=e("./utils/event"),s=e("./transport/iframe"),a=e("./info-iframe-receiver");function u(e,t){var r=this;n.call(this);var u=function(){var n=r.ifr=new s(a.transportName,t,e);n.once("message",(function(e){if(e){var t;try{t=JSON.parse(e)}catch(e){r.emit("finish");r.close();return}var n=t[0],i=t[1];r.emit("finish",n,i)}r.close()}));n.once("close",(function(){r.emit("finish");r.close()}))};if(!i.document.body){o.attachEvent("load",u)}else{u()}}r(u,n);u.enabled=function(){return s.enabled()};u.prototype.close=function(){if(this.ifr){this.ifr.close()}this.removeAllListeners();this.ifr=null};t.exports=u}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:55,events:3,inherits:57}],12:[function(e,t,n){(function(n){(function(){var n=e("events").EventEmitter,i=e("inherits"),r=e("./utils/url"),o=e("./transport/sender/xdr"),s=e("./transport/sender/xhr-cors"),a=e("./transport/sender/xhr-local"),u=e("./transport/sender/xhr-fake"),l=e("./info-iframe"),c=e("./info-ajax");function f(e,t){var i=this;n.call(this);setTimeout((function(){i.doXhr(e,t)}),0)}i(f,n);f._getReceiver=function(e,t,n){if(n.sameOrigin){return new c(t,a)}if(s.enabled){return new c(t,s)}if(o.enabled&&n.sameScheme){return new c(t,o)}if(l.enabled()){return new l(e,t)}return new c(t,u)};f.prototype.doXhr=function(e,t){var n=this,i=r.addPath(e,"/info");this.xo=f._getReceiver(e,i,t);this.timeoutRef=setTimeout((function(){n._cleanup(false);n.emit("finish")}),f.timeout);this.xo.once("finish",(function(e,t){n._cleanup(true);n.emit("finish",e,t)}))};f.prototype._cleanup=function(e){clearTimeout(this.timeoutRef);this.timeoutRef=null;if(!e&&this.xo){this.xo.close()}this.xo=null};f.prototype.close=function(){this.removeAllListeners();this._cleanup(false)};f.timeout=8e3;t.exports=f}).call(this)}).call(this,{env:{}})},{"./info-ajax":9,"./info-iframe":11,"./transport/sender/xdr":34,"./transport/sender/xhr-cors":35,"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:55,events:3,inherits:57}],13:[function(e,t,n){(function(e){(function(){t.exports=e.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],14:[function(e,t,n){(function(n,i){(function(){e("./shims");var n=e("url-parse"),r=e("inherits"),o=e("./utils/random"),s=e("./utils/escape"),a=e("./utils/url"),u=e("./utils/event"),l=e("./utils/transport"),c=e("./utils/object"),f=e("./utils/browser"),d=e("./utils/log"),p=e("./event/event"),h=e("./event/eventtarget"),v=e("./location"),g=e("./event/close"),m=e("./event/trans-message"),y=e("./info-receiver");var b;function w(e,t,i){if(!(this instanceof w)){return new w(e,t,i)}if(arguments.length<1){throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present")}h.call(this);this.readyState=w.CONNECTING;this.extensions="";this.protocol="";i=i||{};if(i.protocols_whitelist){d.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead.")}this._transportsWhitelist=i.transports;this._transportOptions=i.transportOptions||{};this._timeout=i.timeout||0;var r=i.sessionId||8;if(typeof r==="function"){this._generateSessionId=r}else if(typeof r==="number"){this._generateSessionId=function(){return o.string(r)}}else{throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.")}this._server=i.server||o.numberString(1e3);var s=new n(e);if(!s.host||!s.protocol){throw new SyntaxError("The URL '"+e+"' is invalid")}else if(s.hash){throw new SyntaxError("The URL must not contain a fragment")}else if(s.protocol!=="http:"&&s.protocol!=="https:"){throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+s.protocol+"' is not allowed.")}var u=s.protocol==="https:";if(v.protocol==="https:"&&!u){if(!a.isLoopbackAddr(s.hostname)){throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS")}}if(!t){t=[]}else if(!Array.isArray(t)){t=[t]}var l=t.sort();l.forEach((function(e,t){if(!e){throw new SyntaxError("The protocols entry '"+e+"' is invalid.")}if(t<l.length-1&&e===l[t+1]){throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")}}));var c=a.getOrigin(v.href);this._origin=c?c.toLowerCase():null;s.set("pathname",s.pathname.replace(/\/+$/,""));this.url=s.href;this._urlInfo={nullOrigin:!f.hasDomain(),sameOrigin:a.isOriginEqual(this.url,v.href),sameScheme:a.isSchemeEqual(this.url,v.href)};this._ir=new y(this.url,this._urlInfo);this._ir.once("finish",this._receiveInfo.bind(this))}r(w,h);function x(e){return e===1e3||e>=3e3&&e<=4999}w.prototype.close=function(e,t){if(e&&!x(e)){throw new Error("InvalidAccessError: Invalid code")}if(t&&t.length>123){throw new SyntaxError("reason argument has an invalid length")}if(this.readyState===w.CLOSING||this.readyState===w.CLOSED){return}var n=true;this._close(e||1e3,t||"Normal closure",n)};w.prototype.send=function(e){if(typeof e!=="string"){e=""+e}if(this.readyState===w.CONNECTING){throw new Error("InvalidStateError: The connection has not been established yet")}if(this.readyState!==w.OPEN){return}this._transport.send(s.quote(e))};w.version=e("./version");w.CONNECTING=0;w.OPEN=1;w.CLOSING=2;w.CLOSED=3;w.prototype._receiveInfo=function(e,t){this._ir=null;if(!e){this._close(1002,"Cannot connect to server");return}this._rto=this.countRTO(t);this._transUrl=e.base_url?e.base_url:this.url;e=c.extend(e,this._urlInfo);var n=b.filterToEnabled(this._transportsWhitelist,e);this._transports=n.main;this._connect()};w.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(e.needBody){if(!i.document.body||typeof i.document.readyState!=="undefined"&&i.document.readyState!=="complete"&&i.document.readyState!=="interactive"){this._transports.unshift(e);u.attachEvent("load",this._connect.bind(this));return}}var t=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t);var n=a.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId());var r=this._transportOptions[e.transportName];var o=new e(n,this._transUrl,r);o.on("message",this._transportMessage.bind(this));o.once("close",this._transportClose.bind(this));o.transportName=e.transportName;this._transport=o;return}this._close(2e3,"All transports failed",false)};w.prototype._transportTimeout=function(){if(this.readyState===w.CONNECTING){if(this._transport){this._transport.close()}this._transportClose(2007,"Transport timed out")}};w.prototype._transportMessage=function(e){var t=this,n=e.slice(0,1),i=e.slice(1),r;switch(n){case"o":this._open();return;case"h":this.dispatchEvent(new p("heartbeat"));return}if(i){try{r=JSON.parse(i)}catch(e){}}if(typeof r==="undefined"){return}switch(n){case"a":if(Array.isArray(r)){r.forEach((function(e){t.dispatchEvent(new m(e))}))}break;case"m":this.dispatchEvent(new m(r));break;case"c":if(Array.isArray(r)&&r.length===2){this._close(r[0],r[1],true)}break}};w.prototype._transportClose=function(e,t){if(this._transport){this._transport.removeAllListeners();this._transport=null;this.transport=null}if(!x(e)&&e!==2e3&&this.readyState===w.CONNECTING){this._connect();return}this._close(e,t)};w.prototype._open=function(){if(this.readyState===w.CONNECTING){if(this._transportTimeoutId){clearTimeout(this._transportTimeoutId);this._transportTimeoutId=null}this.readyState=w.OPEN;this.transport=this._transport.transportName;this.dispatchEvent(new p("open"))}else{this._close(1006,"Server lost session")}};w.prototype._close=function(e,t,n){var i=false;if(this._ir){i=true;this._ir.close();this._ir=null}if(this._transport){this._transport.close();this._transport=null;this.transport=null}if(this.readyState===w.CLOSED){throw new Error("InvalidStateError: SockJS has already been closed")}this.readyState=w.CLOSING;setTimeout(function(){this.readyState=w.CLOSED;if(i){this.dispatchEvent(new p("error"))}var r=new g("close");r.wasClean=n||false;r.code=e||1e3;r.reason=t;this.dispatchEvent(r);this.onmessage=this.onclose=this.onerror=null}.bind(this),0)};w.prototype.countRTO=function(e){if(e>100){return 4*e}return 300+e};t.exports=function(t){b=l(t);e("./iframe-bootstrap")(w,t);return w}}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./event/close":2,"./event/event":4,"./event/eventtarget":5,"./event/trans-message":6,"./iframe-bootstrap":8,"./info-receiver":12,"./location":13,"./shims":15,"./utils/browser":44,"./utils/escape":45,"./utils/event":46,"./utils/log":48,"./utils/object":49,"./utils/random":50,"./utils/transport":51,"./utils/url":52,"./version":53,debug:55,inherits:57,"url-parse":60}],15:[function(e,t,n){var i=Array.prototype;var r=Object.prototype;var o=Function.prototype;var s=String.prototype;var a=i.slice;var u=r.toString;var l=function(e){return r.toString.call(e)==="[object Function]"};var c=function e(t){return u.call(t)==="[object Array]"};var f=function e(t){return u.call(t)==="[object String]"};var d=Object.defineProperty&&function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}}();var p;if(d){p=function(e,t,n,i){if(!i&&t in e){return}Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:n})}}else{p=function(e,t,n,i){if(!i&&t in e){return}e[t]=n}}var h=function(e,t,n){for(var i in t){if(r.hasOwnProperty.call(t,i)){p(e,i,t[i],n)}}};var v=function(e){if(e==null){throw new TypeError("can't convert "+e+" to object")}return Object(e)};function g(e){var t=+e;if(t!==t){t=0}else if(t!==0&&t!==1/0&&t!==-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}return t}function m(e){return e>>>0}function y(){}h(o,{bind:function e(t){var n=this;if(!l(n)){throw new TypeError("Function.prototype.bind called on incompatible "+n)}var i=a.call(arguments,1);var r=function(){if(this instanceof c){var e=n.apply(this,i.concat(a.call(arguments)));if(Object(e)===e){return e}return this}else{return n.apply(t,i.concat(a.call(arguments)))}};var o=Math.max(0,n.length-i.length);var s=[];for(var u=0;u<o;u++){s.push("$"+u)}var c=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(r);if(n.prototype){y.prototype=n.prototype;c.prototype=new y;y.prototype=null}return c}});h(Array,{isArray:c});var b=Object("a");var w=b[0]!=="a"||!(0 in b);var x=function e(t){var n=true;var i=true;if(t){t.call("foo",(function(e,t,i){if(typeof i!=="object"){n=false}}));t.call([1],(function(){i=typeof this==="string"}),"x")}return!!t&&n&&i};h(i,{forEach:function e(t){var n=v(this),i=w&&f(this)?this.split(""):n,r=arguments[1],o=-1,s=i.length>>>0;if(!l(t)){throw new TypeError}while(++o<s){if(o in i){t.call(r,i[o],o,n)}}}},!x(i.forEach));var k=Array.prototype.indexOf&&[0,1].indexOf(1,2)!==-1;h(i,{indexOf:function e(t){var n=w&&f(this)?this.split(""):v(this),i=n.length>>>0;if(!i){return-1}var r=0;if(arguments.length>1){r=g(arguments[1])}r=r>=0?r:Math.max(0,i+r);for(;r<i;r++){if(r in n&&n[r]===t){return r}}return-1}},k);var C=s.split;if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var e=/()??/.exec("")[1]===void 0;s.split=function(t,n){var r=this;if(t===void 0&&n===0){return[]}if(u.call(t)!=="[object RegExp]"){return C.call(this,t,n)}var o=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),a=0,l,c,f,d;t=new RegExp(t.source,s+"g");r+="";if(!e){l=new RegExp("^"+t.source+"$(?!\\s)",s)}n=n===void 0?-1>>>0:m(n);while(c=t.exec(r)){f=c.index+c[0].length;if(f>a){o.push(r.slice(a,c.index));if(!e&&c.length>1){c[0].replace(l,(function(){for(var e=1;e<arguments.length-2;e++){if(arguments[e]===void 0){c[e]=void 0}}}))}if(c.length>1&&c.index<r.length){i.push.apply(o,c.slice(1))}d=c[0].length;a=f;if(o.length>=n){break}}if(t.lastIndex===c.index){t.lastIndex++}}if(a===r.length){if(d||!t.test("")){o.push("")}}else{o.push(r.slice(a))}return o.length>n?o.slice(0,n):o}})()}else if("0".split(void 0,0).length){s.split=function e(t,n){if(t===void 0&&n===0){return[]}return C.call(this,t,n)}}var E=s.substr;var S="".substr&&"0b".substr(-1)!=="b";h(s,{substr:function e(t,n){return E.call(this,t<0?(t=this.length+t)<0?0:t:t,n)}},S)},{}],16:[function(e,t,n){t.exports=[e("./transport/websocket"),e("./transport/xhr-streaming"),e("./transport/xdr-streaming"),e("./transport/eventsource"),e("./transport/lib/iframe-wrap")(e("./transport/eventsource")),e("./transport/htmlfile"),e("./transport/lib/iframe-wrap")(e("./transport/htmlfile")),e("./transport/xhr-polling"),e("./transport/xdr-polling"),e("./transport/lib/iframe-wrap")(e("./transport/xhr-polling")),e("./transport/jsonp-polling")]},{"./transport/eventsource":20,"./transport/htmlfile":21,"./transport/jsonp-polling":23,"./transport/lib/iframe-wrap":26,"./transport/websocket":38,"./transport/xdr-polling":39,"./transport/xdr-streaming":40,"./transport/xhr-polling":41,"./transport/xhr-streaming":42}],17:[function(e,t,n){(function(n,i){(function(){var n=e("events").EventEmitter,r=e("inherits"),o=e("../../utils/event"),s=e("../../utils/url"),a=i.XMLHttpRequest;function u(e,t,i,r){var o=this;n.call(this);setTimeout((function(){o._start(e,t,i,r)}),0)}r(u,n);u.prototype._start=function(e,t,n,i){var r=this;try{this.xhr=new a}catch(e){}if(!this.xhr){this.emit("finish",0,"no xhr support");this._cleanup();return}t=s.addQuery(t,"t="+ +new Date);this.unloadRef=o.unloadAdd((function(){r._cleanup(true)}));try{this.xhr.open(e,t,true);if(this.timeout&&"timeout"in this.xhr){this.xhr.timeout=this.timeout;this.xhr.ontimeout=function(){r.emit("finish",0,"");r._cleanup(false)}}}catch(e){this.emit("finish",0,"");this._cleanup(false);return}if((!i||!i.noCredentials)&&u.supportsCORS){this.xhr.withCredentials=true}if(i&&i.headers){for(var l in i.headers){this.xhr.setRequestHeader(l,i.headers[l])}}this.xhr.onreadystatechange=function(){if(r.xhr){var e=r.xhr;var t,n;switch(e.readyState){case 3:try{n=e.status;t=e.responseText}catch(e){}if(n===1223){n=204}if(n===200&&t&&t.length>0){r.emit("chunk",n,t)}break;case 4:n=e.status;if(n===1223){n=204}if(n===12005||n===12029){n=0}r.emit("finish",n,e.responseText);r._cleanup(false);break}}};try{r.xhr.send(n)}catch(e){r.emit("finish",0,"");r._cleanup(false)}};u.prototype._cleanup=function(e){if(!this.xhr){return}this.removeAllListeners();o.unloadDel(this.unloadRef);this.xhr.onreadystatechange=function(){};if(this.xhr.ontimeout){this.xhr.ontimeout=null}if(e){try{this.xhr.abort()}catch(e){}}this.unloadRef=this.xhr=null};u.prototype.close=function(){this._cleanup(true)};u.enabled=!!a;var l=["Active"].concat("Object").join("X");if(!u.enabled&&l in i){a=function(){try{return new i[l]("Microsoft.XMLHTTP")}catch(e){return null}};u.enabled=!!new a}var c=false;try{c="withCredentials"in new a}catch(e){}u.supportsCORS=c;t.exports=u}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],18:[function(e,t,n){(function(e){(function(){t.exports=e.EventSource}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],19:[function(e,t,n){(function(e){(function(){var n=e.WebSocket||e.MozWebSocket;if(n){t.exports=function e(t){return new n(t)}}else{t.exports=undefined}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],20:[function(e,t,n){var i=e("inherits"),r=e("./lib/ajax-based"),o=e("./receiver/eventsource"),s=e("./sender/xhr-cors"),a=e("eventsource");function u(e){if(!u.enabled()){throw new Error("Transport created when disabled")}r.call(this,e,"/eventsource",o,s)}i(u,r);u.enabled=function(){return!!a};u.transportName="eventsource";u.roundTrips=2;t.exports=u},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:57}],21:[function(e,t,n){var i=e("inherits"),r=e("./receiver/htmlfile"),o=e("./sender/xhr-local"),s=e("./lib/ajax-based");function a(e){if(!r.enabled){throw new Error("Transport created when disabled")}s.call(this,e,"/htmlfile",r,o)}i(a,s);a.enabled=function(e){return r.enabled&&e.sameOrigin};a.transportName="htmlfile";a.roundTrips=2;t.exports=a},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:57}],22:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("events").EventEmitter,r=e("../version"),o=e("../utils/url"),s=e("../utils/iframe"),a=e("../utils/event"),u=e("../utils/random");function l(e,t,n){if(!l.enabled()){throw new Error("Transport created when disabled")}i.call(this);var r=this;this.origin=o.getOrigin(n);this.baseUrl=n;this.transUrl=t;this.transport=e;this.windowId=u.string(8);var c=o.addPath(n,"/iframe.html")+"#"+this.windowId;this.iframeObj=s.createIframe(c,(function(e){r.emit("close",1006,"Unable to load an iframe ("+e+")");r.close()}));this.onmessageCallback=this._message.bind(this);a.attachEvent("message",this.onmessageCallback)}n(l,i);l.prototype.close=function(){this.removeAllListeners();if(this.iframeObj){a.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup();this.iframeObj=null;this.onmessageCallback=this.iframeObj=null}};l.prototype._message=function(e){if(!o.isOriginEqual(e.origin,this.origin)){return}var t;try{t=JSON.parse(e.data)}catch(e){return}if(t.windowId!==this.windowId){return}switch(t.type){case"s":this.iframeObj.loaded();this.postMessage("s",JSON.stringify([r,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var n;try{n=JSON.parse(t.data)}catch(e){return}this.emit("close",n[0],n[1]);this.close();break}};l.prototype.postMessage=function(e,t){this.iframeObj.post(JSON.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)};l.prototype.send=function(e){this.postMessage("m",e)};l.enabled=function(){return s.iframeEnabled};l.transportName="iframe";l.roundTrips=2;t.exports=l}).call(this)}).call(this,{env:{}})},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:55,events:3,inherits:57}],23:[function(e,t,n){(function(n){(function(){var i=e("inherits"),r=e("./lib/sender-receiver"),o=e("./receiver/jsonp"),s=e("./sender/jsonp");function a(e){if(!a.enabled()){throw new Error("Transport created when disabled")}r.call(this,e,"/jsonp",s,o)}i(a,r);a.enabled=function(){return!!n.document};a.transportName="jsonp-polling";a.roundTrips=1;a.needBody=true;t.exports=a}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:57}],24:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("../../utils/url"),r=e("./sender-receiver");function o(e){return function(t,n,r){var o={};if(typeof n==="string"){o.headers={"Content-type":"text/plain"}}var s=i.addPath(t,"/xhr_send");var a=new e("POST",s,n,o);a.once("finish",(function(e){a=null;if(e!==200&&e!==204){return r(new Error("http status "+e))}r()}));return function(){a.close();a=null;var e=new Error("Aborted");e.code=1e3;r(e)}}}function s(e,t,n,i){r.call(this,e,t,o(i),n,i)}n(s,r);t.exports=s}).call(this)}).call(this,{env:{}})},{"../../utils/url":52,"./sender-receiver":28,debug:55,inherits:57}],25:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("events").EventEmitter;function r(e,t){i.call(this);this.sendBuffer=[];this.sender=t;this.url=e}n(r,i);r.prototype.send=function(e){this.sendBuffer.push(e);if(!this.sendStop){this.sendSchedule()}};r.prototype.sendScheduleWait=function(){var e=this;var t;this.sendStop=function(){e.sendStop=null;clearTimeout(t)};t=setTimeout((function(){e.sendStop=null;e.sendSchedule()}),25)};r.prototype.sendSchedule=function(){var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,(function(t){e.sendStop=null;if(t){e.emit("close",t.code||1006,"Sending error: "+t);e.close()}else{e.sendScheduleWait()}}));this.sendBuffer=[]}};r.prototype._cleanup=function(){this.removeAllListeners()};r.prototype.close=function(){this._cleanup();if(this.sendStop){this.sendStop();this.sendStop=null}};t.exports=r}).call(this)}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],26:[function(e,t,n){(function(n){(function(){var i=e("inherits"),r=e("../iframe"),o=e("../../utils/object");t.exports=function(e){function t(t,n){r.call(this,e.transportName,t,n)}i(t,r);t.enabled=function(t,i){if(!n.document){return false}var s=o.extend({},i);s.sameOrigin=true;return e.enabled(s)&&r.enabled()};t.transportName="iframe-"+e.transportName;t.needBody=true;t.roundTrips=r.roundTrips+e.roundTrips-1;t.facadeTransport=e;return t}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/object":49,"../iframe":22,inherits:57}],27:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("events").EventEmitter;function r(e,t,n){i.call(this);this.Receiver=e;this.receiveUrl=t;this.AjaxObject=n;this._scheduleReceiver()}n(r,i);r.prototype._scheduleReceiver=function(){var e=this;var t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",(function(t){e.emit("message",t)}));t.once("close",(function(n,i){e.poll=t=null;if(!e.pollIsClosing){if(i==="network"){e._scheduleReceiver()}else{e.emit("close",n||1006,i);e.removeAllListeners()}}}))};r.prototype.abort=function(){this.removeAllListeners();this.pollIsClosing=true;if(this.poll){this.poll.abort()}};t.exports=r}).call(this)}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],28:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("../../utils/url"),r=e("./buffered-sender"),o=e("./polling");function s(e,t,n,s,a){var u=i.addPath(e,t);var l=this;r.call(this,e,n);this.poll=new o(s,u,a);this.poll.on("message",(function(e){l.emit("message",e)}));this.poll.once("close",(function(e,t){l.poll=null;l.emit("close",e,t);l.close()}))}n(s,r);s.prototype.close=function(){r.prototype.close.call(this);this.removeAllListeners();if(this.poll){this.poll.abort();this.poll=null}};t.exports=s}).call(this)}).call(this,{env:{}})},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:55,inherits:57}],29:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("events").EventEmitter,r=e("eventsource");function o(e){i.call(this);var t=this;var n=this.es=new r(e);n.onmessage=function(e){t.emit("message",decodeURI(e.data))};n.onerror=function(e){var i=n.readyState!==2?"network":"permanent";t._cleanup();t._close(i)}}n(o,i);o.prototype.abort=function(){this._cleanup();this._close("user")};o.prototype._cleanup=function(){var e=this.es;if(e){e.onmessage=e.onerror=null;e.close();this.es=null}};o.prototype._close=function(e){var t=this;setTimeout((function(){t.emit("close",null,e);t.removeAllListeners()}),200)};t.exports=o}).call(this)}).call(this,{env:{}})},{debug:55,events:3,eventsource:18,inherits:57}],30:[function(e,t,n){(function(n,i){(function(){var n=e("inherits"),r=e("../../utils/iframe"),o=e("../../utils/url"),s=e("events").EventEmitter,a=e("../../utils/random");function u(e){s.call(this);var t=this;r.polluteGlobalNamespace();this.id="a"+a.string(6);e=o.addQuery(e,"c="+decodeURIComponent(r.WPrefix+"."+this.id));var n=u.htmlfileEnabled?r.createHtmlfile:r.createIframe;i[r.WPrefix][this.id]={start:function(){t.iframeObj.loaded()},message:function(e){t.emit("message",e)},stop:function(){t._cleanup();t._close("network")}};this.iframeObj=n(e,(function(){t._cleanup();t._close("permanent")}))}n(u,s);u.prototype.abort=function(){this._cleanup();this._close("user")};u.prototype._cleanup=function(){if(this.iframeObj){this.iframeObj.cleanup();this.iframeObj=null}delete i[r.WPrefix][this.id]};u.prototype._close=function(e){this.emit("close",null,e);this.removeAllListeners()};u.htmlfileEnabled=false;var l=["Active"].concat("Object").join("X");if(l in i){try{u.htmlfileEnabled=!!new i[l]("htmlfile")}catch(e){}}u.enabled=u.htmlfileEnabled||r.iframeEnabled;t.exports=u}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],31:[function(e,t,n){(function(n,i){(function(){var n=e("../../utils/iframe"),r=e("../../utils/random"),o=e("../../utils/browser"),s=e("../../utils/url"),a=e("inherits"),u=e("events").EventEmitter;function l(e){var t=this;u.call(this);n.polluteGlobalNamespace();this.id="a"+r.string(6);var o=s.addQuery(e,"c="+encodeURIComponent(n.WPrefix+"."+this.id));i[n.WPrefix][this.id]=this._callback.bind(this);this._createScript(o);this.timeoutId=setTimeout((function(){t._abort(new Error("JSONP script loaded abnormally (timeout)"))}),l.timeout)}a(l,u);l.prototype.abort=function(){if(i[n.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3;this._abort(e)}};l.timeout=35e3;l.scriptErrorTimeout=1e3;l.prototype._callback=function(e){this._cleanup();if(this.aborting){return}if(e){this.emit("message",e)}this.emit("close",null,"network");this.removeAllListeners()};l.prototype._abort=function(e){this._cleanup();this.aborting=true;this.emit("close",e.code,e.message);this.removeAllListeners()};l.prototype._cleanup=function(){clearTimeout(this.timeoutId);if(this.script2){this.script2.parentNode.removeChild(this.script2);this.script2=null}if(this.script){var e=this.script;e.parentNode.removeChild(e);e.onreadystatechange=e.onerror=e.onload=e.onclick=null;this.script=null}delete i[n.WPrefix][this.id]};l.prototype._scriptError=function(){var e=this;if(this.errorTimer){return}this.errorTimer=setTimeout((function(){if(!e.loadedOkay){e._abort(new Error("JSONP script loaded abnormally (onerror)"))}}),l.scriptErrorTimeout)};l.prototype._createScript=function(e){var t=this;var n=this.script=i.document.createElement("script");var s;n.id="a"+r.string(8);n.src=e;n.type="text/javascript";n.charset="UTF-8";n.onerror=this._scriptError.bind(this);n.onload=function(){t._abort(new Error("JSONP script loaded abnormally (onload)"))};n.onreadystatechange=function(){if(/loaded|closed/.test(n.readyState)){if(n&&n.htmlFor&&n.onclick){t.loadedOkay=true;try{n.onclick()}catch(e){}}if(n){t._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}}};if(typeof n.async==="undefined"&&i.document.attachEvent){if(!o.isOpera()){try{n.htmlFor=n.id;n.event="onclick"}catch(e){}n.async=true}else{s=this.script2=i.document.createElement("script");s.text="try{var a = document.getElementById('"+n.id+"'); if(a)a.onerror();}catch(x){};";n.async=s.async=false}}if(typeof n.async!=="undefined"){n.async=true}var a=i.document.getElementsByTagName("head")[0];a.insertBefore(n,a.firstChild);if(s){a.insertBefore(s,a.firstChild)}};t.exports=l}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],32:[function(e,t,n){(function(n){(function(){var n=e("inherits"),i=e("events").EventEmitter;function r(e,t){i.call(this);var n=this;this.bufferPosition=0;this.xo=new t("POST",e,null);this.xo.on("chunk",this._chunkHandler.bind(this));this.xo.once("finish",(function(e,t){n._chunkHandler(e,t);n.xo=null;var i=e===200?"network":"permanent";n.emit("close",null,i);n._cleanup()}))}n(r,i);r.prototype._chunkHandler=function(e,t){if(e!==200||!t){return}for(var n=-1;;this.bufferPosition+=n+1){var i=t.slice(this.bufferPosition);n=i.indexOf("\n");if(n===-1){break}var r=i.slice(0,n);if(r){this.emit("message",r)}}};r.prototype._cleanup=function(){this.removeAllListeners()};r.prototype.abort=function(){if(this.xo){this.xo.close();this.emit("close",null,"user");this.xo=null}this._cleanup()};t.exports=r}).call(this)}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],33:[function(e,t,n){(function(n,i){(function(){var n=e("../../utils/random"),r=e("../../utils/url");var o,s;function a(e){try{return i.document.createElement('<iframe name="'+e+'">')}catch(n){var t=i.document.createElement("iframe");t.name=e;return t}}function u(){o=i.document.createElement("form");o.style.display="none";o.style.position="absolute";o.method="POST";o.enctype="application/x-www-form-urlencoded";o.acceptCharset="UTF-8";s=i.document.createElement("textarea");s.name="d";o.appendChild(s);i.document.body.appendChild(o)}t.exports=function(e,t,i){if(!o){u()}var l="a"+n.string(8);o.target=l;o.action=r.addQuery(r.addPath(e,"/jsonp_send"),"i="+l);var c=a(l);c.id=l;c.style.display="none";o.appendChild(c);try{s.value=t}catch(e){}o.submit();var f=function(e){if(!c.onerror){return}c.onreadystatechange=c.onerror=c.onload=null;setTimeout((function(){c.parentNode.removeChild(c);c=null}),500);s.value="";i(e)};c.onerror=function(){f()};c.onload=function(){f()};c.onreadystatechange=function(e){if(c.readyState==="complete"){f()}};return function(){f(new Error("Aborted"))}}}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:55}],34:[function(e,t,n){(function(n,i){(function(){var n=e("events").EventEmitter,r=e("inherits"),o=e("../../utils/event"),s=e("../../utils/browser"),a=e("../../utils/url");function u(e,t,i){var r=this;n.call(this);setTimeout((function(){r._start(e,t,i)}),0)}r(u,n);u.prototype._start=function(e,t,n){var r=this;var s=new i.XDomainRequest;t=a.addQuery(t,"t="+ +new Date);s.onerror=function(){r._error()};s.ontimeout=function(){r._error()};s.onprogress=function(){r.emit("chunk",200,s.responseText)};s.onload=function(){r.emit("finish",200,s.responseText);r._cleanup(false)};this.xdr=s;this.unloadRef=o.unloadAdd((function(){r._cleanup(true)}));try{this.xdr.open(e,t);if(this.timeout){this.xdr.timeout=this.timeout}this.xdr.send(n)}catch(e){this._error()}};u.prototype._error=function(){this.emit("finish",0,"");this._cleanup(false)};u.prototype._cleanup=function(e){if(!this.xdr){return}this.removeAllListeners();o.unloadDel(this.unloadRef);this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null;if(e){try{this.xdr.abort()}catch(e){}}this.unloadRef=this.xdr=null};u.prototype.close=function(){this._cleanup(true)};u.enabled=!!(i.XDomainRequest&&s.hasDomain());t.exports=u}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],35:[function(e,t,n){var i=e("inherits"),r=e("../driver/xhr");function o(e,t,n,i){r.call(this,e,t,n,i)}i(o,r);o.enabled=r.enabled&&r.supportsCORS;t.exports=o},{"../driver/xhr":17,inherits:57}],36:[function(e,t,n){var i=e("events").EventEmitter,r=e("inherits");function o(){var e=this;i.call(this);this.to=setTimeout((function(){e.emit("finish",200,"{}")}),o.timeout)}r(o,i);o.prototype.close=function(){clearTimeout(this.to)};o.timeout=2e3;t.exports=o},{events:3,inherits:57}],37:[function(e,t,n){var i=e("inherits"),r=e("../driver/xhr");function o(e,t,n){r.call(this,e,t,n,{noCredentials:true})}i(o,r);o.enabled=r.enabled;t.exports=o},{"../driver/xhr":17,inherits:57}],38:[function(e,t,n){(function(n){(function(){var n=e("../utils/event"),i=e("../utils/url"),r=e("inherits"),o=e("events").EventEmitter,s=e("./driver/websocket");function a(e,t,r){if(!a.enabled()){throw new Error("Transport created when disabled")}o.call(this);var u=this;var l=i.addPath(e,"/websocket");if(l.slice(0,5)==="https"){l="wss"+l.slice(5)}else{l="ws"+l.slice(4)}this.url=l;this.ws=new s(this.url,[],r);this.ws.onmessage=function(e){u.emit("message",e.data)};this.unloadRef=n.unloadAdd((function(){u.ws.close()}));this.ws.onclose=function(e){u.emit("close",e.code,e.reason);u._cleanup()};this.ws.onerror=function(e){u.emit("close",1006,"WebSocket connection broken");u._cleanup()}}r(a,o);a.prototype.send=function(e){var t="["+e+"]";this.ws.send(t)};a.prototype.close=function(){var e=this.ws;this._cleanup();if(e){e.close()}};a.prototype._cleanup=function(){var e=this.ws;if(e){e.onmessage=e.onclose=e.onerror=null}n.unloadDel(this.unloadRef);this.unloadRef=this.ws=null;this.removeAllListeners()};a.enabled=function(){return!!s};a.transportName="websocket";a.roundTrips=2;t.exports=a}).call(this)}).call(this,{env:{}})},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:55,events:3,inherits:57}],39:[function(e,t,n){var i=e("inherits"),r=e("./lib/ajax-based"),o=e("./xdr-streaming"),s=e("./receiver/xhr"),a=e("./sender/xdr");function u(e){if(!a.enabled){throw new Error("Transport created when disabled")}r.call(this,e,"/xhr",s,a)}i(u,r);u.enabled=o.enabled;u.transportName="xdr-polling";u.roundTrips=2;t.exports=u},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:57}],40:[function(e,t,n){var i=e("inherits"),r=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xdr");function a(e){if(!s.enabled){throw new Error("Transport created when disabled")}r.call(this,e,"/xhr_streaming",o,s)}i(a,r);a.enabled=function(e){if(e.cookie_needed||e.nullOrigin){return false}return s.enabled&&e.sameScheme};a.transportName="xdr-streaming";a.roundTrips=2;t.exports=a},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:57}],41:[function(e,t,n){var i=e("inherits"),r=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xhr-cors"),a=e("./sender/xhr-local");function u(e){if(!a.enabled&&!s.enabled){throw new Error("Transport created when disabled")}r.call(this,e,"/xhr",o,s)}i(u,r);u.enabled=function(e){if(e.nullOrigin){return false}if(a.enabled&&e.sameOrigin){return true}return s.enabled};u.transportName="xhr-polling";u.roundTrips=2;t.exports=u},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],42:[function(e,t,n){(function(n){(function(){var i=e("inherits"),r=e("./lib/ajax-based"),o=e("./receiver/xhr"),s=e("./sender/xhr-cors"),a=e("./sender/xhr-local"),u=e("../utils/browser");function l(e){if(!a.enabled&&!s.enabled){throw new Error("Transport created when disabled")}r.call(this,e,"/xhr_streaming",o,s)}i(l,r);l.enabled=function(e){if(e.nullOrigin){return false}if(u.isOpera()){return false}return s.enabled};l.transportName="xhr-streaming";l.roundTrips=2;l.needBody=!!n.document;t.exports=l}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],43:[function(e,t,n){(function(e){(function(){if(e.crypto&&e.crypto.getRandomValues){t.exports.randomBytes=function(t){var n=new Uint8Array(t);e.crypto.getRandomValues(n);return n}}else{t.exports.randomBytes=function(e){var t=new Array(e);for(var n=0;n<e;n++){t[n]=Math.floor(Math.random()*256)}return t}}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],44:[function(e,t,n){(function(e){(function(){t.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document){return true}try{return!!e.document.domain}catch(e){return false}}}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],45:[function(e,t,n){var i=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,r;var o=function(e){var t;var n={};var i=[];for(t=0;t<65536;t++){i.push(String.fromCharCode(t))}e.lastIndex=0;i.join("").replace(e,(function(e){n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4);return""}));e.lastIndex=0;return n};t.exports={quote:function(e){var t=JSON.stringify(e);i.lastIndex=0;if(!i.test(t)){return t}if(!r){r=o(i)}return t.replace(i,(function(e){return r[e]}))}}},{}],46:[function(e,t,n){(function(n){(function(){var i=e("./random");var r={},o=false,s=n.chrome&&n.chrome.app&&n.chrome.app.runtime;t.exports={attachEvent:function(e,t){if(typeof n.addEventListener!=="undefined"){n.addEventListener(e,t,false)}else if(n.document&&n.attachEvent){n.document.attachEvent("on"+e,t);n.attachEvent("on"+e,t)}},detachEvent:function(e,t){if(typeof n.addEventListener!=="undefined"){n.removeEventListener(e,t,false)}else if(n.document&&n.detachEvent){n.document.detachEvent("on"+e,t);n.detachEvent("on"+e,t)}},unloadAdd:function(e){if(s){return null}var t=i.string(8);r[t]=e;if(o){setTimeout(this.triggerUnloadCallbacks,0)}return t},unloadDel:function(e){if(e in r){delete r[e]}},triggerUnloadCallbacks:function(){for(var e in r){r[e]();delete r[e]}}};var a=function(){if(o){return}o=true;t.exports.triggerUnloadCallbacks()};if(!s){t.exports.attachEvent("unload",a)}}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./random":50}],47:[function(e,t,n){(function(n,i){(function(){var n=e("./event"),r=e("./browser");t.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){if(!(t.exports.WPrefix in i)){i[t.exports.WPrefix]={}}},postMessage:function(e,n){if(i.parent!==i){i.parent.postMessage(JSON.stringify({windowId:t.exports.currentWindowId,type:e,data:n||""}),"*")}},createIframe:function(e,t){var r=i.document.createElement("iframe");var o,s;var a=function(){clearTimeout(o);try{r.onload=null}catch(e){}r.onerror=null};var u=function(){if(r){a();setTimeout((function(){if(r){r.parentNode.removeChild(r)}r=null}),0);n.unloadDel(s)}};var l=function(e){if(r){u();t(e)}};var c=function(e,t){setTimeout((function(){try{if(r&&r.contentWindow){r.contentWindow.postMessage(e,t)}}catch(e){}}),0)};r.src=e;r.style.display="none";r.style.position="absolute";r.onerror=function(){l("onerror")};r.onload=function(){clearTimeout(o);o=setTimeout((function(){l("onload timeout")}),2e3)};i.document.body.appendChild(r);o=setTimeout((function(){l("timeout")}),15e3);s=n.unloadAdd(u);return{post:c,cleanup:u,loaded:a}},createHtmlfile:function(e,r){var o=["Active"].concat("Object").join("X");var s=new i[o]("htmlfile");var a,u;var l;var c=function(){clearTimeout(a);l.onerror=null};var f=function(){if(s){c();n.unloadDel(u);l.parentNode.removeChild(l);l=s=null;CollectGarbage()}};var d=function(e){if(s){f();r(e)}};var p=function(e,t){try{setTimeout((function(){if(l&&l.contentWindow){l.contentWindow.postMessage(e,t)}}),0)}catch(e){}};s.open();s.write("<html><s"+"cript>"+'document.domain="'+i.document.domain+'";'+"</s"+"cript></html>");s.close();s.parentWindow[t.exports.WPrefix]=i[t.exports.WPrefix];var h=s.createElement("div");s.body.appendChild(h);l=s.createElement("iframe");h.appendChild(l);l.src=e;l.onerror=function(){d("onerror")};a=setTimeout((function(){d("timeout")}),15e3);u=n.unloadAdd(f);return{post:p,cleanup:f,loaded:c}}};t.exports.iframeEnabled=false;if(i.document){t.exports.iframeEnabled=(typeof i.postMessage==="function"||typeof i.postMessage==="object")&&!r.isKonqueror()}}).call(this)}).call(this,{env:{}},typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./browser":44,"./event":46,debug:55}],48:[function(e,t,n){(function(e){(function(){var n={};["log","debug","warn"].forEach((function(t){var i;try{i=e.console&&e.console[t]&&e.console[t].apply}catch(e){}n[t]=i?function(){return e.console[t].apply(e.console,arguments)}:t==="log"?function(){}:n.log}));t.exports=n}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],49:[function(e,t,n){t.exports={isObject:function(e){var t=typeof e;return t==="function"||t==="object"&&!!e},extend:function(e){if(!this.isObject(e)){return e}var t,n;for(var i=1,r=arguments.length;i<r;i++){t=arguments[i];for(n in t){if(Object.prototype.hasOwnProperty.call(t,n)){e[n]=t[n]}}}return e}}},{}],50:[function(e,t,n){var i=e("crypto");var r="abcdefghijklmnopqrstuvwxyz012345";t.exports={string:function(e){var t=r.length;var n=i.randomBytes(e);var o=[];for(var s=0;s<e;s++){o.push(r.substr(n[s]%t,1))}return o.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length;var n=new Array(t+1).join("0");return(n+this.number(e)).slice(-t)}}},{crypto:43}],51:[function(e,t,n){(function(e){(function(){t.exports=function(e){return{filterToEnabled:function(t,n){var i={main:[],facade:[]};if(!t){t=[]}else if(typeof t==="string"){t=[t]}e.forEach((function(e){if(!e){return}if(e.transportName==="websocket"&&n.websocket===false){return}if(t.length&&t.indexOf(e.transportName)===-1){return}if(e.enabled(n)){i.main.push(e);if(e.facadeTransport){i.facade.push(e.facadeTransport)}}}));return i}}}}).call(this)}).call(this,{env:{}})},{debug:55}],52:[function(e,t,n){(function(n){(function(){var n=e("url-parse");t.exports={getOrigin:function(e){if(!e){return null}var t=new n(e);if(t.protocol==="file:"){return null}var i=t.port;if(!i){i=t.protocol==="https:"?"443":"80"}return t.protocol+"//"+t.hostname+":"+i},isOriginEqual:function(e,t){var n=this.getOrigin(e)===this.getOrigin(t);return n},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(e.indexOf("?")===-1?"?"+t:"&"+t)},isLoopbackAddr:function(e){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^\[::1\]$/.test(e)}}}).call(this)}).call(this,{env:{}})},{debug:55,"url-parse":60}],53:[function(e,t,n){t.exports="1.6.1"},{}],54:[function(e,t,n){var i=1e3;var r=i*60;var o=r*60;var s=o*24;var a=s*7;var u=s*365.25;t.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return l(e)}else if(n==="number"&&isFinite(e)){return t.long?f(e):c(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function l(e){e=String(e);if(e.length>100){return}var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t){return}var n=parseFloat(t[1]);var l=(t[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"weeks":case"week":case"w":return n*a;case"days":case"day":case"d":return n*s;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*r;case"seconds":case"second":case"secs":case"sec":case"s":return n*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}function c(e){var t=Math.abs(e);if(t>=s){return Math.round(e/s)+"d"}if(t>=o){return Math.round(e/o)+"h"}if(t>=r){return Math.round(e/r)+"m"}if(t>=i){return Math.round(e/i)+"s"}return e+"ms"}function f(e){var t=Math.abs(e);if(t>=s){return d(e,t,s,"day")}if(t>=o){return d(e,t,o,"hour")}if(t>=r){return d(e,t,r,"minute")}if(t>=i){return d(e,t,i,"second")}return e+" ms"}function d(e,t,n,i){var r=t>=n*1.5;return Math.round(e/n)+" "+i+(r?"s":"")}},{}],55:[function(e,t,n){(function(i){(function(){function r(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){r=function e(t){return typeof t}}else{r=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return r(e)}n.log=a;n.formatArgs=s;n.save=u;n.load=l;n.useColors=o;n.storage=c();n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(e){e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){if(e==="%%"){return}i++;if(e==="%c"){r=i}}));e.splice(r,0,n)}function a(){var e;return(typeof console==="undefined"?"undefined":r(console))==="object"&&console.log&&(e=console).log.apply(e,arguments)}function u(e){try{if(e){n.storage.setItem("debug",e)}else{n.storage.removeItem("debug")}}catch(e){}}function l(){var e;try{e=n.storage.getItem("debug")}catch(e){}if(!e&&typeof i!=="undefined"&&"env"in i){e=i.env.DEBUG}return e}function c(){try{return localStorage}catch(e){}}t.exports=e("./common")(n);var f=t.exports.formatters;f.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this)}).call(this,{env:{}})},{"./common":56}],56:[function(e,t,n){function i(t){i.debug=i;i.default=i;i.coerce=l;i.disable=a;i.enable=s;i.enabled=u;i.humanize=e("ms");Object.keys(t).forEach((function(e){i[e]=t[e]}));i.instances=[];i.names=[];i.skips=[];i.formatters={};function n(e){var t=0;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return i.colors[Math.abs(t)%i.colors.length]}i.selectColor=n;function i(e){var t;function s(){if(!s.enabled){return}for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}var o=s;var a=Number(new Date);var u=a-(t||a);o.diff=u;o.prev=t;o.curr=a;t=a;n[0]=i.coerce(n[0]);if(typeof n[0]!=="string"){n.unshift("%O")}var l=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(e,t){if(e==="%%"){return e}l++;var r=i.formatters[t];if(typeof r==="function"){var s=n[l];e=r.call(o,s);n.splice(l,1);l--}return e}));i.formatArgs.call(o,n);var c=o.log||i.log;c.apply(o,n)}s.namespace=e;s.enabled=i.enabled(e);s.useColors=i.useColors();s.color=n(e);s.destroy=r;s.extend=o;if(typeof i.init==="function"){i.init(s)}i.instances.push(s);return s}function r(){var e=i.instances.indexOf(this);if(e!==-1){i.instances.splice(e,1);return true}return false}function o(e,t){return i(this.namespace+(typeof t==="undefined"?":":t)+e)}function s(e){i.save(e);i.names=[];i.skips=[];var t;var n=(typeof e==="string"?e:"").split(/[\s,]+/);var r=n.length;for(t=0;t<r;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){i.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{i.names.push(new RegExp("^"+e+"$"))}}for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}}function a(){i.enable("")}function u(e){if(e[e.length-1]==="*"){return true}var t;var n;for(t=0,n=i.skips.length;t<n;t++){if(i.skips[t].test(e)){return false}}for(t=0,n=i.names.length;t<n;t++){if(i.names[t].test(e)){return true}}return false}function l(e){if(e instanceof Error){return e.stack||e.message}return e}i.enable(i.load());return i}t.exports=i},{ms:54}],57:[function(e,t,n){if(typeof Object.create==="function"){t.exports=function e(t,n){if(n){t.super_=n;t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function e(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype;t.prototype=new i;t.prototype.constructor=t}}}},{}],58:[function(e,t,n){var i=Object.prototype.hasOwnProperty,r;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function s(e){var t=/([^=?&]+)=?([^&]*)/g,n={},i;while(i=t.exec(e)){var r=o(i[1]),s=o(i[2]);if(r===null||s===null||r in n)continue;n[r]=s}return n}function a(e,t){t=t||"";var n=[],o,s;if("string"!==typeof t)t="?";for(s in e){if(i.call(e,s)){o=e[s];if(!o&&(o===null||o===r||isNaN(o))){o=""}s=encodeURIComponent(s);o=encodeURIComponent(o);if(s===null||o===null)continue;n.push(s+"="+o)}}return n.length?t+n.join("&"):""}n.stringify=a;n.parse=s},{}],59:[function(e,t,n){t.exports=function e(t,n){n=n.split(":")[0];t=+t;if(!t)return false;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return false}return t!==0}},{}],60:[function(e,t,n){(function(n){(function(){var i=e("requires-port"),r=e("querystringify"),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function f(e){return(e?e:"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function e(t,n){return v(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",undefined,1,1],[/:(\d*)$/,"port",undefined,1],[NaN,"hostname",undefined,1,1]];var p={hash:1,query:1};function h(e){var t;if(typeof window!=="undefined")t=window;else if(typeof n!=="undefined")t=n;else if(typeof self!=="undefined")t=self;else t={};var i=t.location||{};e=e||i;var r={},o=typeof e,s;if("blob:"===e.protocol){r=new y(unescape(e.pathname),{})}else if("string"===o){r=new y(e,{});for(s in p)delete r[s]}else if("object"===o){for(s in e){if(s in p)continue;r[s]=e[s]}if(r.slashes===undefined){r.slashes=a.test(e.href)}}return r}function v(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function g(e,t){e=f(e);e=e.replace(s,"");t=t||{};var n=l.exec(e);var i=n[1]?n[1].toLowerCase():"";var r=!!n[2];var o=!!n[3];var a=0;var u;if(r){if(o){u=n[2]+n[3]+n[4];a=n[2].length+n[3].length}else{u=n[2]+n[4];a=n[2].length}}else{if(o){u=n[3]+n[4];a=n[3].length}else{u=n[4]}}if(i==="file:"){if(a>=2){u=u.slice(2)}}else if(v(i)){u=n[4]}else if(i){if(r){u=u.slice(2)}}else if(a>=2&&v(t.protocol)){u=n[4]}return{protocol:i,slashes:r||v(i),slashesCount:a,rest:u}}function m(e,t){if(e==="")return t;var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,r=n[i-1],o=false,s=0;while(i--){if(n[i]==="."){n.splice(i,1)}else if(n[i]===".."){n.splice(i,1);s++}else if(s){if(i===0)o=true;n.splice(i,1);s--}}if(o)n.unshift("");if(r==="."||r==="..")n.push("");return n.join("/")}function y(e,t,n){e=f(e);e=e.replace(s,"");if(!(this instanceof y)){return new y(e,t,n)}var o,a,u,l,p,b,w=d.slice(),x=typeof t,k=this,C=0;if("object"!==x&&"string"!==x){n=t;t=null}if(n&&"function"!==typeof n)n=r.parse;t=h(t);a=g(e||"",t);o=!a.protocol&&!a.slashes;k.slashes=a.slashes||o&&t.slashes;k.protocol=a.protocol||t.protocol||"";e=a.rest;if(a.protocol==="file:"&&(a.slashesCount!==2||c.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!v(k.protocol))){w[3]=[/(.*)/,"pathname"]}for(;C<w.length;C++){l=w[C];if(typeof l==="function"){e=l(e,k);continue}u=l[0];b=l[1];if(u!==u){k[b]=e}else if("string"===typeof u){p=u==="@"?e.lastIndexOf(u):e.indexOf(u);if(~p){if("number"===typeof l[2]){k[b]=e.slice(0,p);e=e.slice(p+l[2])}else{k[b]=e.slice(p);e=e.slice(0,p)}}}else if(p=u.exec(e)){k[b]=p[1];e=e.slice(0,p.index)}k[b]=k[b]||(o&&l[3]?t[b]||"":"");if(l[4])k[b]=k[b].toLowerCase()}if(n)k.query=n(k.query);if(o&&t.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||t.pathname!=="")){k.pathname=m(k.pathname,t.pathname)}if(k.pathname.charAt(0)!=="/"&&v(k.protocol)){k.pathname="/"+k.pathname}if(!i(k.port,k.protocol)){k.host=k.hostname;k.port=""}k.username=k.password="";if(k.auth){p=k.auth.indexOf(":");if(~p){k.username=k.auth.slice(0,p);k.username=encodeURIComponent(decodeURIComponent(k.username));k.password=k.auth.slice(p+1);k.password=encodeURIComponent(decodeURIComponent(k.password))}else{k.username=encodeURIComponent(decodeURIComponent(k.auth))}k.auth=k.password?k.username+":"+k.password:k.username}k.origin=k.protocol!=="file:"&&v(k.protocol)&&k.host?k.protocol+"//"+k.host:"null";k.href=k.toString()}function b(e,t,n){var o=this;switch(e){case"query":if("string"===typeof t&&t.length){t=(n||r.parse)(t)}o[e]=t;break;case"port":o[e]=t;if(!i(t,o.protocol)){o.host=o.hostname;o[e]=""}else if(t){o.host=o.hostname+":"+t}break;case"hostname":o[e]=t;if(o.port)t+=":"+o.port;o.host=t;break;case"host":o[e]=t;if(u.test(t)){t=t.split(":");o.port=t.pop();o.hostname=t.join(":")}else{o.hostname=t;o.port=""}break;case"protocol":o.protocol=t.toLowerCase();o.slashes=!n;break;case"pathname":case"hash":if(t){var s=e==="pathname"?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else{o[e]=t}break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");if(~a){o.username=t.slice(0,a);o.username=encodeURIComponent(decodeURIComponent(o.username));o.password=t.slice(a+1);o.password=encodeURIComponent(decodeURIComponent(o.password))}else{o.username=encodeURIComponent(decodeURIComponent(t))}}for(var l=0;l<d.length;l++){var c=d[l];if(c[4])o[c[1]]=o[c[1]].toLowerCase()}o.auth=o.password?o.username+":"+o.password:o.username;o.origin=o.protocol!=="file:"&&v(o.protocol)&&o.host?o.protocol+"//"+o.host:"null";o.href=o.toString();return o}function w(e){if(!e||"function"!==typeof e)e=r.stringify;var t,n=this,i=n.host,o=n.protocol;if(o&&o.charAt(o.length-1)!==":")o+=":";var s=o+(n.protocol&&n.slashes||v(n.protocol)?"//":"");if(n.username){s+=n.username;if(n.password)s+=":"+n.password;s+="@"}else if(n.password){s+=":"+n.password;s+="@"}else if(n.protocol!=="file:"&&v(n.protocol)&&!i&&n.pathname!=="/"){s+="@"}if(i[i.length-1]===":"||u.test(n.hostname)&&!n.port){i+=":"}s+=i+n.pathname;t="object"===typeof n.query?e(n.query):n.query;if(t)s+="?"!==t.charAt(0)?"?"+t:t;if(n.hash)s+=n.hash;return s}y.prototype={set:b,toString:w};y.extractProtocol=g;y.location=h;y.trimLeft=f;y.qs=r;t.exports=y}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{querystringify:58,"requires-port":59}]},{},[1])(1)}));(function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return false}};var n=t();var i=function(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};if(n){t[Symbol.iterator]=function(){return t}}return t};var r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")};var o=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};var s=function(){var t=function(e){Object.defineProperty(this,"_entries",{writable:true,value:{}});var n=typeof e;if(n==="undefined");else if(n==="string"){if(e!==""){this._fromString(e)}}else if(e instanceof t){var i=this;e.forEach((function(e,t){i.append(t,e)}))}else if(e!==null&&n==="object"){if(Object.prototype.toString.call(e)==="[object Array]"){for(var r=0;r<e.length;r++){var o=e[r];if(Object.prototype.toString.call(o)==="[object Array]"||o.length!==2){this.append(o[0],o[1])}else{throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input")}}}else{for(var s in e){if(e.hasOwnProperty(s)){this.append(s,e[s])}}}}else{throw new TypeError("Unsupported input's type for URLSearchParams")}};var o=t.prototype;o.append=function(e,t){if(e in this._entries){this._entries[e].push(String(t))}else{this._entries[e]=[String(t)]}};o.delete=function(e){delete this._entries[e]};o.get=function(e){return e in this._entries?this._entries[e][0]:null};o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]};o.has=function(e){return e in this._entries};o.set=function(e,t){this._entries[e]=[String(t)]};o.forEach=function(e,t){var n;for(var i in this._entries){if(this._entries.hasOwnProperty(i)){n=this._entries[i];for(var r=0;r<n.length;r++){e.call(t,n[r],i,this)}}}};o.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return i(e)};o.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return i(e)};o.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return i(e)};if(n){o[Symbol.iterator]=o.entries}o.toString=function(){var e=[];this.forEach((function(t,n){e.push(r(n)+"="+r(t))}));return e.join("&")};e.URLSearchParams=t};var a=function(){try{var t=e.URLSearchParams;return new t("?a=1").toString()==="a=1"&&typeof t.prototype.set==="function"&&typeof t.prototype.entries==="function"}catch(e){return false}};if(!a()){s()}var u=e.URLSearchParams.prototype;if(typeof u.sort!=="function"){u.sort=function(){var e=this;var t=[];this.forEach((function(n,i){t.push([i,n]);if(!e._entries){e.delete(i)}}));t.sort((function(e,t){if(e[0]<t[0]){return-1}else if(e[0]>t[0]){return+1}else{return 0}}));if(e._entries){e._entries={}}for(var n=0;n<t.length;n++){this.append(t[n][0],t[n][1])}}}if(typeof u._fromString!=="function"){Object.defineProperty(u,"_fromString",{enumerable:false,configurable:false,writable:false,value:function(e){if(this._entries){this._entries={}}else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++){this.delete(t[n])}}e=e.replace(/^\?/,"");var i=e.split("&");var r;for(var n=0;n<i.length;n++){r=i[n].split("=");this.append(o(r[0]),r.length>1?o(r[1]):"")}}})}})(typeof t!=="undefined"?t:typeof window!=="undefined"?window:typeof self!=="undefined"?self:t);(function(e){var t=function(){try{var t=new e.URL("b","http://a");t.pathname="c d";return t.href==="http://a/c%20d"&&t.searchParams}catch(e){return false}};var n=function(){var t=e.URL;var n=function(t,n){if(typeof t!=="string")t=String(t);if(n&&typeof n!=="string")n=String(n);var i=document,r;if(n&&(e.location===void 0||n!==e.location.href)){n=n.toLowerCase();i=document.implementation.createHTMLDocument("");r=i.createElement("base");r.href=n;i.head.appendChild(r);try{if(r.href.indexOf(n)!==0)throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t;if(r){i.body.appendChild(o);o.href=o.href}var s=i.createElement("input");s.type="url";s.value=t;if(o.protocol===":"||!/:/.test(o.href)||!s.checkValidity()&&!n){throw new TypeError("Invalid URL")}Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search);var u=true;var l=true;var c=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments);if(u){l=false;c.search=a.toString();l=true}}}));Object.defineProperty(this,"searchParams",{value:a,enumerable:true});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:false,configurable:false,writable:false,value:function(){if(this.search!==f){f=this.search;if(l){u=false;this.searchParams._fromString(this.search);u=true}}}})};var i=n.prototype;var r=function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:true})};["hash","host","hostname","port","protocol"].forEach((function(e){r(e)}));Object.defineProperty(i,"search",{get:function(){return this._anchorElement["search"]},set:function(e){this._anchorElement["search"]=e;this._updateSearchParams()},enumerable:true});Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e;this._updateSearchParams()},enumerable:true},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:true},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol];var t=this._anchorElement.port!=e&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:true},password:{get:function(){return""},set:function(e){},enumerable:true},username:{get:function(){return""},set:function(e){},enumerable:true}});n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)};n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)};e.URL=n};if(!t()){n()}if(e.location!==void 0&&!("origin"in e.location)){var i=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:i,enumerable:true})}catch(t){setInterval((function(){e.location.origin=i()}),100)}}})(typeof t!=="undefined"?t:typeof window!=="undefined"?window:typeof self!=="undefined"?self:t);var i=n((function(e){
2
- /*!
3
- * jQuery JavaScript Library v3.7.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween
4
- * https://jquery.com/
5
- *
6
- * Copyright OpenJS Foundation and other contributors
7
- * Released under the MIT license
8
- * https://jquery.org/license
9
- *
10
- * Date: 2023-05-11T18:29Z
11
- */
12
- (function(t,n){{e.exports=t.document?n(t,true):function(e){if(!e.document){throw new Error("jQuery requires a window with a document")}return n(e)}}})(typeof window!=="undefined"?window:t,(function(e,t){var n=[];var i=Object.getPrototypeOf;var r=n.slice;var o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)};var s=n.push;var a=n.indexOf;var u={};var l=u.toString;var c=u.hasOwnProperty;var f=c.toString;var d=f.call(Object);var p={};var h=function e(t){return typeof t==="function"&&typeof t.nodeType!=="number"&&typeof t.item!=="function"};var v=function e(t){return t!=null&&t===t.window};var g=e.document;var m={type:true,src:true,nonce:true,noModule:true};function y(e,t,n){n=n||g;var i,r,o=n.createElement("script");o.text=e;if(t){for(i in m){r=t[i]||t.getAttribute&&t.getAttribute(i);if(r){o.setAttribute(i,r)}}}n.head.appendChild(o).parentNode.removeChild(o)}function b(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?u[l.call(e)]||"object":typeof e}var w="3.7.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",x=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};k.fn=k.prototype={jquery:w,constructor:k,length:0,toArray:function(){return r.call(this)},get:function(e){if(e==null){return r.call(this)}return e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);t.prevObject=this;return t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice};k.extend=k.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=false;if(typeof s==="boolean"){l=s;s=arguments[a]||{};a++}if(typeof s!=="object"&&!h(s)){s={}}if(a===u){s=this;a--}for(;a<u;a++){if((e=arguments[a])!=null){for(t in e){i=e[t];if(t==="__proto__"||s===i){continue}if(l&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))){n=s[t];if(r&&!Array.isArray(n)){o=[]}else if(!r&&!k.isPlainObject(n)){o={}}else{o=n}r=false;s[t]=k.extend(l,o,i)}else if(i!==undefined){s[t]=i}}}}return s};k.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:true,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;if(!e||l.call(e)!=="[object Object]"){return false}t=i(e);if(!t){return true}n=c.call(t,"constructor")&&t.constructor;return typeof n==="function"&&f.call(n)===d},isEmptyObject:function(e){var t;for(t in e){return false}return true},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e)){n=e.length;for(;i<n;i++){if(t.call(e[i],i,e[i])===false){break}}}else{for(i in e){if(t.call(e[i],i,e[i])===false){break}}}return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r){while(t=e[i++]){n+=k.text(t)}}else if(r===1||r===9||r===11){return e.textContent}else if(r===3||r===4){return e.nodeValue}return n},makeArray:function(e,t){var n=t||[];if(e!=null){if(C(Object(e))){k.merge(n,typeof e==="string"?[e]:e)}else{s.call(n,e)}}return n},inArray:function(e,t,n){return t==null?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){var n=+t.length,i=0,r=e.length;for(;i<n;i++){e[r++]=t[i]}e.length=r;return e},grep:function(e,t,n){var i,r=[],o=0,s=e.length,a=!n;for(;o<s;o++){i=!t(e[o],o);if(i!==a){r.push(e[o])}}return r},map:function(e,t,n){var i,r,s=0,a=[];if(C(e)){i=e.length;for(;s<i;s++){r=t(e[s],s,n);if(r!=null){a.push(r)}}}else{for(s in e){r=t(e[s],s,n);if(r!=null){a.push(r)}}}return o(a)},guid:1,support:p});if(typeof Symbol==="function"){k.fn[Symbol.iterator]=n[Symbol.iterator]}k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));function C(e){var t=!!e&&"length"in e&&e.length,n=b(e);if(h(e)||v(e)){return false}return n==="array"||t===0||typeof t==="number"&&t>0&&t-1 in e}function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=n.pop;var T=n.sort;var _=n.splice;var A="[\\x20\\t\\r\\n\\f]";var O=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");k.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function L(e,t){if(t){if(e==="\0"){return"�"}return e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" "}return"\\"+e}k.escapeSelector=function(e){return(e+"").replace(N,L)};var j=g,D=s;(function(){var t,i,o,s,u,l=D,f,d,h,v,g,m=k.expando,y=0,b=0,w=te(),x=te(),C=te(),N=te(),L=function(e,t){if(e===t){u=true}return 0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+"loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+A+"*("+P+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+A+"*\\]",F=":("+P+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|"+".*"+")\\)|)",M=new RegExp(A+"+","g"),U=new RegExp("^"+A+"*,"+A+"*"),q=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),W=new RegExp(A+"|>"),B=new RegExp(F),H=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,V=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;if(t){return t}return n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)},Q=function(){le()},Y=pe((function(e){return e.disabled===true&&E(e,"fieldset")}),{dir:"parentNode",next:"legend"});function Z(){try{return f.activeElement}catch(e){}}try{l.apply(n=r.call(j.childNodes),j.childNodes)}catch(e){l={apply:function(e,t){D.apply(e,r.call(t))},call:function(e){D.apply(e,r.call(arguments,1))}}}function ee(e,t,n,i){var r,o,s,a,u,c,d,g=t&&t.ownerDocument,y=t?t.nodeType:9;n=n||[];if(typeof e!=="string"||!e||y!==1&&y!==9&&y!==11){return n}if(!i){le(t);t=t||f;if(h){if(y!==11&&(u=G.exec(e))){if(r=u[1]){if(y===9){if(s=t.getElementById(r)){if(s.id===r){l.call(n,s);return n}}else{return n}}else{if(g&&(s=g.getElementById(r))&&ee.contains(t,s)&&s.id===r){l.call(n,s);return n}}}else if(u[2]){l.apply(n,t.getElementsByTagName(e));return n}else if((r=u[3])&&t.getElementsByClassName){l.apply(n,t.getElementsByClassName(r));return n}}if(!N[e+" "]&&(!v||!v.test(e))){d=e;g=t;if(y===1&&(W.test(e)||q.test(e))){g=X.test(e)&&ue(t.parentNode)||t;if(g!=t||!p.scope){if(a=t.getAttribute("id")){a=k.escapeSelector(a)}else{t.setAttribute("id",a=m)}}c=fe(e);o=c.length;while(o--){c[o]=(a?"#"+a:":scope")+" "+de(c[o])}d=c.join(",")}try{l.apply(n,g.querySelectorAll(d));return n}catch(t){N(e,true)}finally{if(a===m){t.removeAttribute("id")}}}}}return xe(e.replace(O,"$1"),t,n,i)}function te(){var e=[];function t(n,r){if(e.push(n+" ")>i.cacheLength){delete t[e.shift()]}return t[n+" "]=r}return t}function ne(e){e[m]=true;return e}function ie(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return false}finally{if(t.parentNode){t.parentNode.removeChild(t)}t=null}}function re(e){return function(t){return E(t,"input")&&t.type===e}}function oe(e){return function(t){return(E(t,"input")||E(t,"button"))&&t.type===e}}function se(e){return function(t){if("form"in t){if(t.parentNode&&t.disabled===false){if("label"in t){if("label"in t.parentNode){return t.parentNode.disabled===e}else{return t.disabled===e}}return t.isDisabled===e||t.isDisabled!==!e&&Y(t)===e}return t.disabled===e}else if("label"in t){return t.disabled===e}return false}}function ae(e){return ne((function(t){t=+t;return ne((function(n,i){var r,o=e([],n.length,t),s=o.length;while(s--){if(n[r=o[s]]){n[r]=!(i[r]=n[r])}}}))}))}function ue(e){return e&&typeof e.getElementsByTagName!=="undefined"&&e}function le(e){var t,n=e?e.ownerDocument||e:j;if(n==f||n.nodeType!==9||!n.documentElement){return f}f=n;d=f.documentElement;h=!k.isXMLDoc(f);g=d.matches||d.webkitMatchesSelector||d.msMatchesSelector;if(j!=f&&(t=f.defaultView)&&t.top!==t){t.addEventListener("unload",Q)}p.getById=ie((function(e){d.appendChild(e).id=k.expando;return!f.getElementsByName||!f.getElementsByName(k.expando).length}));p.disconnectedMatch=ie((function(e){return g.call(e,"*")}));p.scope=ie((function(){return f.querySelectorAll(":scope")}));p.cssHas=ie((function(){try{f.querySelector(":has(*,:jqfake)");return false}catch(e){return true}}));if(p.getById){i.filter.ID=function(e){var t=e.replace(V,K);return function(e){return e.getAttribute("id")===t}};i.find.ID=function(e,t){if(typeof t.getElementById!=="undefined"&&h){var n=t.getElementById(e);return n?[n]:[]}}}else{i.filter.ID=function(e){var t=e.replace(V,K);return function(e){var n=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return n&&n.value===t}};i.find.ID=function(e,t){if(typeof t.getElementById!=="undefined"&&h){var n,i,r,o=t.getElementById(e);if(o){n=o.getAttributeNode("id");if(n&&n.value===e){return[o]}r=t.getElementsByName(e);i=0;while(o=r[i++]){n=o.getAttributeNode("id");if(n&&n.value===e){return[o]}}}return[]}}}i.find.TAG=function(e,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(e)}else{return t.querySelectorAll(e)}};i.find.CLASS=function(e,t){if(typeof t.getElementsByClassName!=="undefined"&&h){return t.getElementsByClassName(e)}};v=[];ie((function(e){var t;d.appendChild(e).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a>"+"<select id='"+m+"-\r\\' disabled='disabled'>"+"<option selected=''></option></select>";if(!e.querySelectorAll("[selected]").length){v.push("\\["+A+"*(?:value|"+I+")")}if(!e.querySelectorAll("[id~="+m+"-]").length){v.push("~=")}if(!e.querySelectorAll("a#"+m+"+*").length){v.push(".#.+[+~]")}if(!e.querySelectorAll(":checked").length){v.push(":checked")}t=f.createElement("input");t.setAttribute("type","hidden");e.appendChild(t).setAttribute("name","D");d.appendChild(e).disabled=true;if(e.querySelectorAll(":disabled").length!==2){v.push(":enabled",":disabled")}t=f.createElement("input");t.setAttribute("name","");e.appendChild(t);if(!e.querySelectorAll("[name='']").length){v.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")}}));if(!p.cssHas){v.push(":has")}v=v.length&&new RegExp(v.join("|"));L=function(e,t){if(e===t){u=true;return 0}var n=!e.compareDocumentPosition-!t.compareDocumentPosition;if(n){return n}n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1;if(n&1||!p.sortDetached&&t.compareDocumentPosition(e)===n){if(e===f||e.ownerDocument==j&&ee.contains(j,e)){return-1}if(t===f||t.ownerDocument==j&&ee.contains(j,t)){return 1}return s?a.call(s,e)-a.call(s,t):0}return n&4?-1:1};return f}ee.matches=function(e,t){return ee(e,null,null,t)};ee.matchesSelector=function(e,t){le(e);if(h&&!N[t+" "]&&(!v||!v.test(t))){try{var n=g.call(e,t);if(n||p.disconnectedMatch||e.document&&e.document.nodeType!==11){return n}}catch(e){N(t,true)}}return ee(t,f,null,[e]).length>0};ee.contains=function(e,t){if((e.ownerDocument||e)!=f){le(e)}return k.contains(e,t)};ee.attr=function(e,t){if((e.ownerDocument||e)!=f){le(e)}var n=i.attrHandle[t.toLowerCase()],r=n&&c.call(i.attrHandle,t.toLowerCase())?n(e,t,!h):undefined;if(r!==undefined){return r}return e.getAttribute(t)};ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};k.uniqueSort=function(e){var t,n=[],i=0,o=0;u=!p.sortStable;s=!p.sortStable&&r.call(e,0);T.call(e,L);if(u){while(t=e[o++]){if(t===e[o]){i=n.push(o)}}while(i--){_.call(e,n[i],1)}}s=null;return e};k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(r.apply(this)))};i=k.expr={cacheLength:50,createPseudo:ne,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(V,K);e[3]=(e[3]||e[4]||e[5]||"").replace(V,K);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){ee.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+(e[7]+e[8]||e[3]==="odd")}else if(e[3]){ee.error(e[0])}return e},PSEUDO:function(e){var t,n=!e[6]&&e[2];if(z.CHILD.test(e[0])){return null}if(e[3]){e[2]=e[4]||e[5]||""}else if(n&&B.test(n)&&(t=fe(n,true))&&(t=n.indexOf(")",n.length-t)-n.length)){e[0]=e[0].slice(0,t);e[2]=n.slice(0,t)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(V,K).toLowerCase();return e==="*"?function(){return true}:function(e){return E(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&w(e,(function(e){return t.test(typeof e.className==="string"&&e.className||typeof e.getAttribute!=="undefined"&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=ee.attr(i,e);if(r==null){return t==="!="}if(!t){return true}r+="";if(t==="="){return r===n}if(t==="!="){return r!==n}if(t==="^="){return n&&r.indexOf(n)===0}if(t==="*="){return n&&r.indexOf(n)>-1}if(t==="$="){return n&&r.slice(-n.length)===n}if(t==="~="){return(" "+r.replace(M," ")+" ").indexOf(n)>-1}if(t==="|="){return r===n||r.slice(0,n.length+1)===n+"-"}return false}},CHILD:function(e,t,n,i,r){var o=e.slice(0,3)!=="nth",s=e.slice(-4)!=="last",a=t==="of-type";return i===1&&r===0?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h=o!==s?"nextSibling":"previousSibling",v=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!u&&!a,w=false;if(v){if(o){while(h){f=t;while(f=f[h]){if(a?E(f,g):f.nodeType===1){return false}}p=h=e==="only"&&!p&&"nextSibling"}return true}p=[s?v.firstChild:v.lastChild];if(s&&b){c=v[m]||(v[m]={});l=c[e]||[];d=l[0]===y&&l[1];w=d&&l[2];f=d&&v.childNodes[d];while(f=++d&&f&&f[h]||(w=d=0)||p.pop()){if(f.nodeType===1&&++w&&f===t){c[e]=[y,d,w];break}}}else{if(b){c=t[m]||(t[m]={});l=c[e]||[];d=l[0]===y&&l[1];w=d}if(w===false){while(f=++d&&f&&f[h]||(w=d=0)||p.pop()){if((a?E(f,g):f.nodeType===1)&&++w){if(b){c=f[m]||(f[m]={});c[e]=[y,w]}if(f===t){break}}}}}w-=r;return w===i||w%i===0&&w/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);if(r[m]){return r(t)}if(r.length>1){n=[e,e,"",t];return i.setFilters.hasOwnProperty(e.toLowerCase())?ne((function(e,n){var i,o=r(e,t),s=o.length;while(s--){i=a.call(e,o[s]);e[i]=!(n[i]=o[s])}})):function(e){return r(e,0,n)}}return r}},pseudos:{not:ne((function(e){var t=[],n=[],i=we(e.replace(O,"$1"));return i[m]?ne((function(e,t,n,r){var o,s=i(e,null,r,[]),a=e.length;while(a--){if(o=s[a]){e[a]=!(t[a]=o)}}})):function(e,r,o){t[0]=e;i(t,null,o,n);t[0]=null;return!n.pop()}})),has:ne((function(e){return function(t){return ee(e,t).length>0}})),contains:ne((function(e){e=e.replace(V,K);return function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:ne((function(e){if(!H.test(e||"")){ee.error("unsupported lang: "+e)}e=e.replace(V,K).toLowerCase();return function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){n=n.toLowerCase();return n===e||n.indexOf(e+"-")===0}}while((t=t.parentNode)&&t.nodeType===1);return false}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===Z()&&f.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(false),disabled:se(true),checked:function(e){return E(e,"input")&&!!e.checked||E(e,"option")&&!!e.selected},selected:function(e){return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return E(e,"input")&&e.type==="button"||E(e,"button")},text:function(e){var t;return E(e,"input")&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){var n=0;for(;n<t;n+=2){e.push(n)}return e})),odd:ae((function(e,t){var n=1;for(;n<t;n+=2){e.push(n)}return e})),lt:ae((function(e,t,n){var i;if(n<0){i=n+t}else if(n>t){i=t}else{i=n}for(;--i>=0;){e.push(i)}return e})),gt:ae((function(e,t,n){var i=n<0?n+t:n;for(;++i<t;){e.push(i)}return e}))}};i.pseudos.nth=i.pseudos.eq;for(t in{radio:true,checkbox:true,file:true,password:true,image:true}){i.pseudos[t]=re(t)}for(t in{submit:true,reset:true}){i.pseudos[t]=oe(t)}function ce(){}ce.prototype=i.filters=i.pseudos;i.setFilters=new ce;function fe(e,t){var n,r,o,s,a,u,l,c=x[e+" "];if(c){return t?0:c.slice(0)}a=e;u=[];l=i.preFilter;while(a){if(!n||(r=U.exec(a))){if(r){a=a.slice(r[0].length)||a}u.push(o=[])}n=false;if(r=q.exec(a)){n=r.shift();o.push({value:n,type:r[0].replace(O," ")});a=a.slice(n.length)}for(s in i.filter){if((r=z[s].exec(a))&&(!l[s]||(r=l[s](r)))){n=r.shift();o.push({value:n,type:s,matches:r});a=a.slice(n.length)}}if(!n){break}}if(t){return a.length}return a?ee.error(e):x(e,u).slice(0)}function de(e){var t=0,n=e.length,i="";for(;t<n;t++){i+=e[t].value}return i}function pe(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&o==="parentNode",a=b++;return t.first?function(t,n,r){while(t=t[i]){if(t.nodeType===1||s){return e(t,n,r)}}return false}:function(t,n,u){var l,c,f=[y,a];if(u){while(t=t[i]){if(t.nodeType===1||s){if(e(t,n,u)){return true}}}}else{while(t=t[i]){if(t.nodeType===1||s){c=t[m]||(t[m]={});if(r&&E(t,r)){t=t[i]||t}else if((l=c[o])&&l[0]===y&&l[1]===a){return f[2]=l[2]}else{c[o]=f;if(f[2]=e(t,n,u)){return true}}}}}return false}}function he(e){return e.length>1?function(t,n,i){var r=e.length;while(r--){if(!e[r](t,n,i)){return false}}return true}:e[0]}function ve(e,t,n){var i=0,r=t.length;for(;i<r;i++){ee(e,t[i],n)}return n}function ge(e,t,n,i,r){var o,s=[],a=0,u=e.length,l=t!=null;for(;a<u;a++){if(o=e[a]){if(!n||n(o,i,r)){s.push(o);if(l){t.push(a)}}}}return s}function me(e,t,n,i,r,o){if(i&&!i[m]){i=me(i)}if(r&&!r[m]){r=me(r,o)}return ne((function(o,s,u,c){var f,d,p,h,v=[],g=[],m=s.length,y=o||ve(t||"*",u.nodeType?[u]:u,[]),b=e&&(o||!t)?ge(y,v,e,u,c):y;if(n){h=r||(o?e:m||i)?[]:s;n(b,h,u,c)}else{h=b}if(i){f=ge(h,g);i(f,[],u,c);d=f.length;while(d--){if(p=f[d]){h[g[d]]=!(b[g[d]]=p)}}}if(o){if(r||e){if(r){f=[];d=h.length;while(d--){if(p=h[d]){f.push(b[d]=p)}}r(null,h=[],f,c)}d=h.length;while(d--){if((p=h[d])&&(f=r?a.call(o,p):v[d])>-1){o[f]=!(s[f]=p)}}}}else{h=ge(h===s?h.splice(m,h.length):h);if(r){r(null,s,h,c)}else{l.apply(s,h)}}}))}function ye(e){var t,n,r,s=e.length,u=i.relative[e[0].type],l=u||i.relative[" "],c=u?1:0,f=pe((function(e){return e===t}),l,true),d=pe((function(e){return a.call(t,e)>-1}),l,true),p=[function(e,n,i){var r=!u&&(i||n!=o)||((t=n).nodeType?f(e,n,i):d(e,n,i));t=null;return r}];for(;c<s;c++){if(n=i.relative[e[c].type]){p=[pe(he(p),n)]}else{n=i.filter[e[c].type].apply(null,e[c].matches);if(n[m]){r=++c;for(;r<s;r++){if(i.relative[e[r].type]){break}}return me(c>1&&he(p),c>1&&de(e.slice(0,c-1).concat({value:e[c-2].type===" "?"*":""})).replace(O,"$1"),n,c<r&&ye(e.slice(c,r)),r<s&&ye(e=e.slice(r)),r<s&&de(e))}p.push(n)}}return he(p)}function be(e,t){var n=t.length>0,r=e.length>0,s=function(s,a,u,c,d){var p,v,g,m=0,b="0",w=s&&[],x=[],C=o,E=s||r&&i.find.TAG("*",d),T=y+=C==null?1:Math.random()||.1,_=E.length;if(d){o=a==f||a||d}for(;b!==_&&(p=E[b])!=null;b++){if(r&&p){v=0;if(!a&&p.ownerDocument!=f){le(p);u=!h}while(g=e[v++]){if(g(p,a||f,u)){l.call(c,p);break}}if(d){y=T}}if(n){if(p=!g&&p){m--}if(s){w.push(p)}}}m+=b;if(n&&b!==m){v=0;while(g=t[v++]){g(w,x,a,u)}if(s){if(m>0){while(b--){if(!(w[b]||x[b])){x[b]=S.call(c)}}}x=ge(x)}l.apply(c,x);if(d&&!s&&x.length>0&&m+t.length>1){k.uniqueSort(c)}}if(d){y=T;o=C}return w};return n?ne(s):s}function we(e,t){var n,i=[],r=[],o=C[e+" "];if(!o){if(!t){t=fe(e)}n=t.length;while(n--){o=ye(t[n]);if(o[m]){i.push(o)}else{r.push(o)}}o=C(e,be(r,i));o.selector=e}return o}function xe(e,t,n,r){var o,s,a,u,c,f=typeof e==="function"&&e,d=!r&&fe(e=f.selector||e);n=n||[];if(d.length===1){s=d[0]=d[0].slice(0);if(s.length>2&&(a=s[0]).type==="ID"&&t.nodeType===9&&h&&i.relative[s[1].type]){t=(i.find.ID(a.matches[0].replace(V,K),t)||[])[0];if(!t){return n}else if(f){t=t.parentNode}e=e.slice(s.shift().value.length)}o=z.needsContext.test(e)?0:s.length;while(o--){a=s[o];if(i.relative[u=a.type]){break}if(c=i.find[u]){if(r=c(a.matches[0].replace(V,K),X.test(s[0].type)&&ue(t.parentNode)||t)){s.splice(o,1);e=r.length&&de(s);if(!e){l.apply(n,r);return n}break}}}}(f||we(e,d))(r,t,!h,n,!t||X.test(e)&&ue(t.parentNode)||t);return n}p.sortStable=m.split("").sort(L).join("")===m;le();p.sortDetached=ie((function(e){return e.compareDocumentPosition(f.createElement("fieldset"))&1}));k.find=ee;k.expr[":"]=k.expr.pseudos;k.unique=k.uniqueSort;ee.compile=we;ee.select=xe;ee.setDocument=le;ee.escape=k.escapeSelector;ee.getText=k.text;ee.isXML=k.isXMLDoc;ee.selectors=k.expr;ee.support=k.support;ee.uniqueSort=k.uniqueSort})();var I=function(e,t,n){var i=[],r=n!==undefined;while((e=e[t])&&e.nodeType!==9){if(e.nodeType===1){if(r&&k(e).is(n)){break}i.push(e)}}return i};var P=function(e,t){var n=[];for(;e;e=e.nextSibling){if(e.nodeType===1&&e!==t){n.push(e)}}return n};var R=k.expr.match.needsContext;var F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){if(h(t)){return k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}))}if(t.nodeType){return k.grep(e,(function(e){return e===t!==n}))}if(typeof t!=="string"){return k.grep(e,(function(e){return a.call(t,e)>-1!==n}))}return k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];if(n){e=":not("+e+")"}if(t.length===1&&i.nodeType===1){return k.find.matchesSelector(i,e)?[i]:[]}return k.find.matches(e,k.grep(t,(function(e){return e.nodeType===1})))};k.fn.extend({find:function(e){var t,n,i=this.length,r=this;if(typeof e!=="string"){return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++){if(k.contains(r[t],this)){return true}}})))}n=this.pushStack([]);for(t=0;t<i;t++){k.find(e,r[t],n)}return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],false))},not:function(e){return this.pushStack(M(this,e||[],true))},is:function(e){return!!M(this,typeof e==="string"&&R.test(e)?k(e):e||[],false).length}});var U,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,W=k.fn.init=function(e,t,n){var i,r;if(!e){return this}n=n||U;if(typeof e==="string"){if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3){i=[null,e,null]}else{i=q.exec(e)}if(i&&(i[1]||!t)){if(i[1]){t=t instanceof k?t[0]:t;k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,true));if(F.test(i[1])&&k.isPlainObject(t)){for(i in t){if(h(this[i])){this[i](t[i])}else{this.attr(i,t[i])}}}return this}else{r=g.getElementById(i[2]);if(r){this[0]=r;this.length=1}return this}}else if(!t||t.jquery){return(t||n).find(e)}else{return this.constructor(t).find(e)}}else if(e.nodeType){this[0]=e;this.length=1;return this}else if(h(e)){return n.ready!==undefined?n.ready(e):e(k)}return k.makeArray(e,this)};W.prototype=k.fn;U=k(g);var B=/^(?:parents|prev(?:Until|All))/,H={children:true,contents:true,next:true,prev:true};k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){var e=0;for(;e<n;e++){if(k.contains(this,t[e])){return true}}}))},closest:function(e,t){var n,i=0,r=this.length,o=[],s=typeof e!=="string"&&k(e);if(!R.test(e)){for(;i<r;i++){for(n=this[i];n&&n!==t;n=n.parentNode){if(n.nodeType<11&&(s?s.index(n)>-1:n.nodeType===1&&k.find.matchesSelector(n,e))){o.push(n);break}}}}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){if(!e){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof e==="string"){return a.call(k(e),this[0])}return a.call(this,e.jquery?e[0]:e)},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function z(e,t){while((e=e[t])&&e.nodeType!==1){}return e}k.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){if(e.contentDocument!=null&&i(e.contentDocument)){return e.contentDocument}if(E(e,"template")){e=e.content||e}return k.merge([],e.childNodes)}},(function(e,t){k.fn[e]=function(n,i){var r=k.map(this,t,n);if(e.slice(-5)!=="Until"){i=n}if(i&&typeof i==="string"){r=k.filter(i,r)}if(this.length>1){if(!H[e]){k.uniqueSort(r)}if(B.test(e)){r.reverse()}}return this.pushStack(r)}}));var $=/[^\x20\t\r\n\f]+/g;function J(e){var t={};k.each(e.match($)||[],(function(e,n){t[n]=true}));return t}k.Callbacks=function(e){e=typeof e==="string"?J(e):k.extend({},e);var t,n,i,r,o=[],s=[],a=-1,u=function(){r=r||e.once;i=t=true;for(;s.length;a=-1){n=s.shift();while(++a<o.length){if(o[a].apply(n[0],n[1])===false&&e.stopOnFalse){a=o.length;n=false}}}if(!e.memory){n=false}t=false;if(r){if(n){o=[]}else{o=""}}},l={add:function(){if(o){if(n&&!t){a=o.length-1;s.push(n)}(function t(n){k.each(n,(function(n,i){if(h(i)){if(!e.unique||!l.has(i)){o.push(i)}}else if(i&&i.length&&b(i)!=="string"){t(i)}}))})(arguments);if(n&&!t){u()}}return this},remove:function(){k.each(arguments,(function(e,t){var n;while((n=k.inArray(t,o,n))>-1){o.splice(n,1);if(n<=a){a--}}}));return this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){if(o){o=[]}return this},disable:function(){r=s=[];o=n="";return this},disabled:function(){return!o},lock:function(){r=s=[];if(!n&&!t){o=n=""}return this},locked:function(){return!!r},fireWith:function(e,n){if(!r){n=n||[];n=[e,n.slice?n.slice():n];s.push(n);if(!t){u()}}return this},fire:function(){l.fireWith(this,arguments);return this},fired:function(){return!!i}};return l};function G(e){return e}function X(e){throw e}function V(e,t,n,i){var r;try{if(e&&h(r=e.promise)){r.call(e).done(t).fail(n)}else if(e&&h(r=e.then)){r.call(e,t,n)}else{t.apply(undefined,[e].slice(i))}}catch(e){n.apply(undefined,[e])}}k.extend({Deferred:function(t){var n=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){o.done(arguments).fail(arguments);return this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(t){k.each(n,(function(n,i){var r=h(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);if(e&&h(e.promise)){e.promise().progress(t.notify).done(t.resolve).fail(t.reject)}else{t[i[0]+"With"](this,r?[e]:arguments)}}))}));e=null})).promise()},then:function(t,i,r){var o=0;function s(t,n,i,r){return function(){var a=this,u=arguments,l=function(){var e,l;if(t<o){return}e=i.apply(a,u);if(e===n.promise()){throw new TypeError("Thenable self-resolution")}l=e&&(typeof e==="object"||typeof e==="function")&&e.then;if(h(l)){if(r){l.call(e,s(o,n,G,r),s(o,n,X,r))}else{o++;l.call(e,s(o,n,G,r),s(o,n,X,r),s(o,n,G,n.notifyWith))}}else{if(i!==G){a=undefined;u=[e]}(r||n.resolveWith)(a,u)}},c=r?l:function(){try{l()}catch(e){if(k.Deferred.exceptionHook){k.Deferred.exceptionHook(e,c.error)}if(t+1>=o){if(i!==X){a=undefined;u=[e]}n.rejectWith(a,u)}}};if(t){c()}else{if(k.Deferred.getErrorHook){c.error=k.Deferred.getErrorHook()}else if(k.Deferred.getStackHook){c.error=k.Deferred.getStackHook()}e.setTimeout(c)}}}return k.Deferred((function(e){n[0][3].add(s(0,e,h(r)?r:G,e.notifyWith));n[1][3].add(s(0,e,h(t)?t:G));n[2][3].add(s(0,e,h(i)?i:X))})).promise()},promise:function(e){return e!=null?k.extend(e,r):r}},o={};k.each(n,(function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add;if(a){s.add((function(){i=a}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock)}s.add(t[3].fire);o[t[0]]=function(){o[t[0]+"With"](this===o?undefined:this,arguments);return this};o[t[0]+"With"]=s.fireWith}));r.promise(o);if(t){t.call(o,o)}return o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=k.Deferred(),a=function(e){return function(n){i[e]=this;o[e]=arguments.length>1?r.call(arguments):n;if(!--t){s.resolveWith(i,o)}}};if(t<=1){V(e,s.done(a(n)).resolve,s.reject,!t);if(s.state()==="pending"||h(o[n]&&o[n].then)){return s.then()}}while(n--){V(o[n],a(n),s.reject)}return s.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,n){if(e.console&&e.console.warn&&t&&K.test(t.name)){e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)}};k.readyException=function(t){e.setTimeout((function(){throw t}))};var Q=k.Deferred();k.fn.ready=function(e){Q.then(e).catch((function(e){k.readyException(e)}));return this};k.extend({isReady:false,readyWait:1,ready:function(e){if(e===true?--k.readyWait:k.isReady){return}k.isReady=true;if(e!==true&&--k.readyWait>0){return}Q.resolveWith(g,[k])}});k.ready.then=Q.then;function Y(){g.removeEventListener("DOMContentLoaded",Y);e.removeEventListener("load",Y);k.ready()}if(g.readyState==="complete"||g.readyState!=="loading"&&!g.documentElement.doScroll){e.setTimeout(k.ready)}else{g.addEventListener("DOMContentLoaded",Y);e.addEventListener("load",Y)}var Z=function(e,t,n,i,r,o,s){var a=0,u=e.length,l=n==null;if(b(n)==="object"){r=true;for(a in n){Z(e,t,a,n[a],true,o,s)}}else if(i!==undefined){r=true;if(!h(i)){s=true}if(l){if(s){t.call(e,i);t=null}else{l=t;t=function(e,t,n){return l.call(k(e),n)}}}if(t){for(;a<u;a++){t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)))}}}if(r){return e}if(l){return t.call(e)}return u?t(e[0],n):o};var ee=/^-ms-/,te=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function ie(e){return e.replace(ee,"ms-").replace(te,ne)}var re=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function oe(){this.expando=k.expando+oe.uid++}oe.uid=1;oe.prototype={cache:function(e){var t=e[this.expando];if(!t){t={};if(re(e)){if(e.nodeType){e[this.expando]=t}else{Object.defineProperty(e,this.expando,{value:t,configurable:true})}}}return t},set:function(e,t,n){var i,r=this.cache(e);if(typeof t==="string"){r[ie(t)]=n}else{for(i in t){r[ie(i)]=t[i]}}return r},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){if(t===undefined||t&&typeof t==="string"&&n===undefined){return this.get(e,t)}this.set(e,t,n);return n!==undefined?n:t},remove:function(e,t){var n,i=e[this.expando];if(i===undefined){return}if(t!==undefined){if(Array.isArray(t)){t=t.map(ie)}else{t=ie(t);t=t in i?[t]:t.match($)||[]}n=t.length;while(n--){delete i[t[n]]}}if(t===undefined||k.isEmptyObject(i)){if(e.nodeType){e[this.expando]=undefined}else{delete e[this.expando]}}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!k.isEmptyObject(t)}};var se=new oe;var ae=new oe;var ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,le=/[A-Z]/g;function ce(e){if(e==="true"){return true}if(e==="false"){return false}if(e==="null"){return null}if(e===+e+""){return+e}if(ue.test(e)){return JSON.parse(e)}return e}function fe(e,t,n){var i;if(n===undefined&&e.nodeType===1){i="data-"+t.replace(le,"-$&").toLowerCase();n=e.getAttribute(i);if(typeof n==="string"){try{n=ce(n)}catch(e){}ae.set(e,t,n)}else{n=undefined}}return n}k.extend({hasData:function(e){return ae.hasData(e)||se.hasData(e)},data:function(e,t,n){return ae.access(e,t,n)},removeData:function(e,t){ae.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}});k.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(e===undefined){if(this.length){r=ae.get(o);if(o.nodeType===1&&!se.get(o,"hasDataAttrs")){n=s.length;while(n--){if(s[n]){i=s[n].name;if(i.indexOf("data-")===0){i=ie(i.slice(5));fe(o,i,r[i])}}}se.set(o,"hasDataAttrs",true)}}return r}if(typeof e==="object"){return this.each((function(){ae.set(this,e)}))}return Z(this,(function(t){var n;if(o&&t===undefined){n=ae.get(o,e);if(n!==undefined){return n}n=fe(o,e);if(n!==undefined){return n}return}this.each((function(){ae.set(this,e,t)}))}),null,t,arguments.length>1,null,true)},removeData:function(e){return this.each((function(){ae.remove(this,e)}))}});k.extend({queue:function(e,t,n){var i;if(e){t=(t||"fx")+"queue";i=se.get(e,t);if(n){if(!i||Array.isArray(n)){i=se.access(e,t,k.makeArray(n))}else{i.push(n)}}return i||[]}},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,r=n.shift(),o=k._queueHooks(e,t),s=function(){k.dequeue(e,t)};if(r==="inprogress"){r=n.shift();i--}if(r){if(t==="fx"){n.unshift("inprogress")}delete o.stop;r.call(e,s,o)}if(!i&&o){o.empty.fire()}},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:k.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}});k.fn.extend({queue:function(e,t){var n=2;if(typeof e!=="string"){t=e;e="fx";n--}if(arguments.length<n){return k.queue(this[0],e)}return t===undefined?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e);if(e==="fx"&&n[0]!=="inprogress"){k.dequeue(this,e)}}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=k.Deferred(),o=this,s=this.length,a=function(){if(!--i){r.resolveWith(o,[o])}};if(typeof e!=="string"){t=e;e=undefined}e=e||"fx";while(s--){n=se.get(o[s],e+"queueHooks");if(n&&n.empty){i++;n.empty.add(a)}}a();return r.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var pe=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i");var he=["Top","Right","Bottom","Left"];var ve=g.documentElement;var ge=function(e){return k.contains(e.ownerDocument,e)},me={composed:true};if(ve.getRootNode){ge=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument}}var ye=function(e,t){e=t||e;return e.style.display==="none"||e.style.display===""&&ge(e)&&k.css(e,"display")==="none"};function be(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return k.css(e,t,"")},u=a(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||l!=="px"&&+u)&&pe.exec(k.css(e,t));if(c&&c[3]!==l){u=u/2;l=l||c[3];c=+u||1;while(s--){k.style(e,t,c+l);if((1-o)*(1-(o=a()/u||.5))<=0){s=0}c=c/o}c=c*2;k.style(e,t,c+l);n=n||[]}if(n){c=+c||+u||0;r=n[1]?c+(n[1]+1)*n[2]:+n[2];if(i){i.unit=l;i.start=c;i.end=r}}return r}var we={};function xe(e){var t,n=e.ownerDocument,i=e.nodeName,r=we[i];if(r){return r}t=n.body.appendChild(n.createElement(i));r=k.css(t,"display");t.parentNode.removeChild(t);if(r==="none"){r="block"}we[i]=r;return r}function ke(e,t){var n,i,r=[],o=0,s=e.length;for(;o<s;o++){i=e[o];if(!i.style){continue}n=i.style.display;if(t){if(n==="none"){r[o]=se.get(i,"display")||null;if(!r[o]){i.style.display=""}}if(i.style.display===""&&ye(i)){r[o]=xe(i)}}else{if(n!=="none"){r[o]="none";se.set(i,"display",n)}}}for(o=0;o<s;o++){if(r[o]!=null){e[o].style.display=r[o]}}return e}k.fn.extend({show:function(){return ke(this,true)},hide:function(){return ke(this)},toggle:function(e){if(typeof e==="boolean"){return e?this.show():this.hide()}return this.each((function(){if(ye(this)){k(this).show()}else{k(this).hide()}}))}});var Ce=/^(?:checkbox|radio)$/i;var Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var Se=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=g.createDocumentFragment(),t=e.appendChild(g.createElement("div")),n=g.createElement("input");n.setAttribute("type","radio");n.setAttribute("checked","checked");n.setAttribute("name","t");t.appendChild(n);p.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";p.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";p.option=!!t.lastChild})();var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead;Te.th=Te.td;if(!p.option){Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]}function _e(e,t){var n;if(typeof e.getElementsByTagName!=="undefined"){n=e.getElementsByTagName(t||"*")}else if(typeof e.querySelectorAll!=="undefined"){n=e.querySelectorAll(t||"*")}else{n=[]}if(t===undefined||t&&E(e,t)){return k.merge([e],n)}return n}function Ae(e,t){var n=0,i=e.length;for(;n<i;n++){se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}}var Oe=/<|&#?\w+;/;function Ne(e,t,n,i,r){var o,s,a,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;for(;p<h;p++){o=e[p];if(o||o===0){if(b(o)==="object"){k.merge(d,o.nodeType?[o]:o)}else if(!Oe.test(o)){d.push(t.createTextNode(o))}else{s=s||f.appendChild(t.createElement("div"));a=(Ee.exec(o)||["",""])[1].toLowerCase();u=Te[a]||Te._default;s.innerHTML=u[1]+k.htmlPrefilter(o)+u[2];c=u[0];while(c--){s=s.lastChild}k.merge(d,s.childNodes);s=f.firstChild;s.textContent=""}}}f.textContent="";p=0;while(o=d[p++]){if(i&&k.inArray(o,i)>-1){if(r){r.push(o)}continue}l=ge(o);s=_e(f.appendChild(o),"script");if(l){Ae(s)}if(n){c=0;while(o=s[c++]){if(Se.test(o.type||"")){n.push(o)}}}}return f}var Le=/^([^.]*)(?:\.(.+)|)/;function je(){return true}function De(){return false}function Ie(e,t,n,i,r,o){var s,a;if(typeof t==="object"){if(typeof n!=="string"){i=i||n;n=undefined}for(a in t){Ie(e,a,n,i,t[a],o)}return e}if(i==null&&r==null){r=n;i=n=undefined}else if(r==null){if(typeof n==="string"){r=i;i=undefined}else{r=i;i=n;n=undefined}}if(r===false){r=De}else if(!r){return e}if(o===1){s=r;r=function(e){k().off(e);return s.apply(this,arguments)};r.guid=s.guid||(s.guid=k.guid++)}return e.each((function(){k.event.add(this,t,r,i,n)}))}k.event={global:{},add:function(e,t,n,i,r){var o,s,a,u,l,c,f,d,p,h,v,g=se.get(e);if(!re(e)){return}if(n.handler){o=n;n=o.handler;r=o.selector}if(r){k.find.matchesSelector(ve,r)}if(!n.guid){n.guid=k.guid++}if(!(u=g.events)){u=g.events=Object.create(null)}if(!(s=g.handle)){s=g.handle=function(t){return typeof k!=="undefined"&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):undefined}}t=(t||"").match($)||[""];l=t.length;while(l--){a=Le.exec(t[l])||[];p=v=a[1];h=(a[2]||"").split(".").sort();if(!p){continue}f=k.event.special[p]||{};p=(r?f.delegateType:f.bindType)||p;f=k.event.special[p]||{};c=k.extend({type:p,origType:v,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:h.join(".")},o);if(!(d=u[p])){d=u[p]=[];d.delegateCount=0;if(!f.setup||f.setup.call(e,i,h,s)===false){if(e.addEventListener){e.addEventListener(p,s)}}}if(f.add){f.add.call(e,c);if(!c.handler.guid){c.handler.guid=n.guid}}if(r){d.splice(d.delegateCount++,0,c)}else{d.push(c)}k.event.global[p]=true}},remove:function(e,t,n,i,r){var o,s,a,u,l,c,f,d,p,h,v,g=se.hasData(e)&&se.get(e);if(!g||!(u=g.events)){return}t=(t||"").match($)||[""];l=t.length;while(l--){a=Le.exec(t[l])||[];p=v=a[1];h=(a[2]||"").split(".").sort();if(!p){for(p in u){k.event.remove(e,p+t[l],n,i,true)}continue}f=k.event.special[p]||{};p=(i?f.delegateType:f.bindType)||p;d=u[p]||[];a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)");s=o=d.length;while(o--){c=d[o];if((r||v===c.origType)&&(!n||n.guid===c.guid)&&(!a||a.test(c.namespace))&&(!i||i===c.selector||i==="**"&&c.selector)){d.splice(o,1);if(c.selector){d.delegateCount--}if(f.remove){f.remove.call(e,c)}}}if(s&&!d.length){if(!f.teardown||f.teardown.call(e,h,g.handle)===false){k.removeEvent(e,p,g.handle)}delete u[p]}}if(k.isEmptyObject(u)){se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),u=k.event.fix(e),l=(se.get(this,"events")||Object.create(null))[u.type]||[],c=k.event.special[u.type]||{};a[0]=u;for(t=1;t<arguments.length;t++){a[t]=arguments[t]}u.delegateTarget=this;if(c.preDispatch&&c.preDispatch.call(this,u)===false){return}s=k.event.handlers.call(this,u,l);t=0;while((r=s[t++])&&!u.isPropagationStopped()){u.currentTarget=r.elem;n=0;while((o=r.handlers[n++])&&!u.isImmediatePropagationStopped()){if(!u.rnamespace||o.namespace===false||u.rnamespace.test(o.namespace)){u.handleObj=o;u.data=o.data;i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a);if(i!==undefined){if((u.result=i)===false){u.preventDefault();u.stopPropagation()}}}}}if(c.postDispatch){c.postDispatch.call(this,u)}return u.result},handlers:function(e,t){var n,i,r,o,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!(e.type==="click"&&e.button>=1)){for(;l!==this;l=l.parentNode||this){if(l.nodeType===1&&!(e.type==="click"&&l.disabled===true)){o=[];s={};for(n=0;n<u;n++){i=t[n];r=i.selector+" ";if(s[r]===undefined){s[r]=i.needsContext?k(r,this).index(l)>-1:k.find(r,this,null,[l]).length}if(s[r]){o.push(i)}}if(o.length){a.push({elem:l,handlers:o})}}}}l=this;if(u<t.length){a.push({elem:l,handlers:t.slice(u)})}return a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:true,configurable:true,get:h(t)?function(){if(this.originalEvent){return t(this.originalEvent)}}:function(){if(this.originalEvent){return this.originalEvent[e]}},set:function(t){Object.defineProperty(this,e,{enumerable:true,configurable:true,writable:true,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:true},click:{setup:function(e){var t=this||e;if(Ce.test(t.type)&&t.click&&E(t,"input")){Pe(t,"click",true)}return false},trigger:function(e){var t=this||e;if(Ce.test(t.type)&&t.click&&E(t,"input")){Pe(t,"click")}return true},_default:function(e){var t=e.target;return Ce.test(t.type)&&t.click&&E(t,"input")&&se.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){if(e.result!==undefined&&e.originalEvent){e.originalEvent.returnValue=e.result}}}}};function Pe(e,t,n){if(!n){if(se.get(e,t)===undefined){k.event.add(e,t,je)}return}se.set(e,t,false);k.event.add(e,t,{namespace:false,handler:function(e){var n,i=se.get(this,t);if(e.isTrigger&1&&this[t]){if(!i){i=r.call(arguments);se.set(this,t,i);this[t]();n=se.get(this,t);se.set(this,t,false);if(i!==n){e.stopImmediatePropagation();e.preventDefault();return n}}else if((k.event.special[t]||{}).delegateType){e.stopPropagation()}}else if(i){se.set(this,t,k.event.trigger(i[0],i.slice(1),this));e.stopPropagation();e.isImmediatePropagationStopped=je}}})}k.removeEvent=function(e,t,n){if(e.removeEventListener){e.removeEventListener(t,n)}};k.Event=function(e,t){if(!(this instanceof k.Event)){return new k.Event(e,t)}if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&e.returnValue===false?je:De;this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target;this.currentTarget=e.currentTarget;this.relatedTarget=e.relatedTarget}else{this.type=e}if(t){k.extend(this,t)}this.timeStamp=e&&e.timeStamp||Date.now();this[k.expando]=true};k.Event.prototype={constructor:k.Event,isDefaultPrevented:De,isPropagationStopped:De,isImmediatePropagationStopped:De,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=je;if(e&&!this.isSimulated){e.preventDefault()}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=je;if(e&&!this.isSimulated){e.stopPropagation()}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=je;if(e&&!this.isSimulated){e.stopImmediatePropagation()}this.stopPropagation()}};k.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},k.event.addProp);k.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(g.documentMode){var n=se.get(this,"handle"),i=k.event.fix(e);i.type=e.type==="focusin"?"focus":"blur";i.isSimulated=true;n(e);if(i.target===i.currentTarget){n(i)}}else{k.event.simulate(t,e.target,k.event.fix(e))}}k.event.special[e]={setup:function(){var i;Pe(this,e,true);if(g.documentMode){i=se.get(this,t);if(!i){this.addEventListener(t,n)}se.set(this,t,(i||0)+1)}else{return false}},trigger:function(){Pe(this,e);return true},teardown:function(){var e;if(g.documentMode){e=se.get(this,t)-1;if(!e){this.removeEventListener(t,n);se.remove(this,t)}else{se.set(this,t,e)}}else{return false}},_default:function(t){return se.get(t.target,e)},delegateType:t};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=g.documentMode?this:i,o=se.get(r,t);if(!o){if(g.documentMode){this.addEventListener(t,n)}else{i.addEventListener(e,n,true)}}se.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=g.documentMode?this:i,o=se.get(r,t)-1;if(!o){if(g.documentMode){this.removeEventListener(t,n)}else{i.removeEventListener(e,n,true)}se.remove(r,t)}else{se.set(r,t,o)}}}}));k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;if(!r||r!==i&&!k.contains(i,r)){e.type=o.origType;n=o.handler.apply(this,arguments);e.type=t}return n}}}));k.fn.extend({on:function(e,t,n,i){return Ie(this,e,t,n,i)},one:function(e,t,n,i){return Ie(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj){i=e.handleObj;k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);return this}if(typeof e==="object"){for(r in e){this.off(r,t,e[r])}return this}if(t===false||typeof t==="function"){n=t;t=undefined}if(n===false){n=De}return this.each((function(){k.event.remove(this,e,n,t)}))}});var Re=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ue(e,t){if(E(e,"table")&&E(t.nodeType!==11?t:t.firstChild,"tr")){return k(e).children("tbody")[0]||e}return e}function qe(e){e.type=(e.getAttribute("type")!==null)+"/"+e.type;return e}function We(e){if((e.type||"").slice(0,5)==="true/"){e.type=e.type.slice(5)}else{e.removeAttribute("type")}return e}function Be(e,t){var n,i,r,o,s,a,u;if(t.nodeType!==1){return}if(se.hasData(e)){o=se.get(e);u=o.events;if(u){se.remove(t,"handle events");for(r in u){for(n=0,i=u[r].length;n<i;n++){k.event.add(t,r,u[r][n])}}}}if(ae.hasData(e)){s=ae.access(e);a=k.extend({},s);ae.set(t,a)}}function He(e,t){var n=t.nodeName.toLowerCase();if(n==="input"&&Ce.test(e.type)){t.checked=e.checked}else if(n==="input"||n==="textarea"){t.defaultValue=e.defaultValue}}function ze(e,t,n,i){t=o(t);var r,s,a,u,l,c,f=0,d=e.length,v=d-1,g=t[0],m=h(g);if(m||d>1&&typeof g==="string"&&!p.checkClone&&Fe.test(g)){return e.each((function(r){var o=e.eq(r);if(m){t[0]=g.call(this,r,o.html())}ze(o,t,n,i)}))}if(d){r=Ne(t,e[0].ownerDocument,false,e,i);s=r.firstChild;if(r.childNodes.length===1){r=s}if(s||i){a=k.map(_e(r,"script"),qe);u=a.length;for(;f<d;f++){l=r;if(f!==v){l=k.clone(l,true,true);if(u){k.merge(a,_e(l,"script"))}}n.call(e[f],l,f)}if(u){c=a[a.length-1].ownerDocument;k.map(a,We);for(f=0;f<u;f++){l=a[f];if(Se.test(l.type||"")&&!se.access(l,"globalEval")&&k.contains(c,l)){if(l.src&&(l.type||"").toLowerCase()!=="module"){if(k._evalUrl&&!l.noModule){k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c)}}else{y(l.textContent.replace(Me,""),l,c)}}}}}}return e}function $e(e,t,n){var i,r=t?k.filter(t,e):e,o=0;for(;(i=r[o])!=null;o++){if(!n&&i.nodeType===1){k.cleanData(_e(i))}if(i.parentNode){if(n&&ge(i)){Ae(_e(i,"script"))}i.parentNode.removeChild(i)}}return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(true),u=ge(e);if(!p.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!k.isXMLDoc(e)){s=_e(a);o=_e(e);for(i=0,r=o.length;i<r;i++){He(o[i],s[i])}}if(t){if(n){o=o||_e(e);s=s||_e(a);for(i=0,r=o.length;i<r;i++){Be(o[i],s[i])}}else{Be(e,a)}}s=_e(a,"script");if(s.length>0){Ae(s,!u&&_e(e,"script"))}return a},cleanData:function(e){var t,n,i,r=k.event.special,o=0;for(;(n=e[o])!==undefined;o++){if(re(n)){if(t=n[se.expando]){if(t.events){for(i in t.events){if(r[i]){k.event.remove(n,i)}else{k.removeEvent(n,i,t.handle)}}}n[se.expando]=undefined}if(n[ae.expando]){n[ae.expando]=undefined}}}}});k.fn.extend({detach:function(e){return $e(this,e,true)},remove:function(e){return $e(this,e)},text:function(e){return Z(this,(function(e){return e===undefined?k.text(this):this.empty().each((function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=e}}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Ue(this,e);t.appendChild(e)}}))},prepend:function(){return ze(this,arguments,(function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Ue(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}}))},after:function(){return ze(this,arguments,(function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}}))},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){if(e.nodeType===1){k.cleanData(_e(e,false));e.textContent=""}}return this},clone:function(e,t){e=e==null?false:e;t=t==null?e:t;return this.map((function(){return k.clone(this,e,t)}))},html:function(e){return Z(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined&&t.nodeType===1){return t.innerHTML}if(typeof e==="string"&&!Re.test(e)&&!Te[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++){t=this[n]||{};if(t.nodeType===1){k.cleanData(_e(t,false));t.innerHTML=e}}t=0}catch(e){}}if(t){this.empty().append(e)}}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;if(k.inArray(this,e)<0){k.cleanData(_e(this));if(n){n.replaceChild(t,this)}}}),e)}});k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){var n,i=[],r=k(e),o=r.length-1,a=0;for(;a<=o;a++){n=a===o?this:this.clone(true);k(r[a])[t](n);s.apply(i,n.get())}return this.pushStack(i)}}));var Je=new RegExp("^("+de+")(?!px)[a-z%]+$","i");var Ge=/^--/;var Xe=function(t){var n=t.ownerDocument.defaultView;if(!n||!n.opener){n=e}return n.getComputedStyle(t)};var Ve=function(e,t,n){var i,r,o={};for(r in t){o[r]=e.style[r];e.style[r]=t[r]}i=n.call(e);for(r in t){e.style[r]=o[r]}return i};var Ke=new RegExp(he.join("|"),"i");(function(){function t(){if(!c){return}l.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";ve.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i=t.top!=="1%";u=n(t.marginLeft)===12;c.style.right="60%";s=n(t.right)===36;r=n(t.width)===36;c.style.position="absolute";o=n(c.offsetWidth/3)===12;ve.removeChild(l);c=null}function n(e){return Math.round(parseFloat(e))}var i,r,o,s,a,u,l=g.createElement("div"),c=g.createElement("div");if(!c.style){return}c.style.backgroundClip="content-box";c.cloneNode(true).style.backgroundClip="";p.clearCloneStyle=c.style.backgroundClip==="content-box";k.extend(p,{boxSizingReliable:function(){t();return r},pixelBoxStyles:function(){t();return s},pixelPosition:function(){t();return i},reliableMarginLeft:function(){t();return u},scrollboxSize:function(){t();return o},reliableTrDimensions:function(){var t,n,i,r;if(a==null){t=g.createElement("table");n=g.createElement("tr");i=g.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";n.style.cssText="border:1px solid";n.style.height="1px";i.style.height="9px";i.style.display="block";ve.appendChild(t).appendChild(n).appendChild(i);r=e.getComputedStyle(n);a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight;ve.removeChild(t)}return a}})})();function Qe(e,t,n){var i,r,o,s,a=Ge.test(t),u=e.style;n=n||Xe(e);if(n){s=n.getPropertyValue(t)||n[t];if(a&&s){s=s.replace(O,"$1")||undefined}if(s===""&&!ge(e)){s=k.style(e,t)}if(!p.pixelBoxStyles()&&Je.test(s)&&Ke.test(t)){i=u.width;r=u.minWidth;o=u.maxWidth;u.minWidth=u.maxWidth=u.width=s;s=n.width;u.width=i;u.minWidth=r;u.maxWidth=o}}return s!==undefined?s+"":s}function Ye(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Ze=["Webkit","Moz","ms"],et=g.createElement("div").style,tt={};function nt(e){var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;while(n--){e=Ze[n]+t;if(e in et){return e}}}function it(e){var t=k.cssProps[e]||tt[e];if(t){return t}if(e in et){return e}return tt[e]=nt(e)||e}var rt=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var i=pe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ut(e,t,n,i,r,o){var s=t==="width"?1:0,a=0,u=0,l=0;if(n===(i?"border":"content")){return 0}for(;s<4;s+=2){if(n==="margin"){l+=k.css(e,n+he[s],true,r)}if(!i){u+=k.css(e,"padding"+he[s],true,r);if(n!=="padding"){u+=k.css(e,"border"+he[s]+"Width",true,r)}else{a+=k.css(e,"border"+he[s]+"Width",true,r)}}else{if(n==="content"){u-=k.css(e,"padding"+he[s],true,r)}if(n!=="margin"){u-=k.css(e,"border"+he[s]+"Width",true,r)}}}if(!i&&o>=0){u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-a-.5))||0}return u+l}function lt(e,t,n){var i=Xe(e),r=!p.boxSizingReliable()||n,o=r&&k.css(e,"boxSizing",false,i)==="border-box",s=o,a=Qe(e,t,i),u="offset"+t[0].toUpperCase()+t.slice(1);if(Je.test(a)){if(!n){return a}a="auto"}if((!p.boxSizingReliable()&&o||!p.reliableTrDimensions()&&E(e,"tr")||a==="auto"||!parseFloat(a)&&k.css(e,"display",false,i)==="inline")&&e.getClientRects().length){o=k.css(e,"boxSizing",false,i)==="border-box";s=u in e;if(s){a=e[u]}}a=parseFloat(a)||0;return a+ut(e,t,n||(o?"border":"content"),s,i,a)+"px"}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:true,aspectRatio:true,borderImageSlice:true,columnCount:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,scale:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeMiterlimit:true,strokeOpacity:true},cssProps:{},style:function(e,t,n,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style){return}var r,o,s,a=ie(t),u=Ge.test(t),l=e.style;if(!u){t=it(a)}s=k.cssHooks[t]||k.cssHooks[a];if(n!==undefined){o=typeof n;if(o==="string"&&(r=pe.exec(n))&&r[1]){n=be(e,t,r);o="number"}if(n==null||n!==n){return}if(o==="number"&&!u){n+=r&&r[3]||(k.cssNumber[a]?"":"px")}if(!p.clearCloneStyle&&n===""&&t.indexOf("background")===0){l[t]="inherit"}if(!s||!("set"in s)||(n=s.set(e,n,i))!==undefined){if(u){l.setProperty(t,n)}else{l[t]=n}}}else{if(s&&"get"in s&&(r=s.get(e,false,i))!==undefined){return r}return l[t]}},css:function(e,t,n,i){var r,o,s,a=ie(t),u=Ge.test(t);if(!u){t=it(a)}s=k.cssHooks[t]||k.cssHooks[a];if(s&&"get"in s){r=s.get(e,true,n)}if(r===undefined){r=Qe(e,t,i)}if(r==="normal"&&t in st){r=st[t]}if(n===""||n){o=parseFloat(r);return n===true||isFinite(o)?o||0:r}return r}});k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n){return rt.test(k.css(e,"display"))&&(!e.getClientRects().length||!e.getBoundingClientRect().width)?Ve(e,ot,(function(){return lt(e,t,i)})):lt(e,t,i)}},set:function(e,n,i){var r,o=Xe(e),s=!p.scrollboxSize()&&o.position==="absolute",a=s||i,u=a&&k.css(e,"boxSizing",false,o)==="border-box",l=i?ut(e,t,i,u,o):0;if(u&&s){l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ut(e,t,"border",false,o)-.5)}if(l&&(r=pe.exec(n))&&(r[3]||"px")!=="px"){e.style[t]=n;n=k.css(e,t)}return at(e,n,l)}}}));k.cssHooks.marginLeft=Ye(p.reliableMarginLeft,(function(e,t){if(t){return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"}}));k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){var i=0,r={},o=typeof n==="string"?n.split(" "):[n];for(;i<4;i++){r[e+he[i]+t]=o[i]||o[i-2]||o[0]}return r}};if(e!=="margin"){k.cssHooks[e+t].set=at}}));k.fn.extend({css:function(e,t){return Z(this,(function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){i=Xe(e);r=t.length;for(;s<r;s++){o[t[s]]=k.css(e,t[s],false,i)}return o}return n!==undefined?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}});k.fn.delay=function(t,n){t=k.fx?k.fx.speeds[t]||t:t;n=n||"fx";return this.queue(n,(function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}}))};(function(){var e=g.createElement("input"),t=g.createElement("select"),n=t.appendChild(g.createElement("option"));e.type="checkbox";p.checkOn=e.value!=="";p.optSelected=n.selected;e=g.createElement("input");e.value="t";e.type="radio";p.radioValue=e.value==="t"})();var ct,ft=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return Z(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}});k.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(o===3||o===8||o===2){return}if(typeof e.getAttribute==="undefined"){return k.prop(e,t,n)}if(o!==1||!k.isXMLDoc(e)){r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ct:undefined)}if(n!==undefined){if(n===null){k.removeAttr(e,t);return}if(r&&"set"in r&&(i=r.set(e,n,t))!==undefined){return i}e.setAttribute(t,n+"");return n}if(r&&"get"in r&&(i=r.get(e,t))!==null){return i}i=k.find.attr(e,t);return i==null?undefined:i},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&t==="radio"&&E(e,"input")){var n=e.value;e.setAttribute("type",t);if(n){e.value=n}return t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match($);if(r&&e.nodeType===1){while(n=r[i++]){e.removeAttribute(n)}}}});ct={set:function(e,t,n){if(t===false){k.removeAttr(e,n)}else{e.setAttribute(n,n)}return n}};k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||k.find.attr;ft[t]=function(e,t,i){var r,o,s=t.toLowerCase();if(!i){o=ft[s];ft[s]=r;r=n(e,t,i)!=null?s:null;ft[s]=o}return r}}));var dt=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;k.fn.extend({prop:function(e,t){return Z(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}});k.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(o===3||o===8||o===2){return}if(o!==1||!k.isXMLDoc(e)){t=k.propFix[t]||t;r=k.propHooks[t]}if(n!==undefined){if(r&&"set"in r&&(i=r.set(e,n,t))!==undefined){return i}return e[t]=n}if(r&&"get"in r&&(i=r.get(e,t))!==null){return i}return e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");if(t){return parseInt(t,10)}if(dt.test(e.nodeName)||pt.test(e.nodeName)&&e.href){return 0}return-1}}},propFix:{for:"htmlFor",class:"className"}});if(!p.optSelected){k.propHooks.selected={get:function(e){return null},set:function(e){}}}k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this}));function ht(e){var t=e.match($)||[];return t.join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){if(Array.isArray(e)){return e}if(typeof e==="string"){return e.match($)||[]}return[]}k.fn.extend({addClass:function(e){var t,n,i,r,o,s;if(h(e)){return this.each((function(t){k(this).addClass(e.call(this,t,vt(this)))}))}t=gt(e);if(t.length){return this.each((function(){i=vt(this);n=this.nodeType===1&&" "+ht(i)+" ";if(n){for(o=0;o<t.length;o++){r=t[o];if(n.indexOf(" "+r+" ")<0){n+=r+" "}}s=ht(n);if(i!==s){this.setAttribute("class",s)}}}))}return this},removeClass:function(e){var t,n,i,r,o,s;if(h(e)){return this.each((function(t){k(this).removeClass(e.call(this,t,vt(this)))}))}if(!arguments.length){return this.attr("class","")}t=gt(e);if(t.length){return this.each((function(){i=vt(this);n=this.nodeType===1&&" "+ht(i)+" ";if(n){for(o=0;o<t.length;o++){r=t[o];while(n.indexOf(" "+r+" ")>-1){n=n.replace(" "+r+" "," ")}}s=ht(n);if(i!==s){this.setAttribute("class",s)}}}))}return this},toggleClass:function(e,t){var n,i,r,o,s=typeof e,a=s==="string"||Array.isArray(e);if(h(e)){return this.each((function(n){k(this).toggleClass(e.call(this,n,vt(this),t),t)}))}if(typeof t==="boolean"&&a){return t?this.addClass(e):this.removeClass(e)}n=gt(e);return this.each((function(){if(a){o=k(this);for(r=0;r<n.length;r++){i=n[r];if(o.hasClass(i)){o.removeClass(i)}else{o.addClass(i)}}}else if(e===undefined||s==="boolean"){i=vt(this);if(i){se.set(this,"__className__",i)}if(this.setAttribute){this.setAttribute("class",i||e===false?"":se.get(this,"__className__")||"")}}}))},hasClass:function(e){var t,n,i=0;t=" "+e+" ";while(n=this[i++]){if(n.nodeType===1&&(" "+ht(vt(n))+" ").indexOf(t)>-1){return true}}return false}});var mt=/\r/g;k.fn.extend({val:function(e){var t,n,i,r=this[0];if(!arguments.length){if(r){t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()];if(t&&"get"in t&&(n=t.get(r,"value"))!==undefined){return n}n=r.value;if(typeof n==="string"){return n.replace(mt,"")}return n==null?"":n}return}i=h(e);return this.each((function(n){var r;if(this.nodeType!==1){return}if(i){r=e.call(this,n,k(this).val())}else{r=e}if(r==null){r=""}else if(typeof r==="number"){r+=""}else if(Array.isArray(r)){r=k.map(r,(function(e){return e==null?"":e+""}))}t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,r,"value")===undefined){this.value=r}}))}});k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return t!=null?t:ht(k.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s=e.type==="select-one",a=s?null:[],u=s?o+1:r.length;if(o<0){i=u}else{i=s?o:0}for(;i<u;i++){n=r[i];if((n.selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){t=k(n).val();if(s){return t}a.push(t)}}return a},set:function(e,t){var n,i,r=e.options,o=k.makeArray(t),s=r.length;while(s--){i=r[s];if(i.selected=k.inArray(k.valHooks.option.get(i),o)>-1){n=true}}if(!n){e.selectedIndex=-1}return o}}}});k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t)){return e.checked=k.inArray(k(e).val(),t)>-1}}};if(!p.checkOn){k.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value}}}));k.parseXML=function(t){var n,i;if(!t||typeof t!=="string"){return null}try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}i=n&&n.getElementsByTagName("parsererror")[0];if(!n||i){k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t))}return n};var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(t,n,i,r){var o,s,a,u,l,f,d,p,m=[i||g],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];s=p=a=i=i||g;if(i.nodeType===3||i.nodeType===8){return}if(yt.test(y+k.event.triggered)){return}if(y.indexOf(".")>-1){b=y.split(".");y=b.shift();b.sort()}l=y.indexOf(":")<0&&"on"+y;t=t[k.expando]?t:new k.Event(y,typeof t==="object"&&t);t.isTrigger=r?2:3;t.namespace=b.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=undefined;if(!t.target){t.target=i}n=n==null?[t]:k.makeArray(n,[t]);d=k.event.special[y]||{};if(!r&&d.trigger&&d.trigger.apply(i,n)===false){return}if(!r&&!d.noBubble&&!v(i)){u=d.delegateType||y;if(!yt.test(u+y)){s=s.parentNode}for(;s;s=s.parentNode){m.push(s);a=s}if(a===(i.ownerDocument||g)){m.push(a.defaultView||a.parentWindow||e)}}o=0;while((s=m[o++])&&!t.isPropagationStopped()){p=s;t.type=o>1?u:d.bindType||y;f=(se.get(s,"events")||Object.create(null))[t.type]&&se.get(s,"handle");if(f){f.apply(s,n)}f=l&&s[l];if(f&&f.apply&&re(s)){t.result=f.apply(s,n);if(t.result===false){t.preventDefault()}}}t.type=y;if(!r&&!t.isDefaultPrevented()){if((!d._default||d._default.apply(m.pop(),n)===false)&&re(i)){if(l&&h(i[y])&&!v(i)){a=i[l];if(a){i[l]=null}k.event.triggered=y;if(t.isPropagationStopped()){p.addEventListener(y,bt)}i[y]();if(t.isPropagationStopped()){p.removeEventListener(y,bt)}k.event.triggered=undefined;if(a){i[l]=a}}}}return t.result},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:true});k.event.trigger(i,null,t)}});k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n){return k.event.trigger(e,t,n,true)}}});var wt=/\[\]$/,xt=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var r;if(Array.isArray(t)){k.each(t,(function(t,r){if(n||wt.test(e)){i(e,r)}else{Et(e+"["+(typeof r==="object"&&r!=null?t:"")+"]",r,n,i)}}))}else if(!n&&b(t)==="object"){for(r in t){Et(e+"["+r+"]",t[r],n,i)}}else{i(e,t)}}k.param=function(e,t){var n,i=[],r=function(e,t){var n=h(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(n==null?"":n)};if(e==null){return""}if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e)){k.each(e,(function(){r(this.name,this.value)}))}else{for(n in e){Et(n,e[n],t,r)}}return i.join("&")};k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Ct.test(this.nodeName)&&!kt.test(e)&&(this.checked||!Ce.test(e))})).map((function(e,t){var n=k(this).val();if(n==null){return null}if(Array.isArray(n)){return k.map(n,(function(e){return{name:t.name,value:e.replace(xt,"\r\n")}}))}return{name:t.name,value:n.replace(xt,"\r\n")}})).get()}});k.fn.extend({wrapAll:function(e){var t;if(this[0]){if(h(e)){e=e.call(this[0])}t=k(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map((function(){var e=this;while(e.firstElementChild){e=e.firstElementChild}return e})).append(this)}return this},wrapInner:function(e){if(h(e)){return this.each((function(t){k(this).wrapInner(e.call(this,t))}))}return this.each((function(){var t=k(this),n=t.contents();if(n.length){n.wrapAll(e)}else{t.append(e)}}))},wrap:function(e){var t=h(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)}));return this}});k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)};k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};p.createHTMLDocument=function(){var e=g.implementation.createHTMLDocument("").body;e.innerHTML="<form></form><form></form>";return e.childNodes.length===2}();k.parseHTML=function(e,t,n){if(typeof e!=="string"){return[]}if(typeof t==="boolean"){n=t;t=false}var i,r,o;if(!t){if(p.createHTMLDocument){t=g.implementation.createHTMLDocument("");i=t.createElement("base");i.href=g.location.href;t.head.appendChild(i)}else{t=g}}r=F.exec(e);o=!n&&[];if(r){return[t.createElement(r[1])]}r=Ne([e],t,o);if(o&&o.length){k(o).remove()}return k.merge([],r.childNodes)};k.offset={setOffset:function(e,t,n){var i,r,o,s,a,u,l,c=k.css(e,"position"),f=k(e),d={};if(c==="static"){e.style.position="relative"}a=f.offset();o=k.css(e,"top");u=k.css(e,"left");l=(c==="absolute"||c==="fixed")&&(o+u).indexOf("auto")>-1;if(l){i=f.position();s=i.top;r=i.left}else{s=parseFloat(o)||0;r=parseFloat(u)||0}if(h(t)){t=t.call(e,n,k.extend({},a))}if(t.top!=null){d.top=t.top-a.top+s}if(t.left!=null){d.left=t.left-a.left+r}if("using"in t){t.using.call(e,d)}else{f.css(d)}}};k.fn.extend({offset:function(e){if(arguments.length){return e===undefined?this:this.each((function(t){k.offset.setOffset(this,e,t)}))}var t,n,i=this[0];if(!i){return}if(!i.getClientRects().length){return{top:0,left:0}}t=i.getBoundingClientRect();n=i.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},position:function(){if(!this[0]){return}var e,t,n,i=this[0],r={top:0,left:0};if(k.css(i,"position")==="fixed"){t=i.getBoundingClientRect()}else{t=this.offset();n=i.ownerDocument;e=i.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&k.css(e,"position")==="static"){e=e.parentNode}if(e&&e!==i&&e.nodeType===1){r=k(e).offset();r.top+=k.css(e,"borderTopWidth",true);r.left+=k.css(e,"borderLeftWidth",true)}}return{top:t.top-r.top-k.css(i,"marginTop",true),left:t.left-r.left-k.css(i,"marginLeft",true)}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&k.css(e,"position")==="static"){e=e.offsetParent}return e||ve}))}});k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return Z(this,(function(e,i,r){var o;if(v(e)){o=e}else if(e.nodeType===9){o=e.defaultView}if(r===undefined){return o?o[t]:e[i]}if(o){o.scrollTo(!n?r:o.pageXOffset,n?r:o.pageYOffset)}else{e[i]=r}}),e,i,arguments.length)}}));k.each(["top","left"],(function(e,t){k.cssHooks[t]=Ye(p.pixelPosition,(function(e,n){if(n){n=Qe(e,t);return Je.test(n)?k(e).position()[t]+"px":n}}))}));k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(r,o){var s=arguments.length&&(n||typeof r!=="boolean"),a=n||(r===true||o===true?"margin":"border");return Z(this,(function(t,n,r){var o;if(v(t)){return i.indexOf("outer")===0?t["inner"+e]:t.document.documentElement["client"+e]}if(t.nodeType===9){o=t.documentElement;return Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])}return r===undefined?k.css(t,n,a):k.style(t,n,r,a)}),t,s?r:undefined,s)}}))}));k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});k.each(("blur focus focusin focusout resize scroll click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup contextmenu").split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var St=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,o;if(typeof t==="string"){n=e[t];t=e;e=n}if(!h(e)){return undefined}i=r.call(arguments,2);o=function(){return e.apply(t||this,i.concat(r.call(arguments)))};o.guid=e.guid=e.guid||k.guid++;return o};k.holdReady=function(e){if(e){k.readyWait++}else{k.ready(true)}};k.isArray=Array.isArray;k.parseJSON=JSON.parse;k.nodeName=E;k.isFunction=h;k.isWindow=v;k.camelCase=ie;k.type=b;k.now=Date.now;k.isNumeric=function(e){var t=k.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))};k.trim=function(e){return e==null?"":(e+"").replace(St,"$1")};var Tt=e.jQuery,_t=e.$;k.noConflict=function(t){if(e.$===k){e.$=_t}if(t&&e.jQuery===k){e.jQuery=Tt}return k};if(typeof t==="undefined"){e.jQuery=e.$=k}return k}))}));var r=window.vertx||{};!function(e){e(SockJS)}((function(e){r.EventBus=function(t,n){var i=this;var o=new e(t,undefined,n);var s={};var a={};var u=r.EventBus.CONNECTING;var l=null;var c=null;if(n){c=n.vertxbus_ping_interval}if(!c){c=5e3}i.onopen=null;i.onclose=null;i.login=function(e,t,n){d("send","vertx.basicauthmanager.login",{username:e,password:t},(function(e){if(e.status==="ok"){i.sessionID=e.sessionID}if(n){delete e.sessionID;n(e)}}))};i.send=function(e,t,n){d("send",e,t,n)};i.publish=function(e,t){d("publish",e,t,null)};i.registerHandler=function(e,t){h("address","string",e);h("handler","function",t);p();var n=s[e];if(!n){n=[t];s[e]=n;var i={type:"register",address:e};o.send(JSON.stringify(i))}else{n[n.length]=t}};i.unregisterHandler=function(e,t){h("address","string",e);h("handler","function",t);p();var n=s[e];if(n){var i=n.indexOf(t);if(i!==-1)n.splice(i,1);if(n.length===0){var r={type:"unregister",address:e};o.send(JSON.stringify(r));delete s[e]}}};i.close=function(){p();u=r.EventBus.CLOSING;o.close()};i.readyState=function(){return u};o.onopen=function(){f();l=setInterval(f,c);u=r.EventBus.OPEN;if(i.onopen){i.onopen()}};o.onclose=function(){u=r.EventBus.CLOSED;if(l)clearInterval(l);if(i.onclose){i.onclose()}};o.onmessage=function(e){var t=e.data;var n=JSON.parse(t);var r=n.body;var o=n.replyAddress;var u=n.address;var l;if(o){l=function(e,t){i.send(o,e,t)}}var c=s[u];if(c){var f=c.slice(0);for(var d=0,p=f;d<p.length;d++){var h=p[d];h(r,l)}}else{var v=a[u];if(v){delete a[u];v(r,l)}}};function f(){var e={type:"ping"};o.send(JSON.stringify(e))}function d(e,t,n,r){h("address","string",t);h("replyHandler","function",r,true);p();var s={type:e,address:t,body:n};if(i.sessionID){s.sessionID=i.sessionID}if(r){var u=v();s.replyAddress=u;a[u]=r}var l=JSON.stringify(s);o.send(l)}function p(){if(u!==r.EventBus.OPEN){throw new Error("INVALID_STATE_ERR")}}function h(e,t,n,i){if(!i&&!n){throw new Error("Parameter "+e+" must be specified")}if(n&&typeof n!==t){throw new Error("Parameter "+e+" must be of type "+t)}}function v(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}};r.EventBus.CONNECTING=0;r.EventBus.OPEN=1;r.EventBus.CLOSING=2;r.EventBus.CLOSED=3;return r.EventBus}));(function(e){window.klpWidgetDev=function(t,n,i,o,s,a,u,l,c){var f=document.getElementsByTagName("header")[0];var d={attributes:true,childList:false,subtree:false};var p=function(n,i){for(var r=0,o=n;r<o.length;r++){var s=o[r];if(s.attributeName==="class"){if(e("header").hasClass("h-fixed-position")&&!e("header").hasClass("h-visible")){Ie().find(".klp-widget-authenticated-menu").css("display","none");Ie().find("#"+t).removeClass("bubble")}}}};var h=new MutationObserver(p);if(f){h.observe(f,d)}var v="klp-widget-keepalive",g="klp.widget.state",m="klp.widget.document.",y="NCTRL",b="post.ch",w=new RegExp(b+"$"),x=new RegExp(y+"=([^;]+)"),k,C,E=false,S,T,_,A,O={},N="UNREAD_NOTIFICATIONS",L=true,j,D="de",I="",P=(new Date).getTime(),R="16.01.00.01",F=0,M={de:{"sign-in":"Login","sign-out":"Logout","change-company":"Firma wählen","change-company-confirm-dialog":'Möchten Sie die aktuelle Firma wechseln? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Firma wählen</button>',"change-company-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Firma wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Benutzerkonto wechseln","change-account-confirm-dialog":'Möchten Sie in ein anderes Benutzerkonto wechseln? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Weiter</button>',"change-account-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Benutzerkonto wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"Meine Onlinedienste",notifications:"Meldungen","toggle-menu":"toggle-menu","no-links":"Keine Favoriten bei Onlinedienste","no-notifications":"Keine ungelesenen Meldungen","more-notifications":"Alle Meldungen","title-text-menu":"Meine Übersicht","title-text-links":"Meine Onlinedienste","title-text-notifications":"Nachrichten",userProfile:"Mein Profil",settings:"Einstellungen"},fr:{"sign-in":"Login","sign-out":"Logout","change-company":"Changer entreprise","change-company-confirm-dialog":'Voulez-vous quitter l\'entreprise actuelle? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Changer enterprise</button>.',"change-company-support-dialog":'Dans le Login-Support, la fonction changer entreprise n\'est pas disponible. Il faut quitter la session et puis démarrer un nouveau Login-Support avec un autre compte ou une société différente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',"change-account":"Changer de compte","change-account-confirm-dialog":'Vous souhaitez changer de compte utilisateur? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Continuer</button>',"change-account-support-dialog":'La fonction "Changer de compte" n\'est pas disponible dans le login de support client. Déconnectez-vous et démarrez le login de support client sur un autre compte utilisateur ou d\'entreprise. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',links:"Mes services en ligne",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"Pas de favoris","no-notifications":"Pas de notifications non lues","more-notifications":"Toutes les notifications","title-text-menu":"Mon compte","title-text-links":"Mes services en ligne","title-text-notifications":"Messages",userProfile:"Mon profil",settings:"Paramètres"},it:{"sign-in":"Login","sign-out":"Logout","change-company":"Cambia la ditta","change-company-confirm-dialog":'È sicuro di voler uscire dall\'attuale ditta? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Cambia la ditta</button>',"change-company-support-dialog":'Nell\'Assistenza clienti, il cambiamento di ditta non è disponibile. Bisogna prima eseguire un Logout, quindi avviare nuovamente l\'Assistenza clienti selezionando un utente o una ditta differente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Cambia account utente","change-account-confirm-dialog":'Desidera accedere con un altro account utente? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Avanti</button>',"change-account-support-dialog":'Nel login assistenza clienti non è disponibile la funzione "Modifica account utente". Si consiglia di effettuare il logout, quindi di riaccedere al login assistenza clienti tramite un nuovo account utente o una nuova ditta. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"I miei servizi online",notifications:"notifiche","toggle-menu":"toggle-menu","no-links":"Nessun preferito","no-notifications":"Nessuna notifica non letta","more-notifications":"Tutte le notifiche","title-text-menu":"Il mio riepilogo","title-text-links":"I miei servizi online","title-text-notifications":"Messaggi",userProfile:"Il mio profilo",settings:"Impostazioni"},en:{"sign-in":"Login","sign-out":"Logout","change-company":"Change company","change-company-confirm-dialog":'Would you like to sign-out from the current company? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Next</button>.',"change-company-support-dialog":'On Kunden-Supportlogin, the function Change company is not available. You have to SignOut and then start again a new Kunden-Supportlogin selecting a different account or company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Change user account","change-account-confirm-dialog":'Do you want to change to another user account? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Next</button>',"change-account-support-dialog":'The "Change user account" function is not available in the customer support login. Instead, log out and start the customer support login using a new user or new company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"My online services",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"No favorites","no-notifications":"No unread notifications","more-notifications":"All notifications","title-text-menu":"My overview","title-text-links":"My online services","title-text-notifications":"Inbox",userProfile:"My Profile",settings:"Settings"}},U={"sign-in":{"access-key":"i","tab-index":0},"sign-out":{"access-key":"o","tab-index":3},"toggle-menu":{"access-key":"m","tab-index":0},"change-company":{"access-key":"c","tab-index":2},"change-account":{"access-key":"c","tab-index":2},notifications:{"access-key":"n","tab-index":1},links:{"access-key":"l","tab-index":4}},q={audit:u.endPoint+"/v1/audit",keepalive:u.endPoint+"/v1/session/keepalive",subscribe:u.endPoint+"/v1/session/subscribe",eventbus:u.endPoint+"/eventbus"},W={logoutTargetURL:"",keepAlive:true,keepAliveListeningEvents:"click touchstart keydown",keepAliveOnInit:true,keepAliveInterval:9,showLinks:true,tabIndex:-1,accessKeys:false,notificationsNrToLoad:5,debug:false};if(a!==undefined){D=a.toLowerCase()}var B=function(e){return new URL(e)};var H=B(re());I=H.origin;var z=[{description:M[D].userProfile,url:I+"/selfadmin/?lang="+D,iconclass:"widget_icon_profile"}];var $=I+"/selfadmin/messages/?lang="+D;if(l!==undefined){W=Object.assign({},W,l)}function J(){try{return"sessionStorage"in window&&window.sessionStorage!==null}catch(e){X("No local storage available");return false}}function G(){var e=new Date;return e.getFullYear()+"-"+e.getMonth()+1+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+","+e.getMilliseconds()}function X(e){if(W.debug&&window.console&&window.console.log){console.log("["+G()+"] - KLP.WIDGET - "+e)}}function V(e){var t=JSON.stringify({adr:C,evt:e});if(e.adt){X("Sending auditing event: "+t);fetch(q.audit,{method:"POST",credentials:"include",mode:"cors",body:t}).catch((function(e){if(e)console.error(e)}))}else{X("Auditing disabled: "+t)}}function K(e,t){if(W.debug&&window.console&&window.console.log){X("Method "+e+" executed on "+t+" ms")}}function Q(){return Math.floor(Math.random()*999999999+1)}function Y(e){return M[D][e]}function Z(e){if(W.accessKeys===false||U[e]["access-key"]==null){return""}return'accesskey="'+U[e]["access-key"]+'"'}function ee(e){if(W.tabIndex<0){return 0}return U[e]["tab-index"]+W.tabIndex}function te(e,t){if(t===undefined){return e}if(e.indexOf("?")===-1){return e+"?"+t}else{return e+"&"+t}}function ne(){return te(o,ie())}function ie(){var t="";e.each({app:n,service:i,lang:D},(function(e,n){if(o.toLowerCase().indexOf(e.toLowerCase())===-1){if(t.length>0){t+="&"}t+=e+"="+n}}));return t.length>0?t:undefined}function re(){var e="klp";var t=false;return te(u.logoutURL,"app="+n+"&lang="+D+"&service="+e+"&inIframe="+t+"&logoutTargetURL="+W.logoutTargetURL)}function oe(e){X("Clearing cache and sessionData before starting the logout process");S=undefined;pe();X("Proceeding to logoutUrl with following path "+e);window.location.href=e}function se(){Ie().find("#"+t+" #klp-widget-authenticated-menu-changecompany").on("click touch",(function(e){e.preventDefault();Ie().find("#"+t+" #klp-widget-authenticated-menu-changecompany").focus();ae();return false}))}function ae(){var e;var n;if(S===null||S===void 0?void 0:S.support){if(Me()){e=Y("change-account-support-dialog")}else{e=Y("change-company-support-dialog")}n=re()}else{if(Me()){e=Y("change-account-confirm-dialog")}else{e=Y("change-company-confirm-dialog")}n=ue()}if(Ie().find("#"+t+" #klp-widget-authenticated-changecompanydialog").length===0){var i='<div id="changeAccountModal" class="modal"><div class="modal-content"><div class="modal-text-container row"><div class="col-12 text-align-center"><i class="pi pi-2086"></i></div><span class="close">&times;</span><div class="col-1"></div><div class="col-10 text-align-center"><p class="modal-text">'+e+"</div></div></div>";Ie().find("#"+t+" .klp-widget-authenticated").append(i);var r=Ie().find("#changeAccountModal");if(r.length&&r.length>=1){r=r[0]}r.style.display="table";var o=Ie().find("#changeAccountModal .close")[0];o.onclick=function(){r.parentElement.removeChild(r)};window.onclick=function(e){if(e.target===r){r.parentElement.removeChild(r)}};Ie().find("#klp-widget-authenticated-dochangecompany").on("click touch",(function(e){e.preventDefault();Ie().find("#"+t+" #klp-widget-authenticated-dochangecompany").focus();oe(n);return false}))}}function ue(){return re()+"&changecompany=true"}function le(){L=true}function ce(){var e=fe();if(e){C=e.address;E=true;S=e.sessionData;rt();if(ve()){Be(we(N))}}}function fe(){if(J()){var e=sessionStorage.getItem(g);if(e){try{var t=JSON.parse(e);if(t.ttl>(new Date).getTime()&&he(t.sessionData)){X("Valid persisted state loaded: "+e);return t}else{X("Persisted state expired or invalid");pe();ye("all","sub")}}catch(e){X("Persisted state was invalid due to error '"+e+"'");pe();ye("all","sub")}}else{X("No persisted state found");pe();ye("all","sub")}}else{X("State not loaded because HTML storage not supported")}return null}function de(e){if(J()){sessionStorage.setItem(g,'{"ttl": '+((new Date).getTime()+e)+',"sessionData": '+JSON.stringify(S)+', "address":"'+C+'"}');X("State persisted");ye("hash",encodeURIComponent(ge(S)))}else{X("State not persisted because HTML storage not supported")}}function pe(){if(J()){sessionStorage.removeItem(g);X("Persisted state removed");be()}else{X("Persisted state not removed because HTML storage not supported")}}function he(e){var t=ge(e).toString();var n=me("hash");if(t===n){return true}if(n===undefined&&!ve()){X("Cache validated because on a different host=["+window.location.hostname+"] than control cookie domain=["+b+"]");return true}X("PersistedData are invalid [hashPersistedData="+t+",control cookie="+n+"]");return false}function ve(){return w.test(window.location.hostname)}function ge(e){e=JSON.stringify(e);var t=0,n,i,r;if(e.length===0)return t;for(n=0,r=e.length;n<r;n++){i=e.charCodeAt(n);t=(t<<5)-t+i;t|=0}return t}function me(e){var t=x.exec(document.cookie);if(t!=null){var n=decodeURIComponent(t[1]).split(":");switch(e){case"hash":if(n[0]!=null)return n[0];break;case"keepalive":if(n[1]!=null)return n[1];break;default:return decodeURIComponent(t[1])}return null}else{X("Control cookie not found");return null}}function ye(e,t){var n="; SameSite=None; Secure";switch(e){case"hash":document.cookie=y+"="+t+":"+me("keepalive")+"; Path=/; domain="+b+n;break;case"keepalive":document.cookie=y+"="+me("hash")+":"+t+"; Path=/; domain="+b+n;break;default:document.cookie=y+"="+t+"; Path=/; domain="+b+n;break}}function be(){if(E){document.cookie=y+"="+"sub"+"; Path=/; domain="+b;X("Control cookie set to sub")}else{document.cookie=y+"="+""+"; Path=/; Expires=Wed, 01 Apr 2014 01:00:00 GMT; domain="+b;X("Control cookie removed")}}function we(t){var n=m+t;if(J()){var i=sessionStorage.getItem(n);if(i){var r=e.parseJSON(i);X("Document "+t+" has been read from cache with value "+r);return r}}return null}function xe(e,t){var n=m+t;if(J()){sessionStorage.setItem(n,JSON.stringify(e));X("Document "+t+" has been persisted on cached with value "+JSON.stringify(e))}}function ke(){Ce(N)}function Ce(e){var t=m+e;if(J()){sessionStorage.removeItem(t);X("Document "+e+" has been removed from cache")}}function Ee(){if(W.keepAliveListeningEvents.length>0){e(document).on(W.keepAliveListeningEvents,le)}}function Se(){if(W.keepAliveListeningEvents.length>0){e(document).off(W.keepAliveListeningEvents,le)}}function Te(){if(L){L=false;Oe()}else{X("Keepalive call canceled due to user inactivity")}}function _e(){if(W.keepAlive&&j===undefined){Ee();j=window.setInterval(Te,W.keepAliveInterval*60*1e3)}}function Ae(){if(W.keepAlive){Se();if(j){window.clearInterval(j);j=undefined}}}function Oe(){if($e()){var e="<img src='"+u.keepAliveURL+"/?"+Q()+"'><img src='"+q.keepalive+"?"+Q()+"'>";Ie().find("#"+v).html(e);if(typeof _=="function"){_()}ye("keepalive",(new Date).getTime())}}function Ne(){var e=(new Date).getTime();var t=me("keepalive");if(isNaN(t)||e-parseInt(t)>W.keepAliveInterval*60*1e3){X("Running keepAliveSessionsOnInit");Oe();return}X("keepAliveSessionsOnInit not running due to [now="+e+",last="+t+",interval="+W.keepAliveInterval*60*1e3)}function Le(){X("Preparing for communication with iframe content");function e(e){var t=["post.ch","postauto.ch","postfinance.ch"];var n=new URL(e.origin);if(t.includes(n.host)&&e.data==="syncWidget"){X("PostMessage syncWidget received");tt()}}if(window.addEventListener){window.addEventListener("message",e)}else{window.attachEvent("onmessage",e)}}function je(){if(P){X("Widget shows up in "+((new Date).getTime()-P)+" [msec]");P=undefined}}function De(e,t){Ie().find(e).append('<div id="'+t+'" style="display:none;"></div>')}function Ie(){return e(document.querySelector("swisspost-internet-header").shadowRoot.querySelector("post-klp-login-widget").shadowRoot.querySelector(".widget-wrapper"))}function Pe(){Ie().find("#"+t).addClass("anonymous");Ie().find("#"+t).attr("data-custom-focus-id","klp-widget");Ie().find("#"+t).html('<div class="klp-widget-anonymous"><div class="klp-widget-anonymous__wrapper">'+"<a "+Z("sign-in")+' title="'+Y("sign-in")+'" href="'+ne()+'" data-custom-focus-target="klp-widget" data-custom-focus-direction="parent" role="button"><span class="klp-widget-anonymous__text">'+Y("sign-in")+'</span><svg class="ppm-svg-icon ppm-main-navigation__login-icon" focusable="false"><use xlink:href="#2064_arrow-enter"></use></svg></a>'+"</div></div>");Ie().find("#"+t).on("click touch",(function(e){e.preventDefault();document.location.href=ne();return false}))}function Re(){Ie().find("#"+t).off("click touch");var e="",n="";if(S.userType==="B2C"){n="klp-widget-authenticated-session-name u_var_centered"}else{e=S.company;n="klp-widget-authenticated-session-name"}var i="klp-widget-authenticated";if(S.support){i+=" klp-widget-support"}Ie().find("#"+t).html('<div class="'+i+'">'+'<div class="klp-widget-authenticated-session klp-widget-menu-close">'+'<a href="about:blank" role="button" class="klp-widget-authenticated-session-link klp-widget__user" title="'+Y("title-text-menu")+'" tabindex="'+ee("toggle-menu")+'" '+Z("toggle-menu")+' data-dropdown="klp-widget-authenticated-menu" aria-expanded="false" aria-controls="authenticated-menu">'+'<div class="'+n+'">'+S.name+"&nbsp;"+S.surname+"</div>"+'<span class="initials-mobile">'+S.name.substring(0,1)+S.surname.substring(0,1)+"</span>"+'<span class="notification-number"></span>'+"</a>"+Ue(n,e,S)+"</div>"+"</div>");Ie().find(".notification-number").css("visibility","hidden");Ie().find(".notification-number-detail").css("visibility","hidden");De("#"+t,v);Ie().find("#"+t+" .klp-widget__user").on("click touch",(function(e){e.preventDefault();Ie().find("#"+t+" .klp-widget__user").focus();He();ze();return false}));Ie().find("#"+t+" #klp-widget-authenticated-menu-logout").on("click touch",(function(e){e.preventDefault();Ie().find("#"+t+" #klp-widget-authenticated-menu-logout").focus();oe(re());return false}));if(Fe()||Me()){se()}ut()}function Fe(){return S.userType==="B2B"&&S.canChangeCompany&&S.changeUserAndProfile==null||S.changeUserAndProfile!=null&&S.changeUserAndProfile==="profile"}function Me(){return S.changeUserAndProfile!=null&&S.changeUserAndProfile==="userAndProfile"}function Ue(t,n,i){var r="";var o="name";var s="info";if(z!==undefined){if(t.indexOf("centered")!==-1){o="nameCentered"}if(n.length===0){s="infoHidden"}r+='<li class="name-and-surname">'+'<div class="initials-circle">'+'<div class="initials-container">'+"<div>"+i.name.substring(0,1)+i.surname.substring(0,1)+"</div>"+"</div>"+"</div>"+'<div class="nameAndInfoWrapper"><span class="'+o+'">'+i.name+"&nbsp;"+i.surname+"</span>"+'<span class="'+s+'">'+n+"</span></div>"+"</li>";e.each(z,(function(e,t){r+="<li>"+'<a class="notification-link" title="'+t.description+'" href="'+t.url+'"><div class="'+t.iconclass+'"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+t.description+"</span></div></a>"+"</li>"}));r+="<li>"+'<a class="notification-link" title="'+Y("title-text-notifications")+'" href="'+$+'"><div class="widget_icon_notification" aria-hidden></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Y("title-text-notifications")+'</span><span class="notification-number-detail"></span></div></a>'+"</li>"}if(i.userType==="B2C"){var a={dev01:"https://serviceint1.post.ch/kvm/app/ui",dev02:"https://serviceint1.post.ch/kvm/app/ui",devs1:"https://serviceint1.post.ch/kvm/app/ui",test:"https://serviceint1.post.ch/kvm/app/ui",int01:"https://serviceint1.post.ch/kvm/app/ui",int02:"https://serviceint2.post.ch/kvm/app/ui",prod:"https://service.post.ch/kvm/app/ui"};var u="".concat(a[c],"/settings");r+='\n <li>\n <a class="notification-link" href="'.concat(u,'">\n <div class="widget_icon_settings" aria-hidden></div>\n <div class="linkContainer">\n <span class="klp-widget-notification-link-text">').concat(M[D].settings,"</span>\n </div>\n </a>\n </li>\n ")}var l="";if(Fe()){l="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+ee("change-company")+'" '+Z("change-company")+' href="about:blank" role="button" title="'+Y("change-company")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Y("change-company")+"</span></div></a>"+"</li>"}else if(Me()){l="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+ee("change-account")+'" '+Z("change-company")+' href="about:blank" role="button" title="'+Y("change-account")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Y("change-account")+"</span></div></a>"+"</li>"}return'<div class="klp-widget-authenticated-menu" id="authenticated-menu" data-dropdown-toggler="klp-widget__user" style="display: none">'+"<ul>"+r+l+"<li>"+'<a id="klp-widget-authenticated-menu-logout" class="notification-link" tabindex="'+ee("sign-out")+'" '+Z("sign-out")+' title="'+Y("sign-out")+'" href="about:blank" role="button"><div class="widget_icon_logout"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Y("sign-out")+"</span></div></a>"+"</li>"+"</ul>"+"</div>"}function qe(e,t){switch(t){case N:Be(e);xe(e,N);break;default:X("Unknown documentType received: "+t)}if(typeof O[t]=="function"){O[t](e)}}function We(e){switch(e){case N:Ce(N);break;default:X("Unknown documentType received: "+e)}if(typeof O[e]=="function"){O[e](undefined)}}function Be(t){if(t!=null&&e(".notification-number").text()!==t.unreadNotifications){F=t.unreadNotifications;if(F===0){e(".notification-number").css("visibility","hidden")}else{e(".notification-number").css("visibility","visible")}}}function He(){st(Ie().find("#"+t+" .klp-widget-authenticated-menu"))}function ze(){if(F!==0){if(F>99){Ie().find(".notification-number-detail").css("visibility","visible").text("99+")}else{Ie().find(".notification-number-detail").css("visibility","visible").text(F)}}else{Ie().find(".notification-number-detail").css("visibility","hidden")}}function $e(){return typeof S!=="undefined"}function Je(){if(!$e()){return"NONE"}return S.userType}function Ge(){if(!$e()){return"NONE"}return S.authLevel}function Xe(e){if(e!==undefined){o=e;rt();X("Widget appLoginURL has been replaced with "+o)}}function Ve(t){if(t!==undefined){W=e.extend(W,t);rt()}X("Widget has been updated")}function Ke(e,t,n){S=e;rt();_e();de(t);if(n&&typeof T=="function"){T();X("loginCallback has been called: "+T)}}function Qe(){S=undefined;C=undefined;pe();ke();rt();Ae();if(typeof A=="function"){A()}}function Ye(){if(k){k.registerHandler(C,(function(e,t){Ze(e)}))}}function Ze(e){X("Message received: "+JSON.stringify(e));V(e);E=false;switch(e.typ){case"ukn":if(e.sub){E=true;Qe();tt()}else{Qe()}break;case"sub":C=e.adr;Ke(e.data,e.ttl,false);nt();break;case"hi":Ke(e.data,e.ttl,true);Ce(N);break;case"bye":Qe();break;case"doc":qe(e.doc,e.doctyp);break;case"rem":We(e.doctyp);break;default:X("Unknown event received: "+e.typ);Qe();break}}function et(){if(ve()){return null!=me()}else{return true}}function tt(){if(!C){if(et()){X("Subscribing to get an address");var e=(new Date).getTime();fetch(q.subscribe,{method:"GET",credentials:"include",mode:"cors"}).then((function(e){return e.json()})).then((function(e){return Ze(e)})).catch((function(e){X("Failed to subscribe: "+e.message);Qe();rt()}));K("subscribe()",(new Date).getTime()-e)}else{X("Control cookie not found, skipping subscription");rt()}}else{X("Address available, skipping subscription");nt()}}function nt(){if(!k){k=new r.EventBus(q.eventbus,{debug:W.debug,devel:W.debug});k.onopen=function(){X("EventBus opened");Ye();e(window).on("beforeunload",it)};k.onclose=function(){X("EventBus closed");X("Communication closed with retrySubscribeOnFail="+E+". Retrying subscribe");k=null;e(window).off("beforeunload",it);if(E){E=false;C=undefined;tt()}}}}function it(){if(k){k.close()}}function rt(){if(typeof S!=="undefined"){Re()}else{Pe()}document.dispatchEvent(new CustomEvent("wepploginwidget_widget_ready"));je()}function ot(){ce();tt();if(W.keepAliveOnInit&&$e()){Ne()}Le()}function st(n){if(n.is(":visible")){Ie().find("#"+t).removeClass("bubble");at();return}at();Ie().find("."+n.attr("data-dropdown-toggler")).attr("aria-expanded",true);Ie().find("#"+t).addClass("bubble");n.show();e(document).on("click",at);if(n.hasClass("klp-widget-authenticated-menu")){n.parent().removeClass("klp-widget-menu-close").addClass("klp-widget-menu-open")}}function at(e){if(e!=null){if(Ie().find(e.target).parents("#"+t).length>0){return}}Ie().find(document).off("click",at);Ie().find("#"+t).removeClass("bubble");Ie().find("#"+t+" .klp-widget-authenticated-menu").hide().parent().removeClass("klp-widget-menu-open").addClass("klp-widget-menu-close");Ie().find("."+Ie().find("#"+t+" .klp-widget-authenticated-menu").attr("data-dropdown-toggler")).attr("aria-expanded",false)}function ut(){Ie().find(".klp-widget__user").on("keydown",(function(e){if(e.which<37||e.which>40){return}e.preventDefault();var t=Ie().find(this).parent();var n=Ie().find("."+Ie().find(this).attr("data-dropdown"));switch(e.which){case 37:if(t.prev().length){t.prev().find("a").focus()}if(n.is(":visible")){Ie().find(this).click()}break;case 38:if(n.is(":visible")){Ie().find(this).click()}break;case 39:if(t.next().length){t.next().find("a").focus()}if(n.is(":visible")){Ie().find(this).click()}break;case 40:if(!n.is(":visible")){Ie().find(this).click()}n.find("li:first a").focus();break}}));Ie().find(".klp-widget-authenticated-menu").on("keydown","a",(function(e){if(e.which<37||e.which>40){return}e.preventDefault();var t=Ie().find(this).parent();var n=Ie().find("."+Ie().find(this).parents("div").first().attr("data-dropdown-toggler"));switch(e.which){case 37:case 38:if(t.prev("li").length>0){t.prev("li").find("a").focus()}else{n.click().focus()}break;case 39:case 40:if(t.next("li").length>0){t.next("li").find("a").focus()}break}}));e("body").on("keydown",(function(e){if(e.which!==27){return}at()}))}ot();return{keepAliveSessions:function(){Oe()},isUserAuthenticated:function(){return $e()},getUserType:function(){return Je()},getCurrentAuthLevel:function(){return Ge()},changeAppLoginURL:function(e){Xe(e)},updateWidget:function(e){Ve(e)},registerLoginCallback:function(e){X("Login callback has been registered");T=e},unregisterLoginCallback:function(){X("Login callback has been un-registered");T=undefined},registerKeepAliveCallback:function(e){X("KeepAlive callback has been registered");_=e},unregisterKeepAliveCallback:function(){X("KeepAlive callback has been un-registered");_=undefined},registerLogoutCallback:function(e){X("Logout callback has been registered");A=e},unregisterLogoutCallback:function(){X("Logout callback has been un-registered");A=undefined},registerDocumentCallback:function(e,t){X("Document callback for documentType "+e+" has been registered");O[e]=t},unregisterDocumentCallback:function(e){X("Document callback for documentType "+e+" has been un-registered");O[e]=undefined},version:function(){return R},setDebug:function(e){W.debug=e}}}})(i);var o=e("initializeKLPLoginWidget",(function(e,t){if(!t){return}try{window.OPPklpWidget=window.klpWidgetDev(e,t.applicationId,t.serviceId,t.appLoginUrl,null,t.currentLang,t.platform,t.options,t.environment)}catch(e){console.error(e)}}))}}}));
13
- //# sourceMappingURL=p-6426cae8.system.js.map