j1-template 2022.0.1 → 2022.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/blocks/ads/ad.html +14 -14
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +3 -13
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +4 -5
- data/_includes/themes/j1/modules/navigator/generator.html +3 -3
- data/_includes/themes/j1/modules/search/docsearch.html +1 -1
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +4 -4
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +2 -2
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
- data/_includes/themes/j1/procedures/posts/pager.proc +2 -2
- data/_layouts/default.html +3 -11
- data/assets/data/authclient.html +11 -11
- data/assets/data/cookieconsent.html +8 -8
- data/assets/data/gallery_customizer.html +4 -4
- data/assets/data/menu.html +13 -13
- data/assets/data/mmenu.html +2 -2
- data/assets/data/private.json +1 -5
- data/assets/data/quicklinks.html +62 -47
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/themes.bootswatch.json +2 -2
- data/assets/data/themes.json +4 -4
- data/assets/data/translator.html +8 -8
- data/assets/themes/j1/adapter/js/clipboard.js +1 -1
- data/assets/themes/j1/adapter/js/cookieConsent.js +18 -13
- data/assets/themes/j1/adapter/js/j1.js +23 -23
- data/assets/themes/j1/adapter/js/navigator.js +3 -3
- data/assets/themes/j1/adapter/js/themer.js +13 -4
- data/assets/themes/j1/adapter/js/translator.js +10 -6
- data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.css +0 -0
- data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.min.css +0 -0
- data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.css +326 -18
- data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +143 -65
- data/assets/themes/j1/core/js/template.min.js +5 -5
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/bmd/js/bmd.js +3 -3
- data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
- data/assets/themes/j1/modules/cryptoJS/js/aes.js +35 -0
- data/assets/themes/j1/modules/cryptoJS/js/aes.min.js +35 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-md5.js +21 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-ripemd160.js +31 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha1.js +17 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha224.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha256.js +18 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha3.js +21 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha384.js +27 -0
- data/assets/themes/j1/modules/cryptoJS/js/hmac-sha512.js +25 -0
- data/assets/themes/j1/modules/cryptoJS/js/md5.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/pbkdf2.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/rabbit-legacy.js +36 -0
- data/assets/themes/j1/modules/cryptoJS/js/rabbit.js +36 -0
- data/assets/themes/j1/modules/cryptoJS/js/rc4.js +33 -0
- data/assets/themes/j1/modules/cryptoJS/js/ripemd160.js +29 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha1.js +15 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha224.js +17 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha256.js +16 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha3.js +19 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha384.js +25 -0
- data/assets/themes/j1/modules/cryptoJS/js/sha512.js +23 -0
- data/assets/themes/j1/modules/cryptoJS/js/tripledes.js +51 -0
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +460 -0
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +379 -353
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
- data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js +93 -1
- data/assets/themes/j1/modules/materialize/js/autocomplete.js +1 -1
- data/assets/themes/j1/modules/materialize/js/bin/materialize.js +4 -4
- data/assets/themes/j1/modules/materialize/js/bin/materialize.min.js +1 -1
- data/assets/themes/j1/modules/materialize/js/global.js +1 -1
- data/assets/themes/j1/modules/materialize/js/select.js +1 -1
- data/assets/themes/j1/modules/materialize/js/tapTarget.cash.js +1 -1
- data/assets/themes/j1/modules/scroller/js/scroller.js +6 -6
- data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +2 -2
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
- data/exe/j1 +6 -7
- data/lib/j1/commands/generate.rb +15 -16
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +7 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
- data/lib/starter_web/_data/_defaults/private.yml +3 -2
- data/lib/starter_web/_data/_defaults/resources.yml +1 -1
- data/lib/starter_web/_data/blocks/banner.yml +5 -5
- data/lib/starter_web/_data/blocks/defaults/banner.yml +5 -5
- data/lib/starter_web/_data/blocks/defaults/panel.yml +3 -3
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +50 -44
- data/lib/starter_web/_data/j1_config.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +31 -11
- data/lib/starter_web/_data/modules/translator.yml +3 -3
- data/lib/starter_web/_data/private.yml +3 -2
- data/lib/starter_web/_data/resources.yml +28 -3
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/encodeBase64.rb +46 -0
- data/lib/starter_web/_plugins/encryptAES.rb +53 -0
- data/lib/starter_web/_plugins/filters.rb +2 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/_plugins/minifyJSON.rb +2 -2
- data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +3 -3
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +1 -1
- data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +22 -22
- data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +3 -3
- data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +3 -3
- data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +4 -4
- data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +3 -3
- data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +2 -2
- data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +1 -1
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +3 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -21
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
- data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -5
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_info.asciidoc +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_central_success.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_left_info.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_right_success.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_info.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_left_info.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_right_success.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +51 -51
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +5 -5
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +4 -5
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +55 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +51 -3
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +163 -73
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +34 -9
- data/lib/j1/commands/help.rb +0 -32
- data/lib/j1/commands/module.rb +0 -69
@@ -1462,12 +1462,12 @@
|
|
1462
1462
|
_inheritsLoose(Drawer, _BaseLayout);
|
1463
1463
|
|
1464
1464
|
// $element is expected to be the trigger
|
1465
|
-
// i.e. <button class="btn bmd-btn-icon" for="search" data-toggle="drawer" data-target="#my-side-nav-drawer" aria-expanded="false" aria-controls="my-side-nav-drawer">
|
1465
|
+
// i.e. <button class="btn bmd-btn-icon" for="search" data-bs-toggle="drawer" data-bs-target="#my-side-nav-drawer" aria-expanded="false" aria-controls="my-side-nav-drawer">
|
1466
1466
|
function Drawer($element, config) {
|
1467
1467
|
var _this;
|
1468
1468
|
|
1469
1469
|
_this = _BaseLayout.call(this, $element, $.extend(true, {}, Default, config)) || this;
|
1470
|
-
_this.$toggles = $("[data-toggle=\"drawer\"][href=\"#" + _this.$element[0].id + "\"], [data-toggle=\"drawer\"][data-target=\"#" + _this.$element[0].id + "\"]");
|
1470
|
+
_this.$toggles = $("[data-bs-toggle=\"drawer\"][href=\"#" + _this.$element[0].id + "\"], [data-bs-toggle=\"drawer\"][data-bs-target=\"#" + _this.$element[0].id + "\"]");
|
1471
1471
|
|
1472
1472
|
_this._addAria(); // click or escape on the backdrop closes the drawer
|
1473
1473
|
|
@@ -2114,7 +2114,7 @@
|
|
2114
2114
|
// selector: "label.checkbox-inline > input[type=checkbox]"
|
2115
2115
|
// },
|
2116
2116
|
// collapseInline: {
|
2117
|
-
// selector: '.bmd-collapse-inline [data-toggle="collapse"]'
|
2117
|
+
// selector: '.bmd-collapse-inline [data-bs-toggle="collapse"]'
|
2118
2118
|
// },
|
2119
2119
|
drawer: {
|
2120
2120
|
selector: ".bmd-layout-drawer"
|
@@ -17,4 +17,4 @@
|
|
17
17
|
# See: https://github.com/mdbootstrap/bootstrap-material-design/blob/4.1.3/LICENSE.md
|
18
18
|
# -----------------------------------------------------------------------------
|
19
19
|
*/
|
20
|
-
(function(a){typeof define==="function"&&define.amd?define(a):a()}((function(){function j(s,r){s.prototype=Object.create(r.prototype);s.prototype.constructor=s;s.__proto__=r}var n=function(){var v=false;var x="";var w={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};function s(){if(window.QUnit){return false}var D=document.createElement("bmd");for(var C in w){if(D.style[C]!==undefined){return w[C]}}return false}function B(){v=s();for(var C in w){x+=" "+w[C]}}var z={transitionEndSupported:function t(){return v},transitionEndSelector:function A(){return x},isChar:function y(C){if(typeof C.which==="undefined"){return true}else{if(typeof C.which==="number"&&C.which>0){return !C.ctrlKey&&!C.metaKey&&!C.altKey&&C.which!==8&&C.which!==9&&C.which!==13&&C.which!==16&&C.which!==17&&C.which!==20&&C.which!==27}}return false},assert:function r(C,E,D){if(E){if(!C===undefined){C.css("border","1px solid red")}console.error(D,C);throw D}},describe:function u(C){if(C===undefined){return"undefined"}else{if(C.length===0){return"(no matching elements)"}}return C[0].outerHTML.split(">")[0]+">"}};B();return z}(jQuery);var i=function(v){var u={BMD_FORM_GROUP:"bmd-form-group",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused"};var s={BMD_FORM_GROUP:"."+u.BMD_FORM_GROUP};var r={};var t=function(){function A(E,F,H){if(H===void 0){H={}}this.$element=E;this.config=v.extend(true,{},r,F);for(var G in H){this[G]=H[G]}}var x=A.prototype;x.dispose=function D(E){this.$element.data(E,null);this.$element=null;this.config=null};x.addFormGroupFocus=function z(){if(!this.$element.prop("disabled")){this.$bmdFormGroup.addClass(u.IS_FOCUSED)}};x.removeFormGroupFocus=function C(){this.$bmdFormGroup.removeClass(u.IS_FOCUSED)};x.removeIsFilled=function y(){this.$bmdFormGroup.removeClass(u.IS_FILLED)};x.addIsFilled=function w(){this.$bmdFormGroup.addClass(u.IS_FILLED)};x.findMdbFormGroup=function B(E){if(E===void 0){E=true}var F=this.$element.closest(s.BMD_FORM_GROUP);if(F.length===0&&E){v.error("Failed to find "+s.BMD_FORM_GROUP+" for "+n.describe(this.$element))}return F};return A}();return t}(jQuery);var d=function(v){var u={FORM_GROUP:"form-group",BMD_FORM_GROUP:"bmd-form-group",BMD_LABEL:"bmd-label",BMD_LABEL_STATIC:"bmd-label-static",BMD_LABEL_PLACEHOLDER:"bmd-label-placeholder",BMD_LABEL_FLOATING:"bmd-label-floating",HAS_DANGER:"has-danger",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused",INPUT_GROUP:"input-group"};var s={FORM_GROUP:"."+u.FORM_GROUP,BMD_FORM_GROUP:"."+u.BMD_FORM_GROUP,BMD_LABEL_WILDCARD:"label[class^='"+u.BMD_LABEL+"'], label[class*=' "+u.BMD_LABEL+"']"};var r={validate:false,formGroup:{required:false},bmdFormGroup:{template:"<span class='"+u.BMD_FORM_GROUP+"'></span>",create:true,required:true},label:{required:false,selectors:[".form-control-label","> label"],className:u.BMD_LABEL_STATIC},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:true};var t={"form-control-lg":"bmd-form-group-lg","form-control-sm":"bmd-form-group-sm"};var w=function(B){j(I,B);function I(P,Q,R){var S;if(R===void 0){R={}}S=B.call(this,P,v.extend(true,{},r,Q),R)||this;S._rejectInvalidComponentMatches();S.rejectWithoutRequiredStructure();S._rejectWithoutRequiredClasses();S.$formGroup=S.findFormGroup(S.config.formGroup.required);S.$bmdFormGroup=S.resolveMdbFormGroup();S.$bmdLabel=S.resolveMdbLabel();S.resolveMdbFormGroupSizing();S.addFocusListener();S.addChangeListener();if(S.$element.val()!=""){S.addIsFilled()}return S}var C=I.prototype;C.dispose=function M(P){B.prototype.dispose.call(this,P);this.$bmdFormGroup=null;this.$formGroup=null};C.rejectWithoutRequiredStructure=function D(){};C.addFocusListener=function y(){var P=this;this.$element.on("focus",function(){P.addFormGroupFocus()}).on("blur",function(){P.removeFormGroupFocus()})};C.addChangeListener=function N(){var P=this;this.$element.on("keydown paste",function(Q){if(n.isChar(Q)){P.addIsFilled()}}).on("keyup change",function(){if(P.isEmpty()){P.removeIsFilled()}else{P.addIsFilled()}if(P.config.validate){var Q=typeof P.$element[0].checkValidity==="undefined"||P.$element[0].checkValidity();if(Q){P.removeHasDanger()}else{P.addHasDanger()}}})};C.addHasDanger=function K(){this.$bmdFormGroup.addClass(u.HAS_DANGER)};C.removeHasDanger=function A(){this.$bmdFormGroup.removeClass(u.HAS_DANGER)};C.isEmpty=function F(){return this.$element.val()===null||this.$element.val()===undefined||this.$element.val()===""};C.resolveMdbFormGroup=function H(){var P=this.findMdbFormGroup(false);if(P===undefined||P.length===0){if(this.config.bmdFormGroup.create&&(this.$formGroup===undefined||this.$formGroup.length===0)){if(this.outerElement().parent().hasClass(u.INPUT_GROUP)){this.outerElement().parent().wrap(this.config.bmdFormGroup.template)}else{this.outerElement().wrap(this.config.bmdFormGroup.template)}}else{this.$formGroup.addClass(u.BMD_FORM_GROUP)}P=this.findMdbFormGroup(this.config.bmdFormGroup.required)}return P};C.outerElement=function z(){return this.$element};C.resolveMdbLabel=function O(){var P=this.$bmdFormGroup.find(s.BMD_LABEL_WILDCARD);if(P===undefined||P.length===0){P=this.findMdbLabel(this.config.label.required);if(P===undefined||P.length===0){}else{P.addClass(this.config.label.className)}}return P};C.findMdbLabel=function L(S){if(S===void 0){S=true}var R=null;for(var T=this.config.label.selectors,Q=Array.isArray(T),V=0,T=Q?T:T[Symbol.iterator]();;){var U;if(Q){if(V>=T.length){break}U=T[V++]}else{V=T.next();if(V.done){break}U=V.value}var P=U;if(v.isFunction(P)){R=P(this)}else{R=this.$bmdFormGroup.find(P)}if(R!==undefined&&R.length>0){break}}if(R.length===0&&S){v.error("Failed to find "+s.BMD_LABEL_WILDCARD+" within form-group for "+n.describe(this.$element))}return R};C.findFormGroup=function E(Q){if(Q===void 0){Q=true}var P=this.$element.closest(s.FORM_GROUP);if(P.length===0&&Q){v.error("Failed to find "+s.FORM_GROUP+" for "+n.describe(this.$element))}return P};C.resolveMdbFormGroupSizing=function J(){if(!this.config.convertInputSizeVariations){return}for(var P in t){if(this.$element.hasClass(P)){this.$bmdFormGroup.addClass(t[P])}}};C._rejectInvalidComponentMatches=function G(){for(var R=this.config.invalidComponentMatches,Q=Array.isArray(R),T=0,R=Q?R:R[Symbol.iterator]();;){var S;if(Q){if(T>=R.length){break}S=R[T++]}else{T=R.next();if(T.done){break}S=T.value}var P=S;P.rejectMatch(this.constructor.name,this.$element)}};C._rejectWithoutRequiredClasses=function x(){for(var Z=this.config.requiredClasses,T=Array.isArray(Z),X=0,Z=T?Z:Z[Symbol.iterator]();;){var Q;if(T){if(X>=Z.length){break}Q=Z[X++]}else{X=Z.next();if(X.done){break}Q=X.value}var W=Q;if(W.indexOf("||")!==-1){var U=W.split("||");for(var Y=U,S=Array.isArray(Y),V=0,Y=S?Y:Y[Symbol.iterator]();;){var P;if(S){if(V>=Y.length){break}P=Y[V++]}else{V=Y.next();if(V.done){break}P=V.value}var R=P;if(this.$element.hasClass(R)){break}}}else{if(this.$element.hasClass(W)){}}}};return I}(i);return w}(jQuery);var h=function(u){var s={label:{required:false}};var r={LABEL:"label"};var t=function(C){j(y,C);function y(D,E,F){var G;G=C.call(this,D,u.extend(true,{},s,E),F)||this;G.decorateMarkup();return G}var x=y.prototype;x.decorateMarkup=function A(){var D=u(this.config.template);this.$element.after(D);if(this.config.ripples!==false){D.bmdRipples()}};x.outerElement=function z(){return this.$element.parent().closest("."+this.outerClass)};x.rejectWithoutRequiredStructure=function w(){n.assert(this.$element,!this.$element.parent().prop("tagName")==="label",this.constructor.name+"'s "+n.describe(this.$element)+" parent element should be <label>.");n.assert(this.$element,!this.outerElement().hasClass(this.outerClass),this.constructor.name+"'s "+n.describe(this.$element)+" outer element should have class "+this.outerClass+".")};x.addFocusListener=function B(){var D=this;this.$element.closest(r.LABEL).hover(function(){D.addFormGroupFocus()},function(){D.removeFormGroupFocus()})};x.addChangeListener=function v(){var D=this;this.$element.change(function(){D.$element.blur()})};return y}(d);return t}(jQuery);var g=function(u){var w="checkbox";var t="bmd."+w;var s="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=u.fn[s];var r={template:"<span class='checkbox-decorator'><span class='check'></span></span>"};var v=function(A){j(D,A);function D(F,G,H){if(H===void 0){H={inputType:w,outerClass:w}}return A.call(this,F,u.extend(true,r,G),H)||this}var y=D.prototype;y.dispose=function C(F){if(F===void 0){F=t}A.prototype.dispose.call(this,F)};D.matches=function B(F){if(F.attr("type")==="checkbox"){return true}return false};D.rejectMatch=function E(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='checkbox'.")};D._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new D(G,F);G.data(t,H)}})};return D}(h);u.fn[s]=v._jQueryInterface;u.fn[s].Constructor=v;u.fn[s].noConflict=function(){u.fn[s]=x;return v._jQueryInterface};return v}(jQuery);var q=function(u){var v="radio";var t="bmd."+v;var s="bmd"+(v.charAt(0).toUpperCase()+v.slice(1));var x=u.fn[s];var r={template:"<span class='bmd-radio'></span>"};var w=function(A){j(E,A);function E(F,G,H){if(H===void 0){H={inputType:v,outerClass:v}}return A.call(this,F,u.extend(true,r,G),H)||this}var y=E.prototype;y.dispose=function C(F){if(F===void 0){F=t}A.prototype.dispose.call(this,F)};E.matches=function B(F){if(F.attr("type")==="radio"){return true}return false};E.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='radio'.")};E._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new E(G,F);G.data(t,H)}})};return E}(h);u.fn[s]=w._jQueryInterface;u.fn[s].Constructor=w;u.fn[s].noConflict=function(){u.fn[s]=x;return w._jQueryInterface};return w}(jQuery);var o=function(t){var r={requiredClasses:["form-control"]};var s=function(v){j(u,v);function u(w,x){var y;y=v.call(this,w,t.extend(true,r,x))||this;if(y.isEmpty()){y.removeIsFilled()}return y}return u}(d);return s}(jQuery);var b=function(u){var v="select";var t="bmd."+v;var s="bmd"+(v.charAt(0).toUpperCase()+v.slice(1));var w=u.fn[s];var r={requiredClasses:["form-control||custom-select"]};var x=function(D){j(E,D);function E(F,G){var H;H=D.call(this,F,u.extend(true,r,G))||this;H.addIsFilled();return H}var y=E.prototype;y.dispose=function B(){D.prototype.dispose.call(this,t)};E.matches=function A(F){if(F.prop("tagName")==="select"){return true}return false};E.rejectMatch=function C(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for <select>.")};E._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new E(G,F);G.data(t,H)}})};return E}(o);u.fn[s]=x._jQueryInterface;u.fn[s].Constructor=x;u.fn[s].noConflict=function(){u.fn[s]=w;return x._jQueryInterface};return x}(jQuery);var a=function(v){var w="switch";var u="bmd."+w;var t="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[t];var r={template:"<span class='bmd-switch-track'></span>"};var s=function(C){j(z,C);function z(D,E,F){if(F===void 0){F={inputType:"checkbox",outerClass:"switch"}}return C.call(this,D,v.extend(true,{},r,E),F)||this}var y=z.prototype;y.dispose=function B(){C.prototype.dispose.call(this,u)};z._jQueryInterface=function A(D){return this.each(function(){var E=v(this);var F=E.data(u);if(!F){F=new z(E,D);E.data(u,F)}})};return z}(g);v.fn[t]=s._jQueryInterface;v.fn[t].Constructor=s;v.fn[t].noConflict=function(){v.fn[t]=x;return s._jQueryInterface};return s}(jQuery);var f=function(v){var w="text";var u="bmd."+w;var s="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[s];var r={};var t=function(E){j(A,E);function A(F,G){return E.call(this,F,v.extend(true,r,G))||this}var y=A.prototype;y.dispose=function C(F){if(F===void 0){F=u}E.prototype.dispose.call(this,F)};A.matches=function B(F){if(F.attr("type")==="text"){return true}return false};A.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='text'.")};A._jQueryInterface=function z(F){return this.each(function(){var G=v(this);var H=G.data(u);if(!H){H=new A(G,F);G.data(u,H)}})};return A}(o);v.fn[s]=t._jQueryInterface;v.fn[s].Constructor=t;v.fn[s].noConflict=function(){v.fn[s]=x;return t._jQueryInterface};return t}(jQuery);var k=function(v){var w="textarea";var u="bmd."+w;var t="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[t];var r={};var s=function(E){j(z,E);function z(F,G){return E.call(this,F,v.extend(true,r,G))||this}var y=z.prototype;y.dispose=function C(){E.prototype.dispose.call(this,u)};z.matches=function B(F){if(F.prop("tagName")==="textarea"){return true}return false};z.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for <textarea>.")};z._jQueryInterface=function A(F){return this.each(function(){var G=v(this);var H=G.data(u);if(!H){H=new z(G,F);G.data(u,H)}})};return z}(o);v.fn[t]=s._jQueryInterface;v.fn[t].Constructor=s;v.fn[t].noConflict=function(){v.fn[t]=x;return s._jQueryInterface};return s}(jQuery);var p=function(v){var u={CANVAS:"bmd-layout-canvas",CONTAINER:"bmd-layout-container",BACKDROP:"bmd-layout-backdrop"};var s={CANVAS:"."+u.CANVAS,CONTAINER:"."+u.CONTAINER,BACKDROP:"."+u.BACKDROP};var r={canvas:{create:true,required:true,template:'<div class="'+u.CANVAS+'"></div>'},backdrop:{create:true,required:true,template:'<div class="'+u.BACKDROP+'"></div>'}};var t=function(x){j(D,x);function D(F,G,H){var I;if(H===void 0){H={}}I=x.call(this,F,v.extend(true,{},r,G),H)||this;I.$container=I.findContainer(true);I.$backdrop=I.resolveBackdrop();I.resolveCanvas();return I}var A=D.prototype;A.dispose=function C(F){x.prototype.dispose.call(this,F);this.$container=null;this.$backdrop=null};A.resolveCanvas=function E(){var F=this.findCanvas(false);if(F===undefined||F.length===0){if(this.config.canvas.create){this.$container.wrap(this.config.canvas.template)}F=this.findCanvas(this.config.canvas.required)}return F};A.findCanvas=function w(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$container}var F=H.closest(s.CANVAS);if(F.length===0&&G){v.error("Failed to find "+s.CANVAS+" for "+n.describe(H))}return F};A.resolveBackdrop=function B(){var F=this.findBackdrop(false);if(F===undefined||F.length===0){if(this.config.backdrop.create){this.$container.append(this.config.backdrop.template)}F=this.findBackdrop(this.config.backdrop.required)}return F};A.findBackdrop=function y(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$container}var F=H.find("> "+s.BACKDROP);if(F.length===0&&G){v.error("Failed to find "+s.BACKDROP+" for "+n.describe(H))}return F};A.findContainer=function z(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$element}var F=H.closest(s.CONTAINER);if(F.length===0&&G){v.error("Failed to find "+s.CONTAINER+" for "+n.describe(H))}return F};return D}(i);return t}(jQuery);var e=function(t){var z="drawer";var x="bmd."+z;var y="bmd"+(z.charAt(0).toUpperCase()+z.slice(1));var r=t.fn[y];var v={ESCAPE:27};var w={IN:"in",DRAWER_IN:"bmd-drawer-in",DRAWER_OUT:"bmd-drawer-out",DRAWER:"bmd-layout-drawer",CONTAINER:"bmd-layout-container"};var u={focusSelector:"a, button, input"};var s=function(J){j(B,J);function B(L,M){var N;N=J.call(this,L,t.extend(true,{},u,M))||this;N.$toggles=t('[data-toggle="drawer"][href="#'+N.$element[0].id+'"], [data-toggle="drawer"][data-target="#'+N.$element[0].id+'"]');N._addAria();N.$backdrop.keydown(function(O){if(O.which===v.ESCAPE){N.hide()}}).click(function(){N.hide()});N.$element.keydown(function(O){if(O.which===v.ESCAPE){N.hide()}});N.$toggles.click(function(){N.toggle()});return N}var H=B.prototype;H.dispose=function K(){J.prototype.dispose.call(this,x);this.$toggles=null};H.toggle=function D(){if(this._isOpen()){this.hide()}else{this.show()}};H.show=function I(){if(this._isForcedClosed()||this._isOpen()){return}t(".bmd-layout-drawer").hide();this.$element.show();this.$toggles.attr("aria-expanded",true);this.$element.attr("aria-expanded",true);this.$element.attr("aria-hidden",false);var L=this.$element.find(this.config.focusSelector);if(L.length>0){L.first().focus()}this.$container.addClass(w.DRAWER_IN);this.$backdrop.addClass(w.IN)};H.hide=function F(){if(!this._isOpen()){return}this.$toggles.attr("aria-expanded",false);this.$element.attr("aria-expanded",false);this.$element.attr("aria-hidden",true);this.$container.removeClass(w.DRAWER_IN);this.$backdrop.removeClass(w.IN)};H._isOpen=function E(){return this.$container.hasClass(w.DRAWER_IN)};H._isForcedClosed=function A(){return this.$container.hasClass(w.DRAWER_OUT)};H._addAria=function G(){var L=this._isOpen();this.$element.attr("aria-expanded",L);this.$element.attr("aria-hidden",L);if(this.$toggles.length){this.$toggles.attr("aria-expanded",L)}};B._jQueryInterface=function C(L){return this.each(function(){var M=t(this);var N=M.data(x);if(!N){N=new B(M,L);M.data(x,N)}})};return B}(p);t.fn[y]=s._jQueryInterface;t.fn[y].Constructor=s;t.fn[y].noConflict=function(){t.fn[y]=r;return s._jQueryInterface};return s}(jQuery);var c=function(u){var z="ripples";var x="bmd."+z;var y="bmd"+(z.charAt(0).toUpperCase()+z.slice(1));var r=u.fn[y];var w={CONTAINER:"ripple-container",DECORATOR:"ripple-decorator"};var s={CONTAINER:"."+w.CONTAINER,DECORATOR:"."+w.DECORATOR};var v={container:{template:"<div class='"+w.CONTAINER+"'></div>"},decorator:{template:"<div class='"+w.DECORATOR+"'></div>"},trigger:{start:"mousedown touchstart",end:"mouseup mouseleave touchend"},touchUserAgentRegex:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,duration:500};var t=function(){function C(P,Q){var R=this;this.$element=P;this.config=u.extend(true,{},v,Q);this.$element.on(this.config.trigger.start,function(S){R._onStartRipple(S)})}var K=C.prototype;K.dispose=function M(){this.$element.data(x,null);this.$element=null;this.$container=null;this.$decorator=null;this.config=null};K._onStartRipple=function G(Q){var P=this;if(this._isTouch()&&Q.type==="mousedown"){return}this._findOrCreateContainer();var R=this._getRelY(Q);var S=this._getRelX(Q);if(!R&&!S){return}this.$decorator.css({left:S,top:R,"background-color":this._getRipplesColor()});this._forceStyleApplication();this.rippleOn();setTimeout(function(){P.rippleEnd()},this.config.duration);this.$element.on(this.config.trigger.end,function(){if(P.$decorator){P.$decorator.data("mousedown","off");if(P.$decorator.data("animating")==="off"){P.rippleOut()}}})};K._findOrCreateContainer=function B(){if(!this.$container||!this.$container.length>0){this.$element.append(this.config.container.template);this.$container=this.$element.find(s.CONTAINER)}this.$container.append(this.config.decorator.template);this.$decorator=this.$container.find(s.DECORATOR)};K._forceStyleApplication=function A(){return window.getComputedStyle(this.$decorator[0]).opacity};K._getRelX=function O(Q){var R=this.$container.offset();var P=null;if(!this._isTouch()){P=Q.pageX-R.left}else{Q=Q.originalEvent;if(Q.touches.length===1){P=Q.touches[0].pageX-R.left}else{P=false}}return P};K._getRelY=function N(R){var Q=this.$container.offset();var P=null;if(!this._isTouch()){P=R.pageY-Q.top}else{R=R.originalEvent;if(R.touches.length===1){P=R.touches[0].pageY-Q.top}else{P=false}}return P};K._getRipplesColor=function L(){var P=this.$element.data("ripple-color")?this.$element.data("ripple-color"):window.getComputedStyle(this.$element[0]).color;return P};K._isTouch=function I(){return this.config.touchUserAgentRegex.test(navigator.userAgent)};K.rippleEnd=function E(){if(this.$decorator){this.$decorator.data("animating","off");if(this.$decorator.data("mousedown")==="off"){this.rippleOut(this.$decorator)}}};K.rippleOut=function F(){var P=this;this.$decorator.off();if(n.transitionEndSupported()){this.$decorator.addClass("ripple-out")}else{this.$decorator.animate({opacity:0},100,function(){P.$decorator.trigger("transitionend")})}this.$decorator.on(n.transitionEndSelector(),function(){if(P.$decorator){P.$decorator.remove();P.$decorator=null}})};K.rippleOn=function J(){var Q=this;var P=this._getNewSize();if(n.transitionEndSupported()){this.$decorator.css({"-ms-transform":"scale("+P+")","-moz-transform":"scale("+P+")","-webkit-transform":"scale("+P+")",transform:"scale("+P+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on")}else{this.$decorator.animate({width:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,height:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,"margin-left":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,"margin-top":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,opacity:0.2},this.config.duration,function(){Q.$decorator.trigger("transitionend")})}};K._getNewSize=function H(){return Math.max(this.$element.outerWidth(),this.$element.outerHeight())/this.$decorator.outerWidth()*2.5};C._jQueryInterface=function D(P){return this.each(function(){var Q=u(this);var R=Q.data(x);if(!R){R=new C(Q,P);Q.data(x,R)}})};return C}();u.fn[y]=t._jQueryInterface;u.fn[y].Constructor=t;u.fn[y].noConflict=function(){u.fn[y]=r;return t._jQueryInterface};return t}(jQuery);var m=function(v){var x="autofill";var u="bmd."+x;var t="bmd"+(x.charAt(0).toUpperCase()+x.slice(1));var y=v.fn[t];var s="bmd.last_value";var r={};var w=function(B){j(G,B);function G(H,I){var J;J=B.call(this,H,v.extend(true,{},r,I))||this;J._watchLoading();J._attachEventHandlers();return J}var A=G.prototype;A.dispose=function F(){B.prototype.dispose.call(this,u)};A._watchLoading=function E(){var H=this;setTimeout(function(){clearInterval(H._onLoading)},10000)};A._onLoading=function z(){setInterval(function(){v("input[type!=checkbox]").each(function(J,K){var I=v(K);var H=I.data(s);if(H===undefined){H=I.attr("value")}if(H===undefined){H=""}var L=I.val();if(L!==H){I.trigger("change")}I.data(s,L)})},100)};A._attachEventHandlers=function D(){var H=null;v(document).on("focus","input",function(J){var I=v(J.currentTarget).closest("form").find("input").not("[type=file], [type=date]");H=setInterval(function(){I.each(function(M,N){var L=v(N);var K=L.data(s);if(K===undefined){K=L.attr("value")}if(K===undefined){K=""}var O=L.val();if(O!==K){L.trigger("change")}L.data(s,O)})},100)}).on("blur",".form-group input",function(){clearInterval(H)})};G._jQueryInterface=function C(H){return this.each(function(){var I=v(this);var J=I.data(u);if(!J){J=new G(I,H);I.data(u,J)}})};return G}(i);v.fn[t]=w._jQueryInterface;v.fn[t].Constructor=w;v.fn[t].noConflict=function(){v.fn[t]=y;return w._jQueryInterface};return w}(jQuery);var l=function(u){var w="bmd";var t="bmd."+w;var s=w;var x=u.fn[s];var r={global:{validate:false,label:{className:"bmd-label-static"}},checkbox:{selector:".checkbox > label > input[type=checkbox]"},drawer:{selector:".bmd-layout-drawer"},radio:{selector:".radio > label > input[type=radio]"},ripples:{selector:[".btn:not(.btn-link):not(.ripple-none)",".card-image:not(.ripple-none)",".navbar a:not(.ripple-none)",".dropdown-menu a:not(.ripple-none)",".nav-tabs a:not(.ripple-none)",".pagination li:not(.active):not(.disabled) a:not(.ripple-none)",".ripple"]},select:{selector:["select"]},"switch":{selector:".switch > label > input[type=checkbox]"},text:{selector:["input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])"]},textarea:{selector:["textarea"]},arrive:true,instantiation:["ripples","checkbox","drawer","radio","switch","text","textarea","select","autofill"]};var v=function(){function B(M,E){var I=this;this.$element=M;this.config=u.extend(true,{},r,E);var F=u(document);var D=function D(){if(K){if(G>=J.length){return"break"}H=J[G++]}else{G=J.next();if(G.done){return"break"}H=G.value}var Q=H;var P=I.config[Q];if(P){var N=I._resolveSelector(P);P=u.extend(true,{},I.config.global,P);var O=""+(Q.charAt(0).toUpperCase()+Q.slice(1));var S="bmd"+O;try{u(N)[S](P);if(document.arrive&&I.config.arrive){F.arrive(N,function(){u(this)[S](P)})}}catch(T){var R="Failed to instantiate component: $('"+N+"')["+S+"]("+P+")";console.error(R,T,"\nSelected elements: ",u(N));throw T}}};for(var J=this.config.instantiation,K=Array.isArray(J),G=0,J=K?J:J[Symbol.iterator]();;){var H;var L=D();if(L==="break"){break}}}var y=B.prototype;y.dispose=function A(){this.$element.data(t,null);this.$element=null;this.config=null};y._resolveSelector=function C(E){var D=E.selector;if(Array.isArray(D)){D=D.join(", ")}return D};B._jQueryInterface=function z(D){return this.each(function(){var E=u(this);var F=E.data(t);if(!F){F=new B(E,D);E.data(t,F)}})};return B}();u.fn[s]=v._jQueryInterface;u.fn[s].Constructor=v;u.fn[s].noConflict=function(){u.fn[s]=x;return v._jQueryInterface};return v}(jQuery)})));
|
20
|
+
(function(a){typeof define==="function"&&define.amd?define(a):a()}((function(){function j(s,r){s.prototype=Object.create(r.prototype);s.prototype.constructor=s;s.__proto__=r}var n=function(){var v=false;var x="";var w={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};function s(){if(window.QUnit){return false}var D=document.createElement("bmd");for(var C in w){if(D.style[C]!==undefined){return w[C]}}return false}function B(){v=s();for(var C in w){x+=" "+w[C]}}var z={transitionEndSupported:function t(){return v},transitionEndSelector:function A(){return x},isChar:function y(C){if(typeof C.which==="undefined"){return true}else{if(typeof C.which==="number"&&C.which>0){return !C.ctrlKey&&!C.metaKey&&!C.altKey&&C.which!==8&&C.which!==9&&C.which!==13&&C.which!==16&&C.which!==17&&C.which!==20&&C.which!==27}}return false},assert:function r(C,E,D){if(E){if(!C===undefined){C.css("border","1px solid red")}console.error(D,C);throw D}},describe:function u(C){if(C===undefined){return"undefined"}else{if(C.length===0){return"(no matching elements)"}}return C[0].outerHTML.split(">")[0]+">"}};B();return z}(jQuery);var i=function(v){var u={BMD_FORM_GROUP:"bmd-form-group",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused"};var s={BMD_FORM_GROUP:"."+u.BMD_FORM_GROUP};var r={};var t=function(){function A(E,F,H){if(H===void 0){H={}}this.$element=E;this.config=v.extend(true,{},r,F);for(var G in H){this[G]=H[G]}}var x=A.prototype;x.dispose=function D(E){this.$element.data(E,null);this.$element=null;this.config=null};x.addFormGroupFocus=function z(){if(!this.$element.prop("disabled")){this.$bmdFormGroup.addClass(u.IS_FOCUSED)}};x.removeFormGroupFocus=function C(){this.$bmdFormGroup.removeClass(u.IS_FOCUSED)};x.removeIsFilled=function y(){this.$bmdFormGroup.removeClass(u.IS_FILLED)};x.addIsFilled=function w(){this.$bmdFormGroup.addClass(u.IS_FILLED)};x.findMdbFormGroup=function B(E){if(E===void 0){E=true}var F=this.$element.closest(s.BMD_FORM_GROUP);if(F.length===0&&E){v.error("Failed to find "+s.BMD_FORM_GROUP+" for "+n.describe(this.$element))}return F};return A}();return t}(jQuery);var d=function(v){var u={FORM_GROUP:"form-group",BMD_FORM_GROUP:"bmd-form-group",BMD_LABEL:"bmd-label",BMD_LABEL_STATIC:"bmd-label-static",BMD_LABEL_PLACEHOLDER:"bmd-label-placeholder",BMD_LABEL_FLOATING:"bmd-label-floating",HAS_DANGER:"has-danger",IS_FILLED:"is-filled",IS_FOCUSED:"is-focused",INPUT_GROUP:"input-group"};var s={FORM_GROUP:"."+u.FORM_GROUP,BMD_FORM_GROUP:"."+u.BMD_FORM_GROUP,BMD_LABEL_WILDCARD:"label[class^='"+u.BMD_LABEL+"'], label[class*=' "+u.BMD_LABEL+"']"};var r={validate:false,formGroup:{required:false},bmdFormGroup:{template:"<span class='"+u.BMD_FORM_GROUP+"'></span>",create:true,required:true},label:{required:false,selectors:[".form-control-label","> label"],className:u.BMD_LABEL_STATIC},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:true};var t={"form-control-lg":"bmd-form-group-lg","form-control-sm":"bmd-form-group-sm"};var w=function(B){j(I,B);function I(P,Q,R){var S;if(R===void 0){R={}}S=B.call(this,P,v.extend(true,{},r,Q),R)||this;S._rejectInvalidComponentMatches();S.rejectWithoutRequiredStructure();S._rejectWithoutRequiredClasses();S.$formGroup=S.findFormGroup(S.config.formGroup.required);S.$bmdFormGroup=S.resolveMdbFormGroup();S.$bmdLabel=S.resolveMdbLabel();S.resolveMdbFormGroupSizing();S.addFocusListener();S.addChangeListener();if(S.$element.val()!=""){S.addIsFilled()}return S}var C=I.prototype;C.dispose=function M(P){B.prototype.dispose.call(this,P);this.$bmdFormGroup=null;this.$formGroup=null};C.rejectWithoutRequiredStructure=function D(){};C.addFocusListener=function y(){var P=this;this.$element.on("focus",function(){P.addFormGroupFocus()}).on("blur",function(){P.removeFormGroupFocus()})};C.addChangeListener=function N(){var P=this;this.$element.on("keydown paste",function(Q){if(n.isChar(Q)){P.addIsFilled()}}).on("keyup change",function(){if(P.isEmpty()){P.removeIsFilled()}else{P.addIsFilled()}if(P.config.validate){var Q=typeof P.$element[0].checkValidity==="undefined"||P.$element[0].checkValidity();if(Q){P.removeHasDanger()}else{P.addHasDanger()}}})};C.addHasDanger=function K(){this.$bmdFormGroup.addClass(u.HAS_DANGER)};C.removeHasDanger=function A(){this.$bmdFormGroup.removeClass(u.HAS_DANGER)};C.isEmpty=function F(){return this.$element.val()===null||this.$element.val()===undefined||this.$element.val()===""};C.resolveMdbFormGroup=function H(){var P=this.findMdbFormGroup(false);if(P===undefined||P.length===0){if(this.config.bmdFormGroup.create&&(this.$formGroup===undefined||this.$formGroup.length===0)){if(this.outerElement().parent().hasClass(u.INPUT_GROUP)){this.outerElement().parent().wrap(this.config.bmdFormGroup.template)}else{this.outerElement().wrap(this.config.bmdFormGroup.template)}}else{this.$formGroup.addClass(u.BMD_FORM_GROUP)}P=this.findMdbFormGroup(this.config.bmdFormGroup.required)}return P};C.outerElement=function z(){return this.$element};C.resolveMdbLabel=function O(){var P=this.$bmdFormGroup.find(s.BMD_LABEL_WILDCARD);if(P===undefined||P.length===0){P=this.findMdbLabel(this.config.label.required);if(P===undefined||P.length===0){}else{P.addClass(this.config.label.className)}}return P};C.findMdbLabel=function L(S){if(S===void 0){S=true}var R=null;for(var T=this.config.label.selectors,Q=Array.isArray(T),V=0,T=Q?T:T[Symbol.iterator]();;){var U;if(Q){if(V>=T.length){break}U=T[V++]}else{V=T.next();if(V.done){break}U=V.value}var P=U;if(v.isFunction(P)){R=P(this)}else{R=this.$bmdFormGroup.find(P)}if(R!==undefined&&R.length>0){break}}if(R.length===0&&S){v.error("Failed to find "+s.BMD_LABEL_WILDCARD+" within form-group for "+n.describe(this.$element))}return R};C.findFormGroup=function E(Q){if(Q===void 0){Q=true}var P=this.$element.closest(s.FORM_GROUP);if(P.length===0&&Q){v.error("Failed to find "+s.FORM_GROUP+" for "+n.describe(this.$element))}return P};C.resolveMdbFormGroupSizing=function J(){if(!this.config.convertInputSizeVariations){return}for(var P in t){if(this.$element.hasClass(P)){this.$bmdFormGroup.addClass(t[P])}}};C._rejectInvalidComponentMatches=function G(){for(var R=this.config.invalidComponentMatches,Q=Array.isArray(R),T=0,R=Q?R:R[Symbol.iterator]();;){var S;if(Q){if(T>=R.length){break}S=R[T++]}else{T=R.next();if(T.done){break}S=T.value}var P=S;P.rejectMatch(this.constructor.name,this.$element)}};C._rejectWithoutRequiredClasses=function x(){for(var Z=this.config.requiredClasses,T=Array.isArray(Z),X=0,Z=T?Z:Z[Symbol.iterator]();;){var Q;if(T){if(X>=Z.length){break}Q=Z[X++]}else{X=Z.next();if(X.done){break}Q=X.value}var W=Q;if(W.indexOf("||")!==-1){var U=W.split("||");for(var Y=U,S=Array.isArray(Y),V=0,Y=S?Y:Y[Symbol.iterator]();;){var P;if(S){if(V>=Y.length){break}P=Y[V++]}else{V=Y.next();if(V.done){break}P=V.value}var R=P;if(this.$element.hasClass(R)){break}}}else{if(this.$element.hasClass(W)){}}}};return I}(i);return w}(jQuery);var h=function(u){var s={label:{required:false}};var r={LABEL:"label"};var t=function(C){j(y,C);function y(D,E,F){var G;G=C.call(this,D,u.extend(true,{},s,E),F)||this;G.decorateMarkup();return G}var x=y.prototype;x.decorateMarkup=function A(){var D=u(this.config.template);this.$element.after(D);if(this.config.ripples!==false){D.bmdRipples()}};x.outerElement=function z(){return this.$element.parent().closest("."+this.outerClass)};x.rejectWithoutRequiredStructure=function w(){n.assert(this.$element,!this.$element.parent().prop("tagName")==="label",this.constructor.name+"'s "+n.describe(this.$element)+" parent element should be <label>.");n.assert(this.$element,!this.outerElement().hasClass(this.outerClass),this.constructor.name+"'s "+n.describe(this.$element)+" outer element should have class "+this.outerClass+".")};x.addFocusListener=function B(){var D=this;this.$element.closest(r.LABEL).hover(function(){D.addFormGroupFocus()},function(){D.removeFormGroupFocus()})};x.addChangeListener=function v(){var D=this;this.$element.change(function(){D.$element.blur()})};return y}(d);return t}(jQuery);var g=function(u){var w="checkbox";var t="bmd."+w;var s="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=u.fn[s];var r={template:"<span class='checkbox-decorator'><span class='check'></span></span>"};var v=function(A){j(D,A);function D(F,G,H){if(H===void 0){H={inputType:w,outerClass:w}}return A.call(this,F,u.extend(true,r,G),H)||this}var y=D.prototype;y.dispose=function C(F){if(F===void 0){F=t}A.prototype.dispose.call(this,F)};D.matches=function B(F){if(F.attr("type")==="checkbox"){return true}return false};D.rejectMatch=function E(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='checkbox'.")};D._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new D(G,F);G.data(t,H)}})};return D}(h);u.fn[s]=v._jQueryInterface;u.fn[s].Constructor=v;u.fn[s].noConflict=function(){u.fn[s]=x;return v._jQueryInterface};return v}(jQuery);var q=function(u){var v="radio";var t="bmd."+v;var s="bmd"+(v.charAt(0).toUpperCase()+v.slice(1));var x=u.fn[s];var r={template:"<span class='bmd-radio'></span>"};var w=function(A){j(E,A);function E(F,G,H){if(H===void 0){H={inputType:v,outerClass:v}}return A.call(this,F,u.extend(true,r,G),H)||this}var y=E.prototype;y.dispose=function C(F){if(F===void 0){F=t}A.prototype.dispose.call(this,F)};E.matches=function B(F){if(F.attr("type")==="radio"){return true}return false};E.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='radio'.")};E._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new E(G,F);G.data(t,H)}})};return E}(h);u.fn[s]=w._jQueryInterface;u.fn[s].Constructor=w;u.fn[s].noConflict=function(){u.fn[s]=x;return w._jQueryInterface};return w}(jQuery);var o=function(t){var r={requiredClasses:["form-control"]};var s=function(v){j(u,v);function u(w,x){var y;y=v.call(this,w,t.extend(true,r,x))||this;if(y.isEmpty()){y.removeIsFilled()}return y}return u}(d);return s}(jQuery);var b=function(u){var v="select";var t="bmd."+v;var s="bmd"+(v.charAt(0).toUpperCase()+v.slice(1));var w=u.fn[s];var r={requiredClasses:["form-control||custom-select"]};var x=function(D){j(E,D);function E(F,G){var H;H=D.call(this,F,u.extend(true,r,G))||this;H.addIsFilled();return H}var y=E.prototype;y.dispose=function B(){D.prototype.dispose.call(this,t)};E.matches=function A(F){if(F.prop("tagName")==="select"){return true}return false};E.rejectMatch=function C(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for <select>.")};E._jQueryInterface=function z(F){return this.each(function(){var G=u(this);var H=G.data(t);if(!H){H=new E(G,F);G.data(t,H)}})};return E}(o);u.fn[s]=x._jQueryInterface;u.fn[s].Constructor=x;u.fn[s].noConflict=function(){u.fn[s]=w;return x._jQueryInterface};return x}(jQuery);var a=function(v){var w="switch";var u="bmd."+w;var t="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[t];var r={template:"<span class='bmd-switch-track'></span>"};var s=function(C){j(z,C);function z(D,E,F){if(F===void 0){F={inputType:"checkbox",outerClass:"switch"}}return C.call(this,D,v.extend(true,{},r,E),F)||this}var y=z.prototype;y.dispose=function B(){C.prototype.dispose.call(this,u)};z._jQueryInterface=function A(D){return this.each(function(){var E=v(this);var F=E.data(u);if(!F){F=new z(E,D);E.data(u,F)}})};return z}(g);v.fn[t]=s._jQueryInterface;v.fn[t].Constructor=s;v.fn[t].noConflict=function(){v.fn[t]=x;return s._jQueryInterface};return s}(jQuery);var f=function(v){var w="text";var u="bmd."+w;var s="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[s];var r={};var t=function(E){j(A,E);function A(F,G){return E.call(this,F,v.extend(true,r,G))||this}var y=A.prototype;y.dispose=function C(F){if(F===void 0){F=u}E.prototype.dispose.call(this,F)};A.matches=function B(F){if(F.attr("type")==="text"){return true}return false};A.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for type='text'.")};A._jQueryInterface=function z(F){return this.each(function(){var G=v(this);var H=G.data(u);if(!H){H=new A(G,F);G.data(u,H)}})};return A}(o);v.fn[s]=t._jQueryInterface;v.fn[s].Constructor=t;v.fn[s].noConflict=function(){v.fn[s]=x;return t._jQueryInterface};return t}(jQuery);var k=function(v){var w="textarea";var u="bmd."+w;var t="bmd"+(w.charAt(0).toUpperCase()+w.slice(1));var x=v.fn[t];var r={};var s=function(E){j(z,E);function z(F,G){return E.call(this,F,v.extend(true,r,G))||this}var y=z.prototype;y.dispose=function C(){E.prototype.dispose.call(this,u)};z.matches=function B(F){if(F.prop("tagName")==="textarea"){return true}return false};z.rejectMatch=function D(G,F){n.assert(this.$element,this.matches(F),G+" component element "+n.describe(F)+" is invalid for <textarea>.")};z._jQueryInterface=function A(F){return this.each(function(){var G=v(this);var H=G.data(u);if(!H){H=new z(G,F);G.data(u,H)}})};return z}(o);v.fn[t]=s._jQueryInterface;v.fn[t].Constructor=s;v.fn[t].noConflict=function(){v.fn[t]=x;return s._jQueryInterface};return s}(jQuery);var p=function(v){var u={CANVAS:"bmd-layout-canvas",CONTAINER:"bmd-layout-container",BACKDROP:"bmd-layout-backdrop"};var s={CANVAS:"."+u.CANVAS,CONTAINER:"."+u.CONTAINER,BACKDROP:"."+u.BACKDROP};var r={canvas:{create:true,required:true,template:'<div class="'+u.CANVAS+'"></div>'},backdrop:{create:true,required:true,template:'<div class="'+u.BACKDROP+'"></div>'}};var t=function(x){j(D,x);function D(F,G,H){var I;if(H===void 0){H={}}I=x.call(this,F,v.extend(true,{},r,G),H)||this;I.$container=I.findContainer(true);I.$backdrop=I.resolveBackdrop();I.resolveCanvas();return I}var A=D.prototype;A.dispose=function C(F){x.prototype.dispose.call(this,F);this.$container=null;this.$backdrop=null};A.resolveCanvas=function E(){var F=this.findCanvas(false);if(F===undefined||F.length===0){if(this.config.canvas.create){this.$container.wrap(this.config.canvas.template)}F=this.findCanvas(this.config.canvas.required)}return F};A.findCanvas=function w(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$container}var F=H.closest(s.CANVAS);if(F.length===0&&G){v.error("Failed to find "+s.CANVAS+" for "+n.describe(H))}return F};A.resolveBackdrop=function B(){var F=this.findBackdrop(false);if(F===undefined||F.length===0){if(this.config.backdrop.create){this.$container.append(this.config.backdrop.template)}F=this.findBackdrop(this.config.backdrop.required)}return F};A.findBackdrop=function y(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$container}var F=H.find("> "+s.BACKDROP);if(F.length===0&&G){v.error("Failed to find "+s.BACKDROP+" for "+n.describe(H))}return F};A.findContainer=function z(G,H){if(G===void 0){G=true}if(H===void 0){H=this.$element}var F=H.closest(s.CONTAINER);if(F.length===0&&G){v.error("Failed to find "+s.CONTAINER+" for "+n.describe(H))}return F};return D}(i);return t}(jQuery);var e=function(t){var z="drawer";var x="bmd."+z;var y="bmd"+(z.charAt(0).toUpperCase()+z.slice(1));var r=t.fn[y];var v={ESCAPE:27};var w={IN:"in",DRAWER_IN:"bmd-drawer-in",DRAWER_OUT:"bmd-drawer-out",DRAWER:"bmd-layout-drawer",CONTAINER:"bmd-layout-container"};var u={focusSelector:"a, button, input"};var s=function(J){j(B,J);function B(L,M){var N;N=J.call(this,L,t.extend(true,{},u,M))||this;N.$toggles=t('[data-bs-toggle="drawer"][href="#'+N.$element[0].id+'"], [data-bs-toggle="drawer"][data-bs-target="#'+N.$element[0].id+'"]');N._addAria();N.$backdrop.keydown(function(O){if(O.which===v.ESCAPE){N.hide()}}).click(function(){N.hide()});N.$element.keydown(function(O){if(O.which===v.ESCAPE){N.hide()}});N.$toggles.click(function(){N.toggle()});return N}var H=B.prototype;H.dispose=function K(){J.prototype.dispose.call(this,x);this.$toggles=null};H.toggle=function D(){if(this._isOpen()){this.hide()}else{this.show()}};H.show=function I(){if(this._isForcedClosed()||this._isOpen()){return}t(".bmd-layout-drawer").hide();this.$element.show();this.$toggles.attr("aria-expanded",true);this.$element.attr("aria-expanded",true);this.$element.attr("aria-hidden",false);var L=this.$element.find(this.config.focusSelector);if(L.length>0){L.first().focus()}this.$container.addClass(w.DRAWER_IN);this.$backdrop.addClass(w.IN)};H.hide=function F(){if(!this._isOpen()){return}this.$toggles.attr("aria-expanded",false);this.$element.attr("aria-expanded",false);this.$element.attr("aria-hidden",true);this.$container.removeClass(w.DRAWER_IN);this.$backdrop.removeClass(w.IN)};H._isOpen=function E(){return this.$container.hasClass(w.DRAWER_IN)};H._isForcedClosed=function A(){return this.$container.hasClass(w.DRAWER_OUT)};H._addAria=function G(){var L=this._isOpen();this.$element.attr("aria-expanded",L);this.$element.attr("aria-hidden",L);if(this.$toggles.length){this.$toggles.attr("aria-expanded",L)}};B._jQueryInterface=function C(L){return this.each(function(){var M=t(this);var N=M.data(x);if(!N){N=new B(M,L);M.data(x,N)}})};return B}(p);t.fn[y]=s._jQueryInterface;t.fn[y].Constructor=s;t.fn[y].noConflict=function(){t.fn[y]=r;return s._jQueryInterface};return s}(jQuery);var c=function(u){var z="ripples";var x="bmd."+z;var y="bmd"+(z.charAt(0).toUpperCase()+z.slice(1));var r=u.fn[y];var w={CONTAINER:"ripple-container",DECORATOR:"ripple-decorator"};var s={CONTAINER:"."+w.CONTAINER,DECORATOR:"."+w.DECORATOR};var v={container:{template:"<div class='"+w.CONTAINER+"'></div>"},decorator:{template:"<div class='"+w.DECORATOR+"'></div>"},trigger:{start:"mousedown touchstart",end:"mouseup mouseleave touchend"},touchUserAgentRegex:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,duration:500};var t=function(){function C(P,Q){var R=this;this.$element=P;this.config=u.extend(true,{},v,Q);this.$element.on(this.config.trigger.start,function(S){R._onStartRipple(S)})}var K=C.prototype;K.dispose=function M(){this.$element.data(x,null);this.$element=null;this.$container=null;this.$decorator=null;this.config=null};K._onStartRipple=function G(Q){var P=this;if(this._isTouch()&&Q.type==="mousedown"){return}this._findOrCreateContainer();var R=this._getRelY(Q);var S=this._getRelX(Q);if(!R&&!S){return}this.$decorator.css({left:S,top:R,"background-color":this._getRipplesColor()});this._forceStyleApplication();this.rippleOn();setTimeout(function(){P.rippleEnd()},this.config.duration);this.$element.on(this.config.trigger.end,function(){if(P.$decorator){P.$decorator.data("mousedown","off");if(P.$decorator.data("animating")==="off"){P.rippleOut()}}})};K._findOrCreateContainer=function B(){if(!this.$container||!this.$container.length>0){this.$element.append(this.config.container.template);this.$container=this.$element.find(s.CONTAINER)}this.$container.append(this.config.decorator.template);this.$decorator=this.$container.find(s.DECORATOR)};K._forceStyleApplication=function A(){return window.getComputedStyle(this.$decorator[0]).opacity};K._getRelX=function O(Q){var R=this.$container.offset();var P=null;if(!this._isTouch()){P=Q.pageX-R.left}else{Q=Q.originalEvent;if(Q.touches.length===1){P=Q.touches[0].pageX-R.left}else{P=false}}return P};K._getRelY=function N(R){var Q=this.$container.offset();var P=null;if(!this._isTouch()){P=R.pageY-Q.top}else{R=R.originalEvent;if(R.touches.length===1){P=R.touches[0].pageY-Q.top}else{P=false}}return P};K._getRipplesColor=function L(){var P=this.$element.data("ripple-color")?this.$element.data("ripple-color"):window.getComputedStyle(this.$element[0]).color;return P};K._isTouch=function I(){return this.config.touchUserAgentRegex.test(navigator.userAgent)};K.rippleEnd=function E(){if(this.$decorator){this.$decorator.data("animating","off");if(this.$decorator.data("mousedown")==="off"){this.rippleOut(this.$decorator)}}};K.rippleOut=function F(){var P=this;this.$decorator.off();if(n.transitionEndSupported()){this.$decorator.addClass("ripple-out")}else{this.$decorator.animate({opacity:0},100,function(){P.$decorator.trigger("transitionend")})}this.$decorator.on(n.transitionEndSelector(),function(){if(P.$decorator){P.$decorator.remove();P.$decorator=null}})};K.rippleOn=function J(){var Q=this;var P=this._getNewSize();if(n.transitionEndSupported()){this.$decorator.css({"-ms-transform":"scale("+P+")","-moz-transform":"scale("+P+")","-webkit-transform":"scale("+P+")",transform:"scale("+P+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on")}else{this.$decorator.animate({width:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,height:Math.max(this.$element.outerWidth(),this.$element.outerHeight())*2,"margin-left":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,"margin-top":Math.max(this.$element.outerWidth(),this.$element.outerHeight())*-1,opacity:0.2},this.config.duration,function(){Q.$decorator.trigger("transitionend")})}};K._getNewSize=function H(){return Math.max(this.$element.outerWidth(),this.$element.outerHeight())/this.$decorator.outerWidth()*2.5};C._jQueryInterface=function D(P){return this.each(function(){var Q=u(this);var R=Q.data(x);if(!R){R=new C(Q,P);Q.data(x,R)}})};return C}();u.fn[y]=t._jQueryInterface;u.fn[y].Constructor=t;u.fn[y].noConflict=function(){u.fn[y]=r;return t._jQueryInterface};return t}(jQuery);var m=function(v){var x="autofill";var u="bmd."+x;var t="bmd"+(x.charAt(0).toUpperCase()+x.slice(1));var y=v.fn[t];var s="bmd.last_value";var r={};var w=function(B){j(G,B);function G(H,I){var J;J=B.call(this,H,v.extend(true,{},r,I))||this;J._watchLoading();J._attachEventHandlers();return J}var A=G.prototype;A.dispose=function F(){B.prototype.dispose.call(this,u)};A._watchLoading=function E(){var H=this;setTimeout(function(){clearInterval(H._onLoading)},10000)};A._onLoading=function z(){setInterval(function(){v("input[type!=checkbox]").each(function(J,K){var I=v(K);var H=I.data(s);if(H===undefined){H=I.attr("value")}if(H===undefined){H=""}var L=I.val();if(L!==H){I.trigger("change")}I.data(s,L)})},100)};A._attachEventHandlers=function D(){var H=null;v(document).on("focus","input",function(J){var I=v(J.currentTarget).closest("form").find("input").not("[type=file], [type=date]");H=setInterval(function(){I.each(function(M,N){var L=v(N);var K=L.data(s);if(K===undefined){K=L.attr("value")}if(K===undefined){K=""}var O=L.val();if(O!==K){L.trigger("change")}L.data(s,O)})},100)}).on("blur",".form-group input",function(){clearInterval(H)})};G._jQueryInterface=function C(H){return this.each(function(){var I=v(this);var J=I.data(u);if(!J){J=new G(I,H);I.data(u,J)}})};return G}(i);v.fn[t]=w._jQueryInterface;v.fn[t].Constructor=w;v.fn[t].noConflict=function(){v.fn[t]=y;return w._jQueryInterface};return w}(jQuery);var l=function(u){var w="bmd";var t="bmd."+w;var s=w;var x=u.fn[s];var r={global:{validate:false,label:{className:"bmd-label-static"}},checkbox:{selector:".checkbox > label > input[type=checkbox]"},drawer:{selector:".bmd-layout-drawer"},radio:{selector:".radio > label > input[type=radio]"},ripples:{selector:[".btn:not(.btn-link):not(.ripple-none)",".card-image:not(.ripple-none)",".navbar a:not(.ripple-none)",".dropdown-menu a:not(.ripple-none)",".nav-tabs a:not(.ripple-none)",".pagination li:not(.active):not(.disabled) a:not(.ripple-none)",".ripple"]},select:{selector:["select"]},"switch":{selector:".switch > label > input[type=checkbox]"},text:{selector:["input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])"]},textarea:{selector:["textarea"]},arrive:true,instantiation:["ripples","checkbox","drawer","radio","switch","text","textarea","select","autofill"]};var v=function(){function B(M,E){var I=this;this.$element=M;this.config=u.extend(true,{},r,E);var F=u(document);var D=function D(){if(K){if(G>=J.length){return"break"}H=J[G++]}else{G=J.next();if(G.done){return"break"}H=G.value}var Q=H;var P=I.config[Q];if(P){var N=I._resolveSelector(P);P=u.extend(true,{},I.config.global,P);var O=""+(Q.charAt(0).toUpperCase()+Q.slice(1));var S="bmd"+O;try{u(N)[S](P);if(document.arrive&&I.config.arrive){F.arrive(N,function(){u(this)[S](P)})}}catch(T){var R="Failed to instantiate component: $('"+N+"')["+S+"]("+P+")";console.error(R,T,"\nSelected elements: ",u(N));throw T}}};for(var J=this.config.instantiation,K=Array.isArray(J),G=0,J=K?J:J[Symbol.iterator]();;){var H;var L=D();if(L==="break"){break}}}var y=B.prototype;y.dispose=function A(){this.$element.data(t,null);this.$element=null;this.config=null};y._resolveSelector=function C(E){var D=E.selector;if(Array.isArray(D)){D=D.join(", ")}return D};B._jQueryInterface=function z(D){return this.each(function(){var E=u(this);var F=E.data(t);if(!F){F=new B(E,D);E.data(t,F)}})};return B}();u.fn[s]=v._jQueryInterface;u.fn[s].Constructor=v;u.fn[s].noConflict=function(){u.fn[s]=x;return v._jQueryInterface};return v}(jQuery)})));
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
r=l.WordArray=t.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=p?c:4*a.length},toString:function(a){return(a||v).stringify(this)},concat:function(a){var c=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var k=0;k<a;k++)c[j+k>>>2]|=(e[k>>>2]>>>24-8*(k%4)&255)<<24-8*((j+k)%4);else if(65535<e.length)for(k=0;k<a;k+=4)c[j+k>>>2]=e[k>>>2];else c.push.apply(c,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<
|
9
|
+
32-8*(c%4);a.length=u.ceil(c/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],e=0;e<a;e+=4)c.push(4294967296*u.random()|0);return new r.init(c,a)}}),w=d.enc={},v=w.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++){var k=c[j>>>2]>>>24-8*(j%4)&255;e.push((k>>>4).toString(16));e.push((k&15).toString(16))}return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j+=2)e[j>>>3]|=parseInt(a.substr(j,
|
10
|
+
2),16)<<24-4*(j%8);return new r.init(e,c/2)}},b=w.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++)e.push(String.fromCharCode(c[j>>>2]>>>24-8*(j%4)&255));return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j++)e[j>>>2]|=(a.charCodeAt(j)&255)<<24-8*(j%4);return new r.init(e,c)}},x=w.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
q=l.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,e=c.words,j=c.sigBytes,k=this.blockSize,b=j/(4*k),b=a?u.ceil(b):u.max((b|0)-this._minBufferSize,0);a=b*k;j=u.min(4*a,j);if(a){for(var q=0;q<a;q+=k)this._doProcessBlock(e,q);q=e.splice(0,a);c.sigBytes-=j}return new r.init(q,j)},clone:function(){var a=t.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});l.Hasher=q.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){q.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new n.HMAC.init(a,
|
13
|
+
e)).finalize(b)}}});var n=d.algo={};return d}(Math);
|
14
|
+
(function(){var u=CryptoJS,p=u.lib.WordArray;u.enc.Base64={stringify:function(d){var l=d.words,p=d.sigBytes,t=this._map;d.clamp();d=[];for(var r=0;r<p;r+=3)for(var w=(l[r>>>2]>>>24-8*(r%4)&255)<<16|(l[r+1>>>2]>>>24-8*((r+1)%4)&255)<<8|l[r+2>>>2]>>>24-8*((r+2)%4)&255,v=0;4>v&&r+0.75*v<p;v++)d.push(t.charAt(w>>>6*(3-v)&63));if(l=t.charAt(64))for(;d.length%4;)d.push(l);return d.join("")},parse:function(d){var l=d.length,s=this._map,t=s.charAt(64);t&&(t=d.indexOf(t),-1!=t&&(l=t));for(var t=[],r=0,w=0;w<
|
15
|
+
l;w++)if(w%4){var v=s.indexOf(d.charAt(w-1))<<2*(w%4),b=s.indexOf(d.charAt(w))>>>6-2*(w%4);t[r>>>2]|=(v|b)<<24-8*(r%4);r++}return p.create(t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();
|
16
|
+
(function(u){function p(b,n,a,c,e,j,k){b=b+(n&a|~n&c)+e+k;return(b<<j|b>>>32-j)+n}function d(b,n,a,c,e,j,k){b=b+(n&c|a&~c)+e+k;return(b<<j|b>>>32-j)+n}function l(b,n,a,c,e,j,k){b=b+(n^a^c)+e+k;return(b<<j|b>>>32-j)+n}function s(b,n,a,c,e,j,k){b=b+(a^(n|~c))+e+k;return(b<<j|b>>>32-j)+n}for(var t=CryptoJS,r=t.lib,w=r.WordArray,v=r.Hasher,r=t.algo,b=[],x=0;64>x;x++)b[x]=4294967296*u.abs(u.sin(x+1))|0;r=r.MD5=v.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},
|
17
|
+
_doProcessBlock:function(q,n){for(var a=0;16>a;a++){var c=n+a,e=q[c];q[c]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var a=this._hash.words,c=q[n+0],e=q[n+1],j=q[n+2],k=q[n+3],z=q[n+4],r=q[n+5],t=q[n+6],w=q[n+7],v=q[n+8],A=q[n+9],B=q[n+10],C=q[n+11],u=q[n+12],D=q[n+13],E=q[n+14],x=q[n+15],f=a[0],m=a[1],g=a[2],h=a[3],f=p(f,m,g,h,c,7,b[0]),h=p(h,f,m,g,e,12,b[1]),g=p(g,h,f,m,j,17,b[2]),m=p(m,g,h,f,k,22,b[3]),f=p(f,m,g,h,z,7,b[4]),h=p(h,f,m,g,r,12,b[5]),g=p(g,h,f,m,t,17,b[6]),m=p(m,g,h,f,w,22,b[7]),
|
18
|
+
f=p(f,m,g,h,v,7,b[8]),h=p(h,f,m,g,A,12,b[9]),g=p(g,h,f,m,B,17,b[10]),m=p(m,g,h,f,C,22,b[11]),f=p(f,m,g,h,u,7,b[12]),h=p(h,f,m,g,D,12,b[13]),g=p(g,h,f,m,E,17,b[14]),m=p(m,g,h,f,x,22,b[15]),f=d(f,m,g,h,e,5,b[16]),h=d(h,f,m,g,t,9,b[17]),g=d(g,h,f,m,C,14,b[18]),m=d(m,g,h,f,c,20,b[19]),f=d(f,m,g,h,r,5,b[20]),h=d(h,f,m,g,B,9,b[21]),g=d(g,h,f,m,x,14,b[22]),m=d(m,g,h,f,z,20,b[23]),f=d(f,m,g,h,A,5,b[24]),h=d(h,f,m,g,E,9,b[25]),g=d(g,h,f,m,k,14,b[26]),m=d(m,g,h,f,v,20,b[27]),f=d(f,m,g,h,D,5,b[28]),h=d(h,f,
|
19
|
+
m,g,j,9,b[29]),g=d(g,h,f,m,w,14,b[30]),m=d(m,g,h,f,u,20,b[31]),f=l(f,m,g,h,r,4,b[32]),h=l(h,f,m,g,v,11,b[33]),g=l(g,h,f,m,C,16,b[34]),m=l(m,g,h,f,E,23,b[35]),f=l(f,m,g,h,e,4,b[36]),h=l(h,f,m,g,z,11,b[37]),g=l(g,h,f,m,w,16,b[38]),m=l(m,g,h,f,B,23,b[39]),f=l(f,m,g,h,D,4,b[40]),h=l(h,f,m,g,c,11,b[41]),g=l(g,h,f,m,k,16,b[42]),m=l(m,g,h,f,t,23,b[43]),f=l(f,m,g,h,A,4,b[44]),h=l(h,f,m,g,u,11,b[45]),g=l(g,h,f,m,x,16,b[46]),m=l(m,g,h,f,j,23,b[47]),f=s(f,m,g,h,c,6,b[48]),h=s(h,f,m,g,w,10,b[49]),g=s(g,h,f,m,
|
20
|
+
E,15,b[50]),m=s(m,g,h,f,r,21,b[51]),f=s(f,m,g,h,u,6,b[52]),h=s(h,f,m,g,k,10,b[53]),g=s(g,h,f,m,B,15,b[54]),m=s(m,g,h,f,e,21,b[55]),f=s(f,m,g,h,v,6,b[56]),h=s(h,f,m,g,x,10,b[57]),g=s(g,h,f,m,t,15,b[58]),m=s(m,g,h,f,D,21,b[59]),f=s(f,m,g,h,z,6,b[60]),h=s(h,f,m,g,C,10,b[61]),g=s(g,h,f,m,j,15,b[62]),m=s(m,g,h,f,A,21,b[63]);a[0]=a[0]+f|0;a[1]=a[1]+m|0;a[2]=a[2]+g|0;a[3]=a[3]+h|0},_doFinalize:function(){var b=this._data,n=b.words,a=8*this._nDataBytes,c=8*b.sigBytes;n[c>>>5]|=128<<24-c%32;var e=u.floor(a/
|
21
|
+
4294967296);n[(c+64>>>9<<4)+15]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;n[(c+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;b.sigBytes=4*(n.length+1);this._process();b=this._hash;n=b.words;for(a=0;4>a;a++)c=n[a],n[a]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;return b},clone:function(){var b=v.clone.call(this);b._hash=this._hash.clone();return b}});t.MD5=v._createHelper(r);t.HmacMD5=v._createHmacHelper(r)})(Math);
|
22
|
+
(function(){var u=CryptoJS,p=u.lib,d=p.Base,l=p.WordArray,p=u.algo,s=p.EvpKDF=d.extend({cfg:d.extend({keySize:4,hasher:p.MD5,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var p=this.cfg,s=p.hasher.create(),b=l.create(),u=b.words,q=p.keySize,p=p.iterations;u.length<q;){n&&s.update(n);var n=s.update(d).finalize(r);s.reset();for(var a=1;a<p;a++)n=s.finalize(n),s.reset();b.concat(n)}b.sigBytes=4*q;return b}});u.EvpKDF=function(d,l,p){return s.create(p).compute(d,
|
23
|
+
l)}})();
|
24
|
+
CryptoJS.lib.Cipher||function(u){var p=CryptoJS,d=p.lib,l=d.Base,s=d.WordArray,t=d.BufferedBlockAlgorithm,r=p.enc.Base64,w=p.algo.EvpKDF,v=d.Cipher=t.extend({cfg:l.extend(),createEncryptor:function(e,a){return this.create(this._ENC_XFORM_MODE,e,a)},createDecryptor:function(e,a){return this.create(this._DEC_XFORM_MODE,e,a)},init:function(e,a,b){this.cfg=this.cfg.extend(b);this._xformMode=e;this._key=a;this.reset()},reset:function(){t.reset.call(this);this._doReset()},process:function(e){this._append(e);return this._process()},
|
25
|
+
finalize:function(e){e&&this._append(e);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(b,k,d){return("string"==typeof k?c:a).encrypt(e,b,k,d)},decrypt:function(b,k,d){return("string"==typeof k?c:a).decrypt(e,b,k,d)}}}});d.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var b=p.mode={},x=function(e,a,b){var c=this._iv;c?this._iv=u:c=this._prevBlock;for(var d=0;d<b;d++)e[a+d]^=
|
26
|
+
c[d]},q=(d.BlockCipherMode=l.extend({createEncryptor:function(e,a){return this.Encryptor.create(e,a)},createDecryptor:function(e,a){return this.Decryptor.create(e,a)},init:function(e,a){this._cipher=e;this._iv=a}})).extend();q.Encryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize;x.call(this,e,a,c);b.encryptBlock(e,a);this._prevBlock=e.slice(a,a+c)}});q.Decryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize,d=e.slice(a,a+c);b.decryptBlock(e,a);x.call(this,
|
27
|
+
e,a,c);this._prevBlock=d}});b=b.CBC=q;q=(p.pad={}).Pkcs7={pad:function(a,b){for(var c=4*b,c=c-a.sigBytes%c,d=c<<24|c<<16|c<<8|c,l=[],n=0;n<c;n+=4)l.push(d);c=s.create(l,c);a.concat(c)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};d.BlockCipher=v.extend({cfg:v.cfg.extend({mode:b,padding:q}),reset:function(){v.reset.call(this);var a=this.cfg,b=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=a.createEncryptor;else c=a.createDecryptor,this._minBufferSize=1;this._mode=c.call(a,
|
28
|
+
this,b&&b.words)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var b=this._process(!0)}else b=this._process(!0),a.unpad(b);return b},blockSize:4});var n=d.CipherParams=l.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}}),b=(p.format={}).OpenSSL={stringify:function(a){var b=a.ciphertext;a=a.salt;return(a?s.create([1398893684,
|
29
|
+
1701076831]).concat(a).concat(b):b).toString(r)},parse:function(a){a=r.parse(a);var b=a.words;if(1398893684==b[0]&&1701076831==b[1]){var c=s.create(b.slice(2,4));b.splice(0,4);a.sigBytes-=16}return n.create({ciphertext:a,salt:c})}},a=d.SerializableCipher=l.extend({cfg:l.extend({format:b}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var l=a.createEncryptor(c,d);b=l.finalize(b);l=l.cfg;return n.create({ciphertext:b,key:c,iv:l.iv,algorithm:a,mode:l.mode,padding:l.padding,blockSize:a.blockSize,formatter:d.format})},
|
30
|
+
decrypt:function(a,b,c,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(c,d).finalize(b.ciphertext)},_parse:function(a,b){return"string"==typeof a?b.parse(a,this):a}}),p=(p.kdf={}).OpenSSL={execute:function(a,b,c,d){d||(d=s.random(8));a=w.create({keySize:b+c}).compute(a,d);c=s.create(a.words.slice(b),4*c);a.sigBytes=4*b;return n.create({key:a,iv:c,salt:d})}},c=d.PasswordBasedCipher=a.extend({cfg:a.cfg.extend({kdf:p}),encrypt:function(b,c,d,l){l=this.cfg.extend(l);d=l.kdf.execute(d,
|
31
|
+
b.keySize,b.ivSize);l.iv=d.iv;b=a.encrypt.call(this,b,c,d.key,l);b.mixIn(d);return b},decrypt:function(b,c,d,l){l=this.cfg.extend(l);c=this._parse(c,l.format);d=l.kdf.execute(d,b.keySize,b.ivSize,c.salt);l.iv=d.iv;return a.decrypt.call(this,b,c,d.key,l)}})}();
|
32
|
+
(function(){for(var u=CryptoJS,p=u.lib.BlockCipher,d=u.algo,l=[],s=[],t=[],r=[],w=[],v=[],b=[],x=[],q=[],n=[],a=[],c=0;256>c;c++)a[c]=128>c?c<<1:c<<1^283;for(var e=0,j=0,c=0;256>c;c++){var k=j^j<<1^j<<2^j<<3^j<<4,k=k>>>8^k&255^99;l[e]=k;s[k]=e;var z=a[e],F=a[z],G=a[F],y=257*a[k]^16843008*k;t[e]=y<<24|y>>>8;r[e]=y<<16|y>>>16;w[e]=y<<8|y>>>24;v[e]=y;y=16843009*G^65537*F^257*z^16843008*e;b[k]=y<<24|y>>>8;x[k]=y<<16|y>>>16;q[k]=y<<8|y>>>24;n[k]=y;e?(e=z^a[a[a[G^z]]],j^=a[a[j]]):e=j=1}var H=[0,1,2,4,8,
|
33
|
+
16,32,64,128,27,54],d=d.AES=p.extend({_doReset:function(){for(var a=this._key,c=a.words,d=a.sigBytes/4,a=4*((this._nRounds=d+6)+1),e=this._keySchedule=[],j=0;j<a;j++)if(j<d)e[j]=c[j];else{var k=e[j-1];j%d?6<d&&4==j%d&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=H[j/d|0]<<24);e[j]=e[j-d]^k}c=this._invKeySchedule=[];for(d=0;d<a;d++)j=a-d,k=d%4?e[j]:e[j-4],c[d]=4>d||4>=j?k:b[l[k>>>24]]^x[l[k>>>16&255]]^q[l[k>>>
|
34
|
+
8&255]]^n[l[k&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,t,r,w,v,l)},decryptBlock:function(a,c){var d=a[c+1];a[c+1]=a[c+3];a[c+3]=d;this._doCryptBlock(a,c,this._invKeySchedule,b,x,q,n,s);d=a[c+1];a[c+1]=a[c+3];a[c+3]=d},_doCryptBlock:function(a,b,c,d,e,j,l,f){for(var m=this._nRounds,g=a[b]^c[0],h=a[b+1]^c[1],k=a[b+2]^c[2],n=a[b+3]^c[3],p=4,r=1;r<m;r++)var q=d[g>>>24]^e[h>>>16&255]^j[k>>>8&255]^l[n&255]^c[p++],s=d[h>>>24]^e[k>>>16&255]^j[n>>>8&255]^l[g&255]^c[p++],t=
|
35
|
+
d[k>>>24]^e[n>>>16&255]^j[g>>>8&255]^l[h&255]^c[p++],n=d[n>>>24]^e[g>>>16&255]^j[h>>>8&255]^l[k&255]^c[p++],g=q,h=s,k=t;q=(f[g>>>24]<<24|f[h>>>16&255]<<16|f[k>>>8&255]<<8|f[n&255])^c[p++];s=(f[h>>>24]<<24|f[k>>>16&255]<<16|f[n>>>8&255]<<8|f[g&255])^c[p++];t=(f[k>>>24]<<24|f[n>>>16&255]<<16|f[g>>>8&255]<<8|f[h&255])^c[p++];n=(f[n>>>24]<<24|f[g>>>16&255]<<16|f[h>>>8&255]<<8|f[k&255])^c[p++];a[b]=q;a[b+1]=s;a[b+2]=t;a[b+3]=n},keySize:8});u.AES=p._createHelper(d)})();
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
r=l.WordArray=t.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=p?c:4*a.length},toString:function(a){return(a||v).stringify(this)},concat:function(a){var c=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var k=0;k<a;k++)c[j+k>>>2]|=(e[k>>>2]>>>24-8*(k%4)&255)<<24-8*((j+k)%4);else if(65535<e.length)for(k=0;k<a;k+=4)c[j+k>>>2]=e[k>>>2];else c.push.apply(c,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<
|
9
|
+
32-8*(c%4);a.length=u.ceil(c/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],e=0;e<a;e+=4)c.push(4294967296*u.random()|0);return new r.init(c,a)}}),w=d.enc={},v=w.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++){var k=c[j>>>2]>>>24-8*(j%4)&255;e.push((k>>>4).toString(16));e.push((k&15).toString(16))}return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j+=2)e[j>>>3]|=parseInt(a.substr(j,
|
10
|
+
2),16)<<24-4*(j%8);return new r.init(e,c/2)}},b=w.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++)e.push(String.fromCharCode(c[j>>>2]>>>24-8*(j%4)&255));return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j++)e[j>>>2]|=(a.charCodeAt(j)&255)<<24-8*(j%4);return new r.init(e,c)}},x=w.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
q=l.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,e=c.words,j=c.sigBytes,k=this.blockSize,b=j/(4*k),b=a?u.ceil(b):u.max((b|0)-this._minBufferSize,0);a=b*k;j=u.min(4*a,j);if(a){for(var q=0;q<a;q+=k)this._doProcessBlock(e,q);q=e.splice(0,a);c.sigBytes-=j}return new r.init(q,j)},clone:function(){var a=t.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});l.Hasher=q.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){q.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new n.HMAC.init(a,
|
13
|
+
e)).finalize(b)}}});var n=d.algo={};return d}(Math);
|
14
|
+
(function(){var u=CryptoJS,p=u.lib.WordArray;u.enc.Base64={stringify:function(d){var l=d.words,p=d.sigBytes,t=this._map;d.clamp();d=[];for(var r=0;r<p;r+=3)for(var w=(l[r>>>2]>>>24-8*(r%4)&255)<<16|(l[r+1>>>2]>>>24-8*((r+1)%4)&255)<<8|l[r+2>>>2]>>>24-8*((r+2)%4)&255,v=0;4>v&&r+0.75*v<p;v++)d.push(t.charAt(w>>>6*(3-v)&63));if(l=t.charAt(64))for(;d.length%4;)d.push(l);return d.join("")},parse:function(d){var l=d.length,s=this._map,t=s.charAt(64);t&&(t=d.indexOf(t),-1!=t&&(l=t));for(var t=[],r=0,w=0;w<
|
15
|
+
l;w++)if(w%4){var v=s.indexOf(d.charAt(w-1))<<2*(w%4),b=s.indexOf(d.charAt(w))>>>6-2*(w%4);t[r>>>2]|=(v|b)<<24-8*(r%4);r++}return p.create(t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();
|
16
|
+
(function(u){function p(b,n,a,c,e,j,k){b=b+(n&a|~n&c)+e+k;return(b<<j|b>>>32-j)+n}function d(b,n,a,c,e,j,k){b=b+(n&c|a&~c)+e+k;return(b<<j|b>>>32-j)+n}function l(b,n,a,c,e,j,k){b=b+(n^a^c)+e+k;return(b<<j|b>>>32-j)+n}function s(b,n,a,c,e,j,k){b=b+(a^(n|~c))+e+k;return(b<<j|b>>>32-j)+n}for(var t=CryptoJS,r=t.lib,w=r.WordArray,v=r.Hasher,r=t.algo,b=[],x=0;64>x;x++)b[x]=4294967296*u.abs(u.sin(x+1))|0;r=r.MD5=v.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},
|
17
|
+
_doProcessBlock:function(q,n){for(var a=0;16>a;a++){var c=n+a,e=q[c];q[c]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var a=this._hash.words,c=q[n+0],e=q[n+1],j=q[n+2],k=q[n+3],z=q[n+4],r=q[n+5],t=q[n+6],w=q[n+7],v=q[n+8],A=q[n+9],B=q[n+10],C=q[n+11],u=q[n+12],D=q[n+13],E=q[n+14],x=q[n+15],f=a[0],m=a[1],g=a[2],h=a[3],f=p(f,m,g,h,c,7,b[0]),h=p(h,f,m,g,e,12,b[1]),g=p(g,h,f,m,j,17,b[2]),m=p(m,g,h,f,k,22,b[3]),f=p(f,m,g,h,z,7,b[4]),h=p(h,f,m,g,r,12,b[5]),g=p(g,h,f,m,t,17,b[6]),m=p(m,g,h,f,w,22,b[7]),
|
18
|
+
f=p(f,m,g,h,v,7,b[8]),h=p(h,f,m,g,A,12,b[9]),g=p(g,h,f,m,B,17,b[10]),m=p(m,g,h,f,C,22,b[11]),f=p(f,m,g,h,u,7,b[12]),h=p(h,f,m,g,D,12,b[13]),g=p(g,h,f,m,E,17,b[14]),m=p(m,g,h,f,x,22,b[15]),f=d(f,m,g,h,e,5,b[16]),h=d(h,f,m,g,t,9,b[17]),g=d(g,h,f,m,C,14,b[18]),m=d(m,g,h,f,c,20,b[19]),f=d(f,m,g,h,r,5,b[20]),h=d(h,f,m,g,B,9,b[21]),g=d(g,h,f,m,x,14,b[22]),m=d(m,g,h,f,z,20,b[23]),f=d(f,m,g,h,A,5,b[24]),h=d(h,f,m,g,E,9,b[25]),g=d(g,h,f,m,k,14,b[26]),m=d(m,g,h,f,v,20,b[27]),f=d(f,m,g,h,D,5,b[28]),h=d(h,f,
|
19
|
+
m,g,j,9,b[29]),g=d(g,h,f,m,w,14,b[30]),m=d(m,g,h,f,u,20,b[31]),f=l(f,m,g,h,r,4,b[32]),h=l(h,f,m,g,v,11,b[33]),g=l(g,h,f,m,C,16,b[34]),m=l(m,g,h,f,E,23,b[35]),f=l(f,m,g,h,e,4,b[36]),h=l(h,f,m,g,z,11,b[37]),g=l(g,h,f,m,w,16,b[38]),m=l(m,g,h,f,B,23,b[39]),f=l(f,m,g,h,D,4,b[40]),h=l(h,f,m,g,c,11,b[41]),g=l(g,h,f,m,k,16,b[42]),m=l(m,g,h,f,t,23,b[43]),f=l(f,m,g,h,A,4,b[44]),h=l(h,f,m,g,u,11,b[45]),g=l(g,h,f,m,x,16,b[46]),m=l(m,g,h,f,j,23,b[47]),f=s(f,m,g,h,c,6,b[48]),h=s(h,f,m,g,w,10,b[49]),g=s(g,h,f,m,
|
20
|
+
E,15,b[50]),m=s(m,g,h,f,r,21,b[51]),f=s(f,m,g,h,u,6,b[52]),h=s(h,f,m,g,k,10,b[53]),g=s(g,h,f,m,B,15,b[54]),m=s(m,g,h,f,e,21,b[55]),f=s(f,m,g,h,v,6,b[56]),h=s(h,f,m,g,x,10,b[57]),g=s(g,h,f,m,t,15,b[58]),m=s(m,g,h,f,D,21,b[59]),f=s(f,m,g,h,z,6,b[60]),h=s(h,f,m,g,C,10,b[61]),g=s(g,h,f,m,j,15,b[62]),m=s(m,g,h,f,A,21,b[63]);a[0]=a[0]+f|0;a[1]=a[1]+m|0;a[2]=a[2]+g|0;a[3]=a[3]+h|0},_doFinalize:function(){var b=this._data,n=b.words,a=8*this._nDataBytes,c=8*b.sigBytes;n[c>>>5]|=128<<24-c%32;var e=u.floor(a/
|
21
|
+
4294967296);n[(c+64>>>9<<4)+15]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;n[(c+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;b.sigBytes=4*(n.length+1);this._process();b=this._hash;n=b.words;for(a=0;4>a;a++)c=n[a],n[a]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;return b},clone:function(){var b=v.clone.call(this);b._hash=this._hash.clone();return b}});t.MD5=v._createHelper(r);t.HmacMD5=v._createHmacHelper(r)})(Math);
|
22
|
+
(function(){var u=CryptoJS,p=u.lib,d=p.Base,l=p.WordArray,p=u.algo,s=p.EvpKDF=d.extend({cfg:d.extend({keySize:4,hasher:p.MD5,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var p=this.cfg,s=p.hasher.create(),b=l.create(),u=b.words,q=p.keySize,p=p.iterations;u.length<q;){n&&s.update(n);var n=s.update(d).finalize(r);s.reset();for(var a=1;a<p;a++)n=s.finalize(n),s.reset();b.concat(n)}b.sigBytes=4*q;return b}});u.EvpKDF=function(d,l,p){return s.create(p).compute(d,
|
23
|
+
l)}})();
|
24
|
+
CryptoJS.lib.Cipher||function(u){var p=CryptoJS,d=p.lib,l=d.Base,s=d.WordArray,t=d.BufferedBlockAlgorithm,r=p.enc.Base64,w=p.algo.EvpKDF,v=d.Cipher=t.extend({cfg:l.extend(),createEncryptor:function(e,a){return this.create(this._ENC_XFORM_MODE,e,a)},createDecryptor:function(e,a){return this.create(this._DEC_XFORM_MODE,e,a)},init:function(e,a,b){this.cfg=this.cfg.extend(b);this._xformMode=e;this._key=a;this.reset()},reset:function(){t.reset.call(this);this._doReset()},process:function(e){this._append(e);return this._process()},
|
25
|
+
finalize:function(e){e&&this._append(e);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(b,k,d){return("string"==typeof k?c:a).encrypt(e,b,k,d)},decrypt:function(b,k,d){return("string"==typeof k?c:a).decrypt(e,b,k,d)}}}});d.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var b=p.mode={},x=function(e,a,b){var c=this._iv;c?this._iv=u:c=this._prevBlock;for(var d=0;d<b;d++)e[a+d]^=
|
26
|
+
c[d]},q=(d.BlockCipherMode=l.extend({createEncryptor:function(e,a){return this.Encryptor.create(e,a)},createDecryptor:function(e,a){return this.Decryptor.create(e,a)},init:function(e,a){this._cipher=e;this._iv=a}})).extend();q.Encryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize;x.call(this,e,a,c);b.encryptBlock(e,a);this._prevBlock=e.slice(a,a+c)}});q.Decryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize,d=e.slice(a,a+c);b.decryptBlock(e,a);x.call(this,
|
27
|
+
e,a,c);this._prevBlock=d}});b=b.CBC=q;q=(p.pad={}).Pkcs7={pad:function(a,b){for(var c=4*b,c=c-a.sigBytes%c,d=c<<24|c<<16|c<<8|c,l=[],n=0;n<c;n+=4)l.push(d);c=s.create(l,c);a.concat(c)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};d.BlockCipher=v.extend({cfg:v.cfg.extend({mode:b,padding:q}),reset:function(){v.reset.call(this);var a=this.cfg,b=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=a.createEncryptor;else c=a.createDecryptor,this._minBufferSize=1;this._mode=c.call(a,
|
28
|
+
this,b&&b.words)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var b=this._process(!0)}else b=this._process(!0),a.unpad(b);return b},blockSize:4});var n=d.CipherParams=l.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}}),b=(p.format={}).OpenSSL={stringify:function(a){var b=a.ciphertext;a=a.salt;return(a?s.create([1398893684,
|
29
|
+
1701076831]).concat(a).concat(b):b).toString(r)},parse:function(a){a=r.parse(a);var b=a.words;if(1398893684==b[0]&&1701076831==b[1]){var c=s.create(b.slice(2,4));b.splice(0,4);a.sigBytes-=16}return n.create({ciphertext:a,salt:c})}},a=d.SerializableCipher=l.extend({cfg:l.extend({format:b}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var l=a.createEncryptor(c,d);b=l.finalize(b);l=l.cfg;return n.create({ciphertext:b,key:c,iv:l.iv,algorithm:a,mode:l.mode,padding:l.padding,blockSize:a.blockSize,formatter:d.format})},
|
30
|
+
decrypt:function(a,b,c,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(c,d).finalize(b.ciphertext)},_parse:function(a,b){return"string"==typeof a?b.parse(a,this):a}}),p=(p.kdf={}).OpenSSL={execute:function(a,b,c,d){d||(d=s.random(8));a=w.create({keySize:b+c}).compute(a,d);c=s.create(a.words.slice(b),4*c);a.sigBytes=4*b;return n.create({key:a,iv:c,salt:d})}},c=d.PasswordBasedCipher=a.extend({cfg:a.cfg.extend({kdf:p}),encrypt:function(b,c,d,l){l=this.cfg.extend(l);d=l.kdf.execute(d,
|
31
|
+
b.keySize,b.ivSize);l.iv=d.iv;b=a.encrypt.call(this,b,c,d.key,l);b.mixIn(d);return b},decrypt:function(b,c,d,l){l=this.cfg.extend(l);c=this._parse(c,l.format);d=l.kdf.execute(d,b.keySize,b.ivSize,c.salt);l.iv=d.iv;return a.decrypt.call(this,b,c,d.key,l)}})}();
|
32
|
+
(function(){for(var u=CryptoJS,p=u.lib.BlockCipher,d=u.algo,l=[],s=[],t=[],r=[],w=[],v=[],b=[],x=[],q=[],n=[],a=[],c=0;256>c;c++)a[c]=128>c?c<<1:c<<1^283;for(var e=0,j=0,c=0;256>c;c++){var k=j^j<<1^j<<2^j<<3^j<<4,k=k>>>8^k&255^99;l[e]=k;s[k]=e;var z=a[e],F=a[z],G=a[F],y=257*a[k]^16843008*k;t[e]=y<<24|y>>>8;r[e]=y<<16|y>>>16;w[e]=y<<8|y>>>24;v[e]=y;y=16843009*G^65537*F^257*z^16843008*e;b[k]=y<<24|y>>>8;x[k]=y<<16|y>>>16;q[k]=y<<8|y>>>24;n[k]=y;e?(e=z^a[a[a[G^z]]],j^=a[a[j]]):e=j=1}var H=[0,1,2,4,8,
|
33
|
+
16,32,64,128,27,54],d=d.AES=p.extend({_doReset:function(){for(var a=this._key,c=a.words,d=a.sigBytes/4,a=4*((this._nRounds=d+6)+1),e=this._keySchedule=[],j=0;j<a;j++)if(j<d)e[j]=c[j];else{var k=e[j-1];j%d?6<d&&4==j%d&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=H[j/d|0]<<24);e[j]=e[j-d]^k}c=this._invKeySchedule=[];for(d=0;d<a;d++)j=a-d,k=d%4?e[j]:e[j-4],c[d]=4>d||4>=j?k:b[l[k>>>24]]^x[l[k>>>16&255]]^q[l[k>>>
|
34
|
+
8&255]]^n[l[k&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,t,r,w,v,l)},decryptBlock:function(a,c){var d=a[c+1];a[c+1]=a[c+3];a[c+3]=d;this._doCryptBlock(a,c,this._invKeySchedule,b,x,q,n,s);d=a[c+1];a[c+1]=a[c+3];a[c+3]=d},_doCryptBlock:function(a,b,c,d,e,j,l,f){for(var m=this._nRounds,g=a[b]^c[0],h=a[b+1]^c[1],k=a[b+2]^c[2],n=a[b+3]^c[3],p=4,r=1;r<m;r++)var q=d[g>>>24]^e[h>>>16&255]^j[k>>>8&255]^l[n&255]^c[p++],s=d[h>>>24]^e[k>>>16&255]^j[n>>>8&255]^l[g&255]^c[p++],t=
|
35
|
+
d[k>>>24]^e[n>>>16&255]^j[g>>>8&255]^l[h&255]^c[p++],n=d[n>>>24]^e[g>>>16&255]^j[h>>>8&255]^l[k&255]^c[p++],g=q,h=s,k=t;q=(f[g>>>24]<<24|f[h>>>16&255]<<16|f[k>>>8&255]<<8|f[n&255])^c[p++];s=(f[h>>>24]<<24|f[k>>>16&255]<<16|f[n>>>8&255]<<8|f[g&255])^c[p++];t=(f[k>>>24]<<24|f[n>>>16&255]<<16|f[g>>>8&255]<<8|f[h&255])^c[p++];n=(f[n>>>24]<<24|f[g>>>16&255]<<16|f[h>>>8&255]<<8|f[k&255])^c[p++];a[b]=q;a[b+1]=s;a[b+2]=t;a[b+3]=n},keySize:8});u.AES=p._createHelper(d)})();
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(q,r){var k={},g=k.lib={},p=function(){},t=g.Base={extend:function(b){p.prototype=this;var j=new p;b&&j.mixIn(b);j.hasOwnProperty("init")||(j.init=function(){j.$super.init.apply(this,arguments)});j.init.prototype=j;j.$super=this;return j},create:function(){var b=this.extend();b.init.apply(b,arguments);return b},init:function(){},mixIn:function(b){for(var j in b)b.hasOwnProperty(j)&&(this[j]=b[j]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
n=g.WordArray=t.extend({init:function(b,j){b=this.words=b||[];this.sigBytes=j!=r?j:4*b.length},toString:function(b){return(b||u).stringify(this)},concat:function(b){var j=this.words,a=b.words,l=this.sigBytes;b=b.sigBytes;this.clamp();if(l%4)for(var h=0;h<b;h++)j[l+h>>>2]|=(a[h>>>2]>>>24-8*(h%4)&255)<<24-8*((l+h)%4);else if(65535<a.length)for(h=0;h<b;h+=4)j[l+h>>>2]=a[h>>>2];else j.push.apply(j,a);this.sigBytes+=b;return this},clamp:function(){var b=this.words,j=this.sigBytes;b[j>>>2]&=4294967295<<
|
9
|
+
32-8*(j%4);b.length=q.ceil(j/4)},clone:function(){var b=t.clone.call(this);b.words=this.words.slice(0);return b},random:function(b){for(var j=[],a=0;a<b;a+=4)j.push(4294967296*q.random()|0);return new n.init(j,b)}}),v=k.enc={},u=v.Hex={stringify:function(b){var a=b.words;b=b.sigBytes;for(var h=[],l=0;l<b;l++){var m=a[l>>>2]>>>24-8*(l%4)&255;h.push((m>>>4).toString(16));h.push((m&15).toString(16))}return h.join("")},parse:function(b){for(var a=b.length,h=[],l=0;l<a;l+=2)h[l>>>3]|=parseInt(b.substr(l,
|
10
|
+
2),16)<<24-4*(l%8);return new n.init(h,a/2)}},a=v.Latin1={stringify:function(b){var a=b.words;b=b.sigBytes;for(var h=[],l=0;l<b;l++)h.push(String.fromCharCode(a[l>>>2]>>>24-8*(l%4)&255));return h.join("")},parse:function(b){for(var a=b.length,h=[],l=0;l<a;l++)h[l>>>2]|=(b.charCodeAt(l)&255)<<24-8*(l%4);return new n.init(h,a)}},s=v.Utf8={stringify:function(b){try{return decodeURIComponent(escape(a.stringify(b)))}catch(h){throw Error("Malformed UTF-8 data");}},parse:function(b){return a.parse(unescape(encodeURIComponent(b)))}},
|
11
|
+
h=g.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new n.init;this._nDataBytes=0},_append:function(b){"string"==typeof b&&(b=s.parse(b));this._data.concat(b);this._nDataBytes+=b.sigBytes},_process:function(b){var a=this._data,h=a.words,l=a.sigBytes,m=this.blockSize,k=l/(4*m),k=b?q.ceil(k):q.max((k|0)-this._minBufferSize,0);b=k*m;l=q.min(4*b,l);if(b){for(var g=0;g<b;g+=m)this._doProcessBlock(h,g);g=h.splice(0,b);a.sigBytes-=l}return new n.init(g,l)},clone:function(){var b=t.clone.call(this);
|
12
|
+
b._data=this._data.clone();return b},_minBufferSize:0});g.Hasher=h.extend({cfg:t.extend(),init:function(b){this.cfg=this.cfg.extend(b);this.reset()},reset:function(){h.reset.call(this);this._doReset()},update:function(b){this._append(b);this._process();return this},finalize:function(b){b&&this._append(b);return this._doFinalize()},blockSize:16,_createHelper:function(b){return function(a,h){return(new b.init(h)).finalize(a)}},_createHmacHelper:function(b){return function(a,h){return(new m.HMAC.init(b,
|
13
|
+
h)).finalize(a)}}});var m=k.algo={};return k}(Math);
|
14
|
+
(function(q){function r(a,m,b,j,g,l,k){a=a+(m&b|~m&j)+g+k;return(a<<l|a>>>32-l)+m}function k(a,m,b,j,g,l,k){a=a+(m&j|b&~j)+g+k;return(a<<l|a>>>32-l)+m}function g(a,m,b,j,g,l,k){a=a+(m^b^j)+g+k;return(a<<l|a>>>32-l)+m}function p(a,g,b,j,k,l,p){a=a+(b^(g|~j))+k+p;return(a<<l|a>>>32-l)+g}for(var t=CryptoJS,n=t.lib,v=n.WordArray,u=n.Hasher,n=t.algo,a=[],s=0;64>s;s++)a[s]=4294967296*q.abs(q.sin(s+1))|0;n=n.MD5=u.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},
|
15
|
+
_doProcessBlock:function(h,m){for(var b=0;16>b;b++){var j=m+b,n=h[j];h[j]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var b=this._hash.words,j=h[m+0],n=h[m+1],l=h[m+2],q=h[m+3],t=h[m+4],s=h[m+5],u=h[m+6],v=h[m+7],w=h[m+8],x=h[m+9],y=h[m+10],z=h[m+11],A=h[m+12],B=h[m+13],C=h[m+14],D=h[m+15],c=b[0],d=b[1],e=b[2],f=b[3],c=r(c,d,e,f,j,7,a[0]),f=r(f,c,d,e,n,12,a[1]),e=r(e,f,c,d,l,17,a[2]),d=r(d,e,f,c,q,22,a[3]),c=r(c,d,e,f,t,7,a[4]),f=r(f,c,d,e,s,12,a[5]),e=r(e,f,c,d,u,17,a[6]),d=r(d,e,f,c,v,22,a[7]),
|
16
|
+
c=r(c,d,e,f,w,7,a[8]),f=r(f,c,d,e,x,12,a[9]),e=r(e,f,c,d,y,17,a[10]),d=r(d,e,f,c,z,22,a[11]),c=r(c,d,e,f,A,7,a[12]),f=r(f,c,d,e,B,12,a[13]),e=r(e,f,c,d,C,17,a[14]),d=r(d,e,f,c,D,22,a[15]),c=k(c,d,e,f,n,5,a[16]),f=k(f,c,d,e,u,9,a[17]),e=k(e,f,c,d,z,14,a[18]),d=k(d,e,f,c,j,20,a[19]),c=k(c,d,e,f,s,5,a[20]),f=k(f,c,d,e,y,9,a[21]),e=k(e,f,c,d,D,14,a[22]),d=k(d,e,f,c,t,20,a[23]),c=k(c,d,e,f,x,5,a[24]),f=k(f,c,d,e,C,9,a[25]),e=k(e,f,c,d,q,14,a[26]),d=k(d,e,f,c,w,20,a[27]),c=k(c,d,e,f,B,5,a[28]),f=k(f,c,
|
17
|
+
d,e,l,9,a[29]),e=k(e,f,c,d,v,14,a[30]),d=k(d,e,f,c,A,20,a[31]),c=g(c,d,e,f,s,4,a[32]),f=g(f,c,d,e,w,11,a[33]),e=g(e,f,c,d,z,16,a[34]),d=g(d,e,f,c,C,23,a[35]),c=g(c,d,e,f,n,4,a[36]),f=g(f,c,d,e,t,11,a[37]),e=g(e,f,c,d,v,16,a[38]),d=g(d,e,f,c,y,23,a[39]),c=g(c,d,e,f,B,4,a[40]),f=g(f,c,d,e,j,11,a[41]),e=g(e,f,c,d,q,16,a[42]),d=g(d,e,f,c,u,23,a[43]),c=g(c,d,e,f,x,4,a[44]),f=g(f,c,d,e,A,11,a[45]),e=g(e,f,c,d,D,16,a[46]),d=g(d,e,f,c,l,23,a[47]),c=p(c,d,e,f,j,6,a[48]),f=p(f,c,d,e,v,10,a[49]),e=p(e,f,c,d,
|
18
|
+
C,15,a[50]),d=p(d,e,f,c,s,21,a[51]),c=p(c,d,e,f,A,6,a[52]),f=p(f,c,d,e,q,10,a[53]),e=p(e,f,c,d,y,15,a[54]),d=p(d,e,f,c,n,21,a[55]),c=p(c,d,e,f,w,6,a[56]),f=p(f,c,d,e,D,10,a[57]),e=p(e,f,c,d,u,15,a[58]),d=p(d,e,f,c,B,21,a[59]),c=p(c,d,e,f,t,6,a[60]),f=p(f,c,d,e,z,10,a[61]),e=p(e,f,c,d,l,15,a[62]),d=p(d,e,f,c,x,21,a[63]);b[0]=b[0]+c|0;b[1]=b[1]+d|0;b[2]=b[2]+e|0;b[3]=b[3]+f|0},_doFinalize:function(){var a=this._data,g=a.words,b=8*this._nDataBytes,j=8*a.sigBytes;g[j>>>5]|=128<<24-j%32;var k=q.floor(b/
|
19
|
+
4294967296);g[(j+64>>>9<<4)+15]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;g[(j+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;a.sigBytes=4*(g.length+1);this._process();a=this._hash;g=a.words;for(b=0;4>b;b++)j=g[b],g[b]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360;return a},clone:function(){var a=u.clone.call(this);a._hash=this._hash.clone();return a}});t.MD5=u._createHelper(n);t.HmacMD5=u._createHmacHelper(n)})(Math);
|
20
|
+
(function(){var q=CryptoJS,r=q.enc.Utf8;q.algo.HMAC=q.lib.Base.extend({init:function(k,g){k=this._hasher=new k.init;"string"==typeof g&&(g=r.parse(g));var p=k.blockSize,q=4*p;g.sigBytes>q&&(g=k.finalize(g));g.clamp();for(var n=this._oKey=g.clone(),v=this._iKey=g.clone(),u=n.words,a=v.words,s=0;s<p;s++)u[s]^=1549556828,a[s]^=909522486;n.sigBytes=v.sigBytes=q;this.reset()},reset:function(){var k=this._hasher;k.reset();k.update(this._iKey)},update:function(k){this._hasher.update(k);return this},finalize:function(k){var g=
|
21
|
+
this._hasher;k=g.finalize(k);g.reset();return g.finalize(this._oKey.clone().concat(k))}})})();
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
/*
|
8
|
+
|
9
|
+
(c) 2012 by C?dric Mesnil. All rights reserved.
|
10
|
+
|
11
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
12
|
+
|
13
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
14
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
17
|
+
*/
|
18
|
+
var CryptoJS=CryptoJS||function(h,j){var c={},e=c.lib={},A=function(){},l=e.Base={extend:function(a){A.prototype=this;var d=new A;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
19
|
+
m=e.WordArray=l.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=j?d:4*a.length},toString:function(a){return(a||x).stringify(this)},concat:function(a){var d=this.words,B=a.words,f=this.sigBytes;a=a.sigBytes;this.clamp();if(f%4)for(var b=0;b<a;b++)d[f+b>>>2]|=(B[b>>>2]>>>24-8*(b%4)&255)<<24-8*((f+b)%4);else if(65535<B.length)for(b=0;b<a;b+=4)d[f+b>>>2]=B[b>>>2];else d.push.apply(d,B);this.sigBytes+=a;return this},clamp:function(){var a=this.words,d=this.sigBytes;a[d>>>2]&=4294967295<<
|
20
|
+
32-8*(d%4);a.length=h.ceil(d/4)},clone:function(){var a=l.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var d=[],b=0;b<a;b+=4)d.push(4294967296*h.random()|0);return new m.init(d,a)}}),v=c.enc={},x=v.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var b=[],f=0;f<a;f++){var c=d[f>>>2]>>>24-8*(f%4)&255;b.push((c>>>4).toString(16));b.push((c&15).toString(16))}return b.join("")},parse:function(a){for(var d=a.length,b=[],f=0;f<d;f+=2)b[f>>>3]|=parseInt(a.substr(f,
|
21
|
+
2),16)<<24-4*(f%8);return new m.init(b,d/2)}},w=v.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var b=[],f=0;f<a;f++)b.push(String.fromCharCode(d[f>>>2]>>>24-8*(f%4)&255));return b.join("")},parse:function(a){for(var b=a.length,c=[],f=0;f<b;f++)c[f>>>2]|=(a.charCodeAt(f)&255)<<24-8*(f%4);return new m.init(c,b)}},k=v.Utf8={stringify:function(a){try{return decodeURIComponent(escape(w.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return w.parse(unescape(encodeURIComponent(a)))}},
|
22
|
+
u=e.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new m.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,c=b.words,f=b.sigBytes,e=this.blockSize,k=f/(4*e),k=a?h.ceil(k):h.max((k|0)-this._minBufferSize,0);a=k*e;f=h.min(4*a,f);if(a){for(var u=0;u<a;u+=e)this._doProcessBlock(c,u);u=c.splice(0,a);b.sigBytes-=f}return new m.init(u,f)},clone:function(){var a=l.clone.call(this);
|
23
|
+
a._data=this._data.clone();return a},_minBufferSize:0});e.Hasher=u.extend({cfg:l.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){u.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return(new a.init(c)).finalize(b)}},_createHmacHelper:function(a){return function(d,c){return(new b.HMAC.init(a,
|
24
|
+
c)).finalize(d)}}});var b=c.algo={};return c}(Math);
|
25
|
+
(function(){var h=CryptoJS,j=h.lib,c=j.WordArray,e=j.Hasher,j=h.algo,A=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=c.create([11,14,15,12,
|
26
|
+
5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),w=c.create([1352829926,1548603684,1836072691,
|
27
|
+
2053994217,0]),j=j.RIPEMD160=e.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,e){for(var b=0;16>b;b++){var a=e+b,d=c[a];c[a]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var a=this._hash.words,d=x.words,h=w.words,f=A.words,j=l.words,E=m.words,F=v.words,C,n,p,q,y,D,r,s,t,z;D=C=a[0];r=n=a[1];s=p=a[2];t=q=a[3];z=y=a[4];for(var g,b=0;80>b;b+=1)g=C+c[e+f[b]]|0,g=16>b?g+((n^p^q)+d[0]):32>b?g+((n&p|~n&q)+d[1]):48>b?
|
28
|
+
g+(((n|~p)^q)+d[2]):64>b?g+((n&q|p&~q)+d[3]):g+((n^(p|~q))+d[4]),g|=0,g=g<<E[b]|g>>>32-E[b],g=g+y|0,C=y,y=q,q=p<<10|p>>>22,p=n,n=g,g=D+c[e+j[b]]|0,g=16>b?g+((r^(s|~t))+h[0]):32>b?g+((r&t|s&~t)+h[1]):48>b?g+(((r|~s)^t)+h[2]):64>b?g+((r&s|~r&t)+h[3]):g+((r^s^t)+h[4]),g|=0,g=g<<F[b]|g>>>32-F[b],g=g+z|0,D=z,z=t,t=s<<10|s>>>22,s=r,r=g;g=a[1]+p+t|0;a[1]=a[2]+q+z|0;a[2]=a[3]+y+D|0;a[3]=a[4]+C+r|0;a[4]=a[0]+n+s|0;a[0]=g},_doFinalize:function(){var c=this._data,e=c.words,b=8*this._nDataBytes,a=8*c.sigBytes;
|
29
|
+
e[a>>>5]|=128<<24-a%32;e[(a+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;c.sigBytes=4*(e.length+1);this._process();c=this._hash;e=c.words;for(b=0;5>b;b++)a=e[b],e[b]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;return c},clone:function(){var c=e.clone.call(this);c._hash=this._hash.clone();return c}});h.RIPEMD160=e._createHelper(j);h.HmacRIPEMD160=e._createHmacHelper(j)})(Math);
|
30
|
+
(function(){var h=CryptoJS,j=h.enc.Utf8;h.algo.HMAC=h.lib.Base.extend({init:function(c,e){c=this._hasher=new c.init;"string"==typeof e&&(e=j.parse(e));var h=c.blockSize,l=4*h;e.sigBytes>l&&(e=c.finalize(e));e.clamp();for(var m=this._oKey=e.clone(),v=this._iKey=e.clone(),x=m.words,w=v.words,k=0;k<h;k++)x[k]^=1549556828,w[k]^=909522486;m.sigBytes=v.sigBytes=l;this.reset()},reset:function(){var c=this._hasher;c.reset();c.update(this._iKey)},update:function(c){this._hasher.update(c);return this},finalize:function(c){var e=
|
31
|
+
this._hasher;c=e.finalize(c);e.reset();return e.finalize(this._oKey.clone().concat(c))}})})();
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(g,l){var e={},d=e.lib={},m=function(){},k=d.Base={extend:function(a){m.prototype=this;var c=new m;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
p=d.WordArray=k.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=l?c:4*a.length},toString:function(a){return(a||n).stringify(this)},concat:function(a){var c=this.words,q=a.words,f=this.sigBytes;a=a.sigBytes;this.clamp();if(f%4)for(var b=0;b<a;b++)c[f+b>>>2]|=(q[b>>>2]>>>24-8*(b%4)&255)<<24-8*((f+b)%4);else if(65535<q.length)for(b=0;b<a;b+=4)c[f+b>>>2]=q[b>>>2];else c.push.apply(c,q);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<
|
9
|
+
32-8*(c%4);a.length=g.ceil(c/4)},clone:function(){var a=k.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],b=0;b<a;b+=4)c.push(4294967296*g.random()|0);return new p.init(c,a)}}),b=e.enc={},n=b.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var b=[],f=0;f<a;f++){var d=c[f>>>2]>>>24-8*(f%4)&255;b.push((d>>>4).toString(16));b.push((d&15).toString(16))}return b.join("")},parse:function(a){for(var c=a.length,b=[],f=0;f<c;f+=2)b[f>>>3]|=parseInt(a.substr(f,
|
10
|
+
2),16)<<24-4*(f%8);return new p.init(b,c/2)}},j=b.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var b=[],f=0;f<a;f++)b.push(String.fromCharCode(c[f>>>2]>>>24-8*(f%4)&255));return b.join("")},parse:function(a){for(var c=a.length,b=[],f=0;f<c;f++)b[f>>>2]|=(a.charCodeAt(f)&255)<<24-8*(f%4);return new p.init(b,c)}},h=b.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
r=d.BufferedBlockAlgorithm=k.extend({reset:function(){this._data=new p.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=h.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,b=c.words,f=c.sigBytes,d=this.blockSize,e=f/(4*d),e=a?g.ceil(e):g.max((e|0)-this._minBufferSize,0);a=e*d;f=g.min(4*a,f);if(a){for(var k=0;k<a;k+=d)this._doProcessBlock(b,k);k=b.splice(0,a);c.sigBytes-=f}return new p.init(k,f)},clone:function(){var a=k.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});d.Hasher=r.extend({cfg:k.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){r.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,d){return(new a.init(d)).finalize(b)}},_createHmacHelper:function(a){return function(b,d){return(new s.HMAC.init(a,
|
13
|
+
d)).finalize(b)}}});var s=e.algo={};return e}(Math);
|
14
|
+
(function(){var g=CryptoJS,l=g.lib,e=l.WordArray,d=l.Hasher,m=[],l=g.algo.SHA1=d.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,e){for(var b=this._hash.words,n=b[0],j=b[1],h=b[2],g=b[3],l=b[4],a=0;80>a;a++){if(16>a)m[a]=d[e+a]|0;else{var c=m[a-3]^m[a-8]^m[a-14]^m[a-16];m[a]=c<<1|c>>>31}c=(n<<5|n>>>27)+l+m[a];c=20>a?c+((j&h|~j&g)+1518500249):40>a?c+((j^h^g)+1859775393):60>a?c+((j&h|j&g|h&g)-1894007588):c+((j^h^
|
15
|
+
g)-899497514);l=g;g=h;h=j<<30|j>>>2;j=n;n=c}b[0]=b[0]+n|0;b[1]=b[1]+j|0;b[2]=b[2]+h|0;b[3]=b[3]+g|0;b[4]=b[4]+l|0},_doFinalize:function(){var d=this._data,e=d.words,b=8*this._nDataBytes,g=8*d.sigBytes;e[g>>>5]|=128<<24-g%32;e[(g+64>>>9<<4)+14]=Math.floor(b/4294967296);e[(g+64>>>9<<4)+15]=b;d.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var e=d.clone.call(this);e._hash=this._hash.clone();return e}});g.SHA1=d._createHelper(l);g.HmacSHA1=d._createHmacHelper(l)})();
|
16
|
+
(function(){var g=CryptoJS,l=g.enc.Utf8;g.algo.HMAC=g.lib.Base.extend({init:function(e,d){e=this._hasher=new e.init;"string"==typeof d&&(d=l.parse(d));var g=e.blockSize,k=4*g;d.sigBytes>k&&(d=e.finalize(d));d.clamp();for(var p=this._oKey=d.clone(),b=this._iKey=d.clone(),n=p.words,j=b.words,h=0;h<g;h++)n[h]^=1549556828,j[h]^=909522486;p.sigBytes=b.sigBytes=k;this.reset()},reset:function(){var e=this._hasher;e.reset();e.update(this._iKey)},update:function(e){this._hasher.update(e);return this},finalize:function(e){var d=
|
17
|
+
this._hasher;e=d.finalize(e);d.reset();return d.finalize(this._oKey.clone().concat(e))}})})();
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(j,k){var c={},e=c.lib={},p=function(){},m=e.Base={extend:function(a){p.prototype=this;var d=new p;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
r=e.WordArray=m.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=k?d:4*a.length},toString:function(a){return(a||l).stringify(this)},concat:function(a){var d=this.words,f=a.words,b=this.sigBytes;a=a.sigBytes;this.clamp();if(b%4)for(var g=0;g<a;g++)d[b+g>>>2]|=(f[g>>>2]>>>24-8*(g%4)&255)<<24-8*((b+g)%4);else if(65535<f.length)for(g=0;g<a;g+=4)d[b+g>>>2]=f[g>>>2];else d.push.apply(d,f);this.sigBytes+=a;return this},clamp:function(){var a=this.words,d=this.sigBytes;a[d>>>2]&=4294967295<<
|
9
|
+
32-8*(d%4);a.length=j.ceil(d/4)},clone:function(){var a=m.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var d=[],f=0;f<a;f+=4)d.push(4294967296*j.random()|0);return new r.init(d,a)}}),s=c.enc={},l=s.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var f=[],b=0;b<a;b++){var g=d[b>>>2]>>>24-8*(b%4)&255;f.push((g>>>4).toString(16));f.push((g&15).toString(16))}return f.join("")},parse:function(a){for(var d=a.length,f=[],b=0;b<d;b+=2)f[b>>>3]|=parseInt(a.substr(b,
|
10
|
+
2),16)<<24-4*(b%8);return new r.init(f,d/2)}},n=s.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var f=[],b=0;b<a;b++)f.push(String.fromCharCode(d[b>>>2]>>>24-8*(b%4)&255));return f.join("")},parse:function(a){for(var d=a.length,f=[],b=0;b<d;b++)f[b>>>2]|=(a.charCodeAt(b)&255)<<24-8*(b%4);return new r.init(f,d)}},h=s.Utf8={stringify:function(a){try{return decodeURIComponent(escape(n.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return n.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
u=e.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=h.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var d=this._data,f=d.words,b=d.sigBytes,g=this.blockSize,c=b/(4*g),c=a?j.ceil(c):j.max((c|0)-this._minBufferSize,0);a=c*g;b=j.min(4*a,b);if(a){for(var e=0;e<a;e+=g)this._doProcessBlock(f,e);e=f.splice(0,a);d.sigBytes-=b}return new r.init(e,b)},clone:function(){var a=m.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});e.Hasher=u.extend({cfg:m.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){u.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(d,f){return(new a.init(f)).finalize(d)}},_createHmacHelper:function(a){return function(d,f){return(new t.HMAC.init(a,
|
13
|
+
f)).finalize(d)}}});var t=c.algo={};return c}(Math);
|
14
|
+
(function(j){for(var k=CryptoJS,c=k.lib,e=c.WordArray,p=c.Hasher,c=k.algo,m=[],r=[],s=function(a){return 4294967296*(a-(a|0))|0},l=2,n=0;64>n;){var h;a:{h=l;for(var u=j.sqrt(h),t=2;t<=u;t++)if(!(h%t)){h=!1;break a}h=!0}h&&(8>n&&(m[n]=s(j.pow(l,0.5))),r[n]=s(j.pow(l,1/3)),n++);l++}var a=[],c=c.SHA256=p.extend({_doReset:function(){this._hash=new e.init(m.slice(0))},_doProcessBlock:function(d,f){for(var b=this._hash.words,g=b[0],c=b[1],e=b[2],j=b[3],h=b[4],p=b[5],m=b[6],n=b[7],q=0;64>q;q++){if(16>q)a[q]=
|
15
|
+
d[f+q]|0;else{var k=a[q-15],l=a[q-2];a[q]=((k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3)+a[q-7]+((l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10)+a[q-16]}k=n+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&p^~h&m)+r[q]+a[q];l=((g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22))+(g&c^g&e^c&e);n=m;m=p;p=h;h=j+k|0;j=e;e=c;c=g;g=k+l|0}b[0]=b[0]+g|0;b[1]=b[1]+c|0;b[2]=b[2]+e|0;b[3]=b[3]+j|0;b[4]=b[4]+h|0;b[5]=b[5]+p|0;b[6]=b[6]+m|0;b[7]=b[7]+n|0},_doFinalize:function(){var a=this._data,c=a.words,b=8*this._nDataBytes,e=8*a.sigBytes;
|
16
|
+
c[e>>>5]|=128<<24-e%32;c[(e+64>>>9<<4)+14]=j.floor(b/4294967296);c[(e+64>>>9<<4)+15]=b;a.sigBytes=4*c.length;this._process();return this._hash},clone:function(){var a=p.clone.call(this);a._hash=this._hash.clone();return a}});k.SHA256=p._createHelper(c);k.HmacSHA256=p._createHmacHelper(c)})(Math);
|
17
|
+
(function(){var j=CryptoJS,k=j.lib.WordArray,c=j.algo,e=c.SHA256,c=c.SHA224=e.extend({_doReset:function(){this._hash=new k.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=e._doFinalize.call(this);c.sigBytes-=4;return c}});j.SHA224=e._createHelper(c);j.HmacSHA224=e._createHmacHelper(c)})();
|
18
|
+
(function(){var j=CryptoJS,k=j.enc.Utf8;j.algo.HMAC=j.lib.Base.extend({init:function(c,e){c=this._hasher=new c.init;"string"==typeof e&&(e=k.parse(e));var j=c.blockSize,m=4*j;e.sigBytes>m&&(e=c.finalize(e));e.clamp();for(var r=this._oKey=e.clone(),s=this._iKey=e.clone(),l=r.words,n=s.words,h=0;h<j;h++)l[h]^=1549556828,n[h]^=909522486;r.sigBytes=s.sigBytes=m;this.reset()},reset:function(){var c=this._hasher;c.reset();c.update(this._iKey)},update:function(c){this._hasher.update(c);return this},finalize:function(c){var e=
|
19
|
+
this._hasher;c=e.finalize(c);e.reset();return e.finalize(this._oKey.clone().concat(c))}})})();
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(h,s){var f={},g=f.lib={},q=function(){},m=g.Base={extend:function(a){q.prototype=this;var c=new q;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
r=g.WordArray=m.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=s?c:4*a.length},toString:function(a){return(a||k).stringify(this)},concat:function(a){var c=this.words,d=a.words,b=this.sigBytes;a=a.sigBytes;this.clamp();if(b%4)for(var e=0;e<a;e++)c[b+e>>>2]|=(d[e>>>2]>>>24-8*(e%4)&255)<<24-8*((b+e)%4);else if(65535<d.length)for(e=0;e<a;e+=4)c[b+e>>>2]=d[e>>>2];else c.push.apply(c,d);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<
|
9
|
+
32-8*(c%4);a.length=h.ceil(c/4)},clone:function(){var a=m.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],d=0;d<a;d+=4)c.push(4294967296*h.random()|0);return new r.init(c,a)}}),l=f.enc={},k=l.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var d=[],b=0;b<a;b++){var e=c[b>>>2]>>>24-8*(b%4)&255;d.push((e>>>4).toString(16));d.push((e&15).toString(16))}return d.join("")},parse:function(a){for(var c=a.length,d=[],b=0;b<c;b+=2)d[b>>>3]|=parseInt(a.substr(b,
|
10
|
+
2),16)<<24-4*(b%8);return new r.init(d,c/2)}},n=l.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var d=[],b=0;b<a;b++)d.push(String.fromCharCode(c[b>>>2]>>>24-8*(b%4)&255));return d.join("")},parse:function(a){for(var c=a.length,d=[],b=0;b<c;b++)d[b>>>2]|=(a.charCodeAt(b)&255)<<24-8*(b%4);return new r.init(d,c)}},j=l.Utf8={stringify:function(a){try{return decodeURIComponent(escape(n.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return n.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
u=g.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=j.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,d=c.words,b=c.sigBytes,e=this.blockSize,f=b/(4*e),f=a?h.ceil(f):h.max((f|0)-this._minBufferSize,0);a=f*e;b=h.min(4*a,b);if(a){for(var g=0;g<a;g+=e)this._doProcessBlock(d,g);g=d.splice(0,a);c.sigBytes-=b}return new r.init(g,b)},clone:function(){var a=m.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});g.Hasher=u.extend({cfg:m.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){u.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(c,d){return(new a.init(d)).finalize(c)}},_createHmacHelper:function(a){return function(c,d){return(new t.HMAC.init(a,
|
13
|
+
d)).finalize(c)}}});var t=f.algo={};return f}(Math);
|
14
|
+
(function(h){for(var s=CryptoJS,f=s.lib,g=f.WordArray,q=f.Hasher,f=s.algo,m=[],r=[],l=function(a){return 4294967296*(a-(a|0))|0},k=2,n=0;64>n;){var j;a:{j=k;for(var u=h.sqrt(j),t=2;t<=u;t++)if(!(j%t)){j=!1;break a}j=!0}j&&(8>n&&(m[n]=l(h.pow(k,0.5))),r[n]=l(h.pow(k,1/3)),n++);k++}var a=[],f=f.SHA256=q.extend({_doReset:function(){this._hash=new g.init(m.slice(0))},_doProcessBlock:function(c,d){for(var b=this._hash.words,e=b[0],f=b[1],g=b[2],j=b[3],h=b[4],m=b[5],n=b[6],q=b[7],p=0;64>p;p++){if(16>p)a[p]=
|
15
|
+
c[d+p]|0;else{var k=a[p-15],l=a[p-2];a[p]=((k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3)+a[p-7]+((l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10)+a[p-16]}k=q+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&m^~h&n)+r[p]+a[p];l=((e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22))+(e&f^e&g^f&g);q=n;n=m;m=h;h=j+k|0;j=g;g=f;f=e;e=k+l|0}b[0]=b[0]+e|0;b[1]=b[1]+f|0;b[2]=b[2]+g|0;b[3]=b[3]+j|0;b[4]=b[4]+h|0;b[5]=b[5]+m|0;b[6]=b[6]+n|0;b[7]=b[7]+q|0},_doFinalize:function(){var a=this._data,d=a.words,b=8*this._nDataBytes,e=8*a.sigBytes;
|
16
|
+
d[e>>>5]|=128<<24-e%32;d[(e+64>>>9<<4)+14]=h.floor(b/4294967296);d[(e+64>>>9<<4)+15]=b;a.sigBytes=4*d.length;this._process();return this._hash},clone:function(){var a=q.clone.call(this);a._hash=this._hash.clone();return a}});s.SHA256=q._createHelper(f);s.HmacSHA256=q._createHmacHelper(f)})(Math);
|
17
|
+
(function(){var h=CryptoJS,s=h.enc.Utf8;h.algo.HMAC=h.lib.Base.extend({init:function(f,g){f=this._hasher=new f.init;"string"==typeof g&&(g=s.parse(g));var h=f.blockSize,m=4*h;g.sigBytes>m&&(g=f.finalize(g));g.clamp();for(var r=this._oKey=g.clone(),l=this._iKey=g.clone(),k=r.words,n=l.words,j=0;j<h;j++)k[j]^=1549556828,n[j]^=909522486;r.sigBytes=l.sigBytes=m;this.reset()},reset:function(){var f=this._hasher;f.reset();f.update(this._iKey)},update:function(f){this._hasher.update(f);return this},finalize:function(f){var g=
|
18
|
+
this._hasher;f=g.finalize(f);g.reset();return g.finalize(this._oKey.clone().concat(f))}})})();
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(q,f){var c={},d=c.lib={},v=function(){},s=d.Base={extend:function(a){v.prototype=this;var b=new v;a&&b.mixIn(a);b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)});b.init.prototype=b;b.$super=this;return b},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
t=d.WordArray=s.extend({init:function(a,b){a=this.words=a||[];this.sigBytes=b!=f?b:4*a.length},toString:function(a){return(a||r).stringify(this)},concat:function(a){var b=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var p=0;p<a;p++)b[j+p>>>2]|=(e[p>>>2]>>>24-8*(p%4)&255)<<24-8*((j+p)%4);else if(65535<e.length)for(p=0;p<a;p+=4)b[j+p>>>2]=e[p>>>2];else b.push.apply(b,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,b=this.sigBytes;a[b>>>2]&=4294967295<<
|
9
|
+
32-8*(b%4);a.length=q.ceil(b/4)},clone:function(){var a=s.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],e=0;e<a;e+=4)b.push(4294967296*q.random()|0);return new t.init(b,a)}}),w=c.enc={},r=w.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++){var p=b[j>>>2]>>>24-8*(j%4)&255;e.push((p>>>4).toString(16));e.push((p&15).toString(16))}return e.join("")},parse:function(a){for(var b=a.length,e=[],j=0;j<b;j+=2)e[j>>>3]|=parseInt(a.substr(j,
|
10
|
+
2),16)<<24-4*(j%8);return new t.init(e,b/2)}},g=w.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++)e.push(String.fromCharCode(b[j>>>2]>>>24-8*(j%4)&255));return e.join("")},parse:function(a){for(var b=a.length,e=[],j=0;j<b;j++)e[j>>>2]|=(a.charCodeAt(j)&255)<<24-8*(j%4);return new t.init(e,b)}},n=w.Utf8={stringify:function(a){try{return decodeURIComponent(escape(g.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return g.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
u=d.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new t.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=n.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,e=b.words,j=b.sigBytes,p=this.blockSize,c=j/(4*p),c=a?q.ceil(c):q.max((c|0)-this._minBufferSize,0);a=c*p;j=q.min(4*a,j);if(a){for(var g=0;g<a;g+=p)this._doProcessBlock(e,g);g=e.splice(0,a);b.sigBytes-=j}return new t.init(g,j)},clone:function(){var a=s.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});d.Hasher=u.extend({cfg:s.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){u.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new x.HMAC.init(a,
|
13
|
+
e)).finalize(b)}}});var x=c.algo={};return c}(Math);
|
14
|
+
(function(q){var f=CryptoJS,c=f.lib,d=c.Base,v=c.WordArray,f=f.x64={};f.Word=d.extend({init:function(c,d){this.high=c;this.low=d}});f.WordArray=d.extend({init:function(c,d){c=this.words=c||[];this.sigBytes=d!=q?d:8*c.length},toX32:function(){for(var c=this.words,d=c.length,f=[],r=0;r<d;r++){var g=c[r];f.push(g.high);f.push(g.low)}return v.create(f,this.sigBytes)},clone:function(){for(var c=d.clone.call(this),f=c.words=this.words.slice(0),q=f.length,r=0;r<q;r++)f[r]=f[r].clone();return c}})})();
|
15
|
+
(function(q){for(var f=CryptoJS,c=f.lib,d=c.WordArray,v=c.Hasher,s=f.x64.Word,c=f.algo,t=[],w=[],r=[],g=1,n=0,u=0;24>u;u++){t[g+5*n]=(u+1)*(u+2)/2%64;var x=(2*g+3*n)%5,g=n%5,n=x}for(g=0;5>g;g++)for(n=0;5>n;n++)w[g+5*n]=n+5*((2*g+3*n)%5);g=1;for(n=0;24>n;n++){for(var a=x=u=0;7>a;a++){if(g&1){var b=(1<<a)-1;32>b?x^=1<<b:u^=1<<b-32}g=g&128?g<<1^113:g<<1}r[n]=s.create(u,x)}for(var e=[],g=0;25>g;g++)e[g]=s.create();c=c.SHA3=v.extend({cfg:v.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=
|
16
|
+
[],b=0;25>b;b++)a[b]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,b){for(var c=this._state,g=this.blockSize/2,k=0;k<g;k++){var d=a[b+2*k],l=a[b+2*k+1],d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,h=c[k];h.high^=l;h.low^=d}for(g=0;24>g;g++){for(k=0;5>k;k++){for(var f=d=0,m=0;5>m;m++)h=c[k+5*m],d^=h.high,f^=h.low;h=e[k];h.high=d;h.low=f}for(k=0;5>k;k++){h=e[(k+4)%5];d=e[(k+1)%5];l=d.high;m=d.low;d=h.high^
|
17
|
+
(l<<1|m>>>31);f=h.low^(m<<1|l>>>31);for(m=0;5>m;m++)h=c[k+5*m],h.high^=d,h.low^=f}for(l=1;25>l;l++)h=c[l],k=h.high,h=h.low,m=t[l],32>m?(d=k<<m|h>>>32-m,f=h<<m|k>>>32-m):(d=h<<m-32|k>>>64-m,f=k<<m-32|h>>>64-m),h=e[w[l]],h.high=d,h.low=f;h=e[0];k=c[0];h.high=k.high;h.low=k.low;for(k=0;5>k;k++)for(m=0;5>m;m++)l=k+5*m,h=c[l],d=e[l],l=e[(k+1)%5+5*m],f=e[(k+2)%5+5*m],h.high=d.high^~l.high&f.high,h.low=d.low^~l.low&f.low;h=c[0];k=r[g];h.high^=k.high;h.low^=k.low}},_doFinalize:function(){var a=this._data,
|
18
|
+
b=a.words,c=8*a.sigBytes,e=32*this.blockSize;b[c>>>5]|=1<<24-c%32;b[(q.ceil((c+1)/e)*e>>>5)-1]|=128;a.sigBytes=4*b.length;this._process();for(var a=this._state,b=this.cfg.outputLength/8,c=b/8,e=[],g=0;g<c;g++){var f=a[g],l=f.high,f=f.low,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,f=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360;e.push(f);e.push(l)}return new d.init(e,b)},clone:function(){for(var a=v.clone.call(this),b=a._state=this._state.slice(0),c=0;25>c;c++)b[c]=b[c].clone();return a}});
|
19
|
+
f.SHA3=v._createHelper(c);f.HmacSHA3=v._createHmacHelper(c)})(Math);
|
20
|
+
(function(){var q=CryptoJS,f=q.enc.Utf8;q.algo.HMAC=q.lib.Base.extend({init:function(c,d){c=this._hasher=new c.init;"string"==typeof d&&(d=f.parse(d));var q=c.blockSize,s=4*q;d.sigBytes>s&&(d=c.finalize(d));d.clamp();for(var t=this._oKey=d.clone(),w=this._iKey=d.clone(),r=t.words,g=w.words,n=0;n<q;n++)r[n]^=1549556828,g[n]^=909522486;t.sigBytes=w.sigBytes=s;this.reset()},reset:function(){var c=this._hasher;c.reset();c.update(this._iKey)},update:function(c){this._hasher.update(c);return this},finalize:function(c){var d=
|
21
|
+
this._hasher;c=d.finalize(c);d.reset();return d.finalize(this._oKey.clone().concat(c))}})})();
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(a,d){var c={},b=c.lib={},f=function(){},l=b.Base={extend:function(a){f.prototype=this;var g=new f;a&&g.mixIn(a);g.hasOwnProperty("init")||(g.init=function(){g.$super.init.apply(this,arguments)});g.init.prototype=g;g.$super=this;return g},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var g in a)a.hasOwnProperty(g)&&(this[g]=a[g]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
u=b.WordArray=l.extend({init:function(a,g){a=this.words=a||[];this.sigBytes=g!=d?g:4*a.length},toString:function(a){return(a||m).stringify(this)},concat:function(a){var g=this.words,c=a.words,e=this.sigBytes;a=a.sigBytes;this.clamp();if(e%4)for(var b=0;b<a;b++)g[e+b>>>2]|=(c[b>>>2]>>>24-8*(b%4)&255)<<24-8*((e+b)%4);else if(65535<c.length)for(b=0;b<a;b+=4)g[e+b>>>2]=c[b>>>2];else g.push.apply(g,c);this.sigBytes+=a;return this},clamp:function(){var C=this.words,g=this.sigBytes;C[g>>>2]&=4294967295<<
|
9
|
+
32-8*(g%4);C.length=a.ceil(g/4)},clone:function(){var a=l.clone.call(this);a.words=this.words.slice(0);return a},random:function(C){for(var g=[],b=0;b<C;b+=4)g.push(4294967296*a.random()|0);return new u.init(g,C)}}),k=c.enc={},m=k.Hex={stringify:function(a){var g=a.words;a=a.sigBytes;for(var b=[],e=0;e<a;e++){var c=g[e>>>2]>>>24-8*(e%4)&255;b.push((c>>>4).toString(16));b.push((c&15).toString(16))}return b.join("")},parse:function(a){for(var b=a.length,c=[],e=0;e<b;e+=2)c[e>>>3]|=parseInt(a.substr(e,
|
10
|
+
2),16)<<24-4*(e%8);return new u.init(c,b/2)}},x=k.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],e=0;e<a;e++)c.push(String.fromCharCode(b[e>>>2]>>>24-8*(e%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],e=0;e<b;e++)c[e>>>2]|=(a.charCodeAt(e)&255)<<24-8*(e%4);return new u.init(c,b)}},y=k.Utf8={stringify:function(a){try{return decodeURIComponent(escape(x.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return x.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
$=b.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=y.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,l=c.words,e=c.sigBytes,d=this.blockSize,f=e/(4*d),f=b?a.ceil(f):a.max((f|0)-this._minBufferSize,0);b=f*d;e=a.min(4*b,e);if(b){for(var k=0;k<b;k+=d)this._doProcessBlock(l,k);k=l.splice(0,b);c.sigBytes-=e}return new u.init(k,e)},clone:function(){var a=l.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});b.Hasher=$.extend({cfg:l.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){$.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return(new a.init(c)).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return(new ia.HMAC.init(a,
|
13
|
+
c)).finalize(b)}}});var ia=c.algo={};return c}(Math);
|
14
|
+
(function(a){var d=CryptoJS,c=d.lib,b=c.Base,f=c.WordArray,d=d.x64={};d.Word=b.extend({init:function(a,b){this.high=a;this.low=b}});d.WordArray=b.extend({init:function(b,c){b=this.words=b||[];this.sigBytes=c!=a?c:8*b.length},toX32:function(){for(var a=this.words,b=a.length,c=[],d=0;d<b;d++){var x=a[d];c.push(x.high);c.push(x.low)}return f.create(c,this.sigBytes)},clone:function(){for(var a=b.clone.call(this),c=a.words=this.words.slice(0),d=c.length,f=0;f<d;f++)c[f]=c[f].clone();return a}})})();
|
15
|
+
(function(){function a(){return f.create.apply(f,arguments)}for(var d=CryptoJS,c=d.lib.Hasher,b=d.x64,f=b.Word,l=b.WordArray,b=d.algo,u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),
|
16
|
+
a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,
|
17
|
+
2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),
|
18
|
+
a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,
|
19
|
+
3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],k=[],m=0;80>m;m++)k[m]=a();b=b.SHA512=c.extend({_doReset:function(){this._hash=new l.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(a,b){for(var c=this._hash.words,
|
20
|
+
d=c[0],f=c[1],g=c[2],l=c[3],e=c[4],m=c[5],L=c[6],c=c[7],Z=d.high,M=d.low,aa=f.high,N=f.low,ba=g.high,O=g.low,ca=l.high,P=l.low,da=e.high,Q=e.low,ea=m.high,R=m.low,fa=L.high,S=L.low,ga=c.high,T=c.low,r=Z,n=M,F=aa,D=N,G=ba,E=O,W=ca,H=P,s=da,p=Q,U=ea,I=R,V=fa,J=S,X=ga,K=T,t=0;80>t;t++){var z=k[t];if(16>t)var q=z.high=a[b+2*t]|0,h=z.low=a[b+2*t+1]|0;else{var q=k[t-15],h=q.high,v=q.low,q=(h>>>1|v<<31)^(h>>>8|v<<24)^h>>>7,v=(v>>>1|h<<31)^(v>>>8|h<<24)^(v>>>7|h<<25),B=k[t-2],h=B.high,j=B.low,B=(h>>>19|j<<
|
21
|
+
13)^(h<<3|j>>>29)^h>>>6,j=(j>>>19|h<<13)^(j<<3|h>>>29)^(j>>>6|h<<26),h=k[t-7],Y=h.high,A=k[t-16],w=A.high,A=A.low,h=v+h.low,q=q+Y+(h>>>0<v>>>0?1:0),h=h+j,q=q+B+(h>>>0<j>>>0?1:0),h=h+A,q=q+w+(h>>>0<A>>>0?1:0);z.high=q;z.low=h}var Y=s&U^~s&V,A=p&I^~p&J,z=r&F^r&G^F&G,ja=n&D^n&E^D&E,v=(r>>>28|n<<4)^(r<<30|n>>>2)^(r<<25|n>>>7),B=(n>>>28|r<<4)^(n<<30|r>>>2)^(n<<25|r>>>7),j=u[t],ka=j.high,ha=j.low,j=K+((p>>>14|s<<18)^(p>>>18|s<<14)^(p<<23|s>>>9)),w=X+((s>>>14|p<<18)^(s>>>18|p<<14)^(s<<23|p>>>9))+(j>>>0<
|
22
|
+
K>>>0?1:0),j=j+A,w=w+Y+(j>>>0<A>>>0?1:0),j=j+ha,w=w+ka+(j>>>0<ha>>>0?1:0),j=j+h,w=w+q+(j>>>0<h>>>0?1:0),h=B+ja,z=v+z+(h>>>0<B>>>0?1:0),X=V,K=J,V=U,J=I,U=s,I=p,p=H+j|0,s=W+w+(p>>>0<H>>>0?1:0)|0,W=G,H=E,G=F,E=D,F=r,D=n,n=j+h|0,r=w+z+(n>>>0<j>>>0?1:0)|0}M=d.low=M+n;d.high=Z+r+(M>>>0<n>>>0?1:0);N=f.low=N+D;f.high=aa+F+(N>>>0<D>>>0?1:0);O=g.low=O+E;g.high=ba+G+(O>>>0<E>>>0?1:0);P=l.low=P+H;l.high=ca+W+(P>>>0<H>>>0?1:0);Q=e.low=Q+p;e.high=da+s+(Q>>>0<p>>>0?1:0);R=m.low=R+I;m.high=ea+U+(R>>>0<I>>>0?1:0);
|
23
|
+
S=L.low=S+J;L.high=fa+V+(S>>>0<J>>>0?1:0);T=c.low=T+K;c.high=ga+X+(T>>>0<K>>>0?1:0)},_doFinalize:function(){var a=this._data,c=a.words,b=8*this._nDataBytes,d=8*a.sigBytes;c[d>>>5]|=128<<24-d%32;c[(d+128>>>10<<5)+30]=Math.floor(b/4294967296);c[(d+128>>>10<<5)+31]=b;a.sigBytes=4*c.length;this._process();return this._hash.toX32()},clone:function(){var a=c.clone.call(this);a._hash=this._hash.clone();return a},blockSize:32});d.SHA512=c._createHelper(b);d.HmacSHA512=c._createHmacHelper(b)})();
|
24
|
+
(function(){var a=CryptoJS,d=a.x64,c=d.Word,b=d.WordArray,d=a.algo,f=d.SHA512,d=d.SHA384=f.extend({_doReset:function(){this._hash=new b.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var a=f._doFinalize.call(this);a.sigBytes-=16;return a}});a.SHA384=
|
25
|
+
f._createHelper(d);a.HmacSHA384=f._createHmacHelper(d)})();
|
26
|
+
(function(){var a=CryptoJS,d=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,b){a=this._hasher=new a.init;"string"==typeof b&&(b=d.parse(b));var f=a.blockSize,l=4*f;b.sigBytes>l&&(b=a.finalize(b));b.clamp();for(var u=this._oKey=b.clone(),k=this._iKey=b.clone(),m=u.words,x=k.words,y=0;y<f;y++)m[y]^=1549556828,x[y]^=909522486;u.sigBytes=k.sigBytes=l;this.reset()},reset:function(){var a=this._hasher;a.reset();a.update(this._iKey)},update:function(a){this._hasher.update(a);return this},finalize:function(a){var b=
|
27
|
+
this._hasher;a=b.finalize(a);b.reset();return b.finalize(this._oKey.clone().concat(a))}})})();
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/*
|
2
|
+
CryptoJS v3.1.2
|
3
|
+
code.google.com/p/crypto-js
|
4
|
+
(c) 2009-2013 by Jeff Mott. All rights reserved.
|
5
|
+
code.google.com/p/crypto-js/wiki/License
|
6
|
+
*/
|
7
|
+
var CryptoJS=CryptoJS||function(a,j){var c={},b=c.lib={},f=function(){},l=b.Base={extend:function(a){f.prototype=this;var d=new f;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
|
8
|
+
u=b.WordArray=l.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=j?d:4*a.length},toString:function(a){return(a||m).stringify(this)},concat:function(a){var d=this.words,M=a.words,e=this.sigBytes;a=a.sigBytes;this.clamp();if(e%4)for(var b=0;b<a;b++)d[e+b>>>2]|=(M[b>>>2]>>>24-8*(b%4)&255)<<24-8*((e+b)%4);else if(65535<M.length)for(b=0;b<a;b+=4)d[e+b>>>2]=M[b>>>2];else d.push.apply(d,M);this.sigBytes+=a;return this},clamp:function(){var D=this.words,d=this.sigBytes;D[d>>>2]&=4294967295<<
|
9
|
+
32-8*(d%4);D.length=a.ceil(d/4)},clone:function(){var a=l.clone.call(this);a.words=this.words.slice(0);return a},random:function(D){for(var d=[],b=0;b<D;b+=4)d.push(4294967296*a.random()|0);return new u.init(d,D)}}),k=c.enc={},m=k.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var b=[],e=0;e<a;e++){var c=d[e>>>2]>>>24-8*(e%4)&255;b.push((c>>>4).toString(16));b.push((c&15).toString(16))}return b.join("")},parse:function(a){for(var d=a.length,b=[],e=0;e<d;e+=2)b[e>>>3]|=parseInt(a.substr(e,
|
10
|
+
2),16)<<24-4*(e%8);return new u.init(b,d/2)}},y=k.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],e=0;e<a;e++)c.push(String.fromCharCode(b[e>>>2]>>>24-8*(e%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],e=0;e<b;e++)c[e>>>2]|=(a.charCodeAt(e)&255)<<24-8*(e%4);return new u.init(c,b)}},z=k.Utf8={stringify:function(a){try{return decodeURIComponent(escape(y.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return y.parse(unescape(encodeURIComponent(a)))}},
|
11
|
+
x=b.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=z.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(b){var d=this._data,c=d.words,e=d.sigBytes,l=this.blockSize,k=e/(4*l),k=b?a.ceil(k):a.max((k|0)-this._minBufferSize,0);b=k*l;e=a.min(4*b,e);if(b){for(var x=0;x<b;x+=l)this._doProcessBlock(c,x);x=c.splice(0,b);d.sigBytes-=e}return new u.init(x,e)},clone:function(){var a=l.clone.call(this);
|
12
|
+
a._data=this._data.clone();return a},_minBufferSize:0});b.Hasher=x.extend({cfg:l.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){x.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return(new a.init(c)).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return(new ja.HMAC.init(a,
|
13
|
+
c)).finalize(b)}}});var ja=c.algo={};return c}(Math);
|
14
|
+
(function(a){var j=CryptoJS,c=j.lib,b=c.Base,f=c.WordArray,j=j.x64={};j.Word=b.extend({init:function(a,b){this.high=a;this.low=b}});j.WordArray=b.extend({init:function(b,c){b=this.words=b||[];this.sigBytes=c!=a?c:8*b.length},toX32:function(){for(var a=this.words,b=a.length,c=[],m=0;m<b;m++){var y=a[m];c.push(y.high);c.push(y.low)}return f.create(c,this.sigBytes)},clone:function(){for(var a=b.clone.call(this),c=a.words=this.words.slice(0),k=c.length,f=0;f<k;f++)c[f]=c[f].clone();return a}})})();
|
15
|
+
(function(){function a(){return f.create.apply(f,arguments)}for(var j=CryptoJS,c=j.lib.Hasher,b=j.x64,f=b.Word,l=b.WordArray,b=j.algo,u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),
|
16
|
+
a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,
|
17
|
+
2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),
|
18
|
+
a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,
|
19
|
+
3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],k=[],m=0;80>m;m++)k[m]=a();b=b.SHA512=c.extend({_doReset:function(){this._hash=new l.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(a,b){for(var c=this._hash.words,
|
20
|
+
f=c[0],j=c[1],d=c[2],l=c[3],e=c[4],m=c[5],N=c[6],c=c[7],aa=f.high,O=f.low,ba=j.high,P=j.low,ca=d.high,Q=d.low,da=l.high,R=l.low,ea=e.high,S=e.low,fa=m.high,T=m.low,ga=N.high,U=N.low,ha=c.high,V=c.low,r=aa,n=O,G=ba,E=P,H=ca,F=Q,Y=da,I=R,s=ea,p=S,W=fa,J=T,X=ga,K=U,Z=ha,L=V,t=0;80>t;t++){var A=k[t];if(16>t)var q=A.high=a[b+2*t]|0,g=A.low=a[b+2*t+1]|0;else{var q=k[t-15],g=q.high,v=q.low,q=(g>>>1|v<<31)^(g>>>8|v<<24)^g>>>7,v=(v>>>1|g<<31)^(v>>>8|g<<24)^(v>>>7|g<<25),C=k[t-2],g=C.high,h=C.low,C=(g>>>19|
|
21
|
+
h<<13)^(g<<3|h>>>29)^g>>>6,h=(h>>>19|g<<13)^(h<<3|g>>>29)^(h>>>6|g<<26),g=k[t-7],$=g.high,B=k[t-16],w=B.high,B=B.low,g=v+g.low,q=q+$+(g>>>0<v>>>0?1:0),g=g+h,q=q+C+(g>>>0<h>>>0?1:0),g=g+B,q=q+w+(g>>>0<B>>>0?1:0);A.high=q;A.low=g}var $=s&W^~s&X,B=p&J^~p&K,A=r&G^r&H^G&H,ka=n&E^n&F^E&F,v=(r>>>28|n<<4)^(r<<30|n>>>2)^(r<<25|n>>>7),C=(n>>>28|r<<4)^(n<<30|r>>>2)^(n<<25|r>>>7),h=u[t],la=h.high,ia=h.low,h=L+((p>>>14|s<<18)^(p>>>18|s<<14)^(p<<23|s>>>9)),w=Z+((s>>>14|p<<18)^(s>>>18|p<<14)^(s<<23|p>>>9))+(h>>>
|
22
|
+
0<L>>>0?1:0),h=h+B,w=w+$+(h>>>0<B>>>0?1:0),h=h+ia,w=w+la+(h>>>0<ia>>>0?1:0),h=h+g,w=w+q+(h>>>0<g>>>0?1:0),g=C+ka,A=v+A+(g>>>0<C>>>0?1:0),Z=X,L=K,X=W,K=J,W=s,J=p,p=I+h|0,s=Y+w+(p>>>0<I>>>0?1:0)|0,Y=H,I=F,H=G,F=E,G=r,E=n,n=h+g|0,r=w+A+(n>>>0<h>>>0?1:0)|0}O=f.low=O+n;f.high=aa+r+(O>>>0<n>>>0?1:0);P=j.low=P+E;j.high=ba+G+(P>>>0<E>>>0?1:0);Q=d.low=Q+F;d.high=ca+H+(Q>>>0<F>>>0?1:0);R=l.low=R+I;l.high=da+Y+(R>>>0<I>>>0?1:0);S=e.low=S+p;e.high=ea+s+(S>>>0<p>>>0?1:0);T=m.low=T+J;m.high=fa+W+(T>>>0<J>>>0?1:
|
23
|
+
0);U=N.low=U+K;N.high=ga+X+(U>>>0<K>>>0?1:0);V=c.low=V+L;c.high=ha+Z+(V>>>0<L>>>0?1:0)},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,f=8*a.sigBytes;b[f>>>5]|=128<<24-f%32;b[(f+128>>>10<<5)+30]=Math.floor(c/4294967296);b[(f+128>>>10<<5)+31]=c;a.sigBytes=4*b.length;this._process();return this._hash.toX32()},clone:function(){var a=c.clone.call(this);a._hash=this._hash.clone();return a},blockSize:32});j.SHA512=c._createHelper(b);j.HmacSHA512=c._createHmacHelper(b)})();
|
24
|
+
(function(){var a=CryptoJS,j=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,b){a=this._hasher=new a.init;"string"==typeof b&&(b=j.parse(b));var f=a.blockSize,l=4*f;b.sigBytes>l&&(b=a.finalize(b));b.clamp();for(var u=this._oKey=b.clone(),k=this._iKey=b.clone(),m=u.words,y=k.words,z=0;z<f;z++)m[z]^=1549556828,y[z]^=909522486;u.sigBytes=k.sigBytes=l;this.reset()},reset:function(){var a=this._hasher;a.reset();a.update(this._iKey)},update:function(a){this._hasher.update(a);return this},finalize:function(a){var b=
|
25
|
+
this._hasher;a=b.finalize(a);b.reset();return b.finalize(this._oKey.clone().concat(a))}})})();
|