Guest User

HAR Output - Network TAB

a guest
Jan 28th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 474.22 KB | None | 0 0
  1. {
  2.   "log": {
  3.     "version": "1.1",
  4.     "creator": {
  5.       "name": "Firefox",
  6.       "version": "43.0.4"
  7.     },
  8.     "browser": {
  9.       "name": "Firefox",
  10.       "version": "43.0.4"
  11.     },
  12.     "pages": [
  13.       {
  14.         "startedDateTime": "2016-01-29T10:43:27.377+05:30",
  15.         "id": "page_2",
  16.         "title": "Apache Tomcat/7.0.67",
  17.         "pageTimings": {
  18.           "onContentLoad": -1,
  19.           "onLoad": -1
  20.         }
  21.       }
  22.     ],
  23.     "entries": [
  24.       {
  25.         "pageref": "page_2",
  26.         "startedDateTime": "2016-01-29T10:43:27.377+05:30",
  27.         "time": 87,
  28.         "request": {
  29.           "bodySize": 0,
  30.           "method": "GET",
  31.           "url": "http://openam.mydomain.com:8090/openam/XUI/#login/",
  32.           "httpVersion": "HTTP/1.1",
  33.           "headers": [
  34.             {
  35.               "name": "Host",
  36.               "value": "openam.mydomain.com:8090"
  37.             },
  38.             {
  39.               "name": "User-Agent",
  40.               "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  41.             },
  42.             {
  43.               "name": "Accept",
  44.               "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  45.             },
  46.             {
  47.               "name": "Accept-Language",
  48.               "value": "en-US,en;q=0.5"
  49.             },
  50.             {
  51.               "name": "Accept-Encoding",
  52.               "value": "gzip, deflate"
  53.             },
  54.             {
  55.               "name": "Connection",
  56.               "value": "keep-alive"
  57.             },
  58.             {
  59.               "name": "If-Modified-Since",
  60.               "value": "Wed, 17 Dec 2014 15:46:48 GMT"
  61.             },
  62.             {
  63.               "name": "If-None-Match",
  64.               "value": "W/\"502-1418831208000\""
  65.             },
  66.             {
  67.               "name": "Cache-Control",
  68.               "value": "max-age=0"
  69.             }
  70.           ],
  71.           "cookies": [],
  72.           "queryString": [],
  73.           "postData": {
  74.             "mimeType": "",
  75.             "params": [],
  76.             "text": ""
  77.           },
  78.           "headersSize": 427
  79.         },
  80.         "response": {
  81.           "status": 200,
  82.           "statusText": "OK",
  83.           "httpVersion": "HTTP/1.1",
  84.           "headers": [
  85.             {
  86.               "name": "Server",
  87.               "value": "Apache-Coyote/1.1"
  88.             },
  89.             {
  90.               "name": "Accept-Ranges",
  91.               "value": "bytes"
  92.             },
  93.             {
  94.               "name": "Etag",
  95.               "value": "W/\"428-1453709640000\""
  96.             },
  97.             {
  98.               "name": "Last-Modified",
  99.               "value": "Mon, 25 Jan 2016 08:14:00 GMT"
  100.             },
  101.             {
  102.               "name": "Content-Type",
  103.               "value": "text/html"
  104.             },
  105.             {
  106.               "name": "Content-Length",
  107.               "value": "428"
  108.             },
  109.             {
  110.               "name": "Date",
  111.               "value": "Fri, 29 Jan 2016 05:13:27 GMT"
  112.             }
  113.           ],
  114.           "cookies": [],
  115.           "content": {
  116.             "mimeType": "text/html",
  117.             "size": 428,
  118.             "text": "<html>\n<head>\n    <meta charset=\"utf-8\">\n    <title>OpenAM</title>\n</head>\n\n<body>\n\n    <div id=\"messages\"></div>\n    <div id=\"wrapper\">Loading...</div>\n    <div id=\"popup\">\n        <div id=\"popup-content\" class=\"radious\"></div>\n    </div>\n    <div id=\"footer\"></div>\n    <div id=\"dialog-background\"></div>\n    <div id=\"dialogs\"></div>\n\n    <script data-main=\"main\" src=\"libs/requirejs-2.1.14-min.js\"></script>\n\n</body>\n</html>\n"
  119.           },
  120.           "redirectURL": "",
  121.           "headersSize": 226,
  122.           "bodySize": 428
  123.         },
  124.         "cache": {},
  125.         "timings": {
  126.           "blocked": 0,
  127.           "dns": 0,
  128.           "connect": 1,
  129.           "send": 1,
  130.           "wait": 85,
  131.           "receive": 0
  132.         },
  133.         "serverIPAddress": "10.0.3.211",
  134.         "connection": "8090"
  135.       },
  136.       {
  137.         "pageref": "page_2",
  138.         "startedDateTime": "2016-01-29T10:43:28.341+05:30",
  139.         "time": 0,
  140.         "request": {
  141.           "bodySize": 0,
  142.           "method": "GET",
  143.           "url": "http://openam.mydomain.com:8090/openam/XUI/locales/en/translation.json",
  144.           "httpVersion": "HTTP/1.1",
  145.           "headers": [
  146.             {
  147.               "name": "Host",
  148.               "value": "openam.mydomain.com:8090"
  149.             },
  150.             {
  151.               "name": "User-Agent",
  152.               "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  153.             },
  154.             {
  155.               "name": "Accept",
  156.               "value": "application/json, text/javascript, */*; q=0.01"
  157.             },
  158.             {
  159.               "name": "Accept-Language",
  160.               "value": "en-US,en;q=0.5"
  161.             },
  162.             {
  163.               "name": "Accept-Encoding",
  164.               "value": "gzip, deflate"
  165.             },
  166.             {
  167.               "name": "X-Requested-With",
  168.               "value": "XMLHttpRequest"
  169.             },
  170.             {
  171.               "name": "Referer",
  172.               "value": "http://openam.mydomain.com:8090/openam/XUI/"
  173.             },
  174.             {
  175.               "name": "Connection",
  176.               "value": "keep-alive"
  177.             }
  178.           ],
  179.           "cookies": [],
  180.           "queryString": [],
  181.           "postData": {
  182.             "mimeType": "",
  183.             "params": [],
  184.             "text": ""
  185.           },
  186.           "headersSize": 0
  187.         },
  188.         "response": {
  189.           "status": 200,
  190.           "statusText": "OK",
  191.           "httpVersion": "HTTP/1.1",
  192.           "headers": [
  193.             {
  194.               "name": "Server",
  195.               "value": "Apache-Coyote/1.1"
  196.             },
  197.             {
  198.               "name": "Accept-Ranges",
  199.               "value": "bytes"
  200.             },
  201.             {
  202.               "name": "Etag",
  203.               "value": "W/\"24258-1418831208000\""
  204.             },
  205.             {
  206.               "name": "Last-Modified",
  207.               "value": "Wed, 17 Dec 2014 15:46:48 GMT"
  208.             },
  209.             {
  210.               "name": "Content-Type",
  211.               "value": "application/json"
  212.             },
  213.             {
  214.               "name": "Content-Length",
  215.               "value": "24258"
  216.             },
  217.             {
  218.               "name": "Date",
  219.               "value": "Fri, 15 Jan 2016 13:05:28 GMT"
  220.             }
  221.           ],
  222.           "cookies": [],
  223.           "content": {
  224.             "mimeType": "application/json",
  225.             "size": 24258,
  226.             "text": "{\n    \"config\" : {\n        \"dates\" : {\n            \"monthNames\" : \"January, February, March, April, May, June, July, August, September, October, November, December\",\n            \"monthNamesShort\" : \"Jan., Feb., Mar., Apr., May., Jun., Jul., Aug., Sep., Oct., Nov., Dec.\",\n            \"dayNames\" : \"Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday\",\n            \"dayNamesShort\" : \"Sun. , Mon., Tue., Wed., Thu., Fri., Sat.\"\n        },\n        \"messages\" : {\n            \"CommonMessages\" : {\n                \"authenticationFailed\" : \"Login/password combination is invalid.\",\n                \"loginFailureLockout\" : \"Your password has expired. Please contact service desk to reset your password\",\n                \"maxSessionsLimitOrSessionQuota\": \"Maximum sessions limit reached or session quota has exhausted.\",\n                \"invalidRealm\" : \"The realm doesn't exist\",\n                \"serviceUnavailable\" : \"Service unavailable\",\n                \"unknown\" : \"Unknown error. Please contact your Administrator\",\n                \"loggedIn\" : \"You have been successfully logged in.\",\n                \"errorFetchingData\" : \"Error fetching user data\",\n                \"loggedOut\" : \"You have been logged out.\",\n                \"loginTimeout\" : \"Login processed timed out. Restarting...\",\n                \"unauthorized\" : \"Unauthorized access or session timeout\",\n                \"internalError\" : \"Internal server error\",\n                \"forbiddenError\" : \"Forbidden request error.\",\n                \"notFoundError\" : \"Not found error.\",\n                \"badRequestError\" : \"Bad request error.\",\n                \"conflictError\" : \"Detected conflict in request.\",\n                \"incorrectRevisionError\" : \"Cannot update the record because the version is not the latest.\",\n                \"tokenNotFound\" : \"Token not found.\",\n                \"securityDataChanged\" : \"Password was changed\"\n            },\n            \"UserMessages\" : {\n                \"invalidOldPassword\" : \"Old password is invalid.\",\n                \"usernameNotFound\" : \"Username not found\",\n                \"noEmailProvided\" : \"No email provided in profile\",\n                \"emailNotSent\" : \"Email not sent\",\n                \"unableToRegister\" : \"Unable to register at this time. Please contact your Administrator\",\n                \"changedPassword\" : \"Password has been changed\",\n                \"profileUpdateFailed\" : \"Problem during profile update\",\n                \"profileUpdateSuccessful\" : \"Profile has been updated\",\n                \"userNameUpdated\" : \"Username has been modified successfully.\",\n                \"afterRegistration\" : \"Your account has been registered successfully\",\n                \"siteIdentificationChanged\" : \"Site identification image has been changed\",\n                \"userAlreadyExists\" : \"User already exists\",\n                \"errorDeletingNotification\" : \"Error deleting notification.\",\n                \"errorFetchingNotifications\" : \"Error Fetching notifications.\",\n                \"identityNoSpace\" : \"Identity names may not have a space <br> character at the beginning or end.\",\n                \"selfRegistrationDisabled\"  : \"Self Registration is disabled.\"\n                \n            },\n            \"AdminMessages\" : {\n                \"cannotDeleteYourself\" : \"You can't delete yourself\",\n                \"userDeleted\" : \"User has been deleted\",\n                \"userDeleteError\" : \"Error when deleting user\",\n                \"userApplicationsUpdate\" : \"Application settings have been changed.\",\n                \"completedTask\" : \"Task has been completed.\",\n                \"claimedTask\" : \"Task has been claimed.\",\n                \"unclaimedTask\" : \"Task has been unclaimed.\",\n                \"startedProcess\" : \"Process has been started\"\n            }\n        },\n        \"AppConfiguration\" : {\n            \"Navigation\" : {\n                \"links\" : {\n                    \"dashboard\" : \"Dashboard\",\n                    \"users\" : \"Users\",\n                    \"apps\" : \"Applications\",\n                    \"allApps\" : \"All applications\",\n                    \"addMore\" : \"Add more apps\",\n                    \"groups\" : \"Groups\",\n                    \"tasksMenu\" : \"Tasks\",\n                    \"allTasks\" : \"Tasks that are in my group's queue\",\n                    \"myTasks\" : \"My tasks\",\n                    \"startProcess\" : \"Start process\",\n                    \"oauthtokens\" : \"OAuth 2 Token Manager\"\n                }\n            }\n        }\n    },\n    \"templates\" : {\n        \"user\" : {\n            \"LoginDialog\" : {\n                \"refreshOnLogin\" : \"Should refresh on login\" \n            },\n            \"LoginTemplate\" : {\n                \"loginRemember\" : \"Remember my username\",\n                \"noAccountQuestion\" : \"Don't have an account?\",\n                \"registerAccount\" : \"Register your account\",\n                \"problemLoggingQuestion\" : \"Having trouble logging in?\",\n                \"resetPassword\" : \"Reset your password\",\n                \"siteIdentificationHeader\": \"Site Identification\",\n                \"siteIdentificationExplanation\": \"Please enter your login name.<br />Your site image and pass phrase will be displayed here.\"\n            },\n            \"404\" : {\n                \"pageNotFound\" : \"Page not found\",\n                \"requestedPageCouldNotBeFound\" : \"The requested page could not be found.\"\n            },\n            \"DefaultBaseTemplate\" : {\n                \"orPhone\" : \", or phone\"\n            },\n            \"ChangeSecurityDataDialogTemplate\" : {\n                \"securityDataChange\" : \"Security data change\",\n                \"enterNewPasswordToChange\" : \"Please enter new password in the fields below to change your password.\",\n                \"selectQuestionAndAnserIfYouWant\" : \"Please select question and enter your answer if you want to set up a one.\",\n                \"securityQuestionAndAnserExplanation\" : \"The Security Question selected and corresponding Answer provided by you will be used to help identify you in the event that you forget your password.\"\n            },\n            \"ConfirmPasswordDialogTemplate\" : {\n                \"title\" : \"Current Password\",\n                \"explanation1\" : \"Changing the following attributes requires re-authentication: \",\n                \"explanation2\" : \"Please confirm your current password to continue.\"\n            },\n            \"ChangeSiteIdentificationDialogTemplate\" : {\n                \"siteImageAndPhaseExplanation\" : \"The Site Image and Phrase selected will be shown to you upon login to confirm that you are logging in to the genuine site\"\n            },\n            \"EnterOldPasswordDialog\" : {\n                \"passwordAndSecurityQuestionChange\" : \"Password and security question change\",\n                \"enterYourOldPassword\" : \"Please enter your old password\"\n            },\n            \"ForgottenPasswordTemplate\" : {\n                \"forgottenPasswordQuestion\" : \"Forgotten password?\",\n                \"enterLogin\" : \"Please enter your username, we will send you an email containing instructions on how to reset your password.\",\n                \"changeForgottenPassword\" : \"Change forgotten password\",\n                \"emailSubject\" : \"OpenAM: You have requested a password reset\",\n                \"emailMessage\" : \"Hello from OpenAM, \\n\\nYou have requested to have your ForgeRock account's password reset.\\n\\nIf you want to reset your password then follow the link below.\\n\\n**Note: If you encounter an error message when you click on this link, please copy the url and paste it into your browser instead.\\n\\n\",\n                \"emailSent\" : \"We have sent you an e-mail, please follow the link in the e-mail to complete your password reset process.\",\n                \"proceedToLogin\" : \"proceed to login\"\n            },\n            \"TermsOfUseTemplate\" : {\n                \"termsOfUse\" : \"Terms of use\",\n                \"termsOfUseContent\" : \"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris idvulputate urna. Quisque tristique dictum sodales. Nullam tempus eleifend erat,vel facilisis nibh euismod non. Phasellus vitae elit velit, in sollicitudindiam. Maecenas ornare nunc non ipsum ornare vehicula id sed dolor. Duispellentesque congue sapien, dictum adipiscing est posuere sit amet. Suspendissein lectus lorem. Suspendisse vitae metus sapien, sit amet luctus libero.Integer nec nunc sed massa pellentesque pulvinar. Integer vulputate nunc atnunc lacinia eu luctus neque elementum. Aenean ultricies arcu sed enimultricies blandit placerat ut massa. Donec at dolor sit amet magna vulputateelementum sit amet in sapien. Donec sit amet erat neque.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris idvulputate urna. Quisque tristique dictum sodales. Nullam tempus eleifend erat,vel facilisis nibh euismod non. Phasellus vitae elit velit, in sollicitudindiam. Maecenas ornare nunc non ipsum ornare vehicula id sed dolor. Duispellentesque congue sapien, dictum adipiscing est posuere sit amet. Suspendissein lectus lorem. Suspendisse vitae metus sapien, sit amet luctus libero.Integer nec nunc sed massa pellentesque pulvinar. Integer vulputate nunc atnunc lacinia eu luctus neque elementum. Aenean ultricies arcu sed enimultricies blandit placerat ut massa. Donec at dolor sit amet magna vulputateelementum sit amet in sapien. Donec sit amet erat neque.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris idvulputate urna. Quisque tristique dictum sodales. Nullam tempus eleifend erat,vel facilisis nibh euismod non. Phasellus vitae elit velit, in sollicitudindiam. Maecenas ornare nunc non ipsum ornare vehicula id sed dolor. Duispellentesque congue sapien, dictum adipiscing est posuere sit amet. Suspendissein lectus lorem. Suspendisse vitae metus sapien, sit amet luctus libero.Integer nec nunc sed massa pellentesque pulvinar. Integer vulputate nunc atnunc lacinia eu luctus neque elementum. Aenean ultricies arcu sed enimultricies blandit placerat ut massa. Donec at dolor sit amet magna vulputateelementum sit amet in sapien. Donec sit amet erat neque.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris idvulputate urna. Quisque tristique dictum sodales. Nullam tempus eleifend erat,vel facilisis nibh euismod non. Phasellus vitae elit velit, in sollicitudindiam. Maecenas ornare nunc non ipsum ornare vehicula id sed dolor. Duispellentesque congue sapien, dictum adipiscing est posuere sit amet. Suspendissein lectus lorem. Suspendisse vitae metus sapien, sit amet luctus libero.Integer nec nunc sed massa pellentesque pulvinar. Integer vulputate nunc atnunc lacinia eu luctus neque elementum. Aenean ultricies arcu sed enimultricies blandit placerat ut massa. Donec at dolor sit amet magna vulputateelementum sit amet in sapien. Donec sit amet erat neque.</p>\"\n            },\n            \"UserProfileTemplate\" : {\n                \"changeEmailAddress\" : \"Change Email Address\",\n                \"changeSecurityData\" : \"Change Password\",\n                \"changeSiteIdentification\" : \"Change Site Identification\"\n            },\n            \"UserRegistrationTemplate\" : {\n                \"registerYourAccount\" : \"Register your account\",\n                \"logIn\" : \"Log in\",\n                \"haveAccoutQuestion\" : \"Already have an account?\",\n                \"agreeToTerms\" : \"I agree to the %sterms of use%s\",\n                \"emailSubject\" : \"OpenAM Registration\",\n                \"emailMessage\" : \"Please goto the link below to continue the registration process:\",\n                \"emailSent\" : \"We have sent you an e-mail, please follow the link in the e-mail to complete the registration process.\",\n                \"registrationComplete\" : \"Registration complete\"\n            },\n            \"RestLogoutTemplate\" : {\n                \"loggedOut\" : \"You have been logged out.\",\n                \"returnToLogin\" : \"Return to Login page\"\n            }\n        },\n        \"admin\" : {\n            \"tasks\" : {\n                \"ShowUserProfile\" : {\n                    \"requestInitiator\" : \"Request initiated by\"\n                },\n                \"TasksDashboardTemplate\" : {\n                    \"tasksFromGroupsQueue\" : \"Tasks that are in my group's queue\"\n                },\n                \"ProcessUserTaskTableTemplate\" : {\n                    \"requestCount\" : \"__count__  request\",\n                    \"requestCount_plural\" : \"__count__  requests\"\n                }\n            },\n            \"ChangeUserPasswordDialogTemplate\" : {\n                \"securityDataChange\" : \"Security data change\",\n                \"enterNewPasswordToChange\" : \"Please enter new password in the fields below to change user's password.\"\n            },\n            \"UsersTemplate\" : {\n                \"remainingUsers\" : \"remaining users\"\n            }\n        },\n        \"oauth\": {\n            \"clientID\" : \"Client ID\",\n            \"tokenList\" : \"Authorized Apps\",\n            \"remainingTokens\" : \"remaining tokens\",\n            \"tokenID\" : \"Token ID\",\n            \"expireDate\" : \"Expire Date\",\n            \"scope\" : \"Scope\",\n            \"tokenType\" : \"Token Type\",\n            \"parent\" : \"Parent\",\n            \"username\" : \"Username\",\n            \"redirecturi\" : \"Redirect URI\",\n            \"refreshToken\" : \"Refresh Token\",\n            \"issued\" : \"Issued\",\n            \"realm\" : \"Realm\",\n            \"tokenInfo\": \"TokenInfo\"\n        }\n    },\n    \"common\" : {\n         \"form\" : {\n            \"yes\" : \"Yes\",\n            \"no\" : \"No\",\n            \"true\" : \"True\",\n            \"false\" : \"False\",\n            \"update\" : \"Update\",\n            \"save\" : \"Save\",\n            \"create\" : \"Create\",\n            \"cancel\" : \"Cancel\",\n            \"reset\" : \"Reset\",\n            \"close\" : \"Close\",\n            \"logout\" : \"Log out\",\n            \"register\" : \"Register\",\n            \"home\" : \"Home\",\n            \"start\" : \"Start\",\n            \"continue\" : \"Continue\",\n            \"back\" : \"Back\",\n            \"delete\" : \"Delete\",\n            \"details\" : \"Details\",\n            \"pleaseSelect\" : \"Please Select\",\n            \"addUser\" : \"Add user\",\n            \"decision\" : \"Decision\",\n            \"accept\" : \"Accept\",\n            \"reject\" : \"Reject\",\n            \"createdAt\" : \"Created at\",\n            \"search\" : \"Search\",\n            \"submit\" : \"Submit\",\n            \"actions\" : \"Actions\",\n            \"complete\" : \"Complete\",\n            \"copyright\" : \"Copyright &copy; 2010-14 ForgeRock AS, all rights reserved.\",\n            \"sessionExpired\" : \"Session Expired\",\n            \"enableCookies\" : \"Cookies must be enabled to login\",\n            \"deleteSelected\" : \"Delete Selected\",\n            \"validation\" : {\n                \"VALID_PHONE_FORMAT\": \"Contains invalid characters\",\n                \"VALID_NAME_FORMAT\": \"Contains invalid characters\",\n                \"VALID_EMAIL_ADDRESS_FORMAT\": \"Not a valid email address\",\n                \"AT_LEAST_X_CAPITAL_LETTERS\" : \"At least __numCaps__ capital letters\",\n                \"AT_LEAST_X_NUMBERS\" : \"At least __numNums__ numbers\",\n                \"CANNOT_CONTAIN_OTHERS\" : \"Cannot contain values from: __disallowedFields__\",\n                \"MIN_LENGTH\" : \"At least __minLength__ characters\",\n                \"REQUIRED\" : \"Cannot be blank\",\n                \"UNIQUE\" : \"Already exists\",\n                \"REAUTH_REQUIRED\" : \"\",\n                \"formContainsErrors\" : \"Form contains validation errors\",\n                \"atLeastOneCapitalLetter\" : \"At least one capital letter\",\n                \"atLeastOneNumber\" : \"At least one number\",\n                \"atLeast8Characters\" : \"At least 8 characters\",\n                \"cannotMatchLogin\" : \"Cannot match login\",\n                \"confirmationMatchesPassword\" : \"Confirmation matches password\",\n                \"usernameExists\" : \"Username already exists\",\n                \"emailAddressAlreadyExists\" : \"Email address already exists\",\n                \"onlyAlphabeticCharacters\" : \"Only alphabetic characters\",\n                \"onlyNumbersAndSpecialCharacters\" : \"Only numbers and special characters\",\n                \"cannotMatchOldPassword\" : \"Cannot match old password\",\n                \"minimum4Characters\" : \"Minimum 4 characters\",\n                \"acceptanceRequiredForRegistration\" : \"Acceptance required for registration\",\n                \"incorrectPassword\" : \"Incorrect password\",\n                \"incorrectSecurityAnswer\" : \"Incorrect answer\",\n                \"required\" : \"Required\",\n                \"emailNotValid\" : \"Not a valid email address.\",\n                \"emailExists\" : \"Email address already exists.\",\n                \"shouldBeLong\" : \"Should be long value\",\n                \"wrongDateFormat\" : \"Wrong format\"\n            }\n         },\n         \"user\" : {\n            \"user\" : \"User\",\n            \"login\" : \"Log in\",\n            \"loginConfirm\" : \"You have already logged in. Do you want to log out and then login to a different organization?\",\n            \"profile\" : \"Profile\",\n            \"myProfile\" : \"My Profile\",\n            \"userProfile\" : \"User profile\",\n            \"username\" : \"Username\",\n            \"emailAddress\" : \"Email address\",\n            \"givenName\" : \"First Name\",\n            \"familyName\" : \"Last Name\",\n            \"changePassword\" : \"Change password\",\n            \"forgotPassword\" : \"Forgot password\",\n            \"accountStatus\" : \"Account status\",\n            \"active\" : \"Active\",\n            \"inactive\" : \"Inactive\",\n            \"address\" : \"Address\",\n            \"address1\" : \"Address 1\",\n            \"address2\" : \"Address 2\",\n            \"country\" : \"Country\",\n            \"city\" : \"City\",\n            \"role\" : \"Admin Role\",\n            \"stateProvince\" : \"State/Province\",\n            \"phoneNumber\" : \"Phone number\",\n            \"postalCode\" : \"Postal Code\",\n            \"lastPasswordSet\" : \"Last password set\",\n            \"siteImage\" : \"Site Image\",\n            \"sitePhrase\" : \"Site Phrase\",\n            \"securityQuestion\" : \"Security question\",\n            \"securityAnswer\" : \"Security answer\",\n            \"adaptiveAuthMethod\" : \"Adaptive auth method\",\n            \"SMS\" : \"SMS\",\n            \"OAuth\" : \"OAuth\",\n            \"createNewAccount\" : \"Create new account\",\n            \"password\" : \"Password\",\n            \"confirmPassword\" : \"Confirm Password\",\n            \"newPassword\" : \"New password\",\n            \"oldPassword\" : \"Old password\",\n            \"currentPassword\" : \"Current Password\",\n            \"confirmNewPassword\" : \"Confirm new password\",\n            \"usersList\" : \"Users list\",\n            \"addUsers\" : \"Add users\",\n            \"name\" : \"Name\",\n            \"status\" : \"Status\",\n            \"email\" : \"Email\",\n            \"system\" : \"System\",\n            \"changePhoto\" : \"Change photo\",\n            \"SKYPE\" : \"SKYPE\",\n            \"googlePlus\" : \"Google+\"\n         }, \n         \"task\" : {\n            \"unassigned\" : \"Unassigned\",\n            \"assignToMe\" : \"Assign to me\",\n            \"claim\" : \"Claim\",\n            \"unclaim\" : \"Unclaim\",\n            \"approve\" : \"Approve\",\n            \"deny\" : \"Deny\",\n            \"requeue\" : \"Requeue\",\n            \"taskName\" : \"Task Name\",\n            \"processName\" : \"Process Name\",\n            \"startProcess\" : \"Start Process\",\n            \"assignee\" : \"Assignee\",\n            \"taskDetails\" : \"Task Details\",\n            \"myTasks\" : \"My tasks\",\n            \"tasksList\" : \"Tasks list\",\n            \"processes\" : \"Processes\"\n         },\n         \"application\" : {\n            \"applicationName\" : \"Application Name\",\n            \"requestedBy\" : \"Requested by\",\n            \"yourFrequentlyUsedApplications\" : \"Your frequently used apps\",\n            \"applicationsYouHaveAdded\" : \"Apps you've added\",\n            \"defaultApplications\" : \"Default apps\",\n            \"addMoreApplications\" : \"Add more apps\",\n            \"allAvailableApps\" : \"All available apps\",\n            \"dropApplicationsHere\" : \"drop apps here\"\n         },\n         \"notification\" : {\n            \"notifications\" : \"Notifications\",\n            \"deleteThisMessage\" : \"Delete this message\",\n            \"type\" : \"Notification type\",\n            \"message\" : \"Message\",\n            \"types\" : {\n                \"info\" : \"Info\",\n                \"warning\" : \"Warning\",\n                \"error\" : \"Error\"\n            }\n         }\n    },\n    \"openam\" : {\n        \"apps\" : {\n            \"header\" : \"My Applications\",\n            \"noneFound\": \"You have no applications assigned to you\"\n        },\n        \"trusted\" : {\n            \"devices\" : {\n                \"header\" : \"Trusted Devices\",\n                \"deviceName\" : \"Name\",\n                \"lastUsed\" : \"Last Used\",\n                \"deleteDevice\" : \"Delete Device\"\n            }\n        },\n        \"oAuth2\" : {\n            \"tokens\" : {\n                \"appName\" : \"Application\",\n                \"scope\" : \"Scope\",\n                \"expiryDate\" : \"Expiry Date\",\n                \"deleteToken\" : \"Revoke Access\"\n            }\n        },\n        \"authentication\": {\n            \"input\": {\n                \"name\": \"Username\",\n                \"password\": \"Password\"\n            },\n            \"unavailable\": \"Unable to login to OpenAM\"\n            \n        }\n    },    \n    \"openidm\" : {\n        \"ui\" : {\n            \"common\" : {\n                \"components\" : {\n                    \"LineTableView\" : {\n                        \"seeMoreItems\" : \"see more\",\n                        \"noItems\" : \"No items\"\n                    }\n                }\n            },\n            \"admin\" : {\n                \"tasks\" : {\n                    \"TasksMenuView\" : {\n                        \"noTasksAssigned\" : \"You do not have any tasks assigned to you right now.\",\n                        \"noTasksInGroupQueue\" : \"You do not have any tasks in your's group's queue now.\",\n                        \"denyDefaultReason\" : \"Enter a reason for denying this request\",\n                        \"acceptanceForm\" : {\n                            \"for\" : \"For\",\n                            \"application\" : \"Application\",\n                            \"requested\" : \"Requested\",\n                            \"actions\" : \"Actions\"                            \n                        },\n                        \"headers\" : {\n                            \"initiator\" : \"Initiator\",\n                            \"key\" : \"Key\",\n                            \"requested\" : \"Requested\",\n                            \"inQueue\" : \"In queue\",\n                            \"actions\" : \"Actions\"    \n                        }   \n                    },\n                    \"TasksWithMenuView\" : {\n                        \"chooseTask\" : \"Choose a task\"\n                    },\n                    \"StartProcessDashboardView\" : {\n                        \"chooseProcess\" : \"Please choose a process to start\",\n                        \"noProcesses\": \"No processes\",\n                        \"noDataRequired\": \"No data required\"\n                    }\n                },\n                \"users\" : {\n                    \"UsersView\" : {\n                        \"display\" : \"Display\",\n                        \"perPage\" : \"per page\"\n                    },\n                    \"AdminUserProfileView\" : {\n                        \"profileOwnership\" : \"%s' profile\",\n                        \"profileWillBeDeleted\" : \"%s account will be deleted.\"\n                    },\n                    \"ChangeUserPasswordDialog\" : {\n                        \"securityDataChangeForWhom\" : \"Security data change for %s\" \n                    }\n                }\n            },\n            \"apps\" : {\n                \"dashboard\" : {\n                    \"NotificationsView\" : {\n                        \"noNotifications\" : \"You have no notifications right now.\",\n                        \"seeMoreNotifications\" : \"see more notifications\"\n                    }\n                }, \n                \"BaseApplicationsView\" : {\n                    \"noApplicationsHere\" : \"Your have no apps here\",\n                    \"noDefaultApplications\" : \"Your have no default apps\",\n                    \"noFrequentlyUsedApplications\" : \"Your have no frequently used apps\"\n                },\n                \"UsersApplicationsView\" : {\n                    \"noApplications\" : \"You have no applications\"\n                },\n                \"FrequentlyUsedApplicationsView\" : {\n                    \"clickHereToAdd\" : \"Click %shere%s to add.\"\n                }\n            }\n        }\n    }\n}\n"
  227.           },
  228.           "redirectURL": "",
  229.           "headersSize": 0,
  230.           "bodySize": -1
  231.         },
  232.         "cache": {
  233.           "afterRequest": null
  234.         },
  235.         "timings": {
  236.           "blocked": 0,
  237.           "dns": 0,
  238.           "connect": 0,
  239.           "send": 0,
  240.           "wait": 0,
  241.           "receive": 0
  242.         }
  243.       },
  244.       {
  245.         "pageref": "page_2",
  246.         "startedDateTime": "2016-01-29T10:43:27.552+05:30",
  247.         "time": 27,
  248.         "request": {
  249.           "bodySize": 0,
  250.           "method": "GET",
  251.           "url": "http://openam.mydomain.com:8090/openam/XUI/libs/requirejs-2.1.14-min.js",
  252.           "httpVersion": "HTTP/1.1",
  253.           "headers": [
  254.             {
  255.               "name": "Host",
  256.               "value": "openam.mydomain.com:8090"
  257.             },
  258.             {
  259.               "name": "User-Agent",
  260.               "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  261.             },
  262.             {
  263.               "name": "Accept",
  264.               "value": "*/*"
  265.             },
  266.             {
  267.               "name": "Accept-Language",
  268.               "value": "en-US,en;q=0.5"
  269.             },
  270.             {
  271.               "name": "Accept-Encoding",
  272.               "value": "gzip, deflate"
  273.             },
  274.             {
  275.               "name": "Referer",
  276.               "value": "http://openam.mydomain.com:8090/openam/XUI/"
  277.             },
  278.             {
  279.               "name": "Connection",
  280.               "value": "keep-alive"
  281.             },
  282.             {
  283.               "name": "If-Modified-Since",
  284.               "value": "Wed, 17 Dec 2014 15:46:48 GMT"
  285.             },
  286.             {
  287.               "name": "If-None-Match",
  288.               "value": "W/\"14879-1418831208000\""
  289.             },
  290.             {
  291.               "name": "Cache-Control",
  292.               "value": "max-age=0"
  293.             }
  294.           ],
  295.           "cookies": [],
  296.           "queryString": [],
  297.           "postData": {
  298.             "mimeType": "",
  299.             "params": [],
  300.             "text": ""
  301.           },
  302.           "headersSize": 451
  303.         },
  304.         "response": {
  305.           "status": 304,
  306.           "statusText": "Not Modified",
  307.           "httpVersion": "HTTP/1.1",
  308.           "headers": [
  309.             {
  310.               "name": "Server",
  311.               "value": "Apache-Coyote/1.1"
  312.             },
  313.             {
  314.               "name": "Etag",
  315.               "value": "W/\"14879-1418831208000\""
  316.             },
  317.             {
  318.               "name": "Date",
  319.               "value": "Fri, 29 Jan 2016 05:13:27 GMT"
  320.             }
  321.           ],
  322.           "cookies": [],
  323.           "content": {
  324.             "mimeType": "application/javascript",
  325.             "size": 14879,
  326.             "text": "var requirejs,require,define;(function(ba){function G(e){return\"[object Function]\"===K.call(e)}function H(e){return\"[object Array]\"===K.call(e)}function v(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function T(e,t){if(e){var n;for(n=e.length-1;-1<n&&(!e[n]||!t(e[n],n,e));n-=1);}}function t(e,t){return fa.call(e,t)}function m(e,n){return t(e,n)&&e[n]}function B(e,n){for(var r in e)if(t(e,r)&&n(e[r],r))break}function U(e,n,r,i){return n&&B(n,function(n,s){if(r||!t(e,s))i&&\"object\"==typeof n&&n&&!H(n)&&!G(n)&&!(n instanceof RegExp)?(e[s]||(e[s]={}),U(e[s],n,r,i)):e[s]=n}),e}function u(e,t){return function(){return t.apply(e,arguments)}}function ca(e){throw e}function da(e){if(!e)return e;var t=ba;return v(e.split(\".\"),function(e){t=t[e]}),t}function C(e,t,n,r){return t=Error(t+\"\\nhttp://requirejs.org/docs/errors.html#\"+e),t.requireType=e,t.requireModules=r,n&&(t.originalError=n),t}function ga(e){function n(e,t,n){var r,i,s,o,u,a,f,l,t=t&&t.split(\"/\"),c=A.map,h=c&&c[\"*\"];if(e){e=e.split(\"/\"),i=e.length-1,A.nodeIdCompat&&Q.test(e[i])&&(e[i]=e[i].replace(Q,\"\")),\".\"===e[0].charAt(0)&&t&&(i=t.slice(0,t.length-1),e=i.concat(e)),i=e;for(s=0;s<i.length;s++)(o=i[s],\".\"===o)?(i.splice(s,1),s-=1):\"..\"===o&&0!==s&&(1!=s||\"..\"!==i[2])&&\"..\"!==i[s-1]&&0<s&&(i.splice(s-1,2),s-=2);e=e.join(\"/\")}if(n&&c&&(t||h)){i=e.split(\"/\"),s=i.length;e:for(;0<s;s-=1){u=i.slice(0,s).join(\"/\");if(t)for(o=t.length;0<o;o-=1)if(n=m(c,t.slice(0,o).join(\"/\")))if(n=m(n,u)){r=n,a=s;break e}!f&&h&&m(h,u)&&(f=m(h,u),l=s)}!r&&f&&(r=f,a=l),r&&(i.splice(0,a,r),e=i.join(\"/\"))}return(r=m(A.pkgs,e))?r:e}function r(e){z&&v(document.getElementsByTagName(\"script\"),function(t){if(t.getAttribute(\"data-requiremodule\")===e&&t.getAttribute(\"data-requirecontext\")===x.contextName)return t.parentNode.removeChild(t),!0})}function i(e){var t=m(A.paths,e);if(t&&H(t)&&1<t.length)return t.shift(),x.require.undef(e),x.makeRequire(null,{skipMap:!0})([e]),!0}function s(e){var t,n=e?e.indexOf(\"!\"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function o(e,t,r,i){var o,u,a=null,f=t?t.name:null,l=e,c=!0,h=\"\";return e||(c=!1,e=\"_@r\"+(q+=1)),e=s(e),a=e[0],e=e[1],a&&(a=n(a,f,i),u=m(j,a)),e&&(a?h=u&&u.normalize?u.normalize(e,function(e){return n(e,f,i)}):-1===e.indexOf(\"!\")?n(e,f,i):e:(h=n(e,f,i),e=s(h),a=e[0],h=e[1],r=!0,o=x.nameToUrl(h))),r=a&&!u&&!r?\"_unnormalized\"+(W+=1):\"\",{prefix:a,name:h,parentMap:t,unnormalized:!!r,url:o,originalName:l,isDefine:c,id:(a?a+\"!\"+h:h)+r}}function a(e){var t=e.id,n=m(O,t);return n||(n=O[t]=new x.Module(e)),n}function f(e,n,r){var i=e.id,s=m(O,i);t(j,i)&&(!s||s.defineEmitComplete)?\"defined\"===n&&r(j[i]):(s=a(e),s.error&&\"error\"===n)?r(s.error):s.on(n,r)}function l(e,t){var n=e.requireModules,r=!1;t?t(e):(v(n,function(t){if(t=m(O,t))t.error=e,t.events.error&&(r=!0,t.emit(\"error\",e))}),!r)&&g.onError(e)}function c(){R.length&&(ha.apply(P,[P.length,0].concat(R)),R=[])}function h(e){delete O[e],delete _[e]}function p(e,t,n){var r=e.map.id;e.error?e.emit(\"error\",e.error):(t[r]=!0,v(e.depMaps,function(r,i){var s=r.id,o=m(O,s);o&&!e.depMatched[i]&&!n[s]&&(m(t,s)?(e.defineDep(i,j[s]),e.check()):p(o,t,n))}),n[r]=!0)}function d(){var e,t,n=(e=1e3*A.waitSeconds)&&x.startTime+e<(new Date).getTime(),s=[],o=[],u=!1,a=!0;if(!E){E=!0,B(_,function(e){var f=e.map,l=f.id;if(e.enabled&&(f.isDefine||o.push(e),!e.error))if(!e.inited&&n)i(l)?u=t=!0:(s.push(l),r(l));else if(!e.inited&&e.fetched&&f.isDefine&&(u=!0,!f.prefix))return a=!1});if(n&&s.length)return e=C(\"timeout\",\"Load timeout for modules: \"+s,null,s),e.contextName=x.contextName,l(e);a&&v(o,function(e){p(e,{},{})}),(!n||t)&&u&&(z||ea)&&!L&&(L=setTimeout(function(){L=0,d()},50)),E=!1}}function y(e){t(j,e[0])||a(o(e[0],null,!0)).init(e[1],e[2])}function b(e){var e=e.currentTarget||e.srcElement,t=x.onScriptLoad;return e.detachEvent&&!Y?e.detachEvent(\"onreadystatechange\",t):e.removeEventListener(\"load\",t,!1),t=x.onScriptError,(!e.detachEvent||Y)&&e.removeEventListener(\"error\",t,!1),{node:e,id:e&&e.getAttribute(\"data-requiremodule\")}}function w(){var e;for(c();P.length;){e=P.shift();if(null===e[0])return l(C(\"mismatch\",\"Mismatched anonymous define() module: \"+e[e.length-1]));y(e)}}var E,S,x,k,L,A={waitSeconds:7,baseUrl:\"./\",paths:{},bundles:{},pkgs:{},shim:{},config:{}},O={},_={},D={},P=[],j={},F={},I={},q=1,W=1;return k={require:function(e){return e.require?e.require:e.require=x.makeRequire(e.map)},exports:function(e){e.usingExports=!0;if(e.map.isDefine)return e.exports?j[e.map.id]=e.exports:e.exports=j[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return m(A.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},S=function(e){this.events=m(D,e.id)||{},this.map=e,this.shim=m(A.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},S.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on(\"error\",n):this.events.error&&(n=u(this,function(e){this.emit(\"error\",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,x.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();x.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;F[e]||(F[e]=!0,x.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id;t=this.depExports;var r=this.exports,i=this.factory;if(this.inited){if(this.error)this.emit(\"error\",this.error);else if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(G(i)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{r=x.execCb(n,i,t,r)}catch(s){e=s}else r=x.execCb(n,i,t,r);this.map.isDefine&&void 0===r&&((t=this.module)?r=t.exports:this.usingExports&&(r=this.exports));if(e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?\"define\":\"require\",l(this.error=e)}else r=i;this.exports=r,this.map.isDefine&&!this.ignore&&(j[n]=r,g.onResourceLoad)&&g.onResourceLoad(x,this.map,this.depMaps),h(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit(\"defined\",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,r=e.id,i=o(e.prefix);this.depMaps.push(i),f(i,\"defined\",u(this,function(i){var s,c;c=m(I,this.map.id);var p=this.map.name,d=this.map.parentMap?this.map.parentMap.name:null,v=x.makeRequire(e.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(i.normalize&&(p=i.normalize(p,function(e){return n(e,d,!0)})||\"\"),i=o(e.prefix+\"!\"+p,this.map.parentMap),f(i,\"defined\",u(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),c=m(O,i.id))this.depMaps.push(i),this.events.error&&c.on(\"error\",u(this,function(e){this.emit(\"error\",e)})),c.enable()}else c?(this.map.url=x.nameToUrl(c),this.load()):(s=u(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),s.error=u(this,function(e){this.inited=!0,this.error=e,e.requireModules=[r],B(O,function(e){0===e.map.id.indexOf(r+\"_unnormalized\")&&h(e.map.id)}),l(e)}),s.fromText=u(this,function(n,i){var u=e.name,f=o(u),c=M;i&&(n=i),c&&(M=!1),a(f),t(A.config,r)&&(A.config[u]=A.config[r]);try{g.exec(n)}catch(h){return l(C(\"fromtexteval\",\"fromText eval for \"+r+\" failed: \"+h,h,[r]))}c&&(M=!0),this.depMaps.push(f),x.completeLoad(u),v([u],s)}),i.load(e.name,v,s,A))})),x.enable(i,this),this.pluginMaps[i.id]=i},enable:function(){_[this.map.id]=this,this.enabling=this.enabled=!0,v(this.depMaps,u(this,function(e,n){var r,i;if(\"string\"==typeof e){e=o(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[n]=e;if(r=m(k,e.id)){this.depExports[n]=r(this);return}this.depCount+=1,f(e,\"defined\",u(this,function(e){this.defineDep(n,e),this.check()})),this.errback&&f(e,\"error\",u(this,this.errback))}r=e.id,i=O[r],!t(k,r)&&i&&!i.enabled&&x.enable(e,this)})),B(this.pluginMaps,u(this,function(e){var t=m(O,e.id);t&&!t.enabled&&x.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){v(this.events[e],function(e){e(t)}),\"error\"===e&&delete this.events[e]}},x={config:A,contextName:e,registry:O,defined:j,urlFetched:F,defQueue:P,Module:S,makeModuleMap:o,nextTick:g.nextTick,onError:l,configure:function(e){e.baseUrl&&\"/\"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+=\"/\");var t=A.shim,n={paths:!0,bundles:!0,config:!0,map:!0};B(e,function(e,t){n[t]?(A[t]||(A[t]={}),U(A[t],e,!0,!0)):A[t]=e}),e.bundles&&B(e.bundles,function(e,t){v(e,function(e){e!==t&&(I[e]=t)})}),e.shim&&(B(e.shim,function(e,n){H(e)&&(e={deps:e}),(e.exports||e.init)&&!e.exportsFn&&(e.exportsFn=x.makeShimExports(e)),t[n]=e}),A.shim=t),e.packages&&v(e.packages,function(e){var t,e=\"string\"==typeof e?{name:e}:e;t=e.name,e.location&&(A.paths[t]=e.location),A.pkgs[t]=e.name+\"/\"+(e.main||\"main\").replace(ia,\"\").replace(Q,\"\")}),B(O,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=o(t))}),(e.deps||e.callback)&&x.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(ba,arguments)),t||e.exports&&da(e.exports)}},makeRequire:function(i,s){function u(n,r,f){var c,h;return s.enableBuildCallback&&r&&G(r)&&(r.__requireJsBuild=!0),\"string\"==typeof n?G(r)?l(C(\"requireargs\",\"Invalid require call\"),f):i&&t(k,n)?k[n](O[i.id]):g.get?g.get(x,n,i,u):(c=o(n,i,!1,!0),c=c.id,t(j,c)?j[c]:l(C(\"notloaded\",'Module name \"'+c+'\" has not been loaded yet for context: '+e+(i?\"\":\". Use require([])\")))):(w(),x.nextTick(function(){w(),h=a(o(null,i)),h.skipMap=s.skipMap,h.init(n,r,f,{enabled:!0}),d()}),u)}return s=s||{},U(u,{isBrowser:z,toUrl:function(e){var t,r=e.lastIndexOf(\".\"),s=e.split(\"/\")[0];return-1!==r&&(\".\"!==s&&\"..\"!==s||1<r)&&(t=e.substring(r,e.length),e=e.substring(0,r)),x.nameToUrl(n(e,i&&i.id,!0),t,!0)},defined:function(e){return t(j,o(e,i,!1,!0).id)},specified:function(e){return e=o(e,i,!1,!0).id,t(j,e)||t(O,e)}}),i||(u.undef=function(e){c();var t=o(e,i,!0),n=m(O,e);r(e),delete j[e],delete F[t.url],delete D[e],T(P,function(t,n){t[0]===e&&P.splice(n,1)}),n&&(n.events.defined&&(D[e]=n.events),h(e))}),u},enable:function(e){m(O,e.id)&&a(e).enable()},completeLoad:function(e){var n,r,s=m(A.shim,e)||{},o=s.exports;for(c();P.length;){r=P.shift();if(null===r[0]){r[0]=e;if(n)break;n=!0}else r[0]===e&&(n=!0);y(r)}r=m(O,e);if(!n&&!t(j,e)&&r&&!r.inited){if(A.enforceDefine&&(!o||!da(o)))return i(e)?void 0:l(C(\"nodefine\",\"No define call for \"+e,null,[e]));y([e,s.deps||[],s.exportsFn])}d()},nameToUrl:function(e,t,n){var r,i,s;(r=m(A.pkgs,e))&&(e=r);if(r=m(I,e))return x.nameToUrl(r,t,n);if(g.jsExtRegExp.test(e))r=e+(t||\"\");else{r=A.paths,e=e.split(\"/\");for(i=e.length;0<i;i-=1)if(s=e.slice(0,i).join(\"/\"),s=m(r,s)){H(s)&&(s=s[0]),e.splice(0,i,s);break}r=e.join(\"/\"),r+=t||(/^data\\:|\\?/.test(r)||n?\"\":\".js\"),r=(\"/\"===r.charAt(0)||r.match(/^[\\w\\+\\.\\-]+:/)?\"\":A.baseUrl)+r}return A.urlArgs?r+((-1===r.indexOf(\"?\")?\"?\":\"&\")+A.urlArgs):r},load:function(e,t){g.load(x,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if(\"load\"===e.type||ja.test((e.currentTarget||e.srcElement).readyState))N=null,e=b(e),x.completeLoad(e.id)},onScriptError:function(e){var t=b(e);if(!i(t.id))return l(C(\"scripterror\",\"Script error for: \"+t.id,e,[t.id]))}},x.require=x.makeRequire(),x}var g,x,y,D,I,E,N,J,s,O,ka=/(\\/\\*([\\s\\S]*?)\\*\\/|([^:]|^)\\/\\/(.*)$)/mg,la=/[^.]\\s*require\\s*\\(\\s*[\"']([^'\"\\s]+)[\"']\\s*\\)/g,Q=/\\.js$/,ia=/^\\.\\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=\"undefined\"!=typeof window&&\"undefined\"!=typeof navigator&&!!window.document,ea=!z&&\"undefined\"!=typeof importScripts,ja=z&&\"PLAYSTATION 3\"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y=\"undefined\"!=typeof opera&&\"[object Opera]\"===opera.toString(),F={},q={},R=[],M=!1;if(\"undefined\"==typeof define){if(\"undefined\"!=typeof requirejs){if(G(requirejs))return;q=requirejs,requirejs=void 0}\"undefined\"!=typeof require&&!G(require)&&(q=require,require=void 0),g=requirejs=function(e,t,n,r){var i,s=\"_\";return!H(e)&&\"string\"!=typeof e&&(i=e,H(t)?(e=t,t=n,n=r):e=[]),i&&i.context&&(s=i.context),(r=m(F,s))||(r=F[s]=g.s.newContext(s)),i&&r.configure(i),r.require(e,t,n)},g.config=function(e){return g(e)},g.nextTick=\"undefined\"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=g),g.version=\"2.1.14\",g.jsExtRegExp=/^\\/|:|\\?|\\.js$/,g.isBrowser=z,x=g.s={contexts:F,newContext:ga},g({}),v([\"toUrl\",\"undef\",\"defined\",\"specified\"],function(e){g[e]=function(){var t=F._;return t.require[e].apply(t,arguments)}}),z&&(y=x.head=document.getElementsByTagName(\"head\")[0],D=document.getElementsByTagName(\"base\")[0])&&(y=x.head=D.parentNode),g.onError=ca,g.createNode=function(e){var t=e.xhtml?document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"html:script\"):document.createElement(\"script\");return t.type=e.scriptType||\"text/javascript\",t.charset=\"utf-8\",t.async=!0,t},g.load=function(e,t,n){var r=e&&e.config||{};if(z)return r=g.createNode(r,t,n),r.setAttribute(\"data-requirecontext\",e.contextName),r.setAttribute(\"data-requiremodule\",t),r.attachEvent&&!(r.attachEvent.toString&&0>r.attachEvent.toString().indexOf(\"[native code\"))&&!Y?(M=!0,r.attachEvent(\"onreadystatechange\",e.onScriptLoad)):(r.addEventListener(\"load\",e.onScriptLoad,!1),r.addEventListener(\"error\",e.onScriptError,!1)),r.src=n,J=r,D?y.insertBefore(r,D):y.appendChild(r),J=null,r;if(ea)try{importScripts(n),e.completeLoad(t)}catch(i){e.onError(C(\"importscripts\",\"importScripts failed for \"+t+\" at \"+n,i,[t]))}},z&&!q.skipDataMain&&T(document.getElementsByTagName(\"script\"),function(e){y||(y=e.parentNode);if(I=e.getAttribute(\"data-main\"))return s=I,q.baseUrl||(E=s.split(\"/\"),s=E.pop(),O=E.length?E.join(\"/\")+\"/\":\"./\",q.baseUrl=O),s=s.replace(Q,\"\"),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0}),define=function(e,t,n){var r,i;\"string\"!=typeof e&&(n=t,t=e,e=null),H(t)||(n=t,t=null),!t&&G(n)&&(t=[],n.length&&(n.toString().replace(ka,\"\").replace(la,function(e,n){t.push(n)}),t=(1===n.length?[\"require\"]:[\"require\",\"exports\",\"module\"]).concat(t))),M&&((r=J)||(N&&\"interactive\"===N.readyState||T(document.getElementsByTagName(\"script\"),function(e){if(\"interactive\"===e.readyState)return N=e}),r=N),r&&(e||(e=r.getAttribute(\"data-requiremodule\")),i=F[r.getAttribute(\"data-requirecontext\")])),(i?i.defQueue:R).push([e,t,n])},define.amd={jQuery:!0},g.exec=function(b){return eval(b)},g(q)}})(this)"
  327.          },
  328.          "redirectURL": "",
  329.          "headersSize": 124,
  330.          "bodySize": 14879
  331.        },
  332.        "cache": {},
  333.        "timings": {
  334.          "blocked": 0,
  335.          "dns": 0,
  336.          "connect": 1,
  337.          "send": 0,
  338.          "wait": 26,
  339.          "receive": 0
  340.        },
  341.        "serverIPAddress": "10.0.3.211",
  342.        "connection": "8090"
  343.      },
  344.      {
  345.        "pageref": "page_2",
  346.        "startedDateTime": "2016-01-29T10:43:27.737+05:30",
  347.        "time": 46,
  348.        "request": {
  349.          "bodySize": 0,
  350.          "method": "GET",
  351.          "url": "http://openam.mydomain.com:8090/openam/XUI/main.js",
  352.          "httpVersion": "HTTP/1.1",
  353.          "headers": [
  354.            {
  355.              "name": "Host",
  356.              "value": "openam.mydomain.com:8090"
  357.            },
  358.            {
  359.              "name": "User-Agent",
  360.              "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  361.             },
  362.             {
  363.               "name": "Accept",
  364.               "value": "*/*"
  365.             },
  366.             {
  367.               "name": "Accept-Language",
  368.               "value": "en-US,en;q=0.5"
  369.             },
  370.             {
  371.               "name": "Accept-Encoding",
  372.               "value": "gzip, deflate"
  373.             },
  374.             {
  375.               "name": "Referer",
  376.               "value": "http://openam.mydomain.com:8090/openam/XUI/"
  377.             },
  378.             {
  379.               "name": "Connection",
  380.               "value": "keep-alive"
  381.             },
  382.             {
  383.               "name": "If-Modified-Since",
  384.               "value": "Wed, 17 Dec 2014 15:46:48 GMT"
  385.             },
  386.             {
  387.               "name": "If-None-Match",
  388.               "value": "W/\"406899-1418831208000\""
  389.             },
  390.             {
  391.               "name": "Cache-Control",
  392.               "value": "max-age=0"
  393.             }
  394.           ],
  395.           "cookies": [],
  396.           "queryString": [],
  397.           "postData": {
  398.             "mimeType": "",
  399.             "params": [],
  400.             "text": ""
  401.           },
  402.           "headersSize": 431
  403.         },
  404.         "response": {
  405.           "status": 304,
  406.           "statusText": "Not Modified",
  407.           "httpVersion": "HTTP/1.1",
  408.           "headers": [
  409.             {
  410.               "name": "Server",
  411.               "value": "Apache-Coyote/1.1"
  412.             },
  413.             {
  414.               "name": "Etag",
  415.               "value": "W/\"406899-1418831208000\""
  416.             },
  417.             {
  418.               "name": "Date",
  419.               "value": "Fri, 29 Jan 2016 05:13:27 GMT"
  420.             }
  421.           ],
  422.           "cookies": [],
  423.           "content": {
  424.             "mimeType": "application/javascript",
  425.             "size": 406862,
  426.             "text": "/**\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.\n *\n * Copyright (c) 2011-2013 ForgeRock AS. All rights reserved.\n *\n * The contents of this file are subject to the terms\n * of the Common Development and Distribution License\n * (the License). You may not use this file except in\n * compliance with the License.\n *\n * You can obtain a copy of the License at\n * http://forgerock.org/license/CDDLv1.0.html\n * See the License for the specific language governing\n * permission and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL\n * Header Notice in each file and include the License file\n * at http://forgerock.org/license/CDDLv1.0.html\n * If applicable, add the following below the CDDL Header,\n * with the fields enclosed by brackets [] replaced by\n * your own identifying information:\n * \"Portions Copyrighted [year] [name of copyright owner]\"\n */\n \n // Backbone.js 0.9.2\n\n// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.\n// Backbone may be freely distributed under the MIT license.\n// For all details and documentation:\n// http://backbonejs.org\n\n/*\n * File:        jquery.dataTables.min.js\n * Version:     1.9.3\n * Author:      Allan Jardine (www.sprymedia.co.uk)\n * Info:        www.datatables.net\n * \n * Copyright 2008-2012 Allan Jardine, all rights reserved.\n *\n * This source file is free software, under either the GPL v2 license or a\n * BSD style license, available at:\n *   http://datatables.net/license_gpl2\n *   http://datatables.net/license_bsd\n * \n * This source file is distributed in the hope that it will be useful, but \n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY \n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\n */\n \n /**\n * Copyright (c) 2010 Maxim Vasiliev\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * @author Maxim Vasiliev\n * Date: 09.09.2010\n * Time: 19:02:33\n */\n \n // i18next, v1.5.8\n// Copyright (c)2012 Jan Mühlemann (jamuhl).\n// Distributed under MIT license\n// http://i18next.com\n\n/*\n * jQuery doTimeout: Like setTimeout, but better! - v1.0 - 3/3/2010\n * http://benalman.com/projects/jquery-dotimeout-plugin/\n * \n * Copyright (c) 2010 \"Cowboy\" Ben Alman\n * Dual licensed under the MIT and GPL licenses.\n * http://benalman.com/about/license/\n */\n \n /*! jQuery UI - v1.8.23 - 2012-08-15\n* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.core.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.widget.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.mouse.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.draggable.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.droppable.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.sortable.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/* https://github.com/jquery/jquery-ui\n* Includes: jquery.ui.accordion.js\n* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */\n\n/**\n * Copyright (c) 2010 Maxim Vasiliev\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * @author Maxim Vasiliev\n * Date: 19.09.11\n * Time: 23:40\n */\n \n //\n// LESS - Leaner CSS v1.3.3\n// http://lesscss.org\n// \n// Copyright (c) 2009-2013, Alexis Sellier\n// Licensed under the Apache 2.0 License.\n//\n\n// moment.js\n// version : 1.7.2\n// author : Tim Wood\n// license : MIT\n// momentjs.com\n\n \n //fgnass.github.com/spin.js#v1.2.6\n \n /*\n XDate v0.7\n Docs & Licensing: http://arshaw.com/xdate/\n*/\n define(\"org/forgerock/commons/ui/common/util/Constants\",[],function(){var e={};return e.host=\"\",e.EVENT_SERVICE_UNAVAILABLE=\"error.SERICE_UNAVAILABLE\",e.EVENT_PROFILE_INITIALIZATION=\"user.profile.EVENT_PROFILE_INITIALIZATION\",e.LESS_VERSION=\"libs/less-1.5.1-min.js\",e.EVENT_END_REST_CALL=\"common.delegate.EVENT_END_REST_CALL\",e.EVENT_START_REST_CALL=\"common.delegate.EVENT_START_REST_CALL\",e.EVENT_REST_CALL_ERROR=\"common.delegate.EVENT_REST_CALL_ERROR\",e.EVENT_DIALOG_CLOSE=\"dialog.EVENT_DIALOG_CLOSE\",e.EVENT_SHOW_DIALOG=\"dialog.EVENT_SHOW_DIALOG\",e.EVENT_CHANGE_VIEW=\"view.EVENT_CHANGE_VIEW\",e.EVENT_UNAUTHORIZED=\"view.EVENT_UNAUTHORIZED\",e.EVENT_SUCCESFULY_LOGGGED_IN=\"user.login.EVENT_SUCCESFULY_LOGGGED_IN\",e.EVENT_LOGIN_FAILED=\"user.login.EVENT_LOGIN_FAILED\",e.EVENT_LOGOUT=\"user.login.EVENT_LOGOUT\",e.EVENT_SELF_REGISTRATION_REQUEST=\"user.login.EVENT_SELF_REGISTRATION_REQUEST\",e.EVENT_LOGIN_REQUEST=\"user.login.EVENT_LOGIN_REQUEST\",e.EVENT_AUTHENTICATED=\"user.login.EVENT_AUTHENTICATED\",e.EVENT_ADMIN_LOGGED_IN=\"user.login.EVENT_ADMIN_LOGGED_IN\",e.EVENT_SHOW_PROFILE_REQUEST=\"user.profile.EVENT_SHOW_PROFILE_REQUEST\",e.EVENT_USER_PROFILE_UPDATE_FAILED=\"user.profile.EVENT_USER_PROFILE_UPDATE_FAILED\",e.EVENT_USER_PROFILE_UPDATED_SUCCESSFULY=\"user.profile.EVENT_USER_PROFILE_UPDATED_SUCCESSFULY\",e.EVENT_USERNAME_UPDATED_SUCCESSFULY=\"user.profile.EVENT_USERNAME_UPDATED_SUCCESSFULY\",e.EVENT_PROFILE_DELETE_USER_REQUEST=\"user.profile.EVENT_PROFILE_DELETE_USER_REQUEST\",e.EVENT_GO_BACK_REQUEST=\"user.profile.EVENT_GO_BACK_REQUEST\",e.EVENT_SECURITY_DATA_CHANGE_REQUEST=\"user.profile.EVENT_SECURITY_DATA_CHANGE_REQUEST\",e.EVENT_SITE_IDENTIFICATION_CHANGE_REQUEST=\"user.profile.EVENT_SITE_IDENTIFICATION_CHANGE_REQUEST\",e.EVENT_ENTER_OLD_PASSWORD_REQUEST=\"user.profile.EVENT_ENTER_OLD_PASSWORD_REQUEST\",e.EVENT_USER_SUCCESSFULLY_REGISTERED=\"user.registration.EVENT_USER_SUCCESSFULLY_REGISTERED\",e.EVENT_USER_REGISTRATION_ERROR=\"user.registration.EVENT_USER_REGISTRATION_ERROR\",e.EVENT_TERMS_OF_USE_REQUEST=\"user.registration.EVENT_TERMS_OF_USE_REQUEST\",e.EVENT_ADMIN_USERS=\"admin.usermanagement.EVENT_ADMIN_USERS\",e.EVENT_ADMIN_ADD_USER_REQUEST=\"admin.usermanagement.EVENT_ADMIN_ADD_USER_REQUEST\",e.EVENT_USER_LIST_DELETE_USER_REQUEST=\"admin.usermanagement.EVENT_USER_LIST_DELETE_USER_REQUEST\",e.EVENT_ADMIN_SHOW_PROFILE_REQUEST=\"admin.usermanagement.EVENT_ADMIN_SHOW_PROFILE_REQUEST\",e.EVENT_ADMIN_CHANGE_USER_PASSWORD=\"admin.usermanagement.EVENT_ADMIN_CHANGE_USER_PASSWORD\",e.EVENT_NAVIGATION_HOME_REQUEST=\"common.navigation.EVENT_NAVIGATION_HOME_REQUEST\",e.EVENT_SWITCH_VIEW_REQUEST=\"common.navigation.EVENT_SWITCH_VIEW_REQUEST\",e.EVENT_HANDLE_DEFAULT_ROUTE=\"common.navigation.EVENT_HANDLE_DEFAULT_ROUTE\",e.FORGOTTEN_PASSWORD_CHANGED_SUCCESSFULLY=\"user.forgottenpassword.FORGOTTEN_PASSWORD_CHANGED_SUCCESSFULLY\",e.EVENT_CONFIGURATION_CHANGED=\"main.Configuration.EVENT_CONFIGURATION_CHANGED\",e.EVENT_AUTHENTICATION_DATA_CHANGED=\"common.delegate.EVENT_AUTHENTICATION_DATA_CHANGED\",e.EVENT_APP_INTIALIZED=\"main.EVENT_APP_INTIALIZED\",e.EVENT_READ_CONFIGURATION_REQUEST=\"main.EVENT_READ_CONFIGURATION_REQUEST\",e.EVENT_DEPENDECIES_LOADED=\"main.EVENT_DEPENDECIES_LOADED\",e.ROUTE_REQUEST=\"view.ROUTE_REQUEST\",e.EVENT_CHANGE_BASE_VIEW=\"view.EVENT_CHANGE_BASE_VIEW\",e.EVENT_INVALID_REALM=\"main.EVENT_INVALID_REALM\",e.EVENT_NOTIFICATION_DELETE_FAILED=\"notification.EVENT_NOTIFICATION_DELETE_FAILED\",e.EVENT_GET_NOTIFICATION_FOR_USER_ERROR=\"notification.EVENT_GET_NOTIFICATION_FOR_USER_ERROR\",e.EVENT_DISPLAY_MESSAGE_REQUEST=\"messages.EVENT_DISPLAY_MESSAGE_REQUEST\",e.EVENT_USER_APPLICATION_DEFAULT_LNK_CHANGED=\"messages.EVENT_USER_APPLICATION_DEFAULT_LNK_CHANGED\",e.EVENT_REQUEST_RESEND_REQUIRED=\"messages.EVENT_REQUEST_RESEND_REQUIRED\",e.USER_APPLICATION_STATE_APPROVED=\"B65FA6A2-D43D-49CB-BEA0-CE98E275A8CD\",e.USER_APPLICATION_STATE_PENDING=\"B65FA6A2-D43D-49CD-BEA0-CE98E275A8CD\",e.DEFAULT_LANGUAGE=\"en\",e.ANONYMOUS_USERNAME=\"anonymous\",e.ANONYMOUS_PASSWORD=\"anonymous\",e.HEADER_PARAM_PASSWORD=\"X-Password\",e.HEADER_PARAM_USERNAME=\"X-Username\",e.HEADER_PARAM_NO_SESSION=\"X-NoSession\",e}),!function(e,t){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return t(e)}:t(e)}(\"undefined\"!=typeof window?window:this,function(e,t){function g(e){var t=e.length,n=h.type(e);return\"function\"===n||h.isWindow(e)?!1:1===e.nodeType&&t?!0:\"array\"===n||0===t||\"number\"==typeof t&&t>0&&t-1 in e}function S(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if(\"string\"==typeof t){if(E.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return h.inArray(e,t)>=0!==n})}function A(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function _(e){var t=M[e]={};return h.each(e.match(O)||[],function(e,n){t[n]=!0}),t}function P(){T.addEventListener?(T.removeEventListener(\"DOMContentLoaded\",H,!1),e.removeEventListener(\"load\",H,!1)):(T.detachEvent(\"onreadystatechange\",H),e.detachEvent(\"onload\",H))}function H(){(T.addEventListener||\"load\"===event.type||\"complete\"===T.readyState)&&(P(),h.ready())}function q(e,t,n){if(void 0===n&&1===e.nodeType){var r=\"data-\"+t.replace(I,\"-$1\").toLowerCase();if(n=e.getAttribute(r),\"string\"==typeof n){try{n=\"true\"===n?!0:\"false\"===n?!1:\"null\"===n?null:+n+\"\"===n?+n:F.test(n)?h.parseJSON(n):n}catch(i){}h.data(e,t,n)}else n=void 0}return n}function R(e){var t;for(t in e)if((\"data\"!==t||!h.isEmptyObject(e[t]))&&\"toJSON\"!==t)return!1;return!0}function U(e,t,r,i){if(h.acceptData(e)){var s,o,u=h.expando,a=e.nodeType,f=a?h.cache:e,l=a?e[u]:e[u]&&u;if(l&&f[l]&&(i||f[l].data)||void 0!==r||\"string\"!=typeof t)return l||(l=a?e[u]=n.pop()||h.guid++:u),f[l]||(f[l]=a?{}:{toJSON:h.noop}),(\"object\"==typeof t||\"function\"==typeof t)&&(i?f[l]=h.extend(f[l],t):f[l].data=h.extend(f[l].data,t)),o=f[l],i||(o.data||(o.data={}),o=o.data),void 0!==r&&(o[h.camelCase(t)]=r),\"string\"==typeof t?(s=o[t],null==s&&(s=o[h.camelCase(t)])):s=o,s}}function z(e,t,n){if(h.acceptData(e)){var r,i,s=e.nodeType,o=s?h.cache:e,u=s?e[h.expando]:h.expando;if(o[u]){if(t&&(r=n?o[u]:o[u].data)){h.isArray(t)?t=t.concat(h.map(t,h.camelCase)):t in r?t=[t]:(t=h.camelCase(t),t=t in r?[t]:t.split(\" \")),i=t.length;while(i--)delete r[t[i]];if(n?!R(r):!h.isEmptyObject(r))return}(n||(delete o[u].data,R(o[u])))&&(s?h.cleanData([e],!0):l.deleteExpando||o!=o.window?delete o[u]:o[u]=null)}}}function et(){return!0}function tt(){return!1}function nt(){try{return T.activeElement}catch(e){}}function rt(e){var t=it.split(\"|\"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function wt(e,t){var n,r,i=0,s=typeof e.getElementsByTagName!==B?e.getElementsByTagName(t||\"*\"):typeof e.querySelectorAll!==B?e.querySelectorAll(t||\"*\"):void 0;if(!s)for(s=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||h.nodeName(r,t)?s.push(r):h.merge(s,wt(r,t));return void 0===t||t&&h.nodeName(e,t)?h.merge([e],s):s}function Et(e){J.test(e.type)&&(e.defaultChecked=e.checked)}function St(e,t){return h.nodeName(e,\"table\")&&h.nodeName(11!==t.nodeType?t:t.firstChild,\"tr\")?e.getElementsByTagName(\"tbody\")[0]||e.appendChild(e.ownerDocument.createElement(\"tbody\")):e}function xt(e){return e.type=(null!==h.find.attr(e,\"type\"))+\"/\"+e.type,e}function Tt(e){var t=vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute(\"type\"),e}function Nt(e,t){for(var n,r=0;null!=(n=e[r]);r++)h._data(n,\"globalEval\",!t||h._data(t[r],\"globalEval\"))}function Ct(e,t){if(1===t.nodeType&&h.hasData(e)){var n,r,i,s=h._data(e),o=h._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;i>r;r++)h.event.add(t,n,u[n][r])}o.data&&(o.data=h.extend({},o.data))}}function kt(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!l.noCloneEvent&&t[h.expando]){i=h._data(t);for(r in i.events)h.removeEvent(t,r,i.handle);t.removeAttribute(h.expando)}\"script\"===n&&t.text!==e.text?(xt(t).text=e.text,Tt(t)):\"object\"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),l.html5Clone&&e.innerHTML&&!h.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):\"input\"===n&&J.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):\"option\"===n?t.defaultSelected=t.selected=e.defaultSelected:(\"input\"===n||\"textarea\"===n)&&(t.defaultValue=e.defaultValue)}}function Ot(t,n){var r,i=h(n.createElement(t)).appendTo(n.body),s=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:h.css(i[0],\"display\");return i.detach(),s}function Mt(e){var t=T,n=At[e];return n||(n=Ot(e,t),\"none\"!==n&&n||(Lt=(Lt||h(\"<iframe frameborder='0' width='0' height='0'/>\")).appendTo(t.documentElement),t=(Lt[0].contentWindow||Lt[0].contentDocument).document,t.write(),t.close(),n=Ot(e,t),Lt.detach()),At[e]=n),n}function jt(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function Vt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Xt.length;while(i--)if(t=Xt[i]+n,t in e)return t;return r}function $t(e,t){for(var n,r,i,s=[],o=0,u=e.length;u>o;o++)r=e[o],r.style&&(s[o]=h._data(r,\"olddisplay\"),n=r.style.display,t?(s[o]||\"none\"!==n||(r.style.display=\"\"),\"\"===r.style.display&&V(r)&&(s[o]=h._data(r,\"olddisplay\",Mt(r.nodeName)))):(i=V(r),(n&&\"none\"!==n||!i)&&h._data(r,\"olddisplay\",i?n:h.css(r,\"display\"))));for(o=0;u>o;o++)r=e[o],r.style&&(t&&\"none\"!==r.style.display&&\"\"!==r.style.display||(r.style.display=t?s[o]||\"\":\"none\"));return e}function Jt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||\"px\"):t}function Kt(e,t,n,r,i){for(var s=n===(r?\"border\":\"content\")?4:\"width\"===t?1:0,o=0;4>s;s+=2)\"margin\"===n&&(o+=h.css(e,n+X[s],!0,i)),r?(\"content\"===n&&(o-=h.css(e,\"padding\"+X[s],!0,i)),\"margin\"!==n&&(o-=h.css(e,\"border\"+X[s]+\"Width\",!0,i))):(o+=h.css(e,\"padding\"+X[s],!0,i),\"padding\"!==n&&(o+=h.css(e,\"border\"+X[s]+\"Width\",!0,i)));return o}function Qt(e,t,n){var r=!0,i=\"width\"===t?e.offsetWidth:e.offsetHeight,s=Pt(e),o=l.boxSizing&&\"border-box\"===h.css(e,\"boxSizing\",!1,s);if(0>=i||null==i){if(i=Ht(e,t,s),(0>i||null==i)&&(i=e.style[t]),Dt.test(i))return i;r=o&&(l.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Kt(e,t,n||(o?\"border\":\"content\"),r,s)+\"px\"}function Gt(e,t,n,r,i){return new Gt.prototype.init(e,t,n,r,i)}function on(){return setTimeout(function(){Yt=void 0}),Yt=h.now()}function un(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=X[i],r[\"margin\"+n]=r[\"padding\"+n]=e;return t&&(r.opacity=r.width=e),r}function an(e,t,n){for(var r,i=(sn[t]||[]).concat(sn[\"*\"]),s=0,o=i.length;o>s;s++)if(r=i[s].call(n,t,e))return r}function fn(e,t,n){var r,i,s,o,u,a,f,c,p=this,d={},v=e.style,m=e.nodeType&&V(e),g=h._data(e,\"fxshow\");n.queue||(u=h._queueHooks(e,\"fx\"),null==u.unqueued&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,p.always(function(){p.always(function(){u.unqueued--,h.queue(e,\"fx\").length||u.empty.fire()})})),1===e.nodeType&&(\"height\"in t||\"width\"in t)&&(n.overflow=[v.overflow,v.overflowX,v.overflowY],f=h.css(e,\"display\"),c=\"none\"===f?h._data(e,\"olddisplay\")||Mt(e.nodeName):f,\"inline\"===c&&\"none\"===h.css(e,\"float\")&&(l.inlineBlockNeedsLayout&&\"inline\"!==Mt(e.nodeName)?v.zoom=1:v.display=\"inline-block\")),n.overflow&&(v.overflow=\"hidden\",l.shrinkWrapBlocks()||p.always(function(){v.overflow=n.overflow[0],v.overflowX=n.overflow[1],v.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],en.exec(i)){if(delete t[r],s=s||\"toggle\"===i,i===(m?\"hide\":\"show\")){if(\"show\"!==i||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||h.style(e,r)}else f=void 0;if(h.isEmptyObject(d))\"inline\"===(\"none\"===f?Mt(e.nodeName):f)&&(v.display=f);else{g?\"hidden\"in g&&(m=g.hidden):g=h._data(e,\"fxshow\",{}),s&&(g.hidden=!m),m?h(e).show():p.done(function(){h(e).hide()}),p.done(function(){var t;h._removeData(e,\"fxshow\");for(t in d)h.style(e,t,d[t])});for(r in d)o=an(m?g[r]:0,r,p),r in g||(g[r]=o.start,m&&(o.end=o.start,o.start=\"width\"===r||\"height\"===r?1:0))}}function ln(e,t){var n,r,i,s,o;for(n in e)if(r=h.camelCase(n),i=t[r],s=e[n],h.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=h.cssHooks[r],o&&\"expand\"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}function cn(e,t,n){var r,i,s=0,o=rn.length,u=h.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;for(var t=Yt||on(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;a>o;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),1>s&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Yt||on(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;for(ln(l,f.opts.specialEasing);o>s;s++)if(r=rn[s].call(f,e,l,f.opts))return r;return h.map(l,an,f),h.isFunction(f.opts.start)&&f.opts.start.call(e,f),h.fx.timer(h.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Fn(e){return function(t,n){\"string\"!=typeof t&&(n=t,t=\"*\");var r,i=0,s=t.toLowerCase().match(O)||[];if(h.isFunction(n))while(r=s[i++])\"+\"===r.charAt(0)?(r=r.slice(1)||\"*\",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function In(e,t,n,r){function o(u){var a;return i[u]=!0,h.each(e[u]||[],function(e,u){var f=u(t,n,r);return\"string\"!=typeof f||s||i[f]?s?!(a=f):void 0:(t.dataTypes.unshift(f),o(f),!1)}),a}var i={},s=e===Hn;return o(t.dataTypes[0])||!i[\"*\"]&&o(\"*\")}function qn(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&h.extend(!0,e,n),e}function Rn(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while(\"*\"===a[0])a.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader(\"Content-Type\"));if(i)for(o in u)if(u[o]&&u[o].test(i)){a.unshift(o);break}if(a[0]in n)s=a[0];else{for(o in n){if(!a[0]||e.converters[o+\" \"+a[0]]){s=o;break}r||(r=o)}s=s||r}return s?(s!==a[0]&&a.unshift(s),n[s]):void 0}function Un(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift())if(\"*\"===s)s=a;else if(\"*\"!==a&&a!==s){if(o=f[a+\" \"+s]||f[\"* \"+s],!o)for(i in f)if(u=i.split(\" \"),u[1]===s&&(o=f[a+\" \"+u[0]]||f[\"* \"+u[0]])){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}if(o!==!0)if(o&&e[\"throws\"])t=o(t);else try{t=o(t)}catch(c){return{state:\"parsererror\",error:o?c:\"No conversion from \"+a+\" to \"+s}}}return{state:\"success\",data:t}}function Jn(e,t,n,r){var i;if(h.isArray(t))h.each(t,function(t,i){n||Wn.test(e)?r(e,i):Jn(e+\"[\"+(\"object\"==typeof i?t:\"\")+\"]\",i,n,r)});else if(n||\"object\"!==h.type(t))r(e,t);else for(i in t)Jn(e+\"[\"+i+\"]\",t[i],n,r)}function Yn(){try{return new e.XMLHttpRequest}catch(t){}}function Zn(){try{return new e.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(t){}}function ir(e){return h.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var n=[],r=n.slice,i=n.concat,s=n.push,o=n.indexOf,u={},a=u.toString,f=u.hasOwnProperty,l={},c=\"1.11.1\",h=function(e,t){return new h.fn.init(e,t)},p=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,d=/^-ms-/,v=/-([\\da-z])/gi,m=function(e,t){return t.toUpperCase()};h.fn=h.prototype={jquery:c,constructor:h,selector:\"\",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;for(\"boolean\"==typeof o&&(f=o,o=arguments[u]||{},u++),\"object\"==typeof o||h.isFunction(o)||(o={}),u===a&&(o=this,u--);a>u;u++)if(null!=(i=arguments[u]))for(r in i)e=o[r],n=i[r],o!==n&&(f&&n&&(h.isPlainObject(n)||(t=h.isArray(n)))?(t?(t=!1,s=e&&h.isArray(e)?e:[]):s=e&&h.isPlainObject(e)?e:{},o[r]=h.extend(f,s,n)):void 0!==n&&(o[r]=n));return o},h.extend({expando:\"jQuery\"+(c+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return\"function\"===h.type(e)},isArray:Array.isArray||function(e){return\"array\"===h.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||\"object\"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;try{if(e.constructor&&!f.call(e,\"constructor\")&&!f.call(e.constructor.prototype,\"isPrototypeOf\"))return!1}catch(n){return!1}if(l.ownLast)for(t in e)return f.call(e,t);for(t in e);return void 0===t||f.call(e,t)},type:function(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?u[a.call(e)]||\"object\":typeof e},globalEval:function(t){t&&h.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(d,\"ms-\").replace(v,m)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=g(e);if(n){if(o){for(;s>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(o){for(;s>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?\"\":(e+\"\").replace(p,\"\")},makeArray:function(e,t){var n=t||[];return null!=e&&(g(Object(e))?h.merge(n,\"string\"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(o)return o.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=+t.length,r=0,i=e.length;while(n>r)e[i++]=t[r++];if(n!==n)while(void 0!==t[r])e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],s=0,o=e.length,u=!n;o>s;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,s=0,o=e.length,u=g(e),a=[];if(u)for(;o>s;s++)r=t(e[s],s,n),null!=r&&a.push(r);else for(s in e)r=t(e[s],s,n),null!=r&&a.push(r);return i.apply([],a)},guid:1,proxy:function(e,t){var n,i,s;return\"string\"==typeof t&&(s=e[t],t=e,e=s),h.isFunction(e)?(n=r.call(arguments,2),i=function(){return e.apply(t||this,n.concat(r.call(arguments)))},i.guid=e.guid=e.guid||h.guid++,i):void 0},now:function(){return+(new Date)},support:l}),h.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(e,t){u[\"[object \"+t+\"]\"]=t.toLowerCase()});var y=function(e){function st(e,t,r,i){var s,u,f,l,c,d,g,y,S,x;if((t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,r=r||[],!e||\"string\"!=typeof e)return r;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!i){if(s=Z.exec(e))if(f=s[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return r;if(u.id===f)return r.push(u),r}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&b(t,u)&&u.id===f)return r.push(u),r}else{if(s[2])return P.apply(r,t.getElementsByTagName(e)),r;if((f=s[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(f)),r}if(n.qsa&&(!m||!m.test(e))){if(y=g=w,S=t,x=9===l&&e,1===l&&\"object\"!==t.nodeName.toLowerCase()){d=o(e),(g=t.getAttribute(\"id\"))?y=g.replace(tt,\"\\\\$&\"):t.setAttribute(\"id\",y),y=\"[id='\"+y+\"'] \",c=d.length;while(c--)d[c]=y+mt(d[c]);S=et.test(e)&&dt(t.parentNode)||t,x=d.join(\",\")}if(x)try{return P.apply(r,S.querySelectorAll(x)),r}catch(T){}finally{g||t.removeAttribute(\"id\")}}}return a(e.replace(z,\"$1\"),t,r,i)}function ot(){function t(n,i){return e.push(n+\" \")>r.cacheLength&&delete t[e.shift()],t[n+\" \"]=i}var e=[];return t}function ut(e){return e[w]=!0,e}function at(e){var t=p.createElement(\"div\");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ft(e,t){var n=e.split(\"|\"),i=e.length;while(i--)r.attrHandle[n[i]]=t}function lt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return\"input\"===n&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&t.type===e}}function pt(e){return ut(function(t){return t=+t,ut(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function dt(e){return e&&typeof e.getElementsByTagName!==L&&e}function vt(){}function mt(e){for(var t=0,n=e.length,r=\"\";n>t;t++)r+=e[t].value;return r}function gt(e,t,n){var r=t.dir,i=n&&\"parentNode\"===r,s=x++;return t.first?function(t,n,s){while(t=t[r])if(1===t.nodeType||i)return e(t,n,s)}:function(t,n,o){var u,a,f=[S,s];if(o){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,o))return!0}else while(t=t[r])if(1===t.nodeType||i){if(a=t[w]||(t[w]={}),(u=a[r])&&u[0]===S&&u[1]===s)return f[2]=u[2];if(a[r]=f,f[2]=e(t,n,o))return!0}}}function yt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function bt(e,t,n){for(var r=0,i=t.length;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r,i){for(var s,o=[],u=0,a=e.length,f=null!=t;a>u;u++)(s=e[u])&&(!n||n(s,r,i))&&(o.push(s),f&&t.push(u));return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),ut(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||bt(t||\"*\",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:wt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?B.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):P.apply(o,g)})}function St(e){for(var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[\" \"],a=o?1:0,l=gt(function(e){return e===t},u,!0),c=gt(function(e){return B.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];s>a;a++)if(n=r.relative[e[a].type])h=[gt(yt(h),n)];else{if(n=r.filter[e[a].type].apply(null,e[a].matches),n[w]){for(i=++a;s>i;i++)if(r.relative[e[i].type])break;return Et(a>1&&yt(h),a>1&&mt(e.slice(0,a-1).concat({value:\" \"===e[a-2].type?\"*\":\"\"})).replace(z,\"$1\"),n,i>a&&St(e.slice(a,i)),s>i&&St(e=e.slice(i)),s>i&&mt(e))}h.push(n)}return yt(h)}function xt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,h,d,v=0,m=\"0\",g=s&&[],y=[],b=f,w=s||i&&r.find.TAG(\"*\",l),E=S+=null==b?1:Math.random()||.1,x=w.length;for(l&&(f=o!==p&&o);m!==x&&null!=(c=w[m]);m++){if(i&&c){h=0;while(d=e[h++])if(d(c,o,u)){a.push(c);break}l&&(S=E)}n&&((c=!d&&c)&&v--,s&&g.push(c))}if(v+=m,n&&m!==v){h=0;while(d=t[h++])d(g,y,o,u);if(s){if(v>0)while(m--)g[m]||y[m]||(y[m]=_.call(a));y=wt(y)}P.apply(a,y),l&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(a)}return l&&(S=E,f=b),g};return n?ut(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w=\"sizzle\"+ -(new Date),E=e.document,S=0,x=0,T=ot(),N=ot(),C=ot(),k=function(e,t){return e===t&&(c=!0),0},L=\"undefined\",A=1<<31,O={}.hasOwnProperty,M=[],_=M.pop,D=M.push,P=M.push,H=M.slice,B=M.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},j=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",F=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",I=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",q=I.replace(\"w\",\"w#\"),R=\"\\\\[\"+F+\"*(\"+I+\")(?:\"+F+\"*([*^$|!~]?=)\"+F+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+q+\"))|)\"+F+\"*\\\\]\",U=\":(\"+I+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+R+\")*)|.*)\\\\)|)\",z=new RegExp(\"^\"+F+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+F+\"+$\",\"g\"),W=new RegExp(\"^\"+F+\"*,\"+F+\"*\"),X=new RegExp(\"^\"+F+\"*([>+~]|\"+F+\")\"+F+\"*\"),V=new RegExp(\"=\"+F+\"*([^\\\\]'\\\"]*?)\"+F+\"*\\\\]\",\"g\"),$=new RegExp(U),J=new RegExp(\"^\"+q+\"$\"),K={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+R),PSEUDO:new RegExp(\"^\"+U),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+F+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+F+\"*(?:([+-]|)\"+F+\"*(\\\\d+)|))\"+F+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+j+\")$\",\"i\"),needsContext:new RegExp(\"^\"+F+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+F+\"*((?:-\\\\d)?\\\\d*)\"+F+\"*\\\\)|)(?=[^-]|$)\",\"i\")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\\d$/i,Y=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,et=/[+~]/,tt=/'|\\\\/g,nt=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+F+\"?|(\"+F+\")|.)\",\"ig\"),rt=function(e,t,n){var r=\"0x\"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{P.apply(M=H.call(E.childNodes),E.childNodes),M[E.childNodes.length].nodeType}catch(it){P={apply:M.length?function(e,t){D.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=st.support={},s=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?\"HTML\"!==t.nodeName:!1},h=st.setDocument=function(e){var t,i=e?e.ownerDocument||e:E,o=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,d=i.documentElement,v=!s(i),o&&o!==o.top&&(o.addEventListener?o.addEventListener(\"unload\",function(){h()},!1):o.attachEvent&&o.attachEvent(\"onunload\",function(){h()})),n.attributes=at(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),n.getElementsByTagName=at(function(e){return e.appendChild(i.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),n.getElementsByClassName=Y.test(i.getElementsByClassName)&&at(function(e){return e.innerHTML=\"<div class='a'></div><div class='a i'></div>\",e.firstChild.className=\"i\",2===e.getElementsByClassName(\"i\").length}),n.getById=at(function(e){return d.appendChild(e).id=w,!i.getElementsByName||!i.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==L&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute(\"id\")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==L&&e.getAttributeNode(\"id\");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==L?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(\"*\"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==L&&v?t.getElementsByClassName(e):void 0},g=[],m=[],(n.qsa=Y.test(i.querySelectorAll))&&(at(function(e){e.innerHTML=\"<select msallowclip=''><option selected=''></option></select>\",e.querySelectorAll(\"[msallowclip^='']\").length&&m.push(\"[*^$]=\"+F+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||m.push(\"\\\\[\"+F+\"*(?:value|\"+j+\")\"),e.querySelectorAll(\":checked\").length||m.push(\":checked\")}),at(function(e){var t=i.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&m.push(\"name\"+F+\"*[*^$|!~]?=\"),e.querySelectorAll(\":enabled\").length||m.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),m.push(\",.*:\")})),(n.matchesSelector=Y.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&at(function(e){n.disconnectedMatch=y.call(e,\"div\"),y.call(e,\"[s!='']:x\"),g.push(\"!=\",U)}),m=m.length&&new RegExp(m.join(\"|\")),g=g.length&&new RegExp(g.join(\"|\")),t=Y.test(d.compareDocumentPosition),b=t||Y.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&1===r.nodeType&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===E&&b(E,e)?-1:t===i||t.ownerDocument===E&&b(E,t)?1:l?B.call(l,e)-B.call(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,s=e.parentNode,o=t.parentNode,u=[e],a=[t];if(!s||!o)return e===i?-1:t===i?1:s?-1:o?1:l?B.call(l,e)-B.call(l,t):0;if(s===o)return lt(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(u[r]===a[r])r++;return r?lt(u[r],a[r]):u[r]===E?-1:a[r]===E?1:0},i):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(V,\"='$1']\"),!(!n.matchesSelector||!v||g&&g.test(t)||m&&m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},st.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==s?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},st.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},st.uniqueSort=function(e){var t,r=[],i=0,s=0;if(c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k),c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=st.getText=function(e){var t,n=\"\",r=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===s||4===s)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},r=st.selectors={cacheLength:50,createPseudo:ut,match:K,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[3]||e[4]||e[5]||\"\").replace(nt,rt),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),\"nth\"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(\"even\"===e[3]||\"odd\"===e[3])),e[5]=+(e[7]+e[8]||\"odd\"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&$.test(n)&&(t=o(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+\" \"];return t||(t=new RegExp(\"(^|\"+F+\")\"+e+\"(\"+F+\"|$)\"))&&T(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||typeof e.getAttribute!==L&&e.getAttribute(\"class\")||\"\")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?\"!=\"===t:t?(i+=\"\",\"=\"===t?i===n:\"!=\"===t?i!==n:\"^=\"===t?n&&0===i.indexOf(n):\"*=\"===t?n&&i.indexOf(n)>-1:\"$=\"===t?n&&i.slice(-n.length)===n:\"~=\"===t?(\" \"+i+\" \").indexOf(n)>-1:\"|=\"===t?i===n||i.slice(0,n.length+1)===n+\"-\":!1):!0}},CHILD:function(e,t,n,r,i){var s=\"nth\"!==e.slice(0,3),o=\"last\"!==e.slice(-4),u=\"of-type\"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?\"nextSibling\":\"previousSibling\",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;d=v=\"only\"===e&&!d&&\"nextSibling\"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){l=m[w]||(m[w]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(1===c.nodeType&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[w]||(t[w]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++h&&(y&&((c[w]||(c[w]={}))[e]=[S,h]),c===t))break;return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||st.error(\"unsupported pseudo: \"+e);return i[w]?i(t):i.length>1?(n=[e,e,\"\",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ut(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=B.call(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ut(function(e){var t=[],n=[],r=u(e.replace(z,\"$1\"));return r[w]?ut(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:ut(function(e){return function(t){return st(e,t).length>0}}),contains:ut(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ut(function(e){return J.test(e||\"\")||st.error(\"unsupported lang: \"+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute(\"xml:lang\")||t.getAttribute(\"lang\"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+\"-\");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&!!e.checked||\"option\"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&\"button\"===e.type||\"button\"===t},text:function(e){var t;return\"input\"===e.nodeName.toLowerCase()&&\"text\"===e.type&&(null==(t=e.getAttribute(\"type\"))||\"text\"===t.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,o=st.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+\" \"];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){(!n||(i=W.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(s=[])),n=!1,(i=X.exec(u))&&(n=i.shift(),s.push({value:n,type:i[0].replace(z,\" \")}),u=u.slice(n.length));for(o in r.filter)!(i=K[o].exec(u))||f[o]&&!(i=f[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?st.error(e):N(e,a).slice(0)},u=st.compile=function(e,t){var n,r=[],i=[],s=C[e+\" \"];if(!s){t||(t=o(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r)),s.selector=e}return s},a=st.select=function(e,t,i,s){var a,f,l,c,h,p=\"function\"==typeof e&&e,d=!s&&o(e=p.selector||e);if(i=i||[],1===d.length){if(f=d[0]=d[0].slice(0),f.length>2&&\"ID\"===(l=f[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=K.needsContext.test(e)?0:f.length;while(a--){if(l=f[a],r.relative[c=l.type])break;if((h=r.find[c])&&(s=h(l.matches[0].replace(nt,rt),et.test(f[0].type)&&dt(t.parentNode)||t))){if(f.splice(a,1),e=s.length&&mt(f),!e)return P.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,et.test(e)&&dt(t.parentNode)||t),i},n.sortStable=w.split(\"\").sort(k).join(\"\")===w,n.detectDuplicates=!!c,h(),n.sortDetached=at(function(e){return 1&e.compareDocumentPosition(p.createElement(\"div\"))}),at(function(e){return e.innerHTML=\"<a href='#'></a>\",\"#\"===e.firstChild.getAttribute(\"href\")})||ft(\"type|href|height|width\",function(e,t,n){return n?void 0:e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),n.attributes&&at(function(e){return e.innerHTML=\"<input/>\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||ft(\"value\",function(e,t,n){return n||\"input\"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),at(function(e){return null==e.getAttribute(\"disabled\")})||ft(j,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),st}(e);h.find=y,h.expr=y.selectors,h.expr[\":\"]=h.expr.pseudos,h.unique=y.uniqueSort,h.text=y.getText,h.isXMLDoc=y.isXML,h.contains=y.contains;var b=h.expr.match.needsContext,w=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,E=/^.[^:#\\[\\.,]*$/;h.filter=function(e,t,n){var r=t[0];return n&&(e=\":not(\"+e+\")\"),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(\"string\"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;i>t;t++)if(h.contains(r[t],this))return!0}));for(t=0;i>t;t++)h.find(e,r[t],n);return n=this.pushStack(i>1?h.unique(n):n),n.selector=this.selector?this.selector+\" \"+e:e,n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,\"string\"==typeof e&&b.test(e)?h(e):e||[],!1).length}});var x,T=e.document,N=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,C=h.fn.init=function(e,t){var n,r;if(!e)return this;if(\"string\"==typeof e){if(n=\"<\"===e.charAt(0)&&\">\"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||x).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),w.test(n[1])&&h.isPlainObject(t))for(n in t)h.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=T.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return x.find(e);this.length=1,this[0]=r}return this.context=T,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?\"undefined\"!=typeof x.ready?x.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))};C.prototype=h.fn,x=h(T);var k=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};h.extend({dir:function(e,t,n){var r=[],i=e[t];while(i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!h(i).is(n)))1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),h.fn.extend({has:function(e){var t,n=h(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(h.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,s=[],o=b.test(e)||\"string\"!=typeof e?h(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?h.unique(s):s)},index:function(e){return e?\"string\"==typeof e?h.inArray(this[0],h(e)):h.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h.dir(e,\"parentNode\")},parentsUntil:function(e,t,n){return h.dir(e,\"parentNode\",n)},next:function(e){return A(e,\"nextSibling\")},prev:function(e){return A(e,\"previousSibling\")},nextAll:function(e){return h.dir(e,\"nextSibling\")},prevAll:function(e){return h.dir(e,\"previousSibling\")},nextUntil:function(e,t,n){return h.dir(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return h.dir(e,\"previousSibling\",n)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return h.nodeName(e,\"iframe\")?e.contentDocument||e.contentWindow.document:h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,r){var i=h.map(this,t,n);return\"Until\"!==e.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=h.filter(r,i)),this.length>1&&(L[e]||(i=h.unique(i)),k.test(e)&&(i=i.reverse())),this.pushStack(i)}});var O=/\\S+/g,M={};h.Callbacks=function(e){e=\"string\"==typeof e?M[e]||_(e):h.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(c){for(n=e.memory&&c,r=!0,s=o||0,o=0,i=u.length,t=!0;u&&i>s;s++)if(u[s].apply(c[0],c[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(a?a.length&&f(a.shift()):n?u=[]:l.disable())},l={add:function(){if(u){var r=u.length;!function s(t){h.each(t,function(t,n){var r=h.type(n);\"function\"===r?e.unique&&l.has(n)||u.push(n):n&&n.length&&\"string\"!==r&&s(n)})}(arguments),t?i=u.length:n&&(o=r,f(n))}return this},remove:function(){return u&&h.each(arguments,function(e,n){var r;while((r=h.inArray(n,u,r))>-1)u.splice(r,1),t&&(i>=r&&i--,s>=r&&s--)}),this},has:function(e){return e?h.inArray(e,u)>-1:!!u&&!!u.length},empty:function(){return u=[],i=0,this},disable:function(){return u=a=n=void 0,this},disabled:function(){return!u},lock:function(){return a=void 0,n||l.disable(),this},locked:function(){return!a},fireWith:function(e,n){return!u||r&&!a||(n=n||[],n=[e,n.slice?n.slice():n],t?a.push(n):f(n)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},h.extend({Deferred:function(e){var t=[[\"resolve\",\"done\",h.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",h.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",h.Callbacks(\"memory\")]],n=\"pending\",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,s){var o=h.isFunction(e[t])&&e[t];i[s[1]](function(){var e=o&&o.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+\"With\"](this===r?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[1^e][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+\"With\"](this===i?r:this,arguments),this},i[s[0]+\"With\"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=r.call(arguments),i=n.length,s=1!==i||e&&h.isFunction(e.promise)?i:0,o=1===s?e:h.Deferred(),u=function(e,t,n){return function(i){t[e]=this,n[e]=arguments.length>1?r.call(arguments):i,n===a?o.notifyWith(t,n):--s||o.resolveWith(t,n)}},a,f,l;if(i>1)for(a=new Array(i),f=new Array(i),l=new Array(i);i>t;t++)n[t]&&h.isFunction(n[t].promise)?n[t].promise().done(u(t,l,n)).fail(o.reject).progress(u(t,f,a)):--s;return s||o.resolveWith(l,n),o.promise()}});var D;h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){if(e===!0?!--h.readyWait:!h.isReady){if(!T.body)return setTimeout(h.ready);h.isReady=!0,e!==!0&&--h.readyWait>0||(D.resolveWith(T,[h]),h.fn.triggerHandler&&(h(T).triggerHandler(\"ready\"),h(T).off(\"ready\")))}}}),h.ready.promise=function(t){if(!D)if(D=h.Deferred(),\"complete\"===T.readyState)setTimeout(h.ready);else if(T.addEventListener)T.addEventListener(\"DOMContentLoaded\",H,!1),e.addEventListener(\"load\",H,!1);else{T.attachEvent(\"onreadystatechange\",H),e.attachEvent(\"onload\",H);var n=!1;try{n=null==e.frameElement&&T.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!h.isReady){try{n.doScroll(\"left\")}catch(e){return setTimeout(i,50)}P(),h.ready()}}()}return D.promise(t)};var B=\"undefined\",j;for(j in h(l))break;l.ownLast=\"0\"!==j,l.inlineBlockNeedsLayout=!1,h(function(){var e,t,n,r;n=T.getElementsByTagName(\"body\")[0],n&&n.style&&(t=T.createElement(\"div\"),r=T.createElement(\"div\"),r.style.cssText=\"position:absolute;border:0;width:0;height:0;top:0;left:-9999px\",n.appendChild(r).appendChild(t),typeof t.style.zoom!==B&&(t.style.cssText=\"display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1\",l.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=T.createElement(\"div\");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete e.test}catch(t){l.deleteExpando=!1}}e=null}(),h.acceptData=function(e){var t=h.noData[(e.nodeName+\" \").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute(\"classid\")===t};var F=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,I=/([A-Z])/g;h.extend({cache:{},noData:{\"applet \":!0,\"embed \":!0,\"object \":\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"},hasData:function(e){return e=e.nodeType?h.cache[e[h.expando]]:e[h.expando],!!e&&!R(e)},data:function(e,t,n){return U(e,t,n)},removeData:function(e,t){return z(e,t)},_data:function(e,t,n){return U(e,t,n,!0)},_removeData:function(e,t){return z(e,t,!0)}}),h.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(i=h.data(s),1===s.nodeType&&!h._data(s,\"parsedAttrs\"))){n=o.length;while(n--)o[n]&&(r=o[n].name,0===r.indexOf(\"data-\")&&(r=h.camelCase(r.slice(5)),q(s,r,i[r])));h._data(s,\"parsedAttrs\",!0)}return i}return\"object\"==typeof e?this.each(function(){h.data(this,e)}):arguments.length>1?this.each(function(){h.data(this,e,t)}):s?q(s,e,h.data(s,e)):void 0},removeData:function(e){return this.each(function(){h.removeData(this,e)})}}),h.extend({queue:function(e,t,n){var r;return e?(t=(t||\"fx\")+\"queue\",r=h._data(e,t),n&&(!r||h.isArray(n)?r=h._data(e,t,h.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||\"fx\";var n=h.queue(e,t),r=n.length,i=n.shift(),s=h._queueHooks(e,t),o=function(){h.dequeue(e,t)};\"inprogress\"===i&&(i=n.shift(),r--),i&&(\"fx\"===t&&n.unshift(\"inprogress\"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+\"queueHooks\";return h._data(e,n)||h._data(e,n,{empty:h.Callbacks(\"once memory\").add(function(){h._removeData(e,t+\"queue\"),h._removeData(e,n)})})}}),h.fn.extend({queue:function(e,t){var n=2;return\"string\"!=typeof e&&(t=e,e=\"fx\",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),\"fx\"===e&&\"inprogress\"!==n[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,t){var n,r=1,i=h.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};\"string\"!=typeof e&&(t=e,e=void 0),e=e||\"fx\";while(o--)n=h._data(s[o],e+\"queueHooks\"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var W=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,X=[\"Top\",\"Right\",\"Bottom\",\"Left\"],V=function(e,t){return e=t||e,\"none\"===h.css(e,\"display\")||!h.contains(e.ownerDocument,e)},$=h.access=function(e,t,n,r,i,s,o){var u=0,a=e.length,f=null==n;if(\"object\"===h.type(n)){i=!0;for(u in n)h.access(e,t,u,n[u],!0,s,o)}else if(void 0!==r&&(i=!0,h.isFunction(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(h(e),n)})),t))for(;a>u;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)));return i?e:f?t.call(e):a?t(e[0],n):s},J=/^(?:checkbox|radio)$/i;!function(){var e=T.createElement(\"input\"),t=T.createElement(\"div\"),n=T.createDocumentFragment();if(t.innerHTML=\"  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",l.leadingWhitespace=3===t.firstChild.nodeType,l.tbody=!t.getElementsByTagName(\"tbody\").length,l.htmlSerialize=!!t.getElementsByTagName(\"link\").length,l.html5Clone=\"<:nav></:nav>\"!==T.createElement(\"nav\").cloneNode(!0).outerHTML,e.type=\"checkbox\",e.checked=!0,n.appendChild(e),l.appendChecked=e.checked,t.innerHTML=\"<textarea>x</textarea>\",l.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML=\"<input type='radio' checked='checked' name='t'/>\",l.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,t.attachEvent&&(t.attachEvent(\"onclick\",function(){l.noCloneEvent=!1}),t.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete t.test}catch(r){l.deleteExpando=!1}}}(),function(){var t,n,r=T.createElement(\"div\");for(t in{submit:!0,change:!0,focusin:!0})n=\"on\"+t,(l[t+\"Bubbles\"]=n in e)||(r.setAttribute(n,\"t\"),l[t+\"Bubbles\"]=r.attributes[n].expando===!1);r=null}();var K=/^(?:input|select|textarea)$/i,Q=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\\.(.+)|)$/;h.event={global:{},add:function(e,t,n,r,i){var s,o,u,a,f,l,c,p,d,v,m,g=h._data(e);if(g){n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=h.guid++),(o=g.events)||(o=g.events={}),(l=g.handle)||(l=g.handle=function(e){return typeof h===B||e&&h.event.triggered===e.type?void 0:h.event.dispatch.apply(l.elem,arguments)},l.elem=e),t=(t||\"\").match(O)||[\"\"],u=t.length;while(u--)s=Z.exec(t[u])||[],d=m=s[1],v=(s[2]||\"\").split(\".\").sort(),d&&(f=h.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=h.event.special[d]||{},c=h.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:v.join(\".\")},a),(p=o[d])||(p=o[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,v,l)!==!1||(e.addEventListener?e.addEventListener(d,l,!1):e.attachEvent&&e.attachEvent(\"on\"+d,l))),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),h.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,p,d,v,m,g=h.hasData(e)&&h._data(e);if(g&&(l=g.events)){t=(t||\"\").match(O)||[\"\"],f=t.length;while(f--)if(u=Z.exec(t[f])||[],d=m=u[1],v=(u[2]||\"\").split(\".\").sort(),d){c=h.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,p=l[d]||[],u=u[2]&&new RegExp(\"(^|\\\\.)\"+v.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=s=p.length;while(s--)o=p[s],!i&&m!==o.origType||n&&n.guid!==o.guid||u&&!u.test(o.namespace)||r&&r!==o.selector&&(\"**\"!==r||!o.selector)||(p.splice(s,1),o.selector&&p.delegateCount--,c.remove&&c.remove.call(e,o));a&&!p.length&&(c.teardown&&c.teardown.call(e,v,g.handle)!==!1||h.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)h.event.remove(e,d+t[f],n,r,!0);h.isEmptyObject(l)&&(delete g.handle,h._removeData(e,\"events\"))}},trigger:function(t,n,r,i){var s,o,u,a,l,c,p,d=[r||T],v=f.call(t,\"type\")?t.type:t,m=f.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(u=c=r=r||T,3!==r.nodeType&&8!==r.nodeType&&!Y.test(v+h.event.triggered)&&(v.indexOf(\".\")>=0&&(m=v.split(\".\"),v=m.shift(),m.sort()),o=v.indexOf(\":\")<0&&\"on\"+v,t=t[h.expando]?t:new h.Event(v,\"object\"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=m.join(\".\"),t.namespace_re=t.namespace?new RegExp(\"(^|\\\\.)\"+m.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:h.makeArray(n,[t]),l=h.event.special[v]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!h.isWindow(r)){for(a=l.delegateType||v,Y.test(a+v)||(u=u.parentNode);u;u=u.parentNode)d.push(u),c=u;c===(r.ownerDocument||T)&&d.push(c.defaultView||c.parentWindow||e)}p=0;while((u=d[p++])&&!t.isPropagationStopped())t.type=p>1?a:l.bindType||v,s=(h._data(u,\"events\")||{})[t.type]&&h._data(u,\"handle\"),s&&s.apply(u,n),s=o&&u[o],s&&s.apply&&h.acceptData(u)&&(t.result=s.apply(u,n),t.result===!1&&t.preventDefault());if(t.type=v,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&h.acceptData(r)&&o&&r[v]&&!h.isWindow(r)){c=r[o],c&&(r[o]=null),h.event.triggered=v;try{r[v]()}catch(g){}h.event.triggered=void 0,c&&(r[o]=c)}return t.result}},dispatch:function(e){e=h.event.fix(e);var t,n,i,s,o,u=[],a=r.call(arguments),f=(h._data(this,\"events\")||{})[e.type]||[],l=h.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){u=h.event.handlers.call(this,e,f),t=0;while((s=u[t++])&&!e.isPropagationStopped()){e.currentTarget=s.elem,o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,n=((h.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||\"click\"!==e.type))for(;a!=this;a=a.parentNode||this)if(1===a.nodeType&&(a.disabled!==!0||\"click\"!==e.type)){for(i=[],s=0;u>s;s++)r=t[s],n=r.selector+\" \",void 0===i[n]&&(i[n]=r.needsContext?h(n,this).index(a)>=0:h.find(n,this,null,[a]).length),i[n]&&i.push(r);i.length&&o.push({elem:a,handlers:i})}return u<t.length&&o.push({elem:this,handlers:t.slice(u)}),o},fix:function(e){if(e[h.expando])return e;var t,n,r,i=e.type,s=e,o=this.fixHooks[i];o||(this.fixHooks[i]=o=G.test(i)?this.mouseHooks:Q.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,e=new h.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=s.srcElement||T),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,s):e},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:\"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(e,t){var n,r,i,s=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||T,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==nt()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:\"focusin\"},blur:{trigger:function(){return this===nt()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return h.nodeName(this,\"input\")&&\"checkbox\"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return h.nodeName(e.target,\"a\")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,t):h.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=T.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r=\"on\"+t;e.detachEvent&&(typeof e[r]===B&&(e[r]=null),e.detachEvent(r,n))},h.Event=function(e,t){return this instanceof h.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?et:tt):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),void (this[h.expando]=!0)):new h.Event(e,t)},h.Event.prototype={isDefaultPrevented:tt,isPropagationStopped:tt,isImmediatePropagationStopped:tt,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=et,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=et,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=et,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return(!i||i!==r&&!h.contains(r,i))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),l.submitBubbles||(h.event.special.submit={setup:function(){return h.nodeName(this,\"form\")?!1:void h.event.add(this,\"click._submit keypress._submit\",function(e){var t=e.target,n=h.nodeName(t,\"input\")||h.nodeName(t,\"button\")?t.form:void 0;n&&!h._data(n,\"submitBubbles\")&&(h.event.add(n,\"submit._submit\",function(e){e._submit_bubble=!0}),h._data(n,\"submitBubbles\",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&h.event.simulate(\"submit\",this.parentNode,e,!0))},teardown:function(){return h.nodeName(this,\"form\")?!1:void h.event.remove(this,\"._submit\")}}),l.changeBubbles||(h.event.special.change={setup:function(){return K.test(this.nodeName)?((\"checkbox\"===this.type||\"radio\"===this.type)&&(h.event.add(this,\"propertychange._change\",function(e){\"checked\"===e.originalEvent.propertyName&&(this._just_changed=!0)}),h.event.add(this,\"click._change\",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),h.event.simulate(\"change\",this,e,!0)})),!1):void h.event.add(this,\"beforeactivate._change\",function(e){var t=e.target;K.test(t.nodeName)&&!h._data(t,\"changeBubbles\")&&(h.event.add(t,\"change._change\",function(e){!this.parentNode||e.isSimulated||e.isTrigger||h.event.simulate(\"change\",this.parentNode,e,!0)}),h._data(t,\"changeBubbles\",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||\"radio\"!==t.type&&\"checkbox\"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return h.event.remove(this,\"._change\"),!K.test(this.nodeName)}}),l.focusinBubbles||h.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=h._data(r,t);i||r.addEventListener(e,n,!0),h._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=h._data(r,t)-1;i?h._data(r,t,i):(r.removeEventListener(e,n,!0),h._removeData(r,t))}}}),h.fn.extend({on:function(e,t,n,r,i){var s,o;if(\"object\"==typeof e){\"string\"!=typeof t&&(n=n||t,t=void 0);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&(\"string\"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=tt;else if(!r)return this;return 1===i&&(o=r,r=function(e){return h().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=h.guid++)),this.each(function(){h.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+\".\"+r.namespace:r.origType,r.selector,r.handler),this;if(\"object\"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||\"function\"==typeof t)&&(n=t,t=void 0),n===!1&&(n=tt),this.each(function(){h.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?h.event.trigger(e,t,n,!0):void 0}});var it=\"abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",st=/ jQuery\\d+=\"(?:null|\\d+)\"/g,ot=new RegExp(\"<(?:\"+it+\")[\\\\s/>]\",\"i\"),ut=/^\\s+/,at=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,ft=/<([\\w:]+)/,lt=/<tbody/i,ct=/<|&#?\\w+;/,ht=/<(?:script|style|link)/i,pt=/checked\\s*(?:[^=]|=\\s*.checked.)/i,dt=/^$|\\/(?:java|ecma)script/i,vt=/^true\\/(.*)/,mt=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,gt={option:[1,\"<select multiple='multiple'>\",\"</select>\"],legend:[1,\"<fieldset>\",\"</fieldset>\"],area:[1,\"<map>\",\"</map>\"],param:[1,\"<object>\",\"</object>\"],thead:[1,\"<table>\",\"</table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],col:[2,\"<table><tbody></tbody><colgroup>\",\"</colgroup></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:l.htmlSerialize?[0,\"\",\"\"]:[1,\"X<div>\",\"</div>\"]},yt=rt(T),bt=yt.appendChild(T.createElement(\"div\"));gt.optgroup=gt.option,gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,h.extend({clone:function(e,t,n){var r,i,s,o,u,a=h.contains(e.ownerDocument,e);if(l.html5Clone||h.isXMLDoc(e)||!ot.test(\"<\"+e.nodeName+\">\")?s=e.cloneNode(!0):(bt.innerHTML=e.outerHTML,bt.removeChild(s=bt.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(r=wt(s),u=wt(e),o=0;null!=(i=u[o]);++o)r[o]&&kt(i,r[o]);if(t)if(n)for(u=u||wt(e),r=r||wt(s),o=0;null!=(i=u[o]);o++)Ct(i,r[o]);else Ct(e,s);return r=wt(s,\"script\"),r.length>0&&Nt(r,!a&&wt(e,\"script\")),r=u=i=null,s},buildFragment:function(e,t,n,r){for(var i,s,o,u,a,f,c,p=e.length,d=rt(t),v=[],m=0;p>m;m++)if(s=e[m],s||0===s)if(\"object\"===h.type(s))h.merge(v,s.nodeType?[s]:s);else if(ct.test(s)){u=u||d.appendChild(t.createElement(\"div\")),a=(ft.exec(s)||[\"\",\"\"])[1].toLowerCase(),c=gt[a]||gt._default,u.innerHTML=c[1]+s.replace(at,\"<$1></$2>\")+c[2],i=c[0];while(i--)u=u.lastChild;if(!l.leadingWhitespace&&ut.test(s)&&v.push(t.createTextNode(ut.exec(s)[0])),!l.tbody){s=\"table\"!==a||lt.test(s)?\"<table>\"!==c[1]||lt.test(s)?0:u:u.firstChild,i=s&&s.childNodes.length;while(i--)h.nodeName(f=s.childNodes[i],\"tbody\")&&!f.childNodes.length&&s.removeChild(f)}h.merge(v,u.childNodes),u.textContent=\"\";while(u.firstChild)u.removeChild(u.firstChild);u=d.lastChild}else v.push(t.createTextNode(s));u&&d.removeChild(u),l.appendChecked||h.grep(wt(v,\"input\"),Et),m=0;while(s=v[m++])if((!r||-1===h.inArray(s,r))&&(o=h.contains(s.ownerDocument,s),u=wt(d.appendChild(s),\"script\"),o&&Nt(u),n)){i=0;while(s=u[i++])dt.test(s.type||\"\")&&n.push(s)}return u=null,d},cleanData:function(e,t){for(var r,i,s,o,u=0,a=h.expando,f=h.cache,c=l.deleteExpando,p=h.event.special;null!=(r=e[u]);u++)if((t||h.acceptData(r))&&(s=r[a],o=s&&f[s])){if(o.events)for(i in o.events)p[i]?h.event.remove(r,i):h.removeEvent(r,i,o.handle);f[s]&&(delete f[s],c?delete r[a]:typeof r.removeAttribute!==B?r.removeAttribute(a):r[a]=null,n.push(s))}}}),h.fn.extend({text:function(e){return $(this,function(e){return void 0===e?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||T).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=St(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=St(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?h.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||h.cleanData(wt(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&Nt(wt(n,\"script\")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&h.cleanData(wt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&h.nodeName(e,\"select\")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(st,\"\"):void 0;if(!(\"string\"!=typeof e||ht.test(e)||!l.htmlSerialize&&ot.test(e)||!l.leadingWhitespace&&ut.test(e)||gt[(ft.exec(e)||[\"\",\"\"])[1].toLowerCase()])){e=e.replace(at,\"<$1></$2>\");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(h.cleanData(wt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,h.cleanData(wt(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=i.apply([],e);var n,r,s,o,u,a,f=0,c=this.length,p=this,d=c-1,v=e[0],m=h.isFunction(v);if(m||c>1&&\"string\"==typeof v&&!l.checkClone&&pt.test(v))return this.each(function(n){var r=p.eq(n);m&&(e[0]=v.call(this,n,r.html())),r.domManip(e,t)});if(c&&(a=h.buildFragment(e,this[0].ownerDocument,!1,this),n=a.firstChild,1===a.childNodes.length&&(a=n),n)){for(o=h.map(wt(a,\"script\"),xt),s=o.length;c>f;f++)r=a,f!==d&&(r=h.clone(r,!0,!0),s&&h.merge(o,wt(r,\"script\"))),t.call(this[f],r,f);if(s)for(u=o[o.length-1].ownerDocument,h.map(o,Tt),f=0;s>f;f++)r=o[f],dt.test(r.type||\"\")&&!h._data(r,\"globalEval\")&&h.contains(u,r)&&(r.src?h._evalUrl&&h._evalUrl(r.src):h.globalEval((r.text||r.textContent||r.innerHTML||\"\").replace(mt,\"\")));a=n=null}return this}}),h.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(e,t){h.fn[e]=function(e){for(var n,r=0,i=[],o=h(e),u=o.length-1;u>=r;r++)n=r===u?this:this.clone(!0),h(o[r])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Lt,At={};!function(){var e;l.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=T.getElementsByTagName(\"body\")[0],n&&n.style?(t=T.createElement(\"div\"),r=T.createElement(\"div\"),r.style.cssText=\"position:absolute;border:0;width:0;height:0;top:0;left:-9999px\",n.appendChild(r).appendChild(t),typeof t.style.zoom!==B&&(t.style.cssText=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1\",t.appendChild(T.createElement(\"div\")).style.width=\"5px\",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var _t=/^margin/,Dt=new RegExp(\"^(\"+W+\")(?!px)[a-z%]+$\",\"i\"),Pt,Ht,Bt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Pt=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n.getPropertyValue(t)||n[t]:void 0,n&&(\"\"!==o||h.contains(e.ownerDocument,e)||(o=h.style(e,t)),Dt.test(o)&&_t.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0===o?o:o+\"\"}):T.documentElement.currentStyle&&(Pt=function(e){return e.currentStyle},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n[t]:void 0,null==o&&u&&u[t]&&(o=u[t]),Dt.test(o)&&!Bt.test(t)&&(r=u.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),u.left=\"fontSize\"===t?\"1em\":o,o=u.pixelLeft+\"px\",u.left=r,s&&(i.left=s)),void 0===o?o:o+\"\"||\"auto\"}),!function(){var t,n,r,i,s,o,u;if(t=T.createElement(\"div\"),t.innerHTML=\"  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",r=t.getElementsByTagName(\"a\")[0],n=r&&r.style){n.cssText=\"float:left;opacity:.5\",l.opacity=\"0.5\"===n.opacity,l.cssFloat=!!n.cssFloat,t.style.backgroundClip=\"content-box\",t.cloneNode(!0).style.backgroundClip=\"\",l.clearCloneStyle=\"content-box\"===t.style.backgroundClip,l.boxSizing=\"\"===n.boxSizing||\"\"===n.MozBoxSizing||\"\"===n.WebkitBoxSizing,h.extend(l,{reliableHiddenOffsets:function(){return null==o&&a(),o},boxSizingReliable:function(){return null==s&&a(),s},pixelPosition:function(){return null==i&&a(),i},reliableMarginRight:function(){return null==u&&a(),u}});function a(){var t,n,r,a;n=T.getElementsByTagName(\"body\")[0],n&&n.style&&(t=T.createElement(\"div\"),r=T.createElement(\"div\"),r.style.cssText=\"position:absolute;border:0;width:0;height:0;top:0;left:-9999px\",n.appendChild(r).appendChild(t),t.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute\",i=s=!1,u=!0,e.getComputedStyle&&(i=\"1%\"!==(e.getComputedStyle(t,null)||{}).top,s=\"4px\"===(e.getComputedStyle(t,null)||{width:\"4px\"}).width,a=t.appendChild(T.createElement(\"div\")),a.style.cssText=t.style.cssText=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0\",a.style.marginRight=a.style.width=\"0\",t.style.width=\"1px\",u=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),t.innerHTML=\"<table><tr><td></td><td>t</td></tr></table>\",a=t.getElementsByTagName(\"td\"),a[0].style.cssText=\"margin:0;border:0;padding:0;display:none\",o=0===a[0].offsetHeight,o&&(a[0].style.display=\"\",a[1].style.display=\"none\",o=0===a[0].offsetHeight),n.removeChild(r))}}}(),h.swap=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i};var Ft=/alpha\\([^)]*\\)/i,It=/opacity\\s*=\\s*([^)]*)/,qt=/^(none|table(?!-c[ea]).+)/,Rt=new RegExp(\"^(\"+W+\")(.*)$\",\"i\"),Ut=new RegExp(\"^([+-])=(\"+W+\")\",\"i\"),zt={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Wt={letterSpacing:\"0\",fontWeight:\"400\"},Xt=[\"Webkit\",\"O\",\"Moz\",\"ms\"];h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ht(e,\"opacity\");return\"\"===n?\"1\":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":l.cssFloat?\"cssFloat\":\"styleFloat\"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,o,u=h.camelCase(t),a=e.style;if(t=h.cssProps[u]||(h.cssProps[u]=Vt(a,u)),o=h.cssHooks[t]||h.cssHooks[u],void 0===n)return o&&\"get\"in o&&void 0!==(i=o.get(e,!1,r))?i:a[t];if(s=typeof n,\"string\"===s&&(i=Ut.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(e,t)),s=\"number\"),null!=n&&n===n&&(\"number\"!==s||h.cssNumber[u]||(n+=\"px\"),l.clearCloneStyle||\"\"!==n||0!==t.indexOf(\"background\")||(a[t]=\"inherit\"),!(o&&\"set\"in o&&void 0===(n=o.set(e,n,r)))))try{a[t]=n}catch(f){}}},css:function(e,t,n,r){var i,s,o,u=h.camelCase(t);return t=h.cssProps[u]||(h.cssProps[u]=Vt(e.style,u)),o=h.cssHooks[t]||h.cssHooks[u],o&&\"get\"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=Ht(e,t,r)),\"normal\"===s&&t in Wt&&(s=Wt[t]),\"\"===n||n?(i=parseFloat(s),n===!0||h.isNumeric(i)?i||0:s):s}}),h.each([\"height\",\"width\"],function(e,t){h.cssHooks[t]={get:function(e,n,r){return n?qt.test(h.css(e,\"display\"))&&0===e.offsetWidth?h.swap(e,zt,function(){return Qt(e,t,r)}):Qt(e,t,r):void 0},set:function(e,n,r){var i=r&&Pt(e);return Jt(e,n,r?Kt(e,t,r,l.boxSizing&&\"border-box\"===h.css(e,\"boxSizing\",!1,i),i):0)}}}),l.opacity||(h.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||\"\")?.01*parseFloat(RegExp.$1)+\"\":t?\"1\":\"\"},set:function(e,t){var n=e.style,r=e.currentStyle,i=h.isNumeric(t)?\"alpha(opacity=\"+100*t+\")\":\"\",s=r&&r.filter||n.filter||\"\";n.zoom=1,(t>=1||\"\"===t)&&\"\"===h.trim(s.replace(Ft,\"\"))&&n.removeAttribute&&(n.removeAttribute(\"filter\"),\"\"===t||r&&!r.filter)||(n.filter=Ft.test(s)?s.replace(Ft,i):s+\" \"+i)}}),h.cssHooks.marginRight=jt(l.reliableMarginRight,function(e,t){return t?h.swap(e,{display:\"inline-block\"},Ht,[e,\"marginRight\"]):void 0}),h.each({margin:\"\",padding:\"\",border:\"Width\"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s=\"string\"==typeof n?n.split(\" \"):[n];4>r;r++)i[e+X[r]+t]=s[r]||s[r-2]||s[0];return i}},_t.test(e)||(h.cssHooks[e+t].set=Jt)}),h.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,s={},o=0;if(h.isArray(t)){for(r=Pt(e),i=t.length;i>o;o++)s[t[o]]=h.css(e,t[o],!1,r);return s}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return $t(this,!0)},hide:function(){return $t(this)},toggle:function(e){return\"boolean\"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?h(this).show():h(this).hide()})}}),h.Tween=Gt,Gt.prototype={constructor:Gt,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||\"swing\",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(h.cssNumber[n]?\"\":\"px\")},cur:function(){var e=Gt.propHooks[this.prop];return e&&e.get?e.get(this):Gt.propHooks._default.get(this)},run:function(e){var t,n=Gt.propHooks[this.prop];return this.pos=t=this.options.duration?h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Gt.propHooks._default.set(this),this}},Gt.prototype.init.prototype=Gt.prototype,Gt.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=h.css(e.elem,e.prop,\"\"),t&&\"auto\"!==t?t:0):e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[h.cssProps[e.prop]]||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Gt.propHooks.scrollTop=Gt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Gt.prototype.init,h.fx.step={};var Yt,Zt,en=/^(?:toggle|show|hide)$/,tn=new RegExp(\"^(?:([+-])=|)(\"+W+\")([a-z%]*)$\",\"i\"),nn=/queueHooks$/,rn=[fn],sn={\"*\":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=tn.exec(t),s=i&&i[3]||(h.cssNumber[e]?\"\":\"px\"),o=(h.cssNumber[e]||\"px\"!==s&&+r)&&tn.exec(h.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||\".5\",o/=u,h.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&1!==u&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};h.Animation=h.extend(cn,{tweener:function(e,t){h.isFunction(e)?(t=e,e=[\"*\"]):e=e.split(\" \");for(var n,r=0,i=e.length;i>r;r++)n=e[r],sn[n]=sn[n]||[],sn[n].unshift(t)},prefilter:function(e,t){t?rn.unshift(e):rn.push(e)}}),h.speed=function(e,t,n){var r=e&&\"object\"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:\"number\"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(V).css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),s=h.speed(t,n,r),o=function(){var t=cn(this,h.extend({},e),s);(i||h._data(this,\"finish\"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return\"string\"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||\"fx\",[]),this.each(function(){var t=!0,i=null!=e&&e+\"queueHooks\",s=h.timers,o=h._data(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&nn.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&h.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||\"fx\"),this.each(function(){var t,n=h._data(this),r=n[e+\"queue\"],i=n[e+\"queueHooks\"],s=h.timers,o=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each([\"toggle\",\"show\",\"hide\"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return null==e||\"boolean\"==typeof e?n.apply(this,arguments):this.animate(un(t,!0),e,r,i)}}),h.each({slideDown:un(\"show\"),slideUp:un(\"hide\"),slideToggle:un(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=h.timers,n=0;for(Yt=h.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||h.fx.stop(),Yt=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Zt||(Zt=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Zt),Zt=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx?h.fx.speeds[e]||e:e,t=t||\"fx\",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;t=T.createElement(\"div\"),t.setAttribute(\"className\",\"t\"),t.innerHTML=\"  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",r=t.getElementsByTagName(\"a\")[0],n=T.createElement(\"select\"),i=n.appendChild(T.createElement(\"option\")),e=t.getElementsByTagName(\"input\")[0],r.style.cssText=\"top:1px\",l.getSetAttribute=\"t\"!==t.className,l.style=/top/.test(r.getAttribute(\"style\")),l.hrefNormalized=\"/a\"===r.getAttribute(\"href\"),l.checkOn=!!e.value,l.optSelected=i.selected,l.enctype=!!T.createElement(\"form\").enctype,n.disabled=!0,l.optDisabled=!i.disabled,e=T.createElement(\"input\"),e.setAttribute(\"value\",\"\"),l.input=\"\"===e.getAttribute(\"value\"),e.value=\"t\",e.setAttribute(\"type\",\"radio\"),l.radioValue=\"t\"===e.value}();var hn=/\\r/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];if(arguments.length)return r=h.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,h(this).val()):e,null==i?i=\"\":\"number\"==typeof i?i+=\"\":h.isArray(i)&&(i=h.map(i,function(e){return null==e?\"\":e+\"\"})),t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],t&&\"set\"in t&&void 0!==t.set(this,i,\"value\")||(this.value=i))});if(i)return t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()],t&&\"get\"in t&&void 0!==(n=t.get(i,\"value\"))?n:(n=i.value,\"string\"==typeof n?n.replace(hn,\"\"):null==n?\"\":n)}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,\"value\");return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,s=\"select-one\"===e.type||0>i,o=s?null:[],u=s?i+1:r.length,a=0>i?u:s?i:0;u>a;a++)if(n=r[a],!(!n.selected&&a!==i||(l.optDisabled?n.disabled:null!==n.getAttribute(\"disabled\"))||n.parentNode.disabled&&h.nodeName(n.parentNode,\"optgroup\"))){if(t=h(n).val(),s)return t;o.push(t)}return o},set:function(e,t){var n,r,i=e.options,s=h.makeArray(t),o=i.length;while(o--)if(r=i[o],h.inArray(h.valHooks.option.get(r),s)>=0)try{r.selected=n=!0}catch(u){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),h.each([\"radio\",\"checkbox\"],function(){h.valHooks[this]={set:function(e,t){return h.isArray(t)?e.checked=h.inArray(h(e).val(),t)>=0:void 0}},l.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute(\"value\")?\"on\":e.value})});var pn,dn,vn=h.expr.attrHandle,mn=/^(?:checked|selected)$/i,gn=l.getSetAttribute,yn=l.input;h.fn.extend({attr:function(e,t){return $(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===B?h.prop(e,t,n):(1===s&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?dn:pn)),void 0===n?r&&\"get\"in r&&null!==(i=r.get(e,t))?i:(i=h.find.attr(e,t),null==i?void 0:i):null!==n?r&&\"set\"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+\"\"),n):void h.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(O);if(s&&1===e.nodeType)while(n=s[i++])r=h.propFix[n]||n,h.expr.match.bool.test(n)?yn&&gn||!mn.test(n)?e[r]=!1:e[h.camelCase(\"default-\"+n)]=e[r]=!1:h.attr(e,n,\"\"),e.removeAttribute(gn?n:r)},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&\"radio\"===t&&h.nodeName(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}}}}),dn={set:function(e,t,n){return t===!1?h.removeAttr(e,n):yn&&gn||!mn.test(n)?e.setAttribute(!gn&&h.propFix[n]||n,n):e[h.camelCase(\"default-\"+n)]=e[n]=!0,n}},h.each(h.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=vn[t]||h.find.attr;vn[t]=yn&&gn||!mn.test(t)?function(e,t,r){var i,s;return r||(s=vn[t],vn[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,vn[t]=s),i}:function(e,t,n){return n?void 0:e[h.camelCase(\"default-\"+t)]?t.toLowerCase():null}}),yn&&gn||(h.attrHooks.value={set:function(e,t,n){return h.nodeName(e,\"input\")?void (e.defaultValue=t):pn&&pn.set(e,t,n)}}),gn||(pn={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+=\"\",\"value\"===n||t===e.getAttribute(n)?t:void 0}},vn.id=vn.name=vn.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&\"\"!==r.value?r.value:null},h.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:pn.set},h.attrHooks.contenteditable={set:function(e,t,n){pn.set(e,\"\"===t?!1:t,n)}},h.each([\"width\",\"height\"],function(e,t){h.attrHooks[t]={set:function(e,n){return\"\"===n?(e.setAttribute(t,\"auto\"),n):void 0}}})),l.style||(h.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+\"\"}});var bn=/^(?:input|select|textarea|button|object)$/i,wn=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return $(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return e=h.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),h.extend({propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return s=1!==o||!h.isXMLDoc(e),s&&(t=h.propFix[t]||t,i=h.propHooks[t]),void 0!==n?i&&\"set\"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&\"get\"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,\"tabindex\");return t?parseInt(t,10):bn.test(e.nodeName)||wn.test(e.nodeName)&&e.href?0:-1}}}}),l.hrefNormalized||h.each([\"href\",\"src\"],function(e,t){h.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),l.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),h.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){h.propFix[this.toLowerCase()]=this}),l.enctype||(h.propFix.enctype=\"encoding\");var En=/[\\t\\r\\n\\f]/g;h.fn.extend({addClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=\"string\"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,this.className))});if(f)for(t=(e||\"\").match(O)||[];a>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(En,\" \"):\" \")){s=0;while(i=t[s++])r.indexOf(\" \"+i+\" \")<0&&(r+=i+\" \");o=h.trim(r),n.className!==o&&(n.className=o)}return this},removeClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=0===arguments.length||\"string\"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,this.className))});if(f)for(t=(e||\"\").match(O)||[];a>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(En,\" \"):\"\")){s=0;while(i=t[s++])while(r.indexOf(\" \"+i+\" \")>=0)r=r.replace(\" \"+i+\" \",\" \");o=e?h.trim(r):\"\",n.className!==o&&(n.className=o)}return this},toggleClass:function(e,t){var n=typeof e;return\"boolean\"==typeof t&&\"string\"===n?t?this.addClass(e):this.removeClass(e):this.each(h.isFunction(e)?function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if(\"string\"===n){var t,r=0,i=h(this),s=e.match(O)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else(n===B||\"boolean\"===n)&&(this.className&&h._data(this,\"__className__\",this.className),this.className=this.className||e===!1?\"\":h._data(this,\"__className__\")||\"\")})},hasClass:function(e){for(var t=\" \"+e+\" \",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(\" \"+this[n].className+\" \").replace(En,\" \").indexOf(t)>=0)return!0;return!1}}),h.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,\"**\"):this.off(t,e||\"**\",n)}});var Sn=h.now(),xn=/\\?/,Tn=/(,)|(\\[|{)|(}|])|\"(?:[^\"\\\\\\r\\n]|\\\\[\"\\\\\\/bfnrt]|\\\\u[\\da-fA-F]{4})*\"\\s*:?|true|false|null|-?(?!0\\d)\\d+(?:\\.\\d+|)(?:[eE][+-]?\\d+|)/g;h.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+\"\");var n,r=null,i=h.trim(t+\"\");return i&&!h.trim(i.replace(Tn,function(e,t,i,s){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!s-!i,\"\")}))?Function(\"return \"+i)():h.error(\"Invalid JSON: \"+t)},h.parseXML=function(t){var n,r;if(!t||\"string\"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,\"text/xml\")):(n=new ActiveXObject(\"Microsoft.XMLDOM\"),n.async=\"false\",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName(\"parsererror\").length||h.error(\"Invalid XML: \"+t),n};var Nn,Cn,kn=/#.*$/,Ln=/([?&])_=[^&]*/,An=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/gm,On=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mn=/^(?:GET|HEAD)$/,_n=/^\\/\\//,Dn=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,Pn={},Hn={},Bn=\"*/\".concat(\"*\");try{Cn=location.href}catch(jn){Cn=T.createElement(\"a\"),Cn.href=\"\",Cn=Cn.href}Nn=Dn.exec(Cn.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn,type:\"GET\",isLocal:On.test(Nn[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Bn,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":h.parseJSON,\"text xml\":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qn(qn(e,h.ajaxSettings),t):qn(h.ajaxSettings,e)},ajaxPrefilter:Fn(Pn),ajaxTransport:Fn(Hn),ajax:function(e,t){function x(e,t,n,r){var f,g,y,w,S,x=t;2!==b&&(b=2,o&&clearTimeout(o),a=void 0,s=r||\"\",E.readyState=e>0?4:0,f=e>=200&&300>e||304===e,n&&(w=Rn(l,E,n)),w=Un(l,w,E,f),f?(l.ifModified&&(S=E.getResponseHeader(\"Last-Modified\"),S&&(h.lastModified[i]=S),S=E.getResponseHeader(\"etag\"),S&&(h.etag[i]=S)),204===e||\"HEAD\"===l.type?x=\"nocontent\":304===e?x=\"notmodified\":(x=w.state,g=w.data,y=w.error,f=!y)):(y=x,(e||!x)&&(x=\"error\",0>e&&(e=0))),E.status=e,E.statusText=(t||x)+\"\",f?d.resolveWith(c,[g,x,E]):d.rejectWith(c,[E,x,y]),E.statusCode(m),m=void 0,u&&p.trigger(f?\"ajaxSuccess\":\"ajaxError\",[E,l,f?g:y]),v.fireWith(c,[E,x]),u&&(p.trigger(\"ajaxComplete\",[E,l]),--h.active||h.event.trigger(\"ajaxStop\")))}\"object\"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,s,o,u,a,f,l=h.ajaxSetup({},t),c=l.context||l,p=l.context&&(c.nodeType||c.jquery)?h(c):h.event,d=h.Deferred(),v=h.Callbacks(\"once memory\"),m=l.statusCode||{},g={},y={},b=0,w=\"canceled\",E={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f){f={};while(t=An.exec(s))f[t[1].toLowerCase()]=t[2]}t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||w;return a&&a.abort(t),x(0,t),this}};if(d.promise(E).complete=v.add,E.success=E.done,E.error=E.fail,l.url=((e||l.url||Cn)+\"\").replace(kn,\"\").replace(_n,Nn[1]+\"//\"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||\"*\").toLowerCase().match(O)||[\"\"],null==l.crossDomain&&(n=Dn.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n[1]===Nn[1]&&n[2]===Nn[2]&&(n[3]||(\"http:\"===n[1]?\"80\":\"443\"))===(Nn[3]||(\"http:\"===Nn[1]?\"80\":\"443\")))),l.data&&l.processData&&\"string\"!=typeof l.data&&(l.data=h.param(l.data,l.traditional)),In(Pn,l,t,E),2===b)return E;u=l.global,u&&0===h.active++&&h.event.trigger(\"ajaxStart\"),l.type=l.type.toUpperCase(),l.hasContent=!Mn.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(xn.test(i)?\"&\":\"?\")+l.data,delete l.data),l.cache===!1&&(l.url=Ln.test(i)?i.replace(Ln,\"$1_=\"+Sn++):i+(xn.test(i)?\"&\":\"?\")+\"_=\"+Sn++)),l.ifModified&&(h.lastModified[i]&&E.setRequestHeader(\"If-Modified-Since\",h.lastModified[i]),h.etag[i]&&E.setRequestHeader(\"If-None-Match\",h.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&E.setRequestHeader(\"Content-Type\",l.contentType),E.setRequestHeader(\"Accept\",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(\"*\"!==l.dataTypes[0]?\", \"+Bn+\"; q=0.01\":\"\"):l.accepts[\"*\"]);for(r in l.headers)E.setRequestHeader(r,l.headers[r]);if(!l.beforeSend||l.beforeSend.call(c,E,l)!==!1&&2!==b){w=\"abort\";for(r in{success:1,error:1,complete:1})E[r](l[r]);if(a=In(Hn,l,t,E)){E.readyState=1,u&&p.trigger(\"ajaxSend\",[E,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){E.abort(\"timeout\")},l.timeout));try{b=1,a.send(g,x)}catch(S){if(!(2>b))throw S;x(-1,S)}}else x(-1,\"No Transport\");return E}return E.abort()},getJSON:function(e,t,n){return h.get(e,t,n,\"json\")},getScript:function(e,t){return h.get(e,void 0,t,\"script\")}}),h.each([\"get\",\"post\"],function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),h.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h._evalUrl=function(e){return h.ajax({url:e,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})},h.fn.extend({wrapAll:function(e){if(h.isFunction(e))return this.each(function(t){h(this).wrapAll(e.call(this,t))});if(this[0]){var t=h(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(h.isFunction(e)?function(t){h(this).wrapInner(e.call(this,t))}:function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,\"body\")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!l.reliableHiddenOffsets()&&\"none\"===(e.style&&e.style.display||h.css(e,\"display\"))},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var zn=/%20/g,Wn=/\\[\\]$/,Xn=/\\r?\\n/g,Vn=/^(?:submit|button|image|reset|file)$/i,$n=/^(?:input|select|textarea|keygen)/i;h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?\"\":t,r[r.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){i(this.name,this.value)});else for(n in e)Jn(n,e[n],t,i);return r.join(\"&\").replace(zn,\"+\")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,\"elements\");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(\":disabled\")&&$n.test(this.nodeName)&&!Vn.test(e)&&(this.checked||!J.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(Xn,\"\\r\\n\")}}):{name:t.name,value:n.replace(Xn,\"\\r\\n\")}}).get()}}),h.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Yn()||Zn()}:Yn;var Kn=0,Qn={},Gn=h.ajaxSettings.xhr();e.ActiveXObject&&h(e).on(\"unload\",function(){for(var e in Qn)Qn[e](void 0,!0)}),l.cors=!!Gn&&\"withCredentials\"in Gn,Gn=l.ajax=!!Gn,Gn&&h.ajaxTransport(function(e){if(!e.crossDomain||l.cors){var t;return{send:function(n,r){var i,s=e.xhr(),o=++Kn;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n[\"X-Requested-With\"]||(n[\"X-Requested-With\"]=\"XMLHttpRequest\");for(i in n)void 0!==n[i]&&s.setRequestHeader(i,n[i]+\"\");s.send(e.hasContent&&e.data||null),t=function(n,i){var u,a,f;if(t&&(i||4===s.readyState))if(delete Qn[o],t=void 0,s.onreadystatechange=h.noop,i)4!==s.readyState&&s.abort();else{f={},u=s.status,\"string\"==typeof s.responseText&&(f.text=s.responseText);try{a=s.statusText}catch(l){a=\"\"}u||!e.isLocal||e.crossDomain?1223===u&&(u=204):u=f.text?200:404}f&&r(u,a,f,s.getAllResponseHeaders())},e.async?4===s.readyState?setTimeout(t):s.onreadystatechange=Qn[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),h.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter(\"script\",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\",e.global=!1)}),h.ajaxTransport(\"script\",function(e){if(e.crossDomain){var t,n=T.head||h(\"head\")[0]||T.documentElement;return{send:function(r,i){t=T.createElement(\"script\"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,\"success\"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var er=[],tr=/(=)\\?(?=&|$)|\\?\\?/;h.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=er.pop()||h.expando+\"_\"+Sn++;return this[e]=!0,e}}),h.ajaxPrefilter(\"json jsonp\",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(tr.test(t.url)?\"url\":\"string\"==typeof t.data&&!(t.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&tr.test(t.data)&&\"data\");return u||\"jsonp\"===t.dataTypes[0]?(i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(tr,\"$1\"+i):t.jsonp!==!1&&(t.url+=(xn.test(t.url)?\"&\":\"?\")+t.jsonp+\"=\"+i),t.converters[\"script json\"]=function(){return o||h.error(i+\" was not called\"),o[0]},t.dataTypes[0]=\"json\",s=e[i],e[i]=function(){o=arguments},r.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,er.push(i)),o&&h.isFunction(s)&&s(o[0]),o=s=void 0}),\"script\"):void 0}),h.parseHTML=function(e,t,n){if(!e||\"string\"!=typeof e)return null;\"boolean\"==typeof t&&(n=t,t=!1),t=t||T;var r=w.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h.buildFragment([e],t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var nr=h.fn.load;h.fn.load=function(e,t,n){if(\"string\"!=typeof e&&nr)return nr.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(\" \");return u>=0&&(r=h.trim(e.slice(u,e.length)),e=e.slice(0,u)),h.isFunction(t)?(n=t,t=void 0):t&&\"object\"==typeof t&&(s=\"POST\"),o.length>0&&h.ajax({url:e,type:s,dataType:\"html\",data:t}).done(function(e){i=arguments,o.html(r?h(\"<div>\").append(h.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length};var rr=e.document.documentElement;h.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=h.css(e,\"position\"),c=h(e),p={};\"static\"===l&&(e.style.position=\"relative\"),u=c.offset(),s=h.css(e,\"top\"),a=h.css(e,\"left\"),f=(\"absolute\"===l||\"fixed\"===l)&&h.inArray(\"auto\",[s,a])>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),h.isFunction(t)&&(t=t.call(e,n,u)),null!=t.top&&(p.top=t.top-u.top+o),null!=t.left&&(p.left=t.left-u.left+i),\"using\"in t?t.using.call(e,p):c.css(p)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(s)return t=s.documentElement,h.contains(t,i)?(typeof i.getBoundingClientRect!==B&&(r=i.getBoundingClientRect()),n=ir(s),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return\"fixed\"===h.css(r,\"position\")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],\"html\")||(n=e.offset()),n.top+=h.css(e[0],\"borderTopWidth\",!0),n.left+=h.css(e[0],\"borderLeftWidth\",!0)),{top:t.top-n.top-h.css(r,\"marginTop\",!0),left:t.left-n.left-h.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||rr;while(e&&!h.nodeName(e,\"html\")&&\"static\"===h.css(e,\"position\"))e=e.offsetParent;return e||rr})}}),h.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(e,t){var n=/Y/.test(t);h.fn[e]=function(r){return $(this,function(e,r,i){var s=ir(e);return void 0===i?s?t in s?s[t]:s.document.documentElement[r]:e[r]:void (s?s.scrollTo(n?h(s).scrollLeft():i,n?i:h(s).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),h.each([\"top\",\"left\"],function(e,t){h.cssHooks[t]=jt(l.pixelPosition,function(e,n){return n?(n=Ht(e,t),Dt.test(n)?h(e).position()[t]+\"px\":n):void 0})}),h.each({Height:\"height\",Width:\"width\"},function(e,t){h.each({padding:\"inner\"+e,content:t,\"\":\"outer\"+e},function(n,r){h.fn[r]=function(r,i){var s=arguments.length&&(n||\"boolean\"!=typeof r),o=n||(r===!0||i===!0?\"margin\":\"border\");return $(this,function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement[\"client\"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body[\"scroll\"+e],i[\"scroll\"+e],t.body[\"offset\"+e],i[\"offset\"+e],i[\"client\"+e])):void 0===r?h.css(t,n,o):h.style(t,n,r,o)},t,s?r:void 0,s,null)}})}),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return h});var sr=e.jQuery,or=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=or),t&&e.jQuery===h&&(e.jQuery=sr),h},typeof t===B&&(e.jQuery=e.$=h),h}),define(\"org/forgerock/commons/ui/common/main/EventManager\",[\"jquery\",\"org/forgerock/commons/ui/common/util/Constants\"],function(e,t){var n={},r=[];return n.sendEvent=function(t,n){e(document).trigger(t,n)},n.registerListener=function(t,n){var i=function(e,t){n(t)};r[n]=i,e(document).on(t,i)},n.unregisterListener=function(t,n){e(document).off(t)},n}),function(){function e(e,t,n){n=(n||0)-1;for(var r=e?e.length:0;++n<r;)if(e[n]===t)return n;return-1}function t(t,n){var r=typeof n;if(t=t.l,\"boolean\"==r||null==n)return t[n]?0:-1;\"number\"!=r&&\"string\"!=r&&(r=\"object\");var i=\"number\"==r?n:g+n;return t=(t=t[r])&&t[i],\"object\"==r?t&&-1<e(t,n)?0:-1:t?0:-1}function n(e){var t=this.l,n=typeof e;if(\"boolean\"==n||null==e)t[e]=!0;else{\"number\"!=n&&\"string\"!=n&&(n=\"object\");var r=\"number\"==n?e:g+e,t=t[n]||(t[n]={});\"object\"==n?(t[r]||(t[r]=[])).push(e):t[r]=!0}}function r(e){return e.charCodeAt(0)}function i(e,t){for(var n=e.m,r=t.m,i=-1,s=n.length;++i<s;){var o=n[i],u=r[i];if(o!==u){if(o>u||typeof o==\"undefined\")return 1;if(o<u||typeof u==\"undefined\")return-1}}return e.n-t.n}function s(e){var t=-1,r=e.length,i=e[0],s=e[r/2|0],o=e[r-1];if(i&&typeof i==\"object\"&&s&&typeof s==\"object\"&&o&&typeof o==\"object\")return!1;for(i=a(),i[\"false\"]=i[\"null\"]=i[\"true\"]=i.undefined=!1,s=a(),s.k=e,s.l=i,s.push=n;++t<r;)s.push(e[t]);return s}function o(e){return\"\\\\\"+V[e]}function u(){return d.pop()||[]}function a(){return v.pop()||{k:null,l:null,m:null,\"false\":!1,n:0,\"null\":!1,number:null,object:null,push:null,string:null,\"true\":!1,\"undefined\":!1,o:null}}function f(e){e.length=0,d.length<b&&d.push(e)}function l(e){var t=e.l;t&&l(t),e.k=e.l=e.m=e.object=e.number=e.string=e.o=null,v.length<b&&v.push(e)}function c(e,t,n){t||(t=0),typeof n==\"undefined\"&&(n=e?e.length:0);var r=-1;n=n-t||0;for(var i=Array(0>n?0:n);++r<n;)i[r]=e[t+r];return i}function h(n){function d(e,t,n){if(!e||!X[typeof e])return e;t=t&&typeof n==\"undefined\"?t:tt(t,n,3);for(var r=-1,i=X[typeof e]&&jn(e),s=i?i.length:0;++r<s&&(n=i[r],!1!==t(e[n],n,e)););return e}function v(e,t,n){var r;if(!e||!X[typeof e])return e;t=t&&typeof n==\"undefined\"?t:tt(t,n,3);for(r in e)if(!1===t(e[r],r,e))break;return e}function b(e,t,n){var r,i=e,s=i;if(!i)return s;for(var o=arguments,u=0,a=typeof n==\"number\"?2:o.length;++u<a;)if((i=o[u])&&X[typeof i])for(var f=-1,l=X[typeof i]&&jn(i),c=l?l.length:0;++f<c;)r=l[f],\"undefined\"==typeof s[r]&&(s[r]=i[r]);return s}function V(e,t,n){var r,i=e,s=i;if(!i)return s;var o=arguments,u=0,a=typeof n==\"number\"?2:o.length;if(3<a&&\"function\"==typeof o[a-2])var f=tt(o[--a-1],o[a--],2);else 2<a&&\"function\"==typeof o[a-1]&&(f=o[--a]);for(;++u<a;)if((i=o[u])&&X[typeof i])for(var l=-1,c=X[typeof i]&&jn(i),h=c?c.length:0;++l<h;)r=c[l],s[r]=f?f(s[r],i[r]):i[r];return s}function J(e){var t,n=[];if(!e||!X[typeof e])return n;for(t in e)yn.call(e,t)&&n.push(t);return n}function K(e){return e&&typeof e==\"object\"&&!Bn(e)&&yn.call(e,\"__wrapped__\")?e:new Q(e)}function Q(e,t){this.__chain__=!!t,this.__wrapped__=e}function G(e){function t(){if(r){var e=c(r);bn.apply(e,arguments)}if(this instanceof t){var s=et(n.prototype),e=n.apply(s,e||arguments);return Et(e)?e:s}return n.apply(i,e||arguments)}var n=e[0],r=e[2],i=e[4];return Hn(t,e),t}function Z(e,t,n,r,i){if(n){var s=n(e);if(typeof s!=\"undefined\")return s}if(!Et(e))return e;var o=cn.call(e);if(!U[o])return e;var a=Dn[o];switch(o){case H:case B:return new a(+e);case F:case R:return new a(e);case q:return s=a(e.source,N.exec(e)),s.lastIndex=e.lastIndex,s}if(o=Bn(e),t){var l=!r;r||(r=u()),i||(i=u());for(var h=r.length;h--;)if(r[h]==e)return i[h];s=o?a(e.length):{}}else s=o?c(e):V({},e);return o&&(yn.call(e,\"index\")&&(s.index=e.index),yn.call(e,\"input\")&&(s.input=e.input)),t?(r.push(e),i.push(s),(o?At:d)(e,function(e,o){s[o]=Z(e,t,n,r,i)}),l&&(f(r),f(i)),s):s}function et(e){return Et(e)?Tn(e):{}}function tt(e,t,n){if(typeof e!=\"function\")return Vt;if(typeof t!=\"undefined\"&&\"prototype\"in e){var r=e.__bindData__;if(typeof r==\"undefined\"&&(Pn.funcNames&&(r=!e.name),r=r||!Pn.funcDecomp,!r)){var i=mn.call(e);Pn.funcNames||(r=!C.test(i)),r||(r=O.test(i),Hn(e,r))}if(!1===r||!0!==r&&1&r[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return Wt(e,t)}return e}function nt(e){function t(){var e=a?o:this;if(i){var d=c(i);bn.apply(d,arguments)}return(s||l)&&(d||(d=c(arguments)),s&&bn.apply(d,s),l&&d.length<u)?(r|=16,nt([n,h?r:-4&r,d,null,o,u])):(d||(d=arguments),f&&(n=e[p]),this instanceof t?(e=et(n.prototype),d=n.apply(e,d),Et(d)?d:e):n.apply(e,d))}var n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],u=e[5],a=1&r,f=2&r,l=4&r,h=8&r,p=n;return Hn(t,e),t}function rt(n,r){var i=-1,o=ht(),u=n?n.length:0,a=u>=y&&o===e,f=[];if(a){var c=s(r);c?(o=t,r=c):a=!1}for(;++i<u;)c=n[i],0>o(r,c)&&f.push(c);return a&&l(r),f}function it(e,t,n,r){r=(r||0)-1;for(var i=e?e.length:0,s=[];++r<i;){var o=e[r];if(o&&typeof o==\"object\"&&typeof o.length==\"number\"&&(Bn(o)||mt(o))){t||(o=it(o,t,n));var u=-1,a=o.length,f=s.length;for(s.length+=a;++u<a;)s[f++]=o[u]}else n||s.push(o)}return s}function st(e,t,n,r,i,s){if(n){var o=n(e,t);if(typeof o!=\"undefined\")return!!o}if(e===t)return 0!==e||1/e==1/t;if(e===e&&!(e&&X[typeof e]||t&&X[typeof t]))return!1;if(null==e||null==t)return e===t;var a=cn.call(e),l=cn.call(t);if(a==D&&(a=I),l==D&&(l=I),a!=l)return!1;switch(a){case H:case B:return+e==+t;case F:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case q:case R:return e==on(t)}if(l=a==P,!l){var c=yn.call(e,\"__wrapped__\"),h=yn.call(t,\"__wrapped__\");if(c||h)return st(c?e.__wrapped__:e,h?t.__wrapped__:t,n,r,i,s);if(a!=I)return!1;if(a=e.constructor,c=t.constructor,a!=c&&!(wt(a)&&a instanceof a&&wt(c)&&c instanceof c)&&\"constructor\"in e&&\"constructor\"in t)return!1}for(a=!i,i||(i=u()),s||(s=u()),c=i.length;c--;)if(i[c]==e)return s[c]==t;var p=0,o=!0;if(i.push(e),s.push(t),l){if(c=e.length,p=t.length,(o=p==c)||r)for(;p--;)if(l=c,h=t[p],r)for(;l--&&!(o=st(e[l],h,n,r,i,s)););else if(!(o=st(e[p],h,n,r,i,s)))break}else v(t,function(t,u,a){return yn.call(a,u)?(p++,o=yn.call(e,u)&&st(e[u],t,n,r,i,s)):void 0}),o&&!r&&v(e,function(e,t,n){return yn.call(n,t)?o=-1<--p:void 0});return i.pop(),s.pop(),a&&(f(i),f(s)),o}function ot(e,t,n,r,i){(Bn(t)?At:d)(t,function(t,s){var o,u,a=t,f=e[s];if(t&&((u=Bn(t))||Un(t))){for(a=r.length;a--;)if(o=r[a]==t){f=i[a];break}if(!o){var l;n&&(a=n(f,t),l=typeof a!=\"undefined\")&&(f=a),l||(f=u?Bn(f)?f:[]:Un(f)?f:{}),r.push(t),i.push(f),l||ot(f,t,n,r,i)}}else n&&(a=n(f,t),typeof a==\"undefined\"&&(a=t)),typeof a!=\"undefined\"&&(f=a);e[s]=f})}function ut(e,t){return e+vn(_n()*(t-e+1))}function at(n,r,i){var o=-1,a=ht(),c=n?n.length:0,h=[],p=!r&&c>=y&&a===e,d=i||p?u():h;for(p&&(d=s(d),a=t);++o<c;){var v=n[o],m=i?i(v,o,n):v;(r?!o||d[d.length-1]!==m:0>a(d,m))&&((i||p)&&d.push(m),h.push(v))}return p?(f(d.k),l(d)):i&&f(d),h}function ft(e){return function(t,n,r){var i={};n=K.createCallback(n,r,3),r=-1;var s=t?t.length:0;if(typeof s==\"number\")for(;++r<s;){var o=t[r];e(i,o,n(o,r,t),t)}else d(t,function(t,r,s){e(i,t,n(t,r,s),s)});return i}}function lt(e,t,n,r,i,s){var o=1&t,u=4&t,a=16&t,f=32&t;if(!(2&t||wt(e)))throw new un;a&&!n.length&&(t&=-17,a=n=!1),f&&!r.length&&(t&=-33,f=r=!1);var l=e&&e.__bindData__;return l&&!0!==l?(l=c(l),l[2]&&(l[2]=c(l[2])),l[3]&&(l[3]=c(l[3])),!o||1&l[1]||(l[4]=i),!o&&1&l[1]&&(t|=8),!u||4&l[1]||(l[5]=s),a&&bn.apply(l[2]||(l[2]=[]),n),f&&Sn.apply(l[3]||(l[3]=[]),r),l[1]|=t,lt.apply(null,l)):(1==t||17===t?G:nt)([e,t,n,r,i,s])}function ct(e){return Fn[e]}function ht(){var t=(t=K.indexOf)===Ft?e:t;return t}function pt(e){return typeof e==\"function\"&&hn.test(e)}function dt(e){var t,n;return e&&cn.call(e)==I&&(t=e.constructor,!wt(t)||t instanceof t)?(v(e,function(e,t){n=t}),typeof n==\"undefined\"||yn.call(e,n)):!1}function vt(e){return In[e]}function mt(e){return e&&typeof e==\"object\"&&typeof e.length==\"number\"&&cn.call(e)==D||!1}function gt(e,t,n){var r=jn(e),i=r.length;for(t=tt(t,n,3);i--&&(n=r[i],!1!==t(e[n],n,e)););return e}function yt(e){var t=[];return v(e,function(e,n){wt(e)&&t.push(n)}),t.sort()}function bt(e){for(var t=-1,n=jn(e),r=n.length,i={};++t<r;){var s=n[t];i[e[s]]=s}return i}function wt(e){return typeof e==\"function\"}function Et(e){return!!e&&!!X[typeof e]}function St(e){return typeof e==\"number\"||e&&typeof e==\"object\"&&cn.call(e)==F||!1}function xt(e){return typeof e==\"string\"||e&&typeof e==\"object\"&&cn.call(e)==R||!1}function Tt(e){for(var t=-1,n=jn(e),r=n.length,i=Gt(r);++t<r;)i[t]=e[n[t]];return i}function Nt(e,t,n){var r=-1,i=ht(),s=e?e.length:0,o=!1;return n=(0>n?An(0,s+n):n)||0,Bn(e)?o=-1<i(e,t,n):typeof s==\"number\"?o=-1<(xt(e)?e.indexOf(t,n):i(e,t,n)):d(e,function(e){return++r<n?void 0:!(o=e===t)}),o}function Ct(e,t,n){var r=!0;t=K.createCallback(t,n,3),n=-1;var i=e?e.length:0;if(typeof i==\"number\")for(;++n<i&&(r=!!t(e[n],n,e)););else d(e,function(e,n,i){return r=!!t(e,n,i)});return r}function kt(e,t,n){var r=[];t=K.createCallback(t,n,3),n=-1;var i=e?e.length:0;if(typeof i==\"number\")for(;++n<i;){var s=e[n];t(s,n,e)&&r.push(s)}else d(e,function(e,n,i){t(e,n,i)&&r.push(e)});return r}function Lt(e,t,n){t=K.createCallback(t,n,3),n=-1;var r=e?e.length:0;if(typeof r!=\"number\"){var i;return d(e,function(e,n,r){return t(e,n,r)?(i=e,!1):void 0}),i}for(;++n<r;){var s=e[n];if(t(s,n,e))return s}}function At(e,t,n){var r=-1,i=e?e.length:0;if(t=t&&typeof n==\"undefined\"?t:tt(t,n,3),typeof i==\"number\")for(;++r<i&&!1!==t(e[r],r,e););else d(e,t);return e}function Ot(e,t,n){var r=e?e.length:0;if(t=t&&typeof n==\"undefined\"?t:tt(t,n,3),typeof r==\"number\")for(;r--&&!1!==t(e[r],r,e););else{var i=jn(e),r=i.length;d(e,function(e,n,s){return n=i?i[--r]:--r,t(s[n],n,s)})}return e}function Mt(e,t,n){var r=-1,i=e?e.length:0;if(t=K.createCallback(t,n,3),typeof i==\"number\")for(var s=Gt(i);++r<i;)s[r]=t(e[r],r,e);else s=[],d(e,function(e,n,i){s[++r]=t(e,n,i)});return s}function _t(e,t,n){var i=-1/0,s=i;if(typeof t!=\"function\"&&n&&n[t]===e&&(t=null),null==t&&Bn(e)){n=-1;for(var o=e.length;++n<o;){var u=e[n];u>s&&(s=u)}}else t=null==t&&xt(e)?r:K.createCallback(t,n,3),At(e,function(e,n,r){n=t(e,n,r),n>i&&(i=n,s=e)});return s}function Dt(e,t,n,r){if(!e)return n;var i=3>arguments.length;t=K.createCallback(t,r,4);var s=-1,o=e.length;if(typeof o==\"number\")for(i&&(n=e[++s]);++s<o;)n=t(n,e[s],s,e);else d(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)});return n}function Pt(e,t,n,r){var i=3>arguments.length;return t=K.createCallback(t,r,4),Ot(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)}),n}function Ht(e){var t=-1,n=e?e.length:0,r=Gt(typeof n==\"number\"?n:0);return At(e,function(e){var n=ut(0,++t);r[t]=r[n],r[n]=e}),r}function Bt(e,t,n){var r;t=K.createCallback(t,n,3),n=-1;var i=e?e.length:0;if(typeof i==\"number\")for(;++n<i&&!(r=t(e[n],n,e)););else d(e,function(e,n,i){return!(r=t(e,n,i))});return!!r}function jt(e,t,n){var r=0,i=e?e.length:0;if(typeof t!=\"number\"&&null!=t){var s=-1;for(t=K.createCallback(t,n,3);++s<i&&t(e[s],s,e);)r++}else if(r=t,null==r||n)return e?e[0]:p;return c(e,0,On(An(0,r),i))}function Ft(t,n,r){if(typeof r==\"number\"){var i=t?t.length:0;r=0>r?An(0,i+r):r||0}else if(r)return r=qt(t,n),t[r]===n?r:-1;return e(t,n,r)}function It(e,t,n){if(typeof t!=\"number\"&&null!=t){var r=0,i=-1,s=e?e.length:0;for(t=K.createCallback(t,n,3);++i<s&&t(e[i],i,e);)r++}else r=null==t||n?1:An(0,t);return c(e,r)}function qt(e,t,n,r){var i=0,s=e?e.length:i;for(n=n?K.createCallback(n,r,1):Vt,t=n(t);i<s;)r=i+s>>>1,n(e[r])<t?i=r+1:s=r;return i}function Rt(e,t,n,r){return typeof t!=\"boolean\"&&null!=t&&(r=n,n=typeof t!=\"function\"&&r&&r[t]===e?null:t,t=!1),null!=n&&(n=K.createCallback(n,r,3)),at(e,t,n)}function Ut(){for(var e=1<arguments.length?arguments:arguments[0],t=-1,n=e?_t(Vn(e,\"length\")):0,r=Gt(0>n?0:n);++t<n;)r[t]=Vn(e,t);return r}function zt(e,t){var n=-1,r=e?e.length:0,i={};for(t||!r||Bn(e[0])||(t=[]);++n<r;){var s=e[n];t?i[s]=t[n]:s&&(i[s[0]]=s[1])}return i}function Wt(e,t){return 2<arguments.length?lt(e,17,c(arguments,2),null,t):lt(e,1,null,null,t)}function Xt(e,t,n){function r(){l&&dn(l),o=l=c=p,(v||d!==t)&&(h=$n(),u=e.apply(f,s),l||o||(s=f=null))}function i(){var n=t-($n()-a);0<n?l=wn(i,n):(o&&dn(o),n=c,o=l=c=p,n&&(h=$n(),u=e.apply(f,s),l||o||(s=f=null)))}var s,o,u,a,f,l,c,h=0,d=!1,v=!0;if(!wt(e))throw new un;if(t=An(0,t)||0,!0===n)var m=!0,v=!1;else Et(n)&&(m=n.leading,d=\"maxWait\"in n&&(An(t,n.maxWait)||0),v=\"trailing\"in n?n.trailing:v);return function(){if(s=arguments,a=$n(),f=this,c=v&&(l||!m),!1===d)var n=m&&!l;else{o||m||(h=a);var p=d-(a-h),g=0>=p;g?(o&&(o=dn(o)),h=a,u=e.apply(f,s)):o||(o=wn(r,p))}return g&&l?l=dn(l):l||t===d||(l=wn(i,t)),n&&(g=!0,u=e.apply(f,s)),!g||l||o||(s=f=null),u}}function Vt(e){return e}function $t(e,t,n){var r=!0,i=t&&yt(t);t&&(n||i.length)||(null==n&&(n=t),s=Q,t=e,e=K,i=yt(t)),!1===n?r=!1:Et(n)&&\"chain\"in n&&(r=n.chain);var s=e,o=wt(s);At(i,function(n){var i=e[n]=t[n];o&&(s.prototype[n]=function(){var t=this.__chain__,n=this.__wrapped__,o=[n];if(bn.apply(o,arguments),o=i.apply(e,o),r||t){if(n===o&&Et(o))return this;o=new s(o),o.__chain__=t}return o})})}function Jt(){}function Kt(e){return function(t){return t[e]}}function Qt(){return this.__wrapped__}n=n?Y.defaults($.Object(),n,Y.pick($,_)):$;var Gt=n.Array,Yt=n.Boolean,Zt=n.Date,en=n.Function,tn=n.Math,nn=n.Number,rn=n.Object,sn=n.RegExp,on=n.String,un=n.TypeError,an=[],fn=rn.prototype,ln=n._,cn=fn.toString,hn=sn(\"^\"+on(cn).replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\").replace(/toString| for [^\\]]+/g,\".*?\")+\"$\"),pn=tn.ceil,dn=n.clearTimeout,vn=tn.floor,mn=en.prototype.toString,gn=pt(gn=rn.getPrototypeOf)&&gn,yn=fn.hasOwnProperty,bn=an.push,wn=n.setTimeout,En=an.splice,Sn=an.unshift,xn=function(){try{var e={},t=pt(t=rn.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),Tn=pt(Tn=rn.create)&&Tn,Nn=pt(Nn=Gt.isArray)&&Nn,Cn=n.isFinite,kn=n.isNaN,Ln=pt(Ln=rn.keys)&&Ln,An=tn.max,On=tn.min,Mn=n.parseInt,_n=tn.random,Dn={};Dn[P]=Gt,Dn[H]=Yt,Dn[B]=Zt,Dn[j]=en,Dn[I]=rn,Dn[F]=nn,Dn[q]=sn,Dn[R]=on,Q.prototype=K.prototype;var Pn=K.support={};Pn.funcDecomp=!pt(n.a)&&O.test(h),Pn.funcNames=typeof en.name==\"string\",K.templateSettings={escape:/<%-([\\s\\S]+?)%>/g,evaluate:/<%([\\s\\S]+?)%>/g,interpolate:k,variable:\"\",imports:{_:K}},Tn||(et=function(){function e(){}return function(t){if(Et(t)){e.prototype=t;var r=new e;e.prototype=null}return r||n.Object()}}());var Hn=xn?function(e,t){W.value=t,xn(e,\"__bindData__\",W)}:Jt,Bn=Nn||function(e){return e&&typeof e==\"object\"&&typeof e.length==\"number\"&&cn.call(e)==P||!1},jn=Ln?function(e){return Et(e)?Ln(e):[]}:J,Fn={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"},In=bt(Fn),qn=sn(\"(\"+jn(In).join(\"|\")+\")\",\"g\"),Rn=sn(\"[\"+jn(Fn).join(\"\")+\"]\",\"g\"),Un=gn?function(e){if(!e||cn.call(e)!=I)return!1;var t=e.valueOf,n=pt(t)&&(n=gn(t))&&gn(n);return n?e==n||gn(e)==n:dt(e)}:dt,zn=ft(function(e,t,n){yn.call(e,n)?e[n]++:e[n]=1}),Wn=ft(function(e,t,n){(yn.call(e,n)?e[n]:e[n]=[]).push(t)}),Xn=ft(function(e,t,n){e[n]=t}),Vn=Mt,$n=pt($n=Zt.now)&&$n||function(){return(new Zt).getTime()},Jn=8==Mn(w+\"08\")?Mn:function(e,t){return Mn(xt(e)?e.replace(L,\"\"):e,t||0)};return K.after=function(e,t){if(!wt(t))throw new un;return function(){return 1>--e?t.apply(this,arguments):void 0}},K.assign=V,K.at=function(e){for(var t=arguments,n=-1,r=it(t,!0,!1,1),t=t[2]&&t[2][t[1]]===e?1:r.length,i=Gt(t);++n<t;)i[n]=e[r[n]];return i},K.bind=Wt,K.bindAll=function(e){for(var t=1<arguments.length?it(arguments,!0,!1,1):yt(e),n=-1,r=t.length;++n<r;){var i=t[n];e[i]=lt(e[i],1,null,null,e)}return e},K.bindKey=function(e,t){return 2<arguments.length?lt(t,19,c(arguments,2),null,e):lt(t,3,null,null,e)},K.chain=function(e){return e=new Q(e),e.__chain__=!0,e},K.compact=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var i=e[t];i&&r.push(i)}return r},K.compose=function(){for(var e=arguments,t=e.length;t--;)if(!wt(e[t]))throw new un;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},K.constant=function(e){return function(){return e}},K.countBy=zn,K.create=function(e,t){var n=et(e);return t?V(n,t):n},K.createCallback=function(e,t,n){var r=typeof e;if(null==e||\"function\"==r)return tt(e,t,n);if(\"object\"!=r)return Kt(e);var i=jn(e),s=i[0],o=e[s];return 1!=i.length||o!==o||Et(o)?function(t){for(var n=i.length,r=!1;n--&&(r=st(t[i[n]],e[i[n]],null,!0)););return r}:function(e){return e=e[s],o===e&&(0!==o||1/o==1/e)}},K.curry=function(e,t){return t=typeof t==\"number\"?t:+t||e.length,lt(e,4,null,null,null,t)},K.debounce=Xt,K.defaults=b,K.defer=function(e){if(!wt(e))throw new un;var t=c(arguments,1);return wn(function(){e.apply(p,t)},1)},K.delay=function(e,t){if(!wt(e))throw new un;var n=c(arguments,2);return wn(function(){e.apply(p,n)},t)},K.difference=function(e){return rt(e,it(arguments,!0,!0,1))},K.filter=kt,K.flatten=function(e,t,n,r){return typeof t!=\"boolean\"&&null!=t&&(r=n,n=typeof t!=\"function\"&&r&&r[t]===e?null:t,t=!1),null!=n&&(e=Mt(e,n,r)),it(e,t)},K.forEach=At,K.forEachRight=Ot,K.forIn=v,K.forInRight=function(e,t,n){var r=[];v(e,function(e,t){r.push(t,e)});var i=r.length;for(t=tt(t,n,3);i--&&!1!==t(r[i--],r[i],e););return e},K.forOwn=d,K.forOwnRight=gt,K.functions=yt,K.groupBy=Wn,K.indexBy=Xn,K.initial=function(e,t,n){var r=0,i=e?e.length:0;if(typeof t!=\"number\"&&null!=t){var s=i;for(t=K.createCallback(t,n,3);s--&&t(e[s],s,e);)r++}else r=null==t||n?1:t||r;return c(e,0,On(An(0,i-r),i))},K.intersection=function(){for(var n=[],r=-1,i=arguments.length,o=u(),a=ht(),c=a===e,h=u();++r<i;){var p=arguments[r];(Bn(p)||mt(p))&&(n.push(p),o.push(c&&p.length>=y&&s(r?n[r]:h)))}var c=n[0],d=-1,v=c?c.length:0,m=[];e:for(;++d<v;){var g=o[0],p=c[d];if(0>(g?t(g,p):a(h,p))){for(r=i,(g||h).push(p);--r;)if(g=o[r],0>(g?t(g,p):a(n[r],p)))continue e;m.push(p)}}for(;i--;)(g=o[i])&&l(g);return f(o),f(h),m},K.invert=bt,K.invoke=function(e,t){var n=c(arguments,2),r=-1,i=typeof t==\"function\",s=e?e.length:0,o=Gt(typeof s==\"number\"?s:0);return At(e,function(e){o[++r]=(i?t:e[t]).apply(e,n)}),o},K.keys=jn,K.map=Mt,K.mapValues=function(e,t,n){var r={};return t=K.createCallback(t,n,3),d(e,function(e,n,i){r[n]=t(e,n,i)}),r},K.max=_t,K.memoize=function(e,t){function n(){var r=n.cache,i=t?t.apply(this,arguments):g+arguments[0];return yn.call(r,i)?r[i]:r[i]=e.apply(this,arguments)}if(!wt(e))throw new un;return n.cache={},n},K.merge=function(e){var t=arguments,n=2;if(!Et(e))return e;if(\"number\"!=typeof t[2]&&(n=t.length),3<n&&\"function\"==typeof t[n-2])var r=tt(t[--n-1],t[n--],2);else 2<n&&\"function\"==typeof t[n-1]&&(r=t[--n]);for(var t=c(arguments,1,n),i=-1,s=u(),o=u();++i<n;)ot(e,t[i],r,s,o);return f(s),f(o),e},K.min=function(e,t,n){var i=1/0,s=i;if(typeof t!=\"function\"&&n&&n[t]===e&&(t=null),null==t&&Bn(e)){n=-1;for(var o=e.length;++n<o;){var u=e[n];u<s&&(s=u)}}else t=null==t&&xt(e)?r:K.createCallback(t,n,3),At(e,function(e,n,r){n=t(e,n,r),n<i&&(i=n,s=e)});return s},K.omit=function(e,t,n){var r={};if(typeof t!=\"function\"){var i=[];v(e,function(e,t){i.push(t)});for(var i=rt(i,it(arguments,!0,!1,1)),s=-1,o=i.length;++s<o;){var u=i[s];r[u]=e[u]}}else t=K.createCallback(t,n,3),v(e,function(e,n,i){t(e,n,i)||(r[n]=e)});return r},K.once=function(e){var t,n;if(!wt(e))throw new un;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}},K.pairs=function(e){for(var t=-1,n=jn(e),r=n.length,i=Gt(r);++t<r;){var s=n[t];i[t]=[s,e[s]]}return i},K.partial=function(e){return lt(e,16,c(arguments,1))},K.partialRight=function(e){return lt(e,32,null,c(arguments,1))},K.pick=function(e,t,n){var r={};if(typeof t!=\"function\")for(var i=-1,s=it(arguments,!0,!1,1),o=Et(e)?s.length:0;++i<o;){var u=s[i];u in e&&(r[u]=e[u])}else t=K.createCallback(t,n,3),v(e,function(e,n,i){t(e,n,i)&&(r[n]=e)});return r},K.pluck=Vn,K.property=Kt,K.pull=function(e){for(var t=arguments,n=0,r=t.length,i=e?e.length:0;++n<r;)for(var s=-1,o=t[n];++s<i;)e[s]===o&&(En.call(e,s--,1),i--);return e},K.range=function(e,t,n){e=+e||0,n=typeof n==\"number\"?n:+n||1,null==t&&(t=e,e=0);var r=-1;t=An(0,pn((t-e)/(n||1)));for(var i=Gt(t);++r<t;)i[r]=e,e+=n;return i},K.reject=function(e,t,n){return t=K.createCallback(t,n,3),kt(e,function(e,n,r){return!t(e,n,r)})},K.remove=function(e,t,n){var r=-1,i=e?e.length:0,s=[];for(t=K.createCallback(t,n,3);++r<i;)n=e[r],t(n,r,e)&&(s.push(n),En.call(e,r--,1),i--);return s},K.rest=It,K.shuffle=Ht,K.sortBy=function(e,t,n){var r=-1,s=Bn(t),o=e?e.length:0,c=Gt(typeof o==\"number\"?o:0);for(s||(t=K.createCallback(t,n,3)),At(e,function(e,n,i){var o=c[++r]=a();s?o.m=Mt(t,function(t){return e[t]}):(o.m=u())[0]=t(e,n,i),o.n=r,o.o=e}),o=c.length,c.sort(i);o--;)e=c[o],c[o]=e.o,s||f(e.m),l(e);return c},K.tap=function(e,t){return t(e),e},K.throttle=function(e,t,n){var r=!0,i=!0;if(!wt(e))throw new un;return!1===n?r=!1:Et(n)&&(r=\"leading\"in n?n.leading:r,i=\"trailing\"in n?n.trailing:i),z.leading=r,z.maxWait=t,z.trailing=i,Xt(e,t,z)},K.times=function(e,t,n){e=-1<(e=+e)?e:0;var r=-1,i=Gt(e);for(t=tt(t,n,1);++r<e;)i[r]=t(r);return i},K.toArray=function(e){return e&&typeof e.length==\"number\"?c(e):Tt(e)},K.transform=function(e,t,n,r){var i=Bn(e);if(null==n)if(i)n=[];else{var s=e&&e.constructor;n=et(s&&s.prototype)}return t&&(t=K.createCallback(t,r,4),(i?At:d)(e,function(e,r,i){return t(n,e,r,i)})),n},K.union=function(){return at(it(arguments,!0,!0))},K.uniq=Rt,K.values=Tt,K.where=kt,K.without=function(e){return rt(e,c(arguments,1))},K.wrap=function(e,t){return lt(t,16,[e])},K.xor=function(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Bn(n)||mt(n))var r=r?at(rt(r,n).concat(rt(n,r))):n}return r||[]},K.zip=Ut,K.zipObject=zt,K.collect=Mt,K.drop=It,K.each=At,K.eachRight=Ot,K.extend=V,K.methods=yt,K.object=zt,K.select=kt,K.tail=It,K.unique=Rt,K.unzip=Ut,$t(K),K.clone=function(e,t,n,r){return typeof t!=\"boolean\"&&null!=t&&(r=n,n=t,t=!1),Z(e,t,typeof n==\"function\"&&tt(n,r,1))},K.cloneDeep=function(e,t,n){return Z(e,!0,typeof t==\"function\"&&tt(t,n,1))},K.contains=Nt,K.escape=function(e){return null==e?\"\":on(e).replace(Rn,ct)},K.every=Ct,K.find=Lt,K.findIndex=function(e,t,n){var r=-1,i=e?e.length:0;for(t=K.createCallback(t,n,3);++r<i;)if(t(e[r],r,e))return r;return-1},K.findKey=function(e,t,n){var r;return t=K.createCallback(t,n,3),d(e,function(e,n,i){return t(e,n,i)?(r=n,!1):void 0}),r},K.findLast=function(e,t,n){var r;return t=K.createCallback(t,n,3),Ot(e,function(e,n,i){return t(e,n,i)?(r=e,!1):void 0}),r},K.findLastIndex=function(e,t,n){var r=e?e.length:0;for(t=K.createCallback(t,n,3);r--;)if(t(e[r],r,e))return r;return-1},K.findLastKey=function(e,t,n){var r;return t=K.createCallback(t,n,3),gt(e,function(e,n,i){return t(e,n,i)?(r=n,!1):void 0}),r},K.has=function(e,t){return e?yn.call(e,t):!1},K.identity=Vt,K.indexOf=Ft,K.isArguments=mt,K.isArray=Bn,K.isBoolean=function(e){return!0===e||!1===e||e&&typeof e==\"object\"&&cn.call(e)==H||!1},K.isDate=function(e){return e&&typeof e==\"object\"&&cn.call(e)==B||!1},K.isElement=function(e){return e&&1===e.nodeType||!1},K.isEmpty=function(e){var t=!0;if(!e)return t;var n=cn.call(e),r=e.length;return n==P||n==R||n==D||n==I&&typeof r==\"number\"&&wt(e.splice)?!r:(d(e,function(){return t=!1}),t)},K.isEqual=function(e,t,n,r){return st(e,t,typeof n==\"function\"&&tt(n,r,2))},K.isFinite=function(e){return Cn(e)&&!kn(parseFloat(e))},K.isFunction=wt,K.isNaN=function(e){return St(e)&&e!=+e},K.isNull=function(e){return null===e},K.isNumber=St,K.isObject=Et,K.isPlainObject=Un,K.isRegExp=function(e){return e&&typeof e==\"object\"&&cn.call(e)==q||!1},K.isString=xt,K.isUndefined=function(e){return typeof e==\"undefined\"},K.lastIndexOf=function(e,t,n){var r=e?e.length:0;for(typeof n==\"number\"&&(r=(0>n?An(0,r+n):On(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},K.mixin=$t,K.noConflict=function(){return n._=ln,this},K.noop=Jt,K.now=$n,K.parseInt=Jn,K.random=function(e,t,n){var r=null==e,i=null==t;return null==n&&(typeof e==\"boolean\"&&i?(n=e,e=1):i||typeof t!=\"boolean\"||(n=t,i=!0)),r&&i&&(t=1),e=+e||0,i?(t=e,e=0):t=+t||0,n||e%1||t%1?(n=_n(),On(e+n*(t-e+parseFloat(\"1e-\"+((n+\"\").length-1))),t)):ut(e,t)},K.reduce=Dt,K.reduceRight=Pt,K.result=function(e,t){if(e){var n=e[t];return wt(n)?e[t]():n}},K.runInContext=h,K.size=function(e){var t=e?e.length:0;return typeof t==\"number\"?t:jn(e).length},K.some=Bt,K.sortedIndex=qt,K.template=function(e,t,n){var r=K.templateSettings;e=on(e||\"\"),n=b({},n,r);var i,s=b({},n.imports,r.imports),r=jn(s),s=Tt(s),u=0,a=n.interpolate||A,f=\"__p+='\",a=sn((n.escape||A).source+\"|\"+a.source+\"|\"+(a===k?T:A).source+\"|\"+(n.evaluate||A).source+\"|$\",\"g\");e.replace(a,function(t,n,r,s,a,l){return r||(r=s),f+=e.slice(u,l).replace(M,o),n&&(f+=\"'+__e(\"+n+\")+'\"),a&&(i=!0,f+=\"';\"+a+\";\\n__p+='\"),r&&(f+=\"'+((__t=(\"+r+\"))==null?'':__t)+'\"),u=l+t.length,t}),f+=\"';\",a=n=n.variable,a||(n=\"obj\",f=\"with(\"+n+\"){\"+f+\"}\"),f=(i?f.replace(E,\"\"):f).replace(S,\"$1\").replace(x,\"$1;\"),f=\"function(\"+n+\"){\"+(a?\"\":n+\"||(\"+n+\"={});\")+\"var __t,__p='',__e=_.escape\"+(i?\",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}\":\";\")+f+\"return __p}\";try{var l=en(r,\"return \"+f).apply(p,s)}catch(c){throw c.source=f,c}return t?l(t):(l.source=f,l)},K.unescape=function(e){return null==e?\"\":on(e).replace(qn,vt)},K.uniqueId=function(e){var t=++m;return on(null==e?\"\":e)+t},K.all=Ct,K.any=Bt,K.detect=Lt,K.findWhere=Lt,K.foldl=Dt,K.foldr=Pt,K.include=Nt,K.inject=Dt,$t(function(){var e={};return d(K,function(t,n){K.prototype[n]||(e[n]=t)}),e}(),!1),K.first=jt,K.last=function(e,t,n){var r=0,i=e?e.length:0;if(typeof t!=\"number\"&&null!=t){var s=i;for(t=K.createCallback(t,n,3);s--&&t(e[s],s,e);)r++}else if(r=t,null==r||n)return e?e[i-1]:p;return c(e,An(0,i-r))},K.sample=function(e,t,n){return e&&typeof e.length!=\"number\"&&(e=Tt(e)),null==t||n?e?e[ut(0,e.length-1)]:p:(e=Ht(e),e.length=On(An(0,t),e.length),e)},K.take=jt,K.head=jt,d(K,function(e,t){var n=\"sample\"!==t;K.prototype[t]||(K.prototype[t]=function(t,r){var i=this.__chain__,s=e(this.__wrapped__,t,r);return i||null!=t&&(!r||n&&typeof t==\"function\")?new Q(s,i):s})}),K.VERSION=\"2.4.1\",K.prototype.chain=function(){return this.__chain__=!0,this},K.prototype.toString=function(){return on(this.__wrapped__)},K.prototype.value=Qt,K.prototype.valueOf=Qt,At([\"join\",\"pop\",\"shift\"],function(e){var t=an[e];K.prototype[e]=function(){var e=this.__chain__,n=t.apply(this.__wrapped__,arguments);return e?new Q(n,e):n}}),At([\"push\",\"reverse\",\"sort\",\"unshift\"],function(e){var t=an[e];K.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}}),At([\"concat\",\"slice\",\"splice\"],function(e){var t=an[e];K.prototype[e]=function(){return new Q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),K}var p,d=[],v=[],m=0,g=+(new Date)+\"\",y=75,b=40,w=\" \t\u000b\\f \\n\\r\\u2028\\u2029 ᠎              \",E=/\\b__p\\+='';/g,S=/\\b(__p\\+=)''\\+/g,x=/(__e\\(.*?\\)|\\b__t\\))\\+'';/g,T=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,N=/\\w*$/,C=/^\\s*function[ \\n\\r\\t]+\\w/,k=/<%=([\\s\\S]+?)%>/g,L=RegExp(\"^[\"+w+\"]*0+(?=.$)\"),A=/($^)/,O=/\\bthis\\b/,M=/['\\n\\r\\t\\u2028\\u2029\\\\]/g,_=\"Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setTimeout\".split(\" \"),D=\"[object Arguments]\",P=\"[object Array]\",H=\"[object Boolean]\",B=\"[object Date]\",j=\"[object Function]\",F=\"[object Number]\",I=\"[object Object]\",q=\"[object RegExp]\",R=\"[object String]\",U={};U[j]=!1,U[D]=U[P]=U[H]=U[B]=U[F]=U[I]=U[q]=U[R]=!0;var z={leading:!1,maxWait:0,trailing:!1},W={configurable:!1,enumerable:!1,value:null,writable:!1},X={\"boolean\":!1,\"function\":!0,object:!0,number:!1,string:!1,\"undefined\":!1},V={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},$=X[typeof window]&&window||this,J=X[typeof exports]&&exports&&!exports.nodeType&&exports,K=X[typeof module]&&module&&!module.nodeType&&module,Q=K&&K.exports===J&&J,G=X[typeof global]&&global;!G||G.global!==G&&G.window!==G||($=G);var Y=h();typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd?($._=Y,define(\"underscore\",[],function(){return Y})):J&&K?Q?(K.exports=Y)._=Y:J._=Y:$._=Y}.call(this),function(e,t){if(typeof define==\"function\"&&define.amd)define(\"backbone\",[\"underscore\",\"jquery\",\"exports\"],function(n,r,i){e.Backbone=t(e,i,n,r)});else if(typeof exports!=\"undefined\"){var n=require(\"underscore\");t(e,exports,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t,n,r){var i=e.Backbone,s=[],o=s.push,u=s.slice,a=s.splice;t.VERSION=\"1.1.2\",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var f=t.Events={on:function(e,t,n){if(!c(this,\"on\",e,[t,n])||!t)return this;this._events||(this._events={});var r=this._events[e]||(this._events[e]=[]);return r.push({callback:t,context:n,ctx:n||this}),this},once:function(e,t,r){if(!c(this,\"once\",e,[t,r])||!t)return this;var i=this,s=n.once(function(){i.off(e,s),t.apply(this,arguments)});return s._callback=t,this.on(e,s,r)},off:function(e,t,r){var i,s,o,u,a,f,l,h;if(!this._events||!c(this,\"off\",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;u=e?[e]:n.keys(this._events);for(a=0,f=u.length;a<f;a++){e=u[a];if(o=this._events[e]){this._events[e]=i=[];if(t||r)for(l=0,h=o.length;l<h;l++)s=o[l],(t&&t!==s.callback&&t!==s.callback._callback||r&&r!==s.context)&&i.push(s);i.length||delete this._events[e]}}return this},trigger:function(e){if(!this._events)return this;var t=u.call(arguments,1);if(!c(this,\"trigger\",e,t))return this;var n=this._events[e],r=this._events.all;return n&&h(n,t),r&&h(r,arguments),this},stopListening:function(e,t,r){var i=this._listeningTo;if(!i)return this;var s=!t&&!r;!r&&typeof t==\"object\"&&(r=this),e&&((i={})[e._listenId]=e);for(var o in i)e=i[o],e.off(t,r,this),(s||n.isEmpty(e._events))&&delete this._listeningTo[o];return this}},l=/\\s+/,c=function(e,t,n,r){if(!n)return!0;if(typeof n==\"object\"){for(var i in n)e[t].apply(e,[i,n[i]].concat(r));return!1}if(l.test(n)){var s=n.split(l);for(var o=0,u=s.length;o<u;o++)e[t].apply(e,[s[o]].concat(r));return!1}return!0},h=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],u=t[2];switch(t.length){case 0:while(++r<i)(n=e[r]).callback.call(n.ctx);return;case 1:while(++r<i)(n=e[r]).callback.call(n.ctx,s);return;case 2:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o,u);return;default:while(++r<i)(n=e[r]).callback.apply(n.ctx,t);return}},p={listenTo:\"on\",listenToOnce:\"once\"};n.each(p,function(e,t){f[t]=function(t,r,i){var s=this._listeningTo||(this._listeningTo={}),o=t._listenId||(t._listenId=n.uniqueId(\"l\"));return s[o]=t,!i&&typeof r==\"object\"&&(i=this),t[e](r,i,this),this}}),f.bind=f.on,f.unbind=f.off,n.extend(t,f);var d=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId(\"c\"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,\"defaults\")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(d.prototype,f,{changed:null,validationError:null,idAttribute:\"id\",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return this.get(e)!=null},set:function(e,t,r){var i,s,o,u,a,f,l,c;if(e==null)return this;typeof e==\"object\"?(s=e,r=t):(s={})[e]=t,r||(r={});if(!this._validate(s,r))return!1;o=r.unset,a=r.silent,u=[],f=this._changing,this._changing=!0,f||(this._previousAttributes=n.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(i in s)t=s[i],n.isEqual(c[i],t)||u.push(i),n.isEqual(l[i],t)?delete this.changed[i]:this.changed[i]=t,o?delete c[i]:c[i]=t;if(!a){u.length&&(this._pending=r);for(var h=0,p=u.length;h<p;h++)this.trigger(\"change:\"+u[h],this,c[u[h]],r)}if(f)return this;if(!a)while(this._pending)r=this._pending,this._pending=!1,this.trigger(\"change\",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return e==null?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var t,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var s in e){if(n.isEqual(i[s],t=e[s]))continue;(r||(r={}))[s]=t}return r},previous:function(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=e?n.clone(e):{},e.parse===void 0&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger(\"sync\",t,n,e)},I(this,e),this.sync(\"read\",this,e)},save:function(e,t,r){var i,s,o,u=this.attributes;e==null||typeof e==\"object\"?(i=e,r=t):(i={})[e]=t,r=n.extend({validate:!0},r);if(i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},u,i)),r.parse===void 0&&(r.parse=!0);var a=this,f=r.success;return r.success=function(e){a.attributes=u;var t=a.parse(e,r);r.wait&&(t=n.extend(i||{},t));if(n.isObject(t)&&!a.set(t,r))return!1;f&&f(a,e,r),a.trigger(\"sync\",a,e,r)},I(this,r),s=this.isNew()?\"create\":r.patch?\"patch\":\"update\",s===\"patch\"&&(r.attrs=i),o=this.sync(s,this,r),i&&r.wait&&(this.attributes=u),o},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,i=function(){t.trigger(\"destroy\",t,t.collection,e)};e.success=function(n){(e.wait||t.isNew())&&i(),r&&r(t,n,e),t.isNew()||t.trigger(\"sync\",t,n,e)};if(this.isNew())return e.success(),!1;I(this,e);var s=this.sync(\"delete\",this,e);return e.wait||i(),s},url:function(){var e=n.result(this,\"urlRoot\")||n.result(this.collection,\"url\")||F();return this.isNew()?e:e.replace(/([^\\/])$/,\"$1/\")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return r?(this.trigger(\"invalid\",this,r,n.extend(t,{validationError:r})),!1):!0}});var v=[\"keys\",\"values\",\"pairs\",\"invert\",\"pick\",\"omit\"];n.each(v,function(e){d.prototype[e]=function(){var t=u.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}});var m=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),t.comparator!==void 0&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},g={add:!0,remove:!0,merge:!0},y={add:!0,remove:!1};n.extend(m.prototype,f,{model:d,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,y))},remove:function(e,t){var r=!n.isArray(e);e=r?[e]:n.clone(e),t||(t={});var i,s,o,u;for(i=0,s=e.length;i<s;i++){u=e[i]=this.get(e[i]);if(!u)continue;delete this._byId[u.id],delete this._byId[u.cid],o=this.indexOf(u),this.models.splice(o,1),this.length--,t.silent||(t.index=o,u.trigger(\"remove\",u,this,t)),this._removeReference(u,t)}return r?e[0]:e},set:function(e,t){t=n.defaults({},t,g),t.parse&&(e=this.parse(e,t));var r=!n.isArray(e);e=r?e?[e]:[]:n.clone(e);var i,s,o,u,a,f,l,c=t.at,h=this.model,p=this.comparator&&c==null&&t.sort!==!1,v=n.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},w=t.add,E=t.merge,S=t.remove,x=!p&&w&&S?[]:!1;for(i=0,s=e.length;i<s;i++){a=e[i]||{},a instanceof d?o=u=a:o=a[h.prototype.idAttribute||\"id\"];if(f=this.get(o))S&&(b[f.cid]=!0),E&&(a=a===u?u.attributes:a,t.parse&&(a=f.parse(a,t)),f.set(a,t),p&&!l&&f.hasChanged(v)&&(l=!0)),e[i]=f;else if(w){u=e[i]=this._prepareModel(a,t);if(!u)continue;m.push(u),this._addReference(u,t)}u=f||u,x&&(u.isNew()||!b[u.id])&&x.push(u),b[u.id]=!0}if(S){for(i=0,s=this.length;i<s;++i)b[(u=this.models[i]).cid]||y.push(u);y.length&&this.remove(y,t)}if(m.length||x&&x.length){p&&(l=!0),this.length+=m.length;if(c!=null)for(i=0,s=m.length;i<s;i++)this.models.splice(c+i,0,m[i]);else{x&&(this.models.length=0);var T=x||m;for(i=0,s=T.length;i<s;i++)this.models.push(T[i])}}l&&this.sort({silent:!0});if(!t.silent){for(i=0,s=m.length;i<s;i++)(u=m[i]).trigger(\"add\",u,this,t);(l||x&&x.length)&&this.trigger(\"sort\",this,t)}return r?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,i=this.models.length;r<i;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger(\"reset\",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return u.apply(this.models,arguments)},get:function(e){return e==null?void 0:this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?\"find\":\"filter\"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error(\"Cannot sort a set without a comparator\");return e||(e={}),n.isString(this.comparator)||this.comparator.length===1?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger(\"sort\",this,e),this},pluck:function(e){return n.invoke(this.models,\"get\",e)},fetch:function(e){e=e?n.clone(e):{},e.parse===void 0&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){var i=e.reset?\"reset\":\"set\";r[i](n,e),t&&t(r,n,e),r.trigger(\"sync\",r,n,e)},I(this,e),this.sync(\"read\",this,e)},create:function(e,t){t=t?n.clone(t):{};if(!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,i=t.success;return t.success=function(e,n){t.wait&&r.add(e,t),i&&i(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof d)return e;t=t?n.clone(t):{},t.collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger(\"invalid\",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,e.id!=null&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on(\"all\",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if((e===\"add\"||e===\"remove\")&&n!==this)return;e===\"destroy\"&&this.remove(t,r),t&&e===\"change:\"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],t.id!=null&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments)}});var b=[\"forEach\",\"each\",\"map\",\"collect\",\"reduce\",\"foldl\",\"inject\",\"reduceRight\",\"foldr\",\"find\",\"detect\",\"filter\",\"select\",\"reject\",\"every\",\"all\",\"some\",\"any\",\"include\",\"contains\",\"invoke\",\"max\",\"min\",\"toArray\",\"size\",\"first\",\"head\",\"take\",\"initial\",\"rest\",\"tail\",\"drop\",\"last\",\"without\",\"difference\",\"indexOf\",\"shuffle\",\"lastIndexOf\",\"isEmpty\",\"chain\",\"sample\"];n.each(b,function(e){m.prototype[e]=function(){var t=u.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}});var w=[\"groupBy\",\"countBy\",\"sortBy\",\"indexBy\"];n.each(w,function(e){m.prototype[e]=function(t,r){var i=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,i,r)}});var E=t.View=function(e){this.cid=n.uniqueId(\"view\"),e||(e={}),n.extend(this,n.pick(e,x)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},S=/^(\\S+)\\s*(.*)$/,x=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];n.extend(E.prototype,f,{tagName:\"div\",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,\"events\")))return this;this.undelegateEvents();for(var t in e){var r=e[t];n.isFunction(r)||(r=this[e[t]]);if(!r)continue;var i=t.match(S),s=i[1],o=i[2];r=n.bind(r,this),s+=\".delegateEvents\"+this.cid,o===\"\"?this.$el.on(s,r):this.$el.on(s,o,r)}return this},undelegateEvents:function(){return this.$el.off(\".delegateEvents\"+this.cid),this},_ensureElement:function(){if(!this.el){var e=n.extend({},n.result(this,\"attributes\"));this.id&&(e.id=n.result(this,\"id\")),this.className&&(e[\"class\"]=n.result(this,\"className\"));var r=t.$(\"<\"+n.result(this,\"tagName\")+\">\").attr(e);this.setElement(r,!1)}else this.setElement(n.result(this,\"el\"),!1)}}),t.sync=function(e,r,i){var s=N[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:s,dataType:\"json\"};i.url||(o.url=n.result(r,\"url\")||F()),i.data==null&&r&&(e===\"create\"||e===\"update\"||e===\"patch\")&&(o.contentType=\"application/json\",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType=\"application/x-www-form-urlencoded\",o.data=o.data?{model:o.data}:{});if(i.emulateHTTP&&(s===\"PUT\"||s===\"DELETE\"||s===\"PATCH\")){o.type=\"POST\",i.emulateJSON&&(o.data._method=s);var u=i.beforeSend;i.beforeSend=function(e){e.setRequestHeader(\"X-HTTP-Method-Override\",s);if(u)return u.apply(this,arguments)}}o.type!==\"GET\"&&!i.emulateJSON&&(o.processData=!1),o.type===\"PATCH\"&&T&&(o.xhr=function(){return new ActiveXObject(\"Microsoft.XMLHTTP\")});var a=i.xhr=t.ajax(n.extend(o,i));return r.trigger(\"request\",r,a,i),a};var T=typeof window!=\"undefined\"&&!!window.ActiveXObject&&(!window.XMLHttpRequest||!(new XMLHttpRequest).dispatchEvent),N={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var C=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},k=/\\((.*?)\\)/g,L=/(\\(\\?)?:\\w+/g,A=/\\*\\w+/g,O=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;n.extend(C.prototype,f,{initialize:function(){},route:function(e,r,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(i=r,r=\"\"),i||(i=this[r]);var s=this;return t.history.route(e,function(n){var o=s._extractParameters(e,n);s.execute(i,o),s.trigger.apply(s,[\"route:\"+r].concat(o)),s.trigger(\"route\",r,o),t.history.trigger(\"route\",s,r,o)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(!this.routes)return;this.routes=n.result(this,\"routes\");var e,t=n.keys(this.routes);while((e=t.pop())!=null)this.route(e,this.routes[e])},_routeToRegExp:function(e){return e=e.replace(O,\"\\\\$&\").replace(k,\"(?:$1)?\").replace(L,function(e,t){return t?e:\"([^/?]+)\"}).replace(A,\"([^?]*?)\"),new RegExp(\"^\"+e+\"(?:\\\\?([\\\\s\\\\S]*))?$\")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var M=t.History=function(){this.handlers=[],n.bindAll(this,\"checkUrl\"),typeof window!=\"undefined\"&&(this.location=window.location,this.history=window.history)},_=/^[#\\/]|\\s+$/g,D=/^\\/+|\\/+$/g,P=/msie [\\w.]+/,H=/\\/$/,B=/#.*$/;M.started=!1,n.extend(M.prototype,f,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\\/]$/,\"$&/\")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:\"\"},getFragment:function(e,t){if(e==null)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(H,\"\");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(_,\"\")},start:function(e){if(M.started)throw new Error(\"Backbone.history has already been started\");M.started=!0,this.options=n.extend({root:\"/\"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,s=P.exec(navigator.userAgent.toLowerCase())&&(!i||i<=7);this.root=(\"/\"+this.root+\"/\").replace(D,\"/\");if(s&&this._wantsHashChange){var o=t.$('<iframe src=\"javascript:0\" tabindex=\"-1\">');this.iframe=o.hide().appendTo(\"body\")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on(\"popstate\",this.checkUrl):this._wantsHashChange&&\"onhashchange\"in window&&!s?t.$(window).on(\"hashchange\",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var u=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+\"#\"+this.fragment),!0;this._hasPushState&&this.atRoot()&&u.hash&&(this.fragment=this.getHash().replace(_,\"\"),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off(\"popstate\",this.checkUrl).off(\"hashchange\",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe)));if(t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!M.started)return!1;if(!t||t===!0)t={trigger:!!t};var n=this.root+(e=this.getFragment(e||\"\"));e=e.replace(B,\"\");if(this.fragment===e)return;this.fragment=e,e===\"\"&&n!==\"/\"&&(n=n.slice(0,-1));if(this._hasPushState)this.history[t.replace?\"replaceState\":\"pushState\"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}if(t.trigger)return this.loadUrl(e)},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,\"\");e.replace(r+\"#\"+t)}else e.hash=\"#\"+t}}),t.history=new M;var j=function(e,t){var r=this,i;e&&n.has(e,\"constructor\")?i=e.constructor:i=function(){return r.apply(this,arguments)},n.extend(i,r,t);var s=function(){this.constructor=i};return s.prototype=r.prototype,i.prototype=new s,e&&n.extend(i.prototype,e),i.__super__=r.prototype,i};d.extend=m.extend=C.extend=E.extend=M.extend=j;var F=function(){throw new Error('A \"url\" property or function must be specified')},I=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger(\"error\",e,r,t)}};return t});var form2js=function(){function e(e,r,i,s,o){if(typeof i==\"undefined\"||i==null)i=!0;if(typeof r==\"undefined\"||r==null)r=\".\";arguments.length<5&&(o=!1),e=typeof e==\"string\"?document.getElementById(e):e;var u=[],a,f=0;if(e.constructor==Array||typeof NodeList!=\"undefined\"&&e.constructor==NodeList)while(a=e[f++])u=u.concat(n(a,s,o));else u=n(e,s,o);return t(u,i,r)}function t(e,t,n){var r={},i={},s,o,u,a,f,l,c,h,p,d,v,m,g;for(s=0;s<e.length;s++){f=e[s].value;if(!(!t||f!==\"\"&&f!==null))continue;m=e[s].name,g=m.split(n),l=[],c=r,h=\"\";for(o=0;o<g.length;o++){v=g[o].split(\"][\");if(v.length>1)for(u=0;u<v.length;u++){u==0?v[u]=v[u]+\"]\":u==v.length-1?v[u]=\"[\"+v[u]:v[u]=\"[\"+v[u]+\"]\",d=v[u].match(/([a-z_]+)?\\[([a-z_][a-z0-9]+?)\\]/i);if(d)for(a=1;a<d.length;a++)d[a]&&l.push(d[a]);else l.push(v[u])}else l=l.concat(v)}for(o=0;o<l.length;o++)v=l[o],v.indexOf(\"[]\")>-1&&o==l.length-1?(p=v.substr(0,v.indexOf(\"[\")),h+=p,c[p]||(c[p]=[]),c[p].push(f)):v.indexOf(\"[\")>-1?(p=v.substr(0,v.indexOf(\"[\")),d=v.replace(/(^([a-z_]+)?\\[)|(\\]$)/gi,\"\"),h+=\"_\"+p+\"_\"+d,i[h]||(i[h]={}),p!=\"\"&&!c[p]&&(c[p]=[]),o==l.length-1?p==\"\"?(c.push(f),i[h][d]=c[c.length-1]):(c[p].push(f),i[h][d]=c[p][c[p].length-1]):i[h][d]||(/^[a-z_]+\\[?/i.test(l[o+1])?c[p].push({}):c[p].push([]),i[h][d]=c[p][c[p].length-1]),c=i[h][d]):(h+=v,o<l.length-1?(c[v]||(c[v]={}),c=c[v]):c[v]=f)}return r}function n(e,t,n){var s=i(e,t,n);return s.length>0?s:r(e,t,n)}function r(e,t,n){var r=[],s=e.firstChild;while(s)r=r.concat(i(s,t,n)),s=s.nextSibling;return r}function i(e,t,n){var i,u,a,f=s(e,n);return i=t&&t(e),i&&i.name?a=[i]:f!=\"\"&&e.nodeName.match(/INPUT|TEXTAREA/i)?(u=o(e),a=[{name:f,value:u}]):f!=\"\"&&e.nodeName.match(/SELECT/i)?(u=o(e),a=[{name:f.replace(/\\[\\]$/,\"\"),value:u}]):a=r(e,t,n),a}function s(e,t){return e.name&&e.name!=\"\"?e.name:t&&e.id&&e.id!=\"\"?e.id:\"\"}function o(e){if(e.disabled)return null;switch(e.nodeName){case\"INPUT\":case\"TEXTAREA\":switch(e.type.toLowerCase()){case\"radio\":case\"checkbox\":if(e.checked)return e.value;break;case\"button\":case\"reset\":case\"submit\":case\"image\":return\"\";default:return e.value}break;case\"SELECT\":return u(e);default:}return null}function u(e){var t=e.multiple,n=[],r,i,s;if(!t)return e.value;for(r=e.getElementsByTagName(\"option\"),i=0,s=r.length;i<s;i++)r[i].selected&&n.push(r[i].value);return n}return e}();define(\"form2js\",function(e){return function(){return e.form2js}}(this));var js2form=function(){function o(e,t,r,i,s){arguments.length<3&&(r=\".\"),arguments.length<4&&(i=null),arguments.length<5&&(s=!1);var o,f;o=l(t),f=a(e,s,r,{},!0);for(var c=0;c<o.length;c++){var h=o[c].name,p=o[c].value;typeof f[h]!=\"undefined\"?u(f[h],p):typeof f[h.replace(n,\"[]\")]!=\"undefined\"&&u(f[h.replace(n,\"[]\")],p)}}function u(e,t){var n,r,i;if(e instanceof Array)for(r=0;r<e.length;r++)e[r].value==t&&(e[r].checked=!0);else if(s.test(e.nodeName))e.value=t;else if(/SELECT/i.test(e.nodeName)){n=e.getElementsByTagName(\"option\");for(r=0,i=n.length;r<i;r++)if(n[r].value==t){n[r].selected=!0;if(e.multiple)break}else e.multiple||(n[r].selected=!1)}}function a(e,t,r,i,s){arguments.length<4&&(i={});var o={},u=e.firstChild,l,c,h,p,d,v,m;while(u){l=\"\",u.name&&u.name!=\"\"?l=u.name:t&&u.id&&u.id!=\"\"&&(l=u.id);if(l==\"\"){var g=a(u,t,r,i,s);for(h in g)if(typeof o[h]==\"undefined\")o[h]=g[h];else for(p=0;p<g[h].length;p++)o[h].push(g[h][p])}else if(/SELECT/i.test(u.nodeName))for(d=0,m=u.getElementsByTagName(\"option\"),v=m.length;d<v;d++)s&&(m[d].selected=!1),c=f(l,r,i),o[c]=u;else/INPUT/i.test(u.nodeName)&&/CHECKBOX|RADIO/i.test(u.type)?(s&&(u.checked=!1),c=f(l,r,i),c=c.replace(n,\"[]\"),o[c]||(o[c]=[]),o[c].push(u)):(s&&(u.value=\"\"),c=f(l,r,i),o[c]=u);u=u.nextSibling}return o}function f(e,t,n){var s=[],o=e.split(t),u,a,f,l,c,h;e=e.replace(i,\"[$1].[$2]\");for(h=0;h<o.length;h++){u=o[h],s.push(u),a=u.match(r);if(a!=null){f=s.join(t),l=f.replace(r,\"$3\"),f=f.replace(r,\"$1\"),typeof n[f]==\"undefined\"&&(n[f]={lastIndex:-1,indexes:{}});if(l==\"\"||typeof n[f].indexes[l]==\"undefined\")n[f].lastIndex++,n[f].indexes[l]=n[f].lastIndex;c=n[f].indexes[l],s[s.length-1]=u.replace(r,\"$1$2\"+c+\"$4\")}}return f=s.join(t),f=f.replace(\"].[\",\"][\"),f}function l(e,t){var n=[],r,i;arguments.length==1&&(t=0);if(e instanceof Array)for(r=0;r<e.length;r++)i=\"[\"+r+\"]\",n=n.concat(c(e[r],i,t+1));else if(typeof e==\"string\"||typeof e==\"number\"||typeof e==\"date\")n=[{name:\"\",value:e}];else for(r in e)i=r,n=n.concat(c(e[r],i,t+1));return n}function c(n,r,i){var s,o=[],u=l(n,i+1),a,f;for(a=0;a<u.length;a++)s=r,e.test(u[a].name)?s+=u[a].name:t.test(u[a].name)&&(s+=\".\"+u[a].name),f={name:s,value:u[a].value},o.push(f);return o}var e=/^\\[\\d+?\\]/,t=/^[a-zA-Z_][a-zA-Z_0-9]+/,n=/\\[[0-9]\\]$/,r=/(.*)(\\[)([0-9]*)(\\])$/,i=/\\[([0-9]+)\\]\\[([0-9]+)\\]/g,s=/INPUT|TEXTAREA/i;return o}();define(\"js2form\",function(e){return function(){return e.js2form}}(this)),!function(e,t){\"object\"==typeof exports?module.exports=t():\"function\"==typeof define&&define.amd?define(\"spin\",[],t):e.Spinner=t()}(this,function(){function e(e,t){var n,r=document.createElement(e||\"div\");for(n in t)r[n]=t[n];return r}function t(e){for(var t=1,n=arguments.length;n>t;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,r){var i=[\"opacity\",t,~~(100*e),n,r].join(\"-\"),s=.01+n/r*100,o=Math.max(1-(1-e)/t*(100-s),e),u=f.substring(0,f.indexOf(\"Animation\")).toLowerCase(),a=u&&\"-\"+u+\"-\"||\"\";return c[i]||(h.insertRule(\"@\"+a+\"keyframes \"+i+\"{0%{opacity:\"+o+\"}\"+s+\"%{opacity:\"+e+\"}\"+(s+.01)+\"%{opacity:1}\"+(s+t)%100+\"%{opacity:\"+e+\"}100%{opacity:\"+o+\"}}\",h.cssRules.length),c[i]=1),i}function r(e,t){var n,r,i=e.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<l.length;r++)if(n=l[r]+t,void 0!==i[n])return n;return void 0!==i[t]?t:void 0}function i(e,t){for(var n in t)e.style[r(e,n)||n]=t[n];return e}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)void 0===e[r]&&(e[r]=n[r])}return e}function o(e,t){return\"string\"==typeof e?e:e[t%e.length]}function u(e){this.opts=s(e||{},u.defaults,p)}function a(){function n(t,n){return e(\"<\"+t+' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"spin-vml\">',n)}h.addRule(\".spin-vml\",\"behavior:url(#default#VML)\"),u.prototype.lines=function(e,r){function s(){return i(n(\"group\",{coordsize:l+\" \"+l,coordorigin:-f+\" \"+ -f}),{width:l,height:l})}function u(e,u,a){t(h,t(i(s(),{rotation:360/r.lines*e+\"deg\",left:~~u}),t(i(n(\"roundrect\",{arcsize:r.corners}),{width:f,height:r.width,left:r.radius,top:-r.width>>1,filter:a}),n(\"fill\",{color:o(r.color,e),opacity:r.opacity}),n(\"stroke\",{opacity:0}))))}var a,f=r.length+r.width,l=2*f,c=2*-(r.width+r.length)+\"px\",h=i(s(),{position:\"absolute\",top:c,left:c});if(r.shadow)for(a=1;a<=r.lines;a++)u(a,-2,\"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)\");for(a=1;a<=r.lines;a++)u(a);return t(e,h)},u.prototype.opacity=function(e,t,n,r){var i=e.firstChild;r=r.shadow&&r.lines||0,i&&t+r<i.childNodes.length&&(i=i.childNodes[t+r],i=i&&i.firstChild,i=i&&i.firstChild,i&&(i.opacity=n))}}var f,l=[\"webkit\",\"Moz\",\"ms\",\"O\"],c={},h=function(){var n=e(\"style\",{type:\"text/css\"});return t(document.getElementsByTagName(\"head\")[0],n),n.sheet||n.styleSheet}(),p={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:\"#000\",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:\"spinner\",top:\"50%\",left:\"50%\",position:\"absolute\"};u.defaults={},s(u.prototype,{spin:function(t){this.stop();var n=this,r=n.opts,s=n.el=i(e(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex});r.radius+r.length+r.width;if(i(s,{left:r.left,top:r.top}),t&&t.insertBefore(s,t.firstChild||null),s.setAttribute(\"role\",\"progressbar\"),n.lines(s,n.opts),!f){var o,u=0,a=(r.lines-1)*(1-r.direction)/2,l=r.fps,c=l/r.speed,h=(1-r.opacity)/(c*r.trail/100),p=c/r.lines;!function d(){u++;for(var e=0;e<r.lines;e++)o=Math.max(1-(u+(r.lines-e)*p)%c*h,r.opacity),n.opacity(s,e*r.direction+a,o,r);n.timeout=n.el&&setTimeout(d,~~(1e3/l))}()}return n},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(r,s){function u(t,n){return i(e(),{position:\"absolute\",width:s.length+s.width+\"px\",height:s.width+\"px\",background:t,boxShadow:n,transformOrigin:\"left\",transform:\"rotate(\"+~~(360/s.lines*l+s.rotate)+\"deg) translate(\"+s.radius+\"px,0)\",borderRadius:(s.corners*s.width>>1)+\"px\"})}for(var a,l=0,c=(s.lines-1)*(1-s.direction)/2;l<s.lines;l++)a=i(e(),{position:\"absolute\",top:1+~(s.width/2)+\"px\",transform:s.hwaccel?\"translate3d(0,0,0)\":\"\",opacity:s.opacity,animation:f&&n(s.opacity,s.trail,c+l*s.direction,s.lines)+\" \"+1/s.speed+\"s linear infinite\"}),s.shadow&&t(a,i(u(\"#000\",\"0 0 4px #000\"),{top:\"2px\"})),t(r,t(a,u(o(s.color,l),\"0 0 1px rgba(0,0,0,.1)\")));return r},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}});var d=i(e(\"group\"),{behavior:\"url(#default#VML)\"});return!r(d,\"transform\")&&d.adj?a():f=r(d,\"animation\"),u});var XDate=function(e,t,n,r){function i(){var t=this instanceof i?this:new i,n=arguments,r=n.length,u;typeof n[r-1]==\"boolean\"&&(u=n[--r],n=N(n,0,r));if(r)if(r==1){if(r=n[0],r instanceof e||typeof r==\"number\")t[0]=new e(+r);else if(r instanceof i){var n=t,a=new e(+r[0]);s(r)&&(a.toString=D),n[0]=a}else if(typeof r==\"string\"){t[0]=new e(0);e:{for(var n=r,r=u||!1,a=i.parsers,f=0,l;f<a.length;f++)if(l=a[f](n,r,t)){t=l;break e}t[0]=new e(n)}}}else t[0]=new e(_.apply(e,n)),u||(t[0]=E(t[0]));else t[0]=new e;return typeof u==\"boolean\"&&o(t,u),t}function s(e){return e[0].toString===D}function o(t,n,r){return n?s(t)||(r&&(t[0]=new e(_(t[0].getFullYear(),t[0].getMonth(),t[0].getDate(),t[0].getHours(),t[0].getMinutes(),t[0].getSeconds(),t[0].getMilliseconds()))),t[0].toString=D):s(t)&&(t[0]=r?E(t[0]):new e(+t[0])),t}function u(e,t,n,r,i){var s=T(b,e[0],i),e=T(w,e[0],i),i=!1;r.length==2&&typeof r[1]==\"boolean\"&&(i=r[1],r=[n]),n=t==1?(n%12+12)%12:s(1),e(t,r),i&&s(1)!=n&&(e(1,[s(1)-1]),e(2,[S(s(0),s(1))]))}function a(e,n,r,i){var r=Number(r),s=t.floor(r);e[\"set\"+L[n]](e[\"get\"+L[n]]()+s,i||!1),s!=r&&n<6&&a(e,n+1,(r-s)*O[n],i)}function f(e,n,r){var e=e.clone().setUTCMode(!0,!0),n=i(n).setUTCMode(!0,!0),s=0;if(r==0||r==1){for(var o=6;o>=r;o--)s/=O[o],s+=b(n,!1,o)-b(e,!1,o);r==1&&(s+=(n.getFullYear()-e.getFullYear())*12)}else r==2?(r=e.toDate().setUTCHours(0,0,0,0),s=n.toDate().setUTCHours(0,0,0,0),s=t.round((s-r)/864e5)+(n-s-(e-r))/864e5):s=(n-e)/[36e5,6e4,1e3,1][r-3];return s}function l(n){var r=n(0),i=n(1),s=n(2),n=new e(_(r,i,s)),r=h(c(r,i,s));return t.floor(t.round((n-r)/864e5)/7)+1}function c(t,n,r){return n=new e(_(t,n,r)),n<h(t)?t-1:n>=h(t+1)?t+1:t}function h(t){return t=new e(_(t,0,4)),t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),t}function p(e,t,n,i){var s=T(b,e,i),o=T(w,e,i);n===r&&(n=c(s(0),s(1),s(2))),n=h(n),i||(n=E(n)),e.setTime(+n),o(2,[s(2)+(t-1)*7])}function d(e,t,n,r,s){var o=i.locales,u=o[i.defaultLocale]||{},a=T(b,e,s),n=(typeof n==\"string\"?o[n]:n)||{};return v(e,t,function(e){if(r)for(var t=(e==7?2:e)-1;t>=0;t--)r.push(a(t));return a(e)},function(e){return n[e]||u[e]},s)}function v(e,t,n,i,s){for(var o,u,a=\"\";o=t.match(M);){a+=t.substr(0,o.index);if(o[1]){u=a;for(var a=e,f=o[1],l=n,c=i,h=s,p=f.length,d=void 0,g=\"\";p>0;)d=m(a,f.substr(0,p),l,c,h),d!==r?(g+=d,f=f.substr(p),p=f.length):p--;a=u+(g+f)}else o[3]?(u=v(e,o[4],n,i,s),parseInt(u.replace(/\\D/g,\"\"),10)&&(a+=u)):a+=o[7]||\"'\";t=t.substr(o.index+o[0].length)}return a+t}function m(e,n,r,s,o){var u=i.formatters[n];if(typeof u==\"string\")return v(e,u,r,s,o);if(typeof u==\"function\")return u(e,o||!1,s);switch(n){case\"fff\":return k(r(6),3);case\"s\":return r(5);case\"ss\":return k(r(5));case\"m\":return r(4);case\"mm\":return k(r(4));case\"h\":return r(3)%12||12;case\"hh\":return k(r(3)%12||12);case\"H\":return r(3);case\"HH\":return k(r(3));case\"d\":return r(2);case\"dd\":return k(r(2));case\"ddd\":return s(\"dayNamesShort\")[r(7)]||\"\";case\"dddd\":return s(\"dayNames\")[r(7)]||\"\";case\"M\":return r(1)+1;case\"MM\":return k(r(1)+1);case\"MMM\":return s(\"monthNamesShort\")[r(1)]||\"\";case\"MMMM\":return s(\"monthNames\")[r(1)]||\"\";case\"yy\":return(r(0)+\"\").substring(2);case\"yyyy\":return r(0);case\"t\":return g(r,s).substr(0,1).toLowerCase();case\"tt\":return g(r,s).toLowerCase();case\"T\":return g(r,s).substr(0,1);case\"TT\":return g(r,s);case\"z\":case\"zz\":case\"zzz\":return o?n=\"Z\":(s=e.getTimezoneOffset(),e=s<0?\"+\":\"-\",r=t.floor(t.abs(s)/60),s=t.abs(s)%60,o=r,n==\"zz\"?o=k(r):n==\"zzz\"&&(o=k(r)+\":\"+k(s)),n=e+o),n;case\"w\":return l(r);case\"ww\":return k(l(r));case\"S\":return n=r(2),n>10&&n<20?\"th\":[\"st\",\"nd\",\"rd\"][n%10-1]||\"th\"}}function g(e,t){return e(3)<12?t(\"amDesignator\"):t(\"pmDesignator\")}function y(e){return!isNaN(+e[0])}function b(e,t,n){return e[\"get\"+(t?\"UTC\":\"\")+L[n]]()}function w(e,t,n,r){e[\"set\"+(t?\"UTC\":\"\")+L[n]].apply(e,r)}function E(t){return new e(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}function S(t,n){return 32-(new e(_(t,n,32))).getUTCDate()}function x(e){return function(){return e.apply(r,[this].concat(N(arguments)))}}function T(e){var t=N(arguments,1);return function(){return e.apply(r,t.concat(N(arguments)))}}function N(e,t,i){return n.prototype.slice.call(e,t||0,i===r?e.length:i)}function C(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function k(e,t){t=t||2;for(e+=\"\";e.length<t;)e=\"0\"+e;return e}var L=\"FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds,Day,Year\".split(\",\"),A=[\"Years\",\"Months\",\"Days\"],O=[12,31,24,60,60,1e3,1],M=/(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')/,_=e.UTC,D=e.prototype.toUTCString,P=i.prototype;return P.length=1,P.splice=n.prototype.splice,P.getUTCMode=x(s),P.setUTCMode=x(o),P.getTimezoneOffset=function(){return s(this)?0:this[0].getTimezoneOffset()},C(L,function(e,t){P[\"get\"+e]=function(){return b(this[0],s(this),t)},t!=8&&(P[\"getUTC\"+e]=function(){return b(this[0],!0,t)}),t!=7&&(P[\"set\"+e]=function(e){return u(this,t,e,arguments,s(this)),this},t!=8&&(P[\"setUTC\"+e]=function(e){return u(this,t,e,arguments,!0),this},P[\"add\"+(A[t]||e)]=function(e,n){return a(this,t,e,n),this},P[\"diff\"+(A[t]||e)]=function(e){return f(this,e,t)}))}),P.getWeek=function(){return l(T(b,this,!1))},P.getUTCWeek=function(){return l(T(b,this,!0))},P.setWeek=function(e,t){return p(this,e,t,!1),this},P.setUTCWeek=function(e,t){return p(this,e,t,!0),this},P.addWeeks=function(e){return this.addDays(Number(e)*7)},P.diffWeeks=function(e){return f(this,e,2)/7},i.parsers=[function(t,n,r){if(t=t.match(/^(\\d{4})(-(\\d{2})(-(\\d{2})([T ](\\d{2}):(\\d{2})(:(\\d{2})(\\.(\\d+))?)?(Z|(([-+])(\\d{2})(:?(\\d{2}))?))?)?)?)?$/)){var i=new e(_(t[1],t[3]?t[3]-1:0,t[5]||1,t[7]||0,t[8]||0,t[10]||0,t[12]?Number(\"0.\"+t[12])*1e3:0));return t[13]?t[14]&&i.setUTCMinutes(i.getUTCMinutes()+(t[15]==\"-\"?1:-1)*(Number(t[16])*60+(t[18]?Number(t[18]):0))):n||(i=E(i)),r.setTime(+i)}}],i.parse=function(e){return+i(\"\"+e)},P.toString=function(e,t,n){return e===r||!y(this)?this[0].toString():d(this,e,t,n,s(this))},P.toUTCString=P.toGMTString=function(e,t,n){return e===r||!y(this)?this[0].toUTCString():d(this,e,t,n,!0)},P.toISOString=function(){return this.toUTCString(\"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz\")},i.defaultLocale=\"\",i.locales={\"\":{monthNames:\"January,February,March,April,May,June,July,August,September,October,November,December\".split(\",\"),monthNamesShort:\"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec\".split(\",\"),dayNames:\"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday\".split(\",\"),dayNamesShort:\"Sun,Mon,Tue,Wed,Thu,Fri,Sat\".split(\",\"),amDesignator:\"AM\",pmDesignator:\"PM\"}},i.formatters={i:\"yyyy-MM-dd'T'HH:mm:ss(.fff)\",u:\"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz\"},C(\"getTime,valueOf,toDateString,toTimeString,toLocaleString,toLocaleDateString,toLocaleTimeString,toJSON\".split(\",\"),function(e){P[e]=function(){return this[0][e]()}}),P.setTime=function(e){return this[0].setTime(e),this},P.valid=x(y),P.clone=function(){return new i(this)},P.clearTime=function(){return this.setHours(0,0,0,0)},P.toDate=function(){return new e(+this[0])},i.now=function(){return+(new e)},i.today=function(){return(new i).clearTime()},i.UTC=_,i.getDaysInMonth=S,typeof module!=\"undefined\"&&module.exports&&(module.exports=i),typeof define==\"function\"&&define.amd&&define(\"xdate\",[],function(){return i}),i}(Date,Math,Array);(function(e){function t(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error(\"Implement me\")}}function n(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function r(e){gt.suppressDeprecationWarnings===!1&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+e)}function i(e,t){var n=!0;return c(function(){return n&&(r(e),n=!1),t.apply(this,arguments)},t)}function s(e,t){dn[e]||(r(t),dn[e]=!0)}function o(e,t){return function(n){return d(e.call(this,n),t)}}function u(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function a(){}function f(e,t){t!==!1&&O(e),h(this,e),this._d=new Date(+e._d)}function l(e){var t=x(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||0,o=t.day||0,u=t.hour||0,a=t.minute||0,f=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*f+6e4*a+36e5*u,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=gt.localeData(),this._bubble()}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return t.hasOwnProperty(\"toString\")&&(e.toString=t.toString),t.hasOwnProperty(\"valueOf\")&&(e.valueOf=t.valueOf),e}function h(e,t){var n,r,i;if(\"undefined\"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),\"undefined\"!=typeof t._i&&(e._i=t._i),\"undefined\"!=typeof t._f&&(e._f=t._f),\"undefined\"!=typeof t._l&&(e._l=t._l),\"undefined\"!=typeof t._strict&&(e._strict=t._strict),\"undefined\"!=typeof t._tzm&&(e._tzm=t._tzm),\"undefined\"!=typeof t._isUTC&&(e._isUTC=t._isUTC),\"undefined\"!=typeof t._offset&&(e._offset=t._offset),\"undefined\"!=typeof t._pf&&(e._pf=t._pf),\"undefined\"!=typeof t._locale&&(e._locale=t._locale),Mt.length>0)for(n in Mt)r=Mt[n],i=t[r],\"undefined\"!=typeof i&&(e[r]=i);return e}function p(e){return 0>e?Math.ceil(e):Math.floor(e)}function d(e,t,n){for(var r=\"\"+Math.abs(e),i=e>=0;r.length<t;)r=\"0\"+r;return(i?n?\"+\":\"\":\"-\")+r}function v(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t- +e.clone().add(n.months,\"M\"),n}function m(e,t){var n;return t=H(t,e),e.isBefore(t)?n=v(e,t):(n=v(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function g(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(s(t,\"moment().\"+t+\"(period, number) is deprecated. Please use moment().\"+t+\"(number, period).\"),o=n,n=r,r=o),n=\"string\"==typeof n?+n:n,i=gt.duration(n,r),y(this,i,e),this}}function y(e,t,n,r){var i=t._milliseconds,s=t._days,o=t._months;r=null==r?!0:r,i&&e._d.setTime(+e._d+i*n),s&&ct(e,\"Date\",lt(e,\"Date\")+s*n),o&&ft(e,lt(e,\"Month\")+o*n),r&&gt.updateOffset(e,s||o)}function b(e){return\"[object Array]\"===Object.prototype.toString.call(e)}function w(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function E(e,t,n){var r,i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(r=0;i>r;r++)(n&&e[r]!==t[r]||!n&&N(e[r])!==N(t[r]))&&o++;return o+s}function S(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,\"$1\");e=un[e]||an[t]||t}return e}function x(e){var t,n,r={};for(n in e)e.hasOwnProperty(n)&&(t=S(n),t&&(r[t]=e[n]));return r}function T(t){var n,r;if(0===t.indexOf(\"week\"))n=7,r=\"day\";else{if(0!==t.indexOf(\"month\"))return;n=12,r=\"month\"}gt[t]=function(i,s){var o,u,a=gt._locale[t],f=[];if(\"number\"==typeof i&&(s=i,i=e),u=function(e){var t=gt().utc().set(r,e);return a.call(gt._locale,t,i||\"\")},null!=s)return u(s);for(o=0;n>o;o++)f.push(u(o));return f}}function N(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function C(e,t){return(new Date(Date.UTC(e,t+1,0))).getUTCDate()}function k(e,t,n){return st(gt([e,11,31+t-n]),t,n).week}function L(e){return A(e)?366:365}function A(e){return e%4===0&&e%100!==0||e%400===0}function O(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Tt]<0||e._a[Tt]>11?Tt:e._a[Nt]<1||e._a[Nt]>C(e._a[xt],e._a[Tt])?Nt:e._a[Ct]<0||e._a[Ct]>23?Ct:e._a[kt]<0||e._a[kt]>59?kt:e._a[Lt]<0||e._a[Lt]>59?Lt:e._a[At]<0||e._a[At]>999?At:-1,e._pf._overflowDayOfYear&&(xt>t||t>Nt)&&(t=Nt),e._pf.overflow=t)}function M(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length)),e._isValid}function _(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function D(e){for(var t,n,r,i,s=0;s<e.length;){for(i=_(e[s]).split(\"-\"),t=i.length,n=_(e[s+1]),n=n?n.split(\"-\"):null;t>0;){if(r=P(i.slice(0,t).join(\"-\")))return r;if(n&&n.length>=t&&E(i,n,!0)>=t-1)break;t--}s++}return null}function P(e){var t=null;if(!Ot[e]&&_t)try{t=gt.locale(),require(\"./locale/\"+e),gt.locale(t)}catch(n){}return Ot[e]}function H(e,t){return t._isUTC?gt(e).zone(t._offset||0):gt(e).local()}function B(e){return e.match(/\\[[\\s\\S]/)?e.replace(/^\\[|\\]$/g,\"\"):e.replace(/\\\\/g,\"\")}function j(e){var t,n,r=e.match(Bt);for(t=0,n=r.length;n>t;t++)r[t]=pn[r[t]]?pn[r[t]]:B(r[t]);return function(i){var s=\"\";for(t=0;n>t;t++)s+=r[t]instanceof Function?r[t].call(i,e):r[t];return s}}function F(e,t){return e.isValid()?(t=I(t,e.localeData()),fn[t]||(fn[t]=j(t)),fn[t](e)):e.localeData().invalidDate()}function I(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(jt.lastIndex=0;r>=0&&jt.test(e);)e=e.replace(jt,n),jt.lastIndex=0,r-=1;return e}function q(e,t){var n,r=t._strict;switch(e){case\"Q\":return Jt;case\"DDDD\":return Qt;case\"YYYY\":case\"GGGG\":case\"gggg\":return r?Gt:qt;case\"Y\":case\"G\":case\"g\":return Zt;case\"YYYYYY\":case\"YYYYY\":case\"GGGGG\":case\"ggggg\":return r?Yt:Rt;case\"S\":if(r)return Jt;case\"SS\":if(r)return Kt;case\"SSS\":if(r)return Qt;case\"DDD\":return It;case\"MMM\":case\"MMMM\":case\"dd\":case\"ddd\":case\"dddd\":return zt;case\"a\":case\"A\":return t._locale._meridiemParse;case\"X\":return Vt;case\"Z\":case\"ZZ\":return Wt;case\"T\":return Xt;case\"SSSS\":return Ut;case\"MM\":case\"DD\":case\"YY\":case\"GG\":case\"gg\":case\"HH\":case\"hh\":case\"mm\":case\"ss\":case\"ww\":case\"WW\":return r?Kt:Ft;case\"M\":case\"D\":case\"d\":case\"H\":case\"h\":case\"m\":case\"s\":case\"w\":case\"W\":case\"e\":case\"E\":return Ft;case\"Do\":return $t;default:return n=new RegExp(K(J(e.replace(\"\\\\\",\"\")),\"i\"))}}function R(e){e=e||\"\";var t=e.match(Wt)||[],n=t[t.length-1]||[],r=(n+\"\").match(sn)||[\"-\",0,0],i=+(60*r[1])+N(r[2]);return\"+\"===r[0]?-i:i}function U(e,t,n){var r,i=n._a;switch(e){case\"Q\":null!=t&&(i[Tt]=3*(N(t)-1));break;case\"M\":case\"MM\":null!=t&&(i[Tt]=N(t)-1);break;case\"MMM\":case\"MMMM\":r=n._locale.monthsParse(t),null!=r?i[Tt]=r:n._pf.invalidMonth=t;break;case\"D\":case\"DD\":null!=t&&(i[Nt]=N(t));break;case\"Do\":null!=t&&(i[Nt]=N(parseInt(t,10)));break;case\"DDD\":case\"DDDD\":null!=t&&(n._dayOfYear=N(t));break;case\"YY\":i[xt]=gt.parseTwoDigitYear(t);break;case\"YYYY\":case\"YYYYY\":case\"YYYYYY\":i[xt]=N(t);break;case\"a\":case\"A\":n._isPm=n._locale.isPM(t);break;case\"H\":case\"HH\":case\"h\":case\"hh\":i[Ct]=N(t);break;case\"m\":case\"mm\":i[kt]=N(t);break;case\"s\":case\"ss\":i[Lt]=N(t);break;case\"S\":case\"SS\":case\"SSS\":case\"SSSS\":i[At]=N(1e3*(\"0.\"+t));break;case\"X\":n._d=new Date(1e3*parseFloat(t));break;case\"Z\":case\"ZZ\":n._useUTC=!0,n._tzm=R(t);break;case\"dd\":case\"ddd\":case\"dddd\":r=n._locale.weekdaysParse(t),null!=r?(n._w=n._w||{},n._w.d=r):n._pf.invalidWeekday=t;break;case\"w\":case\"ww\":case\"W\":case\"WW\":case\"d\":case\"e\":case\"E\":e=e.substr(0,1);case\"gggg\":case\"GGGG\":case\"GGGGG\":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=N(t));break;case\"gg\":case\"GG\":n._w=n._w||{},n._w[e]=gt.parseTwoDigitYear(t)}}function z(e){var n,r,i,s,o,u,a;n=e._w,null!=n.GG||null!=n.W||null!=n.E?(o=1,u=4,r=t(n.GG,e._a[xt],st(gt(),1,4).year),i=t(n.W,1),s=t(n.E,1)):(o=e._locale._week.dow,u=e._locale._week.doy,r=t(n.gg,e._a[xt],st(gt(),o,u).year),i=t(n.w,1),null!=n.d?(s=n.d,o>s&&++i):s=null!=n.e?n.e+o:o),a=ot(r,i,s,u,o),e._a[xt]=a.year,e._dayOfYear=a.dayOfYear}function W(e){var n,r,i,s,o=[];if(!e._d){for(i=V(e),e._w&&null==e._a[Nt]&&null==e._a[Tt]&&z(e),e._dayOfYear&&(s=t(e._a[xt],i[xt]),e._dayOfYear>L(s)&&(e._pf._overflowDayOfYear=!0),r=tt(s,0,e._dayOfYear),e._a[Tt]=r.getUTCMonth(),e._a[Nt]=r.getUTCDate()),n=0;3>n&&null==e._a[n];++n)e._a[n]=o[n]=i[n];for(;7>n;n++)e._a[n]=o[n]=null==e._a[n]?2===n?1:0:e._a[n];e._d=(e._useUTC?tt:et).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm)}}function X(e){var t;e._d||(t=x(e._i),e._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],W(e))}function V(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $(e){if(e._f===gt.ISO_8601)return void G(e);e._a=[],e._pf.empty=!0;var t,n,r,i,s,o=\"\"+e._i,u=o.length,a=0;for(r=I(e._f,e._locale).match(Bt)||[],t=0;t<r.length;t++)i=r[t],n=(o.match(q(i,e))||[])[0],n&&(s=o.substr(0,o.indexOf(n)),s.length>0&&e._pf.unusedInput.push(s),o=o.slice(o.indexOf(n)+n.length),a+=n.length),pn[i]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(i),U(i,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(i);e._pf.charsLeftOver=u-a,o.length>0&&e._pf.unusedInput.push(o),e._isPm&&e._a[Ct]<12&&(e._a[Ct]+=12),e._isPm===!1&&12===e._a[Ct]&&(e._a[Ct]=0),W(e),O(e)}function J(e){return e.replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,r,i){return t||n||r||i})}function K(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function Q(e){var t,r,i,s,o;if(0===e._f.length)return e._pf.invalidFormat=!0,void (e._d=new Date(0/0));for(s=0;s<e._f.length;s++)o=0,t=h({},e),t._pf=n(),t._f=e._f[s],$(t),M(t)&&(o+=t._pf.charsLeftOver,o+=10*t._pf.unusedTokens.length,t._pf.score=o,(null==i||i>o)&&(i=o,r=t));c(e,r||t)}function G(e){var t,n,r=e._i,i=en.exec(r);if(i){for(e._pf.iso=!0,t=0,n=nn.length;n>t;t++)if(nn[t][1].exec(r)){e._f=nn[t][0]+(i[6]||\" \");break}for(t=0,n=rn.length;n>t;t++)if(rn[t][1].exec(r)){e._f+=rn[t][0];break}r.match(Wt)&&(e._f+=\"Z\"),$(e)}else e._isValid=!1}function Y(e){G(e),e._isValid===!1&&(delete e._isValid,gt.createFromInputFallback(e))}function Z(t){var n,r=t._i;r===e?t._d=new Date:w(r)?t._d=new Date(+r):null!==(n=Dt.exec(r))?t._d=new Date(+n[1]):\"string\"==typeof r?Y(t):b(r)?(t._a=r.slice(0),W(t)):\"object\"==typeof r?X(t):\"number\"==typeof r?t._d=new Date(r):gt.createFromInputFallback(t)}function et(e,t,n,r,i,s,o){var u=new Date(e,t,n,r,i,s,o);return 1970>e&&u.setFullYear(e),u}function tt(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function nt(e,t){if(\"string\"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),\"number\"!=typeof e)return null}else e=parseInt(e,10);return e}function rt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function it(e,t,n){var r=gt.duration(e).abs(),i=St(r.as(\"s\")),s=St(r.as(\"m\")),o=St(r.as(\"h\")),u=St(r.as(\"d\")),a=St(r.as(\"M\")),f=St(r.as(\"y\")),l=i<ln.s&&[\"s\",i]||1===s&&[\"m\"]||s<ln.m&&[\"mm\",s]||1===o&&[\"h\"]||o<ln.h&&[\"hh\",o]||1===u&&[\"d\"]||u<ln.d&&[\"dd\",u]||1===a&&[\"M\"]||a<ln.M&&[\"MM\",a]||1===f&&[\"y\"]||[\"yy\",f];return l[2]=t,l[3]=+e>0,l[4]=n,rt.apply({},l)}function st(e,t,n){var r,i=n-t,s=n-e.day();return s>i&&(s-=7),i-7>s&&(s+=7),r=gt(e).add(s,\"d\"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ot(e,t,n,r,i){var s,o,u=tt(e,0,1).getUTCDay();return u=0===u?7:u,n=null!=n?n:i,s=i-u+(u>r?7:0)-(i>u?7:0),o=7*(t-1)+(n-i)+s+1,{year:o>0?e:e-1,dayOfYear:o>0?o:L(e-1)+o}}function ut(t){var n=t._i,r=t._f;return t._locale=t._locale||gt.localeData(t._l),null===n||r===e&&\"\"===n?gt.invalid({nullInput:!0}):(\"string\"==typeof n&&(t._i=n=t._locale.preparse(n)),gt.isMoment(n)?new f(n,!0):(r?b(r)?Q(t):$(t):Z(t),new f(t)))}function at(e,t){var n,r;if(1===t.length&&b(t[0])&&(t=t[0]),!t.length)return gt();for(n=t[0],r=1;r<t.length;++r)t[r][e](n)&&(n=t[r]);return n}function ft(e,t){var n;return\"string\"==typeof t&&(t=e.localeData().monthsParse(t),\"number\"!=typeof t)?e:(n=Math.min(e.date(),C(e.year(),t)),e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+\"Month\"](t,n),e)}function lt(e,t){return e._d[\"get\"+(e._isUTC?\"UTC\":\"\")+t]()}function ct(e,t,n){return\"Month\"===t?ft(e,n):e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n)}function ht(e,t){return function(n){return null!=n?(ct(this,e,n),gt.updateOffset(this,t),this):lt(this,e)}}function pt(e){return 400*e/146097}function dt(e){return 146097*e/400}function vt(e){gt.duration.fn[e]=function(){return this._data[e]}}function mt(e){\"undefined\"==typeof ender&&(yt=Et.moment,Et.moment=e?i(\"Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.\",gt):gt)}for(var gt,yt,bt,wt=\"2.8.1\",Et=\"undefined\"!=typeof global?global:this,St=Math.round,xt=0,Tt=1,Nt=2,Ct=3,kt=4,Lt=5,At=6,Ot={},Mt=[],_t=\"undefined\"!=typeof module&&module.exports,Dt=/^\\/?Date\\((\\-?\\d+)/i,Pt=/(\\-)?(?:(\\d*)\\.)?(\\d+)\\:(\\d+)(?:\\:(\\d+)\\.?(\\d{3})?)?/,Ht=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Bt=/(\\[[^\\[]*\\])|(\\\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,jt=/(\\[[^\\[]*\\])|(\\\\)?(LT|LL?L?L?|l{1,4})/g,Ft=/\\d\\d?/,It=/\\d{1,3}/,qt=/\\d{1,4}/,Rt=/[+\\-]?\\d{1,6}/,Ut=/\\d+/,zt=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i,Wt=/Z|[\\+\\-]\\d\\d:?\\d\\d/gi,Xt=/T/i,Vt=/[\\+\\-]?\\d+(\\.\\d{1,3})?/,$t=/\\d{1,2}/,Jt=/\\d/,Kt=/\\d\\d/,Qt=/\\d{3}/,Gt=/\\d{4}/,Yt=/[+-]?\\d{6}/,Zt=/[+-]?\\d+/,en=/^\\s*(?:[+-]\\d{6}|\\d{4})-(?:(\\d\\d-\\d\\d)|(W\\d\\d$)|(W\\d\\d-\\d)|(\\d\\d\\d))((T| )(\\d\\d(:\\d\\d(:\\d\\d(\\.\\d+)?)?)?)?([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,tn=\"YYYY-MM-DDTHH:mm:ssZ\",nn=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d{2}-\\d{2}/],[\"YYYY-MM-DD\",/\\d{4}-\\d{2}-\\d{2}/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d{2}-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d{2}/],[\"YYYY-DDD\",/\\d{4}-\\d{3}/]],rn=[[\"HH:mm:ss.SSSS\",/(T| )\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss\",/(T| )\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/(T| )\\d\\d:\\d\\d/],[\"HH\",/(T| )\\d\\d/]],sn=/([\\+\\-]|\\d\\d)/gi,on=(\"Date|Hours|Minutes|Seconds|Milliseconds\".split(\"|\"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),un={ms:\"millisecond\",s:\"second\",m:\"minute\",h:\"hour\",d:\"day\",D:\"date\",w:\"week\",W:\"isoWeek\",M:\"month\",Q:\"quarter\",y:\"year\",DDD:\"dayOfYear\",e:\"weekday\",E:\"isoWeekday\",gg:\"weekYear\",GG:\"isoWeekYear\"},an={dayofyear:\"dayOfYear\",isoweekday:\"isoWeekday\",isoweek:\"isoWeek\",weekyear:\"weekYear\",isoweekyear:\"isoWeekYear\"},fn={},ln={s:45,m:45,h:22,d:26,M:11},cn=\"DDD w W M D d\".split(\" \"),hn=\"M D H h m s w W\".split(\" \"),pn={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return d(this.year()%100,2)},YYYY:function(){return d(this.year(),4)},YYYYY:function(){return d(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?\"+\":\"-\";return t+d(Math.abs(e),6)},gg:function(){return d(this.weekYear()%100,2)},gggg:function(){return d(this.weekYear(),4)},ggggg:function(){return d(this.weekYear(),5)},GG:function(){return d(this.isoWeekYear()%100,2)},GGGG:function(){return d(this.isoWeekYear(),4)},GGGGG:function(){return d(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return N(this.milliseconds()/100)},SS:function(){return d(N(this.milliseconds()/10),2)},SSS:function(){return d(this.milliseconds(),3)},SSSS:function(){return d(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t=\"+\";return 0>e&&(e=-e,t=\"-\"),t+d(N(e/60),2)+\":\"+d(N(e)%60,2)},ZZ:function(){var e=-this.zone(),t=\"+\";return 0>e&&(e=-e,t=\"-\"),t+d(N(e/60),2)+d(N(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},dn={},vn=[\"months\",\"monthsShort\",\"weekdays\",\"weekdaysShort\",\"weekdaysMin\"];cn.length;)bt=cn.pop(),pn[bt+\"o\"]=u(pn[bt],bt);for(;hn.length;)bt=hn.pop(),pn[bt+bt]=o(pn[bt],2);pn.DDDD=o(pn.DDD,3),c(a.prototype,{set:function(e){var t,n;for(n in e)t=e[n],\"function\"==typeof t?this[n]=t:this[\"_\"+n]=t},_months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),months:function(e){return this._months[e.month()]},_monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e){var t,n,r;for(this._monthsParse||(this._monthsParse=[]),t=0;12>t;t++)if(this._monthsParse[t]||(n=gt.utc([2e3,t]),r=\"^\"+this.months(n,\"\")+\"|^\"+this.monthsShort(n,\"\"),this._monthsParse[t]=new RegExp(r.replace(\".\",\"\"),\"i\")),this._monthsParse[t].test(e))return t},_weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=gt([2e3,1]).day(t),r=\"^\"+this.weekdays(n,\"\")+\"|^\"+this.weekdaysShort(n,\"\")+\"|^\"+this.weekdaysMin(n,\"\"),this._weekdaysParse[t]=new RegExp(r.replace(\".\",\"\"),\"i\")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY LT\",LLLL:\"dddd, MMMM D, YYYY LT\"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return\"p\"===(e+\"\").toLowerCase().charAt(0)},_meridiemParse:/[ap]\\.?m?\\.?/i,meridiem:function(e,t,n){return e>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"},_calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},calendar:function(e,t){var n=this._calendar[e];return\"function\"==typeof n?n.apply(t):n},_relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},relativeTime:function(e,t,n,r){var i=this._relativeTime[n];return\"function\"==typeof i?i(e,t,n,r):i.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?\"future\":\"past\"];return\"function\"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace(\"%d\",e)},_ordinal:\"%d\",preparse:function(e){return e},postformat:function(e){return e},week:function(e){return st(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:\"Invalid date\",invalidDate:function(){return this._invalidDate}}),gt=function(t,r,i,s){var o;return\"boolean\"==typeof i&&(s=i,i=e),o={},o._isAMomentObject=!0,o._i=t,o._f=r,o._l=i,o._strict=s,o._isUTC=!1,o._pf=n(),ut(o)},gt.suppressDeprecationWarnings=!1,gt.createFromInputFallback=i(\"moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\",function(e){e._d=new Date(e._i)}),gt.min=function(){var e=[].slice.call(arguments,0);return at(\"isBefore\",e)},gt.max=function(){var e=[].slice.call(arguments,0);return at(\"isAfter\",e)},gt.utc=function(t,r,i,s){var o;return\"boolean\"==typeof i&&(s=i,i=e),o={},o._isAMomentObject=!0,o._useUTC=!0,o._isUTC=!0,o._l=i,o._i=t,o._f=r,o._strict=s,o._pf=n(),ut(o).utc()},gt.unix=function(e){return gt(1e3*e)},gt.duration=function(e,t){var n,r,i,s,o=e,u=null;return gt.isDuration(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:\"number\"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(u=Pt.exec(e))?(n=\"-\"===u[1]?-1:1,o={y:0,d:N(u[Nt])*n,h:N(u[Ct])*n,m:N(u[kt])*n,s:N(u[Lt])*n,ms:N(u[At])*n}):(u=Ht.exec(e))?(n=\"-\"===u[1]?-1:1,i=function(e){var t=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(t)?0:t)*n},o={y:i(u[2]),M:i(u[3]),d:i(u[4]),h:i(u[5]),m:i(u[6]),s:i(u[7]),w:i(u[8])}):\"object\"==typeof o&&(\"from\"in o||\"to\"in o)&&(s=m(gt(o.from),gt(o.to)),o={},o.ms=s.milliseconds,o.M=s.months),r=new l(o),gt.isDuration(e)&&e.hasOwnProperty(\"_locale\")&&(r._locale=e._locale),r},gt.version=wt,gt.defaultFormat=tn,gt.ISO_8601=function(){},gt.momentProperties=Mt,gt.updateOffset=function(){},gt.relativeTimeThreshold=function(t,n){return ln[t]===e?!1:n===e?ln[t]:(ln[t]=n,!0)},gt.lang=i(\"moment.lang is deprecated. Use moment.locale instead.\",function(e,t){return gt.locale(e,t)}),gt.locale=function(e,t){var n;return e&&(n=\"undefined\"!=typeof t?gt.defineLocale(e,t):gt.localeData(e),n&&(gt.duration._locale=gt._locale=n)),gt._locale._abbr},gt.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ot[e]||(Ot[e]=new a),Ot[e].set(t),gt.locale(e),Ot[e]):(delete Ot[e],null)},gt.langData=i(\"moment.langData is deprecated. Use moment.localeData instead.\",function(e){return gt.localeData(e)}),gt.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gt._locale;if(!b(e)){if(t=P(e))return t;e=[e]}return D(e)},gt.isMoment=function(e){return e instanceof f||null!=e&&e.hasOwnProperty(\"_isAMomentObject\")},gt.isDuration=function(e){return e instanceof l};for(bt=vn.length-1;bt>=0;--bt)T(vn[bt]);gt.normalizeUnits=function(e){return S(e)},gt.invalid=function(e){var t=gt.utc(0/0);return null!=e?c(t._pf,e):t._pf.userInvalidated=!0,t},gt.parseZone=function(){return gt.apply(null,arguments).parseZone()},gt.parseTwoDigitYear=function(e){return N(e)+(N(e)>68?1900:2e3)},c(gt.fn=f.prototype,{clone:function(){return gt(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=gt(this).utc();return 0<e.year()&&e.year()<=9999?F(e,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):F(e,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return M(this)},isDSTShifted:function(){return this._a?this.isValid()&&E(this._a,(this._isUTC?gt.utc(this._a):gt(this._a)).toArray())>0:!1},parsingFlags:function(){return c({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._d.getTimezoneOffset(),\"m\")),this},format:function(e){var t=F(this,e||gt.defaultFormat);return this.localeData().postformat(t)},add:g(1,\"add\"),subtract:g(-1,\"subtract\"),diff:function(e,t,n){var r,i,s=H(e,this),o=6e4*(this.zone()-s.zone());return t=S(t),\"year\"===t||\"month\"===t?(r=432e5*(this.daysInMonth()+s.daysInMonth()),i=12*(this.year()-s.year())+(this.month()-s.month()),i+=(this-gt(this).startOf(\"month\")-(s-gt(s).startOf(\"month\")))/r,i-=6e4*(this.zone()-gt(this).startOf(\"month\").zone()-(s.zone()-gt(s).startOf(\"month\").zone()))/r,\"year\"===t&&(i/=12)):(r=this-s,i=\"second\"===t?r/1e3:\"minute\"===t?r/6e4:\"hour\"===t?r/36e5:\"day\"===t?(r-o)/864e5:\"week\"===t?(r-o)/6048e5:r),n?i:p(i)},from:function(e,t){return gt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(gt(),e)},calendar:function(e){var t=e||gt(),n=H(t,this).startOf(\"day\"),r=this.diff(n,\"days\",!0),i=-6>r?\"sameElse\":-1>r?\"lastWeek\":0>r?\"lastDay\":1>r?\"sameDay\":2>r?\"nextDay\":7>r?\"nextWeek\":\"sameElse\";return this.format(this.localeData().calendar(i,this))},isLeapYear:function(){return A(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=nt(e,this.localeData()),this.add(e-t,\"d\")):t},month:ht(\"Month\",!0),startOf:function(e){switch(e=S(e)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===e?this.weekday(0):\"isoWeek\"===e&&this.isoWeekday(1),\"quarter\"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(e){return e=S(e),this.startOf(e).add(1,\"isoWeek\"===e?\"week\":e).subtract(1,\"ms\")},isAfter:function(e,t){return t=\"undefined\"!=typeof t?t:\"millisecond\",+this.clone().startOf(t)>+gt(e).startOf(t)},isBefore:function(e,t){return t=\"undefined\"!=typeof t?t:\"millisecond\",+this.clone().startOf(t)<+gt(e).startOf(t)},isSame:function(e,t){return t=t||\"ms\",+this.clone().startOf(t)===+H(e,this).startOf(t)},min:i(\"moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548\",function(e){return e=gt.apply(null,arguments),this>e?this:e}),max:i(\"moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548\",function(e){return e=gt.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,r=this._offset||0;return null==e?this._isUTC?r:this._d.getTimezoneOffset():(\"string\"==typeof e&&(e=R(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._d.getTimezoneOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,\"m\"),r!==e&&(!t||this._changeInProgress?y(this,gt.duration(r-e,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,gt.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?\"UTC\":\"\"},zoneName:function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},parseZone:function(){return this._tzm?this.zone(this._tzm):\"string\"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?gt(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return C(this.year(),this.month())},dayOfYear:function(e){var t=St((gt(this).startOf(\"day\")-gt(this).startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=st(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,\"y\")},isoWeekYear:function(e){var t=st(this,1,4).year;return null==e?t:this.add(e-t,\"y\")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\")},isoWeek:function(e){var t=st(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return k(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},get:function(e){return e=S(e),this[e]()},set:function(e,t){return e=S(e),\"function\"==typeof this[e]&&this[e](t),this},locale:function(t){return t===e?this._locale._abbr:(this._locale=gt.localeData(t),this)},lang:i(\"moment().lang() is deprecated. Use moment().localeData() instead.\",function(t){return t===e?this.localeData():(this._locale=gt.localeData(t),this)}),localeData:function(){return this._locale}}),gt.fn.millisecond=gt.fn.milliseconds=ht(\"Milliseconds\",!1),gt.fn.second=gt.fn.seconds=ht(\"Seconds\",!1),gt.fn.minute=gt.fn.minutes=ht(\"Minutes\",!1),gt.fn.hour=gt.fn.hours=ht(\"Hours\",!0),gt.fn.date=ht(\"Date\",!0),gt.fn.dates=i(\"dates accessor is deprecated. Use date instead.\",ht(\"Date\",!0)),gt.fn.year=ht(\"FullYear\",!0),gt.fn.years=i(\"years accessor is deprecated. Use year instead.\",ht(\"FullYear\",!0)),gt.fn.days=gt.fn.day,gt.fn.months=gt.fn.month,gt.fn.weeks=gt.fn.week,gt.fn.isoWeeks=gt.fn.isoWeek,gt.fn.quarters=gt.fn.quarter,gt.fn.toJSON=gt.fn.toISOString,c(gt.duration.fn=l.prototype,{_bubble:function(){var e,t,n,r=this._milliseconds,i=this._days,s=this._months,o=this._data,u=0;o.milliseconds=r%1e3,e=p(r/1e3),o.seconds=e%60,t=p(e/60),o.minutes=t%60,n=p(t/60),o.hours=n%24,i+=p(n/24),u=p(pt(i)),i-=p(dt(u)),s+=p(i/30),i%=30,u+=p(s/12),s%=12,o.days=i,o.months=s,o.years=u},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return p(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*N(this._months/12)},humanize:function(e){var t=it(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=gt.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=gt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=S(e),this[e.toLowerCase()+\"s\"]()},as:function(e){var t,n;if(e=S(e),t=this._days+this._milliseconds/864e5,\"month\"===e||\"year\"===e)return n=this._months+12*pt(t),\"month\"===e?n:n/12;switch(t+=dt(this._months/12),e){case\"week\":return t/7;case\"day\":return t;case\"hour\":return 24*t;case\"minute\":return 24*t*60;case\"second\":return 24*t*60*60;case\"millisecond\":return 24*t*60*60*1e3;default:throw new Error(\"Unknown unit \"+e)}},lang:gt.fn.lang,locale:gt.fn.locale,toIsoString:i(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),i=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?\"-\":\"\")+\"P\"+(e?e+\"Y\":\"\")+(t?t+\"M\":\"\")+(n?n+\"D\":\"\")+(r||i||s?\"T\":\"\")+(r?r+\"H\":\"\")+(i?i+\"M\":\"\")+(s?s+\"S\":\"\"):\"P0D\"},localeData:function(){return this._locale}});for(bt in on)on.hasOwnProperty(bt)&&vt(bt.toLowerCase());gt.duration.fn.asMilliseconds=function(){return this.as(\"ms\")},gt.duration.fn.asSeconds=function(){return this.as(\"s\")},gt.duration.fn.asMinutes=function(){return this.as(\"m\")},gt.duration.fn.asHours=function(){return this.as(\"h\")},gt.duration.fn.asDays=function(){return this.as(\"d\")},gt.duration.fn.asWeeks=function(){return this.as(\"weeks\")},gt.duration.fn.asMonths=function(){return this.as(\"M\")},gt.duration.fn.asYears=function(){return this.as(\"y\")},gt.locale(\"en\",{ordinal:function(e){var t=e%10,n=1===N(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\";return e+n}}),_t?module.exports=gt:\"function\"==typeof define&&define.amd?(define(\"moment\",[\"require\",\"exports\",\"module\"],function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(Et.moment=yt),gt}),mt(!0)):mt()}).call(this),function(e){function i(n){function v(){n?s.removeData(n):c&&delete t[c]}function m(){o.id=setTimeout(function(){o.fn()},h)}var i=this,s,o={},u=n?e.fn:e,f=arguments,l=4,c=f[1],h=f[2],p=f[3];typeof c!=\"string\"&&(l--,c=n=0,h=f[1],p=f[2]),n?(s=i.eq(0),s.data(n,o=s.data(n)||{})):c&&(o=t[c]||(t[c]={})),o.id&&clearTimeout(o.id),delete o.id;if(p)o.fn=function(e){typeof p==\"string\"&&(p=u[p]),p.apply(i,r.call(f,l))===!0&&!e?m():v()},m();else{if(o.fn)return h===undefined?v():o.fn(h===!1),!0;v()}}var t={},n=\"doTimeout\",r=Array.prototype.slice;e[n]=function(){return i.apply(window,[0].concat(r.call(arguments)))},e.fn[n]=function(){var e=r.call(arguments),t=i.apply(this,[n+e[0]].concat(e));return typeof e[0]==\"number\"||typeof e[1]==\"number\"?this:t}}(jQuery),define(\"doTimeout\",[\"jquery\"],function(e){return function(){return e.doTimeout}}(this));var Handlebars=function(){var e=function(){function t(e){this.string=e}var e;return t.prototype.toString=function(){return\"\"+this.string},e=t,e}(),t=function(e){function o(e){return r[e]||\"&amp;\"}function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function c(e){return e instanceof n?e.toString():!e&&e!==0?\"\":(e=\"\"+e,s.test(e)?e.replace(i,o):e)}function h(e){return!e&&e!==0?!0:l(e)&&e.length===0?!0:!1}var t={},n=e,r={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\",\"`\":\"&#x60;\"},i=/[&<>\"'`]/g,s=/[&<>\"'`]/;t.extend=u;var a=Object.prototype.toString;t.toString=a;var f=function(e){return typeof e==\"function\"};f(/x/)&&(f=function(e){return typeof e==\"function\"&&a.call(e)===\"[object Function]\"});var f;t.isFunction=f;var l=Array.isArray||function(e){return e&&typeof e==\"object\"?a.call(e)===\"[object Array]\":!1};return t.isArray=l,t.escapeExpression=c,t.isEmpty=h,t}(e),n=function(){function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=\" - \"+r+\":\"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s<t.length;s++)this[t[s]]=i[t[s]];r&&(this.lineNumber=r,this.column=n.firstColumn)}var e,t=[\"description\",\"fileName\",\"lineNumber\",\"message\",\"name\",\"number\",\"stack\"];return n.prototype=new Error,e=n,e}(),r=function(e,t){function h(e,t){this.helpers=e||{},this.partials=t||{},p(this)}function p(e){e.registerHelper(\"helperMissing\",function(e){if(arguments.length===2)return undefined;throw new i(\"Missing helper: '\"+e+\"'\")}),e.registerHelper(\"blockHelperMissing\",function(t,n){var r=n.inverse||function(){},i=n.fn;return f(t)&&(t=t.call(this)),t===!0?i(this):t===!1||t==null?r(this):a(t)?t.length>0?e.helpers.each(t,n):r(this):i(t)}),e.registerHelper(\"each\",function(e,t){var n=t.fn,r=t.inverse,i=0,s=\"\",o;f(e)&&(e=e.call(this)),t.data&&(o=m(t.data));if(e&&typeof e==\"object\")if(a(e))for(var u=e.length;i<u;i++)o&&(o.index=i,o.first=i===0,o.last=i===e.length-1),s+=n(e[i],{data:o});else for(var l in e)e.hasOwnProperty(l)&&(o&&(o.key=l,o.index=i,o.first=i===0),s+=n(e[l],{data:o}),i++);return i===0&&(s=r(this)),s}),e.registerHelper(\"if\",function(e,t){return f(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper(\"unless\",function(t,n){return e.helpers[\"if\"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),e.registerHelper(\"with\",function(e,t){f(e)&&(e=e.call(this));if(!r.isEmpty(e))return t.fn(e)}),e.registerHelper(\"log\",function(t,n){var r=n.data&&n.data.level!=null?parseInt(n.data.level,10):1;e.log(r,t)})}function v(e,t){d.log(e,t)}var n={},r=e,i=t,s=\"1.3.0\";n.VERSION=s;var o=4;n.COMPILER_REVISION=o;var u={1:\"<= 1.0.rc.2\",2:\"== 1.0.0-rc.3\",3:\"== 1.0.0-rc.4\",4:\">= 1.0.0\"};n.REVISION_CHANGES=u;var a=r.isArray,f=r.isFunction,l=r.toString,c=\"[object Object]\";n.HandlebarsEnvironment=h,h.prototype={constructor:h,logger:d,log:v,registerHelper:function(e,t,n){if(l.call(e)===c){if(n||t)throw new i(\"Arg not supported with multiple helpers\");r.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){l.call(e)===c?r.extend(this.partials,e):this.partials[e]=t}};var d={methodMap:{0:\"debug\",1:\"info\",2:\"warn\",3:\"error\"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level<=e){var n=d.methodMap[e];typeof console!=\"undefined\"&&console[n]&&console[n].call(console,t)}}};n.logger=d,n.log=v;var m=function(e){var t={};return r.extend(t,e),t};return n.createFrame=m,n}(t,n),i=function(e,t,n){function a(e){var t=e&&e[0]||1,n=o;if(t!==n){if(t<n){var r=u[n],i=u[t];throw new s(\"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (\"+r+\") or downgrade your runtime to an older version (\"+i+\").\")}throw new s(\"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (\"+e[1]+\").\")}}function f(e,t){if(!t)throw new s(\"No environment passed to template\");var n=function(e,n,r,i,o,u){var a=t.VM.invokePartial.apply(this,arguments);if(a!=null)return a;if(t.compile){var f={helpers:i,partials:o,data:u};return o[n]=t.compile(e,{data:u!==undefined},t),o[n](r,f)}throw new s(\"The partial \"+n+\" could not be compiled when running in runtime-only mode\")},r={escapeExpression:i.escapeExpression,invokePartial:n,programs:[],program:function(e,t,n){var r=this.programs[e];return n?r=c(e,t,n):r||(r=this.programs[e]=c(e,t)),r},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n={},i.extend(n,t),i.extend(n,e)),n},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(n,i){i=i||{};var s=i.partial?i:t,o,u;i.partial||(o=i.helpers,u=i.partials);var a=e.call(r,s,n,o,u,i.data);return i.partial||t.VM.checkRevision(r.compilerInfo),a}}function l(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=function(e,i){return i=i||{},t.apply(this,[e,i.data||n].concat(r))};return i.program=e,i.depth=r.length,i}function c(e,t,n){var r=function(e,r){return r=r||{},t(e,r.data||n)};return r.program=e,r.depth=0,r}function h(e,t,n,r,i,o){var u={partial:!0,helpers:r,partials:i,data:o};if(e===undefined)throw new s(\"The partial \"+t+\" could not be found\");if(e instanceof Function)return e(n,u)}function p(){return\"\"}var r={},i=e,s=t,o=n.COMPILER_REVISION,u=n.REVISION_CHANGES;return r.checkRevision=a,r.template=f,r.programWithDepth=l,r.program=c,r.invokePartial=h,r.noop=p,r}(t,n,r),s=function(e,t,n,r,i){var s,o=e,u=t,a=n,f=r,l=i,c=function(){var e=new o.HandlebarsEnvironment;return f.extend(e,o),e.SafeString=u,e.Exception=a,e.Utils=f,e.VM=l,e.template=function(t){return l.template(t,e)},e},h=c();return h.create=c,s=h,s}(r,e,n,t,i),o=function(e){function r(e){e=e||{},this.firstLine=e.first_line,this.firstColumn=e.first_column,this.lastColumn=e.last_column,this.lastLine=e.last_line}var t,n=e,i={ProgramNode:function(e,t,n,s){var o,u;arguments.length===3?(s=n,n=null):arguments.length===2&&(s=t,t=null),r.call(this,s),this.type=\"program\",this.statements=e,this.strip={},n?(u=n[0],u?(o={first_line:u.firstLine,last_line:u.lastLine,last_column:u.lastColumn,first_column:u.firstColumn},this.inverse=new i.ProgramNode(n,t,o)):this.inverse=new i.ProgramNode(n,t),this.strip.right=t.left):t&&(this.strip.left=t.right)},MustacheNode:function(e,t,n,s,o){r.call(this,o),this.type=\"mustache\",this.strip=s;if(n!=null&&n.charAt){var u=n.charAt(3)||n.charAt(2);this.escaped=u!==\"{\"&&u!==\"&\"}else this.escaped=!!n;e instanceof i.SexprNode?this.sexpr=e:this.sexpr=new i.SexprNode(e,t),this.sexpr.isRoot=!0,this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(e,t,n){r.call(this,n),this.type=\"sexpr\",this.hash=t;var i=this.id=e[0],s=this.params=e.slice(1),o=this.eligibleHelper=i.isSimple;this.isHelper=o&&(s.length||t)},PartialNode:function(e,t,n,i){r.call(this,i),this.type=\"partial\",this.partialName=e,this.context=t,this.strip=n},BlockNode:function(e,t,i,s,o){r.call(this,o);if(e.sexpr.id.original!==s.path.original)throw new n(e.sexpr.id.original+\" doesn't match \"+s.path.original,this);this.type=\"block\",this.mustache=e,this.program=t,this.inverse=i,this.strip={left:e.strip.left,right:s.strip.right},(t||i).strip.left=e.strip.right,(i||t).strip.right=s.strip.left,i&&!t&&(this.isInverse=!0)},ContentNode:function(e,t){r.call(this,t),this.type=\"content\",this.string=e},HashNode:function(e,t){r.call(this,t),this.type=\"hash\",this.pairs=e},IdNode:function(e,t){r.call(this,t),this.type=\"ID\";var i=\"\",s=[],o=0;for(var u=0,a=e.length;u<a;u++){var f=e[u].part;i+=(e[u].separator||\"\")+f;if(f===\"..\"||f===\".\"||f===\"this\"){if(s.length>0)throw new n(\"Invalid path: \"+i,this);f===\"..\"?o++:this.isScoped=!0}else s.push(f)}this.original=i,this.parts=s,this.string=s.join(\".\"),this.depth=o,this.isSimple=e.length===1&&!this.isScoped&&o===0,this.stringModeValue=this.string},PartialNameNode:function(e,t){r.call(this,t),this.type=\"PARTIAL_NAME\",this.name=e.original},DataNode:function(e,t){r.call(this,t),this.type=\"DATA\",this.id=e},StringNode:function(e,t){r.call(this,t),this.type=\"STRING\",this.original=this.string=this.stringModeValue=e},IntegerNode:function(e,t){r.call(this,t),this.type=\"INTEGER\",this.original=this.integer=e,this.stringModeValue=Number(e)},BooleanNode:function(e,t){r.call(this,t),this.type=\"BOOLEAN\",this.bool=e,this.stringModeValue=e===\"true\"},CommentNode:function(e,t){r.call(this,t),this.type=\"comment\",this.comment=e}};return t=i,t}(n),u=function(){var e,t=function(){function t(e,t){return{left:e.charAt(2)===\"~\",right:t.charAt(0)===\"~\"||t.charAt(1)===\"~\"}}function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,sexpr:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,sexpr_repetition0:28,sexpr_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,OPEN_SEXPR:35,CLOSE_SEXPR:36,hash:37,hash_repetition_plus0:38,hashSegment:39,ID:40,EQUALS:41,DATA:42,pathSegments:43,SEP:44,$accept:0,$end:1},terminals_:{2:\"error\",5:\"EOF\",14:\"CONTENT\",15:\"COMMENT\",16:\"OPEN_BLOCK\",18:\"CLOSE\",19:\"OPEN_INVERSE\",20:\"OPEN_ENDBLOCK\",22:\"OPEN\",23:\"OPEN_UNESCAPED\",24:\"CLOSE_UNESCAPED\",25:\"OPEN_PARTIAL\",32:\"STRING\",33:\"INTEGER\",34:\"BOOLEAN\",35:\"OPEN_SEXPR\",36:\"CLOSE_SEXPR\",40:\"ID\",41:\"EQUALS\",42:\"DATA\",44:\"SEP\"},productions_:[0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,3],[37,1],[39,3],[26,1],[26,1],[26,1],[30,2],[21,1],[43,3],[43,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[38,1],[38,2]],performAction:function(n,r,i,s,o,u,a){var f=u.length-1;switch(o){case 1:return new s.ProgramNode(u[f-1],this._$);case 2:return new s.ProgramNode([],this._$);case 3:this.$=new s.ProgramNode([],u[f-1],u[f],this._$);break;case 4:this.$=new s.ProgramNode(u[f-2],u[f-1],u[f],this._$);break;case 5:this.$=new s.ProgramNode(u[f-1],u[f],[],this._$);break;case 6:this.$=new s.ProgramNode(u[f],this._$);break;case 7:this.$=new s.ProgramNode([],this._$);break;case 8:this.$=new s.ProgramNode([],this._$);break;case 9:this.$=[u[f]];break;case 10:u[f-1].push(u[f]),this.$=u[f-1];break;case 11:this.$=new s.BlockNode(u[f-2],u[f-1].inverse,u[f-1],u[f],this._$);break;case 12:this.$=new s.BlockNode(u[f-2],u[f-1],u[f-1].inverse,u[f],this._$);break;case 13:this.$=u[f];break;case 14:this.$=u[f];break;case 15:this.$=new s.ContentNode(u[f],this._$);break;case 16:this.$=new s.CommentNode(u[f],this._$);break;case 17:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 18:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 19:this.$={path:u[f-1],strip:t(u[f-2],u[f])};break;case 20:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 21:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 22:this.$=new s.PartialNode(u[f-2],u[f-1],t(u[f-3],u[f]),this._$);break;case 23:this.$=t(u[f-1],u[f]);break;case 24:this.$=new s.SexprNode([u[f-2]].concat(u[f-1]),u[f],this._$);break;case 25:this.$=new s.SexprNode([u[f]],null,this._$);break;case 26:this.$=u[f];break;case 27:this.$=new s.StringNode(u[f],this._$);break;case 28:this.$=new s.IntegerNode(u[f],this._$);break;case 29:this.$=new s.BooleanNode(u[f],this._$);break;case 30:this.$=u[f];break;case 31:u[f-1].isHelper=!0,this.$=u[f-1];break;case 32:this.$=new s.HashNode(u[f],this._$);break;case 33:this.$=[u[f-2],u[f]];break;case 34:this.$=new s.PartialNameNode(u[f],this._$);break;case 35:this.$=new s.PartialNameNode(new s.StringNode(u[f],this._$),this._$);break;case 36:this.$=new s.PartialNameNode(new s.IntegerNode(u[f],this._$));break;case 37:this.$=new s.DataNode(u[f],this._$);break;case 38:this.$=new s.IdNode(u[f],this._$);break;case 39:u[f-2].push({part:u[f],separator:u[f-1]}),this.$=u[f-2];break;case 40:this.$=[{part:u[f]}];break;case 43:this.$=[];break;case 44:u[f-1].push(u[f]);break;case 47:this.$=[u[f]];break;case 48:u[f-1].push(u[f])}},table:[{3:1,4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:29,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:30,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:31,21:24,30:25,40:[1,28],42:[1,27],43:26},{21:33,26:32,32:[1,34],33:[1,35],40:[1,28],43:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,40:[1,28],42:[1,27],43:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,43],24:[2,43],28:43,32:[2,43],33:[2,43],34:[2,43],35:[2,43],36:[2,43],40:[2,43],42:[2,43]},{18:[2,25],24:[2,25],36:[2,25]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],35:[2,38],36:[2,38],40:[2,38],42:[2,38],44:[1,44]},{21:45,40:[1,28],43:26},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],42:[2,40],44:[2,40]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,41],21:50,27:49,40:[1,28],43:26},{18:[2,34],40:[2,34]},{18:[2,35],40:[2,35]},{18:[2,36],40:[2,36]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,40:[1,28],43:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,45],21:56,24:[2,45],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:[1,61],36:[2,45],37:55,38:62,39:63,40:[1,64],42:[1,27],43:26},{40:[1,65]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],35:[2,37],36:[2,37],40:[2,37],42:[2,37]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,66]},{18:[2,42]},{18:[1,67]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24],36:[2,24]},{18:[2,44],24:[2,44],32:[2,44],33:[2,44],34:[2,44],35:[2,44],36:[2,44],40:[2,44],42:[2,44]},{18:[2,46],24:[2,46],36:[2,46]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],35:[2,26],36:[2,26],40:[2,26],42:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],35:[2,27],36:[2,27],40:[2,27],42:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],35:[2,28],36:[2,28],40:[2,28],42:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],35:[2,29],36:[2,29],40:[2,29],42:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],35:[2,30],36:[2,30],40:[2,30],42:[2,30]},{17:68,21:24,30:25,40:[1,28],42:[1,27],43:26},{18:[2,32],24:[2,32],36:[2,32],39:69,40:[1,70]},{18:[2,47],24:[2,47],36:[2,47],40:[2,47]},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],41:[1,71],42:[2,40],44:[2,40]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],35:[2,39],36:[2,39],40:[2,39],42:[2,39],44:[2,39]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{36:[1,72]},{18:[2,48],24:[2,48],36:[2,48],40:[2,48]},{41:[1,71]},{21:56,30:60,31:73,32:[1,57],33:[1,58],34:[1,59],35:[1,61],40:[1,28],42:[1,27],43:26},{18:[2,31],24:[2,31],32:[2,31],33:[2,31],34:[2,31],35:[2,31],36:[2,31],40:[2,31],42:[2,31]},{18:[2,33],24:[2,33],36:[2,33],40:[2,33]}],defaultActions:{3:[2,2],16:[2,1],50:[2,42]},parseError:function(t,n){throw new Error(t)},parse:function(t){function v(e){r.length=r.length-2*e,i.length=i.length-e,s.length=s.length-e}function m(){var e;return e=n.lexer.lex()||1,typeof e!=\"number\"&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],s=[],o=this.table,u=\"\",a=0,f=0,l=0,c=2,h=1;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc==\"undefined\"&&(this.lexer.yylloc={});var p=this.lexer.yylloc;s.push(p);var d=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError==\"function\"&&(this.parseError=this.yy.parseError);var g,y,b,w,E,S,x={},T,N,C,k;for(;;){b=r[r.length-1];if(this.defaultActions[b])w=this.defaultActions[b];else{if(g===null||typeof g==\"undefined\")g=m();w=o[b]&&o[b][g]}if(typeof w==\"undefined\"||!w.length||!w[0]){var L=\"\";if(!l){k=[];for(T in o[b])this.terminals_[T]&&T>2&&k.push(\"'\"+this.terminals_[T]+\"'\");this.lexer.showPosition?L=\"Parse error on line \"+(a+1)+\":\\n\"+this.lexer.showPosition()+\"\\nExpecting \"+k.join(\", \")+\", got '\"+(this.terminals_[g]||g)+\"'\":L=\"Parse error on line \"+(a+1)+\": Unexpected \"+(g==1?\"end of input\":\"'\"+(this.terminals_[g]||g)+\"'\"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[g]||g,line:this.lexer.yylineno,loc:p,expected:k})}}if(w[0]instanceof Array&&w.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+g);switch(w[0]){case 1:r.push(g),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(w[1]),g=null,y?(g=y,y=null):(f=this.lexer.yyleng,u=this.lexer.yytext,a=this.lexer.yylineno,p=this.lexer.yylloc,l>0&&l--);break;case 2:N=this.productions_[w[1]][1],x.$=i[i.length-N],x._$={first_line:s[s.length-(N||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(N||1)].first_column,last_column:s[s.length-1].last_column},d&&(x._$.range=[s[s.length-(N||1)].range[0],s[s.length-1].range[1]]),S=this.performAction.call(x,u,f,a,this.yy,w[1],i,s);if(typeof S!=\"undefined\")return S;N&&(r=r.slice(0,-1*N*2),i=i.slice(0,-1*N),s=s.slice(0,-1*N)),r.push(this.productions_[w[1]][0]),i.push(x.$),s.push(x._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\\r\\n?|\\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\\r\\n?|\\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?\"...\":\"\")+e.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var e=this.pastInput(),t=(new Array(e.length+1)).join(\"-\");return e+this.upcomingInput()+\"\\n\"+t+\"^\"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r,i,s;this._more||(this.yytext=\"\",this.match=\"\");var o=this._currentRules();for(var u=0;u<o.length;u++){n=this._input.match(this.rules[o[u]]);if(n&&(!t||n[0].length>t[0].length)){t=n,r=u;if(!this.options.flex)break}}if(t){s=t[0].match(/(?:\\r\\n?|\\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1);if(e)return e;return}return this._input===\"\"?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return typeof t!=\"undefined\"?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return e.options={},e.performAction=function(t,n,r,i){function s(e,t){return n.yytext=n.yytext.substr(e,n.yyleng-t)}var o=i;switch(r){case 0:n.yytext.slice(-2)===\"\\\\\\\\\"?(s(0,1),this.begin(\"mu\")):n.yytext.slice(-1)===\"\\\\\"?(s(0,1),this.begin(\"emu\")):this.begin(\"mu\");if(n.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return s(0,4),this.popState(),15;case 4:return 35;case 5:return 36;case 6:return 25;case 7:return 16;case 8:return 20;case 9:return 19;case 10:return 19;case 11:return 23;case 12:return 22;case 13:this.popState(),this.begin(\"com\");break;case 14:return s(3,5),this.popState(),15;case 15:return 22;case 16:return 41;case 17:return 40;case 18:return 40;case 19:return 44;case 20:break;case 21:return this.popState(),24;case 22:return this.popState(),18;case 23:return n.yytext=s(1,2).replace(/\\\\\"/g,'\"'),32;case 24:return n.yytext=s(1,2).replace(/\\\\'/g,\"'\"),32;case 25:return 42;case 26:return 34;case 27:return 34;case 28:return 33;case 29:return 40;case 30:return n.yytext=s(1,2),40;case 31:return\"INVALID\";case 32:return 5}},e.rules=[/^(?:[^\\x00]*?(?=(\\{\\{)))/,/^(?:[^\\x00]+)/,/^(?:[^\\x00]{2,}?(?=(\\{\\{|\\\\\\{\\{|\\\\\\\\\\{\\{|$)))/,/^(?:[\\s\\S]*?--\\}\\})/,/^(?:\\()/,/^(?:\\))/,/^(?:\\{\\{(~)?>)/,/^(?:\\{\\{(~)?#)/,/^(?:\\{\\{(~)?\\/)/,/^(?:\\{\\{(~)?\\^)/,/^(?:\\{\\{(~)?\\s*else\\b)/,/^(?:\\{\\{(~)?\\{)/,/^(?:\\{\\{(~)?&)/,/^(?:\\{\\{!--)/,/^(?:\\{\\{![\\s\\S]*?\\}\\})/,/^(?:\\{\\{(~)?)/,/^(?:=)/,/^(?:\\.\\.)/,/^(?:\\.(?=([=~}\\s\\/.)])))/,/^(?:[\\/.])/,/^(?:\\s+)/,/^(?:\\}(~)?\\}\\})/,/^(?:(~)?\\}\\})/,/^(?:\"(\\\\[\"]|[^\"])*\")/,/^(?:'(\\\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\\s)])))/,/^(?:false(?=([~}\\s)])))/,/^(?:-?[0-9]+(?=([~}\\s)])))/,/^(?:([^\\s!\"#%-,\\.\\/;->@\\[-\\^`\\{-~]+(?=([=~}\\s\\/.)]))))/,/^(?:\\[[^\\]]*\\])/,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[3],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}},e}();return e.lexer=n,r.prototype=e,e.Parser=r,new r}();return e=t,e}(),a=function(e,t){function s(e){return e.constructor===i.ProgramNode?e:(r.yy=i,r.parse(e))}var n={},r=e,i=t;return n.parser=r,n.parse=s,n}(u,o),f=function(e){function r(){}function i(e,t,r){if(e==null||typeof e!=\"string\"&&e.constructor!==r.AST.ProgramNode)throw new n(\"You must pass a string or Handlebars AST to Handlebars.precompile. You passed \"+e);t=t||{},\"data\"in t||(t.data=!0);var i=r.parse(e),s=(new r.Compiler).compile(i,t);return(new r.JavaScriptCompiler).compile(s,t)}function s(e,t,r){function s(){var n=r.parse(e),i=(new r.Compiler).compile(n,t),s=(new r.JavaScriptCompiler).compile(i,t,undefined,!0);return r.template(s)}if(e==null||typeof e!=\"string\"&&e.constructor!==r.AST.ProgramNode)throw new n(\"You must pass a string or Handlebars AST to Handlebars.compile. You passed \"+e);t=t||{},\"data\"in t||(t.data=!0);var i;return function(e,t){return i||(i=s()),i.call(this,e,t)}}var t={},n=e;return t.Compiler=r,r.prototype={compiler:r,disassemble:function(){var e=this.opcodes,t,n=[],r,i;for(var s=0,o=e.length;s<o;s++){t=e[s];if(t.opcode===\"DECLARE\")n.push(\"DECLARE \"+t.name+\"=\"+t.value);else{r=[];for(var u=0;u<t.args.length;u++)i=t.args[u],typeof i==\"string\"&&(i='\"'+i.replace(\"\\n\",\"\\\\n\")+'\"'),r.push(i);n.push(t.opcode+\" \"+r.join(\" \"))}}return n.join(\"\\n\")},equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||r.args.length!==i.args.length)return!1;for(var s=0;s<r.args.length;s++)if(r.args[s]!==i.args[s])return!1}t=this.children.length;if(e.children.length!==t)return!1;for(n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=t;var n=this.options.knownHelpers;this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,\"if\":!0,unless:!0,\"with\":!0,log:!0};if(n)for(var r in n)this.options.knownHelpers[r]=n[r];return this.accept(e)},accept:function(e){var t=e.strip||{},n;return t.left&&this.opcode(\"strip\"),n=this[e.type](e),t.right&&this.opcode(\"strip\"),n},program:function(e){var t=e.statements;for(var n=0,r=t.length;n<r;n++)this.accept(t[n]);return this.isSimple=r===1,this.depths.list=this.depths.list.sort(function(e,t){return e-t}),this},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++,r;this.usePartial=this.usePartial||t.usePartial,this.children[n]=t;for(var i=0,s=t.depths.list.length;i<s;i++){r=t.depths.list[i];if(r<2)continue;this.addDepth(r-1)}return n},block:function(e){var t=e.mustache,n=e.program,r=e.inverse;n&&(n=this.compileProgram(n)),r&&(r=this.compileProgram(r));var i=t.sexpr,s=this.classifySexpr(i);s===\"helper\"?this.helperSexpr(i,n,r):s===\"simple\"?(this.simpleSexpr(i),this.opcode(\"pushProgram\",n),this.opcode(\"pushProgram\",r),this.opcode(\"emptyHash\"),this.opcode(\"blockValue\")):(this.ambiguousSexpr(i,n,r),this.opcode(\"pushProgram\",n),this.opcode(\"pushProgram\",r),this.opcode(\"emptyHash\"),this.opcode(\"ambiguousBlockValue\")),this.opcode(\"append\")},hash:function(e){var t=e.pairs,n,r;this.opcode(\"pushHash\");for(var i=0,s=t.length;i<s;i++)n=t[i],r=n[1],this.options.stringParams?(r.depth&&this.addDepth(r.depth),this.opcode(\"getContext\",r.depth||0),this.opcode(\"pushStringParam\",r.stringModeValue,r.type),r.type===\"sexpr\"&&this.sexpr(r)):this.accept(r),this.opcode(\"assignToHash\",n[0]);this.opcode(\"popHash\")},partial:function(e){var t=e.partialName;this.usePartial=!0,e.context?this.ID(e.context):this.opcode(\"push\",\"depth0\"),this.opcode(\"invokePartial\",t.name),this.opcode(\"append\")},content:function(e){this.opcode(\"appendContent\",e.string)},mustache:function(e){this.sexpr(e.sexpr),e.escaped&&!this.options.noEscape?this.opcode(\"appendEscaped\"):this.opcode(\"append\")},ambiguousSexpr:function(e,t,n){var r=e.id,i=r.parts[0],s=t!=null||n!=null;this.opcode(\"getContext\",r.depth),this.opcode(\"pushProgram\",t),this.opcode(\"pushProgram\",n),this.opcode(\"invokeAmbiguous\",i,s)},simpleSexpr:function(e){var t=e.id;t.type===\"DATA\"?this.DATA(t):t.parts.length?this.ID(t):(this.addDepth(t.depth),this.opcode(\"getContext\",t.depth),this.opcode(\"pushContext\")),this.opcode(\"resolvePossibleLambda\")},helperSexpr:function(e,t,r){var i=this.setupFullMustacheParams(e,t,r),s=e.id.parts[0];if(this.options.knownHelpers[s])this.opcode(\"invokeKnownHelper\",i.length,s);else{if(this.options.knownHelpersOnly)throw new n(\"You specified knownHelpersOnly, but used the unknown helper \"+s,e);this.opcode(\"invokeHelper\",i.length,s,e.isRoot)}},sexpr:function(e){var t=this.classifySexpr(e);t===\"simple\"?this.simpleSexpr(e):t===\"helper\"?this.helperSexpr(e):this.ambiguousSexpr(e)},ID:function(e){this.addDepth(e.depth),this.opcode(\"getContext\",e.depth);var t=e.parts[0];t?this.opcode(\"lookupOnContext\",e.parts[0]):this.opcode(\"pushContext\");for(var n=1,r=e.parts.length;n<r;n++)this.opcode(\"lookup\",e.parts[n])},DATA:function(e){this.options.data=!0;if(e.id.isScoped||e.id.depth)throw new n(\"Scoped data references are not supported: \"+e.original,e);this.opcode(\"lookupData\");var t=e.id.parts;for(var r=0,i=t.length;r<i;r++)this.opcode(\"lookup\",t[r])},STRING:function(e){this.opcode(\"pushString\",e.string)},INTEGER:function(e){this.opcode(\"pushLiteral\",e.integer)},BOOLEAN:function(e){this.opcode(\"pushLiteral\",e.bool)},comment:function(){},opcode:function(e){this.opcodes.push({opcode:e,args:[].slice.call(arguments,1)})},declare:function(e,t){this.opcodes.push({opcode:\"DECLARE\",name:e,value:t})},addDepth:function(e){if(e===0)return;this.depths[e]||(this.depths[e]=!0,this.depths.list.push(e))},classifySexpr:function(e){var t=e.isHelper,n=e.eligibleHelper,r=this.options;if(n&&!t){var i=e.id.parts[0];r.knownHelpers[i]?t=!0:r.knownHelpersOnly&&(n=!1)}return t?\"helper\":n?\"ambiguous\":\"simple\"},pushParams:function(e){var t=e.length,n;while(t--)n=e[t],this.options.stringParams?(n.depth&&this.addDepth(n.depth),this.opcode(\"getContext\",n.depth||0),this.opcode(\"pushStringParam\",n.stringModeValue,n.type),n.type===\"sexpr\"&&this.sexpr(n)):this[n.type](n)},setupFullMustacheParams:function(e,t,n){var r=e.params;return this.pushParams(r),this.opcode(\"pushProgram\",t),this.opcode(\"pushProgram\",n),e.hash?this.hash(e.hash):this.opcode(\"emptyHash\"),r}},t.precompile=i,t.compile=s,t}(n),l=function(e,t){function u(e){this.value=e}function a(){}var n,r=e.COMPILER_REVISION,i=e.REVISION_CHANGES,s=e.log,o=t;a.prototype={nameLookup:function(e,t){var n,r;return e.indexOf(\"depth\")===0&&(n=!0),/^[0-9]+$/.test(t)?r=e+\"[\"+t+\"]\":a.isValidJavaScriptVariableName(t)?r=e+\".\"+t:r=e+\"['\"+t+\"']\",n?\"(\"+e+\" && \"+r+\")\":r},compilerInfo:function(){var e=r,t=i[e];return\"this.compilerInfo = [\"+e+\",'\"+t+\"'];\\n\"},appendToBuffer:function(e){return this.environment.isSimple?\"return \"+e+\";\":{appendToBuffer:!0,content:e,toString:function(){return\"buffer += \"+e+\";\"}}},initializeBuffer:function(){return this.quotedString(\"\")},namespace:\"Handlebars\",compile:function(e,t,n,r){this.environment=e,this.options=t||{},s(\"debug\",this.environment.disassemble()+\"\\n\\n\"),this.name=this.environment.name,this.isChild=!!n,this.context=n||{programs:[],environments:[],aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(e,t);var i=e.opcodes,u;this.i=0;for(var a=i.length;this.i<a;this.i++)u=i[this.i],u.opcode===\"DECLARE\"?this[u.name]=u.value:this[u.opcode].apply(this,u.args),u.opcode!==this.stripNext&&(this.stripNext=!1);this.pushSource(\"\");if(this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o(\"Compile completed with content left on stack\");return this.createFunctionContext(r)},preamble:function(){var e=[];if(!this.isChild){var t=this.namespace,n=\"helpers = this.merge(helpers, \"+t+\".helpers);\";this.environment.usePartial&&(n=n+\" partials = this.merge(partials, \"+t+\".partials);\"),this.options.data&&(n+=\" data = data || {};\"),e.push(n)}else e.push(\"\");this.environment.isSimple?e.push(\"\"):e.push(\", buffer = \"+this.initializeBuffer()),this.lastContext=0,this.source=e},createFunctionContext:function(e){var t=this.stackVars.concat(this.registers.list);t.length>0&&(this.source[1]=this.source[1]+\", \"+t.join(\", \"));if(!this.isChild)for(var n in this.context.aliases)this.context.aliases.hasOwnProperty(n)&&(this.source[1]=this.source[1]+\", \"+n+\"=\"+this.context.aliases[n]);this.source[1]&&(this.source[1]=\"var \"+this.source[1].substring(2)+\";\"),this.isChild||(this.source[1]+=\"\\n\"+this.context.programs.join(\"\\n\")+\"\\n\"),this.environment.isSimple||this.pushSource(\"return buffer;\");var r=this.isChild?[\"depth0\",\"data\"]:[\"Handlebars\",\"depth0\",\"helpers\",\"partials\",\"data\"];for(var i=0,o=this.environment.depths.list.length;i<o;i++)r.push(\"depth\"+this.environment.depths.list[i]);var u=this.mergeSource();this.isChild||(u=this.compilerInfo()+u);if(e)return r.push(u),Function.apply(this,r);var a=\"function \"+(this.name||\"\")+\"(\"+r.join(\",\")+\") {\\n  \"+u+\"}\";return s(\"debug\",a+\"\\n\\n\"),a},mergeSource:function(){var e=\"\",t;for(var n=0,r=this.source.length;n<r;n++){var i=this.source[n];i.appendToBuffer?t?t=t+\"\\n    + \"+i.content:t=i.content:(t&&(e+=\"buffer += \"+t+\";\\n  \",t=undefined),e+=i+\"\\n  \")}return e},blockValue:function(){this.context.aliases.blockHelperMissing=\"helpers.blockHelperMissing\";var e=[\"depth0\"];this.setupParams(0,e),this.replaceStack(function(t){return e.splice(1,0,t),\"blockHelperMissing.call(\"+e.join(\", \")+\")\"})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing=\"helpers.blockHelperMissing\";var e=[\"depth0\"];this.setupParams(0,e);var t=this.topStack();e.splice(1,0,t),this.pushSource(\"if (!\"+this.lastHelper+\") { \"+t+\" = blockHelperMissing.call(\"+e.join(\", \")+\"); }\")},appendContent:function(e){this.pendingContent&&(e=this.pendingContent+e),this.stripNext&&(e=e.replace(/^\\s+/,\"\")),this.pendingContent=e},strip:function(){this.pendingContent&&(this.pendingContent=this.pendingContent.replace(/\\s+$/,\"\")),this.stripNext=\"strip\"},append:function(){this.flushInline();var e=this.popStack();this.pushSource(\"if(\"+e+\" || \"+e+\" === 0) { \"+this.appendToBuffer(e)+\" }\"),this.environment.isSimple&&this.pushSource(\"else { \"+this.appendToBuffer(\"''\")+\" }\")},appendEscaped:function(){this.context.aliases.escapeExpression=\"this.escapeExpression\",this.pushSource(this.appendToBuffer(\"escapeExpression(\"+this.popStack()+\")\"))},getContext:function(e){this.lastContext!==e&&(this.lastContext=e)},lookupOnContext:function(e){this.push(this.nameLookup(\"depth\"+this.lastContext,e,\"context\"))},pushContext:function(){this.pushStackLiteral(\"depth\"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='\"function\"',this.replaceStack(function(e){return\"typeof \"+e+\" === functionType ? \"+e+\".apply(depth0) : \"+e})},lookup:function(e){this.replaceStack(function(t){return t+\" == null || \"+t+\" === false ? \"+t+\" : \"+this.nameLookup(t,e,\"context\")})},lookupData:function(){this.pushStackLiteral(\"data\")},pushStringParam:function(e,t){this.pushStackLiteral(\"depth\"+this.lastContext),this.pushString(t),t!==\"sexpr\"&&(typeof e==\"string\"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(){this.pushStackLiteral(\"{}\"),this.options.stringParams&&(this.push(\"{}\"),this.push(\"{}\"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.options.stringParams&&(this.push(\"{\"+e.contexts.join(\",\")+\"}\"),this.push(\"{\"+e.types.join(\",\")+\"}\")),this.push(\"{\\n    \"+e.values.join(\",\\n    \")+\"\\n  }\")},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},push:function(e){return this.inlineStack.push(e),e},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},invokeHelper:function(e,t,n){this.context.aliases.helperMissing=\"helpers.helperMissing\",this.useRegister(\"helper\");var r=this.lastHelper=this.setupHelper(e,t,!0),i=this.nameLookup(\"depth\"+this.lastContext,t,\"context\"),s=\"helper = \"+r.name+\" || \"+i;r.paramsInit&&(s+=\",\"+r.paramsInit),this.push(\"(\"+s+\",helper ? helper.call(\"+r.callParams+\") : helperMissing.call(\"+r.helperMissingParams+\"))\"),n||this.flushInline()},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(n.name+\".call(\"+n.callParams+\")\")},invokeAmbiguous:function(e,t){this.context.aliases.functionType='\"function\"',this.useRegister(\"helper\"),this.emptyHash();var n=this.setupHelper(0,e,t),r=this.lastHelper=this.nameLookup(\"helpers\",e,\"helper\"),i=this.nameLookup(\"depth\"+this.lastContext,e,\"context\"),s=this.nextStack();n.paramsInit&&this.pushSource(n.paramsInit),this.pushSource(\"if (helper = \"+r+\") { \"+s+\" = helper.call(\"+n.callParams+\"); }\"),this.pushSource(\"else { helper = \"+i+\"; \"+s+\" = typeof helper === functionType ? helper.call(\"+n.callParams+\") : helper; }\")},invokePartial:function(e){var t=[this.nameLookup(\"partials\",e,\"partial\"),\"'\"+e+\"'\",this.popStack(),\"helpers\",\"partials\"];this.options.data&&t.push(\"data\"),this.context.aliases.self=\"this\",this.push(\"self.invokePartial(\"+t.join(\", \")+\")\")},assignToHash:function(e){var t=this.popStack(),n,r;this.options.stringParams&&(r=this.popStack(),n=this.popStack());var i=this.hash;n&&i.contexts.push(\"'\"+e+\"': \"+n),r&&i.types.push(\"'\"+e+\"': \"+r),i.values.push(\"'\"+e+\"': (\"+t+\")\")},compiler:a,compileChildren:function(e,t){var n=e.children,r,i;for(var s=0,o=n.length;s<o;s++){r=n[s],i=new this.compiler;var u=this.matchExistingProgram(r);u==null?(this.context.programs.push(\"\"),u=this.context.programs.length,r.index=u,r.name=\"program\"+u,this.context.programs[u]=i.compile(r,t,this.context),this.context.environments[u]=r):(r.index=u,r.name=\"program\"+u)}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return t}},programExpression:function(e){this.context.aliases.self=\"this\";if(e==null)return\"self.noop\";var t=this.environment.children[e],n=t.depths.list,r,i=[t.index,t.name,\"data\"];for(var s=0,o=n.length;s<o;s++)r=n[s],r===1?i.push(\"depth0\"):i.push(\"depth\"+(r-1));return(n.length===0?\"self.program(\":\"self.programWithDepth(\")+i.join(\", \")+\")\"},register:function(e,t){this.useRegister(e),this.pushSource(e+\" = \"+t+\";\")},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},pushStackLiteral:function(e){return this.push(new u(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=undefined),e&&this.source.push(e)},pushStack:function(e){this.flushInline();var t=this.incrStack();return e&&this.pushSource(t+\" = \"+e+\";\"),this.compileStack.push(t),t},replaceStack:function(e){var t=\"\",n=this.isInline(),r,i,s;if(n){var o=this.popStack(!0);if(o instanceof u)r=o.value,s=!0;else{i=!this.stackSlot;var a=i?this.incrStack():this.topStackName();t=\"(\"+this.push(a)+\" = \"+o+\"),\",r=this.topStack()}}else r=this.topStack();var f=e.call(this,r);return n?(s||this.popStack(),i&&this.stackSlot--,this.push(\"(\"+t+f+\")\")):(/^stack/.test(r)||(r=this.nextStack()),this.pushSource(r+\" = (\"+t+f+\");\")),r},nextStack:function(){return this.pushStack()},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push(\"stack\"+this.stackSlot),this.topStackName()},topStackName:function(){return\"stack\"+this.stackSlot},flushInline:function(){var e=this.inlineStack;if(e.length){this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];r instanceof u?this.compileStack.push(r):this.pushStack(r)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof u)return n.value;if(!t){if(!this.stackSlot)throw new o(\"Invalid stack pop\");this.stackSlot--}return n},topStack:function(e){var t=this.isInline()?this.inlineStack:this.compileStack,n=t[t.length-1];return!e&&n instanceof u?n.value:n},quotedString:function(e){return'\"'+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/\\u2028/g,\"\\\\u2028\").replace(/\\u2029/g,\"\\\\u2029\")+'\"'},setupHelper:function(e,t,n){var r=[],i=this.setupParams(e,r,n),s=this.nameLookup(\"helpers\",t,\"helper\");return{params:r,paramsInit:i,name:s,callParams:[\"depth0\"].concat(r).join(\", \"),helperMissingParams:n&&[\"depth0\",this.quotedString(t)].concat(r).join(\", \")}},setupOptions:function(e,t){var n=[],r=[],i=[],s,o,u;n.push(\"hash:\"+this.popStack()),this.options.stringParams&&(n.push(\"hashTypes:\"+this.popStack()),n.push(\"hashContexts:\"+this.popStack())),o=this.popStack(),u=this.popStack();if(u||o)u||(this.context.aliases.self=\"this\",u=\"self.noop\"),o||(this.context.aliases.self=\"this\",o=\"self.noop\"),n.push(\"inverse:\"+o),n.push(\"fn:\"+u);for(var a=0;a<e;a++)s=this.popStack(),t.push(s),this.options.stringParams&&(i.push(this.popStack()),r.push(this.popStack()));return this.options.stringParams&&(n.push(\"contexts:[\"+r.join(\",\")+\"]\"),n.push(\"types:[\"+i.join(\",\")+\"]\")),this.options.data&&n.push(\"data:data\"),n},setupParams:function(e,t,n){var r=\"{\"+this.setupOptions(e,t).join(\",\")+\"}\";return n?(this.useRegister(\"options\"),t.push(\"options\"),\"options=\"+r):(t.push(r),\"\")}};var f=\"break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield\".split(\" \"),l=a.RESERVED_WORDS={};for(var c=0,h=f.length;c<h;c++)l[f[c]]=!0;return a.isValidJavaScriptVariableName=function(e){return!a.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)?!0:!1},n=a,n}(r,n),c=function(e,t,n,r,i){var s,o=e,u=t,a=n.parser,f=n.parse,l=r.Compiler,c=r.compile,h=r.precompile,p=i,d=o.create,v=function(){var e=d();return e.compile=function(t,n){return c(t,n,e)},e.precompile=function(t,n){return h(t,n,e)},e.AST=u,e.Compiler=l,e.JavaScriptCompiler=p,e.Parser=a,e.parse=f,e};return o=v(),o.create=v,s=o,s}(s,o,a,f,l);return c}();define(\"handlebars\",function(e){return function(){return e.handlebars}}(this)),!function(){function e(e,t){if(!t||\"function\"==typeof t)return e;for(var n in t)e[n]=t[n];return e}function t(e,t,n){var r,i=0,s=e.length,o=void 0===s||\"[object Array]\"!==Object.prototype.toString.apply(e)||\"function\"==typeof e;if(n)if(o){for(r in e)if(t.apply(e[r],n)===!1)break}else for(;s>i&&t.apply(e[i++],n)!==!1;);else if(o){for(r in e)if(t.call(e[r],r,e[r])===!1)break}else for(;s>i&&t.call(e[i],i,e[i++])!==!1;);return e}function n(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return P[e]}):e}function r(e){var t=function(e){if(window.XMLHttpRequest)return e(null,new XMLHttpRequest);if(window.ActiveXObject)try{return e(null,new ActiveXObject(\"Msxml2.XMLHTTP\"))}catch(t){return e(null,new ActiveXObject(\"Microsoft.XMLHTTP\"))}return e(new Error)},n=function(e){if(\"string\"==typeof e)return e;var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+\"=\"+encodeURIComponent(e[n]));return t.join(\"&\")},r=function(e){e=e.replace(/\\r\\n/g,\"\\n\");for(var t=\"\",n=0;n<e.length;n++){var r=e.charCodeAt(n);128>r?t+=String.fromCharCode(r):r>127&&2048>r?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|63&r>>6),t+=String.fromCharCode(128|63&r))}return t},i=function(e){var t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";e=r(e);var n,i,s,o,u,a,f,l=\"\",c=0;do n=e.charCodeAt(c++),i=e.charCodeAt(c++),s=e.charCodeAt(c++),o=n>>2,u=(3&n)<<4|i>>4,a=(15&i)<<2|s>>6,f=63&s,isNaN(i)?a=f=64:isNaN(s)&&(f=64),l+=t.charAt(o)+t.charAt(u)+t.charAt(a)+t.charAt(f),n=i=s=\"\",o=u=a=f=\"\";while(c<e.length);return l},s=function(){for(var e=arguments[0],t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e},o=function(e,r,i,u){\"function\"==typeof i&&(u=i,i={}),i.cache=i.cache||!1,i.data=i.data||{},i.headers=i.headers||{},i.jsonp=i.jsonp||!1,i.async=void 0===i.async?!0:i.async;var a,f=s({accept:\"*/*\",\"content-type\":\"application/x-www-form-urlencoded;charset=UTF-8\"},o.headers,i.headers);if(a=\"application/json\"===f[\"content-type\"]?JSON.stringify(i.data):n(i.data),\"GET\"===e){var l=[];if(a&&(l.push(a),a=null),i.cache||l.push(\"_=\"+(new Date).getTime()),i.jsonp&&(l.push(\"callback=\"+i.jsonp),l.push(\"jsonp=\"+i.jsonp)),l=l.join(\"&\"),l.length>1&&(r+=r.indexOf(\"?\")>-1?\"&\"+l:\"?\"+l),i.jsonp){var c=document.getElementsByTagName(\"head\")[0],h=document.createElement(\"script\");return h.type=\"text/javascript\",h.src=r,c.appendChild(h),void 0}}t(function(t,n){if(t)return u(t);n.open(e,r,i.async);for(var s in f)f.hasOwnProperty(s)&&n.setRequestHeader(s,f[s]);n.onreadystatechange=function(){if(4===n.readyState){var e=n.responseText||\"\";if(!u)return;u(n.status,{text:function(){return e},json:function(){return JSON.parse(e)}})}},n.send(a)})},u={authBasic:function(e,t){o.headers.Authorization=\"Basic \"+i(e+\":\"+t)},connect:function(e,t,n){return o(\"CONNECT\",e,t,n)},del:function(e,t,n){return o(\"DELETE\",e,t,n)},get:function(e,t,n){return o(\"GET\",e,t,n)},head:function(e,t,n){return o(\"HEAD\",e,t,n)},headers:function(e){o.headers=e||{}},isAllowed:function(e,t,n){this.options(e,function(e,r){n(-1!==r.text().indexOf(t))})},options:function(e,t,n){return o(\"OPTIONS\",e,t,n)},patch:function(e,t,n){return o(\"PATCH\",e,t,n)},post:function(e,t,n){return o(\"POST\",e,t,n)},put:function(e,t,n){return o(\"PUT\",e,t,n)},trace:function(e,t,n){return o(\"TRACE\",e,t,n)}},a=e.type?e.type.toLowerCase():\"get\";u[a](e.url,e,function(t,n){200===t?e.success(n.json(),t,null):e.error(n.text(),t,null)})}function i(e,t){\"function\"==typeof e&&(t=e,e={}),e=e||{},j.extend(D,e),delete D.fixLng,\"string\"==typeof D.ns&&(D.ns={namespaces:[D.ns],defaultNs:D.ns}),\"string\"==typeof D.fallbackNS&&(D.fallbackNS=[D.fallbackNS]),(\"string\"==typeof D.fallbackLng||\"boolean\"==typeof D.fallbackLng)&&(D.fallbackLng=[D.fallbackLng]),D.interpolationPrefixEscaped=j.regexEscape(D.interpolationPrefix),D.interpolationSuffixEscaped=j.regexEscape(D.interpolationSuffix),D.lng||(D.lng=j.detectLanguage()),D.lng?D.useCookie&&j.cookie.create(D.cookieName,D.lng,D.cookieExpirationTime,D.cookieDomain):(D.lng=D.fallbackLng[0],D.useCookie&&j.cookie.remove(D.cookieName)),M=j.toLanguages(D.lng),N=M[0],j.log(\"currentLng set to: \"+N);var n=b;e.fixLng&&(n=function(e,t){return t=t||{},t.lng=t.lng||n.lng,b(e,t)},n.lng=N),I.setCurrentLng(N),k&&D.setJqueryExt&&p();var r;if(k&&k.Deferred&&(r=k.Deferred()),!D.resStore){var i=j.toLanguages(D.lng);\"string\"==typeof D.preload&&(D.preload=[D.preload]);for(var s=0,o=D.preload.length;o>s;s++)for(var u=j.toLanguages(D.preload[s]),a=0,f=u.length;f>a;a++)i.indexOf(u[a])<0&&i.push(u[a]);return L.sync.load(i,D,function(e,i){A=i,_=!0,t&&t(n),r&&r.resolve(n)}),r?r.promise():void 0}return A=D.resStore,_=!0,t&&t(n),r&&r.resolve(n),r?r.promise():void 0}function s(e,t){\"string\"==typeof e&&(e=[e]);for(var n=0,r=e.length;r>n;n++)D.preload.indexOf(e[n])<0&&D.preload.push(e[n]);return i(t)}function o(e,t,n){\"string\"!=typeof t?(n=t,t=D.ns.defaultNs):D.ns.namespaces.indexOf(t)<0&&D.ns.namespaces.push(t),A[e]=A[e]||{},A[e][t]=A[e][t]||{},j.extend(A[e][t],n)}function u(e,t){\"string\"!=typeof t&&(t=D.ns.defaultNs),A[e]=A[e]||{},A[e][t]={}}function a(e){D.ns.defaultNs=e}function f(e,t){l([e],t)}function l(e,t){var n={dynamicLoad:D.dynamicLoad,resGetPath:D.resGetPath,getAsync:D.getAsync,customLoad:D.customLoad,ns:{namespaces:e,defaultNs:\"\"}},r=j.toLanguages(D.lng);\"string\"==typeof D.preload&&(D.preload=[D.preload]);for(var i=0,s=D.preload.length;s>i;i++)for(var o=j.toLanguages(D.preload[i]),u=0,a=o.length;a>u;u++)r.indexOf(o[u])<0&&r.push(o[u]);for(var f=[],l=0,c=r.length;c>l;l++){var h=!1,p=A[r[l]];if(p)for(var d=0,v=e.length;v>d;d++)p[e[d]]||(h=!0);else h=!0;h&&f.push(r[l])}f.length?L.sync._fetch(f,n,function(n,r){var i=e.length*f.length;j.each(e,function(e,n){D.ns.namespaces.indexOf(n)<0&&D.ns.namespaces.push(n),j.each(f,function(e,s){A[s]=A[s]||{},A[s][n]=r[s][n],i--,0===i&&t&&(D.useLocalStorage&&L.sync._storeLocal(A),t())})})}):t&&t()}function c(e,t,n){return\"function\"==typeof t?(n=t,t={}):t||(t={}),t.lng=e,i(t,n)}function h(){return N}function p(){function e(e,t,n){if(0!==t.length){var r=\"text\";if(0===t.indexOf(\"[\")){var i=t.split(\"]\");t=i[1],r=i[0].substr(1,i[0].length-1)}t.indexOf(\";\")===t.length-1&&(t=t.substr(0,t.length-2));var s;if(\"html\"===r)s=D.defaultValueFromContent?k.extend({defaultValue:e.html()},n):n,e.html(k.t(t,s));else if(\"text\"===r)s=D.defaultValueFromContent?k.extend({defaultValue:e.text()},n):n,e.text(k.t(t,s));else if(\"prepend\"===r)s=D.defaultValueFromContent?k.extend({defaultValue:e.html()},n):n,e.prepend(k.t(t,s));else if(\"append\"===r)s=D.defaultValueFromContent?k.extend({defaultValue:e.html()},n):n,e.append(k.t(t,s));else if(0===r.indexOf(\"data-\")){var o=r.substr(\"data-\".length);s=D.defaultValueFromContent?k.extend({defaultValue:e.data(o)},n):n;var u=k.t(t,s);e.data(o,u),e.attr(r,u)}else s=D.defaultValueFromContent?k.extend({defaultValue:e.attr(r)},n):n,e.attr(r,k.t(t,s))}}function t(t,n){var r=t.attr(D.selectorAttr);if(r||\"undefined\"==typeof r||r===!1||(r=t.text()||t.val()),r){var i=t,s=t.data(\"i18n-target\");if(s&&(i=t.find(s)||t),n||D.useDataAttrOptions!==!0||(n=t.data(\"i18n-options\")),n=n||{},r.indexOf(\";\")>=0){var o=r.split(\";\");k.each(o,function(t,r){\"\"!==r&&e(i,r,n)})}else e(i,r,n);D.useDataAttrOptions===!0&&t.data(\"i18n-options\",n)}}k.t=k.t||b,k.fn.i18n=function(e){return this.each(function(){t(k(this),e);var n=k(this).find(\"[\"+D.selectorAttr+\"]\");n.each(function(){t(k(this),e)})})}}function d(e,t,n,r){if(!e)return e;if(r=r||t,e.indexOf(r.interpolationPrefix||D.interpolationPrefix)<0)return e;var i=r.interpolationPrefix?j.regexEscape(r.interpolationPrefix):D.interpolationPrefixEscaped,s=r.interpolationSuffix?j.regexEscape(r.interpolationSuffix):D.interpolationSuffixEscaped,o=\"HTML\"+s;return j.each(t,function(t,u){var a=n?n+D.keyseparator+t:t;\"object\"==typeof u&&null!==u?e=d(e,u,a,r):r.escapeInterpolation||D.escapeInterpolation?(e=e.replace(new RegExp([i,a,o].join(\"\"),\"g\"),u),e=e.replace(new RegExp([i,a,s].join(\"\"),\"g\"),j.escape(u))):e=e.replace(new RegExp([i,a,s].join(\"\"),\"g\"),u)}),e}function v(e,t){var n=\",\",r=\"{\",i=\"}\",s=j.extend({},t);for(delete s.postProcess;-1!=e.indexOf(D.reusePrefix)&&(O++,!(O>D.maxRecursion));){var o=e.lastIndexOf(D.reusePrefix),u=e.indexOf(D.reuseSuffix,o)+D.reuseSuffix.length,a=e.substring(o,u),f=a.replace(D.reusePrefix,\"\").replace(D.reuseSuffix,\"\");if(-1!=f.indexOf(n)){var l=f.indexOf(n);if(-1!=f.indexOf(r,l)&&-1!=f.indexOf(i,l)){var c=f.indexOf(r,l),h=f.indexOf(i,c)+i.length;try{s=j.extend(s,JSON.parse(f.substring(c,h))),f=f.substring(0,l)}catch(p){}}}var d=S(f,s);e=e.replace(a,d)}return e}function m(e){return e.context&&(\"string\"==typeof e.context||\"number\"==typeof e.context)}function g(e){return void 0!==e.count&&\"string\"!=typeof e.count&&1!==e.count}function y(e,t){t=t||{};var n=w(e,t),r=x(e,t);return void 0!==r||r===n}function b(e,t){return t=t||{},_?(O=0,S.apply(null,arguments)):(j.log(\"i18next not finished initialization. you might have called t function before loading resources finished.\"),t.defaultValue||\"\")}function w(e,t){return void 0!==t.defaultValue?t.defaultValue:e}function E(){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return{postProcess:\"sprintf\",sprintf:e}}function S(e,t){if(t&&\"object\"!=typeof t?\"sprintf\"===D.shortcutFunction?t=E.apply(null,arguments):\"defaultValue\"===D.shortcutFunction&&(t={defaultValue:t}):t=t||{},void 0===e||null===e)return\"\";\"string\"==typeof e&&(e=[e]);var n=e[0];if(e.length>1)for(var r=0;r<e.length&&(n=e[r],!y(n,t));r++);var i,s=w(n,t),o=x(n,t),u=t.lng?j.toLanguages(t.lng):M,a=t.ns||D.ns.defaultNs;n.indexOf(D.nsseparator)>-1&&(i=n.split(D.nsseparator),a=i[0],n=i[1]),void 0===o&&D.sendMissing&&(t.lng?F.postMissing(u[0],a,n,s,u):F.postMissing(D.lng,a,n,s,u));var f=t.postProcess||D.postProcess;void 0!==o&&f&&q[f]&&(o=q[f](o,n,t));var l=s;if(s.indexOf(D.nsseparator)>-1&&(i=s.split(D.nsseparator),l=i[1]),l===n&&D.parseMissingKey&&(s=D.parseMissingKey(s)),void 0===o&&(s=d(s,t),s=v(s,t),f&&q[f])){var c=w(n,t);o=q[f](c,n,t)}return void 0!==o?o:s}function x(e,t){t=t||{};var n,r,i=w(e,t),s=M;if(!A)return i;if(\"cimode\"===s[0].toLowerCase())return i;if(t.lng&&(s=j.toLanguages(t.lng),!A[s[0]])){var o=D.getAsync;D.getAsync=!1,L.sync.load(s,D,function(e,t){j.extend(A,t),D.getAsync=o})}var u=t.ns||D.ns.defaultNs;if(e.indexOf(D.nsseparator)>-1){var a=e.split(D.nsseparator);u=a[0],e=a[1]}if(m(t)){n=j.extend({},t),delete n.context,n.defaultValue=D.contextNotFound;var f=u+D.nsseparator+e+\"_\"+t.context;if(r=b(f,n),r!=D.contextNotFound)return d(r,{context:t.context})}if(g(t)){n=j.extend({},t),delete n.count,n.defaultValue=D.pluralNotFound;var l=u+D.nsseparator+e+D.pluralSuffix,c=I.get(s[0],t.count);if(c>=0?l=l+\"_\"+c:1===c&&(l=u+D.nsseparator+e),r=b(l,n),r!=D.pluralNotFound)return d(r,{count:t.count,interpolationPrefix:t.interpolationPrefix,interpolationSuffix:t.interpolationSuffix})}for(var h,p=e.split(D.keyseparator),y=0,E=s.length;E>y&&void 0===h;y++){for(var T=s[y],N=0,C=A[T]&&A[T][u];p[N];)C=C&&C[p[N]],N++;if(void 0!==C){var k=Object.prototype.toString.apply(C);if(\"string\"==typeof C)C=d(C,t),C=v(C,t);else if(\"[object Array]\"!==k||D.returnObjectTrees||t.returnObjectTrees){if(null===C&&D.fallbackOnNull===!0)C=void 0;else if(null!==C)if(D.returnObjectTrees||t.returnObjectTrees){if(\"[object Number]\"!==k&&\"[object Function]\"!==k&&\"[object RegExp]\"!==k){var O=\"[object Array]\"===k?[]:{};j.each(C,function(n){O[n]=S(u+D.nsseparator+e+D.keyseparator+n,t)}),C=O}}else D.objectTreeKeyHandler&&\"function\"==typeof D.objectTreeKeyHandler?C=D.objectTreeKeyHandler(e,C,T,u,t):(C=\"key '\"+u+\":\"+e+\" (\"+T+\")' \"+\"returned an object instead of string.\",j.log(C))}else C=C.join(\"\\n\"),C=d(C,t),C=v(C,t);\"string\"==typeof C&&\"\"===C.trim()&&D.fallbackOnEmpty===!0&&(C=void 0),h=C}}if(void 0===h&&!t.isFallbackLookup&&(D.fallbackToDefaultNS===!0||D.fallbackNS&&D.fallbackNS.length>0))if(t.isFallbackLookup=!0,D.fallbackNS.length){for(var _=0,P=D.fallbackNS.length;P>_;_++)if(h=x(D.fallbackNS[_]+D.nsseparator+e,t)){var H=h.indexOf(D.nsseparator)>-1?h.split(D.nsseparator)[1]:h,B=i.indexOf(D.nsseparator)>-1?i.split(D.nsseparator)[1]:i;if(H!==B)break}}else h=x(e,t);return h}function T(){var e,t=[];if(\"undefined\"!=typeof window&&(!function(){for(var e=window.location.search.substring(1),n=e.split(\"&\"),r=0;r<n.length;r++){var i=n[r].indexOf(\"=\");if(i>0){var s=n[r].substring(0,i),o=n[r].substring(i+1);t[s]=o}}}(),t[D.detectLngQS]&&(e=t[D.detectLngQS])),!e&&\"undefined\"!=typeof document&&D.useCookie){var n=j.cookie.read(D.cookieName);n&&(e=n)}return e||\"undefined\"==typeof navigator||(e=navigator.language?navigator.language:navigator.userLanguage),e}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=0;if(arguments.length>0&&(r=Number(arguments[1]),r!=r?r=0:0!=r&&1/0!=r&&r!=-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var i=r>=0?r:Math.max(n-Math.abs(r),0);n>i;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=n;arguments.length>1&&(r=Number(arguments[1]),r!=r?r=0:0!=r&&r!=1/0&&r!=-(1/0)&&(r=(r>0||-1)*Math.floor(Math.abs(r))));for(var i=r>=0?Math.min(r,n-1):n-Math.abs(r);i>=0;i--)if(i in t&&t[i]===e)return i;return-1}),\"function\"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\\s+|\\s+$/g,\"\")});var N,C=this,k=C.jQuery||C.Zepto,L={},A={},O=0,M=[],_=!1;\"undefined\"!=typeof module&&module.exports?module.exports=L:(k&&(k.i18n=k.i18n||L),C.i18n=C.i18n||L);var D={lng:void 0,load:\"all\",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:[\"dev\"],fallbackNS:[],detectLngQS:\"setLng\",ns:\"translation\",fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,nsseparator:\":\",keyseparator:\".\",selectorAttr:\"data-i18n\",debug:!1,resGetPath:\"locales/__lng__/__ns__.json\",resPostPath:\"locales/add/__lng__/__ns__\",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:\"fallback\",sendType:\"POST\",interpolationPrefix:\"__\",interpolationSuffix:\"__\",reusePrefix:\"$t(\",reuseSuffix:\")\",pluralSuffix:\"_plural\",pluralNotFound:[\"plural_not_found\",Math.random()].join(\"\"),contextNotFound:[\"context_not_found\",Math.random()].join(\"\"),escapeInterpolation:!1,setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:\"i18next\",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,shortcutFunction:\"sprintf\"},P={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"},H={create:function(e,t,n,r){var i;if(n){var s=new Date;s.setTime(s.getTime()+6e4*n),i=\"; expires=\"+s.toGMTString()}else i=\"\";r=r?\"domain=\"+r+\";\":\"\",document.cookie=e+\"=\"+t+i+\";\"+r+\"path=/\"},read:function(e){for(var t=e+\"=\",n=document.cookie.split(\";\"),r=0;r<n.length;r++){for(var i=n[r];\" \"==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},remove:function(e){this.create(e,\"\",-1)}},B={create:function(){},read:function(){return null},remove:function(){}},j={extend:k?k.extend:e,each:k?k.each:t,ajax:k?k.ajax:\"undefined\"!=typeof document?r:function(){},cookie:\"undefined\"!=typeof document?H:B,detectLanguage:T,escape:n,log:function(e){D.debug&&\"undefined\"!=typeof console&&console.log(e)},toLanguages:function(e){var t=[];if(\"string\"==typeof e&&e.indexOf(\"-\")>-1){var n=e.split(\"-\");e=D.lowerCaseLng?n[0].toLowerCase()+\"-\"+n[1].toLowerCase():n[0].toLowerCase()+\"-\"+n[1].toUpperCase(),\"unspecific\"!==D.load&&t.push(e),\"current\"!==D.load&&t.push(n[0])}else t.push(e);for(var r=0;r<D.fallbackLng.length;r++)-1===t.indexOf(D.fallbackLng[r])&&D.fallbackLng[r]&&t.push(D.fallbackLng[r]);return t},regexEscape:function(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}};j.applyReplacement=d;var F={load:function(e,t,n){t.useLocalStorage?F._loadLocal(e,t,function(r,i){for(var s=[],o=0,u=e.length;u>o;o++)i[e[o]]||s.push(e[o]);s.length>0?F._fetch(s,t,function(e,t){j.extend(i,t),F._storeLocal(t),n(null,i)}):n(null,i)}):F._fetch(e,t,function(e,t){n(null,t)})},_loadLocal:function(e,t,n){var r={},i=(new Date).getTime();if(window.localStorage){var s=e.length;j.each(e,function(e,o){var u=window.localStorage.getItem(\"res_\"+o);u&&(u=JSON.parse(u),u.i18nStamp&&u.i18nStamp+t.localStorageExpirationTime>i&&(r[o]=u)),s--,0===s&&n(null,r)})}},_storeLocal:function(e){if(window.localStorage)for(var t in e)e[t].i18nStamp=(new Date).getTime(),window.localStorage.setItem(\"res_\"+t,JSON.stringify(e[t]))},_fetch:function(e,t,n){var r=t.ns,i={};if(t.dynamicLoad){var s=function(e,t){n(null,t)};if(\"function\"==typeof t.customLoad)t.customLoad(e,r.namespaces,t,s);else{var o=d(t.resGetPath,{lng:e.join(\"+\"),ns:r.namespaces.join(\"+\")});j.ajax({url:o,success:function(e){j.log(\"loaded: \"+o),s(null,e)},error:function(e,t,n){j.log(\"failed loading: \"+o),s(\"failed loading resource.json error: \"+n)},dataType:\"json\",async:t.getAsync})}}else{var u,a=r.namespaces.length*e.length;j.each(r.namespaces,function(r,s){j.each(e,function(e,r){var o=function(e,t){e&&(u=u||[],u.push(e)),i[r]=i[r]||{},i[r][s]=t,a--,0===a&&n(u,i)};\"function\"==typeof t.customLoad?t.customLoad(r,s,t,o):F._fetchOne(r,s,t,o)})})}},_fetchOne:function(e,t,n,r){var i=d(n.resGetPath,{lng:e,ns:t});j.ajax({url:i,success:function(e){j.log(\"loaded: \"+i),r(null,e)},error:function(e,t,n){if(t&&200==t||e&&e.status&&200==e.status)j.log(\"There is a typo in: \"+i);else if(t&&404==t||e&&e.status&&404==e.status)j.log(\"Does not exist: \"+i);else{var s=t?t:e&&e.status?e.status:null;j.log(s+\" when loading \"+i)}r(n,{})},dataType:\"json\",async:n.getAsync})},postMissing:function(e,t,n,r,i){var s={};s[n]=r;var o=[];if(\"fallback\"===D.sendMissingTo&&D.fallbackLng[0]!==!1)for(var u=0;u<D.fallbackLng.length;u++)o.push({lng:D.fallbackLng[u],url:d(D.resPostPath,{lng:D.fallbackLng[u],ns:t})});else if(\"current\"===D.sendMissingTo||\"fallback\"===D.sendMissingTo&&D.fallbackLng[0]===!1)o.push({lng:e,url:d(D.resPostPath,{lng:e,ns:t})});else if(\"all\"===D.sendMissingTo)for(var u=0,a=i.length;a>u;u++)o.push({lng:i[u],url:d(D.resPostPath,{lng:i[u],ns:t})});for(var f=0,l=o.length;l>f;f++){var c=o[f];j.ajax({url:c.url,type:D.sendType,data:s,success:function(){j.log(\"posted missing key '\"+n+\"' to: \"+c.url);for(var e=n.split(\".\"),i=0,s=A[c.lng][t];e[i];)s=s[e[i]]=i===e.length-1?r:s[e[i]]||{},i++},error:function(){j.log(\"failed posting missing key '\"+n+\"' to: \"+c.url)},dataType:\"json\",async:D.postAsync})}}},I={rules:{ach:{name:\"Acholi\",numbers:[1,2],plurals:function(e){return Number(e>1)}},af:{name:\"Afrikaans\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ak:{name:\"Akan\",numbers:[1,2],plurals:function(e){return Number(e>1)}},am:{name:\"Amharic\",numbers:[1,2],plurals:function(e){return Number(e>1)}},an:{name:\"Aragonese\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ar:{name:\"Arabic\",numbers:[0,1,2,3,11,100],plurals:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5)}},arn:{name:\"Mapudungun\",numbers:[1,2],plurals:function(e){return Number(e>1)}},ast:{name:\"Asturian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ay:{name:\"Aymará\",numbers:[1],plurals:function(){return 0}},az:{name:\"Azerbaijani\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},be:{name:\"Belarusian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},bg:{name:\"Bulgarian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},bn:{name:\"Bengali\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},bo:{name:\"Tibetan\",numbers:[1],plurals:function(){return 0}},br:{name:\"Breton\",numbers:[1,2],plurals:function(e){return Number(e>1)}},bs:{name:\"Bosnian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},ca:{name:\"Catalan\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},cgg:{name:\"Chiga\",numbers:[1],plurals:function(){return 0}},cs:{name:\"Czech\",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e>=2&&4>=e?1:2)}},csb:{name:\"Kashubian\",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},cy:{name:\"Welsh\",numbers:[1,2,3,8],plurals:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)}},da:{name:\"Danish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},de:{name:\"German\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},dz:{name:\"Dzongkha\",numbers:[1],plurals:function(){return 0}},el:{name:\"Greek\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},en:{name:\"English\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},eo:{name:\"Esperanto\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},es:{name:\"Spanish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},es_ar:{name:\"Argentinean Spanish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},et:{name:\"Estonian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},eu:{name:\"Basque\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fa:{name:\"Persian\",numbers:[1],plurals:function(){return 0}},fi:{name:\"Finnish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fil:{name:\"Filipino\",numbers:[1,2],plurals:function(e){return Number(e>1)}},fo:{name:\"Faroese\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fr:{name:\"French\",numbers:[1,2],plurals:function(e){return Number(e>1)}},fur:{name:\"Friulian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fy:{name:\"Frisian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ga:{name:\"Irish\",numbers:[1,2,3,7,11],plurals:function(e){return Number(1==e?0:2==e?1:7>e?2:11>e?3:4)}},gd:{name:\"Scottish Gaelic\",numbers:[1,2,3,20],plurals:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&20>e?2:3)}},gl:{name:\"Galician\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},gu:{name:\"Gujarati\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},gun:{name:\"Gun\",numbers:[1,2],plurals:function(e){return Number(e>1)}},ha:{name:\"Hausa\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},he:{name:\"Hebrew\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hi:{name:\"Hindi\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hr:{name:\"Croatian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},hu:{name:\"Hungarian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hy:{name:\"Armenian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ia:{name:\"Interlingua\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},id:{name:\"Indonesian\",numbers:[1],plurals:function(){return 0}},is:{name:\"Icelandic\",numbers:[1,2],plurals:function(e){return Number(1!=e%10||11==e%100)}},it:{name:\"Italian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ja:{name:\"Japanese\",numbers:[1],plurals:function(){return 0}},jbo:{name:\"Lojban\",numbers:[1],plurals:function(){return 0}},jv:{name:\"Javanese\",numbers:[0,1],plurals:function(e){return Number(0!==e)}},ka:{name:\"Georgian\",numbers:[1],plurals:function(){return 0}},kk:{name:\"Kazakh\",numbers:[1],plurals:function(){return 0}},km:{name:\"Khmer\",numbers:[1],plurals:function(){return 0}},kn:{name:\"Kannada\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ko:{name:\"Korean\",numbers:[1],plurals:function(){return 0}},ku:{name:\"Kurdish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},kw:{name:\"Cornish\",numbers:[1,2,3,4],plurals:function(e){return Number(1==e?0:2==e?1:3==e?2:3)}},ky:{name:\"Kyrgyz\",numbers:[1],plurals:function(){return 0}},lb:{name:\"Letzeburgesch\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ln:{name:\"Lingala\",numbers:[1,2],plurals:function(e){return Number(e>1)}},lo:{name:\"Lao\",numbers:[1],plurals:function(){return 0}},lt:{name:\"Lithuanian\",numbers:[1,2,10],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&(10>e%100||e%100>=20)?1:2)}},lv:{name:\"Latvian\",numbers:[1,2,0],plurals:function(e){return Number(1==e%10&&11!=e%100?0:0!==e?1:2)}},mai:{name:\"Maithili\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mfe:{name:\"Mauritian Creole\",numbers:[1,2],plurals:function(e){return Number(e>1)}},mg:{name:\"Malagasy\",numbers:[1,2],plurals:function(e){return Number(e>1)}},mi:{name:\"Maori\",numbers:[1,2],plurals:function(e){return Number(e>1)}},mk:{name:\"Macedonian\",numbers:[1,2],plurals:function(e){return Number(1==e||1==e%10?0:1)}},ml:{name:\"Malayalam\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mn:{name:\"Mongolian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mnk:{name:\"Mandinka\",numbers:[0,1,2],plurals:function(e){return Number(1==e?1:2)}},mr:{name:\"Marathi\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ms:{name:\"Malay\",numbers:[1],plurals:function(){return 0}},mt:{name:\"Maltese\",numbers:[1,2,11,20],plurals:function(e){return Number(1==e?0:0===e||e%100>1&&11>e%100?1:e%100>10&&20>e%100?2:3)}},nah:{name:\"Nahuatl\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nap:{name:\"Neapolitan\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nb:{name:\"Norwegian Bokmal\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ne:{name:\"Nepali\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nl:{name:\"Dutch\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nn:{name:\"Norwegian Nynorsk\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},no:{name:\"Norwegian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nso:{name:\"Northern Sotho\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},oc:{name:\"Occitan\",numbers:[1,2],plurals:function(e){return Number(e>1)}},or:{name:\"Oriya\",numbers:[2,1],plurals:function(e){return Number(1!=e)}},pa:{name:\"Punjabi\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pap:{name:\"Papiamento\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pl:{name:\"Polish\",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},pms:{name:\"Piemontese\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ps:{name:\"Pashto\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pt:{name:\"Portuguese\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pt_br:{name:\"Brazilian Portuguese\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},rm:{name:\"Romansh\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ro:{name:\"Romanian\",numbers:[1,2,20],plurals:function(e){return Number(1==e?0:0===e||e%100>0&&20>e%100?1:2)}},ru:{name:\"Russian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},sah:{name:\"Yakut\",numbers:[1],plurals:function(){return 0}},sco:{name:\"Scots\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},se:{name:\"Northern Sami\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},si:{name:\"Sinhala\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sk:{name:\"Slovak\",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e>=2&&4>=e?1:2)}},sl:{name:\"Slovenian\",numbers:[5,1,2,3],plurals:function(e){return Number(1==e%100?1:2==e%100?2:3==e%100||4==e%100?3:0)}},so:{name:\"Somali\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},son:{name:\"Songhay\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sq:{name:\"Albanian\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sr:{name:\"Serbian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},su:{name:\"Sundanese\",numbers:[1],plurals:function(){return 0}},sv:{name:\"Swedish\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sw:{name:\"Swahili\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ta:{name:\"Tamil\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},te:{name:\"Telugu\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},tg:{name:\"Tajik\",numbers:[1,2],plurals:function(e){return Number(e>1)}},th:{name:\"Thai\",numbers:[1],plurals:function(){return 0}},ti:{name:\"Tigrinya\",numbers:[1,2],plurals:function(e){return Number(e>1)}},tk:{name:\"Turkmen\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},tr:{name:\"Turkish\",numbers:[1,2],plurals:function(e){return Number(e>1)}},tt:{name:\"Tatar\",numbers:[1],plurals:function(){return 0}},ug:{name:\"Uyghur\",numbers:[1],plurals:function(){return 0}},uk:{name:\"Ukrainian\",numbers:[1,2,5],plurals:function(e){return Number(1==e%10&&11!=e%100?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},ur:{name:\"Urdu\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},uz:{name:\"Uzbek\",numbers:[1,2],plurals:function(e){return Number(e>1)}},vi:{name:\"Vietnamese\",numbers:[1],plurals:function(){return 0}},wa:{name:\"Walloon\",numbers:[1,2],plurals:function(e){return Number(e>1)}},wo:{name:\"Wolof\",numbers:[1],plurals:function(){return 0}},yo:{name:\"Yoruba\",numbers:[1,2],plurals:function(e){return Number(1!=e)}},zh:{name:\"Chinese\",numbers:[1],plurals:function(){return 0}}},addRule:function(e,t){I.rules[e]=t},setCurrentLng:function(e){if(!I.currentRule||I.currentRule.lng!==e){var t=e.split(\"-\");I.currentRule={lng:e,rule:I.rules[t[0]]}}},get:function(e,t){function n(t,n){var r;if(r=I.currentRule&&I.currentRule.lng===e?I.currentRule.rule:I.rules[t]){var i=r.plurals(n),s=r.numbers[i];return 2===r.numbers.length&&1===r.numbers[0]&&(2===s?s=-1:1===s&&(s=1)),s}return 1===n?\"1\":\"-1\"}var r=e.split(\"-\");return n(r[0],t)}},q={},R=function(e,t){q[e]=t},U=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join(\"\")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var i,s,o,u,a,f,l,c=1,h=n.length,p=\"\",d=[];for(s=0;h>s;s++)if(p=e(n[s]),\"string\"===p)d.push(n[s]);else if(\"array\"===p){if(u=n[s],u[2])for(i=r[c],o=0;o<u[2].length;o++){if(!i.hasOwnProperty(u[2][o]))throw U('[sprintf] property \"%s\" does not exist',u[2][o]);i=i[u[2][o]]}else i=u[1]?r[u[1]]:r[c++];if(/[^s]/.test(u[8])&&\"number\"!=e(i))throw U(\"[sprintf] expecting number but found %s\",e(i));switch(u[8]){case\"b\":i=i.toString(2);break;case\"c\":i=String.fromCharCode(i);break;case\"d\":i=parseInt(i,10);break;case\"e\":i=u[7]?i.toExponential(u[7]):i.toExponential();break;case\"f\":i=u[7]?parseFloat(i).toFixed(u[7]):parseFloat(i);break;case\"o\":i=i.toString(8);break;case\"s\":i=(i=String(i))&&u[7]?i.substring(0,u[7]):i;break;case\"u\":i=Math.abs(i);break;case\"x\":i=i.toString(16);break;case\"X\":i=i.toString(16).toUpperCase()}i=/[def]/.test(u[8])&&u[3]&&i>=0?\"+\"+i:i,f=u[4]?\"0\"==u[4]?\"0\":u[4].charAt(1):\" \",l=u[6]-String(i).length,a=u[6]?t(f,l):\"\",d.push(u[5]?i+a:a+i)}return d.join(\"\")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],i=0;t;){if(null!==(n=/^[^\\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\\x25{2}/.exec(t)))r.push(\"%\");else{if(null===(n=/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-fosuxX])/.exec(t)))throw\"[sprintf] huh?\";if(n[2]){i|=1;var s=[],o=n[2],u=[];if(null===(u=/^([a-z_][a-z_\\d]*)/i.exec(o)))throw\"[sprintf] huh?\";for(s.push(u[1]);\"\"!==(o=o.substring(u[0].length));)if(null!==(u=/^\\.([a-z_][a-z_\\d]*)/i.exec(o)))s.push(u[1]);else{if(null===(u=/^\\[(\\d+)\\]/.exec(o)))throw\"[sprintf] huh?\";s.push(u[1])}n[2]=s}else i|=2;if(3===i)throw\"[sprintf] mixing positional and named placeholders is not (yet) supported\";r.push(n)}t=t.substring(n[0].length)}return r},n}(),z=function(e,t){return t.unshift(e),U.apply(null,t)};R(\"sprintf\",function(e,t,n){return n.sprintf?\"[object Array]\"===Object.prototype.toString.apply(n.sprintf)?z(e,n.sprintf):\"object\"==typeof n.sprintf?U(e,n.sprintf):e:e}),L.init=i,L.setLng=c,L.preload=s,L.addResourceBundle=o,L.removeResourceBundle=u,L.loadNamespace=f,L.loadNamespaces=l,L.setDefaultNamespace=a,L.t=b,L.translate=b,L.exists=y,L.detectLanguage=j.detectLanguage,L.pluralExtensions=I,L.sync=F,L.functions=j,L.lng=h,L.addPostProcessor=R,L.options=D}(),define(\"i18next\",[\"jquery\",\"handlebars\"],function(e){return function(){return e.i18next}}(this)),define(\"ThemeManager\",[\"org/forgerock/openam/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t){var n={},r,i;return n.loadThemeCSS=function(t){return r===undefined&&($(\"head\").find(\"link[href*=less]\").remove(),$(\"head\").find(\"link[href*=favicon]\").remove(),$(\"<link/>\",{rel:\"stylesheet/less\",type:\"text/css\",href:e.BASE_PATH+t.path+\"css/styles.less\"}).appendTo(\"head\"),$(\"<link/>\",{rel:\"icon\",type:\"image/x-icon\",href:e.BASE_PATH+t.path+t.icon}).appendTo(\"head\"),$(\"<link/>\",{rel:\"shortcut icon\",type:\"image/x-icon\",href:e.BASE_PATH+t.path+t.icon}).appendTo(\"head\"),r=$.ajax({url:e.BASE_PATH+e.LESS_VERSION,dataType:\"script\",cache:!0,error:function(e,t,n){console.log(e.responseText)}})),r},n.loadThemeConfig=function(){return i===undefined&&(i=$.getJSON(e.BASE_PATH+e.THEME_CONFIG_PATH)),i},n.getTheme=function(){var e={},r={},i,s,o;return t.globalData.theme&&n.mapRealmToTheme()===t.globalData.theme.name?(s=$.Deferred(),s.resolve(t.globalData.theme),s):n.loadThemeConfig().then(function(s){return n.data=s,t.globalData.themeConfig=s,i=n.mapRealmToTheme(),e=_.reject(n.data.themes,function(e){return e.name!==i})[0],e.name!==\"default\"&&e.path===\"\"&&(o=_.reject(n.data.themes,function(e){return e.name!==\"default\"})[0],e=$.extend(!0,{},o,e)),t.globalData.auth.realm?n.loadThemeCSS(e).then(function(){return _.each(e.settings.lessVars,function(e,t){r[\"@\"+t]=e}),less.modifyVars(r),t.globalData.theme=e,e}):n.getTheme()})},n.mapRealmToTheme=function(){var e,r=\"default\";return t.globalData.auth.realm&&t.globalData.auth.realm.substring(1).length!==0?e=t.globalData.auth.realm.substring(1):e=document.domain,_.each(n.data.themes,function(t){_.each(t.realms,function(n){if(t.regex){var i=new RegExp(n);if(i.test(e))return r=t.name,!1}else if(n===e)return r=t.name,!1})}),r},n}),define(\"org/forgerock/openam/ui/common/util/ThemeManager\",function(){}),define(\"org/forgerock/commons/ui/common/util/typeextentions/String\",[],function(){String.prototype.removeLastChars=function(e){var t=e?e:1;return this.substr(0,this.length-t)},String.prototype.endsWith=function(e){return this.substr(-e.length)===e},String.prototype.startsWith=function(e){return this.indexOf(e)===0},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)}}),define(\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",[],function(e){var t=function(){};return t.prototype.updateConfigurationCallback=function(e){var t=[],n,r,i,s,o,u;console.debug(\"Configuration updated\"),this.configuration=e;if(e.loader){t=e.loader;for(r in t)if(t.hasOwnProperty(r)){s=t[r];for(i in s)if(s.hasOwnProperty(i)){u=require(s[i]);for(o in u)this.configuration[i][o]||(this.configuration[i][o]=u[o])}}}},t}),define(\"config/AppConfiguration\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t){var n={moduleDefinition:[{moduleClass:\"org/forgerock/commons/ui/common/main/SessionManager\",configuration:{loginHelperClass:\"org/forgerock/openam/ui/user/login/RESTLoginHelper\"}},{moduleClass:\"org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap\",configuration:{LoginView:\"org/forgerock/openam/ui/user/login/RESTLoginView\",UserProfileView:\"org/forgerock/commons/ui/user/profile/UserProfileView\",LoginDialog:\"org/forgerock/openam/ui/user/login/RESTLoginDialog\",RegisterView:\"org/forgerock/openam/ui/user/profile/RegisterView\",ChangeSecurityDataDialog:\"org/forgerock/openam/ui/user/profile/ChangeSecurityDataDialog\",ConfirmPasswordDialog:\"org/forgerock/commons/ui/user/profile/ConfirmPasswordDialog\"}},{moduleClass:\"org/forgerock/commons/ui/common/main/Router\",configuration:{routes:{},loader:[{routes:\"config/routes/AMRoutesConfig\"},{routes:\"config/routes/CommonRoutesConfig\"},{routes:\"config/routes/UserRoutesConfig\"}]}},{moduleClass:\"org/forgerock/commons/ui/common/SiteConfigurator\",configuration:{selfRegistration:!1,enterprise:!1,remoteConfig:!0,delegate:\"org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate\"}},{moduleClass:\"org/forgerock/commons/ui/common/main/ProcessConfiguration\",configuration:{processConfigurationFiles:[\"config/process/AMConfig\",\"config/process/UserConfig\",\"config/process/CommonConfig\"]}},{moduleClass:\"org/forgerock/commons/ui/common/main/ServiceInvoker\",configuration:{defaultHeaders:{}}},{moduleClass:\"org/forgerock/commons/ui/common/main/ErrorsHandler\",configuration:{defaultHandlers:{},loader:[{defaultHandlers:\"config/errorhandlers/CommonErrorHandlers\"}]}},{moduleClass:\"org/forgerock/commons/ui/common/util/UIUtils\",configuration:{templateUrls:[]}},{moduleClass:\"org/forgerock/commons/ui/common/components/Messages\",configuration:{messages:{},loader:[{messages:\"config/messages/CommonMessages\"},{messages:\"config/messages/UserMessages\"}]}},{moduleClass:\"org/forgerock/commons/ui/common/main/ValidatorsManager\",configuration:{policyDelegate:\"org/forgerock/openam/ui/common/delegates/PolicyDelegate\",validators:{},loader:[{validators:\"config/validators/UserValidators\"},{validators:\"config/validators/CommonValidators\"}]}},{moduleClass:\"org/forgerock/commons/ui/common/components/Navigation\",configuration:{links:{user:{urls:{dashboard:{url:\"#dashboard/\",name:\"config.AppConfiguration.Navigation.links.dashboard\",icon:\"glyph-icon-th-list\",inactive:!1}}}}}}],loggerLevel:\"debug\"};return n}),define(\"org/forgerock/commons/ui/common/main/Configuration\",[\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"config/AppConfiguration\"],function(e,t,n){var r={};return r.appConfiguration=n,r.setProperty=function(e,t){r[e]=t},r.removeModuleConfigurationProperty=function(e,t,n){var i=r.getModuleConfiguration(e);i[t]=n},r.appendToModuleConfigurationPropertyArray=function(e,t,n){var i=r.getModuleConfiguration(e);i[t]?i[t].push(n):i[t]=[n]},r.appConfiguration.loggerLevel!==\"debug\"&&(console.log=function(e){},console.debug=function(e){},console.info=function(e){},console.error=function(e){},console.warn=function(e){}),r.sendConfigurationChangeInfo=function(){var n;for(n=0;n<r.appConfiguration.moduleDefinition.length;n++)e.sendEvent(t.EVENT_CONFIGURATION_CHANGED,r.appConfiguration.moduleDefinition[n])},r.sendSingleModuleConfigurationChangeInfo=function(n){var i;for(i=0;i<r.appConfiguration.moduleDefinition.length;i++)if(n===r.appConfiguration.moduleDefinition[i].moduleClass){e.sendEvent(t.EVENT_CONFIGURATION_CHANGED,r.appConfiguration.moduleDefinition[i]);return}console.warn(\"No module name \"+n+\" found to send configuration to\")},r.getModuleConfiguration=function(e){var t;for(t=0;t<r.appConfiguration.moduleDefinition.length;t++)if(r.appConfiguration.moduleDefinition[t].moduleClass===e)return r.appConfiguration.moduleDefinition[t].configuration},r}),define(\"org/forgerock/commons/ui/common/main/Router\",[\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t,n,r){var i=new r;return i.bindedRoutes={},i.currentRoute={},i.checkRole=function(r){if(r.role)if(!n.loggedUser||!_.find(r.role.split(\",\"),function(e){return n.loggedUser.roles.indexOf(e)!==-1}))return e.sendEvent(t.EVENT_UNAUTHORIZED),!1;return r.excludedRole&&n.loggedUser&&n.loggedUser.roles.indexOf(r.excludedRole)!==-1?(e.sendEvent(t.EVENT_UNAUTHORIZED),!1):!0},i.init=function(){console.debug(\"Router init\");var n=Backbone.Router.extend({initialize:function(e){var t,n;for(t in e)n=e[t].url,this.route(n,t,_.bind(this.processRoute,{key:t})),i.bindedRoutes[t]=_.bind(this.processRoute,{key:t})},processRoute:function(){var n=i.configuration.routes[this.key],r,s,o;o=_.toArray(arguments);if(!i.checkRole(n))return;n.event?e.sendEvent(n.event,o):n.dialog?(n.baseView=i.configuration.routes[n.base],e.sendEvent(t.EVENT_SHOW_DIALOG,{route:n,args:o,base:n.base})):n.view&&e.sendEvent(t.EVENT_CHANGE_VIEW,{route:n,args:o})}});i.router=new n(i.configuration.routes),Backbone.history.start()},i.routeTo=function(e,t){var n;t&&t.args?n=i.getLink(e,t.args):n=e.url,t.replace=!1,i.currentRoute=e,i.router.navigate(n,t)},i.execRouteHandler=function(e){i.bindedRoutes[e]()},i.navigate=function(e,t){i.router.navigate(e,t)},i.getLink=function(e,t){var n,r,i;if(typeof e.defaults==\"object\")if(t){r=t.length>=e.defaults.length?t.length:e.defaults.length;for(n=0;n<r;n++)typeof t[n]!=\"string\"&&e.defaults[n]!==undefined&&(t[n]=e.defaults[n])}else t=e.defaults;_.isRegExp(e.url)?i=e.pattern:i=e.url.replace(/:[A-Za-z@.]+/,\"?\");if(t){for(n=0;n<t.length;n++){if(t[n]===undefined)break;i=i.replace(\"?\",t[n])}i=i.replace(/\\?/g,\"\")}return i},i}),define(\"org/forgerock/commons/ui/common/util/DateUtil\",[\"xdate\",\"moment\"],function(e,t){var n={};return n.defaultDateFormat=\"MMMM dd, yyyy\",n.formatDate=function(e,t){return t?(new XDate(e)).toString(t):(new XDate(e)).toString(n.defaultDateFormat)},n.isDateValid=function(e){return Object.prototype.toString.call(e)!==\"[object Date]\"?!1:!isNaN(e.getTime())},n.isDateStringValid=function(e,n){return e.length===n.length&&t(e,n).isValid()},n.parseStringValid=function(e,n){return e.length===n.length&&t(e,n).isValid()},n.getDateFromEpochString=function(e){return(new XDate(parseInt(e,\"10\"))).toDate()},n.currentDate=function(){return(new XDate).toDate()},n.parseDateString=function(e,n){return n?(n=n.replace(/d/g,\"D\"),n=n.replace(/y/g,\"Y\"),t(e,n).toDate()):(new XDate(e)).toDate()},n}),define(\"org/forgerock/commons/ui/common/util/UIUtils\",[\"jquery\",\"underscore\",\"org/forgerock/commons/ui/common/util/typeextentions/String\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"handlebars\",\"i18next\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/util/DateUtil\"],function(e,t,n,r,i,s,o,u){var a=new r;return a.getUrl=function(){return window.location.href},a.getCurrentUrlBasePart=function(){return window.location.protocol+\"//\"+window.location.host},a.getCurrentHash=function(){return window.location.href.indexOf(\"#\")===-1?\"\":window.location.href.substring(window.location.href.indexOf(\"#\")+1)},a.getCurrentUrlQueryParameters=function(){var e=a.getCurrentHash(),t=window.location.search.substr(1,window.location.search.length);return e&&e.indexOf(\"&\")>-1&&(t=e.substring(e.indexOf(\"&\")+1)),t},a.getCurrentPathName=function(){return window.location.pathname},a.setUrl=function(e){window.location.href=e},a.normalizeSubPath=function(e){return e.endsWith(\"/\")?e.removeLastChars():e},a.convertCurrentUrlToJSON=function(){var e={},t;return e.url=a.getCurrentUrlBasePart(),e.pathName=a.normalizeSubPath(a.getCurrentPathName()),e.params=a.convertQueryParametersToJSON(a.getCurrentUrlQueryParameters()),e},a.convertQueryParametersToJSON=function(e){return e?t.object(t.map(e.match(/([^&]+)/g),function(e){var t=e.match(/([^=]+)=?(.*)/).slice(1);return t[1]=decodeURIComponent(t[1]),t})):null},a.commonJQGridFormatters={objectFormatter:function(e,n,r){if(!e)return\"\";var i=\"<dl>\",s;for(s in e)t.isString(e[s])?i+=\"<dt>\"+s+\"</dt><dd>\"+e[s]+\"</dd>\":i+=\"<dt>\"+s+\"</dt><dd>\"+JSON.stringify(e[s])+\"</dd>\";return i+=\"</dl>\",i},arrayFormatter:function(e,n,r){if(!e)return\"\";var i=\"<ul>\",s,o=e.length;for(s=0;s<o;s++)t.isString(e[s])?i+=\"<li>\"+e[s]+\"</li>\":i+=\"<li>\"+JSON.stringify(e[s])+\"</li>\";return i+=\"</ul>\",i},dateFormatter:function(e,t,n){return e?Handlebars.helpers.date(e):\"\"}},a.buildJQGrid=function(n,r,i,s,o){i=i?i:{};if(!r||!n||!i.url)return null;var u=n.$el.find(\"#\"+r),a=i.colModel,f=s.storageKey,l=function(e){var t=this.jqGrid(\"getGridParam\",\"colModel\"),n,r=t.length,i,s,o=this.jqGrid(\"getGridParam\",\"postData\"),u={search:this.jqGrid(\"getGridParam\",\"search\"),page:this.jqGrid(\"getGridParam\",\"page\"),sortname:this.jqGrid(\"getGridParam\",\"sortname\"),sortorder:this.jqGrid(\"getGridParam\",\"sortorder\"),permutation:e,colStates:{}},a=u.colStates;for(n=0;n<r;n++)i=t[n],s=i.name,s!==\"rn\"&&s!==\"cb\"&&s!==\"subgrid\"&&(a[s]={width:i.width,hidden:i.hidden});sessionStorage.setItem(f,JSON.stringify(u))},c,h=function(t){var n,r,i=t.length,s,o,u=JSON.parse(sessionStorage.getItem(f));if(u){s=u.colStates;for(r=0;r<i;r++)n=t[r],o=n.name,o!==\"rn\"&&o!==\"cb\"&&o!==\"subgrid\"&&(t[r]=e.extend(!0,{},t[r],s[o]))}return u},p={datatype:\"json\",loadBeforeSend:function(e){e.setRequestHeader(\"Accept-API-Version\",\"protocol=1.0,resource=1.0\")},colNames:[],colModel:[],height:\"auto\",width:\"none\",jsonReader:{root:function(e){return e.result},total:function(e){var t=u.jqGrid(\"getGridParam\",\"postData\"),n=t._pagedResultsOffset+e.remainingPagedResults+e.resultCount,r=t._pageSize,i=Math.floor(n/r);return n%r>0&&(i+=1),sessionStorage.setItem(s.storageKey+\"-pages-number\",i),i},records:function(e){return u.jqGrid(\"getGridParam\",\"postData\")._pagedResultsOffset+e.remainingPagedResults+e.resultCount},userdata:function(e){return{remaining:e.remainingPagedResults}},repeatitems:!1},search:null,prmNames:{nd:null,sort:\"_sortKeys\",search:\"_queryFilter\",rows:\"_pageSize\"},serializeGridData:function(n){var r,i,o=\"\",a;s.serializeGridData&&(o=s.serializeGridData.call(this,n)),a=t.pluck(u.jqGrid(\"getGridParam\",\"colModel\"),\"name\"),t.each(a,function(e,t,r){n[e]&&(o.length>0&&(o+=\" AND \"),o=o.concat(e,' co \"',n[e],'\"')),delete n[e]});if(s.searchFilter)for(r=0,i=s.searchFilter.length;r<i;r++)o.length>0&&(o+=\" AND \"),o=o.concat(s.searchFilter[r].field,\" \",s.searchFilter[r].op,' \"',s.searchFilter[r].val,'\"');return n._queryFilter=o===\"\"?!0:o,n._pagedResultsOffset=n._pageSize*(n.page-1),delete n.page,n._sortKeys&&n.sord===\"desc\"&&(n._sortKeys=\"-\"+n._sortKeys),delete n.sord,e.param(n)},loadComplete:function(e){t.extend(n.data[r],e)},onPaging:function(){var t=JSON.parse(sessionStorage.getItem(s.storageKey+\"-pages-number\")),n=e(e(this).jqGrid(\"getGridParam\",\"pager\")).find(\"input\").val();if(t!==null&&/[0-9]+/.test(n)&&t<parseInt(n,10))return e(this).trigger(\"reloadGrid\",{page:1}),\"stop\"},pager:null,rowNum:10,viewrecords:!0,rowList:[10,20,30]};return c=h(a),e.extend(!0,p,i),c&&e.extend(!0,p,c),u.jqGrid(p),s.search&&u.jqGrid(\"filterToolbar\",{searchOnEnter:!1,defaultSearch:\"eq\"}),u.navGrid(i.pager,{edit:!1,add:!1,del:!1,search:!1,refresh:!1}).navButtonAdd(i.pager,{caption:\"Columns\",buttonicon:\"ui-icon-add\",position:\"first\",onClickButton:function(){u.jqGrid(\"columnChooser\",{modal:!0,width:s.columnChooserOptions.width,height:s.columnChooserOptions.height,done:function(e){e&&l.call(this,e),u.trigger(\"jqGridAfterLoadComplete.setFrozenColumns\")}})}}),u.on(\"jqGridAfterGridComplete\",function(){o&&o()}),u.on(\"jqGridAfterLoadComplete.setFrozenColumns\",function(){var t=n.$el.find(\"#\"+r),i,s;n.$el.find(\"#\"+r+\"_frozen\").find(\"tr\").each(function(){e.jgrid.jqID(this.id)&&(i=t.find(\"#\"+e.jgrid.jqID(this.id)),s=i.outerHeight(),e(this).find(\"td\").height(s),i.find(\"td\").height(s))})}),u},a.templates={},a.renderTemplate=function(e,t,n,r,i,s){a.fillTemplateWithData(e,n,function(e){if(s&&!s())return!1;i===\"append\"?t.append(e):t.html(e),r&&r()})},a.fillTemplateWithData=function(t,n,r){if(t){if(a.templates[t]){var i=Handlebars.compile(a.templates[t])(n);return r&&r(i),i}e.ajax({type:\"GET\",url:t,dataType:\"html\",success:function(e){n===\"unknown\"||n===null?r&&r(e):(a.templates[t]=e,r&&r(Handlebars.compile(e)(n)))},error:r})}},a.reloadTemplate=function(t){e.ajax({type:\"GET\",url:t,dataType:\"html\",success:function(e){a.templates[t]=e}})},a.preloadTemplates=function(){var e;for(e in a.configuration.templateUrls)a.reloadTemplate(a.configuration.templateUrls[e])},e.fn.emptySelect=function(){return this.each(function(){this.tagName===\"SELECT\"&&(this.options.length=0)})},e.fn.loadSelect=function(e){return this.emptySelect().each(function(){if(this.tagName===\"SELECT\"){var t,n,r=this;for(t=0;t<e.length;t++)n=new Option(e[t].value,e[t].key),r.options[r.options.length]=n}})},e.event.special.delayedkeyup={setup:function(t,n){e(this).bind(\"keyup\",e.event.special.delayedkeyup.handler)},teardown:function(t){e(this).unbind(\"keyup\",e.event.special.delayedkeyup.handler)},handler:function(t){var n=this,r=arguments;t.type=\"delayedkeyup\",e.doTimeout(\"delayedkeyup\",250,function(){e.event.handle.apply(n,r)})}},Handlebars.registerHelper(\"t\",function(e){var n={postProcess:\"sprintf\",sprintf:t.map(t.toArray(arguments).slice(1,-1),Handlebars.Utils.escapeExpression)},r;return r=i18n.t(e,n),new Handlebars.SafeString(r)}),Handlebars.registerHelper(\"url\",function(e){var n=\"#\"+o.getLink(o.configuration.routes[e],t.toArray([arguments[1]]));return n}),Handlebars.registerHelper(\"date\",function(e,n){var r=u.parseDateString(e),i;return u.isDateValid(r)?(n&&t.isString(n)?i=u.formatDate(r,n):i=u.formatDate(r),new Handlebars.SafeString(i)):\"\"}),Handlebars.registerHelper(\"selectm\",function(n,r,i,s,o,u){var a,f,l,c=\"\",h,p;f=\"<select\",r&&t.isString(r)&&(f+=' name=\"'+r+'\"'),o&&(f+=' multiple=\"multiple\"'),u&&(f+=' style=\"height: '+u+'px\"'),f+=\">\",l=\"</select> \";for(p in n)h=!1,s&&t.isString(s)?s===n[p]&&(h=!0):i&&i===p&&(h=!0),h?c+='<option value=\"'+p+'\" selected=\"true\">'+e.t(n[p])+\"</option>\":c+='<option value=\"'+p+'\">'+e.t(n[p])+\"</option>\";return a=f+c+l,new Handlebars.SafeString(a)}),Handlebars.registerHelper(\"staticSelect\",function(t,n){var r=e(\"<select />\").html(n.fn(this));return r.find(\"[value=\"+t+\"]\").attr({selected:\"selected\"}),r.html()}),Handlebars.registerHelper(\"select\",function(n,r,i,s,o){var u,a,f,l=\"\",c,h,p;n&&t.isString(n)&&(n=JSON.parse(n)),r&&t.isString(r)?a='<select name=\"'+r+'\" '+o+\">\":a=\"<select>\",f=\"</select> \";for(h in n)c=!1,s&&t.isString(s)&&s!==\"\"?s===n[h]&&(c=!0):i&&i!==\"\"&&i===h&&(c=!0),h===\"__null\"?p=\"\":p=h,c?l+='<option value=\"'+p+'\" selected=\"true\">'+e.t(n[h])+\"</option>\":l+='<option value=\"'+p+'\">'+e.t(n[h])+\"</option>\";return u=a+l+f,new Handlebars.SafeString(u)}),Handlebars.registerHelper(\"p\",function(e,t){var n,r;return n={count:e},r=i18n.t(t.hash.key,n),new Handlebars.SafeString(r)}),Handlebars.registerHelper(\"equals\",function(e,t,n){if(e===t)return n.fn(this)}),Handlebars.registerHelper(\"checkbox\",function(e,n,r){var i=\"<div class='checkboxList' id='\"+n+\"'><ol>\",s,o=t.chain(e).pairs().sortBy(function(e){return e[1]}).value();for(s=0;s<o.length;s++)i+='<li><input type=\"checkbox\" name=\"'+n+'\" value=\"'+o[s][0]+'\" id=\"'+n+\"_\"+encodeURIComponent(o[s][0])+'\"><label for=\"'+n+\"_\"+encodeURIComponent(o[s][0])+'\">'+o[s][1]+\"</label></li>\";return i+=\"</ol></div>\",new Handlebars.SafeString(i)}),Handlebars.registerHelper(\"siteImages\",function(e,t){var n=\"\",r;for(r=0;r<e.length;r++)n+='<img class=\"item\" src=\"'+encodeURI(e[r])+'\" data-site-image=\"'+encodeURI(e[r])+'\" />';return new Handlebars.SafeString(n)}),Handlebars.registerHelper(\"each_with_index\",function(e,t){var n=\"\",r,i=0,s=0,o=0;for(s=0,o=e.length;s<o;s++)e[s]&&(r={},r.value=e[s],r.index=i,r.first=i===0,r.last=i===e.length,n+=t.fn(r),i++);return n}),Handlebars.registerHelper(\"camelCaseToTitle\",function(e){var t=e.replace(/([a-z])([A-Z])/g,\"$1 $2\");return new Handlebars.SafeString(t[0].toUpperCase()+t.slice(1))}),Handlebars.registerHelper(\"stringify\",function(e,t){t=t?t:0;var n=JSON.stringify(e,null,t);return n}),Handlebars.registerHelper(\"ifObject\",function(e,t){return typeof e==\"object\"?t.fn(this):t.inverse(this)}),a.loadSelectOptions=function(t,n,r,i){if(r===undefined||r===!0)t=[{key:\"\",value:e.t(\"common.form.pleaseSelect\")}].concat(t);n.loadSelect(t),i&&i(t)},a.jqConfirm=function(n,r,i){var s={};s[e.t(\"common.form.cancel\")]=function(){e(\"#jqConfirm\").dialog(\"close\")},s[e.t(\"common.form.ok\")]=function(){e(\"#jqConfirm\").dialog(\"close\"),r()},t.isUndefined(i)&&(i=\"550px\"),e('<div id=\"jqConfirm\">'+n+\"</div>\").dialog({title:e.t(\"common.form.confirm\"),modal:!0,resizable:!1,bgiframe:!0,width:i,buttons:s,close:function(){e(\"#jqConfirm\").dialog(\"destroy\").remove()}})},a.responseMessageMatch=function(e,t){var n=JSON.parse(e).message;return n.indexOf(t)>-1},t.mixin({findByValues:function(e,n,r){return t.filter(e,function(e){return t.contains(r,e[n])})},removeByValues:function(e,n,r){return t.reject(e,function(e){return t.contains(r,e[n])})}}),a}),define(\"org/forgerock/commons/ui/common/main/i18nManager\",[\"jquery\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/util/UIUtils\"],function(e,t,n){var r={};return r.init=function(i){var s=[],o={},u=n.convertCurrentUrlToJSON().params;u&&u.locale&&(i=u.locale);if(r.lang!==undefined&&r.lang===i)return;r.lang=i,o={fallbackLng:t.DEFAULT_LANGUAGE,detectLngQS:\"locale\",useCookie:!1,getAsync:!1,lng:i,load:\"unspecific\"},e.i18n.init(o)},r}),define(\"config/errorhandlers/CommonErrorHandlers\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t){var n={badRequest:{status:\"400\",message:\"badRequestError\"},unauthorized:{status:\"401\",event:e.EVENT_UNAUTHORIZED},notImplemented:{status:\"501\",event:e.EVENT_UNAUTHORIZED},forbidden:{status:\"403\",event:e.EVENT_UNAUTHORIZED,message:\"forbiddenError\"},notFound:{status:\"404\",message:\"notFoundError\"},conflict:{status:\"409\",message:\"conflictError\"},serverError:{status:\"503\",event:e.EVENT_SERVICE_UNAVAILABLE},internalServerError:{status:\"500\",message:\"internalError\"},incorrectRevision:{status:\"412\",message:\"incorrectRevisionError\"}};return n}),define(\"config/validators/CommonValidators\",[\"jquery\"],function(e){var t={required:{name:\"Required field\",dependencies:[],validator:function(t,n,r){var i=n.val();if(!i||i===\"\"){r([e.t(\"common.form.validation.required\")]);return}r()}},passwordConfirm:{name:\"Password confirmation\",dependencies:[\"org/forgerock/commons/ui/common/util/ValidatorsUtils\"],validator:function(t,n,r,i){var s=n.val();if(s===\"\"||t.find(\"input[name=password]\").val()!==t.find(\"input[name=passwordConfirm]\").val()){r([e.t(\"common.form.validation.confirmationMatchesPassword\")]);return}r()}},minLength:{name:\"Password validator\",dependencies:[\"org/forgerock/commons/ui/common/util/ValidatorsUtils\"],validator:function(t,n,r,i){var s=n.val(),o=[],u=n.attr(\"minLength\");s.length<u&&o.push(e.t(\"common.form.validation.MIN_LENGTH\",{minLength:u})),o.length===0?r():r(o)}}};return t}),define(\"config/validators/UserValidators\",[],function(e,t){var n={passPhrase:{name:\"Min 4 characters\",dependencies:[],validator:function(e,t,n){var r=t.val(),i=e.find(\"input[name=oldPassPhrase]\");if(i.length!==0&&i.val()===r){n(\"disabled\");return}if(r.length<4){n($.t(\"common.form.validation.minimum4Characters\"));return}n()}},siteImage:{name:\"Site image not same as old\",dependencies:[],validator:function(e,t,n){var r=t.val(),i=e.find(\"input[name=oldSiteImage]\");if(i.length!==0&&i.val()===r){n(\"disabled\");return}n()}},termsOfUse:{name:\"Acceptance required\",dependencies:[],validator:function(e,t,n){if(!t.is(\":checked\")){n($.t(\"common.form.validation.acceptanceRequiredForRegistration\"));return}n()}},oldPassword:{name:\"Required field\",dependencies:[\"org/forgerock/commons/ui/common/main/Configuration\",\"UserDelegate\"],validator:function(e,t,n,r,i){var s=t.val();if(s===\"\"){n($.t(\"common.form.validation.incorrectPassword\"));return}i.checkCredentials(s,function(){n(),e.find(t).attr(\"data-validation-status\",\"ok\"),e.find(\"input[name='Continue']\").click()},function(e){n($.t(\"common.form.validation.incorrectPassword\"))})}},resetPasswordCorrectLogin:{name:\"Reset Password Correct Login\",dependencies:[\"org/forgerock/commons/ui/common/util/ValidatorsUtils\",\"UserDelegate\"],validator:function(e,t,n,r,i){var s=t.val();if(s===\"\"){n($.t(\"common.form.validation.required\")),e.find(t).attr(\"data-validation-status\",\"error\"),e.find(\"input[name='Update']\").click();return}i.getSecurityQuestionForUserName(s,_.bind(function(r){e.find(t).attr(\"data-validation-status\",\"ok\"),n(),$(this.el).trigger(\"userNameFound\",r)},this),_.bind(function(){n(\"No such user\"),e.find(t).attr(\"data-validation-status\",\"error\"),$(this.el).trigger(\"userNameNotFound\")},this))}},securityAnswer:{name:\"Check if security answer is correct\",dependencies:[\"org/forgerock/commons/ui/common/util/ValidatorsUtils\",\"UserDelegate\"],validator:function(e,t,n,r,i){var s=t.val(),o;if(s===\"\"){n($.t(\"common.form.validation.required\"));return}o=e.find(\"input[name='resetUsername']\").val(),i.getBySecurityAnswer(o,s,function(t){e.find(\"input[name=_id]\").val(t._id),n()},function(){e.find(\"input[name=_id]\").val(\"\"),n($.t(\"common.form.validation.incorrectSecurityAnswer\"))})}},newSecurityAnswer:{name:\"\",dependencies:[],validator:function(e,t,n){var r=e.find(t).val();if(e.find(\"input[name=oldSecurityQuestion]\").val()!==e.find(\"select[name=securityQuestion]\").val()){r===\"\"?n($.t(\"common.form.validation.required\")):n();return}r===\"\"?n(\"disabled\"):n()}}};return n}),define(\"config/routes/CommonRoutesConfig\",[\"org/forgerock/commons/ui/common/util/Constants\"],function(e){var t={404:{view:\"org/forgerock/commons/ui/common/NotFoundView\",url:/^([\\w\\W]*)$/,pattern:\"?\"},\"default\":{event:e.EVENT_HANDLE_DEFAULT_ROUTE,role:\"ui-user\",url:/^$/,pattern:\"\"},enableCookies:{view:\"org/forgerock/commons/ui/common/EnableCookiesView\",url:\"enableCookies/\"},login:{view:\"LoginView\",url:/login([^\\&]+)?(&.+)?/,pattern:\"login??\",defaults:[\"/\",\"\"],argumentNames:[\"realm\",\"additionalParameters\"]},logout:{event:e.EVENT_LOGOUT,url:/logout\\/.*/},loginDialog:{dialog:\"LoginDialog\",url:\"loginDialog/\"}};return t}),define(\"config/routes/AMRoutesConfig\",[],function(){var e={forgotPassword:{view:\"org/forgerock/openam/ui/user/profile/ForgotPasswordView\",url:/forgotPassword(\\/[^\\&]*)(\\&.+)?/,pattern:\"forgotPassword??\",forceUpdate:!0,defaults:[\"/\",\"\"],argumentNames:[\"realm\",\"additionalParameters\"]},forgotPasswordChange:{view:\"org/forgerock/openam/ui/user/profile/ForgotPasswordView\",url:/forgotPasswordChange(\\/[^\\&]*)(\\&.+)?/,pattern:\"forgotPasswordChange??\",forceUpdate:!0,defaults:[\"/\",\"\"],argumentNames:[\"realm\",\"additionalParameters\"]},continueSelfRegister:{view:\"org/forgerock/openam/ui/user/profile/RegisterView\",url:/continueRegister(\\/[^\\&]*)(\\&.+)?/,pattern:\"continueRegister??\",forceUpdate:!0,defaults:[\"/\",\"\"],argumentNames:[\"realm\",\"additionalParameters\"]},confirmLogin:{view:\"org/forgerock/openam/ui/user/login/RESTConfirmLoginView\",role:\"ui-user\",url:\"confirmLogin/\",forceUpdate:!0},dashboard:{view:\"org/forgerock/openam/ui/dashboard/DashboardView\",role:\"ui-user\",url:\"dashboard/\",forceUpdate:!0},oauth2Tokens:{view:\"org/forgerock/openam/ui/user/oauth2/TokensView\",role:\"ui-user\",url:\"oauth2/tokens\",forceUpdate:!0},loggedOut:{view:\"org/forgerock/openam/ui/user/logout/RESTLogoutView\",url:/loggedOut([^\\&]+)?(&.+)?/,pattern:\"loggedOut??\",defaults:[\"/\",\"\"],argumentNames:[\"realm\",\"additionalParameters\"]}};return e}),define(\"config/routes/UserRoutesConfig\",[],function(){var e={profile:{view:\"UserProfileView\",role:\"ui-user\",url:\"profile/\",forceUpdate:!0},selfRegistration:{view:\"RegisterView\",url:/register(\\/[^\\&]*)(\\&.+)?/,pattern:\"register??\",forceUpdate:!0,argumentNames:[\"realm\",\"additionalParameters\"],defaults:[\"/\",\"\"]},changeSecurityData:{base:\"profile\",dialog:\"ChangeSecurityDataDialog\",role:\"ui-user,ui-admin\",url:\"profile/change_security_data/\"},confirmPassword:{base:\"profile\",dialog:\"ConfirmPasswordDialog\",role:\"ui-user\",url:\"profile/confirm_password_dialog/\"}};return e}),define(\"config/messages/CommonMessages\",[],function(){var e={authenticationFailed:{msg:\"config.messages.CommonMessages.authenticationFailed\",type:\"error\"},loginFailureLockout:{msg:\"config.messages.CommonMessages.loginFailureLockout\",type:\"error\"},maxSessionsLimitOrSessionQuota:{msg:\"config.messages.CommonMessages.maxSessionsLimitOrSessionQuota\",type:\"error\"},invalidRealm:{msg:\"config.messages.CommonMessages.invalidRealm\",type:\"error\"},serviceUnavailable:{msg:\"config.messages.CommonMessages.serviceUnavailable\",type:\"error\"},unknown:{msg:\"config.messages.CommonMessages.unknown\",type:\"error\"},loggedIn:{msg:\"config.messages.CommonMessages.loggedIn\",type:\"info\"},errorFetchingData:{msg:\"config.messages.CommonMessages.errorFetchingData\",type:\"error\"},loggedOut:{msg:\"config.messages.CommonMessages.loggedOut\",type:\"info\"},loginTimeout:{msg:\"config.messages.CommonMessages.loginTimeout\",type:\"info\"},unauthorized:{msg:\"config.messages.CommonMessages.unauthorized\",type:\"error\"},internalError:{msg:\"config.messages.CommonMessages.internalError\",type:\"error\"},forbiddenError:{msg:\"config.messages.CommonMessages.forbiddenError\",type:\"error\"},notFoundError:{msg:\"config.messages.CommonMessages.notFoundError\",type:\"error\"},badRequestError:{msg:\"config.messages.CommonMessages.badRequestError\",type:\"error\"},conflictError:{msg:\"config.messages.CommonMessages.conflictError\",type:\"error\"},incorrectRevisionError:{msg:\"config.messages.CommonMessages.incorrectRevisionError\",type:\"error\"},tokenNotFound:{msg:\"config.messages.CommonMessages.tokenNotFound\",type:\"error\"},securityDataChanged:{msg:\"config.messages.CommonMessages.securityDataChanged\",type:\"info\"}};return e}),define(\"config/messages/UserMessages\",[],function(){var e={usernameNotFound:{msg:\"config.messages.UserMessages.usernameNotFound\",type:\"error\"},noEmailProvided:{msg:\"config.messages.UserMessages.noEmailProvided\",type:\"error\"},emailNotSent:{msg:\"config.messages.UserMessages.emailNotSent\",type:\"error\"},unableToRegister:{msg:\"config.messages.UserMessages.unableToRegister\",type:\"error\"},invalidOldPassword:{msg:\"config.messages.UserMessages.invalidOldPassword\",type:\"error\"},changedPassword:{msg:\"config.messages.UserMessages.changedPassword\",type:\"info\"},profileUpdateFailed:{msg:\"config.messages.UserMessages.profileUpdateFailed\",type:\"error\"},profileUpdateSuccessful:{msg:\"config.messages.UserMessages.profileUpdateSuccessful\",type:\"info\"},userNameUpdated:{msg:\"config.messages.UserMessages.userNameUpdated\",type:\"info\"},afterRegistration:{msg:\"config.messages.UserMessages.afterRegistration\",type:\"info\"},siteIdentificationChanged:{msg:\"config.messages.UserMessages.siteIdentificationChanged\",type:\"info\"},userAlreadyExists:{msg:\"config.messages.UserMessages.userAlreadyExists\",type:\"error\"},errorDeletingNotification:{msg:\"config.messages.UserMessages.errorDeletingNotification\",type:\"error\"},errorFetchingNotifications:{msg:\"config.messages.UserMessages.errorFetchingNotifications\",type:\"error\"},identityNoSpace:{msg:\"config.messages.UserMessages.identityNoSpace\",type:\"error\"},selfRegistrationDisabled:{msg:\"config.messages.UserMessages.selfRegistrationDisabled\",type:\"error\"}};return e}),define(\"config/process/CommonConfig\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t){var n=[{startEvent:e.EVENT_APP_INTIALIZED,description:\"Starting basic components\",dependencies:[\"org/forgerock/commons/ui/common/components/Navigation\",\"org/forgerock/commons/ui/common/components/popup/PopupCtrl\",\"org/forgerock/commons/ui/common/components/Breadcrumbs\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/SessionManager\"],processDescription:function(n,r,i,s,o,u,a,f,l){s.init(),a.preloadTemplates(),l.getLoggedUser(function(n){u.setProperty(\"loggedUser\",n),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!1}),o.init()},function(){f.cookiesEnabled()||(location.href=\"#enableCookies/\"),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),o.init()})}},{startEvent:e.EVENT_CHANGE_BASE_VIEW,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/components/Navigation\",\"org/forgerock/commons/ui/common/components/popup/PopupCtrl\",\"org/forgerock/commons/ui/common/components/Breadcrumbs\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/LoggedUserBarView\",\"org/forgerock/commons/ui/common/components/Footer\"],processDescription:function(e,t,n,r,i,s,o){t.init(),n.init(),r.buildByUrl(),s.render(),o.render()}},{startEvent:e.EVENT_AUTHENTICATION_DATA_CHANGED,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/components/Navigation\",\"org/forgerock/commons/ui/common/LoggedUserBarView\"],processDescription:function(n,r,i,s){var o,u;o=\"org/forgerock/commons/ui/common/main/ServiceInvoker\",u=r.getModuleConfiguration(o),n.anonymousMode?(u.defaultHeaders[e.HEADER_PARAM_PASSWORD]=e.ANONYMOUS_PASSWORD,u.defaultHeaders[e.HEADER_PARAM_USERNAME]=e.ANONYMOUS_USERNAME,u.defaultHeaders[e.HEADER_PARAM_NO_SESSION]=!0,r.setProperty(\"loggedUser\",null),s.render(),i.reload()):(delete r.globalData.authorizationFailurePending,delete u.defaultHeaders[e.HEADER_PARAM_PASSWORD],delete u.defaultHeaders[e.HEADER_PARAM_USERNAME],delete u.defaultHeaders[e.HEADER_PARAM_NO_SESSION],t.sendEvent(e.EVENT_AUTHENTICATED)),r.sendSingleModuleConfigurationChangeInfo(o)}},{startEvent:e.EVENT_UNAUTHORIZED,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/SessionManager\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"LoginDialog\"],processDescription:function(n,r,i,s,o,u,a){var f=function(){var e=u.getCurrentHash();!s.gotoURL&&!e.match(i.configuration.routes.login.url)&&s.setProperty(\"gotoURL\",\"#\"+e)};if(s.globalData.authorizationFailurePending!==undefined)return;s.globalData.authorizationFailurePending=!0;if(!s.loggedUser){f(),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),t.sendEvent(e.EVENT_CHANGE_VIEW,{route:i.configuration.routes.login});return}typeof n!=\"object\"||n===null||typeof n.error!=\"object\"||n.error===null||n.error.type===\"GET\"?(f(),o.logout(function(){t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"unauthorized\"),t.sendEvent(e.EVENT_CHANGE_VIEW,{route:i.configuration.routes.login})})):r.showDialog(i.configuration.routes.loginDialog.dialog)}},{startEvent:e.EVENT_DIALOG_CLOSE,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/components/Navigation\"],processDescription:function(e,t,n,r,i){r.currentDialog=\"null\",n.baseView&&(require(t.configuration.routes[n.baseView].view).rebind(),t.navigate(t.getLink(t.configuration.routes[n.baseView],n.baseViewArgs)),i.reload())}},{startEvent:e.EVENT_REST_CALL_ERROR,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/SpinnerManager\",\"org/forgerock/commons/ui/common/main/ErrorsHandler\"],processDescription:function(e,t,n){n.handleError(e.data,e.errorsHandlers),t.hideSpinner()}},{startEvent:e.EVENT_START_REST_CALL,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/SpinnerManager\"],processDescription:function(e,t){e.suppressSpinner||t.showSpinner()}},{startEvent:e.EVENT_END_REST_CALL,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/SpinnerManager\"],processDescription:function(e,t){t.hideSpinner()}},{startEvent:e.EVENT_CHANGE_VIEW,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/components/Navigation\",\"org/forgerock/commons/ui/common/main/SpinnerManager\",\"org/forgerock/commons/ui/common/SiteConfigurator\"],processDescription:function(e,t,n,r,i,s,o){var u=e.route,a=e.args,f=e.callback,l=require(u.view);if(!n.checkRole(u))return;l.route=u,a=a||u.defaults,r.setProperty(\"baseView\",\"\"),r.setProperty(\"baseViewArgs\",\"\"),o.configurePage(u,a).then(function(){s.hideSpinner(10),n.routeTo(u,{trigger:!0,args:a}),t.changeView(u.view,a,f,u.forceUpdate),i.reload()})}},{startEvent:e.EVENT_SHOW_DIALOG,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/components/Navigation\"],processDescription:function(e,t,n,r,i){var s=e.route,o=e.args,u=e.callback;if(!n.checkRole(s))return;r.setProperty(\"baseView\",e.base),r.setProperty(\"baseViewArgs\",o),i.init(),!_.has(s,\"baseView\")&&_.has(s,\"base\")?t.changeView(n.configuration.routes[s.base].view,t.currentViewArgs,function(){t.showDialog(s.dialog,o,u),n.navigate(n.getLink(s,o))}):t.changeView(s.baseView.view,t.currentViewArgs,function(){t.showDialog(s.dialog,o,u),n.navigate(n.getLink(s,o))})}},{startEvent:e.EVENT_SERVICE_UNAVAILABLE,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\"],processDescription:function(n,r){t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"serviceUnavailable\")}},{startEvent:e.ROUTE_REQUEST,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/components/Navigation\"],processDescription:function(e,t,n){e.trigger===!1?t.routeTo(t.configuration.routes[e.routeName],{trigger:!1,args:e.args}):t.routeTo(t.configuration.routes[e.routeName],{trigger:!0,args:e.args}),n.reload()}},{startEvent:e.EVENT_DISPLAY_MESSAGE_REQUEST,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/components/Messages\"],processDescription:function(e,t){t.messages.displayMessageFromConfig(e)}},{startEvent:e.EVENT_LOGIN_REQUEST,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/SessionManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/ViewManager\"],processDescription:function(n,r,i,s,o){r.login(n,function(n){i.setProperty(\"loggedUser\",n),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!1});if(!i.backgroundLogin){if(i.globalData.auth.urlParams&&i.globalData.auth.urlParams.goto)return window.location.href=i.globalData.auth.urlParams.goto,!1;if(i.gotoURL&&_.indexOf([\"#\",\"\",\"#/\",\"/#\"],i.gotoURL)===-1)console.log(\"Auto redirect to \"+i.gotoURL),s.navigate(i.gotoURL,{trigger:!0}),delete i.gotoURL;else{if(!s.checkRole(s.configuration.routes[\"default\"])){t.sendEvent(e.EVENT_UNAUTHORIZED);return}t.sendEvent(e.ROUTE_REQUEST,{routeName:\"default\",args:[]})}}else o.currentDialog!==\"null\"&&require(o.currentDialog).close();t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"loggedIn\")},function(n){if(i.globalData.auth.urlParams&&i.globalData.auth.urlParams.gotoOnFail)return window.location.href=i.globalData.auth.urlParams.gotoOnFail,!1;n=n?n:\"authenticationFailed\",t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,n)})}},{startEvent:e.EVENT_LOGOUT,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/SessionManager\"],processDescription:function(n,r,i,s){s.logout(function(){t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"loggedOut\"),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),t.sendEvent(e.EVENT_CHANGE_VIEW,{route:r.configuration.routes.login}),delete i.gotoURL})}}];return n}),define(\"config/process/UserConfig\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t){var n=[{startEvent:e.FORGOTTEN_PASSWORD_CHANGED_SUCCESSFULLY,description:\"\",dependencies:[],processDescription:function(n){t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"changedPassword\"),t.sendEvent(e.EVENT_LOGIN_REQUEST,{userName:n.userName,password:n.password})}},{startEvent:e.EVENT_USER_SUCCESSFULLY_REGISTERED,description:\"User registered\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\"],processDescription:function(n,r){t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"afterRegistration\"),n.autoLogin&&t.sendEvent(e.EVENT_LOGIN_REQUEST,{userName:n.user.userName,password:n.user.password})}},{startEvent:e.EVENT_HANDLE_DEFAULT_ROUTE,description:\"\",dependencies:[\"org/forgerock/commons/ui/common/main/Router\"],processDescription:function(e,t){t.routeTo(t.configuration.routes.profile,{trigger:!0})}}];return n}),define(\"config/process/AMConfig\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t){var n=[{startEvent:e.EVENT_LOGOUT,description:\"used to override common logout event\",override:!0,dependencies:[\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/SessionManager\"],processDescription:function(n,r,i,s){s.logout(function(){i.setProperty(\"loggedUser\",null),t.sendEvent(e.EVENT_CHANGE_VIEW,{route:r.configuration.routes.loggedOut}),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),delete i.gotoURL},function(){i.setProperty(\"loggedUser\",null),t.sendEvent(e.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"unauthorized\"),t.sendEvent(e.EVENT_CHANGE_VIEW,{route:r.configuration.routes.login})})}},{startEvent:e.EVENT_INVALID_REALM,override:!0,dependencies:[\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\"],processDescription:function(n,r,i){n.error.responseJSON.message.indexOf(\"Invalid realm\")>-1&&(i.baseTemplate?t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"invalidRealm\"):(r.navigate(\"login\",{trigger:!0}),t.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"invalidRealm\")))}}];return n}),define(\"config/main\",[\"./errorhandlers/CommonErrorHandlers\",\"./validators/CommonValidators\",\"./validators/UserValidators\",\"./routes/CommonRoutesConfig\",\"./routes/AMRoutesConfig\",\"./routes/UserRoutesConfig\",\"./messages/CommonMessages\",\"./messages/UserMessages\",\"./AppConfiguration\",\"./process/CommonConfig\",\"./process/UserConfig\",\"./process/AMConfig\"]),define(\"org/forgerock/openam/ui/common/util/Constants\",[\"org/forgerock/commons/ui/common/util/Constants\"],function(e){var t=location.pathname.substring(1,location.pathname.indexOf(\"XUI\")-1);return e.context=t,e.THEME_CONFIG_PATH=\"themeConfig.json\",e.CONSOLE_PATH=\"/\"+e.context+\"/console\",e.CONSOLE_USERS=[\"amadmin\"],e.OPENAM_HEADER_PARAM_CUR_PASSWORD=\"currentpassword\",e.BASE_PATH=\"\",e}),define(\"org/forgerock/openam/ui/common/util/RealmHelper\",[],function(){var e={};return e.cleanRealm=function(e){typeof e==\"string\"&&e.charAt(0)!==\"/\"&&(e=\"/\"+e);if(typeof e!=\"string\"||e===\"/\")e=\"\";return e},e}),define(\"org/forgerock/commons/ui/common/util/ObjectUtil\",[\"org/forgerock/commons/ui/common/util/DateUtil\"],function(e){var t={};return t.copyObject=function(n){var r,i;if(!n)return null;if(n instanceof Date)return r=e.currentDate(),r.setTime(n.getTime()),r;if(n instanceof Array)return r=[],r;if(n instanceof Object){r={};for(i in n)n.hasOwnProperty(i)&&(t.copyObject[i]=t.copyObject(n[i]));return r}throw new Error(\"Can't copy the object\")},t.patchObject=function(e,t,n){var r,i={};for(r in t)e.hasOwnProperty(r)&&e[r]instanceof Array&&t[r]instanceof Array||(e[r]=t[r]);return i},t}),define(\"org/forgerock/commons/ui/common/main/ServiceInvoker\",[\"jquery\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/ObjectUtil\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t,n,r,i){var s=new i;return s.restCall=function(r){var i=this,o,u,a,f=!1;return f=r.hasOwnProperty(\"dataType\")&&r.dataType!==\"json\",f||(r.contentType=\"application/json\"),o=r,s.applyDefaultHeadersIfNecessary(o,s.configuration.defaultHeaders),o.headers[t.HEADER_PARAM_NO_SESSION]===!1&&delete o.headers[t.HEADER_PARAM_NO_SESSION],n.sendEvent(t.EVENT_START_REST_CALL,{suppressSpinner:r.suppressSpinner}),u=o.success,a=o.error,o.success=function(r,i,s){r&&r.error?(n.sendEvent(t.EVENT_REST_CALL_ERROR,{data:e.extend({},r,{type:this.type}),textStatus:i,jqXHR:s,errorsHandlers:o.errorsHandlers}),a&&a(r)):(n.sendEvent(t.EVENT_END_REST_CALL,{data:r,textStatus:i,jqXHR:s}),u&&u(r))},o.error=function(r,i,s){n.sendEvent(t.EVENT_REST_CALL_ERROR,{data:e.extend({},r,{type:this.type}),textStatus:i,errorThrown:s,errorsHandlers:o.errorsHandlers}),a&&a(r)},f||(o.dataType=\"json\",o.contentType=\"application/json\"),o.xhrFields={withCredentials:!0},o.headers[\"X-Requested-With\"]=\"XMLHttpRequest\",e.ajax(o)},s.applyDefaultHeadersIfNecessary=function(e,t){var n;if(!t)return;if(!e.headers)e.headers=t;else for(n in t)e.headers[n]===undefined&&(e.headers[n]=t[n])},s}),define(\"org/forgerock/commons/ui/common/main/AbstractDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/ServiceInvoker\"],function(e,t,n){var r=function(n){var r=new RegExp(\"^/\"+e.context+\"/([\\\\w/]*)\"),i=n.match(r);this.serviceUrl=n,i&&i.length>1&&(this.baseEntity=i[1])};return r.prototype.serviceCall=function(r){return r.hasOwnProperty(\"headers\")||(r.headers={}),t.hasOwnProperty(\"passwords\")&&t.passwords.hasOwnProperty(\"password\")&&(r.headers[e.HEADER_PARAM_REAUTH]=t.passwords.password),r.serviceUrl?r.url=r.serviceUrl+r.url:r.url=this.serviceUrl+r.url,n.restCall(r)},r.prototype.createEntity=function(e,t,n,r){console.debug(\"create entity\");var i={};if(typeof e==\"object\"&&e!==null)throw\"Invalid id value passed to createEntity\";return e!==null&&e!==undefined?(t._rev?i[\"If-None-Match\"]='\"'+t._rev+'\"':i[\"If-None-Match\"]='\"*\"',this.serviceCall({url:\"/\"+e,type:\"PUT\",success:n,error:r,data:JSON.stringify(t),headers:i})):this.serviceCall({url:\"?_action=create\",type:\"POST\",success:n,error:r,data:JSON.stringify(t),headers:i})},r.prototype.deleteEntity=function(e,t,n){console.debug(\"delete entity\");var r=this;return this.readEntity(e,function(i){var s={url:\"/\"+e,type:\"DELETE\",success:t,error:n};i._rev&&(s.headers=[],s.headers[\"If-Match\"]='\"'+i._rev+'\"'),r.serviceCall(s)},n)},r.prototype.readEntity=function(e,t,n){return console.debug(\"get entity\"),this.serviceCall({url:\"/\"+e,type:\"GET\",success:t,error:n})},r.prototype.updateEntity=function(e,t,n,r){console.debug(\"update entity\");var i={};return t._rev?i[\"If-Match\"]='\"'+t._rev+'\"':i[\"If-Match\"]='\"*\"',this.serviceCall({url:\"/\"+e,type:\"PUT\",success:n,error:r,data:JSON.stringify(t),headers:i})},r.prototype.patchEntityDifferences=function(e,t,n,r,i,s,o){console.debug(\"patching entity\");var u=this.getDifferences(t,n);if(!u.length){console.debug(\"No changes detected\"),s&&s();return}return this.patchEntity(e,u,r,i,s,o)},r.prototype.patchEntity=function(e,t,n,r,i,s){var o;for(o=0;o<t.length;o++)typeof t[o].field!=\"undefined\"&&(t[o].field=\"/\"+t[o].field);return this.serviceCall({url:\"/\"+e.id,type:\"PATCH\",success:n,error:r,data:JSON.stringify(t),headers:{\"If-Match\":'\"'+e.rev+'\"'},errorsHandlers:s})},r.prototype.patchEntityAttribute=function(e,t,n,r,i,s){return this.patchEntity(e,[{operation:\"replace\",field:t,value:n}],r,i,s)},r.prototype.getDifferences=function(e,t,n){var r,i,s,o,u=[],a={};n||(n=\"replace\");for(s in t)o=t[s],typeof o!=\"function\"&&(r=t[s],i=e[s],(r!==\"\"||i)&&r!==i&&(a={operation:n,field:s,value:r},u.push(a)));return u},r}),define(\"org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/openam/ui/common/util/RealmHelper\"],function(e,t,n,r,i,s){var o=new t(e.host+\"/\"+e.context),u=\"/\";return o.getConfiguration=function(e,t){console.info(\"Getting configuration\"),o.serviceCall({headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.1\"},url:\"/json/serverinfo/*\",success:function(t){var n=location.hostname,r=t.FQDN,s=i.getUrl();n!==r?location.href=s.replace(n,r):e(t)},error:t})},o.checkForDifferences=function(t,r){var a=_.indexOf(t.argumentNames,\"realm\"),f=i.convertCurrentUrlToJSON().params;return f&&typeof f.realm==\"string\"&&f.realm!==\"\"?(n.globalData.auth.realm=f.realm,n.globalData.auth.realm[0]!==\"/\"&&(n.globalData.auth.realm=\"/\"+n.globalData.auth.realm)):a!==-1&&r[a]!==undefined&&r[a]!==null&&(n.globalData.auth.realm=r[a]),u!==n.globalData.auth.realm?(u=s.cleanRealm(n.globalData.auth.realm),o.serviceCall({type:\"GET\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.1\"},url:\"/json\"+u+\"/serverinfo/*\",errorsHandlers:{unauthorized:{status:\"401\"},\"Bad Request\":{status:\"400\",event:e.EVENT_INVALID_REALM}}})):$.Deferred().resolve()},o}),define(\"org/forgerock/openam/ui/common/delegates/PolicyDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\"],function(e,t){var n=new t(\"/policy\");return n.readEntity=function(e,t){var n=$.Deferred(),r={required:'\\nfunction (fullObject, value, params, propName) {\\n    if (value === undefined) {\\n        return [{\"policyRequirement\":\"REQUIRED\"}];\\n    }\\n    return [];\\n}\\n',\"not-empty\":'\\nfunction (fullObject, value, params, property) {\\n    if (value !== undefined && (value === null || !value.length)) {\\n        return [{\"policyRequirement\":\"REQUIRED\"}];\\n    } else {\\n        return [];\\n    }\\n}\\n',\"valid-phone-format\":'\\nfunction (fullObject, value, params, property) {\\n    var phonePattern = /^\\\\+?([0-9\\\\- \\\\(\\\\)])*$/;\\n    \\n        if (typeof(value) === \"string\" && value.length && !phonePattern.test(value)) {\\n            return [ {\"policyRequirement\": \"VALID_PHONE_FORMAT\"}];\\n        } else {\\n            return [];\\n        }\\n    }',\"valid-email-address-format\":'\\nfunction (fullObject, value, params, property) {\\n    var emailPattern = /^([A-Za-z0-9_\\\\-\\\\.])+\\\\@([A-Za-z0-9_\\\\-\\\\.])+\\\\.([A-Za-z]{2,4})$/; \\n        \\n        if (typeof(value) === \"string\" && value.length && !emailPattern.test(value)) {\\n            return [ {\"policyRequirement\": \"VALID_EMAIL_ADDRESS_FORMAT\"}];\\n        } else {\\n            return [];\\n        }\\n    }'},i={};return e.match(new RegExp(\"users/[^/]+$\"))&&(i={resource:e,properties:[{policyRequirements:[\"REQUIRED\"],policies:[{policyRequirements:[\"REQUIRED\"],policyId:\"required\",policyFunction:r.required},{policyRequirements:[\"REQUIRED\"],policyId:\"not-empty\",policyFunction:r[\"not-empty\"]}],name:\"uid\"},{policyRequirements:[\"VALID_EMAIL_ADDRESS_FORMAT\"],policies:[{policyRequirements:[\"VALID_EMAIL_ADDRESS_FORMAT\"],policyId:\"valid-email-address-format\",policyFunction:r[\"valid-email-address-format\"]}],name:\"mail\"},{policyRequirements:[\"REQUIRED\"],policies:[{policyRequirements:[\"REQUIRED\"],policyId:\"required\",policyFunction:r.required},{policyRequirements:[\"REQUIRED\"],policyId:\"not-empty\",policyFunction:r[\"not-empty\"]}],name:\"sn\"},{policyRequirements:[\"VALID_PHONE_FORMAT\"],policies:[{policyRequirements:[\"VALID_PHONE_FORMAT\"],policyId:\"valid-phone-format\",policyFunction:r[\"valid-phone-format\"]}],name:\"telephoneNumber\"}]}),n.resolve(i),t&&t(i),n},n}),define(\"org/forgerock/openam/ui/common/main\",[\"./util/Constants\",\"./util/ThemeManager\",\"./util/RealmHelper\",\"./delegates/SiteConfigurationDelegate\",\"./delegates/PolicyDelegate\"]),define(\"org/forgerock/commons/ui/common/util/ValidatorsUtils\",[\"jquery\",\"underscore\"],function(e,t){var n={};return n.namePattern=/^([A-Za'-\\u0105\\u0107\\u0119\\u0142\\u00F3\\u015B\\u017C\\u017A\\u0104\\u0106\\u0118\\u0141\\u00D3\\u015A\\u017B\\u0179\\u00C0\\u00C8\\u00CC\\u00D2\\u00D9\\u00E0\\u00E8\\u00EC\\u00F2\\u00F9\\u00C1\\u00C9\\u00CD\\u00D3\\u00DA\\u00DD\\u00E1\\u00E9\\u00ED\\u00F3\\u00FA\\u00FD\\u00C2\\u00CA\\u00CE\\u00D4\\u00DB\\u00E2\\u00EA\\u00EE\\u00F4\\u00FB\\u00C3\\u00D1\\u00D5\\u00E3\\u00F1\\u00F5\\u00C4\\u00CB\\u00CF\\u00D6\\u00DC\\u0178\\u00E4\\u00EB\\u00EF\\u00F6\\u00FC\\u0178\\u00A1\\u00BF\\u00E7\\u00C7\\u0152\\u0153\\u00DF\\u00D8\\u00F8\\u00C5\\u00E5\\u00C6\\u00E6\\u00DE\\u00FE\\u00D0\\u00F0\\-\\s])+$/,n.phonePattern=/^\\+?([0-9\\- \\(\\)])*$/,n.emailPattern=/^([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})$/,n.setTick=function(e,t){var n=e.nextAll(\"span\");t?(n.removeClass(\"ok\"),n.addClass(\"error\"),n.html(\"x\")):(n.removeClass(\"error\"),n.addClass(\"ok\"),n.html(\"\"))},n.setErrors=function(n,r,i){t.each(r.split(\" \"),function(r){t.each(n.find(\"span[data-for-validator=\"+r+\"]\"),function(t){var r=n.find(t),s=r.attr(\"data-for-req\"),o=r.prev(\"span\");s||(s=r.text()),e.inArray(s,i)!==-1?(o.removeClass(\"ok\"),o.addClass(\"error\"),o.html(\"x\")):(o.removeClass(\"error\"),o.addClass(\"ok\"),o.html(\"&#10004;\"))})})},n.hideValidation=function(e,t){e.nextAll(\"span\").hide(),e.nextAll(\"div.validation-message:first\").hide(),t.find(\"div.validation-message[for='\"+e.attr(\"name\")+\"']\").hide()},n.showValidation=function(e,t){e.nextAll(\"span\").show(),e.nextAll(\"div.validation-message:first\").show(),t.find(\"div.validation-message[for='\"+e.attr(\"name\")+\"']\").show()},n.hideBox=function(e){e.find(\".group-field-errors\").hide()},n.showBox=function(e){e.find(\".group-field-errors\").show()},n}),define(\"org/forgerock/commons/ui/common/main/ValidatorsManager\",[\"jquery\",\"underscore\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"org/forgerock/commons/ui/common/util/ValidatorsUtils\"],function($,_,AbstractConfigurationAware,validatorUtils){var obj=new AbstractConfigurationAware;return obj.bindValidators=function(el,baseEntity,callback){var event,input,policyDelegate,validateDependents=function(e){e.attr(\"data-validation-dependents\")&&e.closest(\"form\").find(\":input\").filter(function(){return $.inArray($(this).attr(\"name\"),e.attr(\"data-validation-dependents\").split(\",\"))!==-1}).trigger(\"change\")},postValidation=function(e){var t=[],n=[],r=e.length,i,s;for(s=0;s<r;s++)i=e[s],$.inArray(i.policyRequirement,t)===-1&&(t.push(i.policyRequirement),n.push($.t(\"common.form.validation.\"+i.policyRequirement,i.params)));validatorUtils.setErrors(el.find(\".validationRules[data-for-validator~='\"+this.input.attr(\"name\")+\"']\"),this.input.attr(\"name\"),t),e.length?this.input.attr(\"data-validation-status\",\"error\"):this.input.attr(\"data-validation-status\",\"ok\"),el.trigger(\"onValidate\",[this.input,n.length?n.join(\"<br>\"):!1]),validateDependents(this.input)};_.each(el.find(\"[data-validator]\"),function(e){e=el.find(e),e.attr(\"data-validation-status\",\"error\"),e.attr(\"data-validator-event\")?event=e.attr(\"data-validator-event\")+\" change blur paste\":event=\"change blur paste\",_.each(e.attr(\"data-validator\").split(\" \"),function(t){e.on(event,function(n){obj.validate.call({input:e,el:el,validatorType:t},n),validateDependents(e)})})}),baseEntity&&obj.configuration.policyDelegate&&(policyDelegate=require(obj.configuration.policyDelegate),policyDelegate.readEntity(baseEntity,_.bind(function(policy){_.each(policy.properties,_.bind(function(property,i){var input,event,idx;property.name.match(/\\[\\*\\]$/)?input=el.find(\"[name^='\"+property.name.replace(/\\*\\]$/,\"\")+\"']\"):input=el.find(\"[name='\"+property.name+\"']\"),input.attr(\"data-validation-status\",\"error\"),input.attr(\"data-validator-event\")?event=input.attr(\"data-validator-event\")+\" keyup change blur paste\":event=\"keyup change blur paste\",_.each(property.policyRequirements,function(e){switch(e){case\"REAUTH_REQUIRED\":el.trigger(\"check_reauth\",property.name);break;case\"REQUIRED\":input.prop(\"required\",!0)}}),_.each(el.find(\".validationRules[data-for-validator~='\"+property.name+\"']\"),function(e){e=el.find(e);if(!e.attr(\"validation-loaded\")){var t={};_.each(property.policies,function(e){e.params&&_.each(e.policyRequirements,function(n){t[n]?$.extend(t[n],e.params):t[n]=e.params})}),_.each(property.policyRequirements,function(n){var r=$('<div class=\"field-rule\"><span class=\"error\">x</span><span/></div>');$.t(\"common.form.validation.\"+n,t[n]).length&&(r.find(\"span:last\").attr(\"data-for-req\",n).attr(\"data-for-validator\",input.attr(\"name\")).text($.t(\"common.form.validation.\"+n,t[n])),e.append(r))}),e.attr(\"validation-loaded\",\"true\")}}),_.each(input,function(item,idx){el.find(input[idx]).on(event,_.bind(function(e){var validationContext=e.type===\"change\"||e.type===\"blur\"?\"server\":\"client\";$.doTimeout(this.input.attr(\"name\")+\"validation\"+validationContext,100,_.bind(function(){var j,params,policyFailures=[],hasServerPolicies=!1,EVAL_IS_EVIL=eval;if(!this.input.closest(\"form\")[0])return;this.input.siblings(\".validation-message\").empty(),_.each(this.property.policies,_.bind(function(e,t){if(e.policyFunction)e.params||(e.params={}),params=e.params,policyFailures=policyFailures.concat(EVAL_IS_EVIL(\"policyFunction = \"+e.policyFunction).call({failedPolicyRequirements:policyFailures},form2js(this.input.closest(\"form\")[0]),this.input.val(),params,this.property.name));else if($.inArray(\"REAUTH_REQUIRED\",e.policyRequirements)===-1||e.policyRequirements.length!==1)hasServerPolicies=!0},this)),validationContext===\"server\"&&(hasServerPolicies||this.input.attr(\"data-validation-force-server\"))?(policyFailures=[],policyDelegate.validateProperty(baseEntity,{fullObject:form2js(this.input.closest(\"form\")[0],\".\",!1),value:this.input.val(),property:this.property.name},_.bind(function(e){var t;if(!e.result)for(t=0;t<e.failedPolicyRequirements.length;t++)policyFailures=policyFailures.concat(e.failedPolicyRequirements[t].policyRequirements);postValidation.call(this,policyFailures)},this))):postValidation.call(this,policyFailures)},this))},{property:property,input:el.find(input[idx])}))},this)},this)),callback&&callback()},this)))},obj.validateAllFields=function(e){e.find(\":input\").trigger(\"blur\")},obj.formValidated=function(e){return e.find(\"[data-validation-status=error]\").length===0&&e.find(\"[data-validation-status=ok]\").length!==0},obj.formNotInvalid=function(e){return e.find(\"[data-validation-status=error]\").length===0},obj.validate=function(e){var t=[this.el,this.input,_.bind(obj.afterValidation,this)],n,r;_.each(this.validatorType.split(\" \"),_.bind(function(e){n=obj.configuration.validators[e];if(n){this.el.trigger(\"onValidate\",[this.input,\"inProgress\"]);for(r=0;r<n.dependencies.length;r++)t.push(require(n.dependencies[r]));n.validator.apply(this,t)}else console.error(\"Could not find such validator: \"+n)},this))},obj.afterValidation=function(e){e===\"inProgress\"?this.input.attr(\"data-validation-status\",\"error\"):e===\"disabled\"?this.input.attr(\"data-validation-status\",\"disabled\"):e?this.input.attr(\"data-validation-status\",\"error\"):this.input.attr(\"data-validation-status\",\"ok\"),this.el.trigger(\"onValidate\",[this.input,e,this.validatorType])},obj}),define(\"org/forgerock/commons/ui/common/main/AbstractView\",[\"jquery\",\"underscore\",\"backbone\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/util/ValidatorsUtils\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/util/Constants\",\"ThemeManager\"],function(e,t,n,r,i,s,o,u,a,f,l){var c=n.View.extend({element:\"#content\",baseTemplate:\"templates/common/DefaultBaseTemplate.html\",mode:\"replace\",formLock:!1,data:{},parentRender:function(n){this.callback=n;var i=this,s=function(){return o.baseTemplate!==i.baseTemplate&&!i.noBaseTemplate};u.registerListener(f.EVENT_REQUEST_RESEND_REQUIRED,function(){i.unlock()}),l.getTheme().then(function(n){i.data.theme=n,s()?r.renderTemplate(i.data.theme.path+i.baseTemplate,e(\"#wrapper\"),t.extend({},o.globalData,i.data),t.bind(i.loadTemplate,i),\"replace\",s):i.loadTemplate()})},loadTemplate:function(){var n=this,i=function(){return t.has(n,\"route\")?!n.route.url.length&&window.location.hash.replace(/^#/,\"\")===\"\"?!0:window.location.hash.replace(/^#/,\"\").match(n.route.url):!0};this.setElement(e(this.element)),this.$el.unbind(),this.delegateEvents(),o.baseTemplate!==this.baseTemplate&&!this.noBaseTemplate&&(o.setProperty(\"baseTemplate\",this.baseTemplate),u.sendEvent(f.EVENT_CHANGE_BASE_VIEW)),this.callback?r.renderTemplate(this.data.theme.path+this.template,this.$el,t.extend({},o.globalData,this.data),t.bind(this.callback,this),this.mode,i):r.renderTemplate(this.data.theme.path+this.template,this.$el,t.extend({},o.globalData,this.data),null,this.mode,i)},rebind:function(){this.setElement(e(this.element)),this.$el.unbind(),this.delegateEvents()},render:function(e,t){this.parentRender(t)},reload:function(){},onValidate:function(e,t,n,r){var o=this.$el.find(\"input[type=submit]\");if(n===\"inProgress\")return;o.length||(o=this.$el.find(\"#submit\")),i.formValidated(this.$el)?(o.prop(\"disabled\",!1),this.$el.find(\".input-validation-message\").hide()):(o.prop(\"disabled\",!0),this.$el.find(\".input-validation-message\").show());if(n===\"disabled\"){s.hideValidation(t,this.$el);return}s.showValidation(t,this.$el),t.nextAll(\"span\")&&s.setTick(t,n),t.nextAll(\"div.validation-message:first\").attr(\"for\",t.attr(\"id\")).html(n?n:\"\"),t.parents(\".separate-message\").children(\"div.validation-message:first\").attr(\"for\",t.attr(\"id\")).html(n?n:\"\"),n?(t.parents(\".separate-message\").addClass(\"invalid\"),t.addClass(\"invalid\")):(t.parents(\".separate-message\").removeClass(\"invalid\"),t.removeClass(\"invalid\")),this.$el.find(\"div.validation-message[for='\"+t.attr(\"name\")+\"']\").html(n?n:\"\"),r&&s.setErrors(this.$el,r,n),this.$el.trigger(\"customValidate\",[t,n,r])},lock:function(){this.formLock=!0},unlock:function(){this.formLock=!1},isFormLocked:function(){return this.formLock}});return c}),define(\"org/forgerock/commons/ui/common/components/Dialog\",[\"jquery\",\"underscore\",\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t,n,r,i,s,o){var u=n.extend({template:\"templates/common/DialogTemplate.html\",element:\"#dialogs\",data:{},mode:\"append\",events:{\"click .dialogCloseCross img\":\"close\",\"click input[name='close']\":\"close\",\"click .dialogContainer\":\"stop\"},actions:[{type:\"button\",name:\"close\"}],stop:function(e){e.stopPropagation()},show:function(n){this.setElement(e(\"#dialogs\")),this.parentRender(t.bind(function(){this.setElement(this.$el.find(\".dialogContainer:last\")),e(\"#dialogs\").addClass(\"show\"),e(\"#dialog-background\").addClass(\"show\"),e(\"#dialog-background\").off(\"click\").on(\"click\",t.bind(this.close,this)),t.each(this.actions,t.bind(function(e){this.$el.find(\".dialogActions\").append(\"<input type='\"+e.type+\"' name='\"+e.name+\"' value='\"+e.name+\"' class='button float-right' />\")},this)),this.loadContent(n)},this))},loadContent:function(e){e?r.renderTemplate(this.data.theme.path+this.contentTemplate,this.$el.find(\".dialogContent\"),t.extend({},o.globalData,this.data),t.bind(e,this),\"append\"):r.renderTemplate(this.data.theme.path+this.contentTemplate,this.$el.find(\".dialogContent\"),t.extend({},o.globalData,this.data),null,\"append\")},render:function(){this.show()},close:function(t){t&&t.preventDefault(),e(\".dialogContainer\").length<2&&(e(\"#dialog-background\").removeClass(\"show\"),e(\"#dialogs\").removeClass(\"show\")),s.sendEvent(i.EVENT_DIALOG_CLOSE),this.$el.remove()},addAction:function(e,t){this.getAction(e)||this.actions.push({name:e,type:t})},getAction:function(e){return t.find(this.actions,function(t){return t.name===e})}});return u}),define(\"org/forgerock/commons/ui/common/util/CookieHelper\",[],function(){var e={};return e.createCookie=function(e,t,n,r,i,s){var o,u,a,f,l;return o=n?\";expires=\"+n.toGMTString():\"\",u=e+\"=\"+t,a=r?\";path=\"+r:\"\",f=i?\";domain=\"+i:\"\",l=s?\";secure\":\"\",u+o+a+f+l},e.setCookie=function(t,n,r,i,s,o){document.cookie=e.createCookie(t,n,r,i,s,o)},e.getCookie=function(e){var t,n,r,i=document.cookie.split(\";\");for(t=0;t<i.length;t++){n=i[t].substr(0,i[t].indexOf(\"=\")),r=i[t].substr(i[t].indexOf(\"=\")+1),n=n.replace(/^\\s+|\\s+$/g,\"\");if(n===e)return unescape(r)}},e.deleteCookie=function(t,n,r){var i=new Date;i.setTime(i.getTime()+ -864e5),e.setCookie(t,\"\",i,n,r)},e.cookiesEnabled=function(){return this.setCookie(\"cookieTest\",\"test\"),this.getCookie(\"cookieTest\")?(this.deleteCookie(\"cookieTest\"),!0):!1},e}),define(\"org/forgerock/commons/ui/common/util/Base64\",[],function(){var e={},t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",n=[],r=64,i;for(i=0;i<256;i++)n.push(-1);for(i=0;i<t.length;i++)n[t.charCodeAt(i)]=i;return n[\"=\".charCodeAt(0)]=0,e.encodeUTF8=function(e){var n=unescape(encodeURIComponent(e)),i=n.length,s=[],o,u,a,f,l,c,h,p;if(typeof btoa==\"function\")return btoa(n);for(o=0;o<i;)u=n.charCodeAt(o++),a=n.charCodeAt(o++),f=n.charCodeAt(o++),l=u>>>2,c=(u&3)<<4|a>>>4,h=isNaN(a)?r:(a&15)<<2|f>>>6,p=isNaN(a)||isNaN(f)?r:f&63,s.push(t.charAt(l)),s.push(t.charAt(c)),s.push(t.charAt(h)),s.push(t.charAt(p));return s.join(\"\")},e.decodeUTF8=function(e){var t=[],r=e.length,i,s,o,u,a,f,l,c;if(typeof atob==\"function\")t=atob(e);else{for(i=0;i<r;)s=n[e.charCodeAt(i++)],o=n[e.charCodeAt(i++)],u=n[e.charCodeAt(i++)],a=n[e.charCodeAt(i++)],f=s<<2|o>>>4,l=(o&15)<<4|u>>>2,c=(u&3)<<6|a,t.push(String.fromCharCode(f)),l!==0&&t.push(String.fromCharCode(l)),c!==0&&t.push(String.fromCharCode(c));t=t.join(\"\")}return decodeURIComponent(escape(t))},e}),define(\"org/forgerock/commons/ui/common/util/Mime\",[\"org/forgerock/commons/ui/common/util/Base64\"],function(e){var t={};return t.encodeHeader=function(t){return\"=?UTF-8?B?\"+e.encodeUTF8(t)+\"?=\"},t}),define(\"UserDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/util/Mime\",\"org/forgerock/openam/ui/common/util/RealmHelper\"],function(e,t,n,r,i,s,o){var u=new t(e.host+\"/\"+e.context+\"/json\");return u.getUserResourceName=function(e){return e.resourceName},u.getUserById=function(e,t,n,r,i){var s=o.cleanRealm(t)+\"/users/\"+e;u.serviceCall({url:s,type:\"GET\",headers:{\"Cache-Control\":\"no-cache\",\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},success:function(e){var t={},r=0;for(r in e)_.isArray(e[r])?t[r]=e[r].join(\",\"):t[r]=e[r];t.roles?t.roles+=\",ui-user\":t.roles=\"ui-user\",t.resourceName=s,n(t)},error:r,errorsHandlers:i})},u.getProfile=function(e,t,r){var i=o.cleanRealm(n.globalData.auth.realm);u.serviceCall({url:i+\"/users?_action=idFromSession\",data:\"{}\",type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},success:function(t){n.globalData.auth.successURL=t.successURL,n.globalData.auth.fullLoginURL=t.fullLoginURL,e({userid:{id:t.id,realm:t.realm},username:t.dn})},error:t,errorsHandlers:r})},u.updateUser=function(t,n,r,i){var o={\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},u=_.pick(n,[\"givenName\",\"sn\",\"mail\",\"postalAddress\",\"telephoneNumber\"]);n._rev?o[\"If-Match\"]='\"'+n._rev+'\"':o[\"If-Match\"]='\"*\"',n.currentpassword&&(o[e.OPENAM_HEADER_PARAM_CUR_PASSWORD]=s.encodeHeader(n.currentpassword)),this.serviceCall({url:this.getUserResourceName(t),type:\"PUT\",success:r,error:i,data:JSON.stringify(u,function(e,t){return t===\"\"?[]:t}),headers:o,errorsHandlers:{error:{status:\"400\"}}})},u.changePassword=function(e,t,n,r,i){return this.serviceCall({url:this.getUserResourceName(e)+\"?_action=changePassword\",data:JSON.stringify(t),headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},type:\"POST\",success:n,error:r,errorsHandlers:i})},u.doAction=function(e,t,r,i,s){var a=o.cleanRealm(n.globalData.auth.realm);return u.serviceCall({url:a+\"/users?_action=\"+e,headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},data:JSON.stringify(t),type:\"POST\",success:function(e){r(e)},error:i,errorsHandlers:s})},u}),define(\"org/forgerock/openam/ui/user/profile/ChangeSecurityDataDialog\",[\"org/forgerock/commons/ui/common/components/Dialog\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"UserDelegate\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\"],function(e,t,n,r,i,s,o){var u=e.extend({contentTemplate:\"templates/openam/ChangeSecurityDataDialogTemplate.html\",data:{},events:{\"click input[type=submit]\":\"formSubmit\",onValidate:\"onValidate\",customValidate:\"customValidate\",\"click .dialogCloseCross img\":\"close\",\"click input[name='close']\":\"close\",\"click .dialogContainer\":\"stop\"},errorsHandlers:{\"Bad Request\":{status:\"400\"}},formSubmit:function(e){var r={},i=this;e.preventDefault(),t.formValidated(this.$el.find(\"#passwordChange\"))&&(r.username=form2js(\"content\",\".\",!1).uid,r.currentpassword=this.$el.find(\"#currentPassword\").val(),r.userpassword=this.$el.find(\"#password\").val(),this.delegate.changePassword(n.loggedUser,r,_.bind(function(){s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"securityDataChanged\"),i.close()},this),function(e){JSON.parse(e.responseText).message===\"Invalid Password\"&&(s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"invalidOldPassword\"),i.close())},i.errorsHandlers))},customValidate:function(){t.formValidated(this.$el.find(\"#passwordChange\"))||t.formValidated(this.$el.find(\"#securityDataChange\"))?this.$el.find(\"input[type=submit]\").prop(\"disabled\",!1):this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)},render:function(){this.actions=[],this.addAction($.t(\"common.form.update\"),\"submit\"),this.delegate=r,$(\"#dialogs\").hide(),this.show(_.bind(function(){t.bindValidators(this.$el),$(\"#dialogs\").show(),this.reloadData()},this))},reloadData:function(){this.$el.find(\"input[name=_id]\").val(n.loggedUser.name),this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)}});return new u}),define(\"org/forgerock/openam/ui/user/delegates/TokenDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\"],function(e,t,n,r){var i=new t(e.host+\"/\"+e.context+\"/frrest/oauth2/token\");return i.getAllTokens=function(e,t){console.info(\"getting all tokens\"),i.serviceCall({url:\"/?_queryid=*\",success:function(t){e&&e(t.result)},error:t})},i.deleteToken=function(e,t,n){console.info(\"Deleting Token \",n),i.serviceCall({type:\"DELETE\",url:\"/\"+n,success:function(t){e&&e(n)},error:t(n)})},i.getTokenByID=function(e,t,n){console.info(\"getting token for id: \"+n),i.serviceCall({url:\"/\"+n,success:function(t){e&&e(t)},error:t})},i.patchTokenDifferences=function(e,t,n,r,s){console.info(\"updating Token\"),i.patchEntityDifferences({id:e._id,rev:e._rev},e,t,n,r,s)},i.patchSelectedTokenAttributes=function(e,t,n,r,s,o){console.info(\"updating Token\"),i.patchEntity({id:e,rev:t},n,r,s,o)},i}),define(\"org/forgerock/openam/ui/user/delegates/SessionDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\"],function(e,t){var n=new t(e.host+\"/\"+e.context+\"/json/sessions\");return n.isSessionValid=function(e){return n.serviceCall({type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.1\"},data:{},url:\"/\"+e+\"?_action=validate\",errorsHandlers:{\"Bad Request\":{status:400}}})},n.logout=function(e){return n.serviceCall({type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.1\"},data:\"{}\",url:\"/\"+e+\"?_action=logout\",errorsHandlers:{\"Bad Request\":{status:400}}})},n}),define(\"org/forgerock/commons/ui/common/components/Messages\",[\"jquery\",\"underscore\",\"backbone\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t,n,r){var i=new r,s;return s=n.View.extend({list:[],el:\"#messages\",events:{\"click div\":\"removeAndNext\"},delay:2500,timer:null,displayMessageFromConfig:function(t){var n=i.messages;typeof t==\"object\"?typeof t.key==\"string\"&&n.addMessage({message:e.t(i.configuration.messages[t.key].msg,t),type:i.configuration.messages[t.key].type}):typeof t==\"string\"&&n.addMessage({message:e.t(i.configuration.messages[t].msg),type:i.configuration.messages[t].type})},addMessage:function(e){var t,n=i.messages;for(t=0;t<n.list.length;t++)if(n.list[t].message===e.message){console.log(\"duplicated message\");return}console.info(e.type+\":\",e.message,e),n.list.push(e),n.list.length<=1&&n.showMessage(e)},nextMessage:function(){var e=i.messages;e.list.shift(),e.list.length>0&&e.showMessage()},removeAndNext:function(){var t=i.messages;window.clearTimeout(i.messages.timer),t.$el.find(\"div\").fadeOut(300,function(){e(this).remove(),t.nextMessage()})},showMessage:function(){var e=this,t=this.list[0].type===\"error\"?\"errorMessage\":\"confirmMessage\",n=e.delay+this.list[0].message.length*20;this.$el.append(\"<div class='\"+t+\"'><span class='error-outter'><span class='error-inner'><span>\"+this.list[0].message+\"</span></span></span></div>\"),this.$el.find(\"div:last\").fadeIn(300,function(){e.timer=window.setTimeout(e.removeAndNext,n)})},hideMessages:function(){var e=i.messages;e.list.length>1&&(e.list=[e.list[1]])}}),i.messages=new s,i}),define(\"org/forgerock/openam/ui/user/delegates/AuthNDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/i18nManager\",\"org/forgerock/openam/ui/user/delegates/SessionDelegate\",\"org/forgerock/commons/ui/common/components/Messages\"],function(e,t,n,r,i,s,o,u,a){var f=new t(e.host+\"/\"+e.context+\"/json/authenticate\"),l=[],c={};return f.begin=function(){var e,t={},r,s=$.Deferred();return n.globalData.auth.realm!==\"/\"&&(t.realm=n.globalData.auth.realm),c=_.clone(n.globalData.auth),n.globalData.auth.urlParams&&_.extend(t,n.globalData.auth.urlParams),r=i.getCookie(n.globalData.auth.cookieName),r&&(t.sessionUpgradeSSOTokenId=r),e=\"?\"+$.param(t),f.serviceCall({type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},data:\"\",url:e,errorsHandlers:{unauthorized:{status:\"401\"}}}).done(function(e){s.resolve(e)}).fail(function(e){var t=$.parseJSON(e.responseText);t.hasOwnProperty(\"authId\")?f.submitRequirements(t).done(function(e){f.resetProcess(),s.resolve(e)}).fail(function(){s.reject()}):s.reject()}),s},f.handleRequirements=function(e){e.hasOwnProperty(\"authId\")?l.push(e):e.hasOwnProperty(\"tokenId\")&&_.each(n.globalData.auth.cookieDomains,function(t){i.setCookie(n.globalData.auth.cookieName,e.tokenId,\"\",\"/\",t,n.globalData.secureCookie)})},f.submitRequirements=function(t){var n=$.Deferred(),i=function(e){f.handleRequirements(e),n.resolve(e)},s=function(e){var t=l.length;f.resetProcess(),n.reject(t,e)},o=function(e){e.detail&&e.detail.failureUrl&&(console.log(e.detail.failureUrl),window.location.href=e.detail.failureUrl)};return f.serviceCall({type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},data:JSON.stringify(t),url:\"\",errorsHandlers:{unauthorized:{status:\"401\"},timeout:{status:\"408\"},\"Internal Server Error \":{status:\"500\"}}}).then(i,function(t){var u,c,h,p=l.length,d=t.responseJSON.message,v=null;if(t.status===408)u=l[0],f.resetProcess(),f.begin().done(function(t){f.handleRequirements(t),t.hasOwnProperty(\"authId\")?p===1?(u.authId=t.authId,f.submitRequirements(u).done(i).fail(s)):(r.sendEvent(e.EVENT_DISPLAY_MESSAGE_REQUEST,\"loginTimeout\"),n.resolve(t)):n.resolve(t)}).fail(s);else if(t.status===500)h={message:d,type:\"error\"},a.messages.addMessage(h);else{c=$.parseJSON(t.responseText);if(c.hasOwnProperty(\"authId\"))f.submitRequirements(c).done(i).fail(s);else{switch(c.message){case\"User Account Locked\":v=\"loginFailureLockout\";break;case\"Maximum Sessions Limit Reached.\":v=\"maxSessionsLimitOrSessionQuota\";break;case\" Your password has expired. Please contact service desk to reset your password\":v=\"loginFailureLockout\";break;default:v=\"authenticationFailed\"}s(v),o(c)}}}),n},f.resetProcess=function(){l=[]},f.getRequirements=function(e){var t=$.Deferred();return l.length===0||!_.isEqual(n.globalData.auth,c)?f.begin(e).done(function(e){f.handleRequirements(e),t.resolve(e)}).fail(function(e){t.reject()}):t.resolve(l[l.length-1]),t},f.setGoToUrl=function(t,n){var r={};return r.goto=n,f.serviceCall({type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=2.0\"},data:JSON.stringify(r),url:\"\",serviceUrl:e.host+\"/\"+e.context+\"/json/users?_action=validateGoto\",errorsHandlers:{\"Bad Request\":{status:400}}})},f}),define(\"org/forgerock/commons/ui/common/main/ViewManager\",[\"underscore\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/components/Messages\"],function(e,t,n){var r={};return r.currentView=\"null\",r.currentDialog=\"null\",r.currentViewArgs=\"null\",r.currentDialogArgs=\"null\",r.changeView=function(t,i,s,o){var u;r.currentView!==t||o||!e.isEqual(r.currentViewArgs,i)?(r.currentDialog!==\"null\"&&require(r.currentDialog).close(),r.currentDialog=\"null\",n.messages.hideMessages(),u=require(t),u.init?u.init():u.render(i,s)):(u=require(r.currentView),u.rebind(),s&&s()),r.currentViewArgs=i,r.currentView=t},r.showDialog=function(t,i,s){if(r.currentDialog!==t||!e.isEqual(r.currentDialogArgs,i))require(t).render(i,s),n.messages.hideMessages();r.currentDialog!==\"null\"&&require(r.currentDialog).close(),r.currentDialog=t,r.currentDialogArgs=i},r.refresh=function(){var e=r.currentDialog,t=r.currentDialogArgs;r.changeView(r.currentView,r.currentViewArgs,function(){},!0),e&&e!==\"null\"&&r.showDialog(e,t)},r}),define(\"org/forgerock/openam/ui/user/login/RESTLoginHelper\",[\"org/forgerock/openam/ui/user/delegates/AuthNDelegate\",\"UserDelegate\",\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/openam/ui/user/delegates/SessionDelegate\",\"org/forgerock/commons/ui/common/util/CookieHelper\"],function(e,t,n,r,i,s,o,u,a,f){var l=new r;return l.login=function(t,r,i){var o=this;e.getRequirements().done(function(u){var a=_.clone(u);t.userName&&t.password&&u.stage===\"DataStore1\"?(a.callbacks[0].input[0].value=t.userName,a.callbacks[1].input[0].value=t.password):_.each(u.callbacks,function(e,n){t.hasOwnProperty(\"callback_\"+n)&&(a.callbacks[n].input[0].value=t[\"callback_\"+n])}),e.submitRequirements(a).then(function(t){t.hasOwnProperty(\"tokenId\")?l.getLoggedUser(function(n){s.setProperty(\"loggedUser\",n),o.setSuccessURL(t.tokenId).then(function(){r(n),e.resetProcess()})},i):t.hasOwnProperty(\"authId\")&&(n.currentView===\"LoginView\"?n.refresh():location.href=\"#login\"+s.globalData.auth.realm)},function(e,t){e>1&&n.refresh(),i(t)})})},l.getLoggedUser=function(e,n){try{t.getProfile(function(r){s.globalData.auth.realm=r.userid.realm,i.configuration.routes.login.defaults[0]=r.userid.realm,t.getUserById(r.userid.id,r.userid.realm,e,function(e){e.responseJSON.code===404?n(\"loggedIn\"):n()},{\"Not Found\":{status:\"404\"}})},function(){l.removeSessionCookie(),s.globalData.auth.realm||(s.globalData.auth.realm=i.configuration.routes.login.defaults[0]),n()},{serverError:{status:\"503\"},unauthorized:{status:\"401\"}})}catch(r){console.log(r),n()}},l.getLoginUrlParams=function(){var e=s.globalData.auth.fullLoginURL;return o.convertQueryParametersToJSON(e.substring(e.indexOf(\"?\")+1))},l.setSuccessURL=function(t){var n=$.Deferred(),r=o.convertCurrentUrlToJSON().params,i=s.globalData.auth.successURL,a=\"\";if(r&&r.goto)e.setGoToUrl(t,r.goto).then(function(e){e.successURL.startsWith(\"/\")&&!e.successURL.startsWith(\"/\"+u.context)&&(a=\"/\"+u.context),s.globalData.auth.urlParams.goto=a+e.successURL,n.resolve()},function(){n.reject()});else{if(i!==u.CONSOLE_PATH||_.contains(_.map(u.CONSOLE_USERS,function(e){return e.toLowerCase()}),s.loggedUser.username.toLowerCase()))s.globalData.auth.urlParams||(s.globalData.auth.urlParams={}),s.globalData.auth.urlParams.goto||(s.globalData.auth.urlParams.goto=i);n.resolve()}return n},l.filterUrlParams=function(e){var t=[\"arg\",\"authIndexType\",\"authIndexValue\",\"goto\",\"gotoOnFail\",\"ForceAuth\",\"locale\"],n={};return _.each(t,function(t){e[t]&&(n[t]=e[t])}),$.isEmptyObject(n)?\"\":\"&\"+$.param(n)},l.logout=function(e,t){var n=this,r=f.getCookie(s.globalData.auth.cookieName);a.isSessionValid(r).then(function(n){n.valid?a.logout(r).then(function(){return l.removeSessionCookie(),e(),!0},l.removeSessionCookie):(l.removeSessionCookie(),t&&t())},function(){t&&t()})},l.removeSession=function(){var e=f.getCookie(s.globalData.auth.cookieName);a.isSessionValid(e).then(function(t){t.valid&&a.logout(e).then(function(){l.removeSessionCookie()})})},l.removeSessionCookie=function(){_.each(s.globalData.auth.cookieDomains,function(e){f.deleteCookie(s.globalData.auth.cookieName,\"/\",e)})},l}),define(\"org/forgerock/commons/ui/common/main/SessionManager\",[\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t){var n=new t;return n.login=function(t,r,i){e.deleteCookie(\"session-jwt\",\"/\",\"\"),require(n.configuration.loginHelperClass).login(t,r,i)},n.logout=function(e,t){require(n.configuration.loginHelperClass).logout(e,t)},n.getLoggedUser=function(e,t){require(n.configuration.loginHelperClass).getLoggedUser(e,t)},n}),define(\"org/forgerock/openam/ui/user/login/RESTLoginView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/user/delegates/AuthNDelegate\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/SessionManager\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/commons/ui/common/main/i18nManager\",\"org/forgerock/openam/ui/user/login/RESTLoginHelper\"],function(e,t,n,r,i,s,o,u,a,f,l,c,h){var p=e.extend({template:\"templates/openam/RESTLoginTemplate.html\",genericTemplate:\"templates/openam/RESTLoginTemplate.html\",unavailableTemplate:\"templates/openam/RESTLoginUnavailableTemplate.html\",baseTemplate:\"templates/common/LoginBaseTemplate.html\",data:{},events:{\"click input[type=submit]\":\"formSubmit\",\"click #forgotPassword\":\"selfServiceClick\",\"click #register\":\"selfServiceClick\"},selfServiceClick:function(e){e.preventDefault();var t=new Date,n=s.globalData.auth.realm;s.globalData.auth.urlParams&&(n+=c.filterUrlParams(s.globalData.auth.urlParams)),t.setDate(t.getDate()+1),a.setCookie(\"loginUrlParams\",n,t),location.href=e.target.href+s.globalData.auth.realm},autoLogin:function(){var e,t={};_.each(_.keys(s.globalData.auth.urlParams),function(n){n.indexOf(\"IDToken\")>-1&&(e=parseInt(n.substring(7),10)-1,t[\"callback_\"+e]=s.globalData.auth.urlParams[\"IDToken\"+n.substring(7)])}),s.globalData.auth.autoLoginAttempts=1,r.sendEvent(i.EVENT_LOGIN_REQUEST,t)},isZeroPageLoginAllowed:function(){var e=document.referrer,t=s.globalData.zeroPageLogin.refererWhitelist;return s.globalData.zeroPageLogin.enabled?e?!t||!t.length||t.indexOf(e)>-1:s.globalData.zeroPageLogin.allowedWithoutReferer:!1},formSubmit:function(e){var t,n;e.preventDefault(),t=form2js(this.$el[0]),t[$(e.target).attr(\"name\")]=$(e.target).attr(\"index\"),this.$el.find(\"[name=loginRemember]:checked\").length!==0?(n=new Date,n.setDate(n.getDate()+20),a.setCookie(\"login\",this.$el.find(\"input[type=text]:first\").val(),n)):this.$el.find(\"[name=loginRemember]\").length!==0&&a.deleteCookie(\"login\"),r.sendEvent(i.EVENT_LOGIN_REQUEST,t)},render:function(e,n){var f={},l=$.Deferred();e&&e.length&&(s.globalData.auth.realm=e[0],s.globalData.auth.additional=e[1],s.globalData.auth.urlParams=f,e[1]&&(f=this.handleUrlParams()),f.realm&&e[0]===\"/\"&&(f.realm.substring(0,1)!==\"/\"&&(f.realm=\"/\"+f.realm),s.globalData.auth.realm=f.realm),f.IDToken1&&this.isZeroPageLoginAllowed()&&!s.globalData.auth.autoLoginAttempts&&this.autoLogin()),t.getRequirements().done(_.bind(function(e){var t=this;e.hasOwnProperty(\"tokenId\")&&f.arg===\"newsession\"&&(c.removeSession(),s.setProperty(\"loggedUser\",null)),e.hasOwnProperty(\"tokenId\")&&f.ForceAuth!==\"true\"?(s.globalData.auth.passedInRealm=s.globalData.auth.realm,o.getLoggedUser(function(t){String(s.globalData.auth.passedInRealm).toLowerCase()===s.globalData.auth.realm.toLowerCase()?(s.setProperty(\"loggedUser\",t),delete s.globalData.auth.passedInRealm,c.setSuccessURL(e.tokenId).then(function(){if(s.globalData.auth.urlParams&&s.globalData.auth.urlParams.goto)return window.location.href=s.globalData.auth.urlParams.goto,$(\"body\").empty(),!1;r.sendEvent(i.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!1}),s.gotoURL&&_.indexOf([\"#\",\"\",\"#/\",\"/#\"],s.gotoURL)===-1?(console.log(\"Auto redirect to \"+s.gotoURL),u.navigate(s.gotoURL,{trigger:!0}),delete s.gotoURL):u.navigate(\"\",{trigger:!0})})):location.href=\"#confirmLogin/\"},function(){c.removeSession(),s.setProperty(\"loggedUser\",null)})):(this.renderForm(e,f),l.resolve())},this)).fail(_.bind(function(){this.template=this.unavailableTemplate,this.parentRender()},this)),l.done(function(){a.getCookie(\"invalidRealm\")&&(a.deleteCookie(\"invalidRealm\"),r.sendEvent(i.EVENT_DISPLAY_MESSAGE_REQUEST,\"invalidRealm\"))})},renderForm:function(e,t){var n=_.clone(e),r=!0,i=$.Deferred();return n.callbacks=[],_.each(e.callbacks,function(e){e.type===\"RedirectCallback\"&&window.location.replace(e.output[0].value),e.type===\"ConfirmationCallback\"&&(r=!1),n.callbacks.push({input:{index:n.callbacks.length,name:e.input?e.input[0].name:null,value:e.input?e.input[0].value:null},output:e.output,type:e.type,isSubmit:e.type===\"ConfirmationCallback\"})}),r&&n.callbacks.push({input:{index:n.callbacks.length,name:\"loginButton\",value:0},output:[{name:\"options\",value:[$.t(\"common.user.login\")]}],type:\"ConfirmationCallback\",isSubmit:!0}),this.reqs=e,this.data.reqs=n,t.IDToken1&&s.globalData.auth.autoLoginAttempts===1?s.globalData.auth.autoLoginAttempts++:f.fillTemplateWithData(\"templates/openam/authn/\"+e.stage+\".html\",_.extend(s.globalData,this.data),_.bind(function(t){typeof t==\"string\"?this.template=\"templates/openam/authn/\"+e.stage+\".html\":this.template=this.genericTemplate,this.data.showForgotPassword=!1,this.data.showRegister=!1,this.data.showSpacer=!1,s.globalData.forgotPassword===\"true\"&&(this.data.showForgotPassword=!0),s.globalData.selfRegistration===\"true\"&&(this.data.showForgotPassword&&(this.data.showSpacer=!0),this.data.showRegister=!0),this.parentRender(_.bind(function(){this.reloadData(),i.resolve()},this))},this)),i},reloadData:function(){var e=a.getCookie(\"login\");this.$el.find(\"[name=loginRemember]\").length!==0&&e?(this.$el.find(\"input[type=text]:first\").val(e),this.$el.find(\"[name=loginRemember]\").attr(\"checked\",\"true\"),this.$el.find(\"[type=password]\").focus()):this.$el.find(\":input:first\").focus()},handleUrlParams:function(){var e=f.convertCurrentUrlToJSON().params;return _.each([\"authlevel\",\"module\",\"service\",\"user\"],function(t){e[t]&&(e.authIndexType=t===\"authlevel\"?\"level\":t,e.authIndexValue=e[t],s.globalData.auth.additional+=\"&authIndexType=\"+(t===\"authlevel\"?\"level\":t)+\"&authIndexValue=\"+e[t])}),e.goto&&e.goto.indexOf(\"/SSORedirect\")===0&&(e.goto=\"/\"+i.context+e.goto,s.globalData.auth.additional.replace(\"&goto=\",\"&goto=/\"+i.context)),s.globalData.auth.urlParams=e,e}});return Handlebars.registerHelper(\"callbackRender\",function(){var e=\"\",t=this,n,r,i;n=_.find(t.output,function(e){return e.name===\"prompt\"}),n&&n.value!==undefined&&n.value.length&&(t.type===\"ChoiceCallback\"?e=\"<label>\"+n.value+\"</label>\":e='<label class=\"short\">'+n.value+\"</label>\");switch(t.type){case\"PasswordCallback\":e+='<input type=\"password\" name=\"callback_'+t.input.index+'\" value=\"'+t.input.value+'\" data-validator=\"required\" required data-validator-event=\"keyup\" />';break;case\"TextInputCallback\":e+='<textarea name=\"callback_'+t.input.index+'\" data-validator=\"required\" required data-validator-event=\"keyup\">'+t.input.value+\"</textarea>\";break;case\"TextOutputCallback\":r=[],r.message=_.find(t.output,function(e){return e.name===\"message\"}),r.type=_.find(t.output,function(e){return e.name===\"messageType\"}),r.type.value===\"4\"?(i=\"if(document.getElementsByClassName('button')[0] != undefined){document.getElementsByClassName('button')[0].style.visibility = 'hidden';}\",e+=\"<script type='text/javascript'>\"+i+r.message.value+\"</script>\"):e+='<div id=\"callback_'+t.input.index+'\" class=\"textOutputCallback '+r.type.value+'\">'+r.message.value+\"</div>\";break;case\"ConfirmationCallback\":r=_.find(t.output,function(e){return e.name===\"options\"}),r&&r.value!==undefined&&_.each(r.value,function(n,r){e+='<input name=\"callback_'+t.input.index+'\" type=\"submit\" class=\"button\" index=\"'+r+'\" value=\"'+n+'\">'});break;case\"ChoiceCallback\":r=_.find(t.output,function(e){return e.name===\"choices\"}),r&&r.value!==undefined&&(e+=\"<ul>\",_.each(r.value,function(n,r){var i=t.input.value===r?\" checked\":\"\";e+='<li><label class=\"short light\" for=\"callback_'+t.input.index+\"_\"+r+'\">'+n+\": </label><input \"+i+' id=\"callback_'+t.input.index+\"_\"+r+'\" name=\"callback_'+t.input.index+'\" type=\"radio\" value=\"'+r+'\"></li>'}),e+=\"</ul>\");break;case\"HiddenValueCallback\":e+='<input type=\"hidden\" id=\"'+t.input.value+'\" name=\"callback_'+t.input.index+'\" value=\"\" data-validator=\"required\" required data-validator-event=\"keyup\" />';break;case\"RedirectCallback\":e+=\"Redirecting...\";break;default:e+='<input type=\"text\" name=\"callback_'+t.input.index+'\" value=\"'+t.input.value+'\" data-validator=\"required\" required data-validator-event=\"keyup\" />'}return new Handlebars.SafeString(e)}),new p}),define(\"org/forgerock/openam/ui/user/login/RESTConfirmLoginView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/user/delegates/AuthNDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/openam/ui/user/login/RESTLoginHelper\",\"org/forgerock/openam/ui/user/delegates/SessionDelegate\",\"org/forgerock/commons/ui/common/util/CookieHelper\"],function(e,t,n,r,i,s){var o=e.extend({template:\"templates/openam/RESTConfirmLoginTemplate.html\",baseTemplate:\"templates/common/LoginBaseTemplate.html\",data:{},events:{\"click button#continueLogin\":\"continueLogin\",\"click button#logout\":\"logout\"},render:function(e,t){this.parentRender(function(){$(\"#menu\").hide(),$(\"#user-nav\").hide()})},continueLogin:function(){return $(\"#menu\").show(),$(\"#user-nav\").show(),location.href=\"#login\"+n.globalData.auth.realm,!1},logout:function(){var e=s.getCookie(n.globalData.auth.cookieName);return i.logout(e).then(function(){r.removeSessionCookie();var e=n.globalData.auth.passedInRealm?n.globalData.auth.passedInRealm:n.globalData.auth.realm;location.href=\"#login\"+e+r.filterUrlParams(n.globalData.auth.urlParams)}),!1}});return new o}),define(\"org/forgerock/openam/ui/user/login/RESTLoginDialog\",[\"./RESTLoginView\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/components/Dialog\",\"org/forgerock/commons/ui/common/main/SessionManager\",\"org/forgerock/commons/ui/common/main/ViewManager\"],function(e,t,n,r,i,s,o){var u=i.extend({data:{width:512},actions:[],el:\"#dialogs\",parentRender:function(e){var t=new i;this.contentTemplate=this.template,this.template=t.template,this.setElement($(\"#dialogs\")),t.parentRender.call(this,_.bind(function(){this.setElement(this.$el.find(\".dialogContainer:last\")),$(\".dialog-background\").show(),$(\".dialog-background\").off(\"click\").on(\"click\",_.bind(this.close,this)),this.loadContent(_.bind(function(){this.resize(),e()},this))},this))},render:function(){this.displayed=!0,e.render.call(this)},formSubmit:function(n){t.backgroundLogin=!0,e.formSubmit.call(this,n)},events:e.events,selfServiceClick:e.selfServiceClick,reloadData:e.reloadData});return new u}),define(\"org/forgerock/openam/ui/user/profile/ForgotPasswordView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"UserDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/util/UIUtils\"],function(e,t,n,r,i,s,o,u){var a=e.extend({template:\"templates/openam/ForgotPasswordTemplate.html\",baseTemplate:\"templates/common/MediumBaseTemplate.html\",data:{},events:{\"click #continue\":\"continueProcess\",\"click #changePasswordButton\":\"changePassword\",onValidate:\"onValidate\",customValidate:\"customValidate\",\"click .cancelButton\":\"cancel\"},errorsHandlers:{\"Bad Request\":{status:\"400\"},\"Not found\":{status:\"404\"},Gone:{status:\"410\"},\"Internal Server Error\":{status:\"500\"},\"Service Unavailable\":{status:\"503\"}},render:function(e,n){this.data.urlParams=u.convertCurrentUrlToJSON().params,this.data.isStageOne=!0,this.data.urlParams&&(this.data.isStageOne=!1),this.parentRender(function(){t.bindValidators(this.$el)})},continueProcess:function(e){e.preventDefault(),$(\"#username\").prop(\"readonly\",!0);var t=this,r={username:$(\"#username\").val(),subject:$.t(\"templates.user.ForgottenPasswordTemplate.emailSubject\"),message:$.t(\"templates.user.ForgottenPasswordTemplate.emailMessage\")},i=function(){t.$el.find(\"#step1\").slideUp(),t.$el.find(\"#emailSent\").slideDown()},s=function(e){t.$el.find(\"input[type=submit]\").prop(\"disabled\",!0),$(\"#username\").prop(\"readonly\",!1),t.displayError(e)};this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0),n.doAction(\"forgotPassword\",r,i,s,t.errorsHandlers)},changePassword:function(e){e.preventDefault(),$(\"#password\").prop(\"readonly\",!0),$(\"#passwordConfirm\").prop(\"readonly\",!0),this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0);var t=this,r={userpassword:$(\"#password\").val()},i=function(){$(\"#step2\").slideUp(),$(\"#passwordChangeSuccess\").fadeIn()},s=function(e){$(\"#password\").prop(\"readonly\",!1),$(\"#passwordConfirm\").prop(\"readonly\",!1),t.displayError(e)};_.extend(r,this.data.urlParams),n.doAction(\"forgotPasswordReset\",r,i,s,t.errorsHandlers)},cancel:function(e){e.preventDefault();var t=i.getCookie(\"loginUrlParams\");i.deleteCookie(\"loginUrlParams\"),location.href=\"#login\"+(t?t:r.globalData.auth.realm)},customValidate:function(){t.formValidated(this.$el.find(\"#passwordChange\"))||t.formValidated(this.$el.find(\"#forgotPassword\"))?this.$el.find(\"input[type=submit]\").prop(\"disabled\",!1):this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)},displayError:function(e){var t=\"notFoundError\",n=JSON.parse(e.responseText).message;switch(e.status){case 400:break;case 404:t=\"usernameNotFound\";break;case 410:t=\"tokenNotFound\";break;case 500:n===\"No email provided in profile.\"?t=\"noEmailProvided\":t=\"internalError\";break;case 503:t=\"serviceUnavailable\"}s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,t)}});return new a}),define(\"org/forgerock/openam/ui/user/profile/RegisterView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"UserDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/util/UIUtils\"],function(e,t,n,r,i,s,o,u){var a=e.extend({template:\"templates/openam/RegisterTemplate.html\",baseTemplate:\"templates/common/MediumBaseTemplate.html\",data:{},events:{\"click #continue\":\"continueProcess\",\"click #registerButton\":\"register\",onValidate:\"onValidate\",customValidate:\"customValidate\",\"click .cancelButton\":\"cancel\"},errorsHandlers:{\"Bad Request\":{status:\"400\"},\"Not found\":{status:\"404\"},Conflict:{status:\"409\"}},render:function(e,n){this.data.urlParams=u.convertCurrentUrlToJSON().params,this.data.isStageOne=!0,this.data.urlParams&&(this.data.isStageOne=!1),this.parentRender(function(){t.bindValidators(this.$el)})},continueProcess:function(e){e.preventDefault(),$(\"#email\").prop(\"readonly\",!0);var t=this,r={email:$(\"#email\").val(),subject:$.t(\"templates.user.UserRegistrationTemplate.emailSubject\"),message:$.t(\"templates.user.UserRegistrationTemplate.emailMessage\")},i=function(){t.$el.find(\"#emailSent\").slideDown(),t.$el.find(\"#step1\").slideUp()},u=function(e){var n=JSON.parse(e.responseText);t.$el.find(\"input[type=submit]\").prop(\"disabled\",!0),$(\"#email\").prop(\"readonly\",!1),s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"unableToRegister\")};this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0),n.doAction(\"register\",r,i,u)},register:function(e){e.preventDefault();var t,i=this,u=_.extend(form2js(this.$el.find(\"#registration\")[0]),{userpassword:this.$el.find(\"#password\").val()}),a=function(){switch(r.globalData.successfulUserRegistrationDestination){case\"login\":s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"afterRegistration\"),i.cancel();break;case\"autologin\":s.sendEvent(o.EVENT_USER_SUCCESSFULLY_REGISTERED,{user:{userName:u.username,password:u.password},autoLogin:!0});break;default:i.$el.find(\"#step2\").slideUp(),i.$el.find(\"#registerSuccess\").fadeIn()}},f=function(e){var t=JSON.parse(e.responseText).message,n=JSON.parse(e.responseText).code;i.$el.find(\"input[type=submit]\").prop(\"disabled\",!1),t.indexOf(\"ldap exception\")>-1?s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"userAlreadyExists\"):t.indexOf(\"Identity names may not have a space character\")>-1?s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"identityNoSpace\"):n===400?(s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"selfRegistrationDisabled\"),i.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)):n===409&&s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"userAlreadyExists\")};n.doAction(\"confirm\",this.data.urlParams,function(e){_.extend(u,e),n.doAction(\"anonymousCreate\",u,a,f,i.errorsHandlers)},function(e){s.sendEvent(o.EVENT_DISPLAY_MESSAGE_REQUEST,\"unableToRegister\")},i.errorsHandlers),this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)},cancel:function(e){e&&e.preventDefault();var t=i.getCookie(\"loginUrlParams\");i.deleteCookie(\"loginUrlParams\"),location.href=\"#login\"+(t?t:r.globalData.auth.realm)},customValidate:function(){t.formValidated(this.$el.find(\"#registration\"))||t.formValidated(this.$el.find(\"#forgotPassword\"))?this.$el.find(\"input[type=submit]\").prop(\"disabled\",!1):this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)}});return new a}),define(\"org/forgerock/openam/ui/user/logout/RESTLogoutView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"org/forgerock/openam/ui/user/login/RESTLoginHelper\"],function(e,t,n,r,i,s,o){var u=e.extend({template:\"templates/openam/RESTLogoutTemplate.html\",baseTemplate:\"templates/common/MediumBaseTemplate.html\",data:{},events:{\"click #gotoLogin\":\"gotoLoginViewClick\"},render:function(e,t){this.parentRender(t)},gotoLoginViewClick:function(e){e.preventDefault();var s=\"\";n.globalData.auth.fullLoginURL&&(s=o.filterUrlParams(o.getLoginUrlParams())),n.setProperty(\"loggedUser\",null),delete n.gotoURL,i.sendEvent(r.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!0}),t.navigate(t.getLink(t.configuration.routes.login)+s,{trigger:!0})}});return new u}),define(\"org/forgerock/openam/ui/user/main\",[\"./profile/ChangeSecurityDataDialog\",\"./delegates/TokenDelegate\",\"./delegates/SessionDelegate\",\"./delegates/AuthNDelegate\",\"./login/RESTLoginHelper\",\"./login/RESTLoginView\",\"./login/RESTConfirmLoginView\",\"./login/RESTLoginDialog\",\"./profile/ForgotPasswordView\",\"./profile/RegisterView\",\"./logout/RESTLogoutView\"]),define(\"org/forgerock/openam/ui/dashboard/MyApplicationsDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/openam/ui/common/util/RealmHelper\"],function(e,t,n,r,i){var s=new n(e.host+\"/\"+e.context+\"/json\");return s.sortApps=function(e){var t=_.map(_.sortBy(_.keys(e),function(e){return e}),function(t){var n={};return n.id=t,_.each(e[t],function(e,t){n[t]=e[0]}),n});return t},s.getMyApplications=function(){var e=this,n=i.cleanRealm(t.globalData.auth.realm);return s.serviceCall({url:n+\"/dashboard/assigned\",headers:{\"Cache-Control\":\"no-cache\",\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"},type:\"GET\"}).then(function(t){return e.sortApps(t)})},s.getAvailableApplications=function(){var e=this,n=i.cleanRealm(t.globalData.auth.realm);return s.serviceCall({url:n+\"/dashboard/available\",headers:{\"Cache-Control\":\"no-cache\",\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"},type:\"GET\"}).then(function(t){return e.sortApps(t)})},s}),define(\"org/forgerock/openam/ui/dashboard/MyApplicationsView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/dashboard/MyApplicationsDelegate\"],function(e,t){var n=e.extend({template:\"templates/openam/MyApplicationsTemplate.html\",noBaseTemplate:!0,element:\"#myApplications\",render:function(){var e=this;t.getMyApplications().then(function(t){t.length>0&&(e.data.apps=t),e.parentRender()})}});return new n}),define(\"org/forgerock/openam/ui/dashboard/TrustedDevicesDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/openam/ui/common/util/RealmHelper\"],function(e,t,n,r,i){var s=new n(e.host+\"/\"+e.context+\"/json\");return s.getTrustedDevices=function(){var e=i.cleanRealm(t.globalData.auth.realm);return s.serviceCall({url:e+\"/users/\"+r.loggedUser.uid+\"/devices/trusted/?_queryId=*\",headers:{\"Cache-Control\":\"no-cache\",\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"}})},s.deleteTrustedDevice=function(e){var n=i.cleanRealm(t.globalData.auth.realm);return s.serviceCall({url:n+\"/users/\"+r.loggedUser.uid+\"/devices/trusted/\"+e,type:\"DELETE\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"}})},s}),define(\"org/forgerock/openam/ui/dashboard/TrustedDevicesView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/dashboard/TrustedDevicesDelegate\"],function(e,t){var n=e.extend({template:\"templates/openam/TrustedDevicesTemplate.html\",noBaseTemplate:!0,element:\"#myTrustedDevices\",events:{\"click  a.deleteDevice\":\"deleteDevice\"},render:function(){var e=this;t.getTrustedDevices().then(function(t){e.data.devices=t.result,e.parentRender()})},deleteDevice:function(e){e.preventDefault();var n=this;t.deleteTrustedDevice(e.currentTarget.id).then(function(){console.log(\"Deleted trusted device\"),n.render()},function(){console.error(\"Failed to delete trusted device\")})}});return new n}),define(\"org/forgerock/openam/ui/dashboard/OAuthTokensDelegate\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/AbstractDelegate\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t,n){var r=new t(e.host+\"/\"+e.context+\"/frrest/\");return r.getOAuthTokens=function(){return r.serviceCall({url:\"oauth2/token/?_queryId=access_token\",headers:{\"Cache-Control\":\"no-cache\",\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"}})},r.deleteOAuthToken=function(e){return r.serviceCall({url:\"oauth2/token/\"+e+\"?_action=revoke\",type:\"POST\",headers:{\"Accept-API-Version\":\"protocol=1.0,resource=1.0\"}})},r}),define(\"org/forgerock/openam/ui/dashboard/OAuthTokensView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/dashboard/OAuthTokensDelegate\"],function(e,t){var n=e.extend({template:\"templates/openam/oauth2/TokensTemplate.html\",noBaseTemplate:!0,element:\"#myOAuthTokens\",events:{\"click  a.deleteToken\":\"deleteToken\"},render:function(){var e=this;t.getOAuthTokens().then(function(t){e.data.tokens=t.result,e.parentRender()})},deleteToken:function(e){e.preventDefault();var n=this;t.deleteOAuthToken(e.currentTarget.id).then(function(){console.log(\"Deleted access token\"),n.render()},function(){console.error(\"Failed to delete access token\")})}});return new n}),define(\"org/forgerock/openam/ui/dashboard/DashboardView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/openam/ui/dashboard/MyApplicationsView\",\"org/forgerock/openam/ui/dashboard/TrustedDevicesView\",\"org/forgerock/openam/ui/dashboard/OAuthTokensView\"],function(e,t,n,r){var i=e.extend({template:\"templates/openam/DashboardTemplate.html\",render:function(){this.parentRender(function(){t.render(),n.render(),r.render()})}});return new i}),define(\"org/forgerock/openam/ui/dashboard/main\",[\"./MyApplicationsDelegate\",\"./MyApplicationsView\",\"./TrustedDevicesDelegate\",\"./TrustedDevicesView\",\"./DashboardView\",\"./OAuthTokensDelegate\",\"./OAuthTokensView\"]),define(\"org/forgerock/commons/ui/common/components/Navigation\",[\"jquery\",\"underscore\",\"backbone\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/main/ViewManager\",\"org/forgerock/commons/ui/common/main/Router\"],function(e,t,n,r,i,s,o,u,a,f){var l=new r;return l.init=function(){var n=i.extend({element:\"#menu\",template:\"templates/common/NavigationTemplate.html\",noBaseTemplate:!0,data:{},events:{\"click a.inactive\":\"disableLink\"},disableLink:function(e){e.preventDefault()},render:function(){this.reload(),this.parentRender()},addLinks:function(e){var t,n,r,i,s;for(n in l.configuration.links[e].urls){t=l.configuration.links[e].urls[n];if(this.isCurrent(t.url)||this.isCurrent(t.baseUrl)||this.childIsCurrent(t.urls)){this.addLink(t.name,t.url,!0,t.icon,t.inactive);if(t.urls)for(i in t.urls)r=t.urls[i],this.addSubLink(r.name,r.url,this.isCurrent(r.url),r.icon,r.inactive)}else this.addLink(t.name,t.url,!1,t.icon,t.inactive)}},addLink:function(t,n,r,i,s){this.data.topNav.push({key:t,hashurl:n,title:e.t(t),isActive:r,isInactive:s,icon:i})},addSubLink:function(t,n,r,i,s){this.data.subNav.push({key:t,hashurl:n,title:e.t(t),isActive:r,isInactive:s,icon:i})},childIsCurrent:function(e){var t;for(t in e)if(this.isCurrent(e[t].url))return!0;return!1},isCurrent:function(e){var t,n=window.location.href.split(\"#\")[1];return n?t=\"#\"+n:t=\"#/\",t.indexOf(e)!==-1},clear:function(){this.data.topNav=[],this.data.subNav=[]},reload:function(){this.clear();var e,n;for(n in l.configuration.links){e=l.configuration.links[n];if(e.role&&s.loggedUser&&t.contains(s.loggedUser.roles,e.role)){this.addLinks(n);return}if(!e.role){this.addLinks(n);return}}}});l.navigation=new n,l.navigation.render()},l.reload=function(){l.navigation&&l.navigation.render()},l}),define(\"org/forgerock/commons/ui/user/profile/UserProfileView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/util/UIUtils\",\"UserDelegate\",\"org/forgerock/commons/ui/common/main/Router\",\"org/forgerock/commons/ui/common/components/Navigation\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t,n,r,i,s,o,u,a){var f=e.extend({template:\"templates/user/UserProfileTemplate.html\",baseTemplate:\"templates/common/DefaultBaseTemplate.html\",delegate:r,events:{\"click input[name=saveButton]\":\"formSubmit\",\"click input[name=resetButton]\":\"reloadData\",onValidate:\"onValidate\"},data:{},submit:function(){var e=this;this.delegate.updateUser(a.loggedUser,this.data,_.bind(function(t){_.has(t,\"_rev\")&&(e.data._rev=t._rev),$.extend(a.loggedUser,e.data),o.sendEvent(u.EVENT_DISPLAY_MESSAGE_REQUEST,\"profileUpdateSuccessful\")},this),function(t){console.log(\"errorCallback\",t.responseText),o.sendEvent(u.EVENT_DISPLAY_MESSAGE_REQUEST,\"profileUpdateFailed\"),e.reloadData()})},formSubmit:function(e){e.preventDefault(),e.stopPropagation();var n=this,r=[];t.formValidated(this.$el)?(this.data=form2js(this.el,\".\",!1),_.each(this.data,function(e,t,n){this.$el.find(\"input[name=\"+t+\"]\").hasClass(\"button\")&&delete this.data[t]},this),_.each(a.globalData.protectedUserAttributes,function(e){n.data[e]&&a.loggedUser[e]!==n.data[e]&&r.push(\" \"+n.$el.find(\"label[for=\"+e+\"]\").text())}),r.length===0?this.submit():location.hash=i.configuration.routes.confirmPassword.url):console.log(\"invalid form\")},render:function(e,n){this.parentRender(function(){t.bindValidators(this.$el,this.delegate.getUserResourceName(a.loggedUser),_.bind(function(){this.reloadData(),n&&n()},this))})},reloadData:function(){js2form(this.$el.find(\"#userProfileForm\")[0],a.loggedUser),this.$el.find(\"input[name=saveButton]\").val($.t(\"common.form.update\")),this.$el.find(\"input[name=resetButton]\").val($.t(\"common.form.reset\")),t.validateAllFields(this.$el)}});return new f}),define(\"org/forgerock/commons/ui/user/profile/ConfirmPasswordDialog\",[\"org/forgerock/commons/ui/common/components/Dialog\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"UserDelegate\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/user/profile/UserProfileView\"],function(e,t,n,r,i,s,o){var u=e.extend({contentTemplate:\"templates/user/ConfirmPasswordDialogTemplate.html\",events:{\"click .dialogActions input[type=submit]\":\"formSubmit\",onValidate:\"onValidate\",customValidate:\"customValidate\",\"click .dialogCloseCross img\":\"close\",\"click input[name='close']\":\"close\",\"click .dialogContainer\":\"stop\"},data:{},formSubmit:function(e){o.data.currentpassword=this.$el.find(\"#currentPassword\").val(),o.submit(),this.close()},customValidate:function(){t.formValidated(this.$el.find(\"#confirmPasswordForm\"))?this.$el.find(\"input[type=submit]\").prop(\"disabled\",!1):this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)},render:function(){var e=this;this.actions=[],this.addAction($.t(\"common.form.update\"),\"submit\"),this.data.changedProtected=o.data.changedProtected,$(\"#dialogs\").hide(),this.show(_.bind(function(){t.bindValidators(this.$el),$(\"#dialogs\").show(),this.$el.find(\"input[type=submit]\").prop(\"disabled\",!0)},this))}});return new u}),define(\"org/forgerock/commons/ui/user/main\",[\"./profile/UserProfileView\",\"./profile/ConfirmPasswordDialog\"]),define(\"org/forgerock/commons/ui/common/main/ProcessConfiguration\",[\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t,n,r){var i=new r;return i.em=t,t.registerListener(e.EVENT_CONFIGURATION_CHANGED,function(e){i.callService(e.moduleClass,\"updateConfigurationCallback\",[e.configuration])}),t.registerListener(e.EVENT_DEPENDECIES_LOADED,function(n){i.callService(\"org/forgerock/commons/ui/common/main/Configuration\",\"sendConfigurationChangeInfo\"),i.registerAllListenersFromConfig(),t.sendEvent(e.EVENT_READ_CONFIGURATION_REQUEST)}),i.callRegisterListenerFromConfig=function(e){t.registerListener(e.startEvent,function(t){var n,r;e.description&&console.info(\"Event processing: \",e.description),r=[t];for(n=0;n<e.dependencies.length;n++)r.push(require(e.dependencies[n]));e.processDescription.apply(this,r)})},i.registerAllListenersFromConfig=function(){var e,t=[],n=[];_.each(i.configuration.processConfigurationFiles,function(r){e=require(r),_.each(e,function(e){e.override&&n.push(e.startEvent),t.push(e)})}),_.each(n,function(e){t=_.reject(t,function(t){return t.startEvent===e&&!t.override})}),_.each(t,function(e){i.callRegisterListenerFromConfig(e)})},i.callService=function(e,t,n){try{var r=require(e);r&&r[t].apply(r,n||[])}catch(i){n&&(n=JSON.stringify(n)),console.warn(\"Unable to invoke serviceId=\"+e+\" method=\"+t+\" params=\"+n+\" exception=\"+i)}},i}),define(\"org/forgerock/commons/ui/common/main/SpinnerManager\",[\"jquery\",\"spin\"],function(e,t){var n={};return n.showSpinner=function(r){n.spinner&&n.hideSpinner(),n.spinner=(new t).spin(document.getElementById(\"wrapper\")),e(\".spinner\").position({of:e(window),my:\"center center\",at:\"center center\"}),r&&(!n.priority||r>n.priority)&&(n.priority=r)},n.hideSpinner=function(e){n.spinner&&(!n.priority||e&&e>=n.priority)&&(n.spinner.stop(),delete n.priority)},n}),define(\"org/forgerock/commons/ui/common/main/ErrorsHandler\",[\"jquery\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\"],function(e,t,n,r){var i=new t;return i.handleError=function(t,s){var o;t.error&&!t.status&&(t.status=t.error);if(t.hasOwnProperty(\"responseText\"))try{t.responseObj=e.parseJSON(t.responseText)}catch(u){}s&&(o=i.matchError(t,s)),o||(o=i.matchError(t,i.configuration.defaultHandlers)),o?t.hasOwnProperty(\"responseObj\")&&t.responseObj!==null&&!(t.responseObj.code===403&&t.responseObj.message===\"SSO Token cannot be retrieved.\"||t.responseObj.error===403&&t.responseObj.message===\"Reauthentication failed\"||t.responseObj.error===409&&t.responseObj.message.match(/value to replace not found$/))&&(o.event&&n.sendEvent(o.event,{handler:o,error:t}),o.message&&n.sendEvent(r.EVENT_DISPLAY_MESSAGE_REQUEST,o.message)):(console.error(t.status),n.sendEvent(r.EVENT_DISPLAY_MESSAGE_REQUEST,\"unknown\"))},i.matchError=function(e,t){var n,r;for(r in t){n=t[r];if(n.status&&parseInt(e.status,0)===parseInt(n.status,0))return n}},i}),define(\"org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap\",[\"underscore\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\"],function(e,t){var n=new t;return n.updateConfigurationCallback=function(t){e.each(t,function(e,t){define(t,require(e)),require([t])})},n}),define(\"org/forgerock/commons/ui/common/main/main\",[\"./AbstractConfigurationAware\",\"./AbstractDelegate\",\"./Configuration\",\"./EventManager\",\"./ProcessConfiguration\",\"./ServiceInvoker\",\"./Router\",\"./ViewManager\",\"./SpinnerManager\",\"./ErrorsHandler\",\"./SessionManager\",\"./i18nManager\",\"./GenericRouteInterfaceMap\"]),define(\"org/forgerock/commons/ui/common/util/CustomPolyfill\",[],function(){var e=\"__proto__\";(function(){var e,t=function(){},n=[\"assert\",\"clear\",\"count\",\"debug\",\"dir\",\"dirxml\",\"error\",\"exception\",\"group\",\"groupCollapsed\",\"groupEnd\",\"info\",\"log\",\"markTimeline\",\"profile\",\"profileEnd\",\"table\",\"time\",\"timeEnd\",\"timeStamp\",\"trace\",\"warn\"],r=n.length,i=window.console=window.console||{};while(r--)e=n[r],i[e]||(i[e]=t)})(),typeof Object.getPrototypeOf!=\"function\"&&(typeof \"internet_explorer\"[e]==\"object\"?Object.getPrototypeOf=function(t){return t[e]}:Object.getPrototypeOf=function(e){return e.constructor.prototype}),typeof Object.create!=\"function\"&&(Object.create=function(e){function t(){}return t.prototype=e,new t})}),define(\"org/forgerock/commons/ui/common/util/main\",[\"./Constants\",\"./UIUtils\",\"./ObjectUtil\",\"./ValidatorsUtils\",\"./typeextentions/String\",\"./CustomPolyfill\",\"./Base64\",\"./Mime\"]),define(\"org/forgerock/commons/ui/common/components/Breadcrumbs\",[\"jquery\",\"underscore\",\"backbone\"],function(e,t,n){var r=n.View.extend({size:0,element:\"#nav-content\",init:function(){e(window).on(\"hashchange\",t.bind(this.buildByUrl,this)),this.baseTitle=document.title,this.buildByUrl()},buildByUrl:function(){var e,n,r,i,s;e=window.location.href.match(/#([a-zA-Z\\/_.@]+)/);if(e===null)document.title=this.baseTitle;else{e=e[1],n=t.compact(e.split(\"/\")),s=this.getHumanizedUrls(n),r=\"#\",this.clear();for(i=0;i<n.length-1;i++)r+=n[i]+\"/\",this.push(s[i],r);this.set(s[s.length-1]),document.title=this.baseTitle+\" - \"+s.join(\" - \")}},getHumanizedUrls:function(e){var t=[],n,r=/^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,4}$/;for(n=0;n<e.length;n++)t[n]=e[n].split(\"_\").join(\" \"),r.test(t[n])||(t[n]=t[n].capitalize());return t},clear:function(){while(this.size>0)this.pop()},set:function(t){e(this.element).find(\"span:last\").html(t)},push:function(t,n){e(this.element).find(\"a:last\").after(' <a href=\"'+n+'\" class=\"active\">'+t+\"</a>\"),e(this.element).find(\"a:last\").before('<img src=\"images/navi-next.png\" width=\"3\" height=\"5\" alt=\"\" align=\"absmiddle\" class=\"navi-next\" /><span></span>'),this.size++},pop:function(){e(\"#nav-content\").find(\"a\").length>1&&(e(this.element).find(\"a:last\").remove(),e(this.element).find(\"img:last\").remove(),e(this.element).find(\"span:last\").remove()),this.size--}});return new r}),define(\"org/forgerock/commons/ui/common/components/popup/PopupView\",[\"jquery\"],function(e){var t={};return t.init=function(){e(\"#popup\").on(\"mouseleave\",function(e){t.hide()})},t.setContent=function(t){e(\"#popup-content\").html(t)},t.setPositionBy=function(t){var n,r=e(t).position().left,i=e(t).position().top,s=e(t).width(),o=e(t).height();e(\"#popup\").css(\"left\",r),e(\"#popup\").css(\"top\",i),e(\"#popup\").css(\"height\",o),e(\"#popup-content\").css(\"margin-left\",20),n=e(\"#popup-content\").height(),e(\"#popup-content\").css(\"margin-top\",-n*1.2)},t.show=function(){e(\"#popup\").show()},t.hide=function(){e(\"#popup\").hide()},t}),define(\"org/forgerock/commons/ui/common/components/popup/PopupCtrl\",[\"org/forgerock/commons/ui/common/components/popup/PopupView\"],function(e){var t={};return t.view=e,t.init=function(){e.init()},t.showBy=function(t,n){e.setContent(t),e.show(),e.setPositionBy(n)},t.hide=function(){e.hide()},t}),define(\"org/forgerock/commons/ui/common/components/Footer\",[\"org/forgerock/commons/ui/common/main/AbstractView\"],function(e){var t=e.extend({element:\"#footer\",template:\"templates/common/FooterTemplate.html\",noBaseTemplate:!0,render:function(){this.parentRender()}});return new t}),define(\"org/forgerock/commons/ui/common/components/GridTableView\",[\"jquery\",\"backbone\"],function(e,t){var n=t.View.extend({items:[],events:{\"click li\":\"onClick\",sortupdate:\"orderChanged\"},render:function(e){var t;this.setElement(e.el),e.items&&(this.items=e.items),this.rebuildView()},generateItemView:function(e){return'<li class=\"ui-state-default\">'+e._id+\"</li>\"},onClick:function(t){t.preventDefault(),this.removeItemAndRebuild(e(t.target).find(\"input\").val())},getItems:function(){var t=[],n;return this.$el.find(\"ul li\").each(function(){n=e(this).text(),n&&t.push(n)}),t},orderChanged:function(){console.log(\"Order has changed\"),this.items=this.getItems()},removeItemAndRebuild:function(e){var t;for(t=0;t<this.items.length;t++)this.items[t]._id===e&&this.items.splice(t,1);this.rebuildView()},addItemAndRebuild:function(e){return this.itemExists(e._id)?!1:(this.items.push(e),this.rebuildView(),!0)},itemExists:function(e){var t;for(t=0;t<this.items.length;t++)if(this.items[t]._id===e)return!0;return!1},rebuildView:function(){var e;this.$el.find(\"#sortable\").remove(),this.$el.find(\"#noItemsMessage\").remove();if(this.items.length>0){this.$el.append('<ul id=\"sortable\" class=\"sortable\"></ul>'),this.sort();for(e=0;e<this.items.length;e++)this.$el.find(\"#sortable\").append(this.generateItemView(this.items[e]));this.installAdditionalFunctions()}this.$el.find(\"#sortable\").children().size()===0&&this.noItemsMessage()&&this.$el.append('<div id=\"noItemsMessage\" class=\"offset10\">'+this.noItemsMessage()+\"</div>\"),this.runAfterRebuildSteps()},sort:function(){},runAfterRebuildSteps:function(){},noItemsMessage:function(){return\"No items\"},installAdditionalFunctions:function(){this.$el.find(\"#sortable\").sortable(),this.$el.find(\"#sortable\").disableSelection()}});return n}),define(\"org/forgerock/commons/ui/common/components/LineTableView\",[\"jquery\",\"backbone\"],function(e,t){var n=t.View.extend({events:{\"click a[name=moreItems]\":\"moreItems\"},items:[],parentRender:function(e){this.setElement(e.el),this.items=e.items,this.rebuildView()},rebuildView:function(){var e,t,n,r;this.$el.find(\"#itemsView\").remove(),this.$el.append('<div id=\"itemsView\"></div>');if(this.items.length===0)this.$el.find(\"#itemsView\").append(this.noItemsMessage());else{this.$el.find(\"#itemsView\").append('<div id=\"items\"></div>'),this.maxToShow>0&&this.items.length>this.maxToShow?(t=this.maxToShow,n=!0):t=this.items.length,r=this.getHeightForItemsNumber(t),this.$el.find(\"#items\").height(r+\"px\");for(e=0;e<t;e++)this.$el.find(\"#items\").append(this.generateItemView(this.items[e]));n&&this.$el.find(\"#itemsView\").append(\"<a name='moreItems' class='ice itemLeftIdent' href='#' >\"+this.seeMoreItemsMessage()+\"</a>\")}},getHeightForItemsNumber:function(e){return this.itemHeight*e},render:function(e){this.parentRender(e)},moreItems:function(e){e.preventDefault(),console.log(\"See more\")},generateItemView:function(e){return'<div class=\"item\"><label>'+e._id+\"</label></div>\"},seeMoreItemsMessage:function(t){return e.t(\"openidm.ui.common.components.LineTableView.seeMoreItems\")},maxToShow:0,itemHeight:65,noItemsMessage:function(t){return e.t(\"openidm.ui.common.components.LineTableView.noItems\")},removeItemAndRebuild:function(e){var t;for(t=0;t<this.items.length;t++)this.items[t]._id===e&&this.items.splice(t,1);this.rebuildView()}});return n}),define(\"org/forgerock/commons/ui/common/components/ConfirmationDialog\",[\"org/forgerock/commons/ui/common/components/Dialog\",\"underscore\"],function(e,t){var n=e.extend({template:\"templates/common/DialogTemplate.html\",contentTemplate:\"templates/common/ConfirmationDialogTemplate.html\",events:{\"click input[type=submit]\":\"formSubmit\",\"click .dialogCloseCross img\":\"close\",\"click input[name='close']\":\"close\",click:\"close\",\"click .dialogContainer\":\"stop\"},data:{},formSubmit:function(){this.okCallback(),this.close()},render:function(e,n,r,i){this.actions=[],this.addAction(r,\"submit\"),this.data.msg=n,this.data.title=e,this.okCallback=i,this.show(t.bind(function(){this.$el.find(\"input[type=submit]\").prop(\"disabled\",!1)},this))}});return new n}),define(\"org/forgerock/commons/ui/common/components/main\",[\"./Breadcrumbs\",\"./popup/PopupCtrl\",\"./Dialog\",\"./Footer\",\"./Navigation\",\"./GridTableView\",\"./LineTableView\",\"./Messages\",\"./ConfirmationDialog\"]),define(\"org/forgerock/commons/ui/common/NotFoundView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\"],function(e,t,n,r){var i=e.extend({template:\"templates/common/404.html\",baseTemplate:\"templates/common/LoginBaseTemplate.html\"});return new i}),define(\"org/forgerock/commons/ui/common/EnableCookiesView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/util/CookieHelper\"],function(e,t){var n=e.extend({template:\"templates/common/EnableCookiesTemplate.html\",baseTemplate:\"templates/common/LoginBaseTemplate.html\",render:function(){t.cookiesEnabled()?location.href=\"#login/\":this.parentRender()}});return new n}),define(\"org/forgerock/commons/ui/common/LoginView\",[\"org/forgerock/commons/ui/common/main/AbstractView\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/util/CookieHelper\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t,n,r,i,s){var o=e.extend({template:\"templates/common/LoginTemplate.html\",baseTemplate:\"templates/common/LoginBaseTemplate.html\",events:{\"click input[type=submit]\":\"formSubmit\",onValidate:\"onValidate\"},formSubmit:function(e){e.preventDefault();if(this.$el.find(\"[name=loginRemember]:checked\").length!==0){var t=new Date;t.setDate(t.getDate()+7300),i.setCookie(\"login\",this.$el.find(\"input[name=login]\").val(),t)}else i.deleteCookie(\"login\");n.sendEvent(r.EVENT_LOGIN_REQUEST,{userName:this.$el.find(\"input[name=login]\").val(),password:this.$el.find(\"input[name=password]\").val()})},render:function(e,n){this.data.hasOptionalUIFeatures=!!s.globalData.selfRegistration||!!s.globalData.securityQuestions||!!s.globalData.siteIdentification||!!s.globalData.passwordResetLink,this.parentRender(function(){t.bindValidators(this.$el);var e=i.getCookie(\"login\");e?(this.$el.find(\"input[name=login]\").val(e).prop(\"autofocus\",!1),this.$el.find(\"[name=loginRemember]\").prop(\"checked\",!0),t.validateAllFields(this.$el),this.$el.find(\"[name=password]\").focus()):this.$el.find(\"input[name=login]\").focus(),n&&n()})}});return new o}),define(\"org/forgerock/commons/ui/common/LoginDialog\",[\"jquery\",\"underscore\",\"org/forgerock/commons/ui/common/main/ValidatorsManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/components/Dialog\",\"org/forgerock/commons/ui/common/main/SessionManager\",\"org/forgerock/commons/ui/common/main/ViewManager\"],function(e,t,n,r,i,s,o,u,a){var f=o.extend({contentTemplate:\"templates/common/LoginDialog.html\",element:\"#dialogs\",events:{\"click input[type=submit]\":\"login\",\"click .dialogCloseCross img\":\"loginClose\",\"click input[name='close']\":\"loginClose\",\"click .dialogContainer\":\"stop\",onValidate:\"onValidate\",\"keypress input\":\"submitForm\"},displayed:!1,submitForm:function(e){e.which===13&&this.login(e)},render:function(){this.displayed===!1&&(this.displayed=!0,this.addAction(\"Login\",\"submit\"),this.show(t.bind(function(){n.bindValidators(this.$el),e(\".dialog-background\").off(\"click\").on(\"click\",t.bind(this.loginClose,this)),r.loggedUser&&r.loggedUser.userName?(e(\"input[name=login]\").val(r.loggedUser.userName).trigger(\"keyup\"),e(\"input[name=password]\").focus()):e(\"input[name=login]\").focus()},this)))},loginClose:function(e){e&&e.preventDefault(),this.displayed=!1,this.close(e)},login:function(e){e.preventDefault();if(n.formValidated(this.$el)){var t,o,f,l=this;t=this.$el.find(\"input[name=login]\").val(),o=this.$el.find(\"input[name=password]\").val(),f=this.$el.find(\"input[name=refreshOnLogin]:checked\").val(),u.login({userName:t,password:o},function(e){r.setProperty(\"loggedUser\",e),i.sendEvent(s.EVENT_AUTHENTICATION_DATA_CHANGED,{anonymousMode:!1}),i.sendEvent(s.EVENT_DISPLAY_MESSAGE_REQUEST,\"loggedIn\"),l.loginClose(),f&&a.refresh()},function(){i.sendEvent(s.EVENT_DISPLAY_MESSAGE_REQUEST,\"authenticationFailed\")})}},data:{height:200,width:400}});return new f}),define(\"org/forgerock/commons/ui/common/LoggedUserBarView\",[\"backbone\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/Configuration\"],function(e,t,n,r){var i=e.View.extend({element:\"#loginContent\",events:{\"click #logout_link\":\"logout\"},logout:function(e){e.preventDefault(),t.sendEvent(n.EVENT_LOGOUT)},render:function(e,t){this.setElement(this.element),r.loggedUser?(this.$el.find(\"#profile_link\").show(),r.loggedUser.userName?this.$el.find(\"#user_name\").text(r.loggedUser.userName):r.loggedUser.cn&&this.$el.find(\"#user_name\").text(r.loggedUser.cn),this.$el.show()):this.$el.hide(),t&&t()}});return new i}),define(\"org/forgerock/commons/ui/common/SiteConfigurator\",[\"jquery\",\"underscore\",\"org/forgerock/commons/ui/common/main/AbstractConfigurationAware\",\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"org/forgerock/commons/ui/common/main/Configuration\",\"org/forgerock/commons/ui/common/main/i18nManager\"],function(e,t,n,r,i,s,o){var u=new n;return u.initialized=!1,e(document).on(r.EVENT_READ_CONFIGURATION_REQUEST,function(){var e;s.globalData||(s.setProperty(\"globalData\",{}),s.globalData.auth={}),s.delegateCache||s.setProperty(\"delegateCache\",{}),console.info(\"READING CONFIGURATION\"),u.configuration&&u.initialized===!1&&(u.initialized=!0,u.configuration.remoteConfig===!0?(e=require(u.configuration.delegate),e.getConfiguration(function(e){u.processConfiguration(e),i.sendEvent(r.EVENT_APP_INTIALIZED)},function(){u.processConfiguration({}),i.sendEvent(r.EVENT_APP_INTIALIZED)})):(u.processConfiguration(u.configuration),i.sendEvent(r.EVENT_APP_INTIALIZED)))}),u.processConfiguration=function(e){t.extend(s.globalData,e),e.defaultNotificationType&&(s.defaultType=e.defaultNotificationType),e.notificationTypes&&(s.notificationTypes=e.notificationTypes),e.roles&&(s.globalData.userRoles=e.roles),s.globalData.auth.cookieName=e.cookieName,s.globalData.auth.cookieDomains=e.domains,o.init(e.lang)},u.configurePage=function(t,n){var r=e.Deferred(),i;return u.configuration.remoteConfig===!0?(i=require(u.configuration.delegate),typeof i.checkForDifferences==\"function\"?i.checkForDifferences(t,n).then(function(e){e&&u.processConfiguration(e),r.resolve()}):r.resolve()):r.resolve(),r},u}),define(\"org/forgerock/commons/ui/common/main\",[\"./main/main\",\"./util/main\",\"./components/main\",\"./NotFoundView\",\"./EnableCookiesView\",\"./LoginView\",\"./LoginDialog\",\"./LoggedUserBarView\",\"./SiteConfigurator\"]),require.config({paths:{i18next:\"libs/i18next-1.7.3-min\",backbone:\"libs/backbone-1.1.2-min\",underscore:\"libs/lodash-2.4.1-min\",js2form:\"libs/js2form-2.0\",form2js:\"libs/form2js-2.0\",spin:\"libs/spin-2.0.1-min\",jquery:\"libs/jquery-1.11.1-min\",xdate:\"libs/xdate-0.8-min\",doTimeout:\"libs/jquery.ba-dotimeout-1.0-min\",handlebars:\"libs/handlebars-1.3.0-min\",moment:\"libs/moment-2.8.1-min\",ThemeManager:\"org/forgerock/openam/ui/common/util/ThemeManager\",UserDelegate:\"org/forgerock/openam/ui/user/delegates/UserDelegate\"},shim:{underscore:{exports:\"_\"},backbone:{deps:[\"underscore\"],exports:\"Backbone\"},js2form:{exports:\"js2form\"},form2js:{exports:\"form2js\"},spin:{exports:\"spin\"},xdate:{exports:\"xdate\"},doTimeout:{deps:[\"jquery\"],exports:\"doTimeout\"},handlebars:{exports:\"handlebars\"},i18next:{deps:[\"jquery\",\"handlebars\"],exports:\"i18next\"},moment:{exports:\"moment\"}}}),require([\"org/forgerock/commons/ui/common/util/Constants\",\"org/forgerock/commons/ui/common/main/EventManager\",\"jquery\",\"underscore\",\"backbone\",\"form2js\",\"js2form\",\"spin\",\"xdate\",\"moment\",\"doTimeout\",\"handlebars\",\"i18next\",\"org/forgerock/openam/ui/common/util/ThemeManager\",\"org/forgerock/commons/ui/common/main/i18nManager\",\"config/main\",\"org/forgerock/openam/ui/common/main\",\"org/forgerock/openam/ui/user/main\",\"org/forgerock/openam/ui/dashboard/main\",\"UserDelegate\",\"ThemeManager\",\"org/forgerock/commons/ui/user/main\",\"org/forgerock/commons/ui/common/main\"],function(e,t,n,r,i){window.$=n,window._=r,window.Backbone=i,t.sendEvent(e.EVENT_DEPENDECIES_LOADED)}),define(\"main\",function(){})"
  427.          },
  428.          "redirectURL": "",
  429.          "headersSize": 125,
  430.          "bodySize": 406899
  431.        },
  432.        "cache": {},
  433.        "timings": {
  434.          "blocked": 0,
  435.          "dns": 0,
  436.          "connect": 2,
  437.          "send": 0,
  438.          "wait": 44,
  439.          "receive": 0
  440.        },
  441.        "serverIPAddress": "10.0.3.211",
  442.        "connection": "8090"
  443.      },
  444.      {
  445.        "pageref": "page_2",
  446.        "startedDateTime": "2016-01-29T10:43:28.200+05:30",
  447.        "time": 2,
  448.        "request": {
  449.          "bodySize": 0,
  450.          "method": "GET",
  451.          "url": "http://openam.mydomain.com:8090/openam/json/serverinfo/*",
  452.          "httpVersion": "HTTP/1.1",
  453.          "headers": [
  454.            {
  455.              "name": "Host",
  456.              "value": "openam.mydomain.com:8090"
  457.            },
  458.            {
  459.              "name": "User-Agent",
  460.              "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  461.            },
  462.            {
  463.              "name": "Accept",
  464.              "value": "application/json, text/javascript, */*; q=0.01"
  465.            },
  466.            {
  467.              "name": "Accept-Language",
  468.              "value": "en-US,en;q=0.5"
  469.            },
  470.            {
  471.              "name": "Accept-Encoding",
  472.              "value": "gzip, deflate"
  473.            },
  474.            {
  475.              "name": "Content-Type",
  476.              "value": "application/json"
  477.            },
  478.            {
  479.              "name": "Accept-API-Version",
  480.              "value": "protocol=1.0,resource=1.1"
  481.            },
  482.            {
  483.              "name": "X-Requested-With",
  484.              "value": "XMLHttpRequest"
  485.            },
  486.            {
  487.              "name": "Referer",
  488.              "value": "http://openam.mydomain.com:8090/openam/XUI/"
  489.            },
  490.            {
  491.              "name": "Connection",
  492.              "value": "keep-alive"
  493.            }
  494.          ],
  495.          "cookies": [],
  496.          "queryString": [],
  497.          "postData": {
  498.            "mimeType": "application/json",
  499.            "params": [],
  500.            "text": ""
  501.          },
  502.          "headersSize": 476
  503.        },
  504.        "response": {
  505.          "status": 404,
  506.          "statusText": "Not Found",
  507.          "httpVersion": "HTTP/1.1",
  508.          "headers": [
  509.            {
  510.              "name": "Server",
  511.              "value": "Apache-Coyote/1.1"
  512.            },
  513.            {
  514.              "name": "Content-Type",
  515.              "value": "text/html;charset=utf-8"
  516.            },
  517.            {
  518.              "name": "Content-Language",
  519.              "value": "en"
  520.            },
  521.            {
  522.              "name": "Content-Length",
  523.              "value": "949"
  524.            },
  525.            {
  526.              "name": "Date",
  527.              "value": "Fri, 29 Jan 2016 05:13:27 GMT"
  528.            }
  529.          ],
  530.          "cookies": [],
  531.          "content": {
  532.            "mimeType": "text/html; charset=utf-8",
  533.            "size": 949,
  534.            "text": "<html><head><title>Apache Tomcat/7.0.67 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat/7.0.67</h3></body></html>"
  535.           },
  536.           "redirectURL": "",
  537.           "headersSize": 172,
  538.           "bodySize": 949
  539.         },
  540.         "cache": {},
  541.         "timings": {
  542.           "blocked": 0,
  543.           "dns": 0,
  544.           "connect": 2,
  545.           "send": 0,
  546.           "wait": 0,
  547.           "receive": 0
  548.         },
  549.         "serverIPAddress": "10.0.3.211",
  550.         "connection": "8090"
  551.       },
  552.       {
  553.         "pageref": "page_2",
  554.         "startedDateTime": "2016-01-29T10:43:28.369+05:30",
  555.         "time": 1,
  556.         "request": {
  557.           "bodySize": 2,
  558.           "method": "POST",
  559.           "url": "http://openam.mydomain.com:8090/openam/json/users?_action=idFromSession",
  560.           "httpVersion": "HTTP/1.1",
  561.           "headers": [
  562.             {
  563.               "name": "Host",
  564.               "value": "openam.mydomain.com:8090"
  565.             },
  566.             {
  567.               "name": "User-Agent",
  568.               "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  569.             },
  570.             {
  571.               "name": "Accept",
  572.               "value": "application/json, text/javascript, */*; q=0.01"
  573.             },
  574.             {
  575.               "name": "Accept-Language",
  576.               "value": "en-US,en;q=0.5"
  577.             },
  578.             {
  579.               "name": "Accept-Encoding",
  580.               "value": "gzip, deflate"
  581.             },
  582.             {
  583.               "name": "Content-Type",
  584.               "value": "application/json; charset=UTF-8"
  585.             },
  586.             {
  587.               "name": "Accept-API-Version",
  588.               "value": "protocol=1.0,resource=2.0"
  589.             },
  590.             {
  591.               "name": "X-Requested-With",
  592.               "value": "XMLHttpRequest"
  593.             },
  594.             {
  595.               "name": "Referer",
  596.               "value": "http://openam.mydomain.com:8090/openam/XUI/"
  597.             },
  598.             {
  599.               "name": "Content-Length",
  600.               "value": "2"
  601.             },
  602.             {
  603.               "name": "Connection",
  604.               "value": "keep-alive"
  605.             }
  606.           ],
  607.           "cookies": [],
  608.           "queryString": [
  609.             {
  610.               "name": "_action",
  611.               "value": "idFromSession"
  612.             }
  613.           ],
  614.           "postData": {
  615.             "mimeType": "application/json; charset=UTF-8",
  616.             "params": [],
  617.             "text": "{}"
  618.           },
  619.           "headersSize": 526
  620.         },
  621.         "response": {
  622.           "status": 404,
  623.           "statusText": "Not Found",
  624.           "httpVersion": "HTTP/1.1",
  625.           "headers": [
  626.             {
  627.               "name": "Server",
  628.               "value": "Apache-Coyote/1.1"
  629.             },
  630.             {
  631.               "name": "Content-Type",
  632.               "value": "text/html;charset=utf-8"
  633.             },
  634.             {
  635.               "name": "Content-Language",
  636.               "value": "en"
  637.             },
  638.             {
  639.               "name": "Content-Length",
  640.               "value": "949"
  641.             },
  642.             {
  643.               "name": "Date",
  644.               "value": "Fri, 29 Jan 2016 05:13:27 GMT"
  645.             }
  646.           ],
  647.           "cookies": [],
  648.           "content": {
  649.             "mimeType": "text/html; charset=utf-8",
  650.             "size": 949,
  651.             "text": "<html><head><title>Apache Tomcat/7.0.67 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat/7.0.67</h3></body></html>"
  652.           },
  653.           "redirectURL": "",
  654.           "headersSize": 172,
  655.           "bodySize": 949
  656.         },
  657.         "cache": {},
  658.         "timings": {
  659.           "blocked": 0,
  660.           "dns": 0,
  661.           "connect": 1,
  662.           "send": 0,
  663.           "wait": 0,
  664.           "receive": 0
  665.         },
  666.         "serverIPAddress": "10.0.3.211",
  667.         "connection": "8090"
  668.       },
  669.       {
  670.         "pageref": "page_2",
  671.         "startedDateTime": "2016-01-29T10:43:28.498+05:30",
  672.         "time": 2,
  673.         "request": {
  674.           "bodySize": 0,
  675.           "method": "POST",
  676.           "url": "http://openam.mydomain.com:8090/openam/json/authenticate?",
  677.           "httpVersion": "HTTP/1.1",
  678.           "headers": [
  679.             {
  680.               "name": "Host",
  681.               "value": "openam.mydomain.com:8090"
  682.             },
  683.             {
  684.               "name": "User-Agent",
  685.               "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
  686.             },
  687.             {
  688.               "name": "Accept",
  689.               "value": "application/json, text/javascript, */*; q=0.01"
  690.             },
  691.             {
  692.               "name": "Accept-Language",
  693.               "value": "en-US,en;q=0.5"
  694.             },
  695.             {
  696.               "name": "Accept-Encoding",
  697.               "value": "gzip, deflate"
  698.             },
  699.             {
  700.               "name": "Content-Type",
  701.               "value": "application/json"
  702.             },
  703.             {
  704.               "name": "Accept-API-Version",
  705.               "value": "protocol=1.0,resource=2.0"
  706.             },
  707.             {
  708.               "name": "X-Password",
  709.               "value": "anonymous"
  710.             },
  711.             {
  712.               "name": "X-Username",
  713.               "value": "anonymous"
  714.             },
  715.             {
  716.               "name": "X-NoSession",
  717.               "value": "true"
  718.             },
  719.             {
  720.               "name": "X-Requested-With",
  721.               "value": "XMLHttpRequest"
  722.             },
  723.             {
  724.               "name": "Referer",
  725.               "value": "http://openam.mydomain.com:8090/openam/XUI/"
  726.             },
  727.             {
  728.               "name": "Connection",
  729.               "value": "keep-alive"
  730.             },
  731.             {
  732.               "name": "Content-Length",
  733.               "value": "0"
  734.             }
  735.           ],
  736.           "cookies": [],
  737.           "queryString": [],
  738.           "postData": {
  739.             "mimeType": "application/json",
  740.             "params": [],
  741.             "text": ""
  742.           },
  743.           "headersSize": 562
  744.         },
  745.         "response": {
  746.           "status": 404,
  747.           "statusText": "Not Found",
  748.           "httpVersion": "HTTP/1.1",
  749.           "headers": [
  750.             {
  751.               "name": "Server",
  752.               "value": "Apache-Coyote/1.1"
  753.             },
  754.             {
  755.               "name": "Content-Type",
  756.               "value": "text/html;charset=utf-8"
  757.             },
  758.             {
  759.               "name": "Content-Language",
  760.               "value": "en"
  761.             },
  762.             {
  763.               "name": "Content-Length",
  764.               "value": "949"
  765.             },
  766.             {
  767.               "name": "Date",
  768.               "value": "Fri, 29 Jan 2016 05:13:28 GMT"
  769.             }
  770.           ],
  771.           "cookies": [],
  772.           "content": {
  773.             "mimeType": "text/html; charset=utf-8",
  774.             "size": 949,
  775.             "text": "<html><head><title>Apache Tomcat/7.0.67 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat/7.0.67</h3></body></html>"
  776.           },
  777.           "redirectURL": "",
  778.           "headersSize": 172,
  779.           "bodySize": 949
  780.         },
  781.         "cache": {},
  782.         "timings": {
  783.           "blocked": 0,
  784.           "dns": 0,
  785.           "connect": 2,
  786.           "send": 0,
  787.           "wait": 0,
  788.           "receive": 0
  789.         },
  790.         "serverIPAddress": "10.0.3.211",
  791.         "connection": "8090"
  792.       }
  793.     ]
  794.   }
  795. }
Add Comment
Please, Sign In to add comment