code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
/*! tablesorter repeatHeaders widget - updated 4/12/2013 * Requires tablesorter v2.8+ and jQuery 1.7+ * Original by Christian Bach from the example-widgets.html demo */ /*global jQuery: false */ ;(function($){ "use strict"; $.tablesorter.addWidget({ id: "repeatHeaders", priority: 10, options: { rowsToSkip : 4 }, // format is called on init and when a sorting has finished format: function(table, c, wo) { var h = '', i, $tr, l, skip; // cache and collect all TH headers if (!wo.repeatHeaders) { h = '<tr class="repeated-header remove-me">'; $.each(c.headerContent, function(i,t) { h += '<th>' + t + '</th>'; }); // "remove-me" class was added in case the table needs to be updated, the "remove-me" rows will be // removed prior to the update to prevent including the rows in the update - see "selectorRemove" option wo.repeatHeaders = h + '</tr>'; } // number of rows to skip skip = wo && wo.rowsToSkip || 4; // remove appended headers by classname c.$table.find("tr.repeated-header").remove(); $tr = c.$tbodies.find('tr'); l = $tr.length; // loop all tr elements and insert a copy of the "headers" for (i = skip; i < l; i += skip) { // insert a copy of the table head every X rows $tr.eq(i).before(wo.repeatHeaders); } }, // this remove function is called when using the refreshWidgets method or when destroying the tablesorter plugin // this function only applies to tablesorter v2.4+ remove: function(table, c){ c.$table.find("tr.repeated-header").remove(); } }); })(jQuery);
znsstudio/cdnjs
ajax/libs/jquery.tablesorter/2.9.1/widgets/widget-repeatheaders.js
JavaScript
mit
1,596
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\CssSelector\Tests\Parser\Handler; use Symfony\Component\CssSelector\Parser\Handler\WhitespaceHandler; use Symfony\Component\CssSelector\Parser\Token; class WhitespaceHandlerTest extends AbstractHandlerTest { public function getHandleValueTestData() { return [ [' ', new Token(Token::TYPE_WHITESPACE, ' ', 0), ''], ["\n", new Token(Token::TYPE_WHITESPACE, "\n", 0), ''], ["\t", new Token(Token::TYPE_WHITESPACE, "\t", 0), ''], [' foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), 'foo'], [' .foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), '.foo'], ]; } public function getDontHandleValueTestData() { return [ ['>'], ['1'], ['a'], ]; } protected function generateHandler() { return new WhitespaceHandler(); } }
lstrojny/symfony
src/Symfony/Component/CssSelector/Tests/Parser/Handler/WhitespaceHandlerTest.php
PHP
mit
1,153
// dll.cpp - written and placed in the public domain by Wei Dai #define CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES #define CRYPTOPP_DEFAULT_NO_DLL #include "dll.h" #pragma warning(default: 4660) #if defined(CRYPTOPP_EXPORTS) && defined(CRYPTOPP_WIN32_AVAILABLE) #include <windows.h> #endif #ifndef CRYPTOPP_IMPORTS NAMESPACE_BEGIN(CryptoPP) template<> const byte PKCS_DigestDecoration<SHA1>::decoration[] = {0x30,0x21,0x30,0x09,0x06,0x05,0x2B,0x0E,0x03,0x02,0x1A,0x05,0x00,0x04,0x14}; template<> const unsigned int PKCS_DigestDecoration<SHA1>::length = sizeof(PKCS_DigestDecoration<SHA1>::decoration); template<> const byte PKCS_DigestDecoration<SHA224>::decoration[] = {0x30,0x2d,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x04,0x05,0x00,0x04,0x1c}; template<> const unsigned int PKCS_DigestDecoration<SHA224>::length = sizeof(PKCS_DigestDecoration<SHA224>::decoration); template<> const byte PKCS_DigestDecoration<SHA256>::decoration[] = {0x30,0x31,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x01,0x05,0x00,0x04,0x20}; template<> const unsigned int PKCS_DigestDecoration<SHA256>::length = sizeof(PKCS_DigestDecoration<SHA256>::decoration); template<> const byte PKCS_DigestDecoration<SHA384>::decoration[] = {0x30,0x41,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x02,0x05,0x00,0x04,0x30}; template<> const unsigned int PKCS_DigestDecoration<SHA384>::length = sizeof(PKCS_DigestDecoration<SHA384>::decoration); template<> const byte PKCS_DigestDecoration<SHA512>::decoration[] = {0x30,0x51,0x30,0x0d,0x06,0x09,0x60,0x86,0x48,0x01,0x65,0x03,0x04,0x02,0x03,0x05,0x00,0x04,0x40}; template<> const unsigned int PKCS_DigestDecoration<SHA512>::length = sizeof(PKCS_DigestDecoration<SHA512>::decoration); template<> const byte EMSA2HashId<SHA>::id = 0x33; template<> const byte EMSA2HashId<SHA224>::id = 0x38; template<> const byte EMSA2HashId<SHA256>::id = 0x34; template<> const byte EMSA2HashId<SHA384>::id = 0x36; template<> const byte EMSA2HashId<SHA512>::id = 0x35; NAMESPACE_END #endif #ifdef CRYPTOPP_EXPORTS USING_NAMESPACE(CryptoPP) #if !(defined(_MSC_VER) && (_MSC_VER < 1300)) using std::set_new_handler; #endif static PNew s_pNew = NULL; static PDelete s_pDelete = NULL; static void * New (size_t size) { void *p; while (!(p = malloc(size))) CallNewHandler(); return p; } static void SetNewAndDeleteFunctionPointers() { void *p = NULL; HMODULE hModule = NULL; MEMORY_BASIC_INFORMATION mbi; while (true) { VirtualQuery(p, &mbi, sizeof(mbi)); if (p >= (char *)mbi.BaseAddress + mbi.RegionSize) break; p = (char *)mbi.BaseAddress + mbi.RegionSize; if (!mbi.AllocationBase || mbi.AllocationBase == hModule) continue; hModule = HMODULE(mbi.AllocationBase); PGetNewAndDelete pGetNewAndDelete = (PGetNewAndDelete)GetProcAddress(hModule, "GetNewAndDeleteForCryptoPP"); if (pGetNewAndDelete) { pGetNewAndDelete(s_pNew, s_pDelete); return; } PSetNewAndDelete pSetNewAndDelete = (PSetNewAndDelete)GetProcAddress(hModule, "SetNewAndDeleteFromCryptoPP"); if (pSetNewAndDelete) { s_pNew = &New; s_pDelete = &free; pSetNewAndDelete(s_pNew, s_pDelete, &set_new_handler); return; } } // try getting these directly using mangled names of new and delete operators hModule = GetModuleHandle("msvcrtd"); if (!hModule) hModule = GetModuleHandle("msvcrt"); if (hModule) { // 32-bit versions s_pNew = (PNew)GetProcAddress(hModule, "??2@YAPAXI@Z"); s_pDelete = (PDelete)GetProcAddress(hModule, "??3@YAXPAX@Z"); if (s_pNew && s_pDelete) return; // 64-bit versions s_pNew = (PNew)GetProcAddress(hModule, "??2@YAPEAX_K@Z"); s_pDelete = (PDelete)GetProcAddress(hModule, "??3@YAXPEAX@Z"); if (s_pNew && s_pDelete) return; } OutputDebugString("Crypto++ was not able to obtain new and delete function pointers.\n"); throw 0; } void * operator new (size_t size) { if (!s_pNew) SetNewAndDeleteFunctionPointers(); return s_pNew(size); } void operator delete (void * p) { s_pDelete(p); } void * operator new [] (size_t size) { return operator new (size); } void operator delete [] (void * p) { operator delete (p); } #endif // #ifdef CRYPTOPP_EXPORTS
dadcoinv1/dadcoin
src/cryptopp/dll.cpp
C++
mit
4,207
/** * `input` type prompt */ var _ = require("lodash"); var util = require("util"); var clc = require("cli-color"); var Base = require("./base"); /** * Module exports */ module.exports = Prompt; /** * Constructor */ function Prompt() { return Base.apply( this, arguments ); } util.inherits( Prompt, Base ); /** * Start the Inquiry session * @param {Function} cb Callback when prompt is done * @return {this} */ Prompt.prototype._run = function( cb ) { this.done = cb; // Once user confirm (enter key) this.rl.on( "line", this.onSubmit.bind(this) ); // Init this.render(); return this; }; /** * Render the prompt to screen * @return {Prompt} self */ Prompt.prototype.render = function() { var message = this.getQuestion(); this.write( message ); var msgLines = message.split(/\n/); this.height = msgLines.length; this.rl.setPrompt( _.last(msgLines) ); return this; }; /** * When user press `enter` key */ Prompt.prototype.onSubmit = function( input ) { var value = input || this.opt.default || ""; this.validate( value, function( isValid ) { if ( isValid === true ) { this.status = "answered"; // Re-render prompt this.clean(1).render(); // Render answer this.write( clc.cyan(value) + "\n" ); this.rl.removeAllListeners("line"); this.done( value ); } else { this.error( isValid ).clean().render(); } }.bind(this)); };
GitKap/moonitor
node_modules/bower/node_modules/inquirer/lib/prompts/input.js
JavaScript
mit
1,456
<!DOCTYPE html><!--HTML5 doctype--> <html> <head> <title>Documentation</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <link rel="stylesheet" type="text/css" href="af.ui.css" /> <link rel="stylesheet" type="text/css" href="icons.css" /> <!--<script type="text/javascript" charset="utf-8" src="appframework.ui.min.js"></script>--> <script src="appframework.js"></script> <script src="appframework.ui.js"></script> <script> function aj(obj){ console.log(obj); alert(JSON.stringify(obj)); } if(!$.os.ios&&!$.os.android){ $.os.desktop=true; var sheet = document.createElement('style') sheet.innerHTML = "* {-webkit-user-select:text;!important};}"; $("head").append(sheet); $.ui.ready(function(){ $("#menu").css("overflow","auto"); }); } function toggleSource(ind,el){ $("#source_"+ind).toggle(); $el=$(el); if($el.html().toLowerCase()=="show source"){ $el.replaceClass("collapsed","expanded"); $el.html("Hide Source"); } else { $el.replaceClass("expanded","collapsed"); $el.html("Show Source"); } } </script> <script type="text/javascript"> /* This function runs once the page is loaded, but appMobi is not yet active */ var webRoot="/documentation/"; $.ui.autoLaunch=true; $.ui.backButtonText="Back"; </script> <style> .greenredclass { background:green; color:red; } .blueyellowclass { background:blue; color:yellow; } .markdown pre { padding-top:10px ; margin-left:0px; padding-bottom:10px; } .markdown p { background:transparent; box-shadow:none; -webkit-box-shadow:none; padding:0px; padding-bottom:5px; } pre { background:#969fa7; width:100%; counter-reset: linenumbers; margin-bottom:10px; border-radius:8px; color:white; font:normal 14px/17px Couriour New,Couriour; overflow:auto; -webkit-overflow-scrolling:touch; } code{ background:#969fa7; overflow:auto; color:white; } h3{ display:block; background:#969fa7; overflow:auto; color:white; height:48px; width:100%; } h3 a { display: block; width: 100%; height: 100%; } .linenumber { padding-left:5px; } .linenumber:before{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; padding: 0 5px; text-align: right; width: 50px; padding-right:5px; } .linenumber:before { color:white; content: counter(linenumbers) "."; counter-increment: linenumbers; } .source { display:none } @media handheld, only screen and (min-width: 768px){ .source{ display:block; } } .viewsource { border-top:1px solid #999; } </style> </head> <body> <div id="afui"> <div id="header"> <a id="menubadge" onclick="$.ui.toggleSideMenu()" style="float:right;margin-top:0px" class="menuButton"></a> </div> <div id="content"> <div title='Documentation' id="main" class="panel" selected="true"> <ul class='list'> <li><a href='#appframework'>appframework</a></li> <li><a href='#af_ui'>af.ui</a></li> </ul> </div> <div id='appframework' title='appframework' class='panel' data-nav='nav_appframework'><ul class='list'><li><a data-persist-ajax='true' href='#$_is$'>$.is$</a></li> <li><a data-persist-ajax='true' href='#$_map'>$.map</a></li> <li><a data-persist-ajax='true' href='#$_each'>$.each</a></li> <li><a data-persist-ajax='true' href='#$_extend'>$.extend</a></li> <li><a data-persist-ajax='true' href='#$_isArray'>$.isArray</a></li> <li><a data-persist-ajax='true' href='#$_isFunction'>$.isFunction</a></li> <li><a data-persist-ajax='true' href='#$_isObject'>$.isObject</a></li> <li><a data-persist-ajax='true' href='#_map'>.map</a></li> <li><a data-persist-ajax='true' href='#_each'>.each</a></li> <li><a data-persist-ajax='true' href='#_ready'>.ready</a></li> <li><a data-persist-ajax='true' href='#_find'>.find</a></li> <li><a data-persist-ajax='true' href='#_html'>.html</a></li> <li><a data-persist-ajax='true' href='#_text'>.text</a></li> <li><a data-persist-ajax='true' href='#_css'>.css</a></li> <li><a data-persist-ajax='true' href='#_vendorCss'>.vendorCss</a></li> <li><a data-persist-ajax='true' href='#_computedStyle'>.computedStyle</a></li> <li><a data-persist-ajax='true' href='#_empty'>.empty</a></li> <li><a data-persist-ajax='true' href='#_hide'>.hide</a></li> <li><a data-persist-ajax='true' href='#_show'>.show</a></li> <li><a data-persist-ajax='true' href='#_toggle'>.toggle</a></li> <li><a data-persist-ajax='true' href='#_val'>.val</a></li> <li><a data-persist-ajax='true' href='#_attr'>.attr</a></li> <li><a data-persist-ajax='true' href='#_removeAttr'>.removeAttr</a></li> <li><a data-persist-ajax='true' href='#_prop'>.prop</a></li> <li><a data-persist-ajax='true' href='#_removeProp'>.removeProp</a></li> <li><a data-persist-ajax='true' href='#_remove'>.remove</a></li> <li><a data-persist-ajax='true' href='#_addClass'>.addClass</a></li> <li><a data-persist-ajax='true' href='#_removeClass'>.removeClass</a></li> <li><a data-persist-ajax='true' href='#_toggleClass'>.toggleClass</a></li> <li><a data-persist-ajax='true' href='#_replaceClass'>.replaceClass</a></li> <li><a data-persist-ajax='true' href='#_hasClass'>.hasClass</a></li> <li><a data-persist-ajax='true' href='#_append'>.append</a></li> <li><a data-persist-ajax='true' href='#_appendTo'>.appendTo</a></li> <li><a data-persist-ajax='true' href='#_prependTo'>.prependTo</a></li> <li><a data-persist-ajax='true' href='#_prepend'>.prepend</a></li> <li><a data-persist-ajax='true' href='#_insertBefore'>.insertBefore</a></li> <li><a data-persist-ajax='true' href='#_insertAfter'>.insertAfter</a></li> <li><a data-persist-ajax='true' href='#_get'>.get</a></li> <li><a data-persist-ajax='true' href='#_offset'>.offset</a></li> <li><a data-persist-ajax='true' href='#_height'>.height</a></li> <li><a data-persist-ajax='true' href='#_width'>.width</a></li> <li><a data-persist-ajax='true' href='#_parent'>.parent</a></li> <li><a data-persist-ajax='true' href='#_parents'>.parents</a></li> <li><a data-persist-ajax='true' href='#_children'>.children</a></li> <li><a data-persist-ajax='true' href='#_siblings'>.siblings</a></li> <li><a data-persist-ajax='true' href='#_closest'>.closest</a></li> <li><a data-persist-ajax='true' href='#_filter'>.filter</a></li> <li><a data-persist-ajax='true' href='#_not'>.not</a></li> <li><a data-persist-ajax='true' href='#_data'>.data</a></li> <li><a data-persist-ajax='true' href='#_end'>.end</a></li> <li><a data-persist-ajax='true' href='#_clone'>.clone</a></li> <li><a data-persist-ajax='true' href='#_size'>.size</a></li> <li><a data-persist-ajax='true' href='#_serialize'>.serialize</a></li> <li><a data-persist-ajax='true' href='#_eq'>.eq</a></li> <li><a data-persist-ajax='true' href='#_index'>.index</a></li> <li><a data-persist-ajax='true' href='#_is'>.is</a></li> <li><a data-persist-ajax='true' href='#$_jsonP'>$.jsonP</a></li> <li><a data-persist-ajax='true' href='#$_ajax'>$.ajax</a></li> <li><a data-persist-ajax='true' href='#$_get'>$.get</a></li> <li><a data-persist-ajax='true' href='#$_post'>$.post</a></li> <li><a data-persist-ajax='true' href='#$_getJSON'>$.getJSON</a></li> <li><a data-persist-ajax='true' href='#$_param'>$.param</a></li> <li><a data-persist-ajax='true' href='#$_parseJSON'>$.parseJSON</a></li> <li><a data-persist-ajax='true' href='#$_parseXML'>$.parseXML</a></li> <li><a data-persist-ajax='true' href='#$_uuid'>$.uuid</a></li> <li><a data-persist-ajax='true' href='#$_create'>$.create</a></li> <li><a data-persist-ajax='true' href='#$_query'>$.query</a></li> <li><a data-persist-ajax='true' href='#_bind'>.bind</a></li> <li><a data-persist-ajax='true' href='#_unbind'>.unbind</a></li> <li><a data-persist-ajax='true' href='#_one'>.one</a></li> <li><a data-persist-ajax='true' href='#_delegate'>.delegate</a></li> <li><a data-persist-ajax='true' href='#_undelegate'>.undelegate</a></li> <li><a data-persist-ajax='true' href='#_on'>.on</a></li> <li><a data-persist-ajax='true' href='#_off'>.off</a></li> <li><a data-persist-ajax='true' href='#_trigger'>.trigger</a></li> <li><a data-persist-ajax='true' href='#$_Event'>$.Event</a></li> <li><a data-persist-ajax='true' href='#$_bind'>$.bind</a></li> <li><a data-persist-ajax='true' href='#$_trigger'>$.trigger</a></li> <li><a data-persist-ajax='true' href='#$_unbind'>$.unbind</a></li> <li><a data-persist-ajax='true' href='#$_proxy'>$.proxy</a></li> <li><a data-persist-ajax='true' href='#$_cleanUpContent'>$.cleanUpContent</a></li> <li><a data-persist-ajax='true' href='#$_parseJS'>$.parseJS</a></li> </ul></div> <div id='af_ui' title='af.ui' class='panel' data-nav='nav_af_ui'><ul class='list'><li><a data-persist-ajax='true' href='#$_ui_setSideMenuWidth'>$.ui.setSideMenuWidth</a></li> <li><a data-persist-ajax='true' href='#$_ui_disableNativeScrolling'>$.ui.disableNativeScrolling</a></li> <li><a data-persist-ajax='true' href='#$_ui_manageHistory'>$.ui.manageHistory</a></li> <li><a data-persist-ajax='true' href='#$_ui_loadDefaultHash'>$.ui.loadDefaultHash</a></li> <li><a data-persist-ajax='true' href='#$_ui_useAjaxCacheBuster'>$.ui.useAjaxCacheBuster</a></li> <li><a data-persist-ajax='true' href='#$_ui_actionsheet'>$.ui.actionsheet</a></li> <li><a data-persist-ajax='true' href='#$_ui_popup'>$.ui.popup</a></li> <li><a data-persist-ajax='true' href='#$_ui_blockUI'>$.ui.blockUI</a></li> <li><a data-persist-ajax='true' href='#$_ui_unblockUI'>$.ui.unblockUI</a></li> <li><a data-persist-ajax='true' href='#$_ui_removeFooterMenu'>$.ui.removeFooterMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_autoLaunch'>$.ui.autoLaunch</a></li> <li><a data-persist-ajax='true' href='#$_ui_showBackButton'>$.ui.showBackButton</a></li> <li><a data-persist-ajax='true' href='#$_ui_backButtonText'>$.ui.backButtonText</a></li> <li><a data-persist-ajax='true' href='#$_ui_resetScrollers'>$.ui.resetScrollers</a></li> <li><a data-persist-ajax='true' href='#$_ui_ready'>$.ui.ready</a></li> <li><a data-persist-ajax='true' href='#$_ui_setBackButtonStyle'>$.ui.setBackButtonStyle</a></li> <li><a data-persist-ajax='true' href='#$_ui_goBack'>$.ui.goBack</a></li> <li><a data-persist-ajax='true' href='#$_ui_clearHistory'>$.ui.clearHistory</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateBadge'>$.ui.updateBadge</a></li> <li><a data-persist-ajax='true' href='#$_ui_removeBadge'>$.ui.removeBadge</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleNavMenu'>$.ui.toggleNavMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleHeaderMenu'>$.ui.toggleHeaderMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleSideMenu'>$.ui.toggleSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_disableSideMenu'>$.ui.disableSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_enableSideMenu'>$.ui.enableSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateNavbarElements'>$.ui.updateNavbarElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateHeaderElements'>$.ui.updateHeaderElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateSideMenuElements'>$.ui.updateSideMenuElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_setTitle'>$.ui.setTitle</a></li> <li><a data-persist-ajax='true' href='#$_ui_setBackButtonText'>$.ui.setBackButtonText</a></li> <li><a data-persist-ajax='true' href='#$_ui_showMask'>$.ui.showMask</a></li> <li><a data-persist-ajax='true' href='#$_ui_hideMask'>$.ui.hideMask</a></li> <li><a data-persist-ajax='true' href='#$_ui_showModal'>$.ui.showModal</a></li> <li><a data-persist-ajax='true' href='#$_ui_hideModal'>$.ui.hideModal</a></li> <li><a data-persist-ajax='true' href='#$_ui_updatePanel'>$.ui.updatePanel</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateContentDiv'>$.ui.updateContentDiv</a></li> <li><a data-persist-ajax='true' href='#$_ui_addContentDiv'>$.ui.addContentDiv</a></li> <li><a data-persist-ajax='true' href='#$_ui_scrollToTop'>$.ui.scrollToTop</a></li> <li><a data-persist-ajax='true' href='#$_ui_scrollToBottom'>$.ui.scrollToBottom</a></li> <li><a data-persist-ajax='true' href='#$_ui_loadContent'>$.ui.loadContent</a></li> <li><a data-persist-ajax='true' href='#$_ui_launch'>$.ui.launch</a></li> <li><a data-persist-ajax='true' href='#$_ui_finishTransition'>$.ui.finishTransition</a></li> </ul></div> <div id='$_is$' title='$.is$(param)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_is$",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_is$' style='display:none'> <pre style='padding-left:25px'><code> $.is$ = function(obj) { return obj instanceof $afm; }; </code></pre> </div> </div> <h2>$.is$(param)</h2> <section class='description'><p>Checks to see if the parameter is a $afm object<br /> var foo=$('#header');<br /> $.is$(foo);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>element - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.is$ checks to see if the instance of an object is of type "$" or "$afm or App Framework. This is usefull for checking for parameter types in functions.</p> <pre><code class="language-js"><span class='linenumber'>var tmp = $("div");</span> <span class='linenumber'>var bar=null;</span> <span class='linenumber'>function test(el){</span> <span class='linenumber'> if($.is$(el)) //if we have an App Framework object, get the first element</span> <span class='linenumber'> el=el[0];</span> <span class='linenumber'>};</span> <span class='linenumber'>alert(test(tmp));//true</span> <span class='linenumber'>alert(test(bar));//false</span> </code></pre> <div class="sample" style='height:100px'> <script> var tmp=$("div"); var bar=null; function testIs(what){ if(what){ alert($.is$(tmp)); } else alert($.is$(bar)); } </script> Test it on the following. <input type='button' onclick="testIs(true)" value="tmp"> <input type='button' onclick="testIs(false)" value="bar"> </div> </div> </div> </article> </div> <div id='$_map' title='$.map(elements,callback)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_map",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_map' style='display:none'> <pre style='padding-left:25px'><code> $.map = function(elements, callback) { var value, values = [], i, key; if ($.isArray(elements)) for (i = 0; i &lt; elements.length; i++) { value = callback.apply(elements[i],[i,elements[i]]); if (value !== nundefined) values.push(value); } else if ($.isObject(elements)) for (key in elements) { if (!elements.hasOwnProperty(key) || key == "length") continue; value = callback(elements[key],[key,elements[key]]); if (value !== nundefined) values.push(value); } return af(values); }; </code></pre> </div> </div> <h2>$.map(elements,callback)</h2> <section class='description'><p>Map takes in elements and executes a callback function on each and returns a collection<br /> $.map([1,2],function(ind){return ind+1});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>elements - Array|Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object with elements in it</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>Map takes in elements and executes a callback function on each element. It returns a new App Framework object with the values in the collection.</p> <p>The following example will loop through an array and add 1 to each element value and return a new App Framework object</p> <pre><code class="language-js"><span class='linenumber'>function testMap(){</span> <span class='linenumber'> var final=[1,2,3];</span> <span class='linenumber'> var res=$.map([0,1,2],function(ind){return ind+1}).get(0);</span> <span class='linenumber'> var pass=true;</span> <span class='linenumber'> if(final.length!==res.length){</span> <span class='linenumber'> pass=false;</span> <span class='linenumber'> }</span> <span class='linenumber'> for(var i=0; i &lt; final.length; i++){</span> <span class='linenumber'> if(final[i]!==res[i])</span> <span class='linenumber'> pass=false;</span> <span class='linenumber'> }</span> <span class='linenumber'> alert(pass);</span> <span class='linenumber'>}</span> </code></pre> <script> function testMap(){ var final=[1,2,3]; var res=$.map([0,1,2],function(ind){return ind+1}).get(0); var pass=true; if(final.length!==res.length){ pass=false; } for(var i=0; i < final.length; i++){ if(final[i]!==res[i]) pass=false; } alert(pass); } </script> <p><input type="button" onclick="testMap()" value="Test it"></p> </div> </div> </article> </div> <div id='$_each' title='$.each(elements,callback)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_each",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_each' style='display:none'> <pre style='padding-left:25px'><code> $.each = function(elements, callback) { var i, key; if ($.isArray(elements)) for (i = 0; i &lt; elements.length; i++) { if (callback(i, elements[i]) === false) return elements; } else if ($.isObject(elements)) for (key in elements) { if (!elements.hasOwnProperty(key) || key == "length") continue; if (callback(key, elements[key]) === false) return elements; } return elements; }; </code></pre> </div> </div> <h2>$.each(elements,callback)</h2> <section class='description'><p>Iterates through elements and executes a callback. Returns if false<br /> $.each([1,2],function(ind){console.log(ind);});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>elements - Array|Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Array - elements</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.each allows you to iterate through a collection and execute a callback. Does not have to be DOM nodes.</p> <p>The callback recieves two parameters, the index of the element (or key in an object) and then the element</p> <p>Below is a simple function that will iterate through an array and add the values to the "sum" variable.</p> <pre><code class="language-js"><span class='linenumber'>function getSum(arr){</span> <span class='linenumber'> var sum=0;</span> <span class='linenumber'> $.each(arr,function(index,val){sum+=val});</span> <span class='linenumber'> return sum;</span> <span class='linenumber'>}</span> <span class='linenumber'>alert(getSum([1,2,3,4]));</span> </code></pre> <p>Try it below. The response should be 10;</p> <script> function getSum(arr){ var sum=0; $.each(arr,function(index,val){sum+=val;}); return sum; } function testSum(){ alert(getSum([1,2,3,4])); } </script> <p><input type="button" value="Get Sum" onclick="testSum()"/></p> </div> </div> </article> </div> <div id='$_extend' title='$.extend(target,{params})' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_extend",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_extend' style='display:none'> <pre style='padding-left:25px'><code> $.extend = function(target) { if (target == nundefined) target = this; if (arguments.length === 1) { for (var key in target) this[key] = target[key]; return this; } else { slice.call(arguments, 1).forEach(function(source) { for (var key in source) target[key] = source[key]; }); } return target; }; </code></pre> </div> </div> <h2>$.extend(target,{params})</h2> <section class='description'><p>Extends an object with additional arguments<br /> $.extend({foo:'bar'});<br /> $.extend(element,{foo:'bar'});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[target] - Object</li> <li style='padding-left:15px;line-height:20px'>number - any</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - [target]</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.extend allows you to merge the content of two or more objects into the first object.</p> <p>A basic example is below.</p> <pre><code class="language-js"><span class='linenumber'>var cart={</span> <span class='linenumber'> apples:1,</span> <span class='linenumber'> bread:2</span> <span class='linenumber'>}</span> <span class='linenumber'>var productsToAdd={</span> <span class='linenumber'> bananas:2,</span> <span class='linenumber'> oranges:3</span> <span class='linenumber'>}</span> <span class='linenumber'>$.extend(cart,productsToAdd);</span> <span class='linenumber'>/*</span> <span class='linenumber'> cart = {</span> <span class='linenumber'> apples:1,</span> <span class='linenumber'> bread:2,</span> <span class='linenumber'> bananas:2,</span> <span class='linenumber'> oranges:3,</span> <span class='linenumber'> }</span> <span class='linenumber'> */</span> </code></pre> <p>You can try it below. The result is from JSON.stringify(cart);</p> <script> function testExtend(){ var cart={ apples:1, bread:2 } var productsToAdd={ bananas:2, oranges:3 } $.extend(cart,productsToAdd); alert(JSON.stringify(cart)); } </script> <p><input type="button" value="Test" onclick="testExtend()"/></p> </div> </div> </article> </div> <div id='$_isArray' title='$.isArray(param)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_isArray",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_isArray' style='display:none'> <pre style='padding-left:25px'><code> $.isArray = function(obj) { return obj instanceof Array && obj.push != nundefined; //ios 3.1.3 doesn't have Array.isArray }; </code></pre> </div> </div> <h2>$.isArray(param)</h2> <section class='description'><p>Checks to see if the parameter is an array<br /> var arr=[];<br /> $.isArray(arr);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>element - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.isArray returns true or false if the passed in parameter is indeed an array.</p> <p>See the following examples</p> <pre><code class="language-js"><span class='linenumber'>var notArray={};</span> <span class='linenumber'>var isArray=[];</span> <span class='linenumber'>function testIsArray(pass){</span> <span class='linenumber'> if(pass)</span> <span class='linenumber'> alert($.isArray(isArray));</span> <span class='linenumber'> else</span> <span class='linenumber'> alert($.isArray(notArray));</span> <span class='linenumber'>}</span> </code></pre> <script> var notArray={}; var isArray=[]; function testIsArray(pass){ if(pass) alert($.isArray(isArray)); else alert($.isArray(notArray)); } </script> <p><input type="button" onclick="testIsArray(true)" value="Test Array"/> <input type="button" onclick="testIsArray(false)" value="Test Object"/></p> </div> </div> </article> </div> <div id='$_isFunction' title='$.isFunction(param)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_isFunction",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_isFunction' style='display:none'> <pre style='padding-left:25px'><code> $.isFunction = function(obj) { return typeof obj === "function" && !(obj instanceof RegExp); }; </code></pre> </div> </div> <h2>$.isFunction(param)</h2> <section class='description'><p>Checks to see if the parameter is a function<br /> var func=function(){};<br /> $.isFunction(func);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>element - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.isFunction returns true or false if the passed in parameter is indeed a function.</p> <p>See the following examples</p> <pre><code class="language-js"><span class='linenumber'>var notFunction={};</span> <span class='linenumber'>var isFunction=function(){};</span> <span class='linenumber'>function testisFunction(pass){</span> <span class='linenumber'> if(pass)</span> <span class='linenumber'> alert($.isFunction(isFunction));</span> <span class='linenumber'> else</span> <span class='linenumber'> alert($.isFunction(notFunction));</span> <span class='linenumber'>}</span> </code></pre> <script> var notFunction={}; var isFunction=function(){}; function testisFunction(pass){ if(pass) alert($.isFunction(isFunction)); else alert($.isFunction(notFunction)); } </script> <p><input type="button" onclick="testisFunction(true)" value="Test Function"/> <input type="button" onclick="testisFunction(false)" value="Test Object"/></p> </div> </div> </article> </div> <div id='$_isObject' title='$.isObject(param)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_isObject",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_isObject' style='display:none'> <pre style='padding-left:25px'><code> $.isObject = function(obj) { return typeof obj === "object" && obj !== null; }; </code></pre> </div> </div> <h2>$.isObject(param)</h2> <section class='description'><p>Checks to see if the parameter is a object<br /> var foo={bar:'bar'};<br /> $.isObject(foo);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>element - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.isObject returns true or false if the passed in parameter is indeed an object.</p> <p>See the following examples</p> <pre><code class="language-js"><span class='linenumber'>var notObject=function(){};</span> <span class='linenumber'>var isObject={};</span> <span class='linenumber'>function testisObject(pass){</span> <span class='linenumber'> if(pass)</span> <span class='linenumber'> alert($.isObject(isObject));</span> <span class='linenumber'> else</span> <span class='linenumber'> alert($.isObject(notObject));</span> <span class='linenumber'>}</span> </code></pre> <script> var notObject={}; var isObject=function(){}; var notObject=function(){}; var isObject={}; function testisObject(pass){ if(pass) alert($.isObject(isObject)); else alert($.isObject(notObject)); } </script> <p><input type="button" onclick="testisObject(true)" value="Test Object"/> <input type="button" onclick="testisObject(false)" value="Test Function"/></p> </div> </div> </article> </div> <div id='_map' title='$().map(function)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_map",this)'>Show Source</a></h3> <div class='viewsource' id='source__map' style='display:none'> <pre style='padding-left:25px'><code> map: function(fn) { var value, values = [], i; for (i = 0; i &lt; this.length; i++) { value = fn.apply(this[i],[i,this[i]]); if (value !== nundefined) values.push(value); } return $(values); }, </code></pre> </div> </div> <h2>$().map(function)</h2> <section class='description'><p>This is a wrapper to $.map on the selected elements<br /> $().map(function(){this.value+=ind});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().map is used to iterate through elements and execute a callback function on each element. The elements can be an Array or an Object.</p> <p>It returns a NEW App Framework object.</p> <p>The following would loop through all checkboxes and return a string with every id as a comma separated string</p> <pre><code class="language-html"><span class='linenumber'>&lt;form&gt;</span> <span class='linenumber'> Agree to terms?&lt;input type='checkbox' id='terms'/&gt;&lt;br/&gt;</span> <span class='linenumber'> Sign up for offers?&lt;input type='checkbox' id='offers'&gt;&lt;br/&gt;</span> <span class='linenumber'> &lt;input type='submit' value='Go'/&gt;</span> <span class='linenumber'>&lt;/form&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>$('input[type='checkbox']).map(function() {</span> <span class='linenumber'> return this.id;</span> <span class='linenumber'>}).get(0).join(",");</span> </code></pre> <p>The above would output the following <code>"terms, offers"</code></p> <p>Below is a more detailed example. Here we will create a function to set the height to the smallest div.</p> <pre><code class="language-html"><span class='linenumber'>&lt;input id="equalize" type="button" value="Equalize"&gt;</span> <span class='linenumber'>&lt;div class="mapsample" style="background:red; height: 40px;width:50px;float:left;" &gt;&lt;/div&gt;</span> <span class='linenumber'>&lt;div class="mapsample" style="background:green; height: 70px;width:50px;float:left;" &gt;&lt;/div&gt;</span> <span class='linenumber'>&lt;div class="mapsample" style="background:blue; height: 50px;width:50px;float:left;" &gt;&lt;/div&gt;</span> <span class='linenumber'>&lt;script&gt;</span> <span class='linenumber'>$.fn.equalizeHeights = function() {</span> <span class='linenumber'> var maxHeight = this.map(function(i,e) {</span> <span class='linenumber'> return $(e).height();</span> <span class='linenumber'> }).get(0);</span> <span class='linenumber'> return this.height( Math.min.apply(this, minHeight)+"px" );</span> <span class='linenumber'>};</span> <span class='linenumber'>$('#equalize').bind("click",function(){</span> <span class='linenumber'> $('.mapsample').equalizeHeights();</span> <span class='linenumber'>});</span> <span class='linenumber'>&lt;/script&gt;</span> </code></pre> <div class="sample" style='height:100px'> <input id="equalize" type="button" value="Equalize"> <div class='mapsample' style="background:red; height: 40px;width:50px;float:left; "></div> <div class='mapsample' style="background:green; height: 70px;width:50px;float:left;"></div> <div class='mapsample' style="background:blue; height: 50px;width:50px;float:left; "></div> <script> $.fn.equalizeHeights = function() { var minHeight = this.map(function(i,e) { return $(e).height(); }).get(0); return this.height( Math.min.apply(this, minHeight)+"px" ); }; $('#equalize').bind("click",function(){ $('.mapsample').equalizeHeights(); }); </script> </div> </div> </div> </article> </div> <div id='_each' title='$().each(function)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_each",this)'>Show Source</a></h3> <div class='viewsource' id='source__each' style='display:none'> <pre style='padding-left:25px'><code> each: function(callback) { this.forEach(function(el, idx) { callback.call(el, idx, el); }); return this; }, </code></pre> </div> </div> <h2>$().each(function)</h2> <section class='description'><p>Iterates through all elements and applys a callback function<br /> $().each(function(){console.log(this.value)});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='_ready' title='$().ready(function)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_ready",this)'>Show Source</a></h3> <div class='viewsource' id='source__ready' style='display:none'> <pre style='padding-left:25px'><code> ready: function(callback) { if (document.readyState === "complete" || document.readyState === "loaded" || (!$.os.ie && document.readyState === "interactive")) //IE10 fires interactive too early callback(); else document.addEventListener("DOMContentLoaded", callback, false); return this; }, </code></pre> </div> </div> <h2>$().ready(function)</h2> <section class='description'><p>This is executed when DOMContentLoaded happens, or after if you've registered for it.<br /> $(document).ready(function(){console.log('I'm ready');});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().ready will execute a function as soon as the DOM is available. If it is called after the DOM is ready, it will fire the event right away.</p> <pre><code class="language-html"><span class='linenumber'>&lt;script&gt;</span> <span class='linenumber'>$(document).ready(function(){</span> <span class='linenumber'> //The dom is ready, do whatever you want</span> <span class='linenumber'> $("#readytest").html("The dom is now loaded");</span> <span class='linenumber'>});</span> <span class='linenumber'>&lt;/script&gt;</span> <span class='linenumber'>&lt;div id="readytest"&gt;The dom is not ready&lt;/div&gt;</span> </code></pre> <p>Below, you should see the message changed because the DOM is available</p> <script> $(document).ready(function(){ //The dom is ready, do whatever you want $("#readytest").html("The dom is now loaded"); }); </script> <div id="readytest" style='display:block;width:200px;height:200px;color:red'>The dom is not ready</div> </div> </div> </article> </div> <div id='_find' title='$().find(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_find",this)'>Show Source</a></h3> <div class='viewsource' id='source__find' style='display:none'> <pre style='padding-left:25px'><code> find: function(sel) { if (this.length === 0) return this; var elems = []; var tmpElems; for (var i = 0; i &lt; this.length; i++) { tmpElems = ($(sel, this[i])); for (var j = 0; j &lt; tmpElems.length; j++) { elems.push(tmpElems[j]); } } return $(unique(elems)); }, </code></pre> </div> </div> <h2>$().find(selector)</h2> <section class='description'><p>Searches through the collection and reduces them to elements that match the selector<br /> $("#foo").find('.bar');<br /> $("#foo").find($('.bar'));<br /> $("#foo").find($('.bar').get(0));<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Object|Array</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object filtered</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().find() takes in a selector and searches through the collection for matching elements. The selector can be a CSS selector, App Framework collection or an element. It returns a new App Framework collection.</p> <p>Consider the following. We want to find all elements with class "foo" that are nested inside the div "bar"</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="bar"&gt;</span> <span class='linenumber'> &lt;ul&gt;</span> <span class='linenumber'> &lt;li class="foo"&gt;Foo&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Bar&lt;/li&gt;</span> <span class='linenumber'> &lt;/ul&gt;</span> <span class='linenumber'> &lt;span class="foo"&gt;Foo&lt;/span&gt;</span> <span class='linenumber'> &lt;span&gt;Bar&lt;/span&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Staring with the div "bar", we will find everything with class "foo"</p> <pre><code class="language-js"><span class='linenumber'>$("#bar").find(".foo"); </span> </code></pre> <p>The result is a list item and a span. Below we will alert the node names of the items found.</p> <div id="bar"> <ul> <li class="foo">Foo</li> <li>Bar</li> </ul> <span class="foo">Foo</span> <span>Bar</span> </div> <script> function findTest(){ var elems=$("#bar").find(".foo"); alert(elems[0].nodeName+ " "+elems[1].nodeName); } </script> <p><input type="button" value="Find Test" onclick="findTest()"></p> </div> </div> </article> </div> <div id='_html' title='$().html([html])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_html",this)'>Show Source</a></h3> <div class='viewsource' id='source__html' style='display:none'> <pre style='padding-left:25px'><code> html: function(html, cleanup) { if (this.length === 0) return this; if (html === nundefined) return this[0].innerHTML; for (var i = 0; i &lt; this.length; i++) { if (cleanup !== false) $.cleanUpContent(this[i], false, true); if (isWin8) { var item=this[i]; MSApp.execUnsafeLocalFunction(function() { item.innerHTML = html; }); } else this[i].innerHTML = html; } return this; }, </code></pre> </div> </div> <h2>$().html([html])</h2> <section class='description'><p>Gets or sets the innerHTML for the collection.<br />If used as a get, the first elements innerHTML is returned<br /> $("#foo").html(); //gets the first elements html<br /> $("#foo").html('new html');//sets the html<br /> $("#foo").html('new html',false); //Do not do memory management cleanup<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>html - String</li> <li style='padding-left:15px;line-height:20px'>[cleanup] - Bool</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().html() will get or set the innerHTML property of DOM node(s)</p> <p>If you pass in a string, it will set the innerHTML of all the DOM nodes to the new value.</p> <p>If you do not have a parameter, it will return the first elements innerHTML value;</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="bar"&gt;</span> <span class='linenumber'> This is some html</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="foo"&gt;</span> <span class='linenumber'> We will update this</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>var html=$("#bar").html();</span> <span class='linenumber'>$("#foo").html("new content");</span> </code></pre> <div id="html:bar"> This is some html </div> <div id="html:foo"> We will update this </div> <p><input type="button" value="Get HTML" onclick="alert($('#html:bar').html())"> <input type="button" value="Set HTML" onclick="$('#html:foo').html('New Content')"></p> </div> </div> </article> </div> <div id='_text' title='$().text([text])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_text",this)'>Show Source</a></h3> <div class='viewsource' id='source__text' style='display:none'> <pre style='padding-left:25px'><code> text: function(text) { if (this.length === 0) return this; if (text === nundefined) return this[0].textContent; for (var i = 0; i &lt; this.length; i++) { this[i].textContent = text; } return this; }, </code></pre> </div> </div> <h2>$().text([text])</h2> <section class='description'><p>Gets or sets the innerText for the collection.<br />If used as a get, the first elements innerText is returned<br /> $("#foo").text(); //gets the first elements text;<br /> $("#foo").text('new text'); //sets the text<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>text - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().text() will get or set the innerText property of DOM node(s). This will remove any HTML formatting/nodes.</p> <p>If you pass in a string, it will set the innerText of all the DOM nodes to the new value.</p> <p>If you do not have a parameter, it will return the first elements innerText value;</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="bar"&gt;</span> <span class='linenumber'> This is some text &lt;a&gt;Test&lt;/a&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="foo"&gt;</span> <span class='linenumber'> &lt;div style='background:red'&gt;This has a red background&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>var text=$("#bar").text();</span> <span class='linenumber'>$("#foo").text("new content");</span> </code></pre> <div id="text:bar"> This is some text <a>Test</a> </div> <div id="text:foo"> <div style='background:red'>This has a red background</div> </div> <p><input type="button" value="Get Text" onclick="alert($('#text:bar').text())"> <input type="button" value="Set Text" onclick="$('#text:foo').text('New Content')"></p> </div> </div> </article> </div> <div id='_css' title='$().css(attribute,[value])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_css",this)'>Show Source</a></h3> <div class='viewsource' id='source__css' style='display:none'> <pre style='padding-left:25px'><code> vendorCss: function(attribute, value, obj) { return this.css($.feat.cssPrefix + attribute, value, obj); }, </code></pre> </div> </div> <h2>$().css(attribute,[value])</h2> <section class='description'><p>Gets or sets css vendor specific css properties<br />If used as a get, the first elements css property is returned<br /> $().css("background"); // Gets the first elements background<br /> $().css("background","red") //Sets the elements background to red<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>attribute - String</li> <li style='padding-left:15px;line-height:20px'>value - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().css() will get or set CSS properties on the DOM nodes</p> <p>If you pass in two parameters, a key and value, it will set the CSS property</p> <p>If you only supply a key, it will return the first objects value.</p> <p>Additionally, you can pass in an object as the first parameter and it will set multiple values</p> <pre><code class="language-js"><span class='linenumber'>$("div").css("display","none"); //Set display:none on all divs</span> <span class='linenumber'>$("span").css("display");//Get the display property of the first span</span> <span class='linenumber'>$("div").css({color:'red',background:'black'});//Set the color to red, and the background color to black on all divs</span> </code></pre> <div id="css:test"> This is the CSS test div </div> <p><input type="button" value="Set background color" onclick="$('#css:test').css('background','green');"> <input type="button" value="Get background color" onclick="alert($('#css:test').css('background'));"> <input type="button" value="Set has properties" onclick="$('#css:test').css({'background':'blue',color:'pink'});"></p> </div> </div> </article> </div> <div id='_vendorCss' title='$().vendorCss(value)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_vendorCss",this)'>Show Source</a></h3> <div class='viewsource' id='source__vendorCss' style='display:none'> <pre style='padding-left:25px'><code> cssTranslate: function(val) { return this.vendorCss("Transform", "translate" + $.feat.cssTransformStart + val + $.feat.cssTransformEnd); }, </code></pre> </div> </div> <h2>$().vendorCss(value)</h2> <section class='description'><p>Performs a css vendor specific transform:translate operation on the collection.</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Transform - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().vendorCss() will get or set CSS properties on the DOM nodes with vendor specific prefixes. It does not work on a hash set.</p> <p>$.feat.cssPrefix is the css prefix for each browser.</p> <p>This is a wrapper to $().css($.feat.cssPrefix+attribute,value);</p> <p>See <a href="#_css">$().css</a> for more</p> </div> </div> </article> </div> <div id='_computedStyle' title='$().computedStyle()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_computedStyle",this)'>Show Source</a></h3> <div class='viewsource' id='source__computedStyle' style='display:none'> <pre style='padding-left:25px'><code> computedStyle: function(val) { if (this.length === 0 || val == nundefined) return; return window.getComputedStyle(this[0], '')[val]; }, </code></pre> </div> </div> <h2>$().computedStyle()</h2> <section class='description'><p>Gets the computed style of CSS values</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>css - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Int|String|Float| - css vlaue</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().computedStyle(prop) returns the computed style of the element.</p> <p>$().css() does not return the computed style, only the value associated with the style attribute.</p> <p>Let's take the following example below. $().css() and $().computedStyle will return two different values.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="compTest" style="background:green;width:100px;height:100%;" class="myClass1"&gt;&lt;/div&gt;</span> </code></pre> <div style="width:100%;height:100px"> <div id="compTest" style="background:green;width:100px;height:100%;" class="myClass1"></div> </div> <p><input type="button" value="Get CSS" onclick="alert($('#compTest').css('height'));"></p> <p><input type="button" value="Get Computed Style" onclick="alert($('#compTest').computedStyle('height'));"></p> </div> </div> </article> </div> <div id='_empty' title='$().empty()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_empty",this)'>Show Source</a></h3> <div class='viewsource' id='source__empty' style='display:none'> <pre style='padding-left:25px'><code> empty: function() { for (var i = 0; i &lt; this.length; i++) { $.cleanUpContent(this[i], false, true); this[i].textContent = ''; } return this; }, </code></pre> </div> </div> <h2>$().empty()</h2> <section class='description'><p>Sets the innerHTML of all elements to an empty string<br /> $().empty();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().empty() will empty out the contents of the element. It is better to use $().empty() than to simply use innerHTML with an empty string because it internally calls $.cleanUpContent to clean up tne node content which prevents memory links.</p> <p>Consider that there is a div defined and you want to empty the content.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="empty_content" style="border:1px solid black"&gt;</span> <span class='linenumber'> This is the content string we will empty</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Empty the contents of the above defined div.</p> <pre><code class="language-js"><span class='linenumber'>$("#empty_content").empty();</span> </code></pre> <p></br></p> <div id="empty_content" style="border:1px solid black">This is the content string we will empty</div> <p><input type="button" value="Empty" onclick="$('#empty_content').empty();"></p> </div> </div> </article> </div> <div id='_hide' title='$().hide()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_hide",this)'>Show Source</a></h3> <div class='viewsource' id='source__hide' style='display:none'> <pre style='padding-left:25px'><code> hide: function() { if (this.length === 0) return this; for (var i = 0; i &lt; this.length; i++) { if (this.css("display", null, this[i]) != "none") { this[i].setAttribute("afmOldStyle", this.css("display", null, this[i])); this[i].style.display = "none"; } } return this; }, </code></pre> </div> </div> <h2>$().hide()</h2> <section class='description'><p>Sets the elements display property to "none".<br />This will also store the old property into an attribute for hide<br /> $().hide();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().hide() will set the element's display property to "none", thus hiding the div content.</p> <p>Consider that there is a div with some content that you want to hide</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="hide_content" style="border:1px solid green"&gt;</span> <span class='linenumber'> This is the content we will hide</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Based upon some event, you can then hide the div</p> <pre><code class="language-js"><span class='linenumber'>$("#hide_content").hide();</span> </code></pre> <p></br></p> <div id="hide_content" style="border:1px solid green">This is the content we will hide</div> <p><input type="button" value="Hide Div" onclick="$('#hide_content').hide();"></p> </div> </div> </article> </div> <div id='_show' title='$().show()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_show",this)'>Show Source</a></h3> <div class='viewsource' id='source__show' style='display:none'> <pre style='padding-left:25px'><code> show: function() { if (this.length === 0) return this; for (var i = 0; i &lt; this.length; i++) { if (this.css("display", null, this[i]) == "none") { this[i].style.display = this[i].getAttribute("afmOldStyle") ? this[i].getAttribute("afmOldStyle") : 'block'; this[i].removeAttribute("afmOldStyle"); } } return this; }, </code></pre> </div> </div> <h2>$().show()</h2> <section class='description'><p>Shows all the elements by setting the css display property<br />We look to see if we were retaining an old style (like table-cell) and restore that, otherwise we set it to block<br /> $().show();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().show() will set the elements display property to "block", thus showing the content.</p> <p>First set up a div with the content you want to show.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="show_content" style="border:1px solid green;display:none;"&gt;</span> <span class='linenumber'> Hello -- I am some content</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Then perfom some function to show the div</p> <pre><code class="language-js"><span class='linenumber'>$("#show_content").show();</span> </code></pre> <p></br></p> <div id="show_content" style="border:1px solid green;display:none;">Hello -- I am some content</div> <p><input type="button" value="Show Div" onclick="$('#show_content').show();"></p> </div> </div> </article> </div> <div id='_toggle' title='$().toggle([show])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_toggle",this)'>Show Source</a></h3> <div class='viewsource' id='source__toggle' style='display:none'> <pre style='padding-left:25px'><code> toggle: function(show) { if(this.length === 0) return this; var show2 = !!(show === true); for (var i = 0; i &lt; this.length; i++) { if (this.css("display", null, this[i]) != "none" && (show == nundefined || show2 === false)) { this[i].setAttribute("afmOldStyle", this.css("display", null, this[i])); this[i].style.display = "none"; } else if (this.css("display", null, this[i]) == "none" && (show == nundefined || show2 === true)) { this[i].style.display = this[i].getAttribute("afmOldStyle") ? this[i].getAttribute("afmOldStyle") : 'block'; this[i].removeAttribute("afmOldStyle"); } } return this; }, </code></pre> </div> </div> <h2>$().toggle([show])</h2> <section class='description'><p>Toggle the visibility of a div<br /> $().toggle();<br /> $().toggle(true); //force showing<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[show] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().toggle() will toggle the visibility of a div. If the div is currently visible, it will be hidden. If the div is currently hidden, it will be shown. Using $().toggle(true) will force showing the div.</p> <p>Consider the following div which is shown initially.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="toggle_content" style="border:1px solid green;display:block;"&gt;</span> <span class='linenumber'> This is some content</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Use toggle to switch the visibility to hide, then show again.</p> <pre><code class="language-js"><span class='linenumber'>$("#toggle_content").toggle();</span> </code></pre> <p></br></p> <div id="toggle_content" style="border:1px solid green;display:block;">This is some content</div> <p><input type="button" value="Toggle Div" onclick="$('#toggle_content').toggle();"></p> </div> </div> </article> </div> <div id='_val' title='$().val([value])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_val",this)'>Show Source</a></h3> <div class='viewsource' id='source__val' style='display:none'> <pre style='padding-left:25px'><code> val: function(value) { if (this.length === 0) return (value === nundefined) ? undefined : this; if (value == nundefined) return this[0].value; for (var i = 0; i &lt; this.length; i++) { this[i].value = value; } return this; }, </code></pre> </div> </div> <h2>$().val([value])</h2> <section class='description'><p>Gets or sets an elements value<br />If used as a getter, we return the first elements value. If nothing is in the collection, we return undefined<br /> $().value; //Gets the first elements value;<br /> $().value="bar"; //Sets all elements value to bar<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[value] - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String|Object - A string as a getter, appframework object as a setter</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().val([value]) gets or sets the value of an HTML element.</p> <p>Provide a method for a user to set a value,</p> <pre><code class="language-html"><span class='linenumber'>&lt;input type="text" id="value_input" size=15&gt;</span> </code></pre> <p>Then use $().val to get the value that was input and show it in an alert.</p> <pre><code class="language-js"><span class='linenumber'>alert($("#value_input").val());</span> </code></pre> <p>Or you can set a default value within your code</p> <pre><code class="language-js"><span class='linenumber'>$("#value_input").val("Default Value");</span> </code></pre> <p><input type="text" id="value_input" size=15></br><br /> <input type="button" value="Get Value" onclick='alert($("#value_input").val());'><br /> <input type="button" value="Set Value" onclick='($("#value_input").val("Default Value"));'></p> </div> </div> </article> </div> <div id='_attr' title='$().attr(attribute,[value])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_attr",this)'>Show Source</a></h3> <div class='viewsource' id='source__attr' style='display:none'> <pre style='padding-left:25px'><code> attr: function(attr, value) { if (this.length === 0) return (value === nundefined) ? undefined : this; if (value === nundefined && !$.isObject(attr)) { var val = (this[0].afmCacheId && _attrCache[this[0].afmCacheId][attr]) ? (this[0].afmCacheId && _attrCache[this[0].afmCacheId][attr]) : this[0].getAttribute(attr); return val; } for (var i = 0; i &lt; this.length; i++) { if ($.isObject(attr)) { for (var key in attr) { $(this[i]).attr(key, attr[key]); } } else if ($.isArray(value) || $.isObject(value) || $.isFunction(value)) { if (!this[i].afmCacheId) this[i].afmCacheId = $.uuid(); if (!_attrCache[this[i].afmCacheId]) _attrCache[this[i].afmCacheId] = {}; _attrCache[this[i].afmCacheId][attr] = value; } else if (value === null) { this[i].removeAttribute(attr); if (this[i].afmCacheId && _attrCache[this[i].afmCacheId][attr]) delete _attrCache[this[i].afmCacheId][attr]; } else { this[i].setAttribute(attr, value); } } return this; }, </code></pre> </div> </div> <h2>$().attr(attribute,[value])</h2> <section class='description'><p>Gets or sets an attribute on an element<br />If used as a getter, we return the first elements value. If nothing is in the collection, we return undefined<br /> $().attr("foo"); //Gets the first elements 'foo' attribute<br /> $().attr("foo","bar");//Sets the elements 'foo' attribute to 'bar'<br /> $().attr("foo",{bar:'bar'}) //Adds the object to an internal cache<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>attribute - String|Object</li> <li style='padding-left:15px;line-height:20px'>[value] - String|Array|Object|function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String|Object|Array|Function - If used as a getter, return the attribute value. If a setter, return an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().attr(attribute,[value]) gets or sets an attribute of an HTML element.</p> <p>Assume we set a default attribute value of an element to "foo"</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="attr_content" test_attr="foo"&gt;&lt;/div&gt;</span> </code></pre> <p>We then use $().attr along with the attribute name to get the value and show it in an alert.</p> <pre><code class="language-js"><span class='linenumber'>alert($("#attr_content").attr("test_attr"));</span> </code></pre> <p>The attribute can then be modified by assigning a new value of "bar" to the attribute</p> <pre><code class="language-js"><span class='linenumber'>$("#attr_content").attr("test_attr","bar");</span> </code></pre> <p></br></p> <div id="attr_content" test_attr="foo">The test attribute is initially set to "foo"</div> <p><input type="button" value="Get Attribute" onclick='alert($("#attr_content").attr("test_attr"));'><br /> <input type="button" value="Set Attribute" onclick='$("#attr_content").attr("test_attr","bar");'></p> </div> </div> </article> </div> <div id='_removeAttr' title='$().removeAttr(attribute)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_removeAttr",this)'>Show Source</a></h3> <div class='viewsource' id='source__removeAttr' style='display:none'> <pre style='padding-left:25px'><code> removeAttr: function(attr) { var that = this; for (var i = 0; i &lt; this.length; i++) { attr.split(/\s+/g).forEach(function(param) { that[i].removeAttribute(param); if (that[i].afmCacheId && _attrCache[that[i].afmCacheId][attr]) delete _attrCache[that[i].afmCacheId][attr]; }); } return this; }, </code></pre> </div> </div> <h2>$().removeAttr(attribute)</h2> <section class='description'><p>Removes an attribute on the elements<br /> $().removeAttr("foo");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>attributes - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().removeAttr(attribute) removes an attribute of an HTML element.</p> <p>Assume we set a default attribute value of an element to "foo"</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="removeattr_content" test_attr="foo"&gt;&lt;/div&gt;</span> </code></pre> <p>We then use $().attr along with the attribute name to get the value and show it in an alert.</p> <pre><code class="language-js"><span class='linenumber'>alert($("#removeattr_content").attr("test_attr"));</span> </code></pre> <p>The attribute can then be removed by using $().removeAttribute() and specifying the attribute name</p> <pre><code class="language-js"><span class='linenumber'>$("#removeattr_content").removeAttr("test_attr");</span> </code></pre> <p></br></p> <div id="removeattr_content" test_attr="foo">The test_attr attribute is set to "foo"</div> <p><input type="button" value="Get Attribute" onclick='alert($("#removeattr_content").attr("test_attr"));'><br /> <input type="button" value="Remove Attribute" onclick='$("#removeattr_content").removeAttr("test_attr");'></p> </div> </div> </article> </div> <div id='_prop' title='$().prop(property,[value])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_prop",this)'>Show Source</a></h3> <div class='viewsource' id='source__prop' style='display:none'> <pre style='padding-left:25px'><code> prop: function(prop, value) { if (this.length === 0) return (value === nundefined) ? undefined : this; if (value === nundefined && !$.isObject(prop)) { var res; var val = (this[0].afmCacheId && _propCache[this[0].afmCacheId][prop]) ? (this[0].afmCacheId && _propCache[this[0].afmCacheId][prop]) : !(res = this[0][prop]) && prop in this[0] ? this[0][prop] : res; return val; } for (var i = 0; i &lt; this.length; i++) { if ($.isObject(prop)) { for (var key in prop) { $(this[i]).prop(key, prop[key]); } } else if ($.isArray(value) || $.isObject(value) || $.isFunction(value)) { if (!this[i].afmCacheId) this[i].afmCacheId = $.uuid(); if (!_propCache[this[i].afmCacheId]) _propCache[this[i].afmCacheId] = {}; _propCache[this[i].afmCacheId][prop] = value; } else if (value === null && value !== undefined) { $(this[i]).removeProp(prop); } else { this[i][prop] = value; } } return this; }, </code></pre> </div> </div> <h2>$().prop(property,[value])</h2> <section class='description'><p>Gets or sets a property on an element<br />If used as a getter, we return the first elements value. If nothing is in the collection, we return undefined<br /> $().prop("foo"); //Gets the first elements 'foo' property<br /> $().prop("foo","bar");//Sets the elements 'foo' property to 'bar'<br /> $().prop("foo",{bar:'bar'}) //Adds the object to an internal cache<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>property - String|Object</li> <li style='padding-left:15px;line-height:20px'>[value] - String|Array|Object|function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String|Object|Array|Function - If used as a getter, return the property value. If a setter, return an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().prop(property,[value]) gets or sets a property of an HTML element.</p> <p>First set up an element</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="property_content"&gt;&lt;/div&gt;</span> </code></pre> <p>Then set a property value by specifying a property name and value of "hello"</p> <pre><code class="language-js"><span class='linenumber'>$("#property_content").prop("test_prop","hello");</span> </code></pre> <p>We then use $().prop along with the property name to get the value and show it in an alert. If you attempt to get the value before it is assigned, we return undefined.</p> <pre><code class="language-js"><span class='linenumber'>alert($("#property_content").prop("test_prop"));</span> </code></pre> <p></br></p> <div id="property_content"></div> <p><input type="button" value="Set Property" onclick='$("#property_content").prop("test_prop","hello");'><br /> <input type="button" value="Get Property" onclick='alert($("#property_content").prop("test_prop"));'></p> </div> </div> </article> </div> <div id='_removeProp' title='$().removeProp(attribute)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_removeProp",this)'>Show Source</a></h3> <div class='viewsource' id='source__removeProp' style='display:none'> <pre style='padding-left:25px'><code> removeProp: function(prop) { var that = this; for (var i = 0; i &lt; this.length; i++) { prop.split(/\s+/g).forEach(function(param) { if (that[i][param]) that[i][param] = undefined; if (that[i].afmCacheId && _propCache[that[i].afmCacheId][prop]) { delete _propCache[that[i].afmCacheId][prop]; } }); } return this; }, </code></pre> </div> </div> <h2>$().removeProp(attribute)</h2> <section class='description'><p>Removes a property on the elements<br /> $().removeProp("foo");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>properties - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().removeProp(property) removes a property of an HTML element.</p> <p>First set up an element</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="property_content"&gt;&lt;/div&gt;</span> </code></pre> <p>Then set a property with a value of "hello"</p> <pre><code class="language-js"><span class='linenumber'>$("#property_content").prop("test_prop","hello");</span> </code></pre> <p>Later you can use $().removeProp using the property name to remove the property from the element.</p> <pre><code class="language-js"><span class='linenumber'>$("#property_content").removeProp("test_prop");</span> </code></pre> <p></br></p> <div id="property_content"></div> <p><input type="button" value="Set Property" onclick='$("#property_content").prop("test_prop","hello");'><br /> <input type="button" value="Get Property" onclick='alert($("#property_content").prop("test_prop"));'><br /> <input type="button" value="Remove Property" onclick='$("#property_content").removeProp("test_prop");'></p> </div> </div> </article> </div> <div id='_remove' title='$().remove(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_remove",this)'>Show Source</a></h3> <div class='viewsource' id='source__remove' style='display:none'> <pre style='padding-left:25px'><code> remove: function(selector) { var elems = $(this).filter(selector); if (elems == nundefined) return this; for (var i = 0; i &lt; elems.length; i++) { $.cleanUpContent(elems[i], true, true); if (elems[i] && elems[i].parentNode) { elems[i].parentNode.removeChild(elems[i]); } } return this; }, </code></pre> </div> </div> <h2>$().remove(selector)</h2> <section class='description'><p>Removes elements based off a selector<br /> ```<br /> $().remove(); //Remove all<br /> $().remove(".foo");//Remove off a string selector<br /> var element=$("#foo").get(0);<br /> $().remove(element); //Remove by an element<br /> $().remove($(".foo")); //Remove by a collection</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Object|Array</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().remove(selector) removes elements based off a selector</p> <p>Assume we have an element that displays some content</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="some_content" style="border:1px solid green"&gt;This is content that will be removed from the DOM.&lt;/div&gt;</span> </code></pre> <p>We then use $().remove() to remove the element from the DOM</p> <pre><code class="language-js"><span class='linenumber'>$("#some_content").remove();</span> </code></pre> <p></br></p> <div id="some_content" style="border:1px solid green">This is content that will be removed from the DOM.</div> <p></br><br /> <input type="button" value="Remove Element" onclick='$("#some_content").remove();'></p> </div> </div> </article> </div> <div id='_addClass' title='$().addClass(name)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_addClass",this)'>Show Source</a></h3> <div class='viewsource' id='source__addClass' style='display:none'> <pre style='padding-left:25px'><code> addClass: function(name) { if (name == nundefined) return this; for (var i = 0; i &lt; this.length; i++) { var cls = this[i].className; var classList = []; var that = this; name.split(/\s+/g).forEach(function(cname) { if (!that.hasClass(cname, that[i])) classList.push(cname); }); this[i].className += (cls ? " " : "") + classList.join(" "); this[i].className = this[i].className.trim(); } return this; }, </code></pre> </div> </div> <h2>$().addClass(name)</h2> <section class='description'><p>Adds a css class to elements.<br /> $().addClass("selected");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>classes - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().addClass(name) adds a css class to the element.</p> <p>Assume there is an element that displays some content</p> <pre><code class="language-html"><span class='linenumber'>&lt;div style='border:1px solid black' id="cssclass_content"&gt;This is some content&lt;/div&gt;</span> </code></pre> <p>Then using $().addClass() we can apply the css defined as by greenredclass to that element.</p> <pre><code class="language-js"><span class='linenumber'>$("#cssclass_content").addClass("greenredclass");</span> </code></pre> <p></br></p> <div style='border:1px solid black' id="cssclass_content">This is some content</div> <p><input type="button" value="Add a Class" onclick='$("#cssclass_content").addClass("greenredclass");'></p> </div> </div> </article> </div> <div id='_removeClass' title='$().removeClass(name)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_removeClass",this)'>Show Source</a></h3> <div class='viewsource' id='source__removeClass' style='display:none'> <pre style='padding-left:25px'><code> removeClass: function(name) { if (name == nundefined) return this; for (var i = 0; i &lt; this.length; i++) { if (name == nundefined) { this[i].className = ''; return this; } var classList = this[i].className; //SGV LINK EVENT if (typeof this[i].className == "object") { classList = " "; } name.split(/\s+/g).forEach(function(cname) { classList = classList.replace(classRE(cname), " "); }); if (classList.length &gt; 0) this[i].className = classList.trim(); else this[i].className = ""; } return this; }, </code></pre> </div> </div> <h2>$().removeClass(name)</h2> <section class='description'><p>Removes a css class from elements.<br /> $().removeClass("foo"); //single class<br /> $().removeClass("foo selected");//remove multiple classess<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>classes - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().removeClass(name) will remove a css class from an element.</p> <p>Assume there is an element that displays some content usinge the "greenredclass" css class</p> <pre><code class="language-html"><span class='linenumber'>&lt;div style='border:1px solid black' id="removeclass_content" class="greenredclass"&gt;This is some content&lt;/div&gt;</span> </code></pre> <p>Then using $().removeClass() we can remove the css class defined as by greenredclass to that element.</p> <pre><code class="language-js"><span class='linenumber'>$("#removeclass_content").removeClass("greenredclass");</span> </code></pre> <p></br></p> <div style='border:1px solid black' id="removeclass_content" class="greenredclass">This is some content</div> <p><input type="button" value="Remove the Class" onclick='$("#removeclass_content").removeClass("greenredclass");'></p> </div> </div> </article> </div> <div id='_toggleClass' title='$().toggleClass(name)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_toggleClass",this)'>Show Source</a></h3> <div class='viewsource' id='source__toggleClass' style='display:none'> <pre style='padding-left:25px'><code> toggleClass: function(name, state) { if (name == nundefined) return this; for (var i = 0; i &lt; this.length; i++) { if (typeof state != "boolean") { state = this.hasClass(name, this[i]); } $(this[i])[state ? 'removeClass' : 'addClass'](name); } return this; }, </code></pre> </div> </div> <h2>$().toggleClass(name)</h2> <section class='description'><p>Adds or removes a css class to elements.<br /> $().toggleClass("selected");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>classes - String</li> <li style='padding-left:15px;line-height:20px'>[state] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='_replaceClass' title='$().replaceClass(old, new)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_replaceClass",this)'>Show Source</a></h3> <div class='viewsource' id='source__replaceClass' style='display:none'> <pre style='padding-left:25px'><code> replaceClass: function(name, newName) { if (name == nundefined || newName == nundefined) return this; for (var i = 0; i &lt; this.length; i++) { if (name == nundefined) { this[i].className = newName; continue; } var classList = this[i].className; name.split(/\s+/g).concat(newName.split(/\s+/g)).forEach(function(cname) { classList = classList.replace(classRE(cname), " "); }); classList = classList.trim(); if (classList.length &gt; 0) { this[i].className = (classList + " " + newName).trim(); } else this[i].className = newName; } return this; }, </code></pre> </div> </div> <h2>$().replaceClass(old, new)</h2> <section class='description'><p>Replaces a css class on elements.<br /> $().replaceClass("on", "off");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>classes - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().replaceClass(old,new) will replace a css class on an element with another class.</p> <p>Assume there is an element that displays some content usinge the "greenredclass" css class</p> <pre><code class="language-html"><span class='linenumber'>&lt;div style='border:1px solid black' id="replaceclass_content" class="greenredclass"&gt;This is some content&lt;/div&gt;</span> </code></pre> <p>Then using $().replaceClass() you can replace the greenredclass with the blueyellowclass.</p> <pre><code class="language-js"><span class='linenumber'>$("#replaceclass_content").replaceClass("greenredclass","blueyellowclass");</span> </code></pre> <p></br></p> <div style='border:1px solid black' id="replaceclass_content" class="greenredclass">This is some content</div> <p><input type="button" value="Replace the Class" onclick='$("#replaceclass_content").replaceClass("greenredclass","blueyellowclass");'></p> </div> </div> </article> </div> <div id='_hasClass' title='$().hasClass(name,[element])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_hasClass",this)'>Show Source</a></h3> <div class='viewsource' id='source__hasClass' style='display:none'> <pre style='padding-left:25px'><code> hasClass: function(name, element) { if (this.length === 0) return false; if (!element) element = this[0]; return classRE(name).test(element.className); }, </code></pre> </div> </div> <h2>$().hasClass(name,[element])</h2> <section class='description'><p>Checks to see if an element has a class.<br /> $().hasClass('foo');<br /> $().hasClass('foo',element);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>class - String</li> <li style='padding-left:15px;line-height:20px'>[element] - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().hasClass(name) checks to see if an element has a class.</p> <p>Assume there is an element that displays some content usinge the "greenredclass" css class</p> <pre><code class="language-html"><span class='linenumber'>&lt;div style='border:1px solid black' id="hasclass_content" class="greenredclass"&gt;This is some content&lt;/div&gt;</span> </code></pre> <p>You can then use $().hasClass() to determine if the element has that class or not.</p> <pre><code class="language-js"><span class='linenumber'>$("#hasclass_content").hasClass("greenredclass");</span> </code></pre> <p></br></p> <div style='border:1px solid black' id="hasclass_content" class="greenredclass">This is some content</div> <p><input type="button" value="Has greenredclass?" onclick='alert($("#hasclass_content").hasClass("greenredclass"))'><br /> <input type="button" value="Has blueyellowclass?" onclick='alert($("#hasclass_content").hasClass("blueyellowclass"))'></p> </div> </div> </article> </div> <div id='_append' title='$().append(element,[insert])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_append",this)'>Show Source</a></h3> <div class='viewsource' id='source__append' style='display:none'> <pre style='padding-left:25px'><code> append: function(element, insert) { if (element && element.length != nundefined && element.length === 0) return this; if ($.isArray(element) || $.isObject(element)) element = $(element); var i; for (i = 0; i &lt; this.length; i++) { if (element.length && typeof element != "string") { element = $(element); _insertFragments(element, this[i], insert); } else { var obj = fragmentRE.test(element) ? $(element) : undefined; if (obj == nundefined || obj.length === 0) { obj = document.createTextNode(element); } if (obj.nodeName != nundefined && obj.nodeName.toLowerCase() == "script" && (!obj.type || obj.type.toLowerCase() === 'text/javascript')) { window['eval'](obj.innerHTML); } else if (obj instanceof $afm) { _insertFragments(obj, this[i], insert); } else { insert != nundefined ? this[i].insertBefore(obj, this[i].firstChild) : this[i].appendChild(obj); } } } return this; }, </code></pre> </div> </div> <h2>$().append(element,[insert])</h2> <section class='description'><p>Appends to the elements<br />We boil everything down to an appframework object and then loop through that.<br />If it's HTML, we create a dom element so we do not break event bindings.<br />if it's a script tag, we evaluate it.<br /> $().append(""); //Creates the object from the string and appends it<br /> $().append($("#foo")); //Append an object;<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Element/string - String|Object</li> <li style='padding-left:15px;line-height:20px'>[insert] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().append(element,[insert]) appends an element or content to an existing element.</p> <p>Assume we have an element defined with content for which we want to add additional content</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="append_content"&gt;I'll append content after the &amp;lt;hr&gt; &lt;hr&gt;&lt;/div&gt;</span> </code></pre> <p>We then use $().append() to add the additional content after the &lt;hr> tag .</p> <pre><code class="language-js"><span class='linenumber'>$("#append_content").append("&lt;span&gt;Some more content&lt;/br&gt;&lt;/span&gt;");</span> </code></pre> <p></br></p> <div id="append_content">I'll append content after the &lt;hr> <hr></div> <p><input type="button" value="Append Content" onclick='$("#append_content").append("<span>Some more content</br></span>");'></p> </div> </div> </article> </div> <div id='_appendTo' title='$().appendTo(element,[insert])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_appendTo",this)'>Show Source</a></h3> <div class='viewsource' id='source__appendTo' style='display:none'> <pre style='padding-left:25px'><code> appendTo: function(selector, insert) { var tmp = $(selector); tmp.append(this); return this; }, </code></pre> </div> </div> <h2>$().appendTo(element,[insert])</h2> <section class='description'><p>Appends the current collection to the selector<br /> $().appendTo("#foo"); //Append an object;<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Selector - String|Object</li> <li style='padding-left:15px;line-height:20px'>[insert] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().appendTo(element|selector) appends the collection to an element</p> <p>Assume we have found all the paragraphcs on the page and want to move them into another div</p> <pre><code class="language-js"><span class='linenumber'>var paragraphs=$("p");</span> </code></pre> <p>Now let's put them in a div with the id called "paragraphs". The will move to the dop</p> <pre><code class="language-js"><span class='linenumber'>$("#appendTest p").appendTo("#paragraphsappend");</span> </code></pre> <pre><code class="language-html"><span class='linenumber'>&lt;div id="paragraphsappend"&gt;</span> <span class='linenumber'> This content will stay at the bottom when the &lt;p&gt; tags are moved</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="appendTest"&gt;</span> <span class='linenumber'> &lt;p&gt;Paragraph One&lt;/p&gt;</span> <span class='linenumber'> &lt;p&gt;Paragraph Two&lt;/p&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <div id="appendTest"> <p>Paragraph One</p> <p>Paragraph Two</p> </div> <div id="paragraphsappend"> <div>This content will stay at the top when the &lt;p> tags are moved</div> </div> <p><input type="button" value="Append Content" onclick='$("#appendTest p").appendTo("#paragraphsappend");'></p> </div> </div> </article> </div> <div id='_prependTo' title='$().prependTo(element)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_prependTo",this)'>Show Source</a></h3> <div class='viewsource' id='source__prependTo' style='display:none'> <pre style='padding-left:25px'><code> prependTo: function(selector) { var tmp = $(selector); tmp.append(this, true); return this; }, </code></pre> </div> </div> <h2>$().prependTo(element)</h2> <section class='description'><p>Prepends the current collection to the selector<br /> $().prependTo("#foo"); //Prepend an object;<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Selector - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().prependTo(element|selector) prepends the collection to an element</p> <p>Assume we have found all the paragraphcs on the page and want to move them into another div</p> <pre><code class="language-js"><span class='linenumber'>var paragraphs=$("p");</span> </code></pre> <p>Now let's put them in a div with the id called "paragraphs". The will move to the dop</p> <pre><code class="language-js"><span class='linenumber'>$("#prependTest p").prependTo("#paragraphsPrepend");</span> </code></pre> <pre><code class="language-html"><span class='linenumber'>&lt;div id="paragraphsPrepend"&gt;</span> <span class='linenumber'> This content will stay at the bottom when the &lt;p&gt; tags are moved</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="prependTest"&gt;</span> <span class='linenumber'> &lt;p&gt;Paragraph One&lt;/p&gt;</span> <span class='linenumber'> &lt;p&gt;Paragraph Two&lt;/p&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <div id="paragraphsPrepend"> <div>This content will stay at the bottom when the &lt;p> tags are moved</div> </div> <div id="prependTest"> <p>Paragraph One</p> <p>Paragraph Two</p> </div> <p><input type="button" value="Append Content" onclick='$("#prependTest p").prependTo("#paragraphsPrepend");'></p> </div> </div> </article> </div> <div id='_prepend' title='$().prepend(element)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_prepend",this)'>Show Source</a></h3> <div class='viewsource' id='source__prepend' style='display:none'> <pre style='padding-left:25px'><code> prepend: function(element) { return this.append(element, 1); }, </code></pre> </div> </div> <h2>$().prepend(element)</h2> <section class='description'><p>Prepends to the elements<br />This simply calls append and sets insert to true<br /> $().prepend("");//Creates the object from the string and appends it<br /> $().prepend($("#foo")); //Prepends an object<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Element/string - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().prepend(element) prepends to an element by calling append and setting insert to true.</p> <p>Assume we have an element defined with content for which we want to add additional content</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="prepend_content"&gt;&lt;hr&gt;I'll prepend content before the &amp;lt;hr&gt;&lt;/div&gt;</span> </code></pre> <p>We then use $().prepend() to add the additional content before the &lt;hr> tag .</p> <pre><code class="language-js"><span class='linenumber'>$("#prepend_content").prepend("&lt;span&gt;Some more content&lt;br /&gt;&lt;/span&gt;");</span> </code></pre> <p></br></p> <div id="prepend_content"><hr>I'll prepend content before the &lt;hr></div> <p><input type="button" value="Prepend Content" onclick='$("#prepend_content").prepend("<span>Some more content</br></span>");'></p> </div> </div> </article> </div> <div id='_insertBefore' title='$().insertBefore(target);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_insertBefore",this)'>Show Source</a></h3> <div class='viewsource' id='source__insertBefore' style='display:none'> <pre style='padding-left:25px'><code> insertBefore: function(target, after) { if (this.length === 0) return this; target = $(target).get(0); if (!target) return this; for (var i = 0; i &lt; this.length; i++) { after ? target.parentNode.insertBefore(this[i], target.nextSibling) : target.parentNode.insertBefore(this[i], target); } return this; }, </code></pre> </div> </div> <h2>$().insertBefore(target);</h2> <section class='description'><p>Inserts collection before the target (adjacent)<br /> $().insertBefore(af("#target"));<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Target - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().insertBefore(element) Inserts a collection before the element in the dom.</p> <p>Let's say we want to move all paragraphs before an element with id ="insertBeforeTest"</p> <pre><code class="language-html"><span class='linenumber'>&lt;div&gt;Some stuff&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="insertBeforeTest"&gt;P's will go before me&lt;/div&gt;</span> <span class='linenumber'>&lt;p&gt;This is p1&lt;/p&gt;</span> <span class='linenumber'>&lt;p&gt;This is p2&lt;/p&gt;</span> </code></pre> <p>We can find all the p tags, then insert before #insertBeforeTest</p> <pre><code class="language-js"><span class='linenumber'>$("p").insertBefore("#insertBeforeTest");</span> </code></pre> <p></br></p> <div id="insertBeforeW"> <div>Some stuff</div> <div id="insertBeforeTest">P's will go before me</div> <p>This is p1</p> <p>This is p2</p> </div> <p><input type="button" value="Append Content" onclick='$("#insertBeforeW p").insertBefore("#insertBeforeTest");'></p> </div> </div> </article> </div> <div id='_insertAfter' title='$().insertAfter(target);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_insertAfter",this)'>Show Source</a></h3> <div class='viewsource' id='source__insertAfter' style='display:none'> <pre style='padding-left:25px'><code> insertAfter: function(target) { this.insertBefore(target, true); }, </code></pre> </div> </div> <h2>$().insertAfter(target);</h2> <section class='description'><p>Inserts collection after the target (adjacent)<br /> $().insertAfter(af("#target"));<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>target - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().insertAfter(element) Inserts a collection after the element in the dom.</p> <p>Let's say we want to move all paragraphs after an element with id ="insertBeforeTest"</p> <pre><code class="language-html"><span class='linenumber'>&lt;p&gt;This is p1&lt;/p&gt;</span> <span class='linenumber'>&lt;p&gt;This is p2&lt;/p&gt;</span> <span class='linenumber'>&lt;div id="insertAfterTest"&gt;P's will go after me&lt;/div&gt;</span> <span class='linenumber'>&lt;div&gt;Some stuff&lt;/div&gt;</span> </code></pre> <p>We can find all the p tags, then insert after #insertAfterTest</p> <pre><code class="language-js"><span class='linenumber'>$("p").insertAfter("#insertAfterTest");</span> </code></pre> <p></br></p> <div id="insertAfterW"> <p>This is p1</p> <p>This is p2</p> <div id="insertAfterTest">P's will go after me</div> <div>Some stuff</div> </div> <p><input type="button" value="Append Content" onclick='$("#insertAfterW p").insertAfter("#insertAfterTest");'></p> </div> </div> </article> </div> <div id='_get' title='$().get([index])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_get",this)'>Show Source</a></h3> <div class='viewsource' id='source__get' style='display:none'> <pre style='padding-left:25px'><code> get: function(index) { index = index == nundefined ? 0 : index; if (index &lt; 0) index += this.length; return (this[index]) ? this[index] : undefined; }, </code></pre> </div> </div> <h2>$().get([index])</h2> <section class='description'><p>Returns the raw DOM element.<br /> $().get(0); //returns the first element<br /> $().get(2);// returns the third element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[index] - Int</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - raw DOM element</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().get([index]) to get the raw DOM element</p> <p>Write a function that uses $().get(0) to get the first element</p> <pre><code class="language-js"><span class='linenumber'>function getElementByIndex(){</span> <span class='linenumber'> var obj=$(".panel").get(0);</span> <span class='linenumber'> alert("This is the first panel = "+obj.id);</span> <span class='linenumber'>}</span> </code></pre> <p>You can then set up a way to call the function, in this case we set up a button</p> <p></br></p> <script> function getElementByIndex(){ var obj=$(".panel").get(0); alert("This is the first panel = "+obj.id); } </script> <p><input type="button" value="Get First Panel" onclick='getElementByIndex();;'></p> </div> </div> </article> </div> <div id='_offset' title='$().offset()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_offset",this)'>Show Source</a></h3> <div class='viewsource' id='source__offset' style='display:none'> <pre style='padding-left:25px'><code> offset: function() { var obj; if (this.length === 0) return this; if (this[0] == window) return { left: 0, top: 0, right: 0, bottom: 0, width: window.innerWidth, height: window.innerHeight }; else obj = this[0].getBoundingClientRect(); return { left: obj.left + window.pageXOffset, top: obj.top + window.pageYOffset, right: obj.right + window.pageXOffset, bottom: obj.bottom + window.pageYOffset, width: obj.right - obj.left, height: obj.bottom - obj.top }; }, </code></pre> </div> </div> <h2>$().offset()</h2> <section class='description'><p>Returns the offset of the element, including traversing up the tree<br /> $().offset();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - with left, top, width and height properties</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().offset() returns the offset of the first element in the collection</p> <p>The offset returns the following</p> <ol> <li>left</li> <li>top</li> <li>right</li> <li>bottom</li> <li>width</li> <li>height</li> </ol> <p>Below we have a box absolutely positioned in the div.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="offsetTest" style="position:absolute;background:red;width:100px;height:100px;left:100px;top:100px;"&gt;</span> <span class='linenumber'> This is content</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the offset</p> <pre><code class="language-js"><span class='linenumber'>$("#offsetTest").offset();</span> </code></pre> <p></br><br /> <input type="button" value="Get Offset" onclick='alert(JSON.stringify($("#offsetTest").offset()))'></p> <div style="position:relative;width:100%;height:300px;"> <div id="offsetTest" style="position:absolute;background:red;width:100px;height:100px;right:100px;top:-50px;"> This is content </div> </div> </div> </div> </article> </div> <div id='_height' title='$().height()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_height",this)'>Show Source</a></h3> <div class='viewsource' id='source__height' style='display:none'> <pre style='padding-left:25px'><code> height: function(val) { if (this.length === 0) return this; if (val != nundefined) return this.css("height", val); if (this[0] == this[0].window) return window.innerHeight; if (this[0].nodeType == this[0].DOCUMENT_NODE) return this[0].documentElement.offsetheight; else { var tmpVal = this.css("height").replace("px", ""); if (tmpVal) return tmpVal; else return this.offset().height; } }, </code></pre> </div> </div> <h2>$().height()</h2> <section class='description'><p>returns the height of the element, including padding on IE<br /> $().height();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>string - height</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().height() returns the css height of the element based. The "px" is stripped from the result.</p> <p>Below we have to divs. One has a fixed height, and the other is based off %</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="heightTest" style="background:red;height:100px;height:100px;"&gt;</span> <span class='linenumber'> This is content</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="heightTest2" style="background:green;height:100%;height:30%;"&gt;</span> <span class='linenumber'> This is content 2</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the offset</p> <pre><code class="language-js"><span class='linenumber'>$("#heightTest").height();</span> </code></pre> <p></br><br /> <input type="button" value="height test 1" onclick='alert($("#heightTest").height())'><br /> <input type="button" value="height test 2" onclick='alert($("#heightTest2").height())'></p> <div id="heightTest" style=";background:red;height:100px;height:100px;"> This is content </div> <div id="heightTest2" style=";background:green;height:100%;height:30%;"> This is content 2 </div> </div> </div> </article> </div> <div id='_width' title='$().width()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_width",this)'>Show Source</a></h3> <div class='viewsource' id='source__width' style='display:none'> <pre style='padding-left:25px'><code> width: function(val) { if (this.length === 0) return this; if (val != nundefined) return this.css("width", val); if (this[0] == this[0].window) return window.innerWidth; if (this[0].nodeType == this[0].DOCUMENT_NODE) return this[0].documentElement.offsetwidth; else { var tmpVal = this.css("width").replace("px", ""); if (tmpVal) return tmpVal; else return this.offset().width; } }, </code></pre> </div> </div> <h2>$().width()</h2> <section class='description'><p>returns the width of the element, including padding on IE<br /> $().width();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>string - width</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().width() returns the css width of the element based. The "px" is stripped from the result.</p> <p>Below we have to divs. One has a fixed width, and the other is based off %</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="widthTest" style="background:red;width:100px;height:100px;"&gt;</span> <span class='linenumber'> This is content</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="widthTest2" style="background:green;width:100%;height:100px;"&gt;</span> <span class='linenumber'> This is content 2</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the offset</p> <pre><code class="language-js"><span class='linenumber'>$("#widthTest").width();</span> </code></pre> <p></br><br /> <input type="button" value="Width test 1" onclick='alert($("#widthTest").width())'><br /> <input type="button" value="Width test 2" onclick='alert($("#widthTest2").width())'></p> <div id="widthTest" style=";background:red;width:100px;height:100px;"> This is content </div> <div id="widthTest2" style=";background:green;width:100%;height:100px;"> This is content 2 </div> </div> </div> </article> </div> <div id='_parent' title='$().parent(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_parent",this)'>Show Source</a></h3> <div class='viewsource' id='source__parent' style='display:none'> <pre style='padding-left:25px'><code> parent: function(selector, recursive) { if (this.length === 0) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { var tmp = this[i]; while (tmp.parentNode && tmp.parentNode != document) { elems.push(tmp.parentNode); if (tmp.parentNode) tmp = tmp.parentNode; if (!recursive) break; } } return this.setupOld($(unique(elems)).filter(selector)); }, </code></pre> </div> </div> <h2>$().parent(selector)</h2> <section class='description'><p>Returns the parent nodes of the elements based off the selector<br /> $("#foo").parent('.bar');<br /> $("#foo").parent($('.bar'));<br /> $("#foo").parent($('.bar').get(0));<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[selector] - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object with unique parents</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().parent([selector]) returns the parents of each element in the collection, filtered by the optional selector</p> <p>Let's look at the following html structure</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="parent1"&gt;</span> <span class='linenumber'> &lt;div class="child"&gt;</span> <span class='linenumber'> &lt;div class="gc"&gt;GC&lt;/div&gt;</span> <span class='linenumber'> &lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="parent2"&gt;</span> <span class='linenumber'> &lt;div class="child"&gt;Child&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the parent elements of everything with the class "child"</p> <pre><code class="language-js"><span class='linenumber'>$(".child").parent();</span> </code></pre> <div id="parent1"> <div class="child"> <div class="gc">GC</div> </div> </div> <div id="parent2"> <div class="child">Child</div> </div> <script> function getParent(){ var obj=$(".child").parent(); alert(obj[0].id+" "+obj[1].id); } </script> <p><input type="button" value="Get Parent" onclick="getParent()"></p> </div> </div> </article> </div> <div id='_parents' title='$().parents(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_parents",this)'>Show Source</a></h3> <div class='viewsource' id='source__parents' style='display:none'> <pre style='padding-left:25px'><code> parents: function(selector) { return this.parent(selector, true); }, </code></pre> </div> </div> <h2>$().parents(selector)</h2> <section class='description'><p>Returns the parents of the elements based off the selector (traversing up until html document)<br /> $("#foo").parents('.bar');<br /> $("#foo").parents($('.bar'));<br /> $("#foo").parents($('.bar').get(0));<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[selector] - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object with unique parents</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().parents([selector]) returns the parents of each element in the collection and traverses up the DOM, filtered by the optional selector</p> <p>Let's look at the following html structure</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="parents1"&gt;</span> <span class='linenumber'> &lt;div class="childs"&gt;</span> <span class='linenumber'> &lt;div class="gcs"&gt;GC&lt;/div&gt;</span> <span class='linenumber'> &lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> <span class='linenumber'>&lt;div id="parents2"&gt;</span> <span class='linenumber'> &lt;div class="childs"&gt;Child&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the parent elements of everything with the class "child"</p> <pre><code class="language-js"><span class='linenumber'>$(".child").parent();</span> </code></pre> <div id="parents1"> <div class="childs"> <div class="gcs">GC</div> </div> </div> <div id="parents2"> <div class="childs">Child</div> </div> <script> function getParents(){ var obj=$(".childs").parents(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } function getParentGCs(){ var obj=$(".gcs").parents(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } </script> <p>This test will have "parents1" and "parents2" and then the shared ancestors<br /> <input type="button" value="Get .child Parent" onclick="getParents()"><br><br /> This test will not include "parent2", since gcs is a single element</p> <p><input type="button" value="Get .gc Parent" onclick="getParentGCs()"></p> </div> </div> </article> </div> <div id='_children' title='$().children(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_children",this)'>Show Source</a></h3> <div class='viewsource' id='source__children' style='display:none'> <pre style='padding-left:25px'><code> children: function(selector) { if (this.length === 0) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { elems = elems.concat(siblings(this[i].firstChild)); } return this.setupOld($((elems)).filter(selector)); }, </code></pre> </div> </div> <h2>$().children(selector)</h2> <section class='description'><p>Returns the child nodes of the elements based off the selector<br /> $("#foo").children('.bar'); //Selector<br /> $("#foo").children($('.bar')); //Objects<br /> $("#foo").children($('.bar').get(0)); //Single element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[selector] - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object with unique children</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().children([selector]) returns the children of each element in the collection, filtered by the optional selector</p> <p>Let's look at the following html structure</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="childstest1"&gt;</span> <span class='linenumber'> &lt;div id='childtestgc1' class="childstest"&gt;</span> <span class='linenumber'> &lt;div id='childtestgc3' class="gcstest"&gt;GC&lt;/div&gt;</span> <span class='linenumber'> &lt;/div&gt;</span> <span class='linenumber'> &lt;div id='childtestgc2' class="childstest"&gt;Child&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the child elements of everything of parents</p> <pre><code class="language-js"><span class='linenumber'>$("#childtest1").children();</span> </code></pre> <div id="childstest1"> <div id='childtestgc1' class="childstest"> <div id='childtestgc3' class="gcstest">GC</div> </div> <div id='childtestgc2' class="childstest">Child</div> </div> <script> function getChildren(){ var obj=$("#childstest1").children(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } function getChildrenGC(){ var obj=$(".childstest").children(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } </script> <p>This test will have to elements, but not include "gctest"<br /> <input type="button" value="Get childtest1 children" onclick="getChildren()"><br><br /> this will only have "gctest" since there is only one child of both childtest divs</p> <p><input type="button" value="Get .childtest children" onclick="getChildrenGC()"></p> </div> </div> </article> </div> <div id='_siblings' title='$().siblings(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_siblings",this)'>Show Source</a></h3> <div class='viewsource' id='source__siblings' style='display:none'> <pre style='padding-left:25px'><code> siblings: function(selector) { if (this.length === 0) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { if (this[i].parentNode) elems = elems.concat(siblings(this[i].parentNode.firstChild, this[i])); } return this.setupOld($(elems).filter(selector)); }, </code></pre> </div> </div> <h2>$().siblings(selector)</h2> <section class='description'><p>Returns the siblings of the element based off the selector<br /> $("#foo").siblings('.bar'); //Selector<br /> $("#foo").siblings($('.bar')); //Objects<br /> $("#foo").siblings($('.bar').get(0)); //Single element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[selector] - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object with unique siblings</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().siblings([selector]) returns the siblings of each element in the collection, filtered by the optional selector</p> <p>Let's look at the following html structure</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="siblingstest1"&gt;</span> <span class='linenumber'> &lt;div id='siblingtestgc1' class="siblingstest"&gt;</span> <span class='linenumber'> &lt;div id='siblingtestgc3' class="siblingsgcstest"&gt;GC&lt;/div&gt;</span> <span class='linenumber'> &lt;/div&gt;</span> <span class='linenumber'> &lt;div id='siblingtestgc2' class="siblingstest"&gt;Child&lt;/div&gt;</span> <span class='linenumber'> &lt;div id='siblingtestgc4' class="siblingstest"&gt;Child&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now we will get the child elements of everything of parents</p> <pre><code class="language-js"><span class='linenumber'>$("#siblingtest1").siblings();</span> </code></pre> <div id="siblingstest1"> <div id='siblingtestgc1' class="siblingstest"> <div id='siblingtestgc3' class="siblingsgcstest">GC</div> </div> <div id='siblingtestgc2' class="siblingstest">Child</div> <div id='siblingtestgc4' class="siblingstest">Child</div> </div> <script> function getSiblings(){ var obj=$("#siblingtestgc1").siblings(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } function getSiblingsGC(){ var obj=$(".siblingsgcstest").siblings(); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } </script> <p>This test will have to elements, but not include "gctest"<br /> <input type="button" value="Get siblingtestgc1 siblings" onclick="getSiblings()"><br><br /> this will be empty since there are no other elements in the div</p> <p><input type="button" value="Get .siblingsgcstest siblings" onclick="getSiblingsGC()"></p> </div> </div> </article> </div> <div id='_closest' title='$().closest(selector,[context]);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_closest",this)'>Show Source</a></h3> <div class='viewsource' id='source__closest' style='display:none'> <pre style='padding-left:25px'><code> closest: function(selector, context) { if (this.length === 0) return this; var elems = [], cur = this[0]; var start = $(selector, context); if (start.length === 0) return $(); while (cur && start.indexOf(cur) == -1) { cur = cur !== context && cur !== document && cur.parentNode; } return $(cur); }, </code></pre> </div> </div> <h2>$().closest(selector,[context]);</h2> <section class='description'><p>Returns the closest element based off the selector and optional context<br /> $("#foo").closest('.bar'); //Selector<br /> $("#foo").closest($('.bar')); //Objects<br /> $("#foo").closest($('.bar').get(0)); //Single element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> <li style='padding-left:15px;line-height:20px'>[context] - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - Returns an appframework object with the closest element based off the selector</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().closest([selector]) for each element in the collection, including itself, it will search and traverse up the dom until it finds the first element matching the selector. If the elements in the collection match the selector, it will return those.</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="closest1" class="grandparent"&gt;</span> <span class='linenumber'> &lt;div id='closestgc1' class="closest"&gt;</span> <span class='linenumber'> &lt;div id='closestgc3' class="closest"&gt;GC&lt;/div&gt;</span> <span class='linenumber'> &lt;/div&gt;</span> <span class='linenumber'> &lt;div id='closestgc2' class="closest"&gt;Child&lt;/div&gt;</span> <span class='linenumber'>&lt;/div&gt;</span> </code></pre> <p>Now lets get the closest div</p> <pre><code class="language-js"><span class='linenumber'>$("#closestgc3").closest('div');</span> </code></pre> <p>Or we can find the closest "grandparent" class</p> <pre><code class="language-js"><span class='linenumber'>$(".closest").closest(".grandparent");</span> </code></pre> <div id="closest1" class='grandparent'> <div id='closestgc1' class="closest"> <div id='closestgc3' class="closest">GC</div> </div> <div id='closestgc2' class="closest">Child</div> </div> <script> function getclosest(){ var obj=$("#closestgc3").closest('div'); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } function getclosestGC(){ var obj=$(".closest").closest(".grandparent"); var str=""; obj.each(function(obj){ if(this.id=="") return; str+=this.id+","; }); alert(str); } </script> <p>This will be the closestgc3 div since it is a div<br /> <input type="button" value="Get #closestgc3 div" onclick="getclosest()"><br><br /> This will traverse up to .grandparent from all the .closest class divs<br /> <input type="button" value="Get .closest closest .grandparent" onclick="getclosestGC()"></p> </div> </div> </article> </div> <div id='_filter' title='$().filter(selector);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_filter",this)'>Show Source</a></h3> <div class='viewsource' id='source__filter' style='display:none'> <pre style='padding-left:25px'><code> filter: function(selector) { if (this.length === 0) return this; if (selector == nundefined) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { var val = this[i]; if (val.parentNode && $(selector, val.parentNode).indexOf(val) &gt;= 0) elems.push(val); } return this.setupOld($(unique(elems))); }, </code></pre> </div> </div> <h2>$().filter(selector);</h2> <section class='description'><p>Filters elements based off the selector<br /> $("#foo").filter('.bar'); //Selector<br /> $("#foo").filter($('.bar')); //Objects<br /> $("#foo").filter($('.bar').get(0)); //Single element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - Returns an appframework object after the filter was run</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().filter(selector) reduces a collection to elements that match the selector</p> <p>Let's say we have all &lt;li> elements and we want to filter to only elements that have class "anchor"</p> <pre><code class="language-html"><span class='linenumber'>&lt;ul&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Four&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Five&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Six&lt;/li&gt;</span> <span class='linenumber'>&lt;/ul&gt;</span> </code></pre> <p>By calling filter of ".anchor", we will reduce our set from six elements to two.</p> <pre><code class="language-js"><span class='linenumber'>$("ul li").filter(".anchor");</span> </code></pre> <ul id="filterTest"> <li class="anchor">One</li> <li class="anchor">Two</li> <li>Three</li> <li>Four</li> <li>Five</li> <li>Six</li> </ul> <p><input type="button" value="Get All LI count" onclick="alert($('#filterTest li').length)"></p> <p><input type="button" value="Get Filtered count" onclick="alert($('#filterTest li').filter('.anchor').length)"></p> </div> </div> </article> </div> <div id='_not' title='$().not(selector);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_not",this)'>Show Source</a></h3> <div class='viewsource' id='source__not' style='display:none'> <pre style='padding-left:25px'><code> not: function(selector) { if (this.length === 0) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { var val = this[i]; if (val.parentNode && $(selector, val.parentNode).indexOf(val) == -1) elems.push(val); } return this.setupOld($(unique(elems))); }, </code></pre> </div> </div> <h2>$().not(selector);</h2> <section class='description'><p>Basically the reverse of filter. Return all elements that do NOT match the selector<br /> $("#foo").not('.bar'); //Selector<br /> $("#foo").not($('.bar')); //Objects<br /> $("#foo").not($('.bar').get(0)); //Single element<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - Returns an appframework object after the filter was run</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().not(selector) reduces a collection to elements that do not match the selector</p> <p>Let's say we have all &lt;li> elements and we want to remove the elements that have class "anchor"</p> <pre><code class="language-html"><span class='linenumber'>&lt;ul&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Four&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Five&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Six&lt;/li&gt;</span> <span class='linenumber'>&lt;/ul&gt;</span> </code></pre> <p>By calling not of ".anchor", we will reduce our set from six elements to four.</p> <pre><code class="language-js"><span class='linenumber'>$("ul li").not(".anchor");</span> </code></pre> <ul id="notTest"> <li class="anchor">One</li> <li class="anchor">Two</li> <li>Three</li> <li>Four</li> <li>Five</li> <li>Six</li> </ul> <p><input type="button" value="Get All LI count" onclick="alert($('#notTest li').length)"></p> <p><input type="button" value="Get not(.anchor) count" onclick="alert($('#notTest li').not('.anchor').length)"></p> </div> </div> </article> </div> <div id='_data' title='$().data(key,[value]);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_data",this)'>Show Source</a></h3> <div class='viewsource' id='source__data' style='display:none'> <pre style='padding-left:25px'><code> data: function(key, value) { return this.attr('data-' + key, value); }, </code></pre> </div> </div> <h2>$().data(key,[value]);</h2> <section class='description'><p>Gets or set data-* attribute parameters on elements (when a string)<br />When used as a getter, it's only the first element<br /> $().data("foo"); //Gets the data-foo attribute for the first element<br /> $().data("foo","bar"); //Sets the data-foo attribute for all elements<br /> $().data("foo",{bar:'bar'});//object as the data<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>key - String</li> <li style='padding-left:15px;line-height:20px'>value - String|Array|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String|Object - returns the value or appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().data(key,value) gets or sets data-* attributes on an HTML element when value is a string.</p> <p>This makes a call to $().attr("data-"+key,value).</p> <p>Please see <a href="#_attr">$().attr()</a></p> </div> </div> </article> </div> <div id='_end' title='$().end();' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_end",this)'>Show Source</a></h3> <div class='viewsource' id='source__end' style='display:none'> <pre style='padding-left:25px'><code> end: function() { return this.oldElement != nundefined ? this.oldElement : $(); }, </code></pre> </div> </div> <h2>$().end();</h2> <section class='description'><p>Rolls back the appframework elements when filters were applied<br />This can be used after .not(), .filter(), .children(), .parent()<br /> $().filter(".panel").end(); //This will return the collection BEFORE filter is applied<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - returns the previous appframework object before filter was applied</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().end() rolls back the elements before filtering</p> <p>Let's look at the filter example below.</p> <pre><code class="language-html"><span class='linenumber'>&lt;ul&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li class="anchor"&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Four&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Five&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Six&lt;/li&gt;</span> <span class='linenumber'>&lt;/ul&gt;</span> </code></pre> <p>By calling filter of ".anchor", we will reduce our set from six elements to two.<br /> After we call end(), it will reduce the set back to $("ul li");</p> <pre><code class="language-js"><span class='linenumber'>$("ul li").filter(".anchor").end();</span> </code></pre> <ul id="endTest"> <li class="anchor">One</li> <li class="anchor">Two</li> <li>Three</li> <li>Four</li> <li>Five</li> <li>Six</li> </ul> <p><input type="button" value="Get All LI count" onclick="alert($('#endTest li').length)"></p> <p><input type="button" value="Get end count" onclick="alert($('#endTest li').filter('.anchor').end().length)"></p> </div> </div> </article> </div> <div id='_clone' title='$().clone();' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_clone",this)'>Show Source</a></h3> <div class='viewsource' id='source__clone' style='display:none'> <pre style='padding-left:25px'><code> clone: function(deep) { deep = deep === false ? false : true; if (this.length === 0) return this; var elems = []; for (var i = 0; i &lt; this.length; i++) { elems.push(this[i].cloneNode(deep)); } return $(elems); }, </code></pre> </div> </div> <h2>$().clone();</h2> <section class='description'><p>Clones the nodes in the collection.<br /> $().clone();// Deep clone of all elements<br /> $().clone(false); //Shallow clone<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[deep] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object of cloned nodes</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().clone(deep) clones all the DOM nods in the collection. If deep is set to "true", it will also clone the elements children.</p> <p>Let's say we have an ordered list and we want to keep adding elements by cloning the first LI.</p> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;Entry&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>We can clone and then add it to the list like the following.</p> <pre><code class="language-js"><span class='linenumber'>var obj=$("ol li").eq(0).clone();</span> <span class='linenumber'>$("ol li").append(obj);</span> </code></pre> <p>Below we can clone and add elements. You can also change the text of the first element to see how the cloned nodes will reflecct it.</p> <script> function changeNode(){ $("#cloneTest li").eq(0).html("Updated Text"); } function cloneTest(){ $("#cloneTest li").eq(0).clone().appendTo("#cloneTest"); } </script> <ol id="cloneTest"> <li>Entry</li> </ol> <p><input type="button" value="Clone a node" onclick="cloneTest()"></p> <p><input type="button" value="Change first LI html" onclick="changeNode()"></p> </div> </div> </article> </div> <div id='_size' title='$().size();' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_size",this)'>Show Source</a></h3> <div class='viewsource' id='source__size' style='display:none'> <pre style='padding-left:25px'><code> size: function() { return this.length; }, </code></pre> </div> </div> <h2>$().size();</h2> <section class='description'><p>Returns the number of elements in the collection<br /> $().size();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Int - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().size() returns the number of elements in the collection. This is the same as $().length;</p> </div> </div> </article> </div> <div id='_serialize' title='$().serialize()' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_serialize",this)'>Show Source</a></h3> <div class='viewsource' id='source__serialize' style='display:none'> <pre style='padding-left:25px'><code> serialize: function() { if (this.length === 0) return ""; var params = []; for (var i = 0; i &lt; this.length; i++) { this.slice.call(this[i].elements).forEach(function(elem) { var type = elem.getAttribute("type"); if (elem.nodeName.toLowerCase() != "fieldset" && !elem.disabled && type != "submit" && type != "reset" && type != "button" && ((type != "radio" && type != "checkbox") || elem.checked)) { if (elem.getAttribute("name")) { if (elem.type == "select-multiple") { for (var j = 0; j &lt; elem.options.length; j++) { if (elem.options[j].selected) params.push(elem.getAttribute("name") + "=" + encodeURIComponent(elem.options[j].value)); } } else params.push(elem.getAttribute("name") + "=" + encodeURIComponent(elem.value)); } } }); } return params.join("&"); }, </code></pre> </div> </div> <h2>$().serialize()</h2> <section class='description'><p>Serailizes a form into a query string<br /> $().serialize();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().serialize() serializes a form for use in a url.</p> <p>Below is a form that we will serialize the values of</p> <pre><code class="language-html"><span class='linenumber'>&lt;form id="serializeForm" onsubmit="return false"&gt;Name:</span> <span class='linenumber'> &lt;input type='text' class='af-ui-forms' name='name' value='John Smith'&gt;</span> <span class='linenumber'> &lt;br&gt;</span> <span class='linenumber'> &lt;input type='checkbox' class='af-ui-forms' value='yes' checked name='human'&gt;</span> <span class='linenumber'> &lt;label for='human'&gt;Are you human?&lt;/label&gt;</span> <span class='linenumber'> &lt;br&gt;</span> <span class='linenumber'> &lt;br&gt;Gender: &lt;span&gt;&lt;select id='serialize_gender' name="gender"&gt;&lt;option value='m'&gt;Male&lt;/option&gt;&lt;option value='f'&gt;Female&lt;/option&gt;&lt;select&gt;&lt;/span&gt;</span> <span class='linenumber'> &lt;br&gt;</span> <span class='linenumber'> &lt;br&gt;</span> <span class='linenumber'> &lt;br&gt;</span> <span class='linenumber'> &lt;input type="button" onclick="serializeForm()" value="Serialize"&gt;</span> <span class='linenumber'>&lt;/form&gt;</span> </code></pre> <p>Below is the form that you can modify and get the serialized result.</p> <script> function serializeForm() { alert($("#serializeForm").serialize()); } </script> <form id="serializeForm" onsubmit="return false">Name: <input type='text' class='af-ui-forms' name='name' value='John Smith'> <br> <input type='checkbox' class='af-ui-forms' value='yes' checked name='human' id="human"> <label for='human'>Are you human?</label> <br> <br>Gender: <span><select id='serialize_gender' name="gender"><option value='m'>Male</option><option value='f'>Female</option><select></span> <br> <br> <br> <input type="button" onclick="serializeForm()" value="Serialize"> </form> </div> </div> </article> </div> <div id='_eq' title='$().eq(index)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_eq",this)'>Show Source</a></h3> <div class='viewsource' id='source__eq' style='display:none'> <pre style='padding-left:25px'><code> eq: function(ind) { return $(this.get(ind)); }, </code></pre> </div> </div> <h2>$().eq(index)</h2> <section class='description'><p>Reduce the set of elements based off index<br /> $().eq(index)<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>index - Int</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().eq(index) reduces the collection to the element at that index. If the index is negative, it will go backwards.</p> <p>Let's take the following list</p> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Four&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Five&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <ol id="eqTest"> <li>One</li> <li>Two</li> <li>Three</li> <li>Four</li> <li>Five</li> </ol> <p>Now we will get the html of the li at 0, 3 and -1.</p> <p>0 = "One"<br /> 3 = "Four"<br /> -1 = "Five"</p> <p><input type="button" value="eq(0)" onclick="alert($('#eqTest li').eq(0).html())"><br /> <input type="button" value="eq(3)" onclick="alert($('#eqTest li').eq(3).html())"><br /> <input type="button" value="eq(-1)" onclick="alert($('#eqTest li').eq(-1).html())"></p> </div> </div> </article> </div> <div id='_index' title='$().index(elem)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_index",this)'>Show Source</a></h3> <div class='viewsource' id='source__index' style='display:none'> <pre style='padding-left:25px'><code> index: function(elem) { return elem ? this.indexOf($(elem)[0]) : this.parent().children().indexOf(this[0]); }, </code></pre> </div> </div> <h2>$().index(elem)</h2> <section class='description'><p>Returns the index of the selected element in the collection<br /> $().index(elem)<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>element - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>integer - - index of selected element</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().index(element) returns the numerical index of the element matching the selector.</p> <p>Let's take the following list</p> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'> &lt;li id="seven"&gt;Seven&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Four&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Five&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>Now we want to get the index of the element with id "seven"</p> <pre><code class="language-js"><span class='linenumber'>var ind=$("ol li").index("#seven");</span> </code></pre> <ol id="indexTest"> <li>One</li> <li>Two</li> <li>Three</li> <li id="seven">Seven</li> <li>Four</li> <li>Five</li> </ol> <p><input type="button" value="Get Index" onclick="alert($('#indexTest li').index($('#indextTest #seven')))"></p> </div> </div> </article> </div> <div id='_is' title='$().is(selector)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_is",this)'>Show Source</a></h3> <div class='viewsource' id='source__is' style='display:none'> <pre style='padding-left:25px'><code> is: function(selector) { return !!selector && this.filter(selector).length &gt; 0; } }; </code></pre> </div> </div> <h2>$().is(selector)</h2> <section class='description'><p>Returns boolean if the object is a type of the selector<br /> $().is(selector)<br /> <br />param {String|Object} selector to act upon</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>boolean - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().is(selector) returns a boolean if at least one element in the collection match the selector</p> <p>Lets take the following html.</p> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li class="foo"&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>We will now check three cases.</p> <pre><code class="language-js"><span class='linenumber'>$("ol li").is("li"); //Check if they are LI elements</span> <span class='linenumber'>$("ol li").is(".foo"); //Check if there are any elements of class foo</span> <span class='linenumber'>$("ol li").is("div"); //Check if any elements are divs' - they are not</span> </code></pre> <p>Run the tests below. The last one will fail because a LI element can not be a div.</p> <ol id="isTest"> <li>One</li> <li class="foo">Two</li> <li>Three</li> </ol> <p><input type="button" value="Check LI" onclick="alert($('#isTest li').is('li'))"></p> <p><input type="button" value="Check .foo" onclick="alert($('#isTest li').is('.foo'))"></p> <p><input type="button" value="Check DIV" onclick="alert($('#isTest li').is('div'))"></p> </div> </div> </article> </div> <div id='$_jsonP' title='$.jsonP(options)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_jsonP",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_jsonP' style='display:none'> <pre style='padding-left:25px'><code> $.jsonP = function(options) { if (isWin8) { options.type = "get"; options.dataType = null; return $.get(options); } var callbackName = 'jsonp_callback' + (++_jsonPID); var abortTimeout = "", context; var script = document.createElement("script"); var abort = function() { $(script).remove(); if (window[callbackName]) window[callbackName] = empty; }; window[callbackName] = function(data) { clearTimeout(abortTimeout); $(script).remove(); delete window[callbackName]; options.success.call(context, data); }; script.src = options.url.replace(/=\?/, '=' + callbackName); if (options.error) { script.onerror = function() { clearTimeout(abortTimeout); options.error.call(context, "", 'error'); }; } $('head').append(script); if (options.timeout &gt; 0) abortTimeout = setTimeout(function() { options.error.call(context, "", 'timeout'); }, options.timeout); return {}; }; </code></pre> </div> </div> <h2>$.jsonP(options)</h2> <section class='description'><p>Execute a jsonP call, allowing cross domain scripting<br />options.url - URL to call<br />options.success - Success function to call<br />options.error - Error function to call<br /> $.jsonP({url:'mysite.php?callback=?&amp;foo=bar',success:function(){},error:function(){}});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>options - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ajax' title='$.ajax(options)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ajax",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ajax' style='display:none'> <pre style='padding-left:25px'><code> $.ajax = function(opts) { var xhr; try { var settings = opts || {}; for (var key in $.ajaxSettings) { if (typeof(settings[key]) == 'undefined') settings[key] = $.ajaxSettings[key]; } if (!settings.url) settings.url = window.location; if (!settings.contentType) settings.contentType = "application/x-www-form-urlencoded"; if (!settings.headers) settings.headers = {}; if (!('async' in settings) || settings.async !== false) settings.async = true; if (!settings.dataType) settings.dataType = "text/html"; else { switch (settings.dataType) { case "script": settings.dataType = 'text/javascript, application/javascript'; break; case "json": settings.dataType = 'application/json'; break; case "xml": settings.dataType = 'application/xml, text/xml'; break; case "html": settings.dataType = 'text/html'; break; case "text": settings.dataType = 'text/plain'; break; default: settings.dataType = "text/html"; break; case "jsonp": return $.jsonP(opts); } } if ($.isObject(settings.data)) settings.data = $.param(settings.data); if (settings.type.toLowerCase() === "get" && settings.data) { if (settings.url.indexOf("?") === -1) settings.url += "?" + settings.data; else settings.url += "&" + settings.data; } if (/=\?/.test(settings.url)) { return $.jsonP(settings); } if (settings.crossDomain === null) settings.crossDomain = /^([\w-]+:)?\/\/([^\/]+)/.test(settings.url) && RegExp.$2 != window.location.host; if (!settings.crossDomain) settings.headers = $.extend({ 'X-Requested-With': 'XMLHttpRequest' }, settings.headers); var abortTimeout; var context = settings.context; var protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol; //ok, we are really using xhr xhr = new window.XMLHttpRequest(); xhr.onreadystatechange = function() { var mime = settings.dataType; if (xhr.readyState === 4) { clearTimeout(abortTimeout); var result, error = false; if ((xhr.status &gt;= 200 && xhr.status &lt; 300) || xhr.status === 0 && protocol == 'file:') { if (mime === 'application/json' && !(/^\s*$/.test(xhr.responseText))) { try { result = JSON.parse(xhr.responseText); } catch (e) { error = e; } } else if (mime === 'application/xml, text/xml') { result = xhr.responseXML; } else if (mime == "text/html") { result = xhr.responseText; $.parseJS(result); } else result = xhr.responseText; //If we're looking at a local file, we assume that no response sent back means there was an error if (xhr.status === 0 && result.length === 0) error = true; if (error) settings.error.call(context, xhr, 'parsererror', error); else { settings.success.call(context, result, 'success', xhr); } } else { error = true; settings.error.call(context, xhr, 'error'); } settings.complete.call(context, xhr, error ? 'error' : 'success'); } }; xhr.open(settings.type, settings.url, settings.async); if (settings.withCredentials) xhr.withCredentials = true; if (settings.contentType) settings.headers['Content-Type'] = settings.contentType; for (var name in settings.headers) if (typeof settings.headers[name] === 'string') xhr.setRequestHeader(name, settings.headers[name]); if (settings.beforeSend.call(context, xhr, settings) === false) { xhr.abort(); return false; } if (settings.timeout &gt; 0) abortTimeout = setTimeout(function() { xhr.onreadystatechange = empty; xhr.abort(); settings.error.call(context, xhr, 'timeout'); }, settings.timeout); xhr.send(settings.data); } catch (e) { // General errors (e.g. access denied) should also be sent to the error callback console.log(e); settings.error.call(context, xhr, 'error', e); } return xhr; }; </code></pre> </div> </div> <h2>$.ajax(options)</h2> <section class='description'><p>Execute an Ajax call with the given options<br />options.type - Type of request<br />options.beforeSend - function to execute before sending the request<br />options.success - success callback<br />options.error - error callback<br />options.complete - complete callback - callled with a success or error<br />options.timeout - timeout to wait for the request<br />options.url - URL to make request against<br />options.contentType - HTTP Request Content Type<br />options.headers - Object of headers to set<br />options.dataType - Data type of request<br />options.data - data to pass into request. $.param is called on objects<br /> var opts={<br /> type:"GET",<br /> success:function(data){},<br /> url:"mypage.php",<br /> data:{bar:'bar'},<br /> }<br /> $.ajax(opts);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>options - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ajax(opts) makes an Ajax call using XMLHttpRequest Object.</p> <p>Examples below</p> <pre><code class="language-js"><span class='linenumber'>$.ajax({</span> <span class='linenumber'> type:"GET",</span> <span class='linenumber'> url:"mypage.php",</span> <span class='linenumber'> data:{'foo':'bar'},</span> <span class='linenumber'> success:function(data){}</span> <span class='linenumber'>});</span> </code></pre> <p>Below is an example for posting a JSON payload to a server</p> <pre><code><span class='linenumber'>$.ajax({</span> <span class='linenumber'> type:"post",</span> <span class='linenumber'> url:"/api/updateuser/",</span> <span class='linenumber'> data:{id:1,username:'bill'},</span> <span class='linenumber'> contentType:"application/json"</span> <span class='linenumber'>});</span> </code></pre> <p>When the response has the type 'application/json', we will return the JSON object for you.</p> <p>When the response has the type "application/xml", we return responseXML.</p> <p>When the response has the type "text/html", we call $.parseJS on the result to process any JS scripts in the response.</p> <p>Below is the code to show the dataType values</p> <pre><code class="language-js"><span class='linenumber'>switch (settings.dataType) {</span> <span class='linenumber'> case "script":</span> <span class='linenumber'> settings.dataType = 'text/javascript, application/javascript';</span> <span class='linenumber'> break;</span> <span class='linenumber'> case "json":</span> <span class='linenumber'> settings.dataType = 'application/json';</span> <span class='linenumber'> break;</span> <span class='linenumber'> case "xml":</span> <span class='linenumber'> settings.dataType = 'application/xml, text/xml';</span> <span class='linenumber'> break;</span> <span class='linenumber'> case "html":</span> <span class='linenumber'> settings.dataType = 'text/html';</span> <span class='linenumber'> break;</span> <span class='linenumber'> case "text":</span> <span class='linenumber'> settings.dataType = 'text/plain';</span> <span class='linenumber'> break;</span> <span class='linenumber'> default:</span> <span class='linenumber'> settings.dataType = "text/html";</span> <span class='linenumber'> break;</span> <span class='linenumber'> case "jsonp":</span> <span class='linenumber'> return $.jsonP(opts);</span> <span class='linenumber'>}</span> </code></pre> </div> </div> </article> </div> <div id='$_get' title='$.get(url,success)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_get",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_get' style='display:none'> <pre style='padding-left:25px'><code> $.get = function(url, success) { return this.ajax({ url: url, success: success }); }; </code></pre> </div> </div> <h2>$.get(url,success)</h2> <section class='description'><p>Shorthand call to an Ajax GET request<br /> $.get("mypage.php?foo=bar",function(data){});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>url - String</li> <li style='padding-left:15px;line-height:20px'>success - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.get(url,successFnc) is a shorthand call to $.ajax</p> <p>The first parameter is the URL, the second is the sucess function. You can not specify any other options for $.ajax.</p> <pre><code class="language-js"><span class='linenumber'>$.get("mydata.php?foo=bar",function(res){console.log(res)});</span> </code></pre> </div> </div> </article> </div> <div id='$_post' title='$.post(url,[data],success,[dataType])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_post",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_post' style='display:none'> <pre style='padding-left:25px'><code> $.post = function(url, data, success, dataType) { if (typeof(data) === "function") { success = data; data = {}; } if (dataType === nundefined) dataType = "html"; return this.ajax({ url: url, type: "POST", data: data, dataType: dataType, success: success }); }; </code></pre> </div> </div> <h2>$.post(url,[data],success,[dataType])</h2> <section class='description'><p>Shorthand call to an Ajax POST request<br /> $.post("mypage.php",{bar:'bar'},function(data){});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>url - String</li> <li style='padding-left:15px;line-height:20px'>[data] - Object</li> <li style='padding-left:15px;line-height:20px'>success - Function</li> <li style='padding-left:15px;line-height:20px'>[dataType] - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.post(url,[data],success,[dataType]) is a shorthand call to Ajax POST</p> <p>The following is a simple post with no data and a success callback</p> <pre><code class="language-js"><span class='linenumber'>$.post("mypage.php",function(res){console.log(res)});</span> </code></pre> <p>The next example shows how to use the data and dataType parameters</p> <pre><code><span class='linenumber'>$.post("mypage.php",{username:'foo'},function(res){},'html');</span> </code></pre> </div> </div> </article> </div> <div id='$_getJSON' title='$.getJSON(url,data,success)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_getJSON",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_getJSON' style='display:none'> <pre style='padding-left:25px'><code> $.getJSON = function(url, data, success) { if (typeof(data) === "function") { success = data; data = {}; } return this.ajax({ url: url, data: data, success: success, dataType: "json" }); }; </code></pre> </div> </div> <h2>$.getJSON(url,data,success)</h2> <section class='description'><p>Shorthand call to an Ajax request that expects a JSON response<br /> $.getJSON("mypage.php",{bar:'bar'},function(data){});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>url - String</li> <li style='padding-left:15px;line-height:20px'>[data] - Object</li> <li style='padding-left:15px;line-height:20px'>[success] - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.getJSON(url,data,success) is a wrapper to $.ajax that expects JSON data as the response. It will return the JSON object to the success function.</p> <pre><code class="language-js"><span class='linenumber'>$.getJSON('mypage.php',</span> <span class='linenumber'> {'foo':'bar'},</span> <span class='linenumber'> function(data){</span> <span class='linenumber'> //interact with JSON object</span> <span class='linenumber'> }</span> <span class='linenumber'>);</span> </code></pre> <p>You can not specify other ajax options.</p> </div> </div> </article> </div> <div id='$_param' title='$.param(object,[prefix];' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_param",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_param' style='display:none'> <pre style='padding-left:25px'><code> $.param = function(obj, prefix) { var str = []; if (obj instanceof $afm) { obj.each(function() { var k = prefix ? prefix + "[" + this.id + "]" : this.id, v = this.value; str.push((k) + "=" + encodeURIComponent(v)); }); } else { for (var p in obj) { if ($.isFunction(obj[p])) continue; var k = prefix ? prefix + "[" + p + "]" : p, v = obj[p]; str.push($.isObject(v) ? $.param(v, k) : (k) + "=" + encodeURIComponent(v)); } } return str.join("&"); }; </code></pre> </div> </div> <h2>$.param(object,[prefix];</h2> <section class='description'><p>Converts an object into a key/value par with an optional prefix. Used for converting objects to a query string<br /> var obj={<br /> foo:'foo',<br /> bar:'bar'<br /> }<br /> var kvp=$.param(obj,'data');<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>object - Object</li> <li style='padding-left:15px;line-height:20px'>[prefix] - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>String - Key/value pair representation</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.param(object,[prefix]) is usefull for converting an object to query string variables.</p> <p>Let's look at the following object</p> <pre><code class="language-js"><span class='linenumber'>var obj {</span> <span class='linenumber'> foo:'bar',</span> <span class='linenumber'> id:'12'</span> <span class='linenumber'>};</span> </code></pre> <script> var $paramTest={ foo:'bar', id:'12' } </script> <p><input type="button" onclick="alert($.param($paramTest))" value="$.param()"></p> <p><input type="button" onclick="alert($.param($paramTest,'pre_'))" value="$.param() with prefix"></p> </div> </div> </article> </div> <div id='$_parseJSON' title='$.parseJSON(string)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_parseJSON",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_parseJSON' style='display:none'> <pre style='padding-left:25px'><code> $.parseJSON = function(string) { return JSON.parse(string); }; </code></pre> </div> </div> <h2>$.parseJSON(string)</h2> <section class='description'><p>Used for backwards compatibility. Uses native JSON.parse function<br /> var obj=$.parseJSON("{\"bar\":\"bar\"}");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - </div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>This is for backwards compatibility with old plugins.</p> <pre><code class="language-js"><span class='linenumber'>var obj=$.parseJSON("{\"foo\":\"bar\"}");</span> </code></pre> <p>Now we will parse the object and see the value of obj.foo</p> <script> var objParse=$.parseJSON("{\"foo\":\"bar\"}"); </script> <p><input type="button" value="$.parseJSON" onclick="alert(objParse.foo);"></p> </div> </div> </article> </div> <div id='$_parseXML' title='$.parseXML(string)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_parseXML",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_parseXML' style='display:none'> <pre style='padding-left:25px'><code> $.parseXML = function(string) { if (isWin8) { MSApp.execUnsafeLocalFunction(function() { return (new DOMParser()).parseFromString(string, "text/xml"); }); } else return (new DOMParser()).parseFromString(string, "text/xml"); }; </code></pre> </div> </div> <h2>$.parseXML(string)</h2> <section class='description'><p>Helper function to convert XML into the DOM node representation<br /> var xmlDoc=$.parseXML("bar");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>string - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - DOM nodes</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.parseXML takes a string and returns a DOM Document</p> <pre><code class="language-js"><span class='linenumber'> var xmlDoc=$.parseXML("&lt;xml&gt;&lt;foo&gt;bar&lt;/foo&gt;&lt;/xml&gt;");</span> </code></pre> <p>The above will return the DOM Document that you can then interact with</p> <script> var xmlDoc=$.parseXML("<xml><foo>bar</foo></xml>"); </script> <p><input type="button" onclick='alert(xmlDoc)' value="$.parseXML"></p> </div> </div> </article> </div> <div id='$_uuid' title='$.uuid' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_uuid",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_uuid' style='display:none'> <pre style='padding-left:25px'><code> $.uuid = function() { var S4 = function() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); }; return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4()); }; </code></pre> </div> </div> <h2>$.uuid</h2> <section class='description'><p>Utility function to create a psuedo GUID<br /> var id= $.uuid();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.uuid creates a psuedo GUID. We uses this with plugins to create a unique id for each plugin</p> <pre><code class="language-js"><span class='linenumber'>var id=$.uuid();</span> </code></pre> <p><input type="button" value="Generate $.uuid()" onclick="alert($.uuid())"></p> </div> </div> </article> </div> <div id='$_create' title='$.create(type,[params])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_create",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_create' style='display:none'> <pre style='padding-left:25px'><code> $.create = function(type, props) { var elem; var f = new $afm(); if (props || type[0] !== "&lt;") { if (props.html) props.innerHTML = props.html, delete props.html; elem = document.createElement(type); for (var j in props) { elem[j] = props[j]; } f[f.length++] = elem; } else { elem = document.createElement("div"); if (isWin8) { MSApp.execUnsafeLocalFunction(function() { elem.innerHTML = selector.trim(); }); } else elem.innerHTML = type; _shimNodes(elem.childNodes, f); } return f; }; </code></pre> </div> </div> <h2>$.create(type,[params])</h2> <section class='description'><p>$.create - a faster alertnative to $("this is some text");<br /> $.create("div",{id:'main',innerHTML:'this is some text'});<br /> $.create("this is some text");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>DOM - String</li> <li style='padding-left:15px;line-height:20px'>properties - [Object]</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - Returns an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.create(type,[params]) is new for 2.0. It is a faster, and sometimes "safter" way to create DOM Nodes.</p> <p>$.create allows you to bypass logic inside the $() engine and jump right to element creation. It returns an App Framework collection.</p> <p>$.create works two ways.</p> <ol> <li>Parse a string and return the DOM elements (slower)</li> <li>Create the element using document.createElement and setting properties (faster)</li> </ol> <p>Below are two examples that provide the same node. The first is faster.</p> <pre><code class="language-html"><span class='linenumber'>var faster=$.create("div",{id:"test",html:"Test HTML"})</span> <span class='linenumber'>var slower=$.create(" &lt; div id='test'&gt;Test HTML&lt; /div&gt; ");</span> </code></pre> <script> var faster=$.create("div",{id:"test",html:"Test HTML"}) var slower=$.create("<div id='test'>Test HTML</div>"); </script> <p><input type="button" value="Faster" onclick="alert(faster.html())"></p> <p><input type="button" value="Slower" onclick="alert(slower.html())"></p> </div> </div> </article> </div> <div id='$_query' title='$.query(selector,[context])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_query",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_query' style='display:none'> <pre style='padding-left:25px'><code> $.query = function(sel, what) { if (!sel) return new $afm(); what = what || document; var f = new $afm(); return f.selector(sel, what); }; </code></pre> </div> </div> <h2>$.query(selector,[context])</h2> <section class='description'><p>$.query - a faster alertnative to $("div");<br /> $.query(".panel");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String</li> <li style='padding-left:15px;line-height:20px'>[context] - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - Returns an appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.query(selector,[context]) is faster then using $() to find an element using a query selector.</p> <p>$() has a lot of logic to handle finding elements, turning arrays/objects into a collection, etc.</p> <p>$.query lets you jump right to the query selector engine and returns an App Framework collection. You should use this when possible.</p> <p>When context is passed in, it must be a DOM node to search within.</p> <pre><code><span class='linenumber'>var divs=$.query("divs");</span> <span class='linenumber'>var elem=$.query("#main");</span> <span class='linenumber'>var lis=$.query("li",$("#main").get(0));</span> </code></pre> </div> </div> </article> </div> <div id='_bind' title='$().bind(event,callback)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_bind",this)'>Show Source</a></h3> <div class='viewsource' id='source__bind' style='display:none'> <pre style='padding-left:25px'><code> $.fn.bind = function(event, callback) { for (var i = 0; i &lt; this.length; i++) { add(this[i], event, callback); } return this; }; </code></pre> </div> </div> <h2>$().bind(event,callback)</h2> <section class='description'><p>Binds an event to each element in the collection and executes the callback<br /> $().bind('click',function(){console.log('I clicked '+this.id);});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().bind(event,callback) binds an event for each element in the collection, and executes a callback when teh event is dispatched.</p> <p>When calling $().bind(), the elements MUST already exist in the DOM to be able to recieve an event listener. It is sometimes better to use<br /> $().on instead for event delegation when your DOM has dynamic content.</p> <p>Below is a sample of binding a click event to all list items</p> <pre><code><span class='linenumber'>$("ol li").bind("click",function(event){alert(this.innerHTML)});</span> </code></pre> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>Click one of the items below</p> <ol id="bindTest"> <li>One</li> <li>Two</li> <li>Three</li> </ol> <script> $("#bindTest li").bind("click",function(event){alert(this.innerHTML)}); </script> </div> </div> </article> </div> <div id='_unbind' title='$().unbind(event,[callback]);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_unbind",this)'>Show Source</a></h3> <div class='viewsource' id='source__unbind' style='display:none'> <pre style='padding-left:25px'><code> $.fn.unbind = function(event, callback) { for (var i = 0; i &lt; this.length; i++) { remove(this[i], event, callback); } return this; }; </code></pre> </div> </div> <h2>$().unbind(event,[callback]);</h2> <section class='description'><p>Unbinds an event to each element in the collection. If a callback is passed in, we remove just that one, otherwise we remove all callbacks for those events<br /> $().unbind('click'); //Unbinds all click events<br /> $().unbind('click',myFunc); //Unbinds myFunc<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>[callback] - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().unbind(event,callback) unbinds an event for each element in the collection.</p> <p>If no callback function is passed in, we remove all listeners for that event.</p> <p>Below is a sample of unbinding all click event to all list items</p> <pre><code class="language-js"><span class='linenumber'>$("ol li").unbind("click");</span> </code></pre> <p>Say we had multiple click listners, but only want to unbind one</p> <pre><code class="language-js"><span class='linenumber'>function bindOne(){</span> <span class='linenumber'>}</span> <span class='linenumber'>function bindTwo(){</span> <span class='linenumber'>}</span> <span class='linenumber'>$("ol li").bind("click",bindOne);</span> <span class='linenumber'>$("ol li").bind("click",bindTwo);</span> </code></pre> <p>Now we want to unbind only "bindOne"</p> <pre><code class="language-js"><span class='linenumber'>$("ol li").unbind("click",bindOne);</span> </code></pre> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>Click one of the items below.</p> <ol id="unbindTest"> <li>One</li> <li>Two</li> <li>Three</li> </ol> <script> $("#unbindTest li").bind("click",function(event){alert(this.innerHTML)}); function unbindTest(){ $("#unbindTest li").unbind("click"); alert("Click event removed"); } </script> <p><input type="button" value="Unbind LI events" onclick="unbindTest()"></p> </div> </div> </article> </div> <div id='_one' title='$().one(event,callback);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_one",this)'>Show Source</a></h3> <div class='viewsource' id='source__one' style='display:none'> <pre style='padding-left:25px'><code> $.fn.one = function(event, callback) { return this.each(function(i, element) { add(this, event, callback, null, function(fn, type) { return function() { remove(element, type, fn); var result = fn.apply(element, arguments); return result; }; }); }); }; </code></pre> </div> </div> <h2>$().one(event,callback);</h2> <section class='description'><p>Binds an event to each element in the collection that will only execute once. When it executes, we remove the event listener then right away so it no longer happens<br /> $().one('click',function(){console.log('I was clicked once');});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>[callback] - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>appframework - object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().one(event,callback) Registers an event listener and only executes it once.</p> <p>There are many times where you only want an event to happen one time, and then remove it. This allows you to do that.</p> <pre><code class="language-js"><span class='linenumber'>$("#testAnchor").one("click",function(){alert("Submitting form")});</span> </code></pre> <p>Try clicking the following button. It will execute an alert one time.</p> <p><input type="button" id="testAnchor" value="Submit"></p> <script> $("#testAnchor").one("click",function(){alert("Submitting form")}); </script> </div> </div> </article> </div> <div id='_delegate' title='$().delegate(selector,event,[data],callback)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_delegate",this)'>Show Source</a></h3> <div class='viewsource' id='source__delegate' style='display:none'> <pre style='padding-left:25px'><code> function addDelegate(element,event,callback,selector,data){ add(element, event, callback, selector, function(fn) { return function(e) { var evt, match = $(e.target).closest(selector, element).get(0); if (match) { evt = $.extend(createProxy(e), { currentTarget: match, liveFired: element, data:data }); return fn.apply(match, [evt].concat([].slice.call(arguments, 1))); } }; }); } $.fn.delegate = function(selector, event,data, callback) { for (var i = 0; i &lt; this.length; i++) { addDelegate(this[i],event,callback,selector,data) } return this; }; </code></pre> </div> </div> <h2>$().delegate(selector,event,[data],callback)</h2> <section class='description'><p>Delegate an event based off the selector. The event will be registered at the parent level, but executes on the selector.<br /> $("#div").delegate("p",'click',callback);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> <li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>data - Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().delegate() is provided for backwards compatibility only. You should use $().on instead.</p> </div> </div> </article> </div> <div id='_undelegate' title='$().undelegate(selector,event,[callback]);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_undelegate",this)'>Show Source</a></h3> <div class='viewsource' id='source__undelegate' style='display:none'> <pre style='padding-left:25px'><code> $.fn.undelegate = function(selector, event, callback) { for (var i = 0; i &lt; this.length; i++) { remove(this[i], event, callback, selector); } return this; }; </code></pre> </div> </div> <h2>$().undelegate(selector,event,[callback]);</h2> <section class='description'><p>Unbinds events that were registered through delegate. It acts upon the selector and event. If a callback is specified, it will remove that one, otherwise it removes all of them.<br /> $("#div").undelegate("p",'click',callback);//Undelegates callback for the click event<br /> $("#div").undelegate("p",'click');//Undelegates all click events<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> <li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().undelegate() is provided for backwards compatibility only. You should use $().off instead.</p> </div> </div> </article> </div> <div id='_on' title='$().on(event,selector,[data],callback);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_on",this)'>Show Source</a></h3> <div class='viewsource' id='source__on' style='display:none'> <pre style='padding-left:25px'><code> $.fn.on = function(event, selector,data, callback) { if(!$.isObject(data)){ callback=data; data=null; } return selector === nundefined || $.isFunction(selector) ? this.bind(event, selector) : this.delegate(selector, event, data,callback); }; </code></pre> </div> </div> <h2>$().on(event,selector,[data],callback);</h2> <section class='description'><p>Similar to delegate, but the function parameter order is easier to understand.<br />If selector is undefined or a function, we just call .bind, otherwise we use .delegate<br /> $("#div").on("click","p",callback);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> <li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>data - Object</li> <li style='padding-left:15px;line-height:20px'>callback - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().on() allows you to delegate events to a parent and then search for a selector to execute it against.</p> <p>Say you have a list that you are adding items to dynamcally. You want to capture a click on each one, but binding to individual one's on DOM changes is cumbersome. Instead, you can bind to an ancestor, and then provide a selector to execute against.</p> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>To bind a click event, we can do</p> <pre><code class="language-js"><span class='linenumber'>$("ol").on("click","li",function(){alert(this.innerHTML)});</span> </code></pre> <p>Below is a list. There is a button to append options to the list. We will delegate the click to the &lt;ol> and then select the &lt;li> it was click on to execute.</p> <p>Click an item below</p> <ol id="onTest"> <li>One</li> <li>Two</li> </ol> <script> var counter=1; function addElement(){ $("#onTest").append("<li>Added "+counter+"</li>"); counter++; } $("#onTest").on("click","li",function(){alert(this.innerHTML)}); </script> <p><input type="button" value="Add item" onclick="addElement()"></p> </div> </div> </article> </div> <div id='_off' title='$().off(event,selector,[callback])' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_off",this)'>Show Source</a></h3> <div class='viewsource' id='source__off' style='display:none'> <pre style='padding-left:25px'><code> $.fn.off = function(event, selector, callback) { return selector === nundefined || $.isFunction(selector) ? this.unbind(event, selector) : this.undelegate(selector, event, callback); }; </code></pre> </div> </div> <h2>$().off(event,selector,[callback])</h2> <section class='description'><p>Removes event listeners for .on()<br />If selector is undefined or a function, we call unbind, otherwise it's undelegate<br /> $().off("click","p",callback); //Remove callback function for click events<br /> $().off("click","p") //Remove all click events<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>selector - String|Array|Object</li> <li style='padding-left:15px;line-height:20px'>callback - Sunction</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().off(event,selector,[callback]) will remove a delegate added by $().on()</p> <p>If a callback is specificed, it will only remove that callback.</p> <p>Below is a sample of undelegating all click event to all list items</p> <pre><code class="language-js"><span class='linenumber'>$("ol").off("click","li");</span> </code></pre> <p>Say we had multiple click listners, but only want to unbind one</p> <pre><code class="language-js"><span class='linenumber'>function bindOne(){</span> <span class='linenumber'>}</span> <span class='linenumber'>function bindTwo(){</span> <span class='linenumber'>}</span> <span class='linenumber'>$("ol").on("click","li",bindOne);</span> <span class='linenumber'>$("ol").on("click","li",bindTwo);</span> </code></pre> <p>Now we want to unbind only "bindOne"</p> <pre><code class="language-js"><span class='linenumber'>$("ol").of("click","li",bindOne);</span> </code></pre> <pre><code class="language-html"><span class='linenumber'>&lt;ol&gt;</span> <span class='linenumber'> &lt;li&gt;One&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Two&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;Three&lt;/li&gt;</span> <span class='linenumber'>&lt;/ol&gt;</span> </code></pre> <p>Click one of the items below.</p> <ol id="offTest"> <li>One</li> <li>Two</li> <li>Three</li> </ol> <script> $("#offTest").on("click","li",function(event){alert(this.innerHTML)}); function offTest(){ $("#offTest").off("click","li"); alert("Click event removed"); } </script> <p><input type="button" value="Undelegate LI events" onclick="offTest()"></p> </div> </div> </article> </div> <div id='_trigger' title='$().trigger(event,data);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("_trigger",this)'>Show Source</a></h3> <div class='viewsource' id='source__trigger' style='display:none'> <pre style='padding-left:25px'><code> $.fn.trigger = function(event, data, props) { if (typeof event == 'string') event = $.Event(event, props); event.data = data; for (var i = 0; i &lt; this.length; i++) { this[i].dispatchEvent(event); } return this; }; </code></pre> </div> </div> <h2>$().trigger(event,data);</h2> <section class='description'><p>This triggers an event to be dispatched. Usefull for emulating events, etc.<br /> $().trigger("click",{foo:'bar'});//Trigger the click event and pass in data<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>event - String|Object</li> <li style='padding-left:15px;line-height:20px'>[data] - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>Object - appframework object</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$().trigger(event,data) allows you to trigger any event on the collection. This is usefull for emulating events, or sending custom events for listeners and delegates.</p> <pre><code><span class='linenumber'>$("#triggerTest").trigger("customEvent");</span> </code></pre> <p>Below is a div that we will register "customEvent" for</p> <pre><code class="language-html"><span class='linenumber'>&lt;div id="triggerTest"&gt;Won't respond to a click&lt;/div&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>$("#triggerTest").bind("customEvent",function(){alert("Responding to custom event")});</span> </code></pre> <div id="triggerTest">Won't respond to a click</div> <script> $("#triggerTest").bind("customEvent",function(){alert("Responding to custom event")}); function triggerIt(){ $("#triggerTest").trigger("customEvent"); } </script> <p><input type="button" value="Trigger customEvent" onclick="triggerIt()"></p> </div> </div> </article> </div> <div id='$_Event' title='$.Event(type,props);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_Event",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_Event' style='display:none'> <pre style='padding-left:25px'><code> $.Event = function(type, props) { var event = document.createEvent('Events'), bubbles = true; if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !! props[name]) : (event[name] = props[name]); event.initEvent(type, bubbles, true, null, null, null, null, null, null, null, null, null, null, null, null); return event; }; </code></pre> </div> </div> <h2>$.Event(type,props);</h2> <section class='description'><p>Creates a custom event to be used internally.</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>type - String</li> <li style='padding-left:15px;line-height:20px'>[properties] - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>event - a custom event that can then be dispatched</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_bind' title='$.bind(object,event,function);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_bind",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_bind' style='display:none'> <pre style='padding-left:25px'><code> $.bind = function(obj, ev, f) { if (!obj) return; if (!obj.__events) obj.__events = {}; if (!$.isArray(ev)) ev = [ev]; for (var i = 0; i &lt; ev.length; i++) { if (!obj.__events[ev[i]]) obj.__events[ev[i]] = []; obj.__events[ev[i]].push(f); } }; </code></pre> </div> </div> <h2>$.bind(object,event,function);</h2> <section class='description'><p>Bind an event to an object instead of a DOM Node<br /> $.bind(this,'event',function(){});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>object - Object</li> <li style='padding-left:15px;line-height:20px'>event - String</li> <li style='padding-left:15px;line-height:20px'>function - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.bind(object,eventfunction) works the same as $().bind, except you are binding events on JavaScript Objects.</p> <p>We use this to bind events in the touchLayer and scrolling libraries.</p> <p><code>$.bind($.touchLayer, 'orientationchange-reshape', orientationChangeProxy);</code></p> </div> </div> </article> </div> <div id='$_trigger' title='$.trigger(object,event,argments);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_trigger",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_trigger' style='display:none'> <pre style='padding-left:25px'><code> $.trigger = function(obj, ev, args) { if (!obj) return; var ret = true; if (!obj.__events) return ret; if (!$.isArray(ev)) ev = [ev]; if (!$.isArray(args)) args = []; for (var i = 0; i &lt; ev.length; i++) { if (obj.__events[ev[i]]) { var evts = obj.__events[ev[i]].slice(0); for (var j = 0; j &lt; evts.length; j++) if ($.isFunction(evts[j]) && evts[j].apply(obj, args) === false) ret = false; } } return ret; }; </code></pre> </div> </div> <h2>$.trigger(object,event,argments);</h2> <section class='description'><p>Trigger an event to an object instead of a DOM Node<br /> $.trigger(this,'event',arguments);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>object - Object</li> <li style='padding-left:15px;line-height:20px'>event - String</li> <li style='padding-left:15px;line-height:20px'>arguments - Array</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_unbind' title='$.unbind(object,event,function);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_unbind",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_unbind' style='display:none'> <pre style='padding-left:25px'><code> $.unbind = function(obj, ev, f) { if (!obj.__events) return; if (!$.isArray(ev)) ev = [ev]; for (var i = 0; i &lt; ev.length; i++) { if (obj.__events[ev[i]]) { var evts = obj.__events[ev[i]]; for (var j = 0; j &lt; evts.length; j++) { if (f == nundefined) delete evts[j]; if (evts[j] == f) { evts.splice(j, 1); break; } } } } }; </code></pre> </div> </div> <h2>$.unbind(object,event,function);</h2> <section class='description'><p>Unbind an event to an object instead of a DOM Node<br /> $.unbind(this,'event',function(){});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>object - Object</li> <li style='padding-left:15px;line-height:20px'>event - String</li> <li style='padding-left:15px;line-height:20px'>function - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.bind(object,eventfunction) works the same as $().unbind, except you are unbinding events on JavaScript Objects.</p> <p>The following will tell the $.touchLayer object to no longer respond to "orientationchange-reshape" events<br /> <code>$.unbind($.touchLayer, 'orientationchange-reshape', orientationChangeProxy);</code></p> </div> </div> </article> </div> <div id='$_proxy' title='$.proxy(callback,context);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_proxy",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_proxy' style='display:none'> <pre style='padding-left:25px'><code> $.proxy = function(f, c, args) { return function() { if (args) return f.apply(c, args); //use provided arguments return f.apply(c, arguments); //use scope function call arguments }; }; </code></pre> </div> </div> <h2>$.proxy(callback,context);</h2> <section class='description'><p>Creates a proxy function so you can change the 'this' context in the function<br />Update: now also allows multiple argument call or for you to pass your own arguments<br /> ```<br /> var newObj={foo:bar}<br /> $("#main").bind("click",$.proxy(function(evt){console.log(this)},newObj);</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Callback - Function</li> <li style='padding-left:15px;line-height:20px'>Context - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.proxy(callback,context) allows you to create a proxy function that changes the context of "this"</p> <p>There are times where you want "this" to be something other then the object that the event or function is dispatched on.</p> <pre><code class="language-js"><span class='linenumber'>var newObj={foo:bar}</span> <span class='linenumber'>$("#main").bind("click",$.proxy(function(evt){console.log(this)},newObj);</span> <span class='linenumber'>or</span> <span class='linenumber'>( $.proxy(function(foo, bar){console.log(this+foo+bar)}, newObj) )('foo', 'bar');</span> <span class='linenumber'>or</span> <span class='linenumber'>( $.proxy(function(foo, bar){console.log(this+foo+bar)}, newObj, ['foo', 'bar']) )();</span> </code></pre> <p>Below we will have an anchor and proxy the click event so "this" is the object {foo:'bar'}</p> <pre><code class="language-js"><span class='linenumber'>var obj={foo:'bar'}</span> <span class='linenumber'>$("#proxyTest").bind("click",$.proxy(function(){alert(this.foo);},obj));</span> </code></pre> <p><input type="button" id="proxyTest" value="Test Proxy"></p> <script> var obj={foo:'bar'} $("#proxyTest").bind("click",$.proxy(function(){alert(this.foo);},obj)); </script> </div> </div> </article> </div> <div id='$_cleanUpContent' title='$.cleanUpContent(node,itself,kill)' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_cleanUpContent",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_cleanUpContent' style='display:none'> <pre style='padding-left:25px'><code> $.cleanUpContent = function(node, itself, kill) { if (!node) return; //cleanup children var cn = node.childNodes; if (cn && cn.length &gt; 0) { //destroy everything in a few ms to avoid memory leaks //remove them all and copy objs into new array $.asap(cleanUpAsap, {}, [slice.apply(cn, [0]), kill]); } //cleanUp this node if (itself) cleanUpNode(node, kill); }; // Like setTimeout(fn, 0); but much faster var timeouts = []; var contexts = []; var params = []; </code></pre> </div> </div> <h2>$.cleanUpContent(node,itself,kill)</h2> <section class='description'><p>Function to clean up node content to prevent memory leaks<br /> $.cleanUpContent(node,itself,kill)<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>node - HTMLNode</li> <li style='padding-left:15px;line-height:20px'>kill - Bool</li> <li style='padding-left:15px;line-height:20px'>Kill - bool</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.cleanUpContent(node,[itself],[kill]) traverses through the dom and tries to de-regster any event listeners to prevent memory leaks.</p> <p>This is called internally by $().html() and $().empty(). It does slow down those operations, but the gain is worth it.</p> <p>Below is the code for $().html() to show how we use it</p> <pre><code class="language-js"><span class='linenumber'>html: function (html, cleanup) {</span> <span class='linenumber'> if (this.length === 0)</span> <span class='linenumber'> return this;</span> <span class='linenumber'> if (html ===nundefined)</span> <span class='linenumber'> return this[0].innerHTML;</span> <span class='linenumber'> for (var i = 0; i &lt; this.length; i++) {</span> <span class='linenumber'> if (cleanup !== false)</span> <span class='linenumber'> $.cleanUpContent(this[i], false, true);</span> <span class='linenumber'> if(isWin8)</span> <span class='linenumber'> {</span> <span class='linenumber'> MSApp.execUnsafeLocalFunction(function(){</span> <span class='linenumber'> this[i].innerHTML=html;</span> <span class='linenumber'> });</span> <span class='linenumber'> }</span> <span class='linenumber'> else</span> <span class='linenumber'> this[i].innerHTML = html;</span> <span class='linenumber'> }</span> <span class='linenumber'> return this;</span> <span class='linenumber'>},</span> </code></pre> </div> </div> </article> </div> <div id='$_parseJS' title='$.parseJS(content);' data-nav='nav_appframework' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_parseJS",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_parseJS' style='display:none'> <pre style='padding-left:25px'><code> var remoteJSPages = {}; $.parseJS = function(div) { if (!div) return; if (typeof(div) == "string") { var elem = document.createElement("div"); if (isWin8) { MSApp.execUnsafeLocalFunction(function() { elem.innerHTML = div; }); } else elem.innerHTML = div; div = elem; } var scripts = div.getElementsByTagName("script"); div = null; for (var i = 0; i &lt; scripts.length; i++) { if (scripts[i].src.length &gt; 0 && !remoteJSPages[scripts[i].src] && !isWin8) { var doc = document.createElement("script"); doc.type = scripts[i].type; doc.src = scripts[i].src; document.getElementsByTagName('head')[0].appendChild(doc); remoteJSPages[scripts[i].src] = 1; doc = null; } else { window['eval'](scripts[i].innerHTML); } } }; </code></pre> </div> </div> <h2>$.parseJS(content);</h2> <section class='description'><p>this function executes javascript in HTML.<br /> $.parseJS(content)<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>content - String|DOM</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.parseJS(content) - This executes javascript inside an HTML string. This is usefull if you are performing an Ajax request that has JS inside that needs to be evaluated. If there are any script tags, they get added to the head tag.</p> <pre><code class="language-html"><span class='linenumber'>var str="&lt; script&gt;alert('hi')&lt; /script&gt;";</span> <span class='linenumber'>$parseJS(str);</span> </code></pre> <p>Let's try the above</p> <script> function doParseJS(){ var str="<"+"script>alert('hi')<"+"/script>"; $.parseJS(str); } </script> <p><input type="button" value="Parse JS" onclick="doParseJS()"></p> </div> </div> </article> </div> <div id='$_ui_setSideMenuWidth' title='$.ui.setSideMenuWidth' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_setSideMenuWidth",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_setSideMenuWidth' style='display:none'> <pre style='padding-left:25px'><code> setSideMenuWidth: function(width) { this.sideMenuWidth = width; //override the css style width = width + ""; width = width.replace("px", "") + "px"; $("head").find("#styleWidth").remove(); $("head").append("&lt;style id='styleWidth'&gt;#afui #menu {width:" + width + " !important}&lt;/style&gt;"); }, </code></pre> </div> </div> <h2>$.ui.setSideMenuWidth</h2> <section class='description'><p>This changes the side menu width</p> $.ui.setSideMenuWidth('300px'); </section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.setSideMenuWidth(width) - This is a new API for 2.0. This allows you to programatically set the width of your side menu.</p> <p>This overrides the default CSS style. This is used for animation and swiping to reveal.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.setSideMenuWidth("200px"); //static 200px</span> </code></pre> <p>Here we will set the width so only 50px of the main screen is available</p> <pre><code class="language-js"><span class='linenumber'>$.ui.setSideMenuWidth(($("#content").width()-50)+"px");</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_disableNativeScrolling' title='$.ui.disableNativeScrolling' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_disableNativeScrolling",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_disableNativeScrolling' style='display:none'> <pre style='padding-left:25px'><code> disableNativeScrolling: function() { $.feat.nativeTouchScroll = false; }, </code></pre> </div> </div> <h2>$.ui.disableNativeScrolling</h2> <section class='description'><p>this will disable native scrolling on iOS</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.disableNativeScrolling() - this must be called before $.ui.launch happens.</p> <p>This will disable native scrolling on iOS5+ globally and force javascript scrolling.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.disableNativeScrolling();</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_manageHistory' title='$.ui.manageHistory' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_manageHistory",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_manageHistory' style='display:none'> <pre style='padding-left:25px'><code> manageHistory: true, </code></pre> </div> </div> <h2>$.ui.manageHistory</h2> <section class='description'><p>This is a boolean property. When set to true, we manage history and update the hash<br /> $.ui.manageHistory=false;//Don't manage for apps using Backbone<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.manageHistory - This is a boolean property. The default is true. When this is true, we manage history internally and update the hash.</p> <p>When set to false, we do not manage history/hash. This is useful for some frameworks like Backbone.js</p> <p>This should be set before $.ui.launch is executed.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.manageHistory=false;</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_loadDefaultHash' title='$.ui.loadDefaultHash' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_loadDefaultHash",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_loadDefaultHash' style='display:none'> <pre style='padding-left:25px'><code> loadDefaultHash: true, </code></pre> </div> </div> <h2>$.ui.loadDefaultHash</h2> <section class='description'><p>This is a boolean property. When set to true (default) it will load that panel when the app is started<br /> $.ui.loadDefaultHash=false; //Never load the page from the hash when the app is started<br /> $.ui.loadDefaultHash=true; //Default<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.loadDefaultHash is a boolean value you set before $.ui.launch happens. This tells the browser to load the first panel off the hash/URL being loaded.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.loadDefaultHash=true;</span> <span class='linenumber'>$.ui.launch();</span> </code></pre> <p>Look at the URL above, you should see the hash "#$.ui.loadDefaultHash" . That is the ID for this panel. If you reload the page, you will be taken back here, instead of the main panel.</p> <p><a href="javascript:document.location.reload()" class="button">Reload the page</a></p> </div> </div> </article> </div> <div id='$_ui_useAjaxCacheBuster' title='$.ui.useAjaxCacheBuster' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_useAjaxCacheBuster",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_useAjaxCacheBuster' style='display:none'> <pre style='padding-left:25px'><code> useAjaxCacheBuster: false, </code></pre> </div> </div> <h2>$.ui.useAjaxCacheBuster</h2> <section class='description'><p>This is a boolean that when set to true will add "&amp;cache=rand" to any ajax loaded link<br /> The default is false<br /> $.ui.useAjaxCacheBuster=true;<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.useAjaxCacheBuster - when set to true, any anchor links that are ajax reqeusts to panels will add a "cache buster" parameter to block the browser from caching the request.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.useAjaxCacheBuster=true;</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_actionsheet' title='$.ui.actionsheet()' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_actionsheet",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_actionsheet' style='display:none'> <pre style='padding-left:25px'><code> actionsheet: function(opts) { return $.query("#afui").actionsheet(opts); }, </code></pre> </div> </div> <h2>$.ui.actionsheet()</h2> <section class='description'><p>This is a shorthand call to the $.actionsheet plugin. We wire it to the afui div automatically<br /> $.ui.actionsheet("Settings Logout")<br /> $.ui.actionsheet("[{<br /> text: 'back',<br /> cssClasses: 'red',<br /> handler: function () { $.ui.goBack(); ; }<br /> }, {<br /> text: 'show alert 5',<br /> cssClasses: 'blue',<br /> handler: function () { alert("hi"); }<br /> }, {<br /> text: 'show alert 6',<br /> cssClasses: '',<br /> handler: function () { alert("goodbye"); }<br /> }]");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>links - String|Array</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.actionsheet is a shortcut to the action sheet plugin.</p> <pre><code class="language-html"><span class='linenumber'>$.ui.actionsheet("&lt;a href='javascript:;' class='button'&gt;Settings&lt;/a&gt; &lt;a href='javascript:;' class='button red'&gt;Logout&lt;/a&gt;")</span> </code></pre> <p>Let's try it below</p> <script> function doAS(){ $.ui.actionsheet("<a href='javascript:;' class='button'>Settings</a> <a href='javascript:;' class='button red'>Logout</a>") } </script> <p><input type="button" value="Test" onclick="doAS()"></p> </div> </div> </article> </div> <div id='$_ui_popup' title='$.ui.popup(opts)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_popup",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_popup' style='display:none'> <pre style='padding-left:25px'><code> popup: function(opts) { return $.query("#afui").popup(opts); }, </code></pre> </div> </div> <h2>$.ui.popup(opts)</h2> <section class='description'><p>This is a wrapper to $.popup.js plugin. If you pass in a text string, it acts like an alert box and just gives a message<br /> $.ui.popup(opts);<br /> $.ui.popup( {<br /> title:"Alert! Alert!",<br /> message:"This is a test of the emergency alert system!! Don't PANIC!",<br /> cancelText:"Cancel me",<br /> cancelCallback: function(){console.log("cancelled");},<br /> doneText:"I'm done!",<br /> doneCallback: function(){console.log("Done for!");},<br /> cancelOnly:false<br /> });<br /> $.ui.popup('Hi there');<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>options - Object|String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.popup is a wrapper to the popup plugin.</p> <p>Below are two examples</p> <pre><code class="language-js"><span class='linenumber'>$.ui.popup('Hi there');</span> <span class='linenumber'>$.ui.popup( {</span> <span class='linenumber'> title:"Alert! Alert!",</span> <span class='linenumber'> message:"This is a test of the emergency alert system!! Don't PANIC!",</span> <span class='linenumber'> cancelText:"Cancel me",</span> <span class='linenumber'> cancelCallback: function(){console.log("cancelled");},</span> <span class='linenumber'> doneText:"I'm done!",</span> <span class='linenumber'> doneCallback: function(){console.log("Done for!");},</span> <span class='linenumber'> cancelOnly:false</span> <span class='linenumber'>});</span> </code></pre> <p>Let's try them below.</p> <script> function popup1(){ $.ui.popup('Hi there'); } function popup2(){ $.ui.popup( { title:"Alert! Alert!", message:"This is a test of the emergency alert system!! Don't PANIC!", cancelText:"Cancel me", cancelCallback: function(){console.log("cancelled");}, doneText:"I'm done!", doneCallback: function(){console.log("Done for!");}, cancelOnly:false }); } </script> <p><input type="button" value="Popup 1" onclick="popup1()"></p> <p><input type="button" value="Popup 2" onclick="popup2()"></p> </div> </div> </article> </div> <div id='$_ui_blockUI' title='$.ui.blockUI(opacity)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_blockUI",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_blockUI' style='display:none'> <pre style='padding-left:25px'><code> blockUI: function(opacity) { $.blockUI(opacity); }, </code></pre> </div> </div> <h2>$.ui.blockUI(opacity)</h2> <section class='description'><p>This will throw up a mask and block the UI<br /> $.ui.blockUI(.9)<br /> `</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>opacity - Float</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.blockUI is a shortcut to $.blockUI from the popup plugin.</p> <p>This function throws up a mask on the screen and is used with plugins like the popup plugin.</p> <pre><code><span class='linenumber'>$.ui.blockUI(0.9)</span> </code></pre> <p>Let's try it below. We will hide it after 3 seconds.</p> <script> function blockUI(){ $.ui.blockUI(0.3); setTimeout(function(){ $.ui.unblockUI() },3000); } </script> <p><input type="button" value="Block UI" onclick="blockUI()"></p> </div> </div> </article> </div> <div id='$_ui_unblockUI' title='$.ui.unblockUI()' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_unblockUI",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_unblockUI' style='display:none'> <pre style='padding-left:25px'><code> unblockUI: function() { $.unblockUI(); }, </code></pre> </div> </div> <h2>$.ui.unblockUI()</h2> <section class='description'><p>This will remove the UI mask<br /> $.ui.unblockUI()<br /> `</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.unblockUI is a shortcut to $.unblockUI from the popup plugin.</p> <p>This function clears the mask that was created by $.blockUI</p> </div> </div> </article> </div> <div id='$_ui_removeFooterMenu' title='$.ui.removeFooterMenu' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_removeFooterMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_removeFooterMenu' style='display:none'> <pre style='padding-left:25px'><code> removeFooterMenu: function() { $.query("#navbar").hide(); $.query("#content").css("bottom", "0px"); this.showNavMenu = false; }, </code></pre> </div> </div> <h2>$.ui.removeFooterMenu</h2> <section class='description'><p>Will remove the bottom nav bar menu from your application<br /> $.ui.removeFooterMenu();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.removeFooterMenu will remove the footer from your application for every page.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.removeFooterMenu();</span> </code></pre> <p>You can try it below, but you will loose the footer and have to reload the page.</p> <p><input type="button" value="Remove Footer" onclick="$.ui.removeFooterMenu()"></p> </div> </div> </article> </div> <div id='$_ui_autoLaunch' title='$.ui.autoLaunch' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_autoLaunch",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_autoLaunch' style='display:none'> <pre style='padding-left:25px'><code> autoLaunch: true, </code></pre> </div> </div> <h2>$.ui.autoLaunch</h2> <section class='description'><p>Boolean if you want to auto launch afui<br /> ```<br /> $.ui.autoLaunch = false; //</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.autoLaunch when set to true, your app will launch as soon as possible (after the document is ready).</p> <p>If you need to run logic before launching the app, set $.ui.autoLaunch to false and call $.ui.launch() manually.</p> </div> </div> </article> </div> <div id='$_ui_showBackButton' title='$.ui.showBackButton' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_showBackButton",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_showBackButton' style='display:none'> <pre style='padding-left:25px'><code> showBackbutton: true, // Kept for backward compatibility. showBackButton: true, </code></pre> </div> </div> <h2>$.ui.showBackButton</h2> <section class='description'><p>Boolean if you want to show the back button<br /> ```<br /> $.ui.showBackButton = false; //</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.showBackButton . When set to false before your app starts, this will always hide the back button.</p> <pre><code><span class='linenumber'>$.ui.showBackButton=false;</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_backButtonText' title='$.ui.backButtonText' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_backButtonText",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_backButtonText' style='display:none'> <pre style='padding-left:25px'><code> backButtonText: "", </code></pre> </div> </div> <h2>$.ui.backButtonText</h2> <section class='description'><p>Override the back button text<br /> $.ui.backButtonText="Back"<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.backButtonText will override the back button text everywhere in the application.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.backButtonText='Back';</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_resetScrollers' title='$.ui.resetScrollers' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_resetScrollers",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_resetScrollers' style='display:none'> <pre style='padding-left:25px'><code> resetScrollers: true, </code></pre> </div> </div> <h2>$.ui.resetScrollers</h2> <section class='description'><p>Boolean if you want to reset the scroller position when navigating panels. Default is true<br /> $.ui.resetScrollers=false; //Do not reset the scrollers when switching panels<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.resetScrollers - when set to true, the scrollers will always revert to the top of the page when you load a new panel.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.resetScrollers=false; //Do not reset the scrolling position</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_ready' title='$.ui.ready' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_ready",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_ready' style='display:none'> <pre style='padding-left:25px'><code> ready: function(param) { if (this.launchCompleted) param(); else { $(document).on("afui:ready", function(e) { param(); }); } }, </code></pre> </div> </div> <h2>$.ui.ready</h2> <section class='description'><p>function to fire when afui is ready and completed launch<br /> $.ui.ready(function(){console.log('afui is ready');});<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>function - Function</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.ready - this is similar to $(document).ready but fires after App Framework UI has launched.</p> <p>If you use data-defer to load content, this launches AFTER all data-defer files are loaded.</p> <p>If the event has already dispatched and you create a $.ui.ready function, it will execute right away.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.ready(function(){</span> <span class='linenumber'> //App is ready lets check if a user exists.</span> <span class='linenumber'> if(user===false)</span> <span class='linenumber'> return $.ui.loadContent("#login");</span> <span class='linenumber'> else</span> <span class='linenumber'> return $.ui.loadContent("#main");</span> <span class='linenumber'>});</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_setBackButtonStyle' title='$.ui.setBackButtonStyle(class)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_setBackButtonStyle",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_setBackButtonStyle' style='display:none'> <pre style='padding-left:25px'><code> setBackButtonStyle: function(className) { $.query("#backButton").replaceClass(null, className); }, </code></pre> </div> </div> <h2>$.ui.setBackButtonStyle(class)</h2> <section class='description'><p>Override the back button class name<br /> $.ui.setBackButtonStyle('newClass');<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>new - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.setBackButtonStyle this function will override the back button styles with whatever style you want.</p> <p>By default, the class is "button".</p> <pre><code class="language-js"><span class='linenumber'>$.ui.setBackButtonStyle("myCustomClass");</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_goBack' title='$.ui.goBack()' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_goBack",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_goBack' style='display:none'> <pre style='padding-left:25px'><code> goBack: function(delta) { delta = Math.min(Math.abs(~~delta || 1), this.history.length); if (delta) { var tmpEl = this.history.splice(-delta).shift(); this.loadContent(tmpEl.target + "", 0, 1, tmpEl.transition); this.transitionType = tmpEl.transition; this.updateHash(tmpEl.target); } }, </code></pre> </div> </div> <h2>$.ui.goBack()</h2> <section class='description'><p>Initiate a back transition<br /> $.ui.goBack()<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[delta=1] - Number</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.goBack() sends the user back one page in the history stack.</p> <p>This is the same as clicking the back button.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.goBack();</span> </code></pre> <p>Try it below.</p> <p><input type="button" value="Go Back" onclick="$.ui.goBack()"></p> </div> </div> </article> </div> <div id='$_ui_clearHistory' title='$.ui.clearHistory()' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_clearHistory",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_clearHistory' style='display:none'> <pre style='padding-left:25px'><code> clearHistory: function() { this.history = []; this.setBackButtonVisibility(false); }, </code></pre> </div> </div> <h2>$.ui.clearHistory()</h2> <section class='description'><p>Clear the history queue<br /> $.ui.clearHistory()<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.clearHistory() will clear the history queue. This will remove the back button from the header until a new page is loaded.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.clearHistory();</span> </code></pre> <p>Try it below.</p> <p><input type="button" Value="Clear History" onclick="$.ui.clearHistory()"></p> </div> </div> </article> </div> <div id='$_ui_updateBadge' title='$.ui.updateBadge(target,value,[position],[color])' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updateBadge",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updateBadge' style='display:none'> <pre style='padding-left:25px'><code> updateBadge: function(target, value, position, color) { if (position === undefined) position = ""; var $target = $(target); var badge = $target.find("span.af-badge"); if (badge.length === 0) { if ($target.css("position") != "absolute") $target.css("position", "relative"); badge = $.create("span", { className: "af-badge " + position, html: value }); $target.append(badge); } else badge.html(value); badge.removeClass("tl bl br tr"); badge.addClass(position); if (color === undefined) color = "red"; if ($.isObject(color)) { badge.css(color); } else if (color) { badge.css("background", color); } badge.data("ignore-pressed", "true"); }, </code></pre> </div> </div> <h2>$.ui.updateBadge(target,value,[position],[color])</h2> <section class='description'><p>Update a badge on the selected target. Position can be<br /> bl = bottom left<br /> tl = top left<br /> br = bottom right<br /> tr = top right (default)<br /> $.ui.updateBadge('#mydiv','3','bl','green');<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>target - String</li> <li style='padding-left:15px;line-height:20px'>Value - String</li> <li style='padding-left:15px;line-height:20px'>[position] - String</li> <li style='padding-left:15px;line-height:20px'>[color - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.updateBadge - creates or updates a badge.</p> <p>If the badge does not exist, it will create it. If it does exist, it will update it with the new options.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.updateBadge("#myTest","3","tl",); //Badge will appear on the top left</span> <span class='linenumber'>$.ui.updateBadge("#myTest","5","bl","blue"); //Badge will appear on the bottom left with a blue background</span> </code></pre> <p>Let's update the badge below</p> <script> function badge1(){ $.ui.updateBadge($("#badgeTest li").get(0),"3","tl"); } function badge2(){ $.ui.updateBadge($("#badgeTest li").get(0),"5","bl","blue"); } </script> <ul class="list" id="badgeTest"> <li>Test</li> </ul> <p><input type="button" value="Badge 3" onclick="badge1()"></p> <p><input type="button" value="Badge 5" onclick="badge2()"></p> </div> </div> </article> </div> <div id='$_ui_removeBadge' title='$.ui.removeBadge(target)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_removeBadge",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_removeBadge' style='display:none'> <pre style='padding-left:25px'><code> removeBadge: function(target) { $(target).find("span.af-badge").remove(); }, </code></pre> </div> </div> <h2>$.ui.removeBadge(target)</h2> <section class='description'><p>Removes a badge from the selected target.<br /> $.ui.removeBadge('#mydiv');<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>target - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.removeBadge removes a badge that was created with $.ui.updateBadge</p> <pre><code class="language-js"><span class='linenumber'>$.ui.removeBadge("#myListTest li");</span> </code></pre> <ul id="myListTest" class="list"> <li>One</li> </ul> <script> function addBadge(){ $.ui.updateBadge($("#myListTest li"),"4"); } function removeBadge() { $.ui.removeBadge($("#myListTest li")); } </script> <p><input type="button" value="Add Badge" onclick="addBadge()"></p> <p><input type="button" value="Remove Badge" onclick="removeBadge()"></p> </div> </div> </article> </div> <div id='$_ui_toggleNavMenu' title='$.ui.toggleNavMenu([force])' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_toggleNavMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_toggleNavMenu' style='display:none'> <pre style='padding-left:25px'><code> toggleNavMenu: function(force) { if (!this.showNavMenu) return; if ($.query("#navbar").css("display") != "none" && ((force !== undefined && force !== true) || force === undefined)) { $.query("#content").css("bottom", "0px"); $.query("#navbar").hide(); } else if (force === undefined || (force !== undefined && force === true)) { $.query("#navbar").show(); $.query("#content").css("bottom", $.query("#navbar").css("height")); } }, </code></pre> </div> </div> <h2>$.ui.toggleNavMenu([force])</h2> <section class='description'><p>Toggles the bottom nav menu. Force is a boolean to force show or hide.<br /> $.ui.toggleNavMenu();//toggle it<br /> $.ui.toggleNavMenu(true); //force show it<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[force] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.toggleNavMenu(force) - will toggle the nav (footer) menu for your app.</p> <p>If you specify false for "force", it will always hide the navbar.</p> <p>If you specify true for "force", it will always show the navbar.</p> <p><input type="button" onclick="$.ui.toggleNavMenu()" value="Toggle"> <input type="button" onclick="$.ui.toggleNavMenu(false)" value="Hide"> <input type="button" onclick="$.ui.toggleNavMenu(true)" value="Show"></p> </div> </div> </article> </div> <div id='$_ui_toggleHeaderMenu' title='$.ui.toggleHeaderMenu([force])' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_toggleHeaderMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_toggleHeaderMenu' style='display:none'> <pre style='padding-left:25px'><code> toggleHeaderMenu: function(force) { if ($.query("#header").css("display") != "none" && ((force !== undefined && force !== true) || force === undefined)) { $.query("#content").css("top", "0px"); $.query("#header").hide(); } else if (force === undefined || (force !== undefined && force === true)) { $.query("#header").show(); $.query("#content").css("top", $.query("#header").css("height")); } }, </code></pre> </div> </div> <h2>$.ui.toggleHeaderMenu([force])</h2> <section class='description'><p>Toggles the top header menu. Force is a boolean to force show or hide.<br /> $.ui.toggleHeaderMenu();//toggle it<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[force] - Boolean</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.toggleHeaderMenu(force) - will toggle the header menu for your app.</p> <p>If you specify false for "force", it will always hide the header.</p> <p>If you specify true for "force", it will always show the header.</p> <p><input type="button" onclick="$.ui.toggleHeaderMenu()" value="Toggle"> <input type="button" onclick="$.ui.toggleHeaderMenu(false)" value="Hide"> <input type="button" onclick="$.ui.toggleHeaderMenu(true)" value="Show"></p> </div> </div> </article> </div> <div id='$_ui_toggleSideMenu' title='$.ui.toggleSideMenu([force],[callback],[time])' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_toggleSideMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_toggleSideMenu' style='display:none'> <pre style='padding-left:25px'><code> toggleSideMenu: function(force, callback, time) { if (!this.isSideMenuEnabled() || this.togglingSideMenu) return; var that = this; var menu = $.query("#menu"); var els = $.query("#content, #header, #navbar"); time = time || this.transitionTime; var open = this.isSideMenuOn(); if (force === 2 || (!open && ((force !== undefined && force !== false) || force === undefined))) { this.togglingSideMenu = true; menu.show(); that.css3animate(els, { x: that.sideMenuWidth, time: time, complete: function(canceled) { that.togglingSideMenu = false; els.vendorCss("Transition", ""); if (callback) callback(canceled); } }); } else if (force === undefined || (force !== undefined && force === false)) { this.togglingSideMenu = true; that.css3animate(els, { x: "0px", time: time, complete: function(canceled) { // els.removeClass("on"); els.vendorCss("Transition", ""); els.vendorCss("Transform", ""); that.togglingSideMenu = false; if (callback) callback(canceled); menu.hide(); } }); } }, </code></pre> </div> </div> <h2>$.ui.toggleSideMenu([force],[callback],[time])</h2> <section class='description'><p>Toggles the side menu. Force is a boolean to force show or hide.<br /> $.ui.toggleSideMenu();//toggle it<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[force] - Boolean</li> <li style='padding-left:15px;line-height:20px'>[callback] - Function</li> <li style='padding-left:15px;line-height:20px'>[time] - int</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.toggleSideMenu(force) - will toggle the Side menu for your app.</p> <p><strong>note</strong> On tablets and desktops, we always show the side menu so resize your browser to test this.</p> <p>If you specify false for "force", it will always hide the Side Menu.</p> <p>If you specify true for "force", it will always show the Side Menu.</p> <p><input type="button" onclick="$.ui.toggleSideMenu()" value="Toggle"> <input type="button" onclick="$.ui.toggleSideMenu(false)" value="Hide"> <input type="button" onclick="$.ui.toggleSideMenu(true)" value="Show"></p> </div> </div> </article> </div> <div id='$_ui_disableSideMenu' title='$.ui.disableSideMenu();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_disableSideMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_disableSideMenu' style='display:none'> <pre style='padding-left:25px'><code> disableSideMenu: function() { var that = this; var els = $.query("#content, #header, #navbar"); if (this.isSideMenuOn()) { this.toggleSideMenu(false, function(canceled) { if (!canceled) els.removeClass("hasMenu"); }); } else els.removeClass("hasMenu"); $.query("#menu").removeClass("tabletMenu"); }, </code></pre> </div> </div> <h2>$.ui.disableSideMenu();</h2> <section class='description'><p>Disables the side menu<br /> $.ui.disableSideMenu();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.disableSideMenu() will disable/remove the side menu for your app.</p> <p>This function removes the special class ".hasMenu" and hides the side menu.</p> <p>Try it below, but you will have to reload the page to get the side menu back.</p> <p><input type="button" onclick="$.ui.disableSideMenu()" value="Disable Side Menu"></p> </div> </div> </article> </div> <div id='$_ui_enableSideMenu' title='$.ui.enableSideMenu();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_enableSideMenu",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_enableSideMenu' style='display:none'> <pre style='padding-left:25px'><code> enableSideMenu: function() { $.query("#content, #header, #navbar").addClass("hasMenu"); $.query("#menu").addClass("tabletMenu"); }, </code></pre> </div> </div> <h2>$.ui.enableSideMenu();</h2> <section class='description'><p>Enables the side menu if it has been disabled<br /> $.ui.enableSideMenu();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.enableSideMenu() will enable/add the side menu for your app.</p> <p>This function adds the special class ".hasMenu" and enables the side menu.</p> <p><input type="button" onclick="$.ui.disableSideMenu()" value="Disable Side Menu"></p> <p><input type="button" onclick="$.ui.enableSideMenu()" value="Enable Side Menu"></p> </div> </div> </article> </div> <div id='$_ui_updateNavbarElements' title='$.ui.updateNavbarElements(Elements)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updateNavbarElements",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updateNavbarElements' style='display:none'> <pre style='padding-left:25px'><code> updateNavbarElements: function(elems) { if (this.prevFooter) { if (this.prevFooter.data("parent")) this.prevFooter.appendTo("#" + this.prevFooter.data("parent")); else this.prevFooter.appendTo("#afui"); } if (!$.is$(elems)) //inline footer { elems = $.query("#" + elems); } $.query("#navbar").append(elems); this.prevFooter = elems; var tmpAnchors = $.query("#navbar a"); if (tmpAnchors.length &gt; 0) { tmpAnchors.data("ignore-pressed", "true").data("resetHistory", "true"); var width = parseFloat(100 / tmpAnchors.length); tmpAnchors.css("width", width + "%"); } var nodes = $.query("#navbar footer"); if (nodes.length === 0) return; nodes = nodes.get(0).childNodes; for (var i = 0; i &lt; nodes.length; i++) { if (nodes[i].nodeType === 3) { nodes[i].parentNode.removeChild(nodes[i]); } } }, </code></pre> </div> </div> <h2>$.ui.updateNavbarElements(Elements)</h2> <section class='description'><p>Updates the elements in the navbar<br /> $.ui.updateNavbarElements(elements);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Elements - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.updateNavbarElements(elements) will update the navbar (footer) with the elements passed in</p> <p>This expects a &lt;footer> as the container with all the elements in it.</p> <pre><code class="language-html"><span class='linenumber'>&lt;footer id="myTestFooter"&gt;</span> <span class='linenumber'> &lt;a href="#af_ui" class="icon pencil"&gt;af.ui&lt;/a&gt;&lt;a href="#appframework" class="icon bug"&gt;appframework&lt;/a&gt;</span> <span class='linenumber'>&lt;/footer&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>$.ui.updateNavbarElements($("#myTestFooter"));</span> </code></pre> <p>Let's try it below</p> <script> $(afui).ready(function(){ $("#afui").append('<footer id="myTestFooter"><a href="#af_ui" class="icon pencil">af.ui</a><a href="#appframework" class="icon bug">appframework</a></footer>'); }); </script> <p><input type="button" value="Update Navbar" onclick='$.ui.updateNavbarElements($("#myTestFooter"));'></p> </div> </div> </article> </div> <div id='$_ui_updateHeaderElements' title='$.ui.updateHeaderElements(Elements)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updateHeaderElements",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updateHeaderElements' style='display:none'> <pre style='padding-left:25px'><code> updateHeaderElements: function(elems, goBack) { var that = this; if (!$.is$(elems)) //inline footer { elems = $.query("#" + elems); } if (elems == this.prevHeader) return; this._currentHeaderID=elems.prop("id"); if (this.prevHeader) { //Let's slide them out $.query("#header").append(elems); //Do not animate - sometimes they act funky if (!$.ui.animateHeaders) { if (that.prevHeader.data("parent")) that.prevHeader.appendTo("#" + that.prevHeader.data("parent")); else that.prevHeader.appendTo("#afui"); that.prevHeader = elems; return; } var from = goBack ? "100px" : "-100px"; var to = goBack ? "-100px" : "100px"; that.prevHeader.addClass("ignore"); that.css3animate(elems, { x: to, opacity: 0.3, time: "1ms" }); that.css3animate(that.prevHeader, { x: from, y: 0, opacity: 0.3, time: that.transitionTime, delay: numOnly(that.transitionTime) / 5 + "ms", complete: function() { if (that.prevHeader.data("parent")) that.prevHeader.appendTo("#" + that.prevHeader.data("parent")); else that.prevHeader.appendTo("#afui"); that.prevHeader.removeClass("ignore"); that.css3animate(that.prevHeader, { x: to, opacity: 1, time: "1ms" }); that.prevHeader = elems; } }); that.css3animate(elems, { x: "0px", opacity: 1, time: that.transitionTime }); } else { $.query("#header").append(elems); this.prevHeader = elems; } }, </code></pre> </div> </div> <h2>$.ui.updateHeaderElements(Elements)</h2> <section class='description'><p>Updates the elements in the header<br /> $.ui.updateHeaderElements(elements);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Elements - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ui_updateSideMenuElements' title='$.ui.updateSideMenuElements(Elements)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updateSideMenuElements",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updateSideMenuElements' style='display:none'> <pre style='padding-left:25px'><code> updateSideMenuElements: function(elems) { var that = this; if (elems === undefined || elems === null) return; var nb = $.query("#menu_scroller"); if (this.prevMenu) { this.prevMenu.insertBefore("#afui #menu"); this.prevMenu = null; } if (!$.is$(elems)) elems = $.query("#" + elems); nb.html(''); nb.append(elems); this.prevMenu = elems; //Move the scroller to the top and hide it this.scrollingDivs.menu_scroller.hideScrollbars(); this.scrollingDivs.menu_scroller.scrollToTop(); }, </code></pre> </div> </div> <h2>$.ui.updateSideMenuElements(Elements)</h2> <section class='description'><p>Updates the elements in the side menu<br /> $.ui.updateSideMenuElements(elements);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Elements - String|Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.updateSideMenuElements(elements) will update the side menu with the elements passed in</p> <pre><code class="language-html"><span class='linenumber'>&lt;nav id="myTestSideMenu"&gt;</span> <span class='linenumber'> &lt;ul class="list"&gt;</span> <span class='linenumber'> &lt;li&gt;&lt;a href="#af_ui" class="icon pencil"&gt;af.ui&lt;/a&gt;&lt;/li&gt;</span> <span class='linenumber'> &lt;li&gt;&lt;a href="#appframework" class="icon bug"&gt;appframework&lt;/a&gt;&lt;/li&gt;</span> <span class='linenumber'> &lt;/ul&gt;</span> <span class='linenumber'>&lt;/nav&gt;</span> </code></pre> <pre><code class="language-js"><span class='linenumber'>$.ui.updateSideMenuElements($("#myTestSideMenu"));</span> </code></pre> <p>Let's try it below</p> <script> $(afui).ready(function(){ $("#afui").append('<nav id="myTestSideMenu"><ul class="list"><li><a href="#af_ui" class="icon pencil">af.ui</a></li><li><a href="#appframework" class="icon bug">appframework</a></li></ul></nav>'); }); </script> <p><input type="button" value="Update SideMenu" onclick='$.ui.updateSideMenuElements($("#myTestSideMenu"));'></p> </div> </div> </article> </div> <div id='$_ui_setTitle' title='$.ui.setTitle(value)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_setTitle",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_setTitle' style='display:none'> <pre style='padding-left:25px'><code> setTitle: function(val) { if(this._currentHeaderID!=="defaultHeader") return; $.query("#header header:not(.ignore) #pageTitle").html(val); }, </code></pre> </div> </div> <h2>$.ui.setTitle(value)</h2> <section class='description'><p>Set the title of the current panel<br /> $.ui.setTitle("new title");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>value - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.setTitle(title) will change the title for the current panel.</p> <p>This expects a string and will udpate the &lt;h1> tag in the header with the value.</p> <p><input type="button" value="Change Title" onclick="$.ui.setTitle('New Title');"></p> </div> </div> </article> </div> <div id='$_ui_setBackButtonText' title='$.ui.setBackButtonText(value)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_setBackButtonText",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_setBackButtonText' style='display:none'> <pre style='padding-left:25px'><code> setBackButtonText: function(text) { if(this._currentHeaderID!=="defaultHeader") return; if (this.trimBackButtonText) text = text.substring(0, 5) + "..."; if (this.backButtonText.length &gt; 0) $.query("#header header:not(.ignore) #backButton").html(this.backButtonText); else $.query("#header header:not(.ignore) #backButton").html(text); }, </code></pre> </div> </div> <h2>$.ui.setBackButtonText(value)</h2> <section class='description'><p>Override the text for the back button<br /> $.ui.setBackButtonText("GO...");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>value - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.setBackButtonText(text) - This will change the back button text for the current panel.</p> <p>If you set $.ui.backButtonText (like this API doc does) , you can not use this function to change the back button text.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.setBackButtonText("Go Back");</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_showMask' title='$.ui.showMask(text);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_showMask",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_showMask' style='display:none'> <pre style='padding-left:25px'><code> showMask: function(text) { if (!text) text = this.loadingText || ""; $.query("#afui_mask&gt;h1").html(text); $.query("#afui_mask").show(); }, </code></pre> </div> </div> <h2>$.ui.showMask(text);</h2> <section class='description'><p>Show the loading mask<br /> $.ui.showMask()<br /> $.ui.showMask('Doing work')<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>[text] - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.showMask(text) >This will show the loading mask. You can trigger this manually for long operations.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.showMask("Loading...");</span> </code></pre> <script> function testShowMask(){ $.ui.showMask("Loading..."); setTimeout(function(){ $.ui.hideMask(); },2000); } </script> <p><input type="button" value="Show Mask" onclick="testShowMask()"></p> </div> </div> </article> </div> <div id='$_ui_hideMask' title='$.ui.hideMask();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_hideMask",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_hideMask' style='display:none'> <pre style='padding-left:25px'><code> hideMask: function() { $.query("#afui_mask").hide(); }, </code></pre> </div> </div> <h2>$.ui.hideMask();</h2> <section class='description'><p>Hide the loading mask</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.hideMask This will hide the loading mask.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.hideMask()</span> </code></pre> <p><input type="button" value="Show Mask" onclick="$.ui.showMask('Hide Mask Test')"></p> <p><input type="button" value="Hide Mask" onclick="$.ui.hideMask()"></p> </div> </div> </article> </div> <div id='$_ui_showModal' title='$.ui.showModal();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_showModal",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_showModal' style='display:none'> <pre style='padding-left:25px'><code> showModal: function(id, trans) { var that = this; this.modalTransition = trans || "up"; var modalDiv = $.query("#modalContainer"); if (typeof(id) === "string") id = "#" + id.replace("#", ""); var $panel = $.query(id); if ($panel.length) { var useScroller = this.scrollingDivs.hasOwnProperty( $panel.attr("id") ); modalDiv.html($.feat.nativeTouchScroll || !useScroller ? $.query(id).html() : $.query(id).get(0).childNodes[0].innerHTML + '', true); modalDiv.append("&lt;a onclick='$.ui.hideModal();' class='closebutton modalbutton'&gt;&lt;/a&gt;"); that.modalWindow.style.display = "block"; this.runTransition(this.modalTransition, that.modalTransContainer, that.modalWindow, false); if (useScroller) { this.scrollingDivs.modal_container.enable(that.resetScrollers); } else { this.scrollingDivs.modal_container.disable(); } this.scrollToTop('modal'); modalDiv.data("panel", id); var myPanel=$panel.get(0); var fnc = myPanel.getAttribute("data-load"); if (typeof fnc == "string" && window[fnc]) { window[fnc](myPanel); } $panel.trigger("loadpanel"); } }, </code></pre> </div> </div> <h2>$.ui.showModal();</h2> <section class='description'><p>Load a content panel in a modal window. We set the innerHTML so event binding will not work. Please use the data-load or panelloaded events to setup any event binding<br /> $.ui.showModal("#myDiv","fade");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>panel - String|Object</li> <li style='padding-left:15px;line-height:20px'>[transition] - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.showModal() will load a panel as a modal window (full overlay).</p> <p>Because we use .html(), events are not registered. Please use the data-load or "loadpanel" event to wire them for that modal window.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.showModal("#$.ui.showModal");</span> </code></pre> <p>Show this page as a modal window.</p> <p><input type="button" onclick="$.ui.showModal('#$_ui_showModal')" value="Show Modal"></p> </div> </div> </article> </div> <div id='$_ui_hideModal' title='$.ui.hideModal();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_hideModal",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_hideModal' style='display:none'> <pre style='padding-left:25px'><code> hideModal: function() { var self = this; $.query("#modalContainer").html("", true); this.runTransition(self.modalTransition, self.modalWindow, self.modalTransContainer, true); this.scrollingDivs.modal_container.disable(); var tmp = $.query($.query("#modalContainer").data("panel")); var fnc = tmp.data("unload"); if (typeof fnc == "string" && window[fnc]) { window[fnc](tmp.get(0)); } tmp.trigger("unloadpanel"); }, </code></pre> </div> </div> <h2>$.ui.hideModal();</h2> <section class='description'><p>Hide the modal window and remove the content. We remove any event listeners on the contents.<br /> $.ui.hideModal("");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ui_updatePanel' title='$.ui.updatePanel(id,content);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updatePanel",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updatePanel' style='display:none'> <pre style='padding-left:25px'><code> updatePanel: function(id, content) { id = "#" + id.replace("#", ""); var el = $.query(id).get(0); if (!el) return; var newDiv = $.create("div", { html: content }); if (newDiv.children('.panel') && newDiv.children('.panel').length &gt; 0) newDiv = newDiv.children('.panel').get(0); else newDiv = newDiv.get(0); if (el.getAttribute("js-scrolling") && (el.getAttribute("js-scrolling").toLowerCase() == "yes" || el.getAttribute("js-scrolling").toLowerCase() == "true")) { $.cleanUpContent(el.childNodes[0], false, true); $(el.childNodes[0]).html(content); } else { $.cleanUpContent(el, false, true); $(el).html(content); } if (newDiv.getAttribute("data-title")) el.setAttribute("data-title",newDiv.getAttribute("data-title")); }, </code></pre> </div> </div> <h2>$.ui.updatePanel(id,content);</h2> <section class='description'><p>Update the HTML in a content panel<br /> $.ui.updatePanel("#myDiv","This is the new content");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>panel - String|Object</li> <li style='padding-left:15px;line-height:20px'>html - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.updatePanel(id,content) will update the content of a panel. You must use this due to JS scrollers requiring a wrapper div.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.updatePanel("#$_ui_updatePanel","This is new content");</span> </code></pre> <p>Try it below. We will change the content of this panel.</p> <p><input type="button" value="Change Content" onclick='$.ui.updatePanel("#$_ui_updatePanel","This is new content");'></p> </div> </div> </article> </div> <div id='$_ui_updateContentDiv' title='$.ui.updateContentDiv(id,content);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_updateContentDiv",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_updateContentDiv' style='display:none'> <pre style='padding-left:25px'><code> updateContentDiv: function(id, content) { return this.updatePanel(id, content); }, </code></pre> </div> </div> <h2>$.ui.updateContentDiv(id,content);</h2> <section class='description'><p>Same as $.ui.updatePanel. kept for backwards compatibility<br /> $.ui.updateContentDiv("#myDiv","This is the new content");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>panel - String|Object</li> <li style='padding-left:15px;line-height:20px'>html - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ui_addContentDiv' title='$.ui.addContentDiv(id,content,title);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_addContentDiv",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_addContentDiv' style='display:none'> <pre style='padding-left:25px'><code> addContentDiv: function(el, content, title, refresh, refreshFunc) { el = typeof(el) !== "string" ? el : el.indexOf("#") == -1 ? "#" + el : el; var myEl = $.query(el).get(0); var newDiv, newId; if (!myEl) { newDiv = $.create("div", { html: content }); if (newDiv.children('.panel') && newDiv.children('.panel').length &gt; 0) newDiv = newDiv.children('.panel').get(0); else newDiv = newDiv.get(0); if (!newDiv.getAttribute("data-title") && title) newDiv.setAttribute("data-title",title); newId = (newDiv.id) ? newDiv.id : el.replace("#", ""); //figure out the new id - either the id from the loaded div.panel or the crc32 hash newDiv.id = newId; if (newDiv.id != el) newDiv.setAttribute("data-crc", el.replace("#", "")); } else { newDiv = myEl; } newDiv.className = "panel"; newId = newDiv.id; this.addDivAndScroll(newDiv, refresh, refreshFunc); myEl = null; newDiv = null; return newId; }, </code></pre> </div> </div> <h2>$.ui.addContentDiv(id,content,title);</h2> <section class='description'><p>Dynamically creates a new panel. It wires events, creates the scroller, applies Android fixes, etc.<br /> $.ui.addContentDiv("myDiv","This is the new content","Title");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Element - String|Object</li> <li style='padding-left:15px;line-height:20px'>Content - String</li> <li style='padding-left:15px;line-height:20px'>title - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.addContentDiv(id,content,title) - This will create a new panel in your application for you.</p> <p>This handles all the heavy lifting, like wiring scollers and calling android fixes if needed. This will add the div to the DOM with the class="panel"</p> <pre><code class="language-js"><span class='linenumber'>$.ui.addContentDiv("myTestPanel","This is a newly added panel","New Panel");</span> </code></pre> <p>Let's try it below.</p> <script> function addPanel(obj){ if(obj.added) return $.ui.loadContent("#myTestPanel"); else $.ui.addContentDiv("myTestPanel","This is a newly added panel","New Panel"); obj.value="Load New Panel" obj.added=true; } </script> <p><input type="button" value="Add Panel" onclick="addPanel(this)"></p> </div> </div> </article> </div> <div id='$_ui_scrollToTop' title='$.ui.scrollToTop(id);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_scrollToTop",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_scrollToTop' style='display:none'> <pre style='padding-left:25px'><code> scrollToTop: function(id, time) { time = time || "300ms"; id = id.replace("#", ""); if (this.scrollingDivs[id]) { this.scrollingDivs[id].scrollToTop(time); } }, </code></pre> </div> </div> <h2>$.ui.scrollToTop(id);</h2> <section class='description'><p>Scrolls a panel to the top<br /> $.ui.scrollToTop(id);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>id - String</li> <li style='padding-left:15px;line-height:20px'>Time - string</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ui_scrollToBottom' title='$.ui.scrollToBottom(id);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_scrollToBottom",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_scrollToBottom' style='display:none'> <pre style='padding-left:25px'><code> scrollToBottom: function(id, time) { id = id.replace("#", ""); if (this.scrollingDivs[id]) { this.scrollingDivs[id].scrollToBottom(time); } }, </code></pre> </div> </div> <h2>$.ui.scrollToBottom(id);</h2> <section class='description'><p>Scrolls a panel to the bottom<br /> $.ui.scrollToBottom(id,time);<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>id - String</li> <li style='padding-left:15px;line-height:20px'>Time - string</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> </div> </div> </article> </div> <div id='$_ui_loadContent' title='$.ui.loadContent(target,newTab,goBack,transition);' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_loadContent",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_loadContent' style='display:none'> <pre style='padding-left:25px'><code> loadContent: function(target, newTab, back, transition, anchor) { if (this.doingTransition) { var that = this; this.loadContentQueue.push([target, newTab, back, transition, anchor]); return; } if (target.length === 0) return; var what = null; var loadAjax = true; anchor = anchor || document.createElement("a"); //Hack to allow passing in no anchor if (target.indexOf("#") == -1) { var urlHash = "url" + crc32(target); //Ajax urls var crcCheck = $.query("div.panel[data-crc='" + urlHash + "']"); if ($.query("#" + target).length &gt; 0) { loadAjax = false; } else if (crcCheck.length &gt; 0) { loadAjax = false; if (anchor.getAttribute("data-refresh-ajax") === 'true' || (anchor.refresh && anchor.refresh === true || this.isAjaxApp)) { loadAjax = true; } else { target = "#" + crcCheck.get(0).id; } } else if ($.query("#" + urlHash).length &gt; 0) { //ajax div already exists. Let's see if we should be refreshing it. loadAjax = false; if (anchor.getAttribute("data-refresh-ajax") === 'true' || (anchor.refresh && anchor.refresh === true || this.isAjaxApp)) { loadAjax = true; } else target = "#" + urlHash; } } if (target.indexOf("#") == -1 && loadAjax) { this.loadAjax(target, newTab, back, transition, anchor); } else { this.loadDiv(target, newTab, back, transition); } }, </code></pre> </div> </div> <h2>$.ui.loadContent(target,newTab,goBack,transition);</h2> <section class='description'><p>This is called to initiate a transition or load content via ajax.<br />We can pass in a hash+id or URL and then we parse the panel for additional functions<br /> $.ui.loadContent("#main",false,false,"up");<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>target - String</li> <li style='padding-left:15px;line-height:20px'>newtab - Boolean</li> <li style='padding-left:15px;line-height:20px'>go - Boolean</li> <li style='padding-left:15px;line-height:20px'>transition - String</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.loadContent(target, newTab, goBack, transition)</p> <p>This allows you to programatically initiate a transition. You specify the target panel, if it's a new tab and should clear the history, if it's going back, and the transition you want.</p> <p>Below are two examples. The first will go back with a pop transition and clear the history stack. The second will go fowarded.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.loadContent("#af_ui",true,true,"pop");</span> <span class='linenumber'>$.ui.loadContent("#af_ui",false,false,"slide");</span> </code></pre> <p><input type="button" value="Pop Back" onclick='$.ui.loadContent("#af_ui",true,true,"pop");'></p> <p><input type="button" value="Slide Foward" onclick='$.ui.loadContent("#af_ui",false,false,"slide");'></p> </div> </div> </article> </div> <div id='$_ui_launch' title='$.ui.launch();' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_launch",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_launch' style='display:none'> <pre style='padding-left:25px'><code> launch: function() { if (this.hasLaunched === false || this.launchCompleted) { this.hasLaunched = true; return; } var that = this; this.viewportContainer = af.query("#afui"); this.navbar = af.query("#navbar").get(0); this.content = af.query("#content").get(0); this.header = af.query("#header").get(0); this.menu = af.query("#menu").get(0); //set anchor click handler for UI this.viewportContainer.on("click", "a", function(e) { if(that.useInteralRouting) checkAnchorClick(e, e.currentTarget); }); //enter-edit scroll paddings fix //focus scroll adjust fix var enterEditEl = null; //on enter-edit keep a reference of the actioned element $.bind($.touchLayer, 'enter-edit', function(el) { enterEditEl = el; }); //enter-edit-reshape panel padding and scroll adjust $.bind($.touchLayer, 'enter-edit-reshape', function() { //onReshape UI fixes //check if focused element is within active panel var jQel = $(enterEditEl); var jQactive = jQel.closest(that.activeDiv); if (jQactive && jQactive.size() &gt; 0) { if ($.os.ios || $.os.chrome) { var paddingTop, paddingBottom; if (document.body.scrollTop) { paddingTop = document.body.scrollTop - jQactive.offset().top; } else { paddingTop = 0; } //not exact, can be a little above the actual value //but we haven't found an accurate way to measure it and this is the best so far paddingBottom = jQactive.offset().bottom - jQel.offset().bottom; that.scrollingDivs[that.activeDiv.id].setPaddings(paddingTop, paddingBottom); } else if ($.os.android || $.os.blackberry) { var elPos = jQel.offset(); var containerPos = jQactive.offset(); if (elPos.bottom &gt; containerPos.bottom && elPos.height &lt; containerPos.height) { //apply fix that.scrollingDivs[that.activeDiv.id].scrollToItem(jQel, 'bottom'); } } } }); if ($.os.ios) { $.bind($.touchLayer, 'exit-edit-reshape', function() { if (that.activeDiv && that.activeDiv.id && that.scrollingDivs.hasOwnProperty(that.activeDiv.id)) { that.scrollingDivs[that.activeDiv.id].setPaddings(0, 0); } }); } //elements setup if (!this.navbar) { this.navbar = $.create("div", { id: "navbar" }).get(0); this.viewportContainer.append(this.navbar); } if (!this.header) { this.header = $.create("div", { id: "header" }).get(0); this.viewportContainer.prepend(this.header); } if (!this.menu) { this.menu = $.create("div", { id: "menu", html: '&lt;div id="menu_scroller"&gt;&lt;/div&gt;' }).get(0); this.viewportContainer.append(this.menu); this.menu.style.overflow = "hidden"; this.scrollingDivs.menu_scroller = $.query("#menu_scroller").scroller({ scrollBars: true, verticalScroll: true, vScrollCSS: "afScrollbar", useJsScroll: !$.feat.nativeTouchScroll, noParent: $.feat.nativeTouchScroll, autoEnable: true, lockBounce: this.lockPageBounce }); if ($.feat.nativeTouchScroll) $.query("#menu_scroller").css("height", "100%"); </code></pre> </div> </div> <h2>$.ui.launch();</h2> <section class='description'><p>This is callled when you want to launch afui. If autoLaunch is set to true, it gets called on DOMContentLoaded.<br />If autoLaunch is set to false, you can manually invoke it.<br /> $.ui.autoLaunch=false;<br /> $.ui.launch();<br /> </p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol></ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.launch() tells App Framework UI to run the startup code. When $.ui.autoLaunch is set to true, this is called when the DOM is ready.</p> <pre><code class="language-js"><span class='linenumber'>$.ui.autoLaunch=false;</span> <span class='linenumber'>/* Do your stuff */</span> <span class='linenumber'>function doLaunch(){</span> <span class='linenumber'> $.ui.launch();</span> <span class='linenumber'>}</span> <span class='linenumber'>document.addEventListener("appMobi.device.ready",doLaunch,false); //Intel apps</span> <span class='linenumber'>document.addEventListener("deviceready",doLaunch,false);// Phonegap apps</span> </code></pre> </div> </div> </article> </div> <div id='$_ui_finishTransition' title='$.ui.finishTransition(oldDiv)' data-nav='nav_af_ui' class='panel'> <div class='source'> <h3><a class='collapsed' onclick='toggleSource("$_ui_finishTransition",this)'>Show Source</a></h3> <div class='viewsource' id='source_$_ui_finishTransition' style='display:none'> <pre style='padding-left:25px'><code> clearAnimations: function(inViewDiv) { inViewDiv.style[$.feat.cssPrefix + 'Transform'] = "none"; inViewDiv.style[$.feat.cssPrefix + 'Transition'] = "none"; } </code></pre> </div> </div> <h2>$.ui.finishTransition(oldDiv)</h2> <section class='description'><p>This must be called at the end of every transition to remove all transforms and transitions attached to the inView object (performance + native scroll)</p></section> <article> <div class='spacer'></div> <h2>Params</h2> <ol><li style='padding-left:15px;line-height:20px'>Div - Object</li> </ol> <div class='spacer'></div> <h2>Returns</h2> <div style='padding-left:30px;line-height:20px;'>null</div> <div class='spacer'></div> <div class='markdown'> <h2>Example</h2> <div class='markdowncontents'> <p>$.ui.finishTransition(oldDiv) must be called at the end of a transition to tell App Framework UI it can continue on.</p> <p>When you are creating a custom transition, call this at the end with the div being "hidden".</p> <pre><code class="language-js"><span class='linenumber'>function myNewTransition(){</span> <span class='linenumber'> //Do transition code</span> <span class='linenumber'> $.ui.finishTransition(oldDiv);</span> <span class='linenumber'>}</span> </code></pre> </div> </div> </article> </div> </div> <!-- ------------------------------------------ --> <!-- navbar --> <div id="navbar"> <a href='#appframework' class='icon home'>appframework</a><a href='#af_ui' class='icon home'>af.ui</a> </div> <nav><div class='title'>API's</div><ul class='list'><li><a href='#appframework'>appframework</a></li><li><a href='#af_ui'>af.ui</a></li></ul></nav> <nav id='nav_appframework' ><div class='title'>appframework</div><ul class='list'><li><a data-persist-ajax='true' href='#$_is$'>$.is$</a></li> <li><a data-persist-ajax='true' href='#$_map'>$.map</a></li> <li><a data-persist-ajax='true' href='#$_each'>$.each</a></li> <li><a data-persist-ajax='true' href='#$_extend'>$.extend</a></li> <li><a data-persist-ajax='true' href='#$_isArray'>$.isArray</a></li> <li><a data-persist-ajax='true' href='#$_isFunction'>$.isFunction</a></li> <li><a data-persist-ajax='true' href='#$_isObject'>$.isObject</a></li> <li><a data-persist-ajax='true' href='#_map'>.map</a></li> <li><a data-persist-ajax='true' href='#_each'>.each</a></li> <li><a data-persist-ajax='true' href='#_ready'>.ready</a></li> <li><a data-persist-ajax='true' href='#_find'>.find</a></li> <li><a data-persist-ajax='true' href='#_html'>.html</a></li> <li><a data-persist-ajax='true' href='#_text'>.text</a></li> <li><a data-persist-ajax='true' href='#_css'>.css</a></li> <li><a data-persist-ajax='true' href='#_vendorCss'>.vendorCss</a></li> <li><a data-persist-ajax='true' href='#_computedStyle'>.computedStyle</a></li> <li><a data-persist-ajax='true' href='#_empty'>.empty</a></li> <li><a data-persist-ajax='true' href='#_hide'>.hide</a></li> <li><a data-persist-ajax='true' href='#_show'>.show</a></li> <li><a data-persist-ajax='true' href='#_toggle'>.toggle</a></li> <li><a data-persist-ajax='true' href='#_val'>.val</a></li> <li><a data-persist-ajax='true' href='#_attr'>.attr</a></li> <li><a data-persist-ajax='true' href='#_removeAttr'>.removeAttr</a></li> <li><a data-persist-ajax='true' href='#_prop'>.prop</a></li> <li><a data-persist-ajax='true' href='#_removeProp'>.removeProp</a></li> <li><a data-persist-ajax='true' href='#_remove'>.remove</a></li> <li><a data-persist-ajax='true' href='#_addClass'>.addClass</a></li> <li><a data-persist-ajax='true' href='#_removeClass'>.removeClass</a></li> <li><a data-persist-ajax='true' href='#_toggleClass'>.toggleClass</a></li> <li><a data-persist-ajax='true' href='#_replaceClass'>.replaceClass</a></li> <li><a data-persist-ajax='true' href='#_hasClass'>.hasClass</a></li> <li><a data-persist-ajax='true' href='#_append'>.append</a></li> <li><a data-persist-ajax='true' href='#_appendTo'>.appendTo</a></li> <li><a data-persist-ajax='true' href='#_prependTo'>.prependTo</a></li> <li><a data-persist-ajax='true' href='#_prepend'>.prepend</a></li> <li><a data-persist-ajax='true' href='#_insertBefore'>.insertBefore</a></li> <li><a data-persist-ajax='true' href='#_insertAfter'>.insertAfter</a></li> <li><a data-persist-ajax='true' href='#_get'>.get</a></li> <li><a data-persist-ajax='true' href='#_offset'>.offset</a></li> <li><a data-persist-ajax='true' href='#_height'>.height</a></li> <li><a data-persist-ajax='true' href='#_width'>.width</a></li> <li><a data-persist-ajax='true' href='#_parent'>.parent</a></li> <li><a data-persist-ajax='true' href='#_parents'>.parents</a></li> <li><a data-persist-ajax='true' href='#_children'>.children</a></li> <li><a data-persist-ajax='true' href='#_siblings'>.siblings</a></li> <li><a data-persist-ajax='true' href='#_closest'>.closest</a></li> <li><a data-persist-ajax='true' href='#_filter'>.filter</a></li> <li><a data-persist-ajax='true' href='#_not'>.not</a></li> <li><a data-persist-ajax='true' href='#_data'>.data</a></li> <li><a data-persist-ajax='true' href='#_end'>.end</a></li> <li><a data-persist-ajax='true' href='#_clone'>.clone</a></li> <li><a data-persist-ajax='true' href='#_size'>.size</a></li> <li><a data-persist-ajax='true' href='#_serialize'>.serialize</a></li> <li><a data-persist-ajax='true' href='#_eq'>.eq</a></li> <li><a data-persist-ajax='true' href='#_index'>.index</a></li> <li><a data-persist-ajax='true' href='#_is'>.is</a></li> <li><a data-persist-ajax='true' href='#$_jsonP'>$.jsonP</a></li> <li><a data-persist-ajax='true' href='#$_ajax'>$.ajax</a></li> <li><a data-persist-ajax='true' href='#$_get'>$.get</a></li> <li><a data-persist-ajax='true' href='#$_post'>$.post</a></li> <li><a data-persist-ajax='true' href='#$_getJSON'>$.getJSON</a></li> <li><a data-persist-ajax='true' href='#$_param'>$.param</a></li> <li><a data-persist-ajax='true' href='#$_parseJSON'>$.parseJSON</a></li> <li><a data-persist-ajax='true' href='#$_parseXML'>$.parseXML</a></li> <li><a data-persist-ajax='true' href='#$_uuid'>$.uuid</a></li> <li><a data-persist-ajax='true' href='#$_create'>$.create</a></li> <li><a data-persist-ajax='true' href='#$_query'>$.query</a></li> <li><a data-persist-ajax='true' href='#_bind'>.bind</a></li> <li><a data-persist-ajax='true' href='#_unbind'>.unbind</a></li> <li><a data-persist-ajax='true' href='#_one'>.one</a></li> <li><a data-persist-ajax='true' href='#_delegate'>.delegate</a></li> <li><a data-persist-ajax='true' href='#_undelegate'>.undelegate</a></li> <li><a data-persist-ajax='true' href='#_on'>.on</a></li> <li><a data-persist-ajax='true' href='#_off'>.off</a></li> <li><a data-persist-ajax='true' href='#_trigger'>.trigger</a></li> <li><a data-persist-ajax='true' href='#$_Event'>$.Event</a></li> <li><a data-persist-ajax='true' href='#$_bind'>$.bind</a></li> <li><a data-persist-ajax='true' href='#$_trigger'>$.trigger</a></li> <li><a data-persist-ajax='true' href='#$_unbind'>$.unbind</a></li> <li><a data-persist-ajax='true' href='#$_proxy'>$.proxy</a></li> <li><a data-persist-ajax='true' href='#$_cleanUpContent'>$.cleanUpContent</a></li> <li><a data-persist-ajax='true' href='#$_parseJS'>$.parseJS</a></li> </ul></nav><nav id='nav_af_ui' ><div class='title'>af.ui</div><ul class='list'><li><a data-persist-ajax='true' href='#$_ui_setSideMenuWidth'>$.ui.setSideMenuWidth</a></li> <li><a data-persist-ajax='true' href='#$_ui_disableNativeScrolling'>$.ui.disableNativeScrolling</a></li> <li><a data-persist-ajax='true' href='#$_ui_manageHistory'>$.ui.manageHistory</a></li> <li><a data-persist-ajax='true' href='#$_ui_loadDefaultHash'>$.ui.loadDefaultHash</a></li> <li><a data-persist-ajax='true' href='#$_ui_useAjaxCacheBuster'>$.ui.useAjaxCacheBuster</a></li> <li><a data-persist-ajax='true' href='#$_ui_actionsheet'>$.ui.actionsheet</a></li> <li><a data-persist-ajax='true' href='#$_ui_popup'>$.ui.popup</a></li> <li><a data-persist-ajax='true' href='#$_ui_blockUI'>$.ui.blockUI</a></li> <li><a data-persist-ajax='true' href='#$_ui_unblockUI'>$.ui.unblockUI</a></li> <li><a data-persist-ajax='true' href='#$_ui_removeFooterMenu'>$.ui.removeFooterMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_autoLaunch'>$.ui.autoLaunch</a></li> <li><a data-persist-ajax='true' href='#$_ui_showBackButton'>$.ui.showBackButton</a></li> <li><a data-persist-ajax='true' href='#$_ui_backButtonText'>$.ui.backButtonText</a></li> <li><a data-persist-ajax='true' href='#$_ui_resetScrollers'>$.ui.resetScrollers</a></li> <li><a data-persist-ajax='true' href='#$_ui_ready'>$.ui.ready</a></li> <li><a data-persist-ajax='true' href='#$_ui_setBackButtonStyle'>$.ui.setBackButtonStyle</a></li> <li><a data-persist-ajax='true' href='#$_ui_goBack'>$.ui.goBack</a></li> <li><a data-persist-ajax='true' href='#$_ui_clearHistory'>$.ui.clearHistory</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateBadge'>$.ui.updateBadge</a></li> <li><a data-persist-ajax='true' href='#$_ui_removeBadge'>$.ui.removeBadge</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleNavMenu'>$.ui.toggleNavMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleHeaderMenu'>$.ui.toggleHeaderMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_toggleSideMenu'>$.ui.toggleSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_disableSideMenu'>$.ui.disableSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_enableSideMenu'>$.ui.enableSideMenu</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateNavbarElements'>$.ui.updateNavbarElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateHeaderElements'>$.ui.updateHeaderElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateSideMenuElements'>$.ui.updateSideMenuElements</a></li> <li><a data-persist-ajax='true' href='#$_ui_setTitle'>$.ui.setTitle</a></li> <li><a data-persist-ajax='true' href='#$_ui_setBackButtonText'>$.ui.setBackButtonText</a></li> <li><a data-persist-ajax='true' href='#$_ui_showMask'>$.ui.showMask</a></li> <li><a data-persist-ajax='true' href='#$_ui_hideMask'>$.ui.hideMask</a></li> <li><a data-persist-ajax='true' href='#$_ui_showModal'>$.ui.showModal</a></li> <li><a data-persist-ajax='true' href='#$_ui_hideModal'>$.ui.hideModal</a></li> <li><a data-persist-ajax='true' href='#$_ui_updatePanel'>$.ui.updatePanel</a></li> <li><a data-persist-ajax='true' href='#$_ui_updateContentDiv'>$.ui.updateContentDiv</a></li> <li><a data-persist-ajax='true' href='#$_ui_addContentDiv'>$.ui.addContentDiv</a></li> <li><a data-persist-ajax='true' href='#$_ui_scrollToTop'>$.ui.scrollToTop</a></li> <li><a data-persist-ajax='true' href='#$_ui_scrollToBottom'>$.ui.scrollToBottom</a></li> <li><a data-persist-ajax='true' href='#$_ui_loadContent'>$.ui.loadContent</a></li> <li><a data-persist-ajax='true' href='#$_ui_launch'>$.ui.launch</a></li> <li><a data-persist-ajax='true' href='#$_ui_finishTransition'>$.ui.finishTransition</a></li> </ul></nav> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-36721400-4']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>
lse123/appframework
documentation/index.html
HTML
mit
352,104
/*! * tablesort v2.0.1 (2014-11-06) * http://tristen.ca/tablesort/demo * Copyright (c) 2014 ; Licensed MIT */!function(){function a(a,b){if(!a)throw new Error("Element not found");if("TABLE"!==a.tagName)throw new Error("Element must be a table");this.init(a,b||{})}a.prototype={init:function(a,d){var e,f=this;if(this.thead=!1,this.options=d,a.rows&&a.rows.length>0&&(a.tHead&&a.tHead.rows.length>0?(e=a.tHead.rows[a.tHead.rows.length-1],f.thead=!0):e=a.rows[0]),e){for(var g,h=function(){f.current&&f.current!==this&&(f.current.classList.contains(b)?f.current.classList.remove(b):f.current.classList.contains(c)&&f.current.classList.remove(c)),f.current=this,f.sortTable(this)},i=0;i<e.cells.length;i++){var j=e.cells[i];j.classList.contains("no-sort")||(j.classList.add("sort-header"),j.addEventListener("click",h,!1),j.classList.contains("sort-default")&&(g=j))}g&&(f.current=g,f.sortTable(g,!0))}},getFirstDataRowIndex:function(){return this.thead?0:1},sortTable:function(a,d){var e,f=this,m=a.cellIndex,n=i(a,"table"),o="",p=f.getFirstDataRowIndex();if(!(n.rows.length<=1)){for(;""===o&&p<n.tBodies[0].rows.length;)o=j(n.tBodies[0].rows[p].cells[m]),o=o.trim(),("<!--"===o.substr(0,4)||0===o.length)&&(o=""),p++;if(""!==o){var q=function(a,b){var c=j(a.cells[f.col]).toLowerCase(),d=j(b.cells[f.col]).toLowerCase();return c===d?0:d>c?1:-1},r=function(a,b){var c=j(a.cells[f.col]),d=j(b.cells[f.col]);return c=l(c),d=l(d),k(d,c)},s=function(a,b){var c=j(a.cells[f.col]).toLowerCase(),d=j(b.cells[f.col]).toLowerCase();return h(d)-h(c)};e=o.match(/^-?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||o.match(/^-?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||o.match(/^-?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)?r:g(o)?s:q,this.col=m;var t,u=[],v={},w=0;for(p=0;p<n.tBodies.length;p++)for(t=0;t<n.tBodies[p].rows.length;t++){var x=n.tBodies[p].rows[t];x.classList.contains("no-sort")?v[w]=x:u.push({tr:x,index:w}),w++}var y=f.options.descending?c:b,z=f.options.descending?b:c;d?a.classList.contains(y)||a.classList.contains(z)||a.classList.add(y):a.classList.contains(y)?(a.classList.remove(y),a.classList.add(z)):(a.classList.remove(z),a.classList.add(y));var A=function(a){return function(b,c){var d=a(b.tr,c.tr);return 0===d?b.index-c.index:d}},B=function(a){return function(b,c){var d=a(b.tr,c.tr);return 0===d?c.index-b.index:d}};a.classList.contains(c)?(u.sort(B(e)),u.reverse()):u.sort(A(e));var C=0;for(p=0;w>p;p++){var D;v[p]?(D=v[p],C++):D=u[p-C].tr,n.tBodies[0].appendChild(D)}}}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}};var b="sort-up",c="sort-down",d=/(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\.?\,?\s*/i,e=/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/,f=/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/i,g=function(a){return-1!==(-1!==a.search(d)||-1!==a.search(e)||a.search(-1!==f))&&!isNaN(h(a))},h=function(a){return a=a.replace(/\-/g,"/"),a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3"),new Date(a).getTime()},i=function(a,b){return null===a?null:1===a.nodeType&&a.tagName.toLowerCase()===b.toLowerCase()?a:i(a.parentNode,b)},j=function(a){var b=this;if("string"==typeof a||"undefined"==typeof a)return a;var c=a.getAttribute("data-sort")||"";if(c)return c;if(a.textContent)return a.textContent;if(a.innerText)return a.innerText;for(var d=a.childNodes,e=d.length,f=0;e>f;f++)switch(d[f].nodeType){case 1:c+=b.getInnerText(d[f]);break;case 3:c+=d[f].nodeValue}return c},k=function(a,b){var c=parseFloat(a),d=parseFloat(b);return a=isNaN(c)?0:c,b=isNaN(d)?0:d,a-b},l=function(a){return a.replace(/[^\-?0-9.]/g,"")};"undefined"!=typeof module&&module.exports?module.exports=a:window.Tablesort=a}();
algolia/cdnjs
ajax/libs/tablesort/2.0.1/tablesort.min.js
JavaScript
mit
3,649
/*! * EventEmitter v4.2.2 - git.io/ee * Oliver Caldwell * MIT license * @preserve */ !function(){"use strict";function t(){}function r(t,n){for(var e=t.length;e--;)if(t[e].listener===n)return e;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var e=t.prototype;e.getListeners=function(n){var r,e,t=this._getEvents();if("object"==typeof n){r={};for(e in t)t.hasOwnProperty(e)&&n.test(e)&&(r[e]=t[e])}else r=t[n]||(t[n]=[]);return r},e.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},e.getListenersAsObject=function(n){var e,t=this.getListeners(n);return t instanceof Array&&(e={},e[n]=t),e||t},e.addListener=function(i,e){var t,n=this.getListenersAsObject(i),s="object"==typeof e;for(t in n)n.hasOwnProperty(t)&&-1===r(n[t],e)&&n[t].push(s?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(e){return this.getListeners(e),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(i,s){var n,e,t=this.getListenersAsObject(i);for(e in t)t.hasOwnProperty(e)&&(n=r(t[e],s),-1!==n&&t[e].splice(n,1));return this},e.off=n("removeListener"),e.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},e.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},e.manipulateListeners=function(r,t,i){var e,n,s=r?this.removeListener:this.addListener,o=r?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(e=i.length;e--;)s.call(this,t,i[e]);else for(e in t)t.hasOwnProperty(e)&&(n=t[e])&&("function"==typeof n?s.call(this,e,n):o.call(this,e,n));return this},e.removeEvent=function(n){var e,r=typeof n,t=this._getEvents();if("string"===r)delete t[n];else if("object"===r)for(e in t)t.hasOwnProperty(e)&&n.test(e)&&delete t[e];else delete this._events;return this},e.emitEvent=function(i,o){var e,r,t,s,n=this.getListenersAsObject(i);for(t in n)if(n.hasOwnProperty(t))for(r=n[t].length;r--;)e=n[t][r],s=e.listener.apply(this,o||[]),(s===this._getOnceReturnValue()||e.once===!0)&&this.removeListener(i,e.listener);return this},e.trigger=n("emitEvent"),e.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},e.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},e._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},e._getEvents=function(){return this._events||(this._events={})},"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this);
shelsonjava/cdnjs
ajax/libs/EventEmitter/4.2.2/EventEmitter.min.js
JavaScript
mit
2,774
var SSF={};var make_ssf=function(SSF){var _strrev=function(x){return String(x).split("").reverse().join("")};function fill(c,l){return new Array(l+1).join(c)}function pad(v,d,c){var t=String(v);return t.length>=d?t:fill(c||0,d-t.length)+t}function rpad(v,d,c){var t=String(v);return t.length>=d?t:t+fill(c||0,d-t.length)}SSF.version="0.5.4";var opts_fmt={};function fixopts(o){for(var y in opts_fmt)if(o[y]===undefined)o[y]=opts_fmt[y]}SSF.opts=opts_fmt;opts_fmt.date1904=0;opts_fmt.output="";opts_fmt.mode="";var table_fmt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',65535:"General"};var days=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var months=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var frac=function frac(x,D,mixed){var sgn=x<0?-1:1;var B=x*sgn;var P_2=0,P_1=1,P=0;var Q_2=1,Q_1=0,Q=0;var A=Math.floor(B);while(Q_1<D){A=Math.floor(B);P=A*P_1+P_2;Q=A*Q_1+Q_2;if(B-A<5e-10)break;B=1/(B-A);P_2=P_1;P_1=P;Q_2=Q_1;Q_1=Q}if(Q>D){Q=Q_1;P=P_1}if(Q>D){Q=Q_2;P=P_2}if(!mixed)return[0,sgn*P,Q];if(Q===0)throw"Unexpected state: "+P+" "+P_1+" "+P_2+" "+Q+" "+Q_1+" "+Q_2;var q=Math.floor(sgn*P/Q);return[q,sgn*P-q*Q,Q]};var general_fmt=function(v){if(typeof v==="boolean")return v?"TRUE":"FALSE";if(typeof v==="number"){var o,V=v<0?-v:v;if(V>=.1&&V<1)o=v.toPrecision(9);else if(V>=.01&&V<.1)o=v.toPrecision(8);else if(V>=.001&&V<.01)o=v.toPrecision(7);else if(V>=1e-4&&V<.001)o=v.toPrecision(6);else if(V>=Math.pow(10,10)&&V<Math.pow(10,11))o=v.toFixed(10).substr(0,12);else if(V>Math.pow(10,-9)&&V<Math.pow(10,11)){o=v.toFixed(12).replace(/(\.[0-9]*[1-9])0*$/,"$1").replace(/\.$/,"");if(o.length>11+(v<0?1:0))o=v.toPrecision(10);if(o.length>11+(v<0?1:0))o=v.toExponential(5)}else{o=v.toFixed(11).replace(/(\.[0-9]*[1-9])0*$/,"$1");if(o.length>11+(v<0?1:0))o=v.toPrecision(6)}o=o.replace(/(\.[0-9]*[1-9])0+e/,"$1e").replace(/\.0*e/,"e");return o.replace("e","E").replace(/\.0*$/,"").replace(/\.([0-9]*[^0])0*$/,".$1").replace(/(E[+-])([0-9])$/,"$1"+"0"+"$2")}if(typeof v==="string")return v;throw"unsupported value in General format: "+v};SSF._general=general_fmt;var parse_date_code=function parse_date_code(v,opts){var date=Math.floor(v),time=Math.floor(86400*(v-date)+1e-6),dow=0;var dout=[],out={D:date,T:time,u:86400*(v-date)-time};fixopts(opts=opts||{});if(opts.date1904)date+=1462;if(date>2958465)return null;if(date===60){dout=[1900,2,29];dow=3}else if(date===0){dout=[1900,1,0];dow=6}else{if(date>60)--date;var d=new Date(1900,0,1);d.setDate(d.getDate()+date-1);dout=[d.getFullYear(),d.getMonth()+1,d.getDate()];dow=d.getDay();if(date<60)dow=(dow+6)%7}out.y=dout[0];out.m=dout[1];out.d=dout[2];out.S=time%60;time=Math.floor(time/60);out.M=time%60;time=Math.floor(time/60);out.H=time;out.q=dow;return out};SSF.parse_date_code=parse_date_code;var write_date=function(type,fmt,val){if(val<0)return"";var o;switch(type){case"y":switch(fmt){case"y":case"yy":return pad(val.y%100,2);case"yyy":case"yyyy":return pad(val.y%1e4,4);default:throw"bad year format: "+fmt}case"m":switch(fmt){case"m":return val.m;case"mm":return pad(val.m,2);case"mmm":return months[val.m-1][1];case"mmmm":return months[val.m-1][2];case"mmmmm":return months[val.m-1][0];default:throw"bad month format: "+fmt}case"d":switch(fmt){case"d":return val.d;case"dd":return pad(val.d,2);case"ddd":return days[val.q][0];case"dddd":return days[val.q][1];default:throw"bad day format: "+fmt}case"h":switch(fmt){case"h":return 1+(val.H+11)%12;case"hh":return pad(1+(val.H+11)%12,2);default:throw"bad hour format: "+fmt}case"H":switch(fmt){case"h":return val.H;case"hh":return pad(val.H,2);default:throw"bad hour format: "+fmt}case"M":switch(fmt){case"m":return val.M;case"mm":return pad(val.M,2);default:throw"bad minute format: "+fmt}case"s":switch(fmt){case"s":return Math.round(val.S+val.u);case"ss":return pad(Math.round(val.S+val.u),2);case"ss.0":o=pad(Math.round(10*(val.S+val.u)),3);return o.substr(0,2)+"."+o.substr(2);case"ss.00":o=pad(Math.round(100*(val.S+val.u)),4);return o.substr(0,2)+"."+o.substr(2);case"ss.000":o=pad(Math.round(1e3*(val.S+val.u)),5);return o.substr(0,2)+"."+o.substr(2);default:throw"bad second format: "+fmt}case"Z":switch(fmt){case"[h]":case"[hh]":o=val.D*24+val.H;break;case"[m]":case"[mm]":o=(val.D*24+val.H)*60+val.M;break;case"[s]":case"[ss]":o=((val.D*24+val.H)*60+val.M)*60+Math.round(val.S+val.u);break;default:throw"bad abstime format: "+fmt}return fmt.length===3?o:pad(o,2);case"e":{return val.y}break;default:throw"bad format type "+type+" in "+fmt}};var commaify=function(s){return _strrev(_strrev(s).replace(/.../g,"$&,")).replace(/^,/,"")};var write_num=function(type,fmt,val){if(type==="("){var ffmt=fmt.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(val>=0)return write_num("n",ffmt,val);return"("+write_num("n",ffmt,-val)+")"}var mul=0,o;fmt=fmt.replace(/%/g,function(x){mul++;return""});if(mul!==0)return write_num(type,fmt,val*Math.pow(10,2*mul))+fill("%",mul);if(fmt.indexOf("E")>-1){var idx=fmt.indexOf("E")-fmt.indexOf(".")-1;if(fmt=="##0.0E+0"){var period=fmt.length-5;var ee=Number(val.toExponential(0).substr(2+(val<0)))%period;o=(val/Math.pow(10,ee)).toPrecision(idx+1+(period+ee)%period);if(!o.match(/[Ee]/)){var fakee=Number(val.toExponential(0).substr(2+(val<0)));if(o.indexOf(".")===-1)o=o[0]+"."+o.substr(1)+"E+"+(fakee-o.length+ee);else throw"missing E |"+o}o=o.replace(/^([+-]?)([0-9]*)\.([0-9]*)[Ee]/,function($$,$1,$2,$3){return $1+$2+$3.substr(0,(period+ee)%period)+"."+$3.substr(ee)+"E"})}else o=val.toExponential(idx);if(fmt.match(/E\+00$/)&&o.match(/e[+-][0-9]$/))o=o.substr(0,o.length-1)+"0"+o[o.length-1];if(fmt.match(/E\-/)&&o.match(/e\+/))o=o.replace(/e\+/,"e");return o.replace("e","E")}if(fmt[0]==="$")return"$"+write_num(type,fmt.substr(fmt[1]==" "?2:1),val);var r,ff,aval=val<0?-val:val,sign=val<0?"-":"";if(r=fmt.match(/# (\?+)([ ]?)\/([ ]?)(\d+)/)){var den=Number(r[4]),rnd=Math.round(aval*den),base=Math.floor(rnd/den);var myn=rnd-base*den,myd=den;return sign+(base?base:"")+" "+(myn===0?fill(" ",r[1].length+1+r[4].length):pad(myn,r[1].length," ")+r[2]+"/"+r[3]+pad(myd,r[4].length))}if(fmt.match(/^00+$/))return(val<0?"-":"")+pad(Math.round(aval),fmt.length);if(fmt.match(/^[#?]+$/))return String(Math.round(val)).replace(/^0$/,"");if(r=fmt.match(/^#*0+\.(0+)/)){o=Math.round(val*Math.pow(10,r[1].length));return String(o/Math.pow(10,r[1].length)).replace(/^([^\.]+)$/,"$1."+r[1]).replace(/\.$/,"."+r[1]).replace(/\.([0-9]*)$/,function($$,$1){return"."+$1+fill("0",r[1].length-$1.length)})}if(r=fmt.match(/^# ([?]+)([ ]?)\/([ ]?)([?]+)/)){var rr=Math.min(Math.max(r[1].length,r[4].length),7);ff=frac(aval,Math.pow(10,rr)-1,true);return sign+(ff[0]||(ff[1]?"":"0"))+" "+(ff[1]?pad(ff[1],rr," ")+r[2]+"/"+r[3]+rpad(ff[2],rr," "):fill(" ",2*rr+1+r[2].length+r[3].length))}switch(fmt){case"0":case"#0":return Math.round(val);case"#.##":o=Math.round(val*100);return String(o/100).replace(/^([^\.]+)$/,"$1.").replace(/^0\.$/,".");case"#,###":var x=commaify(String(Math.round(aval)));return x!=="0"?sign+x:"";case"#,##0":return sign+commaify(String(Math.round(aval)));case"#,##0.0":r=Math.round((val-Math.floor(val))*10);return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,1,"0");case"#,##0.00":r=Math.round((val-Math.floor(val))*100);return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,2,"0");case"#,##0.000":r=Math.round((val-Math.floor(val))*1e3);return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,3,0);case"#,##0.0000":r=Math.round((val-Math.floor(val))*1e4);return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,4,0);case"#,##0.00000":r=Math.round((val-Math.floor(val))*Math.pow(10,5));return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,5,0);case"#,##0.000000":r=Math.round((val-Math.floor(val))*Math.pow(10,6));return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,6,0);case"#,##0.0000000":r=Math.round((val-Math.floor(val))*Math.pow(10,7));return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,7,0);case"#,##0.00000000":r=Math.round((val-Math.floor(val))*Math.pow(10,8));return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,8,0);case"#,##0.000000000":r=Math.round((val-Math.floor(val))*Math.pow(10,9));return val<0?"-"+write_num(type,fmt,-val):commaify(String(Math.floor(val)))+"."+pad(r,9,0);default:}throw new Error("unsupported format |"+fmt+"|")};function split_fmt(fmt){var out=[];var in_str=-1;for(var i=0,j=0;i<fmt.length;++i){if(in_str!=-1){if(fmt[i]=='"')in_str=-1;continue}if(fmt[i]=="_"||fmt[i]=="*"||fmt[i]=="\\"){++i;continue}if(fmt[i]=='"'){in_str=i;continue}if(fmt[i]!=";")continue;out.push(fmt.slice(j,i));j=i+1}out.push(fmt.slice(j));if(in_str!=-1)throw"Format |"+fmt+"| unterminated string at "+in_str;return out}SSF._split=split_fmt;function eval_fmt(fmt,v,opts,flen){var out=[],o="",i=0,c="",lst="t",q={},dt;fixopts(opts=opts||{});var hr="H";while(i<fmt.length){switch(c=fmt[i]){case"G":if(fmt.substr(i,i+6).toLowerCase()!=="general")throw"unrecognized character "+fmt[i]+" in "+fmt;out.push({t:"G",v:"General"});i+=7;break;case'"':for(o="";fmt[++i]!=='"'&&i<fmt.length;)o+=fmt[i];out.push({t:"t",v:o});++i;break;case"\\":var w=fmt[++i],t="()".indexOf(w)===-1?"t":w;out.push({t:t,v:w});++i;break;case"_":out.push({t:"t",v:" "});i+=2;break;case"@":out.push({t:"T",v:v});++i;break;case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":if(v<0)return"";if(!dt)dt=parse_date_code(v,opts);if(!dt)return"";o=fmt[i];while((fmt[++i]||"").toLowerCase()===c)o+=c;if(c==="s"&&fmt[i]==="."&&fmt[i+1]==="0"){o+=".";while(fmt[++i]==="0")o+="0"}if(c==="m"&&lst.toLowerCase()==="h")c="M";if(c==="h")c=hr;o=o.toLowerCase();q={t:c,v:o};out.push(q);lst=c;break;case"A":if(!dt)dt=parse_date_code(v,opts);if(!dt)return"";q={t:c,v:"A"};if(fmt.substr(i,3)==="A/P"){q.v=dt.H>=12?"P":"A";q.t="T";hr="h";i+=3}else if(fmt.substr(i,5)==="AM/PM"){q.v=dt.H>=12?"PM":"AM";q.t="T";i+=5;hr="h"}else{q.t="t";i++}out.push(q);lst=c;break;case"[":o=c;while(fmt[i++]!=="]")o+=fmt[i];if(o.match(/\[[HhMmSs]*\]/)){if(!dt)dt=parse_date_code(v,opts);if(!dt)return"";out.push({t:"Z",v:o.toLowerCase()})}else{o=""}break;case"0":case"#":o=c;while("0#?.,E+-%".indexOf(c=fmt[++i])>-1)o+=c;out.push({t:"n",v:o});break;case"?":o=fmt[i];while(fmt[++i]===c)o+=c;q={t:c,v:o};out.push(q);lst=c;break;case"*":++i;if(fmt[i]==" ")++i;break;case"(":case")":out.push({t:flen===1?"t":c,v:c});++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":o=fmt[i];while("0123456789".indexOf(fmt[++i])>-1)o+=fmt[i];out.push({t:"D",v:o});break;case" ":out.push({t:c,v:c});++i;break;default:if(",$-+/():!^&'~{}<>=".indexOf(c)===-1)throw"unrecognized character "+fmt[i]+" in "+fmt;out.push({t:"t",v:c});++i;break}}for(i=out.length-1,lst="t";i>=0;--i){switch(out[i].t){case"h":case"H":out[i].t=hr;lst="h";break;case"d":case"y":case"s":case"M":case"e":lst=out[i].t;break;case"m":if(lst==="s")out[i].t="M";break}}for(i=0;i<out.length;++i){switch(out[i].t){case"t":case"T":case" ":break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"A":case"e":case"Z":out[i].v=write_date(out[i].t,out[i].v,dt);out[i].t="t";break;case"n":case"(":case"?":var jj=i+1;while(out[jj]&&("?D".indexOf(out[jj].t)>-1||" t".indexOf(out[jj].t)>-1&&"?t".indexOf((out[jj+1]||{}).t)>-1&&(out[jj+1].t=="?"||out[jj+1].v=="/")||out[i].t=="("&&(out[jj].t==")"||out[jj].t=="n")||out[jj].t=="t"&&(out[jj].v=="/"||out[jj].v=="$"||out[jj].v==" "&&(out[jj+1]||{}).t=="?"))){out[i].v+=out[jj].v;delete out[jj];++jj}out[i].v=write_num(out[i].t,out[i].v,v);out[i].t="t";i=jj-1;break;case"G":out[i].t="t";out[i].v=general_fmt(v,opts);break;default:console.error(out);throw"unrecognized type "+out[i].t}}return out.map(function(x){return x.v}).join("")}SSF._eval=eval_fmt;function choose_fmt(fmt,v,o){if(typeof fmt==="number")fmt=(o&&o.table?o.table:table_fmt)[fmt];if(typeof fmt==="string")fmt=split_fmt(fmt);var l=fmt.length;switch(fmt.length){case 1:fmt=fmt[0].indexOf("@")>-1?["General","General","General",fmt[0]]:[fmt[0],fmt[0],fmt[0],"@"];break;case 2:fmt=fmt[1].indexOf("@")>-1?[fmt[0],fmt[0],fmt[0],fmt[1]]:[fmt[0],fmt[1],fmt[0],"@"];break;case 3:fmt=fmt[2].indexOf("@")>-1?[fmt[0],fmt[1],fmt[0],fmt[2]]:[fmt[0],fmt[1],fmt[2],"@"];break;case 4:break;default:throw"cannot find right format for |"+fmt+"|"}if(typeof v!=="number")return[fmt.length,fmt[3]];return[l,v>0?fmt[0]:v<0?fmt[1]:fmt[2]]}var format=function format(fmt,v,o){fixopts(o=o||{});if(typeof fmt==="string"&&fmt.toLowerCase()==="general")return general_fmt(v,o);if(typeof fmt==="number")fmt=(o.table||table_fmt)[fmt];var f=choose_fmt(fmt,v,o);if(f[1].toLowerCase()==="general")return general_fmt(v,o);if(v===true)v="TRUE";if(v===false)v="FALSE";if(v===""||typeof v==="undefined")return"";return eval_fmt(f[1],v,o,f[0])};SSF._choose=choose_fmt;SSF._table=table_fmt;SSF.load=function(fmt,idx){table_fmt[idx]=fmt};SSF.format=format;SSF.get_table=function(){return table_fmt};SSF.load_table=function(tbl){for(var i=0;i!=392;++i)if(tbl[i])SSF.load(tbl[i],i)}};make_ssf(SSF);var XLSX={};(function(XLSX){XLSX.version="0.4.3";var current_codepage,current_cptable,cptable;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")cptable=require("codepage");current_codepage=1252;current_cptable=cptable[1252]}function reset_cp(){current_codepage=1252;if(typeof cptable!=="undefined")current_cptable=cptable[1252]}function _getchar(x){return String.fromCharCode(x)}function getdata(data){if(!data)return null;if(data.data)return data.data;if(data.asNodeBuffer&&typeof Buffer!=="undefined"&&data.name.substr(-4)===".bin")return data.asNodeBuffer();if(data.asBinary&&data.name.substr(-4)!==".bin")return data.asBinary();if(data._data&&data._data.getContent){if(data.name.substr(-4)===".bin")return Array.prototype.slice.call(data._data.getContent());return Array.prototype.slice.call(data._data.getContent(),0).map(function(x){return String.fromCharCode(x)}).join("")}return null}function getzipfile(zip,file){var f=file;if(zip.files[f])return zip.files[f];f=file.toLowerCase();if(zip.files[f])return zip.files[f];f=f.replace(/\//g,"\\");if(zip.files[f])return zip.files[f];throw new Error("Cannot find file "+file+" in zip")}var _fs,jszip;if(typeof JSZip!=="undefined")jszip=JSZip;if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){if(typeof Buffer!=="undefined"&&typeof jszip==="undefined")jszip=require("jszip");if(typeof jszip==="undefined")jszip=require("./jszip").JSZip;_fs=require("fs")}}function parsexmltag(tag){var words=tag.split(/\s+/);var z={0:words[0]};if(words.length===1)return z;(tag.match(/(\w+)="([^"]*)"/g)||[]).map(function(x){var y=x.match(/(\w+)="([^"]*)"/);z[y[1]]=y[2]});return z}function evert(obj){var o={};Object.keys(obj).forEach(function(k){if(obj.hasOwnProperty(k))o[obj[k]]=k});return o}var encodings={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"};var rencoding=evert(encodings);var rencstr="&<>'\"".split("");function unescapexml(text){var s=text+"";for(var y in encodings)s=s.replace(new RegExp(y,"g"),encodings[y]);return s.replace(/_x([0-9a-fA-F]*)_/g,function(m,c){return _chr(parseInt(c,16))})}function escapexml(text){var s=text+"";rencstr.forEach(function(y){s=s.replace(new RegExp(y,"g"),rencoding[y])});return s}function parsexmlbool(value,tag){switch(value){case"0":case 0:case"false":case"FALSE":return false;case"1":case 1:case"true":case"TRUE":return true;default:throw"bad boolean value "+value+" in "+(tag||"?")}}var utf8read=function(orig){var out="",i=0,c=0,c1=0,c2=0,c3=0;while(i<orig.length){c=orig.charCodeAt(i++);if(c<128)out+=_chr(c);else{c2=orig.charCodeAt(i++);if(c>191&&c<224)out+=_chr((c&31)<<6|c2&63);else{c3=orig.charCodeAt(i++);out+=_chr((c&15)<<12|(c2&63)<<6|c3&63)}}}return out};function matchtag(f,g){return new RegExp("<"+f+'(?: xml:space="preserve")?>([^☃]*)</'+f+">",(g||"")+"m")}function parseVector(data){var h=parsexmltag(data);var matches=data.match(new RegExp("<vt:"+h.baseType+">(.*?)</vt:"+h.baseType+">","g"))||[];if(matches.length!=h.size)throw"unexpected vector length "+matches.length+" != "+h.size;var res=[];matches.forEach(function(x){var v=x.replace(/<[/]?vt:variant>/g,"").match(/<vt:([^>]*)>(.*)</);res.push({v:v[2],t:v[1]})});return res}function isval(x){return typeof x!=="undefined"&&x!==null}function readIEEE754(buf,idx,isLE,nl,ml){if(isLE===undefined)isLE=true;if(!nl)nl=8;if(!ml&&nl===8)ml=52;var e,m,el=nl*8-ml-1,eMax=(1<<el)-1,eBias=eMax>>1;var bits=-7,d=isLE?-1:1,i=isLE?nl-1:0,s=buf[idx+i];i+=d;e=s&(1<<-bits)-1;s>>>=-bits;bits+=el;for(;bits>0;e=e*256+buf[idx+i],i+=d,bits-=8);m=e&(1<<-bits)-1;e>>>=-bits;bits+=ml;for(;bits>0;m=m*256+buf[idx+i],i+=d,bits-=8);if(e===eMax)return m?NaN:(s?-1:1)*Infinity;else if(e===0)e=1-eBias;else{m=m+Math.pow(2,ml);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-ml)}function s2a(s){if(typeof Buffer!=="undefined")return new Buffer(s,"binary");var w=s.split("").map(function(x){return x.charCodeAt(0)&255});return w}var __toBuffer;if(typeof Buffer!=="undefined"){Buffer.prototype.hexlify=function(){return this.toString("hex")};Buffer.prototype.utf16le=function(s,e){return this.toString("utf16le",s,e).replace(/\u0000/,"").replace(/[\u0001-\u0006]/,"!")};Buffer.prototype.utf8=function(s,e){return this.toString("utf8",s,e)};Buffer.prototype.lpstr=function(i){var len=this.readUInt32LE(i);return len>0?this.utf8(i+4,i+4+len-1):""};Buffer.prototype.lpwstr=function(i){var len=2*this.readUInt32LE(i);return this.utf8(i+4,i+4+len-1)};if(typeof cptable!=="undefined")Buffer.prototype.lpstr=function(i){var len=this.readUInt32LE(i);if(len===0)return"";if(typeof current_cptable==="undefined")return this.utf8(i+4,i+4+len-1);var t=Array(this.slice(i+4,i+4+len-1));var c,j=i+4,o="",cc;for(;j!=i+4+len;++j){c=this.readUInt8(j);cc=current_cptable.dec[c];if(typeof cc==="undefined"){c=c*256+this.readUInt8(++j);cc=current_cptable.dec[c]}if(typeof cc==="undefined")throw"Unrecognized character "+c.toString(16);if(c===0)break;o+=cc}return o};__toBuffer=function(bufs){return Buffer.concat(bufs[0])}}else{__toBuffer=function(bufs){var x=[];for(var i=0;i!=bufs[0].length;++i){x=x.concat(bufs[0][i])}return x}}var __readUInt8=function(b,idx){return b.readUInt8?b.readUInt8(idx):b[idx]};var __readUInt16LE=function(b,idx){return b.readUInt16LE?b.readUInt16LE(idx):b[idx+1]*(1<<8)+b[idx]};var __readInt16LE=function(b,idx){var u=__readUInt16LE(b,idx);if(!(u&32768))return u;return(65535-u+1)*-1};var __readUInt32LE=function(b,idx){return b.readUInt32LE?b.readUInt32LE(idx):b[idx+3]*(1<<24)+b[idx+2]*(1<<16)+b[idx+1]*(1<<8)+b[idx]};var __readInt32LE=function(b,idx){if(b.readInt32LE)return b.readInt32LE(idx);var u=__readUInt32LE(b,idx);if(!(u&2147483648))return u;return(4294967295-u+1)*-1};var __readDoubleLE=function(b,idx){return b.readDoubleLE?b.readDoubleLE(idx):readIEEE754(b,idx||0)};var __hexlify=function(b){return b.map(function(x){return(x<16?"0":"")+x.toString(16)}).join("")};var __utf16le=function(b,s,e){if(b.utf16le)return b.utf16le(s,e);var str="";for(var i=s;i<e;i+=2)str+=String.fromCharCode(__readUInt16LE(b,i));return str.replace(/\u0000/,"").replace(/[\u0001-\u0006]/,"!")};var __utf8=function(b,s,e){if(b.utf8)return b.utf8(s,e);var str="";for(var i=s;i<e;i++)str+=String.fromCharCode(__readUInt8(b,i));return str};var __lpstr=function(b,i){if(b.lpstr)return b.lpstr(i);var len=__readUInt32LE(b,i);return len>0?__utf8(b,i+4,i+4+len-1):""};var __lpwstr=function(b,i){if(b.lpwstr)return b.lpwstr(i);var len=2*__readUInt32LE(b,i);return __utf8(b,i+4,i+4+len-1)};function bconcat(bufs){return typeof Buffer!=="undefined"?Buffer.concat(bufs):[].concat.apply([],bufs)}function ReadShift(size,t){var o,w,vv,i,loc;t=t||"u";if(size==="ieee754"){size=8;t="f"}switch(size){case 1:o=__readUInt8(this,this.l);break;case 2:o=(t==="u"?__readUInt16LE:__readInt16LE)(this,this.l);break;case 4:o=__readUInt32LE(this,this.l);break;case 8:if(t==="f"){o=__readDoubleLE(this,this.l);break}case 16:o=this.toString("hex",this.l,this.l+size);break;case"utf8":size=t;o=__utf8(this,this.l,this.l+size);break;case"utf16le":size=2*t;o=__utf16le(this,this.l,this.l+size);break;case"lpstr":o=__lpstr(this,this.l);size=5+o.length;break;case"lpwstr":o=__lpwstr(this,this.l);size=5+o.length;if(o[o.length-1]=="\x00")size+=2;break;case"dbcs":size=2*t;o="";loc=this.l;for(i=0;i!=t;++i){if(this.lens&&this.lens.indexOf(loc)!==-1){w=__readUInt8(this,loc);this.l=loc+1;vv=ReadShift.call(this,w?"dbcs":"sbcs",t-i);return o+vv}o+=_getchar(__readUInt16LE(this,loc));loc+=2}break;case"sbcs":size=t;o="";loc=this.l;for(i=0;i!=t;++i){if(this.lens&&this.lens.indexOf(loc)!==-1){w=__readUInt8(this,loc);this.l=loc+1;vv=ReadShift.call(this,w?"dbcs":"sbcs",t-i);return o+vv}o+=_getchar(__readUInt8(this,loc));loc+=1}break;case"cstr":size=0;o="";while((w=__readUInt8(this,this.l+size++))!==0)o+=_getchar(w);break;case"wstr":size=0;o="";while((w=__readUInt16LE(this,this.l+size))!==0){o+=_getchar(w);size+=2}size+=2;break}this.l+=size;return o}function CheckField(hexstr,fld){var b=this.slice(this.l,this.l+hexstr.length/2);var m=b.hexlify?b.hexlify():__hexlify(b);if(m!==hexstr)throw(fld||"")+"Expected "+hexstr+" saw "+m;this.l+=hexstr.length/2}function WarnField(hexstr,fld){var b=this.slice(this.l,this.l+hexstr.length/2);var m=b.hexlify?b.hexlify():__hexlify(b);if(m!==hexstr)console.error((fld||"")+"Expected "+hexstr+" saw "+m);this.l+=hexstr.length/2}function prep_blob(blob,pos){blob.read_shift=ReadShift.bind(blob);blob.chk=CheckField;blob.l=pos||0;var read=ReadShift.bind(blob),chk=CheckField.bind(blob);return[read,chk]}function parsenoop(blob,length){blob.l+=length}var recordhopper=function(data,cb){var tmpbyte,cntbyte,length;prep_blob(data,data.l||0);while(data.l<data.length){var RT=data.read_shift(1);if(RT&128)RT=(RT&127)+((data.read_shift(1)&127)<<7);var R=RecordEnum[RT]||RecordEnum[65535];length=tmpbyte=data.read_shift(1);for(cntbyte=1;cntbyte<4&&tmpbyte&128;++cntbyte)length+=((tmpbyte=data.read_shift(1))&127)<<7*cntbyte;var d=R.f(data,length);if(cb(d,R,RT))return}};var parse_RichStr=function(data,length){var start=data.l;var flags=data.read_shift(1);var fRichStr=flags&1,fExtStr=flags&2;var str=parse_XLWideString(data);var z={t:str,raw:"<t>"+escapexml(str)+"</t>",r:str};if(fRichStr){var dwSizeStrRun=data.read_shift(4)}if(fExtStr){}data.l=start+length;return z};function parse_Cell(data){var col=data.read_shift(4);var iStyleRef=data.read_shift(2);iStyleRef+=data.read_shift(1)<<16;var fPhShow=data.read_shift(1);return{c:col,iStyleRef:iStyleRef}}var parse_CodeName=function(data,length){return parse_XLWideString(data,length)};var parse_RelID=function(data,length){return parse_XLNullableWideString(data,length)};function parse_RkNumber(data){var b=data.slice(data.l,data.l+4);var fX100=b[0]&1,fInt=b[0]&2;data.l+=4;b[0]&=~3;var RK=fInt===0?__readDoubleLE([0,0,0,0,b[0],b[1],b[2],b[3]],0):__readInt32LE(b,0)>>2;return fX100?RK/100:RK}var parse_UncheckedRfX=function(data){var cell={s:{},e:{}};cell.s.r=data.read_shift(4);cell.e.r=data.read_shift(4);cell.s.c=data.read_shift(4);cell.e.c=data.read_shift(4);return cell};var parse_XLNullableWideString=function(data){var cchCharacters=data.read_shift(4);return cchCharacters===0||cchCharacters===4294967295?"":data.read_shift("dbcs",cchCharacters)};var parse_XLWideString=function(data){var cchCharacters=data.read_shift(4);return cchCharacters===0?"":data.read_shift("dbcs",cchCharacters)};function parse_Xnum(data,length){return data.read_shift("ieee754")}var BErr={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var RBErr=evert(BErr);var parse_rs=function(){var tregex=matchtag("t"),rpregex=matchtag("rPr");var parse_rpr=function(rpr,intro,outro){var font={};(rpr.match(/<[^>]*>/g)||[]).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<condense":break;case"<extend":break;case"<shadow":case"<shadow/>":break;case"<charset":break;case"<outline":case"<outline/>":break;case"<rFont":font.name=y.val;break;case"<sz":font.sz=y.val;break;case"<strike":if(!y.val)break;case"<strike/>":font.strike=1;break;case"</strike>":break;case"<u":if(!y.val)break;case"<u/>":font.u=1;break;case"</u>":break;case"<b":if(!y.val)break;case"<b/>":font.b=1;break;case"</b>":break;case"<i":if(!y.val)break;case"<i/>":font.i=1;break;case"</i>":break;case"<color":if(y.rgb)font.color=y.rgb.substr(2,6);break;case"<family":font.family=y.val;break;case"<vertAlign":break;case"<scheme":break;default:if(y[0][2]!=="/")throw"Unrecognized rich format "+y[0]}});var style=[];if(font.b)style.push("font-weight: bold;");if(font.i)style.push("font-style: italic;");intro.push('<span style="'+style.join("")+'">');outro.push("</span>")};function parse_r(r){var terms=[[],"",[]];var t=r.match(tregex);if(!isval(t))return"";terms[1]=t[1];var rpr=r.match(rpregex);if(isval(rpr))parse_rpr(rpr[1],terms[0],terms[2]);return terms[0].join("")+terms[1].replace(/\r\n/g,"<br/>")+terms[2].join("")}return function(rs){return rs.replace(/<r>/g,"").split(/<\/r>/).map(parse_r).join("")}}();var parse_si=function(x){var z={};if(!x)return null;var y;if(x[1]==="t"){z.t=utf8read(unescapexml(x.substr(x.indexOf(">")+1).split(/<\/t>/)[0]));z.raw=x;z.r=z.t}else if(y=x.match(/<r>/)){z.raw=x;z.t=utf8read(unescapexml(x.replace(/<[^>]*>/gm,"")));z.r=parse_rs(x)}return z};var parse_sst_xml=function(data){var s=[];var sst=data.match(new RegExp("<sst([^>]*)>([\\s\\S]*)</sst>","m"));if(isval(sst)){s=sst[2].replace(/<si>/g,"").split(/<\/si>/).map(parse_si).filter(function(x){return x});sst=parsexmltag(sst[1]);s.Count=sst.count;s.Unique=sst.uniqueCount}return s};var parse_BrtBeginSst=function(data,length){return[data.read_shift(4),data.read_shift(4)]};var parse_sst_bin=function(data){var s=[];recordhopper(data,function(val,R){switch(R.n){case"BrtBeginSst":s.Count=val[0];s.Unique=val[1];break;case"BrtSSTItem":s.push(val);break;case"BrtEndSst":return true;default:throw new Error("Unexpected record "+R.n)}});return s};var parse_sst=function(data,name){return name.substr(-4)===".bin"?parse_sst_bin(data):parse_sst_xml(data)};var styles={};function parseNumFmts(t){styles.NumberFmt=[];for(var y in SSF._table)styles.NumberFmt[y]=SSF._table[y];t[0].match(/<[^>]*>/g).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<numFmts":case"</numFmts>":case"<numFmts/>":break;case"<numFmt":{var f=unescapexml(y.formatCode),i=parseInt(y.numFmtId,10);styles.NumberFmt[i]=f;SSF.load(f,i)}break;default:throw"unrecognized "+y[0]+" in numFmts"}})}function parseCXfs(t){styles.CellXf=[];t[0].match(/<[^>]*>/g).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<cellXfs":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":delete y[0];if(y.numFmtId)y.numFmtId=parseInt(y.numFmtId,10);styles.CellXf.push(y);break;case"</xf>":break;case"<alignment":break;case"<protection":case"</protection>":case"<protection/>":break;case"<extLst":case"</extLst>":break;case"<ext":break;default:throw"unrecognized "+y[0]+" in cellXfs"}})}function parse_styles(data){var t;if(t=data.match(/<numFmts([^>]*)>.*<\/numFmts>/))parseNumFmts(t);if(t=data.match(/<cellXfs([^>]*)>.*<\/cellXfs>/))parseCXfs(t);return styles}function parse_BrtFmt(data,length){var ifmt=data.read_shift(2);var stFmtCode=parse_XLWideString(data,length-2);return[ifmt,stFmtCode]}function parse_BrtXF(data,length){var ixfeParent=data.read_shift(2);var ifmt=data.read_shift(2);parsenoop(data,length-4);return{ixfe:ixfeParent,ifmt:ifmt}}function parse_sty_bin(data){styles.NumberFmt=[];for(var y in SSF._table)styles.NumberFmt[y]=SSF._table[y];styles.CellXf=[];var state="";var pass=false;recordhopper(data,function(val,R,RT){switch(R.n){case"BrtFmt":styles.NumberFmt[val[0]]=val[1];SSF.load(val[1],val[0]);break;case"BrtFont":break;case"BrtKnownFonts":break;case"BrtFill":break;case"BrtBorder":break;case"BrtXF":if(state==="CELLXFS"){styles.CellXf.push(val)}break;case"BrtStyle":break;case"BrtRowHdr":break;case"BrtCellMeta":break;case"BrtBeginStyleSheet":break;case"BrtEndStyleSheet":break;case"BrtBeginFmts":state="FMTS";break;case"BrtEndFmts":state="";break;case"BrtBeginFonts":state="FONTS";break;case"BrtEndFonts":state="";break;case"BrtACBegin":state="ACFONTS";break;case"BrtACEnd":state="";break;case"BrtBeginFills":state="FILLS";break;case"BrtEndFills":state="";break;case"BrtBeginBorders":state="BORDERS";break;case"BrtEndBorders":state="";break;case"BrtBeginCellStyleXFs":state="CELLSTYLEXFS";break;case"BrtEndCellStyleXFs":state="";break;case"BrtBeginCellXFs":state="CELLXFS";break;case"BrtEndCellXFs":state="";break;case"BrtBeginStyles":state="STYLES";break;case"BrtEndStyles":state="";break;case"BrtBeginDXFs":state="DXFS";break;case"BrtEndDXFs":state="";break;case"BrtBeginTableStyles":state="TABLESTYLES";break;case"BrtEndTableStyles":state="";break;case"BrtFRTBegin":pass=true;break;case"BrtFRTEnd":pass=false;break}});return styles}var ct2type={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments",foo:"bar"};var XMLNS_CT="http://schemas.openxmlformats.org/package/2006/content-types";function parseProps(data){var p={Company:""},q={};var strings=["Application","DocSecurity","Company","AppVersion"];var bools=["HyperlinksChanged","SharedDoc","LinksUpToDate","ScaleCrop"];var xtra=["HeadingPairs","TitlesOfParts"];var xtracp=["category","contentStatus","lastModifiedBy","lastPrinted","revision","version"];var xtradc=["creator","description","identifier","language","subject","title"];var xtradcterms=["created","modified"];xtra=xtra.concat(xtracp.map(function(x){return"cp:"+x}));xtra=xtra.concat(xtradc.map(function(x){return"dc:"+x}));xtra=xtra.concat(xtradcterms.map(function(x){return"dcterms:"+x}));strings.forEach(function(f){p[f]=(data.match(matchtag(f))||[])[1]});bools.forEach(function(f){p[f]=(data.match(matchtag(f))||[])[1]=="true"});xtra.forEach(function(f){var cur=data.match(new RegExp("<"+f+"[^>]*>(.*)</"+f+">"));if(cur&&cur.length>0)q[f]=cur[1]});if(q.HeadingPairs&&q.TitlesOfParts){var v=parseVector(q.HeadingPairs);var j=0,widx=0;for(var i=0;i!==v.length;++i){switch(v[i].v){case"Worksheets":widx=j;p.Worksheets=+v[++i].v;break;case"Named Ranges":++i;break}}var parts=parseVector(q.TitlesOfParts).map(function(x){return utf8read(x.v)});p.SheetNames=parts.slice(widx,widx+p.Worksheets)}p.Creator=q["dc:creator"];p.LastModifiedBy=q["cp:lastModifiedBy"]; p.CreatedDate=new Date(q["dcterms:created"]);p.ModifiedDate=new Date(q["dcterms:modified"]);return p}function parseDeps(data){var d=[];var l=0,i=1;(data.match(/<[^>]*>/g)||[]).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete y[0];if(y.i)i=y.i;else y.i=i;d.push(y);break}});return d}var ctext={};function parseCT(data){if(!data||!data.match)return data;var ct={workbooks:[],sheets:[],calcchains:[],themes:[],styles:[],coreprops:[],extprops:[],strs:[],comments:[],xmlns:""};(data.match(/<[^>]*>/g)||[]).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<?xml":break;case"<Types":ct.xmlns=y.xmlns;break;case"<Default":ctext[y.Extension]=y.ContentType;break;case"<Override":if(y.ContentType in ct2type)ct[ct2type[y.ContentType]].push(y.PartName);break}});if(ct.xmlns!==XMLNS_CT)throw new Error("Unknown Namespace: "+ct.xmlns);ct.calcchain=ct.calcchains.length>0?ct.calcchains[0]:"";ct.sst=ct.strs.length>0?ct.strs[0]:"";ct.style=ct.styles.length>0?ct.styles[0]:"";delete ct.calcchains;return ct}function parseRels(data,currentFilePath){if(!data)return data;if(currentFilePath.charAt(0)!=="/"){currentFilePath="/"+currentFilePath}var rels={};var resolveRelativePathIntoAbsolute=function(to){var toksFrom=currentFilePath.split("/");toksFrom.pop();var toksTo=to.split("/");var reversed=[];while(toksTo.length!==0){var tokTo=toksTo.shift();if(tokTo===".."){toksFrom.pop()}else if(tokTo!=="."){toksFrom.push(tokTo)}}return toksFrom.join("/")};data.match(/<[^>]*>/g).forEach(function(x){var y=parsexmltag(x);if(y[0]==="<Relationship"){var rel={};rel.Type=y.Type;rel.Target=y.Target;rel.Id=y.Id;rel.TargetMode=y.TargetMode;var canonictarget=resolveRelativePathIntoAbsolute(y.Target);rels[canonictarget]=rel}});return rels}function parseComments(data){if(data.match(/<comments *\/>/)){throw new Error("Not a valid comments xml")}var authors=[];var commentList=[];data.match(/<authors>([^\u2603]*)<\/authors>/m)[1].split("</author>").forEach(function(x){if(x===""||x.trim()==="")return;authors.push(x.match(/<author[^>]*>(.*)/)[1])});data.match(/<commentList>([^\u2603]*)<\/commentList>/m)[1].split("</comment>").forEach(function(x,index){if(x===""||x.trim()==="")return;var y=parsexmltag(x.match(/<comment[^>]*>/)[0]);var comment={author:y.authorId&&authors[y.authorId]?authors[y.authorId]:undefined,ref:y.ref,guid:y.guid};var textMatch=x.match(/<text>([^\u2603]*)<\/text>/m);if(!textMatch||!textMatch[1])return;var rt=parse_si(textMatch[1]);comment.raw=rt.raw;comment.t=rt.t;comment.r=rt.r;commentList.push(comment)});return commentList}function parseCommentsAddToSheets(zip,dirComments,sheets,sheetRels){for(var i=0;i!=dirComments.length;++i){var canonicalpath=dirComments[i];var comments=parseComments(getdata(getzipfile(zip,canonicalpath.replace(/^\//,""))));var sheetNames=Object.keys(sheets);for(var j=0;j!=sheetNames.length;++j){var sheetName=sheetNames[j];var rels=sheetRels[sheetName];if(rels){var rel=rels[canonicalpath];if(rel){insertCommentsIntoSheet(sheetName,sheets[sheetName],comments)}}}}}function insertCommentsIntoSheet(sheetName,sheet,comments){comments.forEach(function(comment){var cell=sheet[comment.ref];if(!cell){cell={};sheet[comment.ref]=cell;var range=decode_range(sheet["!ref"]);var thisCell=decode_cell(comment.ref);if(range.s.r>thisCell.r)range.s.r=thisCell.r;if(range.e.r<thisCell.r)range.e.r=thisCell.r;if(range.s.c>thisCell.c)range.s.c=thisCell.c;if(range.e.c<thisCell.c)range.e.c=thisCell.c;var encoded=encode_range(range);if(encoded!==sheet["!ref"])sheet["!ref"]=encoded}if(!cell.c){cell.c=[]}cell.c.push({a:comment.author,t:comment.t,raw:comment.raw,r:comment.r})})}var strs={};var _ssfopts={};function parse_worksheet(data){if(!data)return data;var s={};var ref=data.match(/<dimension ref="([^"]*)"\s*\/>/);if(ref&&ref.length==2&&ref[1].indexOf(":")!==-1)s["!ref"]=ref[1];var refguess={s:{r:1e6,c:1e6},e:{r:0,c:0}};var q=["v","f"];var sidx=0;if(!data.match(/<sheetData *\/>/))data.match(/<sheetData>([^\u2603]*)<\/sheetData>/m)[1].split("</row>").forEach(function(x){if(x===""||x.trim()==="")return;var row=parsexmltag(x.match(/<row[^>]*>/)[0]);if(refguess.s.r>row.r-1)refguess.s.r=row.r-1;if(refguess.e.r<row.r-1)refguess.e.r=row.r-1;var cells=x.substr(x.indexOf(">")+1).split(/<c /);cells.forEach(function(c,idx){if(c===""||c.trim()==="")return;var cref=c.match(/r="([^"]*)"/);c="<c "+c;if(cref&&cref.length==2){var cref_cell=decode_cell(cref[1]);idx=cref_cell.c}if(refguess.s.c>idx)refguess.s.c=idx;if(refguess.e.c<idx)refguess.e.c=idx;var cell=parsexmltag((c.match(/<c[^>]*>/)||[c])[0]);delete cell[0];var d=c.substr(c.indexOf(">")+1);var p={};q.forEach(function(f){var x=d.match(matchtag(f));if(x)p[f]=unescapexml(x[1])});if(cell.t===undefined&&p.v===undefined){p.t="str";p.v=undefined}else p.t=cell.t?cell.t:"n";switch(p.t){case"n":p.v=parseFloat(p.v);break;case"s":{sidx=parseInt(p.v,10);p.v=strs[sidx].t;p.r=strs[sidx].r}break;case"str":if(p.v)p.v=utf8read(p.v);break;case"inlineStr":var is=d.match(/<is>(.*)<\/is>/);is=is?parse_si(is[1]):{t:"",r:""};p.t="str";p.v=is.t;break;case"b":switch(p.v){case"0":case"FALSE":case"false":case false:p.v=false;break;case"1":case"TRUE":case"true":case true:p.v=true;break;default:throw"Unrecognized boolean: "+p.v}break;case"e":p.raw=RBErr[p.v];break;default:throw"Unrecognized cell type: "+p.t}var fmtid=0;if(cell.s&&styles.CellXf){var cf=styles.CellXf[cell.s];if(cf&&cf.numFmtId)fmtid=cf.numFmtId}p.raw=p.v;p.rawt=p.t;try{p.v=SSF.format(fmtid,p.v,_ssfopts);p.t="str"}catch(e){p.v=p.raw;p.t=p.rawt}s[cell.r]=p})});if(!s["!ref"])s["!ref"]=encode_range(refguess);return s}var parse_BrtRowHdr=function(data,length){var z={};z.r=data.read_shift(4);data.l+=length-4;return z};var parse_BrtWsDim=parse_UncheckedRfX;var parse_BrtWsProp=function(data,length){var z={};data.l+=19;z.name=parse_CodeName(data,length-19);return z};var parse_BrtCellBool=function(data,length){var cell=parse_Cell(data);var fBool=data.read_shift(1);return[cell,fBool,"b"]};var parse_BrtCellError=function(data,length){var cell=parse_Cell(data);var fBool=data.read_shift(1);return[cell,fBool,"e"]};var parse_BrtCellIsst=function(data,length){var cell=parse_Cell(data);var isst=data.read_shift(4);return[cell,isst,"s"]};var parse_BrtCellReal=function(data,length){var cell=parse_Cell(data);var value=parse_Xnum(data);return[cell,value,"n"]};var parse_BrtCellRk=function(data,length){var cell=parse_Cell(data);var value=parse_RkNumber(data);return[cell,value,"n"]};var parse_BrtCellSt=function(data,length){var cell=parse_Cell(data);var value=parse_XLWideString(data);return[cell,value,"str"]};var parse_BrtFmlaError=function(data,length){var cell=parse_Cell(data);var fBool=data.read_shift(1);data.l+=length-9;return[cell,fBool,"e"]};var parse_BrtFmlaNum=function(data,length){var cell=parse_Cell(data);var value=parse_Xnum(data);data.l+=length-16;return[cell,value,"n"]};var parse_BrtCellBlank=parsenoop;var parse_BrtFmlaBool=parsenoop;var parse_BrtFmlaString=parsenoop;var parse_ws_bin=function(data){if(!data)return data;var s={};var ref;var pass=false;var row,p;recordhopper(data,function(val,R){switch(R.n){case"BrtWsDim":ref=val;break;case"BrtRowHdr":row=val;break;case"BrtFmlaError":break;case"BrtFmlaString":break;case"BrtFmlaBool":break;case"BrtFmlaNum":case"BrtCellBool":case"BrtCellError":case"BrtCellIsst":case"BrtCellReal":case"BrtCellRk":p={t:val[2]};switch(val[2]){case"n":p.v=val[1];break;case"s":p.v=strs[val[1]].t;p.r=strs[val[1]].r;break;case"b":p.v=val[1]?true:false;break;case"e":p.raw=val[1];p.v=BErr[p.raw];break;case"str":if(p.v)p.v=utf8read(p.v);break}if(val[3])p.f=val[3];if(styles.CellXf[val[0].iStyleRef])try{p.w=SSF.format(styles.CellXf[val[0].iStyleRef].ifmt,p.v,_ssfopts)}catch(e){}s[encode_cell({c:val[0].c,r:row.r})]=p;break;case"BrtCellBlank":break;case"BrtFmt":break;case"BrtArrFmla":break;case"BrtShrFmla":break;case"BrtBeginSheet":break;case"BrtWsProp":break;case"BrtSheetCalcProp":break;case"BrtBeginWsViews":break;case"BrtBeginWsView":break;case"BrtEndWsView":break;case"BrtEndWsViews":break;case"BrtSel":break;case"BrtACBegin":break;case"BrtACEnd":break;case"BrtWsFmtInfoEx14":break;case"BrtWsFmtInfo":break;case"BrtBeginColInfos":break;case"BrtColInfo":break;case"BrtEndColInfos":break;case"BrtBeginSheetData":break;case"BrtEndSheetData":break;case"BrtSheetProtection":break;case"BrtPrintOptions":break;case"BrtMargins":break;case"BrtPageSetup":break;case"BrtFRTBegin":pass=true;break;case"BrtFRTEnd":pass=false;break;case"BrtEndSheet":break}});s["!ref"]=encode_range(ref);return s};var WBPropsDef={allowRefreshQuery:"0",autoCompressPictures:"1",backupFile:"0",checkCompatibility:"0",codeName:"",date1904:"0",dateCompatibility:"1",filterPrivacy:"0",hidePivotFieldList:"0",promptedSolutions:"0",publishItems:"0",refreshAllConnections:false,saveExternalLinkValues:"1",showBorderUnselectedTables:"1",showInkAnnotation:"1",showObjects:"all",showPivotChartFilter:"0"};var WBViewDef={activeTab:"0",autoFilterDateGrouping:"1",firstSheet:"0",minimized:"0",showHorizontalScroll:"1",showSheetTabs:"1",showVerticalScroll:"1",tabRatio:"600",visibility:"visible"};var SheetDef={state:"visible"};var CalcPrDef={calcCompleted:"true",calcMode:"auto",calcOnSave:"true",concurrentCalc:"true",fullCalcOnLoad:"false",fullPrecision:"true",iterate:"false",iterateCount:"100",iterateDelta:"0.001",refMode:"A1"};var CustomWBViewDef={autoUpdate:"false",changesSavedWin:"false",includeHiddenRowCol:"true",includePrintSettings:"true",maximized:"false",minimized:"false",onlySync:"false",personalView:"false",showComments:"commIndicator",showFormulaBar:"true",showHorizontalScroll:"true",showObjects:"all",showSheetTabs:"true",showStatusbar:"true",showVerticalScroll:"true",tabRatio:"600",xWindow:"0",yWindow:"0"};var XMLNS_WB="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function parse_workbook(data){var wb={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var pass=false;data.match(/<[^>]*>/g).forEach(function(x){var y=parsexmltag(x);switch(y[0]){case"<?xml":break;case"<workbook":wb.xmlns=y.xmlns;break;case"</workbook>":break;case"<fileVersion":delete y[0];wb.AppVersion=y;break;case"<fileVersion/>":break;case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":delete y[0];wb.WBProps=y;break;case"<workbookPr/>":delete y[0];wb.WBProps=y;break;case"<workbookProtection/>":break;case"<bookViews>":case"</bookViews>":break;case"<workbookView":delete y[0];wb.WBView.push(y);break;case"<sheets>":case"</sheets>":break;case"<sheet":delete y[0];y.name=utf8read(y.name);wb.Sheets.push(y);break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":pass=true;break;case"</definedNames>":pass=false;break;case"<definedName":case"<definedName/>":case"</definedName>":break;case"<calcPr":delete y[0];wb.CalcPr=y;break;case"<calcPr/>":delete y[0];wb.CalcPr=y;break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":pass=true;break;case"</ext>":pass=false;break;case"<mx:ArchID":break;case"<mc:AlternateContent":pass=true;break;case"</mc:AlternateContent>":pass=false;break}});if(wb.xmlns!==XMLNS_WB)throw new Error("Unknown Namespace: "+wb.xmlns);var z;for(z in WBPropsDef)if(typeof wb.WBProps[z]==="undefined")wb.WBProps[z]=WBPropsDef[z];for(z in CalcPrDef)if(typeof wb.CalcPr[z]==="undefined")wb.CalcPr[z]=CalcPrDef[z];wb.WBView.forEach(function(w){for(var z in WBViewDef)if(typeof w[z]==="undefined")w[z]=WBViewDef[z]});wb.Sheets.forEach(function(w){for(var z in SheetDef)if(typeof w[z]==="undefined")w[z]=SheetDef[z]});_ssfopts.date1904=parsexmlbool(wb.WBProps.date1904,"date1904");return wb}var parse_BrtBundleSh=function(data,length){var z={};z.hsState=data.read_shift(4);z.iTabID=data.read_shift(4);z.strRelID=parse_RelID(data,length-8);z.name=parse_XLWideString(data);return z};var parse_wb_bin=function(data){var wb={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var pass=false,z;recordhopper(data,function(val,R){switch(R.n){case"BrtBundleSh":wb.Sheets.push(val);break;case"BrtBeginBook":break;case"BrtFileVersion":break;case"BrtWbProp":break;case"BrtBeginBookViews":break;case"BrtBookView":break;case"BrtEndBookViews":break;case"BrtBeginBundleShs":break;case"BrtEndBundleShs":break;case"BrtName":break;case"BrtCalcProp":break;case"BrtBeginPivotCacheIDs":break;case"BrtBeginPivotCacheID":break;case"BrtEndPivotCacheID":break;case"BrtEndPivotCacheIDs":break;case"BrtFileRecover":break;case"BrtFRTBegin":pass=true;break;case"BrtFRTEnd":pass=false;break;case"BrtEndBook":break;case"":break}});for(z in WBPropsDef)if(typeof wb.WBProps[z]==="undefined")wb.WBProps[z]=WBPropsDef[z];for(z in CalcPrDef)if(typeof wb.CalcPr[z]==="undefined")wb.CalcPr[z]=CalcPrDef[z];wb.WBView.forEach(function(w){for(var z in WBViewDef)if(typeof w[z]==="undefined")w[z]=WBViewDef[z]});wb.Sheets.forEach(function(w){for(var z in SheetDef)if(typeof w[z]==="undefined")w[z]=SheetDef[z]});_ssfopts.date1904=parsexmlbool(wb.WBProps.date1904,"date1904");return wb};function parse_wb(data,name){return name.substr(-4)===".bin"?parse_wb_bin(data):parse_workbook(data)}function parse_ws(data,name){return name.substr(-4)===".bin"?parse_ws_bin(data):parse_worksheet(data)}function parse_sty(data,name){return name.substr(-4)===".bin"?parse_sty_bin(data):parse_styles(data)}var RecordEnum={0:{n:"BrtRowHdr",f:parse_BrtRowHdr},1:{n:"BrtCellBlank",f:parse_BrtCellBlank},2:{n:"BrtCellRk",f:parse_BrtCellRk},3:{n:"BrtCellError",f:parse_BrtCellError},4:{n:"BrtCellBool",f:parse_BrtCellBool},5:{n:"BrtCellReal",f:parse_BrtCellReal},6:{n:"BrtCellSt",f:parse_BrtCellSt},7:{n:"BrtCellIsst",f:parse_BrtCellIsst},8:{n:"BrtFmlaString",f:parse_BrtFmlaString},9:{n:"BrtFmlaNum",f:parse_BrtFmlaNum},10:{n:"BrtFmlaBool",f:parse_BrtFmlaBool},11:{n:"BrtFmlaError",f:parse_BrtFmlaError},19:{n:"BrtSSTItem",f:parse_RichStr},20:{n:"BrtPCDIMissing",f:parsenoop},21:{n:"BrtPCDINumber",f:parsenoop},22:{n:"BrtPCDIBoolean",f:parsenoop},23:{n:"BrtPCDIError",f:parsenoop},24:{n:"BrtPCDIString",f:parsenoop},25:{n:"BrtPCDIDatetime",f:parsenoop},26:{n:"BrtPCDIIndex",f:parsenoop},27:{n:"BrtPCDIAMissing",f:parsenoop},28:{n:"BrtPCDIANumber",f:parsenoop},29:{n:"BrtPCDIABoolean",f:parsenoop},30:{n:"BrtPCDIAError",f:parsenoop},31:{n:"BrtPCDIAString",f:parsenoop},32:{n:"BrtPCDIADatetime",f:parsenoop},33:{n:"BrtPCRRecord",f:parsenoop},34:{n:"BrtPCRRecordDt",f:parsenoop},35:{n:"BrtFRTBegin",f:parsenoop},36:{n:"BrtFRTEnd",f:parsenoop},37:{n:"BrtACBegin",f:parsenoop},38:{n:"BrtACEnd",f:parsenoop},39:{n:"BrtName",f:parsenoop},40:{n:"BrtIndexRowBlock",f:parsenoop},42:{n:"BrtIndexBlock",f:parsenoop},43:{n:"BrtFont",f:parsenoop},44:{n:"BrtFmt",f:parse_BrtFmt},45:{n:"BrtFill",f:parsenoop},46:{n:"BrtBorder",f:parsenoop},47:{n:"BrtXF",f:parse_BrtXF},48:{n:"BrtStyle",f:parsenoop},49:{n:"BrtCellMeta",f:parsenoop},50:{n:"BrtValueMeta",f:parsenoop},51:{n:"BrtMdb",f:parsenoop},52:{n:"BrtBeginFmd",f:parsenoop},53:{n:"BrtEndFmd",f:parsenoop},54:{n:"BrtBeginMdx",f:parsenoop},55:{n:"BrtEndMdx",f:parsenoop},56:{n:"BrtBeginMdxTuple",f:parsenoop},57:{n:"BrtEndMdxTuple",f:parsenoop},58:{n:"BrtMdxMbrIstr",f:parsenoop},59:{n:"BrtStr",f:parsenoop},60:{n:"BrtColInfo",f:parsenoop},62:{n:"BrtCellRString",f:parsenoop},64:{n:"BrtDVal",f:parsenoop},65:{n:"BrtSxvcellNum",f:parsenoop},66:{n:"BrtSxvcellStr",f:parsenoop},67:{n:"BrtSxvcellBool",f:parsenoop},68:{n:"BrtSxvcellErr",f:parsenoop},69:{n:"BrtSxvcellDate",f:parsenoop},70:{n:"BrtSxvcellNil",f:parsenoop},128:{n:"BrtFileVersion",f:parsenoop},129:{n:"BrtBeginSheet",f:parsenoop},130:{n:"BrtEndSheet",f:parsenoop},131:{n:"BrtBeginBook",f:parsenoop},132:{n:"BrtEndBook",f:parsenoop},133:{n:"BrtBeginWsViews",f:parsenoop},134:{n:"BrtEndWsViews",f:parsenoop},135:{n:"BrtBeginBookViews",f:parsenoop},136:{n:"BrtEndBookViews",f:parsenoop},137:{n:"BrtBeginWsView",f:parsenoop},138:{n:"BrtEndWsView",f:parsenoop},139:{n:"BrtBeginCsViews",f:parsenoop},140:{n:"BrtEndCsViews",f:parsenoop},141:{n:"BrtBeginCsView",f:parsenoop},142:{n:"BrtEndCsView",f:parsenoop},143:{n:"BrtBeginBundleShs",f:parsenoop},144:{n:"BrtEndBundleShs",f:parsenoop},145:{n:"BrtBeginSheetData",f:parsenoop},146:{n:"BrtEndSheetData",f:parsenoop},147:{n:"BrtWsProp",f:parse_BrtWsProp},148:{n:"BrtWsDim",f:parse_BrtWsDim},151:{n:"BrtPane",f:parsenoop},152:{n:"BrtSel",f:parsenoop},153:{n:"BrtWbProp",f:parsenoop},154:{n:"BrtWbFactoid",f:parsenoop},155:{n:"BrtFileRecover",f:parsenoop},156:{n:"BrtBundleSh",f:parse_BrtBundleSh},157:{n:"BrtCalcProp",f:parsenoop},158:{n:"BrtBookView",f:parsenoop},159:{n:"BrtBeginSst",f:parse_BrtBeginSst},160:{n:"BrtEndSst",f:parsenoop},161:{n:"BrtBeginAFilter",f:parsenoop},162:{n:"BrtEndAFilter",f:parsenoop},163:{n:"BrtBeginFilterColumn",f:parsenoop},164:{n:"BrtEndFilterColumn",f:parsenoop},165:{n:"BrtBeginFilters",f:parsenoop},166:{n:"BrtEndFilters",f:parsenoop},167:{n:"BrtFilter",f:parsenoop},168:{n:"BrtColorFilter",f:parsenoop},169:{n:"BrtIconFilter",f:parsenoop},170:{n:"BrtTop10Filter",f:parsenoop},171:{n:"BrtDynamicFilter",f:parsenoop},172:{n:"BrtBeginCustomFilters",f:parsenoop},173:{n:"BrtEndCustomFilters",f:parsenoop},174:{n:"BrtCustomFilter",f:parsenoop},175:{n:"BrtAFilterDateGroupItem",f:parsenoop},176:{n:"BrtMergeCell",f:parsenoop},177:{n:"BrtBeginMergeCells",f:parsenoop},178:{n:"BrtEndMergeCells",f:parsenoop},179:{n:"BrtBeginPivotCacheDef",f:parsenoop},180:{n:"BrtEndPivotCacheDef",f:parsenoop},181:{n:"BrtBeginPCDFields",f:parsenoop},182:{n:"BrtEndPCDFields",f:parsenoop},183:{n:"BrtBeginPCDField",f:parsenoop},184:{n:"BrtEndPCDField",f:parsenoop},185:{n:"BrtBeginPCDSource",f:parsenoop},186:{n:"BrtEndPCDSource",f:parsenoop},187:{n:"BrtBeginPCDSRange",f:parsenoop},188:{n:"BrtEndPCDSRange",f:parsenoop},189:{n:"BrtBeginPCDFAtbl",f:parsenoop},190:{n:"BrtEndPCDFAtbl",f:parsenoop},191:{n:"BrtBeginPCDIRun",f:parsenoop},192:{n:"BrtEndPCDIRun",f:parsenoop},193:{n:"BrtBeginPivotCacheRecords",f:parsenoop},194:{n:"BrtEndPivotCacheRecords",f:parsenoop},195:{n:"BrtBeginPCDHierarchies",f:parsenoop},196:{n:"BrtEndPCDHierarchies",f:parsenoop},197:{n:"BrtBeginPCDHierarchy",f:parsenoop},198:{n:"BrtEndPCDHierarchy",f:parsenoop},199:{n:"BrtBeginPCDHFieldsUsage",f:parsenoop},200:{n:"BrtEndPCDHFieldsUsage",f:parsenoop},201:{n:"BrtBeginExtConnection",f:parsenoop},202:{n:"BrtEndExtConnection",f:parsenoop},203:{n:"BrtBeginECDbProps",f:parsenoop},204:{n:"BrtEndECDbProps",f:parsenoop},205:{n:"BrtBeginECOlapProps",f:parsenoop},206:{n:"BrtEndECOlapProps",f:parsenoop},207:{n:"BrtBeginPCDSConsol",f:parsenoop},208:{n:"BrtEndPCDSConsol",f:parsenoop},209:{n:"BrtBeginPCDSCPages",f:parsenoop},210:{n:"BrtEndPCDSCPages",f:parsenoop},211:{n:"BrtBeginPCDSCPage",f:parsenoop},212:{n:"BrtEndPCDSCPage",f:parsenoop},213:{n:"BrtBeginPCDSCPItem",f:parsenoop},214:{n:"BrtEndPCDSCPItem",f:parsenoop},215:{n:"BrtBeginPCDSCSets",f:parsenoop},216:{n:"BrtEndPCDSCSets",f:parsenoop},217:{n:"BrtBeginPCDSCSet",f:parsenoop},218:{n:"BrtEndPCDSCSet",f:parsenoop},219:{n:"BrtBeginPCDFGroup",f:parsenoop},220:{n:"BrtEndPCDFGroup",f:parsenoop},221:{n:"BrtBeginPCDFGItems",f:parsenoop},222:{n:"BrtEndPCDFGItems",f:parsenoop},223:{n:"BrtBeginPCDFGRange",f:parsenoop},224:{n:"BrtEndPCDFGRange",f:parsenoop},225:{n:"BrtBeginPCDFGDiscrete",f:parsenoop},226:{n:"BrtEndPCDFGDiscrete",f:parsenoop},227:{n:"BrtBeginPCDSDTupleCache",f:parsenoop},228:{n:"BrtEndPCDSDTupleCache",f:parsenoop},229:{n:"BrtBeginPCDSDTCEntries",f:parsenoop},230:{n:"BrtEndPCDSDTCEntries",f:parsenoop},231:{n:"BrtBeginPCDSDTCEMembers",f:parsenoop},232:{n:"BrtEndPCDSDTCEMembers",f:parsenoop},233:{n:"BrtBeginPCDSDTCEMember",f:parsenoop},234:{n:"BrtEndPCDSDTCEMember",f:parsenoop},235:{n:"BrtBeginPCDSDTCQueries",f:parsenoop},236:{n:"BrtEndPCDSDTCQueries",f:parsenoop},237:{n:"BrtBeginPCDSDTCQuery",f:parsenoop},238:{n:"BrtEndPCDSDTCQuery",f:parsenoop},239:{n:"BrtBeginPCDSDTCSets",f:parsenoop},240:{n:"BrtEndPCDSDTCSets",f:parsenoop},241:{n:"BrtBeginPCDSDTCSet",f:parsenoop},242:{n:"BrtEndPCDSDTCSet",f:parsenoop},243:{n:"BrtBeginPCDCalcItems",f:parsenoop},244:{n:"BrtEndPCDCalcItems",f:parsenoop},245:{n:"BrtBeginPCDCalcItem",f:parsenoop},246:{n:"BrtEndPCDCalcItem",f:parsenoop},247:{n:"BrtBeginPRule",f:parsenoop},248:{n:"BrtEndPRule",f:parsenoop},249:{n:"BrtBeginPRFilters",f:parsenoop},250:{n:"BrtEndPRFilters",f:parsenoop},251:{n:"BrtBeginPRFilter",f:parsenoop},252:{n:"BrtEndPRFilter",f:parsenoop},253:{n:"BrtBeginPNames",f:parsenoop},254:{n:"BrtEndPNames",f:parsenoop},255:{n:"BrtBeginPName",f:parsenoop},256:{n:"BrtEndPName",f:parsenoop},257:{n:"BrtBeginPNPairs",f:parsenoop},258:{n:"BrtEndPNPairs",f:parsenoop},259:{n:"BrtBeginPNPair",f:parsenoop},260:{n:"BrtEndPNPair",f:parsenoop},261:{n:"BrtBeginECWebProps",f:parsenoop},262:{n:"BrtEndECWebProps",f:parsenoop},263:{n:"BrtBeginEcWpTables",f:parsenoop},264:{n:"BrtEndECWPTables",f:parsenoop},265:{n:"BrtBeginECParams",f:parsenoop},266:{n:"BrtEndECParams",f:parsenoop},267:{n:"BrtBeginECParam",f:parsenoop},268:{n:"BrtEndECParam",f:parsenoop},269:{n:"BrtBeginPCDKPIs",f:parsenoop},270:{n:"BrtEndPCDKPIs",f:parsenoop},271:{n:"BrtBeginPCDKPI",f:parsenoop},272:{n:"BrtEndPCDKPI",f:parsenoop},273:{n:"BrtBeginDims",f:parsenoop},274:{n:"BrtEndDims",f:parsenoop},275:{n:"BrtBeginDim",f:parsenoop},276:{n:"BrtEndDim",f:parsenoop},277:{n:"BrtIndexPartEnd",f:parsenoop},278:{n:"BrtBeginStyleSheet",f:parsenoop},279:{n:"BrtEndStyleSheet",f:parsenoop},280:{n:"BrtBeginSXView",f:parsenoop},281:{n:"BrtEndSXVI",f:parsenoop},282:{n:"BrtBeginSXVI",f:parsenoop},283:{n:"BrtBeginSXVIs",f:parsenoop},284:{n:"BrtEndSXVIs",f:parsenoop},285:{n:"BrtBeginSXVD",f:parsenoop},286:{n:"BrtEndSXVD",f:parsenoop},287:{n:"BrtBeginSXVDs",f:parsenoop},288:{n:"BrtEndSXVDs",f:parsenoop},289:{n:"BrtBeginSXPI",f:parsenoop},290:{n:"BrtEndSXPI",f:parsenoop},291:{n:"BrtBeginSXPIs",f:parsenoop},292:{n:"BrtEndSXPIs",f:parsenoop},293:{n:"BrtBeginSXDI",f:parsenoop},294:{n:"BrtEndSXDI",f:parsenoop},295:{n:"BrtBeginSXDIs",f:parsenoop},296:{n:"BrtEndSXDIs",f:parsenoop},297:{n:"BrtBeginSXLI",f:parsenoop},298:{n:"BrtEndSXLI",f:parsenoop},299:{n:"BrtBeginSXLIRws",f:parsenoop},300:{n:"BrtEndSXLIRws",f:parsenoop},301:{n:"BrtBeginSXLICols",f:parsenoop},302:{n:"BrtEndSXLICols",f:parsenoop},303:{n:"BrtBeginSXFormat",f:parsenoop},304:{n:"BrtEndSXFormat",f:parsenoop},305:{n:"BrtBeginSXFormats",f:parsenoop},306:{n:"BrtEndSxFormats",f:parsenoop},307:{n:"BrtBeginSxSelect",f:parsenoop},308:{n:"BrtEndSxSelect",f:parsenoop},309:{n:"BrtBeginISXVDRws",f:parsenoop},310:{n:"BrtEndISXVDRws",f:parsenoop},311:{n:"BrtBeginISXVDCols",f:parsenoop},312:{n:"BrtEndISXVDCols",f:parsenoop},313:{n:"BrtEndSXLocation",f:parsenoop},314:{n:"BrtBeginSXLocation",f:parsenoop},315:{n:"BrtEndSXView",f:parsenoop},316:{n:"BrtBeginSXTHs",f:parsenoop},317:{n:"BrtEndSXTHs",f:parsenoop},318:{n:"BrtBeginSXTH",f:parsenoop},319:{n:"BrtEndSXTH",f:parsenoop},320:{n:"BrtBeginISXTHRws",f:parsenoop},321:{n:"BrtEndISXTHRws",f:parsenoop},322:{n:"BrtBeginISXTHCols",f:parsenoop},323:{n:"BrtEndISXTHCols",f:parsenoop},324:{n:"BrtBeginSXTDMPS",f:parsenoop},325:{n:"BrtEndSXTDMPs",f:parsenoop},326:{n:"BrtBeginSXTDMP",f:parsenoop},327:{n:"BrtEndSXTDMP",f:parsenoop},328:{n:"BrtBeginSXTHItems",f:parsenoop},329:{n:"BrtEndSXTHItems",f:parsenoop},330:{n:"BrtBeginSXTHItem",f:parsenoop},331:{n:"BrtEndSXTHItem",f:parsenoop},332:{n:"BrtBeginMetadata",f:parsenoop},333:{n:"BrtEndMetadata",f:parsenoop},334:{n:"BrtBeginEsmdtinfo",f:parsenoop},335:{n:"BrtMdtinfo",f:parsenoop},336:{n:"BrtEndEsmdtinfo",f:parsenoop},337:{n:"BrtBeginEsmdb",f:parsenoop},338:{n:"BrtEndEsmdb",f:parsenoop},339:{n:"BrtBeginEsfmd",f:parsenoop},340:{n:"BrtEndEsfmd",f:parsenoop},341:{n:"BrtBeginSingleCells",f:parsenoop},342:{n:"BrtEndSingleCells",f:parsenoop},343:{n:"BrtBeginList",f:parsenoop},344:{n:"BrtEndList",f:parsenoop},345:{n:"BrtBeginListCols",f:parsenoop},346:{n:"BrtEndListCols",f:parsenoop},347:{n:"BrtBeginListCol",f:parsenoop},348:{n:"BrtEndListCol",f:parsenoop},349:{n:"BrtBeginListXmlCPr",f:parsenoop},350:{n:"BrtEndListXmlCPr",f:parsenoop},351:{n:"BrtListCCFmla",f:parsenoop},352:{n:"BrtListTrFmla",f:parsenoop},353:{n:"BrtBeginExternals",f:parsenoop},354:{n:"BrtEndExternals",f:parsenoop},355:{n:"BrtSupBookSrc",f:parsenoop},357:{n:"BrtSupSelf",f:parsenoop},358:{n:"BrtSupSame",f:parsenoop},359:{n:"BrtSupTabs",f:parsenoop},360:{n:"BrtBeginSupBook",f:parsenoop},361:{n:"BrtPlaceholderName",f:parsenoop},362:{n:"BrtExternSheet",f:parsenoop},363:{n:"BrtExternTableStart",f:parsenoop},364:{n:"BrtExternTableEnd",f:parsenoop},366:{n:"BrtExternRowHdr",f:parsenoop},367:{n:"BrtExternCellBlank",f:parsenoop},368:{n:"BrtExternCellReal",f:parsenoop},369:{n:"BrtExternCellBool",f:parsenoop},370:{n:"BrtExternCellError",f:parsenoop},371:{n:"BrtExternCellString",f:parsenoop},372:{n:"BrtBeginEsmdx",f:parsenoop},373:{n:"BrtEndEsmdx",f:parsenoop},374:{n:"BrtBeginMdxSet",f:parsenoop},375:{n:"BrtEndMdxSet",f:parsenoop},376:{n:"BrtBeginMdxMbrProp",f:parsenoop},377:{n:"BrtEndMdxMbrProp",f:parsenoop},378:{n:"BrtBeginMdxKPI",f:parsenoop},379:{n:"BrtEndMdxKPI",f:parsenoop},380:{n:"BrtBeginEsstr",f:parsenoop},381:{n:"BrtEndEsstr",f:parsenoop},382:{n:"BrtBeginPRFItem",f:parsenoop},383:{n:"BrtEndPRFItem",f:parsenoop},384:{n:"BrtBeginPivotCacheIDs",f:parsenoop},385:{n:"BrtEndPivotCacheIDs",f:parsenoop},386:{n:"BrtBeginPivotCacheID",f:parsenoop},387:{n:"BrtEndPivotCacheID",f:parsenoop},388:{n:"BrtBeginISXVIs",f:parsenoop},389:{n:"BrtEndISXVIs",f:parsenoop},390:{n:"BrtBeginColInfos",f:parsenoop},391:{n:"BrtEndColInfos",f:parsenoop},392:{n:"BrtBeginRwBrk",f:parsenoop},393:{n:"BrtEndRwBrk",f:parsenoop},394:{n:"BrtBeginColBrk",f:parsenoop},395:{n:"BrtEndColBrk",f:parsenoop},396:{n:"BrtBrk",f:parsenoop},397:{n:"BrtUserBookView",f:parsenoop},398:{n:"BrtInfo",f:parsenoop},399:{n:"BrtCUsr",f:parsenoop},400:{n:"BrtUsr",f:parsenoop},401:{n:"BrtBeginUsers",f:parsenoop},403:{n:"BrtEOF",f:parsenoop},404:{n:"BrtUCR",f:parsenoop},405:{n:"BrtRRInsDel",f:parsenoop},406:{n:"BrtRREndInsDel",f:parsenoop},407:{n:"BrtRRMove",f:parsenoop},408:{n:"BrtRREndMove",f:parsenoop},409:{n:"BrtRRChgCell",f:parsenoop},410:{n:"BrtRREndChgCell",f:parsenoop},411:{n:"BrtRRHeader",f:parsenoop},412:{n:"BrtRRUserView",f:parsenoop},413:{n:"BrtRRRenSheet",f:parsenoop},414:{n:"BrtRRInsertSh",f:parsenoop},415:{n:"BrtRRDefName",f:parsenoop},416:{n:"BrtRRNote",f:parsenoop},417:{n:"BrtRRConflict",f:parsenoop},418:{n:"BrtRRTQSIF",f:parsenoop},419:{n:"BrtRRFormat",f:parsenoop},420:{n:"BrtRREndFormat",f:parsenoop},421:{n:"BrtRRAutoFmt",f:parsenoop},422:{n:"BrtBeginUserShViews",f:parsenoop},423:{n:"BrtBeginUserShView",f:parsenoop},424:{n:"BrtEndUserShView",f:parsenoop},425:{n:"BrtEndUserShViews",f:parsenoop},426:{n:"BrtArrFmla",f:parsenoop},427:{n:"BrtShrFmla",f:parsenoop},428:{n:"BrtTable",f:parsenoop},429:{n:"BrtBeginExtConnections",f:parsenoop},430:{n:"BrtEndExtConnections",f:parsenoop},431:{n:"BrtBeginPCDCalcMems",f:parsenoop},432:{n:"BrtEndPCDCalcMems",f:parsenoop},433:{n:"BrtBeginPCDCalcMem",f:parsenoop},434:{n:"BrtEndPCDCalcMem",f:parsenoop},435:{n:"BrtBeginPCDHGLevels",f:parsenoop},436:{n:"BrtEndPCDHGLevels",f:parsenoop},437:{n:"BrtBeginPCDHGLevel",f:parsenoop},438:{n:"BrtEndPCDHGLevel",f:parsenoop},439:{n:"BrtBeginPCDHGLGroups",f:parsenoop},440:{n:"BrtEndPCDHGLGroups",f:parsenoop},441:{n:"BrtBeginPCDHGLGroup",f:parsenoop},442:{n:"BrtEndPCDHGLGroup",f:parsenoop},443:{n:"BrtBeginPCDHGLGMembers",f:parsenoop},444:{n:"BrtEndPCDHGLGMembers",f:parsenoop},445:{n:"BrtBeginPCDHGLGMember",f:parsenoop},446:{n:"BrtEndPCDHGLGMember",f:parsenoop},447:{n:"BrtBeginQSI",f:parsenoop},448:{n:"BrtEndQSI",f:parsenoop},449:{n:"BrtBeginQSIR",f:parsenoop},450:{n:"BrtEndQSIR",f:parsenoop},451:{n:"BrtBeginDeletedNames",f:parsenoop},452:{n:"BrtEndDeletedNames",f:parsenoop},453:{n:"BrtBeginDeletedName",f:parsenoop},454:{n:"BrtEndDeletedName",f:parsenoop},455:{n:"BrtBeginQSIFs",f:parsenoop},456:{n:"BrtEndQSIFs",f:parsenoop},457:{n:"BrtBeginQSIF",f:parsenoop},458:{n:"BrtEndQSIF",f:parsenoop},459:{n:"BrtBeginAutoSortScope",f:parsenoop},460:{n:"BrtEndAutoSortScope",f:parsenoop},461:{n:"BrtBeginConditionalFormatting",f:parsenoop},462:{n:"BrtEndConditionalFormatting",f:parsenoop},463:{n:"BrtBeginCFRule",f:parsenoop},464:{n:"BrtEndCFRule",f:parsenoop},465:{n:"BrtBeginIconSet",f:parsenoop},466:{n:"BrtEndIconSet",f:parsenoop},467:{n:"BrtBeginDatabar",f:parsenoop},468:{n:"BrtEndDatabar",f:parsenoop},469:{n:"BrtBeginColorScale",f:parsenoop},470:{n:"BrtEndColorScale",f:parsenoop},471:{n:"BrtCFVO",f:parsenoop},472:{n:"BrtExternValueMeta",f:parsenoop},473:{n:"BrtBeginColorPalette",f:parsenoop},474:{n:"BrtEndColorPalette",f:parsenoop},475:{n:"BrtIndexedColor",f:parsenoop},476:{n:"BrtMargins",f:parsenoop},477:{n:"BrtPrintOptions",f:parsenoop},478:{n:"BrtPageSetup",f:parsenoop},479:{n:"BrtBeginHeaderFooter",f:parsenoop},480:{n:"BrtEndHeaderFooter",f:parsenoop},481:{n:"BrtBeginSXCrtFormat",f:parsenoop},482:{n:"BrtEndSXCrtFormat",f:parsenoop},483:{n:"BrtBeginSXCrtFormats",f:parsenoop},484:{n:"BrtEndSXCrtFormats",f:parsenoop},485:{n:"BrtWsFmtInfo",f:parsenoop},486:{n:"BrtBeginMgs",f:parsenoop},487:{n:"BrtEndMGs",f:parsenoop},488:{n:"BrtBeginMGMaps",f:parsenoop},489:{n:"BrtEndMGMaps",f:parsenoop},490:{n:"BrtBeginMG",f:parsenoop},491:{n:"BrtEndMG",f:parsenoop},492:{n:"BrtBeginMap",f:parsenoop},493:{n:"BrtEndMap",f:parsenoop},494:{n:"BrtHLink",f:parsenoop},495:{n:"BrtBeginDCon",f:parsenoop},496:{n:"BrtEndDCon",f:parsenoop},497:{n:"BrtBeginDRefs",f:parsenoop},498:{n:"BrtEndDRefs",f:parsenoop},499:{n:"BrtDRef",f:parsenoop},500:{n:"BrtBeginScenMan",f:parsenoop},501:{n:"BrtEndScenMan",f:parsenoop},502:{n:"BrtBeginSct",f:parsenoop},503:{n:"BrtEndSct",f:parsenoop},504:{n:"BrtSlc",f:parsenoop},505:{n:"BrtBeginDXFs",f:parsenoop},506:{n:"BrtEndDXFs",f:parsenoop},507:{n:"BrtDXF",f:parsenoop},508:{n:"BrtBeginTableStyles",f:parsenoop},509:{n:"BrtEndTableStyles",f:parsenoop},510:{n:"BrtBeginTableStyle",f:parsenoop},511:{n:"BrtEndTableStyle",f:parsenoop},512:{n:"BrtTableStyleElement",f:parsenoop},513:{n:"BrtTableStyleClient",f:parsenoop},514:{n:"BrtBeginVolDeps",f:parsenoop},515:{n:"BrtEndVolDeps",f:parsenoop},516:{n:"BrtBeginVolType",f:parsenoop},517:{n:"BrtEndVolType",f:parsenoop},518:{n:"BrtBeginVolMain",f:parsenoop},519:{n:"BrtEndVolMain",f:parsenoop},520:{n:"BrtBeginVolTopic",f:parsenoop},521:{n:"BrtEndVolTopic",f:parsenoop},522:{n:"BrtVolSubtopic",f:parsenoop},523:{n:"BrtVolRef",f:parsenoop},524:{n:"BrtVolNum",f:parsenoop},525:{n:"BrtVolErr",f:parsenoop},526:{n:"BrtVolStr",f:parsenoop},527:{n:"BrtVolBool",f:parsenoop},530:{n:"BrtBeginSortState",f:parsenoop},531:{n:"BrtEndSortState",f:parsenoop},532:{n:"BrtBeginSortCond",f:parsenoop},533:{n:"BrtEndSortCond",f:parsenoop},534:{n:"BrtBookProtection",f:parsenoop},535:{n:"BrtSheetProtection",f:parsenoop},536:{n:"BrtRangeProtection",f:parsenoop},537:{n:"BrtPhoneticInfo",f:parsenoop},538:{n:"BrtBeginECTxtWiz",f:parsenoop},539:{n:"BrtEndECTxtWiz",f:parsenoop},540:{n:"BrtBeginECTWFldInfoLst",f:parsenoop},541:{n:"BrtEndECTWFldInfoLst",f:parsenoop},542:{n:"BrtBeginECTwFldInfo",f:parsenoop},548:{n:"BrtFileSharing",f:parsenoop},549:{n:"BrtOleSize",f:parsenoop},550:{n:"BrtDrawing",f:parsenoop},551:{n:"BrtLegacyDrawing",f:parsenoop},552:{n:"BrtLegacyDrawingHF",f:parsenoop},553:{n:"BrtWebOpt",f:parsenoop},554:{n:"BrtBeginWebPubItems",f:parsenoop},555:{n:"BrtEndWebPubItems",f:parsenoop},556:{n:"BrtBeginWebPubItem",f:parsenoop},557:{n:"BrtEndWebPubItem",f:parsenoop},558:{n:"BrtBeginSXCondFmt",f:parsenoop},559:{n:"BrtEndSXCondFmt",f:parsenoop},560:{n:"BrtBeginSXCondFmts",f:parsenoop},561:{n:"BrtEndSXCondFmts",f:parsenoop},562:{n:"BrtBkHim",f:parsenoop},564:{n:"BrtColor",f:parsenoop},565:{n:"BrtBeginIndexedColors",f:parsenoop},566:{n:"BrtEndIndexedColors",f:parsenoop},569:{n:"BrtBeginMRUColors",f:parsenoop},570:{n:"BrtEndMRUColors",f:parsenoop},572:{n:"BrtMRUColor",f:parsenoop},573:{n:"BrtBeginDVals",f:parsenoop},574:{n:"BrtEndDVals",f:parsenoop},577:{n:"BrtSupNameStart",f:parsenoop},578:{n:"BrtSupNameValueStart",f:parsenoop},579:{n:"BrtSupNameValueEnd",f:parsenoop},580:{n:"BrtSupNameNum",f:parsenoop},581:{n:"BrtSupNameErr",f:parsenoop},582:{n:"BrtSupNameSt",f:parsenoop},583:{n:"BrtSupNameNil",f:parsenoop},584:{n:"BrtSupNameBool",f:parsenoop},585:{n:"BrtSupNameFmla",f:parsenoop},586:{n:"BrtSupNameBits",f:parsenoop},587:{n:"BrtSupNameEnd",f:parsenoop},588:{n:"BrtEndSupBook",f:parsenoop},589:{n:"BrtCellSmartTagProperty",f:parsenoop},590:{n:"BrtBeginCellSmartTag",f:parsenoop},591:{n:"BrtEndCellSmartTag",f:parsenoop},592:{n:"BrtBeginCellSmartTags",f:parsenoop},593:{n:"BrtEndCellSmartTags",f:parsenoop},594:{n:"BrtBeginSmartTags",f:parsenoop},595:{n:"BrtEndSmartTags",f:parsenoop},596:{n:"BrtSmartTagType",f:parsenoop},597:{n:"BrtBeginSmartTagTypes",f:parsenoop},598:{n:"BrtEndSmartTagTypes",f:parsenoop},599:{n:"BrtBeginSXFilters",f:parsenoop},600:{n:"BrtEndSXFilters",f:parsenoop},601:{n:"BrtBeginSXFILTER",f:parsenoop},602:{n:"BrtEndSXFilter",f:parsenoop},603:{n:"BrtBeginFills",f:parsenoop},604:{n:"BrtEndFills",f:parsenoop},605:{n:"BrtBeginCellWatches",f:parsenoop},606:{n:"BrtEndCellWatches",f:parsenoop},607:{n:"BrtCellWatch",f:parsenoop},608:{n:"BrtBeginCRErrs",f:parsenoop},609:{n:"BrtEndCRErrs",f:parsenoop},610:{n:"BrtCrashRecErr",f:parsenoop},611:{n:"BrtBeginFonts",f:parsenoop},612:{n:"BrtEndFonts",f:parsenoop},613:{n:"BrtBeginBorders",f:parsenoop},614:{n:"BrtEndBorders",f:parsenoop},615:{n:"BrtBeginFmts",f:parsenoop},616:{n:"BrtEndFmts",f:parsenoop},617:{n:"BrtBeginCellXFs",f:parsenoop},618:{n:"BrtEndCellXFs",f:parsenoop},619:{n:"BrtBeginStyles",f:parsenoop},620:{n:"BrtEndStyles",f:parsenoop},625:{n:"BrtBigName",f:parsenoop},626:{n:"BrtBeginCellStyleXFs",f:parsenoop},627:{n:"BrtEndCellStyleXFs",f:parsenoop},628:{n:"BrtBeginComments",f:parsenoop},629:{n:"BrtEndComments",f:parsenoop},630:{n:"BrtBeginCommentAuthors",f:parsenoop},631:{n:"BrtEndCommentAuthors",f:parsenoop},632:{n:"BrtCommentAuthor",f:parsenoop},633:{n:"BrtBeginCommentList",f:parsenoop},634:{n:"BrtEndCommentList",f:parsenoop},635:{n:"BrtBeginComment",f:parsenoop},636:{n:"BrtEndComment",f:parsenoop},637:{n:"BrtCommentText",f:parsenoop},638:{n:"BrtBeginOleObjects",f:parsenoop},639:{n:"BrtOleObject",f:parsenoop},640:{n:"BrtEndOleObjects",f:parsenoop},641:{n:"BrtBeginSxrules",f:parsenoop},642:{n:"BrtEndSxRules",f:parsenoop},643:{n:"BrtBeginActiveXControls",f:parsenoop},644:{n:"BrtActiveX",f:parsenoop},645:{n:"BrtEndActiveXControls",f:parsenoop},646:{n:"BrtBeginPCDSDTCEMembersSortBy",f:parsenoop},648:{n:"BrtBeginCellIgnoreECs",f:parsenoop},649:{n:"BrtCellIgnoreEC",f:parsenoop},650:{n:"BrtEndCellIgnoreECs",f:parsenoop},651:{n:"BrtCsProp",f:parsenoop},652:{n:"BrtCsPageSetup",f:parsenoop},653:{n:"BrtBeginUserCsViews",f:parsenoop},654:{n:"BrtEndUserCsViews",f:parsenoop},655:{n:"BrtBeginUserCsView",f:parsenoop},656:{n:"BrtEndUserCsView",f:parsenoop},657:{n:"BrtBeginPcdSFCIEntries",f:parsenoop},658:{n:"BrtEndPCDSFCIEntries",f:parsenoop},659:{n:"BrtPCDSFCIEntry",f:parsenoop},660:{n:"BrtBeginListParts",f:parsenoop},661:{n:"BrtListPart",f:parsenoop},662:{n:"BrtEndListParts",f:parsenoop},663:{n:"BrtSheetCalcProp",f:parsenoop},664:{n:"BrtBeginFnGroup",f:parsenoop},665:{n:"BrtFnGroup",f:parsenoop},666:{n:"BrtEndFnGroup",f:parsenoop},667:{n:"BrtSupAddin",f:parsenoop},668:{n:"BrtSXTDMPOrder",f:parsenoop},669:{n:"BrtCsProtection",f:parsenoop},671:{n:"BrtBeginWsSortMap",f:parsenoop},672:{n:"BrtEndWsSortMap",f:parsenoop},673:{n:"BrtBeginRRSort",f:parsenoop},674:{n:"BrtEndRRSort",f:parsenoop},675:{n:"BrtRRSortItem",f:parsenoop},676:{n:"BrtFileSharingIso",f:parsenoop},677:{n:"BrtBookProtectionIso",f:parsenoop},678:{n:"BrtSheetProtectionIso",f:parsenoop},679:{n:"BrtCsProtectionIso",f:parsenoop},680:{n:"BrtRangeProtectionIso",f:parsenoop},1024:{n:"BrtRwDescent",f:parsenoop},1025:{n:"BrtKnownFonts",f:parsenoop},1026:{n:"BrtBeginSXTupleSet",f:parsenoop},1027:{n:"BrtEndSXTupleSet",f:parsenoop},1028:{n:"BrtBeginSXTupleSetHeader",f:parsenoop},1029:{n:"BrtEndSXTupleSetHeader",f:parsenoop},1030:{n:"BrtSXTupleSetHeaderItem",f:parsenoop},1031:{n:"BrtBeginSXTupleSetData",f:parsenoop},1032:{n:"BrtEndSXTupleSetData",f:parsenoop},1033:{n:"BrtBeginSXTupleSetRow",f:parsenoop},1034:{n:"BrtEndSXTupleSetRow",f:parsenoop},1035:{n:"BrtSXTupleSetRowItem",f:parsenoop},1036:{n:"BrtNameExt",f:parsenoop},1037:{n:"BrtPCDH14",f:parsenoop},1038:{n:"BrtBeginPCDCalcMem14",f:parsenoop},1039:{n:"BrtEndPCDCalcMem14",f:parsenoop},1040:{n:"BrtSXTH14",f:parsenoop},1041:{n:"BrtBeginSparklineGroup",f:parsenoop},1042:{n:"BrtEndSparklineGroup",f:parsenoop},1043:{n:"BrtSparkline",f:parsenoop},1044:{n:"BrtSXDI14",f:parsenoop},1045:{n:"BrtWsFmtInfoEx14",f:parsenoop},1046:{n:"BrtBeginConditionalFormatting14",f:parsenoop},1047:{n:"BrtEndConditionalFormatting14",f:parsenoop},1048:{n:"BrtBeginCFRule14",f:parsenoop},1049:{n:"BrtEndCFRule14",f:parsenoop},1050:{n:"BrtCFVO14",f:parsenoop},1051:{n:"BrtBeginDatabar14",f:parsenoop},1052:{n:"BrtBeginIconSet14",f:parsenoop},1053:{n:"BrtDVal14",f:parsenoop},1054:{n:"BrtBeginDVals14",f:parsenoop},1055:{n:"BrtColor14",f:parsenoop},1056:{n:"BrtBeginSparklines",f:parsenoop},1057:{n:"BrtEndSparklines",f:parsenoop},1058:{n:"BrtBeginSparklineGroups",f:parsenoop},1059:{n:"BrtEndSparklineGroups",f:parsenoop},1061:{n:"BrtSXVD14",f:parsenoop},1062:{n:"BrtBeginSxview14",f:parsenoop},1063:{n:"BrtEndSxview14",f:parsenoop},1066:{n:"BrtBeginPCD14",f:parsenoop},1067:{n:"BrtEndPCD14",f:parsenoop},1068:{n:"BrtBeginExtConn14",f:parsenoop},1069:{n:"BrtEndExtConn14",f:parsenoop},1070:{n:"BrtBeginSlicerCacheIDs",f:parsenoop},1071:{n:"BrtEndSlicerCacheIDs",f:parsenoop},1072:{n:"BrtBeginSlicerCacheID",f:parsenoop},1073:{n:"BrtEndSlicerCacheID",f:parsenoop},1075:{n:"BrtBeginSlicerCache",f:parsenoop},1076:{n:"BrtEndSlicerCache",f:parsenoop},1077:{n:"BrtBeginSlicerCacheDef",f:parsenoop},1078:{n:"BrtEndSlicerCacheDef",f:parsenoop},1079:{n:"BrtBeginSlicersEx",f:parsenoop},1080:{n:"BrtEndSlicersEx",f:parsenoop},1081:{n:"BrtBeginSlicerEx",f:parsenoop},1082:{n:"BrtEndSlicerEx",f:parsenoop},1083:{n:"BrtBeginSlicer",f:parsenoop},1084:{n:"BrtEndSlicer",f:parsenoop},1085:{n:"BrtSlicerCachePivotTables",f:parsenoop},1086:{n:"BrtBeginSlicerCacheOlapImpl",f:parsenoop},1087:{n:"BrtEndSlicerCacheOlapImpl",f:parsenoop},1088:{n:"BrtBeginSlicerCacheLevelsData",f:parsenoop},1089:{n:"BrtEndSlicerCacheLevelsData",f:parsenoop},1090:{n:"BrtBeginSlicerCacheLevelData",f:parsenoop},1091:{n:"BrtEndSlicerCacheLevelData",f:parsenoop},1092:{n:"BrtBeginSlicerCacheSiRanges",f:parsenoop},1093:{n:"BrtEndSlicerCacheSiRanges",f:parsenoop},1094:{n:"BrtBeginSlicerCacheSiRange",f:parsenoop},1095:{n:"BrtEndSlicerCacheSiRange",f:parsenoop},1096:{n:"BrtSlicerCacheOlapItem",f:parsenoop},1097:{n:"BrtBeginSlicerCacheSelections",f:parsenoop},1098:{n:"BrtSlicerCacheSelection",f:parsenoop},1099:{n:"BrtEndSlicerCacheSelections",f:parsenoop},1100:{n:"BrtBeginSlicerCacheNative",f:parsenoop},1101:{n:"BrtEndSlicerCacheNative",f:parsenoop},1102:{n:"BrtSlicerCacheNativeItem",f:parsenoop},1103:{n:"BrtRangeProtection14",f:parsenoop},1104:{n:"BrtRangeProtectionIso14",f:parsenoop},1105:{n:"BrtCellIgnoreEC14",f:parsenoop},1111:{n:"BrtList14",f:parsenoop},1112:{n:"BrtCFIcon",f:parsenoop},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs",f:parsenoop},1114:{n:"BrtEndSlicerCachesPivotCacheIDs",f:parsenoop},1115:{n:"BrtBeginSlicers",f:parsenoop},1116:{n:"BrtEndSlicers",f:parsenoop},1117:{n:"BrtWbProp14",f:parsenoop},1118:{n:"BrtBeginSXEdit",f:parsenoop},1119:{n:"BrtEndSXEdit",f:parsenoop},1120:{n:"BrtBeginSXEdits",f:parsenoop},1121:{n:"BrtEndSXEdits",f:parsenoop},1122:{n:"BrtBeginSXChange",f:parsenoop},1123:{n:"BrtEndSXChange",f:parsenoop},1124:{n:"BrtBeginSXChanges",f:parsenoop},1125:{n:"BrtEndSXChanges",f:parsenoop},1126:{n:"BrtSXTupleItems",f:parsenoop},1128:{n:"BrtBeginSlicerStyle",f:parsenoop},1129:{n:"BrtEndSlicerStyle",f:parsenoop},1130:{n:"BrtSlicerStyleElement",f:parsenoop},1131:{n:"BrtBeginStyleSheetExt14",f:parsenoop},1132:{n:"BrtEndStyleSheetExt14",f:parsenoop},1133:{n:"BrtBeginSlicerCachesPivotCacheID",f:parsenoop},1134:{n:"BrtEndSlicerCachesPivotCacheID",f:parsenoop},1135:{n:"BrtBeginConditionalFormattings",f:parsenoop},1136:{n:"BrtEndConditionalFormattings",f:parsenoop},1137:{n:"BrtBeginPCDCalcMemExt",f:parsenoop},1138:{n:"BrtEndPCDCalcMemExt",f:parsenoop},1139:{n:"BrtBeginPCDCalcMemsExt",f:parsenoop},1140:{n:"BrtEndPCDCalcMemsExt",f:parsenoop},1141:{n:"BrtPCDField14",f:parsenoop},1142:{n:"BrtBeginSlicerStyles",f:parsenoop},1143:{n:"BrtEndSlicerStyles",f:parsenoop},1144:{n:"BrtBeginSlicerStyleElements",f:parsenoop},1145:{n:"BrtEndSlicerStyleElements",f:parsenoop},1146:{n:"BrtCFRuleExt",f:parsenoop},1147:{n:"BrtBeginSXCondFmt14",f:parsenoop},1148:{n:"BrtEndSXCondFmt14",f:parsenoop},1149:{n:"BrtBeginSXCondFmts14",f:parsenoop},1150:{n:"BrtEndSXCondFmts14",f:parsenoop},1152:{n:"BrtBeginSortCond14",f:parsenoop},1153:{n:"BrtEndSortCond14",f:parsenoop},1154:{n:"BrtEndDVals14",f:parsenoop},1155:{n:"BrtEndIconSet14",f:parsenoop},1156:{n:"BrtEndDatabar14",f:parsenoop},1157:{n:"BrtBeginColorScale14",f:parsenoop},1158:{n:"BrtEndColorScale14",f:parsenoop},1159:{n:"BrtBeginSxrules14",f:parsenoop},1160:{n:"BrtEndSxrules14",f:parsenoop},1161:{n:"BrtBeginPRule14",f:parsenoop},1162:{n:"BrtEndPRule14",f:parsenoop},1163:{n:"BrtBeginPRFilters14",f:parsenoop},1164:{n:"BrtEndPRFilters14",f:parsenoop},1165:{n:"BrtBeginPRFilter14",f:parsenoop},1166:{n:"BrtEndPRFilter14",f:parsenoop},1167:{n:"BrtBeginPRFItem14",f:parsenoop},1168:{n:"BrtEndPRFItem14",f:parsenoop},1169:{n:"BrtBeginCellIgnoreECs14",f:parsenoop},1170:{n:"BrtEndCellIgnoreECs14",f:parsenoop},1171:{n:"BrtDxf14",f:parsenoop},1172:{n:"BrtBeginDxF14s",f:parsenoop},1173:{n:"BrtEndDxf14s",f:parsenoop},1177:{n:"BrtFilter14",f:parsenoop},1178:{n:"BrtBeginCustomFilters14",f:parsenoop},1180:{n:"BrtCustomFilter14",f:parsenoop},1181:{n:"BrtIconFilter14",f:parsenoop},1182:{n:"BrtPivotCacheConnectionName",f:parsenoop},2048:{n:"BrtBeginDecoupledPivotCacheIDs",f:parsenoop},2049:{n:"BrtEndDecoupledPivotCacheIDs",f:parsenoop},2050:{n:"BrtDecoupledPivotCacheID",f:parsenoop},2051:{n:"BrtBeginPivotTableRefs",f:parsenoop},2052:{n:"BrtEndPivotTableRefs",f:parsenoop},2053:{n:"BrtPivotTableRef",f:parsenoop},2054:{n:"BrtSlicerCacheBookPivotTables",f:parsenoop},2055:{n:"BrtBeginSxvcells",f:parsenoop},2056:{n:"BrtEndSxvcells",f:parsenoop},2057:{n:"BrtBeginSxRow",f:parsenoop},2058:{n:"BrtEndSxRow",f:parsenoop},2060:{n:"BrtPcdCalcMem15",f:parsenoop},2067:{n:"BrtQsi15",f:parsenoop},2068:{n:"BrtBeginWebExtensions",f:parsenoop},2069:{n:"BrtEndWebExtensions",f:parsenoop},2070:{n:"BrtWebExtension",f:parsenoop},2071:{n:"BrtAbsPath15",f:parsenoop},2072:{n:"BrtBeginPivotTableUISettings",f:parsenoop},2073:{n:"BrtEndPivotTableUISettings",f:parsenoop},2075:{n:"BrtTableSlicerCacheIDs",f:parsenoop},2076:{n:"BrtTableSlicerCacheID",f:parsenoop},2077:{n:"BrtBeginTableSlicerCache",f:parsenoop},2078:{n:"BrtEndTableSlicerCache",f:parsenoop},2079:{n:"BrtSxFilter15",f:parsenoop},2080:{n:"BrtBeginTimelineCachePivotCacheIDs",f:parsenoop},2081:{n:"BrtEndTimelineCachePivotCacheIDs",f:parsenoop},2082:{n:"BrtTimelineCachePivotCacheID",f:parsenoop},2083:{n:"BrtBeginTimelineCacheIDs",f:parsenoop},2084:{n:"BrtEndTimelineCacheIDs",f:parsenoop},2085:{n:"BrtBeginTimelineCacheID",f:parsenoop},2086:{n:"BrtEndTimelineCacheID",f:parsenoop},2087:{n:"BrtBeginTimelinesEx",f:parsenoop},2088:{n:"BrtEndTimelinesEx",f:parsenoop},2089:{n:"BrtBeginTimelineEx",f:parsenoop},2090:{n:"BrtEndTimelineEx",f:parsenoop},2091:{n:"BrtWorkBookPr15",f:parsenoop},2092:{n:"BrtPCDH15",f:parsenoop},2093:{n:"BrtBeginTimelineStyle",f:parsenoop},2094:{n:"BrtEndTimelineStyle",f:parsenoop},2095:{n:"BrtTimelineStyleElement",f:parsenoop},2096:{n:"BrtBeginTimelineStylesheetExt15",f:parsenoop},2097:{n:"BrtEndTimelineStylesheetExt15",f:parsenoop},2098:{n:"BrtBeginTimelineStyles",f:parsenoop},2099:{n:"BrtEndTimelineStyles",f:parsenoop},2100:{n:"BrtBeginTimelineStyleElements",f:parsenoop},2101:{n:"BrtEndTimelineStyleElements",f:parsenoop},2102:{n:"BrtDxf15",f:parsenoop},2103:{n:"BrtBeginDxfs15",f:parsenoop},2104:{n:"brtEndDxfs15",f:parsenoop},2105:{n:"BrtSlicerCacheHideItemsWithNoData",f:parsenoop},2106:{n:"BrtBeginItemUniqueNames",f:parsenoop},2107:{n:"BrtEndItemUniqueNames",f:parsenoop},2108:{n:"BrtItemUniqueName",f:parsenoop},2109:{n:"BrtBeginExtConn15",f:parsenoop},2110:{n:"BrtEndExtConn15",f:parsenoop},2111:{n:"BrtBeginOledbPr15",f:parsenoop},2112:{n:"BrtEndOledbPr15",f:parsenoop},2113:{n:"BrtBeginDataFeedPr15",f:parsenoop},2114:{n:"BrtEndDataFeedPr15",f:parsenoop},2115:{n:"BrtTextPr15",f:parsenoop},2116:{n:"BrtRangePr15",f:parsenoop},2117:{n:"BrtDbCommand15",f:parsenoop},2118:{n:"BrtBeginDbTables15",f:parsenoop},2119:{n:"BrtEndDbTables15",f:parsenoop},2120:{n:"BrtDbTable15",f:parsenoop},2121:{n:"BrtBeginDataModel",f:parsenoop},2122:{n:"BrtEndDataModel",f:parsenoop},2123:{n:"BrtBeginModelTables",f:parsenoop},2124:{n:"BrtEndModelTables",f:parsenoop},2125:{n:"BrtModelTable",f:parsenoop},2126:{n:"BrtBeginModelRelationships",f:parsenoop},2127:{n:"BrtEndModelRelationships",f:parsenoop},2128:{n:"BrtModelRelationship",f:parsenoop},2129:{n:"BrtBeginECTxtWiz15",f:parsenoop},2130:{n:"BrtEndECTxtWiz15",f:parsenoop},2131:{n:"BrtBeginECTWFldInfoLst15",f:parsenoop},2132:{n:"BrtEndECTWFldInfoLst15",f:parsenoop},2133:{n:"BrtBeginECTWFldInfo15",f:parsenoop},2134:{n:"BrtFieldListActiveItem",f:parsenoop},2135:{n:"BrtPivotCacheIdVersion",f:parsenoop},2136:{n:"BrtSXDI15",f:parsenoop},65535:{n:"",f:parsenoop}}; function parseZip(zip){var entries=Object.keys(zip.files);var keys=entries.filter(function(x){return x.substr(-1)!="/"}).sort();var dir=parseCT(getdata(getzipfile(zip,"[Content_Types].xml")));var xlsb=false;if(dir.workbooks.length===0){var binname="xl/workbook.bin";if(!getzipfile(zip,binname))throw new Error("Could not find workbook entry");dir.workbooks.push(binname);xlsb=true}strs={};if(dir.sst)strs=parse_sst(getdata(getzipfile(zip,dir.sst.replace(/^\//,""))),dir.sst);styles={};if(dir.style)styles=parse_sty(getdata(getzipfile(zip,dir.style.replace(/^\//,""))),dir.style);var wb=parse_wb(getdata(getzipfile(zip,dir.workbooks[0].replace(/^\//,""))),dir.workbooks[0]);var propdata=dir.coreprops.length!==0?getdata(getzipfile(zip,dir.coreprops[0].replace(/^\//,""))):"";propdata+=dir.extprops.length!==0?getdata(getzipfile(zip,dir.extprops[0].replace(/^\//,""))):"";var props=propdata!==""?parseProps(propdata):{};var deps={};if(dir.calcchain)deps=parseDeps(getdata(getzipfile(zip,dir.calcchain.replace(/^\//,""))));var sheets={},i=0;var sheetRels={};var path,relsPath;if(!props.Worksheets){var wbsheets=wb.Sheets;props.Worksheets=wbsheets.length;props.SheetNames=[];for(var j=0;j!=wbsheets.length;++j){props.SheetNames[j]=wbsheets[j].name}for(i=0;i!=props.Worksheets;++i){try{path="xl/worksheets/sheet"+(i+1)+(xlsb?".bin":".xml");relsPath=path.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");sheets[props.SheetNames[i]]=parse_ws(getdata(getzipfile(zip,path)),path);sheetRels[props.SheetNames[i]]=parseRels(getdata(getzipfile(zip,relsPath)),path)}catch(e){}}}else{for(i=0;i!=props.Worksheets;++i){try{path="xl/worksheets/sheet"+(i+1)+(xlsb?".bin":".xml");relsPath=path.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");sheets[props.SheetNames[i]]=parse_ws(getdata(getzipfile(zip,path)),path);sheetRels[props.SheetNames[i]]=parseRels(getdata(getzipfile(zip,relsPath)),path)}catch(e){}}}if(dir.comments)parseCommentsAddToSheets(zip,dir.comments,sheets,sheetRels);return{Directory:dir,Workbook:wb,Props:props,Deps:deps,Sheets:sheets,SheetNames:props.SheetNames,Strings:strs,Styles:styles,keys:keys,files:zip.files}}function readSync(data,options){var zip,d=data;var o=options||{};switch(o.type||"base64"){case"file":if(typeof Buffer!=="undefined"){zip=new jszip(d=_fs.readFileSync(data));break}d=_fs.readFileSync(data).toString("base64");case"base64":zip=new jszip(d,{base64:true});break;case"binary":zip=new jszip(d,{base64:false});break}return parseZip(zip)}function readFileSync(data,options){var o=options||{};o.type="file";return readSync(data,o)}XLSX.read=readSync;XLSX.readFile=readFileSync;XLSX.parseZip=parseZip;return this})(XLSX);var _chr=function(c){return String.fromCharCode(c)};function encode_col(col){var s="";for(++col;col;col=Math.floor((col-1)/26))s=_chr((col-1)%26+65)+s;return s}function encode_row(row){return""+(row+1)}function encode_cell(cell){return encode_col(cell.c)+encode_row(cell.r)}function decode_col(c){var d=0,i=0;for(;i!==c.length;++i)d=26*d+c.charCodeAt(i)-64;return d-1}function decode_row(rowstr){return Number(rowstr)-1}function split_cell(cstr){return cstr.replace(/(\$?[A-Z]*)(\$?[0-9]*)/,"$1,$2").split(",")}function decode_cell(cstr){var splt=split_cell(cstr);return{c:decode_col(splt[0]),r:decode_row(splt[1])}}function decode_range(range){var x=range.split(":").map(decode_cell);return{s:x[0],e:x[x.length-1]}}function encode_range(range){return encode_cell(range.s)+":"+encode_cell(range.e)}function sheet_to_row_object_array(sheet,opts){var val,row,r,hdr={},isempty,R,C,v;var out=[];opts=opts||{};if(!sheet||!sheet["!ref"])return out;r=XLSX.utils.decode_range(sheet["!ref"]);for(R=r.s.r,C=r.s.c;C<=r.e.c;++C){val=sheet[encode_cell({c:C,r:R})];if(!val)continue;switch(val.t){case"s":case"str":hdr[C]=val.v;break;case"n":hdr[C]=val.v;break}}for(R=r.s.r+1;R<=r.e.r;++R){isempty=true;row=Object.create({__rowNum__:R});for(C=r.s.c;C<=r.e.c;++C){val=sheet[encode_cell({c:C,r:R})];if(!val||!val.t)continue;if(typeof val.w!=="undefined"){row[hdr[C]]=val.w;isempty=false}else switch(val.t){case"s":case"str":case"b":case"n":if(val.v!==undefined){row[hdr[C]]=val.v;isempty=false}break;case"e":break;default:throw"unrecognized type "+val.t}}if(!isempty)out.push(row)}return out}function sheet_to_csv(sheet,opts){var stringify=function stringify(val){if(!val.t)return"";if(typeof val.w!=="undefined")return'"'+val.w.replace(/"/,'""')+'"';switch(val.t){case"n":return String(val.v);case"s":case"str":if(typeof val.v==="undefined")return"";return'"'+val.v.replace(/"/,'""')+'"';case"b":return val.v?"TRUE":"FALSE";case"e":return val.v;default:throw"unrecognized type "+val.t}};var out="",txt="";opts=opts||{};if(!sheet||!sheet["!ref"])return out;var r=XLSX.utils.decode_range(sheet["!ref"]);for(var R=r.s.r;R<=r.e.r;++R){var row=[];for(var C=r.s.c;C<=r.e.c;++C){var val=sheet[XLSX.utils.encode_cell({c:C,r:R})];if(!val){row.push("");continue}txt=stringify(val);row.push(String(txt).replace(/\\r\\n/g,"\n").replace(/\\t/g," ").replace(/\\\\/g,"\\").replace('\\"','""'))}out+=row.join(opts.FS||",")+(opts.RS||"\n")}return out}var make_csv=sheet_to_csv;function get_formulae(ws){var cmds=[];for(var y in ws)if(y[0]!=="!"&&ws.hasOwnProperty(y)){var x=ws[y];var val="";if(x.f)val=x.f;else if(typeof x.v==="number")val=x.v;else val=x.v;cmds.push(y+"="+val)}return cmds}XLSX.utils={encode_col:encode_col,encode_row:encode_row,encode_cell:encode_cell,encode_range:encode_range,decode_col:decode_col,decode_row:decode_row,split_cell:split_cell,decode_cell:decode_cell,decode_range:decode_range,sheet_to_csv:sheet_to_csv,make_csv:sheet_to_csv,get_formulae:get_formulae,sheet_to_row_object_array:sheet_to_row_object_array};if(typeof require!=="undefined"&&typeof exports!=="undefined"){exports.read=XLSX.read;exports.readFile=XLSX.readFile;exports.utils=XLSX.utils;exports.version=XLSX.version;exports.main=function(args){var zip=XLSX.read(args[0],{type:"file"});console.log(zip.Sheets)};if(typeof module!=="undefined"&&require.main===module)exports.main(process.argv.slice(2))}
laffer1/cdnjs
ajax/libs/xlsx/0.4.3/xlsx.min.js
JavaScript
mit
84,028
/* =========================================================== * ph.js * Filipino translation for Trumbowyg * http://alex-d.github.com/Trumbowyg * =========================================================== * Author : @leogono */ jQuery.trumbowyg.langs.ph={viewHTML:"Tumingin sa HTML",formatting:"Formatting",p:"Talata",blockquote:"Blockquote",code:"Kowd",header:"Header",bold:"Makapal",italic:"Hilig",strikethrough:"Strikethrough",underline:"Salungguhit",strong:"Malakas",em:"Hilig",del:"Tinanggal",unorderedList:"Hindi nakahanay na listahan",orderedList:"Nakahanay na listahan",insertImage:"Ilagay ang larawan",insertVideo:"Ilagay ang video",link:"Koneksyon",createLink:"Iugnay",unlink:"Tanggalin ang koneksyon",justifyLeft:"Ihanay sa kaliwa",justifyCenter:"Ihanay sa gitna",justifyRight:"Ihanay sa kanan",justifyFull:"Ihanay sa kaliwa at kanan",horizontalRule:"Pahalang na linya",fullscreen:"Fullscreen",close:"Isara",submit:"Ipasa",reset:"I-reset",required:"Kailangan",description:"Paglalarawan",title:"Pamagat",text:"Teksto"};
maruilian11/cdnjs
ajax/libs/Trumbowyg/2.5.0/langs/ph.min.js
JavaScript
mit
1,037
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.4.0 * @date 2014-01-31 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ !function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.vis=t()}}(function(){var t;return function e(t,i,n){function s(r,a){if(!i[r]){if(!t[r]){var h="function"==typeof require&&require;if(!a&&h)return h(r,!0);if(o)return o(r,!0);throw new Error("Cannot find module '"+r+"'")}var d=i[r]={exports:{}};t[r][0].call(d.exports,function(e){var i=t[r][1][e];return s(i?i:e)},d,d.exports,e,t,i,n)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<n.length;r++)s(n[r]);return s}({1:[function(e,i,n){function s(){this.subscriptions=[]}function o(t){if(this.id=z.randomUUID(),this.options=t||{},this.data={},this.fieldId=this.options.fieldId||"id",this.convert={},this.showInternalIds=this.options.showInternalIds||!1,this.options.convert)for(var e in this.options.convert)if(this.options.convert.hasOwnProperty(e)){var i=this.options.convert[e];this.convert[e]="Date"==i||"ISODate"==i||"ASPDate"==i?"Date":i}this.subscribers={},this.internalIds={}}function r(t,e){this.id=z.randomUUID(),this.data=null,this.ids={},this.options=e||{},this.fieldId="id",this.subscribers={};var i=this;this.listener=function(){i._onEvent.apply(i,arguments)},this.setData(t)}function a(t,e){this.parent=t,this.options=e||{},this.defaultOptions={order:function(t,e){if(t instanceof S){if(e instanceof S){var i=t.data.end-t.data.start,n=e.data.end-e.data.start;return i-n||t.data.start-e.data.start}return-1}return e instanceof S?1:t.data.start-e.data.start},margin:{item:10}},this.ordered=[]}function h(t){this.id=z.randomUUID(),this.start=null,this.end=null,this.options=t||{},this.setOptions(t)}function d(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'+t+'". Choose "horizontal" or "vertical".')}function c(t,e){return{x:t.pageX-U.util.getAbsoluteLeft(e),y:t.pageY-U.util.getAbsoluteTop(e)}}function l(){this.id=z.randomUUID(),this.components={},this.repaintTimer=void 0,this.reflowTimer=void 0}function u(){this.id=null,this.parent=null,this.depends=null,this.controller=null,this.options=null,this.frame=null,this.top=0,this.left=0,this.width=0,this.height=0}function p(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.options=i||{}}function f(t,e){this.id=z.randomUUID(),this.container=t,this.options=e||{},this.defaultOptions={autoResize:!0},this.listeners={}}function g(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.dom={majorLines:[],majorTexts:[],minorLines:[],minorTexts:[],redundant:{majorLines:[],majorTexts:[],minorLines:[],minorTexts:[]}},this.props={range:{start:0,end:0,minimumStep:0},lineTop:0},this.options=i||{},this.defaultOptions={orientation:"bottom",showMinorLabels:!0,showMajorLabels:!0},this.conversion=null,this.range=null}function m(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.options=i||{},this.defaultOptions={showCurrentTime:!1}}function v(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.options=i||{},this.defaultOptions={showCustomTime:!1},this.listeners=[],this.customTime=new Date}function y(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.options=i||{},this.defaultOptions={type:"box",align:"center",orientation:"bottom",margin:{axis:20,item:10},padding:5},this.dom={};var n=this;this.itemsData=null,this.range=null,this.listeners={add:function(t,e,i){i!=n.id&&n._onAdd(e.items)},update:function(t,e,i){i!=n.id&&n._onUpdate(e.items)},remove:function(t,e,i){i!=n.id&&n._onRemove(e.items)}},this.items={},this.selection=[],this.queue={},this.stack=new a(this,Object.create(this.options)),this.conversion=null}function _(t,e,i,n){this.parent=t,this.data=e,this.dom=null,this.options=i||{},this.defaultOptions=n||{},this.selected=!1,this.visible=!1,this.top=0,this.left=0,this.width=0,this.height=0}function w(t,e,i,n){this.props={dot:{left:0,top:0,width:0,height:0},line:{top:0,left:0,width:0,height:0}},_.call(this,t,e,i,n)}function b(t,e,i,n){this.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0}},_.call(this,t,e,i,n)}function S(t,e,i,n){this.props={content:{left:0,width:0}},_.call(this,t,e,i,n)}function E(t,e,i,n){this.props={content:{left:0,width:0}},S.call(this,t,e,i,n)}function T(t,e,i){this.id=z.randomUUID(),this.parent=t,this.groupId=e,this.itemset=null,this.options=i||{},this.options.top=0,this.props={label:{width:0,height:0}},this.top=0,this.left=0,this.width=0,this.height=0}function x(t,e,i){this.id=z.randomUUID(),this.parent=t,this.depends=e,this.options=i||{},this.range=null,this.itemsData=null,this.groupsData=null,this.groups={},this.dom={},this.props={labels:{width:0}},this.queue={};var n=this;this.listeners={add:function(t,e){n._onAdd(e.items)},update:function(t,e){n._onUpdate(e.items)},remove:function(t,e){n._onRemove(e.items)}}}function C(t,e,i){var n=this,s=L().hours(0).minutes(0).seconds(0).milliseconds(0);if(this.options={orientation:"bottom",min:null,max:null,zoomMin:10,zoomMax:31536e10,showMinorLabels:!0,showMajorLabels:!0,showCurrentTime:!1,showCustomTime:!1,autoResize:!1},this.controller=new l,!t)throw new Error("No container element provided");var o=Object.create(this.options);o.height=function(){return n.options.height?n.options.height:n.timeaxis.height+n.content.height+"px"},this.rootPanel=new f(t,o),this.controller.add(this.rootPanel);var r=Object.create(this.options);r.left=function(){return n.labelPanel.width},r.width=function(){return n.rootPanel.width-n.labelPanel.width},r.top=null,r.height=null,this.itemPanel=new p(this.rootPanel,[],r),this.controller.add(this.itemPanel);var a=Object.create(this.options);a.top=null,a.left=null,a.height=null,a.width=function(){return n.content&&"function"==typeof n.content.getLabelsWidth?n.content.getLabelsWidth():0},this.labelPanel=new p(this.rootPanel,[],a),this.controller.add(this.labelPanel);var d=Object.create(this.options);this.range=new h(d),this.range.setRange(s.clone().add("days",-3).valueOf(),s.clone().add("days",4).valueOf()),this.range.subscribe(this.rootPanel,"move","horizontal"),this.range.subscribe(this.rootPanel,"zoom","horizontal"),this.range.on("rangechange",function(t){var e=!0;n.controller.requestReflow(e),n._trigger("rangechange",t)}),this.range.on("rangechanged",function(t){var e=!0;n.controller.requestReflow(e),n._trigger("rangechanged",t)}),this.rootPanel.on("tap",this._onSelectItem.bind(this)),this.rootPanel.on("hold",this._onMultiSelectItem.bind(this));var c=Object.create(o);c.range=this.range,c.left=null,c.top=null,c.width="100%",c.height=null,this.timeaxis=new g(this.itemPanel,[],c),this.timeaxis.setRange(this.range),this.controller.add(this.timeaxis),this.currenttime=new m(this.timeaxis,[],o),this.controller.add(this.currenttime),this.customtime=new v(this.timeaxis,[],o),this.controller.add(this.customtime),this.setGroups(null),this.itemsData=null,this.groupsData=null,i&&this.setOptions(i),e&&this.setItems(e)}function M(t,e,i,n){this.selected=!1,this.edges=[],this.dynamicEdges=[],this.reroutedEdges={},this.group=n.nodes.group,this.fontSize=n.nodes.fontSize,this.fontFace=n.nodes.fontFace,this.fontColor=n.nodes.fontColor,this.color=n.nodes.color,this.id=void 0,this.shape=n.nodes.shape,this.image=n.nodes.image,this.x=0,this.y=0,this.xFixed=!1,this.yFixed=!1,this.horizontalAlignLeft=!0,this.verticalAlignTop=!0,this.radius=n.nodes.radius,this.baseRadiusValue=n.nodes.radius,this.radiusFixed=!1,this.radiusMin=n.nodes.radiusMin,this.radiusMax=n.nodes.radiusMax,this.imagelist=e,this.grouplist=i,this.setProperties(t,n),this.resetCluster(),this.dynamicEdgesLength=0,this.clusterSession=0,this.clusterSizeWidthFactor=n.clustering.nodeScaling.width,this.clusterSizeHeightFactor=n.clustering.nodeScaling.height,this.clusterSizeRadiusFactor=n.clustering.nodeScaling.radius,this.mass=1,this.fx=0,this.fy=0,this.vx=0,this.vy=0,this.minForce=n.minForce,this.damping=.9,this.dampingFactor=75,this.graphScaleInv=1,this.canvasTopLeft={x:-300,y:-300},this.canvasBottomRight={x:300,y:300}}function D(t,e,i){if(!e)throw"No graph provided";this.graph=e,this.widthMin=i.edges.widthMin,this.widthMax=i.edges.widthMax,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.style=i.edges.style,this.title=void 0,this.width=i.edges.width,this.value=void 0,this.length=i.edges.length,this.from=null,this.to=null,this.originalFromId=[],this.originalToId=[],this.connected=!1,this.dash=z.extend({},i.edges.dash),this.stiffness=void 0,this.color=i.edges.color,this.widthFixed=!1,this.lengthFixed=!1,this.setProperties(t,i)}function I(t,e,i,n){this.container=t?t:document.body,this.x=0,this.y=0,this.padding=5,void 0!==e&&void 0!==i&&this.setPosition(e,i),void 0!==n&&this.setText(n),this.frame=document.createElement("div");var s=this.frame.style;s.position="absolute",s.visibility="hidden",s.border="1px solid #666",s.color="black",s.padding=this.padding+"px",s.backgroundColor="#FFFFC6",s.borderRadius="3px",s.MozBorderRadius="3px",s.WebkitBorderRadius="3px",s.boxShadow="3px 3px 10px rgba(128, 128, 128, 0.5)",s.whiteSpace="nowrap",this.container.appendChild(this.frame)}function O(t,e,i){this.containerElement=t,this.width="100%",this.height="100%",this.renderRefreshRate=60,this.renderTimestep=1e3/this.renderRefreshRate,this.stabilize=!0,this.selectable=!0,this.forceFactor=5e4,this.constants={nodes:{radiusMin:5,radiusMax:20,radius:5,distance:100,shape:"ellipse",image:void 0,widthMin:16,widthMax:64,fontColor:"black",fontSize:14,fontFace:"arial",color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"}},borderColor:"#2B7CE9",backgroundColor:"#97C2FC",highlightColor:"#D2E5FF",group:void 0},edges:{widthMin:1,widthMax:15,width:1,style:"line",color:"#343434",fontColor:"#343434",fontSize:14,fontFace:"arial",length:100,dash:{length:10,gap:5,altLength:void 0}},clustering:{enabled:!1,initialMaxNodes:100,clusterThreshold:500,reduceToNodes:300,chainThreshold:.4,clusterEdgeThreshold:20,sectorThreshold:50,screenSizeThreshold:.2,fontSizeMultiplier:4,forceAmplification:.6,distanceAmplification:.2,edgeGrowth:11,nodeScaling:{width:10,height:10,radius:10},activeAreaBoxSize:100,massTransferCoefficient:1},navigation:{enabled:!1,iconPath:this._getScriptPath()+"/img"},keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02}},minVelocity:2,maxIterations:1e3},this.groups=new Groups,this.images=new Images,this.images.setOnloadCallback(function(){n._redraw()}),this.xIncrement=0,this.yIncrement=0,this.zoomIncrement=0,this._create(),this._loadSectorSystem(),this.setOptions(i),this._loadClusterSystem(),this._loadSelectionSystem();var n=this;this.freezeSimulation=!1,this.nodeIndices=[],this.nodes={},this.edges={},this.canvasTopLeft={x:0,y:0},this.canvasBottomRight={x:0,y:0},this.areaCenter={},this.scale=1,this.previousScale=this.scale,this.nodesData=null,this.edgesData=null;var s=this;this.nodesListeners={add:function(t,e){s._addNodes(e.items),s.start()},update:function(t,e){s._updateNodes(e.items),s.start()},remove:function(t,e){s._removeNodes(e.items),s.start()}},this.edgesListeners={add:function(t,e){s._addEdges(e.items),s.start()},update:function(t,e){s._updateEdges(e.items),s.start()},remove:function(t,e){s._removeEdges(e.items),s.start()}},this.moving=!1,this.timer=void 0,this.setData(e,this.constants.clustering.enabled),this.zoomToFit(!0),this.constants.clustering.enabled&&this.startWithClustering()}var N,L="undefined"!=typeof window&&window.moment||e("moment");N="undefined"!=typeof window?window.Hammer||e("hammerjs"):function(){throw Error("hammer.js is only available in a browser, not in node.js.")};var A;if(A="undefined"!=typeof window?window.mousetrap||e("mousetrap"):function(){throw Error("mouseTrap is only available in a browser, not in node.js.")},!Array.prototype.indexOf){Array.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e]==t)return e;return-1};try{console.log("Warning: Ancient browser detected. Please update your browser")}catch(k){}}Array.prototype.forEach||(Array.prototype.forEach=function(t,e){for(var i=0,n=this.length;n>i;++i)t.call(e||this,this[i],i,this)}),Array.prototype.map||(Array.prototype.map=function(t,e){var i,n,s;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),r=o.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(e&&(i=e),n=new Array(r),s=0;r>s;){var a,h;s in o&&(a=o[s],h=t.call(i,a,s,o),n[s]=h),s++}return n}),Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=[],s=arguments[1],o=0;i>o;o++)if(o in e){var r=e[o];t.call(s,r,o,e)&&n.push(r)}return n}),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=i.length;return function(s){if("object"!=typeof s&&"function"!=typeof s||null===s)throw new TypeError("Object.keys called on non-object");var o=[];for(var r in s)t.call(s,r)&&o.push(r);if(e)for(var a=0;n>a;a++)t.call(s,i[a])&&o.push(i[a]);return o}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},s=function(){return i.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,s.prototype=new n,s}),Object.create||(Object.create=function(t){function e(){}if(arguments.length>1)throw new Error("Object.create implementation only accepts the first parameter.");return e.prototype=t,new e}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},s=function(){return i.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,s.prototype=new n,s});var z={};z.isNumber=function(t){return t instanceof Number||"number"==typeof t},z.isString=function(t){return t instanceof String||"string"==typeof t},z.isDate=function(t){if(t instanceof Date)return!0;if(z.isString(t)){var e=P.exec(t);if(e)return!0;if(!isNaN(Date.parse(t)))return!0}return!1},z.isDataTable=function(t){return"undefined"!=typeof google&&google.visualization&&google.visualization.DataTable&&t instanceof google.visualization.DataTable},z.randomUUID=function(){var t=function(){return Math.floor(65536*Math.random()).toString(16)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},z.extend=function(t){for(var e=1,i=arguments.length;i>e;e++){var n=arguments[e];for(var s in n)n.hasOwnProperty(s)&&void 0!==n[s]&&(t[s]=n[s])}return t},z.convert=function(t,e){var i;if(void 0===t)return void 0;if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(z.isNumber(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(L.isMoment(t))return new Date(t.valueOf());if(z.isString(t))return i=P.exec(t),i?new Date(Number(i[1])):L(t).toDate();throw new Error("Cannot convert object of type "+z.getType(t)+" to type Date");case"Moment":if(z.isNumber(t))return L(t);if(t instanceof Date)return L(t.valueOf());if(L.isMoment(t))return L(t);if(z.isString(t))return i=P.exec(t),L(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+z.getType(t)+" to type Date");case"ISODate":if(z.isNumber(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(L.isMoment(t))return t.toDate().toISOString();if(z.isString(t))return i=P.exec(t),i?new Date(Number(i[1])).toISOString():new Date(t).toISOString();throw new Error("Cannot convert object of type "+z.getType(t)+" to type ISODate");case"ASPDate":if(z.isNumber(t))return"/Date("+t+")/";if(t instanceof Date)return"/Date("+t.valueOf()+")/";if(z.isString(t)){i=P.exec(t);var n;return n=i?new Date(Number(i[1])).valueOf():new Date(t).valueOf(),"/Date("+n+")/"}throw new Error("Cannot convert object of type "+z.getType(t)+" to type ASPDate");default:throw new Error("Cannot convert object of type "+z.getType(t)+' to type "'+e+'"')}};var P=/^\/?Date\((\-?\d+)/i;z.getType=function(t){var e=typeof t;return"object"==e?null==t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":t instanceof Array?"Array":t instanceof Date?"Date":"Object":"number"==e?"Number":"boolean"==e?"Boolean":"string"==e?"String":e},z.getAbsoluteLeft=function(t){for(var e=document.documentElement,i=document.body,n=t.offsetLeft,s=t.offsetParent;null!=s&&s!=i&&s!=e;)n+=s.offsetLeft,n-=s.scrollLeft,s=s.offsetParent;return n},z.getAbsoluteTop=function(t){for(var e=document.documentElement,i=document.body,n=t.offsetTop,s=t.offsetParent;null!=s&&s!=i&&s!=e;)n+=s.offsetTop,n-=s.scrollTop,s=s.offsetParent;return n},z.getPageY=function(t){if("pageY"in t)return t.pageY;var e;e="targetTouches"in t&&t.targetTouches.length?t.targetTouches[0].clientY:t.clientY;var i=document.documentElement,n=document.body;return e+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)},z.getPageX=function(t){if("pageY"in t)return t.pageX;var e;e="targetTouches"in t&&t.targetTouches.length?t.targetTouches[0].clientX:t.clientX;var i=document.documentElement,n=document.body;return e+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0)},z.addClassName=function(t,e){var i=t.className.split(" ");-1==i.indexOf(e)&&(i.push(e),t.className=i.join(" "))},z.removeClassName=function(t,e){var i=t.className.split(" "),n=i.indexOf(e);-1!=n&&(i.splice(n,1),t.className=i.join(" "))},z.forEach=function(t,e){var i,n;if(t instanceof Array)for(i=0,n=t.length;n>i;i++)e(t[i],i,t);else for(i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},z.updateProperty=function(t,e,i){return t[e]!==i?(t[e]=i,!0):!1},z.addEventListener=function(t,e,i,n){t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)},z.removeEventListener=function(t,e,i,n){t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)},z.getTarget=function(t){t||(t=window.event);var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),void 0!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},z.stopPropagation=function(t){t||(t=window.event),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},z.fakeGesture=function(t,e){var i=null;return N.event.collectEventData(this,i,e)},z.preventDefault=function(t){t||(t=window.event),t.preventDefault?t.preventDefault():t.returnValue=!1},z.option={},z.option.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},z.option.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},z.option.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},z.option.asSize=function(t,e){return"function"==typeof t&&(t=t()),z.isString(t)?t:z.isNumber(t)?t+"px":e||null},z.option.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null};var F={listeners:[],indexOf:function(t){for(var e=this.listeners,i=0,n=this.listeners.length;n>i;i++){var s=e[i];if(s&&s.object==t)return i}return-1},addListener:function(t,e,i){var n=this.indexOf(t),s=this.listeners[n];s||(s={object:t,events:{}},this.listeners.push(s));var o=s.events[e];o||(o=[],s.events[e]=o),-1==o.indexOf(i)&&o.push(i)},removeListener:function(t,e,i){var n=this.indexOf(t),s=this.listeners[n];if(s){var o=s.events[e];o&&(n=o.indexOf(i),-1!=n&&o.splice(n,1),0==o.length&&delete s.events[e]);var r=0,a=s.events;for(var h in a)a.hasOwnProperty(h)&&r++;0==r&&delete this.listeners[n]}},removeAllListeners:function(){this.listeners=[]},trigger:function(t,e,i){var n=this.indexOf(t),s=this.listeners[n];if(s){var o=s.events[e];if(o)for(var r=0,a=o.length;a>r;r++)o[r](i)}}};s.prototype.on=function(t,e,i){var n=t instanceof RegExp?t:new RegExp(t.replace("*","\\w+")),s={id:z.randomUUID(),event:t,regexp:n,callback:"function"==typeof e?e:null,target:i};return this.subscriptions.push(s),s.id},s.prototype.off=function(t){for(var e=0;e<this.subscriptions.length;){var i=this.subscriptions[e],n=!0;if(t instanceof Object)for(var s in t)t.hasOwnProperty(s)&&t[s]!==i[s]&&(n=!1);else n=i.id==t;n?this.subscriptions.splice(e,1):e++}},s.prototype.emit=function(t,e,i){for(var n=0;n<this.subscriptions.length;n++){var s=this.subscriptions[n];s.regexp.test(t)&&s.callback&&s.callback(t,e,i)}},o.prototype.subscribe=function(t,e){var i=this.subscribers[t];i||(i=[],this.subscribers[t]=i),i.push({callback:e})},o.prototype.unsubscribe=function(t,e){var i=this.subscribers[t];i&&(this.subscribers[t]=i.filter(function(t){return t.callback!=e}))},o.prototype._trigger=function(t,e,i){if("*"==t)throw new Error("Cannot trigger event *");var n=[];t in this.subscribers&&(n=n.concat(this.subscribers[t])),"*"in this.subscribers&&(n=n.concat(this.subscribers["*"]));for(var s=0;s<n.length;s++){var o=n[s];o.callback&&o.callback(t,e,i||null)}},o.prototype.add=function(t,e){var i,n=[],s=this;if(t instanceof Array)for(var o=0,r=t.length;r>o;o++)i=s._addItem(t[o]),n.push(i);else if(z.isDataTable(t))for(var a=this._getColumnNames(t),h=0,d=t.getNumberOfRows();d>h;h++){for(var c={},l=0,u=a.length;u>l;l++){var p=a[l];c[p]=t.getValue(h,l)}i=s._addItem(c),n.push(i)}else{if(!(t instanceof Object))throw new Error("Unknown dataType");i=s._addItem(t),n.push(i)}return n.length&&this._trigger("add",{items:n},e),n},o.prototype.update=function(t,e){var i=[],n=[],s=this,o=s.fieldId,r=function(t){var e=t[o];s.data[e]?(e=s._updateItem(t),n.push(e)):(e=s._addItem(t),i.push(e))};if(t instanceof Array)for(var a=0,h=t.length;h>a;a++)r(t[a]);else if(z.isDataTable(t))for(var d=this._getColumnNames(t),c=0,l=t.getNumberOfRows();l>c;c++){for(var u={},p=0,f=d.length;f>p;p++){var g=d[p];u[g]=t.getValue(c,p)}r(u)}else{if(!(t instanceof Object))throw new Error("Unknown dataType");r(t)}return i.length&&this._trigger("add",{items:i},e),n.length&&this._trigger("update",{items:n},e),i.concat(n)},o.prototype.get=function(){var t,e,i,n,s=this,o=this.showInternalIds,r=z.getType(arguments[0]);"String"==r||"Number"==r?(t=arguments[0],i=arguments[1],n=arguments[2]):"Array"==r?(e=arguments[0],i=arguments[1],n=arguments[2]):(i=arguments[0],n=arguments[1]);var a;if(i&&i.type){if(a="DataTable"==i.type?"DataTable":"Array",n&&a!=z.getType(n))throw new Error('Type of parameter "data" ('+z.getType(n)+") does not correspond with specified options.type ("+i.type+")");if("DataTable"==a&&!z.isDataTable(n))throw new Error('Parameter "data" must be a DataTable when options.type is "DataTable"')}else a=n?"DataTable"==z.getType(n)?"DataTable":"Array":"Array";void 0!=i&&void 0!=i.showInternalIds&&(this.showInternalIds=i.showInternalIds);var h,d,c,l,u=i&&i.convert||this.options.convert,p=i&&i.filter,f=[];if(void 0!=t)h=s._getItem(t,u),p&&!p(h)&&(h=null);else if(void 0!=e)for(c=0,l=e.length;l>c;c++)h=s._getItem(e[c],u),(!p||p(h))&&f.push(h);else for(d in this.data)this.data.hasOwnProperty(d)&&(h=s._getItem(d,u),(!p||p(h))&&f.push(h));if(this.showInternalIds=o,i&&i.order&&void 0==t&&this._sort(f,i.order),i&&i.fields){var g=i.fields;if(void 0!=t)h=this._filterFields(h,g);else for(c=0,l=f.length;l>c;c++)f[c]=this._filterFields(f[c],g)}if("DataTable"==a){var m=this._getColumnNames(n);if(void 0!=t)s._appendRow(n,m,h);else for(c=0,l=f.length;l>c;c++)s._appendRow(n,m,f[c]);return n}if(void 0!=t)return h;if(n){for(c=0,l=f.length;l>c;c++)n.push(f[c]);return n}return f},o.prototype.getIds=function(t){var e,i,n,s,o,r=this.data,a=t&&t.filter,h=t&&t.order,d=t&&t.convert||this.options.convert,c=[];if(a)if(h){o=[];for(n in r)r.hasOwnProperty(n)&&(s=this._getItem(n,d),a(s)&&o.push(s));for(this._sort(o,h),e=0,i=o.length;i>e;e++)c[e]=o[e][this.fieldId]}else for(n in r)r.hasOwnProperty(n)&&(s=this._getItem(n,d),a(s)&&c.push(s[this.fieldId]));else if(h){o=[];for(n in r)r.hasOwnProperty(n)&&o.push(r[n]);for(this._sort(o,h),e=0,i=o.length;i>e;e++)c[e]=o[e][this.fieldId]}else for(n in r)r.hasOwnProperty(n)&&(s=r[n],c.push(s[this.fieldId]));return c},o.prototype.forEach=function(t,e){var i,n,s=e&&e.filter,o=e&&e.convert||this.options.convert,r=this.data;if(e&&e.order)for(var a=this.get(e),h=0,d=a.length;d>h;h++)i=a[h],n=i[this.fieldId],t(i,n);else for(n in r)r.hasOwnProperty(n)&&(i=this._getItem(n,o),(!s||s(i))&&t(i,n))},o.prototype.map=function(t,e){var i,n=e&&e.filter,s=e&&e.convert||this.options.convert,o=[],r=this.data;for(var a in r)r.hasOwnProperty(a)&&(i=this._getItem(a,s),(!n||n(i))&&o.push(t(i,a)));return e&&e.order&&this._sort(o,e.order),o},o.prototype._filterFields=function(t,e){var i={};for(var n in t)t.hasOwnProperty(n)&&-1!=e.indexOf(n)&&(i[n]=t[n]);return i},o.prototype._sort=function(t,e){if(z.isString(e)){var i=e;t.sort(function(t,e){var n=t[i],s=e[i];return n>s?1:s>n?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");t.sort(e)}},o.prototype.remove=function(t,e){var i,n,s,o=[];if(t instanceof Array)for(i=0,n=t.length;n>i;i++)s=this._remove(t[i]),null!=s&&o.push(s);else s=this._remove(t),null!=s&&o.push(s);return o.length&&this._trigger("remove",{items:o},e),o},o.prototype._remove=function(t){if(z.isNumber(t)||z.isString(t)){if(this.data[t])return delete this.data[t],delete this.internalIds[t],t}else if(t instanceof Object){var e=t[this.fieldId];if(e&&this.data[e])return delete this.data[e],delete this.internalIds[e],e}return null},o.prototype.clear=function(t){var e=Object.keys(this.data);return this.data={},this.internalIds={},this._trigger("remove",{items:e},t),e},o.prototype.max=function(t){var e=this.data,i=null,n=null;for(var s in e)if(e.hasOwnProperty(s)){var o=e[s],r=o[t];null!=r&&(!i||r>n)&&(i=o,n=r)}return i},o.prototype.min=function(t){var e=this.data,i=null,n=null;for(var s in e)if(e.hasOwnProperty(s)){var o=e[s],r=o[t];null!=r&&(!i||n>r)&&(i=o,n=r)}return i},o.prototype.distinct=function(t){var e=this.data,i=[],n=this.options.convert[t],s=0;for(var o in e)if(e.hasOwnProperty(o)){for(var r=e[o],a=z.convert(r[t],n),h=!1,d=0;s>d;d++)if(i[d]==a){h=!0;break}h||(i[s]=a,s++)}return i},o.prototype._addItem=function(t){var e=t[this.fieldId];if(void 0!=e){if(this.data[e])throw new Error("Cannot add item: item with id "+e+" already exists")}else e=z.randomUUID(),t[this.fieldId]=e,this.internalIds[e]=t;var i={};for(var n in t)if(t.hasOwnProperty(n)){var s=this.convert[n];i[n]=z.convert(t[n],s)}return this.data[e]=i,e},o.prototype._getItem=function(t,e){var i,n,s=this.data[t];if(!s)return null;var o={},r=this.fieldId,a=this.internalIds;if(e)for(i in s)s.hasOwnProperty(i)&&(n=s[i],i==r&&n in a&&!this.showInternalIds||(o[i]=z.convert(n,e[i])));else for(i in s)s.hasOwnProperty(i)&&(n=s[i],i==r&&n in a&&!this.showInternalIds||(o[i]=n));return o},o.prototype._updateItem=function(t){var e=t[this.fieldId];if(void 0==e)throw new Error("Cannot update item: item has no id (item: "+JSON.stringify(t)+")");var i=this.data[e];if(!i)throw new Error("Cannot update item: no item with id "+e+" found");for(var n in t)if(t.hasOwnProperty(n)){var s=this.convert[n];i[n]=z.convert(t[n],s)}return e},o.prototype.isInternalId=function(t){return t in this.internalIds},o.prototype._getColumnNames=function(t){for(var e=[],i=0,n=t.getNumberOfColumns();n>i;i++)e[i]=t.getColumnId(i)||t.getColumnLabel(i);return e},o.prototype._appendRow=function(t,e,i){for(var n=t.addRow(),s=0,o=e.length;o>s;s++){var r=e[s];t.setValue(n,s,i[r])}},r.prototype.setData=function(t){var e,i,n;if(this.data){this.data.unsubscribe&&this.data.unsubscribe("*",this.listener),e=[];for(var s in this.ids)this.ids.hasOwnProperty(s)&&e.push(s);this.ids={},this._trigger("remove",{items:e})}if(this.data=t,this.data){for(this.fieldId=this.options.fieldId||this.data&&this.data.options&&this.data.options.fieldId||"id",e=this.data.getIds({filter:this.options&&this.options.filter}),i=0,n=e.length;n>i;i++)s=e[i],this.ids[s]=!0;this._trigger("add",{items:e}),this.data.subscribe&&this.data.subscribe("*",this.listener)}},r.prototype.get=function(){var t,e,i,n=this,s=z.getType(arguments[0]);"String"==s||"Number"==s||"Array"==s?(t=arguments[0],e=arguments[1],i=arguments[2]):(e=arguments[0],i=arguments[1]);var o=z.extend({},this.options,e);this.options.filter&&e&&e.filter&&(o.filter=function(t){return n.options.filter(t)&&e.filter(t)});var r=[];return void 0!=t&&r.push(t),r.push(o),r.push(i),this.data&&this.data.get.apply(this.data,r)},r.prototype.getIds=function(t){var e;if(this.data){var i,n=this.options.filter;i=t&&t.filter?n?function(e){return n(e)&&t.filter(e)}:t.filter:n,e=this.data.getIds({filter:i,order:t&&t.order})}else e=[];return e},r.prototype._onEvent=function(t,e,i){var n,s,o,r,a=e&&e.items,h=this.data,d=[],c=[],l=[];if(a&&h){switch(t){case"add":for(n=0,s=a.length;s>n;n++)o=a[n],r=this.get(o),r&&(this.ids[o]=!0,d.push(o));break;case"update":for(n=0,s=a.length;s>n;n++)o=a[n],r=this.get(o),r?this.ids[o]?c.push(o):(this.ids[o]=!0,d.push(o)):this.ids[o]&&(delete this.ids[o],l.push(o));break;case"remove":for(n=0,s=a.length;s>n;n++)o=a[n],this.ids[o]&&(delete this.ids[o],l.push(o))}d.length&&this._trigger("add",{items:d},i),c.length&&this._trigger("update",{items:c},i),l.length&&this._trigger("remove",{items:l},i)}},r.prototype.subscribe=o.prototype.subscribe,r.prototype.unsubscribe=o.prototype.unsubscribe,r.prototype._trigger=o.prototype._trigger,TimeStep=function(t,e,i){this.current=new Date,this._start=new Date,this._end=new Date,this.autoScale=!0,this.scale=TimeStep.SCALE.DAY,this.step=1,this.setRange(t,e,i)},TimeStep.SCALE={MILLISECOND:1,SECOND:2,MINUTE:3,HOUR:4,DAY:5,WEEKDAY:6,MONTH:7,YEAR:8},TimeStep.prototype.setRange=function(t,e,i){if(!(t instanceof Date&&e instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=t?new Date(t.valueOf()):new Date,this._end=void 0!=e?new Date(e.valueOf()):new Date,this.autoScale&&this.setMinimumStep(i)},TimeStep.prototype.first=function(){this.current=new Date(this._start.valueOf()),this.roundToMinor()},TimeStep.prototype.roundToMinor=function(){switch(this.scale){case TimeStep.SCALE.YEAR:this.current.setFullYear(this.step*Math.floor(this.current.getFullYear()/this.step)),this.current.setMonth(0);case TimeStep.SCALE.MONTH:this.current.setDate(1);case TimeStep.SCALE.DAY:case TimeStep.SCALE.WEEKDAY:this.current.setHours(0);case TimeStep.SCALE.HOUR:this.current.setMinutes(0);case TimeStep.SCALE.MINUTE:this.current.setSeconds(0);case TimeStep.SCALE.SECOND:this.current.setMilliseconds(0)}if(1!=this.step)switch(this.scale){case TimeStep.SCALE.MILLISECOND:this.current.setMilliseconds(this.current.getMilliseconds()-this.current.getMilliseconds()%this.step);break;case TimeStep.SCALE.SECOND:this.current.setSeconds(this.current.getSeconds()-this.current.getSeconds()%this.step);break;case TimeStep.SCALE.MINUTE:this.current.setMinutes(this.current.getMinutes()-this.current.getMinutes()%this.step);break;case TimeStep.SCALE.HOUR:this.current.setHours(this.current.getHours()-this.current.getHours()%this.step);break;case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:this.current.setDate(this.current.getDate()-1-(this.current.getDate()-1)%this.step+1);break;case TimeStep.SCALE.MONTH:this.current.setMonth(this.current.getMonth()-this.current.getMonth()%this.step); break;case TimeStep.SCALE.YEAR:this.current.setFullYear(this.current.getFullYear()-this.current.getFullYear()%this.step)}},TimeStep.prototype.hasNext=function(){return this.current.valueOf()<=this._end.valueOf()},TimeStep.prototype.next=function(){var t=this.current.valueOf();if(this.current.getMonth()<6)switch(this.scale){case TimeStep.SCALE.MILLISECOND:this.current=new Date(this.current.valueOf()+this.step);break;case TimeStep.SCALE.SECOND:this.current=new Date(this.current.valueOf()+1e3*this.step);break;case TimeStep.SCALE.MINUTE:this.current=new Date(this.current.valueOf()+1e3*this.step*60);break;case TimeStep.SCALE.HOUR:this.current=new Date(this.current.valueOf()+1e3*this.step*60*60);var e=this.current.getHours();this.current.setHours(e-e%this.step);break;case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:this.current.setDate(this.current.getDate()+this.step);break;case TimeStep.SCALE.MONTH:this.current.setMonth(this.current.getMonth()+this.step);break;case TimeStep.SCALE.YEAR:this.current.setFullYear(this.current.getFullYear()+this.step)}else switch(this.scale){case TimeStep.SCALE.MILLISECOND:this.current=new Date(this.current.valueOf()+this.step);break;case TimeStep.SCALE.SECOND:this.current.setSeconds(this.current.getSeconds()+this.step);break;case TimeStep.SCALE.MINUTE:this.current.setMinutes(this.current.getMinutes()+this.step);break;case TimeStep.SCALE.HOUR:this.current.setHours(this.current.getHours()+this.step);break;case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:this.current.setDate(this.current.getDate()+this.step);break;case TimeStep.SCALE.MONTH:this.current.setMonth(this.current.getMonth()+this.step);break;case TimeStep.SCALE.YEAR:this.current.setFullYear(this.current.getFullYear()+this.step)}if(1!=this.step)switch(this.scale){case TimeStep.SCALE.MILLISECOND:this.current.getMilliseconds()<this.step&&this.current.setMilliseconds(0);break;case TimeStep.SCALE.SECOND:this.current.getSeconds()<this.step&&this.current.setSeconds(0);break;case TimeStep.SCALE.MINUTE:this.current.getMinutes()<this.step&&this.current.setMinutes(0);break;case TimeStep.SCALE.HOUR:this.current.getHours()<this.step&&this.current.setHours(0);break;case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:this.current.getDate()<this.step+1&&this.current.setDate(1);break;case TimeStep.SCALE.MONTH:this.current.getMonth()<this.step&&this.current.setMonth(0);break;case TimeStep.SCALE.YEAR:}this.current.valueOf()==t&&(this.current=new Date(this._end.valueOf()))},TimeStep.prototype.getCurrent=function(){return this.current},TimeStep.prototype.setScale=function(t,e){this.scale=t,e>0&&(this.step=e),this.autoScale=!1},TimeStep.prototype.setAutoScale=function(t){this.autoScale=t},TimeStep.prototype.setMinimumStep=function(t){if(void 0!=t){var e=31104e6,i=2592e6,n=864e5,s=36e5,o=6e4,r=1e3,a=1;1e3*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=1e3),500*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=500),100*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=100),50*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=50),10*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=10),5*e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=5),e>t&&(this.scale=TimeStep.SCALE.YEAR,this.step=1),3*i>t&&(this.scale=TimeStep.SCALE.MONTH,this.step=3),i>t&&(this.scale=TimeStep.SCALE.MONTH,this.step=1),5*n>t&&(this.scale=TimeStep.SCALE.DAY,this.step=5),2*n>t&&(this.scale=TimeStep.SCALE.DAY,this.step=2),n>t&&(this.scale=TimeStep.SCALE.DAY,this.step=1),n/2>t&&(this.scale=TimeStep.SCALE.WEEKDAY,this.step=1),4*s>t&&(this.scale=TimeStep.SCALE.HOUR,this.step=4),s>t&&(this.scale=TimeStep.SCALE.HOUR,this.step=1),15*o>t&&(this.scale=TimeStep.SCALE.MINUTE,this.step=15),10*o>t&&(this.scale=TimeStep.SCALE.MINUTE,this.step=10),5*o>t&&(this.scale=TimeStep.SCALE.MINUTE,this.step=5),o>t&&(this.scale=TimeStep.SCALE.MINUTE,this.step=1),15*r>t&&(this.scale=TimeStep.SCALE.SECOND,this.step=15),10*r>t&&(this.scale=TimeStep.SCALE.SECOND,this.step=10),5*r>t&&(this.scale=TimeStep.SCALE.SECOND,this.step=5),r>t&&(this.scale=TimeStep.SCALE.SECOND,this.step=1),200*a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=200),100*a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=100),50*a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=50),10*a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=10),5*a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=5),a>t&&(this.scale=TimeStep.SCALE.MILLISECOND,this.step=1)}},TimeStep.prototype.snap=function(t){if(this.scale==TimeStep.SCALE.YEAR){var e=t.getFullYear()+Math.round(t.getMonth()/12);t.setFullYear(Math.round(e/this.step)*this.step),t.setMonth(0),t.setDate(0),t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)}else if(this.scale==TimeStep.SCALE.MONTH)t.getDate()>15?(t.setDate(1),t.setMonth(t.getMonth()+1)):t.setDate(1),t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0);else if(this.scale==TimeStep.SCALE.DAY||this.scale==TimeStep.SCALE.WEEKDAY){switch(this.step){case 5:case 2:t.setHours(24*Math.round(t.getHours()/24));break;default:t.setHours(12*Math.round(t.getHours()/12))}t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)}else if(this.scale==TimeStep.SCALE.HOUR){switch(this.step){case 4:t.setMinutes(60*Math.round(t.getMinutes()/60));break;default:t.setMinutes(30*Math.round(t.getMinutes()/30))}t.setSeconds(0),t.setMilliseconds(0)}else if(this.scale==TimeStep.SCALE.MINUTE){switch(this.step){case 15:case 10:t.setMinutes(5*Math.round(t.getMinutes()/5)),t.setSeconds(0);break;case 5:t.setSeconds(60*Math.round(t.getSeconds()/60));break;default:t.setSeconds(30*Math.round(t.getSeconds()/30))}t.setMilliseconds(0)}else if(this.scale==TimeStep.SCALE.SECOND)switch(this.step){case 15:case 10:t.setSeconds(5*Math.round(t.getSeconds()/5)),t.setMilliseconds(0);break;case 5:t.setMilliseconds(1e3*Math.round(t.getMilliseconds()/1e3));break;default:t.setMilliseconds(500*Math.round(t.getMilliseconds()/500))}else if(this.scale==TimeStep.SCALE.MILLISECOND){var i=this.step>5?this.step/2:1;t.setMilliseconds(Math.round(t.getMilliseconds()/i)*i)}},TimeStep.prototype.isMajor=function(){switch(this.scale){case TimeStep.SCALE.MILLISECOND:return 0==this.current.getMilliseconds();case TimeStep.SCALE.SECOND:return 0==this.current.getSeconds();case TimeStep.SCALE.MINUTE:return 0==this.current.getHours()&&0==this.current.getMinutes();case TimeStep.SCALE.HOUR:return 0==this.current.getHours();case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:return 1==this.current.getDate();case TimeStep.SCALE.MONTH:return 0==this.current.getMonth();case TimeStep.SCALE.YEAR:return!1;default:return!1}},TimeStep.prototype.getLabelMinor=function(t){switch(void 0==t&&(t=this.current),this.scale){case TimeStep.SCALE.MILLISECOND:return L(t).format("SSS");case TimeStep.SCALE.SECOND:return L(t).format("s");case TimeStep.SCALE.MINUTE:return L(t).format("HH:mm");case TimeStep.SCALE.HOUR:return L(t).format("HH:mm");case TimeStep.SCALE.WEEKDAY:return L(t).format("ddd D");case TimeStep.SCALE.DAY:return L(t).format("D");case TimeStep.SCALE.MONTH:return L(t).format("MMM");case TimeStep.SCALE.YEAR:return L(t).format("YYYY");default:return""}},TimeStep.prototype.getLabelMajor=function(t){switch(void 0==t&&(t=this.current),this.scale){case TimeStep.SCALE.MILLISECOND:return L(t).format("HH:mm:ss");case TimeStep.SCALE.SECOND:return L(t).format("D MMMM HH:mm");case TimeStep.SCALE.MINUTE:case TimeStep.SCALE.HOUR:return L(t).format("ddd D MMMM");case TimeStep.SCALE.WEEKDAY:case TimeStep.SCALE.DAY:return L(t).format("MMMM YYYY");case TimeStep.SCALE.MONTH:return L(t).format("YYYY");case TimeStep.SCALE.YEAR:return"";default:return""}},a.prototype.setOptions=function(t){z.extend(this.options,t)},a.prototype.update=function(){this._order(),this._stack()},a.prototype._order=function(){var t=this.parent.items;if(!t)throw new Error("Cannot stack items: parent does not contain items");var e=[],i=0;z.forEach(t,function(t){t.visible&&(e[i]=t,i++)});var n=this.options.order||this.defaultOptions.order;if("function"!=typeof n)throw new Error("Option order must be a function");e.sort(n),this.ordered=e},a.prototype._stack=function(){var t,e,i,n=this.ordered,s=this.options,o=s.orientation||this.defaultOptions.orientation,r="top"==o;for(i=s.margin&&void 0!==s.margin.item?s.margin.item:this.defaultOptions.margin.item,t=0,e=n.length;e>t;t++){var a=n[t],h=null;do h=this.checkOverlap(n,t,0,t-1,i),null!=h&&(a.top=r?h.top+h.height+i:h.top-a.height-i);while(h)}},a.prototype.checkOverlap=function(t,e,i,n,s){for(var o=this.collision,r=t[e],a=n;a>=i;a--){var h=t[a];if(o(r,h,s)&&a!=e)return h}return null},a.prototype.collision=function(t,e,i){return t.left-i<e.left+e.getWidth()&&t.left+t.getWidth()+i>e.left&&t.top-i<e.top+e.height&&t.top+t.height+i>e.top},h.prototype.setOptions=function(t){z.extend(this.options,t),null!==this.start&&null!==this.end&&this.setRange(this.start,this.end)},h.prototype.subscribe=function(t,e,i){function n(e){s._onMouseWheel(e,t,i)}var s=this;if("move"==e)t.on("dragstart",function(e){s._onDragStart(e,t)}),t.on("drag",function(e){s._onDrag(e,t,i)}),t.on("dragend",function(e){s._onDragEnd(e,t)});else{if("zoom"!=e)throw new TypeError('Unknown event "'+e+'". Choose "move" or "zoom".');t.on("mousewheel",n),t.on("DOMMouseScroll",n),t.on("touch",function(){s._onTouch()}),t.on("pinch",function(e){s._onPinch(e,t,i)})}},h.prototype.on=function(t,e){var i=["rangechange","rangechanged"];if(-1==i.indexOf(t))throw new Error('Unknown event "'+t+'". Choose from '+i.join());F.addListener(this,t,e)},h.prototype.off=function(t,e){F.removeListener(this,t,e)},h.prototype._trigger=function(t){F.trigger(this,t,{start:this.start,end:this.end})},h.prototype.setRange=function(t,e){var i=this._applyRange(t,e);i&&(this._trigger("rangechange"),this._trigger("rangechanged"))},h.prototype._applyRange=function(t,e){var i,n=null!=t?z.convert(t,"Date").valueOf():this.start,s=null!=e?z.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?z.convert(this.options.max,"Date").valueOf():null,r=null!=this.options.min?z.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'+t+'"');if(isNaN(s)||null===s)throw new Error('Invalid end "'+e+'"');if(n>s&&(s=n),null!==r&&r>n&&(i=r-n,n+=i,s+=i,null!=o&&s>o&&(s=o)),null!==o&&s>o&&(i=s-o,n-=i,s-=i,null!=r&&r>n&&(n=r)),null!==this.options.zoomMin){var a=parseFloat(this.options.zoomMin);0>a&&(a=0),a>s-n&&(this.end-this.start===a?(n=this.start,s=this.end):(i=a-(s-n),n-=i/2,s+=i/2))}if(null!==this.options.zoomMax){var h=parseFloat(this.options.zoomMax);0>h&&(h=0),s-n>h&&(this.end-this.start===h?(n=this.start,s=this.end):(i=s-n-h,n+=i/2,s-=i/2))}var d=this.start!=n||this.end!=s;return this.start=n,this.end=s,d},h.prototype.getRange=function(){return{start:this.start,end:this.end}},h.prototype.conversion=function(t){return h.conversion(this.start,this.end,t)},h.conversion=function(t,e,i){return 0!=i&&e-t!=0?{offset:t,scale:i/(e-t)}:{offset:0,scale:1}};var Y={};h.prototype._onDragStart=function(t,e){if(!Y.pinching){Y.start=this.start,Y.end=this.end;var i=e.frame;i&&(i.style.cursor="move")}},h.prototype._onDrag=function(t,e,i){if(d(i),!Y.pinching){var n="horizontal"==i?t.gesture.deltaX:t.gesture.deltaY,s=Y.end-Y.start,o="horizontal"==i?e.width:e.height,r=-n/o*s;this._applyRange(Y.start+r,Y.end+r),this._trigger("rangechange")}},h.prototype._onDragEnd=function(t,e){Y.pinching||(e.frame&&(e.frame.style.cursor="auto"),this._trigger("rangechanged"))},h.prototype._onMouseWheel=function(t,e,i){d(i);var n=0;if(t.wheelDelta?n=t.wheelDelta/120:t.detail&&(n=-t.detail/3),n){var s;s=0>n?1-n/5:1/(1+n/5);var o=z.fakeGesture(this,t),r=c(o.touches[0],e.frame),a=this._pointerToDate(e,i,r);this.zoom(s,a)}z.preventDefault(t)},h.prototype._onTouch=function(){Y.start=this.start,Y.end=this.end,Y.pinching=!1,Y.center=null},h.prototype._onPinch=function(t,e,i){if(Y.pinching=!0,t.gesture.touches.length>1){Y.center||(Y.center=c(t.gesture.center,e.frame));var n=1/t.gesture.scale,s=this._pointerToDate(e,i,Y.center),o=c(t.gesture.center,e.frame),r=(this._pointerToDate(e,i,o),parseInt(s+(Y.start-s)*n)),a=parseInt(s+(Y.end-s)*n);this.setRange(r,a)}},h.prototype._pointerToDate=function(t,e,i){var n;if("horizontal"==e){var s=t.width;return n=this.conversion(s),i.x/n.scale+n.offset}var o=t.height;return n=this.conversion(o),i.y/n.scale+n.offset},h.prototype.zoom=function(t,e){null==e&&(e=(this.start+this.end)/2);var i=e+(this.start-e)*t,n=e+(this.end-e)*t;this.setRange(i,n)},h.prototype.move=function(t){var e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n},h.prototype.moveTo=function(t){var e=(this.start+this.end)/2,i=e-t,n=this.start-i,s=this.end-i;this.setRange(n,s)},l.prototype.add=function(t){if(void 0==t.id)throw new Error("Component has no field id");if(!(t instanceof u||t instanceof l))throw new TypeError("Component must be an instance of prototype Component or Controller");t.controller=this,this.components[t.id]=t},l.prototype.remove=function(t){var e;for(e in this.components)if(this.components.hasOwnProperty(e)&&(e==t||this.components[e]==t))break;e&&delete this.components[e]},l.prototype.requestReflow=function(t){if(t)this.reflow();else if(!this.reflowTimer){var e=this;this.reflowTimer=setTimeout(function(){e.reflowTimer=void 0,e.reflow()},0)}},l.prototype.requestRepaint=function(t){if(t)this.repaint();else if(!this.repaintTimer){var e=this;this.repaintTimer=setTimeout(function(){e.repaintTimer=void 0,e.repaint()},0)}},l.prototype.repaint=function V(){function V(i,n){n in e||(i.depends&&i.depends.forEach(function(t){V(t,t.id)}),i.parent&&V(i.parent,i.parent.id),t=i.repaint()||t,e[n]=!0)}var t=!1;this.repaintTimer&&(clearTimeout(this.repaintTimer),this.repaintTimer=void 0);var e={};z.forEach(this.components,V),t&&this.reflow()},l.prototype.reflow=function G(){function G(i,n){n in e||(i.depends&&i.depends.forEach(function(t){G(t,t.id)}),i.parent&&G(i.parent,i.parent.id),t=i.reflow()||t,e[n]=!0)}var t=!1;this.reflowTimer&&(clearTimeout(this.reflowTimer),this.reflowTimer=void 0);var e={};z.forEach(this.components,G),t&&this.repaint()},u.prototype.setOptions=function(t){t&&(z.extend(this.options,t),this.controller&&(this.requestRepaint(),this.requestReflow()))},u.prototype.getOption=function(t){var e;return this.options&&(e=this.options[t]),void 0===e&&this.defaultOptions&&(e=this.defaultOptions[t]),e},u.prototype.getContainer=function(){return null},u.prototype.getFrame=function(){return this.frame},u.prototype.repaint=function(){return!1},u.prototype.reflow=function(){return!1},u.prototype.hide=function(){return this.frame&&this.frame.parentNode?(this.frame.parentNode.removeChild(this.frame),!0):!1},u.prototype.show=function(){return this.frame&&this.frame.parentNode?!1:this.repaint()},u.prototype.requestRepaint=function(){if(!this.controller)throw new Error("Cannot request a repaint: no controller configured");this.controller.requestRepaint()},u.prototype.requestReflow=function(){if(!this.controller)throw new Error("Cannot request a reflow: no controller configured");this.controller.requestReflow()},p.prototype=new u,p.prototype.setOptions=u.prototype.setOptions,p.prototype.getContainer=function(){return this.frame},p.prototype.repaint=function(){var t=0,e=z.updateProperty,i=z.option.asSize,n=this.options,s=this.frame;if(!s){s=document.createElement("div"),s.className="panel";var o=n.className;o&&("function"==typeof o?z.addClassName(s,String(o())):z.addClassName(s,String(o))),this.frame=s,t+=1}if(!s.parentNode){if(!this.parent)throw new Error("Cannot repaint panel: no parent attached");var r=this.parent.getContainer();if(!r)throw new Error("Cannot repaint panel: parent has no container element");r.appendChild(s),t+=1}return t+=e(s.style,"top",i(n.top,"0px")),t+=e(s.style,"left",i(n.left,"0px")),t+=e(s.style,"width",i(n.width,"100%")),t+=e(s.style,"height",i(n.height,"100%")),t>0},p.prototype.reflow=function(){var t=0,e=z.updateProperty,i=this.frame;return i?(t+=e(this,"top",i.offsetTop),t+=e(this,"left",i.offsetLeft),t+=e(this,"width",i.offsetWidth),t+=e(this,"height",i.offsetHeight)):t+=1,t>0},f.prototype=new p,f.prototype.setOptions=u.prototype.setOptions,f.prototype.repaint=function(){var t=0,e=z.updateProperty,i=z.option.asSize,n=this.options,s=this.frame;if(s||(s=document.createElement("div"),this.frame=s,t+=1),!s.parentNode){if(!this.container)throw new Error("Cannot repaint root panel: no container attached");this.container.appendChild(s),t+=1}s.className="vis timeline rootpanel "+n.orientation;var o=n.className;return o&&z.addClassName(s,z.option.asString(o)),t+=e(s.style,"top",i(n.top,"0px")),t+=e(s.style,"left",i(n.left,"0px")),t+=e(s.style,"width",i(n.width,"100%")),t+=e(s.style,"height",i(n.height,"100%")),this._updateEventEmitters(),this._updateWatch(),t>0},f.prototype.reflow=function(){var t=0,e=z.updateProperty,i=this.frame;return i?(t+=e(this,"top",i.offsetTop),t+=e(this,"left",i.offsetLeft),t+=e(this,"width",i.offsetWidth),t+=e(this,"height",i.offsetHeight)):t+=1,t>0},f.prototype._updateWatch=function(){var t=this.getOption("autoResize");t?this._watch():this._unwatch()},f.prototype._watch=function(){var t=this;this._unwatch();var e=function(){var e=t.getOption("autoResize");return e?void(t.frame&&(t.frame.clientWidth!=t.width||t.frame.clientHeight!=t.height)&&t.requestReflow()):void t._unwatch()};z.addEventListener(window,"resize",e),this.watchTimer=setInterval(e,1e3)},f.prototype._unwatch=function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0)},f.prototype.on=function(t,e){var i=this.listeners[t];i||(i=[],this.listeners[t]=i),i.push(e),this._updateEventEmitters()},f.prototype._updateEventEmitters=function(){if(this.listeners){var t=this;z.forEach(this.listeners,function(e,i){if(t.emitters||(t.emitters={}),!(i in t.emitters)){var n=t.frame;if(n){var s=function(t){e.forEach(function(e){e(t)})};t.emitters[i]=s,t.hammer||(t.hammer=N(n,{prevent_default:!0})),t.hammer.on(i,s)}}})}},g.prototype=new u,g.prototype.setOptions=u.prototype.setOptions,g.prototype.setRange=function(t){if(!(t instanceof h||t&&t.start&&t.end))throw new TypeError("Range must be an instance of Range, or an object containing start and end.");this.range=t},g.prototype.toTime=function(t){var e=this.conversion;return new Date(t/e.scale+e.offset)},g.prototype.toScreen=function(t){var e=this.conversion;return(t.valueOf()-e.offset)*e.scale},g.prototype.repaint=function(){var t=0,e=z.updateProperty,i=z.option.asSize,n=this.options,s=this.getOption("orientation"),o=this.props,r=this.step,a=this.frame;if(a||(a=document.createElement("div"),this.frame=a,t+=1),a.className="axis",!a.parentNode){if(!this.parent)throw new Error("Cannot repaint time axis: no parent attached");var h=this.parent.getContainer();if(!h)throw new Error("Cannot repaint time axis: parent has no container element");h.appendChild(a),t+=1}var d=a.parentNode;if(d){var c=a.nextSibling;d.removeChild(a);var l="bottom"==s&&this.props.parentHeight&&this.height?this.props.parentHeight-this.height+"px":"0px";if(t+=e(a.style,"top",i(n.top,l)),t+=e(a.style,"left",i(n.left,"0px")),t+=e(a.style,"width",i(n.width,"100%")),t+=e(a.style,"height",i(n.height,this.height+"px")),this._repaintMeasureChars(),this.step){this._repaintStart(),r.first();for(var u=void 0,p=0;r.hasNext()&&1e3>p;){p++;var f=r.getCurrent(),g=this.toScreen(f),m=r.isMajor();this.getOption("showMinorLabels")&&this._repaintMinorText(g,r.getLabelMinor()),m&&this.getOption("showMajorLabels")?(g>0&&(void 0==u&&(u=g),this._repaintMajorText(g,r.getLabelMajor())),this._repaintMajorLine(g)):this._repaintMinorLine(g),r.next()}if(this.getOption("showMajorLabels")){var v=this.toTime(0),y=r.getLabelMajor(v),_=y.length*(o.majorCharWidth||10)+10;(void 0==u||u>_)&&this._repaintMajorText(0,y)}this._repaintEnd()}this._repaintLine(),c?d.insertBefore(a,c):d.appendChild(a)}return t>0},g.prototype._repaintStart=function(){var t=this.dom,e=t.redundant;e.majorLines=t.majorLines,e.majorTexts=t.majorTexts,e.minorLines=t.minorLines,e.minorTexts=t.minorTexts,t.majorLines=[],t.majorTexts=[],t.minorLines=[],t.minorTexts=[]},g.prototype._repaintEnd=function(){z.forEach(this.dom.redundant,function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})},g.prototype._repaintMinorText=function(t,e){var i=this.dom.redundant.minorTexts.shift();if(!i){var n=document.createTextNode("");i=document.createElement("div"),i.appendChild(n),i.className="text minor",this.frame.appendChild(i)}this.dom.minorTexts.push(i),i.childNodes[0].nodeValue=e,i.style.left=t+"px",i.style.top=this.props.minorLabelTop+"px"},g.prototype._repaintMajorText=function(t,e){var i=this.dom.redundant.majorTexts.shift();if(!i){var n=document.createTextNode(e);i=document.createElement("div"),i.className="text major",i.appendChild(n),this.frame.appendChild(i)}this.dom.majorTexts.push(i),i.childNodes[0].nodeValue=e,i.style.top=this.props.majorLabelTop+"px",i.style.left=t+"px"},g.prototype._repaintMinorLine=function(t){var e=this.dom.redundant.minorLines.shift();e||(e=document.createElement("div"),e.className="grid vertical minor",this.frame.appendChild(e)),this.dom.minorLines.push(e);var i=this.props;e.style.top=i.minorLineTop+"px",e.style.height=i.minorLineHeight+"px",e.style.left=t-i.minorLineWidth/2+"px"},g.prototype._repaintMajorLine=function(t){var e=this.dom.redundant.majorLines.shift();e||(e=document.createElement("DIV"),e.className="grid vertical major",this.frame.appendChild(e)),this.dom.majorLines.push(e);var i=this.props;e.style.top=i.majorLineTop+"px",e.style.left=t-i.majorLineWidth/2+"px",e.style.height=i.majorLineHeight+"px"},g.prototype._repaintLine=function(){{var t=this.dom.line,e=this.frame;this.options}this.getOption("showMinorLabels")||this.getOption("showMajorLabels")?(t?(e.removeChild(t),e.appendChild(t)):(t=document.createElement("div"),t.className="grid horizontal major",e.appendChild(t),this.dom.line=t),t.style.top=this.props.lineTop+"px"):t&&t.parentElement&&(e.removeChild(t.line),delete this.dom.line)},g.prototype._repaintMeasureChars=function(){var t,e=this.dom;if(!e.measureCharMinor){t=document.createTextNode("0");var i=document.createElement("DIV");i.className="text minor measure",i.appendChild(t),this.frame.appendChild(i),e.measureCharMinor=i}if(!e.measureCharMajor){t=document.createTextNode("0");var n=document.createElement("DIV");n.className="text major measure",n.appendChild(t),this.frame.appendChild(n),e.measureCharMajor=n}},g.prototype.reflow=function(){var t=0,e=z.updateProperty,i=this.frame,n=this.range;if(!n)throw new Error("Cannot repaint time axis: no range configured");if(i){t+=e(this,"top",i.offsetTop),t+=e(this,"left",i.offsetLeft);var s=this.props,o=this.getOption("showMinorLabels"),r=this.getOption("showMajorLabels"),a=this.dom.measureCharMinor,h=this.dom.measureCharMajor;a&&(s.minorCharHeight=a.clientHeight,s.minorCharWidth=a.clientWidth),h&&(s.majorCharHeight=h.clientHeight,s.majorCharWidth=h.clientWidth);var d=i.parentNode?i.parentNode.offsetHeight:0;switch(d!=s.parentHeight&&(s.parentHeight=d,t+=1),this.getOption("orientation")){case"bottom":s.minorLabelHeight=o?s.minorCharHeight:0,s.majorLabelHeight=r?s.majorCharHeight:0,s.minorLabelTop=0,s.majorLabelTop=s.minorLabelTop+s.minorLabelHeight,s.minorLineTop=-this.top,s.minorLineHeight=Math.max(this.top+s.majorLabelHeight,0),s.minorLineWidth=1,s.majorLineTop=-this.top,s.majorLineHeight=Math.max(this.top+s.minorLabelHeight+s.majorLabelHeight,0),s.majorLineWidth=1,s.lineTop=0;break;case"top":s.minorLabelHeight=o?s.minorCharHeight:0,s.majorLabelHeight=r?s.majorCharHeight:0,s.majorLabelTop=0,s.minorLabelTop=s.majorLabelTop+s.majorLabelHeight,s.minorLineTop=s.minorLabelTop,s.minorLineHeight=Math.max(d-s.majorLabelHeight-this.top),s.minorLineWidth=1,s.majorLineTop=0,s.majorLineHeight=Math.max(d-this.top),s.majorLineWidth=1,s.lineTop=s.majorLabelHeight+s.minorLabelHeight;break;default:throw new Error('Unkown orientation "'+this.getOption("orientation")+'"')}var c=s.minorLabelHeight+s.majorLabelHeight;t+=e(this,"width",i.offsetWidth),t+=e(this,"height",c),this._updateConversion();var l=z.convert(n.start,"Number"),u=z.convert(n.end,"Number"),p=this.toTime(5*(s.minorCharWidth||10)).valueOf()-this.toTime(0).valueOf();this.step=new TimeStep(new Date(l),new Date(u),p),t+=e(s.range,"start",l),t+=e(s.range,"end",u),t+=e(s.range,"minimumStep",p.valueOf())}return t>0},g.prototype._updateConversion=function(){var t=this.range;if(!t)throw new Error("No range configured");this.conversion=t.conversion?t.conversion(this.width):h.conversion(t.start,t.end,this.width)},m.prototype=new u,m.prototype.setOptions=u.prototype.setOptions,m.prototype.getContainer=function(){return this.frame},m.prototype.repaint=function(){var t=this.frame,e=this.parent,i=e.parent.getContainer();if(!e)throw new Error("Cannot repaint bar: no parent attached");if(!i)throw new Error("Cannot repaint bar: parent has no container element");if(!this.getOption("showCurrentTime"))return void(t&&(i.removeChild(t),delete this.frame));t||(t=document.createElement("div"),t.className="currenttime",t.style.position="absolute",t.style.top="0px",t.style.height="100%",i.appendChild(t),this.frame=t),e.conversion||e._updateConversion();var n=new Date,s=e.toScreen(n);t.style.left=s+"px",t.title="Current time: "+n,void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer);var o=this,r=1/e.conversion.scale/2;return 30>r&&(r=30),this.currentTimeTimer=setTimeout(function(){o.repaint()},r),!1},v.prototype=new u,v.prototype.setOptions=u.prototype.setOptions,v.prototype.getContainer=function(){return this.frame},v.prototype.repaint=function(){var t=this.frame,e=this.parent,i=e.parent.getContainer();if(!e)throw new Error("Cannot repaint bar: no parent attached");if(!i)throw new Error("Cannot repaint bar: parent has no container element");if(!this.getOption("showCustomTime"))return void(t&&(i.removeChild(t),delete this.frame));if(!t){t=document.createElement("div"),t.className="customtime",t.style.position="absolute",t.style.top="0px",t.style.height="100%",i.appendChild(t);var n=document.createElement("div");n.style.position="relative",n.style.top="0px",n.style.left="-10px",n.style.height="100%",n.style.width="20px",t.appendChild(n),this.frame=t,this.subscribe(this,"movetime")}e.conversion||e._updateConversion();var s=e.toScreen(this.customTime);return t.style.left=s+"px",t.title="Time: "+this.customTime,!1},v.prototype._setCustomTime=function(t){this.customTime=new Date(t.valueOf()),this.repaint()},v.prototype._getCustomTime=function(){return new Date(this.customTime.valueOf())},v.prototype.subscribe=function(t,e){var i=this,n={component:t,event:e,callback:function(t){i._onMouseDown(t,n)},params:{}};t.on("mousedown",n.callback),i.listeners.push(n)},v.prototype.on=function(t,e){var i=this.frame;if(!i)throw new Error("Cannot add event listener: no parent attached");F.addListener(this,t,e),z.addEventListener(i,t,e)},v.prototype._onMouseDown=function(t,e){t=t||window.event;var i=e.params,n=t.which?1==t.which:1==t.button;if(n){i.mouseX=z.getPageX(t),i.moved=!1,i.customTime=this.customTime;var s=this;i.onMouseMove||(i.onMouseMove=function(t){s._onMouseMove(t,e)},z.addEventListener(document,"mousemove",i.onMouseMove)),i.onMouseUp||(i.onMouseUp=function(t){s._onMouseUp(t,e)},z.addEventListener(document,"mouseup",i.onMouseUp)),z.stopPropagation(t),z.preventDefault(t)}},v.prototype._onMouseMove=function(t,e){t=t||window.event;var i=e.params,n=this.parent,s=z.getPageX(t);void 0===i.mouseX&&(i.mouseX=s);var o=s-i.mouseX;Math.abs(o)>=1&&(i.moved=!0);var r=n.toScreen(i.customTime),a=r+o,h=n.toTime(a);this._setCustomTime(h),F.trigger(this,"timechange",{customTime:this.customTime}),z.preventDefault(t)},v.prototype._onMouseUp=function(t,e){t=t||window.event;var i=e.params;i.onMouseMove&&(z.removeEventListener(document,"mousemove",i.onMouseMove),i.onMouseMove=null),i.onMouseUp&&(z.removeEventListener(document,"mouseup",i.onMouseUp),i.onMouseUp=null),i.moved&&F.trigger(this,"timechanged",{customTime:this.customTime})},y.prototype=new p,y.types={box:w,range:S,rangeoverflow:E,point:b},y.prototype.setOptions=u.prototype.setOptions,y.prototype.setRange=function(t){if(!(t instanceof h||t&&t.start&&t.end))throw new TypeError("Range must be an instance of Range, or an object containing start and end.");this.range=t},y.prototype.setSelection=function(t){var e,i,n,s,o;if(t){if(!Array.isArray(t))throw new TypeError("Array expected");for(e=0,i=this.selection.length;i>e;e++)n=this.selection[e],s=this.items[n],s&&s.unselect();for(this.selection=[],e=0,i=t.length;i>e;e++)n=t[e],s=this.items[n],s&&(this.selection.push(n),s.select());o=this.selection.concat([]),F.trigger(this,"select",{ids:o}),this.controller&&this.requestRepaint()}},y.prototype.getSelection=function(){return this.selection.concat([])},y.prototype._deselect=function(t){for(var e=this.selection,i=0,n=e.length;n>i;i++)if(e[i]==t){e.splice(i,1);break}},y.prototype.repaint=function(){var t=0,e=z.updateProperty,i=z.option.asSize,n=this.options,s=this.getOption("orientation"),o=this.defaultOptions,r=this.frame;if(!r){r=document.createElement("div"),r.className="itemset";var a=n.className;a&&z.addClassName(r,z.option.asString(a));var h=document.createElement("div");h.className="background",r.appendChild(h),this.dom.background=h;var d=document.createElement("div");d.className="foreground",r.appendChild(d),this.dom.foreground=d;var c=document.createElement("div");c.className="itemset-axis",this.dom.axis=c,this.frame=r,t+=1}if(!this.parent)throw new Error("Cannot repaint itemset: no parent attached");var l=this.parent.getContainer();if(!l)throw new Error("Cannot repaint itemset: parent has no container element");r.parentNode||(l.appendChild(r),t+=1),this.dom.axis.parentNode||(l.appendChild(this.dom.axis),t+=1),t+=e(r.style,"left",i(n.left,"0px")),t+=e(r.style,"top",i(n.top,"0px")),t+=e(r.style,"width",i(n.width,"100%")),t+=e(r.style,"height",i(n.height,this.height+"px")),t+=e(this.dom.axis.style,"left",i(n.left,"0px")),t+=e(this.dom.axis.style,"width",i(n.width,"100%")),t+="bottom"==s?e(this.dom.axis.style,"top",this.height+this.top+"px"):e(this.dom.axis.style,"top",this.top+"px"),this._updateConversion();var u=this,p=this.queue,f=this.itemsData,g=this.items,m={};for(var v in p)if(p.hasOwnProperty(v)){var _=p[v],w=g[v],b=_.action;switch(b){case"add":case"update":var S=f&&f.get(v,m);if(S){var E=S.type||S.start&&S.end&&"range"||n.type||"box",T=y.types[E];if(w&&(T&&w instanceof T?(w.data=S,t++):(t+=w.hide(),w=null)),!w){if(!T)throw new TypeError('Unknown item type "'+E+'"');w=new T(u,S,n,o),w.id=_.id,t++}w.repaint(),g[v]=w}delete p[v];break;case"remove":w&&(w.selected&&u._deselect(v),t+=w.hide()),delete g[v],delete p[v];break;default:console.log('Error: unknown action "'+b+'"')}}return z.forEach(this.items,function(e){e.visible?(t+=e.show(),e.reposition()):t+=e.hide()}),t>0},y.prototype.getForeground=function(){return this.dom.foreground},y.prototype.getBackground=function(){return this.dom.background},y.prototype.getAxis=function(){return this.dom.axis},y.prototype.reflow=function(){var t=0,e=this.options,i=e.margin&&e.margin.axis||this.defaultOptions.margin.axis,n=e.margin&&e.margin.item||this.defaultOptions.margin.item,s=z.updateProperty,o=z.option.asNumber,r=z.option.asSize,a=this.frame;if(a){this._updateConversion(),z.forEach(this.items,function(e){t+=e.reflow()}),this.stack.update();var h,d=o(e.maxHeight),c=null!=r(e.height);if(c)h=a.offsetHeight;else{var l=this.stack.ordered;if(l.length){var u=l[0].top,p=l[0].top+l[0].height;z.forEach(l,function(t){u=Math.min(u,t.top),p=Math.max(p,t.top+t.height)}),h=p-u+i+n}else h=i+n}null!=d&&(h=Math.min(h,d)),t+=s(this,"height",h),t+=s(this,"top",a.offsetTop),t+=s(this,"left",a.offsetLeft),t+=s(this,"width",a.offsetWidth)}else t+=1;return t>0},y.prototype.hide=function(){var t=!1;return this.frame&&this.frame.parentNode&&(this.frame.parentNode.removeChild(this.frame),t=!0),this.dom.axis&&this.dom.axis.parentNode&&(this.dom.axis.parentNode.removeChild(this.dom.axis),t=!0),t },y.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!(t instanceof o||t instanceof r))throw new TypeError("Data must be an instance of DataSet");this.itemsData=t}else this.itemsData=null;if(n&&(z.forEach(this.listeners,function(t,e){n.unsubscribe(e,t)}),e=n.getIds(),this._onRemove(e)),this.itemsData){var s=this.id;z.forEach(this.listeners,function(t,e){i.itemsData.subscribe(e,t,s)}),e=this.itemsData.getIds(),this._onAdd(e)}},y.prototype.getItems=function(){return this.itemsData},y.prototype._onUpdate=function(t){this._toQueue("update",t)},y.prototype._onAdd=function(t){this._toQueue("add",t)},y.prototype._onRemove=function(t){this._toQueue("remove",t)},y.prototype._toQueue=function(t,e){var i=this.queue;e.forEach(function(e){i[e]={id:e,action:t}}),this.controller&&this.requestRepaint()},y.prototype._updateConversion=function(){var t=this.range;if(!t)throw new Error("No range configured");this.conversion=t.conversion?t.conversion(this.width):h.conversion(t.start,t.end,this.width)},y.prototype.toTime=function(t){var e=this.conversion;return new Date(t/e.scale+e.offset)},y.prototype.toScreen=function(t){var e=this.conversion;return(t.valueOf()-e.offset)*e.scale},_.prototype.select=function(){this.selected=!0,this.visible&&this.repaint()},_.prototype.unselect=function(){this.selected=!1,this.visible&&this.repaint()},_.prototype.show=function(){return!1},_.prototype.hide=function(){return!1},_.prototype.repaint=function(){return!1},_.prototype.reflow=function(){return!1},_.prototype.getWidth=function(){return this.width},w.prototype=new _(null,null),w.prototype.repaint=function(){var t=!1,e=this.dom;if(e||(this._create(),e=this.dom,t=!0),e){if(!this.parent)throw new Error("Cannot repaint item: no parent attached");if(!e.box.parentNode){var i=this.parent.getForeground();if(!i)throw new Error("Cannot repaint time axis: parent has no foreground container element");i.appendChild(e.box),t=!0}if(!e.line.parentNode){var n=this.parent.getBackground();if(!n)throw new Error("Cannot repaint time axis: parent has no background container element");n.appendChild(e.line),t=!0}if(!e.dot.parentNode){var s=this.parent.getAxis();if(!n)throw new Error("Cannot repaint time axis: parent has no axis container element");s.appendChild(e.dot),t=!0}if(this.data.content!=this.content){if(this.content=this.data.content,this.content instanceof Element)e.content.innerHTML="",e.content.appendChild(this.content);else{if(void 0==this.data.content)throw new Error('Property "content" missing in item '+this.data.id);e.content.innerHTML=this.content}t=!0}var o=(this.data.className?" "+this.data.className:"")+(this.selected?" selected":"");this.className!=o&&(this.className=o,e.box.className="item box"+o,e.line.className="item line"+o,e.dot.className="item dot"+o,t=!0)}return t},w.prototype.show=function(){return this.dom&&this.dom.box.parentNode?!1:this.repaint()},w.prototype.hide=function(){var t=!1,e=this.dom;return e&&(e.box.parentNode&&(e.box.parentNode.removeChild(e.box),t=!0),e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot)),t},w.prototype.reflow=function(){var t,e,i,n,s,o,r,a,h,d,c,l,u=0;if(void 0==this.data.start)throw new Error('Property "start" missing in item '+this.data.id);if(c=this.data,l=this.parent&&this.parent.range,c&&l){var p=l.end-l.start;this.visible=c.start>l.start-p&&c.start<l.end+p}else this.visible=!1;if(this.visible)if(e=this.dom)if(t=z.updateProperty,i=this.props,n=this.options,o=this.parent.toScreen(this.data.start),r=n.align||this.defaultOptions.align,s=n.margin&&n.margin.axis||this.defaultOptions.margin.axis,a=n.orientation||this.defaultOptions.orientation,u+=t(i.dot,"height",e.dot.offsetHeight),u+=t(i.dot,"width",e.dot.offsetWidth),u+=t(i.line,"width",e.line.offsetWidth),u+=t(i.line,"height",e.line.offsetHeight),u+=t(i.line,"top",e.line.offsetTop),u+=t(this,"width",e.box.offsetWidth),u+=t(this,"height",e.box.offsetHeight),d="right"==r?o-this.width:"left"==r?o:o-this.width/2,u+=t(this,"left",d),u+=t(i.line,"left",o-i.line.width/2),u+=t(i.dot,"left",o-i.dot.width/2),u+=t(i.dot,"top",-i.dot.height/2),"top"==a)h=s,u+=t(this,"top",h);else{var f=this.parent.height;h=f-this.height-s,u+=t(this,"top",h)}else u+=1;return u>0},w.prototype._create=function(){var t=this.dom;t||(this.dom=t={},t.box=document.createElement("DIV"),t.content=document.createElement("DIV"),t.content.className="content",t.box.appendChild(t.content),t.line=document.createElement("DIV"),t.line.className="line",t.dot=document.createElement("DIV"),t.dot.className="dot",t.box["timeline-item"]=this)},w.prototype.reposition=function(){var t=this.dom,e=this.props,i=this.options.orientation||this.defaultOptions.orientation;if(t){var n=t.box,s=t.line,o=t.dot;n.style.left=this.left+"px",n.style.top=this.top+"px",s.style.left=e.line.left+"px","top"==i?(s.style.top="0px",s.style.height=this.top+"px"):(s.style.top=this.top+this.height+"px",s.style.height=Math.max(this.parent.height-this.top-this.height+this.props.dot.height/2,0)+"px"),o.style.left=e.dot.left+"px",o.style.top=e.dot.top+"px"}},b.prototype=new _(null,null),b.prototype.repaint=function(){var t=!1,e=this.dom;if(e||(this._create(),e=this.dom,t=!0),e){if(!this.parent)throw new Error("Cannot repaint item: no parent attached");var i=this.parent.getForeground();if(!i)throw new Error("Cannot repaint time axis: parent has no foreground container element");if(e.point.parentNode||(i.appendChild(e.point),i.appendChild(e.point),t=!0),this.data.content!=this.content){if(this.content=this.data.content,this.content instanceof Element)e.content.innerHTML="",e.content.appendChild(this.content);else{if(void 0==this.data.content)throw new Error('Property "content" missing in item '+this.data.id);e.content.innerHTML=this.content}t=!0}var n=(this.data.className?" "+this.data.className:"")+(this.selected?" selected":"");this.className!=n&&(this.className=n,e.point.className="item point"+n,t=!0)}return t},b.prototype.show=function(){return this.dom&&this.dom.point.parentNode?!1:this.repaint()},b.prototype.hide=function(){var t=!1,e=this.dom;return e&&e.point.parentNode&&(e.point.parentNode.removeChild(e.point),t=!0),t},b.prototype.reflow=function(){var t,e,i,n,s,o,r,a,h,d,c=0;if(void 0==this.data.start)throw new Error('Property "start" missing in item '+this.data.id);if(h=this.data,d=this.parent&&this.parent.range,h&&d){var l=d.end-d.start;this.visible=h.start>d.start-l&&h.start<d.end}else this.visible=!1;if(this.visible)if(e=this.dom){if(t=z.updateProperty,i=this.props,n=this.options,o=n.orientation||this.defaultOptions.orientation,s=n.margin&&n.margin.axis||this.defaultOptions.margin.axis,r=this.parent.toScreen(this.data.start),c+=t(this,"width",e.point.offsetWidth),c+=t(this,"height",e.point.offsetHeight),c+=t(i.dot,"width",e.dot.offsetWidth),c+=t(i.dot,"height",e.dot.offsetHeight),c+=t(i.content,"height",e.content.offsetHeight),"top"==o)a=s;else{var u=this.parent.height;a=Math.max(u-this.height-s,0)}c+=t(this,"top",a),c+=t(this,"left",r-i.dot.width/2),c+=t(i.content,"marginLeft",1.5*i.dot.width),c+=t(i.dot,"top",(this.height-i.dot.height)/2)}else c+=1;return c>0},b.prototype._create=function(){var t=this.dom;t||(this.dom=t={},t.point=document.createElement("div"),t.content=document.createElement("div"),t.content.className="content",t.point.appendChild(t.content),t.dot=document.createElement("div"),t.dot.className="dot",t.point.appendChild(t.dot),t.point["timeline-item"]=this)},b.prototype.reposition=function(){var t=this.dom,e=this.props;t&&(t.point.style.top=this.top+"px",t.point.style.left=this.left+"px",t.content.style.marginLeft=e.content.marginLeft+"px",t.dot.style.top=e.dot.top+"px")},S.prototype=new _(null,null),S.prototype.repaint=function(){var t=!1,e=this.dom;if(e||(this._create(),e=this.dom,t=!0),e){if(!this.parent)throw new Error("Cannot repaint item: no parent attached");var i=this.parent.getForeground();if(!i)throw new Error("Cannot repaint time axis: parent has no foreground container element");if(e.box.parentNode||(i.appendChild(e.box),t=!0),this.data.content!=this.content){if(this.content=this.data.content,this.content instanceof Element)e.content.innerHTML="",e.content.appendChild(this.content);else{if(void 0==this.data.content)throw new Error('Property "content" missing in item '+this.data.id);e.content.innerHTML=this.content}t=!0}var n=(this.data.className?" "+this.data.className:"")+(this.selected?" selected":"");this.className!=n&&(this.className=n,e.box.className="item range"+n,t=!0)}return t},S.prototype.show=function(){return this.dom&&this.dom.box.parentNode?!1:this.repaint()},S.prototype.hide=function(){var t=!1,e=this.dom;return e&&e.box.parentNode&&(e.box.parentNode.removeChild(e.box),t=!0),t},S.prototype.reflow=function(){var t,e,i,n,s,o,r,a,h,d,c,l,u,p,f,g,m=0;if(void 0==this.data.start)throw new Error('Property "start" missing in item '+this.data.id);if(void 0==this.data.end)throw new Error('Property "end" missing in item '+this.data.id);return h=this.data,d=this.parent&&this.parent.range,this.visible=h&&d?h.start<d.end&&h.end>d.start:!1,this.visible&&(t=this.dom,t?(e=this.props,i=this.options,o=this.parent,r=o.toScreen(this.data.start),a=o.toScreen(this.data.end),c=z.updateProperty,l=t.box,u=o.width,f=i.orientation||this.defaultOptions.orientation,n=i.margin&&i.margin.axis||this.defaultOptions.margin.axis,s=i.padding||this.defaultOptions.padding,m+=c(e.content,"width",t.content.offsetWidth),m+=c(this,"height",l.offsetHeight),-u>r&&(r=-u),a>2*u&&(a=2*u),p=0>r?Math.min(-r,a-r-e.content.width-2*s):0,m+=c(e.content,"left",p),"top"==f?(g=n,m+=c(this,"top",g)):(g=o.height-this.height-n,m+=c(this,"top",g)),m+=c(this,"left",r),m+=c(this,"width",Math.max(a-r,1))):m+=1),m>0},S.prototype._create=function(){var t=this.dom;t||(this.dom=t={},t.box=document.createElement("div"),t.content=document.createElement("div"),t.content.className="content",t.box.appendChild(t.content),t.box["timeline-item"]=this)},S.prototype.reposition=function(){var t=this.dom,e=this.props;t&&(t.box.style.top=this.top+"px",t.box.style.left=this.left+"px",t.box.style.width=this.width+"px",t.content.style.left=e.content.left+"px")},E.prototype=new S(null,null),E.prototype.repaint=function(){var t=!1,e=this.dom;if(e||(this._create(),e=this.dom,t=!0),e){if(!this.parent)throw new Error("Cannot repaint item: no parent attached");var i=this.parent.getForeground();if(!i)throw new Error("Cannot repaint time axis: parent has no foreground container element");if(e.box.parentNode||(i.appendChild(e.box),t=!0),this.data.content!=this.content){if(this.content=this.data.content,this.content instanceof Element)e.content.innerHTML="",e.content.appendChild(this.content);else{if(void 0==this.data.content)throw new Error('Property "content" missing in item '+this.data.id);e.content.innerHTML=this.content}t=!0}var n=this.data.className?" "+this.data.className:"";this.className!=n&&(this.className=n,e.box.className="item rangeoverflow"+n,t=!0)}return t},E.prototype.getWidth=function(){return void 0!==this.props.content&&this.width<this.props.content.width?this.props.content.width:this.width},T.prototype=new u,T.prototype.setOptions=u.prototype.setOptions,T.prototype.getContainer=function(){return this.parent.getContainer()},T.prototype.setItems=function(t){if(this.itemset&&(this.itemset.hide(),this.itemset.setItems(),this.parent.controller.remove(this.itemset),this.itemset=null),t){var e=this.groupId,i=Object.create(this.options);this.itemset=new y(this,null,i),this.itemset.setRange(this.parent.range),this.view=new r(t,{filter:function(t){return t.group==e}}),this.itemset.setItems(this.view),this.parent.controller.add(this.itemset)}},T.prototype.setSelection=function(t){this.itemset&&this.itemset.setSelection(t)},T.prototype.getSelection=function(){return this.itemset?this.itemset.getSelection():[]},T.prototype.repaint=function(){return!1},T.prototype.reflow=function(){var t=0,e=z.updateProperty;if(t+=e(this,"top",this.itemset?this.itemset.top:0),t+=e(this,"height",this.itemset?this.itemset.height:0),this.label){var i=this.label.firstChild;t+=e(this.props.label,"width",i.clientWidth),t+=e(this.props.label,"height",i.clientHeight)}else t+=e(this.props.label,"width",0),t+=e(this.props.label,"height",0);return t>0},x.prototype=new p,x.prototype.setOptions=u.prototype.setOptions,x.prototype.setRange=function(){},x.prototype.setItems=function(t){this.itemsData=t;for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var i=this.groups[e];i.setItems(t)}},x.prototype.getItems=function(){return this.itemsData},x.prototype.setRange=function(t){this.range=t},x.prototype.setGroups=function(t){var e,i=this;if(this.groupsData&&(z.forEach(this.listeners,function(t,e){i.groupsData.unsubscribe(e,t)}),e=this.groupsData.getIds(),this._onRemove(e)),t?t instanceof o?this.groupsData=t:(this.groupsData=new o({convert:{start:"Date",end:"Date"}}),this.groupsData.add(t)):this.groupsData=null,this.groupsData){var n=this.id;z.forEach(this.listeners,function(t,e){i.groupsData.subscribe(e,t,n)}),e=this.groupsData.getIds(),this._onAdd(e)}},x.prototype.getGroups=function(){return this.groupsData},x.prototype.setSelection=function(t){var e=[],i=this.groups;for(var n in i)if(i.hasOwnProperty(n)){var s=i[n];s.setSelection(t)}return e},x.prototype.getSelection=function(){var t=[],e=this.groups;for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];t=t.concat(n.getSelection())}return t},x.prototype.repaint=function(){var t,e,i,n,s=0,o=z.updateProperty,r=z.option.asSize,a=z.option.asElement,h=this.options,d=this.dom.frame,c=this.dom.labels,l=this.dom.labelSet;if(!this.parent)throw new Error("Cannot repaint groupset: no parent attached");var u=this.parent.getContainer();if(!u)throw new Error("Cannot repaint groupset: parent has no container element");if(!d){d=document.createElement("div"),d.className="groupset",this.dom.frame=d;var p=h.className;p&&z.addClassName(d,z.option.asString(p)),s+=1}d.parentNode||(u.appendChild(d),s+=1);var f=a(h.labelContainer);if(!f)throw new Error('Cannot repaint groupset: option "labelContainer" not defined');c||(c=document.createElement("div"),c.className="labels",this.dom.labels=c),l||(l=document.createElement("div"),l.className="label-set",c.appendChild(l),this.dom.labelSet=l),c.parentNode&&c.parentNode==f||(c.parentNode&&c.parentNode.removeChild(c.parentNode),f.appendChild(c)),s+=o(d.style,"height",r(h.height,this.height+"px")),s+=o(d.style,"top",r(h.top,"0px")),s+=o(d.style,"left",r(h.left,"0px")),s+=o(d.style,"width",r(h.width,"100%")),s+=o(l.style,"top",r(h.top,"0px")),s+=o(l.style,"height",r(h.height,this.height+"px"));var g=this,m=this.queue,v=this.groups,y=this.groupsData,_=Object.keys(m);if(_.length){_.forEach(function(t){var e=m[t],i=v[t];switch(e){case"add":case"update":if(!i){var n=Object.create(g.options);z.extend(n,{height:null,maxHeight:null}),i=new T(g,t,n),i.setItems(g.itemsData),v[t]=i,g.controller.add(i)}i.data=y.get(t),delete m[t];break;case"remove":i&&(i.setItems(),delete v[t],g.controller.remove(i)),delete m[t];break;default:console.log('Error: unknown action "'+e+'"')}});var w=this.groupsData.getIds({order:this.options.groupOrder});for(t=0;t<w.length;t++)!function(t,e){var i=0;e&&(i=function(){return e.top+e.height}),t.setOptions({top:i})}(v[w[t]],v[w[t-1]]);for(;l.firstChild;)l.removeChild(l.firstChild);for(t=0;t<w.length;t++)e=w[t],n=this._createLabel(e),l.appendChild(n);s++}for(e in v)v.hasOwnProperty(e)&&(i=v[e],n=i.label,n&&(n.style.top=i.top+"px",n.style.height=i.height+"px"));return s>0},x.prototype._createLabel=function(t){var e=this.groups[t],i=document.createElement("div");i.className="label";var n=document.createElement("div");n.className="inner",i.appendChild(n);var s=e.data&&e.data.content;s instanceof Element?n.appendChild(s):void 0!=s&&(n.innerHTML=s);var o=e.data&&e.data.className;return o&&z.addClassName(i,o),e.label=i,i},x.prototype.getContainer=function(){return this.dom.frame},x.prototype.getLabelsWidth=function(){return this.props.labels.width},x.prototype.reflow=function(){var t,e,i=0,n=this.options,s=z.updateProperty,o=z.option.asNumber,r=z.option.asSize,a=this.dom.frame;if(a){var h,d=o(n.maxHeight),c=null!=r(n.height);if(c)h=a.offsetHeight;else{h=0;for(t in this.groups)this.groups.hasOwnProperty(t)&&(e=this.groups[t],h+=e.height)}null!=d&&(h=Math.min(h,d)),i+=s(this,"height",h),i+=s(this,"top",a.offsetTop),i+=s(this,"left",a.offsetLeft),i+=s(this,"width",a.offsetWidth)}var l=0;for(t in this.groups)if(this.groups.hasOwnProperty(t)){e=this.groups[t];var u=e.props&&e.props.label&&e.props.label.width||0;l=Math.max(l,u)}return i+=s(this.props.labels,"width",l),i>0},x.prototype.hide=function(){return this.dom.frame&&this.dom.frame.parentNode?(this.dom.frame.parentNode.removeChild(this.dom.frame),!0):!1},x.prototype.show=function(){return this.dom.frame&&this.dom.frame.parentNode?!1:this.repaint()},x.prototype._onUpdate=function(t){this._toQueue(t,"update")},x.prototype._onAdd=function(t){this._toQueue(t,"add")},x.prototype._onRemove=function(t){this._toQueue(t,"remove")},x.prototype._toQueue=function(t,e){var i=this.queue;t.forEach(function(t){i[t]=e}),this.controller&&this.requestRepaint()},C.prototype.setOptions=function(t){z.extend(this.options,t),this.range.setRange(t.start,t.end),this.controller.reflow(),this.controller.repaint()},C.prototype.setCustomTime=function(t){this.customtime._setCustomTime(t)},C.prototype.getCustomTime=function(){return new Date(this.customtime.customTime.valueOf())},C.prototype.setItems=function(t){var e,i=null==this.itemsData;if(t?t instanceof o&&(e=t):e=null,t instanceof o||(e=new o({convert:{start:"Date",end:"Date"}}),e.add(t)),this.itemsData=e,this.content.setItems(e),i&&(void 0==this.options.start||void 0==this.options.end)){var n=this.getItemRange(),s=n.min,r=n.max;if(null!=s&&null!=r){var a=r.valueOf()-s.valueOf();0>=a&&(a=864e5),s=new Date(s.valueOf()-.05*a),r=new Date(r.valueOf()+.05*a)}void 0!=this.options.start&&(s=z.convert(this.options.start,"Date")),void 0!=this.options.end&&(r=z.convert(this.options.end,"Date")),(null!=s||null!=r)&&this.range.setRange(s,r)}},C.prototype.setGroups=function(t){var e=this;this.groupsData=t;var i=this.groupsData?x:y;if(!(this.content instanceof i)){this.content&&(this.content.hide(),this.content.setItems&&this.content.setItems(),this.content.setGroups&&this.content.setGroups(),this.controller.remove(this.content));var n=Object.create(this.options);z.extend(n,{top:function(){return"top"==e.options.orientation?e.timeaxis.height:e.itemPanel.height-e.timeaxis.height-e.content.height},left:null,width:"100%",height:function(){return e.options.height?e.itemPanel.height-e.timeaxis.height:null},maxHeight:function(){if(e.options.maxHeight){if(!z.isNumber(e.options.maxHeight))throw new TypeError("Number expected for property maxHeight");return e.options.maxHeight-e.timeaxis.height}return null},labelContainer:function(){return e.labelPanel.getContainer()}}),this.content=new i(this.itemPanel,[this.timeaxis],n),this.content.setRange&&this.content.setRange(this.range),this.content.setItems&&this.content.setItems(this.itemsData),this.content.setGroups&&this.content.setGroups(this.groupsData),this.controller.add(this.content)}},C.prototype.getItemRange=function(){var t=this.itemsData,e=null,i=null;if(t){var n=t.min("start");e=n?n.start.valueOf():null;var s=t.max("start");s&&(i=s.start.valueOf());var o=t.max("end");o&&(i=null==i?o.end.valueOf():Math.max(i,o.end.valueOf()))}return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}},C.prototype.setSelection=function(t){this.content&&this.content.setSelection(t)},C.prototype.getSelection=function(){return this.content?this.content.getSelection():[]},C.prototype.on=function(t,e){var i=["rangechange","rangechanged","select"];if(-1==i.indexOf(t))throw new Error('Unknown event "'+t+'". Choose from '+i.join());F.addListener(this,t,e)},C.prototype.off=function(t,e){F.removeListener(this,t,e)},C.prototype._trigger=function(t,e){F.trigger(this,t,e||{})},C.prototype._onSelectItem=function(t){var e=this._itemFromTarget(t),i=e?[e.id]:[];this.setSelection(i),this._trigger("select",{items:this.getSelection()}),t.stopPropagation()},C.prototype._onMultiSelectItem=function(t){var e,i=this._itemFromTarget(t);if(i){e=this.getSelection();var n=e.indexOf(i.id);-1==n?e.push(i.id):e.splice(n,1),this.setSelection(e),this._trigger("select",{items:this.getSelection()}),t.stopPropagation()}},C.prototype._itemFromTarget=function(t){for(var e=t.target;e;){if(e.hasOwnProperty("timeline-item"))return e["timeline-item"];e=e.parentNode}return null},function(t){function e(t){return C=t,u()}function i(){M=0,D=C.charAt(0)}function n(){M++,D=C.charAt(M)}function s(){return C.charAt(M+1)}function o(t){return N.test(t)}function r(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n=e.split("."),s=t;n.length;){var o=n.shift();n.length?(s[o]||(s[o]={}),s=s[o]):s[o]=i}}function h(t,e){for(var i,n,s=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes)for(i=0,n=a.nodes.length;n>i;i++)if(e.id===a.nodes[i].id){s=a.nodes[i];break}for(s||(s={id:e.id},t.node&&(s.attr=r(s.attr,t.node))),i=o.length-1;i>=0;i--){var h=o[i];h.nodes||(h.nodes=[]),-1==h.nodes.indexOf(s)&&h.nodes.push(s)}e.attr&&(s.attr=r(s.attr,e.attr))}function d(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=r({},t.edge);e.attr=r(i,e.attr)}}function c(t,e,i,n,s){var o={from:e,to:i,type:n};return t.edge&&(o.attr=r({},t.edge)),o.attr=r(o.attr||{},s),o}function l(){for(O=T.NULL,I="";" "==D||" "==D||"\n"==D||"\r"==D;)n();do{var t=!1;if("#"==D){for(var e=M-1;" "==C.charAt(e)||" "==C.charAt(e);)e--;if("\n"==C.charAt(e)||""==C.charAt(e)){for(;""!=D&&"\n"!=D;)n();t=!0}}if("/"==D&&"/"==s()){for(;""!=D&&"\n"!=D;)n();t=!0}if("/"==D&&"*"==s()){for(;""!=D;){if("*"==D&&"/"==s()){n(),n();break}n()}t=!0}for(;" "==D||" "==D||"\n"==D||"\r"==D;)n()}while(t);if(""==D)return void(O=T.DELIMITER);var i=D+s();if(x[i])return O=T.DELIMITER,I=i,n(),void n();if(x[D])return O=T.DELIMITER,I=D,void n();if(o(D)||"-"==D){for(I+=D,n();o(D);)I+=D,n();return"false"==I?I=!1:"true"==I?I=!0:isNaN(Number(I))||(I=Number(I)),void(O=T.IDENTIFIER)}if('"'==D){for(n();""!=D&&('"'!=D||'"'==D&&'"'==s());)I+=D,'"'==D&&n(),n();if('"'!=D)throw w('End of string " expected');return n(),void(O=T.IDENTIFIER)}for(O=T.UNKNOWN;""!=D;)I+=D,n();throw new SyntaxError('Syntax error in part "'+b(I,30)+'"')}function u(){var t={};if(i(),l(),"strict"==I&&(t.strict=!0,l()),("graph"==I||"digraph"==I)&&(t.type=I,l()),O==T.IDENTIFIER&&(t.id=I,l()),"{"!=I)throw w("Angle bracket { expected");if(l(),p(t),"}"!=I)throw w("Angle bracket } expected");if(l(),""!==I)throw w("End of file expected");return l(),delete t.node,delete t.edge,delete t.graph,t}function p(t){for(;""!==I&&"}"!=I;)f(t),";"==I&&l()}function f(t){var e=g(t);if(e)return void y(t,e);var i=m(t);if(!i){if(O!=T.IDENTIFIER)throw w("Identifier expected");var n=I;if(l(),"="==I){if(l(),O!=T.IDENTIFIER)throw w("Identifier expected");t[n]=I,l()}else v(t,n)}}function g(t){var e=null;if("subgraph"==I&&(e={},e.type="subgraph",l(),O==T.IDENTIFIER&&(e.id=I,l())),"{"==I){if(l(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,p(e),"}"!=I)throw w("Angle bracket } expected");l(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function m(t){return"node"==I?(l(),t.node=_(),"node"):"edge"==I?(l(),t.edge=_(),"edge"):"graph"==I?(l(),t.graph=_(),"graph"):null}function v(t,e){var i={id:e},n=_();n&&(i.attr=n),h(t,i),y(t,e)}function y(t,e){for(;"->"==I||"--"==I;){var i,n=I;l();var s=g(t);if(s)i=s;else{if(O!=T.IDENTIFIER)throw w("Identifier or subgraph expected");i=I,h(t,{id:i}),l()}var o=_(),r=c(t,e,i,n,o);d(t,r),e=i}}function _(){for(var t=null;"["==I;){for(l(),t={};""!==I&&"]"!=I;){if(O!=T.IDENTIFIER)throw w("Attribute name expected");var e=I;if(l(),"="!=I)throw w("Equal sign = expected");if(l(),O!=T.IDENTIFIER)throw w("Attribute value expected");var i=I;a(t,e,i),l(),","==I&&l()}if("]"!=I)throw w("Bracket ] expected");l()}return t}function w(t){return new SyntaxError(t+', got "'+b(I,30)+'" (char '+M+")")}function b(t,e){return t.length<=e?t:t.substr(0,27)+"..."}function S(t,e,i){t instanceof Array?t.forEach(function(t){e instanceof Array?e.forEach(function(e){i(t,e)}):i(t,e)}):e instanceof Array?e.forEach(function(e){i(t,e)}):i(t,e)}function E(t){function i(t){var e={from:t.from,to:t.to};return r(e,t.attr),e.style="->"==t.type?"arrow":"line",e}var n=e(t),s={nodes:[],edges:[],options:{}};return n.nodes&&n.nodes.forEach(function(t){var e={id:t.id,label:String(t.label||t.id)};r(e,t.attr),e.image&&(e.shape="image"),s.nodes.push(e)}),n.edges&&n.edges.forEach(function(t){var e,n;e=t.from instanceof Object?t.from.nodes:{id:t.from},n=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges&&t.from.edges.forEach(function(t){var e=i(t);s.edges.push(e)}),S(e,n,function(e,n){var o=c(s,e.id,n.id,t.type,t.attr),r=i(o);s.edges.push(r)}),t.to instanceof Object&&t.to.edges&&t.to.edges.forEach(function(t){var e=i(t);s.edges.push(e)})}),n.attr&&(s.options=n.attr),s}var T={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},x={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},C="",M=0,D="",I="",O=T.NULL,N=/[a-zA-Z_0-9.:#]/;t.parseDOT=e,t.DOTToGraph=E}("undefined"!=typeof z?z:n),"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(t,e,i){this.beginPath(),this.arc(t,e,i,0,2*Math.PI,!1)},CanvasRenderingContext2D.prototype.square=function(t,e,i){this.beginPath(),this.rect(t-i,e-i,2*i,2*i)},CanvasRenderingContext2D.prototype.triangle=function(t,e,i){this.beginPath();var n=2*i,s=n/2,o=Math.sqrt(3)/6*n,r=Math.sqrt(n*n-s*s);this.moveTo(t,e-(r-o)),this.lineTo(t+s,e+o),this.lineTo(t-s,e+o),this.lineTo(t,e-(r-o)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(t,e,i){this.beginPath();var n=2*i,s=n/2,o=Math.sqrt(3)/6*n,r=Math.sqrt(n*n-s*s);this.moveTo(t,e+(r-o)),this.lineTo(t+s,e-o),this.lineTo(t-s,e-o),this.lineTo(t,e+(r-o)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(t,e,i){this.beginPath();for(var n=0;10>n;n++){var s=n%2===0?1.3*i:.5*i;this.lineTo(t+s*Math.sin(2*n*Math.PI/10),e-s*Math.cos(2*n*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(t,e,i,n,s){var o=Math.PI/180;0>i-2*s&&(s=i/2),0>n-2*s&&(s=n/2),this.beginPath(),this.moveTo(t+s,e),this.lineTo(t+i-s,e),this.arc(t+i-s,e+s,s,270*o,360*o,!1),this.lineTo(t+i,e+n-s),this.arc(t+i-s,e+n-s,s,0,90*o,!1),this.lineTo(t+s,e+n),this.arc(t+s,e+n-s,s,90*o,180*o,!1),this.lineTo(t,e+s),this.arc(t+s,e+s,s,180*o,270*o,!1)},CanvasRenderingContext2D.prototype.ellipse=function(t,e,i,n){var s=.5522848,o=i/2*s,r=n/2*s,a=t+i,h=e+n,d=t+i/2,c=e+n/2;this.beginPath(),this.moveTo(t,c),this.bezierCurveTo(t,c-r,d-o,e,d,e),this.bezierCurveTo(d+o,e,a,c-r,a,c),this.bezierCurveTo(a,c+r,d+o,h,d,h),this.bezierCurveTo(d-o,h,t,c+r,t,c)},CanvasRenderingContext2D.prototype.database=function(t,e,i,n){var s=1/3,o=i,r=n*s,a=.5522848,h=o/2*a,d=r/2*a,c=t+o,l=e+r,u=t+o/2,p=e+r/2,f=e+(n-r/2),g=e+n;this.beginPath(),this.moveTo(c,p),this.bezierCurveTo(c,p+d,u+h,l,u,l),this.bezierCurveTo(u-h,l,t,p+d,t,p),this.bezierCurveTo(t,p-d,u-h,e,u,e),this.bezierCurveTo(u+h,e,c,p-d,c,p),this.lineTo(c,f),this.bezierCurveTo(c,f+d,u+h,g,u,g),this.bezierCurveTo(u-h,g,t,f+d,t,f),this.lineTo(t,p)},CanvasRenderingContext2D.prototype.arrow=function(t,e,i,n){var s=t-n*Math.cos(i),o=e-n*Math.sin(i),r=t-.9*n*Math.cos(i),a=e-.9*n*Math.sin(i),h=s+n/3*Math.cos(i+.5*Math.PI),d=o+n/3*Math.sin(i+.5*Math.PI),c=s+n/3*Math.cos(i-.5*Math.PI),l=o+n/3*Math.sin(i-.5*Math.PI);this.beginPath(),this.moveTo(t,e),this.lineTo(h,d),this.lineTo(r,a),this.lineTo(c,l),this.closePath()},CanvasRenderingContext2D.prototype.dashedLine=function(t,e,i,n,s){s||(s=[10,5]),0==u&&(u=.001);var o=s.length;this.moveTo(t,e);for(var r=i-t,a=n-e,h=a/r,d=Math.sqrt(r*r+a*a),c=0,l=!0;d>=.1;){var u=s[c++%o];u>d&&(u=d);var p=Math.sqrt(u*u/(1+h*h));0>r&&(p=-p),t+=p,e+=h*p,this[l?"lineTo":"moveTo"](t,e),d-=u,l=!l}}),M.prototype.resetCluster=function(){this.formationScale=void 0,this.clusterSize=1,this.containedNodes={},this.containedEdges={},this.clusterSessions=[]},M.prototype.attachEdge=function(t){-1==this.edges.indexOf(t)&&this.edges.push(t),-1==this.dynamicEdges.indexOf(t)&&this.dynamicEdges.push(t),this.dynamicEdgesLength=this.dynamicEdges.length,this._updateMass()},M.prototype.detachEdge=function(t){var e=this.edges.indexOf(t);-1!=e&&(this.edges.splice(e,1),this.dynamicEdges.splice(e,1)),this.dynamicEdgesLength=this.dynamicEdges.length,this._updateMass()},M.prototype._updateMass=function(){this.mass=1+.6*this.edges.length},M.prototype.setProperties=function(t,e){if(t){if(this.originalLabel=void 0,void 0!==t.id&&(this.id=t.id),void 0!==t.label&&(this.label=t.label,this.originalLabel=t.label),void 0!==t.title&&(this.title=t.title),void 0!==t.group&&(this.group=t.group),void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.value&&(this.value=t.value),void 0!==t.horizontalAlignLeft&&(this.horizontalAlignLeft=t.horizontalAlignLeft),void 0!==t.verticalAlignTop&&(this.verticalAlignTop=t.verticalAlignTop),void 0!==t.triggerFunction&&(this.triggerFunction=t.triggerFunction),void 0===this.id)throw"Node must have an id";if(this.group){var i=this.grouplist.get(this.group);for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n])}if(void 0!==t.shape&&(this.shape=t.shape),void 0!==t.image&&(this.image=t.image),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=M.parseColor(t.color)),void 0!==t.fontColor&&(this.fontColor=t.fontColor),void 0!==t.fontSize&&(this.fontSize=t.fontSize),void 0!==t.fontFace&&(this.fontFace=t.fontFace),void 0!==this.image){if(!this.imagelist)throw"No imagelist provided";this.imageObj=this.imagelist.load(this.image)}switch(this.xFixed=this.xFixed||void 0!==t.x,this.yFixed=this.yFixed||void 0!==t.y,this.radiusFixed=this.radiusFixed||void 0!==t.radius,"image"==this.shape&&(this.radiusMin=e.nodes.widthMin,this.radiusMax=e.nodes.widthMax),this.shape){case"database":this.draw=this._drawDatabase,this.resize=this._resizeDatabase;break;case"box":this.draw=this._drawBox,this.resize=this._resizeBox;break;case"circle":this.draw=this._drawCircle,this.resize=this._resizeCircle;break;case"ellipse":this.draw=this._drawEllipse,this.resize=this._resizeEllipse;break;case"image":this.draw=this._drawImage,this.resize=this._resizeImage;break;case"text":this.draw=this._drawText,this.resize=this._resizeText;break;case"dot":this.draw=this._drawDot,this.resize=this._resizeShape;break;case"square":this.draw=this._drawSquare,this.resize=this._resizeShape;break;case"triangle":this.draw=this._drawTriangle,this.resize=this._resizeShape;break;case"triangleDown":this.draw=this._drawTriangleDown,this.resize=this._resizeShape;break;case"star":this.draw=this._drawStar,this.resize=this._resizeShape;break;default:this.draw=this._drawEllipse,this.resize=this._resizeEllipse}this._reset()}},M.parseColor=function(t){var e;return z.isString(t)?e={border:t,background:t,highlight:{border:t,background:t}}:(e={},e.background=t.background||"white",e.border=t.border||e.background,z.isString(t.highlight)?e.highlight={border:t.highlight,background:t.highlight}:(e.highlight={},e.highlight.background=t.highlight&&t.highlight.background||e.background,e.highlight.border=t.highlight&&t.highlight.border||e.border)),e},M.prototype.select=function(){this.selected=!0,this._reset()},M.prototype.unselect=function(){this.selected=!1,this._reset()},M.prototype.clearSizeCache=function(){this._reset()},M.prototype._reset=function(){this.width=void 0,this.height=void 0},M.prototype.getTitle=function(){return this.title},M.prototype.distanceToBorder=function(t,e){var i=1;switch(this.width||this.resize(t),this.shape){case"circle":case"dot":return this.radius+i;case"ellipse":var n=this.width/2,s=this.height/2,o=Math.sin(e)*n,r=Math.cos(e)*s; return n*s/Math.sqrt(o*o+r*r);case"box":case"image":case"text":default:return this.width?Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i:0}},M.prototype._setForce=function(t,e){this.fx=t,this.fy=e},M.prototype._addForce=function(t,e){this.fx+=t,this.fy+=e},M.prototype.discreteStep=function(t){if(!this.xFixed){var e=-this.damping*this.vx,i=(this.fx+e)/this.mass;this.vx+=i*t,this.x+=this.vx*t}if(!this.yFixed){var n=-this.damping*this.vy,s=(this.fy+n)/this.mass;this.vy+=s*t,this.y+=this.vy*t}},M.prototype.isFixed=function(){return this.xFixed&&this.yFixed},M.prototype.isMoving=function(t){return Math.abs(this.vx)>t||Math.abs(this.vy)>t?!0:(this.vx=0,this.vy=0,!1)},M.prototype.isSelected=function(){return this.selected},M.prototype.getValue=function(){return this.value},M.prototype.getDistance=function(t,e){var i=this.x-t,n=this.y-e;return Math.sqrt(i*i+n*n)},M.prototype.setValueRange=function(t,e){if(!this.radiusFixed&&void 0!==this.value)if(e==t)this.radius=(this.radiusMin+this.radiusMax)/2;else{var i=(this.radiusMax-this.radiusMin)/(e-t);this.radius=(this.value-t)*i+this.radiusMin}this.baseRadiusValue=this.radius},M.prototype.draw=function(){throw"Draw method not initialized for node"},M.prototype.resize=function(){throw"Resize method not initialized for node"},M.prototype.isOverlappingWith=function(t){return this.left<t.right&&this.left+this.width>t.left&&this.top<t.bottom&&this.top+this.height>t.top},M.prototype._resizeImage=function(){if(!this.width||!this.height){var t,e;if(this.value){this.radius=this.baseRadiusValue;var i=this.imageObj.height/this.imageObj.width;void 0!==i?(t=this.radius||this.imageObj.width,e=this.radius*i||this.imageObj.height):(t=0,e=0)}else t=this.imageObj.width,e=this.imageObj.height;this.width=t,this.height=e,this.width>0&&this.height>0&&(this.width+=(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=(this.clusterSize-1)*this.clusterSizeHeightFactor,this.radius+=(this.clusterSize-1)*this.clusterSizeRadiusFactor)}},M.prototype._drawImage=function(t){this._resizeImage(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var e;if(0!=this.imageObj.width){if(this.clusterSize>1){var i=this.clusterSize>1?10:0;i*=this.graphScaleInv,i=Math.min(.2*this.width,i),t.globalAlpha=.5,t.drawImage(this.imageObj,this.left-i,this.top-i,this.width+2*i,this.height+2*i)}t.globalAlpha=1,t.drawImage(this.imageObj,this.left,this.top,this.width,this.height),e=this.y+this.height/2}else e=this.y;this._label(t,this.label,this.x,e,void 0,"top")},M.prototype._resizeBox=function(t){if(!this.width){var e=5,i=this.getTextSize(t);this.width=i.width+2*e,this.height=i.height+2*e,this.width+=.5*(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=.5*(this.clusterSize-1)*this.clusterSizeHeightFactor}},M.prototype._drawBox=function(t){this._resizeBox(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var e=2.5,i=2;t.strokeStyle=this.selected?this.color.highlight.border:this.color.border,this.clusterSize>1&&(t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.roundRect(this.left-2*t.lineWidth,this.top-2*t.lineWidth,this.width+4*t.lineWidth,this.height+4*t.lineWidth,this.radius),t.stroke()),t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.fillStyle=this.selected?this.color.highlight.background:this.color.background,t.roundRect(this.left,this.top,this.width,this.height,this.radius),t.fill(),t.stroke(),this._label(t,this.label,this.x,this.y)},M.prototype._resizeDatabase=function(t){if(!this.width){var e=5,i=this.getTextSize(t),n=i.width+2*e;this.width=n,this.height=n,this.width+=(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=(this.clusterSize-1)*this.clusterSizeHeightFactor,this.radius+=(this.clusterSize-1)*this.clusterSizeRadiusFactor}},M.prototype._drawDatabase=function(t){this._resizeDatabase(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var e=2.5,i=2;t.strokeStyle=this.selected?this.color.highlight.border:this.color.border,this.clusterSize>1&&(t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.database(this.x-this.width/2-2*t.lineWidth,this.y-.5*this.height-2*t.lineWidth,this.width+4*t.lineWidth,this.height+4*t.lineWidth),t.stroke()),t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.fillStyle=this.selected?this.color.highlight.background:this.color.background,t.database(this.x-this.width/2,this.y-.5*this.height,this.width,this.height),t.fill(),t.stroke(),this._label(t,this.label,this.x,this.y)},M.prototype._resizeCircle=function(t){if(!this.width){var e=5,i=this.getTextSize(t),n=Math.max(i.width,i.height)+2*e;this.radius=n/2,this.width=n,this.height=n,this.radius+=.5*(this.clusterSize-1)*this.clusterSizeRadiusFactor}},M.prototype._drawCircle=function(t){this._resizeCircle(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var e=2.5,i=2;t.strokeStyle=this.selected?this.color.highlight.border:this.color.border,this.clusterSize>1&&(t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.circle(this.x,this.y,this.radius+2*t.lineWidth),t.stroke()),t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.fillStyle=this.selected?this.color.highlight.background:this.color.background,t.circle(this.x,this.y,this.radius),t.fill(),t.stroke(),this._label(t,this.label,this.x,this.y)},M.prototype._resizeEllipse=function(t){if(!this.width){var e=this.getTextSize(t);this.width=1.5*e.width,this.height=2*e.height,this.width<this.height&&(this.width=this.height),this.width+=(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=(this.clusterSize-1)*this.clusterSizeHeightFactor,this.radius+=(this.clusterSize-1)*this.clusterSizeRadiusFactor}},M.prototype._drawEllipse=function(t){this._resizeEllipse(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var e=2.5,i=2;t.strokeStyle=this.selected?this.color.highlight.border:this.color.border,this.clusterSize>1&&(t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.ellipse(this.left-2*t.lineWidth,this.top-2*t.lineWidth,this.width+4*t.lineWidth,this.height+4*t.lineWidth),t.stroke()),t.lineWidth=(this.selected?i:1)+(this.clusterSize>1?e:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.fillStyle=this.selected?this.color.highlight.background:this.color.background,t.ellipse(this.left,this.top,this.width,this.height),t.fill(),t.stroke(),this._label(t,this.label,this.x,this.y)},M.prototype._drawDot=function(t){this._drawShape(t,"circle")},M.prototype._drawTriangle=function(t){this._drawShape(t,"triangle")},M.prototype._drawTriangleDown=function(t){this._drawShape(t,"triangleDown")},M.prototype._drawSquare=function(t){this._drawShape(t,"square")},M.prototype._drawStar=function(t){this._drawShape(t,"star")},M.prototype._resizeShape=function(){if(!this.width){this.radius=this.baseRadiusValue;var t=2*this.radius;this.width=t,this.height=t,this.width+=(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=(this.clusterSize-1)*this.clusterSizeHeightFactor,this.radius+=.5*(this.clusterSize-1)*this.clusterSizeRadiusFactor}},M.prototype._drawShape=function(t,e){this._resizeShape(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2;var i=2.5,n=2,s=2;switch(e){case"dot":s=2;break;case"square":s=2;break;case"triangle":s=3;break;case"triangleDown":s=3;break;case"star":s=4}t.strokeStyle=this.selected?this.color.highlight.border:this.color.border,this.clusterSize>1&&(t.lineWidth=(this.selected?n:1)+(this.clusterSize>1?i:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t[e](this.x,this.y,this.radius+s*t.lineWidth),t.stroke()),t.lineWidth=(this.selected?n:1)+(this.clusterSize>1?i:0),t.lineWidth*=this.graphScaleInv,t.lineWidth=Math.min(.1*this.width,t.lineWidth),t.fillStyle=this.selected?this.color.highlight.background:this.color.background,t[e](this.x,this.y,this.radius),t.fill(),t.stroke(),this.label&&this._label(t,this.label,this.x,this.y+this.height/2,void 0,"top")},M.prototype._resizeText=function(t){if(!this.width){var e=5,i=this.getTextSize(t);this.width=i.width+2*e,this.height=i.height+2*e,this.width+=(this.clusterSize-1)*this.clusterSizeWidthFactor,this.height+=(this.clusterSize-1)*this.clusterSizeHeightFactor,this.radius+=(this.clusterSize-1)*this.clusterSizeRadiusFactor}},M.prototype._drawText=function(t){this._resizeText(t),this.left=this.x-this.width/2,this.top=this.y-this.height/2,this._label(t,this.label,this.x,this.y)},M.prototype._label=function(t,e,i,n,s,o){if(e){t.font=(this.selected?"bold ":"")+this.fontSize+"px "+this.fontFace,t.fillStyle=this.fontColor||"black",t.textAlign=s||"center",t.textBaseline=o||"middle";for(var r=e.split("\n"),a=r.length,h=this.fontSize+4,d=n+(1-a)/2*h,c=0;a>c;c++)t.fillText(r[c],i,d),d+=h}},M.prototype.getTextSize=function(t){if(void 0!==this.label){t.font=(this.selected?"bold ":"")+this.fontSize+"px "+this.fontFace;for(var e=this.label.split("\n"),i=(this.fontSize+4)*e.length,n=0,s=0,o=e.length;o>s;s++)n=Math.max(n,t.measureText(e[s]).width);return{width:n,height:i}}return{width:0,height:0}},M.prototype.inArea=function(){return void 0!==this.width?this.x+this.width*this.graphScaleInv>=this.canvasTopLeft.x&&this.x-this.width*this.graphScaleInv<this.canvasBottomRight.x&&this.y+this.height*this.graphScaleInv>=this.canvasTopLeft.y&&this.y-this.height*this.graphScaleInv<this.canvasBottomRight.y:!0},M.prototype.inView=function(){return this.x>=this.canvasTopLeft.x&&this.x<this.canvasBottomRight.x&&this.y>=this.canvasTopLeft.y&&this.y<this.canvasBottomRight.y},M.prototype.setScaleAndPos=function(t,e,i){this.graphScaleInv=1/t,this.canvasTopLeft=e,this.canvasBottomRight=i},M.prototype.setScale=function(t){this.graphScaleInv=1/t},M.prototype.updateDamping=function(t){this.damping=.8+.1*this.clusterSize*(1+Math.pow(t,-2)),this.damping*=this.dampingFactor},M.prototype.clearVelocity=function(){this.vx=0,this.vy=0},M.prototype.updateVelocity=function(t){var e=this.vx*this.vx*t;this.vx=Math.sqrt(e/this.mass),e=this.vy*this.vy*t,this.vy=Math.sqrt(e/this.mass)},D.prototype.setProperties=function(t,e){if(t)switch(void 0!==t.from&&(this.fromId=t.from),void 0!==t.to&&(this.toId=t.to),void 0!==t.id&&(this.id=t.id),void 0!==t.style&&(this.style=t.style),void 0!==t.label&&(this.label=t.label),this.label&&(this.fontSize=e.edges.fontSize,this.fontFace=e.edges.fontFace,this.fontColor=e.edges.fontColor,void 0!==t.fontColor&&(this.fontColor=t.fontColor),void 0!==t.fontSize&&(this.fontSize=t.fontSize),void 0!==t.fontFace&&(this.fontFace=t.fontFace)),void 0!==t.title&&(this.title=t.title),void 0!==t.width&&(this.width=t.width),void 0!==t.value&&(this.value=t.value),void 0!==t.length&&(this.length=t.length),t.dash&&(void 0!==t.dash.length&&(this.dash.length=t.dash.length),void 0!==t.dash.gap&&(this.dash.gap=t.dash.gap),void 0!==t.dash.altLength&&(this.dash.altLength=t.dash.altLength)),void 0!==t.color&&(this.color=t.color),this.connect(),this.widthFixed=this.widthFixed||void 0!==t.width,this.lengthFixed=this.lengthFixed||void 0!==t.length,this.stiffness=1/this.length,this.style){case"line":this.draw=this._drawLine;break;case"arrow":this.draw=this._drawArrow;break;case"arrow-center":this.draw=this._drawArrowCenter;break;case"dash-line":this.draw=this._drawDashLine;break;default:this.draw=this._drawLine}},D.prototype.connect=function(){this.disconnect(),this.from=this.graph.nodes[this.fromId]||null,this.to=this.graph.nodes[this.toId]||null,this.connected=this.from&&this.to,this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this))},D.prototype.disconnect=function(){this.from&&(this.from.detachEdge(this),this.from=null),this.to&&(this.to.detachEdge(this),this.to=null),this.connected=!1},D.prototype.getTitle=function(){return this.title},D.prototype.getValue=function(){return this.value},D.prototype.setValueRange=function(t,e){if(!this.widthFixed&&void 0!==this.value){var i=(this.widthMax-this.widthMin)/(e-t);this.width=(this.value-t)*i+this.widthMin}},D.prototype.draw=function(){throw"Method draw not initialized in edge"},D.prototype.isOverlappingWith=function(t){var e=10,i=this.from.x,n=this.from.y,s=this.to.x,o=this.to.y,r=t.left,a=t.top,h=D._dist(i,n,s,o,r,a);return e>h},D.prototype._drawLine=function(t){t.strokeStyle=this.color,t.lineWidth=this._getLineWidth();var e;if(this.from!=this.to)this._line(t),this.label&&(e=this._pointOnLine(.5),this._label(t,this.label,e.x,e.y));else{var i,n,s=this.length/4,o=this.from;o.width||o.resize(t),o.width>o.height?(i=o.x+o.width/2,n=o.y-s):(i=o.x+s,n=o.y-o.height/2),this._circle(t,i,n,s),e=this._pointOnCircle(i,n,s,.5),this._label(t,this.label,e.x,e.y)}},D.prototype._getLineWidth=function(){return this.from.selected||this.to.selected?Math.min(2*this.width,this.widthMax)*this.graphScaleInv:this.width*this.graphScaleInv},D.prototype._line=function(t){t.beginPath(),t.moveTo(this.from.x,this.from.y),t.lineTo(this.to.x,this.to.y),t.stroke()},D.prototype._circle=function(t,e,i,n){t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.stroke()},D.prototype._label=function(t,e,i,n){if(e){t.font=(this.from.selected||this.to.selected?"bold ":"")+this.fontSize+"px "+this.fontFace,t.fillStyle="white";var s=t.measureText(e).width,o=this.fontSize,r=i-s/2,a=n-o/2;t.fillRect(r,a,s,o),t.fillStyle=this.fontColor||"black",t.textAlign="left",t.textBaseline="top",t.fillText(e,r,a)}},D.prototype._drawDashLine=function(t){if(t.strokeStyle=this.color,t.lineWidth=this._getLineWidth(),t.beginPath(),t.lineCap="round",void 0!==this.dash.altLength?t.dashedLine(this.from.x,this.from.y,this.to.x,this.to.y,[this.dash.length,this.dash.gap,this.dash.altLength,this.dash.gap]):void 0!==this.dash.length&&void 0!==this.dash.gap?t.dashedLine(this.from.x,this.from.y,this.to.x,this.to.y,[this.dash.length,this.dash.gap]):(t.moveTo(this.from.x,this.from.y),t.lineTo(this.to.x,this.to.y)),t.stroke(),this.label){var e=this._pointOnLine(.5);this._label(t,this.label,e.x,e.y)}},D.prototype._pointOnLine=function(t){return{x:(1-t)*this.from.x+t*this.to.x,y:(1-t)*this.from.y+t*this.to.y}},D.prototype._pointOnCircle=function(t,e,i,n){var s=2*(n-3/8)*Math.PI;return{x:t+i*Math.cos(s),y:e-i*Math.sin(s)}},D.prototype._drawArrowCenter=function(t){var e;if(t.strokeStyle=this.color,t.fillStyle=this.color,t.lineWidth=this._getLineWidth(),this.from!=this.to){this._line(t);var i=Math.atan2(this.to.y-this.from.y,this.to.x-this.from.x),n=10+5*this.width;e=this._pointOnLine(.5),t.arrow(e.x,e.y,i,n),t.fill(),t.stroke(),this.label&&(e=this._pointOnLine(.5),this._label(t,this.label,e.x,e.y))}else{var s,o,r=this.length/4,a=this.from;a.width||a.resize(t),a.width>a.height?(s=a.x+a.width/2,o=a.y-r):(s=a.x+r,o=a.y-a.height/2),this._circle(t,s,o,r);var i=.2*Math.PI,n=10+5*this.width;e=this._pointOnCircle(s,o,r,.5),t.arrow(e.x,e.y,i,n),t.fill(),t.stroke(),this.label&&(e=this._pointOnCircle(s,o,r,.5),this._label(t,this.label,e.x,e.y))}},D.prototype._drawArrow=function(t){t.strokeStyle=this.color,t.fillStyle=this.color,t.lineWidth=this._getLineWidth();var e,i;if(this.from!=this.to){e=Math.atan2(this.to.y-this.from.y,this.to.x-this.from.x);var n=this.to.x-this.from.x,s=this.to.y-this.from.y,o=Math.sqrt(n*n+s*s),r=this.from.distanceToBorder(t,e+Math.PI),a=(o-r)/o,h=a*this.from.x+(1-a)*this.to.x,d=a*this.from.y+(1-a)*this.to.y,c=this.to.distanceToBorder(t,e),l=(o-c)/o,u=(1-l)*this.from.x+l*this.to.x,p=(1-l)*this.from.y+l*this.to.y;if(t.beginPath(),t.moveTo(h,d),t.lineTo(u,p),t.stroke(),i=10+5*this.width,t.arrow(u,p,e,i),t.fill(),t.stroke(),this.label){var f=this._pointOnLine(.5);this._label(t,this.label,f.x,f.y)}}else{var g,m,v,y=this.from,_=this.length/4;y.width||y.resize(t),y.width>y.height?(g=y.x+y.width/2,m=y.y-_,v={x:g,y:y.y,angle:.9*Math.PI}):(g=y.x+_,m=y.y-y.height/2,v={x:y.x,y:m,angle:.6*Math.PI}),t.beginPath(),t.arc(g,m,_,0,2*Math.PI,!1),t.stroke(),i=10+5*this.width,t.arrow(v.x,v.y,v.angle,i),t.fill(),t.stroke(),this.label&&(f=this._pointOnCircle(g,m,_,.5),this._label(t,this.label,f.x,f.y))}},D._dist=function(t,e,i,n,s,o){var r=i-t,a=n-e,h=r*r+a*a,d=((s-t)*r+(o-e)*a)/h;d>1?d=1:0>d&&(d=0);var c=t+d*r,l=e+d*a,u=c-s,p=l-o;return Math.sqrt(u*u+p*p)},D.prototype.setScale=function(t){this.graphScaleInv=1/t},I.prototype.setPosition=function(t,e){this.x=parseInt(t),this.y=parseInt(e)},I.prototype.setText=function(t){this.frame.innerHTML=t},I.prototype.show=function(t){if(void 0===t&&(t=!0),t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,s=this.frame.parentNode.clientWidth,o=this.y-e;o+e+this.padding>n&&(o=n-e-this.padding),o<this.padding&&(o=this.padding);var r=this.x;r+i+this.padding>s&&(r=s-i-this.padding),r<this.padding&&(r=this.padding),this.frame.style.left=r+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible"}else this.hide()},I.prototype.hide=function(){this.frame.style.visibility="hidden"},Groups=function(){this.clear(),this.defaultIndex=0},Groups.DEFAULT=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"}}],Groups.prototype.clear=function(){this.groups={},this.groups.length=function(){var t=0;for(var e in this)this.hasOwnProperty(e)&&t++;return t}},Groups.prototype.get=function(t){var e=this.groups[t];if(void 0==e){var i=this.defaultIndex%Groups.DEFAULT.length;this.defaultIndex++,e={},e.color=Groups.DEFAULT[i],this.groups[t]=e}return e},Groups.prototype.add=function(t,e){return this.groups[t]=e,e.color&&(e.color=M.parseColor(e.color)),e},Images=function(){this.images={},this.callback=void 0},Images.prototype.setOnloadCallback=function(t){this.callback=t},Images.prototype.load=function(t){var e=this.images[t];if(void 0==e){var i=this;e=new Image,this.images[t]=e,e.onload=function(){i.callback&&i.callback(this)},e.src=t}return e};var R={_putDataInSector:function(){this.sectors.active[this._sector()].nodes=this.nodes,this.sectors.active[this._sector()].edges=this.edges,this.sectors.active[this._sector()].nodeIndices=this.nodeIndices},_switchToSector:function(t,e){void 0===e||"active"==e?this._switchToActiveSector(t):this._switchToFrozenSector(t)},_switchToActiveSector:function(t){this.nodeIndices=this.sectors.active[t].nodeIndices,this.nodes=this.sectors.active[t].nodes,this.edges=this.sectors.active[t].edges},_switchToFrozenSector:function(t){this.nodeIndices=this.sectors.frozen[t].nodeIndices,this.nodes=this.sectors.frozen[t].nodes,this.edges=this.sectors.frozen[t].edges},_switchToNavigationSector:function(){this.nodeIndices=this.sectors.navigation.nodeIndices,this.nodes=this.sectors.navigation.nodes,this.edges=this.sectors.navigation.edges},_loadLatestSector:function(){this._switchToSector(this._sector())},_sector:function(){return this.activeSector[this.activeSector.length-1]},_previousSector:function(){if(this.activeSector.length>1)return this.activeSector[this.activeSector.length-2];throw new TypeError("there are not enough sectors in the this.activeSector array.")},_setActiveSector:function(t){this.activeSector.push(t)},_forgetLastSector:function(){this.activeSector.pop()},_createNewSector:function(t){this.sectors.active[t]={nodes:{},edges:{},nodeIndices:[],formationScale:this.scale,drawingNode:void 0},this.sectors.active[t].drawingNode=new M({id:t,color:{background:"#eaefef",border:"495c5e"}},{},{},this.constants),this.sectors.active[t].drawingNode.clusterSize=2},_deleteActiveSector:function(t){delete this.sectors.active[t]},_deleteFrozenSector:function(t){delete this.sectors.frozen[t]},_freezeSector:function(t){this.sectors.frozen[t]=this.sectors.active[t],this._deleteActiveSector(t)},_activateSector:function(t){this.sectors.active[t]=this.sectors.frozen[t],this._deleteFrozenSector(t)},_mergeThisWithFrozen:function(t){for(var e in this.nodes)this.nodes.hasOwnProperty(e)&&(this.sectors.frozen[t].nodes[e]=this.nodes[e]);for(var i in this.edges)this.edges.hasOwnProperty(i)&&(this.sectors.frozen[t].edges[i]=this.edges[i]);for(var n=0;n<this.nodeIndices.length;n++)this.sectors.frozen[t].nodeIndices.push(this.nodeIndices[n])},_collapseThisToSingleCluster:function(){this.clusterToFit(1,!1)},_addSector:function(t){var e=this._sector();delete this.nodes[t.id];var i=z.randomUUID();this._freezeSector(e),this._createNewSector(i),this._setActiveSector(i),this._switchToSector(this._sector()),this.nodes[t.id]=t},_collapseSector:function(){var t=this._sector();if("default"!=t&&(1==this.nodeIndices.length||this.sectors.active[t].drawingNode.width*this.scale<this.constants.clustering.screenSizeThreshold*this.frame.canvas.clientWidth||this.sectors.active[t].drawingNode.height*this.scale<this.constants.clustering.screenSizeThreshold*this.frame.canvas.clientHeight)){var e=this._previousSector();this._collapseThisToSingleCluster(),this._mergeThisWithFrozen(e),this._deleteActiveSector(t),this._activateSector(e),this._switchToSector(e),this._forgetLastSector(),this._updateNodeIndexList()}},_doInAllActiveSectors:function(t,e){if(void 0===e)for(var i in this.sectors.active)this.sectors.active.hasOwnProperty(i)&&(this._switchToActiveSector(i),this[t]());else for(var i in this.sectors.active)if(this.sectors.active.hasOwnProperty(i)){this._switchToActiveSector(i);var n=Array.prototype.splice.call(arguments,1);n.length>1?this[t](n[0],n[1]):this[t](e)}this._loadLatestSector()},_doInAllFrozenSectors:function(t,e){if(void 0===e)for(var i in this.sectors.frozen)this.sectors.frozen.hasOwnProperty(i)&&(this._switchToFrozenSector(i),this[t]());else for(var i in this.sectors.frozen)if(this.sectors.frozen.hasOwnProperty(i)){this._switchToFrozenSector(i);var n=Array.prototype.splice.call(arguments,1);n.length>1?this[t](n[0],n[1]):this[t](e)}this._loadLatestSector()},_doInNavigationSector:function(t,e){if(this._switchToNavigationSector(),void 0===e)this[t]();else{var i=Array.prototype.splice.call(arguments,1);i.length>1?this[t](i[0],i[1]):this[t](e)}this._loadLatestSector()},_doInAllSectors:function(t,e){var i=Array.prototype.splice.call(arguments,1);void 0===e?(this._doInAllActiveSectors(t),this._doInAllFrozenSectors(t)):i.length>1?(this._doInAllActiveSectors(t,i[0],i[1]),this._doInAllFrozenSectors(t,i[0],i[1])):(this._doInAllActiveSectors(t,e),this._doInAllFrozenSectors(t,e))},_clearNodeIndexList:function(){var t=this._sector();this.sectors.active[t].nodeIndices=[],this.nodeIndices=this.sectors.active[t].nodeIndices},_drawSectorNodes:function(t,e){var i,n=1e9,s=-1e9,o=1e9,r=-1e9;for(var a in this.sectors[e])if(this.sectors[e].hasOwnProperty(a)&&void 0!==this.sectors[e][a].drawingNode){this._switchToSector(a,e),n=1e9,s=-1e9,o=1e9,r=-1e9;for(var h in this.nodes)this.nodes.hasOwnProperty(h)&&(i=this.nodes[h],i.resize(t),o>i.x-.5*i.width&&(o=i.x-.5*i.width),r<i.x+.5*i.width&&(r=i.x+.5*i.width),n>i.y-.5*i.height&&(n=i.y-.5*i.height),s<i.y+.5*i.height&&(s=i.y+.5*i.height));i=this.sectors[e][a].drawingNode,i.x=.5*(r+o),i.y=.5*(s+n),i.width=2*(i.x-o),i.height=2*(i.y-n),i.radius=Math.sqrt(Math.pow(.5*i.width,2)+Math.pow(.5*i.height,2)),i.setScale(this.scale),i._drawCircle(t)}},_drawAllSectorNodes:function(t){this._drawSectorNodes(t,"frozen"),this._drawSectorNodes(t,"active"),this._loadLatestSector()}},H={startWithClustering:function(){this.clusterToFit(this.constants.clustering.initialMaxNodes,!0),this.updateLabels(),this.stabilize&&this._doStabilize(),this.start()},clusterToFit:function(t,e){for(var i=this.nodeIndices.length,n=50,s=0;i>t&&n>s;)s%3==0?this.forceAggregateHubs():this.increaseClusterLevel(),i=this.nodeIndices.length,s+=1;s>1&&1==e&&this.repositionNodes()},openCluster:function(t){var e=this.moving;if(t.clusterSize>this.constants.clustering.sectorThreshold&&this._nodeInActiveArea(t)&&("default"!=this._sector()||1!=this.nodeIndices.length)){this._addSector(t);for(var i=0;this.nodeIndices.length<this.constants.clustering.initialMaxNodes&&10>i;)this.decreaseClusterLevel(),i+=1}else this._expandClusterNode(t,!1,!0),this._updateNodeIndexList(),this._updateDynamicEdges(),this.updateLabels();this.moving!=e&&this.start()},updateClustersDefault:function(){1==this.constants.clustering.enabled&&this.updateClusters(0,!1,!1)},increaseClusterLevel:function(){this.updateClusters(-1,!1,!0)},decreaseClusterLevel:function(){this.updateClusters(1,!1,!0)},updateClusters:function(t,e,i){var n=this.moving,s=this.nodeIndices.length;this.previousScale>this.scale&&0==t&&this._collapseSector(),this.previousScale>this.scale||-1==t?this._formClusters(i):(this.previousScale<this.scale||1==t)&&(1==i?this._openClusters(e,i):this._openClustersBySize()),this._updateNodeIndexList(),this.nodeIndices.length==s&&(this.previousScale>this.scale||-1==t)&&(this._aggregateHubs(i),this._updateNodeIndexList()),(this.previousScale>this.scale||-1==t)&&(this.handleChains(),this._updateNodeIndexList()),this.previousScale=this.scale,this._updateDynamicEdges(),this.updateLabels(),this.nodeIndices.length<s&&(this.clusterSession+=1),this.moving!=n&&this.start()},handleChains:function(){var t=this._getChainFraction();t>this.constants.clustering.chainThreshold&&this._reduceAmountOfChains(1-this.constants.clustering.chainThreshold/t)},_aggregateHubs:function(t){this._getHubSize(),this._formClustersByHub(t,!1)},forceAggregateHubs:function(){var t=this.moving,e=this.nodeIndices.length;this._aggregateHubs(!0),this._updateNodeIndexList(),this._updateDynamicEdges(),this.updateLabels(),this.nodeIndices.length!=e&&(this.clusterSession+=1),this.moving!=t&&this.start()},_openClustersBySize:function(){for(var t in this.nodes)if(this.nodes.hasOwnProperty(t)){var e=this.nodes[t];1==e.inView()&&(e.width*this.scale>this.constants.clustering.screenSizeThreshold*this.frame.canvas.clientWidth||e.height*this.scale>this.constants.clustering.screenSizeThreshold*this.frame.canvas.clientHeight)&&this.openCluster(e)}},_openClusters:function(t,e){for(var i=0;i<this.nodeIndices.length;i++){var n=this.nodes[this.nodeIndices[i]];this._expandClusterNode(n,t,e)}},_expandClusterNode:function(t,e,i,n){if(t.clusterSize>1&&(t.clusterSize<this.constants.clustering.sectorThreshold&&(n=!0),e=n?!0:e,t.formationScale<this.scale||1==i))for(var s in t.containedNodes)if(t.containedNodes.hasOwnProperty(s)){var o=t.containedNodes[s];1==i?(o.clusterSession==t.clusterSessions[t.clusterSessions.length-1]||n)&&this._expelChildFromParent(t,s,e,i,n):this._nodeInActiveArea(t)&&this._expelChildFromParent(t,s,e,i,n)}},_expelChildFromParent:function(t,e,i,n,s){var o=t.containedNodes[e];if(o.formationScale<this.scale||1==n){this.nodes[e]=o,this._releaseContainedEdges(t,o),this._connectEdgeBackToChild(t,o),this._validateEdges(t),t.mass-=this.constants.clustering.massTransferCoefficient*o.mass,t.fontSize-=this.constants.clustering.fontSizeMultiplier*o.clusterSize,t.clusterSize-=o.clusterSize,t.dynamicEdgesLength=t.dynamicEdges.length,o.x=t.x+.3*this.constants.edges.length*(.5-Math.random())*t.clusterSize,o.y=t.y+.3*this.constants.edges.length*(.5-Math.random())*t.clusterSize,delete t.containedNodes[e];var r=!1;for(var a in t.containedNodes)if(t.containedNodes.hasOwnProperty(a)&&t.containedNodes[a].clusterSession==o.clusterSession){r=!0;break}0==r&&t.clusterSessions.pop(),o.clusterSession=0,this.moving=!0,t.clearSizeCache()}1==i&&this._expandClusterNode(o,i,n,s)},_formClusters:function(t){0==t?this._formClustersByZoom():this._forceClustersByZoom()},_formClustersByZoom:function(){var t,e,i,n=this.constants.clustering.clusterEdgeThreshold/this.scale;for(var s in this.edges)if(this.edges.hasOwnProperty(s)){var o=this.edges[s];if(o.connected&&o.toId!=o.fromId&&(t=o.to.x-o.from.x,e=o.to.y-o.from.y,i=Math.sqrt(t*t+e*e),n>i)){var r=o.from,a=o.to;o.to.mass>o.from.mass&&(r=o.to,a=o.from),1==a.dynamicEdgesLength?this._addToCluster(r,a,!1):1==r.dynamicEdgesLength&&this._addToCluster(a,r,!1)}}},_forceClustersByZoom:function(){for(var t in this.nodes)if(this.nodes.hasOwnProperty(t)){var e=this.nodes[t];if(1==e.dynamicEdgesLength&&0!=e.dynamicEdges.length){var i=e.dynamicEdges[0],n=i.toId==e.id?this.nodes[i.fromId]:this.nodes[i.toId];e.id!=n.id&&(n.mass>e.mass?this._addToCluster(n,e,!0):this._addToCluster(e,n,!0))}}},_formClustersByHub:function(t,e){for(var i in this.nodes)this.nodes.hasOwnProperty(i)&&this._formClusterFromHub(this.nodes[i],t,e)},_formClusterFromHub:function(t,e,i,n){if(void 0===n&&(n=0),t.dynamicEdgesLength>=this.hubThreshold&&0==i||t.dynamicEdgesLength==this.hubThreshold&&1==i){for(var s,o,r,a=this.constants.clustering.clusterEdgeThreshold/this.scale,h=!1,d=[],c=t.dynamicEdges.length,l=0;c>l;l++)d.push(t.dynamicEdges[l].id);if(0==e)for(h=!1,l=0;c>l;l++){var u=this.edges[d[l]];if(void 0!==u&&u.connected&&u.toId!=u.fromId&&(s=u.to.x-u.from.x,o=u.to.y-u.from.y,r=Math.sqrt(s*s+o*o),a>r)){h=!0;break}}if(!e&&h||e)for(l=0;c>l;l++)if(u=this.edges[d[l]],void 0!==u){var p=this.nodes[u.fromId==t.id?u.toId:u.fromId];p.dynamicEdges.length<=this.hubThreshold+n&&p.id!=t.id&&this._addToCluster(t,p,e)}}},_addToCluster:function(t,e,i){t.containedNodes[e.id]=e;for(var n=0;n<e.dynamicEdges.length;n++){var s=e.dynamicEdges[n];s.toId==t.id||s.fromId==t.id?this._addToContainedEdges(t,e,s):this._connectEdgeToCluster(t,e,s)}e.dynamicEdges=[],this._containCircularEdgesFromNode(t,e),delete this.nodes[e.id];var o=t.mass;e.clusterSession=this.clusterSession,t.mass+=this.constants.clustering.massTransferCoefficient*e.mass,t.clusterSize+=e.clusterSize,t.fontSize+=this.constants.clustering.fontSizeMultiplier*e.clusterSize,t.clusterSessions[t.clusterSessions.length-1]!=this.clusterSession&&t.clusterSessions.push(this.clusterSession),t.formationScale=1==i?0:this.scale,t.clearSizeCache(),t.containedNodes[e.id].formationScale=t.formationScale,e.clearVelocity(),t.updateVelocity(o),this.moving=!0},_updateDynamicEdges:function(){for(var t=0;t<this.nodeIndices.length;t++){var e=this.nodes[this.nodeIndices[t]];e.dynamicEdgesLength=e.dynamicEdges.length;var i=0;if(e.dynamicEdgesLength>1)for(var n=0;n<e.dynamicEdgesLength-1;n++)for(var s=e.dynamicEdges[n].toId,o=e.dynamicEdges[n].fromId,r=n+1;r<e.dynamicEdgesLength;r++)(e.dynamicEdges[r].toId==s&&e.dynamicEdges[r].fromId==o||e.dynamicEdges[r].fromId==s&&e.dynamicEdges[r].toId==o)&&(i+=1);e.dynamicEdgesLength-=i}},_addToContainedEdges:function(t,e,i){t.containedEdges.hasOwnProperty(e.id)||(t.containedEdges[e.id]=[]),t.containedEdges[e.id].push(i),delete this.edges[i.id];for(var n=0;n<t.dynamicEdges.length;n++)if(t.dynamicEdges[n].id==i.id){t.dynamicEdges.splice(n,1);break}},_connectEdgeToCluster:function(t,e,i){i.toId==i.fromId?this._addToContainedEdges(t,e,i):(i.toId==e.id?(i.originalToId.push(e.id),i.to=t,i.toId=t.id):(i.originalFromId.push(e.id),i.from=t,i.fromId=t.id),this._addToReroutedEdges(t,e,i))},_containCircularEdgesFromNode:function(t,e){for(var i=0;i<t.dynamicEdges.length;i++){var n=t.dynamicEdges[i]; n.toId==n.fromId&&this._addToContainedEdges(t,e,n)}},_addToReroutedEdges:function(t,e,i){t.reroutedEdges.hasOwnProperty(e.id)||(t.reroutedEdges[e.id]=[]),t.reroutedEdges[e.id].push(i),t.dynamicEdges.push(i)},_connectEdgeBackToChild:function(t,e){if(t.reroutedEdges.hasOwnProperty(e.id)){for(var i=0;i<t.reroutedEdges[e.id].length;i++){var n=t.reroutedEdges[e.id][i];n.originalFromId[n.originalFromId.length-1]==e.id?(n.originalFromId.pop(),n.fromId=e.id,n.from=e):(n.originalToId.pop(),n.toId=e.id,n.to=e),e.dynamicEdges.push(n);for(var s=0;s<t.dynamicEdges.length;s++)if(t.dynamicEdges[s].id==n.id){t.dynamicEdges.splice(s,1);break}}delete t.reroutedEdges[e.id]}},_validateEdges:function(t){for(var e=0;e<t.dynamicEdges.length;e++){var i=t.dynamicEdges[e];t.id!=i.toId&&t.id!=i.fromId&&t.dynamicEdges.splice(e,1)}},_releaseContainedEdges:function(t,e){for(var i=0;i<t.containedEdges[e.id].length;i++){var n=t.containedEdges[e.id][i];this.edges[n.id]=n,e.dynamicEdges.push(n),t.dynamicEdges.push(n)}delete t.containedEdges[e.id]},updateLabels:function(){var t;for(t in this.nodes)if(this.nodes.hasOwnProperty(t)){var e=this.nodes[t];e.clusterSize>1&&(e.label="[".concat(String(e.clusterSize),"]"))}for(t in this.nodes)this.nodes.hasOwnProperty(t)&&(e=this.nodes[t],1==e.clusterSize&&(e.label=void 0!==e.originalLabel?e.originalLabel:String(e.id)))},_nodeInActiveArea:function(t){return Math.abs(t.x-this.areaCenter.x)<=this.constants.clustering.activeAreaBoxSize/this.scale&&Math.abs(t.y-this.areaCenter.y)<=this.constants.clustering.activeAreaBoxSize/this.scale},repositionNodes:function(){for(var t=0;t<this.nodeIndices.length;t++){var e=this.nodes[this.nodeIndices[t]];if(!e.isFixed()){var i=this.constants.edges.length*(1+.6*e.clusterSize),n=2*Math.PI*Math.random();e.x=i*Math.cos(n),e.y=i*Math.sin(n)}}},_getHubSize:function(){for(var t=0,e=0,i=0,n=0,s=0;s<this.nodeIndices.length;s++){var o=this.nodes[this.nodeIndices[s]];o.dynamicEdgesLength>n&&(n=o.dynamicEdgesLength),t+=o.dynamicEdgesLength,e+=Math.pow(o.dynamicEdgesLength,2),i+=1}t/=i,e/=i;var r=e-Math.pow(t,2),a=Math.sqrt(r);this.hubThreshold=Math.floor(t+2*a),this.hubThreshold>n&&(this.hubThreshold=n)},_reduceAmountOfChains:function(t){this.hubThreshold=2;var e=Math.floor(this.nodeIndices.length*t);for(var i in this.nodes)this.nodes.hasOwnProperty(i)&&2==this.nodes[i].dynamicEdgesLength&&this.nodes[i].dynamicEdges.length>=2&&e>0&&(this._formClusterFromHub(this.nodes[i],!0,!0,1),e-=1)},_getChainFraction:function(){var t=0,e=0;for(var i in this.nodes)this.nodes.hasOwnProperty(i)&&(2==this.nodes[i].dynamicEdgesLength&&this.nodes[i].dynamicEdges.length>=2&&(t+=1),e+=1);return t/e}},W={_getNodesOverlappingWith:function(t,e){var i=this.nodes;for(var n in i)i.hasOwnProperty(n)&&i[n].isOverlappingWith(t)&&e.push(n)},_getAllNodesOverlappingWith:function(t){var e=[];return this._doInAllActiveSectors("_getNodesOverlappingWith",t,e),e},_getAllNavigationNodesOverlappingWith:function(t){var e=[];return this._doInNavigationSector("_getNodesOverlappingWith",t,e),e},_pointerToPositionObject:function(t){var e=this._canvasToX(t.x),i=this._canvasToY(t.y);return{left:e,top:i,right:e,bottom:i}},_pointerToScreenPositionObject:function(t){var e=t.x,i=t.y;return{left:e,top:i,right:e,bottom:i}},_getNavigationNodeAt:function(t){var e=this._pointerToScreenPositionObject(t),i=this._getAllNavigationNodesOverlappingWith(e);return i.length>0?this.sectors.navigation.nodes[i[i.length-1]]:null},_getNodeAt:function(t){var e=this._pointerToPositionObject(t);return overlappingNodes=this._getAllNodesOverlappingWith(e),overlappingNodes.length>0?this.nodes[overlappingNodes[overlappingNodes.length-1]]:null},_getEdgeAt:function(){return null},_addToSelection:function(t){this.selection.push(t.id),this.selectionObj[t.id]=t},_removeFromSelection:function(t){for(var e=0;e<this.selection.length;e++)if(t.id==this.selection[e]){this.selection.splice(e,1);break}delete this.selectionObj[t.id]},_unselectAll:function(t){void 0===t&&(t=!1),this.selection=[];for(var e in this.selectionObj)this.selectionObj.hasOwnProperty(e)&&this.selectionObj[e].unselect();this.selectionObj={},0==t&&this._trigger("select",{nodes:this.getSelection()})},_selectionIsEmpty:function(){return 0==this.selection.length?!0:!1},_selectNode:function(t,e,i){void 0===i&&(i=!1),0==this._selectionIsEmpty()&&0==e&&this._unselectAll(!0),0==t.selected?(t.select(),this._addToSelection(t)):(t.unselect(),this._removeFromSelection(t)),0==i&&this._trigger("select",{nodes:this.getSelection()})},_handleTouch:function(t){if(1==this.constants.navigation.enabled){var e=this._getNavigationNodeAt(t);null!=e&&void 0!==this[e.triggerFunction]&&this[e.triggerFunction]()}},_handleTap:function(t){var e=this._getNodeAt(t);null!=e?this._selectNode(e,!1):this._unselectAll(),this._redraw()},_handleDoubleTap:function(t){var e=this._getNodeAt(t);null!=e&&void 0!==e&&(this.areaCenter={x:this._canvasToX(t.x),y:this._canvasToY(t.y)},this.openCluster(e))},_handleOnHold:function(t){var e=this._getNodeAt(t);null!=e&&this._selectNode(e,!0),this._redraw()},_handleOnRelease:function(){this.xIncrement=0,this.yIncrement=0,this.zoomIncrement=0,this._unHighlightAll()},getSelection:function(){return this.selection.concat([])},getSelectionObjects:function(){return this.selectionObj},setSelection:function(t){var e,i,n;if(!t||void 0==t.length)throw"Selection must be an array with ids";for(this._unselectAll(!0),e=0,i=t.length;i>e;e++){n=t[e];var s=this.nodes[n];if(!s)throw new RangeError('Node with id "'+n+'" not found');this._selectNode(s,!0,!0)}this.redraw()},_updateSelection:function(){for(var t=0;t<this.selection.length;){var e=this.selection[t];this.nodes.hasOwnProperty(e)?t++:(this.selection.splice(t,1),delete this.selectionObj[e])}}},j={_relocateNavigation:function(){if(void 0!==this.sectors){var t=this.navigationClientWidth-this.frame.canvas.clientWidth,e=this.navigationClientHeight-this.frame.canvas.clientHeight;this.navigationClientWidth=this.frame.canvas.clientWidth,this.navigationClientHeight=this.frame.canvas.clientHeight;var i=null;for(var n in this.sectors.navigation.nodes)this.sectors.navigation.nodes.hasOwnProperty(n)&&(i=this.sectors.navigation.nodes[n],i.horizontalAlignLeft||(i.x-=t),i.verticalAlignTop||(i.y-=e))}},_loadNavigationElements:function(){var t=this.constants.navigation.iconPath;this.navigationClientWidth=this.frame.canvas.clientWidth,this.navigationClientHeight=this.frame.canvas.clientHeight,void 0===this.navigationClientWidth&&(this.navigationClientWidth=0,this.navigationClientHeight=0);for(var e=15,i=7,n=[{id:"navigation_up",shape:"image",image:t+"/uparrow.png",triggerFunction:"_moveUp",verticalAlignTop:!1,x:45+e+i,y:this.navigationClientHeight-45-e-i},{id:"navigation_down",shape:"image",image:t+"/downarrow.png",triggerFunction:"_moveDown",verticalAlignTop:!1,x:45+e+i,y:this.navigationClientHeight-15-e},{id:"navigation_left",shape:"image",image:t+"/leftarrow.png",triggerFunction:"_moveLeft",verticalAlignTop:!1,x:15+e,y:this.navigationClientHeight-15-e},{id:"navigation_right",shape:"image",image:t+"/rightarrow.png",triggerFunction:"_moveRight",verticalAlignTop:!1,x:75+e+2*i,y:this.navigationClientHeight-15-e},{id:"navigation_plus",shape:"image",image:t+"/plus.png",triggerFunction:"_zoomIn",verticalAlignTop:!1,horizontalAlignLeft:!1,x:this.navigationClientWidth-45-e-i,y:this.navigationClientHeight-15-e},{id:"navigation_min",shape:"image",image:t+"/minus.png",triggerFunction:"_zoomOut",verticalAlignTop:!1,horizontalAlignLeft:!1,x:this.navigationClientWidth-15-e,y:this.navigationClientHeight-15-e},{id:"navigation_zoomExtends",shape:"image",image:t+"/zoomExtends.png",triggerFunction:"zoomToFit",verticalAlignTop:!1,horizontalAlignLeft:!1,x:this.navigationClientWidth-15-e,y:this.navigationClientHeight-45-e-i}],s=null,o=0;o<n.length;o++)s=this.sectors.navigation.nodes,s[n[o].id]=new M(n[o],this.images,this.groups,this.constants)},_highlightNavigationElement:function(t){this.sectors.navigation.nodes.hasOwnProperty(t)&&(this.sectors.navigation.nodes[t].clusterSize=2)},_unHighlightNavigationElement:function(t){this.sectors.navigation.nodes.hasOwnProperty(t)&&(this.sectors.navigation.nodes[t].clusterSize=1)},_unHighlightAll:function(){for(var t in this.sectors.navigation.nodes)this.sectors.navigation.nodes.hasOwnProperty(t)&&this._unHighlightNavigationElement(t)},_preventDefault:function(t){void 0!==t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},_moveUp:function(t){this._highlightNavigationElement("navigation_up"),this.yIncrement=this.constants.keyboard.speed.y,this.start(),this._preventDefault(t)},_moveDown:function(t){this._highlightNavigationElement("navigation_down"),this.yIncrement=-this.constants.keyboard.speed.y,this.start(),this._preventDefault(t)},_moveLeft:function(t){this._highlightNavigationElement("navigation_left"),this.xIncrement=this.constants.keyboard.speed.x,this.start(),this._preventDefault(t)},_moveRight:function(t){this._highlightNavigationElement("navigation_right"),this.xIncrement=-this.constants.keyboard.speed.y,this.start(),this._preventDefault(t)},_zoomIn:function(t){this._highlightNavigationElement("navigation_plus"),this.zoomIncrement=this.constants.keyboard.speed.zoom,this.start(),this._preventDefault(t)},_zoomOut:function(){this._highlightNavigationElement("navigation_min"),this.zoomIncrement=-this.constants.keyboard.speed.zoom,this.start(),this._preventDefault(event)},_stopZoom:function(){this._unHighlightNavigationElement("navigation_plus"),this._unHighlightNavigationElement("navigation_min"),this.zoomIncrement=0},_yStopMoving:function(){this._unHighlightNavigationElement("navigation_up"),this._unHighlightNavigationElement("navigation_down"),this.yIncrement=0},_xStopMoving:function(){this._unHighlightNavigationElement("navigation_left"),this._unHighlightNavigationElement("navigation_right"),this.xIncrement=0}};O.prototype._getScriptPath=function(){for(var t=document.getElementsByTagName("script"),e=0;e<t.length;e++){var i=t[e].src,n=i&&/\/?vis(.min)?\.js$/.exec(i);if(n)return i.substring(0,i.length-n[0].length)}return null},O.prototype._getRange=function(){for(var t,e=1e9,i=-1e9,n=1e9,s=-1e9,o=0;o<this.nodeIndices.length;o++)t=this.nodes[this.nodeIndices[o]],n>t.x-t.width&&(n=t.x-t.width),s<t.x+t.width&&(s=t.x+t.width),e>t.y-t.height&&(e=t.y-t.height),i<t.y+t.height&&(i=t.y+t.height);return{minX:n,maxX:s,minY:e,maxY:i}},O.prototype._findCenter=function(t){var e={x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)};return e},O.prototype._centerGraph=function(t){var e=this._findCenter(t);e.x*=this.scale,e.y*=this.scale,e.x-=.5*this.frame.canvas.clientWidth,e.y-=.5*this.frame.canvas.clientHeight,this._setTranslation(-e.x,-e.y)},O.prototype.zoomToFit=function(t){void 0===t&&(t=!1);var e=this.nodeIndices.length,i=this._getRange();if(1==t)if(1==this.constants.clustering.enabled&&e>=this.constants.clustering.initialMaxNodes)var n=38.8467/(e-14.50184)+.0116;else var n=42.54117319/(e+39.31966387)+.1944405;else{var s=1.1*(Math.abs(i.minX)+Math.abs(i.maxX)),o=1.1*(Math.abs(i.minY)+Math.abs(i.maxY)),r=this.frame.canvas.clientWidth/s,a=this.frame.canvas.clientHeight/o;n=a>=r?r:a}n>1&&(n=1),this.pinch.mousewheelScale=n,this._setScale(n),this._centerGraph(i),this.start()},O.prototype._updateNodeIndexList=function(){this._clearNodeIndexList();for(var t in this.nodes)this.nodes.hasOwnProperty(t)&&this.nodeIndices.push(t)},O.prototype.setData=function(t,e){if(void 0===e&&(e=!1),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){if(t&&t.dot){var i=U.util.DOTToGraph(t.dot);return void this.setData(i)}}else this._setNodes(t&&t.nodes),this._setEdges(t&&t.edges);this._putDataInSector(),e||(this.stabilize&&this._doStabilize(),this.moving=!0,this.start())},O.prototype.setOptions=function(t){if(t){if(void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height),void 0!==t.stabilize&&(this.stabilize=t.stabilize),void 0!==t.selectable&&(this.selectable=t.selectable),t.clustering){this.constants.clustering.enabled=!0;for(var e in t.clustering)t.clustering.hasOwnProperty(e)&&(this.constants.clustering[e]=t.clustering[e])}else void 0!==t.clustering&&(this.constants.clustering.enabled=!1);if(t.navigation){this.constants.navigation.enabled=!0;for(var e in t.navigation)t.navigation.hasOwnProperty(e)&&(this.constants.navigation[e]=t.navigation[e])}else void 0!==t.navigation&&(this.constants.navigation.enabled=!1);if(t.keyboard){this.constants.keyboard.enabled=!0;for(var e in t.keyboard)t.keyboard.hasOwnProperty(e)&&(this.constants.keyboard[e]=t.keyboard[e])}else void 0!==t.keyboard&&(this.constants.keyboard.enabled=!1);if(t.edges){for(e in t.edges)t.edges.hasOwnProperty(e)&&(this.constants.edges[e]=t.edges[e]);void 0!==t.edges.length&&t.nodes&&void 0===t.nodes.distance&&(this.constants.edges.length=t.edges.length,this.constants.nodes.distance=1.25*t.edges.length),t.edges.fontColor||(this.constants.edges.fontColor=t.edges.color),t.edges.dash&&(void 0!==t.edges.dash.length&&(this.constants.edges.dash.length=t.edges.dash.length),void 0!==t.edges.dash.gap&&(this.constants.edges.dash.gap=t.edges.dash.gap),void 0!==t.edges.dash.altLength&&(this.constants.edges.dash.altLength=t.edges.dash.altLength))}if(t.nodes){for(e in t.nodes)t.nodes.hasOwnProperty(e)&&(this.constants.nodes[e]=t.nodes[e]);t.nodes.color&&(this.constants.nodes.color=M.parseColor(t.nodes.color))}if(t.groups)for(var i in t.groups)if(t.groups.hasOwnProperty(i)){var n=t.groups[i];this.groups.add(i,n)}}this.setSize(this.width,this.height),this._setTranslation(this.frame.clientWidth/2,this.frame.clientHeight/2),this._setScale(1),this._loadNavigationControls(),this._createKeyBinds(),this._redraw()},O.prototype.on=function(t,e){var i=["select"];if(-1==i.indexOf(t))throw new Error('Unknown event "'+t+'". Choose from '+i.join());F.addListener(this,t,e)},O.prototype.off=function(t,e){F.removeListener(this,t,e)},O.prototype._trigger=function(t,e){F.trigger(this,t,e)},O.prototype._create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);if(this.frame=document.createElement("div"),this.frame.className="graph-frame",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),!this.frame.canvas.getContext){var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}var e=this;this.drag={},this.pinch={},this.hammer=N(this.frame.canvas,{prevent_default:!0}),this.hammer.on("tap",e._onTap.bind(e)),this.hammer.on("doubletap",e._onDoubleTap.bind(e)),this.hammer.on("hold",e._onHold.bind(e)),this.hammer.on("pinch",e._onPinch.bind(e)),this.hammer.on("touch",e._onTouch.bind(e)),this.hammer.on("dragstart",e._onDragStart.bind(e)),this.hammer.on("drag",e._onDrag.bind(e)),this.hammer.on("dragend",e._onDragEnd.bind(e)),this.hammer.on("release",e._onRelease.bind(e)),this.hammer.on("mousewheel",e._onMouseWheel.bind(e)),this.hammer.on("DOMMouseScroll",e._onMouseWheel.bind(e)),this.hammer.on("mousemove",e._onMouseMoveTitle.bind(e)),this.containerElement.appendChild(this.frame)},O.prototype._createKeyBinds=function(){var t=this;this.mousetrap=A,this.mousetrap.reset(),1==this.constants.keyboard.enabled&&(this.mousetrap.bind("up",this._moveUp.bind(t),"keydown"),this.mousetrap.bind("up",this._yStopMoving.bind(t),"keyup"),this.mousetrap.bind("down",this._moveDown.bind(t),"keydown"),this.mousetrap.bind("down",this._yStopMoving.bind(t),"keyup"),this.mousetrap.bind("left",this._moveLeft.bind(t),"keydown"),this.mousetrap.bind("left",this._xStopMoving.bind(t),"keyup"),this.mousetrap.bind("right",this._moveRight.bind(t),"keydown"),this.mousetrap.bind("right",this._xStopMoving.bind(t),"keyup"),this.mousetrap.bind("=",this._zoomIn.bind(t),"keydown"),this.mousetrap.bind("=",this._stopZoom.bind(t),"keyup"),this.mousetrap.bind("-",this._zoomOut.bind(t),"keydown"),this.mousetrap.bind("-",this._stopZoom.bind(t),"keyup"),this.mousetrap.bind("[",this._zoomIn.bind(t),"keydown"),this.mousetrap.bind("[",this._stopZoom.bind(t),"keyup"),this.mousetrap.bind("]",this._zoomOut.bind(t),"keydown"),this.mousetrap.bind("]",this._stopZoom.bind(t),"keyup"),this.mousetrap.bind("pageup",this._zoomIn.bind(t),"keydown"),this.mousetrap.bind("pageup",this._stopZoom.bind(t),"keyup"),this.mousetrap.bind("pagedown",this._zoomOut.bind(t),"keydown"),this.mousetrap.bind("pagedown",this._stopZoom.bind(t),"keyup"))},O.prototype._getPointer=function(t){return{x:t.pageX-U.util.getAbsoluteLeft(this.frame.canvas),y:t.pageY-U.util.getAbsoluteTop(this.frame.canvas)}},O.prototype._onTouch=function(t){this.drag.pointer=this._getPointer(t.gesture.touches[0]),this.drag.pinched=!1,this.pinch.scale=this._getScale(),this._handleTouch(this.drag.pointer)},O.prototype._onDragStart=function(){var t=this.drag,e=this._getNodeAt(t.pointer);if(t.dragging=!0,t.selection=[],t.translation=this._getTranslation(),t.nodeId=null,null!=e){t.nodeId=e.id,e.isSelected()||this._selectNode(e,!1);var i=this;this.selection.forEach(function(e){var n=i.nodes[e];if(n){var s={id:e,node:n,x:n.x,y:n.y,xFixed:n.xFixed,yFixed:n.yFixed};n.xFixed=!0,n.yFixed=!0,t.selection.push(s)}})}},O.prototype._onDrag=function(t){if(!this.drag.pinched){var e=this._getPointer(t.gesture.touches[0]),i=this,n=this.drag,s=n.selection;if(s&&s.length){var o=e.x-n.pointer.x,r=e.y-n.pointer.y;s.forEach(function(t){var e=t.node;t.xFixed||(e.x=i._canvasToX(i._xToCanvas(t.x)+o)),t.yFixed||(e.y=i._canvasToY(i._yToCanvas(t.y)+r))}),this.moving||(this.moving=!0,this.start())}else{var a=e.x-this.drag.pointer.x,h=e.y-this.drag.pointer.y;this._setTranslation(this.drag.translation.x+a,this.drag.translation.y+h),this._redraw(),this.moved=!0}}},O.prototype._onDragEnd=function(){this.drag.dragging=!1;var t=this.drag.selection;t&&t.forEach(function(t){t.node.xFixed=t.xFixed,t.node.yFixed=t.yFixed})},O.prototype._onTap=function(t){var e=this._getPointer(t.gesture.touches[0]);this._handleTap(e)},O.prototype._onDoubleTap=function(t){var e=this._getPointer(t.gesture.touches[0]);this._handleDoubleTap(e)},O.prototype._onHold=function(t){var e=this._getPointer(t.gesture.touches[0]);this._handleOnHold(e)},O.prototype._onRelease=function(){this._handleOnRelease()},O.prototype._onPinch=function(t){var e=this._getPointer(t.gesture.center);this.drag.pinched=!0,"scale"in this.pinch||(this.pinch.scale=1);var i=this.pinch.scale*t.gesture.scale;this._zoom(i,e)},O.prototype._zoom=function(t,e){var i=this._getScale();1e-5>t&&(t=1e-5),t>10&&(t=10);var n=this._getTranslation(),s=t/i,o=(1-s)*e.x+n.x*s,r=(1-s)*e.y+n.y*s;return this.areaCenter={x:this._canvasToX(e.x),y:this._canvasToY(e.y)},this.pinch.mousewheelScale=t,this._setScale(t),this._setTranslation(o,r),this.updateClustersDefault(),this._redraw(),t},O.prototype._onMouseWheel=function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){"mousewheelScale"in this.pinch||(this.pinch.mousewheelScale=1);var i=this.pinch.mousewheelScale,n=e/10;0>e&&(n/=1-n),i*=1+n;var s=z.fakeGesture(this,t),o=this._getPointer(s.center);i=this._zoom(i,o)}t.preventDefault()},O.prototype._onMouseMoveTitle=function(t){var e=z.fakeGesture(this,t),i=this._getPointer(e.center);this.popupNode&&this._checkHidePopup(i);var n=this,s=function(){n._checkShowPopup(i)};this.popupTimer&&clearInterval(this.popupTimer),this.drag.dragging||(this.popupTimer=setTimeout(s,300))},O.prototype._checkShowPopup=function(t){var e,i={left:this._canvasToX(t.x),top:this._canvasToY(t.y),right:this._canvasToX(t.x),bottom:this._canvasToY(t.y)},n=this.popupNode;if(void 0==this.popupNode){var s=this.nodes;for(e in s)if(s.hasOwnProperty(e)){var o=s[e];if(void 0!==o.getTitle()&&o.isOverlappingWith(i)){this.popupNode=o;break}}}if(void 0===this.popupNode){var r=this.edges;for(e in r)if(r.hasOwnProperty(e)){var a=r[e];if(a.connected&&void 0!==a.getTitle()&&a.isOverlappingWith(i)){this.popupNode=a;break}}}if(this.popupNode){if(this.popupNode!=n){var h=this;h.popup||(h.popup=new I(h.frame)),h.popup.setPosition(t.x-3,t.y-3),h.popup.setText(h.popupNode.getTitle()),h.popup.show()}}else this.popup&&this.popup.hide()},O.prototype._checkHidePopup=function(t){this.popupNode&&this._getNodeAt(t)||(this.popupNode=void 0,this.popup&&this.popup.hide())},O.prototype._getConnectionCount=function(t){function e(t){for(var e=[],i=0,n=t.length;n>i;i++)for(var s=t[i],o=s.edges,r=0,a=o.length;a>r;r++){var h=o[r],d=null;h.from==s?d=h.to:h.to==s&&(d=h.from);var c,l;if(d)for(c=0,l=t.length;l>c;c++)if(t[c]==d){d=null;break}if(d)for(c=0,l=e.length;l>c;c++)if(e[c]==d){d=null;break}d&&e.push(d)}return e}void 0==t&&(t=1);var i=[],n=this.nodes;for(var s in n)if(n.hasOwnProperty(s)){for(var o=[n[s]],r=0;t>r;r++)o=o.concat(e(o));i.push(o)}for(var a=[],h=0,d=i.length;d>h;h++)a.push(i[h].length);return a},O.prototype.setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,1==this.constants.navigation.enabled&&this._relocateNavigation()},O.prototype._setNodes=function(t){var e=this.nodesData;if(t instanceof o||t instanceof r)this.nodesData=t;else if(t instanceof Array)this.nodesData=new o,this.nodesData.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.nodesData=new o}if(e&&z.forEach(this.nodesListeners,function(t,i){e.unsubscribe(i,t)}),this.nodes={},this.nodesData){var i=this;z.forEach(this.nodesListeners,function(t,e){i.nodesData.subscribe(e,t)});var n=this.nodesData.getIds();this._addNodes(n)}this._updateSelection()},O.prototype._addNodes=function(t){for(var e,i=0,n=t.length;n>i;i++){e=t[i];var s=this.nodesData.get(e),o=new M(s,this.images,this.groups,this.constants);if(this.nodes[e]=o,!o.isFixed()){var r=2*this.constants.edges.length,a=t.length,h=2*Math.PI*(i/a);o.x=r*Math.cos(h),o.y=r*Math.sin(h),this.moving=!0}}this._updateNodeIndexList(),this._reconnectEdges(),this._updateValueRange(this.nodes)},O.prototype._updateNodes=function(t){for(var e=this.nodes,i=this.nodesData,n=0,s=t.length;s>n;n++){var o=t[n],r=e[o],a=i.get(o);r?r.setProperties(a,this.constants):(r=new M(properties,this.images,this.groups,this.constants),e[o]=r,r.isFixed()||(this.moving=!0))}this._updateNodeIndexList(),this._reconnectEdges(),this._updateValueRange(e)},O.prototype._removeNodes=function(t){for(var e=this.nodes,i=0,n=t.length;n>i;i++){var s=t[i];delete e[s]}this._updateNodeIndexList(),this._reconnectEdges(),this._updateSelection(),this._updateValueRange(e)},O.prototype._setEdges=function(t){var e=this.edgesData;if(t instanceof o||t instanceof r)this.edgesData=t;else if(t instanceof Array)this.edgesData=new o,this.edgesData.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.edgesData=new o}if(e&&z.forEach(this.edgesListeners,function(t,i){e.unsubscribe(i,t)}),this.edges={},this.edgesData){var i=this;z.forEach(this.edgesListeners,function(t,e){i.edgesData.subscribe(e,t)});var n=this.edgesData.getIds();this._addEdges(n)}this._reconnectEdges()},O.prototype._addEdges=function(t){for(var e=this.edges,i=this.edgesData,n=0,s=t.length;s>n;n++){var o=t[n],r=e[o];r&&r.disconnect();var a=i.get(o,{showInternalIds:!0});e[o]=new D(a,this,this.constants)}this.moving=!0,this._updateValueRange(e)},O.prototype._updateEdges=function(t){for(var e=this.edges,i=this.edgesData,n=0,s=t.length;s>n;n++){var o=t[n],r=i.get(o),a=e[o];a?(a.disconnect(),a.setProperties(r,this.constants),a.connect()):(a=new D(r,this,this.constants),this.edges[o]=a)}this.moving=!0,this._updateValueRange(e)},O.prototype._removeEdges=function(t){for(var e=this.edges,i=0,n=t.length;n>i;i++){var s=t[i],o=e[s];o&&(o.disconnect(),delete e[s])}this.moving=!0,this._updateValueRange(e)},O.prototype._reconnectEdges=function(){var t,e=this.nodes,i=this.edges;for(t in e)e.hasOwnProperty(t)&&(e[t].edges=[]);for(t in i)if(i.hasOwnProperty(t)){var n=i[t];n.from=null,n.to=null,n.connect()}},O.prototype._updateValueRange=function(t){var e,i=void 0,n=void 0;for(e in t)if(t.hasOwnProperty(e)){var s=t[e].getValue();void 0!==s&&(i=void 0===i?s:Math.min(s,i),n=void 0===n?s:Math.max(s,n))}if(void 0!==i&&void 0!==n)for(e in t)t.hasOwnProperty(e)&&t[e].setValueRange(i,n)},O.prototype.redraw=function(){this.setSize(this.width,this.height),this._redraw()},O.prototype._redraw=function(){var t=this.frame.canvas.getContext("2d"),e=this.frame.canvas.width,i=this.frame.canvas.height;t.clearRect(0,0,e,i),t.save(),t.translate(this.translation.x,this.translation.y),t.scale(this.scale,this.scale),this.canvasTopLeft={x:this._canvasToX(0),y:this._canvasToY(0)},this.canvasBottomRight={x:this._canvasToX(this.frame.canvas.clientWidth),y:this._canvasToY(this.frame.canvas.clientHeight)},this._doInAllSectors("_drawAllSectorNodes",t),this._doInAllSectors("_drawEdges",t),this._doInAllSectors("_drawNodes",t),t.restore(),1==this.constants.navigation.enabled&&this._doInNavigationSector("_drawNodes",t,!0)},O.prototype._setTranslation=function(t,e){void 0===this.translation&&(this.translation={x:0,y:0}),void 0!==t&&(this.translation.x=t),void 0!==e&&(this.translation.y=e)},O.prototype._getTranslation=function(){return{x:this.translation.x,y:this.translation.y}},O.prototype._setScale=function(t){this.scale=t},O.prototype._getScale=function(){return this.scale},O.prototype._canvasToX=function(t){return(t-this.translation.x)/this.scale},O.prototype._xToCanvas=function(t){return t*this.scale+this.translation.x},O.prototype._canvasToY=function(t){return(t-this.translation.y)/this.scale},O.prototype._yToCanvas=function(t){return t*this.scale+this.translation.y},O.prototype._drawNodes=function(t,e){void 0===e&&(e=!1);var i=this.nodes,n=[];for(var s in i)i.hasOwnProperty(s)&&(i[s].setScaleAndPos(this.scale,this.canvasTopLeft,this.canvasBottomRight),i[s].isSelected()?n.push(s):(i[s].inArea()||e)&&i[s].draw(t));for(var o=0,r=n.length;r>o;o++)(i[n[o]].inArea()||e)&&i[n[o]].draw(t)},O.prototype._drawEdges=function(t){var e=this.edges;for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];n.setScale(this.scale),n.connected&&e[i].draw(t)}},O.prototype._doStabilize=function(){for(var t=0,e=this.constants.minVelocity,i=!1;!i&&t<this.constants.maxIterations;)this._initializeForceCalculation(),this._discreteStepNodes(),i=!this._isMoving(e),t++;this.zoomToFit()},O.prototype._initializeForceCalculation=function(){1==this.nodeIndices.length?this.nodes[this.nodeIndices[0]]._setForce(0,0):(this.nodeIndices.length>this.constants.clustering.clusterThreshold&&1==this.constants.clustering.enabled&&this.clusterToFit(this.constants.clustering.reduceToNodes,!1),this._calculateForces())},O.prototype._calculateForces=function(){var t,e,i,n,s,o,r,a,h,d,c,l,u,p,f,g,m,v,y=this.nodes,_=this.edges,w=.08*this.forceFactor;for(g=0;g<this.nodeIndices.length;g++)c=y[this.nodeIndices[g]],"default"==this._sector()?(t=-c.x,e=-c.y,i=Math.atan2(e,t),s=Math.cos(i)*w,o=Math.sin(i)*w):(s=0,o=0),c._setForce(s,o),c.updateDamping(this.nodeIndices.length);var b=this.constants.nodes.distance,S=10;for(g=0;g<this.nodeIndices.length-1;g++)for(l=y[this.nodeIndices[g]],m=g+1;m<this.nodeIndices.length;m++)u=y[this.nodeIndices[m]],v=l.clusterSize+u.clusterSize-2,t=u.x-l.x,e=u.y-l.y,n=Math.sqrt(t*t+e*e),b=0==v?this.constants.nodes.distance:this.constants.nodes.distance*(1+v*this.constants.clustering.distanceAmplification),2*b>n&&(i=Math.atan2(e,t),r=.5*b>n?1:1/(1+Math.exp((n/b-1)*S)),r*=0==v?1:1+v*this.constants.clustering.forceAmplification,r*=this.forceFactor,s=Math.cos(i)*r,o=Math.sin(i)*r,l._addForce(-s,-o),u._addForce(s,o));for(f in _)_.hasOwnProperty(f)&&(p=_[f],p.connected&&this.nodes.hasOwnProperty(p.toId)&&this.nodes.hasOwnProperty(p.fromId)&&(v=p.to.clusterSize+p.from.clusterSize-2,t=p.to.x-p.from.x,e=p.to.y-p.from.y,d=p.length,d+=v*this.constants.clustering.edgeGrowth,h=Math.sqrt(t*t+e*e),i=Math.atan2(e,t),a=p.stiffness*(d-h)*this.forceFactor,s=Math.cos(i)*a,o=Math.sin(i)*a,p.from._addForce(-s,-o),p.to._addForce(s,o)))},O.prototype._isMoving=function(t){var e=t/this.scale,i=this.nodes;for(var n in i)if(i.hasOwnProperty(n)&&i[n].isMoving(e))return!0;return!1},O.prototype._discreteStepNodes=function(){var t=.01,e=this.nodes;for(var i in e)e.hasOwnProperty(i)&&e[i].discreteStep(t);var n=this.constants.minVelocity;this.moving=this._isMoving(n)},O.prototype.start=function(){if(!this.freezeSimulation)if(this.moving&&(this._doInAllActiveSectors("_initializeForceCalculation"),this._doInAllActiveSectors("_discreteStepNodes"),this._findCenter(this._getRange())),this.moving||0!=this.xIncrement||0!=this.yIncrement||0!=this.zoomIncrement){if(!this.timer){var t=this;this.timer=window.setTimeout(function(){if(t.timer=void 0,0!=t.xIncrement||0!=t.yIncrement){var e=t._getTranslation();t._setTranslation(e.x+t.xIncrement,e.y+t.yIncrement)}if(0!=t.zoomIncrement){var i={x:t.frame.canvas.clientWidth/2,y:t.frame.canvas.clientHeight/2};t._zoom(t.scale*(1+t.zoomIncrement),i)}t.start(),t._redraw()},this.renderTimestep)}}else this._redraw()},O.prototype.singleStep=function(){if(this.moving){this._initializeForceCalculation(),this._discreteStepNodes();var t=this.constants.minVelocity;this.moving=this._isMoving(t),this._redraw()}},O.prototype.toggleFreeze=function(){0==this.freezeSimulation?this.freezeSimulation=!0:(this.freezeSimulation=!1,this.start())},O.prototype._loadClusterSystem=function(){this.clusterSession=0,this.hubThreshold=5;for(var t in H)H.hasOwnProperty(t)&&(O.prototype[t]=H[t])},O.prototype._loadSectorSystem=function(){this.sectors={},this.activeSector=["default"],this.sectors.active={},this.sectors.active["default"]={nodes:{},edges:{},nodeIndices:[],formationScale:1,drawingNode:void 0},this.sectors.frozen={},this.sectors.navigation={nodes:{},edges:{},nodeIndices:[],formationScale:1,drawingNode:void 0},this.nodeIndices=this.sectors.active["default"].nodeIndices;for(var t in R)R.hasOwnProperty(t)&&(O.prototype[t]=R[t])},O.prototype._loadSelectionSystem=function(){this.selection=[],this.selectionObj={};for(var t in W)W.hasOwnProperty(t)&&(O.prototype[t]=W[t])},O.prototype._loadNavigationControls=function(){for(var t in j)j.hasOwnProperty(t)&&(O.prototype[t]=j[t]);1==this.constants.navigation.enabled&&this._loadNavigationElements()},O.prototype._relocateNavigation=function(){},O.prototype._unHighlightAll=function(){};var U={util:z,events:F,Controller:l,DataSet:o,DataView:r,Range:h,Stack:a,TimeStep:TimeStep,EventBus:s,components:{items:{Item:_,ItemBox:w,ItemPoint:b,ItemRange:S},Component:u,Panel:p,RootPanel:f,ItemSet:y,TimeAxis:g},graph:{Node:M,Edge:D,Popup:I,Groups:Groups,Images:Images},Timeline:C,Graph:O};"undefined"!=typeof n&&(n=U),"undefined"!=typeof i&&"undefined"!=typeof i.exports&&(i.exports=U),"function"==typeof t&&t(function(){return U}),"undefined"!=typeof window&&(window.vis=U)},{hammerjs:2,moment:3,mousetrap:4}],2:[function(t,e){!function(t,i){"use strict";function n(){if(!s.READY){s.event.determineEventTypes();for(var t in s.gestures)s.gestures.hasOwnProperty(t)&&s.detection.register(s.gestures[t]);s.event.onTouch(s.DOCUMENT,s.EVENT_MOVE,s.detection.detect),s.event.onTouch(s.DOCUMENT,s.EVENT_END,s.detection.detect),s.READY=!0}}var s=function(t,e){return new s.Instance(t,e||{})};s.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},s.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled,s.HAS_TOUCHEVENTS="ontouchstart"in t,s.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android/i,s.NO_MOUSEEVENTS=s.HAS_TOUCHEVENTS&&navigator.userAgent.match(s.MOBILE_REGEX),s.EVENT_TYPES={},s.DIRECTION_DOWN="down",s.DIRECTION_LEFT="left",s.DIRECTION_UP="up",s.DIRECTION_RIGHT="right",s.POINTER_MOUSE="mouse",s.POINTER_TOUCH="touch",s.POINTER_PEN="pen",s.EVENT_START="start",s.EVENT_MOVE="move",s.EVENT_END="end",s.DOCUMENT=document,s.plugins={},s.READY=!1,s.Instance=function(t,e){var i=this; return n(),this.element=t,this.enabled=!0,this.options=s.utils.extend(s.utils.extend({},s.defaults),e||{}),this.options.stop_browser_behavior&&s.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),s.event.onTouch(t,s.EVENT_START,function(t){i.enabled&&s.detection.startDetect(i,t)}),this},s.Instance.prototype={on:function(t,e){for(var i=t.split(" "),n=0;n<i.length;n++)this.element.addEventListener(i[n],e,!1);return this},off:function(t,e){for(var i=t.split(" "),n=0;n<i.length;n++)this.element.removeEventListener(i[n],e,!1);return this},trigger:function(t,e){var i=s.DOCUMENT.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e;var n=this.element;return s.utils.hasParent(e.target,n)&&(n=e.target),n.dispatchEvent(i),this},enable:function(t){return this.enabled=t,this}};var o=null,r=!1,a=!1;s.event={bindDom:function(t,e,i){for(var n=e.split(" "),s=0;s<n.length;s++)t.addEventListener(n[s],i,!1)},onTouch:function(t,e,i){var n=this;this.bindDom(t,s.EVENT_TYPES[e],function(h){var d=h.type.toLowerCase();if(!d.match(/mouse/)||!a){(d.match(/touch/)||d.match(/pointerdown/)||d.match(/mouse/)&&1===h.which)&&(r=!0),d.match(/touch|pointer/)&&(a=!0);var c=0;r&&(s.HAS_POINTEREVENTS&&e!=s.EVENT_END?c=s.PointerEvent.updatePointer(e,h):d.match(/touch/)?c=h.touches.length:a||(c=d.match(/up/)?0:1),c>0&&e==s.EVENT_END?e=s.EVENT_MOVE:c||(e=s.EVENT_END),c||null===o?o=h:h=o,i.call(s.detection,n.collectEventData(t,e,h)),s.HAS_POINTEREVENTS&&e==s.EVENT_END&&(c=s.PointerEvent.updatePointer(e,h))),c||(o=null,r=!1,a=!1,s.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=s.HAS_POINTEREVENTS?s.PointerEvent.getEvents():s.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],s.EVENT_TYPES[s.EVENT_START]=t[0],s.EVENT_TYPES[s.EVENT_MOVE]=t[1],s.EVENT_TYPES[s.EVENT_END]=t[2]},getTouchList:function(t){return s.HAS_POINTEREVENTS?s.PointerEvent.getTouchList():t.touches?t.touches:[{identifier:1,pageX:t.pageX,pageY:t.pageY,target:t.target}]},collectEventData:function(t,e,i){var n=this.getTouchList(i,e),o=s.POINTER_TOUCH;return(i.type.match(/mouse/)||s.PointerEvent.matchType(s.POINTER_MOUSE,i))&&(o=s.POINTER_MOUSE),{center:s.utils.getCenter(n),timeStamp:(new Date).getTime(),target:i.target,touches:n,eventType:e,pointerType:o,srcEvent:i,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return s.detection.stopDetect()}}}},s.PointerEvent={pointers:{},getTouchList:function(){var t=this,e=[];return Object.keys(t.pointers).sort().forEach(function(i){e.push(t.pointers[i])}),e},updatePointer:function(t,e){return t==s.EVENT_END?this.pointers={}:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e),Object.keys(this.pointers).length},matchType:function(t,e){if(!e.pointerType)return!1;var i={};return i[s.POINTER_MOUSE]=e.pointerType==e.MSPOINTER_TYPE_MOUSE||e.pointerType==s.POINTER_MOUSE,i[s.POINTER_TOUCH]=e.pointerType==e.MSPOINTER_TYPE_TOUCH||e.pointerType==s.POINTER_TOUCH,i[s.POINTER_PEN]=e.pointerType==e.MSPOINTER_TYPE_PEN||e.pointerType==s.POINTER_PEN,i[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},s.utils={extend:function(t,e,n){for(var s in e)t[s]!==i&&n||(t[s]=e[s]);return t},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){for(var e=[],i=[],n=0,s=t.length;s>n;n++)e.push(t[n].pageX),i.push(t[n].pageY);return{pageX:(Math.min.apply(Math,e)+Math.max.apply(Math,e))/2,pageY:(Math.min.apply(Math,i)+Math.max.apply(Math,i))/2}},getVelocity:function(t,e,i){return{x:Math.abs(e/t)||0,y:Math.abs(i/t)||0}},getAngle:function(t,e){var i=e.pageY-t.pageY,n=e.pageX-t.pageX;return 180*Math.atan2(i,n)/Math.PI},getDirection:function(t,e){var i=Math.abs(t.pageX-e.pageX),n=Math.abs(t.pageY-e.pageY);return i>=n?t.pageX-e.pageX>0?s.DIRECTION_LEFT:s.DIRECTION_RIGHT:t.pageY-e.pageY>0?s.DIRECTION_UP:s.DIRECTION_DOWN},getDistance:function(t,e){var i=e.pageX-t.pageX,n=e.pageY-t.pageY;return Math.sqrt(i*i+n*n)},getScale:function(t,e){return t.length>=2&&e.length>=2?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return t.length>=2&&e.length>=2?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==s.DIRECTION_UP||t==s.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(t,e){var i,n=["webkit","khtml","moz","ms","o",""];if(e&&t.style){for(var s=0;s<n.length;s++)for(var o in e)e.hasOwnProperty(o)&&(i=o,n[s]&&(i=n[s]+i.substring(0,1).toUpperCase()+i.substring(1)),t.style[i]=e[o]);"none"==e.userSelect&&(t.onselectstart=function(){return!1})}}},s.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:s.utils.extend({},e),lastEvent:!1,name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendEventData(t);for(var e=this.current.inst.options,i=0,n=this.gestures.length;n>i;i++){var o=this.gestures[i];if(!this.stopped&&e[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==s.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t}},stopDetect:function(){this.previous=s.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var e=this.current.startEvent;if(e&&(t.touches.length!=e.touches.length||t.touches===e.touches)){e.touches=[];for(var i=0,n=t.touches.length;n>i;i++)e.touches.push(s.utils.extend({},t.touches[i]))}var o=t.timeStamp-e.timeStamp,r=t.center.pageX-e.center.pageX,a=t.center.pageY-e.center.pageY,h=s.utils.getVelocity(o,r,a);return s.utils.extend(t,{deltaTime:o,deltaX:r,deltaY:a,velocityX:h.x,velocityY:h.y,distance:s.utils.getDistance(e.center,t.center),angle:s.utils.getAngle(e.center,t.center),direction:s.utils.getDirection(e.center,t.center),scale:s.utils.getScale(e.touches,t.touches),rotation:s.utils.getRotation(e.touches,t.touches),startEvent:e}),t},register:function(t){var e=t.defaults||{};return e[t.name]===i&&(e[t.name]=!0),s.utils.extend(s.defaults,e,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}),this.gestures}},s.gestures=s.gestures||{},s.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(t,e){switch(t.eventType){case s.EVENT_START:clearTimeout(this.timer),s.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==s.detection.current.name&&e.trigger("hold",t)},e.options.hold_timeout);break;case s.EVENT_MOVE:t.distance>e.options.hold_threshold&&clearTimeout(this.timer);break;case s.EVENT_END:clearTimeout(this.timer)}}},s.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,e){if(t.eventType==s.EVENT_END){var i=s.detection.previous,n=!1;if(t.deltaTime>e.options.tap_max_touchtime||t.distance>e.options.tap_max_distance)return;i&&"tap"==i.name&&t.timeStamp-i.lastEvent.timeStamp<e.options.doubletap_interval&&t.distance<e.options.doubletap_distance&&(e.trigger("doubletap",t),n=!0),(!n||e.options.tap_always)&&(s.detection.current.name="tap",e.trigger(s.detection.current.name,t))}}},s.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(t,e){if(t.eventType==s.EVENT_END){if(e.options.swipe_max_touches>0&&t.touches.length>e.options.swipe_max_touches)return;(t.velocityX>e.options.swipe_velocity||t.velocityY>e.options.swipe_velocity)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},s.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(t,e){if(s.detection.current.name!=this.name&&this.triggered)return e.trigger(this.name+"end",t),void(this.triggered=!1);if(!(e.options.drag_max_touches>0&&t.touches.length>e.options.drag_max_touches))switch(t.eventType){case s.EVENT_START:this.triggered=!1;break;case s.EVENT_MOVE:if(t.distance<e.options.drag_min_distance&&s.detection.current.name!=this.name)return;s.detection.current.name=this.name,(s.detection.current.lastEvent.drag_locked_to_axis||e.options.drag_lock_to_axis&&e.options.drag_lock_min_distance<=t.distance)&&(t.drag_locked_to_axis=!0);var i=s.detection.current.lastEvent.direction;t.drag_locked_to_axis&&i!==t.direction&&(t.direction=s.utils.isVertical(i)?t.deltaY<0?s.DIRECTION_UP:s.DIRECTION_DOWN:t.deltaX<0?s.DIRECTION_LEFT:s.DIRECTION_RIGHT),this.triggered||(e.trigger(this.name+"start",t),this.triggered=!0),e.trigger(this.name,t),e.trigger(this.name+t.direction,t),(e.options.drag_block_vertical&&s.utils.isVertical(t.direction)||e.options.drag_block_horizontal&&!s.utils.isVertical(t.direction))&&t.preventDefault();break;case s.EVENT_END:this.triggered&&e.trigger(this.name+"end",t),this.triggered=!1}}},s.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,e){if(s.detection.current.name!=this.name&&this.triggered)return e.trigger(this.name+"end",t),void(this.triggered=!1);if(!(t.touches.length<2))switch(e.options.transform_always_block&&t.preventDefault(),t.eventType){case s.EVENT_START:this.triggered=!1;break;case s.EVENT_MOVE:var i=Math.abs(1-t.scale),n=Math.abs(t.rotation);if(i<e.options.transform_min_scale&&n<e.options.transform_min_rotation)return;s.detection.current.name=this.name,this.triggered||(e.trigger(this.name+"start",t),this.triggered=!0),e.trigger(this.name,t),n>e.options.transform_min_rotation&&e.trigger("rotate",t),i>e.options.transform_min_scale&&(e.trigger("pinch",t),e.trigger("pinch"+(t.scale<1?"in":"out"),t));break;case s.EVENT_END:this.triggered&&e.trigger(this.name+"end",t),this.triggered=!1}}},s.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,e){return e.options.prevent_mouseevents&&t.pointerType==s.POINTER_MOUSE?void t.stopDetect():(e.options.prevent_default&&t.preventDefault(),void(t.eventType==s.EVENT_START&&e.trigger(this.name,t)))}},s.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==s.EVENT_END&&e.trigger(this.name,t)}},"object"==typeof e&&"object"==typeof e.exports?e.exports=s:(t.Hammer=s,"function"==typeof t.define&&t.define.amd&&t.define("hammer",[],function(){return s}))}(this)},{}],3:[function(e,i){(function(n){function s(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function o(t,e){return function(i){return p(t.call(this,i),e)}}function r(t,e){return function(i){return this.lang().ordinal(t.call(this,i),e)}}function a(){}function h(t){x(t),c(this,t)}function d(t){var e=_(t),i=e.year||0,n=e.month||0,s=e.week||0,o=e.day||0,r=e.hour||0,a=e.minute||0,h=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*h+6e4*a+36e5*r,this._days=+o+7*s,this._months=+n+12*i,this._data={},this._bubble()}function c(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function l(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&_e.hasOwnProperty(e)&&(i[e]=t[e]);return i}function u(t){return 0>t?Math.ceil(t):Math.floor(t)}function p(t,e,i){for(var n=""+Math.abs(t),s=t>=0;n.length<e;)n="0"+n;return(s?i?"+":"":"-")+n}function f(t,e,i,n){var s,o,r=e._milliseconds,a=e._days,h=e._months;r&&t._d.setTime(+t._d+r*i),(a||h)&&(s=t.minute(),o=t.hour()),a&&t.date(t.date()+a*i),h&&t.month(t.month()+h*i),r&&!n&&re.updateOffset(t),(a||h)&&(t.minute(s),t.hour(o))}function g(t){return"[object Array]"===Object.prototype.toString.call(t)}function m(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function v(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;s>n;n++)(i&&t[n]!==e[n]||!i&&b(t[n])!==b(e[n]))&&r++;return r+o}function y(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Xe[t]||Ze[e]||e}return t}function _(t){var e,i,n={};for(i in t)t.hasOwnProperty(i)&&(e=y(i),e&&(n[e]=t[i]));return n}function w(t){var e,i;if(0===t.indexOf("week"))e=7,i="day";else{if(0!==t.indexOf("month"))return;e=12,i="month"}re[t]=function(s,o){var r,a,h=re.fn._lang[t],d=[];if("number"==typeof s&&(o=s,s=n),a=function(t){var e=re().utc().set(i,t);return h.call(re.fn._lang,e,s||"")},null!=o)return a(o);for(r=0;e>r;r++)d.push(a(r));return d}}function b(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=e>=0?Math.floor(e):Math.ceil(e)),i}function S(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function E(t){return T(t)?366:365}function T(t){return t%4===0&&t%100!==0||t%400===0}function x(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ue]<0||t._a[ue]>11?ue:t._a[pe]<1||t._a[pe]>S(t._a[le],t._a[ue])?pe:t._a[fe]<0||t._a[fe]>23?fe:t._a[ge]<0||t._a[ge]>59?ge:t._a[me]<0||t._a[me]>59?me:t._a[ve]<0||t._a[ve]>999?ve:-1,t._pf._overflowDayOfYear&&(le>e||e>pe)&&(e=pe),t._pf.overflow=e)}function C(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function M(t){return t?t.toLowerCase().replace("_","-"):t}function D(t,e){return e._isUTC?re(t).zone(e._offset||0):re(t).local()}function I(t,e){return e.abbr=t,ye[t]||(ye[t]=new a),ye[t].set(e),ye[t]}function O(t){delete ye[t]}function N(t){var i,n,s,o,r=0,a=function(t){if(!ye[t]&&we)try{e("./lang/"+t)}catch(i){}return ye[t]};if(!t)return re.fn._lang;if(!g(t)){if(n=a(t))return n;t=[t]}for(;r<t.length;){for(o=M(t[r]).split("-"),i=o.length,s=M(t[r+1]),s=s?s.split("-"):null;i>0;){if(n=a(o.slice(0,i).join("-")))return n;if(s&&s.length>=i&&v(o,s,!0)>=i-1)break;i--}r++}return re.fn._lang}function L(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function A(t){var e,i,n=t.match(Te);for(e=0,i=n.length;i>e;e++)n[e]=Je[n[e]]?Je[n[e]]:L(n[e]);return function(s){var o="";for(e=0;i>e;e++)o+=n[e]instanceof Function?n[e].call(s,t):n[e];return o}}function k(t,e){return t.isValid()?(e=z(e,t.lang()),Ke[e]||(Ke[e]=A(e)),Ke[e](t)):t.lang().invalidDate()}function z(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(xe.lastIndex=0;n>=0&&xe.test(t);)t=t.replace(xe,i),xe.lastIndex=0,n-=1;return t}function P(t,e){var i,n=e._strict;switch(t){case"DDDD":return Fe;case"YYYY":case"GGGG":case"gggg":return n?Ye:De;case"Y":case"G":case"g":return He;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?Re:Ie;case"S":if(n)return ze;case"SS":if(n)return Pe;case"SSS":if(n)return Fe;case"DDD":return Me;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ne;case"a":case"A":return N(e._l)._meridiemParse;case"X":return ke;case"Z":case"ZZ":return Le;case"T":return Ae;case"SSSS":return Oe;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?Pe:Ce;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ce;default:return i=new RegExp(V(U(t.replace("\\","")),"i"))}}function F(t){t=t||"";var e=t.match(Le)||[],i=e[e.length-1]||[],n=(i+"").match(Ge)||["-",0,0],s=+(60*n[1])+b(n[2]);return"+"===n[0]?-s:s}function Y(t,e,i){var n,s=i._a;switch(t){case"M":case"MM":null!=e&&(s[ue]=b(e)-1);break;case"MMM":case"MMMM":n=N(i._l).monthsParse(e),null!=n?s[ue]=n:i._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[pe]=b(e));break;case"DDD":case"DDDD":null!=e&&(i._dayOfYear=b(e));break;case"YY":s[le]=b(e)+(b(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":s[le]=b(e);break;case"a":case"A":i._isPm=N(i._l).isPM(e);break;case"H":case"HH":case"h":case"hh":s[fe]=b(e);break;case"m":case"mm":s[ge]=b(e);break;case"s":case"ss":s[me]=b(e);break;case"S":case"SS":case"SSS":case"SSSS":s[ve]=b(1e3*("0."+e));break;case"X":i._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":i._useUTC=!0,i._tzm=F(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(i._w=i._w||{},i._w[t]=e)}}function R(t){var e,i,n,s,o,r,a,h,d,c,l=[];if(!t._d){for(n=W(t),t._w&&null==t._a[pe]&&null==t._a[ue]&&(o=function(e){var i=parseInt(e,10);return e?e.length<3?i>68?1900+i:2e3+i:i:null==t._a[le]?re().weekYear():t._a[le]},r=t._w,null!=r.GG||null!=r.W||null!=r.E?a=te(o(r.GG),r.W||1,r.E,4,1):(h=N(t._l),d=null!=r.d?K(r.d,h):null!=r.e?parseInt(r.e,10)+h._week.dow:0,c=parseInt(r.w,10)||1,null!=r.d&&d<h._week.dow&&c++,a=te(o(r.gg),c,d,h._week.doy,h._week.dow)),t._a[le]=a.year,t._dayOfYear=a.dayOfYear),t._dayOfYear&&(s=null==t._a[le]?n[le]:t._a[le],t._dayOfYear>E(s)&&(t._pf._overflowDayOfYear=!0),i=Z(s,0,t._dayOfYear),t._a[ue]=i.getUTCMonth(),t._a[pe]=i.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=l[e]=n[e];for(;7>e;e++)t._a[e]=l[e]=null==t._a[e]?2===e?1:0:t._a[e];l[fe]+=b((t._tzm||0)/60),l[ge]+=b((t._tzm||0)%60),t._d=(t._useUTC?Z:X).apply(null,l)}}function H(t){var e;t._d||(e=_(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],R(t))}function W(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function j(t){t._a=[],t._pf.empty=!0;var e,i,n,s,o,r=N(t._l),a=""+t._i,h=a.length,d=0;for(n=z(t._f,r).match(Te)||[],e=0;e<n.length;e++)s=n[e],i=(a.match(P(s,t))||[])[0],i&&(o=a.substr(0,a.indexOf(i)),o.length>0&&t._pf.unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),d+=i.length),Je[s]?(i?t._pf.empty=!1:t._pf.unusedTokens.push(s),Y(s,i,t)):t._strict&&!i&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=h-d,a.length>0&&t._pf.unusedInput.push(a),t._isPm&&t._a[fe]<12&&(t._a[fe]+=12),t._isPm===!1&&12===t._a[fe]&&(t._a[fe]=0),R(t),x(t)}function U(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})}function V(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function G(t){var e,i,n,o,r;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(0/0));for(o=0;o<t._f.length;o++)r=0,e=c({},t),e._pf=s(),e._f=t._f[o],j(e),C(e)&&(r+=e._pf.charsLeftOver,r+=10*e._pf.unusedTokens.length,e._pf.score=r,(null==n||n>r)&&(n=r,i=e));c(t,i||e)}function B(t){var e,i,n=t._i,s=We.exec(n);if(s){for(t._pf.iso=!0,e=0,i=Ue.length;i>e;e++)if(Ue[e][1].exec(n)){t._f=Ue[e][0]+(s[6]||" ");break}for(e=0,i=Ve.length;i>e;e++)if(Ve[e][1].exec(n)){t._f+=Ve[e][0];break}n.match(Le)&&(t._f+="Z"),j(t)}else t._d=new Date(n)}function q(t){var e=t._i,i=be.exec(e);e===n?t._d=new Date:i?t._d=new Date(+i[1]):"string"==typeof e?B(t):g(e)?(t._a=e.slice(0),R(t)):m(e)?t._d=new Date(+e):"object"==typeof e?H(t):t._d=new Date(e)}function X(t,e,i,n,s,o,r){var a=new Date(t,e,i,n,s,o,r);return 1970>t&&a.setFullYear(t),a}function Z(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function K(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function $(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}function Q(t,e,i){var n=ce(Math.abs(t)/1e3),s=ce(n/60),o=ce(s/60),r=ce(o/24),a=ce(r/365),h=45>n&&["s",n]||1===s&&["m"]||45>s&&["mm",s]||1===o&&["h"]||22>o&&["hh",o]||1===r&&["d"]||25>=r&&["dd",r]||45>=r&&["M"]||345>r&&["MM",ce(r/30)]||1===a&&["y"]||["yy",a];return h[2]=e,h[3]=t>0,h[4]=i,$.apply({},h)}function J(t,e,i){var n,s=i-e,o=i-t.day();return o>s&&(o-=7),s-7>o&&(o+=7),n=re(t).add("d",o),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function te(t,e,i,n,s){var o,r,a=Z(t,0,1).getUTCDay();return i=null!=i?i:s,o=s-a+(a>n?7:0)-(s>a?7:0),r=7*(e-1)+(i-s)+o+1,{year:r>0?t:t-1,dayOfYear:r>0?r:E(t-1)+r}}function ee(t){var e=t._i,i=t._f;return null===e?re.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=N().preparse(e)),re.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):i?g(i)?G(t):j(t):q(t),new h(t))}function ie(t,e){re.fn[t]=re.fn[t+"s"]=function(t){var i=this._isUTC?"UTC":"";return null!=t?(this._d["set"+i+e](t),re.updateOffset(this),this):this._d["get"+i+e]()}}function ne(t){re.duration.fn[t]=function(){return this._data[t]}}function se(t,e){re.duration.fn["as"+t]=function(){return+this/e}}function oe(t){var e=!1,i=re;"undefined"==typeof ender&&(t?(de.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),i.apply(null,arguments)},c(de.moment,i)):de.moment=re)}for(var re,ae,he="2.5.1",de=this,ce=Math.round,le=0,ue=1,pe=2,fe=3,ge=4,me=5,ve=6,ye={},_e={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},we="undefined"!=typeof i&&i.exports&&"undefined"!=typeof e,be=/^\/?Date\((\-?\d+)/i,Se=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ee=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Te=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,xe=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Ce=/\d\d?/,Me=/\d{1,3}/,De=/\d{1,4}/,Ie=/[+\-]?\d{1,6}/,Oe=/\d+/,Ne=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Le=/Z|[\+\-]\d\d:?\d\d/gi,Ae=/T/i,ke=/[\+\-]?\d+(\.\d{1,3})?/,ze=/\d/,Pe=/\d\d/,Fe=/\d{3}/,Ye=/\d{4}/,Re=/[+-]?\d{6}/,He=/[+-]?\d+/,We=/^\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)?)?$/,je="YYYY-MM-DDTHH:mm:ssZ",Ue=[["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}/]],Ve=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ge=/([\+\-]|\d\d)/gi,Be="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),qe={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Xe={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Ze={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Ke={},$e="DDD w W M D d".split(" "),Qe="M D H h m s w W".split(" "),Je={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+p(Math.abs(t),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().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 b(this.milliseconds()/100)},SS:function(){return p(b(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(b(t/60),2)+":"+p(b(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(b(t/60),2)+p(b(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ti=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];$e.length;)ae=$e.pop(),Je[ae+"o"]=r(Je[ae],ae);for(;Qe.length;)ae=Qe.pop(),Je[ae+ae]=o(Je[ae],2);for(Je.DDDD=o(Je.DDD,3),c(a.prototype,{set:function(t){var e,i;for(i in t)e=t[i],"function"==typeof e?this[i]=e:this["_"+i]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,i,n;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(i=re.utc([2e3,e]),n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[e]=new RegExp(n.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,i,n;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(i=re([2e3,1]).day(e),n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[e]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_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(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,i){return t>11?i?"pm":"PM":i?"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(t,e){var i=this._calendar[t];return"function"==typeof i?i.apply(e):i},_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(t,e,i,n){var s=this._relativeTime[i];return"function"==typeof s?s(t,e,i,n):s.replace(/%d/i,t)},pastFuture:function(t,e){var i=this._relativeTime[t>0?"future":"past"];return"function"==typeof i?i(e):i.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return J(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),re=function(t,e,i,o){var r;return"boolean"==typeof i&&(o=i,i=n),r={},r._isAMomentObject=!0,r._i=t,r._f=e,r._l=i,r._strict=o,r._isUTC=!1,r._pf=s(),ee(r)},re.utc=function(t,e,i,o){var r;return"boolean"==typeof i&&(o=i,i=n),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=i,r._i=t,r._f=e,r._strict=o,r._pf=s(),ee(r).utc()},re.unix=function(t){return re(1e3*t)},re.duration=function(t,e){var i,n,s,o=t,r=null;return re.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=Se.exec(t))?(i="-"===r[1]?-1:1,o={y:0,d:b(r[pe])*i,h:b(r[fe])*i,m:b(r[ge])*i,s:b(r[me])*i,ms:b(r[ve])*i}):(r=Ee.exec(t))&&(i="-"===r[1]?-1:1,s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*i},o={y:s(r[2]),M:s(r[3]),d:s(r[4]),h:s(r[5]),m:s(r[6]),s:s(r[7]),w:s(r[8])}),n=new d(o),re.isDuration(t)&&t.hasOwnProperty("_lang")&&(n._lang=t._lang),n},re.version=he,re.defaultFormat=je,re.updateOffset=function(){},re.lang=function(t,e){var i;return t?(e?I(M(t),e):null===e?(O(t),t="en"):ye[t]||N(t),i=re.duration.fn._lang=re.fn._lang=N(t),i._abbr):re.fn._lang._abbr},re.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),N(t)},re.isMoment=function(t){return t instanceof h||null!=t&&t.hasOwnProperty("_isAMomentObject")},re.isDuration=function(t){return t instanceof d},ae=ti.length-1;ae>=0;--ae)w(ti[ae]);for(re.normalizeUnits=function(t){return y(t)},re.invalid=function(t){var e=re.utc(0/0);return null!=t?c(e._pf,t):e._pf.userInvalidated=!0,e},re.parseZone=function(t){return re(t).parseZone()},c(re.fn=h.prototype,{clone:function(){return re(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=re(this).utc();return 0<t.year()&&t.year()<=9999?k(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):k(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return C(this)},isDSTShifted:function(){return this._a?this.isValid()&&v(this._a,(this._isUTC?re.utc(this._a):re(this._a)).toArray())>0:!1},parsingFlags:function(){return c({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=k(this,t||re.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var i;return i="string"==typeof t?re.duration(+e,t):re.duration(t,e),f(this,i,1),this},subtract:function(t,e){var i;return i="string"==typeof t?re.duration(+e,t):re.duration(t,e),f(this,i,-1),this},diff:function(t,e,i){var n,s,o=D(t,this),r=6e4*(this.zone()-o.zone());return e=y(e),"year"===e||"month"===e?(n=432e5*(this.daysInMonth()+o.daysInMonth()),s=12*(this.year()-o.year())+(this.month()-o.month()),s+=(this-re(this).startOf("month")-(o-re(o).startOf("month")))/n,s-=6e4*(this.zone()-re(this).startOf("month").zone()-(o.zone()-re(o).startOf("month").zone()))/n,"year"===e&&(s/=12)):(n=this-o,s="second"===e?n/1e3:"minute"===e?n/6e4:"hour"===e?n/36e5:"day"===e?(n-r)/864e5:"week"===e?(n-r)/6048e5:n),i?s:u(s)},from:function(t,e){return re.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(re(),t)},calendar:function(){var t=D(re(),this).startOf("day"),e=this.diff(t,"days",!0),i=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(i,this))},isLeapYear:function(){return T(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=K(t,this.lang()),this.add({d:t-e})):e },month:function(t){var e,i=this._isUTC?"UTC":"";return null!=t?"string"==typeof t&&(t=this.lang().monthsParse(t),"number"!=typeof t)?this:(e=this.date(),this.date(1),this._d["set"+i+"Month"](t),this.date(Math.min(e,this.daysInMonth())),re.updateOffset(this),this):this._d["get"+i+"Month"]()},startOf:function(t){switch(t=y(t)){case"year":this.month(0);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"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),this},endOf:function(t){return t=y(t),this.startOf(t).add("isoWeek"===t?"week":t,1).subtract("ms",1)},isAfter:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)>+re(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+re(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+D(t,this).startOf(e)},min:function(t){return t=re.apply(null,arguments),this>t?this:t},max:function(t){return t=re.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=F(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&f(this,re.duration(e-t,"m"),1,!0),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(t){return t=t?re(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return S(this.year(),this.month())},dayOfYear:function(t){var e=ce((re(this).startOf("day")-re(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=J(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=J(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=J(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=y(t),this[t]()},set:function(t,e){return t=y(t),"function"==typeof this[t]&&this[t](e),this},lang:function(t){return t===n?this._lang:(this._lang=N(t),this)}}),ae=0;ae<Be.length;ae++)ie(Be[ae].toLowerCase().replace(/s$/,""),Be[ae]);ie("year","FullYear"),re.fn.days=re.fn.day,re.fn.months=re.fn.month,re.fn.weeks=re.fn.week,re.fn.isoWeeks=re.fn.isoWeek,re.fn.toJSON=re.fn.toISOString,c(re.duration.fn=d.prototype,{_bubble:function(){var t,e,i,n,s=this._milliseconds,o=this._days,r=this._months,a=this._data;a.milliseconds=s%1e3,t=u(s/1e3),a.seconds=t%60,e=u(t/60),a.minutes=e%60,i=u(e/60),a.hours=i%24,o+=u(i/24),a.days=o%30,r+=u(o/30),a.months=r%12,n=u(r/12),a.years=n},weeks:function(){return u(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)},humanize:function(t){var e=+this,i=Q(e,!t,this.lang());return t&&(i=this.lang().pastFuture(e,i)),this.lang().postformat(i)},add:function(t,e){var i=re.duration(t,e);return this._milliseconds+=i._milliseconds,this._days+=i._days,this._months+=i._months,this._bubble(),this},subtract:function(t,e){var i=re.duration(t,e);return this._milliseconds-=i._milliseconds,this._days-=i._days,this._months-=i._months,this._bubble(),this},get:function(t){return t=y(t),this[t.toLowerCase()+"s"]()},as:function(t){return t=y(t),this["as"+t.charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:re.fn.lang,toIsoString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),i=Math.abs(this.days()),n=Math.abs(this.hours()),s=Math.abs(this.minutes()),o=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(i?i+"D":"")+(n||s||o?"T":"")+(n?n+"H":"")+(s?s+"M":"")+(o?o+"S":""):"P0D"}});for(ae in qe)qe.hasOwnProperty(ae)&&(se(ae,qe[ae]),ne(ae.toLowerCase()));se("Weeks",6048e5),re.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},re.lang("en",{ordinal:function(t){var e=t%10,i=1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),we?(i.exports=re,oe(!0)):"function"==typeof t&&t.amd?t("moment",function(t,e,i){return i.config&&i.config()&&i.config().noGlobal!==!0&&oe(i.config().noGlobal===n),re}):oe()}).call(this)},{}],4:[function(t,e){function i(t,e,i){return t.addEventListener?t.addEventListener(e,i,!1):void t.attachEvent("on"+e,i)}function n(t){return"keypress"==t.type?String.fromCharCode(t.which):b[t.which]?b[t.which]:S[t.which]?S[t.which]:String.fromCharCode(t.which).toLowerCase()}function s(t){var e=t.target||t.srcElement,i=e.tagName;return(" "+e.className+" ").indexOf(" mousetrap ")>-1?!1:"INPUT"==i||"SELECT"==i||"TEXTAREA"==i||e.contentEditable&&"true"==e.contentEditable}function o(t,e){return t.sort().join(",")===e.sort().join(",")}function r(t){t=t||{};var e,i=!1;for(e in M)t[e]?i=!0:M[e]=0;i||(I=!1)}function a(t,e,i,n,s){var r,a,h=[];if(!x[t])return[];for("keyup"==i&&u(t)&&(e=[t]),r=0;r<x[t].length;++r)a=x[t][r],a.seq&&M[a.seq]!=a.level||i==a.action&&("keypress"==i||o(e,a.modifiers))&&(n&&a.combo==s&&x[t].splice(r,1),h.push(a));return h}function h(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function d(t,e){t(e)===!1&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.returnValue=!1,e.cancelBubble=!0)}function c(t,e){if(!s(e)){var i,n=a(t,h(e),e.type),o={},c=!1;for(i=0;i<n.length;++i)n[i].seq?(c=!0,o[n[i].seq]=1,d(n[i].callback,e)):c||I||d(n[i].callback,e);e.type!=I||u(t)||r(o)}}function l(t){t.which="number"==typeof t.which?t.which:t.keyCode;var e=n(t);if(e)return"keyup"==t.type&&D==e?void(D=!1):void c(e,t)}function u(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function p(){clearTimeout(w),w=setTimeout(r,1e3)}function f(){if(!_){_={};for(var t in b)t>95&&112>t||b.hasOwnProperty(t)&&(_[b[t]]=t)}return _}function g(t,e,i){return i||(i=f()[t]?"keydown":"keypress"),"keypress"==i&&e.length&&(i="keydown"),i}function m(t,e,i,s){M[t]=0,s||(s=g(e[0],[]));var o,a=function(){I=s,++M[t],p()},h=function(t){d(i,t),"keyup"!==s&&(D=n(t)),setTimeout(r,10)};for(o=0;o<e.length;++o)v(e[o],o<e.length-1?a:h,s,t,o)}function v(t,e,i,n,s){t=t.replace(/\s+/g," ");var o,r,h,d=t.split(" "),c=[];if(d.length>1)return m(t,d,e,i);for(h="+"===t?["+"]:t.split("+"),o=0;o<h.length;++o)r=h[o],T[r]&&(r=T[r]),i&&"keypress"!=i&&E[r]&&(r=E[r],c.push("shift")),u(r)&&c.push(r);i=g(r,c,i),x[r]||(x[r]=[]),a(r,c,i,!n,t),x[r][n?"unshift":"push"]({callback:e,modifiers:c,action:i,seq:n,level:s,combo:t})}function y(t,e,i){for(var n=0;n<t.length;++n)v(t[n],e,i)}for(var _,w,b={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},S={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},T={option:"alt",command:"meta","return":"enter",escape:"esc"},x={},C={},M={},D=!1,I=!1,O=1;20>O;++O)b[111+O]="f"+O;for(O=0;9>=O;++O)b[O+96]=O;i(document,"keypress",l),i(document,"keydown",l),i(document,"keyup",l);var N={bind:function(t,e,i){return y(t instanceof Array?t:[t],e,i),C[t+":"+i]=e,this},unbind:function(t,e){return C[t+":"+e]&&(delete C[t+":"+e],this.bind(t,function(){},e)),this},trigger:function(t,e){return C[t+":"+e](),this},reset:function(){return x={},C={},this}};e.exports=N},{}]},{},[1])(1)});
carlsednaoui/cdnjs
ajax/libs/vis/0.4.0/vis.min.js
JavaScript
mit
201,419
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.faker=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ /* this index.js file is used for including the faker library as a CommonJS module, instead of a bundle you can include the faker library into your existing node.js application by requiring the entire /faker directory var faker = require(./faker); var randomName = faker.name.findName(); you can also simply include the "faker.js" file which is the auto-generated bundled version of the faker library var faker = require(./customAppPath/faker); var randomName = faker.name.findName(); if you plan on modifying the faker library you should be performing your changes in the /lib/ directory */ exports.name = require('./lib/name'); exports.address = require('./lib/address'); exports.phone = require('./lib/phone_number'); exports.internet = require('./lib/internet'); exports.company = require('./lib/company'); exports.image = require('./lib/image'); exports.lorem = require('./lib/lorem'); exports.helpers = require('./lib/helpers'); exports.date = require('./lib/date'); exports.random = require('./lib/random'); exports.finance = require('./lib/finance'); exports.hacker = require('./lib/hacker'); var locales = exports.locales = require('./lib/locales'); // default locale exports.locale = "en"; // in case a locale is missing a definition, fallback to this locale exports.localeFallback = "en"; exports.definitions = {}; var _definitions = { "name": ["first_name", "last_name", "prefix", "suffix"], "address": ["city_prefix", "city_suffix", "street_suffix", "county", "country", "state", "state_abbr"], "company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb"], "lorem": ["words"], "hacker": ["abbreviation", "adjective", "noun", "verb", "ingverb"], "phone_number": ["formats"], "finance": ["account_type", "transaction_type", "currency"], "internet": ["avatar_uri", "domain_suffix", "free_email", "password"] }; // Create a Getter for all definitions.foo.bar propetries Object.keys(_definitions).forEach(function(d){ if (typeof exports.definitions[d] === "undefined") { exports.definitions[d] = {}; } _definitions[d].forEach(function(p){ Object.defineProperty(exports.definitions[d], p, { get: function () { if (typeof locales[exports.locale][d] === "undefined" || typeof locales[exports.locale][d][p] === "undefined") { // certain localization sets contain less data then others. // in the case of a missing defintion, use the default localeFallback to substitute the missing set data return locales[exports.localeFallback][d][p]; } else { // return localized data return locales[exports.locale][d][p]; } } }); }); }); },{"./lib/address":2,"./lib/company":3,"./lib/date":4,"./lib/finance":5,"./lib/hacker":6,"./lib/helpers":7,"./lib/image":8,"./lib/internet":9,"./lib/locales":10,"./lib/lorem":38,"./lib/name":39,"./lib/phone_number":40,"./lib/random":41}],2:[function(require,module,exports){ var Helpers = require('./helpers'); var faker = require('../index'); var address = { zipCode: function () { return Helpers.replaceSymbolWithNumber(faker.random.array_element(["#####", '#####-####'])); }, city: function () { var result; switch (faker.random.number(3)) { case 0: result = faker.address.cityPrefix() + " " + faker.name.firstName() + faker.address.citySuffix(); break; case 1: result = faker.address.cityPrefix() + " " + faker.name.firstName(); break; case 2: result = faker.name.firstName() + faker.address.citySuffix(); break; case 3: result = faker.name.lastName() + faker.address.citySuffix(); break; } return result; }, cityPrefix: function () { return faker.random.array_element(faker.definitions.address.city_prefix); }, citySuffix: function () { return faker.random.array_element(faker.definitions.address.city_suffix); }, streetName: function () { var result; switch (faker.random.number(1)) { case 0: result = faker.name.lastName() + " " + faker.address.streetSuffix(); break; case 1: result = faker.name.firstName() + " " + faker.address.streetSuffix(); break; } return result; }, // // TODO: change all these methods that accept a boolean to instead accept an options hash. // streetAddress: function (useFullAddress) { if (useFullAddress === undefined) { useFullAddress = false; } var address = ""; switch (faker.random.number(2)) { case 0: address = Helpers.replaceSymbolWithNumber("#####") + " " + faker.address.streetName(); break; case 1: address = Helpers.replaceSymbolWithNumber("####") + " " + faker.address.streetName(); break; case 2: address = Helpers.replaceSymbolWithNumber("###") + " " + faker.address.streetName(); break; } return useFullAddress ? (address + " " + faker.address.secondaryAddress()) : address; }, streetSuffix: function () { return faker.random.array_element(faker.definitions.address.street_suffix); }, secondaryAddress: function () { return Helpers.replaceSymbolWithNumber(faker.random.array_element( [ 'Apt. ###', 'Suite ###' ] )); }, county: function () { return faker.random.array_element(faker.definitions.address.county); }, country: function () { return faker.random.array_element(faker.definitions.address.country); }, state: function (useAbbr) { return faker.random.array_element(faker.definitions.address.state); }, stateAbbr: function () { return faker.random.array_element(faker.definitions.address.state_abbr); }, latitude: function () { return (faker.random.number(180 * 10000) / 10000.0 - 90.0).toFixed(4); }, longitude: function () { return (faker.random.number(360 * 10000) / 10000.0 - 180.0).toFixed(4); } }; module.exports = address; },{"../index":1,"./helpers":7}],3:[function(require,module,exports){ var faker = require('../index'); var company = { suffixes: function () { return ["Inc", "and Sons", "LLC", "Group", "and Daughters"]; }, companyName: function (format) { switch ((format ? format : faker.random.number(2))) { case 0: return faker.name.lastName() + " " + faker.company.companySuffix(); case 1: return faker.name.lastName() + "-" + faker.name.lastName(); case 2: return faker.name.lastName() + ", " + faker.name.lastName() + " and " + faker.name.lastName(); } }, companySuffix: function () { return faker.random.array_element(faker.company.suffixes()); }, catchPhrase: function () { return faker.company.catchPhraseAdjective() + " " + faker.company.catchPhraseDescriptor() + " " + faker.company.catchPhraseNoun(); }, bs: function () { return faker.company.bsAdjective() + " " + faker.company.bsBuzz() + " " + faker.company.bsNoun(); }, catchPhraseAdjective: function () { return faker.random.array_element(faker.definitions.company.adjective); }, catchPhraseDescriptor: function () { return faker.random.array_element(faker.definitions.company.descriptor); }, catchPhraseNoun: function () { return faker.random.array_element(faker.definitions.company.noun); }, bsAdjective: function () { return faker.random.array_element(faker.definitions.company.bs_adjective); }, bsBuzz: function () { return faker.random.array_element(faker.definitions.company.bs_verb); }, bsNoun: function () { return faker.random.array_element(faker.definitions.company.bs_noun); } }; module.exports = company; },{"../index":1}],4:[function(require,module,exports){ var faker = require("../index"); var date = { past: function (years, refDate) { var date = (refDate) ? new Date(Date.parse(refDate)) : new Date(); var past = date.getTime(); past -= faker.random.number(years) * 365 * 24 * 3600 * 1000; // some time from now to N years ago, in milliseconds date.setTime(past); return date; }, future: function (years, refDate) { var date = (refDate) ? new Date(Date.parse(refDate)) : new Date(); var future = date.getTime(); future += faker.random.number(years) * 365 * 3600 * 1000 + 1000; // some time from now to N years later, in milliseconds date.setTime(future); return date; }, between: function (from, to) { var fromMilli = Date.parse(from); var dateOffset = faker.random.number(Date.parse(to) - fromMilli); var newDate = new Date(fromMilli + dateOffset); return newDate; }, recent: function (days) { var date = new Date(); var future = date.getTime(); future -= faker.random.number(days) * 24 * 60 * 60 * 1000; // some time from now to N days ago, in milliseconds date.setTime(future); return date; } }; module.exports = date; },{"../index":1}],5:[function(require,module,exports){ var Helpers = require('./helpers'), faker = require('../index'); var finance = { account: function (length) { length = length || 8; var template = ''; for (var i = 0; i < length; i++) { template = template + '#'; } length = null; return Helpers.replaceSymbolWithNumber(template); }, accountName: function () { return [Helpers.randomize(faker.definitions.finance.account_type), 'Account'].join(' '); }, mask: function (length, parens, elipsis) { //set defaults length = (length == 0 || !length || typeof length == 'undefined') ? 4 : length; parens = (parens === null) ? true : parens; elipsis = (elipsis === null) ? true : elipsis; //create a template for length var template = ''; for (var i = 0; i < length; i++) { template = template + '#'; } //prefix with elipsis template = (elipsis) ? ['...', template].join('') : template; template = (parens) ? ['(', template, ')'].join('') : template; //generate random numbers template = Helpers.replaceSymbolWithNumber(template); return template; }, //min and max take in minimum and maximum amounts, dec is the decimal place you want rounded to, symbol is $, €, £, etc //NOTE: this returns a string representation of the value, if you want a number use parseFloat and no symbol amount: function (min, max, dec, symbol) { min = min || 0; max = max || 1000; dec = dec || 2; symbol = symbol || ''; return symbol + (Math.round((Math.random() * (max - min) + min) * Math.pow(10, dec)) / Math.pow(10, dec)).toFixed(dec); }, transactionType: function () { return Helpers.randomize(faker.definitions.finance.transaction_type); }, currencyCode: function () { return faker.random.object_element(faker.definitions.finance.currency)['code']; }, currencyName: function () { return faker.random.object_element(faker.definitions.finance.currency, 'key'); }, currencySymbol: function () { var symbol; while (!symbol) { symbol = faker.random.object_element(faker.definitions.finance.currency)['symbol']; } return symbol; } }; module.exports = finance; },{"../index":1,"./helpers":7}],6:[function(require,module,exports){ var faker = require('../index'); var hacker = { abbreviation : function () { return faker.random.array_element(faker.definitions.hacker.abbreviation); }, adjective : function () { return faker.random.array_element(faker.definitions.hacker.adjective); }, noun : function () { return faker.random.array_element(faker.definitions.hacker.noun); }, verb : function () { return faker.random.array_element(faker.definitions.hacker.verb); }, ingverb : function () { return faker.random.array_element(faker.definitions.hacker.ingverb); }, phrase : function () { var data = { abbreviation: hacker.abbreviation(), adjective: hacker.adjective(), ingverb: hacker.ingverb(), noun: hacker.noun(), verb: hacker.verb() }; var phrase = faker.random.array_element([ "If we {{verb}} the {{noun}}, we can get to the {{abbreviation}} {{noun}} through the {{adjective}} {{abbreviation}} {{noun}}!", "We need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!", "Try to {{verb}} the {{abbreviation}} {{noun}}, maybe it will {{verb}} the {{adjective}} {{noun}}!", "You can't {{verb}} the {{noun}} without {{ingverb}} the {{adjective}} {{abbreviation}} {{noun}}!", "Use the {{adjective}} {{abbreviation}} {{noun}}, then you can {{verb}} the {{adjective}} {{noun}}!", "The {{abbreviation}} {{noun}} is down, {{verb}} the {{adjective}} {{noun}} so we can {{verb}} the {{abbreviation}} {{noun}}!", "{{ingverb}} the {{noun}} won't do anything, we need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!", "I'll {{verb}} the {{adjective}} {{abbreviation}} {{noun}}, that should {{noun}} the {{abbreviation}} {{noun}}!" ]); return faker.helpers.mustache(phrase, data); }, }; module.exports = hacker; },{"../index":1}],7:[function(require,module,exports){ var faker = require('../index'); // backword-compatibility exports.randomNumber = function (range) { return faker.random.number(range); }; // backword-compatibility exports.randomize = function (array) { array = array || ["a", "b", "c"]; return faker.random.array_element(array); }; // slugifies string exports.slugify = function (string) { string = string || ""; return string.replace(/ /g, '-').replace(/[^\w\.\-]+/g, ''); }; // parses string for a symbol and replace it with a random number from 1-10 exports.replaceSymbolWithNumber = function (string, symbol) { string = string || ""; // default symbol is '#' if (symbol === undefined) { symbol = '#'; } var str = ''; for (var i = 0; i < string.length; i++) { if (string.charAt(i) == symbol) { str += faker.random.number(9); } else { str += string.charAt(i); } } return str; }; // takes an array and returns it randomized exports.shuffle = function (o) { o = o || ["a", "b", "c"]; for (var j, x, i = o.length; i; j = faker.random.number(i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; exports.mustache = function (str, data) { for(var p in data) { var re = new RegExp('{{' + p + '}}', 'g') str = str.replace(re, data[p]); } return str; }; exports.createCard = function () { return { "name": faker.name.findName(), "username": faker.internet.userName(), "email": faker.internet.email(), "address": { "streetA": faker.address.streetName(), "streetB": faker.address.streetAddress(), "streetC": faker.address.streetAddress(true), "streetD": faker.address.secondaryAddress(), "city": faker.address.city(), "state": faker.address.state(), "country": faker.address.country(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "phone": faker.phone.phoneNumber(), "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() }, "posts": [ { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() }, { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() }, { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() } ], "accountHistory": [faker.helpers.createTransaction(), faker.helpers.createTransaction(), faker.helpers.createTransaction()] }; }; exports.contextualCard = function () { var name = faker.name.firstName(), userName = faker.internet.userName(name); return { "name": name, "username": userName, "avatar": faker.internet.avatar(), "email": faker.internet.email(userName), "dob": faker.date.past(50, new Date("Sat Sep 20 1992 21:35:02 GMT+0200 (CEST)")), "phone": faker.phone.phoneNumber(), "address": { "street": faker.address.streetName(true), "suite": faker.address.secondaryAddress(), "city": faker.address.city(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() } }; }; exports.userCard = function () { return { "name": faker.name.findName(), "username": faker.internet.userName(), "email": faker.internet.email(), "address": { "street": faker.address.streetName(true), "suite": faker.address.secondaryAddress(), "city": faker.address.city(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "phone": faker.phone.phoneNumber(), "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() } }; }; exports.createTransaction = function(){ return { "amount" : faker.finance.amount(), "date" : new Date(2012, 1, 2), //TODO: add a ranged date method "business": faker.company.companyName(), "name": [faker.finance.accountName(), faker.finance.mask()].join(' '), "type" : exports.randomize(faker.definitions.finance.transaction_type), "account" : faker.finance.account() }; }; /* String.prototype.capitalize = function () { //v1.0 return this.replace(/\w+/g, function (a) { return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase(); }); }; */ },{"../index":1}],8:[function(require,module,exports){ var faker = require('../index'); var image = { image: function () { var categories = ["abstract", "animals", "business", "cats", "city", "food", "nightlife", "fashion", "people", "nature", "sports", "technics", "transport"]; return image[faker.random.array_element(categories)](); }, avatar: function () { return faker.internet.avatar(); }, imageUrl: function (width, height, category) { var width = width || 640; var height = height || 480; var url ='http://lorempixel.com/' + width + '/' + height; if (typeof category !== 'undefined') { url += '/' + category; } return url; }, abstract: function (width, height) { return faker.image.imageUrl(width, height, 'abstract'); }, animals: function (width, height) { return faker.image.imageUrl(width, height, 'animals'); }, business: function (width, height) { return faker.image.imageUrl(width, height, 'business'); }, cats: function (width, height) { return faker.image.imageUrl(width, height, 'cats'); }, city: function (width, height) { return faker.image.imageUrl(width, height, 'city'); }, food: function (width, height) { return faker.image.imageUrl(width, height, 'food'); }, nightlife: function (width, height) { return faker.image.imageUrl(width, height, 'nightlife'); }, fashion: function (width, height) { return faker.image.imageUrl(width, height, 'fashion'); }, people: function (width, height) { return faker.image.imageUrl(width, height, 'people'); }, nature: function (width, height) { return faker.image.imageUrl(width, height, 'nature'); }, sports: function (width, height) { return faker.image.imageUrl(width, height, 'sports'); }, technics: function (width, height) { return faker.image.imageUrl(width, height, 'technics'); }, transport: function (width, height) { return faker.image.imageUrl(width, height, 'transport'); } }; module.exports = image; },{"../index":1}],9:[function(require,module,exports){ var faker = require('../index'), password_generator = require('../vendor/password-generator.js'), random_ua = require('../vendor/user-agent'); var internet = { avatar: function () { return faker.random.array_element(faker.definitions.internet.avatar_uri); }, email: function (firstName, lastName, provider) { provider = provider || faker.random.array_element(faker.definitions.internet.free_email); return faker.helpers.slugify(faker.internet.userName(firstName, lastName)) + "@" + provider; }, userName: function (firstName, lastName) { var result; firstName = firstName || faker.name.firstName(); lastName = lastName || faker.name.lastName(); switch (faker.random.number(2)) { case 0: result = firstName + faker.random.number(99); break; case 1: result = firstName + faker.random.array_element([".", "_"]) + lastName; break; case 2: result = firstName + faker.random.array_element([".", "_"]) + lastName + faker.random.number(99); break; } result = result.replace(/'/g, ""); result = result.replace(/ /g, ""); return result; }, domainName: function () { return faker.internet.domainWord() + "." + faker.internet.domainSuffix(); }, domainSuffix: function () { return faker.random.array_element(faker.definitions.internet.domain_suffix); }, domainWord: function () { return faker.name.firstName().replace(/([^A-Z0-9._%+-])/ig, '').toLowerCase(); }, ip: function () { var randNum = function () { return (faker.random.number(255)).toFixed(0); }; var result = []; for (var i = 0; i < 4; i++) { result[i] = randNum(); } return result.join("."); }, userAgent: function () { return random_ua.generate(); }, color: function (baseRed255, baseGreen255, baseBlue255) { baseRed255 = baseRed255 || 0; baseGreen255 = baseGreen255 || 0; baseBlue255 = baseBlue255 || 0; // based on awesome response : http://stackoverflow.com/questions/43044/algorithm-to-randomly-generate-an-aesthetically-pleasing-color-palette var red = Math.floor((faker.random.number(256) + baseRed255) / 2); var green = Math.floor((faker.random.number(256) + baseRed255) / 2); var blue = Math.floor((faker.random.number(256) + baseRed255) / 2); return '#' + red.toString(16) + green.toString(16) + blue.toString(16); }, password: function (len, memorable, pattern, prefix) { len = len || 15; if (typeof memorable === "undefined") { memorable = false; } return password_generator(len, memorable, pattern, prefix); } }; module.exports = internet; },{"../index":1,"../vendor/password-generator.js":43,"../vendor/user-agent":44}],10:[function(require,module,exports){ var faker = require('../index'); exports['de'] = require('./locales/de.js'); exports['de_AT'] = require('./locales/de_AT.js'); exports['de_CH'] = require('./locales/de_CH.js'); exports['en'] = require('./locales/en.js'); exports['en_AU'] = require('./locales/en_AU.js'); exports['en_BORK'] = require('./locales/en_BORK.js'); exports['en_CA'] = require('./locales/en_CA.js'); exports['en_GB'] = require('./locales/en_GB.js'); exports['en_IND'] = require('./locales/en_IND.js'); exports['en_US'] = require('./locales/en_US.js'); exports['en_au_ocker'] = require('./locales/en_au_ocker.js'); exports['es'] = require('./locales/es.js'); exports['fa'] = require('./locales/fa.js'); exports['fr'] = require('./locales/fr.js'); exports['it'] = require('./locales/it.js'); exports['ja'] = require('./locales/ja.js'); exports['ko'] = require('./locales/ko.js'); exports['nb_NO'] = require('./locales/nb_NO.js'); exports['nep'] = require('./locales/nep.js'); exports['nl'] = require('./locales/nl.js'); exports['pl'] = require('./locales/pl.js'); exports['pt_BR'] = require('./locales/pt_BR.js'); exports['ru'] = require('./locales/ru.js'); exports['sk'] = require('./locales/sk.js'); exports['sv'] = require('./locales/sv.js'); exports['vi'] = require('./locales/vi.js'); exports['zh_CN'] = require('./locales/zh_CN.js'); },{"../index":1,"./locales/de.js":11,"./locales/de_AT.js":12,"./locales/de_CH.js":13,"./locales/en.js":14,"./locales/en_AU.js":15,"./locales/en_BORK.js":16,"./locales/en_CA.js":17,"./locales/en_GB.js":18,"./locales/en_IND.js":19,"./locales/en_US.js":20,"./locales/en_au_ocker.js":21,"./locales/es.js":22,"./locales/fa.js":23,"./locales/fr.js":24,"./locales/it.js":25,"./locales/ja.js":26,"./locales/ko.js":27,"./locales/nb_NO.js":28,"./locales/nep.js":29,"./locales/nl.js":30,"./locales/pl.js":31,"./locales/pt_BR.js":32,"./locales/ru.js":33,"./locales/sk.js":34,"./locales/sv.js":35,"./locales/vi.js":36,"./locales/zh_CN.js":37}],11:[function(require,module,exports){ var de = {}; module["exports"] = de; de.title = "German"; de.address = { "city_prefix": [ "Nord", "Ost", "West", "Süd", "Neu", "Alt", "Bad" ], "city_suffix": [ "stadt", "dorf", "land", "scheid", "burg" ], "country": [ "Ägypten", "Äquatorialguinea", "Äthiopien", "Österreich", "Afghanistan", "Albanien", "Algerien", "Amerikanisch-Samoa", "Amerikanische Jungferninseln", "Andorra", "Angola", "Anguilla", "Antarktis", "Antigua und Barbuda", "Argentinien", "Armenien", "Aruba", "Aserbaidschan", "Australien", "Bahamas", "Bahrain", "Bangladesch", "Barbados", "Belarus", "Belgien", "Belize", "Benin", "die Bermudas", "Bhutan", "Bolivien", "Bosnien und Herzegowina", "Botsuana", "Bouvetinsel", "Brasilien", "Britische Jungferninseln", "Britisches Territorium im Indischen Ozean", "Brunei Darussalam", "Bulgarien", "Burkina Faso", "Burundi", "Chile", "China", "Cookinseln", "Costa Rica", "Dänemark", "Demokratische Republik Kongo", "Demokratische Volksrepublik Korea", "Deutschland", "Dominica", "Dominikanische Republik", "Dschibuti", "Ecuador", "El Salvador", "Eritrea", "Estland", "Färöer", "Falklandinseln", "Fidschi", "Finnland", "Frankreich", "Französisch-Guayana", "Französisch-Polynesien", "Französische Gebiete im südlichen Indischen Ozean", "Gabun", "Gambia", "Georgien", "Ghana", "Gibraltar", "Grönland", "Grenada", "Griechenland", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard und McDonaldinseln", "Honduras", "Hongkong", "Indien", "Indonesien", "Irak", "Iran", "Irland", "Island", "Israel", "Italien", "Jamaika", "Japan", "Jemen", "Jordanien", "Jugoslawien", "Kaimaninseln", "Kambodscha", "Kamerun", "Kanada", "Kap Verde", "Kasachstan", "Katar", "Kenia", "Kirgisistan", "Kiribati", "Kleinere amerikanische Überseeinseln", "Kokosinseln", "Kolumbien", "Komoren", "Kongo", "Kroatien", "Kuba", "Kuwait", "Laos", "Lesotho", "Lettland", "Libanon", "Liberia", "Libyen", "Liechtenstein", "Litauen", "Luxemburg", "Macau", "Madagaskar", "Malawi", "Malaysia", "Malediven", "Mali", "Malta", "ehemalige jugoslawische Republik Mazedonien", "Marokko", "Marshallinseln", "Martinique", "Mauretanien", "Mauritius", "Mayotte", "Mexiko", "Mikronesien", "Monaco", "Mongolei", "Montserrat", "Mosambik", "Myanmar", "Nördliche Marianen", "Namibia", "Nauru", "Nepal", "Neukaledonien", "Neuseeland", "Nicaragua", "Niederländische Antillen", "Niederlande", "Niger", "Nigeria", "Niue", "Norfolkinsel", "Norwegen", "Oman", "Osttimor", "Pakistan", "Palau", "Panama", "Papua-Neuguinea", "Paraguay", "Peru", "Philippinen", "Pitcairninseln", "Polen", "Portugal", "Puerto Rico", "Réunion", "Republik Korea", "Republik Moldau", "Ruanda", "Rumänien", "Russische Föderation", "São Tomé und Príncipe", "Südafrika", "Südgeorgien und Südliche Sandwichinseln", "Salomonen", "Sambia", "Samoa", "San Marino", "Saudi-Arabien", "Schweden", "Schweiz", "Senegal", "Seychellen", "Sierra Leone", "Simbabwe", "Singapur", "Slowakei", "Slowenien", "Somalien", "Spanien", "Sri Lanka", "St. Helena", "St. Kitts und Nevis", "St. Lucia", "St. Pierre und Miquelon", "St. Vincent und die Grenadinen", "Sudan", "Surinam", "Svalbard und Jan Mayen", "Swasiland", "Syrien", "Türkei", "Tadschikistan", "Taiwan", "Tansania", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad und Tobago", "Tschad", "Tschechische Republik", "Tunesien", "Turkmenistan", "Turks- und Caicosinseln", "Tuvalu", "Uganda", "Ukraine", "Ungarn", "Uruguay", "Usbekistan", "Vanuatu", "Vatikanstadt", "Venezuela", "Vereinigte Arabische Emirate", "Vereinigte Staaten", "Vereinigtes Königreich", "Vietnam", "Wallis und Futuna", "Weihnachtsinsel", "Westsahara", "Zentralafrikanische Republik", "Zypern" ], "street_root": [ "Ackerweg", "Adalbert-Stifter-Str.", "Adalbertstr.", "Adolf-Baeyer-Str.", "Adolf-Kaschny-Str.", "Adolf-Reichwein-Str.", "Adolfsstr.", "Ahornweg", "Ahrstr.", "Akazienweg", "Albert-Einstein-Str.", "Albert-Schweitzer-Str.", "Albertus-Magnus-Str.", "Albert-Zarthe-Weg", "Albin-Edelmann-Str.", "Albrecht-Haushofer-Str.", "Aldegundisstr.", "Alexanderstr.", "Alfred-Delp-Str.", "Alfred-Kubin-Str.", "Alfred-Stock-Str.", "Alkenrather Str.", "Allensteiner Str.", "Alsenstr.", "Alt Steinbücheler Weg", "Alte Garten", "Alte Heide", "Alte Landstr.", "Alte Ziegelei", "Altenberger Str.", "Altenhof", "Alter Grenzweg", "Altstadtstr.", "Am Alten Gaswerk", "Am Alten Schafstall", "Am Arenzberg", "Am Benthal", "Am Birkenberg", "Am Blauen Berg", "Am Borsberg", "Am Brungen", "Am Büchelter Hof", "Am Buttermarkt", "Am Ehrenfriedhof", "Am Eselsdamm", "Am Falkenberg", "Am Frankenberg", "Am Gesundheitspark", "Am Gierlichshof", "Am Graben", "Am Hagelkreuz", "Am Hang", "Am Heidkamp", "Am Hemmelrather Hof", "Am Hofacker", "Am Hohen Ufer", "Am Höllers Eck", "Am Hühnerberg", "Am Jägerhof", "Am Junkernkamp", "Am Kemperstiegel", "Am Kettnersbusch", "Am Kiesberg", "Am Klösterchen", "Am Knechtsgraben", "Am Köllerweg", "Am Köttersbach", "Am Kreispark", "Am Kronefeld", "Am Küchenhof", "Am Kühnsbusch", "Am Lindenfeld", "Am Märchen", "Am Mittelberg", "Am Mönchshof", "Am Mühlenbach", "Am Neuenhof", "Am Nonnenbruch", "Am Plattenbusch", "Am Quettinger Feld", "Am Rosenhügel", "Am Sandberg", "Am Scherfenbrand", "Am Schokker", "Am Silbersee", "Am Sonnenhang", "Am Sportplatz", "Am Stadtpark", "Am Steinberg", "Am Telegraf", "Am Thelenhof", "Am Vogelkreuz", "Am Vogelsang", "Am Vogelsfeldchen", "Am Wambacher Hof", "Am Wasserturm", "Am Weidenbusch", "Am Weiher", "Am Weingarten", "Am Werth", "Amselweg", "An den Irlen", "An den Rheinauen", "An der Bergerweide", "An der Dingbank", "An der Evangelischen Kirche", "An der Evgl. Kirche", "An der Feldgasse", "An der Fettehenne", "An der Kante", "An der Laach", "An der Lehmkuhle", "An der Lichtenburg", "An der Luisenburg", "An der Robertsburg", "An der Schmitten", "An der Schusterinsel", "An der Steinrütsch", "An St. Andreas", "An St. Remigius", "Andreasstr.", "Ankerweg", "Annette-Kolb-Str.", "Apenrader Str.", "Arnold-Ohletz-Str.", "Atzlenbacher Str.", "Auerweg", "Auestr.", "Auf dem Acker", "Auf dem Blahnenhof", "Auf dem Bohnbüchel", "Auf dem Bruch", "Auf dem End", "Auf dem Forst", "Auf dem Herberg", "Auf dem Lehn", "Auf dem Stein", "Auf dem Weierberg", "Auf dem Weiherhahn", "Auf den Reien", "Auf der Donnen", "Auf der Grieße", "Auf der Ohmer", "Auf der Weide", "Auf'm Berg", "Auf'm Kamp", "Augustastr.", "August-Kekulé-Str.", "A.-W.-v.-Hofmann-Str.", "Bahnallee", "Bahnhofstr.", "Baltrumstr.", "Bamberger Str.", "Baumberger Str.", "Bebelstr.", "Beckers Kämpchen", "Beerenstr.", "Beethovenstr.", "Behringstr.", "Bendenweg", "Bensberger Str.", "Benzstr.", "Bergische Landstr.", "Bergstr.", "Berliner Platz", "Berliner Str.", "Bernhard-Letterhaus-Str.", "Bernhard-Lichtenberg-Str.", "Bernhard-Ridder-Str.", "Bernsteinstr.", "Bertha-Middelhauve-Str.", "Bertha-von-Suttner-Str.", "Bertolt-Brecht-Str.", "Berzeliusstr.", "Bielertstr.", "Biesenbach", "Billrothstr.", "Birkenbergstr.", "Birkengartenstr.", "Birkenweg", "Bismarckstr.", "Bitterfelder Str.", "Blankenburg", "Blaukehlchenweg", "Blütenstr.", "Boberstr.", "Böcklerstr.", "Bodelschwinghstr.", "Bodestr.", "Bogenstr.", "Bohnenkampsweg", "Bohofsweg", "Bonifatiusstr.", "Bonner Str.", "Borkumstr.", "Bornheimer Str.", "Borsigstr.", "Borussiastr.", "Bracknellstr.", "Brahmsweg", "Brandenburger Str.", "Breidenbachstr.", "Breslauer Str.", "Bruchhauser Str.", "Brückenstr.", "Brucknerstr.", "Brüder-Bonhoeffer-Str.", "Buchenweg", "Bürgerbuschweg", "Burgloch", "Burgplatz", "Burgstr.", "Burgweg", "Bürriger Weg", "Burscheider Str.", "Buschkämpchen", "Butterheider Str.", "Carl-Duisberg-Platz", "Carl-Duisberg-Str.", "Carl-Leverkus-Str.", "Carl-Maria-von-Weber-Platz", "Carl-Maria-von-Weber-Str.", "Carlo-Mierendorff-Str.", "Carl-Rumpff-Str.", "Carl-von-Ossietzky-Str.", "Charlottenburger Str.", "Christian-Heß-Str.", "Claasbruch", "Clemens-Winkler-Str.", "Concordiastr.", "Cranachstr.", "Dahlemer Str.", "Daimlerstr.", "Damaschkestr.", "Danziger Str.", "Debengasse", "Dechant-Fein-Str.", "Dechant-Krey-Str.", "Deichtorstr.", "Dhünnberg", "Dhünnstr.", "Dianastr.", "Diedenhofener Str.", "Diepental", "Diepenthaler Str.", "Dieselstr.", "Dillinger Str.", "Distelkamp", "Dohrgasse", "Domblick", "Dönhoffstr.", "Dornierstr.", "Drachenfelsstr.", "Dr.-August-Blank-Str.", "Dresdener Str.", "Driescher Hecke", "Drosselweg", "Dudweilerstr.", "Dünenweg", "Dünfelder Str.", "Dünnwalder Grenzweg", "Düppeler Str.", "Dürerstr.", "Dürscheider Weg", "Düsseldorfer Str.", "Edelrather Weg", "Edmund-Husserl-Str.", "Eduard-Spranger-Str.", "Ehrlichstr.", "Eichenkamp", "Eichenweg", "Eidechsenweg", "Eifelstr.", "Eifgenstr.", "Eintrachtstr.", "Elbestr.", "Elisabeth-Langgässer-Str.", "Elisabethstr.", "Elisabeth-von-Thadden-Str.", "Elisenstr.", "Elsa-Brändström-Str.", "Elsbachstr.", "Else-Lasker-Schüler-Str.", "Elsterstr.", "Emil-Fischer-Str.", "Emil-Nolde-Str.", "Engelbertstr.", "Engstenberger Weg", "Entenpfuhl", "Erbelegasse", "Erftstr.", "Erfurter Str.", "Erich-Heckel-Str.", "Erich-Klausener-Str.", "Erich-Ollenhauer-Str.", "Erlenweg", "Ernst-Bloch-Str.", "Ernst-Ludwig-Kirchner-Str.", "Erzbergerstr.", "Eschenallee", "Eschenweg", "Esmarchstr.", "Espenweg", "Euckenstr.", "Eulengasse", "Eulenkamp", "Ewald-Flamme-Str.", "Ewald-Röll-Str.", "Fährstr.", "Farnweg", "Fasanenweg", "Faßbacher Hof", "Felderstr.", "Feldkampstr.", "Feldsiefer Weg", "Feldsiefer Wiesen", "Feldstr.", "Feldtorstr.", "Felix-von-Roll-Str.", "Ferdinand-Lassalle-Str.", "Fester Weg", "Feuerbachstr.", "Feuerdornweg", "Fichtenweg", "Fichtestr.", "Finkelsteinstr.", "Finkenweg", "Fixheider Str.", "Flabbenhäuschen", "Flensburger Str.", "Fliederweg", "Florastr.", "Florianweg", "Flotowstr.", "Flurstr.", "Föhrenweg", "Fontanestr.", "Forellental", "Fortunastr.", "Franz-Esser-Str.", "Franz-Hitze-Str.", "Franz-Kail-Str.", "Franz-Marc-Str.", "Freiburger Str.", "Freiheitstr.", "Freiherr-vom-Stein-Str.", "Freudenthal", "Freudenthaler Weg", "Fridtjof-Nansen-Str.", "Friedenberger Str.", "Friedensstr.", "Friedhofstr.", "Friedlandstr.", "Friedlieb-Ferdinand-Runge-Str.", "Friedrich-Bayer-Str.", "Friedrich-Bergius-Platz", "Friedrich-Ebert-Platz", "Friedrich-Ebert-Str.", "Friedrich-Engels-Str.", "Friedrich-List-Str.", "Friedrich-Naumann-Str.", "Friedrich-Sertürner-Str.", "Friedrichstr.", "Friedrich-Weskott-Str.", "Friesenweg", "Frischenberg", "Fritz-Erler-Str.", "Fritz-Henseler-Str.", "Fröbelstr.", "Fürstenbergplatz", "Fürstenbergstr.", "Gabriele-Münter-Str.", "Gartenstr.", "Gebhardstr.", "Geibelstr.", "Gellertstr.", "Georg-von-Vollmar-Str.", "Gerhard-Domagk-Str.", "Gerhart-Hauptmann-Str.", "Gerichtsstr.", "Geschwister-Scholl-Str.", "Gezelinallee", "Gierener Weg", "Ginsterweg", "Gisbert-Cremer-Str.", "Glücksburger Str.", "Gluckstr.", "Gneisenaustr.", "Goetheplatz", "Goethestr.", "Golo-Mann-Str.", "Görlitzer Str.", "Görresstr.", "Graebestr.", "Graf-Galen-Platz", "Gregor-Mendel-Str.", "Greifswalder Str.", "Grillenweg", "Gronenborner Weg", "Große Kirchstr.", "Grunder Wiesen", "Grundermühle", "Grundermühlenhof", "Grundermühlenweg", "Grüner Weg", "Grunewaldstr.", "Grünstr.", "Günther-Weisenborn-Str.", "Gustav-Freytag-Str.", "Gustav-Heinemann-Str.", "Gustav-Radbruch-Str.", "Gut Reuschenberg", "Gutenbergstr.", "Haberstr.", "Habichtgasse", "Hafenstr.", "Hagenauer Str.", "Hahnenblecher", "Halenseestr.", "Halfenleimbach", "Hallesche Str.", "Halligstr.", "Hamberger Str.", "Hammerweg", "Händelstr.", "Hannah-Höch-Str.", "Hans-Arp-Str.", "Hans-Gerhard-Str.", "Hans-Sachs-Str.", "Hans-Schlehahn-Str.", "Hans-von-Dohnanyi-Str.", "Hardenbergstr.", "Haselweg", "Hauptstr.", "Haus-Vorster-Str.", "Hauweg", "Havelstr.", "Havensteinstr.", "Haydnstr.", "Hebbelstr.", "Heckenweg", "Heerweg", "Hegelstr.", "Heidberg", "Heidehöhe", "Heidestr.", "Heimstättenweg", "Heinrich-Böll-Str.", "Heinrich-Brüning-Str.", "Heinrich-Claes-Str.", "Heinrich-Heine-Str.", "Heinrich-Hörlein-Str.", "Heinrich-Lübke-Str.", "Heinrich-Lützenkirchen-Weg", "Heinrichstr.", "Heinrich-Strerath-Str.", "Heinrich-von-Kleist-Str.", "Heinrich-von-Stephan-Str.", "Heisterbachstr.", "Helenenstr.", "Helmestr.", "Hemmelrather Weg", "Henry-T.-v.-Böttinger-Str.", "Herderstr.", "Heribertstr.", "Hermann-Ehlers-Str.", "Hermann-Hesse-Str.", "Hermann-König-Str.", "Hermann-Löns-Str.", "Hermann-Milde-Str.", "Hermann-Nörrenberg-Str.", "Hermann-von-Helmholtz-Str.", "Hermann-Waibel-Str.", "Herzogstr.", "Heymannstr.", "Hindenburgstr.", "Hirzenberg", "Hitdorfer Kirchweg", "Hitdorfer Str.", "Höfer Mühle", "Höfer Weg", "Hohe Str.", "Höhenstr.", "Höltgestal", "Holunderweg", "Holzer Weg", "Holzer Wiesen", "Hornpottweg", "Hubertusweg", "Hufelandstr.", "Hufer Weg", "Humboldtstr.", "Hummelsheim", "Hummelweg", "Humperdinckstr.", "Hüscheider Gärten", "Hüscheider Str.", "Hütte", "Ilmstr.", "Im Bergischen Heim", "Im Bruch", "Im Buchenhain", "Im Bühl", "Im Burgfeld", "Im Dorf", "Im Eisholz", "Im Friedenstal", "Im Frohental", "Im Grunde", "Im Hederichsfeld", "Im Jücherfeld", "Im Kalkfeld", "Im Kirberg", "Im Kirchfeld", "Im Kreuzbruch", "Im Mühlenfeld", "Im Nesselrader Kamp", "Im Oberdorf", "Im Oberfeld", "Im Rosengarten", "Im Rottland", "Im Scheffengarten", "Im Staderfeld", "Im Steinfeld", "Im Weidenblech", "Im Winkel", "Im Ziegelfeld", "Imbach", "Imbacher Weg", "Immenweg", "In den Blechenhöfen", "In den Dehlen", "In der Birkenau", "In der Dasladen", "In der Felderhütten", "In der Hartmannswiese", "In der Höhle", "In der Schaafsdellen", "In der Wasserkuhl", "In der Wüste", "In Holzhausen", "Insterstr.", "Jacob-Fröhlen-Str.", "Jägerstr.", "Jahnstr.", "Jakob-Eulenberg-Weg", "Jakobistr.", "Jakob-Kaiser-Str.", "Jenaer Str.", "Johannes-Baptist-Str.", "Johannes-Dott-Str.", "Johannes-Popitz-Str.", "Johannes-Wislicenus-Str.", "Johannisburger Str.", "Johann-Janssen-Str.", "Johann-Wirtz-Weg", "Josefstr.", "Jüch", "Julius-Doms-Str.", "Julius-Leber-Str.", "Kaiserplatz", "Kaiserstr.", "Kaiser-Wilhelm-Allee", "Kalkstr.", "Kämpchenstr.", "Kämpenwiese", "Kämper Weg", "Kamptalweg", "Kanalstr.", "Kandinskystr.", "Kantstr.", "Kapellenstr.", "Karl-Arnold-Str.", "Karl-Bosch-Str.", "Karl-Bückart-Str.", "Karl-Carstens-Ring", "Karl-Friedrich-Goerdeler-Str.", "Karl-Jaspers-Str.", "Karl-König-Str.", "Karl-Krekeler-Str.", "Karl-Marx-Str.", "Karlstr.", "Karl-Ulitzka-Str.", "Karl-Wichmann-Str.", "Karl-Wingchen-Str.", "Käsenbrod", "Käthe-Kollwitz-Str.", "Katzbachstr.", "Kerschensteinerstr.", "Kiefernweg", "Kieler Str.", "Kieselstr.", "Kiesweg", "Kinderhausen", "Kleiberweg", "Kleine Kirchstr.", "Kleingansweg", "Kleinheider Weg", "Klief", "Kneippstr.", "Knochenbergsweg", "Kochergarten", "Kocherstr.", "Kockelsberg", "Kolberger Str.", "Kolmarer Str.", "Kölner Gasse", "Kölner Str.", "Kolpingstr.", "Königsberger Platz", "Konrad-Adenauer-Platz", "Köpenicker Str.", "Kopernikusstr.", "Körnerstr.", "Köschenberg", "Köttershof", "Kreuzbroicher Str.", "Kreuzkamp", "Krummer Weg", "Kruppstr.", "Kuhlmannweg", "Kump", "Kumper Weg", "Kunstfeldstr.", "Küppersteger Str.", "Kursiefen", "Kursiefer Weg", "Kurtekottenweg", "Kurt-Schumacher-Ring", "Kyllstr.", "Langenfelder Str.", "Längsleimbach", "Lärchenweg", "Legienstr.", "Lehner Mühle", "Leichlinger Str.", "Leimbacher Hof", "Leinestr.", "Leineweberstr.", "Leipziger Str.", "Lerchengasse", "Lessingstr.", "Libellenweg", "Lichstr.", "Liebigstr.", "Lindenstr.", "Lingenfeld", "Linienstr.", "Lippe", "Löchergraben", "Löfflerstr.", "Loheweg", "Lohrbergstr.", "Lohrstr.", "Löhstr.", "Lortzingstr.", "Lötzener Str.", "Löwenburgstr.", "Lucasstr.", "Ludwig-Erhard-Platz", "Ludwig-Girtler-Str.", "Ludwig-Knorr-Str.", "Luisenstr.", "Lupinenweg", "Lurchenweg", "Lützenkirchener Str.", "Lycker Str.", "Maashofstr.", "Manforter Str.", "Marc-Chagall-Str.", "Maria-Dresen-Str.", "Maria-Terwiel-Str.", "Marie-Curie-Str.", "Marienburger Str.", "Mariendorfer Str.", "Marienwerderstr.", "Marie-Schlei-Str.", "Marktplatz", "Markusweg", "Martin-Buber-Str.", "Martin-Heidegger-Str.", "Martin-Luther-Str.", "Masurenstr.", "Mathildenweg", "Maurinusstr.", "Mauspfad", "Max-Beckmann-Str.", "Max-Delbrück-Str.", "Max-Ernst-Str.", "Max-Holthausen-Platz", "Max-Horkheimer-Str.", "Max-Liebermann-Str.", "Max-Pechstein-Str.", "Max-Planck-Str.", "Max-Scheler-Str.", "Max-Schönenberg-Str.", "Maybachstr.", "Meckhofer Feld", "Meisenweg", "Memelstr.", "Menchendahler Str.", "Mendelssohnstr.", "Merziger Str.", "Mettlacher Str.", "Metzer Str.", "Michaelsweg", "Miselohestr.", "Mittelstr.", "Mohlenstr.", "Moltkestr.", "Monheimer Str.", "Montanusstr.", "Montessoriweg", "Moosweg", "Morsbroicher Str.", "Moselstr.", "Moskauer Str.", "Mozartstr.", "Mühlenweg", "Muhrgasse", "Muldestr.", "Mülhausener Str.", "Mülheimer Str.", "Münsters Gäßchen", "Münzstr.", "Müritzstr.", "Myliusstr.", "Nachtigallenweg", "Nauener Str.", "Neißestr.", "Nelly-Sachs-Str.", "Netzestr.", "Neuendriesch", "Neuenhausgasse", "Neuenkamp", "Neujudenhof", "Neukronenberger Str.", "Neustadtstr.", "Nicolai-Hartmann-Str.", "Niederblecher", "Niederfeldstr.", "Nietzschestr.", "Nikolaus-Groß-Str.", "Nobelstr.", "Norderneystr.", "Nordstr.", "Ober dem Hof", "Obere Lindenstr.", "Obere Str.", "Oberölbach", "Odenthaler Str.", "Oderstr.", "Okerstr.", "Olof-Palme-Str.", "Ophovener Str.", "Opladener Platz", "Opladener Str.", "Ortelsburger Str.", "Oskar-Moll-Str.", "Oskar-Schlemmer-Str.", "Oststr.", "Oswald-Spengler-Str.", "Otto-Dix-Str.", "Otto-Grimm-Str.", "Otto-Hahn-Str.", "Otto-Müller-Str.", "Otto-Stange-Str.", "Ottostr.", "Otto-Varnhagen-Str.", "Otto-Wels-Str.", "Ottweilerstr.", "Oulustr.", "Overfeldweg", "Pappelweg", "Paracelsusstr.", "Parkstr.", "Pastor-Louis-Str.", "Pastor-Scheibler-Str.", "Pastorskamp", "Paul-Klee-Str.", "Paul-Löbe-Str.", "Paulstr.", "Peenestr.", "Pescher Busch", "Peschstr.", "Pestalozzistr.", "Peter-Grieß-Str.", "Peter-Joseph-Lenné-Str.", "Peter-Neuenheuser-Str.", "Petersbergstr.", "Peterstr.", "Pfarrer-Jekel-Str.", "Pfarrer-Klein-Str.", "Pfarrer-Röhr-Str.", "Pfeilshofstr.", "Philipp-Ott-Str.", "Piet-Mondrian-Str.", "Platanenweg", "Pommernstr.", "Porschestr.", "Poststr.", "Potsdamer Str.", "Pregelstr.", "Prießnitzstr.", "Pützdelle", "Quarzstr.", "Quettinger Str.", "Rat-Deycks-Str.", "Rathenaustr.", "Ratherkämp", "Ratiborer Str.", "Raushofstr.", "Regensburger Str.", "Reinickendorfer Str.", "Renkgasse", "Rennbaumplatz", "Rennbaumstr.", "Reuschenberger Str.", "Reusrather Str.", "Reuterstr.", "Rheinallee", "Rheindorfer Str.", "Rheinstr.", "Rhein-Wupper-Platz", "Richard-Wagner-Str.", "Rilkestr.", "Ringstr.", "Robert-Blum-Str.", "Robert-Koch-Str.", "Robert-Medenwald-Str.", "Rolandstr.", "Romberg", "Röntgenstr.", "Roonstr.", "Ropenstall", "Ropenstaller Weg", "Rosenthal", "Rostocker Str.", "Rotdornweg", "Röttgerweg", "Rückertstr.", "Rudolf-Breitscheid-Str.", "Rudolf-Mann-Platz", "Rudolf-Stracke-Str.", "Ruhlachplatz", "Ruhlachstr.", "Rüttersweg", "Saalestr.", "Saarbrücker Str.", "Saarlauterner Str.", "Saarstr.", "Salamanderweg", "Samlandstr.", "Sanddornstr.", "Sandstr.", "Sauerbruchstr.", "Schäfershütte", "Scharnhorststr.", "Scheffershof", "Scheidemannstr.", "Schellingstr.", "Schenkendorfstr.", "Schießbergstr.", "Schillerstr.", "Schlangenhecke", "Schlebuscher Heide", "Schlebuscher Str.", "Schlebuschrath", "Schlehdornstr.", "Schleiermacherstr.", "Schloßstr.", "Schmalenbruch", "Schnepfenflucht", "Schöffenweg", "Schöllerstr.", "Schöne Aussicht", "Schöneberger Str.", "Schopenhauerstr.", "Schubertplatz", "Schubertstr.", "Schulberg", "Schulstr.", "Schumannstr.", "Schwalbenweg", "Schwarzastr.", "Sebastianusweg", "Semmelweisstr.", "Siebelplatz", "Siemensstr.", "Solinger Str.", "Sonderburger Str.", "Spandauer Str.", "Speestr.", "Sperberweg", "Sperlingsweg", "Spitzwegstr.", "Sporrenberger Mühle", "Spreestr.", "St. Ingberter Str.", "Starenweg", "Stauffenbergstr.", "Stefan-Zweig-Str.", "Stegerwaldstr.", "Steglitzer Str.", "Steinbücheler Feld", "Steinbücheler Str.", "Steinstr.", "Steinweg", "Stephan-Lochner-Str.", "Stephanusstr.", "Stettiner Str.", "Stixchesstr.", "Stöckenstr.", "Stralsunder Str.", "Straßburger Str.", "Stresemannplatz", "Strombergstr.", "Stromstr.", "Stüttekofener Str.", "Sudestr.", "Sürderstr.", "Syltstr.", "Talstr.", "Tannenbergstr.", "Tannenweg", "Taubenweg", "Teitscheider Weg", "Telegrafenstr.", "Teltower Str.", "Tempelhofer Str.", "Theodor-Adorno-Str.", "Theodor-Fliedner-Str.", "Theodor-Gierath-Str.", "Theodor-Haubach-Str.", "Theodor-Heuss-Ring", "Theodor-Storm-Str.", "Theodorstr.", "Thomas-Dehler-Str.", "Thomas-Morus-Str.", "Thomas-von-Aquin-Str.", "Tönges Feld", "Torstr.", "Treptower Str.", "Treuburger Str.", "Uhlandstr.", "Ulmenweg", "Ulmer Str.", "Ulrichstr.", "Ulrich-von-Hassell-Str.", "Umlag", "Unstrutstr.", "Unter dem Schildchen", "Unterölbach", "Unterstr.", "Uppersberg", "Van\\'t-Hoff-Str.", "Veit-Stoß-Str.", "Vereinsstr.", "Viktor-Meyer-Str.", "Vincent-van-Gogh-Str.", "Virchowstr.", "Voigtslach", "Volhardstr.", "Völklinger Str.", "Von-Brentano-Str.", "Von-Diergardt-Str.", "Von-Eichendorff-Str.", "Von-Ketteler-Str.", "Von-Knoeringen-Str.", "Von-Pettenkofer-Str.", "Von-Siebold-Str.", "Wacholderweg", "Waldstr.", "Walter-Flex-Str.", "Walter-Hempel-Str.", "Walter-Hochapfel-Str.", "Walter-Nernst-Str.", "Wannseestr.", "Warnowstr.", "Warthestr.", "Weddigenstr.", "Weichselstr.", "Weidenstr.", "Weidfeldstr.", "Weiherfeld", "Weiherstr.", "Weinhäuser Str.", "Weißdornweg", "Weißenseestr.", "Weizkamp", "Werftstr.", "Werkstättenstr.", "Werner-Heisenberg-Str.", "Werrastr.", "Weyerweg", "Widdauener Str.", "Wiebertshof", "Wiehbachtal", "Wiembachallee", "Wiesdorfer Platz", "Wiesenstr.", "Wilhelm-Busch-Str.", "Wilhelm-Hastrich-Str.", "Wilhelm-Leuschner-Str.", "Wilhelm-Liebknecht-Str.", "Wilhelmsgasse", "Wilhelmstr.", "Willi-Baumeister-Str.", "Willy-Brandt-Ring", "Winand-Rossi-Str.", "Windthorststr.", "Winkelweg", "Winterberg", "Wittenbergstr.", "Wolf-Vostell-Str.", "Wolkenburgstr.", "Wupperstr.", "Wuppertalstr.", "Wüstenhof", "Yitzhak-Rabin-Str.", "Zauberkuhle", "Zedernweg", "Zehlendorfer Str.", "Zehntenweg", "Zeisigweg", "Zeppelinstr.", "Zschopaustr.", "Zum Claashäuschen", "Zündhütchenweg", "Zur Alten Brauerei", "Zur alten Fabrik" ], "building_number": [ "###", "##", "#", "##a", "##b", "##c" ], "secondary_address": [ "Apt. ###", "Zimmer ###", "# OG" ], "postcode": [ "#####", "#####" ], "state": [ "Baden-Württemberg", "Bayern", "Berlin", "Brandenburg", "Bremen", "Hamburg", "Hessen", "Mecklenburg-Vorpommern", "Niedersachsen", "Nordrhein-Westfalen", "Rheinland-Pfalz", "Saarland", "Sachsen", "Sachsen-Anhalt", "Schleswig-Holstein", "Thüringen" ], "state_abbr": [ "BW", "BY", "BE", "BB", "HB", "HH", "HE", "MV", "NI", "NW", "RP", "SL", "SN", "ST", "SH", "TH" ], "city": [ "#{city_prefix} #{Name.first_name}#{city_suffix}", "#{city_prefix} #{Name.first_name}", "#{Name.first_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}" ], "street_name": [ "#{street_root}" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Deutschland" ] }; de.company = { "suffix": [ "GmbH", "AG", "Gruppe", "KG", "GmbH & Co. KG", "UG", "OHG" ], "legal_form": [ "GmbH", "AG", "Gruppe", "KG", "GmbH & Co. KG", "UG", "OHG" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} und #{Name.last_name}" ] }; de.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "info", "name", "net", "org", "de", "ch" ] }; de.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ] }; de.name = { "first_name": [ "Aaron", "Abdul", "Abdullah", "Adam", "Adrian", "Adriano", "Ahmad", "Ahmed", "Ahmet", "Alan", "Albert", "Alessandro", "Alessio", "Alex", "Alexander", "Alfred", "Ali", "Amar", "Amir", "Amon", "Andre", "Andreas", "Andrew", "Angelo", "Ansgar", "Anthony", "Anton", "Antonio", "Arda", "Arian", "Armin", "Arne", "Arno", "Arthur", "Artur", "Arved", "Arvid", "Ayman", "Baran", "Baris", "Bastian", "Batuhan", "Bela", "Ben", "Benedikt", "Benjamin", "Bennet", "Bennett", "Benno", "Bent", "Berat", "Berkay", "Bernd", "Bilal", "Bjarne", "Björn", "Bo", "Boris", "Brandon", "Brian", "Bruno", "Bryan", "Burak", "Calvin", "Can", "Carl", "Carlo", "Carlos", "Caspar", "Cedric", "Cedrik", "Cem", "Charlie", "Chris", "Christian", "Christiano", "Christoph", "Christopher", "Claas", "Clemens", "Colin", "Collin", "Conner", "Connor", "Constantin", "Corvin", "Curt", "Damian", "Damien", "Daniel", "Danilo", "Danny", "Darian", "Dario", "Darius", "Darren", "David", "Davide", "Davin", "Dean", "Deniz", "Dennis", "Denny", "Devin", "Diego", "Dion", "Domenic", "Domenik", "Dominic", "Dominik", "Dorian", "Dustin", "Dylan", "Ecrin", "Eddi", "Eddy", "Edgar", "Edwin", "Efe", "Ege", "Elia", "Eliah", "Elias", "Elijah", "Emanuel", "Emil", "Emilian", "Emilio", "Emir", "Emirhan", "Emre", "Enes", "Enno", "Enrico", "Eren", "Eric", "Erik", "Etienne", "Fabian", "Fabien", "Fabio", "Fabrice", "Falk", "Felix", "Ferdinand", "Fiete", "Filip", "Finlay", "Finley", "Finn", "Finnley", "Florian", "Francesco", "Franz", "Frederic", "Frederick", "Frederik", "Friedrich", "Fritz", "Furkan", "Fynn", "Gabriel", "Georg", "Gerrit", "Gian", "Gianluca", "Gino", "Giuliano", "Giuseppe", "Gregor", "Gustav", "Hagen", "Hamza", "Hannes", "Hanno", "Hans", "Hasan", "Hassan", "Hauke", "Hendrik", "Hennes", "Henning", "Henri", "Henrick", "Henrik", "Henry", "Hugo", "Hussein", "Ian", "Ibrahim", "Ilias", "Ilja", "Ilyas", "Immanuel", "Ismael", "Ismail", "Ivan", "Iven", "Jack", "Jacob", "Jaden", "Jakob", "Jamal", "James", "Jamie", "Jan", "Janek", "Janis", "Janne", "Jannek", "Jannes", "Jannik", "Jannis", "Jano", "Janosch", "Jared", "Jari", "Jarne", "Jarno", "Jaron", "Jason", "Jasper", "Jay", "Jayden", "Jayson", "Jean", "Jens", "Jeremias", "Jeremie", "Jeremy", "Jermaine", "Jerome", "Jesper", "Jesse", "Jim", "Jimmy", "Joe", "Joel", "Joey", "Johann", "Johannes", "John", "Johnny", "Jon", "Jona", "Jonah", "Jonas", "Jonathan", "Jonte", "Joost", "Jordan", "Joris", "Joscha", "Joschua", "Josef", "Joseph", "Josh", "Joshua", "Josua", "Juan", "Julian", "Julien", "Julius", "Juri", "Justin", "Justus", "Kaan", "Kai", "Kalle", "Karim", "Karl", "Karlo", "Kay", "Keanu", "Kenan", "Kenny", "Keno", "Kerem", "Kerim", "Kevin", "Kian", "Kilian", "Kim", "Kimi", "Kjell", "Klaas", "Klemens", "Konrad", "Konstantin", "Koray", "Korbinian", "Kurt", "Lars", "Lasse", "Laurence", "Laurens", "Laurenz", "Laurin", "Lean", "Leander", "Leandro", "Leif", "Len", "Lenn", "Lennard", "Lennart", "Lennert", "Lennie", "Lennox", "Lenny", "Leo", "Leon", "Leonard", "Leonardo", "Leonhard", "Leonidas", "Leopold", "Leroy", "Levent", "Levi", "Levin", "Lewin", "Lewis", "Liam", "Lian", "Lias", "Lino", "Linus", "Lio", "Lion", "Lionel", "Logan", "Lorenz", "Lorenzo", "Loris", "Louis", "Luan", "Luc", "Luca", "Lucas", "Lucian", "Lucien", "Ludwig", "Luis", "Luiz", "Luk", "Luka", "Lukas", "Luke", "Lutz", "Maddox", "Mads", "Magnus", "Maik", "Maksim", "Malik", "Malte", "Manuel", "Marc", "Marcel", "Marco", "Marcus", "Marek", "Marian", "Mario", "Marius", "Mark", "Marko", "Markus", "Marlo", "Marlon", "Marten", "Martin", "Marvin", "Marwin", "Mateo", "Mathis", "Matis", "Mats", "Matteo", "Mattes", "Matthias", "Matthis", "Matti", "Mattis", "Maurice", "Max", "Maxim", "Maximilian", "Mehmet", "Meik", "Melvin", "Merlin", "Mert", "Michael", "Michel", "Mick", "Miguel", "Mika", "Mikail", "Mike", "Milan", "Milo", "Mio", "Mirac", "Mirco", "Mirko", "Mohamed", "Mohammad", "Mohammed", "Moritz", "Morten", "Muhammed", "Murat", "Mustafa", "Nathan", "Nathanael", "Nelson", "Neo", "Nevio", "Nick", "Niclas", "Nico", "Nicolai", "Nicolas", "Niels", "Nikita", "Niklas", "Niko", "Nikolai", "Nikolas", "Nils", "Nino", "Noah", "Noel", "Norman", "Odin", "Oke", "Ole", "Oliver", "Omar", "Onur", "Oscar", "Oskar", "Pascal", "Patrice", "Patrick", "Paul", "Peer", "Pepe", "Peter", "Phil", "Philip", "Philipp", "Pierre", "Piet", "Pit", "Pius", "Quentin", "Quirin", "Rafael", "Raik", "Ramon", "Raphael", "Rasmus", "Raul", "Rayan", "René", "Ricardo", "Riccardo", "Richard", "Rick", "Rico", "Robert", "Robin", "Rocco", "Roman", "Romeo", "Ron", "Ruben", "Ryan", "Said", "Salih", "Sam", "Sami", "Sammy", "Samuel", "Sandro", "Santino", "Sascha", "Sean", "Sebastian", "Selim", "Semih", "Shawn", "Silas", "Simeon", "Simon", "Sinan", "Sky", "Stefan", "Steffen", "Stephan", "Steve", "Steven", "Sven", "Sönke", "Sören", "Taha", "Tamino", "Tammo", "Tarik", "Tayler", "Taylor", "Teo", "Theo", "Theodor", "Thies", "Thilo", "Thomas", "Thorben", "Thore", "Thorge", "Tiago", "Til", "Till", "Tillmann", "Tim", "Timm", "Timo", "Timon", "Timothy", "Tino", "Titus", "Tizian", "Tjark", "Tobias", "Tom", "Tommy", "Toni", "Tony", "Torben", "Tore", "Tristan", "Tyler", "Tyron", "Umut", "Valentin", "Valentino", "Veit", "Victor", "Viktor", "Vin", "Vincent", "Vito", "Vitus", "Wilhelm", "Willi", "William", "Willy", "Xaver", "Yannic", "Yannick", "Yannik", "Yannis", "Yasin", "Youssef", "Yunus", "Yusuf", "Yven", "Yves", "Ömer", "Aaliyah", "Abby", "Abigail", "Ada", "Adelina", "Adriana", "Aileen", "Aimee", "Alana", "Alea", "Alena", "Alessa", "Alessia", "Alexa", "Alexandra", "Alexia", "Alexis", "Aleyna", "Alia", "Alica", "Alice", "Alicia", "Alina", "Alisa", "Alisha", "Alissa", "Aliya", "Aliyah", "Allegra", "Alma", "Alyssa", "Amalia", "Amanda", "Amelia", "Amelie", "Amina", "Amira", "Amy", "Ana", "Anabel", "Anastasia", "Andrea", "Angela", "Angelina", "Angelique", "Anja", "Ann", "Anna", "Annabel", "Annabell", "Annabelle", "Annalena", "Anne", "Anneke", "Annelie", "Annemarie", "Anni", "Annie", "Annika", "Anny", "Anouk", "Antonia", "Arda", "Ariana", "Ariane", "Arwen", "Ashley", "Asya", "Aurelia", "Aurora", "Ava", "Ayleen", "Aylin", "Ayse", "Azra", "Betty", "Bianca", "Bianka", "Caitlin", "Cara", "Carina", "Carla", "Carlotta", "Carmen", "Carolin", "Carolina", "Caroline", "Cassandra", "Catharina", "Catrin", "Cecile", "Cecilia", "Celia", "Celina", "Celine", "Ceyda", "Ceylin", "Chantal", "Charleen", "Charlotta", "Charlotte", "Chayenne", "Cheyenne", "Chiara", "Christin", "Christina", "Cindy", "Claire", "Clara", "Clarissa", "Colleen", "Collien", "Cora", "Corinna", "Cosima", "Dana", "Daniela", "Daria", "Darleen", "Defne", "Delia", "Denise", "Diana", "Dilara", "Dina", "Dorothea", "Ecrin", "Eda", "Eileen", "Ela", "Elaine", "Elanur", "Elea", "Elena", "Eleni", "Eleonora", "Eliana", "Elif", "Elina", "Elisa", "Elisabeth", "Ella", "Ellen", "Elli", "Elly", "Elsa", "Emelie", "Emely", "Emilia", "Emilie", "Emily", "Emma", "Emmely", "Emmi", "Emmy", "Enie", "Enna", "Enya", "Esma", "Estelle", "Esther", "Eva", "Evelin", "Evelina", "Eveline", "Evelyn", "Fabienne", "Fatima", "Fatma", "Felicia", "Felicitas", "Felina", "Femke", "Fenja", "Fine", "Finia", "Finja", "Finnja", "Fiona", "Flora", "Florentine", "Francesca", "Franka", "Franziska", "Frederike", "Freya", "Frida", "Frieda", "Friederike", "Giada", "Gina", "Giulia", "Giuliana", "Greta", "Hailey", "Hana", "Hanna", "Hannah", "Heidi", "Helen", "Helena", "Helene", "Helin", "Henriette", "Henrike", "Hermine", "Ida", "Ilayda", "Imke", "Ina", "Ines", "Inga", "Inka", "Irem", "Isa", "Isabel", "Isabell", "Isabella", "Isabelle", "Ivonne", "Jacqueline", "Jamie", "Jamila", "Jana", "Jane", "Janin", "Janina", "Janine", "Janna", "Janne", "Jara", "Jasmin", "Jasmina", "Jasmine", "Jella", "Jenna", "Jennifer", "Jenny", "Jessica", "Jessy", "Jette", "Jil", "Jill", "Joana", "Joanna", "Joelina", "Joeline", "Joelle", "Johanna", "Joleen", "Jolie", "Jolien", "Jolin", "Jolina", "Joline", "Jona", "Jonah", "Jonna", "Josefin", "Josefine", "Josephin", "Josephine", "Josie", "Josy", "Joy", "Joyce", "Judith", "Judy", "Jule", "Julia", "Juliana", "Juliane", "Julie", "Julienne", "Julika", "Julina", "Juna", "Justine", "Kaja", "Karina", "Karla", "Karlotta", "Karolina", "Karoline", "Kassandra", "Katarina", "Katharina", "Kathrin", "Katja", "Katrin", "Kaya", "Kayra", "Kiana", "Kiara", "Kim", "Kimberley", "Kimberly", "Kira", "Klara", "Korinna", "Kristin", "Kyra", "Laila", "Lana", "Lara", "Larissa", "Laura", "Laureen", "Lavinia", "Lea", "Leah", "Leana", "Leandra", "Leann", "Lee", "Leila", "Lena", "Lene", "Leni", "Lenia", "Lenja", "Lenya", "Leona", "Leoni", "Leonie", "Leonora", "Leticia", "Letizia", "Levke", "Leyla", "Lia", "Liah", "Liana", "Lili", "Lilia", "Lilian", "Liliana", "Lilith", "Lilli", "Lillian", "Lilly", "Lily", "Lina", "Linda", "Lindsay", "Line", "Linn", "Linnea", "Lisa", "Lisann", "Lisanne", "Liv", "Livia", "Liz", "Lola", "Loreen", "Lorena", "Lotta", "Lotte", "Louisa", "Louise", "Luana", "Luca", "Lucia", "Lucie", "Lucienne", "Lucy", "Luisa", "Luise", "Luka", "Luna", "Luzie", "Lya", "Lydia", "Lyn", "Lynn", "Madeleine", "Madita", "Madleen", "Madlen", "Magdalena", "Maike", "Mailin", "Maira", "Maja", "Malena", "Malia", "Malin", "Malina", "Mandy", "Mara", "Marah", "Mareike", "Maren", "Maria", "Mariam", "Marie", "Marieke", "Mariella", "Marika", "Marina", "Marisa", "Marissa", "Marit", "Marla", "Marleen", "Marlen", "Marlena", "Marlene", "Marta", "Martha", "Mary", "Maryam", "Mathilda", "Mathilde", "Matilda", "Maxi", "Maxima", "Maxine", "Maya", "Mayra", "Medina", "Medine", "Meike", "Melanie", "Melek", "Melike", "Melina", "Melinda", "Melis", "Melisa", "Melissa", "Merle", "Merve", "Meryem", "Mette", "Mia", "Michaela", "Michelle", "Mieke", "Mila", "Milana", "Milena", "Milla", "Mina", "Mira", "Miray", "Miriam", "Mirja", "Mona", "Monique", "Nadine", "Nadja", "Naemi", "Nancy", "Naomi", "Natalia", "Natalie", "Nathalie", "Neele", "Nela", "Nele", "Nelli", "Nelly", "Nia", "Nicole", "Nika", "Nike", "Nikita", "Nila", "Nina", "Nisa", "Noemi", "Nora", "Olivia", "Patricia", "Patrizia", "Paula", "Paulina", "Pauline", "Penelope", "Philine", "Phoebe", "Pia", "Rahel", "Rania", "Rebecca", "Rebekka", "Riana", "Rieke", "Rike", "Romina", "Romy", "Ronja", "Rosa", "Rosalie", "Ruby", "Sabrina", "Sahra", "Sally", "Salome", "Samantha", "Samia", "Samira", "Sandra", "Sandy", "Sanja", "Saphira", "Sara", "Sarah", "Saskia", "Selin", "Selina", "Selma", "Sena", "Sidney", "Sienna", "Silja", "Sina", "Sinja", "Smilla", "Sofia", "Sofie", "Sonja", "Sophia", "Sophie", "Soraya", "Stefanie", "Stella", "Stephanie", "Stina", "Sude", "Summer", "Susanne", "Svea", "Svenja", "Sydney", "Tabea", "Talea", "Talia", "Tamara", "Tamia", "Tamina", "Tanja", "Tara", "Tarja", "Teresa", "Tessa", "Thalea", "Thalia", "Thea", "Theresa", "Tia", "Tina", "Tomke", "Tuana", "Valentina", "Valeria", "Valerie", "Vanessa", "Vera", "Veronika", "Victoria", "Viktoria", "Viola", "Vivian", "Vivien", "Vivienne", "Wibke", "Wiebke", "Xenia", "Yara", "Yaren", "Yasmin", "Ylvi", "Ylvie", "Yvonne", "Zara", "Zehra", "Zeynep", "Zoe", "Zoey", "Zoé" ], "last_name": [ "Abel", "Abicht", "Abraham", "Abramovic", "Abt", "Achilles", "Achkinadze", "Ackermann", "Adam", "Adams", "Ade", "Agostini", "Ahlke", "Ahrenberg", "Ahrens", "Aigner", "Albert", "Albrecht", "Alexa", "Alexander", "Alizadeh", "Allgeyer", "Amann", "Amberg", "Anding", "Anggreny", "Apitz", "Arendt", "Arens", "Arndt", "Aryee", "Aschenbroich", "Assmus", "Astafei", "Auer", "Axmann", "Baarck", "Bachmann", "Badane", "Bader", "Baganz", "Bahl", "Bak", "Balcer", "Balck", "Balkow", "Balnuweit", "Balzer", "Banse", "Barr", "Bartels", "Barth", "Barylla", "Baseda", "Battke", "Bauer", "Bauermeister", "Baumann", "Baumeister", "Bauschinger", "Bauschke", "Bayer", "Beavogui", "Beck", "Beckel", "Becker", "Beckmann", "Bedewitz", "Beele", "Beer", "Beggerow", "Beh", "Behr", "Behrenbruch", "Belz", "Bender", "Benecke", "Benner", "Benninger", "Benzing", "Berends", "Berger", "Berner", "Berning", "Bertenbreiter", "Best", "Bethke", "Betz", "Beushausen", "Beutelspacher", "Beyer", "Biba", "Bichler", "Bickel", "Biedermann", "Bieler", "Bielert", "Bienasch", "Bienias", "Biesenbach", "Bigdeli", "Birkemeyer", "Bittner", "Blank", "Blaschek", "Blassneck", "Bloch", "Blochwitz", "Blockhaus", "Blum", "Blume", "Bock", "Bode", "Bogdashin", "Bogenrieder", "Bohge", "Bolm", "Borgschulze", "Bork", "Bormann", "Bornscheuer", "Borrmann", "Borsch", "Boruschewski", "Bos", "Bosler", "Bourrouag", "Bouschen", "Boxhammer", "Boyde", "Bozsik", "Brand", "Brandenburg", "Brandis", "Brandt", "Brauer", "Braun", "Brehmer", "Breitenstein", "Bremer", "Bremser", "Brenner", "Brettschneider", "Breu", "Breuer", "Briesenick", "Bringmann", "Brinkmann", "Brix", "Broening", "Brosch", "Bruckmann", "Bruder", "Bruhns", "Brunner", "Bruns", "Bräutigam", "Brömme", "Brüggmann", "Buchholz", "Buchrucker", "Buder", "Bultmann", "Bunjes", "Burger", "Burghagen", "Burkhard", "Burkhardt", "Burmeister", "Busch", "Buschbaum", "Busemann", "Buss", "Busse", "Bussmann", "Byrd", "Bäcker", "Böhm", "Bönisch", "Börgeling", "Börner", "Böttner", "Büchele", "Bühler", "Büker", "Büngener", "Bürger", "Bürklein", "Büscher", "Büttner", "Camara", "Carlowitz", "Carlsohn", "Caspari", "Caspers", "Chapron", "Christ", "Cierpinski", "Clarius", "Cleem", "Cleve", "Co", "Conrad", "Cordes", "Cornelsen", "Cors", "Cotthardt", "Crews", "Cronjäger", "Crosskofp", "Da", "Dahm", "Dahmen", "Daimer", "Damaske", "Danneberg", "Danner", "Daub", "Daubner", "Daudrich", "Dauer", "Daum", "Dauth", "Dautzenberg", "De", "Decker", "Deckert", "Deerberg", "Dehmel", "Deja", "Delonge", "Demut", "Dengler", "Denner", "Denzinger", "Derr", "Dertmann", "Dethloff", "Deuschle", "Dieckmann", "Diedrich", "Diekmann", "Dienel", "Dies", "Dietrich", "Dietz", "Dietzsch", "Diezel", "Dilla", "Dingelstedt", "Dippl", "Dittmann", "Dittmar", "Dittmer", "Dix", "Dobbrunz", "Dobler", "Dohring", "Dolch", "Dold", "Dombrowski", "Donie", "Doskoczynski", "Dragu", "Drechsler", "Drees", "Dreher", "Dreier", "Dreissigacker", "Dressler", "Drews", "Duma", "Dutkiewicz", "Dyett", "Dylus", "Dächert", "Döbel", "Döring", "Dörner", "Dörre", "Dück", "Eberhard", "Eberhardt", "Ecker", "Eckhardt", "Edorh", "Effler", "Eggenmueller", "Ehm", "Ehmann", "Ehrig", "Eich", "Eichmann", "Eifert", "Einert", "Eisenlauer", "Ekpo", "Elbe", "Eleyth", "Elss", "Emert", "Emmelmann", "Ender", "Engel", "Engelen", "Engelmann", "Eplinius", "Erdmann", "Erhardt", "Erlei", "Erm", "Ernst", "Ertl", "Erwes", "Esenwein", "Esser", "Evers", "Everts", "Ewald", "Fahner", "Faller", "Falter", "Farber", "Fassbender", "Faulhaber", "Fehrig", "Feld", "Felke", "Feller", "Fenner", "Fenske", "Feuerbach", "Fietz", "Figl", "Figura", "Filipowski", "Filsinger", "Fincke", "Fink", "Finke", "Fischer", "Fitschen", "Fleischer", "Fleischmann", "Floder", "Florczak", "Flore", "Flottmann", "Forkel", "Forst", "Frahmeke", "Frank", "Franke", "Franta", "Frantz", "Franz", "Franzis", "Franzmann", "Frauen", "Frauendorf", "Freigang", "Freimann", "Freimuth", "Freisen", "Frenzel", "Frey", "Fricke", "Fried", "Friedek", "Friedenberg", "Friedmann", "Friedrich", "Friess", "Frisch", "Frohn", "Frosch", "Fuchs", "Fuhlbrügge", "Fusenig", "Fust", "Förster", "Gaba", "Gabius", "Gabler", "Gadschiew", "Gakstädter", "Galander", "Gamlin", "Gamper", "Gangnus", "Ganzmann", "Garatva", "Gast", "Gastel", "Gatzka", "Gauder", "Gebhardt", "Geese", "Gehre", "Gehrig", "Gehring", "Gehrke", "Geiger", "Geisler", "Geissler", "Gelling", "Gens", "Gerbennow", "Gerdel", "Gerhardt", "Gerschler", "Gerson", "Gesell", "Geyer", "Ghirmai", "Ghosh", "Giehl", "Gierisch", "Giesa", "Giesche", "Gilde", "Glatting", "Goebel", "Goedicke", "Goldbeck", "Goldfuss", "Goldkamp", "Goldkühle", "Goller", "Golling", "Gollnow", "Golomski", "Gombert", "Gotthardt", "Gottschalk", "Gotz", "Goy", "Gradzki", "Graf", "Grams", "Grasse", "Gratzky", "Grau", "Greb", "Green", "Greger", "Greithanner", "Greschner", "Griem", "Griese", "Grimm", "Gromisch", "Gross", "Grosser", "Grossheim", "Grosskopf", "Grothaus", "Grothkopp", "Grotke", "Grube", "Gruber", "Grundmann", "Gruning", "Gruszecki", "Gröss", "Grötzinger", "Grün", "Grüner", "Gummelt", "Gunkel", "Gunther", "Gutjahr", "Gutowicz", "Gutschank", "Göbel", "Göckeritz", "Göhler", "Görlich", "Görmer", "Götz", "Götzelmann", "Güldemeister", "Günther", "Günz", "Gürbig", "Haack", "Haaf", "Habel", "Hache", "Hackbusch", "Hackelbusch", "Hadfield", "Hadwich", "Haferkamp", "Hahn", "Hajek", "Hallmann", "Hamann", "Hanenberger", "Hannecker", "Hanniske", "Hansen", "Hardy", "Hargasser", "Harms", "Harnapp", "Harter", "Harting", "Hartlieb", "Hartmann", "Hartwig", "Hartz", "Haschke", "Hasler", "Hasse", "Hassfeld", "Haug", "Hauke", "Haupt", "Haverney", "Heberstreit", "Hechler", "Hecht", "Heck", "Hedermann", "Hehl", "Heidelmann", "Heidler", "Heinemann", "Heinig", "Heinke", "Heinrich", "Heinze", "Heiser", "Heist", "Hellmann", "Helm", "Helmke", "Helpling", "Hengmith", "Henkel", "Hennes", "Henry", "Hense", "Hensel", "Hentel", "Hentschel", "Hentschke", "Hepperle", "Herberger", "Herbrand", "Hering", "Hermann", "Hermecke", "Herms", "Herold", "Herrmann", "Herschmann", "Hertel", "Herweg", "Herwig", "Herzenberg", "Hess", "Hesse", "Hessek", "Hessler", "Hetzler", "Heuck", "Heydemüller", "Hiebl", "Hildebrand", "Hildenbrand", "Hilgendorf", "Hillard", "Hiller", "Hingsen", "Hingst", "Hinrichs", "Hirsch", "Hirschberg", "Hirt", "Hodea", "Hoffman", "Hoffmann", "Hofmann", "Hohenberger", "Hohl", "Hohn", "Hohnheiser", "Hold", "Holdt", "Holinski", "Holl", "Holtfreter", "Holz", "Holzdeppe", "Holzner", "Hommel", "Honz", "Hooss", "Hoppe", "Horak", "Horn", "Horna", "Hornung", "Hort", "Howard", "Huber", "Huckestein", "Hudak", "Huebel", "Hugo", "Huhn", "Hujo", "Huke", "Huls", "Humbert", "Huneke", "Huth", "Häber", "Häfner", "Höcke", "Höft", "Höhne", "Hönig", "Hördt", "Hübenbecker", "Hübl", "Hübner", "Hügel", "Hüttcher", "Hütter", "Ibe", "Ihly", "Illing", "Isak", "Isekenmeier", "Itt", "Jacob", "Jacobs", "Jagusch", "Jahn", "Jahnke", "Jakobs", "Jakubczyk", "Jambor", "Jamrozy", "Jander", "Janich", "Janke", "Jansen", "Jarets", "Jaros", "Jasinski", "Jasper", "Jegorov", "Jellinghaus", "Jeorga", "Jerschabek", "Jess", "John", "Jonas", "Jossa", "Jucken", "Jung", "Jungbluth", "Jungton", "Just", "Jürgens", "Kaczmarek", "Kaesmacher", "Kahl", "Kahlert", "Kahles", "Kahlmeyer", "Kaiser", "Kalinowski", "Kallabis", "Kallensee", "Kampf", "Kampschulte", "Kappe", "Kappler", "Karhoff", "Karrass", "Karst", "Karsten", "Karus", "Kass", "Kasten", "Kastner", "Katzinski", "Kaufmann", "Kaul", "Kausemann", "Kawohl", "Kazmarek", "Kedzierski", "Keil", "Keiner", "Keller", "Kelm", "Kempe", "Kemper", "Kempter", "Kerl", "Kern", "Kesselring", "Kesselschläger", "Kette", "Kettenis", "Keutel", "Kick", "Kiessling", "Kinadeter", "Kinzel", "Kinzy", "Kirch", "Kirst", "Kisabaka", "Klaas", "Klabuhn", "Klapper", "Klauder", "Klaus", "Kleeberg", "Kleiber", "Klein", "Kleinert", "Kleininger", "Kleinmann", "Kleinsteuber", "Kleiss", "Klemme", "Klimczak", "Klinger", "Klink", "Klopsch", "Klose", "Kloss", "Kluge", "Kluwe", "Knabe", "Kneifel", "Knetsch", "Knies", "Knippel", "Knobel", "Knoblich", "Knoll", "Knorr", "Knorscheidt", "Knut", "Kobs", "Koch", "Kochan", "Kock", "Koczulla", "Koderisch", "Koehl", "Koehler", "Koenig", "Koester", "Kofferschlager", "Koha", "Kohle", "Kohlmann", "Kohnle", "Kohrt", "Koj", "Kolb", "Koleiski", "Kolokas", "Komoll", "Konieczny", "Konig", "Konow", "Konya", "Koob", "Kopf", "Kosenkow", "Koster", "Koszewski", "Koubaa", "Kovacs", "Kowalick", "Kowalinski", "Kozakiewicz", "Krabbe", "Kraft", "Kral", "Kramer", "Krauel", "Kraus", "Krause", "Krauspe", "Kreb", "Krebs", "Kreissig", "Kresse", "Kreutz", "Krieger", "Krippner", "Krodinger", "Krohn", "Krol", "Kron", "Krueger", "Krug", "Kruger", "Krull", "Kruschinski", "Krämer", "Kröckert", "Kröger", "Krüger", "Kubera", "Kufahl", "Kuhlee", "Kuhnen", "Kulimann", "Kulma", "Kumbernuss", "Kummle", "Kunz", "Kupfer", "Kupprion", "Kuprion", "Kurnicki", "Kurrat", "Kurschilgen", "Kuschewitz", "Kuschmann", "Kuske", "Kustermann", "Kutscherauer", "Kutzner", "Kwadwo", "Kähler", "Käther", "Köhler", "Köhrbrück", "Köhre", "Kölotzei", "König", "Köpernick", "Köseoglu", "Kúhn", "Kúhnert", "Kühn", "Kühnel", "Kühnemund", "Kühnert", "Kühnke", "Küsters", "Küter", "Laack", "Lack", "Ladewig", "Lakomy", "Lammert", "Lamos", "Landmann", "Lang", "Lange", "Langfeld", "Langhirt", "Lanig", "Lauckner", "Lauinger", "Laurén", "Lausecker", "Laux", "Laws", "Lax", "Leberer", "Lehmann", "Lehner", "Leibold", "Leide", "Leimbach", "Leipold", "Leist", "Leiter", "Leiteritz", "Leitheim", "Leiwesmeier", "Lenfers", "Lenk", "Lenz", "Lenzen", "Leo", "Lepthin", "Lesch", "Leschnik", "Letzelter", "Lewin", "Lewke", "Leyckes", "Lg", "Lichtenfeld", "Lichtenhagen", "Lichtl", "Liebach", "Liebe", "Liebich", "Liebold", "Lieder", "Lienshöft", "Linden", "Lindenberg", "Lindenmayer", "Lindner", "Linke", "Linnenbaum", "Lippe", "Lipske", "Lipus", "Lischka", "Lobinger", "Logsch", "Lohmann", "Lohre", "Lohse", "Lokar", "Loogen", "Lorenz", "Losch", "Loska", "Lott", "Loy", "Lubina", "Ludolf", "Lufft", "Lukoschek", "Lutje", "Lutz", "Löser", "Löwa", "Lübke", "Maak", "Maczey", "Madetzky", "Madubuko", "Mai", "Maier", "Maisch", "Malek", "Malkus", "Mallmann", "Malucha", "Manns", "Manz", "Marahrens", "Marchewski", "Margis", "Markowski", "Marl", "Marner", "Marquart", "Marschek", "Martel", "Marten", "Martin", "Marx", "Marxen", "Mathes", "Mathies", "Mathiszik", "Matschke", "Mattern", "Matthes", "Matula", "Mau", "Maurer", "Mauroff", "May", "Maybach", "Mayer", "Mebold", "Mehl", "Mehlhorn", "Mehlorn", "Meier", "Meisch", "Meissner", "Meloni", "Melzer", "Menga", "Menne", "Mensah", "Mensing", "Merkel", "Merseburg", "Mertens", "Mesloh", "Metzger", "Metzner", "Mewes", "Meyer", "Michallek", "Michel", "Mielke", "Mikitenko", "Milde", "Minah", "Mintzlaff", "Mockenhaupt", "Moede", "Moedl", "Moeller", "Moguenara", "Mohr", "Mohrhard", "Molitor", "Moll", "Moller", "Molzan", "Montag", "Moormann", "Mordhorst", "Morgenstern", "Morhelfer", "Moritz", "Moser", "Motchebon", "Motzenbbäcker", "Mrugalla", "Muckenthaler", "Mues", "Muller", "Mulrain", "Mächtig", "Mäder", "Möcks", "Mögenburg", "Möhsner", "Möldner", "Möllenbeck", "Möller", "Möllinger", "Mörsch", "Mühleis", "Müller", "Münch", "Nabein", "Nabow", "Nagel", "Nannen", "Nastvogel", "Nau", "Naubert", "Naumann", "Ne", "Neimke", "Nerius", "Neubauer", "Neubert", "Neuendorf", "Neumair", "Neumann", "Neupert", "Neurohr", "Neuschwander", "Newton", "Ney", "Nicolay", "Niedermeier", "Nieklauson", "Niklaus", "Nitzsche", "Noack", "Nodler", "Nolte", "Normann", "Norris", "Northoff", "Nowak", "Nussbeck", "Nwachukwu", "Nytra", "Nöh", "Oberem", "Obergföll", "Obermaier", "Ochs", "Oeser", "Olbrich", "Onnen", "Ophey", "Oppong", "Orth", "Orthmann", "Oschkenat", "Osei", "Osenberg", "Ostendarp", "Ostwald", "Otte", "Otto", "Paesler", "Pajonk", "Pallentin", "Panzig", "Paschke", "Patzwahl", "Paukner", "Peselman", "Peter", "Peters", "Petzold", "Pfeiffer", "Pfennig", "Pfersich", "Pfingsten", "Pflieger", "Pflügner", "Philipp", "Pichlmaier", "Piesker", "Pietsch", "Pingpank", "Pinnock", "Pippig", "Pitschugin", "Plank", "Plass", "Platzer", "Plauk", "Plautz", "Pletsch", "Plotzitzka", "Poehn", "Poeschl", "Pogorzelski", "Pohl", "Pohland", "Pohle", "Polifka", "Polizzi", "Pollmächer", "Pomp", "Ponitzsch", "Porsche", "Porth", "Poschmann", "Poser", "Pottel", "Prah", "Prange", "Prediger", "Pressler", "Preuk", "Preuss", "Prey", "Priemer", "Proske", "Pusch", "Pöche", "Pöge", "Raabe", "Rabenstein", "Rach", "Radtke", "Rahn", "Ranftl", "Rangen", "Ranz", "Rapp", "Rath", "Rau", "Raubuch", "Raukuc", "Rautenkranz", "Rehwagen", "Reiber", "Reichardt", "Reichel", "Reichling", "Reif", "Reifenrath", "Reimann", "Reinberg", "Reinelt", "Reinhardt", "Reinke", "Reitze", "Renk", "Rentz", "Renz", "Reppin", "Restle", "Restorff", "Retzke", "Reuber", "Reumann", "Reus", "Reuss", "Reusse", "Rheder", "Rhoden", "Richards", "Richter", "Riedel", "Riediger", "Rieger", "Riekmann", "Riepl", "Riermeier", "Riester", "Riethmüller", "Rietmüller", "Rietscher", "Ringel", "Ringer", "Rink", "Ripken", "Ritosek", "Ritschel", "Ritter", "Rittweg", "Ritz", "Roba", "Rockmeier", "Rodehau", "Rodowski", "Roecker", "Roggatz", "Rohländer", "Rohrer", "Rokossa", "Roleder", "Roloff", "Roos", "Rosbach", "Roschinsky", "Rose", "Rosenauer", "Rosenbauer", "Rosenthal", "Rosksch", "Rossberg", "Rossler", "Roth", "Rother", "Ruch", "Ruckdeschel", "Rumpf", "Rupprecht", "Ruth", "Ryjikh", "Ryzih", "Rädler", "Räntsch", "Rödiger", "Röse", "Röttger", "Rücker", "Rüdiger", "Rüter", "Sachse", "Sack", "Saflanis", "Sagafe", "Sagonas", "Sahner", "Saile", "Sailer", "Salow", "Salzer", "Salzmann", "Sammert", "Sander", "Sarvari", "Sattelmaier", "Sauer", "Sauerland", "Saumweber", "Savoia", "Scc", "Schacht", "Schaefer", "Schaffarzik", "Schahbasian", "Scharf", "Schedler", "Scheer", "Schelk", "Schellenbeck", "Schembera", "Schenk", "Scherbarth", "Scherer", "Schersing", "Scherz", "Scheurer", "Scheuring", "Scheytt", "Schielke", "Schieskow", "Schildhauer", "Schilling", "Schima", "Schimmer", "Schindzielorz", "Schirmer", "Schirrmeister", "Schlachter", "Schlangen", "Schlawitz", "Schlechtweg", "Schley", "Schlicht", "Schlitzer", "Schmalzle", "Schmid", "Schmidt", "Schmidtchen", "Schmitt", "Schmitz", "Schmuhl", "Schneider", "Schnelting", "Schnieder", "Schniedermeier", "Schnürer", "Schoberg", "Scholz", "Schonberg", "Schondelmaier", "Schorr", "Schott", "Schottmann", "Schouren", "Schrader", "Schramm", "Schreck", "Schreiber", "Schreiner", "Schreiter", "Schroder", "Schröder", "Schuermann", "Schuff", "Schuhaj", "Schuldt", "Schult", "Schulte", "Schultz", "Schultze", "Schulz", "Schulze", "Schumacher", "Schumann", "Schupp", "Schuri", "Schuster", "Schwab", "Schwalm", "Schwanbeck", "Schwandke", "Schwanitz", "Schwarthoff", "Schwartz", "Schwarz", "Schwarzer", "Schwarzkopf", "Schwarzmeier", "Schwatlo", "Schweisfurth", "Schwennen", "Schwerdtner", "Schwidde", "Schwirkschlies", "Schwuchow", "Schäfer", "Schäffel", "Schäffer", "Schäning", "Schöckel", "Schönball", "Schönbeck", "Schönberg", "Schönebeck", "Schönenberger", "Schönfeld", "Schönherr", "Schönlebe", "Schötz", "Schüler", "Schüppel", "Schütz", "Schütze", "Seeger", "Seelig", "Sehls", "Seibold", "Seidel", "Seiders", "Seigel", "Seiler", "Seitz", "Semisch", "Senkel", "Sewald", "Siebel", "Siebert", "Siegling", "Sielemann", "Siemon", "Siener", "Sievers", "Siewert", "Sihler", "Sillah", "Simon", "Sinnhuber", "Sischka", "Skibicki", "Sladek", "Slotta", "Smieja", "Soboll", "Sokolowski", "Soller", "Sollner", "Sommer", "Somssich", "Sonn", "Sonnabend", "Spahn", "Spank", "Spelmeyer", "Spiegelburg", "Spielvogel", "Spinner", "Spitzmüller", "Splinter", "Sporrer", "Sprenger", "Spöttel", "Stahl", "Stang", "Stanger", "Stauss", "Steding", "Steffen", "Steffny", "Steidl", "Steigauf", "Stein", "Steinecke", "Steinert", "Steinkamp", "Steinmetz", "Stelkens", "Stengel", "Stengl", "Stenzel", "Stepanov", "Stephan", "Stern", "Steuk", "Stief", "Stifel", "Stoll", "Stolle", "Stolz", "Storl", "Storp", "Stoutjesdijk", "Stratmann", "Straub", "Strausa", "Streck", "Streese", "Strege", "Streit", "Streller", "Strieder", "Striezel", "Strogies", "Strohschank", "Strunz", "Strutz", "Stube", "Stöckert", "Stöppler", "Stöwer", "Stürmer", "Suffa", "Sujew", "Sussmann", "Suthe", "Sutschet", "Swillims", "Szendrei", "Sören", "Sürth", "Tafelmeier", "Tang", "Tasche", "Taufratshofer", "Tegethof", "Teichmann", "Tepper", "Terheiden", "Terlecki", "Teufel", "Theele", "Thieke", "Thimm", "Thiomas", "Thomas", "Thriene", "Thränhardt", "Thust", "Thyssen", "Thöne", "Tidow", "Tiedtke", "Tietze", "Tilgner", "Tillack", "Timmermann", "Tischler", "Tischmann", "Tittman", "Tivontschik", "Tonat", "Tonn", "Trampeli", "Trauth", "Trautmann", "Travan", "Treff", "Tremmel", "Tress", "Tsamonikian", "Tschiers", "Tschirch", "Tuch", "Tucholke", "Tudow", "Tuschmo", "Tächl", "Többen", "Töpfer", "Uhlemann", "Uhlig", "Uhrig", "Uibel", "Uliczka", "Ullmann", "Ullrich", "Umbach", "Umlauft", "Umminger", "Unger", "Unterpaintner", "Urban", "Urbaniak", "Urbansky", "Urhig", "Vahlensieck", "Van", "Vangermain", "Vater", "Venghaus", "Verniest", "Verzi", "Vey", "Viellehner", "Vieweg", "Voelkel", "Vogel", "Vogelgsang", "Vogt", "Voigt", "Vokuhl", "Volk", "Volker", "Volkmann", "Von", "Vona", "Vontein", "Wachenbrunner", "Wachtel", "Wagner", "Waibel", "Wakan", "Waldmann", "Wallner", "Wallstab", "Walter", "Walther", "Walton", "Walz", "Wanner", "Wartenberg", "Waschbüsch", "Wassilew", "Wassiluk", "Weber", "Wehrsen", "Weidlich", "Weidner", "Weigel", "Weight", "Weiler", "Weimer", "Weis", "Weiss", "Weller", "Welsch", "Welz", "Welzel", "Weniger", "Wenk", "Werle", "Werner", "Werrmann", "Wessel", "Wessinghage", "Weyel", "Wezel", "Wichmann", "Wickert", "Wiebe", "Wiechmann", "Wiegelmann", "Wierig", "Wiese", "Wieser", "Wilhelm", "Wilky", "Will", "Willwacher", "Wilts", "Wimmer", "Winkelmann", "Winkler", "Winter", "Wischek", "Wischer", "Wissing", "Wittich", "Wittl", "Wolf", "Wolfarth", "Wolff", "Wollenberg", "Wollmann", "Woytkowska", "Wujak", "Wurm", "Wyludda", "Wölpert", "Wöschler", "Wühn", "Wünsche", "Zach", "Zaczkiewicz", "Zahn", "Zaituc", "Zandt", "Zanner", "Zapletal", "Zauber", "Zeidler", "Zekl", "Zender", "Zeuch", "Zeyen", "Zeyhle", "Ziegler", "Zimanyi", "Zimmer", "Zimmermann", "Zinser", "Zintl", "Zipp", "Zipse", "Zschunke", "Zuber", "Zwiener", "Zümsande", "Östringer", "Überacker" ], "prefix": [ "Hr.", "Fr.", "Dr.", "Prof. Dr." ], "nobility_title_prefix": [ "zu", "von", "vom", "von der" ], "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{nobility_title_prefix} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ] }; de.phone_number = { "formats": [ "(0###) #########", "(0####) #######", "+49-###-#######", "+49-####-########" ] }; de.cell_phone = { "formats": [ "+49-1##-#######", "+49-1###-########" ] }; },{}],12:[function(require,module,exports){ var de_AT = {}; module["exports"] = de_AT; de_AT.title = "German (Austria)"; de_AT.address = { "country": [ "Ägypten", "Äquatorialguinea", "Äthiopien", "Österreich", "Afghanistan", "Albanien", "Algerien", "Amerikanisch-Samoa", "Amerikanische Jungferninseln", "Andorra", "Angola", "Anguilla", "Antarktis", "Antigua und Barbuda", "Argentinien", "Armenien", "Aruba", "Aserbaidschan", "Australien", "Bahamas", "Bahrain", "Bangladesch", "Barbados", "Belarus", "Belgien", "Belize", "Benin", "die Bermudas", "Bhutan", "Bolivien", "Bosnien und Herzegowina", "Botsuana", "Bouvetinsel", "Brasilien", "Britische Jungferninseln", "Britisches Territorium im Indischen Ozean", "Brunei Darussalam", "Bulgarien", "Burkina Faso", "Burundi", "Chile", "China", "Cookinseln", "Costa Rica", "Dänemark", "Demokratische Republik Kongo", "Demokratische Volksrepublik Korea", "Deutschland", "Dominica", "Dominikanische Republik", "Dschibuti", "Ecuador", "El Salvador", "Eritrea", "Estland", "Färöer", "Falklandinseln", "Fidschi", "Finnland", "Frankreich", "Französisch-Guayana", "Französisch-Polynesien", "Französische Gebiete im südlichen Indischen Ozean", "Gabun", "Gambia", "Georgien", "Ghana", "Gibraltar", "Grönland", "Grenada", "Griechenland", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard und McDonaldinseln", "Honduras", "Hongkong", "Indien", "Indonesien", "Irak", "Iran", "Irland", "Island", "Israel", "Italien", "Jamaika", "Japan", "Jemen", "Jordanien", "Jugoslawien", "Kaimaninseln", "Kambodscha", "Kamerun", "Kanada", "Kap Verde", "Kasachstan", "Katar", "Kenia", "Kirgisistan", "Kiribati", "Kleinere amerikanische Überseeinseln", "Kokosinseln", "Kolumbien", "Komoren", "Kongo", "Kroatien", "Kuba", "Kuwait", "Laos", "Lesotho", "Lettland", "Libanon", "Liberia", "Libyen", "Liechtenstein", "Litauen", "Luxemburg", "Macau", "Madagaskar", "Malawi", "Malaysia", "Malediven", "Mali", "Malta", "ehemalige jugoslawische Republik Mazedonien", "Marokko", "Marshallinseln", "Martinique", "Mauretanien", "Mauritius", "Mayotte", "Mexiko", "Mikronesien", "Monaco", "Mongolei", "Montserrat", "Mosambik", "Myanmar", "Nördliche Marianen", "Namibia", "Nauru", "Nepal", "Neukaledonien", "Neuseeland", "Nicaragua", "Niederländische Antillen", "Niederlande", "Niger", "Nigeria", "Niue", "Norfolkinsel", "Norwegen", "Oman", "Osttimor", "Pakistan", "Palau", "Panama", "Papua-Neuguinea", "Paraguay", "Peru", "Philippinen", "Pitcairninseln", "Polen", "Portugal", "Puerto Rico", "Réunion", "Republik Korea", "Republik Moldau", "Ruanda", "Rumänien", "Russische Föderation", "São Tomé und Príncipe", "Südafrika", "Südgeorgien und Südliche Sandwichinseln", "Salomonen", "Sambia", "Samoa", "San Marino", "Saudi-Arabien", "Schweden", "Schweiz", "Senegal", "Seychellen", "Sierra Leone", "Simbabwe", "Singapur", "Slowakei", "Slowenien", "Somalien", "Spanien", "Sri Lanka", "St. Helena", "St. Kitts und Nevis", "St. Lucia", "St. Pierre und Miquelon", "St. Vincent und die Grenadinen", "Sudan", "Surinam", "Svalbard und Jan Mayen", "Swasiland", "Syrien", "Türkei", "Tadschikistan", "Taiwan", "Tansania", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad und Tobago", "Tschad", "Tschechische Republik", "Tunesien", "Turkmenistan", "Turks- und Caicosinseln", "Tuvalu", "Uganda", "Ukraine", "Ungarn", "Uruguay", "Usbekistan", "Vanuatu", "Vatikanstadt", "Venezuela", "Vereinigte Arabische Emirate", "Vereinigte Staaten", "Vereinigtes Königreich", "Vietnam", "Wallis und Futuna", "Weihnachtsinsel", "Westsahara", "Zentralafrikanische Republik", "Zypern" ], "street_root": [ "Ahorn", "Ahorngasse (St. Andrä)", "Alleestraße (Poysbrunn)", "Alpenlandstraße", "Alte Poststraße", "Alte Ufergasse", "Am Kronawett (Hagenbrunn)", "Am Mühlwasser", "Am Rebenhang", "Am Sternweg", "Anton Wildgans-Straße", "Auer-von-Welsbach-Weg", "Auf der Stift", "Aufeldgasse", "Bahngasse", "Bahnhofstraße", "Bahnstraße (Gerhaus)", "Basteigasse", "Berggasse", "Bergstraße", "Birkenweg", "Blasiussteig", "Blattur", "Bruderhofgasse", "Brunnelligasse", "Bühelweg", "Darnautgasse", "Donaugasse", "Dorfplatz (Haselbach)", "Dr.-Oberreiter-Straße", "Dr.Karl Holoubek-Str.", "Drautal Bundesstraße", "Dürnrohrer Straße", "Ebenthalerstraße", "Eckgrabenweg", "Erlenstraße", "Erlenweg", "Eschenweg", "Etrichgasse", "Fassergasse", "Feichteggerwiese", "Feld-Weg", "Feldgasse", "Feldstapfe", "Fischpointweg", "Flachbergstraße", "Flurweg", "Franz Schubert-Gasse", "Franz-Schneeweiß-Weg", "Franz-von-Assisi-Straße", "Fritz-Pregl-Straße", "Fuchsgrubenweg", "Födlerweg", "Föhrenweg", "Fünfhaus (Paasdorf)", "Gabelsbergerstraße", "Gartenstraße", "Geigen", "Geigergasse", "Gemeindeaugasse", "Gemeindeplatz", "Georg-Aichinger-Straße", "Glanfeldbachweg", "Graben (Burgauberg)", "Grub", "Gröretgasse", "Grünbach", "Gösting", "Hainschwang", "Hans-Mauracher-Straße", "Hart", "Teichstraße", "Hauptplatz", "Hauptstraße", "Heideweg", "Heinrich Landauer Gasse", "Helenengasse", "Hermann von Gilmweg", "Hermann-Löns-Gasse", "Herminengasse", "Hernstorferstraße", "Hirsdorf", "Hochfeistritz", "Hochhaus Neue Donau", "Hof", "Hussovits Gasse", "Höggen", "Hütten", "Janzgasse", "Jochriemgutstraße", "Johann-Strauß-Gasse", "Julius-Raab-Straße", "Kahlenberger Straße", "Karl Kraft-Straße", "Kegelprielstraße", "Keltenberg-Eponaweg", "Kennedybrücke", "Kerpelystraße", "Kindergartenstraße", "Kinderheimgasse", "Kirchenplatz", "Kirchweg", "Klagenfurter Straße", "Klamm", "Kleinbaumgarten", "Klingergasse", "Koloniestraße", "Konrad-Duden-Gasse", "Krankenhausstraße", "Kubinstraße", "Köhldorfergasse", "Lackenweg", "Lange Mekotte", "Leifling", "Leopold Frank-Straße (Pellendorf)", "Lerchengasse (Pirka)", "Lichtensternsiedlung V", "Lindenhofstraße", "Lindenweg", "Luegstraße", "Maierhof", "Malerweg", "Mitterweg", "Mittlere Hauptstraße", "Moosbachgasse", "Morettigasse", "Musikpavillon Riezlern", "Mühlboden", "Mühle", "Mühlenweg", "Neustiftgasse", "Niederegg", "Niedergams", "Nordwestbahnbrücke", "Oberbödenalm", "Obere Berggasse", "Oedt", "Am Färberberg", "Ottogasse", "Paul Peters-Gasse", "Perspektivstraße", "Poppichl", "Privatweg", "Prixgasse", "Pyhra", "Radetzkystraße", "Raiden", "Reichensteinstraße", "Reitbauernstraße", "Reiterweg", "Reitschulgasse", "Ringweg", "Rupertistraße", "Römerstraße", "Römerweg", "Sackgasse", "Schaunbergerstraße", "Schloßweg", "Schulgasse (Langeck)", "Schönholdsiedlung", "Seeblick", "Seestraße", "Semriacherstraße", "Simling", "Sipbachzeller Straße", "Sonnenweg", "Spargelfeldgasse", "Spiesmayrweg", "Sportplatzstraße", "St.Ulrich", "Steilmannstraße", "Steingrüneredt", "Strassfeld", "Straßerau", "Stöpflweg", "Stüra", "Taferngasse", "Tennweg", "Thomas Koschat-Gasse", "Tiroler Straße", "Torrogasse", "Uferstraße (Schwarzau am Steinfeld)", "Unterdörfl", "Unterer Sonnrainweg", "Verwaltersiedlung", "Waldhang", "Wasen", "Weidenstraße", "Weiherweg", "Wettsteingasse", "Wiener Straße", "Windisch", "Zebragasse", "Zellerstraße", "Ziehrerstraße", "Zulechnerweg", "Zwergjoch", "Ötzbruck" ], "building_number": [ "###", "##", "#", "##a", "##b", "##c" ], "secondary_address": [ "Apt. ###", "Zimmer ###", "# OG" ], "postcode": [ "####" ], "state": [ "Burgenland", "Kärnten", "Niederösterreich", "Oberösterreich", "Salzburg", "Steiermark", "Tirol", "Vorarlberg", "Wien" ], "state_abbr": [ "Bgld.", "Ktn.", "NÖ", "OÖ", "Sbg.", "Stmk.", "T", "Vbg.", "W" ], "city_name": [ "Aigen im Mühlkreis", "Allerheiligen bei Wildon", "Altenfelden", "Arriach", "Axams", "Baumgartenberg", "Bergern im Dunkelsteinerwald", "Berndorf bei Salzburg", "Bregenz", "Breitenbach am Inn", "Deutsch-Wagram", "Dienten am Hochkönig", "Dietach", "Dornbirn", "Dürnkrut", "Eben im Pongau", "Ebenthal in Kärnten", "Eichgraben", "Eisenstadt", "Ellmau", "Feistritz am Wechsel", "Finkenberg", "Fiss", "Frantschach-St. Gertraud", "Fritzens", "Gams bei Hieflau", "Geiersberg", "Graz", "Großhöflein", "Gößnitz", "Hartl", "Hausleiten", "Herzogenburg", "Hinterhornbach", "Hochwolkersdorf", "Ilz", "Ilztal", "Innerbraz", "Innsbruck", "Itter", "Jagerberg", "Jeging", "Johnsbach", "Johnsdorf-Brunn", "Jungholz", "Kirchdorf am Inn", "Klagenfurt", "Kottes-Purk", "Krumau am Kamp", "Krumbach", "Lavamünd", "Lech", "Linz", "Ludesch", "Lödersdorf", "Marbach an der Donau", "Mattsee", "Mautern an der Donau", "Mauterndorf", "Mitterbach am Erlaufsee", "Neudorf bei Passail", "Neudorf bei Staatz", "Neukirchen an der Enknach", "Neustift an der Lafnitz", "Niederleis", "Oberndorf in Tirol", "Oberstorcha", "Oberwaltersdorf", "Oed-Oehling", "Ort im Innkreis", "Pilgersdorf", "Pitschgau", "Pollham", "Preitenegg", "Purbach am Neusiedler See", "Rabenwald", "Raiding", "Rastenfeld", "Ratten", "Rettenegg", "Salzburg", "Sankt Johann im Saggautal", "St. Peter am Kammersberg", "St. Pölten", "St. Veit an der Glan", "Taxenbach", "Tragwein", "Trebesing", "Trieben", "Turnau", "Ungerdorf", "Unterauersbach", "Unterstinkenbrunn", "Untertilliach", "Uttendorf", "Vals", "Velden am Wörther See", "Viehhofen", "Villach", "Vitis", "Waidhofen an der Thaya", "Waldkirchen am Wesen", "Weißkirchen an der Traun", "Wien", "Wimpassing im Schwarzatale", "Ybbs an der Donau", "Ybbsitz", "Yspertal", "Zeillern", "Zell am Pettenfirst", "Zell an der Pram", "Zerlach", "Zwölfaxing", "Öblarn", "Übelbach", "Überackern", "Übersaxen", "Übersbach" ], "city": [ "#{city_name}" ], "street_name": [ "#{street_root}" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Österreich" ] }; de_AT.company = { "suffix": [ "GmbH", "AG", "Gruppe", "KG", "GmbH & Co. KG", "UG", "OHG" ], "legal_form": [ "GmbH", "AG", "Gruppe", "KG", "GmbH & Co. KG", "UG", "OHG" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} und #{Name.last_name}" ] }; de_AT.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "info", "name", "net", "org", "de", "ch", "at" ] }; de_AT.name = { "first_name": [ "Aaron", "Abdul", "Abdullah", "Adam", "Adrian", "Adriano", "Ahmad", "Ahmed", "Ahmet", "Alan", "Albert", "Alessandro", "Alessio", "Alex", "Alexander", "Alfred", "Ali", "Amar", "Amir", "Amon", "Andre", "Andreas", "Andrew", "Angelo", "Ansgar", "Anthony", "Anton", "Antonio", "Arda", "Arian", "Armin", "Arne", "Arno", "Arthur", "Artur", "Arved", "Arvid", "Ayman", "Baran", "Baris", "Bastian", "Batuhan", "Bela", "Ben", "Benedikt", "Benjamin", "Bennet", "Bennett", "Benno", "Bent", "Berat", "Berkay", "Bernd", "Bilal", "Bjarne", "Björn", "Bo", "Boris", "Brandon", "Brian", "Bruno", "Bryan", "Burak", "Calvin", "Can", "Carl", "Carlo", "Carlos", "Caspar", "Cedric", "Cedrik", "Cem", "Charlie", "Chris", "Christian", "Christiano", "Christoph", "Christopher", "Claas", "Clemens", "Colin", "Collin", "Conner", "Connor", "Constantin", "Corvin", "Curt", "Damian", "Damien", "Daniel", "Danilo", "Danny", "Darian", "Dario", "Darius", "Darren", "David", "Davide", "Davin", "Dean", "Deniz", "Dennis", "Denny", "Devin", "Diego", "Dion", "Domenic", "Domenik", "Dominic", "Dominik", "Dorian", "Dustin", "Dylan", "Ecrin", "Eddi", "Eddy", "Edgar", "Edwin", "Efe", "Ege", "Elia", "Eliah", "Elias", "Elijah", "Emanuel", "Emil", "Emilian", "Emilio", "Emir", "Emirhan", "Emre", "Enes", "Enno", "Enrico", "Eren", "Eric", "Erik", "Etienne", "Fabian", "Fabien", "Fabio", "Fabrice", "Falk", "Felix", "Ferdinand", "Fiete", "Filip", "Finlay", "Finley", "Finn", "Finnley", "Florian", "Francesco", "Franz", "Frederic", "Frederick", "Frederik", "Friedrich", "Fritz", "Furkan", "Fynn", "Gabriel", "Georg", "Gerrit", "Gian", "Gianluca", "Gino", "Giuliano", "Giuseppe", "Gregor", "Gustav", "Hagen", "Hamza", "Hannes", "Hanno", "Hans", "Hasan", "Hassan", "Hauke", "Hendrik", "Hennes", "Henning", "Henri", "Henrick", "Henrik", "Henry", "Hugo", "Hussein", "Ian", "Ibrahim", "Ilias", "Ilja", "Ilyas", "Immanuel", "Ismael", "Ismail", "Ivan", "Iven", "Jack", "Jacob", "Jaden", "Jakob", "Jamal", "James", "Jamie", "Jan", "Janek", "Janis", "Janne", "Jannek", "Jannes", "Jannik", "Jannis", "Jano", "Janosch", "Jared", "Jari", "Jarne", "Jarno", "Jaron", "Jason", "Jasper", "Jay", "Jayden", "Jayson", "Jean", "Jens", "Jeremias", "Jeremie", "Jeremy", "Jermaine", "Jerome", "Jesper", "Jesse", "Jim", "Jimmy", "Joe", "Joel", "Joey", "Johann", "Johannes", "John", "Johnny", "Jon", "Jona", "Jonah", "Jonas", "Jonathan", "Jonte", "Joost", "Jordan", "Joris", "Joscha", "Joschua", "Josef", "Joseph", "Josh", "Joshua", "Josua", "Juan", "Julian", "Julien", "Julius", "Juri", "Justin", "Justus", "Kaan", "Kai", "Kalle", "Karim", "Karl", "Karlo", "Kay", "Keanu", "Kenan", "Kenny", "Keno", "Kerem", "Kerim", "Kevin", "Kian", "Kilian", "Kim", "Kimi", "Kjell", "Klaas", "Klemens", "Konrad", "Konstantin", "Koray", "Korbinian", "Kurt", "Lars", "Lasse", "Laurence", "Laurens", "Laurenz", "Laurin", "Lean", "Leander", "Leandro", "Leif", "Len", "Lenn", "Lennard", "Lennart", "Lennert", "Lennie", "Lennox", "Lenny", "Leo", "Leon", "Leonard", "Leonardo", "Leonhard", "Leonidas", "Leopold", "Leroy", "Levent", "Levi", "Levin", "Lewin", "Lewis", "Liam", "Lian", "Lias", "Lino", "Linus", "Lio", "Lion", "Lionel", "Logan", "Lorenz", "Lorenzo", "Loris", "Louis", "Luan", "Luc", "Luca", "Lucas", "Lucian", "Lucien", "Ludwig", "Luis", "Luiz", "Luk", "Luka", "Lukas", "Luke", "Lutz", "Maddox", "Mads", "Magnus", "Maik", "Maksim", "Malik", "Malte", "Manuel", "Marc", "Marcel", "Marco", "Marcus", "Marek", "Marian", "Mario", "Marius", "Mark", "Marko", "Markus", "Marlo", "Marlon", "Marten", "Martin", "Marvin", "Marwin", "Mateo", "Mathis", "Matis", "Mats", "Matteo", "Mattes", "Matthias", "Matthis", "Matti", "Mattis", "Maurice", "Max", "Maxim", "Maximilian", "Mehmet", "Meik", "Melvin", "Merlin", "Mert", "Michael", "Michel", "Mick", "Miguel", "Mika", "Mikail", "Mike", "Milan", "Milo", "Mio", "Mirac", "Mirco", "Mirko", "Mohamed", "Mohammad", "Mohammed", "Moritz", "Morten", "Muhammed", "Murat", "Mustafa", "Nathan", "Nathanael", "Nelson", "Neo", "Nevio", "Nick", "Niclas", "Nico", "Nicolai", "Nicolas", "Niels", "Nikita", "Niklas", "Niko", "Nikolai", "Nikolas", "Nils", "Nino", "Noah", "Noel", "Norman", "Odin", "Oke", "Ole", "Oliver", "Omar", "Onur", "Oscar", "Oskar", "Pascal", "Patrice", "Patrick", "Paul", "Peer", "Pepe", "Peter", "Phil", "Philip", "Philipp", "Pierre", "Piet", "Pit", "Pius", "Quentin", "Quirin", "Rafael", "Raik", "Ramon", "Raphael", "Rasmus", "Raul", "Rayan", "René", "Ricardo", "Riccardo", "Richard", "Rick", "Rico", "Robert", "Robin", "Rocco", "Roman", "Romeo", "Ron", "Ruben", "Ryan", "Said", "Salih", "Sam", "Sami", "Sammy", "Samuel", "Sandro", "Santino", "Sascha", "Sean", "Sebastian", "Selim", "Semih", "Shawn", "Silas", "Simeon", "Simon", "Sinan", "Sky", "Stefan", "Steffen", "Stephan", "Steve", "Steven", "Sven", "Sönke", "Sören", "Taha", "Tamino", "Tammo", "Tarik", "Tayler", "Taylor", "Teo", "Theo", "Theodor", "Thies", "Thilo", "Thomas", "Thorben", "Thore", "Thorge", "Tiago", "Til", "Till", "Tillmann", "Tim", "Timm", "Timo", "Timon", "Timothy", "Tino", "Titus", "Tizian", "Tjark", "Tobias", "Tom", "Tommy", "Toni", "Tony", "Torben", "Tore", "Tristan", "Tyler", "Tyron", "Umut", "Valentin", "Valentino", "Veit", "Victor", "Viktor", "Vin", "Vincent", "Vito", "Vitus", "Wilhelm", "Willi", "William", "Willy", "Xaver", "Yannic", "Yannick", "Yannik", "Yannis", "Yasin", "Youssef", "Yunus", "Yusuf", "Yven", "Yves", "Ömer", "Aaliyah", "Abby", "Abigail", "Ada", "Adelina", "Adriana", "Aileen", "Aimee", "Alana", "Alea", "Alena", "Alessa", "Alessia", "Alexa", "Alexandra", "Alexia", "Alexis", "Aleyna", "Alia", "Alica", "Alice", "Alicia", "Alina", "Alisa", "Alisha", "Alissa", "Aliya", "Aliyah", "Allegra", "Alma", "Alyssa", "Amalia", "Amanda", "Amelia", "Amelie", "Amina", "Amira", "Amy", "Ana", "Anabel", "Anastasia", "Andrea", "Angela", "Angelina", "Angelique", "Anja", "Ann", "Anna", "Annabel", "Annabell", "Annabelle", "Annalena", "Anne", "Anneke", "Annelie", "Annemarie", "Anni", "Annie", "Annika", "Anny", "Anouk", "Antonia", "Arda", "Ariana", "Ariane", "Arwen", "Ashley", "Asya", "Aurelia", "Aurora", "Ava", "Ayleen", "Aylin", "Ayse", "Azra", "Betty", "Bianca", "Bianka", "Caitlin", "Cara", "Carina", "Carla", "Carlotta", "Carmen", "Carolin", "Carolina", "Caroline", "Cassandra", "Catharina", "Catrin", "Cecile", "Cecilia", "Celia", "Celina", "Celine", "Ceyda", "Ceylin", "Chantal", "Charleen", "Charlotta", "Charlotte", "Chayenne", "Cheyenne", "Chiara", "Christin", "Christina", "Cindy", "Claire", "Clara", "Clarissa", "Colleen", "Collien", "Cora", "Corinna", "Cosima", "Dana", "Daniela", "Daria", "Darleen", "Defne", "Delia", "Denise", "Diana", "Dilara", "Dina", "Dorothea", "Ecrin", "Eda", "Eileen", "Ela", "Elaine", "Elanur", "Elea", "Elena", "Eleni", "Eleonora", "Eliana", "Elif", "Elina", "Elisa", "Elisabeth", "Ella", "Ellen", "Elli", "Elly", "Elsa", "Emelie", "Emely", "Emilia", "Emilie", "Emily", "Emma", "Emmely", "Emmi", "Emmy", "Enie", "Enna", "Enya", "Esma", "Estelle", "Esther", "Eva", "Evelin", "Evelina", "Eveline", "Evelyn", "Fabienne", "Fatima", "Fatma", "Felicia", "Felicitas", "Felina", "Femke", "Fenja", "Fine", "Finia", "Finja", "Finnja", "Fiona", "Flora", "Florentine", "Francesca", "Franka", "Franziska", "Frederike", "Freya", "Frida", "Frieda", "Friederike", "Giada", "Gina", "Giulia", "Giuliana", "Greta", "Hailey", "Hana", "Hanna", "Hannah", "Heidi", "Helen", "Helena", "Helene", "Helin", "Henriette", "Henrike", "Hermine", "Ida", "Ilayda", "Imke", "Ina", "Ines", "Inga", "Inka", "Irem", "Isa", "Isabel", "Isabell", "Isabella", "Isabelle", "Ivonne", "Jacqueline", "Jamie", "Jamila", "Jana", "Jane", "Janin", "Janina", "Janine", "Janna", "Janne", "Jara", "Jasmin", "Jasmina", "Jasmine", "Jella", "Jenna", "Jennifer", "Jenny", "Jessica", "Jessy", "Jette", "Jil", "Jill", "Joana", "Joanna", "Joelina", "Joeline", "Joelle", "Johanna", "Joleen", "Jolie", "Jolien", "Jolin", "Jolina", "Joline", "Jona", "Jonah", "Jonna", "Josefin", "Josefine", "Josephin", "Josephine", "Josie", "Josy", "Joy", "Joyce", "Judith", "Judy", "Jule", "Julia", "Juliana", "Juliane", "Julie", "Julienne", "Julika", "Julina", "Juna", "Justine", "Kaja", "Karina", "Karla", "Karlotta", "Karolina", "Karoline", "Kassandra", "Katarina", "Katharina", "Kathrin", "Katja", "Katrin", "Kaya", "Kayra", "Kiana", "Kiara", "Kim", "Kimberley", "Kimberly", "Kira", "Klara", "Korinna", "Kristin", "Kyra", "Laila", "Lana", "Lara", "Larissa", "Laura", "Laureen", "Lavinia", "Lea", "Leah", "Leana", "Leandra", "Leann", "Lee", "Leila", "Lena", "Lene", "Leni", "Lenia", "Lenja", "Lenya", "Leona", "Leoni", "Leonie", "Leonora", "Leticia", "Letizia", "Levke", "Leyla", "Lia", "Liah", "Liana", "Lili", "Lilia", "Lilian", "Liliana", "Lilith", "Lilli", "Lillian", "Lilly", "Lily", "Lina", "Linda", "Lindsay", "Line", "Linn", "Linnea", "Lisa", "Lisann", "Lisanne", "Liv", "Livia", "Liz", "Lola", "Loreen", "Lorena", "Lotta", "Lotte", "Louisa", "Louise", "Luana", "Luca", "Lucia", "Lucie", "Lucienne", "Lucy", "Luisa", "Luise", "Luka", "Luna", "Luzie", "Lya", "Lydia", "Lyn", "Lynn", "Madeleine", "Madita", "Madleen", "Madlen", "Magdalena", "Maike", "Mailin", "Maira", "Maja", "Malena", "Malia", "Malin", "Malina", "Mandy", "Mara", "Marah", "Mareike", "Maren", "Maria", "Mariam", "Marie", "Marieke", "Mariella", "Marika", "Marina", "Marisa", "Marissa", "Marit", "Marla", "Marleen", "Marlen", "Marlena", "Marlene", "Marta", "Martha", "Mary", "Maryam", "Mathilda", "Mathilde", "Matilda", "Maxi", "Maxima", "Maxine", "Maya", "Mayra", "Medina", "Medine", "Meike", "Melanie", "Melek", "Melike", "Melina", "Melinda", "Melis", "Melisa", "Melissa", "Merle", "Merve", "Meryem", "Mette", "Mia", "Michaela", "Michelle", "Mieke", "Mila", "Milana", "Milena", "Milla", "Mina", "Mira", "Miray", "Miriam", "Mirja", "Mona", "Monique", "Nadine", "Nadja", "Naemi", "Nancy", "Naomi", "Natalia", "Natalie", "Nathalie", "Neele", "Nela", "Nele", "Nelli", "Nelly", "Nia", "Nicole", "Nika", "Nike", "Nikita", "Nila", "Nina", "Nisa", "Noemi", "Nora", "Olivia", "Patricia", "Patrizia", "Paula", "Paulina", "Pauline", "Penelope", "Philine", "Phoebe", "Pia", "Rahel", "Rania", "Rebecca", "Rebekka", "Riana", "Rieke", "Rike", "Romina", "Romy", "Ronja", "Rosa", "Rosalie", "Ruby", "Sabrina", "Sahra", "Sally", "Salome", "Samantha", "Samia", "Samira", "Sandra", "Sandy", "Sanja", "Saphira", "Sara", "Sarah", "Saskia", "Selin", "Selina", "Selma", "Sena", "Sidney", "Sienna", "Silja", "Sina", "Sinja", "Smilla", "Sofia", "Sofie", "Sonja", "Sophia", "Sophie", "Soraya", "Stefanie", "Stella", "Stephanie", "Stina", "Sude", "Summer", "Susanne", "Svea", "Svenja", "Sydney", "Tabea", "Talea", "Talia", "Tamara", "Tamia", "Tamina", "Tanja", "Tara", "Tarja", "Teresa", "Tessa", "Thalea", "Thalia", "Thea", "Theresa", "Tia", "Tina", "Tomke", "Tuana", "Valentina", "Valeria", "Valerie", "Vanessa", "Vera", "Veronika", "Victoria", "Viktoria", "Viola", "Vivian", "Vivien", "Vivienne", "Wibke", "Wiebke", "Xenia", "Yara", "Yaren", "Yasmin", "Ylvi", "Ylvie", "Yvonne", "Zara", "Zehra", "Zeynep", "Zoe", "Zoey", "Zoé" ], "last_name": [ "Abel", "Abicht", "Abraham", "Abramovic", "Abt", "Achilles", "Achkinadze", "Ackermann", "Adam", "Adams", "Ade", "Agostini", "Ahlke", "Ahrenberg", "Ahrens", "Aigner", "Albert", "Albrecht", "Alexa", "Alexander", "Alizadeh", "Allgeyer", "Amann", "Amberg", "Anding", "Anggreny", "Apitz", "Arendt", "Arens", "Arndt", "Aryee", "Aschenbroich", "Assmus", "Astafei", "Auer", "Axmann", "Baarck", "Bachmann", "Badane", "Bader", "Baganz", "Bahl", "Bak", "Balcer", "Balck", "Balkow", "Balnuweit", "Balzer", "Banse", "Barr", "Bartels", "Barth", "Barylla", "Baseda", "Battke", "Bauer", "Bauermeister", "Baumann", "Baumeister", "Bauschinger", "Bauschke", "Bayer", "Beavogui", "Beck", "Beckel", "Becker", "Beckmann", "Bedewitz", "Beele", "Beer", "Beggerow", "Beh", "Behr", "Behrenbruch", "Belz", "Bender", "Benecke", "Benner", "Benninger", "Benzing", "Berends", "Berger", "Berner", "Berning", "Bertenbreiter", "Best", "Bethke", "Betz", "Beushausen", "Beutelspacher", "Beyer", "Biba", "Bichler", "Bickel", "Biedermann", "Bieler", "Bielert", "Bienasch", "Bienias", "Biesenbach", "Bigdeli", "Birkemeyer", "Bittner", "Blank", "Blaschek", "Blassneck", "Bloch", "Blochwitz", "Blockhaus", "Blum", "Blume", "Bock", "Bode", "Bogdashin", "Bogenrieder", "Bohge", "Bolm", "Borgschulze", "Bork", "Bormann", "Bornscheuer", "Borrmann", "Borsch", "Boruschewski", "Bos", "Bosler", "Bourrouag", "Bouschen", "Boxhammer", "Boyde", "Bozsik", "Brand", "Brandenburg", "Brandis", "Brandt", "Brauer", "Braun", "Brehmer", "Breitenstein", "Bremer", "Bremser", "Brenner", "Brettschneider", "Breu", "Breuer", "Briesenick", "Bringmann", "Brinkmann", "Brix", "Broening", "Brosch", "Bruckmann", "Bruder", "Bruhns", "Brunner", "Bruns", "Bräutigam", "Brömme", "Brüggmann", "Buchholz", "Buchrucker", "Buder", "Bultmann", "Bunjes", "Burger", "Burghagen", "Burkhard", "Burkhardt", "Burmeister", "Busch", "Buschbaum", "Busemann", "Buss", "Busse", "Bussmann", "Byrd", "Bäcker", "Böhm", "Bönisch", "Börgeling", "Börner", "Böttner", "Büchele", "Bühler", "Büker", "Büngener", "Bürger", "Bürklein", "Büscher", "Büttner", "Camara", "Carlowitz", "Carlsohn", "Caspari", "Caspers", "Chapron", "Christ", "Cierpinski", "Clarius", "Cleem", "Cleve", "Co", "Conrad", "Cordes", "Cornelsen", "Cors", "Cotthardt", "Crews", "Cronjäger", "Crosskofp", "Da", "Dahm", "Dahmen", "Daimer", "Damaske", "Danneberg", "Danner", "Daub", "Daubner", "Daudrich", "Dauer", "Daum", "Dauth", "Dautzenberg", "De", "Decker", "Deckert", "Deerberg", "Dehmel", "Deja", "Delonge", "Demut", "Dengler", "Denner", "Denzinger", "Derr", "Dertmann", "Dethloff", "Deuschle", "Dieckmann", "Diedrich", "Diekmann", "Dienel", "Dies", "Dietrich", "Dietz", "Dietzsch", "Diezel", "Dilla", "Dingelstedt", "Dippl", "Dittmann", "Dittmar", "Dittmer", "Dix", "Dobbrunz", "Dobler", "Dohring", "Dolch", "Dold", "Dombrowski", "Donie", "Doskoczynski", "Dragu", "Drechsler", "Drees", "Dreher", "Dreier", "Dreissigacker", "Dressler", "Drews", "Duma", "Dutkiewicz", "Dyett", "Dylus", "Dächert", "Döbel", "Döring", "Dörner", "Dörre", "Dück", "Eberhard", "Eberhardt", "Ecker", "Eckhardt", "Edorh", "Effler", "Eggenmueller", "Ehm", "Ehmann", "Ehrig", "Eich", "Eichmann", "Eifert", "Einert", "Eisenlauer", "Ekpo", "Elbe", "Eleyth", "Elss", "Emert", "Emmelmann", "Ender", "Engel", "Engelen", "Engelmann", "Eplinius", "Erdmann", "Erhardt", "Erlei", "Erm", "Ernst", "Ertl", "Erwes", "Esenwein", "Esser", "Evers", "Everts", "Ewald", "Fahner", "Faller", "Falter", "Farber", "Fassbender", "Faulhaber", "Fehrig", "Feld", "Felke", "Feller", "Fenner", "Fenske", "Feuerbach", "Fietz", "Figl", "Figura", "Filipowski", "Filsinger", "Fincke", "Fink", "Finke", "Fischer", "Fitschen", "Fleischer", "Fleischmann", "Floder", "Florczak", "Flore", "Flottmann", "Forkel", "Forst", "Frahmeke", "Frank", "Franke", "Franta", "Frantz", "Franz", "Franzis", "Franzmann", "Frauen", "Frauendorf", "Freigang", "Freimann", "Freimuth", "Freisen", "Frenzel", "Frey", "Fricke", "Fried", "Friedek", "Friedenberg", "Friedmann", "Friedrich", "Friess", "Frisch", "Frohn", "Frosch", "Fuchs", "Fuhlbrügge", "Fusenig", "Fust", "Förster", "Gaba", "Gabius", "Gabler", "Gadschiew", "Gakstädter", "Galander", "Gamlin", "Gamper", "Gangnus", "Ganzmann", "Garatva", "Gast", "Gastel", "Gatzka", "Gauder", "Gebhardt", "Geese", "Gehre", "Gehrig", "Gehring", "Gehrke", "Geiger", "Geisler", "Geissler", "Gelling", "Gens", "Gerbennow", "Gerdel", "Gerhardt", "Gerschler", "Gerson", "Gesell", "Geyer", "Ghirmai", "Ghosh", "Giehl", "Gierisch", "Giesa", "Giesche", "Gilde", "Glatting", "Goebel", "Goedicke", "Goldbeck", "Goldfuss", "Goldkamp", "Goldkühle", "Goller", "Golling", "Gollnow", "Golomski", "Gombert", "Gotthardt", "Gottschalk", "Gotz", "Goy", "Gradzki", "Graf", "Grams", "Grasse", "Gratzky", "Grau", "Greb", "Green", "Greger", "Greithanner", "Greschner", "Griem", "Griese", "Grimm", "Gromisch", "Gross", "Grosser", "Grossheim", "Grosskopf", "Grothaus", "Grothkopp", "Grotke", "Grube", "Gruber", "Grundmann", "Gruning", "Gruszecki", "Gröss", "Grötzinger", "Grün", "Grüner", "Gummelt", "Gunkel", "Gunther", "Gutjahr", "Gutowicz", "Gutschank", "Göbel", "Göckeritz", "Göhler", "Görlich", "Görmer", "Götz", "Götzelmann", "Güldemeister", "Günther", "Günz", "Gürbig", "Haack", "Haaf", "Habel", "Hache", "Hackbusch", "Hackelbusch", "Hadfield", "Hadwich", "Haferkamp", "Hahn", "Hajek", "Hallmann", "Hamann", "Hanenberger", "Hannecker", "Hanniske", "Hansen", "Hardy", "Hargasser", "Harms", "Harnapp", "Harter", "Harting", "Hartlieb", "Hartmann", "Hartwig", "Hartz", "Haschke", "Hasler", "Hasse", "Hassfeld", "Haug", "Hauke", "Haupt", "Haverney", "Heberstreit", "Hechler", "Hecht", "Heck", "Hedermann", "Hehl", "Heidelmann", "Heidler", "Heinemann", "Heinig", "Heinke", "Heinrich", "Heinze", "Heiser", "Heist", "Hellmann", "Helm", "Helmke", "Helpling", "Hengmith", "Henkel", "Hennes", "Henry", "Hense", "Hensel", "Hentel", "Hentschel", "Hentschke", "Hepperle", "Herberger", "Herbrand", "Hering", "Hermann", "Hermecke", "Herms", "Herold", "Herrmann", "Herschmann", "Hertel", "Herweg", "Herwig", "Herzenberg", "Hess", "Hesse", "Hessek", "Hessler", "Hetzler", "Heuck", "Heydemüller", "Hiebl", "Hildebrand", "Hildenbrand", "Hilgendorf", "Hillard", "Hiller", "Hingsen", "Hingst", "Hinrichs", "Hirsch", "Hirschberg", "Hirt", "Hodea", "Hoffman", "Hoffmann", "Hofmann", "Hohenberger", "Hohl", "Hohn", "Hohnheiser", "Hold", "Holdt", "Holinski", "Holl", "Holtfreter", "Holz", "Holzdeppe", "Holzner", "Hommel", "Honz", "Hooss", "Hoppe", "Horak", "Horn", "Horna", "Hornung", "Hort", "Howard", "Huber", "Huckestein", "Hudak", "Huebel", "Hugo", "Huhn", "Hujo", "Huke", "Huls", "Humbert", "Huneke", "Huth", "Häber", "Häfner", "Höcke", "Höft", "Höhne", "Hönig", "Hördt", "Hübenbecker", "Hübl", "Hübner", "Hügel", "Hüttcher", "Hütter", "Ibe", "Ihly", "Illing", "Isak", "Isekenmeier", "Itt", "Jacob", "Jacobs", "Jagusch", "Jahn", "Jahnke", "Jakobs", "Jakubczyk", "Jambor", "Jamrozy", "Jander", "Janich", "Janke", "Jansen", "Jarets", "Jaros", "Jasinski", "Jasper", "Jegorov", "Jellinghaus", "Jeorga", "Jerschabek", "Jess", "John", "Jonas", "Jossa", "Jucken", "Jung", "Jungbluth", "Jungton", "Just", "Jürgens", "Kaczmarek", "Kaesmacher", "Kahl", "Kahlert", "Kahles", "Kahlmeyer", "Kaiser", "Kalinowski", "Kallabis", "Kallensee", "Kampf", "Kampschulte", "Kappe", "Kappler", "Karhoff", "Karrass", "Karst", "Karsten", "Karus", "Kass", "Kasten", "Kastner", "Katzinski", "Kaufmann", "Kaul", "Kausemann", "Kawohl", "Kazmarek", "Kedzierski", "Keil", "Keiner", "Keller", "Kelm", "Kempe", "Kemper", "Kempter", "Kerl", "Kern", "Kesselring", "Kesselschläger", "Kette", "Kettenis", "Keutel", "Kick", "Kiessling", "Kinadeter", "Kinzel", "Kinzy", "Kirch", "Kirst", "Kisabaka", "Klaas", "Klabuhn", "Klapper", "Klauder", "Klaus", "Kleeberg", "Kleiber", "Klein", "Kleinert", "Kleininger", "Kleinmann", "Kleinsteuber", "Kleiss", "Klemme", "Klimczak", "Klinger", "Klink", "Klopsch", "Klose", "Kloss", "Kluge", "Kluwe", "Knabe", "Kneifel", "Knetsch", "Knies", "Knippel", "Knobel", "Knoblich", "Knoll", "Knorr", "Knorscheidt", "Knut", "Kobs", "Koch", "Kochan", "Kock", "Koczulla", "Koderisch", "Koehl", "Koehler", "Koenig", "Koester", "Kofferschlager", "Koha", "Kohle", "Kohlmann", "Kohnle", "Kohrt", "Koj", "Kolb", "Koleiski", "Kolokas", "Komoll", "Konieczny", "Konig", "Konow", "Konya", "Koob", "Kopf", "Kosenkow", "Koster", "Koszewski", "Koubaa", "Kovacs", "Kowalick", "Kowalinski", "Kozakiewicz", "Krabbe", "Kraft", "Kral", "Kramer", "Krauel", "Kraus", "Krause", "Krauspe", "Kreb", "Krebs", "Kreissig", "Kresse", "Kreutz", "Krieger", "Krippner", "Krodinger", "Krohn", "Krol", "Kron", "Krueger", "Krug", "Kruger", "Krull", "Kruschinski", "Krämer", "Kröckert", "Kröger", "Krüger", "Kubera", "Kufahl", "Kuhlee", "Kuhnen", "Kulimann", "Kulma", "Kumbernuss", "Kummle", "Kunz", "Kupfer", "Kupprion", "Kuprion", "Kurnicki", "Kurrat", "Kurschilgen", "Kuschewitz", "Kuschmann", "Kuske", "Kustermann", "Kutscherauer", "Kutzner", "Kwadwo", "Kähler", "Käther", "Köhler", "Köhrbrück", "Köhre", "Kölotzei", "König", "Köpernick", "Köseoglu", "Kúhn", "Kúhnert", "Kühn", "Kühnel", "Kühnemund", "Kühnert", "Kühnke", "Küsters", "Küter", "Laack", "Lack", "Ladewig", "Lakomy", "Lammert", "Lamos", "Landmann", "Lang", "Lange", "Langfeld", "Langhirt", "Lanig", "Lauckner", "Lauinger", "Laurén", "Lausecker", "Laux", "Laws", "Lax", "Leberer", "Lehmann", "Lehner", "Leibold", "Leide", "Leimbach", "Leipold", "Leist", "Leiter", "Leiteritz", "Leitheim", "Leiwesmeier", "Lenfers", "Lenk", "Lenz", "Lenzen", "Leo", "Lepthin", "Lesch", "Leschnik", "Letzelter", "Lewin", "Lewke", "Leyckes", "Lg", "Lichtenfeld", "Lichtenhagen", "Lichtl", "Liebach", "Liebe", "Liebich", "Liebold", "Lieder", "Lienshöft", "Linden", "Lindenberg", "Lindenmayer", "Lindner", "Linke", "Linnenbaum", "Lippe", "Lipske", "Lipus", "Lischka", "Lobinger", "Logsch", "Lohmann", "Lohre", "Lohse", "Lokar", "Loogen", "Lorenz", "Losch", "Loska", "Lott", "Loy", "Lubina", "Ludolf", "Lufft", "Lukoschek", "Lutje", "Lutz", "Löser", "Löwa", "Lübke", "Maak", "Maczey", "Madetzky", "Madubuko", "Mai", "Maier", "Maisch", "Malek", "Malkus", "Mallmann", "Malucha", "Manns", "Manz", "Marahrens", "Marchewski", "Margis", "Markowski", "Marl", "Marner", "Marquart", "Marschek", "Martel", "Marten", "Martin", "Marx", "Marxen", "Mathes", "Mathies", "Mathiszik", "Matschke", "Mattern", "Matthes", "Matula", "Mau", "Maurer", "Mauroff", "May", "Maybach", "Mayer", "Mebold", "Mehl", "Mehlhorn", "Mehlorn", "Meier", "Meisch", "Meissner", "Meloni", "Melzer", "Menga", "Menne", "Mensah", "Mensing", "Merkel", "Merseburg", "Mertens", "Mesloh", "Metzger", "Metzner", "Mewes", "Meyer", "Michallek", "Michel", "Mielke", "Mikitenko", "Milde", "Minah", "Mintzlaff", "Mockenhaupt", "Moede", "Moedl", "Moeller", "Moguenara", "Mohr", "Mohrhard", "Molitor", "Moll", "Moller", "Molzan", "Montag", "Moormann", "Mordhorst", "Morgenstern", "Morhelfer", "Moritz", "Moser", "Motchebon", "Motzenbbäcker", "Mrugalla", "Muckenthaler", "Mues", "Muller", "Mulrain", "Mächtig", "Mäder", "Möcks", "Mögenburg", "Möhsner", "Möldner", "Möllenbeck", "Möller", "Möllinger", "Mörsch", "Mühleis", "Müller", "Münch", "Nabein", "Nabow", "Nagel", "Nannen", "Nastvogel", "Nau", "Naubert", "Naumann", "Ne", "Neimke", "Nerius", "Neubauer", "Neubert", "Neuendorf", "Neumair", "Neumann", "Neupert", "Neurohr", "Neuschwander", "Newton", "Ney", "Nicolay", "Niedermeier", "Nieklauson", "Niklaus", "Nitzsche", "Noack", "Nodler", "Nolte", "Normann", "Norris", "Northoff", "Nowak", "Nussbeck", "Nwachukwu", "Nytra", "Nöh", "Oberem", "Obergföll", "Obermaier", "Ochs", "Oeser", "Olbrich", "Onnen", "Ophey", "Oppong", "Orth", "Orthmann", "Oschkenat", "Osei", "Osenberg", "Ostendarp", "Ostwald", "Otte", "Otto", "Paesler", "Pajonk", "Pallentin", "Panzig", "Paschke", "Patzwahl", "Paukner", "Peselman", "Peter", "Peters", "Petzold", "Pfeiffer", "Pfennig", "Pfersich", "Pfingsten", "Pflieger", "Pflügner", "Philipp", "Pichlmaier", "Piesker", "Pietsch", "Pingpank", "Pinnock", "Pippig", "Pitschugin", "Plank", "Plass", "Platzer", "Plauk", "Plautz", "Pletsch", "Plotzitzka", "Poehn", "Poeschl", "Pogorzelski", "Pohl", "Pohland", "Pohle", "Polifka", "Polizzi", "Pollmächer", "Pomp", "Ponitzsch", "Porsche", "Porth", "Poschmann", "Poser", "Pottel", "Prah", "Prange", "Prediger", "Pressler", "Preuk", "Preuss", "Prey", "Priemer", "Proske", "Pusch", "Pöche", "Pöge", "Raabe", "Rabenstein", "Rach", "Radtke", "Rahn", "Ranftl", "Rangen", "Ranz", "Rapp", "Rath", "Rau", "Raubuch", "Raukuc", "Rautenkranz", "Rehwagen", "Reiber", "Reichardt", "Reichel", "Reichling", "Reif", "Reifenrath", "Reimann", "Reinberg", "Reinelt", "Reinhardt", "Reinke", "Reitze", "Renk", "Rentz", "Renz", "Reppin", "Restle", "Restorff", "Retzke", "Reuber", "Reumann", "Reus", "Reuss", "Reusse", "Rheder", "Rhoden", "Richards", "Richter", "Riedel", "Riediger", "Rieger", "Riekmann", "Riepl", "Riermeier", "Riester", "Riethmüller", "Rietmüller", "Rietscher", "Ringel", "Ringer", "Rink", "Ripken", "Ritosek", "Ritschel", "Ritter", "Rittweg", "Ritz", "Roba", "Rockmeier", "Rodehau", "Rodowski", "Roecker", "Roggatz", "Rohländer", "Rohrer", "Rokossa", "Roleder", "Roloff", "Roos", "Rosbach", "Roschinsky", "Rose", "Rosenauer", "Rosenbauer", "Rosenthal", "Rosksch", "Rossberg", "Rossler", "Roth", "Rother", "Ruch", "Ruckdeschel", "Rumpf", "Rupprecht", "Ruth", "Ryjikh", "Ryzih", "Rädler", "Räntsch", "Rödiger", "Röse", "Röttger", "Rücker", "Rüdiger", "Rüter", "Sachse", "Sack", "Saflanis", "Sagafe", "Sagonas", "Sahner", "Saile", "Sailer", "Salow", "Salzer", "Salzmann", "Sammert", "Sander", "Sarvari", "Sattelmaier", "Sauer", "Sauerland", "Saumweber", "Savoia", "Scc", "Schacht", "Schaefer", "Schaffarzik", "Schahbasian", "Scharf", "Schedler", "Scheer", "Schelk", "Schellenbeck", "Schembera", "Schenk", "Scherbarth", "Scherer", "Schersing", "Scherz", "Scheurer", "Scheuring", "Scheytt", "Schielke", "Schieskow", "Schildhauer", "Schilling", "Schima", "Schimmer", "Schindzielorz", "Schirmer", "Schirrmeister", "Schlachter", "Schlangen", "Schlawitz", "Schlechtweg", "Schley", "Schlicht", "Schlitzer", "Schmalzle", "Schmid", "Schmidt", "Schmidtchen", "Schmitt", "Schmitz", "Schmuhl", "Schneider", "Schnelting", "Schnieder", "Schniedermeier", "Schnürer", "Schoberg", "Scholz", "Schonberg", "Schondelmaier", "Schorr", "Schott", "Schottmann", "Schouren", "Schrader", "Schramm", "Schreck", "Schreiber", "Schreiner", "Schreiter", "Schroder", "Schröder", "Schuermann", "Schuff", "Schuhaj", "Schuldt", "Schult", "Schulte", "Schultz", "Schultze", "Schulz", "Schulze", "Schumacher", "Schumann", "Schupp", "Schuri", "Schuster", "Schwab", "Schwalm", "Schwanbeck", "Schwandke", "Schwanitz", "Schwarthoff", "Schwartz", "Schwarz", "Schwarzer", "Schwarzkopf", "Schwarzmeier", "Schwatlo", "Schweisfurth", "Schwennen", "Schwerdtner", "Schwidde", "Schwirkschlies", "Schwuchow", "Schäfer", "Schäffel", "Schäffer", "Schäning", "Schöckel", "Schönball", "Schönbeck", "Schönberg", "Schönebeck", "Schönenberger", "Schönfeld", "Schönherr", "Schönlebe", "Schötz", "Schüler", "Schüppel", "Schütz", "Schütze", "Seeger", "Seelig", "Sehls", "Seibold", "Seidel", "Seiders", "Seigel", "Seiler", "Seitz", "Semisch", "Senkel", "Sewald", "Siebel", "Siebert", "Siegling", "Sielemann", "Siemon", "Siener", "Sievers", "Siewert", "Sihler", "Sillah", "Simon", "Sinnhuber", "Sischka", "Skibicki", "Sladek", "Slotta", "Smieja", "Soboll", "Sokolowski", "Soller", "Sollner", "Sommer", "Somssich", "Sonn", "Sonnabend", "Spahn", "Spank", "Spelmeyer", "Spiegelburg", "Spielvogel", "Spinner", "Spitzmüller", "Splinter", "Sporrer", "Sprenger", "Spöttel", "Stahl", "Stang", "Stanger", "Stauss", "Steding", "Steffen", "Steffny", "Steidl", "Steigauf", "Stein", "Steinecke", "Steinert", "Steinkamp", "Steinmetz", "Stelkens", "Stengel", "Stengl", "Stenzel", "Stepanov", "Stephan", "Stern", "Steuk", "Stief", "Stifel", "Stoll", "Stolle", "Stolz", "Storl", "Storp", "Stoutjesdijk", "Stratmann", "Straub", "Strausa", "Streck", "Streese", "Strege", "Streit", "Streller", "Strieder", "Striezel", "Strogies", "Strohschank", "Strunz", "Strutz", "Stube", "Stöckert", "Stöppler", "Stöwer", "Stürmer", "Suffa", "Sujew", "Sussmann", "Suthe", "Sutschet", "Swillims", "Szendrei", "Sören", "Sürth", "Tafelmeier", "Tang", "Tasche", "Taufratshofer", "Tegethof", "Teichmann", "Tepper", "Terheiden", "Terlecki", "Teufel", "Theele", "Thieke", "Thimm", "Thiomas", "Thomas", "Thriene", "Thränhardt", "Thust", "Thyssen", "Thöne", "Tidow", "Tiedtke", "Tietze", "Tilgner", "Tillack", "Timmermann", "Tischler", "Tischmann", "Tittman", "Tivontschik", "Tonat", "Tonn", "Trampeli", "Trauth", "Trautmann", "Travan", "Treff", "Tremmel", "Tress", "Tsamonikian", "Tschiers", "Tschirch", "Tuch", "Tucholke", "Tudow", "Tuschmo", "Tächl", "Többen", "Töpfer", "Uhlemann", "Uhlig", "Uhrig", "Uibel", "Uliczka", "Ullmann", "Ullrich", "Umbach", "Umlauft", "Umminger", "Unger", "Unterpaintner", "Urban", "Urbaniak", "Urbansky", "Urhig", "Vahlensieck", "Van", "Vangermain", "Vater", "Venghaus", "Verniest", "Verzi", "Vey", "Viellehner", "Vieweg", "Voelkel", "Vogel", "Vogelgsang", "Vogt", "Voigt", "Vokuhl", "Volk", "Volker", "Volkmann", "Von", "Vona", "Vontein", "Wachenbrunner", "Wachtel", "Wagner", "Waibel", "Wakan", "Waldmann", "Wallner", "Wallstab", "Walter", "Walther", "Walton", "Walz", "Wanner", "Wartenberg", "Waschbüsch", "Wassilew", "Wassiluk", "Weber", "Wehrsen", "Weidlich", "Weidner", "Weigel", "Weight", "Weiler", "Weimer", "Weis", "Weiss", "Weller", "Welsch", "Welz", "Welzel", "Weniger", "Wenk", "Werle", "Werner", "Werrmann", "Wessel", "Wessinghage", "Weyel", "Wezel", "Wichmann", "Wickert", "Wiebe", "Wiechmann", "Wiegelmann", "Wierig", "Wiese", "Wieser", "Wilhelm", "Wilky", "Will", "Willwacher", "Wilts", "Wimmer", "Winkelmann", "Winkler", "Winter", "Wischek", "Wischer", "Wissing", "Wittich", "Wittl", "Wolf", "Wolfarth", "Wolff", "Wollenberg", "Wollmann", "Woytkowska", "Wujak", "Wurm", "Wyludda", "Wölpert", "Wöschler", "Wühn", "Wünsche", "Zach", "Zaczkiewicz", "Zahn", "Zaituc", "Zandt", "Zanner", "Zapletal", "Zauber", "Zeidler", "Zekl", "Zender", "Zeuch", "Zeyen", "Zeyhle", "Ziegler", "Zimanyi", "Zimmer", "Zimmermann", "Zinser", "Zintl", "Zipp", "Zipse", "Zschunke", "Zuber", "Zwiener", "Zümsande", "Östringer", "Überacker" ], "prefix": [ "Dr.", "Prof. Dr." ], "nobility_title_prefix": [ "zu", "von", "vom", "von der" ], "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{nobility_title_prefix} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ] }; de_AT.phone_number = { "formats": [ "01 #######", "01#######", "+43-1-#######", "+431#######", "0#### ####", "0#########", "+43-####-####", "+43 ########" ] }; de_AT.cell_phone = { "formats": [ "+43-6##-#######", "06##-########", "+436#########", "06##########" ] }; },{}],13:[function(require,module,exports){ var de_CH = {}; module["exports"] = de_CH; de_CH.title = "German (Switzerland)"; de_CH.address = { "country_code": [ "CH", "CH", "CH", "DE", "AT", "US", "LI", "US", "HK", "VN" ], "postcode": [ "1###", "2###", "3###", "4###", "5###", "6###", "7###", "8###", "9###" ], "default_country": [ "Schweiz" ] }; de_CH.company = { "suffix": [ "AG", "GmbH", "und Söhne", "und Partner", "& Co.", "Gruppe", "LLC", "Inc." ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} und #{Name.last_name}" ] }; de_CH.internet = { "domain_suffix": [ "com", "net", "biz", "ch", "de", "li", "at", "ch", "ch" ] }; de_CH.phone_number = { "formats": [ "0800 ### ###", "0800 ## ## ##", "0## ### ## ##", "0## ### ## ##", "+41 ## ### ## ##", "0900 ### ###", "076 ### ## ##", "+4178 ### ## ##", "0041 79 ### ## ##" ] }; },{}],14:[function(require,module,exports){ var en = {}; module["exports"] = en; en.title = "English"; en.separator = " & "; en.address = { "city_prefix": [ "North", "East", "West", "South", "New", "Lake", "Port" ], "city_suffix": [ "town", "ton", "land", "ville", "berg", "burgh", "borough", "bury", "view", "port", "mouth", "stad", "furt", "chester", "mouth", "fort", "haven", "side", "shire" ], // TODO: get common County names in America and populate here "county": [ "Avon", "Bedfordshire", "Berkshire", "Borders", "Buckinghamshire", "Cambridgeshire" ], "country": [ "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica (the territory South of 60 deg S)", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island (Bouvetoya)", "Brazil", "British Indian Ocean Territory (Chagos Archipelago)", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Faroe Islands", "Falkland Islands (Malvinas)", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Democratic People's Republic of Korea", "Republic of Korea", "Kuwait", "Kyrgyz Republic", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands Antilles", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn Islands", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthelemy", "Saint Helena", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard & Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States of America", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe" ], "country_code": [ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ], "building_number": [ "#####", "####", "###" ], "street_suffix": [ "Alley", "Avenue", "Branch", "Bridge", "Brook", "Brooks", "Burg", "Burgs", "Bypass", "Camp", "Canyon", "Cape", "Causeway", "Center", "Centers", "Circle", "Circles", "Cliff", "Cliffs", "Club", "Common", "Corner", "Corners", "Course", "Court", "Courts", "Cove", "Coves", "Creek", "Crescent", "Crest", "Crossing", "Crossroad", "Curve", "Dale", "Dam", "Divide", "Drive", "Drive", "Drives", "Estate", "Estates", "Expressway", "Extension", "Extensions", "Fall", "Falls", "Ferry", "Field", "Fields", "Flat", "Flats", "Ford", "Fords", "Forest", "Forge", "Forges", "Fork", "Forks", "Fort", "Freeway", "Garden", "Gardens", "Gateway", "Glen", "Glens", "Green", "Greens", "Grove", "Groves", "Harbor", "Harbors", "Haven", "Heights", "Highway", "Hill", "Hills", "Hollow", "Inlet", "Inlet", "Island", "Island", "Islands", "Islands", "Isle", "Isle", "Junction", "Junctions", "Key", "Keys", "Knoll", "Knolls", "Lake", "Lakes", "Land", "Landing", "Lane", "Light", "Lights", "Loaf", "Lock", "Locks", "Locks", "Lodge", "Lodge", "Loop", "Mall", "Manor", "Manors", "Meadow", "Meadows", "Mews", "Mill", "Mills", "Mission", "Mission", "Motorway", "Mount", "Mountain", "Mountain", "Mountains", "Mountains", "Neck", "Orchard", "Oval", "Overpass", "Park", "Parks", "Parkway", "Parkways", "Pass", "Passage", "Path", "Pike", "Pine", "Pines", "Place", "Plain", "Plains", "Plains", "Plaza", "Plaza", "Point", "Points", "Port", "Port", "Ports", "Ports", "Prairie", "Prairie", "Radial", "Ramp", "Ranch", "Rapid", "Rapids", "Rest", "Ridge", "Ridges", "River", "Road", "Road", "Roads", "Roads", "Route", "Row", "Rue", "Run", "Shoal", "Shoals", "Shore", "Shores", "Skyway", "Spring", "Springs", "Springs", "Spur", "Spurs", "Square", "Square", "Squares", "Squares", "Station", "Station", "Stravenue", "Stravenue", "Stream", "Stream", "Street", "Street", "Streets", "Summit", "Summit", "Terrace", "Throughway", "Trace", "Track", "Trafficway", "Trail", "Trail", "Tunnel", "Tunnel", "Turnpike", "Turnpike", "Underpass", "Union", "Unions", "Valley", "Valleys", "Via", "Viaduct", "View", "Views", "Village", "Village", "Villages", "Ville", "Vista", "Vista", "Walk", "Walks", "Wall", "Way", "Ways", "Well", "Wells" ], "secondary_address": [ "Apt. ###", "Suite ###" ], "postcode": [ "#####", "#####-####" ], "postcode_by_state": [ "#####", "#####-####" ], "state": [ "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming" ], "state_abbr": [ "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY" ], "time_zone": [ "Pacific/Midway", "Pacific/Pago_Pago", "Pacific/Honolulu", "America/Juneau", "America/Los_Angeles", "America/Tijuana", "America/Denver", "America/Phoenix", "America/Chihuahua", "America/Mazatlan", "America/Chicago", "America/Regina", "America/Mexico_City", "America/Mexico_City", "America/Monterrey", "America/Guatemala", "America/New_York", "America/Indiana/Indianapolis", "America/Bogota", "America/Lima", "America/Lima", "America/Halifax", "America/Caracas", "America/La_Paz", "America/Santiago", "America/St_Johns", "America/Sao_Paulo", "America/Argentina/Buenos_Aires", "America/Guyana", "America/Godthab", "Atlantic/South_Georgia", "Atlantic/Azores", "Atlantic/Cape_Verde", "Europe/Dublin", "Europe/London", "Europe/Lisbon", "Europe/London", "Africa/Casablanca", "Africa/Monrovia", "Etc/UTC", "Europe/Belgrade", "Europe/Bratislava", "Europe/Budapest", "Europe/Ljubljana", "Europe/Prague", "Europe/Sarajevo", "Europe/Skopje", "Europe/Warsaw", "Europe/Zagreb", "Europe/Brussels", "Europe/Copenhagen", "Europe/Madrid", "Europe/Paris", "Europe/Amsterdam", "Europe/Berlin", "Europe/Berlin", "Europe/Rome", "Europe/Stockholm", "Europe/Vienna", "Africa/Algiers", "Europe/Bucharest", "Africa/Cairo", "Europe/Helsinki", "Europe/Kiev", "Europe/Riga", "Europe/Sofia", "Europe/Tallinn", "Europe/Vilnius", "Europe/Athens", "Europe/Istanbul", "Europe/Minsk", "Asia/Jerusalem", "Africa/Harare", "Africa/Johannesburg", "Europe/Moscow", "Europe/Moscow", "Europe/Moscow", "Asia/Kuwait", "Asia/Riyadh", "Africa/Nairobi", "Asia/Baghdad", "Asia/Tehran", "Asia/Muscat", "Asia/Muscat", "Asia/Baku", "Asia/Tbilisi", "Asia/Yerevan", "Asia/Kabul", "Asia/Yekaterinburg", "Asia/Karachi", "Asia/Karachi", "Asia/Tashkent", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kathmandu", "Asia/Dhaka", "Asia/Dhaka", "Asia/Colombo", "Asia/Almaty", "Asia/Novosibirsk", "Asia/Rangoon", "Asia/Bangkok", "Asia/Bangkok", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Shanghai", "Asia/Chongqing", "Asia/Hong_Kong", "Asia/Urumqi", "Asia/Kuala_Lumpur", "Asia/Singapore", "Asia/Taipei", "Australia/Perth", "Asia/Irkutsk", "Asia/Ulaanbaatar", "Asia/Seoul", "Asia/Tokyo", "Asia/Tokyo", "Asia/Tokyo", "Asia/Yakutsk", "Australia/Darwin", "Australia/Adelaide", "Australia/Melbourne", "Australia/Melbourne", "Australia/Sydney", "Australia/Brisbane", "Australia/Hobart", "Asia/Vladivostok", "Pacific/Guam", "Pacific/Port_Moresby", "Asia/Magadan", "Asia/Magadan", "Pacific/Noumea", "Pacific/Fiji", "Asia/Kamchatka", "Pacific/Majuro", "Pacific/Auckland", "Pacific/Auckland", "Pacific/Tongatapu", "Pacific/Fakaofo", "Pacific/Apia" ], "city": [ "#{city_prefix} #{Name.first_name}#{city_suffix}", "#{city_prefix} #{Name.first_name}", "#{Name.first_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}" ], "street_name": [ "#{Name.first_name} #{street_suffix}", "#{Name.last_name} #{street_suffix}" ], "street_address": [ "#{building_number} #{street_name}" ], "default_country": [ "United States of America" ] }; en.credit_card = { "visa": [ "/4###########L/", "/4###-####-####-###L/" ], "mastercard": [ "/5[1-5]##-####-####-###L/", "/6771-89##-####-###L/" ], "discover": [ "/6011-####-####-###L/", "/65##-####-####-###L/", "/64[4-9]#-####-####-###L/", "/6011-62##-####-####-###L/", "/65##-62##-####-####-###L/", "/64[4-9]#-62##-####-####-###L/" ], "american_express": [ "/34##-######-####L/", "/37##-######-####L/" ], "diners_club": [ "/30[0-5]#-######-###L/", "/368#-######-###L/" ], "jcb": [ "/3528-####-####-###L/", "/3529-####-####-###L/", "/35[3-8]#-####-####-###L/" ], "switch": [ "/6759-####-####-###L/", "/6759-####-####-####-#L/", "/6759-####-####-####-##L/" ], "solo": [ "/6767-####-####-###L/", "/6767-####-####-####-#L/", "/6767-####-####-####-##L/" ], "dankort": "/5019-####-####-###L/", "maestro": [ "/50#{9,16}L/", "/5[6-8]#{9,16}L/", "/56##{9,16}L/" ], "forbrugsforeningen": "/6007-22##-####-###L/", "laser": [ "/6304###########L/", "/6706###########L/", "/6771###########L/", "/6709###########L/", "/6304#########{5,6}L/", "/6706#########{5,6}L/", "/6771#########{5,6}L/", "/6709#########{5,6}L/" ] }; en.company = { "suffix": [ "Inc", "and Sons", "LLC", "Group" ], "adjective": [ "Adaptive", "Advanced", "Ameliorated", "Assimilated", "Automated", "Balanced", "Business-focused", "Centralized", "Cloned", "Compatible", "Configurable", "Cross-group", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "De-engineered", "Devolved", "Digitized", "Distributed", "Diverse", "Down-sized", "Enhanced", "Enterprise-wide", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Function-based", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Implemented", "Innovative", "Integrated", "Intuitive", "Inverse", "Managed", "Mandatory", "Monitored", "Multi-channelled", "Multi-lateral", "Multi-layered", "Multi-tiered", "Networked", "Object-based", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Pre-emptive", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Re-contextualized", "Re-engineered", "Reduced", "Reverse-engineered", "Right-sized", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Stand-alone", "Streamlined", "Switchable", "Synchronised", "Synergistic", "Synergized", "Team-oriented", "Total", "Triple-buffered", "Universal", "Up-sized", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary", "Vision-oriented" ], "descriptor": [ "24 hour", "24/7", "3rd generation", "4th generation", "5th generation", "6th generation", "actuating", "analyzing", "asymmetric", "asynchronous", "attitude-oriented", "background", "bandwidth-monitored", "bi-directional", "bifurcated", "bottom-line", "clear-thinking", "client-driven", "client-server", "coherent", "cohesive", "composite", "context-sensitive", "contextually-based", "content-based", "dedicated", "demand-driven", "didactic", "directional", "discrete", "disintermediate", "dynamic", "eco-centric", "empowering", "encompassing", "even-keeled", "executive", "explicit", "exuding", "fault-tolerant", "foreground", "fresh-thinking", "full-range", "global", "grid-enabled", "heuristic", "high-level", "holistic", "homogeneous", "human-resource", "hybrid", "impactful", "incremental", "intangible", "interactive", "intermediate", "leading edge", "local", "logistical", "maximized", "methodical", "mission-critical", "mobile", "modular", "motivating", "multimedia", "multi-state", "multi-tasking", "national", "needs-based", "neutral", "next generation", "non-volatile", "object-oriented", "optimal", "optimizing", "radical", "real-time", "reciprocal", "regional", "responsive", "scalable", "secondary", "solution-oriented", "stable", "static", "systematic", "systemic", "system-worthy", "tangible", "tertiary", "transitional", "uniform", "upward-trending", "user-facing", "value-added", "web-enabled", "well-modulated", "zero administration", "zero defect", "zero tolerance" ], "noun": [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "artificial intelligence", "array", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "database", "data-warehouse", "definition", "emulation", "encoding", "encryption", "extranet", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "Graphic Interface", "groupware", "Graphical User Interface", "hardware", "help-desk", "hierarchy", "hub", "implementation", "info-mediaries", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge user", "knowledge base", "local area network", "leverage", "matrices", "matrix", "methodology", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "open system", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "secured line", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "superstructure", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce" ], "bs_verb": [ "implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace", "enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize", "morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate", "synergize", "strategize", "deploy", "brand", "grow", "target", "syndicate", "synthesize", "deliver", "mesh", "incubate", "engage", "maximize", "benchmark", "expedite", "reintermediate", "whiteboard", "visualize", "repurpose", "innovate", "scale", "unleash", "drive", "extend", "engineer", "revolutionize", "generate", "exploit", "transition", "e-enable", "iterate", "cultivate", "matrix", "productize", "redefine", "recontextualize" ], "bs_adjective": [ "clicks-and-mortar", "value-added", "vertical", "proactive", "robust", "revolutionary", "scalable", "leading-edge", "innovative", "intuitive", "strategic", "e-business", "mission-critical", "sticky", "one-to-one", "24/7", "end-to-end", "global", "B2B", "B2C", "granular", "frictionless", "virtual", "viral", "dynamic", "24/365", "best-of-breed", "killer", "magnetic", "bleeding-edge", "web-enabled", "interactive", "dot-com", "sexy", "back-end", "real-time", "efficient", "front-end", "distributed", "seamless", "extensible", "turn-key", "world-class", "open-source", "cross-platform", "cross-media", "synergistic", "bricks-and-clicks", "out-of-the-box", "enterprise", "integrated", "impactful", "wireless", "transparent", "next-generation", "cutting-edge", "user-centric", "visionary", "customized", "ubiquitous", "plug-and-play", "collaborative", "compelling", "holistic", "rich" ], "bs_noun": [ "synergies", "web-readiness", "paradigms", "markets", "partnerships", "infrastructures", "platforms", "initiatives", "channels", "eyeballs", "communities", "ROI", "solutions", "e-tailers", "e-services", "action-items", "portals", "niches", "technologies", "content", "vortals", "supply-chains", "convergence", "relationships", "architectures", "interfaces", "e-markets", "e-commerce", "systems", "bandwidth", "infomediaries", "models", "mindshare", "deliverables", "users", "schemas", "networks", "applications", "metrics", "e-business", "functionalities", "experiences", "web services", "methodologies" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} and #{Name.last_name}" ] }; en.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "biz", "info", "name", "net", "org" ] }; //All this avatar have been authorized by its awesome users to be use on live websites (not just mockups) //For more information, please visit: http://uifaces.com/authorized var avatarUri = ["jarjan/128.jpg", "mahdif/128.jpg", "sprayaga/128.jpg", "ruzinav/128.jpg", "Skyhartman/128.jpg", "moscoz/128.jpg", "kurafire/128.jpg", "91bilal/128.jpg", "igorgarybaldi/128.jpg", "calebogden/128.jpg", "malykhinv/128.jpg", "joelhelin/128.jpg", "kushsolitary/128.jpg", "coreyweb/128.jpg", "snowshade/128.jpg", "areus/128.jpg", "holdenweb/128.jpg", "heyimjuani/128.jpg", "envex/128.jpg", "unterdreht/128.jpg", "collegeman/128.jpg", "peejfancher/128.jpg", "andyisonline/128.jpg", "ultragex/128.jpg", "fuck_you_two/128.jpg", "adellecharles/128.jpg", "ateneupopular/128.jpg", "ahmetalpbalkan/128.jpg", "Stievius/128.jpg", "kerem/128.jpg", "osvaldas/128.jpg", "angelceballos/128.jpg", "thierrykoblentz/128.jpg", "peterlandt/128.jpg", "catarino/128.jpg", "wr/128.jpg", "weglov/128.jpg", "brandclay/128.jpg", "flame_kaizar/128.jpg", "ahmetsulek/128.jpg", "nicolasfolliot/128.jpg", "jayrobinson/128.jpg", "victorerixon/128.jpg", "kolage/128.jpg", "michzen/128.jpg", "markjenkins/128.jpg", "nicolai_larsen/128.jpg", "gt/128.jpg", "noxdzine/128.jpg", "alagoon/128.jpg", "idiot/128.jpg", "mizko/128.jpg", "chadengle/128.jpg", "mutlu82/128.jpg", "simobenso/128.jpg", "vocino/128.jpg", "guiiipontes/128.jpg", "soyjavi/128.jpg", "joshaustin/128.jpg", "tomaslau/128.jpg", "VinThomas/128.jpg", "ManikRathee/128.jpg", "langate/128.jpg", "cemshid/128.jpg", "leemunroe/128.jpg", "_shahedk/128.jpg", "enda/128.jpg", "BillSKenney/128.jpg", "divya/128.jpg", "joshhemsley/128.jpg", "sindresorhus/128.jpg", "soffes/128.jpg", "9lessons/128.jpg", "linux29/128.jpg", "Chakintosh/128.jpg", "anaami/128.jpg", "joreira/128.jpg", "shadeed9/128.jpg", "scottkclark/128.jpg", "jedbridges/128.jpg", "salleedesign/128.jpg", "marakasina/128.jpg", "ariil/128.jpg", "BrianPurkiss/128.jpg", "michaelmartinho/128.jpg", "bublienko/128.jpg", "devankoshal/128.jpg", "ZacharyZorbas/128.jpg", "timmillwood/128.jpg", "joshuasortino/128.jpg", "damenleeturks/128.jpg", "tomas_janousek/128.jpg", "herrhaase/128.jpg", "RussellBishop/128.jpg", "brajeshwar/128.jpg", "nachtmeister/128.jpg", "cbracco/128.jpg", "bermonpainter/128.jpg", "abdullindenis/128.jpg", "isacosta/128.jpg", "suprb/128.jpg", "yalozhkin/128.jpg", "chandlervdw/128.jpg", "iamgarth/128.jpg", "_victa/128.jpg", "commadelimited/128.jpg", "roybarberuk/128.jpg", "axel/128.jpg", "vladarbatov/128.jpg", "ffbel/128.jpg", "syropian/128.jpg", "ankitind/128.jpg", "traneblow/128.jpg", "flashmurphy/128.jpg", "ChrisFarina78/128.jpg", "baliomega/128.jpg", "saschamt/128.jpg", "jm_denis/128.jpg", "anoff/128.jpg", "kennyadr/128.jpg", "chatyrko/128.jpg", "dingyi/128.jpg", "mds/128.jpg", "terryxlife/128.jpg", "aaroni/128.jpg", "kinday/128.jpg", "prrstn/128.jpg", "eduardostuart/128.jpg", "dhilipsiva/128.jpg", "GavicoInd/128.jpg", "baires/128.jpg", "rohixx/128.jpg", "bigmancho/128.jpg", "blakesimkins/128.jpg", "leeiio/128.jpg", "tjrus/128.jpg", "uberschizo/128.jpg", "kylefoundry/128.jpg", "claudioguglieri/128.jpg", "ripplemdk/128.jpg", "exentrich/128.jpg", "jakemoore/128.jpg", "joaoedumedeiros/128.jpg", "poormini/128.jpg", "tereshenkov/128.jpg", "keryilmaz/128.jpg", "haydn_woods/128.jpg", "rude/128.jpg", "llun/128.jpg", "sgaurav_baghel/128.jpg", "jamiebrittain/128.jpg", "badlittleduck/128.jpg", "pifagor/128.jpg", "agromov/128.jpg", "benefritz/128.jpg", "erwanhesry/128.jpg", "diesellaws/128.jpg", "jeremiaha/128.jpg", "koridhandy/128.jpg", "chaensel/128.jpg", "andrewcohen/128.jpg", "smaczny/128.jpg", "gonzalorobaina/128.jpg", "nandini_m/128.jpg", "sydlawrence/128.jpg", "cdharrison/128.jpg", "tgerken/128.jpg", "lewisainslie/128.jpg", "charliecwaite/128.jpg", "robbschiller/128.jpg", "flexrs/128.jpg", "mattdetails/128.jpg", "raquelwilson/128.jpg", "karsh/128.jpg", "mrmartineau/128.jpg", "opnsrce/128.jpg", "hgharrygo/128.jpg", "maximseshuk/128.jpg", "uxalex/128.jpg", "samihah/128.jpg", "chanpory/128.jpg", "sharvin/128.jpg", "josemarques/128.jpg", "jefffis/128.jpg", "krystalfister/128.jpg", "lokesh_coder/128.jpg", "thedamianhdez/128.jpg", "dpmachado/128.jpg", "funwatercat/128.jpg", "timothycd/128.jpg", "ivanfilipovbg/128.jpg", "picard102/128.jpg", "marcobarbosa/128.jpg", "krasnoukhov/128.jpg", "g3d/128.jpg", "ademilter/128.jpg", "rickdt/128.jpg", "operatino/128.jpg", "bungiwan/128.jpg", "hugomano/128.jpg", "logorado/128.jpg", "dc_user/128.jpg", "horaciobella/128.jpg", "SlaapMe/128.jpg", "teeragit/128.jpg", "iqonicd/128.jpg", "ilya_pestov/128.jpg", "andrewarrow/128.jpg", "ssiskind/128.jpg", "stan/128.jpg", "HenryHoffman/128.jpg", "rdsaunders/128.jpg", "adamsxu/128.jpg", "curiousoffice/128.jpg", "themadray/128.jpg", "michigangraham/128.jpg", "kohette/128.jpg", "nickfratter/128.jpg", "runningskull/128.jpg", "madysondesigns/128.jpg", "brenton_clarke/128.jpg", "jennyshen/128.jpg", "bradenhamm/128.jpg", "kurtinc/128.jpg", "amanruzaini/128.jpg", "coreyhaggard/128.jpg", "Karimmove/128.jpg", "aaronalfred/128.jpg", "wtrsld/128.jpg", "jitachi/128.jpg", "therealmarvin/128.jpg", "pmeissner/128.jpg", "ooomz/128.jpg", "chacky14/128.jpg", "jesseddy/128.jpg", "thinmatt/128.jpg", "shanehudson/128.jpg", "akmur/128.jpg", "IsaryAmairani/128.jpg", "arthurholcombe1/128.jpg", "andychipster/128.jpg", "boxmodel/128.jpg", "ehsandiary/128.jpg", "LucasPerdidao/128.jpg", "shalt0ni/128.jpg", "swaplord/128.jpg", "kaelifa/128.jpg", "plbabin/128.jpg", "guillemboti/128.jpg", "arindam_/128.jpg", "renbyrd/128.jpg", "thiagovernetti/128.jpg", "jmillspaysbills/128.jpg", "mikemai2awesome/128.jpg", "jervo/128.jpg", "mekal/128.jpg", "sta1ex/128.jpg", "robergd/128.jpg", "felipecsl/128.jpg", "andrea211087/128.jpg", "garand/128.jpg", "dhooyenga/128.jpg", "abovefunction/128.jpg", "pcridesagain/128.jpg", "randomlies/128.jpg", "BryanHorsey/128.jpg", "heykenneth/128.jpg", "dahparra/128.jpg", "allthingssmitty/128.jpg", "danvernon/128.jpg", "beweinreich/128.jpg", "increase/128.jpg", "falvarad/128.jpg", "alxndrustinov/128.jpg", "souuf/128.jpg", "orkuncaylar/128.jpg", "AM_Kn2/128.jpg", "gearpixels/128.jpg", "bassamology/128.jpg", "vimarethomas/128.jpg", "kosmar/128.jpg", "SULiik/128.jpg", "mrjamesnoble/128.jpg", "silvanmuhlemann/128.jpg", "shaneIxD/128.jpg", "nacho/128.jpg", "yigitpinarbasi/128.jpg", "buzzusborne/128.jpg", "aaronkwhite/128.jpg", "rmlewisuk/128.jpg", "giancarlon/128.jpg", "nbirckel/128.jpg", "d_nny_m_cher/128.jpg", "sdidonato/128.jpg", "atariboy/128.jpg", "abotap/128.jpg", "karalek/128.jpg", "psdesignuk/128.jpg", "ludwiczakpawel/128.jpg", "nemanjaivanovic/128.jpg", "baluli/128.jpg", "ahmadajmi/128.jpg", "vovkasolovev/128.jpg", "samgrover/128.jpg", "derienzo777/128.jpg", "jonathansimmons/128.jpg", "nelsonjoyce/128.jpg", "S0ufi4n3/128.jpg", "xtopherpaul/128.jpg", "oaktreemedia/128.jpg", "nateschulte/128.jpg", "findingjenny/128.jpg", "namankreative/128.jpg", "antonyzotov/128.jpg", "we_social/128.jpg", "leehambley/128.jpg", "solid_color/128.jpg", "abelcabans/128.jpg", "mbilderbach/128.jpg", "kkusaa/128.jpg", "jordyvdboom/128.jpg", "carlosgavina/128.jpg", "pechkinator/128.jpg", "vc27/128.jpg", "rdbannon/128.jpg", "croakx/128.jpg", "suribbles/128.jpg", "kerihenare/128.jpg", "catadeleon/128.jpg", "gcmorley/128.jpg", "duivvv/128.jpg", "saschadroste/128.jpg", "victorDubugras/128.jpg", "wintopia/128.jpg", "mattbilotti/128.jpg", "taylorling/128.jpg", "megdraws/128.jpg", "meln1ks/128.jpg", "mahmoudmetwally/128.jpg", "Silveredge9/128.jpg", "derekebradley/128.jpg", "happypeter1983/128.jpg", "travis_arnold/128.jpg", "artem_kostenko/128.jpg", "adobi/128.jpg", "daykiine/128.jpg", "alek_djuric/128.jpg", "scips/128.jpg", "miguelmendes/128.jpg", "justinrhee/128.jpg", "alsobrooks/128.jpg", "fronx/128.jpg", "mcflydesign/128.jpg", "santi_urso/128.jpg", "allfordesign/128.jpg", "stayuber/128.jpg", "bertboerland/128.jpg", "marosholly/128.jpg", "adamnac/128.jpg", "cynthiasavard/128.jpg", "muringa/128.jpg", "danro/128.jpg", "hiemil/128.jpg", "jackiesaik/128.jpg", "zacsnider/128.jpg", "iduuck/128.jpg", "antjanus/128.jpg", "aroon_sharma/128.jpg", "dshster/128.jpg", "thehacker/128.jpg", "michaelbrooksjr/128.jpg", "ryanmclaughlin/128.jpg", "clubb3rry/128.jpg", "taybenlor/128.jpg", "xripunov/128.jpg", "myastro/128.jpg", "adityasutomo/128.jpg", "digitalmaverick/128.jpg", "hjartstrorn/128.jpg", "itolmach/128.jpg", "vaughanmoffitt/128.jpg", "abdots/128.jpg", "isnifer/128.jpg", "sergeysafonov/128.jpg", "maz/128.jpg", "scrapdnb/128.jpg", "chrismj83/128.jpg", "vitorleal/128.jpg", "sokaniwaal/128.jpg", "zaki3d/128.jpg", "illyzoren/128.jpg", "mocabyte/128.jpg", "osmanince/128.jpg", "djsherman/128.jpg", "davidhemphill/128.jpg", "waghner/128.jpg", "necodymiconer/128.jpg", "praveen_vijaya/128.jpg", "fabbrucci/128.jpg", "cliffseal/128.jpg", "travishines/128.jpg", "kuldarkalvik/128.jpg", "Elt_n/128.jpg", "phillapier/128.jpg", "okseanjay/128.jpg", "id835559/128.jpg", "kudretkeskin/128.jpg", "anjhero/128.jpg", "duck4fuck/128.jpg", "scott_riley/128.jpg", "noufalibrahim/128.jpg", "h1brd/128.jpg", "borges_marcos/128.jpg", "devinhalladay/128.jpg", "ciaranr/128.jpg", "stefooo/128.jpg", "mikebeecham/128.jpg", "tonymillion/128.jpg", "joshuaraichur/128.jpg", "irae/128.jpg", "petrangr/128.jpg", "dmitriychuta/128.jpg", "charliegann/128.jpg", "arashmanteghi/128.jpg", "adhamdannaway/128.jpg", "ainsleywagon/128.jpg", "svenlen/128.jpg", "faisalabid/128.jpg", "beshur/128.jpg", "carlyson/128.jpg", "dutchnadia/128.jpg", "teddyzetterlund/128.jpg", "samuelkraft/128.jpg", "aoimedia/128.jpg", "toddrew/128.jpg", "codepoet_ru/128.jpg", "artvavs/128.jpg", "benoitboucart/128.jpg", "jomarmen/128.jpg", "kolmarlopez/128.jpg", "creartinc/128.jpg", "homka/128.jpg", "gaborenton/128.jpg", "robinclediere/128.jpg", "maximsorokin/128.jpg", "plasticine/128.jpg", "j2deme/128.jpg", "peachananr/128.jpg", "kapaluccio/128.jpg", "de_ascanio/128.jpg", "rikas/128.jpg", "dawidwu/128.jpg", "marcoramires/128.jpg", "angelcreative/128.jpg", "rpatey/128.jpg", "popey/128.jpg", "rehatkathuria/128.jpg", "the_purplebunny/128.jpg", "1markiz/128.jpg", "ajaxy_ru/128.jpg", "brenmurrell/128.jpg", "dudestein/128.jpg", "oskarlevinson/128.jpg", "victorstuber/128.jpg", "nehfy/128.jpg", "vicivadeline/128.jpg", "leandrovaranda/128.jpg", "scottgallant/128.jpg", "victor_haydin/128.jpg", "sawrb/128.jpg", "ryhanhassan/128.jpg", "amayvs/128.jpg", "a_brixen/128.jpg", "karolkrakowiak_/128.jpg", "herkulano/128.jpg", "geran7/128.jpg", "cggaurav/128.jpg", "chris_witko/128.jpg", "lososina/128.jpg", "polarity/128.jpg", "mattlat/128.jpg", "brandonburke/128.jpg", "constantx/128.jpg", "teylorfeliz/128.jpg", "craigelimeliah/128.jpg", "rachelreveley/128.jpg", "reabo101/128.jpg", "rahmeen/128.jpg", "ky/128.jpg", "rickyyean/128.jpg", "j04ntoh/128.jpg", "spbroma/128.jpg", "sebashton/128.jpg", "jpenico/128.jpg", "francis_vega/128.jpg", "oktayelipek/128.jpg", "kikillo/128.jpg", "fabbianz/128.jpg", "larrygerard/128.jpg", "BroumiYoussef/128.jpg", "0therplanet/128.jpg", "mbilalsiddique1/128.jpg", "ionuss/128.jpg", "grrr_nl/128.jpg", "liminha/128.jpg", "rawdiggie/128.jpg", "ryandownie/128.jpg", "sethlouey/128.jpg", "pixage/128.jpg", "arpitnj/128.jpg", "switmer777/128.jpg", "josevnclch/128.jpg", "kanickairaj/128.jpg", "puzik/128.jpg", "tbakdesigns/128.jpg", "besbujupi/128.jpg", "supjoey/128.jpg", "lowie/128.jpg", "linkibol/128.jpg", "balintorosz/128.jpg", "imcoding/128.jpg", "agustincruiz/128.jpg", "gusoto/128.jpg", "thomasschrijer/128.jpg", "superoutman/128.jpg", "kalmerrautam/128.jpg", "gabrielizalo/128.jpg", "gojeanyn/128.jpg", "davidbaldie/128.jpg", "_vojto/128.jpg", "laurengray/128.jpg", "jydesign/128.jpg", "mymyboy/128.jpg", "nellleo/128.jpg", "marciotoledo/128.jpg", "ninjad3m0/128.jpg", "to_soham/128.jpg", "hasslunsford/128.jpg", "muridrahhal/128.jpg", "levisan/128.jpg", "grahamkennery/128.jpg", "lepetitogre/128.jpg", "antongenkin/128.jpg", "nessoila/128.jpg", "amandabuzard/128.jpg", "safrankov/128.jpg", "cocolero/128.jpg", "dss49/128.jpg", "matt3224/128.jpg", "bluesix/128.jpg", "quailandquasar/128.jpg", "AlbertoCococi/128.jpg", "lepinski/128.jpg", "sementiy/128.jpg", "mhudobivnik/128.jpg", "thibaut_re/128.jpg", "olgary/128.jpg", "shojberg/128.jpg", "mtolokonnikov/128.jpg", "bereto/128.jpg", "naupintos/128.jpg", "wegotvices/128.jpg", "xadhix/128.jpg", "macxim/128.jpg", "rodnylobos/128.jpg", "madcampos/128.jpg", "madebyvadim/128.jpg", "bartoszdawydzik/128.jpg", "supervova/128.jpg", "markretzloff/128.jpg", "vonachoo/128.jpg", "darylws/128.jpg", "stevedesigner/128.jpg", "mylesb/128.jpg", "herbigt/128.jpg", "depaulawagner/128.jpg", "geshan/128.jpg", "gizmeedevil1991/128.jpg", "_scottburgess/128.jpg", "lisovsky/128.jpg", "davidsasda/128.jpg", "artd_sign/128.jpg", "YoungCutlass/128.jpg", "mgonto/128.jpg", "itstotallyamy/128.jpg", "victorquinn/128.jpg", "osmond/128.jpg", "oksanafrewer/128.jpg", "zauerkraut/128.jpg", "iamkeithmason/128.jpg", "nitinhayaran/128.jpg", "lmjabreu/128.jpg", "mandalareopens/128.jpg", "thinkleft/128.jpg", "ponchomendivil/128.jpg", "juamperro/128.jpg", "brunodesign1206/128.jpg", "caseycavanagh/128.jpg", "luxe/128.jpg", "dotgridline/128.jpg", "spedwig/128.jpg", "madewulf/128.jpg", "mattsapii/128.jpg", "helderleal/128.jpg", "chrisstumph/128.jpg", "jayphen/128.jpg", "nsamoylov/128.jpg", "chrisvanderkooi/128.jpg", "justme_timothyg/128.jpg", "otozk/128.jpg", "prinzadi/128.jpg", "gu5taf/128.jpg", "cyril_gaillard/128.jpg", "d_kobelyatsky/128.jpg", "daniloc/128.jpg", "nwdsha/128.jpg", "romanbulah/128.jpg", "skkirilov/128.jpg", "dvdwinden/128.jpg", "dannol/128.jpg", "thekevinjones/128.jpg", "jwalter14/128.jpg", "timgthomas/128.jpg", "buddhasource/128.jpg", "uxpiper/128.jpg", "thatonetommy/128.jpg", "diansigitp/128.jpg", "adrienths/128.jpg", "klimmka/128.jpg", "gkaam/128.jpg", "derekcramer/128.jpg", "jennyyo/128.jpg", "nerrsoft/128.jpg", "xalionmalik/128.jpg", "edhenderson/128.jpg", "keyuri85/128.jpg", "roxanejammet/128.jpg", "kimcool/128.jpg", "edkf/128.jpg", "matkins/128.jpg", "alessandroribe/128.jpg", "jacksonlatka/128.jpg", "lebronjennan/128.jpg", "kostaspt/128.jpg", "karlkanall/128.jpg", "moynihan/128.jpg", "danpliego/128.jpg", "saulihirvi/128.jpg", "wesleytrankin/128.jpg", "fjaguero/128.jpg", "bowbrick/128.jpg", "mashaaaaal/128.jpg", "yassiryahya/128.jpg", "dparrelli/128.jpg", "fotomagin/128.jpg", "aka_james/128.jpg", "denisepires/128.jpg", "iqbalperkasa/128.jpg", "martinansty/128.jpg", "jarsen/128.jpg", "r_oy/128.jpg", "justinrob/128.jpg", "gabrielrosser/128.jpg", "malgordon/128.jpg", "carlfairclough/128.jpg", "michaelabehsera/128.jpg", "pierrestoffe/128.jpg", "enjoythetau/128.jpg", "loganjlambert/128.jpg", "rpeezy/128.jpg", "coreyginnivan/128.jpg", "michalhron/128.jpg", "msveet/128.jpg", "lingeswaran/128.jpg", "kolsvein/128.jpg", "peter576/128.jpg", "reideiredale/128.jpg", "joeymurdah/128.jpg", "raphaelnikson/128.jpg", "mvdheuvel/128.jpg", "maxlinderman/128.jpg", "jimmuirhead/128.jpg", "begreative/128.jpg", "frankiefreesbie/128.jpg", "robturlinckx/128.jpg", "Talbi_ConSept/128.jpg", "longlivemyword/128.jpg", "vanchesz/128.jpg", "maiklam/128.jpg", "hermanobrother/128.jpg", "rez___a/128.jpg", "gregsqueeb/128.jpg", "greenbes/128.jpg", "_ragzor/128.jpg", "anthonysukow/128.jpg", "fluidbrush/128.jpg", "dactrtr/128.jpg", "jehnglynn/128.jpg", "bergmartin/128.jpg", "hugocornejo/128.jpg", "_kkga/128.jpg", "dzantievm/128.jpg", "sawalazar/128.jpg", "sovesove/128.jpg", "jonsgotwood/128.jpg", "byryan/128.jpg", "vytautas_a/128.jpg", "mizhgan/128.jpg", "cicerobr/128.jpg", "nilshelmersson/128.jpg", "d33pthought/128.jpg", "davecraige/128.jpg", "nckjrvs/128.jpg", "alexandermayes/128.jpg", "jcubic/128.jpg", "craigrcoles/128.jpg", "bagawarman/128.jpg", "rob_thomas10/128.jpg", "cofla/128.jpg", "maikelk/128.jpg", "rtgibbons/128.jpg", "russell_baylis/128.jpg", "mhesslow/128.jpg", "codysanfilippo/128.jpg", "webtanya/128.jpg", "madebybrenton/128.jpg", "dcalonaci/128.jpg", "perfectflow/128.jpg", "jjsiii/128.jpg", "saarabpreet/128.jpg", "kumarrajan12123/128.jpg", "iamsteffen/128.jpg", "themikenagle/128.jpg", "ceekaytweet/128.jpg", "larrybolt/128.jpg", "conspirator/128.jpg", "dallasbpeters/128.jpg", "n3dmax/128.jpg", "terpimost/128.jpg", "kirillz/128.jpg", "byrnecore/128.jpg", "j_drake_/128.jpg", "calebjoyce/128.jpg", "russoedu/128.jpg", "hoangloi/128.jpg", "tobysaxon/128.jpg", "gofrasdesign/128.jpg", "dimaposnyy/128.jpg", "tjisousa/128.jpg", "okandungel/128.jpg", "billyroshan/128.jpg", "oskamaya/128.jpg", "motionthinks/128.jpg", "knilob/128.jpg", "ashocka18/128.jpg", "marrimo/128.jpg", "bartjo/128.jpg", "omnizya/128.jpg", "ernestsemerda/128.jpg", "andreas_pr/128.jpg", "edgarchris99/128.jpg", "thomasgeisen/128.jpg", "gseguin/128.jpg", "joannefournier/128.jpg", "demersdesigns/128.jpg", "adammarsbar/128.jpg", "nasirwd/128.jpg", "n_tassone/128.jpg", "javorszky/128.jpg", "themrdave/128.jpg", "yecidsm/128.jpg", "nicollerich/128.jpg", "canapud/128.jpg", "nicoleglynn/128.jpg", "judzhin_miles/128.jpg", "designervzm/128.jpg", "kianoshp/128.jpg", "evandrix/128.jpg", "alterchuca/128.jpg", "dhrubo/128.jpg", "ma_tiax/128.jpg", "ssbb_me/128.jpg", "dorphern/128.jpg", "mauriolg/128.jpg", "bruno_mart/128.jpg", "mactopus/128.jpg", "the_winslet/128.jpg", "joemdesign/128.jpg", "Shriiiiimp/128.jpg", "jacobbennett/128.jpg", "nfedoroff/128.jpg", "iamglimy/128.jpg", "allagringaus/128.jpg", "aiiaiiaii/128.jpg", "olaolusoga/128.jpg", "buryaknick/128.jpg", "wim1k/128.jpg", "nicklacke/128.jpg", "a1chapone/128.jpg", "steynviljoen/128.jpg", "strikewan/128.jpg", "ryankirkman/128.jpg", "andrewabogado/128.jpg", "doooon/128.jpg", "jagan123/128.jpg", "ariffsetiawan/128.jpg", "elenadissi/128.jpg", "mwarkentin/128.jpg", "thierrymeier_/128.jpg", "r_garcia/128.jpg", "dmackerman/128.jpg", "borantula/128.jpg", "konus/128.jpg", "spacewood_/128.jpg", "ryuchi311/128.jpg", "evanshajed/128.jpg", "tristanlegros/128.jpg", "shoaib253/128.jpg", "aislinnkelly/128.jpg", "okcoker/128.jpg", "timpetricola/128.jpg", "sunshinedgirl/128.jpg", "chadami/128.jpg", "aleclarsoniv/128.jpg", "nomidesigns/128.jpg", "petebernardo/128.jpg", "scottiedude/128.jpg", "millinet/128.jpg", "imsoper/128.jpg", "imammuht/128.jpg", "benjamin_knight/128.jpg", "nepdud/128.jpg", "joki4/128.jpg", "lanceguyatt/128.jpg", "bboy1895/128.jpg", "amywebbb/128.jpg", "rweve/128.jpg", "haruintesettden/128.jpg", "ricburton/128.jpg", "nelshd/128.jpg", "batsirai/128.jpg", "primozcigler/128.jpg", "jffgrdnr/128.jpg", "8d3k/128.jpg", "geneseleznev/128.jpg", "al_li/128.jpg", "souperphly/128.jpg", "mslarkina/128.jpg", "2fockus/128.jpg", "cdavis565/128.jpg", "xiel/128.jpg", "turkutuuli/128.jpg", "uxward/128.jpg", "lebinoclard/128.jpg", "gauravjassal/128.jpg", "davidmerrique/128.jpg", "mdsisto/128.jpg", "andrewofficer/128.jpg", "kojourin/128.jpg", "dnirmal/128.jpg", "kevka/128.jpg", "mr_shiznit/128.jpg", "aluisio_azevedo/128.jpg", "cloudstudio/128.jpg", "danvierich/128.jpg", "alexivanichkin/128.jpg", "fran_mchamy/128.jpg", "perretmagali/128.jpg", "betraydan/128.jpg", "cadikkara/128.jpg", "matbeedotcom/128.jpg", "jeremyworboys/128.jpg", "bpartridge/128.jpg", "michaelkoper/128.jpg", "silv3rgvn/128.jpg", "alevizio/128.jpg", "johnsmithagency/128.jpg", "lawlbwoy/128.jpg", "vitor376/128.jpg", "desastrozo/128.jpg", "thimo_cz/128.jpg", "jasonmarkjones/128.jpg", "lhausermann/128.jpg", "xravil/128.jpg", "guischmitt/128.jpg", "vigobronx/128.jpg", "panghal0/128.jpg", "miguelkooreman/128.jpg", "surgeonist/128.jpg", "christianoliff/128.jpg", "caspergrl/128.jpg", "iamkarna/128.jpg", "ipavelek/128.jpg", "pierre_nel/128.jpg", "y2graphic/128.jpg", "sterlingrules/128.jpg", "elbuscainfo/128.jpg", "bennyjien/128.jpg", "stushona/128.jpg", "estebanuribe/128.jpg", "embrcecreations/128.jpg", "danillos/128.jpg", "elliotlewis/128.jpg", "charlesrpratt/128.jpg", "vladyn/128.jpg", "emmeffess/128.jpg", "carlosblanco_eu/128.jpg", "leonfedotov/128.jpg", "rangafangs/128.jpg", "chris_frees/128.jpg", "tgormtx/128.jpg", "bryan_topham/128.jpg", "jpscribbles/128.jpg", "mighty55/128.jpg", "carbontwelve/128.jpg", "isaacfifth/128.jpg", "iamjdeleon/128.jpg", "snowwrite/128.jpg", "barputro/128.jpg", "drewbyreese/128.jpg", "sachacorazzi/128.jpg", "bistrianiosip/128.jpg", "magoo04/128.jpg", "pehamondello/128.jpg", "yayteejay/128.jpg", "a_harris88/128.jpg", "algunsanabria/128.jpg", "zforrester/128.jpg", "ovall/128.jpg", "carlosjgsousa/128.jpg", "geobikas/128.jpg", "ah_lice/128.jpg", "looneydoodle/128.jpg", "nerdgr8/128.jpg", "ddggccaa/128.jpg", "zackeeler/128.jpg", "normanbox/128.jpg", "el_fuertisimo/128.jpg", "ismail_biltagi/128.jpg", "juangomezw/128.jpg", "jnmnrd/128.jpg", "patrickcoombe/128.jpg", "ryanjohnson_me/128.jpg", "markolschesky/128.jpg", "jeffgolenski/128.jpg", "kvasnic/128.jpg", "lindseyzilla/128.jpg", "gauchomatt/128.jpg", "afusinatto/128.jpg", "kevinoh/128.jpg", "okansurreel/128.jpg", "adamawesomeface/128.jpg", "emileboudeling/128.jpg", "arishi_/128.jpg", "juanmamartinez/128.jpg", "wikiziner/128.jpg", "danthms/128.jpg", "mkginfo/128.jpg", "terrorpixel/128.jpg", "curiousonaut/128.jpg", "prheemo/128.jpg", "michaelcolenso/128.jpg", "foczzi/128.jpg", "martip07/128.jpg", "thaodang17/128.jpg", "johncafazza/128.jpg", "robinlayfield/128.jpg", "franciscoamk/128.jpg", "abdulhyeuk/128.jpg", "marklamb/128.jpg", "edobene/128.jpg", "andresenfredrik/128.jpg", "mikaeljorhult/128.jpg", "chrisslowik/128.jpg", "vinciarts/128.jpg", "meelford/128.jpg", "elliotnolten/128.jpg", "yehudab/128.jpg", "vijaykarthik/128.jpg", "bfrohs/128.jpg", "josep_martins/128.jpg", "attacks/128.jpg", "sur4dye/128.jpg", "tumski/128.jpg", "instalox/128.jpg", "mangosango/128.jpg", "paulfarino/128.jpg", "kazaky999/128.jpg", "kiwiupover/128.jpg", "nvkznemo/128.jpg", "tom_even/128.jpg", "ratbus/128.jpg", "woodsman001/128.jpg", "joshmedeski/128.jpg", "thewillbeard/128.jpg", "psaikali/128.jpg", "joe_black/128.jpg", "aleinadsays/128.jpg", "marcusgorillius/128.jpg", "hota_v/128.jpg", "jghyllebert/128.jpg", "shinze/128.jpg", "janpalounek/128.jpg", "jeremiespoken/128.jpg", "her_ruu/128.jpg", "dansowter/128.jpg", "felipeapiress/128.jpg", "magugzbrand2d/128.jpg", "posterjob/128.jpg", "nathalie_fs/128.jpg", "bobbytwoshoes/128.jpg", "dreizle/128.jpg", "jeremymouton/128.jpg", "elisabethkjaer/128.jpg", "notbadart/128.jpg", "mohanrohith/128.jpg", "jlsolerdeltoro/128.jpg", "itskawsar/128.jpg", "slowspock/128.jpg", "zvchkelly/128.jpg", "wiljanslofstra/128.jpg", "craighenneberry/128.jpg", "trubeatto/128.jpg", "juaumlol/128.jpg", "samscouto/128.jpg", "BenouarradeM/128.jpg", "gipsy_raf/128.jpg", "netonet_il/128.jpg", "arkokoley/128.jpg", "itsajimithing/128.jpg", "smalonso/128.jpg", "victordeanda/128.jpg", "_dwite_/128.jpg", "richardgarretts/128.jpg", "gregrwilkinson/128.jpg", "anatolinicolae/128.jpg", "lu4sh1i/128.jpg", "stefanotirloni/128.jpg", "ostirbu/128.jpg", "darcystonge/128.jpg", "naitanamoreno/128.jpg", "michaelcomiskey/128.jpg", "adhiardana/128.jpg", "marcomano_/128.jpg", "davidcazalis/128.jpg", "falconerie/128.jpg", "gregkilian/128.jpg", "bcrad/128.jpg", "bolzanmarco/128.jpg", "low_res/128.jpg", "vlajki/128.jpg", "petar_prog/128.jpg", "jonkspr/128.jpg", "akmalfikri/128.jpg", "mfacchinello/128.jpg", "atanism/128.jpg", "harry_sistalam/128.jpg", "murrayswift/128.jpg", "bobwassermann/128.jpg", "gavr1l0/128.jpg", "madshensel/128.jpg", "mr_subtle/128.jpg", "deviljho_/128.jpg", "salimianoff/128.jpg", "joetruesdell/128.jpg", "twittypork/128.jpg", "airskylar/128.jpg", "dnezkumar/128.jpg", "dgajjar/128.jpg", "cherif_b/128.jpg", "salvafc/128.jpg", "louis_currie/128.jpg", "deeenright/128.jpg", "cybind/128.jpg", "eyronn/128.jpg", "vickyshits/128.jpg", "sweetdelisa/128.jpg", "cboller1/128.jpg", "andresdjasso/128.jpg", "melvindidit/128.jpg", "andysolomon/128.jpg", "thaisselenator_/128.jpg", "lvovenok/128.jpg", "giuliusa/128.jpg", "belyaev_rs/128.jpg", "overcloacked/128.jpg", "kamal_chaneman/128.jpg", "incubo82/128.jpg", "hellofeverrrr/128.jpg", "mhaligowski/128.jpg", "sunlandictwin/128.jpg", "bu7921/128.jpg", "andytlaw/128.jpg", "jeremery/128.jpg", "finchjke/128.jpg", "manigm/128.jpg", "umurgdk/128.jpg", "scottfeltham/128.jpg", "ganserene/128.jpg", "mutu_krish/128.jpg", "jodytaggart/128.jpg", "ntfblog/128.jpg", "tanveerrao/128.jpg", "hfalucas/128.jpg", "alxleroydeval/128.jpg", "kucingbelang4/128.jpg", "bargaorobalo/128.jpg", "colgruv/128.jpg", "stalewine/128.jpg", "kylefrost/128.jpg", "baumannzone/128.jpg", "angelcolberg/128.jpg", "sachingawas/128.jpg", "jjshaw14/128.jpg", "ramanathan_pdy/128.jpg", "johndezember/128.jpg", "nilshoenson/128.jpg", "brandonmorreale/128.jpg", "nutzumi/128.jpg", "brandonflatsoda/128.jpg", "sergeyalmone/128.jpg", "klefue/128.jpg", "kirangopal/128.jpg", "baumann_alex/128.jpg", "matthewkay_/128.jpg", "jay_wilburn/128.jpg", "shesgared/128.jpg", "apriendeau/128.jpg", "johnriordan/128.jpg", "wake_gs/128.jpg", "aleksitappura/128.jpg", "emsgulam/128.jpg", "xilantra/128.jpg", "imomenui/128.jpg", "sircalebgrove/128.jpg", "newbrushes/128.jpg", "hsinyo23/128.jpg", "m4rio/128.jpg", "katiemdaly/128.jpg", "s4f1/128.jpg", "ecommerceil/128.jpg", "marlinjayakody/128.jpg", "swooshycueb/128.jpg", "sangdth/128.jpg", "coderdiaz/128.jpg", "bluefx_/128.jpg", "vivekprvr/128.jpg", "sasha_shestakov/128.jpg", "eugeneeweb/128.jpg", "dgclegg/128.jpg", "n1ght_coder/128.jpg", "dixchen/128.jpg", "blakehawksworth/128.jpg", "trueblood_33/128.jpg", "hai_ninh_nguyen/128.jpg", "marclgonzales/128.jpg", "yesmeck/128.jpg", "stephcoue/128.jpg", "doronmalki/128.jpg", "ruehldesign/128.jpg", "anasnakawa/128.jpg", "kijanmaharjan/128.jpg", "wearesavas/128.jpg", "stefvdham/128.jpg", "tweetubhai/128.jpg", "alecarpentier/128.jpg", "fiterik/128.jpg", "antonyryndya/128.jpg", "d00maz/128.jpg", "theonlyzeke/128.jpg", "missaaamy/128.jpg", "carlosm/128.jpg", "manekenthe/128.jpg", "reetajayendra/128.jpg", "jeremyshimko/128.jpg", "justinrgraham/128.jpg", "stefanozoffoli/128.jpg", "overra/128.jpg", "mrebay007/128.jpg", "shvelo96/128.jpg", "pyronite/128.jpg", "thedjpetersen/128.jpg", "rtyukmaev/128.jpg", "_williamguerra/128.jpg", "albertaugustin/128.jpg", "vikashpathak18/128.jpg", "kevinjohndayy/128.jpg", "vj_demien/128.jpg", "colirpixoil/128.jpg", "goddardlewis/128.jpg", "laasli/128.jpg", "jqiuss/128.jpg", "heycamtaylor/128.jpg", "nastya_mane/128.jpg", "mastermindesign/128.jpg", "ccinojasso1/128.jpg", "nyancecom/128.jpg", "sandywoodruff/128.jpg", "bighanddesign/128.jpg", "sbtransparent/128.jpg", "aviddayentonbay/128.jpg", "richwild/128.jpg", "kaysix_dizzy/128.jpg", "tur8le/128.jpg", "seyedhossein1/128.jpg", "privetwagner/128.jpg", "emmandenn/128.jpg", "dev_essentials/128.jpg", "jmfsocial/128.jpg", "_yardenoon/128.jpg", "mateaodviteza/128.jpg", "weavermedia/128.jpg", "mufaddal_mw/128.jpg", "hafeeskhan/128.jpg", "ashernatali/128.jpg", "sulaqo/128.jpg", "eddiechen/128.jpg", "josecarlospsh/128.jpg", "vm_f/128.jpg", "enricocicconi/128.jpg", "danmartin70/128.jpg", "gmourier/128.jpg", "donjain/128.jpg", "mrxloka/128.jpg", "_pedropinho/128.jpg", "eitarafa/128.jpg", "oscarowusu/128.jpg", "ralph_lam/128.jpg", "panchajanyag/128.jpg", "woodydotmx/128.jpg", "jerrybai1907/128.jpg", "marshallchen_/128.jpg", "xamorep/128.jpg", "aio___/128.jpg", "chaabane_wail/128.jpg", "txcx/128.jpg", "akashsharma39/128.jpg", "falling_soul/128.jpg", "sainraja/128.jpg", "mugukamil/128.jpg", "johannesneu/128.jpg", "markwienands/128.jpg", "karthipanraj/128.jpg", "balakayuriy/128.jpg", "alan_zhang_/128.jpg", "layerssss/128.jpg", "kaspernordkvist/128.jpg", "mirfanqureshi/128.jpg", "hanna_smi/128.jpg", "VMilescu/128.jpg", "aeon56/128.jpg", "m_kalibry/128.jpg", "sreejithexp/128.jpg", "dicesales/128.jpg", "dhoot_amit/128.jpg", "smenov/128.jpg", "lonesomelemon/128.jpg", "vladimirdevic/128.jpg", "joelcipriano/128.jpg", "haligaliharun/128.jpg", "buleswapnil/128.jpg", "serefka/128.jpg", "ifarafonow/128.jpg", "vikasvinfotech/128.jpg", "urrutimeoli/128.jpg", "areandacom/128.jpg" ]; en.internet.avatar_uri = []; for (var i = 0; i < avatarUri.length; i++) { en.internet.avatar_uri.push("https://s3.amazonaws.com/uifaces/faces/twitter/" + avatarUri[i]); }; en.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ], "supplemental": [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ] }; en.name = { "first_name": [ "Aaliyah", "Aaron", "Abagail", "Abbey", "Abbie", "Abbigail", "Abby", "Abdiel", "Abdul", "Abdullah", "Abe", "Abel", "Abelardo", "Abigail", "Abigale", "Abigayle", "Abner", "Abraham", "Ada", "Adah", "Adalberto", "Adaline", "Adam", "Adan", "Addie", "Addison", "Adela", "Adelbert", "Adele", "Adelia", "Adeline", "Adell", "Adella", "Adelle", "Aditya", "Adolf", "Adolfo", "Adolph", "Adolphus", "Adonis", "Adrain", "Adrian", "Adriana", "Adrianna", "Adriel", "Adrien", "Adrienne", "Afton", "Aglae", "Agnes", "Agustin", "Agustina", "Ahmad", "Ahmed", "Aida", "Aidan", "Aiden", "Aileen", "Aimee", "Aisha", "Aiyana", "Akeem", "Al", "Alaina", "Alan", "Alana", "Alanis", "Alanna", "Alayna", "Alba", "Albert", "Alberta", "Albertha", "Alberto", "Albin", "Albina", "Alda", "Alden", "Alec", "Aleen", "Alejandra", "Alejandrin", "Alek", "Alena", "Alene", "Alessandra", "Alessandro", "Alessia", "Aletha", "Alex", "Alexa", "Alexander", "Alexandra", "Alexandre", "Alexandrea", "Alexandria", "Alexandrine", "Alexandro", "Alexane", "Alexanne", "Alexie", "Alexis", "Alexys", "Alexzander", "Alf", "Alfonso", "Alfonzo", "Alford", "Alfred", "Alfreda", "Alfredo", "Ali", "Alia", "Alice", "Alicia", "Alisa", "Alisha", "Alison", "Alivia", "Aliya", "Aliyah", "Aliza", "Alize", "Allan", "Allen", "Allene", "Allie", "Allison", "Ally", "Alphonso", "Alta", "Althea", "Alva", "Alvah", "Alvena", "Alvera", "Alverta", "Alvina", "Alvis", "Alyce", "Alycia", "Alysa", "Alysha", "Alyson", "Alysson", "Amalia", "Amanda", "Amani", "Amara", "Amari", "Amaya", "Amber", "Ambrose", "Amelia", "Amelie", "Amely", "America", "Americo", "Amie", "Amina", "Amir", "Amira", "Amiya", "Amos", "Amparo", "Amy", "Amya", "Ana", "Anabel", "Anabelle", "Anahi", "Anais", "Anastacio", "Anastasia", "Anderson", "Andre", "Andreane", "Andreanne", "Andres", "Andrew", "Andy", "Angel", "Angela", "Angelica", "Angelina", "Angeline", "Angelita", "Angelo", "Angie", "Angus", "Anibal", "Anika", "Anissa", "Anita", "Aniya", "Aniyah", "Anjali", "Anna", "Annabel", "Annabell", "Annabelle", "Annalise", "Annamae", "Annamarie", "Anne", "Annetta", "Annette", "Annie", "Ansel", "Ansley", "Anthony", "Antoinette", "Antone", "Antonetta", "Antonette", "Antonia", "Antonietta", "Antonina", "Antonio", "Antwan", "Antwon", "Anya", "April", "Ara", "Araceli", "Aracely", "Arch", "Archibald", "Ardella", "Arden", "Ardith", "Arely", "Ari", "Ariane", "Arianna", "Aric", "Ariel", "Arielle", "Arjun", "Arlene", "Arlie", "Arlo", "Armand", "Armando", "Armani", "Arnaldo", "Arne", "Arno", "Arnold", "Arnoldo", "Arnulfo", "Aron", "Art", "Arthur", "Arturo", "Arvel", "Arvid", "Arvilla", "Aryanna", "Asa", "Asha", "Ashlee", "Ashleigh", "Ashley", "Ashly", "Ashlynn", "Ashton", "Ashtyn", "Asia", "Assunta", "Astrid", "Athena", "Aubree", "Aubrey", "Audie", "Audra", "Audreanne", "Audrey", "August", "Augusta", "Augustine", "Augustus", "Aurelia", "Aurelie", "Aurelio", "Aurore", "Austen", "Austin", "Austyn", "Autumn", "Ava", "Avery", "Avis", "Axel", "Ayana", "Ayden", "Ayla", "Aylin", "Baby", "Bailee", "Bailey", "Barbara", "Barney", "Baron", "Barrett", "Barry", "Bart", "Bartholome", "Barton", "Baylee", "Beatrice", "Beau", "Beaulah", "Bell", "Bella", "Belle", "Ben", "Benedict", "Benjamin", "Bennett", "Bennie", "Benny", "Benton", "Berenice", "Bernadette", "Bernadine", "Bernard", "Bernardo", "Berneice", "Bernhard", "Bernice", "Bernie", "Berniece", "Bernita", "Berry", "Bert", "Berta", "Bertha", "Bertram", "Bertrand", "Beryl", "Bessie", "Beth", "Bethany", "Bethel", "Betsy", "Bette", "Bettie", "Betty", "Bettye", "Beulah", "Beverly", "Bianka", "Bill", "Billie", "Billy", "Birdie", "Blair", "Blaise", "Blake", "Blanca", "Blanche", "Blaze", "Bo", "Bobbie", "Bobby", "Bonita", "Bonnie", "Boris", "Boyd", "Brad", "Braden", "Bradford", "Bradley", "Bradly", "Brady", "Braeden", "Brain", "Brandi", "Brando", "Brandon", "Brandt", "Brandy", "Brandyn", "Brannon", "Branson", "Brant", "Braulio", "Braxton", "Brayan", "Breana", "Breanna", "Breanne", "Brenda", "Brendan", "Brenden", "Brendon", "Brenna", "Brennan", "Brennon", "Brent", "Bret", "Brett", "Bria", "Brian", "Briana", "Brianne", "Brice", "Bridget", "Bridgette", "Bridie", "Brielle", "Brigitte", "Brionna", "Brisa", "Britney", "Brittany", "Brock", "Broderick", "Brody", "Brook", "Brooke", "Brooklyn", "Brooks", "Brown", "Bruce", "Bryana", "Bryce", "Brycen", "Bryon", "Buck", "Bud", "Buddy", "Buford", "Bulah", "Burdette", "Burley", "Burnice", "Buster", "Cade", "Caden", "Caesar", "Caitlyn", "Cale", "Caleb", "Caleigh", "Cali", "Calista", "Callie", "Camden", "Cameron", "Camila", "Camilla", "Camille", "Camren", "Camron", "Camryn", "Camylle", "Candace", "Candelario", "Candice", "Candida", "Candido", "Cara", "Carey", "Carissa", "Carlee", "Carleton", "Carley", "Carli", "Carlie", "Carlo", "Carlos", "Carlotta", "Carmel", "Carmela", "Carmella", "Carmelo", "Carmen", "Carmine", "Carol", "Carolanne", "Carole", "Carolina", "Caroline", "Carolyn", "Carolyne", "Carrie", "Carroll", "Carson", "Carter", "Cary", "Casandra", "Casey", "Casimer", "Casimir", "Casper", "Cassandra", "Cassandre", "Cassidy", "Cassie", "Catalina", "Caterina", "Catharine", "Catherine", "Cathrine", "Cathryn", "Cathy", "Cayla", "Ceasar", "Cecelia", "Cecil", "Cecile", "Cecilia", "Cedrick", "Celestine", "Celestino", "Celia", "Celine", "Cesar", "Chad", "Chadd", "Chadrick", "Chaim", "Chance", "Chandler", "Chanel", "Chanelle", "Charity", "Charlene", "Charles", "Charley", "Charlie", "Charlotte", "Chase", "Chasity", "Chauncey", "Chaya", "Chaz", "Chelsea", "Chelsey", "Chelsie", "Chesley", "Chester", "Chet", "Cheyanne", "Cheyenne", "Chloe", "Chris", "Christ", "Christa", "Christelle", "Christian", "Christiana", "Christina", "Christine", "Christop", "Christophe", "Christopher", "Christy", "Chyna", "Ciara", "Cicero", "Cielo", "Cierra", "Cindy", "Citlalli", "Clair", "Claire", "Clara", "Clarabelle", "Clare", "Clarissa", "Clark", "Claud", "Claude", "Claudia", "Claudie", "Claudine", "Clay", "Clemens", "Clement", "Clementina", "Clementine", "Clemmie", "Cleo", "Cleora", "Cleta", "Cletus", "Cleve", "Cleveland", "Clifford", "Clifton", "Clint", "Clinton", "Clotilde", "Clovis", "Cloyd", "Clyde", "Coby", "Cody", "Colby", "Cole", "Coleman", "Colin", "Colleen", "Collin", "Colt", "Colten", "Colton", "Columbus", "Concepcion", "Conner", "Connie", "Connor", "Conor", "Conrad", "Constance", "Constantin", "Consuelo", "Cooper", "Cora", "Coralie", "Corbin", "Cordelia", "Cordell", "Cordia", "Cordie", "Corene", "Corine", "Cornelius", "Cornell", "Corrine", "Cortez", "Cortney", "Cory", "Coty", "Courtney", "Coy", "Craig", "Crawford", "Creola", "Cristal", "Cristian", "Cristina", "Cristobal", "Cristopher", "Cruz", "Crystal", "Crystel", "Cullen", "Curt", "Curtis", "Cydney", "Cynthia", "Cyril", "Cyrus", "Dagmar", "Dahlia", "Daija", "Daisha", "Daisy", "Dakota", "Dale", "Dallas", "Dallin", "Dalton", "Damaris", "Dameon", "Damian", "Damien", "Damion", "Damon", "Dan", "Dana", "Dandre", "Dane", "D'angelo", "Dangelo", "Danial", "Daniela", "Daniella", "Danielle", "Danika", "Dannie", "Danny", "Dante", "Danyka", "Daphne", "Daphnee", "Daphney", "Darby", "Daren", "Darian", "Dariana", "Darien", "Dario", "Darion", "Darius", "Darlene", "Daron", "Darrel", "Darrell", "Darren", "Darrick", "Darrin", "Darrion", "Darron", "Darryl", "Darwin", "Daryl", "Dashawn", "Dasia", "Dave", "David", "Davin", "Davion", "Davon", "Davonte", "Dawn", "Dawson", "Dax", "Dayana", "Dayna", "Dayne", "Dayton", "Dean", "Deangelo", "Deanna", "Deborah", "Declan", "Dedric", "Dedrick", "Dee", "Deion", "Deja", "Dejah", "Dejon", "Dejuan", "Delaney", "Delbert", "Delfina", "Delia", "Delilah", "Dell", "Della", "Delmer", "Delores", "Delpha", "Delphia", "Delphine", "Delta", "Demarco", "Demarcus", "Demario", "Demetris", "Demetrius", "Demond", "Dena", "Denis", "Dennis", "Deon", "Deondre", "Deontae", "Deonte", "Dereck", "Derek", "Derick", "Deron", "Derrick", "Deshaun", "Deshawn", "Desiree", "Desmond", "Dessie", "Destany", "Destin", "Destinee", "Destiney", "Destini", "Destiny", "Devan", "Devante", "Deven", "Devin", "Devon", "Devonte", "Devyn", "Dewayne", "Dewitt", "Dexter", "Diamond", "Diana", "Dianna", "Diego", "Dillan", "Dillon", "Dimitri", "Dina", "Dino", "Dion", "Dixie", "Dock", "Dolly", "Dolores", "Domenic", "Domenica", "Domenick", "Domenico", "Domingo", "Dominic", "Dominique", "Don", "Donald", "Donato", "Donavon", "Donna", "Donnell", "Donnie", "Donny", "Dora", "Dorcas", "Dorian", "Doris", "Dorothea", "Dorothy", "Dorris", "Dortha", "Dorthy", "Doug", "Douglas", "Dovie", "Doyle", "Drake", "Drew", "Duane", "Dudley", "Dulce", "Duncan", "Durward", "Dustin", "Dusty", "Dwight", "Dylan", "Earl", "Earlene", "Earline", "Earnest", "Earnestine", "Easter", "Easton", "Ebba", "Ebony", "Ed", "Eda", "Edd", "Eddie", "Eden", "Edgar", "Edgardo", "Edison", "Edmond", "Edmund", "Edna", "Eduardo", "Edward", "Edwardo", "Edwin", "Edwina", "Edyth", "Edythe", "Effie", "Efrain", "Efren", "Eileen", "Einar", "Eino", "Eladio", "Elaina", "Elbert", "Elda", "Eldon", "Eldora", "Eldred", "Eldridge", "Eleanora", "Eleanore", "Eleazar", "Electa", "Elena", "Elenor", "Elenora", "Eleonore", "Elfrieda", "Eli", "Elian", "Eliane", "Elias", "Eliezer", "Elijah", "Elinor", "Elinore", "Elisa", "Elisabeth", "Elise", "Eliseo", "Elisha", "Elissa", "Eliza", "Elizabeth", "Ella", "Ellen", "Ellie", "Elliot", "Elliott", "Ellis", "Ellsworth", "Elmer", "Elmira", "Elmo", "Elmore", "Elna", "Elnora", "Elody", "Eloisa", "Eloise", "Elouise", "Eloy", "Elroy", "Elsa", "Else", "Elsie", "Elta", "Elton", "Elva", "Elvera", "Elvie", "Elvis", "Elwin", "Elwyn", "Elyse", "Elyssa", "Elza", "Emanuel", "Emelia", "Emelie", "Emely", "Emerald", "Emerson", "Emery", "Emie", "Emil", "Emile", "Emilia", "Emiliano", "Emilie", "Emilio", "Emily", "Emma", "Emmalee", "Emmanuel", "Emmanuelle", "Emmet", "Emmett", "Emmie", "Emmitt", "Emmy", "Emory", "Ena", "Enid", "Enoch", "Enola", "Enos", "Enrico", "Enrique", "Ephraim", "Era", "Eriberto", "Eric", "Erica", "Erich", "Erick", "Ericka", "Erik", "Erika", "Erin", "Erling", "Erna", "Ernest", "Ernestina", "Ernestine", "Ernesto", "Ernie", "Ervin", "Erwin", "Eryn", "Esmeralda", "Esperanza", "Esta", "Esteban", "Estefania", "Estel", "Estell", "Estella", "Estelle", "Estevan", "Esther", "Estrella", "Etha", "Ethan", "Ethel", "Ethelyn", "Ethyl", "Ettie", "Eudora", "Eugene", "Eugenia", "Eula", "Eulah", "Eulalia", "Euna", "Eunice", "Eusebio", "Eva", "Evalyn", "Evan", "Evangeline", "Evans", "Eve", "Eveline", "Evelyn", "Everardo", "Everett", "Everette", "Evert", "Evie", "Ewald", "Ewell", "Ezekiel", "Ezequiel", "Ezra", "Fabian", "Fabiola", "Fae", "Fannie", "Fanny", "Fatima", "Faustino", "Fausto", "Favian", "Fay", "Faye", "Federico", "Felicia", "Felicita", "Felicity", "Felipa", "Felipe", "Felix", "Felton", "Fermin", "Fern", "Fernando", "Ferne", "Fidel", "Filiberto", "Filomena", "Finn", "Fiona", "Flavie", "Flavio", "Fleta", "Fletcher", "Flo", "Florence", "Florencio", "Florian", "Florida", "Florine", "Flossie", "Floy", "Floyd", "Ford", "Forest", "Forrest", "Foster", "Frances", "Francesca", "Francesco", "Francis", "Francisca", "Francisco", "Franco", "Frank", "Frankie", "Franz", "Fred", "Freda", "Freddie", "Freddy", "Frederic", "Frederick", "Frederik", "Frederique", "Fredrick", "Fredy", "Freeda", "Freeman", "Freida", "Frida", "Frieda", "Friedrich", "Fritz", "Furman", "Gabe", "Gabriel", "Gabriella", "Gabrielle", "Gaetano", "Gage", "Gail", "Gardner", "Garett", "Garfield", "Garland", "Garnet", "Garnett", "Garret", "Garrett", "Garrick", "Garrison", "Garry", "Garth", "Gaston", "Gavin", "Gay", "Gayle", "Gaylord", "Gene", "General", "Genesis", "Genevieve", "Gennaro", "Genoveva", "Geo", "Geoffrey", "George", "Georgette", "Georgiana", "Georgianna", "Geovanni", "Geovanny", "Geovany", "Gerald", "Geraldine", "Gerard", "Gerardo", "Gerda", "Gerhard", "Germaine", "German", "Gerry", "Gerson", "Gertrude", "Gia", "Gianni", "Gideon", "Gilbert", "Gilberto", "Gilda", "Giles", "Gillian", "Gina", "Gino", "Giovani", "Giovanna", "Giovanni", "Giovanny", "Gisselle", "Giuseppe", "Gladyce", "Gladys", "Glen", "Glenda", "Glenna", "Glennie", "Gloria", "Godfrey", "Golda", "Golden", "Gonzalo", "Gordon", "Grace", "Gracie", "Graciela", "Grady", "Graham", "Grant", "Granville", "Grayce", "Grayson", "Green", "Greg", "Gregg", "Gregoria", "Gregorio", "Gregory", "Greta", "Gretchen", "Greyson", "Griffin", "Grover", "Guadalupe", "Gudrun", "Guido", "Guillermo", "Guiseppe", "Gunnar", "Gunner", "Gus", "Gussie", "Gust", "Gustave", "Guy", "Gwen", "Gwendolyn", "Hadley", "Hailee", "Hailey", "Hailie", "Hal", "Haleigh", "Haley", "Halie", "Halle", "Hallie", "Hank", "Hanna", "Hannah", "Hans", "Hardy", "Harley", "Harmon", "Harmony", "Harold", "Harrison", "Harry", "Harvey", "Haskell", "Hassan", "Hassie", "Hattie", "Haven", "Hayden", "Haylee", "Hayley", "Haylie", "Hazel", "Hazle", "Heath", "Heather", "Heaven", "Heber", "Hector", "Heidi", "Helen", "Helena", "Helene", "Helga", "Hellen", "Helmer", "Heloise", "Henderson", "Henri", "Henriette", "Henry", "Herbert", "Herman", "Hermann", "Hermina", "Herminia", "Herminio", "Hershel", "Herta", "Hertha", "Hester", "Hettie", "Hilario", "Hilbert", "Hilda", "Hildegard", "Hillard", "Hillary", "Hilma", "Hilton", "Hipolito", "Hiram", "Hobart", "Holden", "Hollie", "Hollis", "Holly", "Hope", "Horace", "Horacio", "Hortense", "Hosea", "Houston", "Howard", "Howell", "Hoyt", "Hubert", "Hudson", "Hugh", "Hulda", "Humberto", "Hunter", "Hyman", "Ian", "Ibrahim", "Icie", "Ida", "Idell", "Idella", "Ignacio", "Ignatius", "Ike", "Ila", "Ilene", "Iliana", "Ima", "Imani", "Imelda", "Immanuel", "Imogene", "Ines", "Irma", "Irving", "Irwin", "Isaac", "Isabel", "Isabell", "Isabella", "Isabelle", "Isac", "Isadore", "Isai", "Isaiah", "Isaias", "Isidro", "Ismael", "Isobel", "Isom", "Israel", "Issac", "Itzel", "Iva", "Ivah", "Ivory", "Ivy", "Izabella", "Izaiah", "Jabari", "Jace", "Jacey", "Jacinthe", "Jacinto", "Jack", "Jackeline", "Jackie", "Jacklyn", "Jackson", "Jacky", "Jaclyn", "Jacquelyn", "Jacques", "Jacynthe", "Jada", "Jade", "Jaden", "Jadon", "Jadyn", "Jaeden", "Jaida", "Jaiden", "Jailyn", "Jaime", "Jairo", "Jakayla", "Jake", "Jakob", "Jaleel", "Jalen", "Jalon", "Jalyn", "Jamaal", "Jamal", "Jamar", "Jamarcus", "Jamel", "Jameson", "Jamey", "Jamie", "Jamil", "Jamir", "Jamison", "Jammie", "Jan", "Jana", "Janae", "Jane", "Janelle", "Janessa", "Janet", "Janice", "Janick", "Janie", "Janis", "Janiya", "Jannie", "Jany", "Jaquan", "Jaquelin", "Jaqueline", "Jared", "Jaren", "Jarod", "Jaron", "Jarred", "Jarrell", "Jarret", "Jarrett", "Jarrod", "Jarvis", "Jasen", "Jasmin", "Jason", "Jasper", "Jaunita", "Javier", "Javon", "Javonte", "Jay", "Jayce", "Jaycee", "Jayda", "Jayde", "Jayden", "Jaydon", "Jaylan", "Jaylen", "Jaylin", "Jaylon", "Jayme", "Jayne", "Jayson", "Jazlyn", "Jazmin", "Jazmyn", "Jazmyne", "Jean", "Jeanette", "Jeanie", "Jeanne", "Jed", "Jedediah", "Jedidiah", "Jeff", "Jefferey", "Jeffery", "Jeffrey", "Jeffry", "Jena", "Jenifer", "Jennie", "Jennifer", "Jennings", "Jennyfer", "Jensen", "Jerad", "Jerald", "Jeramie", "Jeramy", "Jerel", "Jeremie", "Jeremy", "Jermain", "Jermaine", "Jermey", "Jerod", "Jerome", "Jeromy", "Jerrell", "Jerrod", "Jerrold", "Jerry", "Jess", "Jesse", "Jessica", "Jessie", "Jessika", "Jessy", "Jessyca", "Jesus", "Jett", "Jettie", "Jevon", "Jewel", "Jewell", "Jillian", "Jimmie", "Jimmy", "Jo", "Joan", "Joana", "Joanie", "Joanne", "Joannie", "Joanny", "Joany", "Joaquin", "Jocelyn", "Jodie", "Jody", "Joe", "Joel", "Joelle", "Joesph", "Joey", "Johan", "Johann", "Johanna", "Johathan", "John", "Johnathan", "Johnathon", "Johnnie", "Johnny", "Johnpaul", "Johnson", "Jolie", "Jon", "Jonas", "Jonatan", "Jonathan", "Jonathon", "Jordan", "Jordane", "Jordi", "Jordon", "Jordy", "Jordyn", "Jorge", "Jose", "Josefa", "Josefina", "Joseph", "Josephine", "Josh", "Joshua", "Joshuah", "Josiah", "Josiane", "Josianne", "Josie", "Josue", "Jovan", "Jovani", "Jovanny", "Jovany", "Joy", "Joyce", "Juana", "Juanita", "Judah", "Judd", "Jude", "Judge", "Judson", "Judy", "Jules", "Julia", "Julian", "Juliana", "Julianne", "Julie", "Julien", "Juliet", "Julio", "Julius", "June", "Junior", "Junius", "Justen", "Justice", "Justina", "Justine", "Juston", "Justus", "Justyn", "Juvenal", "Juwan", "Kacey", "Kaci", "Kacie", "Kade", "Kaden", "Kadin", "Kaela", "Kaelyn", "Kaia", "Kailee", "Kailey", "Kailyn", "Kaitlin", "Kaitlyn", "Kale", "Kaleb", "Kaleigh", "Kaley", "Kali", "Kallie", "Kameron", "Kamille", "Kamren", "Kamron", "Kamryn", "Kane", "Kara", "Kareem", "Karelle", "Karen", "Kari", "Kariane", "Karianne", "Karina", "Karine", "Karl", "Karlee", "Karley", "Karli", "Karlie", "Karolann", "Karson", "Kasandra", "Kasey", "Kassandra", "Katarina", "Katelin", "Katelyn", "Katelynn", "Katharina", "Katherine", "Katheryn", "Kathleen", "Kathlyn", "Kathryn", "Kathryne", "Katlyn", "Katlynn", "Katrina", "Katrine", "Kattie", "Kavon", "Kay", "Kaya", "Kaycee", "Kayden", "Kayla", "Kaylah", "Kaylee", "Kayleigh", "Kayley", "Kayli", "Kaylie", "Kaylin", "Keagan", "Keanu", "Keara", "Keaton", "Keegan", "Keeley", "Keely", "Keenan", "Keira", "Keith", "Kellen", "Kelley", "Kelli", "Kellie", "Kelly", "Kelsi", "Kelsie", "Kelton", "Kelvin", "Ken", "Kendall", "Kendra", "Kendrick", "Kenna", "Kennedi", "Kennedy", "Kenneth", "Kennith", "Kenny", "Kenton", "Kenya", "Kenyatta", "Kenyon", "Keon", "Keshaun", "Keshawn", "Keven", "Kevin", "Kevon", "Keyon", "Keyshawn", "Khalid", "Khalil", "Kian", "Kiana", "Kianna", "Kiara", "Kiarra", "Kiel", "Kiera", "Kieran", "Kiley", "Kim", "Kimberly", "King", "Kip", "Kira", "Kirk", "Kirsten", "Kirstin", "Kitty", "Kobe", "Koby", "Kody", "Kolby", "Kole", "Korbin", "Korey", "Kory", "Kraig", "Kris", "Krista", "Kristian", "Kristin", "Kristina", "Kristofer", "Kristoffer", "Kristopher", "Kristy", "Krystal", "Krystel", "Krystina", "Kurt", "Kurtis", "Kyla", "Kyle", "Kylee", "Kyleigh", "Kyler", "Kylie", "Kyra", "Lacey", "Lacy", "Ladarius", "Lafayette", "Laila", "Laisha", "Lamar", "Lambert", "Lamont", "Lance", "Landen", "Lane", "Laney", "Larissa", "Laron", "Larry", "Larue", "Laura", "Laurel", "Lauren", "Laurence", "Lauretta", "Lauriane", "Laurianne", "Laurie", "Laurine", "Laury", "Lauryn", "Lavada", "Lavern", "Laverna", "Laverne", "Lavina", "Lavinia", "Lavon", "Lavonne", "Lawrence", "Lawson", "Layla", "Layne", "Lazaro", "Lea", "Leann", "Leanna", "Leanne", "Leatha", "Leda", "Lee", "Leif", "Leila", "Leilani", "Lela", "Lelah", "Leland", "Lelia", "Lempi", "Lemuel", "Lenna", "Lennie", "Lenny", "Lenora", "Lenore", "Leo", "Leola", "Leon", "Leonard", "Leonardo", "Leone", "Leonel", "Leonie", "Leonor", "Leonora", "Leopold", "Leopoldo", "Leora", "Lera", "Lesley", "Leslie", "Lesly", "Lessie", "Lester", "Leta", "Letha", "Letitia", "Levi", "Lew", "Lewis", "Lexi", "Lexie", "Lexus", "Lia", "Liam", "Liana", "Libbie", "Libby", "Lila", "Lilian", "Liliana", "Liliane", "Lilla", "Lillian", "Lilliana", "Lillie", "Lilly", "Lily", "Lilyan", "Lina", "Lincoln", "Linda", "Lindsay", "Lindsey", "Linnea", "Linnie", "Linwood", "Lionel", "Lisa", "Lisandro", "Lisette", "Litzy", "Liza", "Lizeth", "Lizzie", "Llewellyn", "Lloyd", "Logan", "Lois", "Lola", "Lolita", "Loma", "Lon", "London", "Lonie", "Lonnie", "Lonny", "Lonzo", "Lora", "Loraine", "Loren", "Lorena", "Lorenz", "Lorenza", "Lorenzo", "Lori", "Lorine", "Lorna", "Lottie", "Lou", "Louie", "Louisa", "Lourdes", "Louvenia", "Lowell", "Loy", "Loyal", "Loyce", "Lucas", "Luciano", "Lucie", "Lucienne", "Lucile", "Lucinda", "Lucio", "Lucious", "Lucius", "Lucy", "Ludie", "Ludwig", "Lue", "Luella", "Luigi", "Luis", "Luisa", "Lukas", "Lula", "Lulu", "Luna", "Lupe", "Lura", "Lurline", "Luther", "Luz", "Lyda", "Lydia", "Lyla", "Lynn", "Lyric", "Lysanne", "Mabel", "Mabelle", "Mable", "Mac", "Macey", "Maci", "Macie", "Mack", "Mackenzie", "Macy", "Madaline", "Madalyn", "Maddison", "Madeline", "Madelyn", "Madelynn", "Madge", "Madie", "Madilyn", "Madisen", "Madison", "Madisyn", "Madonna", "Madyson", "Mae", "Maegan", "Maeve", "Mafalda", "Magali", "Magdalen", "Magdalena", "Maggie", "Magnolia", "Magnus", "Maia", "Maida", "Maiya", "Major", "Makayla", "Makenna", "Makenzie", "Malachi", "Malcolm", "Malika", "Malinda", "Mallie", "Mallory", "Malvina", "Mandy", "Manley", "Manuel", "Manuela", "Mara", "Marc", "Marcel", "Marcelina", "Marcelino", "Marcella", "Marcelle", "Marcellus", "Marcelo", "Marcia", "Marco", "Marcos", "Marcus", "Margaret", "Margarete", "Margarett", "Margaretta", "Margarette", "Margarita", "Marge", "Margie", "Margot", "Margret", "Marguerite", "Maria", "Mariah", "Mariam", "Marian", "Mariana", "Mariane", "Marianna", "Marianne", "Mariano", "Maribel", "Marie", "Mariela", "Marielle", "Marietta", "Marilie", "Marilou", "Marilyne", "Marina", "Mario", "Marion", "Marisa", "Marisol", "Maritza", "Marjolaine", "Marjorie", "Marjory", "Mark", "Markus", "Marlee", "Marlen", "Marlene", "Marley", "Marlin", "Marlon", "Marques", "Marquis", "Marquise", "Marshall", "Marta", "Martin", "Martina", "Martine", "Marty", "Marvin", "Mary", "Maryam", "Maryjane", "Maryse", "Mason", "Mateo", "Mathew", "Mathias", "Mathilde", "Matilda", "Matilde", "Matt", "Matteo", "Mattie", "Maud", "Maude", "Maudie", "Maureen", "Maurice", "Mauricio", "Maurine", "Maverick", "Mavis", "Max", "Maxie", "Maxime", "Maximilian", "Maximillia", "Maximillian", "Maximo", "Maximus", "Maxine", "Maxwell", "May", "Maya", "Maybell", "Maybelle", "Maye", "Maymie", "Maynard", "Mayra", "Mazie", "Mckayla", "Mckenna", "Mckenzie", "Meagan", "Meaghan", "Meda", "Megane", "Meggie", "Meghan", "Mekhi", "Melany", "Melba", "Melisa", "Melissa", "Mellie", "Melody", "Melvin", "Melvina", "Melyna", "Melyssa", "Mercedes", "Meredith", "Merl", "Merle", "Merlin", "Merritt", "Mertie", "Mervin", "Meta", "Mia", "Micaela", "Micah", "Michael", "Michaela", "Michale", "Micheal", "Michel", "Michele", "Michelle", "Miguel", "Mikayla", "Mike", "Mikel", "Milan", "Miles", "Milford", "Miller", "Millie", "Milo", "Milton", "Mina", "Minerva", "Minnie", "Miracle", "Mireille", "Mireya", "Misael", "Missouri", "Misty", "Mitchel", "Mitchell", "Mittie", "Modesta", "Modesto", "Mohamed", "Mohammad", "Mohammed", "Moises", "Mollie", "Molly", "Mona", "Monica", "Monique", "Monroe", "Monserrat", "Monserrate", "Montana", "Monte", "Monty", "Morgan", "Moriah", "Morris", "Mortimer", "Morton", "Mose", "Moses", "Moshe", "Mossie", "Mozell", "Mozelle", "Muhammad", "Muriel", "Murl", "Murphy", "Murray", "Mustafa", "Mya", "Myah", "Mylene", "Myles", "Myra", "Myriam", "Myrl", "Myrna", "Myron", "Myrtice", "Myrtie", "Myrtis", "Myrtle", "Nadia", "Nakia", "Name", "Nannie", "Naomi", "Naomie", "Napoleon", "Narciso", "Nash", "Nasir", "Nat", "Natalia", "Natalie", "Natasha", "Nathan", "Nathanael", "Nathanial", "Nathaniel", "Nathen", "Nayeli", "Neal", "Ned", "Nedra", "Neha", "Neil", "Nelda", "Nella", "Nelle", "Nellie", "Nels", "Nelson", "Neoma", "Nestor", "Nettie", "Neva", "Newell", "Newton", "Nia", "Nicholas", "Nicholaus", "Nichole", "Nick", "Nicklaus", "Nickolas", "Nico", "Nicola", "Nicolas", "Nicole", "Nicolette", "Nigel", "Nikita", "Nikki", "Nikko", "Niko", "Nikolas", "Nils", "Nina", "Noah", "Noble", "Noe", "Noel", "Noelia", "Noemi", "Noemie", "Noemy", "Nola", "Nolan", "Nona", "Nora", "Norbert", "Norberto", "Norene", "Norma", "Norris", "Norval", "Norwood", "Nova", "Novella", "Nya", "Nyah", "Nyasia", "Obie", "Oceane", "Ocie", "Octavia", "Oda", "Odell", "Odessa", "Odie", "Ofelia", "Okey", "Ola", "Olaf", "Ole", "Olen", "Oleta", "Olga", "Olin", "Oliver", "Ollie", "Oma", "Omari", "Omer", "Ona", "Onie", "Opal", "Ophelia", "Ora", "Oral", "Oran", "Oren", "Orie", "Orin", "Orion", "Orland", "Orlando", "Orlo", "Orpha", "Orrin", "Orval", "Orville", "Osbaldo", "Osborne", "Oscar", "Osvaldo", "Oswald", "Oswaldo", "Otha", "Otho", "Otilia", "Otis", "Ottilie", "Ottis", "Otto", "Ova", "Owen", "Ozella", "Pablo", "Paige", "Palma", "Pamela", "Pansy", "Paolo", "Paris", "Parker", "Pascale", "Pasquale", "Pat", "Patience", "Patricia", "Patrick", "Patsy", "Pattie", "Paul", "Paula", "Pauline", "Paxton", "Payton", "Pearl", "Pearlie", "Pearline", "Pedro", "Peggie", "Penelope", "Percival", "Percy", "Perry", "Pete", "Peter", "Petra", "Peyton", "Philip", "Phoebe", "Phyllis", "Pierce", "Pierre", "Pietro", "Pink", "Pinkie", "Piper", "Polly", "Porter", "Precious", "Presley", "Preston", "Price", "Prince", "Princess", "Priscilla", "Providenci", "Prudence", "Queen", "Queenie", "Quentin", "Quincy", "Quinn", "Quinten", "Quinton", "Rachael", "Rachel", "Rachelle", "Rae", "Raegan", "Rafael", "Rafaela", "Raheem", "Rahsaan", "Rahul", "Raina", "Raleigh", "Ralph", "Ramiro", "Ramon", "Ramona", "Randal", "Randall", "Randi", "Randy", "Ransom", "Raoul", "Raphael", "Raphaelle", "Raquel", "Rashad", "Rashawn", "Rasheed", "Raul", "Raven", "Ray", "Raymond", "Raymundo", "Reagan", "Reanna", "Reba", "Rebeca", "Rebecca", "Rebeka", "Rebekah", "Reece", "Reed", "Reese", "Regan", "Reggie", "Reginald", "Reid", "Reilly", "Reina", "Reinhold", "Remington", "Rene", "Renee", "Ressie", "Reta", "Retha", "Retta", "Reuben", "Reva", "Rex", "Rey", "Reyes", "Reymundo", "Reyna", "Reynold", "Rhea", "Rhett", "Rhianna", "Rhiannon", "Rhoda", "Ricardo", "Richard", "Richie", "Richmond", "Rick", "Rickey", "Rickie", "Ricky", "Rico", "Rigoberto", "Riley", "Rita", "River", "Robb", "Robbie", "Robert", "Roberta", "Roberto", "Robin", "Robyn", "Rocio", "Rocky", "Rod", "Roderick", "Rodger", "Rodolfo", "Rodrick", "Rodrigo", "Roel", "Rogelio", "Roger", "Rogers", "Rolando", "Rollin", "Roma", "Romaine", "Roman", "Ron", "Ronaldo", "Ronny", "Roosevelt", "Rory", "Rosa", "Rosalee", "Rosalia", "Rosalind", "Rosalinda", "Rosalyn", "Rosamond", "Rosanna", "Rosario", "Roscoe", "Rose", "Rosella", "Roselyn", "Rosemarie", "Rosemary", "Rosendo", "Rosetta", "Rosie", "Rosina", "Roslyn", "Ross", "Rossie", "Rowan", "Rowena", "Rowland", "Roxane", "Roxanne", "Roy", "Royal", "Royce", "Rozella", "Ruben", "Rubie", "Ruby", "Rubye", "Rudolph", "Rudy", "Rupert", "Russ", "Russel", "Russell", "Rusty", "Ruth", "Ruthe", "Ruthie", "Ryan", "Ryann", "Ryder", "Rylan", "Rylee", "Ryleigh", "Ryley", "Sabina", "Sabrina", "Sabryna", "Sadie", "Sadye", "Sage", "Saige", "Sallie", "Sally", "Salma", "Salvador", "Salvatore", "Sam", "Samanta", "Samantha", "Samara", "Samir", "Sammie", "Sammy", "Samson", "Sandra", "Sandrine", "Sandy", "Sanford", "Santa", "Santiago", "Santina", "Santino", "Santos", "Sarah", "Sarai", "Sarina", "Sasha", "Saul", "Savanah", "Savanna", "Savannah", "Savion", "Scarlett", "Schuyler", "Scot", "Scottie", "Scotty", "Seamus", "Sean", "Sebastian", "Sedrick", "Selena", "Selina", "Selmer", "Serena", "Serenity", "Seth", "Shad", "Shaina", "Shakira", "Shana", "Shane", "Shanel", "Shanelle", "Shania", "Shanie", "Shaniya", "Shanna", "Shannon", "Shanny", "Shanon", "Shany", "Sharon", "Shaun", "Shawn", "Shawna", "Shaylee", "Shayna", "Shayne", "Shea", "Sheila", "Sheldon", "Shemar", "Sheridan", "Sherman", "Sherwood", "Shirley", "Shyann", "Shyanne", "Sibyl", "Sid", "Sidney", "Sienna", "Sierra", "Sigmund", "Sigrid", "Sigurd", "Silas", "Sim", "Simeon", "Simone", "Sincere", "Sister", "Skye", "Skyla", "Skylar", "Sofia", "Soledad", "Solon", "Sonia", "Sonny", "Sonya", "Sophia", "Sophie", "Spencer", "Stacey", "Stacy", "Stan", "Stanford", "Stanley", "Stanton", "Stefan", "Stefanie", "Stella", "Stephan", "Stephania", "Stephanie", "Stephany", "Stephen", "Stephon", "Sterling", "Steve", "Stevie", "Stewart", "Stone", "Stuart", "Summer", "Sunny", "Susan", "Susana", "Susanna", "Susie", "Suzanne", "Sven", "Syble", "Sydnee", "Sydney", "Sydni", "Sydnie", "Sylvan", "Sylvester", "Sylvia", "Tabitha", "Tad", "Talia", "Talon", "Tamara", "Tamia", "Tania", "Tanner", "Tanya", "Tara", "Taryn", "Tate", "Tatum", "Tatyana", "Taurean", "Tavares", "Taya", "Taylor", "Teagan", "Ted", "Telly", "Terence", "Teresa", "Terrance", "Terrell", "Terrence", "Terrill", "Terry", "Tess", "Tessie", "Tevin", "Thad", "Thaddeus", "Thalia", "Thea", "Thelma", "Theo", "Theodora", "Theodore", "Theresa", "Therese", "Theresia", "Theron", "Thomas", "Thora", "Thurman", "Tia", "Tiana", "Tianna", "Tiara", "Tierra", "Tiffany", "Tillman", "Timmothy", "Timmy", "Timothy", "Tina", "Tito", "Titus", "Tobin", "Toby", "Tod", "Tom", "Tomas", "Tomasa", "Tommie", "Toney", "Toni", "Tony", "Torey", "Torrance", "Torrey", "Toy", "Trace", "Tracey", "Tracy", "Travis", "Travon", "Tre", "Tremaine", "Tremayne", "Trent", "Trenton", "Tressa", "Tressie", "Treva", "Trever", "Trevion", "Trevor", "Trey", "Trinity", "Trisha", "Tristian", "Tristin", "Triston", "Troy", "Trudie", "Trycia", "Trystan", "Turner", "Twila", "Tyler", "Tyra", "Tyree", "Tyreek", "Tyrel", "Tyrell", "Tyrese", "Tyrique", "Tyshawn", "Tyson", "Ubaldo", "Ulices", "Ulises", "Una", "Unique", "Urban", "Uriah", "Uriel", "Ursula", "Vada", "Valentin", "Valentina", "Valentine", "Valerie", "Vallie", "Van", "Vance", "Vanessa", "Vaughn", "Veda", "Velda", "Vella", "Velma", "Velva", "Vena", "Verda", "Verdie", "Vergie", "Verla", "Verlie", "Vern", "Verna", "Verner", "Vernice", "Vernie", "Vernon", "Verona", "Veronica", "Vesta", "Vicenta", "Vicente", "Vickie", "Vicky", "Victor", "Victoria", "Vida", "Vidal", "Vilma", "Vince", "Vincent", "Vincenza", "Vincenzo", "Vinnie", "Viola", "Violet", "Violette", "Virgie", "Virgil", "Virginia", "Virginie", "Vita", "Vito", "Viva", "Vivian", "Viviane", "Vivianne", "Vivien", "Vivienne", "Vladimir", "Wade", "Waino", "Waldo", "Walker", "Wallace", "Walter", "Walton", "Wanda", "Ward", "Warren", "Watson", "Wava", "Waylon", "Wayne", "Webster", "Weldon", "Wellington", "Wendell", "Wendy", "Werner", "Westley", "Weston", "Whitney", "Wilber", "Wilbert", "Wilburn", "Wiley", "Wilford", "Wilfred", "Wilfredo", "Wilfrid", "Wilhelm", "Wilhelmine", "Will", "Willa", "Willard", "William", "Willie", "Willis", "Willow", "Willy", "Wilma", "Wilmer", "Wilson", "Wilton", "Winfield", "Winifred", "Winnifred", "Winona", "Winston", "Woodrow", "Wyatt", "Wyman", "Xander", "Xavier", "Xzavier", "Yadira", "Yasmeen", "Yasmin", "Yasmine", "Yazmin", "Yesenia", "Yessenia", "Yolanda", "Yoshiko", "Yvette", "Yvonne", "Zachariah", "Zachary", "Zachery", "Zack", "Zackary", "Zackery", "Zakary", "Zander", "Zane", "Zaria", "Zechariah", "Zelda", "Zella", "Zelma", "Zena", "Zetta", "Zion", "Zita", "Zoe", "Zoey", "Zoie", "Zoila", "Zola", "Zora", "Zula" ], "last_name": [ "Abbott", "Abernathy", "Abshire", "Adams", "Altenwerth", "Anderson", "Ankunding", "Armstrong", "Auer", "Aufderhar", "Bahringer", "Bailey", "Balistreri", "Barrows", "Bartell", "Bartoletti", "Barton", "Bashirian", "Batz", "Bauch", "Baumbach", "Bayer", "Beahan", "Beatty", "Bechtelar", "Becker", "Bednar", "Beer", "Beier", "Berge", "Bergnaum", "Bergstrom", "Bernhard", "Bernier", "Bins", "Blanda", "Blick", "Block", "Bode", "Boehm", "Bogan", "Bogisich", "Borer", "Bosco", "Botsford", "Boyer", "Boyle", "Bradtke", "Brakus", "Braun", "Breitenberg", "Brekke", "Brown", "Bruen", "Buckridge", "Carroll", "Carter", "Cartwright", "Casper", "Cassin", "Champlin", "Christiansen", "Cole", "Collier", "Collins", "Conn", "Connelly", "Conroy", "Considine", "Corkery", "Cormier", "Corwin", "Cremin", "Crist", "Crona", "Cronin", "Crooks", "Cruickshank", "Cummerata", "Cummings", "Dach", "D'Amore", "Daniel", "Dare", "Daugherty", "Davis", "Deckow", "Denesik", "Dibbert", "Dickens", "Dicki", "Dickinson", "Dietrich", "Donnelly", "Dooley", "Douglas", "Doyle", "DuBuque", "Durgan", "Ebert", "Effertz", "Eichmann", "Emard", "Emmerich", "Erdman", "Ernser", "Fadel", "Fahey", "Farrell", "Fay", "Feeney", "Feest", "Feil", "Ferry", "Fisher", "Flatley", "Frami", "Franecki", "Friesen", "Fritsch", "Funk", "Gaylord", "Gerhold", "Gerlach", "Gibson", "Gislason", "Gleason", "Gleichner", "Glover", "Goldner", "Goodwin", "Gorczany", "Gottlieb", "Goyette", "Grady", "Graham", "Grant", "Green", "Greenfelder", "Greenholt", "Grimes", "Gulgowski", "Gusikowski", "Gutkowski", "Gutmann", "Haag", "Hackett", "Hagenes", "Hahn", "Haley", "Halvorson", "Hamill", "Hammes", "Hand", "Hane", "Hansen", "Harber", "Harris", "Hartmann", "Harvey", "Hauck", "Hayes", "Heaney", "Heathcote", "Hegmann", "Heidenreich", "Heller", "Herman", "Hermann", "Hermiston", "Herzog", "Hessel", "Hettinger", "Hickle", "Hilll", "Hills", "Hilpert", "Hintz", "Hirthe", "Hodkiewicz", "Hoeger", "Homenick", "Hoppe", "Howe", "Howell", "Hudson", "Huel", "Huels", "Hyatt", "Jacobi", "Jacobs", "Jacobson", "Jakubowski", "Jaskolski", "Jast", "Jenkins", "Jerde", "Johns", "Johnson", "Johnston", "Jones", "Kassulke", "Kautzer", "Keebler", "Keeling", "Kemmer", "Kerluke", "Kertzmann", "Kessler", "Kiehn", "Kihn", "Kilback", "King", "Kirlin", "Klein", "Kling", "Klocko", "Koch", "Koelpin", "Koepp", "Kohler", "Konopelski", "Koss", "Kovacek", "Kozey", "Krajcik", "Kreiger", "Kris", "Kshlerin", "Kub", "Kuhic", "Kuhlman", "Kuhn", "Kulas", "Kunde", "Kunze", "Kuphal", "Kutch", "Kuvalis", "Labadie", "Lakin", "Lang", "Langosh", "Langworth", "Larkin", "Larson", "Leannon", "Lebsack", "Ledner", "Leffler", "Legros", "Lehner", "Lemke", "Lesch", "Leuschke", "Lind", "Lindgren", "Littel", "Little", "Lockman", "Lowe", "Lubowitz", "Lueilwitz", "Luettgen", "Lynch", "Macejkovic", "MacGyver", "Maggio", "Mann", "Mante", "Marks", "Marquardt", "Marvin", "Mayer", "Mayert", "McClure", "McCullough", "McDermott", "McGlynn", "McKenzie", "McLaughlin", "Medhurst", "Mertz", "Metz", "Miller", "Mills", "Mitchell", "Moen", "Mohr", "Monahan", "Moore", "Morar", "Morissette", "Mosciski", "Mraz", "Mueller", "Muller", "Murazik", "Murphy", "Murray", "Nader", "Nicolas", "Nienow", "Nikolaus", "Nitzsche", "Nolan", "Oberbrunner", "O'Connell", "O'Conner", "O'Hara", "O'Keefe", "O'Kon", "Okuneva", "Olson", "Ondricka", "O'Reilly", "Orn", "Ortiz", "Osinski", "Pacocha", "Padberg", "Pagac", "Parisian", "Parker", "Paucek", "Pfannerstill", "Pfeffer", "Pollich", "Pouros", "Powlowski", "Predovic", "Price", "Prohaska", "Prosacco", "Purdy", "Quigley", "Quitzon", "Rath", "Ratke", "Rau", "Raynor", "Reichel", "Reichert", "Reilly", "Reinger", "Rempel", "Renner", "Reynolds", "Rice", "Rippin", "Ritchie", "Robel", "Roberts", "Rodriguez", "Rogahn", "Rohan", "Rolfson", "Romaguera", "Roob", "Rosenbaum", "Rowe", "Ruecker", "Runolfsdottir", "Runolfsson", "Runte", "Russel", "Rutherford", "Ryan", "Sanford", "Satterfield", "Sauer", "Sawayn", "Schaden", "Schaefer", "Schamberger", "Schiller", "Schimmel", "Schinner", "Schmeler", "Schmidt", "Schmitt", "Schneider", "Schoen", "Schowalter", "Schroeder", "Schulist", "Schultz", "Schumm", "Schuppe", "Schuster", "Senger", "Shanahan", "Shields", "Simonis", "Sipes", "Skiles", "Smith", "Smitham", "Spencer", "Spinka", "Sporer", "Stamm", "Stanton", "Stark", "Stehr", "Steuber", "Stiedemann", "Stokes", "Stoltenberg", "Stracke", "Streich", "Stroman", "Strosin", "Swaniawski", "Swift", "Terry", "Thiel", "Thompson", "Tillman", "Torp", "Torphy", "Towne", "Toy", "Trantow", "Tremblay", "Treutel", "Tromp", "Turcotte", "Turner", "Ullrich", "Upton", "Vandervort", "Veum", "Volkman", "Von", "VonRueden", "Waelchi", "Walker", "Walsh", "Walter", "Ward", "Waters", "Watsica", "Weber", "Wehner", "Weimann", "Weissnat", "Welch", "West", "White", "Wiegand", "Wilderman", "Wilkinson", "Will", "Williamson", "Willms", "Windler", "Wintheiser", "Wisoky", "Wisozk", "Witting", "Wiza", "Wolf", "Wolff", "Wuckert", "Wunsch", "Wyman", "Yost", "Yundt", "Zboncak", "Zemlak", "Ziemann", "Zieme", "Zulauf" ], "prefix": [ "Mr.", "Mrs.", "Ms.", "Miss", "Dr." ], "suffix": [ "Jr.", "Sr.", "I", "II", "III", "IV", "V", "MD", "DDS", "PhD", "DVM" ], "title": { "descriptor": [ "Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal" ], "level": [ "Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics" ], "job": [ "Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist" ] }, "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name} #{suffix}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ] }; en.phone_number = { "formats": [ "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-#### x###", "(###) ###-#### x###", "1-###-###-#### x###", "###.###.#### x###", "###-###-#### x####", "(###) ###-#### x####", "1-###-###-#### x####", "###.###.#### x####", "###-###-#### x#####", "(###) ###-#### x#####", "1-###-###-#### x#####", "###.###.#### x#####" ] }; en.cell_phone = { "formats": [ "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####" ] }; en.business = { "credit_card_numbers": [ "1234-2121-1221-1211", "1212-1221-1121-1234", "1211-1221-1234-2201", "1228-1221-1221-1431" ], "credit_card_expiry_dates": [ "2011-10-12", "2012-11-12", "2015-11-11", "2013-9-12" ], "credit_card_types": [ "visa", "mastercard", "americanexpress", "discover" ] }; en.commerce = { "color": [ "red", "green", "blue", "yellow", "purple", "mint green", "teal", "white", "black", "orange", "pink", "grey", "maroon", "violet", "turquoise", "tan", "sky blue", "salmon", "plum", "orchid", "olive", "magenta", "lime", "ivory", "indigo", "gold", "fuchsia", "cyan", "azure", "lavender", "silver" ], "department": [ "Books", "Movies", "Music", "Games", "Electronics", "Computers", "Home", "Garden", "Tools", "Grocery", "Health", "Beauty", "Toys", "Kids", "Baby", "Clothing", "Shoes", "Jewelery", "Sports", "Outdoors", "Automotive", "Industrial" ], "product_name": { "adjective": [ "Small", "Ergonomic", "Rustic", "Intelligent", "Gorgeous", "Incredible", "Fantastic", "Practical", "Sleek", "Awesome" ], "material": [ "Steel", "Wooden", "Concrete", "Plastic", "Cotton", "Granite", "Rubber" ], "product": [ "Chair", "Car", "Computer", "Gloves", "Pants", "Shirt", "Table", "Shoes", "Hat" ] } }; en.team = { "creature": [ "ants", "bats", "bears", "bees", "birds", "buffalo", "cats", "chickens", "cattle", "dogs", "dolphins", "ducks", "elephants", "fishes", "foxes", "frogs", "geese", "goats", "horses", "kangaroos", "lions", "monkeys", "owls", "oxen", "penguins", "people", "pigs", "rabbits", "sheep", "tigers", "whales", "wolves", "zebras", "banshees", "crows", "black cats", "chimeras", "ghosts", "conspirators", "dragons", "dwarves", "elves", "enchanters", "exorcists", "sons", "foes", "giants", "gnomes", "goblins", "gooses", "griffins", "lycanthropes", "nemesis", "ogres", "oracles", "prophets", "sorcerors", "spiders", "spirits", "vampires", "warlocks", "vixens", "werewolves", "witches", "worshipers", "zombies", "druids" ], "name": [ "#{Address.state} #{creature}" ] }; en.hacker = { "abbreviation": [ "TCP", "HTTP", "SDD", "RAM", "GB", "CSS", "SSL", "AGP", "SQL", "FTP", "PCI", "AI", "ADP", "RSS", "XML", "EXE", "COM", "HDD", "THX", "SMTP", "SMS", "USB", "PNG", "SAS", "IB", "SCSI", "JSON", "XSS", "JBOD" ], "adjective": [ "auxiliary", "primary", "back-end", "digital", "open-source", "virtual", "cross-platform", "redundant", "online", "haptic", "multi-byte", "bluetooth", "wireless", "1080p", "neural", "optical", "solid state", "mobile" ], "noun": [ "driver", "protocol", "bandwidth", "panel", "microchip", "program", "port", "card", "array", "interface", "system", "sensor", "firewall", "hard drive", "pixel", "alarm", "feed", "monitor", "application", "transmitter", "bus", "circuit", "capacitor", "matrix" ], "verb": [ "back up", "bypass", "hack", "override", "compress", "copy", "navigate", "index", "connect", "generate", "quantify", "calculate", "synthesize", "input", "transmit", "program", "reboot", "parse" ], "ingverb": [ "backing up", "bypassing", "hacking", "overriding", "compressing", "copying", "navigating", "indexing", "connecting", "generating", "quantifying", "calculating", "synthesizing", "transmitting", "programming", "parsing" ] }; en.app = { "name": [ "Redhold", "Treeflex", "Trippledex", "Kanlam", "Bigtax", "Daltfresh", "Toughjoyfax", "Mat Lam Tam", "Otcom", "Tres-Zap", "Y-Solowarm", "Tresom", "Voltsillam", "Biodex", "Greenlam", "Viva", "Matsoft", "Temp", "Zoolab", "Subin", "Rank", "Job", "Stringtough", "Tin", "It", "Home Ing", "Zamit", "Sonsing", "Konklab", "Alpha", "Latlux", "Voyatouch", "Alphazap", "Holdlamis", "Zaam-Dox", "Sub-Ex", "Quo Lux", "Bamity", "Ventosanzap", "Lotstring", "Hatity", "Tempsoft", "Overhold", "Fixflex", "Konklux", "Zontrax", "Tampflex", "Span", "Namfix", "Transcof", "Stim", "Fix San", "Sonair", "Stronghold", "Fintone", "Y-find", "Opela", "Lotlux", "Ronstring", "Zathin", "Duobam", "Keylex" ], "version": [ "0.#.#", "0.##", "#.##", "#.#", "#.#.#" ], "author": [ "#{Name.name}", "#{Company.name}" ] }; en.finance = {}; en.finance.account_type = ["Checking","Savings","Money Market", "Investment", "Home Loan", "Credit Card", "Auto Loan", "Personal Loan"]; en.finance.transaction_type = ["deposit", "withdrawal", "payment", "invoice"]; en.finance.currency = { "UAE Dirham": { "code": "AED", "symbol": "" }, "Afghani": { "code": "AFN", "symbol": "؋" }, "Lek": { "code": "ALL", "symbol": "Lek" }, "Armenian Dram": { "code": "AMD", "symbol": "" }, "Netherlands Antillian Guilder": { "code": "ANG", "symbol": "ƒ" }, "Kwanza": { "code": "AOA", "symbol": "" }, "Argentine Peso": { "code": "ARS", "symbol": "$" }, "Australian Dollar": { "code": "AUD", "symbol": "$" }, "Aruban Guilder": { "code": "AWG", "symbol": "ƒ" }, "Azerbaijanian Manat": { "code": "AZN", "symbol": "ман" }, "Convertible Marks": { "code": "BAM", "symbol": "KM" }, "Barbados Dollar": { "code": "BBD", "symbol": "$" }, "Taka": { "code": "BDT", "symbol": "" }, "Bulgarian Lev": { "code": "BGN", "symbol": "лв" }, "Bahraini Dinar": { "code": "BHD", "symbol": "" }, "Burundi Franc": { "code": "BIF", "symbol": "" }, "Bermudian Dollar (customarily known as Bermuda Dollar)": { "code": "BMD", "symbol": "$" }, "Brunei Dollar": { "code": "BND", "symbol": "$" }, "Boliviano Mvdol": { "code": "BOB BOV", "symbol": "$b" }, "Brazilian Real": { "code": "BRL", "symbol": "R$" }, "Bahamian Dollar": { "code": "BSD", "symbol": "$" }, "Pula": { "code": "BWP", "symbol": "P" }, "Belarussian Ruble": { "code": "BYR", "symbol": "p." }, "Belize Dollar": { "code": "BZD", "symbol": "BZ$" }, "Canadian Dollar": { "code": "CAD", "symbol": "$" }, "Congolese Franc": { "code": "CDF", "symbol": "" }, "Swiss Franc": { "code": "CHF", "symbol": "CHF" }, "Chilean Peso Unidades de fomento": { "code": "CLP CLF", "symbol": "$" }, "Yuan Renminbi": { "code": "CNY", "symbol": "¥" }, "Colombian Peso Unidad de Valor Real": { "code": "COP COU", "symbol": "$" }, "Costa Rican Colon": { "code": "CRC", "symbol": "₡" }, "Cuban Peso Peso Convertible": { "code": "CUP CUC", "symbol": "₱" }, "Cape Verde Escudo": { "code": "CVE", "symbol": "" }, "Czech Koruna": { "code": "CZK", "symbol": "Kč" }, "Djibouti Franc": { "code": "DJF", "symbol": "" }, "Danish Krone": { "code": "DKK", "symbol": "kr" }, "Dominican Peso": { "code": "DOP", "symbol": "RD$" }, "Algerian Dinar": { "code": "DZD", "symbol": "" }, "Kroon": { "code": "EEK", "symbol": "" }, "Egyptian Pound": { "code": "EGP", "symbol": "£" }, "Nakfa": { "code": "ERN", "symbol": "" }, "Ethiopian Birr": { "code": "ETB", "symbol": "" }, "Euro": { "code": "EUR", "symbol": "€" }, "Fiji Dollar": { "code": "FJD", "symbol": "$" }, "Falkland Islands Pound": { "code": "FKP", "symbol": "£" }, "Pound Sterling": { "code": "GBP", "symbol": "£" }, "Lari": { "code": "GEL", "symbol": "" }, "Cedi": { "code": "GHS", "symbol": "" }, "Gibraltar Pound": { "code": "GIP", "symbol": "£" }, "Dalasi": { "code": "GMD", "symbol": "" }, "Guinea Franc": { "code": "GNF", "symbol": "" }, "Quetzal": { "code": "GTQ", "symbol": "Q" }, "Guyana Dollar": { "code": "GYD", "symbol": "$" }, "Hong Kong Dollar": { "code": "HKD", "symbol": "$" }, "Lempira": { "code": "HNL", "symbol": "L" }, "Croatian Kuna": { "code": "HRK", "symbol": "kn" }, "Gourde US Dollar": { "code": "HTG USD", "symbol": "" }, "Forint": { "code": "HUF", "symbol": "Ft" }, "Rupiah": { "code": "IDR", "symbol": "Rp" }, "New Israeli Sheqel": { "code": "ILS", "symbol": "₪" }, "Indian Rupee": { "code": "INR", "symbol": "" }, "Indian Rupee Ngultrum": { "code": "INR BTN", "symbol": "" }, "Iraqi Dinar": { "code": "IQD", "symbol": "" }, "Iranian Rial": { "code": "IRR", "symbol": "﷼" }, "Iceland Krona": { "code": "ISK", "symbol": "kr" }, "Jamaican Dollar": { "code": "JMD", "symbol": "J$" }, "Jordanian Dinar": { "code": "JOD", "symbol": "" }, "Yen": { "code": "JPY", "symbol": "¥" }, "Kenyan Shilling": { "code": "KES", "symbol": "" }, "Som": { "code": "KGS", "symbol": "лв" }, "Riel": { "code": "KHR", "symbol": "៛" }, "Comoro Franc": { "code": "KMF", "symbol": "" }, "North Korean Won": { "code": "KPW", "symbol": "₩" }, "Won": { "code": "KRW", "symbol": "₩" }, "Kuwaiti Dinar": { "code": "KWD", "symbol": "" }, "Cayman Islands Dollar": { "code": "KYD", "symbol": "$" }, "Tenge": { "code": "KZT", "symbol": "лв" }, "Kip": { "code": "LAK", "symbol": "₭" }, "Lebanese Pound": { "code": "LBP", "symbol": "£" }, "Sri Lanka Rupee": { "code": "LKR", "symbol": "₨" }, "Liberian Dollar": { "code": "LRD", "symbol": "$" }, "Lithuanian Litas": { "code": "LTL", "symbol": "Lt" }, "Latvian Lats": { "code": "LVL", "symbol": "Ls" }, "Libyan Dinar": { "code": "LYD", "symbol": "" }, "Moroccan Dirham": { "code": "MAD", "symbol": "" }, "Moldovan Leu": { "code": "MDL", "symbol": "" }, "Malagasy Ariary": { "code": "MGA", "symbol": "" }, "Denar": { "code": "MKD", "symbol": "ден" }, "Kyat": { "code": "MMK", "symbol": "" }, "Tugrik": { "code": "MNT", "symbol": "₮" }, "Pataca": { "code": "MOP", "symbol": "" }, "Ouguiya": { "code": "MRO", "symbol": "" }, "Mauritius Rupee": { "code": "MUR", "symbol": "₨" }, "Rufiyaa": { "code": "MVR", "symbol": "" }, "Kwacha": { "code": "MWK", "symbol": "" }, "Mexican Peso Mexican Unidad de Inversion (UDI)": { "code": "MXN MXV", "symbol": "$" }, "Malaysian Ringgit": { "code": "MYR", "symbol": "RM" }, "Metical": { "code": "MZN", "symbol": "MT" }, "Naira": { "code": "NGN", "symbol": "₦" }, "Cordoba Oro": { "code": "NIO", "symbol": "C$" }, "Norwegian Krone": { "code": "NOK", "symbol": "kr" }, "Nepalese Rupee": { "code": "NPR", "symbol": "₨" }, "New Zealand Dollar": { "code": "NZD", "symbol": "$" }, "Rial Omani": { "code": "OMR", "symbol": "﷼" }, "Balboa US Dollar": { "code": "PAB USD", "symbol": "B/." }, "Nuevo Sol": { "code": "PEN", "symbol": "S/." }, "Kina": { "code": "PGK", "symbol": "" }, "Philippine Peso": { "code": "PHP", "symbol": "Php" }, "Pakistan Rupee": { "code": "PKR", "symbol": "₨" }, "Zloty": { "code": "PLN", "symbol": "zł" }, "Guarani": { "code": "PYG", "symbol": "Gs" }, "Qatari Rial": { "code": "QAR", "symbol": "﷼" }, "New Leu": { "code": "RON", "symbol": "lei" }, "Serbian Dinar": { "code": "RSD", "symbol": "Дин." }, "Russian Ruble": { "code": "RUB", "symbol": "руб" }, "Rwanda Franc": { "code": "RWF", "symbol": "" }, "Saudi Riyal": { "code": "SAR", "symbol": "﷼" }, "Solomon Islands Dollar": { "code": "SBD", "symbol": "$" }, "Seychelles Rupee": { "code": "SCR", "symbol": "₨" }, "Sudanese Pound": { "code": "SDG", "symbol": "" }, "Swedish Krona": { "code": "SEK", "symbol": "kr" }, "Singapore Dollar": { "code": "SGD", "symbol": "$" }, "Saint Helena Pound": { "code": "SHP", "symbol": "£" }, "Leone": { "code": "SLL", "symbol": "" }, "Somali Shilling": { "code": "SOS", "symbol": "S" }, "Surinam Dollar": { "code": "SRD", "symbol": "$" }, "Dobra": { "code": "STD", "symbol": "" }, "El Salvador Colon US Dollar": { "code": "SVC USD", "symbol": "$" }, "Syrian Pound": { "code": "SYP", "symbol": "£" }, "Lilangeni": { "code": "SZL", "symbol": "" }, "Baht": { "code": "THB", "symbol": "฿" }, "Somoni": { "code": "TJS", "symbol": "" }, "Manat": { "code": "TMT", "symbol": "" }, "Tunisian Dinar": { "code": "TND", "symbol": "" }, "Pa'anga": { "code": "TOP", "symbol": "" }, "Turkish Lira": { "code": "TRY", "symbol": "TL" }, "Trinidad and Tobago Dollar": { "code": "TTD", "symbol": "TT$" }, "New Taiwan Dollar": { "code": "TWD", "symbol": "NT$" }, "Tanzanian Shilling": { "code": "TZS", "symbol": "" }, "Hryvnia": { "code": "UAH", "symbol": "₴" }, "Uganda Shilling": { "code": "UGX", "symbol": "" }, "US Dollar": { "code": "USD", "symbol": "$" }, "Peso Uruguayo Uruguay Peso en Unidades Indexadas": { "code": "UYU UYI", "symbol": "$U" }, "Uzbekistan Sum": { "code": "UZS", "symbol": "лв" }, "Bolivar Fuerte": { "code": "VEF", "symbol": "Bs" }, "Dong": { "code": "VND", "symbol": "₫" }, "Vatu": { "code": "VUV", "symbol": "" }, "Tala": { "code": "WST", "symbol": "" }, "CFA Franc BEAC": { "code": "XAF", "symbol": "" }, "Silver": { "code": "XAG", "symbol": "" }, "Gold": { "code": "XAU", "symbol": "" }, "Bond Markets Units European Composite Unit (EURCO)": { "code": "XBA", "symbol": "" }, "European Monetary Unit (E.M.U.-6)": { "code": "XBB", "symbol": "" }, "European Unit of Account 9(E.U.A.-9)": { "code": "XBC", "symbol": "" }, "European Unit of Account 17(E.U.A.-17)": { "code": "XBD", "symbol": "" }, "East Caribbean Dollar": { "code": "XCD", "symbol": "$" }, "SDR": { "code": "XDR", "symbol": "" }, "UIC-Franc": { "code": "XFU", "symbol": "" }, "CFA Franc BCEAO": { "code": "XOF", "symbol": "" }, "Palladium": { "code": "XPD", "symbol": "" }, "CFP Franc": { "code": "XPF", "symbol": "" }, "Platinum": { "code": "XPT", "symbol": "" }, "Codes specifically reserved for testing purposes": { "code": "XTS", "symbol": "" }, "Yemeni Rial": { "code": "YER", "symbol": "﷼" }, "Rand": { "code": "ZAR", "symbol": "R" }, "Rand Loti": { "code": "ZAR LSL", "symbol": "" }, "Rand Namibia Dollar": { "code": "ZAR NAD", "symbol": "" }, "Zambian Kwacha": { "code": "ZMK", "symbol": "" }, "Zimbabwe Dollar": { "code": "ZWL", "symbol": "" } }; },{}],15:[function(require,module,exports){ var en_AU = {}; module["exports"] = en_AU; en_AU.title = "Australia (English)"; en_AU.name = { "first_name": [ "William", "Jack", "Oliver", "Joshua", "Thomas", "Lachlan", "Cooper", "Noah", "Ethan", "Lucas", "James", "Samuel", "Jacob", "Liam", "Alexander", "Benjamin", "Max", "Isaac", "Daniel", "Riley", "Ryan", "Charlie", "Tyler", "Jake", "Matthew", "Xavier", "Harry", "Jayden", "Nicholas", "Harrison", "Levi", "Luke", "Adam", "Henry", "Aiden", "Dylan", "Oscar", "Michael", "Jackson", "Logan", "Joseph", "Blake", "Nathan", "Connor", "Elijah", "Nate", "Archie", "Bailey", "Marcus", "Cameron", "Jordan", "Zachary", "Caleb", "Hunter", "Ashton", "Toby", "Aidan", "Hayden", "Mason", "Hamish", "Edward", "Angus", "Eli", "Sebastian", "Christian", "Patrick", "Andrew", "Anthony", "Luca", "Kai", "Beau", "Alex", "George", "Callum", "Finn", "Zac", "Mitchell", "Jett", "Jesse", "Gabriel", "Leo", "Declan", "Charles", "Jasper", "Jonathan", "Aaron", "Hugo", "David", "Christopher", "Chase", "Owen", "Justin", "Ali", "Darcy", "Lincoln", "Cody", "Phoenix", "Sam", "John", "Joel", "Isabella", "Ruby", "Chloe", "Olivia", "Charlotte", "Mia", "Lily", "Emily", "Ella", "Sienna", "Sophie", "Amelia", "Grace", "Ava", "Zoe", "Emma", "Sophia", "Matilda", "Hannah", "Jessica", "Lucy", "Georgia", "Sarah", "Abigail", "Zara", "Eva", "Scarlett", "Jasmine", "Chelsea", "Lilly", "Ivy", "Isla", "Evie", "Isabelle", "Maddison", "Layla", "Summer", "Annabelle", "Alexis", "Elizabeth", "Bella", "Holly", "Lara", "Madison", "Alyssa", "Maya", "Tahlia", "Claire", "Hayley", "Imogen", "Jade", "Ellie", "Sofia", "Addison", "Molly", "Phoebe", "Alice", "Savannah", "Gabriella", "Kayla", "Mikayla", "Abbey", "Eliza", "Willow", "Alexandra", "Poppy", "Samantha", "Stella", "Amy", "Amelie", "Anna", "Piper", "Gemma", "Isabel", "Victoria", "Stephanie", "Caitlin", "Heidi", "Paige", "Rose", "Amber", "Audrey", "Claudia", "Taylor", "Madeline", "Angelina", "Natalie", "Charli", "Lauren", "Ashley", "Violet", "Mackenzie", "Abby", "Skye", "Lillian", "Alana", "Lola", "Leah", "Eve", "Kiara" ], "last_name": [ "Smith", "Jones", "Williams", "Brown", "Wilson", "Taylor", "Johnson", "White", "Martin", "Anderson", "Thompson", "Nguyen", "Thomas", "Walker", "Harris", "Lee", "Ryan", "Robinson", "Kelly", "King", "Davis", "Wright", "Evans", "Roberts", "Green", "Hall", "Wood", "Jackson", "Clarke", "Patel", "Khan", "Lewis", "James", "Phillips", "Mason", "Mitchell", "Rose", "Davies", "Rodriguez", "Cox", "Alexander", "Garden", "Campbell", "Johnston", "Moore", "Smyth", "O'neill", "Doherty", "Stewart", "Quinn", "Murphy", "Graham", "Mclaughlin", "Hamilton", "Murray", "Hughes", "Robertson", "Thomson", "Scott", "Macdonald", "Reid", "Clark", "Ross", "Young", "Watson", "Paterson", "Morrison", "Morgan", "Griffiths", "Edwards", "Rees", "Jenkins", "Owen", "Price", "Moss", "Richards", "Abbott", "Adams", "Armstrong", "Bahringer", "Bailey", "Barrows", "Bartell", "Bartoletti", "Barton", "Bauch", "Baumbach", "Bayer", "Beahan", "Beatty", "Becker", "Beier", "Berge", "Bergstrom", "Bode", "Bogan", "Borer", "Bosco", "Botsford", "Boyer", "Boyle", "Braun", "Bruen", "Carroll", "Carter", "Cartwright", "Casper", "Cassin", "Champlin", "Christiansen", "Cole", "Collier", "Collins", "Connelly", "Conroy", "Corkery", "Cormier", "Corwin", "Cronin", "Crooks", "Cruickshank", "Cummings", "D'amore", "Daniel", "Dare", "Daugherty", "Dickens", "Dickinson", "Dietrich", "Donnelly", "Dooley", "Douglas", "Doyle", "Durgan", "Ebert", "Emard", "Emmerich", "Erdman", "Ernser", "Fadel", "Fahey", "Farrell", "Fay", "Feeney", "Feil", "Ferry", "Fisher", "Flatley", "Gibson", "Gleason", "Glover", "Goldner", "Goodwin", "Grady", "Grant", "Greenfelder", "Greenholt", "Grimes", "Gutmann", "Hackett", "Hahn", "Haley", "Hammes", "Hand", "Hane", "Hansen", "Harber", "Hartmann", "Harvey", "Hayes", "Heaney", "Heathcote", "Heller", "Hermann", "Hermiston", "Hessel", "Hettinger", "Hickle", "Hill", "Hills", "Hoppe", "Howe", "Howell", "Hudson", "Huel", "Hyatt", "Jacobi", "Jacobs", "Jacobson", "Jerde", "Johns", "Keeling", "Kemmer", "Kessler", "Kiehn", "Kirlin", "Klein", "Koch", "Koelpin", "Kohler", "Koss", "Kovacek", "Kreiger", "Kris", "Kuhlman", "Kuhn", "Kulas", "Kunde", "Kutch", "Lakin", "Lang", "Langworth", "Larkin", "Larson", "Leannon", "Leffler", "Little", "Lockman", "Lowe", "Lynch", "Mann", "Marks", "Marvin", "Mayer", "Mccullough", "Mcdermott", "Mckenzie", "Miller", "Mills", "Monahan", "Morissette", "Mueller", "Muller", "Nader", "Nicolas", "Nolan", "O'connell", "O'conner", "O'hara", "O'keefe", "Olson", "O'reilly", "Parisian", "Parker", "Quigley", "Reilly", "Reynolds", "Rice", "Ritchie", "Rohan", "Rolfson", "Rowe", "Russel", "Rutherford", "Sanford", "Sauer", "Schmidt", "Schmitt", "Schneider", "Schroeder", "Schultz", "Shields", "Smitham", "Spencer", "Stanton", "Stark", "Stokes", "Swift", "Tillman", "Towne", "Tremblay", "Tromp", "Turcotte", "Turner", "Walsh", "Walter", "Ward", "Waters", "Weber", "Welch", "West", "Wilderman", "Wilkinson", "Williamson", "Windler", "Wolf" ] }; en_AU.company = { "suffix": [ "Pty Ltd", "and Sons", "Corp", "Group", "Brothers", "Partners" ] }; en_AU.internet = { "domain_suffix": [ "com.au", "com", "net.au", "net", "org.au", "org" ] }; en_AU.address = { "state_abbr": [ "NSW", "QLD", "NT", "SA", "WA", "TAS", "ACT", "VIC" ], "state": [ "New South Wales", "Queensland", "Northern Territory", "South Australia", "Western Australia", "Tasmania", "Australian Capital Territory", "Victoria" ], "postcode": [ "0###", "2###", "3###", "4###", "5###", "6###", "7###" ], "building_number": [ "####", "###", "##" ], "street_suffix": [ "Avenue", "Boulevard", "Circle", "Circuit", "Court", "Crescent", "Crest", "Drive", "Estate Dr", "Grove", "Hill", "Island", "Junction", "Knoll", "Lane", "Loop", "Mall", "Manor", "Meadow", "Mews", "Parade", "Parkway", "Pass", "Place", "Plaza", "Ridge", "Road", "Run", "Square", "Station St", "Street", "Summit", "Terrace", "Track", "Trail", "View Rd", "Way" ], "default_country": [ "Australia" ] }; en_AU.phone_number = { "formats": [ "0# #### ####", "+61 # #### ####", "04## ### ###", "+61 4## ### ###" ] }; },{}],16:[function(require,module,exports){ var en_BORK = {}; module["exports"] = en_BORK; en_BORK.title = "Bork (English)"; en_BORK.lorem = { "words": [ "Boot", "I", "Nu", "Nur", "Tu", "Um", "a", "becoose-a", "boot", "bork", "burn", "chuuses", "cumplete-a", "cun", "cunseqooences", "curcoomstunces", "dee", "deeslikes", "denuoonceeng", "desures", "du", "eccuoont", "ectooel", "edfuntege-a", "efueeds", "egeeen", "ell", "ere-a", "feend", "foolt", "frum", "geefe-a", "gesh", "greet", "heem", "heppeeness", "hes", "hoo", "hoomun", "idea", "ifer", "in", "incuoonter", "injuy", "itselff", "ixcept", "ixemple-a", "ixerceese-a", "ixpleeen", "ixplurer", "ixpuoond", "ixtremely", "knoo", "lebureeuoos", "lufes", "meestekee", "mester-booeelder", "moost", "mun", "nu", "nut", "oobteeen", "oocceseeunelly", "ooccoor", "ooff", "oone-a", "oor", "peeen", "peeenffool", "physeecel", "pleesoore-a", "poorsooe-a", "poorsooes", "preeesing", "prucoore-a", "prudooces", "reeght", "reshunelly", "resooltunt", "sume-a", "teecheengs", "teke-a", "thees", "thet", "thuse-a", "treefiel", "troot", "tu", "tueel", "und", "undertekes", "unnuyeeng", "uny", "unyune-a", "us", "veell", "veet", "ves", "vheech", "vhu", "yuoo", "zee", "zeere-a" ] }; },{}],17:[function(require,module,exports){ var en_CA = {}; module["exports"] = en_CA; en_CA.title = "Canada (English)"; en_CA.address = { "postcode": [ "?#? #?#", "?#?#?#" ], "state": [ "Alberta", "British Columbia", "Manitoba", "New Brunswick", "Newfoundland and Labrador", "Nova Scotia", "Northwest Territories", "Nunavut", "Ontario", "Prince Edward Island", "Quebec", "Saskatchewan", "Yukon" ], "state_abbr": [ "AB", "BC", "MB", "NB", "NL", "NS", "NU", "NT", "ON", "PE", "QC", "SK", "YK" ], "default_country": [ "Canada" ] }; en_CA.internet = { "free_email": [ "gmail.com", "yahoo.ca", "hotmail.com" ], "domain_suffix": [ "ca", "com", "biz", "info", "name", "net", "org" ] }; en_CA.phone_number = { "formats": [ "###-###-####", "(###)###-####", "###.###.####", "1-###-###-####", "###-###-#### x###", "(###)###-#### x###", "1-###-###-#### x###", "###.###.#### x###", "###-###-#### x####", "(###)###-#### x####", "1-###-###-#### x####", "###.###.#### x####", "###-###-#### x#####", "(###)###-#### x#####", "1-###-###-#### x#####", "###.###.#### x#####" ] }; },{}],18:[function(require,module,exports){ var en_GB = {}; module["exports"] = en_GB; en_GB.title = "Great Britain (English)"; en_GB.address = { "postcode": "/[A-PR-UWYZ][A-HK-Y]?[0-9][ABEHMNPRVWXY0-9]? [0-9][ABD-HJLN-UW-Z]{2}/", "county": [ "Avon", "Bedfordshire", "Berkshire", "Borders", "Buckinghamshire", "Cambridgeshire", "Central", "Cheshire", "Cleveland", "Clwyd", "Cornwall", "County Antrim", "County Armagh", "County Down", "County Fermanagh", "County Londonderry", "County Tyrone", "Cumbria", "Derbyshire", "Devon", "Dorset", "Dumfries and Galloway", "Durham", "Dyfed", "East Sussex", "Essex", "Fife", "Gloucestershire", "Grampian", "Greater Manchester", "Gwent", "Gwynedd County", "Hampshire", "Herefordshire", "Hertfordshire", "Highlands and Islands", "Humberside", "Isle of Wight", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Lothian", "Merseyside", "Mid Glamorgan", "Norfolk", "North Yorkshire", "Northamptonshire", "Northumberland", "Nottinghamshire", "Oxfordshire", "Powys", "Rutland", "Shropshire", "Somerset", "South Glamorgan", "South Yorkshire", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Tayside", "Tyne and Wear", "Warwickshire", "West Glamorgan", "West Midlands", "West Sussex", "West Yorkshire", "Wiltshire", "Worcestershire" ], "uk_country": [ "England", "Scotland", "Wales", "Northern Ireland" ], "default_country": [ "England", "Scotland", "Wales", "Northern Ireland" ] }; en_GB.internet = { "domain_suffix": [ "co.uk", "com", "biz", "info", "name" ] }; en_GB.phone_number = { "formats": [ "01#### #####", "01### ######", "01#1 ### ####", "011# ### ####", "02# #### ####", "03## ### ####", "055 #### ####", "056 #### ####", "0800 ### ####", "08## ### ####", "09## ### ####", "016977 ####", "01### #####", "0500 ######", "0800 ######" ] }; en_GB.cell_phone = { "formats": [ "074## ######", "075## ######", "076## ######", "077## ######", "078## ######", "079## ######" ] }; },{}],19:[function(require,module,exports){ var en_IND = {}; module["exports"] = en_IND; en_IND.title = "India (English)"; en_IND.name = { "first_name": [ "Aadrika", "Aanandinii", "Aaratrika", "Aarya", "Arya", "Aashritha", "Aatmaja", "Atmaja", "Abhaya", "Adwitiya", "Agrata", "Ahilya", "Ahalya", "Aishani", "Akshainie", "Akshata", "Akshita", "Akula", "Ambar", "Amodini", "Amrita", "Amritambu", "Anala", "Anamika", "Ananda", "Anandamayi", "Ananta", "Anila", "Anjali", "Anjushri", "Anjushree", "Annapurna", "Anshula", "Anuja", "Anusuya", "Anasuya", "Anasooya", "Anwesha", "Apsara", "Aruna", "Asha", "Aasa", "Aasha", "Aslesha", "Atreyi", "Atreyee", "Avani", "Abani", "Avantika", "Ayushmati", "Baidehi", "Vaidehi", "Bala", "Baala", "Balamani", "Basanti", "Vasanti", "Bela", "Bhadra", "Bhagirathi", "Bhagwanti", "Bhagwati", "Bhamini", "Bhanumati", "Bhaanumati", "Bhargavi", "Bhavani", "Bhilangana", "Bilwa", "Bilva", "Buddhana", "Chakrika", "Chanda", "Chandi", "Chandni", "Chandini", "Chandani", "Chandra", "Chandira", "Chandrabhaga", "Chandrakala", "Chandrakin", "Chandramani", "Chandrani", "Chandraprabha", "Chandraswaroopa", "Chandravati", "Chapala", "Charumati", "Charvi", "Chatura", "Chitrali", "Chitramala", "Chitrangada", "Daksha", "Dakshayani", "Damayanti", "Darshwana", "Deepali", "Dipali", "Deeptimoyee", "Deeptimayee", "Devangana", "Devani", "Devasree", "Devi", "Daevi", "Devika", "Daevika", "Dhaanyalakshmi", "Dhanalakshmi", "Dhana", "Dhanadeepa", "Dhara", "Dharani", "Dharitri", "Dhatri", "Diksha", "Deeksha", "Divya", "Draupadi", "Dulari", "Durga", "Durgeshwari", "Ekaparnika", "Elakshi", "Enakshi", "Esha", "Eshana", "Eshita", "Gautami", "Gayatri", "Geeta", "Geetanjali", "Gitanjali", "Gemine", "Gemini", "Girja", "Girija", "Gita", "Hamsini", "Harinakshi", "Harita", "Heema", "Himadri", "Himani", "Hiranya", "Indira", "Jaimini", "Jaya", "Jyoti", "Jyotsana", "Kali", "Kalinda", "Kalpana", "Kalyani", "Kama", "Kamala", "Kamla", "Kanchan", "Kanishka", "Kanti", "Kashyapi", "Kumari", "Kumuda", "Lakshmi", "Laxmi", "Lalita", "Lavanya", "Leela", "Lila", "Leela", "Madhuri", "Malti", "Malati", "Mandakini", "Mandaakin", "Mangala", "Mangalya", "Mani", "Manisha", "Manjusha", "Meena", "Mina", "Meenakshi", "Minakshi", "Menka", "Menaka", "Mohana", "Mohini", "Nalini", "Nikita", "Ojaswini", "Omana", "Oormila", "Urmila", "Opalina", "Opaline", "Padma", "Parvati", "Poornima", "Purnima", "Pramila", "Prasanna", "Preity", "Prema", "Priya", "Priyala", "Pushti", "Radha", "Rageswari", "Rageshwari", "Rajinder", "Ramaa", "Rati", "Rita", "Rohana", "Rukhmani", "Rukmin", "Rupinder", "Sanya", "Sarada", "Sharda", "Sarala", "Sarla", "Saraswati", "Sarisha", "Saroja", "Shakti", "Shakuntala", "Shanti", "Sharmila", "Shashi", "Shashikala", "Sheela", "Shivakari", "Shobhana", "Shresth", "Shresthi", "Shreya", "Shreyashi", "Shridevi", "Shrishti", "Shubha", "Shubhaprada", "Siddhi", "Sitara", "Sloka", "Smita", "Smriti", "Soma", "Subhashini", "Subhasini", "Sucheta", "Sudeva", "Sujata", "Sukanya", "Suma", "Suma", "Sumitra", "Sunita", "Suryakantam", "Sushma", "Swara", "Swarnalata", "Sweta", "Shwet", "Tanirika", "Tanushree", "Tanushri", "Tanushri", "Tanya", "Tara", "Trisha", "Uma", "Usha", "Vaijayanti", "Vaijayanthi", "Baijayanti", "Vaishvi", "Vaishnavi", "Vaishno", "Varalakshmi", "Vasudha", "Vasundhara", "Veda", "Vedanshi", "Vidya", "Vimala", "Vrinda", "Vrund", "Aadi", "Aadidev", "Aadinath", "Aaditya", "Aagam", "Aagney", "Aamod", "Aanandaswarup", "Anand Swarup", "Aanjaneya", "Anjaneya", "Aaryan", "Aryan", "Aatmaj", "Aatreya", "Aayushmaan", "Aayushman", "Abhaidev", "Abhaya", "Abhirath", "Abhisyanta", "Acaryatanaya", "Achalesvara", "Acharyanandana", "Acharyasuta", "Achintya", "Achyut", "Adheesh", "Adhiraj", "Adhrit", "Adikavi", "Adinath", "Aditeya", "Aditya", "Adityanandan", "Adityanandana", "Adripathi", "Advaya", "Agasti", "Agastya", "Agneya", "Aagneya", "Agnimitra", "Agniprava", "Agnivesh", "Agrata", "Ajit", "Ajeet", "Akroor", "Akshaj", "Akshat", "Akshayakeerti", "Alok", "Aalok", "Amaranaath", "Amarnath", "Amaresh", "Ambar", "Ameyatma", "Amish", "Amogh", "Amrit", "Anaadi", "Anagh", "Anal", "Anand", "Aanand", "Anang", "Anil", "Anilaabh", "Anilabh", "Anish", "Ankal", "Anunay", "Anurag", "Anuraag", "Archan", "Arindam", "Arjun", "Arnesh", "Arun", "Ashlesh", "Ashok", "Atmanand", "Atmananda", "Avadhesh", "Baalaaditya", "Baladitya", "Baalagopaal", "Balgopal", "Balagopal", "Bahula", "Bakula", "Bala", "Balaaditya", "Balachandra", "Balagovind", "Bandhu", "Bandhul", "Bankim", "Bankimchandra", "Bhadrak", "Bhadraksh", "Bhadran", "Bhagavaan", "Bhagvan", "Bharadwaj", "Bhardwaj", "Bharat", "Bhargava", "Bhasvan", "Bhaasvan", "Bhaswar", "Bhaaswar", "Bhaumik", "Bhaves", "Bheeshma", "Bhisham", "Bhishma", "Bhima", "Bhoj", "Bhramar", "Bhudev", "Bhudeva", "Bhupati", "Bhoopati", "Bhoopat", "Bhupen", "Bhushan", "Bhooshan", "Bhushit", "Bhooshit", "Bhuvanesh", "Bhuvaneshwar", "Bilva", "Bodhan", "Brahma", "Brahmabrata", "Brahmanandam", "Brahmaanand", "Brahmdev", "Brajendra", "Brajesh", "Brijesh", "Birjesh", "Budhil", "Chakor", "Chakradhar", "Chakravartee", "Chakravarti", "Chanakya", "Chaanakya", "Chandak", "Chandan", "Chandra", "Chandraayan", "Chandrabhan", "Chandradev", "Chandraketu", "Chandramauli", "Chandramohan", "Chandran", "Chandranath", "Chapal", "Charak", "Charuchandra", "Chaaruchandra", "Charuvrat", "Chatur", "Chaturaanan", "Chaturbhuj", "Chetan", "Chaten", "Chaitan", "Chetanaanand", "Chidaakaash", "Chidaatma", "Chidambar", "Chidambaram", "Chidananda", "Chinmayanand", "Chinmayananda", "Chiranjeev", "Chiranjeeve", "Chitraksh", "Daiwik", "Daksha", "Damodara", "Dandak", "Dandapaani", "Darshan", "Datta", "Dayaamay", "Dayamayee", "Dayaananda", "Dayaanidhi", "Kin", "Deenabandhu", "Deepan", "Deepankar", "Dipankar", "Deependra", "Dipendra", "Deepesh", "Dipesh", "Deeptanshu", "Deeptendu", "Diptendu", "Deeptiman", "Deeptimoy", "Deeptimay", "Dev", "Deb", "Devadatt", "Devagya", "Devajyoti", "Devak", "Devdan", "Deven", "Devesh", "Deveshwar", "Devi", "Devvrat", "Dhananjay", "Dhanapati", "Dhanpati", "Dhanesh", "Dhanu", "Dhanvin", "Dharmaketu", "Dhruv", "Dhyanesh", "Dhyaneshwar", "Digambar", "Digambara", "Dinakar", "Dinkar", "Dinesh", "Divaakar", "Divakar", "Deevakar", "Divjot", "Dron", "Drona", "Dwaipayan", "Dwaipayana", "Eekalabya", "Ekalavya", "Ekaksh", "Ekaaksh", "Ekaling", "Ekdant", "Ekadant", "Gajaadhar", "Gajadhar", "Gajbaahu", "Gajabahu", "Ganak", "Ganaka", "Ganapati", "Gandharv", "Gandharva", "Ganesh", "Gangesh", "Garud", "Garuda", "Gati", "Gatik", "Gaurang", "Gauraang", "Gauranga", "Gouranga", "Gautam", "Gautama", "Goutam", "Ghanaanand", "Ghanshyam", "Ghanashyam", "Giri", "Girik", "Girika", "Girindra", "Giriraaj", "Giriraj", "Girish", "Gopal", "Gopaal", "Gopi", "Gopee", "Gorakhnath", "Gorakhanatha", "Goswamee", "Goswami", "Gotum", "Gautam", "Govinda", "Gobinda", "Gudakesha", "Gudakesa", "Gurdev", "Guru", "Hari", "Harinarayan", "Harit", "Himadri", "Hiranmay", "Hiranmaya", "Hiranya", "Inder", "Indra", "Indra", "Jagadish", "Jagadisha", "Jagathi", "Jagdeep", "Jagdish", "Jagmeet", "Jahnu", "Jai", "Javas", "Jay", "Jitendra", "Jitender", "Jyotis", "Kailash", "Kama", "Kamalesh", "Kamlesh", "Kanak", "Kanaka", "Kannan", "Kannen", "Karan", "Karthik", "Kartik", "Karunanidhi", "Kashyap", "Kiran", "Kirti", "Keerti", "Krishna", "Krishnadas", "Krishnadasa", "Kumar", "Lai", "Lakshman", "Laxman", "Lakshmidhar", "Lakshminath", "Lal", "Laal", "Mahendra", "Mohinder", "Mahesh", "Maheswar", "Mani", "Manik", "Manikya", "Manoj", "Marut", "Mayoor", "Meghnad", "Meghnath", "Mohan", "Mukesh", "Mukul", "Nagabhushanam", "Nanda", "Narayan", "Narendra", "Narinder", "Naveen", "Navin", "Nawal", "Naval", "Nimit", "Niranjan", "Nirbhay", "Niro", "Param", "Paramartha", "Pran", "Pranay", "Prasad", "Prathamesh", "Prayag", "Prem", "Puneet", "Purushottam", "Rahul", "Raj", "Rajan", "Rajendra", "Rajinder", "Rajiv", "Rakesh", "Ramesh", "Rameshwar", "Ranjit", "Ranjeet", "Ravi", "Ritesh", "Rohan", "Rohit", "Rudra", "Sachin", "Sameer", "Samir", "Sanjay", "Sanka", "Sarvin", "Satish", "Satyen", "Shankar", "Shantanu", "Shashi", "Sher", "Shiv", "Siddarth", "Siddhran", "Som", "Somu", "Somnath", "Subhash", "Subodh", "Suman", "Suresh", "Surya", "Suryakant", "Suryakanta", "Sushil", "Susheel", "Swami", "Swapnil", "Tapan", "Tara", "Tarun", "Tej", "Tejas", "Trilochan", "Trilochana", "Trilok", "Trilokesh", "Triloki", "Triloki Nath", "Trilokanath", "Tushar", "Udai", "Udit", "Ujjawal", "Ujjwal", "Umang", "Upendra", "Uttam", "Vasudev", "Vasudeva", "Vedang", "Vedanga", "Vidhya", "Vidur", "Vidhur", "Vijay", "Vimal", "Vinay", "Vishnu", "Bishnu", "Vishwamitra", "Vyas", "Yogendra", "Yoginder", "Yogesh" ], "last_name": [ "Abbott", "Achari", "Acharya", "Adiga", "Agarwal", "Ahluwalia", "Ahuja", "Arora", "Asan", "Bandopadhyay", "Banerjee", "Bharadwaj", "Bhat", "Butt", "Bhattacharya", "Bhattathiri", "Chaturvedi", "Chattopadhyay", "Chopra", "Desai", "Deshpande", "Devar", "Dhawan", "Dubashi", "Dutta", "Dwivedi", "Embranthiri", "Ganaka", "Gandhi", "Gill", "Gowda", "Guha", "Guneta", "Gupta", "Iyer", "Iyengar", "Jain", "Jha", "Johar", "Joshi", "Kakkar", "Kaniyar", "Kapoor", "Kaul", "Kaur", "Khan", "Khanna", "Khatri", "Kocchar", "Mahajan", "Malik", "Marar", "Menon", "Mehra", "Mehrotra", "Mishra", "Mukhopadhyay", "Nayar", "Naik", "Nair", "Nambeesan", "Namboothiri", "Nehru", "Pandey", "Panicker", "Patel", "Patil", "Pilla", "Pillai", "Pothuvaal", "Prajapat", "Rana", "Reddy", "Saini", "Sethi", "Shah", "Sharma", "Shukla", "Singh", "Sinha", "Somayaji", "Tagore", "Talwar", "Tandon", "Trivedi", "Varrier", "Varma", "Varman", "Verma" ] }; en_IND.address = { "postcode": [ "?#? #?#" ], "state": [ "Andra Pradesh", "Arunachal Pradesh", "Assam", "Bihar", "Chhattisgarh", "Goa", "Gujarat", "Haryana", "Himachal Pradesh", "Jammu and Kashmir", "Jharkhand", "Karnataka", "Kerala", "Madya Pradesh", "Maharashtra", "Manipur", "Meghalaya", "Mizoram", "Nagaland", "Orissa", "Punjab", "Rajasthan", "Sikkim", "Tamil Nadu", "Tripura", "Uttaranchal", "Uttar Pradesh", "West Bengal", "Andaman and Nicobar Islands", "Chandigarh", "Dadar and Nagar Haveli", "Daman and Diu", "Delhi", "Lakshadweep", "Pondicherry" ], "state_abbr": [ "AP", "AR", "AS", "BR", "CG", "DL", "GA", "GJ", "HR", "HP", "JK", "JS", "KA", "KL", "MP", "MH", "MN", "ML", "MZ", "NL", "OR", "PB", "RJ", "SK", "TN", "TR", "UK", "UP", "WB", "AN", "CH", "DN", "DD", "LD", "PY" ], "default_country": [ "India", "Indian Republic", "Bharat", "Hindustan" ] }; en_IND.internet = { "free_email": [ "gmail.com", "yahoo.co.in", "hotmail.com" ], "domain_suffix": [ "in", "com", "biz", "info", "name", "net", "org", "co.in" ] }; en_IND.company = { "suffix": [ "Pvt Ltd", "Limited", "Ltd", "and Sons", "Corp", "Group", "Brothers" ] }; en_IND.phone_number = { "formats": [ "+91###-###-####", "+91##########", "+91-###-#######" ] }; },{}],20:[function(require,module,exports){ var en_US = {}; module["exports"] = en_US; en_US.title = "United States (English)"; en_US.internet = { "domain_suffix": [ "com", "us", "biz", "info", "name", "net", "org" ] }; en_US.address = { "default_country": [ "United States", "United States of America", "USA" ], "postcode_by_state": { "AL": "350##", "AK": "995##", "AS": "967##", "AZ": "850##", "AR": "717##", "CA": "900##", "CO": "800##", "CT": "061##", "DC": "204##", "DE": "198##", "FL": "322##", "GA": "301##", "HI": "967##", "ID": "832##", "IL": "600##", "IN": "463##", "IA": "510##", "KS": "666##", "KY": "404##", "LA": "701##", "ME": "042##", "MD": "210##", "MA": "026##", "MI": "480##", "MN": "555##", "MS": "387##", "MO": "650##", "MT": "590##", "NE": "688##", "NV": "898##", "NH": "036##", "NJ": "076##", "NM": "880##", "NY": "122##", "NC": "288##", "ND": "586##", "OH": "444##", "OK": "730##", "OR": "979##", "PA": "186##", "RI": "029##", "SC": "299##", "SD": "577##", "TN": "383##", "TX": "798##", "UT": "847##", "VT": "050##", "VA": "222##", "WA": "990##", "WV": "247##", "WI": "549##", "WY": "831##" } }; en_US.phone_number = { "area_code": [ "201", "202", "203", "205", "206", "207", "208", "209", "210", "212", "213", "214", "215", "216", "217", "218", "219", "224", "225", "227", "228", "229", "231", "234", "239", "240", "248", "251", "252", "253", "254", "256", "260", "262", "267", "269", "270", "276", "281", "283", "301", "302", "303", "304", "305", "307", "308", "309", "310", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "323", "330", "331", "334", "336", "337", "339", "347", "351", "352", "360", "361", "386", "401", "402", "404", "405", "406", "407", "408", "409", "410", "412", "413", "414", "415", "417", "419", "423", "424", "425", "434", "435", "440", "443", "445", "464", "469", "470", "475", "478", "479", "480", "484", "501", "502", "503", "504", "505", "507", "508", "509", "510", "512", "513", "515", "516", "517", "518", "520", "530", "540", "541", "551", "557", "559", "561", "562", "563", "564", "567", "570", "571", "573", "574", "580", "585", "586", "601", "602", "603", "605", "606", "607", "608", "609", "610", "612", "614", "615", "616", "617", "618", "619", "620", "623", "626", "630", "631", "636", "641", "646", "650", "651", "660", "661", "662", "667", "678", "682", "701", "702", "703", "704", "706", "707", "708", "712", "713", "714", "715", "716", "717", "718", "719", "720", "724", "727", "731", "732", "734", "737", "740", "754", "757", "760", "763", "765", "770", "772", "773", "774", "775", "781", "785", "786", "801", "802", "803", "804", "805", "806", "808", "810", "812", "813", "814", "815", "816", "817", "818", "828", "830", "831", "832", "835", "843", "845", "847", "848", "850", "856", "857", "858", "859", "860", "862", "863", "864", "865", "870", "872", "878", "901", "903", "904", "906", "907", "908", "909", "910", "912", "913", "914", "915", "916", "917", "918", "919", "920", "925", "928", "931", "936", "937", "940", "941", "947", "949", "952", "954", "956", "959", "970", "971", "972", "973", "975", "978", "979", "980", "984", "985", "989" ], "exchange_code": [ "201", "202", "203", "205", "206", "207", "208", "209", "210", "212", "213", "214", "215", "216", "217", "218", "219", "224", "225", "227", "228", "229", "231", "234", "239", "240", "248", "251", "252", "253", "254", "256", "260", "262", "267", "269", "270", "276", "281", "283", "301", "302", "303", "304", "305", "307", "308", "309", "310", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "323", "330", "331", "334", "336", "337", "339", "347", "351", "352", "360", "361", "386", "401", "402", "404", "405", "406", "407", "408", "409", "410", "412", "413", "414", "415", "417", "419", "423", "424", "425", "434", "435", "440", "443", "445", "464", "469", "470", "475", "478", "479", "480", "484", "501", "502", "503", "504", "505", "507", "508", "509", "510", "512", "513", "515", "516", "517", "518", "520", "530", "540", "541", "551", "557", "559", "561", "562", "563", "564", "567", "570", "571", "573", "574", "580", "585", "586", "601", "602", "603", "605", "606", "607", "608", "609", "610", "612", "614", "615", "616", "617", "618", "619", "620", "623", "626", "630", "631", "636", "641", "646", "650", "651", "660", "661", "662", "667", "678", "682", "701", "702", "703", "704", "706", "707", "708", "712", "713", "714", "715", "716", "717", "718", "719", "720", "724", "727", "731", "732", "734", "737", "740", "754", "757", "760", "763", "765", "770", "772", "773", "774", "775", "781", "785", "786", "801", "802", "803", "804", "805", "806", "808", "810", "812", "813", "814", "815", "816", "817", "818", "828", "830", "831", "832", "835", "843", "845", "847", "848", "850", "856", "857", "858", "859", "860", "862", "863", "864", "865", "870", "872", "878", "901", "903", "904", "906", "907", "908", "909", "910", "912", "913", "914", "915", "916", "917", "918", "919", "920", "925", "928", "931", "936", "937", "940", "941", "947", "949", "952", "954", "956", "959", "970", "971", "972", "973", "975", "978", "979", "980", "984", "985", "989" ] }; },{}],21:[function(require,module,exports){ var en_au_ocker = {}; module["exports"] = en_au_ocker; en_au_ocker.title = "Australia Ocker (English)"; en_au_ocker.name = { "first_name": [ "Charlotte", "Ava", "Chloe", "Emily", "Olivia", "Zoe", "Lily", "Sophie", "Amelia", "Sofia", "Ella", "Isabella", "Ruby", "Sienna", "Mia+3", "Grace", "Emma", "Ivy", "Layla", "Abigail", "Isla", "Hannah", "Zara", "Lucy", "Evie", "Annabelle", "Madison", "Alice", "Georgia", "Maya", "Madeline", "Audrey", "Scarlett", "Isabelle", "Chelsea", "Mila", "Holly", "Indiana", "Poppy", "Harper", "Sarah", "Alyssa", "Jasmine", "Imogen", "Hayley", "Pheobe", "Eva", "Evelyn", "Mackenzie", "Ayla", "Oliver", "Jack", "Jackson", "William", "Ethan", "Charlie", "Lucas", "Cooper", "Lachlan", "Noah", "Liam", "Alexander", "Max", "Isaac", "Thomas", "Xavier", "Oscar", "Benjamin", "Aiden", "Mason", "Samuel", "James", "Levi", "Riley", "Harrison", "Ryan", "Henry", "Jacob", "Joshua", "Leo", "Zach", "Harry", "Hunter", "Flynn", "Archie", "Tyler", "Elijah", "Hayden", "Jayden", "Blake", "Archer", "Ashton", "Sebastian", "Zachery", "Lincoln", "Mitchell", "Luca", "Nathan", "Kai", "Connor", "Tom", "Nigel", "Matt", "Sean" ], "last_name": [ "Smith", "Jones", "Williams", "Brown", "Wilson", "Taylor", "Morton", "White", "Martin", "Anderson", "Thompson", "Nguyen", "Thomas", "Walker", "Harris", "Lee", "Ryan", "Robinson", "Kelly", "King", "Rausch", "Ridge", "Connolly", "LeQuesne" ], "ocker_first_name": [ "Bazza", "Bluey", "Davo", "Johno", "Shano", "Shazza" ] }; en_au_ocker.company = { "suffix": [ "Pty Ltd", "and Sons", "Corp", "Group", "Brothers", "Partners" ] }; en_au_ocker.internet = { "domain_suffix": [ "com.au", "com", "net.au", "net", "org.au", "org" ] }; en_au_ocker.address = { "street_root": [ "Ramsay Street", "Bonnie Doon", "Cavill Avenue", "Queen Street" ], "street_name": [ "#{street_root}" ], "city_prefix": [ "Bondi", "Burleigh Heads", "Carlton", "Fitzroy", "Fremantle", "Glenelg", "Manly", "Noosa", "Stones Corner", "St Kilda", "Surry Hills", "Yarra Valley" ], "city": [ "#{city_prefix}" ], "state_abbr": [ "NSW", "QLD", "NT", "SA", "WA", "TAS", "ACT", "VIC" ], "region": [ "South East Queensland", "Wide Bay Burnett", "Margaret River", "Port Pirie", "Gippsland", "Elizabeth", "Barossa" ], "state": [ "New South Wales", "Queensland", "Northern Territory", "South Australia", "Western Australia", "Tasmania", "Australian Capital Territory", "Victoria" ], "postcode": [ "0###", "2###", "3###", "4###", "5###", "6###", "7###" ], "building_number": [ "####", "###", "##" ], "street_suffix": [ "Avenue", "Boulevard", "Circle", "Circuit", "Court", "Crescent", "Crest", "Drive", "Estate Dr", "Grove", "Hill", "Island", "Junction", "Knoll", "Lane", "Loop", "Mall", "Manor", "Meadow", "Mews", "Parade", "Parkway", "Pass", "Place", "Plaza", "Ridge", "Road", "Run", "Square", "Station St", "Street", "Summit", "Terrace", "Track", "Trail", "View Rd", "Way" ], "default_country": [ "Australia" ] }; en_au_ocker.phone_number = { "formats": [ "0# #### ####", "+61 # #### ####", "04## ### ###", "+61 4## ### ###" ] }; },{}],22:[function(require,module,exports){ var es = {}; module["exports"] = es; es.title = "Spanish"; es.address = { "city_prefix": [ "Parla", "Telde", "Baracaldo", "San Fernando", "Torrevieja", "Lugo", "Santiago de Compostela", "Gerona", "Cáceres", "Lorca", "Coslada", "Talavera de la Reina", "El Puerto de Santa María", "Cornellá de Llobregat", "Avilés", "Palencia", "Gecho", "Orihuela", "Pontevedra", "Pozuelo de Alarcón", "Toledo", "El Ejido", "Guadalajara", "Gandía", "Ceuta", "Ferrol", "Chiclana de la Frontera", "Manresa", "Roquetas de Mar", "Ciudad Real", "Rubí", "Benidorm", "San Sebastían de los Reyes", "Ponferrada", "Zamora", "Alcalá de Guadaira", "Fuengirola", "Mijas", "Sanlúcar de Barrameda", "La Línea de la Concepción", "Majadahonda", "Sagunto", "El Prat de LLobregat", "Viladecans", "Linares", "Alcoy", "Irún", "Estepona", "Torremolinos", "Rivas-Vaciamadrid", "Molina de Segura", "Paterna", "Granollers", "Santa Lucía de Tirajana", "Motril", "Cerdañola del Vallés", "Arrecife", "Segovia", "Torrelavega", "Elda", "Mérida", "Ávila", "Valdemoro", "Cuenta", "Collado Villalba", "Benalmádena", "Mollet del Vallés", "Puertollano", "Madrid", "Barcelona", "Valencia", "Sevilla", "Zaragoza", "Málaga", "Murcia", "Palma de Mallorca", "Las Palmas de Gran Canaria", "Bilbao", "Córdoba", "Alicante", "Valladolid", "Vigo", "Gijón", "Hospitalet de LLobregat", "La Coruña", "Granada", "Vitoria", "Elche", "Santa Cruz de Tenerife", "Oviedo", "Badalona", "Cartagena", "Móstoles", "Jerez de la Frontera", "Tarrasa", "Sabadell", "Alcalá de Henares", "Pamplona", "Fuenlabrada", "Almería", "San Sebastián", "Leganés", "Santander", "Burgos", "Castellón de la Plana", "Alcorcón", "Albacete", "Getafe", "Salamanca", "Huelva", "Logroño", "Badajoz", "San Cristróbal de la Laguna", "León", "Tarragona", "Cádiz", "Lérida", "Marbella", "Mataró", "Dos Hermanas", "Santa Coloma de Gramanet", "Jaén", "Algeciras", "Torrejón de Ardoz", "Orense", "Alcobendas", "Reus", "Calahorra", "Inca" ], "country": [ "Afganistán", "Albania", "Argelia", "Andorra", "Angola", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbayán", "Bahamas", "Barein", "Bangladesh", "Barbados", "Bielorusia", "Bélgica", "Belice", "Bermuda", "Bután", "Bolivia", "Bosnia Herzegovina", "Botswana", "Brasil", "Bulgaria", "Burkina Faso", "Burundi", "Camboya", "Camerún", "Canada", "Cabo Verde", "Islas Caimán", "Chad", "Chile", "China", "Isla de Navidad", "Colombia", "Comodos", "Congo", "Costa Rica", "Costa de Marfil", "Croacia", "Cuba", "Chipre", "República Checa", "Dinamarca", "Dominica", "República Dominicana", "Ecuador", "Egipto", "El Salvador", "Guinea Ecuatorial", "Eritrea", "Estonia", "Etiopía", "Islas Faro", "Fiji", "Finlandia", "Francia", "Gabón", "Gambia", "Georgia", "Alemania", "Ghana", "Grecia", "Groenlandia", "Granada", "Guadalupe", "Guam", "Guatemala", "Guinea", "Guinea-Bisau", "Guayana", "Haiti", "Honduras", "Hong Kong", "Hungria", "Islandia", "India", "Indonesia", "Iran", "Irak", "Irlanda", "Italia", "Jamaica", "Japón", "Jordania", "Kazajistan", "Kenia", "Kiribati", "Corea", "Kuwait", "Letonia", "Líbano", "Liberia", "Liechtenstein", "Lituania", "Luxemburgo", "Macao", "Macedonia", "Madagascar", "Malawi", "Malasia", "Maldivas", "Mali", "Malta", "Martinica", "Mauritania", "Méjico", "Micronesia", "Moldavia", "Mónaco", "Mongolia", "Montenegro", "Montserrat", "Marruecos", "Mozambique", "Namibia", "Nauru", "Nepal", "Holanda", "Nueva Zelanda", "Nicaragua", "Niger", "Nigeria", "Noruega", "Omán", "Pakistan", "Panamá", "Papúa Nueva Guinea", "Paraguay", "Perú", "Filipinas", "Poland", "Portugal", "Puerto Rico", "Rusia", "Ruanda", "Samoa", "San Marino", "Santo Tomé y Principe", "Arabia Saudí", "Senegal", "Serbia", "Seychelles", "Sierra Leona", "Singapur", "Eslovaquia", "Eslovenia", "Somalia", "España", "Sri Lanka", "Sudán", "Suriname", "Suecia", "Suiza", "Siria", "Taiwan", "Tajikistan", "Tanzania", "Tailandia", "Timor-Leste", "Togo", "Tonga", "Trinidad y Tobago", "Tunez", "Turquia", "Uganda", "Ucrania", "Emiratos Árabes Unidos", "Reino Unido", "Estados Unidos de América", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe" ], "building_number": [ " s/n.", ", #", ", ##", " #", " ##" ], "street_suffix": [ "Aldea", "Apartamento", "Arrabal", "Arroyo", "Avenida", "Bajada", "Barranco", "Barrio", "Bloque", "Calle", "Calleja", "Camino", "Carretera", "Caserio", "Colegio", "Colonia", "Conjunto", "Cuesta", "Chalet", "Edificio", "Entrada", "Escalinata", "Explanada", "Extramuros", "Extrarradio", "Ferrocarril", "Glorieta", "Gran Subida", "Grupo", "Huerta", "Jardines", "Lado", "Lugar", "Manzana", "Masía", "Mercado", "Monte", "Muelle", "Municipio", "Parcela", "Parque", "Partida", "Pasaje", "Paseo", "Plaza", "Poblado", "Polígono", "Prolongación", "Puente", "Puerta", "Quinta", "Ramal", "Rambla", "Rampa", "Riera", "Rincón", "Ronda", "Rua", "Salida", "Sector", "Sección", "Senda", "Solar", "Subida", "Terrenos", "Torrente", "Travesía", "Urbanización", "Vía", "Vía Pública" ], "secondary_address": [ "Esc. ###", "Puerta ###" ], "postcode": [ "#####" ], "province": [ "Álava", "Albacete", "Alicante", "Almería", "Asturias", "Ávila", "Badajoz", "Barcelona", "Burgos", "Cantabria", "Castellón", "Ciudad Real", "Cuenca", "Cáceres", "Cádiz", "Córdoba", "Gerona", "Granada", "Guadalajara", "Guipúzcoa", "Huelva", "Huesca", "Islas Baleares", "Jaén", "La Coruña", "La Rioja", "Las Palmas", "León", "Lugo", "lérida", "Madrid", "Murcia", "Málaga", "Navarra", "Orense", "Palencia", "Pontevedra", "Salamanca", "Santa Cruz de Tenerife", "Segovia", "Sevilla", "Soria", "Tarragona", "Teruel", "Toledo", "Valencia", "Valladolid", "Vizcaya", "Zamora", "Zaragoza" ], "state": [ "Andalucía", "Aragón", "Principado de Asturias", "Baleares", "Canarias", "Cantabria", "Castilla-La Mancha", "Castilla y León", "Cataluña", "Comunidad Valenciana", "Extremadura", "Galicia", "La Rioja", "Comunidad de Madrid", "Navarra", "País Vasco", "Región de Murcia" ], "state_abbr": [ "And", "Ara", "Ast", "Bal", "Can", "Cbr", "Man", "Leo", "Cat", "Com", "Ext", "Gal", "Rio", "Mad", "Nav", "Vas", "Mur" ], "time_zone": [ "Pacífico/Midway", "Pacífico/Pago_Pago", "Pacífico/Honolulu", "America/Juneau", "America/Los_Angeles", "America/Tijuana", "America/Denver", "America/Phoenix", "America/Chihuahua", "America/Mazatlan", "America/Chicago", "America/Regina", "America/Mexico_City", "America/Mexico_City", "America/Monterrey", "America/Guatemala", "America/New_York", "America/Indiana/Indianapolis", "America/Bogota", "America/Lima", "America/Lima", "America/Halifax", "America/Caracas", "America/La_Paz", "America/Santiago", "America/St_Johns", "America/Sao_Paulo", "America/Argentina/Buenos_Aires", "America/Guyana", "America/Godthab", "Atlantic/South_Georgia", "Atlantic/Azores", "Atlantic/Cape_Verde", "Europa/Dublin", "Europa/London", "Europa/Lisbon", "Europa/London", "Africa/Casablanca", "Africa/Monrovia", "Etc/UTC", "Europa/Belgrade", "Europa/Bratislava", "Europa/Budapest", "Europa/Ljubljana", "Europa/Prague", "Europa/Sarajevo", "Europa/Skopje", "Europa/Warsaw", "Europa/Zagreb", "Europa/Brussels", "Europa/Copenhagen", "Europa/Madrid", "Europa/Paris", "Europa/Amsterdam", "Europa/Berlin", "Europa/Berlin", "Europa/Rome", "Europa/Stockholm", "Europa/Vienna", "Africa/Algiers", "Europa/Bucharest", "Africa/Cairo", "Europa/Helsinki", "Europa/Kiev", "Europa/Riga", "Europa/Sofia", "Europa/Tallinn", "Europa/Vilnius", "Europa/Athens", "Europa/Istanbul", "Europa/Minsk", "Asia/Jerusalen", "Africa/Harare", "Africa/Johannesburg", "Europa/Moscú", "Europa/Moscú", "Europa/Moscú", "Asia/Kuwait", "Asia/Riyadh", "Africa/Nairobi", "Asia/Baghdad", "Asia/Tehran", "Asia/Muscat", "Asia/Muscat", "Asia/Baku", "Asia/Tbilisi", "Asia/Yerevan", "Asia/Kabul", "Asia/Yekaterinburg", "Asia/Karachi", "Asia/Karachi", "Asia/Tashkent", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kathmandu", "Asia/Dhaka", "Asia/Dhaka", "Asia/Colombo", "Asia/Almaty", "Asia/Novosibirsk", "Asia/Rangoon", "Asia/Bangkok", "Asia/Bangkok", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Shanghai", "Asia/Chongqing", "Asia/Hong_Kong", "Asia/Urumqi", "Asia/Kuala_Lumpur", "Asia/Singapore", "Asia/Taipei", "Australia/Perth", "Asia/Irkutsk", "Asia/Ulaanbaatar", "Asia/Seoul", "Asia/Tokyo", "Asia/Tokyo", "Asia/Tokyo", "Asia/Yakutsk", "Australia/Darwin", "Australia/Adelaide", "Australia/Melbourne", "Australia/Melbourne", "Australia/Sydney", "Australia/Brisbane", "Australia/Hobart", "Asia/Vladivostok", "Pacífico/Guam", "Pacífico/Port_Moresby", "Asia/Magadan", "Asia/Magadan", "Pacífico/Noumea", "Pacífico/Fiji", "Asia/Kamchatka", "Pacífico/Majuro", "Pacífico/Auckland", "Pacífico/Auckland", "Pacífico/Tongatapu", "Pacífico/Fakaofo", "Pacífico/Apia" ], "city": [ "#{city_prefix}" ], "street_name": [ "#{street_suffix} #{Name.first_name}", "#{street_suffix} #{Name.first_name} #{Name.last_name}" ], "street_address": [ "#{street_name}#{building_number}", "#{street_name}#{building_number} #{secondary_address}" ], "default_country": [ "España" ] }; es.company = { "suffix": [ "S.L.", "e Hijos", "S.A.", "Hermanos" ], "noun": [ "habilidad", "acceso", "adaptador", "algoritmo", "alianza", "analista", "aplicación", "enfoque", "arquitectura", "archivo", "inteligencia artificial", "array", "actitud", "medición", "gestión presupuestaria", "capacidad", "desafío", "circuito", "colaboración", "complejidad", "concepto", "conglomeración", "contingencia", "núcleo", "fidelidad", "base de datos", "data-warehouse", "definición", "emulación", "codificar", "encriptar", "extranet", "firmware", "flexibilidad", "focus group", "previsión", "base de trabajo", "función", "funcionalidad", "Interfaz Gráfica", "groupware", "Interfaz gráfico de usuario", "hardware", "Soporte", "jerarquía", "conjunto", "implementación", "infraestructura", "iniciativa", "instalación", "conjunto de instrucciones", "interfaz", "intranet", "base del conocimiento", "red de area local", "aprovechar", "matrices", "metodologías", "middleware", "migración", "modelo", "moderador", "monitorizar", "arquitectura abierta", "sistema abierto", "orquestar", "paradigma", "paralelismo", "política", "portal", "estructura de precios", "proceso de mejora", "producto", "productividad", "proyecto", "proyección", "protocolo", "línea segura", "software", "solución", "estandardización", "estrategia", "estructura", "éxito", "superestructura", "soporte", "sinergia", "mediante", "marco de tiempo", "caja de herramientas", "utilización", "website", "fuerza de trabajo" ], "descriptor": [ "24 horas", "24/7", "3rd generación", "4th generación", "5th generación", "6th generación", "analizada", "asimétrica", "asíncrona", "monitorizada por red", "bidireccional", "bifurcada", "generada por el cliente", "cliente servidor", "coherente", "cohesiva", "compuesto", "sensible al contexto", "basado en el contexto", "basado en contenido", "dedicada", "generado por la demanda", "didactica", "direccional", "discreta", "dinámica", "potenciada", "acompasada", "ejecutiva", "explícita", "tolerante a fallos", "innovadora", "amplio ábanico", "global", "heurística", "alto nivel", "holística", "homogénea", "hibrida", "incremental", "intangible", "interactiva", "intermedia", "local", "logística", "maximizada", "metódica", "misión crítica", "móbil", "modular", "motivadora", "multimedia", "multiestado", "multitarea", "nacional", "basado en necesidades", "neutral", "nueva generación", "no-volátil", "orientado a objetos", "óptima", "optimizada", "radical", "tiempo real", "recíproca", "regional", "escalable", "secundaria", "orientada a soluciones", "estable", "estatica", "sistemática", "sistémica", "tangible", "terciaria", "transicional", "uniforme", "valor añadido", "vía web", "defectos cero", "tolerancia cero" ], "adjective": [ "Adaptativo", "Avanzado", "Asimilado", "Automatizado", "Equilibrado", "Centrado en el negocio", "Centralizado", "Clonado", "Compatible", "Configurable", "Multi grupo", "Multi plataforma", "Centrado en el usuario", "Configurable", "Descentralizado", "Digitalizado", "Distribuido", "Diverso", "Reducido", "Mejorado", "Para toda la empresa", "Ergonomico", "Exclusivo", "Expandido", "Extendido", "Cara a cara", "Enfocado", "Totalmente configurable", "Fundamental", "Orígenes", "Horizontal", "Implementado", "Innovador", "Integrado", "Intuitivo", "Inverso", "Gestionado", "Obligatorio", "Monitorizado", "Multi canal", "Multi lateral", "Multi capa", "En red", "Orientado a objetos", "Open-source", "Operativo", "Optimizado", "Opcional", "Organico", "Organizado", "Perseverando", "Persistente", "en fases", "Polarizado", "Pre-emptivo", "Proactivo", "Enfocado a benficios", "Profundo", "Programable", "Progresivo", "Public-key", "Enfocado en la calidad", "Reactivo", "Realineado", "Re-contextualizado", "Re-implementado", "Reducido", "Ingenieria inversa", "Robusto", "Fácil", "Seguro", "Auto proporciona", "Compartible", "Intercambiable", "Sincronizado", "Orientado a equipos", "Total", "Universal", "Mejorado", "Actualizable", "Centrado en el usuario", "Amigable", "Versatil", "Virtual", "Visionario" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name} y #{Name.last_name}", "#{Name.last_name} #{Name.last_name} #{suffix}", "#{Name.last_name}, #{Name.last_name} y #{Name.last_name} Asociados" ] }; es.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "es", "info", "com.es", "org" ] }; es.name = { "first_name": [ "Adán", "Agustín", "Alberto", "Alejandro", "Alfonso", "Alfredo", "Andrés", "Antonio", "Armando", "Arturo", "Benito", "Benjamín", "Bernardo", "Carlos", "César", "Claudio", "Clemente", "Cristian", "Cristobal", "Daniel", "David", "Diego", "Eduardo", "Emilio", "Enrique", "Ernesto", "Esteban", "Federico", "Felipe", "Fernando", "Francisco", "Gabriel", "Gerardo", "Germán", "Gilberto", "Gonzalo", "Gregorio", "Guillermo", "Gustavo", "Hernán", "Homero", "Horacio", "Hugo", "Ignacio", "Jacobo", "Jaime", "Javier", "Jerónimo", "Jesús", "Joaquín", "Jorge", "Jorge Luis", "José", "José Eduardo", "José Emilio", "José Luis", "José María", "Juan", "Juan Carlos", "Julio", "Julio César", "Lorenzo", "Lucas", "Luis", "Luis Miguel", "Manuel", "Marco Antonio", "Marcos", "Mariano", "Mario", "Martín", "Mateo", "Miguel", "Miguel Ángel", "Nicolás", "Octavio", "Óscar", "Pablo", "Patricio", "Pedro", "Rafael", "Ramiro", "Ramón", "Raúl", "Ricardo", "Roberto", "Rodrigo", "Rubén", "Salvador", "Samuel", "Sancho", "Santiago", "Sergio", "Teodoro", "Timoteo", "Tomás", "Vicente", "Víctor", "Adela", "Adriana", "Alejandra", "Alicia", "Amalia", "Ana", "Ana Luisa", "Ana María", "Andrea", "Anita", "Ángela", "Antonia", "Ariadna", "Barbara", "Beatriz", "Berta", "Blanca", "Caridad", "Carla", "Carlota", "Carmen", "Carolina", "Catalina", "Cecilia", "Clara", "Claudia", "Concepción", "Conchita", "Cristina", "Daniela", "Débora", "Diana", "Dolores", "Lola", "Dorotea", "Elena", "Elisa", "Eloisa", "Elsa", "Elvira", "Emilia", "Esperanza", "Estela", "Ester", "Eva", "Florencia", "Francisca", "Gabriela", "Gloria", "Graciela", "Guadalupe", "Guillermina", "Inés", "Irene", "Isabel", "Isabela", "Josefina", "Juana", "Julia", "Laura", "Leonor", "Leticia", "Lilia", "Lorena", "Lourdes", "Lucia", "Luisa", "Luz", "Magdalena", "Manuela", "Marcela", "Margarita", "María", "María del Carmen", "María Cristina", "María Elena", "María Eugenia", "María José", "María Luisa", "María Soledad", "María Teresa", "Mariana", "Maricarmen", "Marilu", "Marisol", "Marta", "Mayte", "Mercedes", "Micaela", "Mónica", "Natalia", "Norma", "Olivia", "Patricia", "Pilar", "Ramona", "Raquel", "Rebeca", "Reina", "Rocio", "Rosa", "Rosalia", "Rosario", "Sara", "Silvia", "Sofia", "Soledad", "Sonia", "Susana", "Teresa", "Verónica", "Victoria", "Virginia", "Yolanda" ], "last_name": [ "Abeyta", "Abrego", "Abreu", "Acevedo", "Acosta", "Acuña", "Adame", "Adorno", "Agosto", "Aguayo", "Águilar", "Aguilera", "Aguirre", "Alanis", "Alaniz", "Alarcón", "Alba", "Alcala", "Alcántar", "Alcaraz", "Alejandro", "Alemán", "Alfaro", "Alicea", "Almanza", "Almaraz", "Almonte", "Alonso", "Alonzo", "Altamirano", "Alva", "Alvarado", "Alvarez", "Amador", "Amaya", "Anaya", "Anguiano", "Angulo", "Aparicio", "Apodaca", "Aponte", "Aragón", "Araña", "Aranda", "Arce", "Archuleta", "Arellano", "Arenas", "Arevalo", "Arguello", "Arias", "Armas", "Armendáriz", "Armenta", "Armijo", "Arredondo", "Arreola", "Arriaga", "Arroyo", "Arteaga", "Atencio", "Ávalos", "Ávila", "Avilés", "Ayala", "Baca", "Badillo", "Báez", "Baeza", "Bahena", "Balderas", "Ballesteros", "Banda", "Bañuelos", "Barajas", "Barela", "Barragán", "Barraza", "Barrera", "Barreto", "Barrientos", "Barrios", "Batista", "Becerra", "Beltrán", "Benavides", "Benavídez", "Benítez", "Bermúdez", "Bernal", "Berríos", "Bétancourt", "Blanco", "Bonilla", "Borrego", "Botello", "Bravo", "Briones", "Briseño", "Brito", "Bueno", "Burgos", "Bustamante", "Bustos", "Caballero", "Cabán", "Cabrera", "Cadena", "Caldera", "Calderón", "Calvillo", "Camacho", "Camarillo", "Campos", "Canales", "Candelaria", "Cano", "Cantú", "Caraballo", "Carbajal", "Cardenas", "Cardona", "Carmona", "Carranza", "Carrasco", "Carrasquillo", "Carreón", "Carrera", "Carrero", "Carrillo", "Carrion", "Carvajal", "Casanova", "Casares", "Casárez", "Casas", "Casillas", "Castañeda", "Castellanos", "Castillo", "Castro", "Cavazos", "Cazares", "Ceballos", "Cedillo", "Ceja", "Centeno", "Cepeda", "Cerda", "Cervantes", "Cervántez", "Chacón", "Chapa", "Chavarría", "Chávez", "Cintrón", "Cisneros", "Collado", "Collazo", "Colón", "Colunga", "Concepción", "Contreras", "Cordero", "Córdova", "Cornejo", "Corona", "Coronado", "Corral", "Corrales", "Correa", "Cortés", "Cortez", "Cotto", "Covarrubias", "Crespo", "Cruz", "Cuellar", "Curiel", "Dávila", "de Anda", "de Jesús", "Delacrúz", "Delafuente", "Delagarza", "Delao", "Delapaz", "Delarosa", "Delatorre", "Deleón", "Delgadillo", "Delgado", "Delrío", "Delvalle", "Díaz", "Domínguez", "Domínquez", "Duarte", "Dueñas", "Duran", "Echevarría", "Elizondo", "Enríquez", "Escalante", "Escamilla", "Escobar", "Escobedo", "Esparza", "Espinal", "Espino", "Espinosa", "Espinoza", "Esquibel", "Esquivel", "Estévez", "Estrada", "Fajardo", "Farías", "Feliciano", "Fernández", "Ferrer", "Fierro", "Figueroa", "Flores", "Flórez", "Fonseca", "Franco", "Frías", "Fuentes", "Gaitán", "Galarza", "Galindo", "Gallardo", "Gallegos", "Galván", "Gálvez", "Gamboa", "Gamez", "Gaona", "Garay", "García", "Garibay", "Garica", "Garrido", "Garza", "Gastélum", "Gaytán", "Gil", "Girón", "Godínez", "Godoy", "Gómez", "Gonzales", "González", "Gollum", "Gracia", "Granado", "Granados", "Griego", "Grijalva", "Guajardo", "Guardado", "Guerra", "Guerrero", "Guevara", "Guillen", "Gurule", "Gutiérrez", "Guzmán", "Haro", "Henríquez", "Heredia", "Hernádez", "Hernandes", "Hernández", "Herrera", "Hidalgo", "Hinojosa", "Holguín", "Huerta", "Hurtado", "Ibarra", "Iglesias", "Irizarry", "Jaime", "Jaimes", "Jáquez", "Jaramillo", "Jasso", "Jiménez", "Jimínez", "Juárez", "Jurado", "Laboy", "Lara", "Laureano", "Leal", "Lebrón", "Ledesma", "Leiva", "Lemus", "León", "Lerma", "Leyva", "Limón", "Linares", "Lira", "Llamas", "Loera", "Lomeli", "Longoria", "López", "Lovato", "Loya", "Lozada", "Lozano", "Lucero", "Lucio", "Luevano", "Lugo", "Luna", "Macías", "Madera", "Madrid", "Madrigal", "Maestas", "Magaña", "Malave", "Maldonado", "Manzanares", "Mares", "Marín", "Márquez", "Marrero", "Marroquín", "Martínez", "Mascareñas", "Mata", "Mateo", "Matías", "Matos", "Maya", "Mayorga", "Medina", "Medrano", "Mejía", "Meléndez", "Melgar", "Mena", "Menchaca", "Méndez", "Mendoza", "Menéndez", "Meraz", "Mercado", "Merino", "Mesa", "Meza", "Miramontes", "Miranda", "Mireles", "Mojica", "Molina", "Mondragón", "Monroy", "Montalvo", "Montañez", "Montaño", "Montemayor", "Montenegro", "Montero", "Montes", "Montez", "Montoya", "Mora", "Morales", "Moreno", "Mota", "Moya", "Munguía", "Muñiz", "Muñoz", "Murillo", "Muro", "Nájera", "Naranjo", "Narváez", "Nava", "Navarrete", "Navarro", "Nazario", "Negrete", "Negrón", "Nevárez", "Nieto", "Nieves", "Niño", "Noriega", "Núñez", "Ocampo", "Ocasio", "Ochoa", "Ojeda", "Olivares", "Olivárez", "Olivas", "Olivera", "Olivo", "Olmos", "Olvera", "Ontiveros", "Oquendo", "Ordóñez", "Orellana", "Ornelas", "Orosco", "Orozco", "Orta", "Ortega", "Ortiz", "Osorio", "Otero", "Ozuna", "Pabón", "Pacheco", "Padilla", "Padrón", "Páez", "Pagan", "Palacios", "Palomino", "Palomo", "Pantoja", "Paredes", "Parra", "Partida", "Patiño", "Paz", "Pedraza", "Pedroza", "Pelayo", "Peña", "Perales", "Peralta", "Perea", "Peres", "Pérez", "Pichardo", "Piña", "Pineda", "Pizarro", "Polanco", "Ponce", "Porras", "Portillo", "Posada", "Prado", "Preciado", "Prieto", "Puente", "Puga", "Pulido", "Quesada", "Quezada", "Quiñones", "Quiñónez", "Quintana", "Quintanilla", "Quintero", "Quiroz", "Rael", "Ramírez", "Ramón", "Ramos", "Rangel", "Rascón", "Raya", "Razo", "Regalado", "Rendón", "Rentería", "Reséndez", "Reyes", "Reyna", "Reynoso", "Rico", "Rincón", "Riojas", "Ríos", "Rivas", "Rivera", "Rivero", "Robledo", "Robles", "Rocha", "Rodarte", "Rodrígez", "Rodríguez", "Rodríquez", "Rojas", "Rojo", "Roldán", "Rolón", "Romero", "Romo", "Roque", "Rosado", "Rosales", "Rosario", "Rosas", "Roybal", "Rubio", "Ruelas", "Ruiz", "Saavedra", "Sáenz", "Saiz", "Salas", "Salazar", "Salcedo", "Salcido", "Saldaña", "Saldivar", "Salgado", "Salinas", "Samaniego", "Sanabria", "Sanches", "Sánchez", "Sandoval", "Santacruz", "Santana", "Santiago", "Santillán", "Sarabia", "Sauceda", "Saucedo", "Sedillo", "Segovia", "Segura", "Sepúlveda", "Serna", "Serrano", "Serrato", "Sevilla", "Sierra", "Sisneros", "Solano", "Solís", "Soliz", "Solorio", "Solorzano", "Soria", "Sosa", "Sotelo", "Soto", "Suárez", "Tafoya", "Tamayo", "Tamez", "Tapia", "Tejada", "Tejeda", "Téllez", "Tello", "Terán", "Terrazas", "Tijerina", "Tirado", "Toledo", "Toro", "Torres", "Tórrez", "Tovar", "Trejo", "Treviño", "Trujillo", "Ulibarri", "Ulloa", "Urbina", "Ureña", "Urías", "Uribe", "Urrutia", "Vaca", "Valadez", "Valdés", "Valdez", "Valdivia", "Valencia", "Valentín", "Valenzuela", "Valladares", "Valle", "Vallejo", "Valles", "Valverde", "Vanegas", "Varela", "Vargas", "Vásquez", "Vázquez", "Vega", "Vela", "Velasco", "Velásquez", "Velázquez", "Vélez", "Véliz", "Venegas", "Vera", "Verdugo", "Verduzco", "Vergara", "Viera", "Vigil", "Villa", "Villagómez", "Villalobos", "Villalpando", "Villanueva", "Villareal", "Villarreal", "Villaseñor", "Villegas", "Yáñez", "Ybarra", "Zambrano", "Zamora", "Zamudio", "Zapata", "Zaragoza", "Zarate", "Zavala", "Zayas", "Zelaya", "Zepeda", "Zúñiga" ], "prefix": [ "Sr.", "Sra.", "Sta." ], "suffix": [ "Jr.", "Sr.", "I", "II", "III", "IV", "V", "MD", "DDS", "PhD", "DVM" ], "title": { "descriptor": [ "Jefe", "Senior", "Directo", "Corporativo", "Dinánmico", "Futuro", "Producto", "Nacional", "Regional", "Distrito", "Central", "Global", "Cliente", "Inversor", "International", "Heredado", "Adelante", "Interno", "Humano", "Gerente", "Director" ], "level": [ "Soluciones", "Programa", "Marca", "Seguridada", "Investigación", "Marketing", "Normas", "Implementación", "Integración", "Funcionalidad", "Respuesta", "Paradigma", "Tácticas", "Identidad", "Mercados", "Grupo", "División", "Aplicaciones", "Optimización", "Operaciones", "Infraestructura", "Intranet", "Comunicaciones", "Web", "Calidad", "Seguro", "Mobilidad", "Cuentas", "Datos", "Creativo", "Configuración", "Contabilidad", "Interacciones", "Factores", "Usabilidad", "Métricas" ], "job": [ "Supervisor", "Asociado", "Ejecutivo", "Relacciones", "Oficial", "Gerente", "Ingeniero", "Especialista", "Director", "Coordinador", "Administrador", "Arquitecto", "Analista", "Diseñador", "Planificador", "Técnico", "Funcionario", "Desarrollador", "Productor", "Consultor", "Asistente", "Facilitador", "Agente", "Representante", "Estratega" ] }, "name": [ "#{prefix} #{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name} #{last_name}" ] }; es.phone_number = { "formats": [ "9##-###-###", "9##.###.###", "9## ### ###", "9########" ] }; es.cell_phone = { "formats": [ "6##-###-###", "6##.###.###", "6## ### ###", "6########" ] }; },{}],23:[function(require,module,exports){ var fa = {}; module["exports"] = fa; fa.title = "Farsi"; fa.name = { "first_name": [ "آبان دخت", "آبتین", "آتوسا", "آفر", "آفره دخت", "آذرنوش‌", "آذین", "آراه", "آرزو", "آرش", "آرتین", "آرتام", "آرتمن", "آرشام", "آرمان", "آرمین", "آرمیتا", "آریا فر", "آریا", "آریا مهر", "آرین", "آزاده", "آزرم", "آزرمدخت", "آزیتا", "آناهیتا", "آونگ", "آهو", "آیدا", "اتسز", "اختر", "ارد", "ارد شیر", "اردوان", "ارژن", "ارژنگ", "ارسلان", "ارغوان", "ارمغان", "ارنواز", "اروانه", "استر", "اسفندیار", "اشکان", "اشکبوس", "افسانه", "افسون", "افشین", "امید", "انوش (‌ آنوشا )", "انوشروان", "اورنگ", "اوژن", "اوستا", "اهورا", "ایاز", "ایران", "ایراندخت", "ایرج", "ایزدیار", "بابک", "باپوک", "باربد", "بارمان", "بامداد", "بامشاد", "بانو", "بختیار", "برانوش", "بردیا", "برزو", "برزویه", "برزین", "برمک", "بزرگمهر", "بنفشه", "بوژان", "بویان", "بهار", "بهارک", "بهاره", "بهتاش", "بهداد", "بهرام", "بهدیس", "بهرخ", "بهرنگ", "بهروز", "بهزاد", "بهشاد", "بهمن", "بهناز", "بهنام", "بهنود", "بهنوش", "بیتا", "بیژن", "پارسا", "پاکان", "پاکتن", "پاکدخت", "پانته آ", "پدرام", "پرتو", "پرشنگ", "پرتو", "پرستو", "پرویز", "پردیس", "پرهام", "پژمان", "پژوا", "پرنیا", "پشنگ", "پروانه", "پروین", "پری", "پریچهر", "پریدخت", "پریسا", "پرناز", "پریوش", "پریا", "پوپک", "پوران", "پوراندخت", "پوریا", "پولاد", "پویا", "پونه", "پیام", "پیروز", "پیمان", "تابان", "تاباندخت", "تاجی", "تارا", "تاویار", "ترانه", "تناز", "توران", "توراندخت", "تورج", "تورتک", "توفان", "توژال", "تیر داد", "تینا", "تینو", "جابان", "جامین", "جاوید", "جریره", "جمشید", "جوان", "جویا", "جهان", "جهانبخت", "جهانبخش", "جهاندار", "جهانگیر", "جهان بانو", "جهاندخت", "جهان ناز", "جیران", "چابک", "چالاک", "چاوش", "چترا", "چوبین", "چهرزاد", "خاوردخت", "خداداد", "خدایار", "خرم", "خرمدخت", "خسرو", "خشایار", "خورشید", "دادمهر", "دارا", "داراب", "داریا", "داریوش", "دانوش", "داور‌", "دایان", "دریا", "دل آرا", "دل آویز", "دلارام", "دل انگیز", "دلبر", "دلبند", "دلربا", "دلشاد", "دلکش", "دلناز", "دلنواز", "دورشاسب", "دنیا", "دیااکو", "دیانوش", "دیبا", "دیبا دخت", "رابو", "رابین", "رادبانو", "رادمان", "رازبان", "راژانه", "راسا", "رامتین", "رامش", "رامشگر", "رامونا", "رامیار", "رامیلا", "رامین", "راویار", "رژینا", "رخپاک", "رخسار", "رخشانه", "رخشنده", "رزمیار", "رستم", "رکسانا", "روبینا", "رودابه", "روزبه", "روشنک", "روناک", "رهام", "رهی", "ریبار", "راسپینا", "زادبخت", "زاد به", "زاد چهر", "زاد فر", "زال", "زادماسب", "زاوا", "زردشت", "زرنگار", "زری", "زرین", "زرینه", "زمانه", "زونا", "زیبا", "زیبار", "زیما", "زینو", "ژاله", "ژالان", "ژیار", "ژینا", "ژیوار", "سارا", "سارک", "سارنگ", "ساره", "ساسان", "ساغر", "سام", "سامان", "سانا", "ساناز", "سانیار", "ساویز", "ساهی", "ساینا", "سایه", "سپنتا", "سپند", "سپهر", "سپهرداد", "سپیدار", "سپید بانو", "سپیده", "ستاره", "ستی", "سرافراز", "سرور", "سروش", "سرور", "سوبا", "سوبار", "سنبله", "سودابه", "سوری", "سورن", "سورنا", "سوزان", "سوزه", "سوسن", "سومار", "سولان", "سولماز", "سوگند", "سهراب", "سهره", "سهند", "سیامک", "سیاوش", "سیبوبه ‌", "سیما", "سیمدخت", "سینا", "سیمین", "سیمین دخت", "شاپرک", "شادی", "شادمهر", "شاران", "شاهپور", "شاهدخت", "شاهرخ", "شاهین", "شاهیندخت", "شایسته", "شباهنگ", "شب بو", "شبدیز", "شبنم", "شراره", "شرمین", "شروین", "شکوفه", "شکفته", "شمشاد", "شمین", "شوان", "شمیلا", "شورانگیز", "شوری", "شهاب", "شهبار", "شهباز", "شهبال", "شهپر", "شهداد", "شهرآرا", "شهرام", "شهربانو", "شهرزاد", "شهرناز", "شهرنوش", "شهره", "شهریار", "شهرزاد", "شهلا", "شهنواز", "شهین", "شیبا", "شیدا", "شیده", "شیردل", "شیرزاد", "شیرنگ", "شیرو", "شیرین دخت", "شیما", "شینا", "شیرین", "شیوا", "طوس", "طوطی", "طهماسب", "طهمورث", "غوغا", "غنچه", "فتانه", "فدا", "فراز", "فرامرز", "فرانک", "فراهان", "فربد", "فربغ", "فرجاد", "فرخ", "فرخ پی", "فرخ داد", "فرخ رو", "فرخ زاد", "فرخ لقا", "فرخ مهر", "فرداد", "فردیس", "فرین", "فرزاد", "فرزام", "فرزان", "فرزانه", "فرزین", "فرشاد", "فرشته", "فرشید", "فرمان", "فرناز", "فرنگیس", "فرنود", "فرنوش", "فرنیا", "فروتن", "فرود", "فروز", "فروزان", "فروزش", "فروزنده", "فروغ", "فرهاد", "فرهنگ", "فرهود", "فربار", "فریبا", "فرید", "فریدخت", "فریدون", "فریمان", "فریناز", "فرینوش", "فریوش", "فیروز", "فیروزه", "قابوس", "قباد", "قدسی", "کابان", "کابوک", "کارا", "کارو", "کاراکو", "کامبخت", "کامبخش", "کامبیز", "کامجو", "کامدین", "کامران", "کامراوا", "کامک", "کامنوش", "کامیار", "کانیار", "کاووس", "کاوه", "کتایون", "کرشمه", "کسری", "کلاله", "کمبوجیه", "کوشا", "کهبد", "کهرام", "کهزاد", "کیارش", "کیان", "کیانا", "کیانچهر", "کیاندخت", "کیانوش", "کیاوش", "کیخسرو", "کیقباد", "کیکاووس", "کیوان", "کیوان دخت", "کیومرث", "کیهان", "کیاندخت", "کیهانه", "گرد آفرید", "گردان", "گرشا", "گرشاسب", "گرشین", "گرگین", "گزل", "گشتاسب", "گشسب", "گشسب بانو", "گل", "گل آذین", "گل آرا‌", "گلاره", "گل افروز", "گلاله", "گل اندام", "گلاویز", "گلباد", "گلبار", "گلبام", "گلبان", "گلبانو", "گلبرگ", "گلبو", "گلبهار", "گلبیز", "گلپاره", "گلپر", "گلپری", "گلپوش", "گل پونه", "گلچین", "گلدخت", "گلدیس", "گلربا", "گلرخ", "گلرنگ", "گلرو", "گلشن", "گلریز", "گلزاد", "گلزار", "گلسا", "گلشید", "گلنار", "گلناز", "گلنسا", "گلنواز", "گلنوش", "گلی", "گودرز", "گوماتو", "گهر چهر", "گوهر ناز", "گیتی", "گیسو", "گیلدا", "گیو", "لادن", "لاله", "لاله رخ", "لاله دخت", "لبخند", "لقاء", "لومانا", "لهراسب", "مارال", "ماری", "مازیار", "ماکان", "مامک", "مانا", "ماندانا", "مانوش", "مانی", "مانیا", "ماهان", "ماهاندخت", "ماه برزین", "ماه جهان", "ماهچهر", "ماهدخت", "ماهور", "ماهرخ", "ماهزاد", "مردآویز", "مرداس", "مرزبان", "مرمر", "مزدک", "مژده", "مژگان", "مستان", "مستانه", "مشکاندخت", "مشکناز", "مشکین دخت", "منیژه", "منوچهر", "مهبانو", "مهبد", "مه داد", "مهتاب", "مهدیس", "مه جبین", "مه دخت", "مهر آذر", "مهر آرا", "مهر آسا", "مهر آفاق", "مهر افرین", "مهرآب", "مهرداد", "مهر افزون", "مهرام", "مهران", "مهراندخت", "مهراندیش", "مهرانفر", "مهرانگیز", "مهرداد", "مهر دخت", "مهرزاده ‌", "مهرناز", "مهرنوش", "مهرنکار", "مهرنیا", "مهروز", "مهری", "مهریار", "مهسا", "مهستی", "مه سیما", "مهشاد", "مهشید", "مهنام", "مهناز", "مهنوش", "مهوش", "مهیار", "مهین", "مهین دخت", "میترا", "میخک", "مینا", "مینا دخت", "مینو", "مینودخت", "مینو فر", "نادر", "ناز آفرین", "نازبانو", "نازپرور", "نازچهر", "نازفر", "نازلی", "نازی", "نازیدخت", "نامور", "ناهید", "ندا", "نرسی", "نرگس", "نرمک", "نرمین", "نریمان", "نسترن", "نسرین", "نسرین دخت", "نسرین نوش", "نکیسا", "نگار", "نگاره", "نگارین", "نگین", "نوا", "نوش", "نوش آذر", "نوش آور", "نوشا", "نوش آفرین", "نوشدخت", "نوشروان", "نوشفر", "نوشناز", "نوشین", "نوید", "نوین", "نوین دخت", "نیش ا", "نیک بین", "نیک پی", "نیک چهر", "نیک خواه", "نیکداد", "نیکدخت", "نیکدل", "نیکزاد", "نیلوفر", "نیما", "وامق", "ورجاوند", "وریا", "وشمگیر", "وهرز", "وهسودان", "ویدا", "ویس", "ویشتاسب", "ویگن", "هژیر", "هخامنش", "هربد( هیربد )", "هرمز", "همایون", "هما", "همادخت", "همدم", "همراز", "همراه", "هنگامه", "هوتن", "هور", "هورتاش", "هورچهر", "هورداد", "هوردخت", "هورزاد", "هورمند", "هوروش", "هوشنگ", "هوشیار", "هومان", "هومن", "هونام", "هویدا", "هیتاسب", "هیرمند", "هیما", "هیوا", "یادگار", "یاسمن ( یاسمین )", "یاشار", "یاور", "یزدان", "یگانه", "یوشیتا" ], "last_name": [ "عارف", "عاشوری", "عالی", "عبادی", "عبدالکریمی", "عبدالملکی", "عراقی", "عزیزی", "عصار", "عقیلی", "علم", "علم‌الهدی", "علی عسگری", "علی‌آبادی", "علیا", "علی‌پور", "علی‌زمانی", "عنایت", "غضنفری", "غنی", "فارسی", "فاطمی", "فانی", "فتاحی", "فرامرزی", "فرج", "فرشیدورد", "فرمانفرمائیان", "فروتن", "فرهنگ", "فریاد", "فنایی", "فنی‌زاده", "فولادوند", "فهمیده", "قاضی", "قانعی", "قانونی", "قمیشی", "قنبری", "قهرمان", "قهرمانی", "قهرمانیان", "قهستانی", "کاشی", "کاکاوند", "کامکار", "کاملی", "کاویانی", "کدیور", "کردبچه", "کرمانی", "کریمی", "کلباسی", "کمالی", "کوشکی", "کهنمویی", "کیان", "کیانی (نام خانوادگی)", "کیمیایی", "گل محمدی", "گلپایگانی", "گنجی", "لاجوردی", "لاچینی", "لاهوتی", "لنکرانی", "لوکس", "مجاهد", "مجتبایی", "مجتبوی", "مجتهد شبستری", "مجتهدی", "مجرد", "محجوب", "محجوبی", "محدثی", "محمدرضایی", "محمدی", "مددی", "مرادخانی", "مرتضوی", "مستوفی", "مشا", "مصاحب", "مصباح", "مصباح‌زاده", "مطهری", "مظفر", "معارف", "معروف", "معین", "مفتاح", "مفتح", "مقدم", "ملایری", "ملک", "ملکیان", "منوچهری", "موحد", "موسوی", "موسویان", "مهاجرانی", "مهدی‌پور", "میرباقری", "میردامادی", "میرزاده", "میرسپاسی", "میزبانی", "ناظری", "نامور", "نجفی", "ندوشن", "نراقی", "نعمت‌زاده", "نقدی", "نقیب‌زاده", "نواب", "نوبخت", "نوبختی", "نهاوندی", "نیشابوری", "نیلوفری", "واثقی", "واعظ", "واعظ‌زاده", "واعظی", "وکیلی", "هاشمی", "هاشمی رفسنجانی", "هاشمیان", "هامون", "هدایت", "هراتی", "هروی", "همایون", "همت", "همدانی", "هوشیار", "هومن", "یاحقی", "یادگار", "یثربی", "یلدا" ], "prefix": [ "آقای", "خانم", "دکتر" ] }; },{}],24:[function(require,module,exports){ var fr = {}; module["exports"] = fr; fr.title = "French"; fr.address = { "building_number": [ "####", "###", "##", "#" ], "street_prefix": [ "Allée, Voie", "Rue", "Avenue", "Boulevard", "Quai", "Passage", "Impasse", "Place" ], "secondary_address": [ "Apt. ###", "# étage" ], "postcode": [ "#####" ], "state": [ "Alsace", "Aquitaine", "Auvergne", "Basse-Normandie", "Bourgogne", "Bretagne", "Centre", "Champagne-Ardenne", "Corse", "Franche-Comté", "Haute-Normandie", "Île-de-France", "Languedoc-Roussillon", "Limousin", "Lorraine", "Midi-Pyrénées", "Nord-Pas-de-Calais", "Pays de la Loire", "Picardie", "Poitou-Charentes", "Provence-Alpes-Côte d'Azur", "Rhône-Alpes" ], "city_name": [ "Paris", "Marseille", "Lyon", "Toulouse", "Nice", "Nantes", "Strasbourg", "Montpellier", "Bordeaux", "Lille13", "Rennes", "Reims", "Le Havre", "Saint-Étienne", "Toulon", "Grenoble", "Dijon", "Angers", "Saint-Denis", "Villeurbanne", "Le Mans", "Aix-en-Provence", "Brest", "Nîmes", "Limoges", "Clermont-Ferrand", "Tours", "Amiens", "Metz", "Perpignan", "Besançon", "Orléans", "Boulogne-Billancourt", "Mulhouse", "Rouen", "Caen", "Nancy", "Saint-Denis", "Saint-Paul", "Montreuil", "Argenteuil", "Roubaix", "Dunkerque14", "Tourcoing", "Nanterre", "Avignon", "Créteil", "Poitiers", "Fort-de-France", "Courbevoie", "Versailles", "Vitry-sur-Seine", "Colombes", "Pau", "Aulnay-sous-Bois", "Asnières-sur-Seine", "Rueil-Malmaison", "Saint-Pierre", "Antibes", "Saint-Maur-des-Fossés", "Champigny-sur-Marne", "La Rochelle", "Aubervilliers", "Calais", "Cannes", "Le Tampon", "Béziers", "Colmar", "Bourges", "Drancy", "Mérignac", "Saint-Nazaire", "Valence", "Ajaccio", "Issy-les-Moulineaux", "Villeneuve-d'Ascq", "Levallois-Perret", "Noisy-le-Grand", "Quimper", "La Seyne-sur-Mer", "Antony", "Troyes", "Neuilly-sur-Seine", "Sarcelles", "Les Abymes", "Vénissieux", "Clichy", "Lorient", "Pessac", "Ivry-sur-Seine", "Cergy", "Cayenne", "Niort", "Chambéry", "Montauban", "Saint-Quentin", "Villejuif", "Hyères", "Beauvais", "Cholet" ], "city": [ "#{city_name}" ], "street_suffix": [ "de l'Abbaye", "Adolphe Mille", "d'Alésia", "d'Argenteuil", "d'Assas", "du Bac", "de Paris", "La Boétie", "Bonaparte", "de la Bûcherie", "de Caumartin", "Charlemagne", "du Chat-qui-Pêche", "de la Chaussée-d'Antin", "du Dahomey", "Dauphine", "Delesseux", "du Faubourg Saint-Honoré", "du Faubourg-Saint-Denis", "de la Ferronnerie", "des Francs-Bourgeois", "des Grands Augustins", "de la Harpe", "du Havre", "de la Huchette", "Joubert", "Laffitte", "Lepic", "des Lombards", "Marcadet", "Molière", "Monsieur-le-Prince", "de Montmorency", "Montorgueil", "Mouffetard", "de Nesle", "Oberkampf", "de l'Odéon", "d'Orsel", "de la Paix", "des Panoramas", "Pastourelle", "Pierre Charron", "de la Pompe", "de Presbourg", "de Provence", "de Richelieu", "de Rivoli", "des Rosiers", "Royale", "d'Abbeville", "Saint-Honoré", "Saint-Bernard", "Saint-Denis", "Saint-Dominique", "Saint-Jacques", "Saint-Séverin", "des Saussaies", "de Seine", "de Solférino", "Du Sommerard", "de Tilsitt", "Vaneau", "de Vaugirard", "de la Victoire", "Zadkine" ], "street_name": [ "#{street_prefix} #{street_suffix}" ], "street_address": [ "#{building_number} #{street_name}" ], "default_country": [ "France" ] }; fr.company = { "suffix": [ "SARL", "SA", "EURL", "SAS", "SEM", "SCOP", "GIE", "EI" ], "adjective": [ "Adaptive", "Advanced", "Ameliorated", "Assimilated", "Automated", "Balanced", "Business-focused", "Centralized", "Cloned", "Compatible", "Configurable", "Cross-group", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "De-engineered", "Devolved", "Digitized", "Distributed", "Diverse", "Down-sized", "Enhanced", "Enterprise-wide", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Function-based", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Implemented", "Innovative", "Integrated", "Intuitive", "Inverse", "Managed", "Mandatory", "Monitored", "Multi-channelled", "Multi-lateral", "Multi-layered", "Multi-tiered", "Networked", "Object-based", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Pre-emptive", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Re-contextualized", "Re-engineered", "Reduced", "Reverse-engineered", "Right-sized", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Stand-alone", "Streamlined", "Switchable", "Synchronised", "Synergistic", "Synergized", "Team-oriented", "Total", "Triple-buffered", "Universal", "Up-sized", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary", "Vision-oriented" ], "descriptor": [ "24 hour", "24/7", "3rd generation", "4th generation", "5th generation", "6th generation", "actuating", "analyzing", "asymmetric", "asynchronous", "attitude-oriented", "background", "bandwidth-monitored", "bi-directional", "bifurcated", "bottom-line", "clear-thinking", "client-driven", "client-server", "coherent", "cohesive", "composite", "context-sensitive", "contextually-based", "content-based", "dedicated", "demand-driven", "didactic", "directional", "discrete", "disintermediate", "dynamic", "eco-centric", "empowering", "encompassing", "even-keeled", "executive", "explicit", "exuding", "fault-tolerant", "foreground", "fresh-thinking", "full-range", "global", "grid-enabled", "heuristic", "high-level", "holistic", "homogeneous", "human-resource", "hybrid", "impactful", "incremental", "intangible", "interactive", "intermediate", "leading edge", "local", "logistical", "maximized", "methodical", "mission-critical", "mobile", "modular", "motivating", "multimedia", "multi-state", "multi-tasking", "national", "needs-based", "neutral", "next generation", "non-volatile", "object-oriented", "optimal", "optimizing", "radical", "real-time", "reciprocal", "regional", "responsive", "scalable", "secondary", "solution-oriented", "stable", "static", "systematic", "systemic", "system-worthy", "tangible", "tertiary", "transitional", "uniform", "upward-trending", "user-facing", "value-added", "web-enabled", "well-modulated", "zero administration", "zero defect", "zero tolerance" ], "noun": [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "artificial intelligence", "array", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "database", "data-warehouse", "definition", "emulation", "encoding", "encryption", "extranet", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "Graphic Interface", "groupware", "Graphical User Interface", "hardware", "help-desk", "hierarchy", "hub", "implementation", "info-mediaries", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge user", "knowledge base", "local area network", "leverage", "matrices", "matrix", "methodology", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "open system", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "secured line", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "superstructure", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce" ], "bs_verb": [ "implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace", "enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize", "morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate", "synergize", "strategize", "deploy", "brand", "grow", "target", "syndicate", "synthesize", "deliver", "mesh", "incubate", "engage", "maximize", "benchmark", "expedite", "reintermediate", "whiteboard", "visualize", "repurpose", "innovate", "scale", "unleash", "drive", "extend", "engineer", "revolutionize", "generate", "exploit", "transition", "e-enable", "iterate", "cultivate", "matrix", "productize", "redefine", "recontextualize" ], "bs_adjective": [ "clicks-and-mortar", "value-added", "vertical", "proactive", "robust", "revolutionary", "scalable", "leading-edge", "innovative", "intuitive", "strategic", "e-business", "mission-critical", "sticky", "one-to-one", "24/7", "end-to-end", "global", "B2B", "B2C", "granular", "frictionless", "virtual", "viral", "dynamic", "24/365", "best-of-breed", "killer", "magnetic", "bleeding-edge", "web-enabled", "interactive", "dot-com", "sexy", "back-end", "real-time", "efficient", "front-end", "distributed", "seamless", "extensible", "turn-key", "world-class", "open-source", "cross-platform", "cross-media", "synergistic", "bricks-and-clicks", "out-of-the-box", "enterprise", "integrated", "impactful", "wireless", "transparent", "next-generation", "cutting-edge", "user-centric", "visionary", "customized", "ubiquitous", "plug-and-play", "collaborative", "compelling", "holistic", "rich" ], "bs_noun": [ "synergies", "web-readiness", "paradigms", "markets", "partnerships", "infrastructures", "platforms", "initiatives", "channels", "eyeballs", "communities", "ROI", "solutions", "e-tailers", "e-services", "action-items", "portals", "niches", "technologies", "content", "vortals", "supply-chains", "convergence", "relationships", "architectures", "interfaces", "e-markets", "e-commerce", "systems", "bandwidth", "infomediaries", "models", "mindshare", "deliverables", "users", "schemas", "networks", "applications", "metrics", "e-business", "functionalities", "experiences", "web services", "methodologies" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name} et #{Name.last_name}" ] }; fr.internet = { "free_email": [ "gmail.com", "yahoo.fr", "hotmail.fr" ], "domain_suffix": [ "com", "fr", "eu", "info", "name", "net", "org" ] }; fr.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ], "supplemental": [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ] }; fr.name = { "first_name": [ "Enzo", "Lucas", "Mathis", "Nathan", "Thomas", "Hugo", "Théo", "Tom", "Louis", "Raphaël", "Clément", "Léo", "Mathéo", "Maxime", "Alexandre", "Antoine", "Yanis", "Paul", "Baptiste", "Alexis", "Gabriel", "Arthur", "Jules", "Ethan", "Noah", "Quentin", "Axel", "Evan", "Mattéo", "Romain", "Valentin", "Maxence", "Noa", "Adam", "Nicolas", "Julien", "Mael", "Pierre", "Rayan", "Victor", "Mohamed", "Adrien", "Kylian", "Sacha", "Benjamin", "Léa", "Clara", "Manon", "Chloé", "Camille", "Ines", "Sarah", "Jade", "Lola", "Anaïs", "Lucie", "Océane", "Lilou", "Marie", "Eva", "Romane", "Lisa", "Zoe", "Julie", "Mathilde", "Louise", "Juliette", "Clémence", "Célia", "Laura", "Lena", "Maëlys", "Charlotte", "Ambre", "Maeva", "Pauline", "Lina", "Jeanne", "Lou", "Noémie", "Justine", "Louna", "Elisa", "Alice", "Emilie", "Carla", "Maëlle", "Alicia", "Mélissa" ], "last_name": [ "Martin", "Bernard", "Dubois", "Thomas", "Robert", "Richard", "Petit", "Durand", "Leroy", "Moreau", "Simon", "Laurent", "Lefebvre", "Michel", "Garcia", "David", "Bertrand", "Roux", "Vincent", "Fournier", "Morel", "Girard", "Andre", "Lefevre", "Mercier", "Dupont", "Lambert", "Bonnet", "Francois", "Martinez", "Legrand", "Garnier", "Faure", "Rousseau", "Blanc", "Guerin", "Muller", "Henry", "Roussel", "Nicolas", "Perrin", "Morin", "Mathieu", "Clement", "Gauthier", "Dumont", "Lopez", "Fontaine", "Chevalier", "Robin", "Masson", "Sanchez", "Gerard", "Nguyen", "Boyer", "Denis", "Lemaire", "Duval", "Joly", "Gautier", "Roger", "Roche", "Roy", "Noel", "Meyer", "Lucas", "Meunier", "Jean", "Perez", "Marchand", "Dufour", "Blanchard", "Marie", "Barbier", "Brun", "Dumas", "Brunet", "Schmitt", "Leroux", "Colin", "Fernandez", "Pierre", "Renard", "Arnaud", "Rolland", "Caron", "Aubert", "Giraud", "Leclerc", "Vidal", "Bourgeois", "Renaud", "Lemoine", "Picard", "Gaillard", "Philippe", "Leclercq", "Lacroix", "Fabre", "Dupuis", "Olivier", "Rodriguez", "Da silva", "Hubert", "Louis", "Charles", "Guillot", "Riviere", "Le gall", "Guillaume", "Adam", "Rey", "Moulin", "Gonzalez", "Berger", "Lecomte", "Menard", "Fleury", "Deschamps", "Carpentier", "Julien", "Benoit", "Paris", "Maillard", "Marchal", "Aubry", "Vasseur", "Le roux", "Renault", "Jacquet", "Collet", "Prevost", "Poirier", "Charpentier", "Royer", "Huet", "Baron", "Dupuy", "Pons", "Paul", "Laine", "Carre", "Breton", "Remy", "Schneider", "Perrot", "Guyot", "Barre", "Marty", "Cousin" ], "prefix": [ "M", "Mme", "Mlle", "Dr", "Prof" ], "title": { "job": [ "Superviseur", "Executif", "Manager", "Ingenieur", "Specialiste", "Directeur", "Coordinateur", "Administrateur", "Architecte", "Analyste", "Designer", "Technicien", "Developpeur", "Producteur", "Consultant", "Assistant", "Agent", "Stagiaire" ] }, "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name}", "#{last_name} #{first_name}" ] }; fr.phone_number = { "formats": [ "01########", "02########", "03########", "04########", "05########", "06########", "07########", "+33 1########", "+33 2########", "+33 3########", "+33 4########", "+33 5########", "+33 6########", "+33 7########" ] }; },{}],25:[function(require,module,exports){ var it = {}; module["exports"] = it; it.title = "Italian"; it.address = { "city_prefix": [ "San", "Borgo", "Sesto", "Quarto", "Settimo" ], "city_suffix": [ "a mare", "lido", "ligure", "del friuli", "salentino", "calabro", "veneto", "nell'emilia", "umbro", "laziale", "terme", "sardo" ], "country": [ "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antartide (territori a sud del 60° parallelo)", "Antigua e Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Bielorussia", "Belgio", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia e Herzegovina", "Botswana", "Bouvet Island (Bouvetoya)", "Brasile", "Territorio dell'arcipelago indiano", "Isole Vergini Britanniche", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambogia", "Cameroon", "Canada", "Capo Verde", "Isole Cayman", "Repubblica Centrale Africana", "Chad", "Cile", "Cina", "Isola di Pasqua", "Isola di Cocos (Keeling)", "Colombia", "Comoros", "Congo", "Isole Cook", "Costa Rica", "Costa d'Avorio", "Croazia", "Cuba", "Cipro", "Repubblica Ceca", "Danimarca", "Gibuti", "Repubblica Dominicana", "Equador", "Egitto", "El Salvador", "Guinea Equatoriale", "Eritrea", "Estonia", "Etiopia", "Isole Faroe", "Isole Falkland (Malvinas)", "Fiji", "Finlandia", "Francia", "Guyana Francese", "Polinesia Francese", "Territori Francesi del sud", "Gabon", "Gambia", "Georgia", "Germania", "Ghana", "Gibilterra", "Grecia", "Groenlandia", "Grenada", "Guadalupa", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Città del Vaticano", "Honduras", "Hong Kong", "Ungheria", "Islanda", "India", "Indonesia", "Iran", "Iraq", "Irlanda", "Isola di Man", "Israele", "Italia", "Giamaica", "Giappone", "Jersey", "Giordania", "Kazakhstan", "Kenya", "Kiribati", "Korea", "Kuwait", "Republicca Kirgiza", "Repubblica del Laos", "Latvia", "Libano", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lituania", "Lussemburgo", "Macao", "Macedonia", "Madagascar", "Malawi", "Malesia", "Maldive", "Mali", "Malta", "Isole Marshall", "Martinica", "Mauritania", "Mauritius", "Mayotte", "Messico", "Micronesia", "Moldova", "Principato di Monaco", "Mongolia", "Montenegro", "Montserrat", "Marocco", "Mozambico", "Myanmar", "Namibia", "Nauru", "Nepal", "Antille Olandesi", "Olanda", "Nuova Caledonia", "Nuova Zelanda", "Nicaragua", "Niger", "Nigeria", "Niue", "Isole Norfolk", "Northern Mariana Islands", "Norvegia", "Oman", "Pakistan", "Palau", "Palestina", "Panama", "Papua Nuova Guinea", "Paraguay", "Peru", "Filippine", "Pitcairn Islands", "Polonia", "Portogallo", "Porto Rico", "Qatar", "Reunion", "Romania", "Russia", "Rwanda", "San Bartolomeo", "Sant'Elena", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Arabia Saudita", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovenia", "Isole Solomon", "Somalia", "Sud Africa", "Georgia del sud e South Sandwich Islands", "Spagna", "Sri Lanka", "Sudan", "Suriname", "Svalbard & Jan Mayen Islands", "Swaziland", "Svezia", "Svizzera", "Siria", "Taiwan", "Tajikistan", "Tanzania", "Tailandia", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad e Tobago", "Tunisia", "Turchia", "Turkmenistan", "Isole di Turks and Caicos", "Tuvalu", "Uganda", "Ucraina", "Emirati Arabi Uniti", "Regno Unito", "Stati Uniti d'America", "United States Minor Outlying Islands", "Isole Vergini Statunitensi", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe" ], "building_number": [ "###", "##", "#" ], "street_suffix": [ "Piazza", "Strada", "Via", "Borgo", "Contrada", "Rotonda", "Incrocio" ], "secondary_address": [ "Appartamento ##", "Piano #" ], "postcode": [ "#####" ], "state": [ "Agrigento", "Alessandria", "Ancona", "Aosta", "Arezzo", "Ascoli Piceno", "Asti", "Avellino", "Bari", "Barletta-Andria-Trani", "Belluno", "Benevento", "Bergamo", "Biella", "Bologna", "Bolzano", "Brescia", "Brindisi", "Cagliari", "Caltanissetta", "Campobasso", "Carbonia-Iglesias", "Caserta", "Catania", "Catanzaro", "Chieti", "Como", "Cosenza", "Cremona", "Crotone", "Cuneo", "Enna", "Fermo", "Ferrara", "Firenze", "Foggia", "Forlì-Cesena", "Frosinone", "Genova", "Gorizia", "Grosseto", "Imperia", "Isernia", "La Spezia", "L'Aquila", "Latina", "Lecce", "Lecco", "Livorno", "Lodi", "Lucca", "Macerata", "Mantova", "Massa-Carrara", "Matera", "Messina", "Milano", "Modena", "Monza e della Brianza", "Napoli", "Novara", "Nuoro", "Olbia-Tempio", "Oristano", "Padova", "Palermo", "Parma", "Pavia", "Perugia", "Pesaro e Urbino", "Pescara", "Piacenza", "Pisa", "Pistoia", "Pordenone", "Potenza", "Prato", "Ragusa", "Ravenna", "Reggio Calabria", "Reggio Emilia", "Rieti", "Rimini", "Roma", "Rovigo", "Salerno", "Medio Campidano", "Sassari", "Savona", "Siena", "Siracusa", "Sondrio", "Taranto", "Teramo", "Terni", "Torino", "Ogliastra", "Trapani", "Trento", "Treviso", "Trieste", "Udine", "Varese", "Venezia", "Verbano-Cusio-Ossola", "Vercelli", "Verona", "Vibo Valentia", "Vicenza", "Viterbo" ], "state_abbr": [ "AG", "AL", "AN", "AO", "AR", "AP", "AT", "AV", "BA", "BT", "BL", "BN", "BG", "BI", "BO", "BZ", "BS", "BR", "CA", "CL", "CB", "CI", "CE", "CT", "CZ", "CH", "CO", "CS", "CR", "KR", "CN", "EN", "FM", "FE", "FI", "FG", "FC", "FR", "GE", "GO", "GR", "IM", "IS", "SP", "AQ", "LT", "LE", "LC", "LI", "LO", "LU", "MC", "MN", "MS", "MT", "ME", "MI", "MO", "MB", "NA", "NO", "NU", "OT", "OR", "PD", "PA", "PR", "PV", "PG", "PU", "PE", "PC", "PI", "PT", "PN", "PZ", "PO", "RG", "RA", "RC", "RE", "RI", "RN", "RM", "RO", "SA", "VS", "SS", "SV", "SI", "SR", "SO", "TA", "TE", "TR", "TO", "OG", "TP", "TN", "TV", "TS", "UD", "VA", "VE", "VB", "VC", "VR", "VV", "VI", "VT" ], "city": [ "#{city_prefix} #{Name.first_name} #{city_suffix}", "#{city_prefix} #{Name.first_name}", "#{Name.first_name} #{city_suffix}", "#{Name.last_name} #{city_suffix}" ], "street_name": [ "#{street_suffix} #{Name.first_name}", "#{street_suffix} #{Name.last_name}" ], "street_address": [ "#{street_name} #{building_number}", "#{street_name} #{building_number}, #{secondary_address}" ], "default_country": [ "Italia" ] }; it.company = { "suffix": [ "SPA", "e figli", "Group", "s.r.l." ], "noun": [ "Abilità", "Access", "Adattatore", "Algoritmo", "Alleanza", "Analizzatore", "Applicazione", "Approccio", "Architettura", "Archivio", "Intelligenza artificiale", "Array", "Attitudine", "Benchmark", "Capacità", "Sfida", "Circuito", "Collaborazione", "Complessità", "Concetto", "Conglomerato", "Contingenza", "Core", "Database", "Data-warehouse", "Definizione", "Emulazione", "Codifica", "Criptazione", "Firmware", "Flessibilità", "Previsione", "Frame", "framework", "Funzione", "Funzionalità", "Interfaccia grafica", "Hardware", "Help-desk", "Gerarchia", "Hub", "Implementazione", "Infrastruttura", "Iniziativa", "Installazione", "Set di istruzioni", "Interfaccia", "Soluzione internet", "Intranet", "Conoscenza base", "Matrici", "Matrice", "Metodologia", "Middleware", "Migrazione", "Modello", "Moderazione", "Monitoraggio", "Moratoria", "Rete", "Architettura aperta", "Sistema aperto", "Orchestrazione", "Paradigma", "Parallelismo", "Policy", "Portale", "Struttura di prezzo", "Prodotto", "Produttività", "Progetto", "Proiezione", "Protocollo", "Servizio clienti", "Software", "Soluzione", "Standardizzazione", "Strategia", "Struttura", "Successo", "Sovrastruttura", "Supporto", "Sinergia", "Task-force", "Finestra temporale", "Strumenti", "Utilizzazione", "Sito web", "Forza lavoro" ], "descriptor":[ "adattiva", "avanzata", "migliorata", "assimilata", "automatizzata", "bilanciata", "centralizzata", "compatibile", "configurabile", "cross-platform", "decentralizzata", "digitalizzata", "distribuita", "piccola", "ergonomica", "esclusiva", "espansa", "estesa", "configurabile", "fondamentale", "orizzontale", "implementata", "innovativa", "integrata", "intuitiva", "inversa", "gestita", "obbligatoria", "monitorata", "multi-canale", "multi-laterale", "open-source", "operativa", "ottimizzata", "organica", "persistente", "polarizzata", "proattiva", "programmabile", "progressiva", "reattiva", "riallineata", "ricontestualizzata", "ridotta", "robusta", "sicura", "condivisibile", "stand-alone", "switchabile", "sincronizzata", "sinergica", "totale", "universale", "user-friendly", "versatile", "virtuale", "visionaria" ], "adjective": [ "24 ore", "24/7", "terza generazione", "quarta generazione", "quinta generazione", "sesta generazione", "asimmetrica", "asincrona", "background", "bi-direzionale", "biforcata", "bottom-line", "coerente", "coesiva", "composita", "sensibile al contesto", "basta sul contesto", "basata sul contenuto", "dedicata", "didattica", "direzionale", "discreta", "dinamica", "eco-centrica", "esecutiva", "esplicita", "full-range", "globale", "euristica", "alto livello", "olistica", "omogenea", "ibrida", "impattante", "incrementale", "intangibile", "interattiva", "intermediaria", "locale", "logistica", "massimizzata", "metodica", "mission-critical", "mobile", "modulare", "motivazionale", "multimedia", "multi-tasking", "nazionale", "neutrale", "nextgeneration", "non-volatile", "object-oriented", "ottima", "ottimizzante", "radicale", "real-time", "reciproca", "regionale", "responsiva", "scalabile", "secondaria", "stabile", "statica", "sistematica", "sistemica", "tangibile", "terziaria", "uniforme", "valore aggiunto" ], "bs_noun": [ "partnerships", "comunità", "ROI", "soluzioni", "e-services", "nicchie", "tecnologie", "contenuti", "supply-chains", "convergenze", "relazioni", "architetture", "interfacce", "mercati", "e-commerce", "sistemi", "modelli", "schemi", "reti", "applicazioni", "metriche", "e-business", "funzionalità", "esperienze", "webservices", "metodologie" ], "bs_verb": [ "implementate", "utilizzo", "integrate", "ottimali", "evolutive", "abilitate", "reinventate", "aggregate", "migliorate", "incentivate", "monetizzate", "sinergizzate", "strategiche", "deploy", "marchi", "accrescitive", "target", "sintetizzate", "spedizioni", "massimizzate", "innovazione", "guida", "estensioni", "generate", "exploit", "transizionali", "matrici", "ricontestualizzate" ], "bs_adjective": [ "valore aggiunto", "verticalizzate", "proattive", "forti", "rivoluzionari", "scalabili", "innovativi", "intuitivi", "strategici", "e-business", "mission-critical", "24/7", "globali", "B2B", "B2C", "granulari", "virtuali", "virali", "dinamiche", "magnetiche", "web", "interattive", "sexy", "back-end", "real-time", "efficienti", "front-end", "distributivi", "estensibili", "mondiali", "open-source", "cross-platform", "sinergiche", "out-of-the-box", "enterprise", "integrate", "di impatto", "wireless", "trasparenti", "next-generation", "cutting-edge", "visionari", "plug-and-play", "collaborative", "olistiche", "ricche" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name} #{suffix}", "#{Name.last_name}, #{Name.last_name} e #{Name.last_name} #{suffix}" ] }; it.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com", "email.it", "libero.it", "yahoo.it" ], "domain_suffix": [ "com", "com", "com", "net", "org", "it", "it", "it" ] }; it.name = { "first_name": [ "Aaron", "Akira", "Alberto", "Alessandro", "Alighieri", "Amedeo", "Amos", "Anselmo", "Antonino", "Arcibaldo", "Armando", "Artes", "Audenico", "Ausonio", "Bacchisio", "Battista", "Bernardo", "Boris", "Caio", "Carlo", "Cecco", "Cirino", "Cleros", "Costantino", "Damiano", "Danny", "Davide", "Demian", "Dimitri", "Domingo", "Dylan", "Edilio", "Egidio", "Elio", "Emanuel", "Enrico", "Ercole", "Ermes", "Ethan", "Eusebio", "Evangelista", "Fabiano", "Ferdinando", "Fiorentino", "Flavio", "Fulvio", "Gabriele", "Gastone", "Germano", "Giacinto", "Gianantonio", "Gianleonardo", "Gianmarco", "Gianriccardo", "Gioacchino", "Giordano", "Giuliano", "Graziano", "Guido", "Harry", "Iacopo", "Ilario", "Ione", "Italo", "Jack", "Jari", "Joey", "Joseph", "Kai", "Kociss", "Laerte", "Lauro", "Leonardo", "Liborio", "Lorenzo", "Ludovico", "Maggiore", "Manuele", "Mariano", "Marvin", "Matteo", "Mauro", "Michael", "Mirco", "Modesto", "Muzio", "Nabil", "Nathan", "Nick", "Noah", "Odino", "Olo", "Oreste", "Osea", "Pablo", "Patrizio", "Piererminio", "Pierfrancesco", "Piersilvio", "Priamo", "Quarto", "Quirino", "Radames", "Raniero", "Renato", "Rocco", "Romeo", "Rosalino", "Rudy", "Sabatino", "Samuel", "Santo", "Sebastian", "Serse", "Silvano", "Sirio", "Tancredi", "Terzo", "Timoteo", "Tolomeo", "Trevis", "Ubaldo", "Ulrico", "Valdo", "Neri", "Vinicio", "Walter", "Xavier", "Yago", "Zaccaria", "Abramo", "Adriano", "Alan", "Albino", "Alessio", "Alighiero", "Amerigo", "Anastasio", "Antimo", "Antonio", "Arduino", "Aroldo", "Arturo", "Augusto", "Avide", "Baldassarre", "Bettino", "Bortolo", "Caligola", "Carmelo", "Celeste", "Ciro", "Costanzo", "Dante", "Danthon", "Davis", "Demis", "Dindo", "Domiziano", "Edipo", "Egisto", "Eliziario", "Emidio", "Enzo", "Eriberto", "Erminio", "Ettore", "Eustachio", "Fabio", "Fernando", "Fiorenzo", "Folco", "Furio", "Gaetano", "Gavino", "Gerlando", "Giacobbe", "Giancarlo", "Gianmaria", "Giobbe", "Giorgio", "Giulio", "Gregorio", "Hector", "Ian", "Ippolito", "Ivano", "Jacopo", "Jarno", "Joannes", "Joshua", "Karim", "Kris", "Lamberto", "Lazzaro", "Leone", "Lino", "Loris", "Luigi", "Manfredi", "Marco", "Marino", "Marzio", "Mattia", "Max", "Michele", "Mirko", "Moreno", "Nadir", "Nazzareno", "Nestore", "Nico", "Noel", "Odone", "Omar", "Orfeo", "Osvaldo", "Pacifico", "Pericle", "Pietro", "Primo", "Quasimodo", "Radio", "Raoul", "Renzo", "Rodolfo", "Romolo", "Rosolino", "Rufo", "Sabino", "Sandro", "Sasha", "Secondo", "Sesto", "Silverio", "Siro", "Tazio", "Teseo", "Timothy", "Tommaso", "Tristano", "Umberto", "Ariel", "Artemide", "Assia", "Azue", "Benedetta", "Bibiana", "Brigitta", "Carmela", "Cassiopea", "Cesidia", "Cira", "Clea", "Cleopatra", "Clodovea", "Concetta", "Cosetta", "Cristyn", "Damiana", "Danuta", "Deborah", "Demi", "Diamante", "Diana", "Donatella", "Doriana", "Edvige", "Elda", "Elga", "Elsa", "Emilia", "Enrica", "Erminia", "Eufemia", "Evita", "Fatima", "Felicia", "Filomena", "Flaviana", "Fortunata", "Gelsomina", "Genziana", "Giacinta", "Gilda", "Giovanna", "Giulietta", "Grazia", "Guendalina", "Helga", "Ileana", "Ingrid", "Irene", "Isabel", "Isira", "Ivonne", "Jelena", "Jole", "Claudia", "Kayla", "Kristel", "Laura", "Lucia", "Lia", "Lidia", "Lisa", "Loredana", "Loretta", "Luce", "Lucrezia", "Luna", "Maika", "Marcella", "Maria", "Mariagiulia", "Marianita", "Mariapia", "Marieva", "Marina", "Maristella", "Maruska", "Matilde", "Mecren", "Mercedes", "Mietta", "Miriana", "Miriam", "Monia", "Morgana", "Naomi", "Nayade", "Nicoletta", "Ninfa", "Noemi", "Nunzia", "Olimpia", "Oretta", "Ortensia", "Penelope", "Piccarda", "Prisca", "Rebecca", "Rita", "Rosalba", "Rosaria", "Rosita", "Ruth", "Samira", "Sarita", "Selvaggia", "Shaira", "Sibilla", "Soriana", "Thea", "Tosca", "Ursula", "Vania", "Vera", "Vienna", "Violante", "Vitalba", "Zelida" ], "last_name": [ "Amato", "Barbieri", "Barone", "Basile", "Battaglia", "Bellini", "Benedetti", "Bernardi", "Bianc", "Bianchi", "Bruno", "Caputo", "Carbon", "Caruso", "Cattaneo", "Colombo", "Cont", "Conte", "Coppola", "Costa", "Costantin", "D'amico", "D'angelo", "Damico", "De Angelis", "De luca", "De rosa", "De Santis", "Donati", "Esposito", "Fabbri", "Farin", "Ferrara", "Ferrari", "Ferraro", "Ferretti", "Ferri", "Fior", "Fontana", "Galli", "Gallo", "Gatti", "Gentile", "Giordano", "Giuliani", "Grassi", "Grasso", "Greco", "Guerra", "Leone", "Lombardi", "Lombardo", "Longo", "Mancini", "Marchetti", "Marian", "Marini", "Marino", "Martinelli", "Martini", "Martino", "Mazza", "Messina", "Milani", "Montanari", "Monti", "Morelli", "Moretti", "Negri", "Neri", "Orlando", "Pagano", "Palmieri", "Palumbo", "Parisi", "Pellegrini", "Pellegrino", "Piras", "Ricci", "Rinaldi", "Riva", "Rizzi", "Rizzo", "Romano", "Ross", "Rossetti", "Ruggiero", "Russo", "Sala", "Sanna", "Santoro", "Sartori", "Serr", "Silvestri", "Sorrentino", "Testa", "Valentini", "Villa", "Vitale", "Vitali" ], "prefix": [ "Sig.", "Dott.", "Dr.", "Ing." ], "suffix": [], "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ] }; it.phone_number = { "formats": [ "+## ### ## ## ####", "+## ## #######", "+## ## ########", "+## ### #######", "+## ### ########", "+## #### #######", "+## #### ########", "0## ### ####", "+39 0## ### ###", "3## ### ###", "+39 3## ### ###" ] }; },{}],26:[function(require,module,exports){ var ja = {}; module["exports"] = ja; ja.title = "Japanese"; ja.address = { "postcode": [ "###-####" ], "state": [ "北海道", "青森県", "岩手県", "宮城県", "秋田県", "山形県", "福島県", "茨城県", "栃木県", "群馬県", "埼玉県", "千葉県", "東京都", "神奈川県", "新潟県", "富山県", "石川県", "福井県", "山梨県", "長野県", "岐阜県", "静岡県", "愛知県", "三重県", "滋賀県", "京都府", "大阪府", "兵庫県", "奈良県", "和歌山県", "鳥取県", "島根県", "岡山県", "広島県", "山口県", "徳島県", "香川県", "愛媛県", "高知県", "福岡県", "佐賀県", "長崎県", "熊本県", "大分県", "宮崎県", "鹿児島県", "沖縄県" ], "state_abbr": [ "1", "2", "3", "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", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47" ], "city_prefix": [ "北", "東", "西", "南", "新", "湖", "港" ], "city_suffix": [ "市", "区", "町", "村" ], "city": [ "#{city_prefix}#{Name.first_name}#{city_suffix}", "#{Name.first_name}#{city_suffix}", "#{city_prefix}#{Name.last_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}" ], "street_name": [ "#{Name.first_name}#{street_suffix}", "#{Name.last_name}#{street_suffix}" ] }; ja.phone_number = { "formats": [ "0####-#-####", "0###-##-####", "0##-###-####", "0#-####-####" ] }; ja.cell_phone = { "formats": [ "090-####-####", "080-####-####", "070-####-####" ] }; ja.name = { "last_name": [ "佐藤", "鈴木", "高橋", "田中", "渡辺", "伊藤", "山本", "中村", "小林", "加藤", "吉田", "山田", "佐々木", "山口", "斎藤", "松本", "井上", "木村", "林", "清水" ], "first_name": [ "大翔", "蓮", "颯太", "樹", "大和", "陽翔", "陸斗", "太一", "海翔", "蒼空", "翼", "陽菜", "結愛", "結衣", "杏", "莉子", "美羽", "結菜", "心愛", "愛菜", "美咲" ], "name": [ "#{last_name} #{first_name}" ] }; },{}],27:[function(require,module,exports){ var ko = {}; module["exports"] = ko; ko.title = "Korean"; ko.address = { "postcode": [ "###-###" ], "state": [ "강원", "경기", "경남", "경북", "광주", "대구", "대전", "부산", "서울", "울산", "인천", "전남", "전북", "제주", "충남", "충북", "세종" ], "state_abbr": [ "강원", "경기", "경남", "경북", "광주", "대구", "대전", "부산", "서울", "울산", "인천", "전남", "전북", "제주", "충남", "충북", "세종" ], "city_suffix": [ "구", "시", "군" ], "city_name": [ "강릉", "양양", "인제", "광주", "구리", "부천", "밀양", "통영", "창원", "거창", "고성", "양산", "김천", "구미", "영주", "광산", "남", "북", "고창", "군산", "남원", "동작", "마포", "송파", "용산", "부평", "강화", "수성" ], "city": [ "#{city_name}#{city_suffix}" ], "street_root": [ "상계", "화곡", "신정", "목", "잠실", "면목", "주안", "안양", "중", "정왕", "구로", "신월", "연산", "부평", "창", "만수", "중계", "검단", "시흥", "상도", "방배", "장유", "상", "광명", "신길", "행신", "대명", "동탄" ], "street_suffix": [ "읍", "면", "동" ], "street_name": [ "#{street_root}#{street_suffix}" ] }; ko.phone_number = { "formats": [ "0#-#####-####", "0##-###-####", "0##-####-####" ] }; ko.company = { "suffix": [ "연구소", "게임즈", "그룹", "전자", "물산", "코리아" ], "prefix": [ "주식회사", "한국" ], "name": [ "#{prefix} #{Name.first_name}", "#{Name.first_name} #{suffix}" ] }; ko.internet = { "free_email": [ "gmail.com", "yahoo.co.kr", "hanmail.net", "naver.com" ], "domain_suffix": [ "co.kr", "com", "biz", "info", "ne.kr", "net", "or.kr", "org" ] }; ko.lorem = { "words": [ "국가는", "법률이", "정하는", "바에", "의하여", "재외국민을", "보호할", "의무를", "진다.", "모든", "국민은", "신체의", "자유를", "가진다.", "국가는", "전통문화의", "계승·발전과", "민족문화의", "창달에", "노력하여야", "한다.", "통신·방송의", "시설기준과", "신문의", "기능을", "보장하기", "위하여", "필요한", "사항은", "법률로", "정한다.", "헌법에", "의하여", "체결·공포된", "조약과", "일반적으로", "승인된", "국제법규는", "국내법과", "같은", "효력을", "가진다.", "다만,", "현행범인인", "경우와", "장기", "3년", "이상의", "형에", "해당하는", "죄를", "범하고", "도피", "또는", "증거인멸의", "염려가", "있을", "때에는", "사후에", "영장을", "청구할", "수", "있다.", "저작자·발명가·과학기술자와", "예술가의", "권리는", "법률로써", "보호한다.", "형사피고인은", "유죄의", "판결이", "확정될", "때까지는", "무죄로", "추정된다.", "모든", "국민은", "행위시의", "법률에", "의하여", "범죄를", "구성하지", "아니하는", "행위로", "소추되지", "아니하며,", "동일한", "범죄에", "대하여", "거듭", "처벌받지", "아니한다.", "국가는", "평생교육을", "진흥하여야", "한다.", "모든", "국민은", "사생활의", "비밀과", "자유를", "침해받지", "아니한다.", "의무교육은", "무상으로", "한다.", "저작자·발명가·과학기술자와", "예술가의", "권리는", "법률로써", "보호한다.", "국가는", "모성의", "보호를", "위하여", "노력하여야", "한다.", "헌법에", "의하여", "체결·공포된", "조약과", "일반적으로", "승인된", "국제법규는", "국내법과", "같은", "효력을", "가진다." ] }; ko.name = { "last_name": [ "김", "이", "박", "최", "정", "강", "조", "윤", "장", "임", "오", "한", "신", "서", "권", "황", "안", "송", "류", "홍" ], "first_name": [ "서연", "민서", "서현", "지우", "서윤", "지민", "수빈", "하은", "예은", "윤서", "민준", "지후", "지훈", "준서", "현우", "예준", "건우", "현준", "민재", "우진", "은주" ], "name": [ "#{last_name} #{first_name}" ] }; },{}],28:[function(require,module,exports){ var nb_NO = {}; module["exports"] = nb_NO; nb_NO.title = "Norwegian"; nb_NO.address = { "city_root": [ "Fet", "Gjes", "Høy", "Inn", "Fager", "Lille", "Lo", "Mal", "Nord", "Nær", "Sand", "Sme", "Stav", "Stor", "Tand", "Ut", "Vest" ], "city_suffix": [ "berg", "borg", "by", "bø", "dal", "eid", "fjell", "fjord", "foss", "grunn", "hamn", "havn", "helle", "mark", "nes", "odden", "sand", "sjøen", "stad", "strand", "strøm", "sund", "vik", "vær", "våg", "ø", "øy", "ås" ], "street_prefix": [ "Øvre", "Nedre", "Søndre", "Gamle", "Østre", "Vestre" ], "street_root": [ "Eike", "Bjørke", "Gran", "Vass", "Furu", "Litj", "Lille", "Høy", "Fosse", "Elve", "Ku", "Konvall", "Soldugg", "Hestemyr", "Granitt", "Hegge", "Rogne", "Fiol", "Sol", "Ting", "Malm", "Klokker", "Preste", "Dam", "Geiterygg", "Bekke", "Berg", "Kirke", "Kors", "Bru", "Blåveis", "Torg", "Sjø" ], "street_suffix": [ "alléen", "bakken", "berget", "bråten", "eggen", "engen", "ekra", "faret", "flata", "gata", "gjerdet", "grenda", "gropa", "hagen", "haugen", "havna", "holtet", "høgda", "jordet", "kollen", "kroken", "lia", "lunden", "lyngen", "løkka", "marka", "moen", "myra", "plassen", "ringen", "roa", "røa", "skogen", "skrenten", "spranget", "stien", "stranda", "stubben", "stykket", "svingen", "tjernet", "toppen", "tunet", "vollen", "vika", "åsen" ], "common_street_suffix": [ "sgate", "svei", "s Gate", "s Vei", "gata", "veien" ], "building_number": [ "#", "##" ], "secondary_address": [ "Leil. ###", "Oppgang A", "Oppgang B" ], "postcode": [ "####", "####", "####", "0###" ], "state": [ "" ], "city": [ "#{city_root}#{city_suffix}" ], "street_name": [ "#{street_root}#{street_suffix}", "#{street_prefix} #{street_root}#{street_suffix}", "#{Name.first_name}#{common_street_suffix}", "#{Name.last_name}#{common_street_suffix}" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Norge" ] }; nb_NO.company = { "suffix": [ "Gruppen", "AS", "ASA", "BA", "RFH", "og Sønner" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} og #{Name.last_name}" ] }; nb_NO.internet = { "domain_suffix": [ "no", "com", "net", "org" ] }; nb_NO.name = { "first_name": [ "Emma", "Sara", "Thea", "Ida", "Julie", "Nora", "Emilie", "Ingrid", "Hanna", "Maria", "Sofie", "Anna", "Malin", "Amalie", "Vilde", "Frida", "Andrea", "Tuva", "Victoria", "Mia", "Karoline", "Mathilde", "Martine", "Linnea", "Marte", "Hedda", "Marie", "Helene", "Silje", "Leah", "Maja", "Elise", "Oda", "Kristine", "Aurora", "Kaja", "Camilla", "Mari", "Maren", "Mina", "Selma", "Jenny", "Celine", "Eline", "Sunniva", "Natalie", "Tiril", "Synne", "Sandra", "Madeleine", "Markus", "Mathias", "Kristian", "Jonas", "Andreas", "Alexander", "Martin", "Sander", "Daniel", "Magnus", "Henrik", "Tobias", "Kristoffer", "Emil", "Adrian", "Sebastian", "Marius", "Elias", "Fredrik", "Thomas", "Sondre", "Benjamin", "Jakob", "Oliver", "Lucas", "Oskar", "Nikolai", "Filip", "Mats", "William", "Erik", "Simen", "Ole", "Eirik", "Isak", "Kasper", "Noah", "Lars", "Joakim", "Johannes", "Håkon", "Sindre", "Jørgen", "Herman", "Anders", "Jonathan", "Even", "Theodor", "Mikkel", "Aksel" ], "feminine_name": [ "Emma", "Sara", "Thea", "Ida", "Julie", "Nora", "Emilie", "Ingrid", "Hanna", "Maria", "Sofie", "Anna", "Malin", "Amalie", "Vilde", "Frida", "Andrea", "Tuva", "Victoria", "Mia", "Karoline", "Mathilde", "Martine", "Linnea", "Marte", "Hedda", "Marie", "Helene", "Silje", "Leah", "Maja", "Elise", "Oda", "Kristine", "Aurora", "Kaja", "Camilla", "Mari", "Maren", "Mina", "Selma", "Jenny", "Celine", "Eline", "Sunniva", "Natalie", "Tiril", "Synne", "Sandra", "Madeleine" ], "masculine_name": [ "Markus", "Mathias", "Kristian", "Jonas", "Andreas", "Alexander", "Martin", "Sander", "Daniel", "Magnus", "Henrik", "Tobias", "Kristoffer", "Emil", "Adrian", "Sebastian", "Marius", "Elias", "Fredrik", "Thomas", "Sondre", "Benjamin", "Jakob", "Oliver", "Lucas", "Oskar", "Nikolai", "Filip", "Mats", "William", "Erik", "Simen", "Ole", "Eirik", "Isak", "Kasper", "Noah", "Lars", "Joakim", "Johannes", "Håkon", "Sindre", "Jørgen", "Herman", "Anders", "Jonathan", "Even", "Theodor", "Mikkel", "Aksel" ], "last_name": [ "Johansen", "Hansen", "Andersen", "Kristiansen", "Larsen", "Olsen", "Solberg", "Andresen", "Pedersen", "Nilsen", "Berg", "Halvorsen", "Karlsen", "Svendsen", "Jensen", "Haugen", "Martinsen", "Eriksen", "Sørensen", "Johnsen", "Myhrer", "Johannessen", "Nielsen", "Hagen", "Pettersen", "Bakke", "Skuterud", "Løken", "Gundersen", "Strand", "Jørgensen", "Kvarme", "Røed", "Sæther", "Stensrud", "Moe", "Kristoffersen", "Jakobsen", "Holm", "Aas", "Lie", "Moen", "Andreassen", "Vedvik", "Nguyen", "Jacobsen", "Torgersen", "Ruud", "Krogh", "Christiansen", "Bjerke", "Aalerud", "Borge", "Sørlie", "Berge", "Østli", "Ødegård", "Torp", "Henriksen", "Haukelidsæter", "Fjeld", "Danielsen", "Aasen", "Fredriksen", "Dahl", "Berntsen", "Arnesen", "Wold", "Thoresen", "Solheim", "Skoglund", "Bakken", "Amundsen", "Solli", "Smogeli", "Kristensen", "Glosli", "Fossum", "Evensen", "Eide", "Carlsen", "Østby", "Vegge", "Tangen", "Smedsrud", "Olstad", "Lunde", "Kleven", "Huseby", "Bjørnstad", "Ryan", "Rasmussen", "Nygård", "Nordskaug", "Nordby", "Mathisen", "Hopland", "Gran", "Finstad", "Edvardsen" ], "prefix": [ "Dr.", "Prof." ], "suffix": [ "Jr.", "Sr.", "I", "II", "III", "IV", "V" ], "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name} #{suffix}", "#{feminine_name} #{feminine_name} #{last_name}", "#{masculine_name} #{masculine_name} #{last_name}", "#{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name}" ] }; nb_NO.phone_number = { "formats": [ "########", "## ## ## ##", "### ## ###", "+47 ## ## ## ##" ] }; },{}],29:[function(require,module,exports){ var nep = {}; module["exports"] = nep; nep.title = "Nepalese"; nep.name = { "first_name": [ "Aarav", "Ajita", "Amit", "Amita", "Amrit", "Arijit", "Ashmi", "Asmita", "Bibek", "Bijay", "Bikash", "Bina", "Bishal", "Bishnu", "Buddha", "Deepika", "Dipendra", "Gagan", "Ganesh", "Khem", "Krishna", "Laxmi", "Manisha", "Nabin", "Nikita", "Niraj", "Nischal", "Padam", "Pooja", "Prabin", "Prakash", "Prashant", "Prem", "Purna", "Rajendra", "Rajina", "Raju", "Rakesh", "Ranjan", "Ratna", "Sagar", "Sandeep", "Sanjay", "Santosh", "Sarita", "Shilpa", "Shirisha", "Shristi", "Siddhartha", "Subash", "Sumeet", "Sunita", "Suraj", "Susan", "Sushant" ], "last_name": [ "Adhikari", "Aryal", "Baral", "Basnet", "Bastola", "Basynat", "Bhandari", "Bhattarai", "Chettri", "Devkota", "Dhakal", "Dongol", "Ghale", "Gurung", "Gyawali", "Hamal", "Jung", "KC", "Kafle", "Karki", "Khadka", "Koirala", "Lama", "Limbu", "Magar", "Maharjan", "Niroula", "Pandey", "Pradhan", "Rana", "Raut", "Sai", "Shai", "Shakya", "Sherpa", "Shrestha", "Subedi", "Tamang", "Thapa" ] }; nep.address = { "postcode": [ 0 ], "state": [ "Baglung", "Banke", "Bara", "Bardiya", "Bhaktapur", "Bhojupu", "Chitwan", "Dailekh", "Dang", "Dhading", "Dhankuta", "Dhanusa", "Dolakha", "Dolpha", "Gorkha", "Gulmi", "Humla", "Ilam", "Jajarkot", "Jhapa", "Jumla", "Kabhrepalanchok", "Kalikot", "Kapilvastu", "Kaski", "Kathmandu", "Lalitpur", "Lamjung", "Manang", "Mohottari", "Morang", "Mugu", "Mustang", "Myagdi", "Nawalparasi", "Nuwakot", "Palpa", "Parbat", "Parsa", "Ramechhap", "Rauswa", "Rautahat", "Rolpa", "Rupandehi", "Sankhuwasabha", "Sarlahi", "Sindhuli", "Sindhupalchok", "Sunsari", "Surket", "Syangja", "Tanahu", "Terhathum" ], "city": [ "Bhaktapur", "Biratnagar", "Birendranagar", "Birgunj", "Butwal", "Damak", "Dharan", "Gaur", "Gorkha", "Hetauda", "Itahari", "Janakpur", "Kathmandu", "Lahan", "Nepalgunj", "Pokhara" ], "default_country": [ "Nepal" ] }; nep.internet = { "free_email": [ "worldlink.com.np", "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "np", "com", "info", "net", "org" ] }; nep.company = { "suffix": [ "Pvt Ltd", "Group", "Ltd", "Limited" ] }; nep.phone_number = { "formats": [ "##-#######", "+977-#-#######", "+977########" ] }; },{}],30:[function(require,module,exports){ var nl = {}; module["exports"] = nl; nl.title = "Dutch"; nl.address = { "city_prefix": [ "Noord", "Oost", "West", "Zuid", "Nieuw", "Oud" ], "city_suffix": [ "dam", "berg", " aan de Rijn", " aan de IJssel", "swaerd", "endrecht", "recht", "ambacht", "enmaes", "wijk", "sland", "stroom", "sluus", "dijk", "dorp", "burg", "veld", "sluis", "koop", "lek", "hout", "geest", "kerk", "woude", "hoven", "hoten", "ingen", "plas", "meer" ], "city": [ "#{Name.first_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}", "#{city_prefix} #{Name.first_name}#{city_suffix}", "#{city_prefix} #{Name.last_name}#{city_suffix}" ], "country": [ "Afghanistan", "Akrotiri", "Albanië", "Algerije", "Amerikaanse Maagdeneilanden", "Amerikaans-Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua en Barbuda", "Arctic Ocean", "Argentinië", "Armenië", "Aruba", "Ashmore and Cartier Islands", "Atlantic Ocean", "Australië", "Azerbeidzjan", "Bahama's", "Bahrein", "Bangladesh", "Barbados", "Belarus", "België", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivië", "Bosnië-Herzegovina", "Botswana", "Bouvet Island", "Brazilië", "British Indian Ocean Territory", "Britse Maagdeneilanden", "Brunei", "Bulgarije", "Burkina Faso", "Burundi", "Cambodja", "Canada", "Caymaneilanden", "Centraal-Afrikaanse Republiek", "Chili", "China", "Christmas Island", "Clipperton Island", "Cocos (Keeling) Islands", "Colombia", "Comoren (Unie)", "Congo (Democratische Republiek)", "Congo (Volksrepubliek)", "Cook", "Coral Sea Islands", "Costa Rica", "Cuba", "Cyprus", "Denemarken", "Dhekelia", "Djibouti", "Dominica", "Dominicaanse Republiek", "Duitsland", "Ecuador", "Egypte", "El Salvador", "Equatoriaal-Guinea", "Eritrea", "Estland", "Ethiopië", "European Union", "Falkland", "Faroe Islands", "Fiji", "Filipijnen", "Finland", "Frankrijk", "Frans-Polynesië", "French Southern and Antarctic Lands", "Gabon", "Gambia", "Gaza Strip", "Georgië", "Ghana", "Gibraltar", "Grenada", "Griekenland", "Groenland", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinee-Bissau", "Guyana", "Haïti", "Heard Island and McDonald Islands", "Heilige Stoel", "Honduras", "Hongarije", "Hongkong", "Ierland", "IJsland", "India", "Indian Ocean", "Indonesië", "Irak", "Iran", "Isle of Man", "Israël", "Italië", "Ivoorkust", "Jamaica", "Jan Mayen", "Japan", "Jemen", "Jersey", "Jordanië", "Kaapverdië", "Kameroen", "Kazachstan", "Kenia", "Kirgizstan", "Kiribati", "Koeweit", "Kroatië", "Laos", "Lesotho", "Letland", "Libanon", "Liberia", "Libië", "Liechtenstein", "Litouwen", "Luxemburg", "Macao", "Macedonië", "Madagaskar", "Malawi", "Maldiven", "Maleisië", "Mali", "Malta", "Marokko", "Marshall Islands", "Mauritanië", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldavië", "Monaco", "Mongolië", "Montenegro", "Montserrat", "Mozambique", "Myanmar", "Namibië", "Nauru", "Navassa Island", "Nederland", "Nederlandse Antillen", "Nepal", "Ngwane", "Nicaragua", "Nieuw-Caledonië", "Nieuw-Zeeland", "Niger", "Nigeria", "Niue", "Noordelijke Marianen", "Noord-Korea", "Noorwegen", "Norfolk Island", "Oekraïne", "Oezbekistan", "Oman", "Oostenrijk", "Pacific Ocean", "Pakistan", "Palau", "Panama", "Papoea-Nieuw-Guinea", "Paracel Islands", "Paraguay", "Peru", "Pitcairn", "Polen", "Portugal", "Puerto Rico", "Qatar", "Roemenië", "Rusland", "Rwanda", "Saint Helena", "Saint Lucia", "Saint Vincent en de Grenadines", "Saint-Pierre en Miquelon", "Salomon", "Samoa", "San Marino", "São Tomé en Principe", "Saudi-Arabië", "Senegal", "Servië", "Seychellen", "Sierra Leone", "Singapore", "Sint-Kitts en Nevis", "Slovenië", "Slowakije", "Soedan", "Somalië", "South Georgia and the South Sandwich Islands", "Southern Ocean", "Spanje", "Spratly Islands", "Sri Lanka", "Suriname", "Svalbard", "Syrië", "Tadzjikistan", "Taiwan", "Tanzania", "Thailand", "Timor Leste", "Togo", "Tokelau", "Tonga", "Trinidad en Tobago", "Tsjaad", "Tsjechië", "Tunesië", "Turkije", "Turkmenistan", "Turks-en Caicoseilanden", "Tuvalu", "Uganda", "Uruguay", "Vanuatu", "Venezuela", "Verenigd Koninkrijk", "Verenigde Arabische Emiraten", "Verenigde Staten van Amerika", "Vietnam", "Wake Island", "Wallis en Futuna", "Wereld", "West Bank", "Westelijke Sahara", "Zambia", "Zimbabwe", "Zuid-Afrika", "Zuid-Korea", "Zweden", "Zwitserland" ], "building_number": [ "#", "##", "###", "###a", "###b", "###c", "### I", "### II", "### III" ], "street_suffix": [ "straat", "laan", "weg", "plantsoen", "park" ], "secondary_address": [ "1 hoog", "2 hoog", "3 hoog" ], "street_name": [ "#{Name.first_name}#{street_suffix}", "#{Name.last_name}#{street_suffix}" ], "street_address": [ "#{street_name} #{building_number}" ], "postcode": [ "#### ??" ], "state": [ "Noord-Holland", "Zuid-Holland", "Utrecht", "Zeeland", "Overijssel", "Gelderland", "Drenthe", "Friesland", "Groningen", "Noord-Braband", "Limburg" ], "default_country": [ "Nederland" ] }; nl.company = { "suffix": [ "BV", "V.O.F.", "Group", "en Zonen" ] }; nl.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "nl", "com", "net", "org" ] }; nl.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ], "supplemental": [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ] }; nl.name = { "first_name": [ "Amber", "Anna", "Anne", "Anouk", "Bas", "Bram", "Britt", "Daan", "Emma", "Eva", "Femke", "Finn", "Fleur", "Iris", "Isa", "Jan", "Jasper", "Jayden", "Jesse", "Johannes", "Julia", "Julian", "Kevin", "Lars", "Lieke", "Lisa", "Lotte", "Lucas", "Luuk", "Maud", "Max", "Mike", "Milan", "Nick", "Niels", "Noa", "Rick", "Roos", "Ruben", "Sander", "Sanne", "Sem", "Sophie", "Stijn", "Sven", "Thijs", "Thijs", "Thomas", "Tim", "Tom" ], "tussenvoegsel": [ "van", "van de", "van den", "van 't", "van het", "de", "den" ], "last_name": [ "Bakker", "Beek", "Berg", "Boer", "Bos", "Bosch", "Brink", "Broek", "Brouwer", "Bruin", "Dam", "Dekker", "Dijk", "Dijkstra", "Graaf", "Groot", "Haan", "Hendriks", "Heuvel", "Hoek", "Jacobs", "Jansen", "Janssen", "Jong", "Klein", "Kok", "Koning", "Koster", "Leeuwen", "Linden", "Maas", "Meer", "Meijer", "Mulder", "Peters", "Ruiter", "Schouten", "Smit", "Smits", "Stichting", "Veen", "Ven", "Vermeulen", "Visser", "Vliet", "Vos", "Vries", "Wal", "Willems", "Wit" ], "prefix": [ "Dhr.", "Mevr. Dr.", "Bsc", "Msc", "Prof." ], "suffix": [ "Jr.", "Sr.", "I", "II", "III", "IV", "V" ], "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name} #{suffix}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{tussenvoegsel} #{last_name}", "#{first_name} #{tussenvoegsel} #{last_name}" ] }; nl.phone_number = { "formats": [ "(####) ######", "##########", "06########", "06 #### ####" ] }; },{}],31:[function(require,module,exports){ var pl = {}; module["exports"] = pl; pl.title = "Polish"; pl.name = { "first_name": [ "Aaron", "Abraham", "Adam", "Adrian", "Atanazy", "Agaton", "Alan", "Albert", "Aleksander", "Aleksy", "Alfred", "Alwar", "Ambroży", "Anatol", "Andrzej", "Antoni", "Apollinary", "Apollo", "Arkady", "Arkadiusz", "Archibald", "Arystarch", "Arnold", "Arseniusz", "Artur", "August", "Baldwin", "Bazyli", "Benedykt", "Beniamin", "Bernard", "Bertrand", "Bertram", "Borys", "Brajan", "Bruno", "Cezary", "Cecyliusz", "Karol", "Krystian", "Krzysztof", "Klarencjusz", "Klaudiusz", "Klemens", "Konrad", "Konstanty", "Konstantyn", "Kornel", "Korneliusz", "Korneli", "Cyryl", "Cyrus", "Damian", "Daniel", "Dariusz", "Dawid", "Dionizy", "Demetriusz", "Dominik", "Donald", "Dorian", "Edgar", "Edmund", "Edward", "Edwin", "Efrem", "Efraim", "Eliasz", "Eleazar", "Emil", "Emanuel", "Erast", "Ernest", "Eugeniusz", "Eustracjusz", "Fabian", "Feliks", "Florian", "Franciszek", "Fryderyk", "Gabriel", "Gedeon", "Galfryd", "Jerzy", "Gerald", "Gerazym", "Gilbert", "Gonsalwy", "Grzegorz", "Gwido", "Harald", "Henryk", "Herbert", "Herman", "Hilary", "Horacy", "Hubert", "Hugo", "Ignacy", "Igor", "Hilarion", "Innocenty", "Hipolit", "Ireneusz", "Erwin", "Izaak", "Izajasz", "Izydor", "Jakub", "Jeremi", "Jeremiasz", "Hieronim", "Gerald", "Joachim", "Jan", "Janusz", "Jonatan", "Józef", "Jozue", "Julian", "Juliusz", "Justyn", "Kalistrat", "Kazimierz", "Wawrzyniec", "Laurenty", "Laurencjusz", "Łazarz", "Leon", "Leonard", "Leonid", "Leon", "Ludwik", "Łukasz", "Lucjan", "Magnus", "Makary", "Marceli", "Marek", "Marcin", "Mateusz", "Maurycy", "Maksym", "Maksymilian", "Michał", "Miron", "Modest", "Mojżesz", "Natan", "Natanael", "Nazariusz", "Nazary", "Nestor", "Mikołaj", "Nikodem", "Olaf", "Oleg", "Oliwier", "Onufry", "Orestes", "Oskar", "Ansgary", "Osmund", "Pankracy", "Pantaleon", "Patryk", "Patrycjusz", "Patrycy", "Paweł", "Piotr", "Filemon", "Filip", "Platon", "Polikarp", "Porfiry", "Porfiriusz", "Prokles", "Prokul", "Prokop", "Kwintyn", "Randolf", "Rafał", "Rajmund", "Reginald", "Rajnold", "Ryszard", "Robert", "Roderyk", "Roger", "Roland", "Roman", "Romeo", "Reginald", "Rudolf", "Samson", "Samuel", "Salwator", "Sebastian", "Serafin", "Sergiusz", "Seweryn", "Zygmunt", "Sylwester", "Szymon", "Salomon", "Spirydion", "Stanisław", "Szczepan", "Stefan", "Terencjusz", "Teodor", "Tomasz", "Tymoteusz", "Tobiasz", "Walenty", "Walentyn", "Walerian", "Walery", "Wiktor", "Wincenty", "Witalis", "Włodzimierz", "Władysław", "Błażej", "Walter", "Walgierz", "Wacław", "Wilfryd", "Wilhelm", "Ksawery", "Ksenofont", "Jerzy", "Zachariasz", "Zachary", "Ada", "Adelajda", "Agata", "Agnieszka", "Agrypina", "Aida", "Aleksandra", "Alicja", "Alina", "Amanda", "Anastazja", "Angela", "Andżelika", "Angelina", "Anna", "Hanna", "—", "Antonina", "Ariadna", "Aurora", "Barbara", "Beatrycze", "Berta", "Brygida", "Kamila", "Karolina", "Karolina", "Kornelia", "Katarzyna", "Cecylia", "Karolina", "Chloe", "Krystyna", "Klara", "Klaudia", "Klementyna", "Konstancja", "Koralia", "Daria", "Diana", "Dina", "Dorota", "Edyta", "Eleonora", "Eliza", "Elżbieta", "Izabela", "Elwira", "Emilia", "Estera", "Eudoksja", "Eudokia", "Eugenia", "Ewa", "Ewelina", "Ferdynanda", "Florencja", "Franciszka", "Gabriela", "Gertruda", "Gloria", "Gracja", "Jadwiga", "Helena", "Henryka", "Nadzieja", "Ida", "Ilona", "Helena", "Irena", "Irma", "Izabela", "Izolda", "Jakubina", "Joanna", "Janina", "Żaneta", "Joanna", "Ginewra", "Józefina", "Judyta", "Julia", "Julia", "Julita", "Justyna", "Kira", "Cyra", "Kleopatra", "Larysa", "Laura", "Laurencja", "Laurentyna", "Lea", "Leila", "Eleonora", "Liliana", "Lilianna", "Lilia", "Lilla", "Liza", "Eliza", "Laura", "Ludwika", "Luiza", "Łucja", "Lucja", "Lidia", "Amabela", "Magdalena", "Malwina", "Małgorzata", "Greta", "Marianna", "Maryna", "Marta", "Martyna", "Maria", "Matylda", "Maja", "Maja", "Melania", "Michalina", "Monika", "Nadzieja", "Noemi", "Natalia", "Nikola", "Nina", "Olga", "Olimpia", "Oliwia", "Ofelia", "Patrycja", "Paula", "Pelagia", "Penelopa", "Filipa", "Paulina", "Rachela", "Rebeka", "Regina", "Renata", "Rozalia", "Róża", "Roksana", "Rufina", "Ruta", "Sabina", "Sara", "Serafina", "Sybilla", "Sylwia", "Zofia", "Stella", "Stefania", "Zuzanna", "Tamara", "Tacjana", "Tekla", "Teodora", "Teresa", "Walentyna", "Waleria", "Wanesa", "Wiara", "Weronika", "Wiktoria", "Wirginia", "Bibiana", "Bibianna", "Wanda", "Wilhelmina", "Ksawera", "Ksenia", "Zoe" ], "last_name": [ "Adamczak", "Adamczyk", "Adamek", "Adamiak", "Adamiec", "Adamowicz", "Adamski", "Adamus", "Aleksandrowicz", "Andrzejczak", "Andrzejewski", "Antczak", "Augustyn", "Augustyniak", "Bagiński", "Balcerzak", "Banach", "Banasiak", "Banasik", "Banaś", "Baran", "Baranowski", "Barański", "Bartczak", "Bartkowiak", "Bartnik", "Bartosik", "Bednarczyk", "Bednarek", "Bednarski", "Bednarz", "Białas", "Białek", "Białkowski", "Bielak", "Bielawski", "Bielecki", "Bielski", "Bieniek", "Biernacki", "Biernat", "Bieńkowski", "Bilski", "Bober", "Bochenek", "Bogucki", "Bogusz", "Borek", "Borkowski", "Borowiec", "Borowski", "Bożek", "Broda", "Brzeziński", "Brzozowski", "Buczek", "Buczkowski", "Buczyński", "Budziński", "Budzyński", "Bujak", "Bukowski", "Burzyński", "Bąk", "Bąkowski", "Błaszczak", "Błaszczyk", "Cebula", "Chmiel", "Chmielewski", "Chmura", "Chojnacki", "Chojnowski", "Cholewa", "Chrzanowski", "Chudzik", "Cichocki", "Cichoń", "Cichy", "Ciesielski", "Cieśla", "Cieślak", "Cieślik", "Ciszewski", "Cybulski", "Cygan", "Czaja", "Czajka", "Czajkowski", "Czapla", "Czarnecki", "Czech", "Czechowski", "Czekaj", "Czerniak", "Czerwiński", "Czyż", "Czyżewski", "Dec", "Dobosz", "Dobrowolski", "Dobrzyński", "Domagała", "Domański", "Dominiak", "Drabik", "Drozd", "Drozdowski", "Drzewiecki", "Dróżdż", "Dubiel", "Duda", "Dudek", "Dudziak", "Dudzik", "Dudziński", "Duszyński", "Dziedzic", "Dziuba", "Dąbek", "Dąbkowski", "Dąbrowski", "Dębowski", "Dębski", "Długosz", "Falkowski", "Fijałkowski", "Filipek", "Filipiak", "Filipowicz", "Flak", "Flis", "Florczak", "Florek", "Frankowski", "Frąckowiak", "Frączek", "Frątczak", "Furman", "Gadomski", "Gajda", "Gajewski", "Gaweł", "Gawlik", "Gawron", "Gawroński", "Gałka", "Gałązka", "Gil", "Godlewski", "Golec", "Gołąb", "Gołębiewski", "Gołębiowski", "Grabowski", "Graczyk", "Grochowski", "Grudzień", "Gruszczyński", "Gruszka", "Grzegorczyk", "Grzelak", "Grzesiak", "Grzesik", "Grześkowiak", "Grzyb", "Grzybowski", "Grzywacz", "Gutowski", "Guzik", "Gwóźdź", "Góra", "Góral", "Górecki", "Górka", "Górniak", "Górny", "Górski", "Gąsior", "Gąsiorowski", "Głogowski", "Głowacki", "Głąb", "Hajduk", "Herman", "Iwański", "Izdebski", "Jabłoński", "Jackowski", "Jagielski", "Jagiełło", "Jagodziński", "Jakubiak", "Jakubowski", "Janas", "Janiak", "Janicki", "Janik", "Janiszewski", "Jankowiak", "Jankowski", "Janowski", "Janus", "Janusz", "Januszewski", "Jaros", "Jarosz", "Jarząbek", "Jasiński", "Jastrzębski", "Jaworski", "Jaśkiewicz", "Jezierski", "Jurek", "Jurkiewicz", "Jurkowski", "Juszczak", "Jóźwiak", "Jóźwik", "Jędrzejczak", "Jędrzejczyk", "Jędrzejewski", "Kacprzak", "Kaczmarczyk", "Kaczmarek", "Kaczmarski", "Kaczor", "Kaczorowski", "Kaczyński", "Kaleta", "Kalinowski", "Kalisz", "Kamiński", "Kania", "Kaniewski", "Kapusta", "Karaś", "Karczewski", "Karpiński", "Karwowski", "Kasperek", "Kasprzak", "Kasprzyk", "Kaszuba", "Kawa", "Kawecki", "Kałuża", "Kaźmierczak", "Kiełbasa", "Kisiel", "Kita", "Klimczak", "Klimek", "Kmiecik", "Kmieć", "Knapik", "Kobus", "Kogut", "Kolasa", "Komorowski", "Konieczna", "Konieczny", "Konopka", "Kopczyński", "Koper", "Kopeć", "Korzeniowski", "Kos", "Kosiński", "Kosowski", "Kostecki", "Kostrzewa", "Kot", "Kotowski", "Kowal", "Kowalczuk", "Kowalczyk", "Kowalewski", "Kowalik", "Kowalski", "Koza", "Kozak", "Kozieł", "Kozioł", "Kozłowski", "Kołakowski", "Kołodziej", "Kołodziejczyk", "Kołodziejski", "Krajewski", "Krakowiak", "Krawczyk", "Krawiec", "Kruk", "Krukowski", "Krupa", "Krupiński", "Kruszewski", "Krysiak", "Krzemiński", "Krzyżanowski", "Król", "Królikowski", "Książek", "Kubacki", "Kubiak", "Kubica", "Kubicki", "Kubik", "Kuc", "Kucharczyk", "Kucharski", "Kuchta", "Kuciński", "Kuczyński", "Kujawa", "Kujawski", "Kula", "Kulesza", "Kulig", "Kulik", "Kuliński", "Kurek", "Kurowski", "Kuś", "Kwaśniewski", "Kwiatkowski", "Kwiecień", "Kwieciński", "Kędzierski", "Kędziora", "Kępa", "Kłos", "Kłosowski", "Lach", "Laskowski", "Lasota", "Lech", "Lenart", "Lesiak", "Leszczyński", "Lewandowski", "Lewicki", "Leśniak", "Leśniewski", "Lipiński", "Lipka", "Lipski", "Lis", "Lisiecki", "Lisowski", "Maciejewski", "Maciąg", "Mackiewicz", "Madej", "Maj", "Majcher", "Majchrzak", "Majewski", "Majka", "Makowski", "Malec", "Malicki", "Malinowski", "Maliszewski", "Marchewka", "Marciniak", "Marcinkowski", "Marczak", "Marek", "Markiewicz", "Markowski", "Marszałek", "Marzec", "Masłowski", "Matusiak", "Matuszak", "Matuszewski", "Matysiak", "Mazur", "Mazurek", "Mazurkiewicz", "Maćkowiak", "Małecki", "Małek", "Maślanka", "Michalak", "Michalczyk", "Michalik", "Michalski", "Michałek", "Michałowski", "Mielczarek", "Mierzejewski", "Mika", "Mikołajczak", "Mikołajczyk", "Mikulski", "Milczarek", "Milewski", "Miller", "Misiak", "Misztal", "Miśkiewicz", "Modzelewski", "Molenda", "Morawski", "Motyka", "Mroczek", "Mroczkowski", "Mrozek", "Mróz", "Mucha", "Murawski", "Musiał", "Muszyński", "Młynarczyk", "Napierała", "Nawrocki", "Nawrot", "Niedziela", "Niedzielski", "Niedźwiecki", "Niemczyk", "Niemiec", "Niewiadomski", "Noga", "Nowacki", "Nowaczyk", "Nowak", "Nowakowski", "Nowicki", "Nowiński", "Olczak", "Olejniczak", "Olejnik", "Olszewski", "Orzechowski", "Orłowski", "Osiński", "Ossowski", "Ostrowski", "Owczarek", "Paczkowski", "Pająk", "Pakuła", "Paluch", "Panek", "Partyka", "Pasternak", "Paszkowski", "Pawelec", "Pawlak", "Pawlicki", "Pawlik", "Pawlikowski", "Pawłowski", "Pałka", "Piasecki", "Piechota", "Piekarski", "Pietras", "Pietruszka", "Pietrzak", "Pietrzyk", "Pilarski", "Pilch", "Piotrowicz", "Piotrowski", "Piwowarczyk", "Piórkowski", "Piątek", "Piątkowski", "Piłat", "Pluta", "Podgórski", "Polak", "Popławski", "Porębski", "Prokop", "Prus", "Przybylski", "Przybysz", "Przybył", "Przybyła", "Ptak", "Puchalski", "Pytel", "Płonka", "Raczyński", "Radecki", "Radomski", "Rak", "Rakowski", "Ratajczak", "Robak", "Rogala", "Rogalski", "Rogowski", "Rojek", "Romanowski", "Rosa", "Rosiak", "Rosiński", "Ruciński", "Rudnicki", "Rudziński", "Rudzki", "Rusin", "Rutkowski", "Rybak", "Rybarczyk", "Rybicki", "Rzepka", "Różański", "Różycki", "Sadowski", "Sawicki", "Serafin", "Siedlecki", "Sienkiewicz", "Sieradzki", "Sikora", "Sikorski", "Sitek", "Siwek", "Skalski", "Skiba", "Skibiński", "Skoczylas", "Skowron", "Skowronek", "Skowroński", "Skrzypczak", "Skrzypek", "Skóra", "Smoliński", "Sobczak", "Sobczyk", "Sobieraj", "Sobolewski", "Socha", "Sochacki", "Sokołowski", "Sokół", "Sosnowski", "Sowa", "Sowiński", "Sołtys", "Sołtysiak", "Sroka", "Stachowiak", "Stachowicz", "Stachura", "Stachurski", "Stanek", "Staniszewski", "Stanisławski", "Stankiewicz", "Stasiak", "Staszewski", "Stawicki", "Stec", "Stefaniak", "Stefański", "Stelmach", "Stolarczyk", "Stolarski", "Strzelczyk", "Strzelecki", "Stępień", "Stępniak", "Surma", "Suski", "Szafrański", "Szatkowski", "Szczepaniak", "Szczepanik", "Szczepański", "Szczerba", "Szcześniak", "Szczygieł", "Szczęsna", "Szczęsny", "Szeląg", "Szewczyk", "Szostak", "Szulc", "Szwarc", "Szwed", "Szydłowski", "Szymański", "Szymczak", "Szymczyk", "Szymkowiak", "Szyszka", "Sławiński", "Słowik", "Słowiński", "Tarnowski", "Tkaczyk", "Tokarski", "Tomala", "Tomaszewski", "Tomczak", "Tomczyk", "Tracz", "Trojanowski", "Trzciński", "Trzeciak", "Turek", "Twardowski", "Urban", "Urbanek", "Urbaniak", "Urbanowicz", "Urbańczyk", "Urbański", "Walczak", "Walkowiak", "Warchoł", "Wasiak", "Wasilewski", "Wawrzyniak", "Wesołowski", "Wieczorek", "Wierzbicki", "Wilczek", "Wilczyński", "Wilk", "Winiarski", "Witczak", "Witek", "Witkowski", "Wiącek", "Więcek", "Więckowski", "Wiśniewski", "Wnuk", "Wojciechowski", "Wojtas", "Wojtasik", "Wojtczak", "Wojtkowiak", "Wolak", "Woliński", "Wolny", "Wolski", "Woś", "Woźniak", "Wrona", "Wroński", "Wróbel", "Wróblewski", "Wypych", "Wysocki", "Wyszyński", "Wójcicki", "Wójcik", "Wójtowicz", "Wąsik", "Węgrzyn", "Włodarczyk", "Włodarski", "Zaborowski", "Zabłocki", "Zagórski", "Zając", "Zajączkowski", "Zakrzewski", "Zalewski", "Zaremba", "Zarzycki", "Zaręba", "Zawada", "Zawadzki", "Zdunek", "Zieliński", "Zielonka", "Ziółkowski", "Zięba", "Ziętek", "Zwoliński", "Zych", "Zygmunt", "Łapiński", "Łuczak", "Łukasiewicz", "Łukasik", "Łukaszewski", "Śliwa", "Śliwiński", "Ślusarczyk", "Świderski", "Świerczyński", "Świątek", "Żak", "Żebrowski", "Żmuda", "Żuk", "Żukowski", "Żurawski", "Żurek", "Żyła" ], "prefix": [ "Pan", "Pani" ], "title": { "descriptor": [ "Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal" ], "level": [ "Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics" ], "job": [ "Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist" ] }, "name": [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ] }; pl.address = { "country": [ "Afganistan", "Albania", "Algieria", "Andora", "Angola", "Antigua i Barbuda", "Arabia Saudyjska", "Argentyna", "Armenia", "Australia", "Austria", "Azerbejdżan", "Bahamy", "Bahrajn", "Bangladesz", "Barbados", "Belgia", "Belize", "Benin", "Bhutan", "Białoruś", "Birma", "Boliwia", "Sucre", "Bośnia i Hercegowina", "Botswana", "Brazylia", "Brunei", "Bułgaria", "Burkina Faso", "Burundi", "Chile", "Chiny", "Chorwacja", "Cypr", "Czad", "Czarnogóra", "Czechy", "Dania", "Demokratyczna Republika Konga", "Dominika", "Dominikana", "Dżibuti", "Egipt", "Ekwador", "Erytrea", "Estonia", "Etiopia", "Fidżi", "Filipiny", "Finlandia", "Francja", "Gabon", "Gambia", "Ghana", "Grecja", "Grenada", "Gruzja", "Gujana", "Gwatemala", "Gwinea", "Gwinea Bissau", "Gwinea Równikowa", "Haiti", "Hiszpania", "Holandia", "Haga", "Honduras", "Indie", "Indonezja", "Irak", "Iran", "Irlandia", "Islandia", "Izrael", "Jamajka", "Japonia", "Jemen", "Jordania", "Kambodża", "Kamerun", "Kanada", "Katar", "Kazachstan", "Kenia", "Kirgistan", "Kiribati", "Kolumbia", "Komory", "Kongo", "Korea Południowa", "Korea Północna", "Kostaryka", "Kuba", "Kuwejt", "Laos", "Lesotho", "Liban", "Liberia", "Libia", "Liechtenstein", "Litwa", "Luksemburg", "Łotwa", "Macedonia", "Madagaskar", "Malawi", "Malediwy", "Malezja", "Mali", "Malta", "Maroko", "Mauretania", "Mauritius", "Meksyk", "Mikronezja", "Mołdawia", "Monako", "Mongolia", "Mozambik", "Namibia", "Nauru", "Nepal", "Niemcy", "Niger", "Nigeria", "Nikaragua", "Norwegia", "Nowa Zelandia", "Oman", "Pakistan", "Palau", "Panama", "Papua-Nowa Gwinea", "Paragwaj", "Peru", "Polska", "322 575", "Portugalia", "Republika Południowej Afryki", "Republika Środkowoafrykańska", "Republika Zielonego Przylądka", "Rosja", "Rumunia", "Rwanda", "Saint Kitts i Nevis", "Saint Lucia", "Saint Vincent i Grenadyny", "Salwador", "Samoa", "San Marino", "Senegal", "Serbia", "Seszele", "Sierra Leone", "Singapur", "Słowacja", "Słowenia", "Somalia", "Sri Lanka", "Stany Zjednoczone", "Suazi", "Sudan", "Sudan Południowy", "Surinam", "Syria", "Szwajcaria", "Szwecja", "Tadżykistan", "Tajlandia", "Tanzania", "Timor Wschodni", "Togo", "Tonga", "Trynidad i Tobago", "Tunezja", "Turcja", "Turkmenistan", "Tuvalu", "Funafuti", "Uganda", "Ukraina", "Urugwaj", 2008, "Uzbekistan", "Vanuatu", "Watykan", "Wenezuela", "Węgry", "Wielka Brytania", "Wietnam", "Włochy", "Wybrzeże Kości Słoniowej", "Wyspy Marshalla", "Wyspy Salomona", "Wyspy Świętego Tomasza i Książęca", "Zambia", "Zimbabwe", "Zjednoczone Emiraty Arabskie" ], "building_number": [ "#####", "####", "###" ], "street_prefix": [ "ul.", "al." ], "secondary_address": [ "Apt. ###", "Suite ###" ], "postcode": [ "##-###" ], "state": [ "Dolnośląskie", "Kujawsko-pomorskie", "Lubelskie", "Lubuskie", "Łódzkie", "Małopolskie", "Mazowieckie", "Opolskie", "Podkarpackie", "Podlaskie", "Pomorskie", "Śląskie", "Świętokrzyskie", "Warmińsko-mazurskie", "Wielkopolskie", "Zachodniopomorskie" ], "state_abbr": [ "DŚ", "KP", "LB", "LS", "ŁD", "MP", "MZ", "OP", "PK", "PL", "PM", "ŚL", "ŚK", "WM", "WP", "ZP" ], "city_name": [ "Aleksandrów Kujawski", "Aleksandrów Łódzki", "Alwernia", "Andrychów", "Annopol", "Augustów", "Babimost", "Baborów", "Baranów Sandomierski", "Barcin", "Barczewo", "Bardo", "Barlinek", "Bartoszyce", "Barwice", "Bełchatów", "Bełżyce", "Będzin", "Biała", "Biała Piska", "Biała Podlaska", "Biała Rawska", "Białobrzegi", "Białogard", "Biały Bór", "Białystok", "Biecz", "Bielawa", "Bielsk Podlaski", "Bielsko-Biała", "Bieruń", "Bierutów", "Bieżuń", "Biłgoraj", "Biskupiec", "Bisztynek", "Blachownia", "Błaszki", "Błażowa", "Błonie", "Bobolice", "Bobowa", "Bochnia", "Bodzentyn", "Bogatynia", "Boguchwała", "Boguszów-Gorce", "Bojanowo", "Bolesławiec", "Bolków", "Borek Wielkopolski", "Borne Sulinowo", "Braniewo", "Brańsk", "Brodnica", "Brok", "Brusy", "Brwinów", "Brzeg", "Brzeg Dolny", "Brzesko", "Brzeszcze", "Brześć Kujawski", "Brzeziny", "Brzostek", "Brzozów", "Buk", "Bukowno", "Busko-Zdrój", "Bychawa", "Byczyna", "Bydgoszcz", "Bystrzyca Kłodzka", "Bytom", "Bytom Odrzański", "Bytów", "Cedynia", "Chełm", "Chełmek", "Chełmno", "Chełmża", "Chęciny", "Chmielnik", "Chocianów", "Chociwel", "Chodecz", "Chodzież", "Chojna", "Chojnice", "Chojnów", "Choroszcz", "Chorzele", "Chorzów", "Choszczno", "Chrzanów", "Ciechanowiec", "Ciechanów", "Ciechocinek", "Cieszanów", "Cieszyn", "Ciężkowice", "Cybinka", "Czaplinek", "Czarna Białostocka", "Czarna Woda", "Czarne", "Czarnków", "Czchów", "Czechowice-Dziedzice", "Czeladź", "Czempiń", "Czerniejewo", "Czersk", "Czerwieńsk", "Czerwionka-Leszczyny", "Częstochowa", "Człopa", "Człuchów", "Czyżew", "Ćmielów", "Daleszyce", "Darłowo", "Dąbie", "Dąbrowa Białostocka", "Dąbrowa Górnicza", "Dąbrowa Tarnowska", "Debrzno", "Dębica", "Dęblin", "Dębno", "Dobczyce", "Dobiegniew", "Dobra (powiat łobeski)", "Dobra (powiat turecki)", "Dobre Miasto", "Dobrodzień", "Dobrzany", "Dobrzyń nad Wisłą", "Dolsk", "Drawno", "Drawsko Pomorskie", "Drezdenko", "Drobin", "Drohiczyn", "Drzewica", "Dukla", "Duszniki-Zdrój", "Dynów", "Działdowo", "Działoszyce", "Działoszyn", "Dzierzgoń", "Dzierżoniów", "Dziwnów", "Elbląg", "Ełk", "Frampol", "Frombork", "Garwolin", "Gąbin", "Gdańsk", "Gdynia", "Giżycko", "Glinojeck", "Gliwice", "Głogów", "Głogów Małopolski", "Głogówek", "Głowno", "Głubczyce", "Głuchołazy", "Głuszyca", "Gniew", "Gniewkowo", "Gniezno", "Gogolin", "Golczewo", "Goleniów", "Golina", "Golub-Dobrzyń", "Gołańcz", "Gołdap", "Goniądz", "Gorlice", "Gorzów Śląski", "Gorzów Wielkopolski", "Gostynin", "Gostyń", "Gościno", "Gozdnica", "Góra", "Góra Kalwaria", "Górowo Iławeckie", "Górzno", "Grabów nad Prosną", "Grajewo", "Grodków", "Grodzisk Mazowiecki", "Grodzisk Wielkopolski", "Grójec", "Grudziądz", "Grybów", "Gryfice", "Gryfino", "Gryfów Śląski", "Gubin", "Hajnówka", "Halinów", "Hel", "Hrubieszów", "Iława", "Iłowa", "Iłża", "Imielin", "Inowrocław", "Ińsko", "Iwonicz-Zdrój", "Izbica Kujawska", "Jabłonowo Pomorskie", "Janikowo", "Janowiec Wielkopolski", "Janów Lubelski", "Jarocin", "Jarosław", "Jasień", "Jasło", "Jastarnia", "Jastrowie", "Jastrzębie-Zdrój", "Jawor", "Jaworzno", "Jaworzyna Śląska", "Jedlicze", "Jedlina-Zdrój", "Jedwabne", "Jelcz-Laskowice", "Jelenia Góra", "Jeziorany", "Jędrzejów", "Jordanów", "Józefów (powiat biłgorajski)", "Józefów (powiat otwocki)", "Jutrosin", "Kalety", "Kalisz", "Kalisz Pomorski", "Kalwaria Zebrzydowska", "Kałuszyn", "Kamienna Góra", "Kamień Krajeński", "Kamień Pomorski", "Kamieńsk", "Kańczuga", "Karczew", "Kargowa", "Karlino", "Karpacz", "Kartuzy", "Katowice", "Kazimierz Dolny", "Kazimierza Wielka", "Kąty Wrocławskie", "Kcynia", "Kędzierzyn-Koźle", "Kępice", "Kępno", "Kętrzyn", "Kęty", "Kielce", "Kietrz", "Kisielice", "Kleczew", "Kleszczele", "Kluczbork", "Kłecko", "Kłobuck", "Kłodawa", "Kłodzko", "Knurów", "Knyszyn", "Kobylin", "Kobyłka", "Kock", "Kolbuszowa", "Kolno", "Kolonowskie", "Koluszki", "Kołaczyce", "Koło", "Kołobrzeg", "Koniecpol", "Konin", "Konstancin-Jeziorna", "Konstantynów Łódzki", "Końskie", "Koprzywnica", "Korfantów", "Koronowo", "Korsze", "Kosów Lacki", "Kostrzyn", "Kostrzyn nad Odrą", "Koszalin", "Kościan", "Kościerzyna", "Kowal", "Kowalewo Pomorskie", "Kowary", "Koziegłowy", "Kozienice", "Koźmin Wielkopolski", "Kożuchów", "Kórnik", "Krajenka", "Kraków", "Krapkowice", "Krasnobród", "Krasnystaw", "Kraśnik", "Krobia", "Krosno", "Krosno Odrzańskie", "Krośniewice", "Krotoszyn", "Kruszwica", "Krynica Morska", "Krynica-Zdrój", "Krynki", "Krzanowice", "Krzepice", "Krzeszowice", "Krzywiń", "Krzyż Wielkopolski", "Książ Wielkopolski", "Kudowa-Zdrój", "Kunów", "Kutno", "Kuźnia Raciborska", "Kwidzyn", "Lądek-Zdrój", "Legionowo", "Legnica", "Lesko", "Leszno", "Leśna", "Leśnica", "Lewin Brzeski", "Leżajsk", "Lębork", "Lędziny", "Libiąż", "Lidzbark", "Lidzbark Warmiński", "Limanowa", "Lipiany", "Lipno", "Lipsk", "Lipsko", "Lubaczów", "Lubań", "Lubartów", "Lubawa", "Lubawka", "Lubień Kujawski", "Lubin", "Lublin", "Lubliniec", "Lubniewice", "Lubomierz", "Luboń", "Lubraniec", "Lubsko", "Lwówek", "Lwówek Śląski", "Łabiszyn", "Łańcut", "Łapy", "Łasin", "Łask", "Łaskarzew", "Łaszczów", "Łaziska Górne", "Łazy", "Łeba", "Łęczna", "Łęczyca", "Łęknica", "Łobez", "Łobżenica", "Łochów", "Łomianki", "Łomża", "Łosice", "Łowicz", "Łódź", "Łuków", "Maków Mazowiecki", "Maków Podhalański", "Malbork", "Małogoszcz", "Małomice", "Margonin", "Marki", "Maszewo", "Miasteczko Śląskie", "Miastko", "Michałowo", "Miechów", "Miejska Górka", "Mielec", "Mieroszów", "Mieszkowice", "Międzybórz", "Międzychód", "Międzylesie", "Międzyrzec Podlaski", "Międzyrzecz", "Międzyzdroje", "Mikołajki", "Mikołów", "Mikstat", "Milanówek", "Milicz", "Miłakowo", "Miłomłyn", "Miłosław", "Mińsk Mazowiecki", "Mirosławiec", "Mirsk", "Mława", "Młynary", "Mogielnica", "Mogilno", "Mońki", "Morąg", "Mordy", "Moryń", "Mosina", "Mrągowo", "Mrocza", "Mszana Dolna", "Mszczonów", "Murowana Goślina", "Muszyna", "Mysłowice", "Myszków", "Myszyniec", "Myślenice", "Myślibórz", "Nakło nad Notecią", "Nałęczów", "Namysłów", "Narol", "Nasielsk", "Nekla", "Nidzica", "Niemcza", "Niemodlin", "Niepołomice", "Nieszawa", "Nisko", "Nowa Dęba", "Nowa Ruda", "Nowa Sarzyna", "Nowa Sól", "Nowe", "Nowe Brzesko", "Nowe Miasteczko", "Nowe Miasto Lubawskie", "Nowe Miasto nad Pilicą", "Nowe Skalmierzyce", "Nowe Warpno", "Nowogard", "Nowogrodziec", "Nowogród", "Nowogród Bobrzański", "Nowy Dwór Gdański", "Nowy Dwór Mazowiecki", "Nowy Sącz", "Nowy Staw", "Nowy Targ", "Nowy Tomyśl", "Nowy Wiśnicz", "Nysa", "Oborniki", "Oborniki Śląskie", "Obrzycko", "Odolanów", "Ogrodzieniec", "Okonek", "Olecko", "Olesno", "Oleszyce", "Oleśnica", "Olkusz", "Olsztyn", "Olsztynek", "Olszyna", "Oława", "Opalenica", "Opatów", "Opoczno", "Opole", "Opole Lubelskie", "Orneta", "Orzesze", "Orzysz", "Osieczna", "Osiek", "Ostrołęka", "Ostroróg", "Ostrowiec Świętokrzyski", "Ostróda", "Ostrów Lubelski", "Ostrów Mazowiecka", "Ostrów Wielkopolski", "Ostrzeszów", "Ośno Lubuskie", "Oświęcim", "Otmuchów", "Otwock", "Ozimek", "Ozorków", "Ożarów", "Ożarów Mazowiecki", "Pabianice", "Paczków", "Pajęczno", "Pakość", "Parczew", "Pasłęk", "Pasym", "Pelplin", "Pełczyce", "Piaseczno", "Piaski", "Piastów", "Piechowice", "Piekary Śląskie", "Pieniężno", "Pieńsk", "Pieszyce", "Pilawa", "Pilica", "Pilzno", "Piła", "Piława Górna", "Pińczów", "Pionki", "Piotrków Kujawski", "Piotrków Trybunalski", "Pisz", "Piwniczna-Zdrój", "Pleszew", "Płock", "Płońsk", "Płoty", "Pniewy", "Pobiedziska", "Poddębice", "Podkowa Leśna", "Pogorzela", "Polanica-Zdrój", "Polanów", "Police", "Polkowice", "Połaniec", "Połczyn-Zdrój", "Poniatowa", "Poniec", "Poręba", "Poznań", "Prabuty", "Praszka", "Prochowice", "Proszowice", "Prószków", "Pruchnik", "Prudnik", "Prusice", "Pruszcz Gdański", "Pruszków", "Przasnysz", "Przecław", "Przedbórz", "Przedecz", "Przemków", "Przemyśl", "Przeworsk", "Przysucha", "Pszczyna", "Pszów", "Puck", "Puławy", "Pułtusk", "Puszczykowo", "Pyrzyce", "Pyskowice", "Pyzdry", "Rabka-Zdrój", "Raciąż", "Racibórz", "Radków", "Radlin", "Radłów", "Radom", "Radomsko", "Radomyśl Wielki", "Radymno", "Radziejów", "Radzionków", "Radzymin", "Radzyń Chełmiński", "Radzyń Podlaski", "Rajgród", "Rakoniewice", "Raszków", "Rawa Mazowiecka", "Rawicz", "Recz", "Reda", "Rejowiec Fabryczny", "Resko", "Reszel", "Rogoźno", "Ropczyce", "Różan", "Ruciane-Nida", "Ruda Śląska", "Rudnik nad Sanem", "Rumia", "Rybnik", "Rychwał", "Rydułtowy", "Rydzyna", "Ryglice", "Ryki", "Rymanów", "Ryn", "Rypin", "Rzepin", "Rzeszów", "Rzgów", "Sandomierz", "Sanok", "Sejny", "Serock", "Sędziszów", "Sędziszów Małopolski", "Sępopol", "Sępólno Krajeńskie", "Sianów", "Siechnice", "Siedlce", "Siemianowice Śląskie", "Siemiatycze", "Sieniawa", "Sieradz", "Sieraków", "Sierpc", "Siewierz", "Skalbmierz", "Skała", "Skarszewy", "Skaryszew", "Skarżysko-Kamienna", "Skawina", "Skępe", "Skierniewice", "Skoczów", "Skoki", "Skórcz", "Skwierzyna", "Sława", "Sławków", "Sławno", "Słomniki", "Słubice", "Słupca", "Słupsk", "Sobótka", "Sochaczew", "Sokołów Małopolski", "Sokołów Podlaski", "Sokółka", "Solec Kujawski", "Sompolno", "Sopot", "Sosnowiec", "Sośnicowice", "Stalowa Wola", "Starachowice", "Stargard Szczeciński", "Starogard Gdański", "Stary Sącz", "Staszów", "Stawiski", "Stawiszyn", "Stąporków", "Stęszew", "Stoczek Łukowski", "Stronie Śląskie", "Strumień", "Stryków", "Strzegom", "Strzelce Krajeńskie", "Strzelce Opolskie", "Strzelin", "Strzelno", "Strzyżów", "Sucha Beskidzka", "Suchań", "Suchedniów", "Suchowola", "Sulechów", "Sulejów", "Sulejówek", "Sulęcin", "Sulmierzyce", "Sułkowice", "Supraśl", "Suraż", "Susz", "Suwałki", "Swarzędz", "Syców", "Szadek", "Szamocin", "Szamotuły", "Szczawnica", "Szczawno-Zdrój", "Szczebrzeszyn", "Szczecin", "Szczecinek", "Szczekociny", "Szczucin", "Szczuczyn", "Szczyrk", "Szczytna", "Szczytno", "Szepietowo", "Szklarska Poręba", "Szlichtyngowa", "Szprotawa", "Sztum", "Szubin", "Szydłowiec", "Ścinawa", "Ślesin", "Śmigiel", "Śrem", "Środa Śląska", "Środa Wielkopolska", "Świątniki Górne", "Świdnica", "Świdnik", "Świdwin", "Świebodzice", "Świebodzin", "Świecie", "Świeradów-Zdrój", "Świerzawa", "Świętochłowice", "Świnoujście", "Tarczyn", "Tarnobrzeg", "Tarnogród", "Tarnowskie Góry", "Tarnów", "Tczew", "Terespol", "Tłuszcz", "Tolkmicko", "Tomaszów Lubelski", "Tomaszów Mazowiecki", "Toruń", "Torzym", "Toszek", "Trzcianka", "Trzciel", "Trzcińsko-Zdrój", "Trzebiatów", "Trzebinia", "Trzebnica", "Trzemeszno", "Tuchola", "Tuchów", "Tuczno", "Tuliszków", "Turek", "Tuszyn", "Twardogóra", "Tychowo", "Tychy", "Tyczyn", "Tykocin", "Tyszowce", "Ujazd", "Ujście", "Ulanów", "Uniejów", "Ustka", "Ustroń", "Ustrzyki Dolne", "Wadowice", "Wałbrzych", "Wałcz", "Warka", "Warszawa", "Warta", "Wasilków", "Wąbrzeźno", "Wąchock", "Wągrowiec", "Wąsosz", "Wejherowo", "Węgliniec", "Węgorzewo", "Węgorzyno", "Węgrów", "Wiązów", "Wieleń", "Wielichowo", "Wieliczka", "Wieluń", "Wieruszów", "Więcbork", "Wilamowice", "Wisła", "Witkowo", "Witnica", "Wleń", "Władysławowo", "Włocławek", "Włodawa", "Włoszczowa", "Wodzisław Śląski", "Wojcieszów", "Wojkowice", "Wojnicz", "Wolbórz", "Wolbrom", "Wolin", "Wolsztyn", "Wołczyn", "Wołomin", "Wołów", "Woźniki", "Wrocław", "Wronki", "Września", "Wschowa", "Wyrzysk", "Wysoka", "Wysokie Mazowieckie", "Wyszków", "Wyszogród", "Wyśmierzyce", "Zabłudów", "Zabrze", "Zagórów", "Zagórz", "Zakliczyn", "Zakopane", "Zakroczym", "Zalewo", "Zambrów", "Zamość", "Zator", "Zawadzkie", "Zawichost", "Zawidów", "Zawiercie", "Ząbki", "Ząbkowice Śląskie", "Zbąszynek", "Zbąszyń", "Zduny", "Zduńska Wola", "Zdzieszowice", "Zelów", "Zgierz", "Zgorzelec", "Zielona Góra", "Zielonka", "Ziębice", "Złocieniec", "Złoczew", "Złotoryja", "Złotów", "Złoty Stok", "Zwierzyniec", "Zwoleń", "Żabno", "Żagań", "Żarki", "Żarów", "Żary", "Żelechów", "Żerków", "Żmigród", "Żnin", "Żory", "Żukowo", "Żuromin", "Żychlin", "Żyrardów", "Żywiec" ], "city": [ "#{city_name}" ], "street_name": [ "#{street_prefix} #{Name.last_name}" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Polska" ] }; pl.company = { "suffix": [ "Inc", "and Sons", "LLC", "Group" ], "adjetive": [ "Adaptive", "Advanced", "Ameliorated", "Assimilated", "Automated", "Balanced", "Business-focused", "Centralized", "Cloned", "Compatible", "Configurable", "Cross-group", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "De-engineered", "Devolved", "Digitized", "Distributed", "Diverse", "Down-sized", "Enhanced", "Enterprise-wide", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Function-based", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Implemented", "Innovative", "Integrated", "Intuitive", "Inverse", "Managed", "Mandatory", "Monitored", "Multi-channelled", "Multi-lateral", "Multi-layered", "Multi-tiered", "Networked", "Object-based", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Pre-emptive", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Re-contextualized", "Re-engineered", "Reduced", "Reverse-engineered", "Right-sized", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Stand-alone", "Streamlined", "Switchable", "Synchronised", "Synergistic", "Synergized", "Team-oriented", "Total", "Triple-buffered", "Universal", "Up-sized", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary", "Vision-oriented" ], "descriptor":[ "24 hour", "24/7", "3rd generation", "4th generation", "5th generation", "6th generation", "actuating", "analyzing", "asymmetric", "asynchronous", "attitude-oriented", "background", "bandwidth-monitored", "bi-directional", "bifurcated", "bottom-line", "clear-thinking", "client-driven", "client-server", "coherent", "cohesive", "composite", "context-sensitive", "contextually-based", "content-based", "dedicated", "demand-driven", "didactic", "directional", "discrete", "disintermediate", "dynamic", "eco-centric", "empowering", "encompassing", "even-keeled", "executive", "explicit", "exuding", "fault-tolerant", "foreground", "fresh-thinking", "full-range", "global", "grid-enabled", "heuristic", "high-level", "holistic", "homogeneous", "human-resource", "hybrid", "impactful", "incremental", "intangible", "interactive", "intermediate", "leading edge", "local", "logistical", "maximized", "methodical", "mission-critical", "mobile", "modular", "motivating", "multimedia", "multi-state", "multi-tasking", "national", "needs-based", "neutral", "next generation", "non-volatile", "object-oriented", "optimal", "optimizing", "radical", "real-time", "reciprocal", "regional", "responsive", "scalable", "secondary", "solution-oriented", "stable", "static", "systematic", "systemic", "system-worthy", "tangible", "tertiary", "transitional", "uniform", "upward-trending", "user-facing", "value-added", "web-enabled", "well-modulated", "zero administration", "zero defect", "zero tolerance" ], "noun": [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "artificial intelligence", "array", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "database", "data-warehouse", "definition", "emulation", "encoding", "encryption", "extranet", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "Graphic Interface", "groupware", "Graphical User Interface", "hardware", "help-desk", "hierarchy", "hub", "implementation", "info-mediaries", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge user", "knowledge base", "local area network", "leverage", "matrices", "matrix", "methodology", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "open system", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "secured line", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "superstructure", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce" ], "bs_verb": [ "implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace", "enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize", "morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate", "synergize", "strategize", "deploy", "brand", "grow", "target", "syndicate", "synthesize", "deliver", "mesh", "incubate", "engage", "maximize", "benchmark", "expedite", "reintermediate", "whiteboard", "visualize", "repurpose", "innovate", "scale", "unleash", "drive", "extend", "engineer", "revolutionize", "generate", "exploit", "transition", "e-enable", "iterate", "cultivate", "matrix", "productize", "redefine", "recontextualize" ], "bs_adjective": [ "clicks-and-mortar", "value-added", "vertical", "proactive", "robust", "revolutionary", "scalable", "leading-edge", "innovative", "intuitive", "strategic", "e-business", "mission-critical", "sticky", "one-to-one", "24/7", "end-to-end", "global", "B2B", "B2C", "granular", "frictionless", "virtual", "viral", "dynamic", "24/365", "best-of-breed", "killer", "magnetic", "bleeding-edge", "web-enabled", "interactive", "dot-com", "sexy", "back-end", "real-time", "efficient", "front-end", "distributed", "seamless", "extensible", "turn-key", "world-class", "open-source", "cross-platform", "cross-media", "synergistic", "bricks-and-clicks", "out-of-the-box", "enterprise", "integrated", "impactful", "wireless", "transparent", "next-generation", "cutting-edge", "user-centric", "visionary", "customized", "ubiquitous", "plug-and-play", "collaborative", "compelling", "holistic", "rich" ], "bs_noun": [ "synergies", "web-readiness", "paradigms", "markets", "partnerships", "infrastructures", "platforms", "initiatives", "channels", "eyeballs", "communities", "ROI", "solutions", "e-tailers", "e-services", "action-items", "portals", "niches", "technologies", "content", "vortals", "supply-chains", "convergence", "relationships", "architectures", "interfaces", "e-markets", "e-commerce", "systems", "bandwidth", "infomediaries", "models", "mindshare", "deliverables", "users", "schemas", "networks", "applications", "metrics", "e-business", "functionalities", "experiences", "web services", "methodologies" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} and #{Name.last_name}" ] }; pl.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "pl", "com.pl", "net", "org" ] }; pl.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ], "supplemental": [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ] }; pl.phone_number = { "formats": [ "12-###-##-##", "13-###-##-##", "14-###-##-##", "15-###-##-##", "16-###-##-##", "17-###-##-##", "18-###-##-##", "22-###-##-##", "23-###-##-##", "24-###-##-##", "25-###-##-##", "29-###-##-##", "32-###-##-##", "33-###-##-##", "34-###-##-##", "41-###-##-##", "42-###-##-##", "43-###-##-##", "44-###-##-##", "46-###-##-##", "48-###-##-##", "52-###-##-##", "54-###-##-##", "55-###-##-##", "56-###-##-##", "58-###-##-##", "59-###-##-##", "61-###-##-##", "62-###-##-##", "63-###-##-##", "65-###-##-##", "67-###-##-##", "68-###-##-##", "71-###-##-##", "74-###-##-##", "75-###-##-##", "76-###-##-##", "77-###-##-##", "81-###-##-##", "82-###-##-##", "83-###-##-##", "84-###-##-##", "85-###-##-##", "86-###-##-##", "87-###-##-##", "89-###-##-##", "91-###-##-##", "94-###-##-##", "95-###-##-##" ] }; pl.cell_phone = { "formats": [ "50-###-##-##", "51-###-##-##", "53-###-##-##", "57-###-##-##", "60-###-##-##", "66-###-##-##", "69-###-##-##", "72-###-##-##", "73-###-##-##", "78-###-##-##", "79-###-##-##", "88-###-##-##" ] }; },{}],32:[function(require,module,exports){ var pt_BR = {}; module["exports"] = pt_BR; pt_BR.title = "Portuguese (Brazil)"; pt_BR.address = { "city_prefix": [ "Nova", "Velha", "Grande", "Vila", "Município de" ], "city_suffix": [ "do Descoberto", "de Nossa Senhora", "do Norte", "do Sul" ], "country": [ "Afeganistão", "Albânia", "Algéria", "Samoa", "Andorra", "Angola", "Anguilla", "Antigua and Barbada", "Argentina", "Armênia", "Aruba", "Austrália", "Áustria", "Alzerbajão", "Bahamas", "Barém", "Bangladesh", "Barbado", "Belgrado", "Bélgica", "Belize", "Benin", "Bermuda", "Bhutan", "Bolívia", "Bôsnia", "Botuasuna", "Bouvetoia", "Brasil", "Arquipélago de Chagos", "Ilhas Virgens", "Brunei", "Bulgária", "Burkina Faso", "Burundi", "Cambójia", "Camarões", "Canadá", "Cabo Verde", "Ilhas Caiman", "República da África Central", "Chad", "Chile", "China", "Ilhas Natal", "Ilhas Cocos", "Colômbia", "Comoros", "Congo", "Ilhas Cook", "Costa Rica", "Costa do Marfim", "Croácia", "Cuba", "Cyprus", "República Tcheca", "Dinamarca", "Djibouti", "Dominica", "República Dominicana", "Equador", "Egito", "El Salvador", "Guiné Equatorial", "Eritrea", "Estônia", "Etiópia", "Ilhas Faroe", "Malvinas", "Fiji", "Finlândia", "França", "Guiné Francesa", "Polinésia Francesa", "Gabão", "Gâmbia", "Georgia", "Alemanha", "Gana", "Gibraltar", "Grécia", "Groelândia", "Granada", "Guadalupe", "Guano", "Guatemala", "Guernsey", "Guiné", "Guiné-Bissau", "Guiana", "Haiti", "Heard Island and McDonald Islands", "Vaticano", "Honduras", "Hong Kong", "Hungria", "Iceland", "Índia", "Indonésia", "Irã", "Iraque", "Irlanda", "Ilha de Man", "Israel", "Itália", "Jamaica", "Japão", "Jersey", "Jordânia", "Cazaquistão", "Quênia", "Kiribati", "Coreia do Norte", "Coreia do Sul", "Kuwait", "Kyrgyz Republic", "República Democrática de Lao People", "Latvia", "Líbano", "Lesotho", "Libéria", "Libyan Arab Jamahiriya", "Liechtenstein", "Lituânia", "Luxemburgo", "Macao", "Macedônia", "Madagascar", "Malawi", "Malásia", "Maldives", "Mali", "Malta", "Ilhas Marshall", "Martinica", "Mauritânia", "Mauritius", "Mayotte", "México", "Micronésia", "Moldova", "Mônaco", "Mongólia", "Montenegro", "Montserrat", "Marrocos", "Moçambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Antilhas Holandesas", "Holanda", "Nova Caledonia", "Nova Zelândia", "Nicarágua", "Nigéria", "Niue", "Ilha Norfolk", "Northern Mariana Islands", "Noruega", "Oman", "Paquistão", "Palau", "Território da Palestina", "Panamá", "Nova Guiné Papua", "Paraguai", "Peru", "Filipinas", "Polônia", "Portugal", "Puerto Rico", "Qatar", "Romênia", "Rússia", "Ruanda", "São Bartolomeu", "Santa Helena", "Santa Lúcia", "Saint Martin", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tomé e Príncipe", "Arábia Saudita", "Senegal", "Sérvia", "Seychelles", "Serra Leoa", "Singapura", "Eslováquia", "Eslovênia", "Ilhas Salomão", "Somália", "África do Sul", "South Georgia and the South Sandwich Islands", "Spanha", "Sri Lanka", "Sudão", "Suriname", "Svalbard & Jan Mayen Islands", "Swaziland", "Suécia", "Suíça", "Síria", "Taiwan", "Tajiquistão", "Tanzânia", "Tailândia", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidá e Tobago", "Tunísia", "Turquia", "Turcomenistão", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ucrânia", "Emirados Árabes Unidos", "Reino Unido", "Estados Unidos da América", "Estados Unidos das Ilhas Virgens", "Uruguai", "Uzbequistão", "Vanuatu", "Venezuela", "Vietnã", "Wallis and Futuna", "Sahara", "Yemen", "Zâmbia", "Zimbábue" ], "building_number": [ "#####", "####", "###" ], "street_suffix": [ "Rua", "Avenida", "Travessa", "Ponte", "Alameda", "Marginal", "Viela", "Rodovia" ], "secondary_address": [ "Apto. ###", "Sobrado ##", "Casa #", "Lote ##", "Quadra ##" ], "postcode": [ "#####", "#####-###" ], "state": [ "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Distrito Federal", "Espírito Santo", "Goiás", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Minas Gerais", "Pará", "Paraíba", "Paraná", "Pernambuco", "Piauí", "Rio de Janeiro", "Rio Grande do Norte", "Rio Grande do Sul", "Rondônia", "Roraima", "Santa Catarina", "São Paulo", "Sergipe", "Tocantins" ], "state_abbr": [ "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP" ], "default_country": [ "Brasil" ] }; pt_BR.company = { "suffix": [ "S.A.", "LTDA", "e Associados", "Comércio" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} e #{Name.last_name}" ] }; pt_BR.internet = { "free_email": [ "gmail.com", "yahoo.com", "hotmail.com", "live.com", "bol.com.br" ], "domain_suffix": [ "br", "com", "biz", "info", "name", "net", "org" ] }; pt_BR.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ] }; pt_BR.name = { "first_name": [ "Alessandro", "Alessandra", "Alexandre", "Aline", "Antônio", "Breno", "Bruna", "Carlos", "Carla", "Célia", "Cecília", "César", "Danilo", "Dalila", "Deneval", "Eduardo", "Eduarda", "Esther", "Elísio", "Fábio", "Fabrício", "Fabrícia", "Félix", "Felícia", "Feliciano", "Frederico", "Fabiano", "Gustavo", "Guilherme", "Gúbio", "Heitor", "Hélio", "Hugo", "Isabel", "Isabela", "Ígor", "João", "Joana", "Júlio César", "Júlio", "Júlia", "Janaína", "Karla", "Kléber", "Lucas", "Lorena", "Lorraine", "Larissa", "Ladislau", "Marcos", "Meire", "Marcelo", "Marcela", "Margarida", "Mércia", "Márcia", "Marli", "Morgana", "Maria", "Norberto", "Natália", "Nataniel", "Núbia", "Ofélia", "Paulo", "Paula", "Pablo", "Pedro", "Raul", "Rafael", "Rafaela", "Ricardo", "Roberto", "Roberta", "Sílvia", "Sílvia", "Silas", "Suélen", "Sara", "Salvador", "Sirineu", "Talita", "Tertuliano", "Vicente", "Víctor", "Vitória", "Yango", "Yago", "Yuri", "Washington", "Warley" ], "last_name": [ "Silva", "Souza", "Carvalho", "Santos", "Reis", "Xavier", "Franco", "Braga", "Macedo", "Batista", "Barros", "Moraes", "Costa", "Pereira", "Carvalho", "Melo", "Saraiva", "Nogueira", "Oliveira", "Martins", "Moreira", "Albuquerque" ], "prefix": [ "Sr.", "Sra.", "Srta.", "Dr." ], "suffix": [ "Jr.", "Neto", "Filho" ] }; pt_BR.phone_number = { "formats": [ "(##) ####-####", "+55 (##) ####-####", "(##) #####-####" ] }; },{}],33:[function(require,module,exports){ var ru = {}; module["exports"] = ru; ru.title = "Russian"; ru.separator = " и "; ru.address = { "country": [ "Австралия", "Австрия", "Азербайджан", "Албания", "Алжир", "Американское Самоа (не признана)", "Ангилья", "Ангола", "Андорра", "Антарктика (не признана)", "Антигуа и Барбуда", "Антильские Острова (не признана)", "Аомынь (не признана)", "Аргентина", "Армения", "Афганистан", "Багамские Острова", "Бангладеш", "Барбадос", "Бахрейн", "Беларусь", "Белиз", "Бельгия", "Бенин", "Болгария", "Боливия", "Босния и Герцеговина", "Ботсвана", "Бразилия", "Бруней", "Буркина-Фасо", "Бурунди", "Бутан", "Вануату", "Ватикан", "Великобритания", "Венгрия", "Венесуэла", "Восточный Тимор", "Вьетнам", "Габон", "Гаити", "Гайана", "Гамбия", "Гана", "Гваделупа (не признана)", "Гватемала", "Гвиана (не признана)", "Гвинея", "Гвинея-Бисау", "Германия", "Гондурас", "Гренада", "Греция", "Грузия", "Дания", "Джибути", "Доминика", "Доминиканская Республика", "Египет", "Замбия", "Зимбабве", "Израиль", "Индия", "Индонезия", "Иордания", "Ирак", "Иран", "Ирландия", "Исландия", "Испания", "Италия", "Йемен", "Кабо-Верде", "Казахстан", "Камбоджа", "Камерун", "Канада", "Катар", "Кения", "Кипр", "Кирибати", "Китай", "Колумбия", "Коморские Острова", "Конго", "Демократическая Республика", "Корея (Северная)", "Корея (Южная)", "Косово", "Коста-Рика", "Кот-д'Ивуар", "Куба", "Кувейт", "Кука острова", "Кыргызстан", "Лаос", "Латвия", "Лесото", "Либерия", "Ливан", "Ливия", "Литва", "Лихтенштейн", "Люксембург", "Маврикий", "Мавритания", "Мадагаскар", "Македония", "Малави", "Малайзия", "Мали", "Мальдивы", "Мальта", "Маршалловы Острова", "Мексика", "Микронезия", "Мозамбик", "Молдова", "Монако", "Монголия", "Марокко", "Мьянма", "Намибия", "Науру", "Непал", "Нигер", "Нигерия", "Нидерланды", "Никарагуа", "Новая Зеландия", "Норвегия", "Объединенные Арабские Эмираты", "Оман", "Пакистан", "Палау", "Панама", "Папуа — Новая Гвинея", "Парагвай", "Перу", "Польша", "Португалия", "Республика Конго", "Россия", "Руанда", "Румыния", "Сальвадор", "Самоа", "Сан-Марино", "Сан-Томе и Принсипи", "Саудовская Аравия", "Свазиленд", "Сейшельские острова", "Сенегал", "Сент-Винсент и Гренадины", "Сент-Киттс и Невис", "Сент-Люсия", "Сербия", "Сингапур", "Сирия", "Словакия", "Словения", "Соединенные Штаты Америки", "Соломоновы Острова", "Сомали", "Судан", "Суринам", "Сьерра-Леоне", "Таджикистан", "Таиланд", "Тайвань (не признана)", "Тамил-Илам (не признана)", "Танзания", "Тёркс и Кайкос (не признана)", "Того", "Токелау (не признана)", "Тонга", "Тринидад и Тобаго", "Тувалу", "Тунис", "Турецкая Республика Северного Кипра (не признана)", "Туркменистан", "Турция", "Уганда", "Узбекистан", "Украина", "Уругвай", "Фарерские Острова (не признана)", "Фиджи", "Филиппины", "Финляндия", "Франция", "Французская Полинезия (не признана)", "Хорватия", "Центральноафриканская Республика", "Чад", "Черногория", "Чехия", "Чили", "Швейцария", "Швеция", "Шри-Ланка", "Эквадор", "Экваториальная Гвинея", "Эритрея", "Эстония", "Эфиопия", "Южно-Африканская Республика", "Ямайка", "Япония" ], "building_number": [ "###" ], "street_suffix": [ "ул.", "улица", "проспект", "пр.", "площадь", "пл." ], "secondary_address": [ "кв. ###" ], "postcode": [ "######" ], "state": [ "Республика Адыгея", "Республика Башкортостан", "Республика Бурятия", "Республика Алтай Республика Дагестан", "Республика Ингушетия", "Кабардино-Балкарская Республика", "Республика Калмыкия", "Республика Карачаево-Черкессия", "Республика Карелия", "Республика Коми", "Республика Марий Эл", "Республика Мордовия", "Республика Саха (Якутия)", "Республика Северная Осетия-Алания", "Республика Татарстан", "Республика Тыва", "Удмуртская Республика", "Республика Хакасия", "Чувашская Республика", "Алтайский край", "Краснодарский край", "Красноярский край", "Приморский край", "Ставропольский край", "Хабаровский край", "Амурская область", "Архангельская область", "Астраханская область", "Белгородская область", "Брянская область", "Владимирская область", "Волгоградская область", "Вологодская область", "Воронежская область", "Ивановская область", "Иркутская область", "Калиниградская область", "Калужская область", "Камчатская область", "Кемеровская область", "Кировская область", "Костромская область", "Курганская область", "Курская область", "Ленинградская область", "Липецкая область", "Магаданская область", "Московская область", "Мурманская область", "Нижегородская область", "Новгородская область", "Новосибирская область", "Омская область", "Оренбургская область", "Орловская область", "Пензенская область", "Пермская область", "Псковская область", "Ростовская область", "Рязанская область", "Самарская область", "Саратовская область", "Сахалинская область", "Свердловская область", "Смоленская область", "Тамбовская область", "Тверская область", "Томская область", "Тульская область", "Тюменская область", "Ульяновская область", "Челябинская область", "Читинская область", "Ярославская область", "Еврейская автономная область", "Агинский Бурятский авт. округ", "Коми-Пермяцкий автономный округ", "Корякский автономный округ", "Ненецкий автономный округ", "Таймырский (Долгано-Ненецкий) автономный округ", "Усть-Ордынский Бурятский автономный округ", "Ханты-Мансийский автономный округ", "Чукотский автономный округ", "Эвенкийский автономный округ", "Ямало-Ненецкий автономный округ", "Чеченская Республика" ], "street_title": [ "Советская", "Молодежная", "Центральная", "Школьная", "Новая", "Садовая", "Лесная", "Набережная", "Ленина", "Мира", "Октябрьская", "Зеленая", "Комсомольская", "Заречная", "Первомайская", "Гагарина", "Полевая", "Луговая", "Пионерская", "Кирова", "Юбилейная", "Северная", "Пролетарская", "Степная", "Пушкина", "Калинина", "Южная", "Колхозная", "Рабочая", "Солнечная", "Железнодорожная", "Восточная", "Заводская", "Чапаева", "Нагорная", "Строителей", "Береговая", "Победы", "Горького", "Кооперативная", "Красноармейская", "Совхозная", "Речная", "Школьный", "Спортивная", "Озерная", "Строительная", "Парковая", "Чкалова", "Мичурина", "речень улиц", "Подгорная", "Дружбы", "Почтовая", "Партизанская", "Вокзальная", "Лермонтова", "Свободы", "Дорожная", "Дачная", "Маяковского", "Западная", "Фрунзе", "Дзержинского", "Московская", "Свердлова", "Некрасова", "Гоголя", "Красная", "Трудовая", "Шоссейная", "Чехова", "Коммунистическая", "Труда", "Комарова", "Матросова", "Островского", "Сосновая", "Клубная", "Куйбышева", "Крупской", "Березовая", "Карла Маркса", "8 Марта", "Больничная", "Садовый", "Интернациональная", "Суворова", "Цветочная", "Трактовая", "Ломоносова", "Горная", "Космонавтов", "Энергетиков", "Шевченко", "Весенняя", "Механизаторов", "Коммунальная", "Лесной", "40 лет Победы", "Майская" ], "city_name": [ "Москва", "Владимир", "Санкт-Петербург", "Новосибирск", "Екатеринбург", "Нижний Новгород", "Самара", "Казань", "Омск", "Челябинск", "Ростов-на-Дону", "Уфа", "Волгоград", "Пермь", "Красноярск", "Воронеж", "Саратов", "Краснодар", "Тольятти", "Ижевск", "Барнаул", "Ульяновск", "Тюмень", "Иркутск", "Владивосток", "Ярославль", "Хабаровск", "Махачкала", "Оренбург", "Новокузнецк", "Томск", "Кемерово", "Рязань", "Астрахань", "Пенза", "Липецк", "Тула", "Киров", "Чебоксары", "Курск", "Брянскm Магнитогорск", "Иваново", "Тверь", "Ставрополь", "Белгород", "Сочи" ], "city": [ "#{Address.city_name}" ], "street_name": [ "#{street_suffix} #{Address.street_title}", "#{Address.street_title} #{street_suffix}" ], "street_address": [ "#{street_name}, #{building_number}" ], "default_country": [ "Россия" ] }; ru.internet = { "free_email": [ "yandex.ru", "ya.ru", "mail.ru", "gmail.com", "yahoo.com", "hotmail.com" ], "domain_suffix": [ "com", "ru", "info", "рф", "net", "org" ] }; ru.name = { "male_first_name": [ "Александр", "Алексей", "Альберт", "Анатолий", "Андрей", "Антон", "Аркадий", "Арсений", "Артём", "Борис", "Вадим", "Валентин", "Валерий", "Василий", "Виктор", "Виталий", "Владимир", "Владислав", "Вячеслав", "Геннадий", "Георгий", "Герман", "Григорий", "Даниил", "Денис", "Дмитрий", "Евгений", "Егор", "Иван", "Игнатий", "Игорь", "Илья", "Константин", "Лаврентий", "Леонид", "Лука", "Макар", "Максим", "Матвей", "Михаил", "Никита", "Николай", "Олег", "Роман", "Семён", "Сергей", "Станислав", "Степан", "Фёдор", "Эдуард", "Юрий", "Ярослав" ], "male_middle_name": [ "Александрович", "Алексеевич", "Альбертович", "Анатольевич", "Андреевич", "Антонович", "Аркадьевич", "Арсеньевич", "Артёмович", "Борисович", "Вадимович", "Валентинович", "Валерьевич", "Васильевич", "Викторович", "Витальевич", "Владимирович", "Владиславович", "Вячеславович", "Геннадьевич", "Георгиевич", "Германович", "Григорьевич", "Даниилович", "Денисович", "Дмитриевич", "Евгеньевич", "Егорович", "Иванович", "Игнатьевич", "Игоревич", "Ильич", "Константинович", "Лаврентьевич", "Леонидович", "Лукич", "Макарович", "Максимович", "Матвеевич", "Михайлович", "Никитич", "Николаевич", "Олегович", "Романович", "Семёнович", "Сергеевич", "Станиславович", "Степанович", "Фёдорович", "Эдуардович", "Юрьевич", "Ярославович" ], "male_last_name": [ "Смирнов", "Иванов", "Кузнецов", "Попов", "Соколов", "Лебедев", "Козлов", "Новиков", "Морозов", "Петров", "Волков", "Соловьев", "Васильев", "Зайцев", "Павлов", "Семенов", "Голубев", "Виноградов", "Богданов", "Воробьев", "Федоров", "Михайлов", "Беляев", "Тарасов", "Белов", "Комаров", "Орлов", "Киселев", "Макаров", "Андреев", "Ковалев", "Ильин", "Гусев", "Титов", "Кузьмин", "Кудрявцев", "Баранов", "Куликов", "Алексеев", "Степанов", "Яковлев", "Сорокин", "Сергеев", "Романов", "Захаров", "Борисов", "Королев", "Герасимов", "Пономарев", "Григорьев", "Лазарев", "Медведев", "Ершов", "Никитин", "Соболев", "Рябов", "Поляков", "Цветков", "Данилов", "Жуков", "Фролов", "Журавлев", "Николаев", "Крылов", "Максимов", "Сидоров", "Осипов", "Белоусов", "Федотов", "Дорофеев", "Егоров", "Матвеев", "Бобров", "Дмитриев", "Калинин", "Анисимов", "Петухов", "Антонов", "Тимофеев", "Никифоров", "Веселов", "Филиппов", "Марков", "Большаков", "Суханов", "Миронов", "Ширяев", "Александров", "Коновалов", "Шестаков", "Казаков", "Ефимов", "Денисов", "Громов", "Фомин", "Давыдов", "Мельников", "Щербаков", "Блинов", "Колесников", "Карпов", "Афанасьев", "Власов", "Маслов", "Исаков", "Тихонов", "Аксенов", "Гаврилов", "Родионов", "Котов", "Горбунов", "Кудряшов", "Быков", "Зуев", "Третьяков", "Савельев", "Панов", "Рыбаков", "Суворов", "Абрамов", "Воронов", "Мухин", "Архипов", "Трофимов", "Мартынов", "Емельянов", "Горшков", "Чернов", "Овчинников", "Селезнев", "Панфилов", "Копылов", "Михеев", "Галкин", "Назаров", "Лобанов", "Лукин", "Беляков", "Потапов", "Некрасов", "Хохлов", "Жданов", "Наумов", "Шилов", "Воронцов", "Ермаков", "Дроздов", "Игнатьев", "Савин", "Логинов", "Сафонов", "Капустин", "Кириллов", "Моисеев", "Елисеев", "Кошелев", "Костин", "Горбачев", "Орехов", "Ефремов", "Исаев", "Евдокимов", "Калашников", "Кабанов", "Носков", "Юдин", "Кулагин", "Лапин", "Прохоров", "Нестеров", "Харитонов", "Агафонов", "Муравьев", "Ларионов", "Федосеев", "Зимин", "Пахомов", "Шубин", "Игнатов", "Филатов", "Крюков", "Рогов", "Кулаков", "Терентьев", "Молчанов", "Владимиров", "Артемьев", "Гурьев", "Зиновьев", "Гришин", "Кононов", "Дементьев", "Ситников", "Симонов", "Мишин", "Фадеев", "Комиссаров", "Мамонтов", "Носов", "Гуляев", "Шаров", "Устинов", "Вишняков", "Евсеев", "Лаврентьев", "Брагин", "Константинов", "Корнилов", "Авдеев", "Зыков", "Бирюков", "Шарапов", "Никонов", "Щукин", "Дьячков", "Одинцов", "Сазонов", "Якушев", "Красильников", "Гордеев", "Самойлов", "Князев", "Беспалов", "Уваров", "Шашков", "Бобылев", "Доронин", "Белозеров", "Рожков", "Самсонов", "Мясников", "Лихачев", "Буров", "Сысоев", "Фомичев", "Русаков", "Стрелков", "Гущин", "Тетерин", "Колобов", "Субботин", "Фокин", "Блохин", "Селиверстов", "Пестов", "Кондратьев", "Силин", "Меркушев", "Лыткин", "Туров" ], "female_first_name": [ "Анна", "Алёна", "Алевтина", "Александра", "Алина", "Алла", "Анастасия", "Ангелина", "Анжела", "Анжелика", "Антонида", "Антонина", "Анфиса", "Арина", "Валентина", "Валерия", "Варвара", "Василиса", "Вера", "Вероника", "Виктория", "Галина", "Дарья", "Евгения", "Екатерина", "Елена", "Елизавета", "Жанна", "Зинаида", "Зоя", "Ирина", "Кира", "Клавдия", "Ксения", "Лариса", "Лидия", "Любовь", "Людмила", "Маргарита", "Марина", "Мария", "Надежда", "Наталья", "Нина", "Оксана", "Ольга", "Раиса", "Регина", "Римма", "Светлана", "София", "Таисия", "Тамара", "Татьяна", "Ульяна", "Юлия" ], "female_middle_name": [ "Александровна", "Алексеевна", "Альбертовна", "Анатольевна", "Андреевна", "Антоновна", "Аркадьевна", "Арсеньевна", "Артёмовна", "Борисовна", "Вадимовна", "Валентиновна", "Валерьевна", "Васильевна", "Викторовна", "Витальевна", "Владимировна", "Владиславовна", "Вячеславовна", "Геннадьевна", "Георгиевна", "Германовна", "Григорьевна", "Данииловна", "Денисовна", "Дмитриевна", "Евгеньевна", "Егоровна", "Ивановна", "Игнатьевна", "Игоревна", "Ильинична", "Константиновна", "Лаврентьевна", "Леонидовна", "Макаровна", "Максимовна", "Матвеевна", "Михайловна", "Никитична", "Николаевна", "Олеговна", "Романовна", "Семёновна", "Сергеевна", "Станиславовна", "Степановна", "Фёдоровна", "Эдуардовна", "Юрьевна", "Ярославовна" ], "female_last_name": [ "Смирнова", "Иванова", "Кузнецова", "Попова", "Соколова", "Лебедева", "Козлова", "Новикова", "Морозова", "Петрова", "Волкова", "Соловьева", "Васильева", "Зайцева", "Павлова", "Семенова", "Голубева", "Виноградова", "Богданова", "Воробьева", "Федорова", "Михайлова", "Беляева", "Тарасова", "Белова", "Комарова", "Орлова", "Киселева", "Макарова", "Андреева", "Ковалева", "Ильина", "Гусева", "Титова", "Кузьмина", "Кудрявцева", "Баранова", "Куликова", "Алексеева", "Степанова", "Яковлева", "Сорокина", "Сергеева", "Романова", "Захарова", "Борисова", "Королева", "Герасимова", "Пономарева", "Григорьева", "Лазарева", "Медведева", "Ершова", "Никитина", "Соболева", "Рябова", "Полякова", "Цветкова", "Данилова", "Жукова", "Фролова", "Журавлева", "Николаева", "Крылова", "Максимова", "Сидорова", "Осипова", "Белоусова", "Федотова", "Дорофеева", "Егорова", "Матвеева", "Боброва", "Дмитриева", "Калинина", "Анисимова", "Петухова", "Антонова", "Тимофеева", "Никифорова", "Веселова", "Филиппова", "Маркова", "Большакова", "Суханова", "Миронова", "Ширяева", "Александрова", "Коновалова", "Шестакова", "Казакова", "Ефимова", "Денисова", "Громова", "Фомина", "Давыдова", "Мельникова", "Щербакова", "Блинова", "Колесникова", "Карпова", "Афанасьева", "Власова", "Маслова", "Исакова", "Тихонова", "Аксенова", "Гаврилова", "Родионова", "Котова", "Горбунова", "Кудряшова", "Быкова", "Зуева", "Третьякова", "Савельева", "Панова", "Рыбакова", "Суворова", "Абрамова", "Воронова", "Мухина", "Архипова", "Трофимова", "Мартынова", "Емельянова", "Горшкова", "Чернова", "Овчинникова", "Селезнева", "Панфилова", "Копылова", "Михеева", "Галкина", "Назарова", "Лобанова", "Лукина", "Белякова", "Потапова", "Некрасова", "Хохлова", "Жданова", "Наумова", "Шилова", "Воронцова", "Ермакова", "Дроздова", "Игнатьева", "Савина", "Логинова", "Сафонова", "Капустина", "Кириллова", "Моисеева", "Елисеева", "Кошелева", "Костина", "Горбачева", "Орехова", "Ефремова", "Исаева", "Евдокимова", "Калашникова", "Кабанова", "Носкова", "Юдина", "Кулагина", "Лапина", "Прохорова", "Нестерова", "Харитонова", "Агафонова", "Муравьева", "Ларионова", "Федосеева", "Зимина", "Пахомова", "Шубина", "Игнатова", "Филатова", "Крюкова", "Рогова", "Кулакова", "Терентьева", "Молчанова", "Владимирова", "Артемьева", "Гурьева", "Зиновьева", "Гришина", "Кононова", "Дементьева", "Ситникова", "Симонова", "Мишина", "Фадеева", "Комиссарова", "Мамонтова", "Носова", "Гуляева", "Шарова", "Устинова", "Вишнякова", "Евсеева", "Лаврентьева", "Брагина", "Константинова", "Корнилова", "Авдеева", "Зыкова", "Бирюкова", "Шарапова", "Никонова", "Щукина", "Дьячкова", "Одинцова", "Сазонова", "Якушева", "Красильникова", "Гордеева", "Самойлова", "Князева", "Беспалова", "Уварова", "Шашкова", "Бобылева", "Доронина", "Белозерова", "Рожкова", "Самсонова", "Мясникова", "Лихачева", "Бурова", "Сысоева", "Фомичева", "Русакова", "Стрелкова", "Гущина", "Тетерина", "Колобова", "Субботина", "Фокина", "Блохина", "Селиверстова", "Пестова", "Кондратьева", "Силина", "Меркушева", "Лыткина", "Турова" ], "name": [ "#{male_first_name} #{male_last_name}", "#{male_last_name} #{male_first_name}", "#{male_first_name} #{male_middle_name} #{male_last_name}", "#{male_last_name} #{male_first_name} #{male_middle_name}", "#{female_first_name} #{female_last_name}", "#{female_last_name} #{female_first_name}", "#{female_first_name} #{female_middle_name} #{female_last_name}", "#{female_last_name} #{female_first_name} #{female_middle_name}" ] }; ru.phone_number = { "formats": [ "(9##)###-##-##" ] }; ru.commerce = { "color": [ "красный", "зеленый", "синий", "желтый", "багровый", "мятный", "зеленовато-голубой", "белый", "черный", "оранжевый", "розовый", "серый", "красно-коричневый", "фиолетовый", "бирюзовый", "желто-коричневый", "небесно голубой", "оранжево-розовый", "темно-фиолетовый", "орхидный", "оливковый", "пурпурный", "лимонный", "кремовый", "сине-фиолетовый", "золотой", "красно-пурпурный", "голубой", "лазурный", "лиловый", "серебряный" ], "department": [ "Книги", "Фильмы", "музыка", "игры", "Электроника", "компьютеры", "Дом", "садинструмент", "Бакалея", "здоровье", "красота", "Игрушки", "детское", "для малышей", "Одежда", "обувь", "украшения", "Спорт", "туризм", "Автомобильное", "промышленное" ], "product_name": { "adjective": [ "Маленький", "Эргономичный", "Грубый", "Интеллектуальный", "Великолепный", "Невероятный", "Фантастический", "Практчиный", "Лоснящийся", "Потрясающий" ], "material": [ "Стальной", "Деревянный", "Бетонный", "Пластиковый", "Хлопковый", "Гранитный", "Резиновый" ], "product": [ "Стул", "Автомобиль", "Компьютер", "Берет", "Кулон", "Стол", "Свитер", "Ремень", "Ботинок" ] } }; ru.company = { "prefix": [ "ИП", "ООО", "ЗАО", "ОАО", "НКО", "ТСЖ", "ОП" ], "suffix": [ "Снаб", "Торг", "Пром", "Трейд", "Сбыт" ], "name": [ "#{prefix} #{Name.female_first_name}", "#{prefix} #{Name.male_first_name}", "#{prefix} #{Name.male_last_name}", "#{prefix} #{suffix}#{suffix}", "#{prefix} #{suffix}#{suffix}#{suffix}", "#{prefix} #{Address.city_name}#{suffix}", "#{prefix} #{Address.city_name}#{suffix}#{suffix}", "#{prefix} #{Address.city_name}#{suffix}#{suffix}#{suffix}" ] }; },{}],34:[function(require,module,exports){ var sk = {}; module["exports"] = sk; sk.title = "Slovakian"; sk.address = { "city_prefix": [ "North", "East", "West", "South", "New", "Lake", "Port" ], "city_suffix": [ "town", "ton", "land", "ville", "berg", "burgh", "borough", "bury", "view", "port", "mouth", "stad", "furt", "chester", "mouth", "fort", "haven", "side", "shire" ], "country": [ "Afganistan", "Afgánsky islamský štát", "Albánsko", "Albánska republika", "Alžírsko", "Alžírska demokratická ľudová republika", "Andorra", "Andorrské kniežatsvo", "Angola", "Angolská republika", "Antigua a Barbuda", "Antigua a Barbuda", "Argentína", "Argentínska republika", "Arménsko", "Arménska republika", "Austrália", "Austrálsky zväz", "Azerbajdžan", "Azerbajdžanská republika", "Bahamy", "Bahamské spoločenstvo", "Bahrajn", "Bahrajnské kráľovstvo", "Bangladéš", "Bangladéšska ľudová republika", "Barbados", "Barbados", "Belgicko", "Belgické kráľovstvo", "Belize", "Belize", "Benin", "Beninská republika", "Bhután", "Bhutánske kráľovstvo", "Bielorusko", "Bieloruská republika", "Bolívia", "Bolívijská republika", "Bosna a Hercegovina", "Republika Bosny a Hercegoviny", "Botswana", "Botswanská republika", "Brazília", "Brazílska federatívna republika", "Brunej", "Brunejský sultanát", "Bulharsko", "Bulharská republika", "Burkina Faso", "Burkina Faso", "Burundi", "Burundská republika", "Cyprus", "Cyperská republika", "Čad", "Republika Čad", "Česko", "Česká republika", "Čína", "Čínska ľudová republika", "Dánsko", "Dánsko kráľovstvo", "Dominika", "Spoločenstvo Dominika", "Dominikánska republika", "Dominikánska republika", "Džibutsko", "Džibutská republika", "Egypt", "Egyptská arabská republika", "Ekvádor", "Ekvádorská republika", "Eritrea", "Eritrejský štát", "Estónsko", "Estónska republika", "Etiópia", "Etiópska federatívna demokratická republika", "Fidži", "Republika ostrovy Fidži", "Filipíny", "Filipínska republika", "Fínsko", "Fínska republika", "Francúzsko", "Francúzska republika", "Gabon", "Gabonská republika", "Gambia", "Gambijská republika", "Ghana", "Ghanská republika", "Grécko", "Helénska republika", "Grenada", "Grenada", "Gruzínsko", "Gruzínsko", "Guatemala", "Guatemalská republika", "Guinea", "Guinejská republika", "Guinea-Bissau", "Republika Guinea-Bissau", "Guayana", "Guayanská republika", "Haiti", "Republika Haiti", "Holandsko", "Holandské kráľovstvo", "Honduras", "Honduraská republika", "Chile", "Čílska republika", "Chorvátsko", "Chorvátska republika", "India", "Indická republika", "Indonézia", "Indonézska republika", "Irak", "Iracká republika", "Irán", "Iránska islamská republika", "Island", "Islandská republika", "Izrael", "Štát Izrael", "Írsko", "Írska republika", "Jamajka", "Jamajka", "Japonsko", "Japonsko", "Jemen", "Jemenská republika", "Jordánsko", "Jordánske hášimovské kráľovstvo", "Južná Afrika", "Juhoafrická republika", "Kambodža", "Kambodžské kráľovstvo", "Kamerun", "Kamerunská republika", "Kanada", "Kanada", "Kapverdy", "Kapverdská republika", "Katar", "Štát Katar", "Kazachstan", "Kazašská republika", "Keňa", "Kenská republika", "Kirgizsko", "Kirgizská republika", "Kiribati", "Kiribatská republika", "Kolumbia", "Kolumbijská republika", "Komory", "Komorská únia", "Kongo", "Konžská demokratická republika", "Kongo (\"Brazzaville\")", "Konžská republika", "Kórea (\"Južná\")", "Kórejská republika", "Kórea (\"Severná\")", "Kórejská ľudovodemokratická republika", "Kostarika", "Kostarická republika", "Kuba", "Kubánska republika", "Kuvajt", "Kuvajtský štát", "Laos", "Laoská ľudovodemokratická republika", "Lesotho", "Lesothské kráľovstvo", "Libanon", "Libanonská republika", "Libéria", "Libérijská republika", "Líbya", "Líbyjská arabská ľudová socialistická džamáhírija", "Lichtenštajnsko", "Lichtenštajnské kniežatstvo", "Litva", "Litovská republika", "Lotyšsko", "Lotyšská republika", "Luxembursko", "Luxemburské veľkovojvodstvo", "Macedónsko", "Macedónska republika", "Madagaskar", "Madagaskarská republika", "Maďarsko", "Maďarská republika", "Malajzia", "Malajzia", "Malawi", "Malawijská republika", "Maldivy", "Maldivská republika", "Mali", "Malijská republika", "Malta", "Malta", "Maroko", "Marocké kráľovstvo", "Marshallove ostrovy", "Republika Marshallových ostrovy", "Mauritánia", "Mauritánska islamská republika", "Maurícius", "Maurícijská republika", "Mexiko", "Spojené štáty mexické", "Mikronézia", "Mikronézske federatívne štáty", "Mjanmarsko", "Mjanmarský zväz", "Moldavsko", "Moldavská republika", "Monako", "Monacké kniežatstvo", "Mongolsko", "Mongolsko", "Mozambik", "Mozambická republika", "Namíbia", "Namíbijská republika", "Nauru", "Naurská republika", "Nemecko", "Nemecká spolková republika", "Nepál", "Nepálske kráľovstvo", "Niger", "Nigerská republika", "Nigéria", "Nigérijská federatívna republika", "Nikaragua", "Nikaragujská republika", "Nový Zéland", "Nový Zéland", "Nórsko", "Nórske kráľovstvo", "Omán", "Ománsky sultanát", "Pakistan", "Pakistanská islamská republika", "Palau", "Palauská republika", "Panama", "Panamská republika", "Papua-Nová Guinea", "Nezávislý štát Papua-Nová Guinea", "Paraguaj", "Paraguajská republika", "Peru", "Peruánska republika", "Pobrežie Slonoviny", "Republika Pobrežie Slonoviny", "Poľsko", "Poľská republika", "Portugalsko", "Portugalská republika", "Rakúsko", "Rakúska republika", "Rovníková Guinea", "Republika Rovníková Guinea", "Rumunsko", "Rumunsko", "Rusko", "Ruská federácia", "Rwanda", "Rwandská republika", "Salvádor", "Salvádorská republika", "Samoa", "Nezávislý štát Samoa", "San Maríno", "Sanmarínska republika", "Saudská Arábia", "Kráľovstvo Saudskej Arábie", "Senegal", "Senegalská republika", "Seychely", "Seychelská republika", "Sierra Leone", "Republika Sierra Leone", "Singapur", "Singapurska republika", "Slovensko", "Slovenská republika", "Slovinsko", "Slovinská republika", "Somálsko", "Somálska demokratická republika", "Spojené arabské emiráty", "Spojené arabské emiráty", "Spojené štáty americké", "Spojené štáty americké", "Srbsko a Čierna Hora", "Srbsko a Čierna Hora", "Srí Lanka", "Demokratická socialistická republika Srí Lanka", "Stredoafrická republika", "Stredoafrická republika", "Sudán", "Sudánska republika", "Surinam", "Surinamská republika", "Svazijsko", "Svazijské kráľovstvo", "Svätá Lucia", "Svätá Lucia", "Svätý Krištof a Nevis", "Federácia Svätý Krištof a Nevis", "Sv. Tomáš a Princov Ostrov", "Demokratická republika Svätý Tomáš a Princov Ostrov", "Sv. Vincent a Grenadíny", "Svätý Vincent a Grenadíny", "Sýria", "Sýrska arabská republika", "Šalamúnove ostrovy", "Šalamúnove ostrovy", "Španielsko", "Španielske kráľovstvo", "Švajčiarsko", "Švajčiarska konfederácia", "Švédsko", "Švédske kráľovstvo", "Tadžikistan", "Tadžická republika", "Taliansko", "Talianska republika", "Tanzánia", "Tanzánijská zjednotená republika", "Thajsko", "Thajské kráľovstvo", "Togo", "Tožská republika", "Tonga", "Tonžské kráľovstvo", "Trinidad a Tobago", "Republika Trinidad a Tobago", "Tunisko", "Tuniská republika", "Turecko", "Turecká republika", "Turkménsko", "Turkménsko", "Tuvalu", "Tuvalu", "Uganda", "Ugandská republika", "Ukrajina", "Uruguaj", "Uruguajská východná republika", "Uzbekistan", "Vanuatu", "Vanuatská republika", "Vatikán", "Svätá Stolica", "Veľká Británia", "Spojené kráľovstvo Veľkej Británie a Severného Írska", "Venezuela", "Venezuelská bolívarovská republika", "Vietnam", "Vietnamská socialistická republika", "Východný Timor", "Demokratická republika Východný Timor", "Zambia", "Zambijská republika", "Zimbabwe", "Zimbabwianska republika" ], "building_number": [ "#", "##", "###" ], "secondary_address": [ "Apt. ###", "Suite ###" ], "postcode": [ "#####", "### ##", "## ###" ], "state": [], "state_abbr": [], "time_zone": [ "Pacific/Midway", "Pacific/Pago_Pago", "Pacific/Honolulu", "America/Juneau", "America/Los_Angeles", "America/Tijuana", "America/Denver", "America/Phoenix", "America/Chihuahua", "America/Mazatlan", "America/Chicago", "America/Regina", "America/Mexico_City", "America/Mexico_City", "America/Monterrey", "America/Guatemala", "America/New_York", "America/Indiana/Indianapolis", "America/Bogota", "America/Lima", "America/Lima", "America/Halifax", "America/Caracas", "America/La_Paz", "America/Santiago", "America/St_Johns", "America/Sao_Paulo", "America/Argentina/Buenos_Aires", "America/Guyana", "America/Godthab", "Atlantic/South_Georgia", "Atlantic/Azores", "Atlantic/Cape_Verde", "Europe/Dublin", "Europe/London", "Europe/Lisbon", "Europe/London", "Africa/Casablanca", "Africa/Monrovia", "Etc/UTC", "Europe/Belgrade", "Europe/Bratislava", "Europe/Budapest", "Europe/Ljubljana", "Europe/Prague", "Europe/Sarajevo", "Europe/Skopje", "Europe/Warsaw", "Europe/Zagreb", "Europe/Brussels", "Europe/Copenhagen", "Europe/Madrid", "Europe/Paris", "Europe/Amsterdam", "Europe/Berlin", "Europe/Berlin", "Europe/Rome", "Europe/Stockholm", "Europe/Vienna", "Africa/Algiers", "Europe/Bucharest", "Africa/Cairo", "Europe/Helsinki", "Europe/Kiev", "Europe/Riga", "Europe/Sofia", "Europe/Tallinn", "Europe/Vilnius", "Europe/Athens", "Europe/Istanbul", "Europe/Minsk", "Asia/Jerusalem", "Africa/Harare", "Africa/Johannesburg", "Europe/Moscow", "Europe/Moscow", "Europe/Moscow", "Asia/Kuwait", "Asia/Riyadh", "Africa/Nairobi", "Asia/Baghdad", "Asia/Tehran", "Asia/Muscat", "Asia/Muscat", "Asia/Baku", "Asia/Tbilisi", "Asia/Yerevan", "Asia/Kabul", "Asia/Yekaterinburg", "Asia/Karachi", "Asia/Karachi", "Asia/Tashkent", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kathmandu", "Asia/Dhaka", "Asia/Dhaka", "Asia/Colombo", "Asia/Almaty", "Asia/Novosibirsk", "Asia/Rangoon", "Asia/Bangkok", "Asia/Bangkok", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Shanghai", "Asia/Chongqing", "Asia/Hong_Kong", "Asia/Urumqi", "Asia/Kuala_Lumpur", "Asia/Singapore", "Asia/Taipei", "Australia/Perth", "Asia/Irkutsk", "Asia/Ulaanbaatar", "Asia/Seoul", "Asia/Tokyo", "Asia/Tokyo", "Asia/Tokyo", "Asia/Yakutsk", "Australia/Darwin", "Australia/Adelaide", "Australia/Melbourne", "Australia/Melbourne", "Australia/Sydney", "Australia/Brisbane", "Australia/Hobart", "Asia/Vladivostok", "Pacific/Guam", "Pacific/Port_Moresby", "Asia/Magadan", "Asia/Magadan", "Pacific/Noumea", "Pacific/Fiji", "Asia/Kamchatka", "Pacific/Majuro", "Pacific/Auckland", "Pacific/Auckland", "Pacific/Tongatapu", "Pacific/Fakaofo", "Pacific/Apia" ], "city_name": [ "Bánovce nad Bebravou", "Banská Bystrica", "Banská Štiavnica", "Bardejov", "Bratislava I", "Bratislava II", "Bratislava III", "Bratislava IV", "Bratislava V", "Brezno", "Bytča", "Čadca", "Detva", "Dolný Kubín", "Dunajská Streda", "Galanta", "Gelnica", "Hlohovec", "Humenné", "Ilava", "Kežmarok", "Komárno", "Košice I", "Košice II", "Košice III", "Košice IV", "Košice-okolie", "Krupina", "Kysucké Nové Mesto", "Levice", "Levoča", "Liptovský Mikuláš", "Lučenec", "Malacky", "Martin", "Medzilaborce", "Michalovce", "Myjava", "Námestovo", "Nitra", "Nové Mesto n.Váhom", "Nové Zámky", "Partizánske", "Pezinok", "Piešťany", "Poltár", "Poprad", "Považská Bystrica", "Prešov", "Prievidza", "Púchov", "Revúca", "Rimavská Sobota", "Rožňava", "Ružomberok", "Sabinov", "Šaľa", "Senec", "Senica", "Skalica", "Snina", "Sobrance", "Spišská Nová Ves", "Stará Ľubovňa", "Stropkov", "Svidník", "Topoľčany", "Trebišov", "Trenčín", "Trnava", "Turčianske Teplice", "Tvrdošín", "Veľký Krtíš", "Vranov nad Topľou", "Žarnovica", "Žiar nad Hronom", "Žilina", "Zlaté Moravce", "Zvolen" ], "city": [ "#{city_name}" ], "street": [ "Adámiho", "Ahoj", "Albína Brunovského", "Albrechtova", "Alejová", "Alešova", "Alibernetová", "Alžbetínska", "Alžbety Gwerkovej", "Ambroseho", "Ambrušova", "Americká", "Americké námestie", "Americké námestie", "Andreja Mráza", "Andreja Plávku", "Andrusovova", "Anenská", "Anenská", "Antolská", "Astronomická", "Astrová", "Azalková", "Azovská", "Babuškova", "Bachova", "Bajkalská", "Bajkalská", "Bajkalská", "Bajkalská", "Bajkalská", "Bajkalská", "Bajzova", "Bancíkovej", "Banícka", "Baníkova", "Banskobystrická", "Banšelova", "Bardejovská", "Bartókova", "Bartoňova", "Bartoškova", "Baštová", "Bazová", "Bažantia", "Beblavého", "Beckovská", "Bedľová", "Belániková", "Belehradská", "Belinského", "Belopotockého", "Beňadická", "Bencúrova", "Benediktiho", "Beniakova", "Bernolákova", "Beskydská", "Betliarska", "Bezručova", "Biela", "Bielkova", "Björnsonova", "Blagoevova", "Blatnická", "Blumentálska", "Blyskáčová", "Bočná", "Bohrova", "Bohúňova", "Bojnická", "Borodáčova", "Borská", "Bosákova", "Botanická", "Bottova", "Boženy Němcovej", "Bôrik", "Bradáčova", "Bradlianska", "Brančská", "Bratská", "Brestová", "Brezovská", "Briežky", "Brnianska", "Brodná", "Brodská", "Broskyňová", "Břeclavská", "Budatínska", "Budatínska", "Budatínska", "Búdkova cesta", "Budovateľská", "Budyšínska", "Budyšínska", "Buková", "Bukureštská", "Bulharská", "Bulíkova", "Bystrého", "Bzovícka", "Cablkova", "Cesta na Červený most", "Cesta na Červený most", "Cesta na Senec", "Cikkerova", "Cintorínska", "Cintulova", "Cukrová", "Cyrilova", "Čajakova", "Čajkovského", "Čaklovská", "Čalovská", "Čapajevova", "Čapkova", "Čárskeho", "Čavojského", "Čečinová", "Čelakovského", "Čerešňová", "Černyševského", "Červeňova", "Česká", "Československých par", "Čipkárska", "Čmelíkova", "Čmeľovec", "Čulenova", "Daliborovo námestie", "Dankovského", "Dargovská", "Ďatelinová", "Daxnerovo námestie", "Devínska cesta", "Dlhé diely I.", "Dlhé diely II.", "Dlhé diely III.", "Dobrovičova", "Dobrovičova", "Dobrovského", "Dobšinského", "Dohnalova", "Dohnányho", "Doležalova", "Dolná", "Dolnozemská cesta", "Domkárska", "Domové role", "Donnerova", "Donovalova", "Dostojevského rad", "Dr. Vladimíra Clemen", "Drevená", "Drieňová", "Drieňová", "Drieňová", "Drotárska cesta", "Drotárska cesta", "Drotárska cesta", "Družicová", "Družstevná", "Dubnická", "Dubová", "Dúbravská cesta", "Dudova", "Dulovo námestie", "Dulovo námestie", "Dunajská", "Dvořákovo nábrežie", "Edisonova", "Einsteinova", "Elektrárenská", "Exnárova", "F. Kostku", "Fadruszova", "Fajnorovo nábrežie", "Fándlyho", "Farebná", "Farská", "Farského", "Fazuľová", "Fedinova", "Ferienčíkova", "Fialkové údolie", "Fibichova", "Filiálne nádražie", "Flöglova", "Floriánske námestie", "Fraňa Kráľa", "Francisciho", "Francúzskych partizá", "Františkánska", "Františkánske námest", "Furdekova", "Furdekova", "Gabčíkova", "Gagarinova", "Gagarinova", "Gagarinova", "Gajova", "Galaktická", "Galandova", "Gallova", "Galvaniho", "Gašparíkova", "Gaštanová", "Gavlovičova", "Gemerská", "Gercenova", "Gessayova", "Gettingová", "Godrova", "Gogoľova", "Goláňova", "Gondova", "Goralská", "Gorazdova", "Gorkého", "Gregorovej", "Grösslingova", "Gruzínska", "Gunduličova", "Gusevova", "Haanova", "Haburská", "Halašova", "Hálkova", "Hálova", "Hamuliakova", "Hanácka", "Handlovská", "Hany Meličkovej", "Harmanecká", "Hasičská", "Hattalova", "Havlíčkova", "Havrania", "Haydnova", "Herlianska", "Herlianska", "Heydukova", "Hlaváčikova", "Hlavatého", "Hlavné námestie", "Hlboká cesta", "Hlboká cesta", "Hlivová", "Hlučínska", "Hodálova", "Hodžovo námestie", "Holekova", "Holíčska", "Hollého", "Holubyho", "Hontianska", "Horárska", "Horné Židiny", "Horská", "Horská", "Hrad", "Hradné údolie", "Hrachová", "Hraničná", "Hrebendova", "Hríbová", "Hriňovská", "Hrobákova", "Hrobárska", "Hroboňova", "Hudecova", "Humenské námestie", "Hummelova", "Hurbanovo námestie", "Hurbanovo námestie", "Hviezdoslavovo námes", "Hýrošova", "Chalupkova", "Chemická", "Chlumeckého", "Chorvátska", "Chorvátska", "Iľjušinova", "Ilkovičova", "Inovecká", "Inovecká", "Iskerníková", "Ivana Horvátha", "Ivánska cesta", "J.C.Hronského", "Jabloňová", "Jadrová", "Jakabova", "Jakubovo námestie", "Jamnického", "Jána Stanislava", "Janáčkova", "Jančova", "Janíkove role", "Jankolova", "Jánošíkova", "Jánoškova", "Janotova", "Jánska", "Jantárová cesta", "Jarabinková", "Jarná", "Jaroslavova", "Jarošova", "Jaseňová", "Jasná", "Jasovská", "Jastrabia", "Jašíkova", "Javorinská", "Javorová", "Jazdecká", "Jedlíkova", "Jégého", "Jelačičova", "Jelenia", "Jesenná", "Jesenského", "Jiráskova", "Jiskrova", "Jozefská", "Junácka", "Jungmannova", "Jurigovo námestie", "Jurovského", "Jurská", "Justičná", "K lomu", "K Železnej studienke", "Kalinčiakova", "Kamenárska", "Kamenné námestie", "Kapicova", "Kapitulská", "Kapitulský dvor", "Kapucínska", "Kapušianska", "Karadžičova", "Karadžičova", "Karadžičova", "Karadžičova", "Karloveská", "Karloveské rameno", "Karpatská", "Kašmírska", "Kaštielska", "Kaukazská", "Kempelenova", "Kežmarské námestie", "Kladnianska", "Klariská", "Kláštorská", "Klatovská", "Klatovská", "Klemensova", "Klincová", "Klobučnícka", "Klokočova", "Kľukatá", "Kmeťovo námestie", "Koceľova", "Kočánkova", "Kohútova", "Kolárska", "Kolískova", "Kollárovo námestie", "Kollárovo námestie", "Kolmá", "Komárňanská", "Komárnická", "Komárnická", "Komenského námestie", "Kominárska", "Komonicová", "Konopná", "Konvalinková", "Konventná", "Kopanice", "Kopčianska", "Koperníkova", "Korabinského", "Koreničova", "Kostlivého", "Kostolná", "Košická", "Košická", "Košická", "Kováčska", "Kovorobotnícka", "Kozia", "Koziarka", "Kozmonautická", "Krajná", "Krakovská", "Kráľovské údolie", "Krasinského", "Kraskova", "Krásna", "Krásnohorská", "Krasovského", "Krátka", "Krčméryho", "Kremnická", "Kresánkova", "Krivá", "Križkova", "Krížna", "Krížna", "Krížna", "Krížna", "Krmanova", "Krompašská", "Krupinská", "Krupkova", "Kubániho", "Kubínska", "Kuklovská", "Kukučínova", "Kukuričná", "Kulíškova", "Kultúrna", "Kupeckého", "Kúpeľná", "Kutlíkova", "Kutuzovova", "Kuzmányho", "Kvačalova", "Kvetná", "Kýčerského", "Kyjevská", "Kysucká", "Laborecká", "Lackova", "Ladislava Sáru", "Ľadová", "Lachova", "Ľaliová", "Lamačská cesta", "Lamačská cesta", "Lamanského", "Landererova", "Langsfeldova", "Ľanová", "Laskomerského", "Laučekova", "Laurinská", "Lazaretská", "Lazaretská", "Legerského", "Legionárska", "Legionárska", "Lehockého", "Lehockého", "Lenardova", "Lermontovova", "Lesná", "Leškova", "Letecká", "Letisko M.R.Štefánik", "Letná", "Levárska", "Levická", "Levočská", "Lidická", "Lietavská", "Lichardova", "Lipová", "Lipovinová", "Liptovská", "Listová", "Líščie nivy", "Líščie údolie", "Litovská", "Lodná", "Lombardiniho", "Lomonosovova", "Lopenícka", "Lovinského", "Ľubietovská", "Ľubinská", "Ľubľanská", "Ľubochnianska", "Ľubovnianska", "Lúčna", "Ľudové námestie", "Ľudovíta Fullu", "Luhačovická", "Lužická", "Lužná", "Lýcejná", "Lykovcová", "M. Hella", "Magnetová", "Macharova", "Majakovského", "Majerníkova", "Májkova", "Májová", "Makovického", "Malá", "Malé pálenisko", "Malinová", "Malý Draždiak", "Malý trh", "Mamateyova", "Mamateyova", "Mánesovo námestie", "Mariánska", "Marie Curie-Sklodows", "Márie Medveďovej", "Markova", "Marótyho", "Martákovej", "Martinčekova", "Martinčekova", "Martinengova", "Martinská", "Mateja Bela", "Matejkova", "Matičná", "Matúšova", "Medená", "Medzierka", "Medzilaborecká", "Merlotová", "Mesačná", "Mestská", "Meteorová", "Metodova", "Mickiewiczova", "Mierová", "Michalská", "Mikovíniho", "Mikulášska", "Miletičova", "Miletičova", "Mišíkova", "Mišíkova", "Mišíkova", "Mliekárenská", "Mlynarovičova", "Mlynská dolina", "Mlynská dolina", "Mlynská dolina", "Mlynské luhy", "Mlynské nivy", "Mlynské nivy", "Mlynské nivy", "Mlynské nivy", "Mlynské nivy", "Mlyny", "Modranská", "Mojmírova", "Mokráň záhon", "Mokrohájska cesta", "Moldavská", "Molecova", "Moravská", "Moskovská", "Most SNP", "Mostová", "Mošovského", "Motýlia", "Moyzesova", "Mozartova", "Mraziarenská", "Mudroňova", "Mudroňova", "Mudroňova", "Muchovo námestie", "Murgašova", "Muškátová", "Muštová", "Múzejná", "Myjavská", "Mýtna", "Mýtna", "Na Baránku", "Na Brezinách", "Na Hrebienku", "Na Kalvárii", "Na Kampárke", "Na kopci", "Na križovatkách", "Na lánoch", "Na paši", "Na piesku", "Na Riviére", "Na Sitine", "Na Slavíne", "Na stráni", "Na Štyridsiatku", "Na úvrati", "Na vŕšku", "Na výslní", "Nábělkova", "Nábrežie arm. gen. L", "Nábrežná", "Nad Dunajom", "Nad lomom", "Nad lúčkami", "Nad lúčkami", "Nad ostrovom", "Nad Sihoťou", "Námestie 1. mája", "Námestie Alexandra D", "Námestie Biely kríž", "Námestie Hraničiarov", "Námestie Jána Pavla", "Námestie Ľudovíta Št", "Námestie Martina Ben", "Nám. M.R.Štefánika", "Námestie slobody", "Námestie slobody", "Námestie SNP", "Námestie SNP", "Námestie sv. Františ", "Narcisová", "Nedbalova", "Nekrasovova", "Neronetová", "Nerudova", "Nevädzová", "Nezábudková", "Niťová", "Nitrianska", "Nížinná", "Nobelova", "Nobelovo námestie", "Nová", "Nová Rožňavská", "Novackého", "Nové pálenisko", "Nové záhrady I", "Nové záhrady II", "Nové záhrady III", "Nové záhrady IV", "Nové záhrady V", "Nové záhrady VI", "Nové záhrady VII", "Novinárska", "Novobanská", "Novohradská", "Novosvetská", "Novosvetská", "Novosvetská", "Obežná", "Obchodná", "Očovská", "Odbojárov", "Odborárska", "Odborárske námestie", "Odborárske námestie", "Ohnicová", "Okánikova", "Okružná", "Olbrachtova", "Olejkárska", "Ondavská", "Ondrejovova", "Oravská", "Orechová cesta", "Orechový rad", "Oriešková", "Ormisova", "Osadná", "Ostravská", "Ostredková", "Osuského", "Osvetová", "Otonelská", "Ovručská", "Ovsištské námestie", "Pajštúnska", "Palackého", "Palárikova", "Palárikova", "Pálavská", "Palisády", "Palisády", "Palisády", "Palkovičova", "Panenská", "Pankúchova", "Panónska cesta", "Panská", "Papánkovo námestie", "Papraďová", "Páričkova", "Parková", "Partizánska", "Pasienky", "Paulínyho", "Pavlovičova", "Pavlovova", "Pavlovská", "Pažického", "Pažítková", "Pečnianska", "Pernecká", "Pestovateľská", "Peterská", "Petzvalova", "Pezinská", "Piesočná", "Piešťanská", "Pifflova", "Pilárikova", "Pionierska", "Pivoňková", "Planckova", "Planét", "Plátenícka", "Pluhová", "Plynárenská", "Plzenská", "Pobrežná", "Pod Bôrikom", "Pod Kalváriou", "Pod lesom", "Pod Rovnicami", "Pod vinicami", "Podhorského", "Podjavorinskej", "Podlučinského", "Podniková", "Podtatranského", "Pohronská", "Polárna", "Poloreckého", "Poľná", "Poľská", "Poludníková", "Porubského", "Poštová", "Považská", "Povraznícka", "Povraznícka", "Pražská", "Predstaničné námesti", "Prepoštská", "Prešernova", "Prešovská", "Prešovská", "Prešovská", "Pri Bielom kríži", "Pri dvore", "Pri Dynamitke", "Pri Habánskom mlyne", "Pri hradnej studni", "Pri seči", "Pri Starej Prachárni", "Pri Starom háji", "Pri Starom Mýte", "Pri strelnici", "Pri Suchom mlyne", "Pri zvonici", "Pribinova", "Pribinova", "Pribinova", "Pribišova", "Pribylinská", "Priečna", "Priekopy", "Priemyselná", "Priemyselná", "Prievozská", "Prievozská", "Prievozská", "Príkopova", "Primaciálne námestie", "Prístav", "Prístavná", "Prokofievova", "Prokopa Veľkého", "Prokopova", "Prúdová", "Prvosienková", "Púpavová", "Pustá", "Puškinova", "Račianska", "Račianska", "Račianske mýto", "Radarová", "Rádiová", "Radlinského", "Radničná", "Radničné námestie", "Radvanská", "Rajská", "Raketová", "Rákosová", "Rastislavova", "Rázusovo nábrežie", "Repná", "Rešetkova", "Revolučná", "Révová", "Revúcka", "Rezedová", "Riazanská", "Riazanská", "Ribayová", "Riečna", "Rigeleho", "Rízlingová", "Riznerova", "Robotnícka", "Romanova", "Röntgenova", "Rosná", "Rovná", "Rovniankova", "Rovníková", "Rozmarínová", "Rožňavská", "Rožňavská", "Rožňavská", "Rubinsteinova", "Rudnayovo námestie", "Rumančeková", "Rusovská cesta", "Ružičková", "Ružinovská", "Ružinovská", "Ružinovská", "Ružomberská", "Ružová dolina", "Ružová dolina", "Rybárska brána", "Rybné námestie", "Rýdziková", "Sabinovská", "Sabinovská", "Sad Janka Kráľa", "Sadová", "Sartorisova", "Sasinkova", "Seberíniho", "Sečovská", "Sedlárska", "Sedmokrásková", "Segnerova", "Sekulská", "Semianova", "Senická", "Senná", "Schillerova", "Schody pri starej vo", "Sibírska", "Sienkiewiczova", "Silvánska", "Sinokvetná", "Skalická cesta", "Skalná", "Sklenárova", "Sklenárska", "Sládkovičova", "Sladová", "Slávičie údolie", "Slavín", "Slepá", "Sliačska", "Sliezska", "Slivková", "Slnečná", "Slovanská", "Slovinská", "Slovnaftská", "Slowackého", "Smetanova", "Smikova", "Smolenická", "Smolnícka", "Smrečianska", "Soferove schody", "Socháňova", "Sokolská", "Solivarská", "Sološnická", "Somolického", "Somolického", "Sosnová", "Spišská", "Spojná", "Spoločenská", "Sputniková", "Sreznevského", "Srnčia", "Stachanovská", "Stálicová", "Staničná", "Stará Černicová", "Stará Ivánska cesta", "Stará Prievozská", "Stará Vajnorská", "Stará vinárska", "Staré Grunty", "Staré ihrisko", "Staré záhrady", "Starhradská", "Starohájska", "Staromestská", "Staroturský chodník", "Staviteľská", "Stodolova", "Stoklasová", "Strakova", "Strážnická", "Strážny dom", "Strečnianska", "Stredná", "Strelecká", "Strmá cesta", "Strojnícka", "Stropkovská", "Struková", "Studená", "Stuhová", "Súbežná", "Súhvezdná", "Suché mýto", "Suchohradská", "Súkennícka", "Súľovská", "Sumbalova", "Súmračná", "Súťažná", "Svätého Vincenta", "Svätoplukova", "Svätoplukova", "Svätovojtešská", "Svetlá", "Svíbová", "Svidnícka", "Svoradova", "Svrčia", "Syslia", "Šafárikovo námestie", "Šafárikovo námestie", "Šafránová", "Šagátova", "Šalviová", "Šancová", "Šancová", "Šancová", "Šancová", "Šándorova", "Šarišská", "Šášovská", "Šaštínska", "Ševčenkova", "Šintavská", "Šípková", "Škarniclova", "Školská", "Škovránčia", "Škultétyho", "Šoltésovej", "Špieszova", "Špitálska", "Športová", "Šrobárovo námestie", "Šťastná", "Štedrá", "Štefánikova", "Štefánikova", "Štefánikova", "Štefanovičova", "Štefunkova", "Štetinova", "Štiavnická", "Štúrova", "Štyndlova", "Šulekova", "Šulekova", "Šulekova", "Šumavská", "Šuňavcova", "Šustekova", "Švabinského", "Tabaková", "Tablicova", "Táborská", "Tajovského", "Tallerova", "Tehelná", "Technická", "Tekovská", "Telocvičná", "Tematínska", "Teplická", "Terchovská", "Teslova", "Tetmayerova", "Thurzova", "Tichá", "Tilgnerova", "Timravina", "Tobrucká", "Tokajícka", "Tolstého", "Tománkova", "Tomášikova", "Tomášikova", "Tomášikova", "Tomášikova", "Tomášikova", "Topoľčianska", "Topoľová", "Továrenská", "Trebišovská", "Trebišovská", "Trebišovská", "Trenčianska", "Treskoňova", "Trnavská cesta", "Trnavská cesta", "Trnavská cesta", "Trnavská cesta", "Trnavská cesta", "Trnavské mýto", "Tŕňová", "Trojdomy", "Tučkova", "Tupolevova", "Turbínova", "Turčianska", "Turnianska", "Tvarožkova", "Tylova", "Tyršovo nábrežie", "Údernícka", "Údolná", "Uhorková", "Ukrajinská", "Ulica 29. augusta", "Ulica 29. augusta", "Ulica 29. augusta", "Ulica 29. augusta", "Ulica Imricha Karvaš", "Ulica Jozefa Krónera", "Ulica Viktora Tegelh", "Úprkova", "Úradnícka", "Uránová", "Urbánkova", "Ursínyho", "Uršulínska", "Úzka", "V záhradách", "Vajanského nábrežie", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Vajnorská", "Valašská", "Valchárska", "Vansovej", "Vápenná", "Varínska", "Varšavská", "Varšavská", "Vavilovova", "Vavrínova", "Vazovova", "Včelárska", "Velehradská", "Veltlínska", "Ventúrska", "Veterná", "Veternicová", "Vetvová", "Viedenská cesta", "Viedenská cesta", "Vietnamská", "Vígľašská", "Vihorlatská", "Viktorínova", "Vilová", "Vincenta Hložníka", "Vínna", "Vlastenecké námestie", "Vlčkova", "Vlčkova", "Vlčkova", "Vodný vrch", "Votrubova", "Vrábeľská", "Vrakunská cesta", "Vranovská", "Vretenová", "Vrchná", "Vrútocká", "Vyhliadka", "Vyhnianska cesta", "Vysoká", "Vyšehradská", "Vyšná", "Wattova", "Wilsonova", "Wolkrova", "Za Kasárňou", "Za sokolovňou", "Za Stanicou", "Za tehelňou", "Záborského", "Zadunajská cesta", "Záhorácka", "Záhradnícka", "Záhradnícka", "Záhradnícka", "Záhradnícka", "Záhrebská", "Záhrebská", "Zálužická", "Zámocká", "Zámocké schody", "Zámočnícka", "Západná", "Západný rad", "Záporožská", "Zátišie", "Závodníkova", "Zelená", "Zelinárska", "Zimná", "Zlaté piesky", "Zlaté schody", "Znievska", "Zohorská", "Zochova", "Zrinského", "Zvolenská", "Žabí majer", "Žabotova", "Žehrianska", "Železná", "Železničiarska", "Žellova", "Žiarska", "Židovská", "Žilinská", "Žilinská", "Živnostenská", "Žižkova", "Župné námestie" ], "street_name": [ "#{street}" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Slovensko" ] }; sk.company = { "suffix": [ "s.r.o.", "a.s.", "v.o.s." ], "adjective": [ "Adaptive", "Advanced", "Ameliorated", "Assimilated", "Automated", "Balanced", "Business-focused", "Centralized", "Cloned", "Compatible", "Configurable", "Cross-group", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "De-engineered", "Devolved", "Digitized", "Distributed", "Diverse", "Down-sized", "Enhanced", "Enterprise-wide", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Function-based", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Implemented", "Innovative", "Integrated", "Intuitive", "Inverse", "Managed", "Mandatory", "Monitored", "Multi-channelled", "Multi-lateral", "Multi-layered", "Multi-tiered", "Networked", "Object-based", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Pre-emptive", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Re-contextualized", "Re-engineered", "Reduced", "Reverse-engineered", "Right-sized", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Stand-alone", "Streamlined", "Switchable", "Synchronised", "Synergistic", "Synergized", "Team-oriented", "Total", "Triple-buffered", "Universal", "Up-sized", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary", "Vision-oriented" ], "descriptor": [ "24 hour", "24/7", "3rd generation", "4th generation", "5th generation", "6th generation", "actuating", "analyzing", "asymmetric", "asynchronous", "attitude-oriented", "background", "bandwidth-monitored", "bi-directional", "bifurcated", "bottom-line", "clear-thinking", "client-driven", "client-server", "coherent", "cohesive", "composite", "context-sensitive", "contextually-based", "content-based", "dedicated", "demand-driven", "didactic", "directional", "discrete", "disintermediate", "dynamic", "eco-centric", "empowering", "encompassing", "even-keeled", "executive", "explicit", "exuding", "fault-tolerant", "foreground", "fresh-thinking", "full-range", "global", "grid-enabled", "heuristic", "high-level", "holistic", "homogeneous", "human-resource", "hybrid", "impactful", "incremental", "intangible", "interactive", "intermediate", "leading edge", "local", "logistical", "maximized", "methodical", "mission-critical", "mobile", "modular", "motivating", "multimedia", "multi-state", "multi-tasking", "national", "needs-based", "neutral", "next generation", "non-volatile", "object-oriented", "optimal", "optimizing", "radical", "real-time", "reciprocal", "regional", "responsive", "scalable", "secondary", "solution-oriented", "stable", "static", "systematic", "systemic", "system-worthy", "tangible", "tertiary", "transitional", "uniform", "upward-trending", "user-facing", "value-added", "web-enabled", "well-modulated", "zero administration", "zero defect", "zero tolerance" ], "noun": [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "artificial intelligence", "array", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "database", "data-warehouse", "definition", "emulation", "encoding", "encryption", "extranet", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "Graphic Interface", "groupware", "Graphical User Interface", "hardware", "help-desk", "hierarchy", "hub", "implementation", "info-mediaries", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge user", "knowledge base", "local area network", "leverage", "matrices", "matrix", "methodology", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "open system", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "secured line", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "superstructure", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce" ], "bs_verb": [ "implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace", "enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize", "morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate", "synergize", "strategize", "deploy", "brand", "grow", "target", "syndicate", "synthesize", "deliver", "mesh", "incubate", "engage", "maximize", "benchmark", "expedite", "reintermediate", "whiteboard", "visualize", "repurpose", "innovate", "scale", "unleash", "drive", "extend", "engineer", "revolutionize", "generate", "exploit", "transition", "e-enable", "iterate", "cultivate", "matrix", "productize", "redefine", "recontextualize" ], "bs_noun": [ "clicks-and-mortar", "value-added", "vertical", "proactive", "robust", "revolutionary", "scalable", "leading-edge", "innovative", "intuitive", "strategic", "e-business", "mission-critical", "sticky", "one-to-one", "24/7", "end-to-end", "global", "B2B", "B2C", "granular", "frictionless", "virtual", "viral", "dynamic", "24/365", "best-of-breed", "killer", "magnetic", "bleeding-edge", "web-enabled", "interactive", "dot-com", "sexy", "back-end", "real-time", "efficient", "front-end", "distributed", "seamless", "extensible", "turn-key", "world-class", "open-source", "cross-platform", "cross-media", "synergistic", "bricks-and-clicks", "out-of-the-box", "enterprise", "integrated", "impactful", "wireless", "transparent", "next-generation", "cutting-edge", "user-centric", "visionary", "customized", "ubiquitous", "plug-and-play", "collaborative", "compelling", "holistic", "rich" ], "bs_noun": [ "synergies", "web-readiness", "paradigms", "markets", "partnerships", "infrastructures", "platforms", "initiatives", "channels", "eyeballs", "communities", "ROI", "solutions", "e-tailers", "e-services", "action-items", "portals", "niches", "technologies", "content", "vortals", "supply-chains", "convergence", "relationships", "architectures", "interfaces", "e-markets", "e-commerce", "systems", "bandwidth", "infomediaries", "models", "mindshare", "deliverables", "users", "schemas", "networks", "applications", "metrics", "e-business", "functionalities", "experiences", "web services", "methodologies" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name} #{suffix}", "#{Name.man_last_name} a #{Name.man_last_name} #{suffix}" ] }; sk.internet = { "free_email": [ "gmail.com", "zoznam.sk", "azet.sk" ], "domain_suffix": [ "sk", "com", "net", "eu", "org" ] }; sk.lorem = { "words": [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ], "supplemental": [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ] }; sk.name = { "man_first_name": [ "Drahoslav", "Severín", "Alexej", "Ernest", "Rastislav", "Radovan", "Dobroslav", "Dalibor", "Vincent", "Miloš", "Timotej", "Gejza", "Bohuš", "Alfonz", "Gašpar", "Emil", "Erik", "Blažej", "Zdenko", "Dezider", "Arpád", "Valentín", "Pravoslav", "Jaromír", "Roman", "Matej", "Frederik", "Viktor", "Alexander", "Radomír", "Albín", "Bohumil", "Kazimír", "Fridrich", "Radoslav", "Tomáš", "Alan", "Branislav", "Bruno", "Gregor", "Vlastimil", "Boleslav", "Eduard", "Jozef", "Víťazoslav", "Blahoslav", "Beňadik", "Adrián", "Gabriel", "Marián", "Emanuel", "Miroslav", "Benjamín", "Hugo", "Richard", "Izidor", "Zoltán", "Albert", "Igor", "Július", "Aleš", "Fedor", "Rudolf", "Valér", "Marcel", "Ervín", "Slavomír", "Vojtech", "Juraj", "Marek", "Jaroslav", "Žigmund", "Florián", "Roland", "Pankrác", "Servác", "Bonifác", "Svetozár", "Bernard", "Júlia", "Urban", "Dušan", "Viliam", "Ferdinand", "Norbert", "Róbert", "Medard", "Zlatko", "Anton", "Vasil", "Vít", "Adolf", "Vratislav", "Alfréd", "Alojz", "Ján", "Tadeáš", "Ladislav", "Peter", "Pavol", "Miloslav", "Prokop", "Cyril", "Metod", "Patrik", "Oliver", "Ivan", "Kamil", "Henrich", "Drahomír", "Bohuslav", "Iľja", "Daniel", "Vladimír", "Jakub", "Krištof", "Ignác", "Gustáv", "Jerguš", "Dominik", "Oskar", "Vavrinec", "Ľubomír", "Mojmír", "Leonard", "Tichomír", "Filip", "Bartolomej", "Ľudovít", "Samuel", "Augustín", "Belo", "Oleg", "Bystrík", "Ctibor", "Ľudomil", "Konštantín", "Ľuboslav", "Matúš", "Móric", "Ľuboš", "Ľubor", "Vladislav", "Cyprián", "Václav", "Michal", "Jarolím", "Arnold", "Levoslav", "František", "Dionýz", "Maximilián", "Koloman", "Boris", "Lukáš", "Kristián", "Vendelín", "Sergej", "Aurel", "Demeter", "Denis", "Hubert", "Karol", "Imrich", "René", "Bohumír", "Teodor", "Tibor", "Maroš", "Martin", "Svätopluk", "Stanislav", "Leopold", "Eugen", "Félix", "Klement", "Kornel", "Milan", "Vratko", "Ondrej", "Andrej", "Edmund", "Oldrich", "Oto", "Mikuláš", "Ambróz", "Radúz", "Bohdan", "Adam", "Štefan", "Dávid", "Silvester" ], "woman_first_name": [ "Alexandra", "Karina", "Daniela", "Andrea", "Antónia", "Bohuslava", "Dáša", "Malvína", "Kristína", "Nataša", "Bohdana", "Drahomíra", "Sára", "Zora", "Tamara", "Ema", "Tatiana", "Erika", "Veronika", "Agáta", "Dorota", "Vanda", "Zoja", "Gabriela", "Perla", "Ida", "Liana", "Miloslava", "Vlasta", "Lívia", "Eleonóra", "Etela", "Romana", "Zlatica", "Anežka", "Bohumila", "Františka", "Angela", "Matilda", "Svetlana", "Ľubica", "Alena", "Soňa", "Vieroslava", "Zita", "Miroslava", "Irena", "Milena", "Estera", "Justína", "Dana", "Danica", "Jela", "Jaroslava", "Jarmila", "Lea", "Anastázia", "Galina", "Lesana", "Hermína", "Monika", "Ingrida", "Viktória", "Blažena", "Žofia", "Sofia", "Gizela", "Viola", "Gertrúda", "Zina", "Júlia", "Juliana", "Želmíra", "Ela", "Vanesa", "Iveta", "Vilma", "Petronela", "Žaneta", "Xénia", "Karolína", "Lenka", "Laura", "Stanislava", "Margaréta", "Dobroslava", "Blanka", "Valéria", "Paulína", "Sidónia", "Adriána", "Beáta", "Petra", "Melánia", "Diana", "Berta", "Patrícia", "Lujza", "Amália", "Milota", "Nina", "Margita", "Kamila", "Dušana", "Magdaléna", "Oľga", "Anna", "Hana", "Božena", "Marta", "Libuša", "Božidara", "Dominika", "Hortenzia", "Jozefína", "Štefánia", "Ľubomíra", "Zuzana", "Darina", "Marcela", "Milica", "Elena", "Helena", "Lýdia", "Anabela", "Jana", "Silvia", "Nikola", "Ružena", "Nora", "Drahoslava", "Linda", "Melinda", "Rebeka", "Rozália", "Regína", "Alica", "Marianna", "Miriama", "Martina", "Mária", "Jolana", "Ľudomila", "Ľudmila", "Olympia", "Eugénia", "Ľuboslava", "Zdenka", "Edita", "Michaela", "Stela", "Viera", "Natália", "Eliška", "Brigita", "Valentína", "Terézia", "Vladimíra", "Hedviga", "Uršuľa", "Alojza", "Kvetoslava", "Sabína", "Dobromila", "Klára", "Simona", "Aurélia", "Denisa", "Renáta", "Irma", "Agnesa", "Klaudia", "Alžbeta", "Elvíra", "Cecília", "Emília", "Katarína", "Henrieta", "Bibiána", "Barbora", "Marína", "Izabela", "Hilda", "Otília", "Lucia", "Branislava", "Bronislava", "Ivica", "Albína", "Kornélia", "Sláva", "Slávka", "Judita", "Dagmara", "Adela", "Nadežda", "Eva", "Filoména", "Ivana", "Milada" ], "man_last_name": [ "Antal", "Babka", "Bahna", "Bahno", "Baláž", "Baran", "Baranka", "Bartovič", "Bartoš", "Bača", "Bernolák", "Beňo", "Bicek", "Bielik", "Blaho", "Bondra", "Bosák", "Boška", "Brezina", "Bukovský", "Chalupka", "Chudík", "Cibula", "Cibulka", "Cibuľa", "Cyprich", "Cíger", "Danko", "Daňko", "Daňo", "Debnár", "Dej", "Dekýš", "Doležal", "Dočolomanský", "Droppa", "Dubovský", "Dudek", "Dula", "Dulla", "Dusík", "Dvonč", "Dzurjanin", "Dávid", "Fabian", "Fabián", "Fajnor", "Farkašovský", "Fico", "Filc", "Filip", "Finka", "Ftorek", "Gašpar", "Gašparovič", "Gocník", "Gregor", "Greguš", "Grznár", "Hablák", "Habšuda", "Halda", "Haluška", "Halák", "Hanko", "Hanzal", "Haščák", "Heretik", "Hečko", "Hlaváček", "Hlinka", "Holub", "Holuby", "Hossa", "Hoza", "Hraško", "Hric", "Hrmo", "Hrušovský", "Huba", "Ihnačák", "Janeček", "Janoška", "Jantošovič", "Janík", "Janček", "Jedľovský", "Jendek", "Jonata", "Jurina", "Jurkovič", "Jurík", "Jánošík", "Kafenda", "Kaliský", "Karul", "Keníž", "Klapka", "Kmeť", "Kolesár", "Kollár", "Kolnik", "Kolník", "Kolár", "Korec", "Kostka", "Kostrec", "Kováč", "Kováčik", "Koza", "Kočiš", "Krajíček", "Krajči", "Krajčo", "Krajčovič", "Krajčír", "Králik", "Krúpa", "Kubík", "Kyseľ", "Kállay", "Labuda", "Lepšík", "Lipták", "Lisický", "Lubina", "Lukáč", "Lupták", "Líška", "Madej", "Majeský", "Malachovský", "Malíšek", "Mamojka", "Marcinko", "Marián", "Masaryk", "Maslo", "Matiaško", "Medveď", "Melcer", "Mečiar", "Michalík", "Mihalik", "Mihál", "Mihálik", "Mikloško", "Mikulík", "Mikuš", "Mikúš", "Milota", "Mináč", "Mišík", "Mojžiš", "Mokroš", "Mora", "Moravčík", "Mydlo", "Nemec", "Nitra", "Novák", "Obšut", "Ondruš", "Otčenáš", "Pauko", "Pavlikovský", "Pavúk", "Pašek", "Paška", "Paško", "Pelikán", "Petrovický", "Petruška", "Peško", "Plch", "Plekanec", "Podhradský", "Podkonický", "Poliak", "Pupák", "Rak", "Repiský", "Romančík", "Rus", "Ružička", "Rybníček", "Rybár", "Rybárik", "Samson", "Sedliak", "Senko", "Sklenka", "Skokan", "Skutecký", "Slašťan", "Sloboda", "Slobodník", "Slota", "Slovák", "Smrek", "Stodola", "Straka", "Strnisko", "Svrbík", "Sámel", "Sýkora", "Tatar", "Tatarka", "Tatár", "Tatárka", "Thomka", "Tomeček", "Tomka", "Tomko", "Truben", "Turčok", "Uram", "Urblík", "Vajcík", "Vajda", "Valach", "Valachovič", "Valent", "Valuška", "Vanek", "Vesel", "Vicen", "Višňovský", "Vlach", "Vojtek", "Vydarený", "Zajac", "Zima", "Zimka", "Záborský", "Zúbrik", "Čapkovič", "Čaplovič", "Čarnogurský", "Čierny", "Čobrda", "Ďaďo", "Ďurica", "Ďuriš", "Šidlo", "Šimonovič", "Škriniar", "Škultéty", "Šmajda", "Šoltés", "Šoltýs", "Štefan", "Štefanka", "Šulc", "Šurka", "Švehla", "Šťastný" ], "woman_last_name": [ "Antalová", "Babková", "Bahnová", "Balážová", "Baranová", "Baranková", "Bartovičová", "Bartošová", "Bačová", "Bernoláková", "Beňová", "Biceková", "Bieliková", "Blahová", "Bondrová", "Bosáková", "Bošková", "Brezinová", "Bukovská", "Chalupková", "Chudíková", "Cibulová", "Cibulková", "Cyprichová", "Cígerová", "Danková", "Daňková", "Daňová", "Debnárová", "Dejová", "Dekýšová", "Doležalová", "Dočolomanská", "Droppová", "Dubovská", "Dudeková", "Dulová", "Dullová", "Dusíková", "Dvončová", "Dzurjaninová", "Dávidová", "Fabianová", "Fabiánová", "Fajnorová", "Farkašovská", "Ficová", "Filcová", "Filipová", "Finková", "Ftoreková", "Gašparová", "Gašparovičová", "Gocníková", "Gregorová", "Gregušová", "Grznárová", "Habláková", "Habšudová", "Haldová", "Halušková", "Haláková", "Hanková", "Hanzalová", "Haščáková", "Heretiková", "Hečková", "Hlaváčeková", "Hlinková", "Holubová", "Holubyová", "Hossová", "Hozová", "Hrašková", "Hricová", "Hrmová", "Hrušovská", "Hubová", "Ihnačáková", "Janečeková", "Janošková", "Jantošovičová", "Janíková", "Jančeková", "Jedľovská", "Jendeková", "Jonatová", "Jurinová", "Jurkovičová", "Juríková", "Jánošíková", "Kafendová", "Kaliská", "Karulová", "Kenížová", "Klapková", "Kmeťová", "Kolesárová", "Kollárová", "Kolniková", "Kolníková", "Kolárová", "Korecová", "Kostkaová", "Kostrecová", "Kováčová", "Kováčiková", "Kozová", "Kočišová", "Krajíčeková", "Krajčová", "Krajčovičová", "Krajčírová", "Králiková", "Krúpová", "Kubíková", "Kyseľová", "Kállayová", "Labudová", "Lepšíková", "Liptáková", "Lisická", "Lubinová", "Lukáčová", "Luptáková", "Líšková", "Madejová", "Majeská", "Malachovská", "Malíšeková", "Mamojková", "Marcinková", "Mariánová", "Masaryková", "Maslová", "Matiašková", "Medveďová", "Melcerová", "Mečiarová", "Michalíková", "Mihaliková", "Mihálová", "Miháliková", "Miklošková", "Mikulíková", "Mikušová", "Mikúšová", "Milotová", "Mináčová", "Mišíková", "Mojžišová", "Mokrošová", "Morová", "Moravčíková", "Mydlová", "Nemcová", "Nováková", "Obšutová", "Ondrušová", "Otčenášová", "Pauková", "Pavlikovská", "Pavúková", "Pašeková", "Pašková", "Pelikánová", "Petrovická", "Petrušková", "Pešková", "Plchová", "Plekanecová", "Podhradská", "Podkonická", "Poliaková", "Pupáková", "Raková", "Repiská", "Romančíková", "Rusová", "Ružičková", "Rybníčeková", "Rybárová", "Rybáriková", "Samsonová", "Sedliaková", "Senková", "Sklenková", "Skokanová", "Skutecká", "Slašťanová", "Slobodová", "Slobodníková", "Slotová", "Slováková", "Smreková", "Stodolová", "Straková", "Strnisková", "Svrbíková", "Sámelová", "Sýkorová", "Tatarová", "Tatarková", "Tatárová", "Tatárkaová", "Thomková", "Tomečeková", "Tomková", "Trubenová", "Turčoková", "Uramová", "Urblíková", "Vajcíková", "Vajdová", "Valachová", "Valachovičová", "Valentová", "Valušková", "Vaneková", "Veselová", "Vicenová", "Višňovská", "Vlachová", "Vojteková", "Vydarená", "Zajacová", "Zimová", "Zimková", "Záborská", "Zúbriková", "Čapkovičová", "Čaplovičová", "Čarnogurská", "Čierná", "Čobrdová", "Ďaďová", "Ďuricová", "Ďurišová", "Šidlová", "Šimonovičová", "Škriniarová", "Škultétyová", "Šmajdová", "Šoltésová", "Šoltýsová", "Štefanová", "Štefanková", "Šulcová", "Šurková", "Švehlová", "Šťastná" ], "prefix": [ "Ing.", "Mgr.", "JUDr.", "MUDr." ], "suffix": [ "Phd." ], "title": { "descriptor": [ "Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal" ], "level": [ "Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics" ], "job": [ "Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist" ] }, "name": [ "#{prefix} #{man_first_name} #{man_last_name}", "#{prefix} #{woman_first_name} #{woman_last_name}", "#{man_first_name} #{man_last_name} #{suffix}", "#{woman_first_name} #{woman_last_name} #{suffix}", "#{man_first_name} #{man_last_name}", "#{man_first_name} #{man_last_name}", "#{man_first_name} #{man_last_name}", "#{woman_first_name} #{woman_last_name}", "#{woman_first_name} #{woman_last_name}", "#{woman_first_name} #{woman_last_name}" ] }; sk.phone_number = { "formats": [ "09## ### ###", "0## #### ####", "0# #### ####", "+421 ### ### ###" ] }; },{}],35:[function(require,module,exports){ var sv = {}; module["exports"] = sv; sv.title = "Swedish"; sv.address = { "city_prefix": [ "Söder", "Norr", "Väst", "Öster", "Aling", "Ar", "Av", "Bo", "Br", "Bå", "Ek", "En", "Esk", "Fal", "Gäv", "Göte", "Ha", "Helsing", "Karl", "Krist", "Kram", "Kung", "Kö", "Lyck", "Ny" ], "city_suffix": [ "stad", "land", "sås", "ås", "holm", "tuna", "sta", "berg", "löv", "borg", "mora", "hamn", "fors", "köping", "by", "hult", "torp", "fred", "vik" ], "country": [ "Ryssland", "Kanada", "Kina", "USA", "Brasilien", "Australien", "Indien", "Argentina", "Kazakstan", "Algeriet", "DR Kongo", "Danmark", "Färöarna", "Grönland", "Saudiarabien", "Mexiko", "Indonesien", "Sudan", "Libyen", "Iran", "Mongoliet", "Peru", "Tchad", "Niger", "Angola", "Mali", "Sydafrika", "Colombia", "Etiopien", "Bolivia", "Mauretanien", "Egypten", "Tanzania", "Nigeria", "Venezuela", "Namibia", "Pakistan", "Moçambique", "Turkiet", "Chile", "Zambia", "Marocko", "Västsahara", "Burma", "Afghanistan", "Somalia", "Centralafrikanska republiken", "Sydsudan", "Ukraina", "Botswana", "Madagaskar", "Kenya", "Frankrike", "Franska Guyana", "Jemen", "Thailand", "Spanien", "Turkmenistan", "Kamerun", "Papua Nya Guinea", "Sverige", "Uzbekistan", "Irak", "Paraguay", "Zimbabwe", "Japan", "Tyskland", "Kongo", "Finland", "Malaysia", "Vietnam", "Norge", "Svalbard", "Jan Mayen", "Elfenbenskusten", "Polen", "Italien", "Filippinerna", "Ecuador", "Burkina Faso", "Nya Zeeland", "Gabon", "Guinea", "Storbritannien", "Ghana", "Rumänien", "Laos", "Uganda", "Guyana", "Oman", "Vitryssland", "Kirgizistan", "Senegal", "Syrien", "Kambodja", "Uruguay", "Tunisien", "Surinam", "Nepal", "Bangladesh", "Tadzjikistan", "Grekland", "Nicaragua", "Eritrea", "Nordkorea", "Malawi", "Benin", "Honduras", "Liberia", "Bulgarien", "Kuba", "Guatemala", "Island", "Sydkorea", "Ungern", "Portugal", "Jordanien", "Serbien", "Azerbajdzjan", "Österrike", "Förenade Arabemiraten", "Tjeckien", "Panama", "Sierra Leone", "Irland", "Georgien", "Sri Lanka", "Litauen", "Lettland", "Togo", "Kroatien", "Bosnien och Hercegovina", "Costa Rica", "Slovakien", "Dominikanska republiken", "Bhutan", "Estland", "Danmark", "Färöarna", "Grönland", "Nederländerna", "Schweiz", "Guinea-Bissau", "Taiwan", "Moldavien", "Belgien", "Lesotho", "Armenien", "Albanien", "Salomonöarna", "Ekvatorialguinea", "Burundi", "Haiti", "Rwanda", "Makedonien", "Djibouti", "Belize", "Israel", "El Salvador", "Slovenien", "Fiji", "Kuwait", "Swaziland", "Timor-Leste", "Montenegro", "Bahamas", "Vanuatu", "Qatar", "Gambia", "Jamaica", "Kosovo", "Libanon", "Cypern", "Brunei", "Trinidad och Tobago", "Kap Verde", "Samoa", "Luxemburg", "Komorerna", "Mauritius", "São Tomé och Príncipe", "Kiribati", "Dominica", "Tonga", "Mikronesiens federerade stater", "Singapore", "Bahrain", "Saint Lucia", "Andorra", "Palau", "Seychellerna", "Antigua och Barbuda", "Barbados", "Saint Vincent och Grenadinerna", "Grenada", "Malta", "Maldiverna", "Saint Kitts och Nevis", "Marshallöarna", "Liechtenstein", "San Marino", "Tuvalu", "Nauru", "Monaco", "Vatikanstaten" ], "common_street_suffix": [ "s Väg", "s Gata" ], "street_prefix": [ "Västra", "Östra", "Norra", "Södra", "Övre", "Undre" ], "street_root": [ "Björk", "Järnvägs", "Ring", "Skol", "Skogs", "Ny", "Gran", "Idrotts", "Stor", "Kyrk", "Industri", "Park", "Strand", "Skol", "Trädgård", "Ängs", "Kyrko", "Villa", "Ek", "Kvarn", "Stations", "Back", "Furu", "Gen", "Fabriks", "Åker", "Bäck", "Asp" ], "street_suffix": [ "vägen", "gatan", "gränden", "gärdet", "allén" ], "state": [ "Blekinge", "Dalarna", "Gotland", "Gävleborg", "Göteborg", "Halland", "Jämtland", "Jönköping", "Kalmar", "Kronoberg", "Norrbotten", "Skaraborg", "Skåne", "Stockholm", "Södermanland", "Uppsala", "Värmland", "Västerbotten", "Västernorrland", "Västmanland", "Älvsborg", "Örebro", "Östergötland" ], "city": [ "#{city_prefix}#{city_suffix}" ], "street_name": [ "#{street_root}#{street_suffix}", "#{street_prefix} #{street_root}#{street_suffix}", "#{Name.first_name}#{common_street_suffix}", "#{Name.last_name}#{common_street_suffix}" ], "postcode": [ "#####" ], "building_number": [ "###", "##", "#" ], "secondary_address": [ "Lgh. ###", "Hus ###" ], "street_address": [ "#{street_name} #{building_number}" ], "default_country": [ "Sverige" ] }; sv.company = { "suffix": [ "Gruppen", "AB", "HB", "Group", "Investment", "Kommanditbolag", "Aktiebolag" ], "name": [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} #{suffix}" ] }; sv.internet = { "domain_suffix": [ "se", "nu", "info", "com", "org" ] }; sv.name = { "first_name_women": [ "Maria", "Anna", "Margareta", "Elisabeth", "Eva", "Birgitta", "Kristina", "Karin", "Elisabet", "Marie" ], "first_name_men": [ "Erik", "Lars", "Karl", "Anders", "Per", "Johan", "Nils", "Lennart", "Emil", "Hans" ], "last_name": [ "Johansson", "Andersson", "Karlsson", "Nilsson", "Eriksson", "Larsson", "Olsson", "Persson", "Svensson", "Gustafsson" ], "prefix": [ "Dr.", "Prof.", "PhD." ], "title": { "descriptor": [ "Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal" ], "level": [ "Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics" ], "job": [ "Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist" ] }, "name": [ "#{first_name_women} #{last_name}", "#{first_name_men} #{last_name}", "#{first_name_women} #{last_name}", "#{first_name_men} #{last_name}", "#{first_name_women} #{last_name}", "#{first_name_men} #{last_name}", "#{prefix} #{first_name_men} #{last_name}", "#{prefix} #{first_name_women} #{last_name}" ] }; sv.phone_number = { "formats": [ "####-#####", "####-######" ] }; sv.cell_phone = { "common_cell_prefix": [ 56, 62, 59 ], "formats": [ "#{common_cell_prefix}-###-####" ] }; sv.commerce = { "color": [ "vit", "silver", "grå", "svart", "röd", "grön", "blå", "gul", "lila", "indigo", "guld", "brun", "rosa", "purpur", "korall" ], "department": [ "Böcker", "Filmer", "Musik", "Spel", "Elektronik", "Datorer", "Hem", "Trädgård", "Verktyg", "Livsmedel", "Hälsa", "Skönhet", "Leksaker", "Klädsel", "Skor", "Smycken", "Sport" ], "product_name": { "adjective": [ "Liten", "Ergonomisk", "Robust", "Intelligent", "Söt", "Otrolig", "Fatastisk", "Praktisk", "Slimmad", "Grym" ], "material": [ "Stål", "Metall", "Trä", "Betong", "Plast", "Bomul", "Grnit", "Gummi", "Latex" ], "product": [ "Stol", "Bil", "Dator", "Handskar", "Pants", "Shirt", "Table", "Shoes", "Hat" ] } }; sv.team = { "suffix": [ "IF", "FF", "BK", "HK", "AIF", "SK", "FC", "SK", "BoIS", "FK", "BIS", "FIF", "IK" ], "name": [ "#{Address.city} #{suffix}" ] }; },{}],36:[function(require,module,exports){ var vi = {}; module["exports"] = vi; vi.title = "Vietnamese"; vi.address = { "city_root": [ "Bắc Giang", "Bắc Kạn", "Bắc Ninh", "Cao Bằng", "Điện Biên", "Hà Giang", "Hà Nam", "Hà Tây", "Hải Dương", "TP Hải Phòng", "Hòa Bình", "Hưng Yên", "Lai Châu", "Lào Cai", "Lạng Sơn", "Nam Định", "Ninh Bình", "Phú Thọ", "Quảng Ninh", "Sơn La", "Thái Bình", "Thái Nguyên", "Tuyên Quang", "Vĩnh Phúc", "Yên Bái", "TP Đà Nẵng", "Bình Định", "Đắk Lắk", "Đắk Nông", "Gia Lai", "Hà Tĩnh", "Khánh Hòa", "Kon Tum", "Nghệ An", "Phú Yên", "Quảng Bình", "Quảng Nam", "Quảng Ngãi", "Quảng Trị", "Thanh Hóa", "Thừa Thiên Huế", "TP TP. Hồ Chí Minh", "An Giang", "Bà Rịa Vũng Tàu", "Bạc Liêu", "Bến Tre", "Bình Dương", "Bình Phước", "Bình Thuận", "Cà Mau", "TP Cần Thơ", "Đồng Nai", "Đồng Tháp", "Hậu Giang", "Kiên Giang", "Lâm Đồng", "Long An", "Ninh Thuận", "Sóc Trăng", "Tây Ninh", "Tiền Giang", "Trà Vinh", "Vĩnh Long" ], "city": [ "#{city_root}" ], "postcode": "/[A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}/", "county": [ "Avon", "Bedfordshire", "Berkshire", "Borders", "Buckinghamshire", "Cambridgeshire", "Central", "Cheshire", "Cleveland", "Clwyd", "Cornwall", "County Antrim", "County Armagh", "County Down", "County Fermanagh", "County Londonderry", "County Tyrone", "Cumbria", "Derbyshire", "Devon", "Dorset", "Dumfries and Galloway", "Durham", "Dyfed", "East Sussex", "Essex", "Fife", "Gloucestershire", "Grampian", "Greater Manchester", "Gwent", "Gwynedd County", "Hampshire", "Herefordshire", "Hertfordshire", "Highlands and Islands", "Humberside", "Isle of Wight", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Lothian", "Merseyside", "Mid Glamorgan", "Norfolk", "North Yorkshire", "Northamptonshire", "Northumberland", "Nottinghamshire", "Oxfordshire", "Powys", "Rutland", "Shropshire", "Somerset", "South Glamorgan", "South Yorkshire", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Tayside", "Tyne and Wear", "Việt Nam", "Warwickshire", "West Glamorgan", "West Midlands", "West Sussex", "West Yorkshire", "Wiltshire", "Worcestershire" ], "default_country": [ "Việt Nam" ] }; vi.internet = { "domain_suffix": [ "com", "net", "info", "vn", "com.vn" ] }; vi.phone_number = { "formats": [ "01#### #####", "01### ######", "01#1 ### ####", "011# ### ####", "02# #### ####", "03## ### ####", "055 #### ####", "056 #### ####", "0800 ### ####", "08## ### ####", "09## ### ####", "016977 ####", "01### #####", "0500 ######", "0800 ######" ] }; vi.cell_phone = { "formats": [ "074## ######", "075## ######", "076## ######", "077## ######", "078## ######", "079## ######" ] }; vi.name = { "first_name": [ "Phạm", "Nguyễn", "Trần", "Lê", "Lý", "Hoàng", "Phan", "Vũ", "Tăng", "Đặng", "Bùi", "Đỗ", "Hồ", "Ngô", "Dương", "Đào", "Đoàn", "Vương", "Trịnh", "Đinh", "Lâm", "Phùng", "Mai", "Tô", "Trương", "Hà" ], "last_name": [ "Nam", "Trung", "Thanh", "Thị", "Văn", "Dương", "Tăng", "Quốc", "Như", "Phạm", "Nguyễn", "Trần", "Lê", "Lý", "Hoàng", "Phan", "Vũ", "Tăng", "Đặng", "Bùi", "Đỗ", "Hồ", "Ngô", "Dương", "Đào", "Đoàn", "Vương", "Trịnh", "Đinh", "Lâm", "Phùng", "Mai", "Tô", "Trương", "Hà", "Vinh", "Nhung", "Hòa", "Tiến", "Tâm", "Bửu", "Loan", "Hiền", "Hải", "Vân", "Kha", "Minh", "Nhân", "Triệu", "Tuân", "Hữu", "Đức", "Phú", "Khoa", "Thắgn", "Sơn", "Dung", "Tú", "Trinh", "Thảo", "Sa", "Kim", "Long", "Thi", "Cường", "Ngọc", "Sinh", "Khang", "Phong", "Thắm", "Thu", "Thủy", "Nhàn" ], "name": [ "#{first_name} #{last_name}", "#{first_name} #{last_name} #{last_name}", "#{first_name} #{last_name} #{last_name} #{last_name}" ] }; vi.company = { "prefix": [ "Công ty", "Cty TNHH", "Cty", "Cửa hàng", "Trung tâm", "Chi nhánh" ], "name": [ "#{prefix} #{Name.last_name}" ] }; vi.lorem = { "words": [ "đã", "đang", "ừ", "ờ", "á", "không", "biết", "gì", "hết", "đâu", "nha", "thế", "thì", "là", "đánh", "đá", "đập", "phá", "viết", "vẽ", "tô", "thuê", "mướn", "mượn", "mua", "một", "hai", "ba", "bốn", "năm", "sáu", "bảy", "tám", "chín", "mười", "thôi", "việc", "nghỉ", "làm", "nhà", "cửa", "xe", "đạp", "ác", "độc", "khoảng", "khoan", "thuyền", "tàu", "bè", "lầu", "xanh", "đỏ", "tím", "vàng", "kim", "chỉ", "khâu", "may", "vá", "em", "anh", "yêu", "thương", "thích", "con", "cái", "bàn", "ghế", "tủ", "quần", "áo", "nón", "dép", "giày", "lỗi", "được", "ghét", "giết", "chết", "hết", "tôi", "bạn", "tui", "trời", "trăng", "mây", "gió", "máy", "hàng", "hóa", "leo", "núi", "bơi", "biển", "chìm", "xuồng", "nước", "ngọt", "ruộng", "đồng", "quê", "hương" ] }; },{}],37:[function(require,module,exports){ var zh_CN = {}; module["exports"] = zh_CN; zh_CN.title = "Chinese"; zh_CN.address = { "city_prefix": [ "长", "上", "南", "西", "北", "诸", "宁", "珠", "武", "衡", "成", "福", "厦", "贵", "吉", "海", "太", "济", "安", "吉", "包" ], "city_suffix": [ "沙市", "京市", "宁市", "安市", "乡县", "海市", "码市", "汉市", "阳市", "都市", "州市", "门市", "阳市", "口市", "原市", "南市", "徽市", "林市", "头市" ], "building_number": [ "#####", "####", "###", "##", "#" ], "street_suffix": [ "巷", "街", "路", "桥", "侬", "旁", "中心", "栋" ], "postcode": [ "######" ], "state": [ "北京市", "上海市", "天津市", "重庆市", "黑龙江省", "吉林省", "辽宁省", "内蒙古", "河北省", "新疆", "甘肃省", "青海省", "陕西省", "宁夏", "河南省", "山东省", "山西省", "安徽省", "湖北省", "湖南省", "江苏省", "四川省", "贵州省", "云南省", "广西省", "西藏", "浙江省", "江西省", "广东省", "福建省", "台湾省", "海南省", "香港", "澳门" ], "state_abbr": [ "京", "沪", "津", "渝", "黑", "吉", "辽", "蒙", "冀", "新", "甘", "青", "陕", "宁", "豫", "鲁", "晋", "皖", "鄂", "湘", "苏", "川", "黔", "滇", "桂", "藏", "浙", "赣", "粤", "闽", "台", "琼", "港", "澳" ], "city": [ "#{city_prefix}#{city_suffix}" ], "street_name": [ "#{Name.last_name}#{street_suffix}" ], "street_address": [ "#{street_name}#{building_number}号" ], "default_country": [ "中国" ] }; zh_CN.name = { "first_name": [ "王", "李", "张", "刘", "陈", "杨", "黄", "吴", "赵", "周", "徐", "孙", "马", "朱", "胡", "林", "郭", "何", "高", "罗", "郑", "梁", "谢", "宋", "唐", "许", "邓", "冯", "韩", "曹", "曾", "彭", "萧", "蔡", "潘", "田", "董", "袁", "于", "余", "叶", "蒋", "杜", "苏", "魏", "程", "吕", "丁", "沈", "任", "姚", "卢", "傅", "钟", "姜", "崔", "谭", "廖", "范", "汪", "陆", "金", "石", "戴", "贾", "韦", "夏", "邱", "方", "侯", "邹", "熊", "孟", "秦", "白", "江", "阎", "薛", "尹", "段", "雷", "黎", "史", "龙", "陶", "贺", "顾", "毛", "郝", "龚", "邵", "万", "钱", "严", "赖", "覃", "洪", "武", "莫", "孔" ], "last_name": [ "绍齐", "博文", "梓晨", "胤祥", "瑞霖", "明哲", "天翊", "凯瑞", "健雄", "耀杰", "潇然", "子涵", "越彬", "钰轩", "智辉", "致远", "俊驰", "雨泽", "烨磊", "晟睿", "文昊", "修洁", "黎昕", "远航", "旭尧", "鸿涛", "伟祺", "荣轩", "越泽", "浩宇", "瑾瑜", "皓轩", "擎苍", "擎宇", "志泽", "子轩", "睿渊", "弘文", "哲瀚", "雨泽", "楷瑞", "建辉", "晋鹏", "天磊", "绍辉", "泽洋", "鑫磊", "鹏煊", "昊强", "伟宸", "博超", "君浩", "子骞", "鹏涛", "炎彬", "鹤轩", "越彬", "风华", "靖琪", "明辉", "伟诚", "明轩", "健柏", "修杰", "志泽", "弘文", "峻熙", "嘉懿", "煜城", "懿轩", "烨伟", "苑博", "伟泽", "熠彤", "鸿煊", "博涛", "烨霖", "烨华", "煜祺", "智宸", "正豪", "昊然", "明杰", "立诚", "立轩", "立辉", "峻熙", "弘文", "熠彤", "鸿煊", "烨霖", "哲瀚", "鑫鹏", "昊天", "思聪", "展鹏", "笑愚", "志强", "炫明", "雪松", "思源", "智渊", "思淼", "晓啸", "天宇", "浩然", "文轩", "鹭洋", "振家", "乐驹", "晓博", "文博", "昊焱", "立果", "金鑫", "锦程", "嘉熙", "鹏飞", "子默", "思远", "浩轩", "语堂", "聪健", "明", "文", "果", "思", "鹏", "驰", "涛", "琪", "浩", "航", "彬" ], "name": [ "#{first_name}#{last_name}" ] }; zh_CN.phone_number = { "formats": [ "###-########", "####-########", "###########" ] }; },{}],38:[function(require,module,exports){ var faker = require('../index'); var Helpers = require('./helpers'); var lorem = { words: function (num) { if (typeof num == 'undefined') { num = 3; } return Helpers.shuffle(faker.definitions.lorem.words).slice(0, num); }, sentence: function (wordCount, range) { if (typeof wordCount == 'undefined') { wordCount = 3; } if (typeof range == 'undefined') { range = 7; } // strange issue with the node_min_test failing for captialize, please fix and add faker.lorem.back //return faker.lorem.words(wordCount + Helpers.randomNumber(range)).join(' ').capitalize(); return faker.lorem.words(wordCount + faker.random.number(range)).join(' '); }, sentences: function (sentenceCount) { if (typeof sentenceCount == 'undefined') { sentenceCount = 3; } var sentences = []; for (sentenceCount; sentenceCount > 0; sentenceCount--) { sentences.push(faker.lorem.sentence()); } return sentences.join("\n"); }, paragraph: function (sentenceCount) { if (typeof sentenceCount == 'undefined') { sentenceCount = 3; } return faker.lorem.sentences(sentenceCount + faker.random.number(3)); }, paragraphs: function (paragraphCount) { if (typeof paragraphCount == 'undefined') { paragraphCount = 3; } var paragraphs = []; for (paragraphCount; paragraphCount > 0; paragraphCount--) { paragraphs.push(faker.lorem.paragraph()); } return paragraphs.join("\n \r\t"); } }; module.exports = lorem; },{"../index":1,"./helpers":7}],39:[function(require,module,exports){ var faker = require('../index'); var _name = { firstName: function () { return faker.random.array_element(faker.definitions.name.first_name) }, lastName: function () { return faker.random.array_element(faker.definitions.name.last_name) }, findName: function (firstName, lastName) { var r = faker.random.number(8); firstName = firstName || faker.name.firstName(); lastName = lastName || faker.name.lastName(); switch (r) { case 0: return faker.name.prefix() + " " + firstName + " " + lastName; case 1: return firstName + " " + lastName + " " + faker.name.suffix(); } return firstName + " " + lastName; }, prefix: function () { return faker.random.array_element(faker.definitions.name.prefix); }, suffix: function () { return faker.random.array_element(faker.definitions.name.suffix); }, }; module.exports = _name; },{"../index":1}],40:[function(require,module,exports){ var faker = require('../index'); var phone = { phoneNumber: function (format) { format = format || faker.phone.phoneFormats(); return faker.helpers.replaceSymbolWithNumber(format); }, // FIXME: this is strange passing in an array index. phoneNumberFormat: function (phoneFormatsArrayIndex) { phoneFormatsArrayIndex = phoneFormatsArrayIndex || 0; return faker.helpers.replaceSymbolWithNumber(faker.definitions.phone_number.formats[phoneFormatsArrayIndex]); }, phoneFormats: function () { return faker.random.array_element(faker.definitions.phone_number.formats); } }; module.exports = phone; },{"../index":1}],41:[function(require,module,exports){ var mersenne = require('../vendor/mersenne'); var faker = require('../index'); var random = { // returns a single random number based on a max number or range number: function (options) { if (typeof options === "number") { var options = { max: options }; } options = options || { min: 0, max: 1, precision: 1 }; if (typeof options.min === "undefined") { options.min = 0; } if (typeof options.max === "undefined") { options.max = 1; } // by incrementing max by 1, max becomes inclusive of the range if (options.max > 0) { options.max++; } var randomNumber = mersenne.rand(options.max, options.min); return randomNumber; }, // takes an array and returns the array randomly sorted array_element: function (array) { array = array || ["a", "b", "c"]; var r = faker.random.number({ max: array.length - 1 }); return array[r]; }, // takes an object and returns the randomly key or value object_element: function (object, field) { object = object || {}; var array = Object.keys(object); var key = faker.random.array_element(array); return field === "key" ? key : object[key]; } }; module.exports = random; },{"../index":1,"../vendor/mersenne":42}],42:[function(require,module,exports){ // this program is a JavaScript version of Mersenne Twister, with concealment and encapsulation in class, // an almost straight conversion from the original program, mt19937ar.c, // translated by y. okada on July 17, 2006. // and modified a little at july 20, 2006, but there are not any substantial differences. // in this program, procedure descriptions and comments of original source code were not removed. // lines commented with //c// were originally descriptions of c procedure. and a few following lines are appropriate JavaScript descriptions. // lines commented with /* and */ are original comments. // lines commented with // are additional comments in this JavaScript version. // before using this version, create at least one instance of MersenneTwister19937 class, and initialize the each state, given below in c comments, of all the instances. /* A C-program for MT19937, with initialization improved 2002/1/26. Coded by Takuji Nishimura and Makoto Matsumoto. Before using, initialize the state by using init_genrand(seed) or init_by_array(init_key, key_length). Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Any feedback is very welcome. http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) */ function MersenneTwister19937() { /* constants should be scoped inside the class */ var N, M, MATRIX_A, UPPER_MASK, LOWER_MASK; /* Period parameters */ //c//#define N 624 //c//#define M 397 //c//#define MATRIX_A 0x9908b0dfUL /* constant vector a */ //c//#define UPPER_MASK 0x80000000UL /* most significant w-r bits */ //c//#define LOWER_MASK 0x7fffffffUL /* least significant r bits */ N = 624; M = 397; MATRIX_A = 0x9908b0df; /* constant vector a */ UPPER_MASK = 0x80000000; /* most significant w-r bits */ LOWER_MASK = 0x7fffffff; /* least significant r bits */ //c//static unsigned long mt[N]; /* the array for the state vector */ //c//static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ var mt = new Array(N); /* the array for the state vector */ var mti = N+1; /* mti==N+1 means mt[N] is not initialized */ function unsigned32 (n1) // returns a 32-bits unsiged integer from an operand to which applied a bit operator. { return n1 < 0 ? (n1 ^ UPPER_MASK) + UPPER_MASK : n1; } function subtraction32 (n1, n2) // emulates lowerflow of a c 32-bits unsiged integer variable, instead of the operator -. these both arguments must be non-negative integers expressible using unsigned 32 bits. { return n1 < n2 ? unsigned32((0x100000000 - (n2 - n1)) & 0xffffffff) : n1 - n2; } function addition32 (n1, n2) // emulates overflow of a c 32-bits unsiged integer variable, instead of the operator +. these both arguments must be non-negative integers expressible using unsigned 32 bits. { return unsigned32((n1 + n2) & 0xffffffff) } function multiplication32 (n1, n2) // emulates overflow of a c 32-bits unsiged integer variable, instead of the operator *. these both arguments must be non-negative integers expressible using unsigned 32 bits. { var sum = 0; for (var i = 0; i < 32; ++i){ if ((n1 >>> i) & 0x1){ sum = addition32(sum, unsigned32(n2 << i)); } } return sum; } /* initializes mt[N] with a seed */ //c//void init_genrand(unsigned long s) this.init_genrand = function (s) { //c//mt[0]= s & 0xffffffff; mt[0]= unsigned32(s & 0xffffffff); for (mti=1; mti<N; mti++) { mt[mti] = //c//(1812433253 * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); addition32(multiplication32(1812433253, unsigned32(mt[mti-1] ^ (mt[mti-1] >>> 30))), mti); /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ /* In the previous versions, MSBs of the seed affect */ /* only MSBs of the array mt[]. */ /* 2002/01/09 modified by Makoto Matsumoto */ //c//mt[mti] &= 0xffffffff; mt[mti] = unsigned32(mt[mti] & 0xffffffff); /* for >32 bit machines */ } } /* initialize by an array with array-length */ /* init_key is the array for initializing keys */ /* key_length is its length */ /* slight change for C++, 2004/2/26 */ //c//void init_by_array(unsigned long init_key[], int key_length) this.init_by_array = function (init_key, key_length) { //c//int i, j, k; var i, j, k; //c//init_genrand(19650218); this.init_genrand(19650218); i=1; j=0; k = (N>key_length ? N : key_length); for (; k; k--) { //c//mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525)) //c// + init_key[j] + j; /* non linear */ mt[i] = addition32(addition32(unsigned32(mt[i] ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1664525)), init_key[j]), j); mt[i] = //c//mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ unsigned32(mt[i] & 0xffffffff); i++; j++; if (i>=N) { mt[0] = mt[N-1]; i=1; } if (j>=key_length) j=0; } for (k=N-1; k; k--) { //c//mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941)) //c//- i; /* non linear */ mt[i] = subtraction32(unsigned32((dbg=mt[i]) ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1566083941)), i); //c//mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ mt[i] = unsigned32(mt[i] & 0xffffffff); i++; if (i>=N) { mt[0] = mt[N-1]; i=1; } } mt[0] = 0x80000000; /* MSB is 1; assuring non-zero initial array */ } /* moved outside of genrand_int32() by jwatte 2010-11-17; generate less garbage */ var mag01 = [0x0, MATRIX_A]; /* generates a random number on [0,0xffffffff]-interval */ //c//unsigned long genrand_int32(void) this.genrand_int32 = function () { //c//unsigned long y; //c//static unsigned long mag01[2]={0x0UL, MATRIX_A}; var y; /* mag01[x] = x * MATRIX_A for x=0,1 */ if (mti >= N) { /* generate N words at one time */ //c//int kk; var kk; if (mti == N+1) /* if init_genrand() has not been called, */ //c//init_genrand(5489); /* a default initial seed is used */ this.init_genrand(5489); /* a default initial seed is used */ for (kk=0;kk<N-M;kk++) { //c//y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); //c//mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK)); mt[kk] = unsigned32(mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]); } for (;kk<N-1;kk++) { //c//y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); //c//mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK)); mt[kk] = unsigned32(mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]); } //c//y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); //c//mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK)); mt[N-1] = unsigned32(mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]); mti = 0; } y = mt[mti++]; /* Tempering */ //c//y ^= (y >> 11); //c//y ^= (y << 7) & 0x9d2c5680; //c//y ^= (y << 15) & 0xefc60000; //c//y ^= (y >> 18); y = unsigned32(y ^ (y >>> 11)); y = unsigned32(y ^ ((y << 7) & 0x9d2c5680)); y = unsigned32(y ^ ((y << 15) & 0xefc60000)); y = unsigned32(y ^ (y >>> 18)); return y; } /* generates a random number on [0,0x7fffffff]-interval */ //c//long genrand_int31(void) this.genrand_int31 = function () { //c//return (genrand_int32()>>1); return (this.genrand_int32()>>>1); } /* generates a random number on [0,1]-real-interval */ //c//double genrand_real1(void) this.genrand_real1 = function () { //c//return genrand_int32()*(1.0/4294967295.0); return this.genrand_int32()*(1.0/4294967295.0); /* divided by 2^32-1 */ } /* generates a random number on [0,1)-real-interval */ //c//double genrand_real2(void) this.genrand_real2 = function () { //c//return genrand_int32()*(1.0/4294967296.0); return this.genrand_int32()*(1.0/4294967296.0); /* divided by 2^32 */ } /* generates a random number on (0,1)-real-interval */ //c//double genrand_real3(void) this.genrand_real3 = function () { //c//return ((genrand_int32()) + 0.5)*(1.0/4294967296.0); return ((this.genrand_int32()) + 0.5)*(1.0/4294967296.0); /* divided by 2^32 */ } /* generates a random number on [0,1) with 53-bit resolution*/ //c//double genrand_res53(void) this.genrand_res53 = function () { //c//unsigned long a=genrand_int32()>>5, b=genrand_int32()>>6; var a=this.genrand_int32()>>>5, b=this.genrand_int32()>>>6; return(a*67108864.0+b)*(1.0/9007199254740992.0); } /* These real versions are due to Isaku Wada, 2002/01/09 added */ } // Exports: Public API // Export the twister class exports.MersenneTwister19937 = MersenneTwister19937; // Export a simplified function to generate random numbers var gen = new MersenneTwister19937; gen.init_genrand((new Date).getTime() % 1000000000); // Added max, min range functionality, Marak Squires Sept 11 2014 exports.rand = function(max, min) { if (!max) { min = 0; max = 32768; } return Math.floor(gen.genrand_real2() * (max - min) + min); } exports.seed = function(S) { if (typeof(S) != 'number') { throw new Error("seed(S) must take numeric argument; is " + typeof(S)); } gen.init_genrand(S); } exports.seed_array = function(A) { if (typeof(A) != 'object') { throw new Error("seed_array(A) must take array of numbers; is " + typeof(A)); } gen.init_by_array(A); } },{}],43:[function(require,module,exports){ /* * password-generator * Copyright(c) 2011-2013 Bermi Ferrer <bermi@bermilabs.com> * MIT Licensed */ (function (root) { var localName, consonant, letter, password, vowel; letter = /[a-zA-Z]$/; vowel = /[aeiouAEIOU]$/; consonant = /[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/; // Defines the name of the local variable the passwordGenerator library will use // this is specially useful if window.passwordGenerator is already being used // by your application and you want a different name. For example: // // Declare before including the passwordGenerator library // var localPasswordGeneratorLibraryName = 'pass'; localName = root.localPasswordGeneratorLibraryName || "generatePassword", password = function (length, memorable, pattern, prefix) { var char, n; if (length == null) { length = 10; } if (memorable == null) { memorable = true; } if (pattern == null) { pattern = /\w/; } if (prefix == null) { prefix = ''; } if (prefix.length >= length) { return prefix; } if (memorable) { if (prefix.match(consonant)) { pattern = vowel; } else { pattern = consonant; } } n = Math.floor(Math.random() * 94) + 33; char = String.fromCharCode(n); if (memorable) { char = char.toLowerCase(); } if (!char.match(pattern)) { return password(length, memorable, pattern, prefix); } return password(length, memorable, pattern, "" + prefix + char); }; ((typeof exports !== 'undefined') ? exports : root)[localName] = password; if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { module.exports = password; } } // Establish the root object, `window` in the browser, or `global` on the server. }(this)); },{}],44:[function(require,module,exports){ /* Copyright (c) 2012-2014 Jeffrey Mealo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------------------------------ Based loosely on Luka Pusic's PHP Script: http://360percents.com/posts/php-random-user-agent-generator/ The license for that script is as follows: "THE BEER-WARE LICENSE" (Revision 42): <pusic93@gmail.com> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luka Pusic */ function rnd(a, b) { //calling rnd() with no arguments is identical to rnd(0, 100) a = a || 0; b = b || 100; if (typeof b === 'number' && typeof a === 'number') { //rnd(int min, int max) returns integer between min, max return (function (min, max) { if (min > max) { throw new RangeError('expected min <= max; got min = ' + min + ', max = ' + max); } return Math.floor(Math.random() * (max - min + 1)) + min; }(a, b)); } if (Object.prototype.toString.call(a) === "[object Array]") { //returns a random element from array (a), even weighting return a[Math.floor(Math.random() * a.length)]; } if (a && typeof a === 'object') { //returns a random key from the passed object; keys are weighted by the decimal probability in their value return (function (obj) { var rand = rnd(0, 100) / 100, min = 0, max = 0, key, return_val; for (key in obj) { if (obj.hasOwnProperty(key)) { max = obj[key] + min; return_val = key; if (rand >= min && rand <= max) { break; } min = min + obj[key]; } } return return_val; }(a)); } throw new TypeError('Invalid arguments passed to rnd. (' + (b ? a + ', ' + b : a) + ')'); } function randomLang() { return rnd(['AB', 'AF', 'AN', 'AR', 'AS', 'AZ', 'BE', 'BG', 'BN', 'BO', 'BR', 'BS', 'CA', 'CE', 'CO', 'CS', 'CU', 'CY', 'DA', 'DE', 'EL', 'EN', 'EO', 'ES', 'ET', 'EU', 'FA', 'FI', 'FJ', 'FO', 'FR', 'FY', 'GA', 'GD', 'GL', 'GV', 'HE', 'HI', 'HR', 'HT', 'HU', 'HY', 'ID', 'IS', 'IT', 'JA', 'JV', 'KA', 'KG', 'KO', 'KU', 'KW', 'KY', 'LA', 'LB', 'LI', 'LN', 'LT', 'LV', 'MG', 'MK', 'MN', 'MO', 'MS', 'MT', 'MY', 'NB', 'NE', 'NL', 'NN', 'NO', 'OC', 'PL', 'PT', 'RM', 'RO', 'RU', 'SC', 'SE', 'SK', 'SL', 'SO', 'SQ', 'SR', 'SV', 'SW', 'TK', 'TR', 'TY', 'UK', 'UR', 'UZ', 'VI', 'VO', 'YI', 'ZH']); } function randomBrowserAndOS() { var browser = rnd({ chrome: .45132810566, iexplorer: .27477061836, firefox: .19384170608, safari: .06186781118, opera: .01574236955 }), os = { chrome: {win: .89, mac: .09 , lin: .02}, firefox: {win: .83, mac: .16, lin: .01}, opera: {win: .91, mac: .03 , lin: .06}, safari: {win: .04 , mac: .96 }, iexplorer: ['win'] }; return [browser, rnd(os[browser])]; } function randomProc(arch) { var procs = { lin:['i686', 'x86_64'], mac: {'Intel' : .48, 'PPC': .01, 'U; Intel':.48, 'U; PPC' :.01}, win:['', 'WOW64', 'Win64; x64'] }; return rnd(procs[arch]); } function randomRevision(dots) { var return_val = ''; //generate a random revision //dots = 2 returns .x.y where x & y are between 0 and 9 for (var x = 0; x < dots; x++) { return_val += '.' + rnd(0, 9); } return return_val; } var version_string = { net: function () { return [rnd(1, 4), rnd(0, 9), rnd(10000, 99999), rnd(0, 9)].join('.'); }, nt: function () { return rnd(5, 6) + '.' + rnd(0, 3); }, ie: function () { return rnd(7, 11); }, trident: function () { return rnd(3, 7) + '.' + rnd(0, 1); }, osx: function (delim) { return [10, rnd(5, 10), rnd(0, 9)].join(delim || '.'); }, chrome: function () { return [rnd(13, 39), 0, rnd(800, 899), 0].join('.'); }, presto: function () { return '2.9.' + rnd(160, 190); }, presto2: function () { return rnd(10, 12) + '.00'; }, safari: function () { return rnd(531, 538) + '.' + rnd(0, 2) + '.' + rnd(0,2); } }; var browser = { firefox: function firefox(arch) { //https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference var firefox_ver = rnd(5, 15) + randomRevision(2), gecko_ver = 'Gecko/20100101 Firefox/' + firefox_ver, proc = randomProc(arch), os_ver = (arch === 'win') ? '(Windows NT ' + version_string.nt() + ((proc) ? '; ' + proc : '') : (arch === 'mac') ? '(Macintosh; ' + proc + ' Mac OS X ' + version_string.osx() : '(X11; Linux ' + proc; return 'Mozilla/5.0 ' + os_ver + '; rv:' + firefox_ver.slice(0, -2) + ') ' + gecko_ver; }, iexplorer: function iexplorer() { var ver = version_string.ie(); if (ver >= 11) { //http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx return 'Mozilla/5.0 (Windows NT 6.' + rnd(1,3) + '; Trident/7.0; ' + rnd(['Touch; ', '']) + 'rv:11.0) like Gecko'; } //http://msdn.microsoft.com/en-us/library/ie/ms537503(v=vs.85).aspx return 'Mozilla/5.0 (compatible; MSIE ' + ver + '.0; Windows NT ' + version_string.nt() + '; Trident/' + version_string.trident() + ((rnd(0, 1) === 1) ? '; .NET CLR ' + version_string.net() : '') + ')'; }, opera: function opera(arch) { //http://www.opera.com/docs/history/ var presto_ver = ' Presto/' + version_string.presto() + ' Version/' + version_string.presto2() + ')', os_ver = (arch === 'win') ? '(Windows NT ' + version_string.nt() + '; U; ' + randomLang() + presto_ver : (arch === 'lin') ? '(X11; Linux ' + randomProc(arch) + '; U; ' + randomLang() + presto_ver : '(Macintosh; Intel Mac OS X ' + version_string.osx() + ' U; ' + randomLang() + ' Presto/' + version_string.presto() + ' Version/' + version_string.presto2() + ')'; return 'Opera/' + rnd(9, 14) + '.' + rnd(0, 99) + ' ' + os_ver; }, safari: function safari(arch) { var safari = version_string.safari(), ver = rnd(4, 7) + '.' + rnd(0,1) + '.' + rnd(0,10), os_ver = (arch === 'mac') ? '(Macintosh; ' + randomProc('mac') + ' Mac OS X '+ version_string.osx('_') + ' rv:' + rnd(2, 6) + '.0; '+ randomLang() + ') ' : '(Windows; U; Windows NT ' + version_string.nt() + ')'; return 'Mozilla/5.0 ' + os_ver + 'AppleWebKit/' + safari + ' (KHTML, like Gecko) Version/' + ver + ' Safari/' + safari; }, chrome: function chrome(arch) { var safari = version_string.safari(), os_ver = (arch === 'mac') ? '(Macintosh; ' + randomProc('mac') + ' Mac OS X ' + version_string.osx('_') + ') ' : (arch === 'win') ? '(Windows; U; Windows NT ' + version_string.nt() + ')' : '(X11; Linux ' + randomProc(arch); return 'Mozilla/5.0 ' + os_ver + ' AppleWebKit/' + safari + ' (KHTML, like Gecko) Chrome/' + version_string.chrome() + ' Safari/' + safari; } }; exports.generate = function generate() { var random = randomBrowserAndOS(); return browser[random[0]](random[1]); }; },{}]},{},[1])(1) });
pombredanne/cdnjs
ajax/libs/Faker/2.2.4/faker.js
JavaScript
mit
731,127
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/nls/zh/colors",({aliceblue:"爱丽丝蓝",antiquewhite:"古董白",aqua:"浅绿色",aquamarine:"碧绿色",azure:"天蓝色",beige:"米色",bisque:"桔黄色",black:"黑色",blanchedalmond:"白杏色",blue:"蓝色",blueviolet:"蓝紫色",brown:"棕色",burlywood:"实木色",cadetblue:"灰蓝色",chartreuse:"黄绿色",chocolate:"巧克力色",coral:"珊瑚色",cornflowerblue:"浅蓝色",cornsilk:"米绸色",crimson:"绯红色",cyan:"青蓝色",darkblue:"深蓝",darkcyan:"深青绿",darkgoldenrod:"深金黄",darkgray:"深灰色",darkgreen:"深绿色",darkgrey:"深灰色",darkkhaki:"深卡其色",darkmagenta:"深洋红色",darkolivegreen:"深橄榄绿",darkorange:"深橙色",darkorchid:"深紫色",darkred:"深红色",darksalmon:"深橙红",darkseagreen:"深海藻绿",darkslateblue:"深青蓝",darkslategray:"深青灰",darkslategrey:"深青灰",darkturquoise:"深粉蓝",darkviolet:"深紫色",deeppink:"深粉红色",deepskyblue:"深天蓝色",dimgray:"暗灰色",dimgrey:"暗灰色",dodgerblue:"闪蓝色",firebrick:"砖红",floralwhite:"花白色",forestgreen:"森林绿",fuchsia:"紫红色",gainsboro:"淡灰色",ghostwhite:"苍白",gold:"金黄色",goldenrod:"金麒麟色",gray:"灰色",green:"绿色",greenyellow:"绿黄色",grey:"灰色",honeydew:"蜜汁色",hotpink:"深粉红",indianred:"印度红",indigo:"靛青",ivory:"象牙色",khaki:"卡其色",lavender:"淡紫色",lavenderblush:"淡紫红",lawngreen:"草绿色",lemonchiffon:"柠檬绸色",lightblue:"淡蓝色",lightcoral:"浅珊瑚色",lightcyan:"浅青色",lightgoldenrodyellow:"浅金黄色",lightgray:"浅灰色",lightgreen:"浅绿色",lightgrey:"浅灰色",lightpink:"浅粉红色",lightsalmon:"淡橙色",lightseagreen:"浅海藻绿",lightskyblue:"浅天蓝色",lightslategray:"浅青灰",lightslategrey:"浅青灰",lightsteelblue:"浅钢蓝色",lightyellow:"浅黄色",lime:"淡黄绿色",limegreen:"橙绿色",linen:"亚麻色",magenta:"洋红色",maroon:"栗色",mediumaquamarine:"间绿色",mediumblue:"间蓝色",mediumorchid:"间紫色",mediumpurple:"间紫色",mediumseagreen:"间海蓝色",mediumslateblue:"间暗蓝色",mediumspringgreen:"间春绿色",mediumturquoise:"间绿宝石色",mediumvioletred:"间紫罗兰色",midnightblue:"深蓝色",mintcream:"薄荷色",mistyrose:"浅玫瑰色",moccasin:"鹿皮色",navajowhite:"纳瓦白",navy:"藏青色",oldlace:"老白色",olive:"橄榄绿",olivedrab:"草绿色",orange:"橙色",orangered:"橙红色",orchid:"紫色",palegoldenrod:"淡金黄色",palegreen:"淡绿色",paleturquoise:"苍绿色",palevioletred:"苍紫罗兰色",papayawhip:"木瓜色",peachpuff:"桃色",peru:"秘鲁色",pink:"粉红色",plum:"杨李色",powderblue:"铁蓝",purple:"紫色",red:"红色",rosybrown:"褐玫瑰红",royalblue:"品蓝",saddlebrown:"重褐色",salmon:"橙红",sandybrown:"沙褐色",seagreen:"海绿色",seashell:"海贝色",sienna:"赭色",silver:"银白色",skyblue:"天蓝色",slateblue:"石蓝色",slategray:"灰石色",slategrey:"灰石色",snow:"雪白色",springgreen:"春绿色",steelblue:"钢蓝色",tan:"棕褐色",teal:"水鸭色",thistle:"蓟色",tomato:"西红柿色",transparent:"透明的",turquoise:"绿宝石色",violet:"紫色",wheat:"浅黄色",white:"白色",whitesmoke:"烟白色",yellow:"黄色",yellowgreen:"黄绿色"}));
mitsuruog/cdnjs
ajax/libs/dojo/1.8.10/nls/zh/colors.js
JavaScript
mit
3,502
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/back",["./_base/config","./_base/lang","./sniff","./dom","./dom-construct","./_base/window","require"],function(_1,_2,_3,_4,_5,_6,_7){ var _8={}; 1&&_2.setObject("dojo.back",_8); var _9=_8.getHash=function(){ var h=window.location.hash; if(h.charAt(0)=="#"){ h=h.substring(1); } return _3("mozilla")?h:decodeURIComponent(h); },_a=_8.setHash=function(h){ if(!h){ h=""; } window.location.hash=encodeURIComponent(h); _b=history.length; }; var _c=(typeof (window)!=="undefined")?window.location.href:""; var _d=(typeof (window)!=="undefined")?_9():""; var _e=null; var _f=null; var _10=null; var _11=null; var _12=[]; var _13=[]; var _14=false; var _15=false; var _b; function _16(){ var _17=_13.pop(); if(!_17){ return; } var _18=_13[_13.length-1]; if(!_18&&_13.length==0){ _18=_e; } if(_18){ if(_18.kwArgs["back"]){ _18.kwArgs["back"](); }else{ if(_18.kwArgs["backButton"]){ _18.kwArgs["backButton"](); }else{ if(_18.kwArgs["handle"]){ _18.kwArgs.handle("back"); } } } } _12.push(_17); }; _8.goBack=_16; function _19(){ var _1a=_12.pop(); if(!_1a){ return; } if(_1a.kwArgs["forward"]){ _1a.kwArgs.forward(); }else{ if(_1a.kwArgs["forwardButton"]){ _1a.kwArgs.forwardButton(); }else{ if(_1a.kwArgs["handle"]){ _1a.kwArgs.handle("forward"); } } } _13.push(_1a); }; _8.goForward=_19; function _1b(url,_1c,_1d){ return {"url":url,"kwArgs":_1c,"urlHash":_1d}; }; function _1e(url){ var _1f=url.split("?"); if(_1f.length<2){ return null; }else{ return _1f[1]; } }; function _20(){ var url=(_1["dojoIframeHistoryUrl"]||_7.toUrl("./resources/iframe_history.html"))+"?"+(new Date()).getTime(); _14=true; if(_11){ _3("webkit")?_11.location=url:window.frames[_11.name].location=url; }else{ } return url; }; function _21(){ if(!_15){ var hsl=_13.length; var _22=_9(); if((_22===_d||window.location.href==_c)&&(hsl==1)){ _16(); return; } if(_12.length>0){ if(_12[_12.length-1].urlHash===_22){ _19(); return; } } if((hsl>=2)&&(_13[hsl-2])){ if(_13[hsl-2].urlHash===_22){ _16(); } } } }; _8.init=function(){ if(_4.byId("dj_history")){ return; } var src=_1["dojoIframeHistoryUrl"]||_7.toUrl("./resources/iframe_history.html"); if(_1.afterOnLoad){ console.error("dojo/back::init() must be called before the DOM has loaded. "+"Include dojo/back in a build layer."); }else{ document.write("<iframe style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"dj_history\" id=\"dj_history\" src=\""+src+"\"></iframe>"); } }; _8.setInitialState=function(_23){ _e=_1b(_c,_23,_d); }; _8.addToHistory=function(_24){ _12=[]; var _25=null; var url=null; if(!_11){ if(_1["useXDomain"]&&!_1["dojoIframeHistoryUrl"]){ console.warn("dojo/back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html"); } _11=window.frames["dj_history"]; } if(!_10){ _10=_5.create("a",{style:{display:"none"}},_6.body()); } if(_24["changeUrl"]){ _25=""+((_24["changeUrl"]!==true)?_24["changeUrl"]:(new Date()).getTime()); if(_13.length==0&&_e.urlHash==_25){ _e=_1b(url,_24,_25); return; }else{ if(_13.length>0&&_13[_13.length-1].urlHash==_25){ _13[_13.length-1]=_1b(url,_24,_25); return; } } _15=true; setTimeout(function(){ _a(_25); _15=false; },1); _10.href=_25; if(_3("ie")){ url=_20(); var _26=_24["back"]||_24["backButton"]||_24["handle"]; var tcb=function(_27){ if(_9()!=""){ setTimeout(function(){ _a(_25); },1); } _26.apply(this,[_27]); }; if(_24["back"]){ _24.back=tcb; }else{ if(_24["backButton"]){ _24.backButton=tcb; }else{ if(_24["handle"]){ _24.handle=tcb; } } } var _28=_24["forward"]||_24["forwardButton"]||_24["handle"]; var tfw=function(_29){ if(_9()!=""){ _a(_25); } if(_28){ _28.apply(this,[_29]); } }; if(_24["forward"]){ _24.forward=tfw; }else{ if(_24["forwardButton"]){ _24.forwardButton=tfw; }else{ if(_24["handle"]){ _24.handle=tfw; } } } }else{ if(!_3("ie")){ if(!_f){ _f=setInterval(_21,200); } } } }else{ url=_20(); } _13.push(_1b(url,_24,_25)); }; _8._iframeLoaded=function(evt,_2a){ var _2b=_1e(_2a.href); if(_2b==null){ if(_13.length==1){ _16(); } return; } if(_14){ _14=false; return; } if(_13.length>=2&&_2b==_1e(_13[_13.length-2].url)){ _16(); }else{ if(_12.length>0&&_2b==_1e(_12[_12.length-1].url)){ _19(); } } }; return _8; });
KyleMit/cdnjs
ajax/libs/dojo/1.8.7/back.js
JavaScript
mit
4,497
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/date/stamp",["../_base/lang","../_base/array"],function(_1,_2){ var _3={}; _1.setObject("dojo.date.stamp",_3); _3.fromISOString=function(_4,_5){ if(!_3._isoRegExp){ _3._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/; } var _6=_3._isoRegExp.exec(_4),_7=null; if(_6){ _6.shift(); if(_6[1]){ _6[1]--; } if(_6[6]){ _6[6]*=1000; } if(_5){ _5=new Date(_5); _2.forEach(_2.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_8){ return _5["get"+_8](); }),function(_9,_a){ _6[_a]=_6[_a]||_9; }); } _7=new Date(_6[0]||1970,_6[1]||0,_6[2]||1,_6[3]||0,_6[4]||0,_6[5]||0,_6[6]||0); if(_6[0]<100){ _7.setFullYear(_6[0]||1970); } var _b=0,_c=_6[7]&&_6[7].charAt(0); if(_c!="Z"){ _b=((_6[8]||0)*60)+(Number(_6[9])||0); if(_c!="-"){ _b*=-1; } } if(_c){ _b-=_7.getTimezoneOffset(); } if(_b){ _7.setTime(_7.getTime()+_b*60000); } } return _7; }; _3.toISOString=function(_d,_e){ var _f=function(n){ return (n<10)?"0"+n:n; }; _e=_e||{}; var _10=[],_11=_e.zulu?"getUTC":"get",_12=""; if(_e.selector!="time"){ var _13=_d[_11+"FullYear"](); _12=["0000".substr((_13+"").length)+_13,_f(_d[_11+"Month"]()+1),_f(_d[_11+"Date"]())].join("-"); } _10.push(_12); if(_e.selector!="date"){ var _14=[_f(_d[_11+"Hours"]()),_f(_d[_11+"Minutes"]()),_f(_d[_11+"Seconds"]())].join(":"); var _15=_d[_11+"Milliseconds"](); if(_e.milliseconds){ _14+="."+(_15<100?"0":"")+_f(_15); } if(_e.zulu){ _14+="Z"; }else{ if(_e.selector!="time"){ var _16=_d.getTimezoneOffset(); var _17=Math.abs(_16); _14+=(_16>0?"-":"+")+_f(Math.floor(_17/60))+":"+_f(_17%60); } } _10.push(_14); } return _10.join("T"); }; return _3; });
perdona/cdnjs
ajax/libs/dojo/1.8.6/date/stamp.js
JavaScript
mit
1,897
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/fx/easing",["../_base/lang"],function(_1){ var _2={linear:function(n){ return n; },quadIn:function(n){ return Math.pow(n,2); },quadOut:function(n){ return n*(n-2)*-1; },quadInOut:function(n){ n=n*2; if(n<1){ return Math.pow(n,2)/2; } return -1*((--n)*(n-2)-1)/2; },cubicIn:function(n){ return Math.pow(n,3); },cubicOut:function(n){ return Math.pow(n-1,3)+1; },cubicInOut:function(n){ n=n*2; if(n<1){ return Math.pow(n,3)/2; } n-=2; return (Math.pow(n,3)+2)/2; },quartIn:function(n){ return Math.pow(n,4); },quartOut:function(n){ return -1*(Math.pow(n-1,4)-1); },quartInOut:function(n){ n=n*2; if(n<1){ return Math.pow(n,4)/2; } n-=2; return -1/2*(Math.pow(n,4)-2); },quintIn:function(n){ return Math.pow(n,5); },quintOut:function(n){ return Math.pow(n-1,5)+1; },quintInOut:function(n){ n=n*2; if(n<1){ return Math.pow(n,5)/2; } n-=2; return (Math.pow(n,5)+2)/2; },sineIn:function(n){ return -1*Math.cos(n*(Math.PI/2))+1; },sineOut:function(n){ return Math.sin(n*(Math.PI/2)); },sineInOut:function(n){ return -1*(Math.cos(Math.PI*n)-1)/2; },expoIn:function(n){ return (n==0)?0:Math.pow(2,10*(n-1)); },expoOut:function(n){ return (n==1)?1:(-1*Math.pow(2,-10*n)+1); },expoInOut:function(n){ if(n==0){ return 0; } if(n==1){ return 1; } n=n*2; if(n<1){ return Math.pow(2,10*(n-1))/2; } --n; return (-1*Math.pow(2,-10*n)+2)/2; },circIn:function(n){ return -1*(Math.sqrt(1-Math.pow(n,2))-1); },circOut:function(n){ n=n-1; return Math.sqrt(1-Math.pow(n,2)); },circInOut:function(n){ n=n*2; if(n<1){ return -1/2*(Math.sqrt(1-Math.pow(n,2))-1); } n-=2; return 1/2*(Math.sqrt(1-Math.pow(n,2))+1); },backIn:function(n){ var s=1.70158; return Math.pow(n,2)*((s+1)*n-s); },backOut:function(n){ n=n-1; var s=1.70158; return Math.pow(n,2)*((s+1)*n+s)+1; },backInOut:function(n){ var s=1.70158*1.525; n=n*2; if(n<1){ return (Math.pow(n,2)*((s+1)*n-s))/2; } n-=2; return (Math.pow(n,2)*((s+1)*n+s)+2)/2; },elasticIn:function(n){ if(n==0||n==1){ return n; } var p=0.3; var s=p/4; n=n-1; return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p); },elasticOut:function(n){ if(n==0||n==1){ return n; } var p=0.3; var s=p/4; return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1; },elasticInOut:function(n){ if(n==0){ return 0; } n=n*2; if(n==2){ return 1; } var p=0.3*1.5; var s=p/4; if(n<1){ n-=1; return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p)); } n-=1; return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1; },bounceIn:function(n){ return (1-_2.bounceOut(1-n)); },bounceOut:function(n){ var s=7.5625; var p=2.75; var l; if(n<(1/p)){ l=s*Math.pow(n,2); }else{ if(n<(2/p)){ n-=(1.5/p); l=s*Math.pow(n,2)+0.75; }else{ if(n<(2.5/p)){ n-=(2.25/p); l=s*Math.pow(n,2)+0.9375; }else{ n-=(2.625/p); l=s*Math.pow(n,2)+0.984375; } } } return l; },bounceInOut:function(n){ if(n<0.5){ return _2.bounceIn(n*2)/2; } return (_2.bounceOut(n*2-1)/2)+0.5; }}; _1.setObject("dojo.fx.easing",_2); return _2; });
GaryChamberlain/cdnjs
ajax/libs/dojo/1.8.9/fx/easing.js
JavaScript
mit
3,116
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/dnd/Container",["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../_base/window","../dom","../dom-class","../dom-construct","../Evented","../has","../on","../query","../ready","../touch","./common"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,on,_c,_d,_e,_f){ var _10=_2("dojo.dnd.Container",_a,{skipForm:false,allowNested:false,constructor:function(_11,_12){ this.node=_7.byId(_11); if(!_12){ _12={}; } this.creator=_12.creator||null; this.skipForm=_12.skipForm; this.parent=_12.dropParent&&_7.byId(_12.dropParent); this.map={}; this.current=null; this.containerState=""; _8.add(this.node,"dojoDndContainer"); if(!(_12&&_12._skipStartup)){ this.startup(); } this.events=[on(this.node,_e.over,_5.hitch(this,"onMouseOver")),on(this.node,_e.out,_5.hitch(this,"onMouseOut")),on(this.node,"dragstart",_5.hitch(this,"onSelectStart")),on(this.node,"selectstart",_5.hitch(this,"onSelectStart"))]; },creator:function(){ },getItem:function(key){ return this.map[key]; },setItem:function(key,_13){ this.map[key]=_13; },delItem:function(key){ delete this.map[key]; },forInItems:function(f,o){ o=o||_4.global; var m=this.map,e=_f._empty; for(var i in m){ if(i in e){ continue; } f.call(o,m[i],i,this); } return o; },clearItems:function(){ this.map={}; },getAllNodes:function(){ return _c((this.allowNested?"":"> ")+".dojoDndItem",this.parent); },sync:function(){ var map={}; this.getAllNodes().forEach(function(_14){ if(_14.id){ var _15=this.getItem(_14.id); if(_15){ map[_14.id]=_15; return; } }else{ _14.id=_f.getUniqueId(); } var _16=_14.getAttribute("dndType"),_17=_14.getAttribute("dndData"); map[_14.id]={data:_17||_14.innerHTML,type:_16?_16.split(/\s*,\s*/):["text"]}; },this); this.map=map; return this; },insertNodes:function(_18,_19,_1a){ if(!this.parent.firstChild){ _1a=null; }else{ if(_19){ if(!_1a){ _1a=this.parent.firstChild; } }else{ if(_1a){ _1a=_1a.nextSibling; } } } var i,t; if(_1a){ for(i=0;i<_18.length;++i){ t=this._normalizedCreator(_18[i]); this.setItem(t.node.id,{data:t.data,type:t.type}); _1a.parentNode.insertBefore(t.node,_1a); } }else{ for(i=0;i<_18.length;++i){ t=this._normalizedCreator(_18[i]); this.setItem(t.node.id,{data:t.data,type:t.type}); this.parent.appendChild(t.node); } } return this; },destroy:function(){ _1.forEach(this.events,function(_1b){ _1b.remove(); }); this.clearItems(); this.node=this.parent=this.current=null; },markupFactory:function(_1c,_1d,_1e){ _1c._skipStartup=true; return new _1e(_1d,_1c); },startup:function(){ if(!this.parent){ this.parent=this.node; if(this.parent.tagName.toLowerCase()=="table"){ var c=this.parent.getElementsByTagName("tbody"); if(c&&c.length){ this.parent=c[0]; } } } this.defaultCreator=_f._defaultCreator(this.parent); this.sync(); },onMouseOver:function(e){ var n=e.relatedTarget; while(n){ if(n==this.node){ break; } try{ n=n.parentNode; } catch(x){ n=null; } } if(!n){ this._changeState("Container","Over"); this.onOverEvent(); } n=this._getChildByEvent(e); if(this.current==n){ return; } if(this.current){ this._removeItemClass(this.current,"Over"); } if(n){ this._addItemClass(n,"Over"); } this.current=n; },onMouseOut:function(e){ for(var n=e.relatedTarget;n;){ if(n==this.node){ return; } try{ n=n.parentNode; } catch(x){ n=null; } } if(this.current){ this._removeItemClass(this.current,"Over"); this.current=null; } this._changeState("Container",""); this.onOutEvent(); },onSelectStart:function(e){ if(!this.skipForm||!_f.isFormElement(e)){ _3.stop(e); } },onOverEvent:function(){ },onOutEvent:function(){ },_changeState:function(_1f,_20){ var _21="dojoDnd"+_1f; var _22=_1f.toLowerCase()+"State"; _8.replace(this.node,_21+_20,_21+this[_22]); this[_22]=_20; },_addItemClass:function(_23,_24){ _8.add(_23,"dojoDndItem"+_24); },_removeItemClass:function(_25,_26){ _8.remove(_25,"dojoDndItem"+_26); },_getChildByEvent:function(e){ var _27=e.target; if(_27){ for(var _28=_27.parentNode;_28;_27=_28,_28=_27.parentNode){ if((_28==this.parent||this.allowNested)&&_8.contains(_27,"dojoDndItem")){ return _27; } } } return null; },_normalizedCreator:function(_29,_2a){ var t=(this.creator||this.defaultCreator).call(this,_29,_2a); if(!_5.isArray(t.type)){ t.type=["text"]; } if(!t.node.id){ t.node.id=_f.getUniqueId(); } _8.add(t.node,"dojoDndItem"); return t; }}); _f._createNode=function(tag){ if(!tag){ return _f._createSpan; } return function(_2b){ return _9.create(tag,{innerHTML:_2b}); }; }; _f._createTrTd=function(_2c){ var tr=_9.create("tr"); _9.create("td",{innerHTML:_2c},tr); return tr; }; _f._createSpan=function(_2d){ return _9.create("span",{innerHTML:_2d}); }; _f._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"}; _f._defaultCreator=function(_2e){ var tag=_2e.tagName.toLowerCase(); var c=tag=="tbody"||tag=="thead"?_f._createTrTd:_f._createNode(_f._defaultCreatorNodes[tag]); return function(_2f,_30){ var _31=_2f&&_5.isObject(_2f),_32,_33,n; if(_31&&_2f.tagName&&_2f.nodeType&&_2f.getAttribute){ _32=_2f.getAttribute("dndData")||_2f.innerHTML; _33=_2f.getAttribute("dndType"); _33=_33?_33.split(/\s*,\s*/):["text"]; n=_2f; }else{ _32=(_31&&_2f.data)?_2f.data:_2f; _33=(_31&&_2f.type)?_2f.type:["text"]; n=(_30=="avatar"?_f._createSpan:c)(String(_32)); } if(!n.id){ n.id=_f.getUniqueId(); } return {node:n,data:_32,type:_33}; }; }; return _10; });
RoryStolzenberg/cdnjs
ajax/libs/dojo/1.8.5/dnd/Container.js
JavaScript
mit
5,508
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/colors",["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(_1,_2,_3,_4){ var _5={}; _2.setObject("dojo.colors",_5); var _6=function(m1,m2,h){ if(h<0){ ++h; } if(h>1){ --h; } var h6=6*h; if(h6<1){ return m1+(m2-m1)*h6; } if(2*h<1){ return m2; } if(3*h<2){ return m1+(m2-m1)*(2/3-h)*6; } return m1; }; _1.colorFromRgb=_3.fromRgb=function(_7,_8){ var m=_7.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/); if(m){ var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a; if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){ var r=c[0]; if(r.charAt(r.length-1)=="%"){ a=_4.map(c,function(x){ return parseFloat(x)*2.56; }); if(l==4){ a[3]=c[3]; } return _3.fromArray(a,_8); } return _3.fromArray(c,_8); } if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){ var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2; a=[_6(m1,m2,H+1/3)*256,_6(m1,m2,H)*256,_6(m1,m2,H-1/3)*256,1]; if(l==4){ a[3]=c[3]; } return _3.fromArray(a,_8); } } return null; }; var _9=function(c,_a,_b){ c=Number(c); return isNaN(c)?_b:c<_a?_a:c>_b?_b:c; }; _3.prototype.sanitize=function(){ var t=this; t.r=Math.round(_9(t.r,0,255)); t.g=Math.round(_9(t.g,0,255)); t.b=Math.round(_9(t.b,0,255)); t.a=_9(t.a,0,1); return this; }; _5.makeGrey=_3.makeGrey=function(g,a){ return _3.fromArray([g,g,g,a]); }; _2.mixin(_3.named,{"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"blanchedalmond":[255,235,205],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"oldlace":[253,245,230],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"whitesmoke":[245,245,245],"yellowgreen":[154,205,50]}); return _3; });
tmorin/cdnjs
ajax/libs/dojo/1.8.7/colors.js
JavaScript
mit
4,947
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/data/util/simpleFetch",["../../_base/lang","../../_base/kernel","./sorter"],function(_1,_2,_3){ var _4={}; _1.setObject("dojo.data.util.simpleFetch",_4); _4.errorHandler=function(_5,_6){ if(_6.onError){ var _7=_6.scope||_2.global; _6.onError.call(_7,_5,_6); } }; _4.fetchHandler=function(_8,_9){ var _a=_9.abort||null,_b=false,_c=_9.start?_9.start:0,_d=(_9.count&&(_9.count!==Infinity))?(_c+_9.count):_8.length; _9.abort=function(){ _b=true; if(_a){ _a.call(_9); } }; var _e=_9.scope||_2.global; if(!_9.store){ _9.store=this; } if(_9.onBegin){ _9.onBegin.call(_e,_8.length,_9); } if(_9.sort){ _8.sort(_3.createSortFunction(_9.sort,this)); } if(_9.onItem){ for(var i=_c;(i<_8.length)&&(i<_d);++i){ var _f=_8[i]; if(!_b){ _9.onItem.call(_e,_f,_9); } } } if(_9.onComplete&&!_b){ var _10=null; if(!_9.onItem){ _10=_8.slice(_c,_d); } _9.onComplete.call(_e,_10,_9); } }; _4.fetch=function(_11){ _11=_11||{}; if(!_11.store){ _11.store=this; } this._fetchItems(_11,_1.hitch(this,"fetchHandler"),_1.hitch(this,"errorHandler")); return _11; }; return _4; });
ramda/cdnjs
ajax/libs/dojo/1.8.8/data/util/simpleFetch.js
JavaScript
mit
1,268
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/data/util/simpleFetch",["../../_base/lang","../../_base/kernel","./sorter"],function(_1,_2,_3){ var _4={}; _1.setObject("dojo.data.util.simpleFetch",_4); _4.errorHandler=function(_5,_6){ if(_6.onError){ var _7=_6.scope||_2.global; _6.onError.call(_7,_5,_6); } }; _4.fetchHandler=function(_8,_9){ var _a=_9.abort||null,_b=false,_c=_9.start?_9.start:0,_d=(_9.count&&(_9.count!==Infinity))?(_c+_9.count):_8.length; _9.abort=function(){ _b=true; if(_a){ _a.call(_9); } }; var _e=_9.scope||_2.global; if(!_9.store){ _9.store=this; } if(_9.onBegin){ _9.onBegin.call(_e,_8.length,_9); } if(_9.sort){ _8.sort(_3.createSortFunction(_9.sort,this)); } if(_9.onItem){ for(var i=_c;(i<_8.length)&&(i<_d);++i){ var _f=_8[i]; if(!_b){ _9.onItem.call(_e,_f,_9); } } } if(_9.onComplete&&!_b){ var _10=null; if(!_9.onItem){ _10=_8.slice(_c,_d); } _9.onComplete.call(_e,_10,_9); } }; _4.fetch=function(_11){ _11=_11||{}; if(!_11.store){ _11.store=this; } this._fetchItems(_11,_1.hitch(this,"fetchHandler"),_1.hitch(this,"errorHandler")); return _11; }; return _4; });
RizkyAdiSaputra/cdnjs
ajax/libs/dojo/1.8.2/data/util/simpleFetch.js
JavaScript
mit
1,268
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/selector/lite",["../has","../_base/kernel"],function(_1,_2){ "use strict"; var _3=document.createElement("div"); var _4=_3.matchesSelector||_3.webkitMatchesSelector||_3.mozMatchesSelector||_3.msMatchesSelector||_3.oMatchesSelector; var _5=_3.querySelectorAll; var _6=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g; _1.add("dom-matches-selector",!!_4); _1.add("dom-qsa",!!_5); var _7=function(_8,_9){ if(_a&&_8.indexOf(",")>-1){ return _a(_8,_9); } var _b=_9?_9.ownerDocument||_9:_2.doc||document,_c=(_5?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(_8); _9=_9||_b; if(_c){ if(_c[2]){ var _d=_2.byId?_2.byId(_c[2]):_b.getElementById(_c[2]); if(!_d||(_c[1]&&_c[1]!=_d.tagName.toLowerCase())){ return []; } if(_9!=_b){ var _e=_d; while(_e!=_9){ _e=_e.parentNode; if(!_e){ return []; } } } return _c[3]?_7(_c[3],_d):[_d]; } if(_c[3]&&_9.getElementsByClassName){ return _9.getElementsByClassName(_c[4]); } var _d; if(_c[5]){ _d=_9.getElementsByTagName(_c[5]); if(_c[4]||_c[6]){ _8=(_c[4]||"")+_c[6]; }else{ return _d; } } } if(_5){ if(_9.nodeType===1&&_9.nodeName.toLowerCase()!=="object"){ return _f(_9,_8,_9.querySelectorAll); }else{ return _9.querySelectorAll(_8); } }else{ if(!_d){ _d=_9.getElementsByTagName("*"); } } var _10=[]; for(var i=0,l=_d.length;i<l;i++){ var _11=_d[i]; if(_11.nodeType==1&&_12(_11,_8,_9)){ _10.push(_11); } } return _10; }; var _f=function(_13,_14,_15){ var _16=_13,old=_13.getAttribute("id"),nid=old||"__dojo__",_17=_13.parentNode,_18=/^\s*[+~]/.test(_14); if(_18&&!_17){ return []; } if(!old){ _13.setAttribute("id",nid); }else{ nid=nid.replace(/'/g,"\\$&"); } if(_18&&_17){ _13=_13.parentNode; } var _19=_14.match(_6); for(var i=0;i<_19.length;i++){ _19[i]="[id='"+nid+"'] "+_19[i]; } _14=_19.join(","); try{ return _15.call(_13,_14); } finally{ if(!old){ _16.removeAttribute("id"); } } }; if(!_1("dom-matches-selector")){ var _12=(function(){ var _1a=_3.tagName=="div"?"toLowerCase":"toUpperCase"; var _1b={"":function(_1c){ _1c=_1c[_1a](); return function(_1d){ return _1d.tagName==_1c; }; },".":function(_1e){ var _1f=" "+_1e+" "; return function(_20){ return _20.className.indexOf(_1e)>-1&&(" "+_20.className+" ").indexOf(_1f)>-1; }; },"#":function(id){ return function(_21){ return _21.id==id; }; }}; var _22={"^=":function(_23,_24){ return _23.indexOf(_24)==0; },"*=":function(_25,_26){ return _25.indexOf(_26)>-1; },"$=":function(_27,_28){ return _27.substring(_27.length-_28.length,_27.length)==_28; },"~=":function(_29,_2a){ return (" "+_29+" ").indexOf(" "+_2a+" ")>-1; },"|=":function(_2b,_2c){ return (_2b+"-").indexOf(_2c+"-")==0; },"=":function(_2d,_2e){ return _2d==_2e; },"":function(_2f,_30){ return true; }}; function _31(_32,_33,_34){ var _35=_33.charAt(0); if(_35=="\""||_35=="'"){ _33=_33.slice(1,-1); } _33=_33.replace(/\\/g,""); var _36=_22[_34||""]; return function(_37){ var _38=_37.getAttribute(_32); return _38&&_36(_38,_33); }; }; function _39(_3a){ return function(_3b,_3c){ while((_3b=_3b.parentNode)!=_3c){ if(_3a(_3b,_3c)){ return true; } } }; }; function _3d(_3e){ return function(_3f,_40){ _3f=_3f.parentNode; return _3e?_3f!=_40&&_3e(_3f,_40):_3f==_40; }; }; var _41={}; function and(_42,_43){ return _42?function(_44,_45){ return _43(_44)&&_42(_44,_45); }:_43; }; return function(_46,_47,_48){ var _49=_41[_47]; if(!_49){ if(_47.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(t,_4a,_4b,_4c,_4d,_4e,_4f){ if(_4c){ _49=and(_49,_1b[_4b||""](_4c.replace(/\\/g,""))); }else{ if(_4a){ _49=(_4a==" "?_39:_3d)(_49); }else{ if(_4d){ _49=and(_49,_31(_4d,_4f,_4e)); } } } return ""; })){ throw new Error("Syntax error in query"); } if(!_49){ return true; } _41[_47]=_49; } return _49(_46,_48); }; })(); } if(!_1("dom-qsa")){ var _a=function(_50,_51){ var _52=_50.match(_6); var _53=[]; for(var i=0;i<_52.length;i++){ _50=new String(_52[i].replace(/\s*$/,"")); _50.indexOf=escape; var _54=_7(_50,_51); for(var j=0,l=_54.length;j<l;j++){ var _55=_54[j]; _53[_55.sourceIndex]=_55; } } var _56=[]; for(i in _53){ _56.push(_53[i]); } return _56; }; } _7.match=_4?function(_57,_58,_59){ if(_59&&_59.nodeType!=9){ return _f(_59,_58,function(_5a){ return _4.call(_57,_5a); }); } return _4.call(_57,_58); }:_12; return _7; });
CrossEye/cdnjs
ajax/libs/dojo/1.8.1/selector/lite.js
JavaScript
mit
4,565
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/nls/tr/colors",({aliceblue:"alice mavisi",antiquewhite:"antik beyaz",aqua:"deniz mavisi",aquamarine:"akuamarin",azure:"azur mavisi",beige:"bej",bisque:"bisküvi",black:"siyah",blanchedalmond:"soluk badem",blue:"mavi",blueviolet:"mavi-mor",brown:"kahverengi",burlywood:"sarımsı kahverengi",cadetblue:"denizci mavisi",chartreuse:"chartreuse",chocolate:"çikolata",coral:"mercan",cornflowerblue:"peygamber çiçeği mavisi",cornsilk:"mısır rengi",crimson:"crimson",cyan:"camgöbeği",darkblue:"koyu mavi",darkcyan:"koyu camgöbeği",darkgoldenrod:"koyu sarı",darkgray:"koyu gri",darkgreen:"koyu yeşil",darkgrey:"koyu gri",darkkhaki:"koyu haki",darkmagenta:"koyu mor",darkolivegreen:"koyu zeytin yeşili",darkorange:"koyu turuncu",darkorchid:"koyu orkide",darkred:"koyu kırmızı",darksalmon:"koyu somon",darkseagreen:"koyu deniz yeşili",darkslateblue:"koyu arduvaz mavisi",darkslategray:"koyu arduvaz grisi",darkslategrey:"koyu arduvaz grisi",darkturquoise:"koyu turkuaz",darkviolet:"koyu eflatun",deeppink:"koyu pembe",deepskyblue:"koyu gök mavisi",dimgray:"soluk gri",dimgrey:"soluk gri",dodgerblue:"toz mavisi",firebrick:"canlı kiremit",floralwhite:"çiçek beyazı",forestgreen:"koyu deniz yeşili",fuchsia:"fuşya",gainsboro:"gainsboro",ghostwhite:"silik beyaz",gold:"altın",goldenrod:"sarısabır",gray:"gri",green:"yeşil",greenyellow:"yeşil-sarı",grey:"gri",honeydew:"çam sakızı",hotpink:"sıcak pembe",indianred:"kızılderili kırmızısı",indigo:"çivit mavisi",ivory:"fildişi",khaki:"haki",lavender:"lavanta",lavenderblush:"lavanta pembesi",lawngreen:"çimen yeşili",lemonchiffon:"limoni",lightblue:"açık mavi",lightcoral:"açık mercan",lightcyan:"açık camgöbeği",lightgoldenrodyellow:"açık sarısabır",lightgray:"açık gri",lightgreen:"açık yeşil",lightgrey:"açık gri",lightpink:"açık pembe",lightsalmon:"açık somon",lightseagreen:"açık deniz yeşili",lightskyblue:"açık gök mavisi",lightslategray:"açık arduvaz grisi",lightslategrey:"açık arduvaz grisi",lightsteelblue:"açık metalik mavi",lightyellow:"açık sarı",lime:"limon yeşili",limegreen:"küf yeşili",linen:"keten",magenta:"macenta",maroon:"kestane",mediumaquamarine:"orta akuamarin",mediumblue:"orta mavi",mediumorchid:"orta orkide",mediumpurple:"orta mor",mediumseagreen:"orta deniz yeşili",mediumslateblue:"orta arduvaz mavisi",mediumspringgreen:"orta bahar yeşili",mediumturquoise:"orta turkuaz",mediumvioletred:"orta menekşe kırmızısı",midnightblue:"gece mavisi",mintcream:"naneli krem",mistyrose:"gülkurusu",moccasin:"mokosen",navajowhite:"navajo beyazı",navy:"lacivert",oldlace:"eski dantel",olive:"zeytin",olivedrab:"asker yeşili",orange:"turuncu",orangered:"turuncu kırmızı",orchid:"orkide",palegoldenrod:"soluk sarısabır",palegreen:"soluk yeşil",paleturquoise:"soluk turkuaz",palevioletred:"soluk menekşe kırmızısı",papayawhip:"papaya sapı",peachpuff:"açık şeftali",peru:"peru",pink:"pembe",plum:"erik",powderblue:"pudra mavisi",purple:"mor",red:"kırmızı",rosybrown:"pembemsi kahverengi",royalblue:"parlak koyu mavi",saddlebrown:"açık kahve",salmon:"somon",sandybrown:"kum rengi",seagreen:"deniz yeşili",seashell:"deniz kabuğu",sienna:"koyu kahve",silver:"gümüş",skyblue:"gök mavisi",slateblue:"arduvaz mavisi",slategray:"arduvaz grisi",slategrey:"arduvaz grisi",snow:"kar",springgreen:"bahar yeşili",steelblue:"metalik mavi",tan:"güneş yanığı",teal:"Teal mavi",thistle:"devedikeni",tomato:"domates",transparent:"saydam",turquoise:"turkuaz",violet:"eflatun",wheat:"buğday",white:"beyaz",whitesmoke:"beyaz duman",yellow:"sarı",yellowgreen:"sarı yeşil"}));
r3x/cdnjs
ajax/libs/dojo/1.8.6/nls/tr/colors.js
JavaScript
mit
3,852
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/_base/url",["./kernel"],function(_1){ var _2=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_3=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_4=function(){ var n=null,_5=arguments,_6=[_5[0]]; for(var i=1;i<_5.length;i++){ if(!_5[i]){ continue; } var _7=new _4(_5[i]+""),_8=new _4(_6[0]+""); if(_7.path==""&&!_7.scheme&&!_7.authority&&!_7.query){ if(_7.fragment!=n){ _8.fragment=_7.fragment; } _7=_8; }else{ if(!_7.scheme){ _7.scheme=_8.scheme; if(!_7.authority){ _7.authority=_8.authority; if(_7.path.charAt(0)!="/"){ var _9=_8.path.substring(0,_8.path.lastIndexOf("/")+1)+_7.path; var _a=_9.split("/"); for(var j=0;j<_a.length;j++){ if(_a[j]=="."){ if(j==_a.length-1){ _a[j]=""; }else{ _a.splice(j,1); j--; } }else{ if(j>0&&!(j==1&&_a[0]=="")&&_a[j]==".."&&_a[j-1]!=".."){ if(j==(_a.length-1)){ _a.splice(j,1); _a[j-1]=""; }else{ _a.splice(j-1,2); j-=2; } } } } _7.path=_a.join("/"); } } } } _6=[]; if(_7.scheme){ _6.push(_7.scheme,":"); } if(_7.authority){ _6.push("//",_7.authority); } _6.push(_7.path); if(_7.query){ _6.push("?",_7.query); } if(_7.fragment){ _6.push("#",_7.fragment); } } this.uri=_6.join(""); var r=this.uri.match(_2); this.scheme=r[2]||(r[1]?"":n); this.authority=r[4]||(r[3]?"":n); this.path=r[5]; this.query=r[7]||(r[6]?"":n); this.fragment=r[9]||(r[8]?"":n); if(this.authority!=n){ r=this.authority.match(_3); this.user=r[3]||n; this.password=r[4]||n; this.host=r[6]||r[7]; this.port=r[9]||n; } }; _4.prototype.toString=function(){ return this.uri; }; return _1._Url=_4; });
Olical/cdnjs
ajax/libs/dojo/1.8.7/_base/url.js
JavaScript
mit
1,783
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/nls/zh/colors",({aliceblue:"爱丽丝蓝",antiquewhite:"古董白",aqua:"浅绿色",aquamarine:"碧绿色",azure:"天蓝色",beige:"米色",bisque:"桔黄色",black:"黑色",blanchedalmond:"白杏色",blue:"蓝色",blueviolet:"蓝紫色",brown:"棕色",burlywood:"实木色",cadetblue:"灰蓝色",chartreuse:"黄绿色",chocolate:"巧克力色",coral:"珊瑚色",cornflowerblue:"浅蓝色",cornsilk:"米绸色",crimson:"绯红色",cyan:"青蓝色",darkblue:"深蓝",darkcyan:"深青绿",darkgoldenrod:"深金黄",darkgray:"深灰色",darkgreen:"深绿色",darkgrey:"深灰色",darkkhaki:"深卡其色",darkmagenta:"深洋红色",darkolivegreen:"深橄榄绿",darkorange:"深橙色",darkorchid:"深紫色",darkred:"深红色",darksalmon:"深橙红",darkseagreen:"深海藻绿",darkslateblue:"深青蓝",darkslategray:"深青灰",darkslategrey:"深青灰",darkturquoise:"深粉蓝",darkviolet:"深紫色",deeppink:"深粉红色",deepskyblue:"深天蓝色",dimgray:"暗灰色",dimgrey:"暗灰色",dodgerblue:"闪蓝色",firebrick:"砖红",floralwhite:"花白色",forestgreen:"森林绿",fuchsia:"紫红色",gainsboro:"淡灰色",ghostwhite:"苍白",gold:"金黄色",goldenrod:"金麒麟色",gray:"灰色",green:"绿色",greenyellow:"绿黄色",grey:"灰色",honeydew:"蜜汁色",hotpink:"深粉红",indianred:"印度红",indigo:"靛青",ivory:"象牙色",khaki:"卡其色",lavender:"淡紫色",lavenderblush:"淡紫红",lawngreen:"草绿色",lemonchiffon:"柠檬绸色",lightblue:"淡蓝色",lightcoral:"浅珊瑚色",lightcyan:"浅青色",lightgoldenrodyellow:"浅金黄色",lightgray:"浅灰色",lightgreen:"浅绿色",lightgrey:"浅灰色",lightpink:"浅粉红色",lightsalmon:"淡橙色",lightseagreen:"浅海藻绿",lightskyblue:"浅天蓝色",lightslategray:"浅青灰",lightslategrey:"浅青灰",lightsteelblue:"浅钢蓝色",lightyellow:"浅黄色",lime:"淡黄绿色",limegreen:"橙绿色",linen:"亚麻色",magenta:"洋红色",maroon:"栗色",mediumaquamarine:"间绿色",mediumblue:"间蓝色",mediumorchid:"间紫色",mediumpurple:"间紫色",mediumseagreen:"间海蓝色",mediumslateblue:"间暗蓝色",mediumspringgreen:"间春绿色",mediumturquoise:"间绿宝石色",mediumvioletred:"间紫罗兰色",midnightblue:"深蓝色",mintcream:"薄荷色",mistyrose:"浅玫瑰色",moccasin:"鹿皮色",navajowhite:"纳瓦白",navy:"藏青色",oldlace:"老白色",olive:"橄榄绿",olivedrab:"草绿色",orange:"橙色",orangered:"橙红色",orchid:"紫色",palegoldenrod:"淡金黄色",palegreen:"淡绿色",paleturquoise:"苍绿色",palevioletred:"苍紫罗兰色",papayawhip:"木瓜色",peachpuff:"桃色",peru:"秘鲁色",pink:"粉红色",plum:"杨李色",powderblue:"铁蓝",purple:"紫色",red:"红色",rosybrown:"褐玫瑰红",royalblue:"品蓝",saddlebrown:"重褐色",salmon:"橙红",sandybrown:"沙褐色",seagreen:"海绿色",seashell:"海贝色",sienna:"赭色",silver:"银白色",skyblue:"天蓝色",slateblue:"石蓝色",slategray:"灰石色",slategrey:"灰石色",snow:"雪白色",springgreen:"春绿色",steelblue:"钢蓝色",tan:"棕褐色",teal:"水鸭色",thistle:"蓟色",tomato:"西红柿色",transparent:"透明的",turquoise:"绿宝石色",violet:"紫色",wheat:"浅黄色",white:"白色",whitesmoke:"烟白色",yellow:"黄色",yellowgreen:"黄绿色"}));
mohitbhatia1994/cdnjs
ajax/libs/dojo/1.8.8/nls/zh/colors.js
JavaScript
mit
3,502
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License * @link http://codeigniter.com * @since Version 1.0.0 * @filesource */ defined('BASEPATH') OR exit('No direct script access allowed'); /** * CodeIgniter Date Helpers * * @package CodeIgniter * @subpackage Helpers * @category Helpers * @author EllisLab Dev Team * @link http://codeigniter.com/user_guide/helpers/date_helper.html */ // ------------------------------------------------------------------------ if ( ! function_exists('now')) { /** * Get "now" time * * Returns time() based on the timezone parameter or on the * "time_reference" setting * * @param string * @return int */ function now($timezone = NULL) { if (empty($timezone)) { $timezone = config_item('time_reference'); } if ($timezone === 'local' OR $timezone === date_default_timezone_get()) { return time(); } $datetime = new DateTime('now', new DateTimeZone($timezone)); sscanf($datetime->format('j-n-Y G:i:s'), '%d-%d-%d %d:%d:%d', $day, $month, $year, $hour, $minute, $second); return mktime($hour, $minute, $second, $month, $day, $year); } } // ------------------------------------------------------------------------ if ( ! function_exists('mdate')) { /** * Convert MySQL Style Datecodes * * This function is identical to PHPs date() function, * except that it allows date codes to be formatted using * the MySQL style, where each code letter is preceded * with a percent sign: %Y %m %d etc... * * The benefit of doing dates this way is that you don't * have to worry about escaping your text letters that * match the date codes. * * @param string * @param int * @return int */ function mdate($datestr = '', $time = '') { if ($datestr === '') { return ''; } elseif (empty($time)) { $time = now(); } $datestr = str_replace( '%\\', '', preg_replace('/([a-z]+?){1}/i', '\\\\\\1', $datestr) ); return date($datestr, $time); } } // ------------------------------------------------------------------------ if ( ! function_exists('standard_date')) { /** * Standard Date * * Returns a date formatted according to the submitted standard. * * As of PHP 5.2, the DateTime extension provides constants that * serve for the exact same purpose and are used with date(). * * @todo Remove in version 3.1+. * @deprecated 3.0.0 Use PHP's native date() instead. * @link http://www.php.net/manual/en/class.datetime.php#datetime.constants.types * * @example date(DATE_RFC822, now()); // default * @example date(DATE_W3C, $time); // a different format and time * * @param string $fmt = 'DATE_RFC822' the chosen format * @param int $time = NULL Unix timestamp * @return string */ function standard_date($fmt = 'DATE_RFC822', $time = NULL) { if (empty($time)) { $time = now(); } // Procedural style pre-defined constants from the DateTime extension if (strpos($fmt, 'DATE_') !== 0 OR defined($fmt) === FALSE) { return FALSE; } return date(constant($fmt), $time); } } // ------------------------------------------------------------------------ if ( ! function_exists('timespan')) { /** * Timespan * * Returns a span of seconds in this format: * 10 days 14 hours 36 minutes 47 seconds * * @param int a number of seconds * @param int Unix timestamp * @param int a number of display units * @return string */ function timespan($seconds = 1, $time = '', $units = 7) { $CI =& get_instance(); $CI->lang->load('date'); is_numeric($seconds) OR $seconds = 1; is_numeric($time) OR $time = time(); is_numeric($units) OR $units = 7; $seconds = ($time <= $seconds) ? 1 : $time - $seconds; $str = array(); $years = floor($seconds / 31557600); if ($years > 0) { $str[] = $years.' '.$CI->lang->line($years > 1 ? 'date_years' : 'date_year'); } $seconds -= $years * 31557600; $months = floor($seconds / 2629743); if (count($str) < $units && ($years > 0 OR $months > 0)) { if ($months > 0) { $str[] = $months.' '.$CI->lang->line($months > 1 ? 'date_months' : 'date_month'); } $seconds -= $months * 2629743; } $weeks = floor($seconds / 604800); if (count($str) < $units && ($years > 0 OR $months > 0 OR $weeks > 0)) { if ($weeks > 0) { $str[] = $weeks.' '.$CI->lang->line($weeks > 1 ? 'date_weeks' : 'date_week'); } $seconds -= $weeks * 604800; } $days = floor($seconds / 86400); if (count($str) < $units && ($months > 0 OR $weeks > 0 OR $days > 0)) { if ($days > 0) { $str[] = $days.' '.$CI->lang->line($days > 1 ? 'date_days' : 'date_day'); } $seconds -= $days * 86400; } $hours = floor($seconds / 3600); if (count($str) < $units && ($days > 0 OR $hours > 0)) { if ($hours > 0) { $str[] = $hours.' '.$CI->lang->line($hours > 1 ? 'date_hours' : 'date_hour'); } $seconds -= $hours * 3600; } $minutes = floor($seconds / 60); if (count($str) < $units && ($days > 0 OR $hours > 0 OR $minutes > 0)) { if ($minutes > 0) { $str[] = $minutes.' '.$CI->lang->line($minutes > 1 ? 'date_minutes' : 'date_minute'); } $seconds -= $minutes * 60; } if (count($str) === 0) { $str[] = $seconds.' '.$CI->lang->line($seconds > 1 ? 'date_seconds' : 'date_second'); } return implode(', ', $str); } } // ------------------------------------------------------------------------ if ( ! function_exists('days_in_month')) { /** * Number of days in a month * * Takes a month/year as input and returns the number of days * for the given month/year. Takes leap years into consideration. * * @param int a numeric month * @param int a numeric year * @return int */ function days_in_month($month = 0, $year = '') { if ($month < 1 OR $month > 12) { return 0; } elseif ( ! is_numeric($year) OR strlen($year) !== 4) { $year = date('Y'); } if (defined('CAL_GREGORIAN')) { return cal_days_in_month(CAL_GREGORIAN, $month, $year); } if ($year >= 1970) { return (int) date('t', mktime(12, 0, 0, $month, 1, $year)); } if ($month == 2) { if ($year % 400 === 0 OR ($year % 4 === 0 && $year % 100 !== 0)) { return 29; } } $days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); return $days_in_month[$month - 1]; } } // ------------------------------------------------------------------------ if ( ! function_exists('local_to_gmt')) { /** * Converts a local Unix timestamp to GMT * * @param int Unix timestamp * @return int */ function local_to_gmt($time = '') { if ($time === '') { $time = time(); } return mktime( gmdate('G', $time), gmdate('i', $time), gmdate('s', $time), gmdate('n', $time), gmdate('j', $time), gmdate('Y', $time) ); } } // ------------------------------------------------------------------------ if ( ! function_exists('gmt_to_local')) { /** * Converts GMT time to a localized value * * Takes a Unix timestamp (in GMT) as input, and returns * at the local value based on the timezone and DST setting * submitted * * @param int Unix timestamp * @param string timezone * @param bool whether DST is active * @return int */ function gmt_to_local($time = '', $timezone = 'UTC', $dst = FALSE) { if ($time === '') { return now(); } $time += timezones($timezone) * 3600; return ($dst === TRUE) ? $time + 3600 : $time; } } // ------------------------------------------------------------------------ if ( ! function_exists('mysql_to_unix')) { /** * Converts a MySQL Timestamp to Unix * * @param int MySQL timestamp YYYY-MM-DD HH:MM:SS * @return int Unix timstamp */ function mysql_to_unix($time = '') { // We'll remove certain characters for backward compatibility // since the formatting changed with MySQL 4.1 // YYYY-MM-DD HH:MM:SS $time = str_replace(array('-', ':', ' '), '', $time); // YYYYMMDDHHMMSS return mktime( substr($time, 8, 2), substr($time, 10, 2), substr($time, 12, 2), substr($time, 4, 2), substr($time, 6, 2), substr($time, 0, 4) ); } } // ------------------------------------------------------------------------ if ( ! function_exists('unix_to_human')) { /** * Unix to "Human" * * Formats Unix timestamp to the following prototype: 2006-08-21 11:35 PM * * @param int Unix timestamp * @param bool whether to show seconds * @param string format: us or euro * @return string */ function unix_to_human($time = '', $seconds = FALSE, $fmt = 'us') { $r = date('Y', $time).'-'.date('m', $time).'-'.date('d', $time).' '; if ($fmt === 'us') { $r .= date('h', $time).':'.date('i', $time); } else { $r .= date('H', $time).':'.date('i', $time); } if ($seconds) { $r .= ':'.date('s', $time); } if ($fmt === 'us') { return $r.' '.date('A', $time); } return $r; } } // ------------------------------------------------------------------------ if ( ! function_exists('human_to_unix')) { /** * Convert "human" date to GMT * * Reverses the above process * * @param string format: us or euro * @return int */ function human_to_unix($datestr = '') { if ($datestr === '') { return FALSE; } $datestr = preg_replace('/\040+/', ' ', trim($datestr)); if ( ! preg_match('/^(\d{2}|\d{4})\-[0-9]{1,2}\-[0-9]{1,2}\s[0-9]{1,2}:[0-9]{1,2}(?::[0-9]{1,2})?(?:\s[AP]M)?$/i', $datestr)) { return FALSE; } sscanf($datestr, '%d-%d-%d %s %s', $year, $month, $day, $time, $ampm); sscanf($time, '%d:%d:%d', $hour, $min, $sec); isset($sec) OR $sec = 0; if (isset($ampm)) { $ampm = strtolower($ampm); if ($ampm[0] === 'p' && $hour < 12) { $hour += 12; } elseif ($ampm[0] === 'a' && $hour === 12) { $hour = 0; } } return mktime($hour, $min, $sec, $month, $day, $year); } } // ------------------------------------------------------------------------ if ( ! function_exists('nice_date')) { /** * Turns many "reasonably-date-like" strings into something * that is actually useful. This only works for dates after unix epoch. * * @param string The terribly formatted date-like string * @param string Date format to return (same as php date function) * @return string */ function nice_date($bad_date = '', $format = FALSE) { if (empty($bad_date)) { return 'Unknown'; } elseif (empty($format)) { $format = 'U'; } // Date like: YYYYMM if (preg_match('/^\d{6}$/i', $bad_date)) { if (in_array(substr($bad_date, 0, 2), array('19', '20'))) { $year = substr($bad_date, 0, 4); $month = substr($bad_date, 4, 2); } else { $month = substr($bad_date, 0, 2); $year = substr($bad_date, 2, 4); } return date($format, strtotime($year.'-'.$month.'-01')); } // Date Like: YYYYMMDD if (preg_match('/^(\d{2})\d{2}(\d{4})$/i', $bad_date, $matches)) { return date($format, strtotime($matches[1].'/01/'.$matches[2])); } // Date Like: MM-DD-YYYY __or__ M-D-YYYY (or anything in between) if (preg_match('/^(\d{1,2})-(\d{1,2})-(\d{4})$/i', $bad_date, $matches)) { return date($format, strtotime($matches[3].'-'.$matches[1].'-'.$matches[2])); } // Any other kind of string, when converted into UNIX time, // produces "0 seconds after epoc..." is probably bad... // return "Invalid Date". if (date('U', strtotime($bad_date)) === '0') { return 'Invalid Date'; } // It's probably a valid-ish date format already return date($format, strtotime($bad_date)); } } // ------------------------------------------------------------------------ if ( ! function_exists('timezone_menu')) { /** * Timezone Menu * * Generates a drop-down menu of timezones. * * @param string timezone * @param string classname * @param string menu name * @param mixed attributes * @return string */ function timezone_menu($default = 'UTC', $class = '', $name = 'timezones', $attributes = '') { $CI =& get_instance(); $CI->lang->load('date'); $default = ($default === 'GMT') ? 'UTC' : $default; $menu = '<select name="'.$name.'"'; if ($class !== '') { $menu .= ' class="'.$class.'"'; } $menu .= _stringify_attributes($attributes).">\n"; foreach (timezones() as $key => $val) { $selected = ($default === $key) ? ' selected="selected"' : ''; $menu .= '<option value="'.$key.'"'.$selected.'>'.$CI->lang->line($key)."</option>\n"; } return $menu.'</select>'; } } // ------------------------------------------------------------------------ if ( ! function_exists('timezones')) { /** * Timezones * * Returns an array of timezones. This is a helper function * for various other ones in this library * * @param string timezone * @return string */ function timezones($tz = '') { // Note: Don't change the order of these even though // some items appear to be in the wrong order $zones = array( 'UM12' => -12, 'UM11' => -11, 'UM10' => -10, 'UM95' => -9.5, 'UM9' => -9, 'UM8' => -8, 'UM7' => -7, 'UM6' => -6, 'UM5' => -5, 'UM45' => -4.5, 'UM4' => -4, 'UM35' => -3.5, 'UM3' => -3, 'UM2' => -2, 'UM1' => -1, 'UTC' => 0, 'UP1' => +1, 'UP2' => +2, 'UP3' => +3, 'UP35' => +3.5, 'UP4' => +4, 'UP45' => +4.5, 'UP5' => +5, 'UP55' => +5.5, 'UP575' => +5.75, 'UP6' => +6, 'UP65' => +6.5, 'UP7' => +7, 'UP8' => +8, 'UP875' => +8.75, 'UP9' => +9, 'UP95' => +9.5, 'UP10' => +10, 'UP105' => +10.5, 'UP11' => +11, 'UP115' => +11.5, 'UP12' => +12, 'UP1275' => +12.75, 'UP13' => +13, 'UP14' => +14 ); if ($tz === '') { return $zones; } return isset($zones[$tz]) ? $zones[$tz] : 0; } } // ------------------------------------------------------------------------ if ( ! function_exists('date_range')) { /** * Date range * * Returns a list of dates within a specified period. * * @param int unix_start UNIX timestamp of period start date * @param int unix_end|days UNIX timestamp of period end date * or interval in days. * @param mixed is_unix Specifies whether the second parameter * is a UNIX timestamp or a day interval * - TRUE or 'unix' for a timestamp * - FALSE or 'days' for an interval * @param string date_format Output date format, same as in date() * @return array */ function date_range($unix_start = '', $mixed = '', $is_unix = TRUE, $format = 'Y-m-d') { if ($unix_start == '' OR $mixed == '' OR $format == '') { return FALSE; } $is_unix = ! ( ! $is_unix OR $is_unix === 'days'); // Validate input and try strtotime() on invalid timestamps/intervals, just in case if ( ( ! ctype_digit((string) $unix_start) && ($unix_start = @strtotime($unix_start)) === FALSE) OR ( ! ctype_digit((string) $mixed) && ($is_unix === FALSE OR ($mixed = @strtotime($mixed)) === FALSE)) OR ($is_unix === TRUE && $mixed < $unix_start)) { return FALSE; } if ($is_unix && ($unix_start == $mixed OR date($format, $unix_start) === date($format, $mixed))) { return array(date($format, $unix_start)); } $range = array(); /* NOTE: Even though the DateTime object has many useful features, it appears that * it doesn't always handle properly timezones, when timestamps are passed * directly to its constructor. Neither of the following gave proper results: * * new DateTime('<timestamp>') * new DateTime('<timestamp>', '<timezone>') * * --- available in PHP 5.3: * * DateTime::createFromFormat('<format>', '<timestamp>') * DateTime::createFromFormat('<format>', '<timestamp>', '<timezone') * * ... so we'll have to set the timestamp after the object is instantiated. * Furthermore, in PHP 5.3 we can use DateTime::setTimestamp() to do that and * given that we have UNIX timestamps - we should use it. */ $from = new DateTime(); if (is_php('5.3')) { $from->setTimestamp($unix_start); if ($is_unix) { $arg = new DateTime(); $arg->setTimestamp($mixed); } else { $arg = (int) $mixed; } $period = new DatePeriod($from, new DateInterval('P1D'), $arg); foreach ($period as $date) { $range[] = $date->format($format); } /* If a period end date was passed to the DatePeriod constructor, it might not * be in our results. Not sure if this is a bug or it's just possible because * the end date might actually be less than 24 hours away from the previously * generated DateTime object, but either way - we have to append it manually. */ if ( ! is_int($arg) && $range[count($range) - 1] !== $arg->format($format)) { $range[] = $arg->format($format); } return $range; } $from->setDate(date('Y', $unix_start), date('n', $unix_start), date('j', $unix_start)); $from->setTime(date('G', $unix_start), date('i', $unix_start), date('s', $unix_start)); if ($is_unix) { $arg = new DateTime(); $arg->setDate(date('Y', $mixed), date('n', $mixed), date('j', $mixed)); $arg->setTime(date('G', $mixed), date('i', $mixed), date('s', $mixed)); } else { $arg = (int) $mixed; } $range[] = $from->format($format); if (is_int($arg)) // Day intervals { do { $from->modify('+1 day'); $range[] = $from->format($format); } while (--$arg > 0); } else // end date UNIX timestamp { for ($from->modify('+1 day'), $end_check = $arg->format('Ymd'); $from->format('Ymd') < $end_check; $from->modify('+1 day')) { $range[] = $from->format($format); } // Our loop only appended dates prior to our end date $range[] = $arg->format($format); } return $range; } }
freedomlizhigang/CIDemo
core/helpers/date_helper.php
PHP
mit
19,309
YUI.add('yui-throttle', function(Y) { /** Throttles a call to a method based on the time between calls. This method is attached to the `Y` object and is <a href="../classes/YUI.html#method_throttle">documented there</a>. var fn = Y.throttle(function() { counter++; }); for (i; i< 35000; i++) { out++; fn(); } @module yui @submodule yui-throttle */ /*! Based on work by Simon Willison: http://gist.github.com/292562 */ /** * Throttles a call to a method based on the time between calls. * @method throttle * @for YUI * @param fn {function} The function call to throttle. * @param ms {int} The number of milliseconds to throttle the method call. * Can set globally with Y.config.throttleTime or by call. Passing a -1 will * disable the throttle. Defaults to 150. * @return {function} Returns a wrapped function that calls fn throttled. * @since 3.1.0 */ Y.throttle = function(fn, ms) { ms = (ms) ? ms : (Y.config.throttleTime || 150); if (ms === -1) { return (function() { fn.apply(null, arguments); }); } var last = Y.Lang.now(); return (function() { var now = Y.Lang.now(); if (now - last > ms) { last = now; fn.apply(null, arguments); } }); }; }, '@VERSION@' ,{requires:['yui-base']});
jonathantneal/cdnjs
ajax/libs/yui/3.6.0pr4/yui-throttle/yui-throttle.js
JavaScript
mit
1,348
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarDumper\Caster; use Symfony\Component\VarDumper\Cloner\Stub; /** * Helper for filtering out properties in casters. * * @author Nicolas Grekas <p@tchwork.com> * * @final */ class Caster { const EXCLUDE_VERBOSE = 1; const EXCLUDE_VIRTUAL = 2; const EXCLUDE_DYNAMIC = 4; const EXCLUDE_PUBLIC = 8; const EXCLUDE_PROTECTED = 16; const EXCLUDE_PRIVATE = 32; const EXCLUDE_NULL = 64; const EXCLUDE_EMPTY = 128; const EXCLUDE_NOT_IMPORTANT = 256; const EXCLUDE_STRICT = 512; const PREFIX_VIRTUAL = "\0~\0"; const PREFIX_DYNAMIC = "\0+\0"; const PREFIX_PROTECTED = "\0*\0"; /** * Casts objects to arrays and adds the dynamic property prefix. * * @param object $obj The object to cast * @param string $class The class of the object * @param bool $hasDebugInfo Whether the __debugInfo method exists on $obj or not * * @return array The array-cast of the object, with prefixed dynamic properties */ public static function castObject($obj, $class, $hasDebugInfo = false) { if ($class instanceof \ReflectionClass) { @trigger_error(sprintf('Passing a ReflectionClass to %s() is deprecated since version 3.3 and will be unsupported in 4.0. Pass the class name as string instead.', __METHOD__), E_USER_DEPRECATED); $hasDebugInfo = $class->hasMethod('__debugInfo'); $class = $class->name; } if ($hasDebugInfo) { $a = $obj->__debugInfo(); } elseif ($obj instanceof \Closure) { $a = array(); } else { $a = (array) $obj; } if ($obj instanceof \__PHP_Incomplete_Class) { return $a; } if ($a) { static $publicProperties = array(); $i = 0; $prefixedKeys = array(); foreach ($a as $k => $v) { if (isset($k[0]) ? "\0" !== $k[0] : \PHP_VERSION_ID >= 70200) { if (!isset($publicProperties[$class])) { foreach (get_class_vars($class) as $prop => $v) { $publicProperties[$class][$prop] = true; } } if (!isset($publicProperties[$class][$k])) { $prefixedKeys[$i] = self::PREFIX_DYNAMIC.$k; } } elseif (isset($k[16]) && "\0" === $k[16] && 0 === strpos($k, "\0class@anonymous\0")) { $prefixedKeys[$i] = "\0".get_parent_class($class).'@anonymous'.strrchr($k, "\0"); } ++$i; } if ($prefixedKeys) { $keys = array_keys($a); foreach ($prefixedKeys as $i => $k) { $keys[$i] = $k; } $a = array_combine($keys, $a); } } return $a; } /** * Filters out the specified properties. * * By default, a single match in the $filter bit field filters properties out, following an "or" logic. * When EXCLUDE_STRICT is set, an "and" logic is applied: all bits must match for a property to be removed. * * @param array $a The array containing the properties to filter * @param int $filter A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out * @param string[] $listedProperties List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set * @param int &$count Set to the number of removed properties * * @return array The filtered array */ public static function filter(array $a, $filter, array $listedProperties = array(), &$count = 0) { $count = 0; foreach ($a as $k => $v) { $type = self::EXCLUDE_STRICT & $filter; if (null === $v) { $type |= self::EXCLUDE_NULL & $filter; } if (empty($v)) { $type |= self::EXCLUDE_EMPTY & $filter; } if ((self::EXCLUDE_NOT_IMPORTANT & $filter) && !in_array($k, $listedProperties, true)) { $type |= self::EXCLUDE_NOT_IMPORTANT; } if ((self::EXCLUDE_VERBOSE & $filter) && in_array($k, $listedProperties, true)) { $type |= self::EXCLUDE_VERBOSE; } if (!isset($k[1]) || "\0" !== $k[0]) { $type |= self::EXCLUDE_PUBLIC & $filter; } elseif ('~' === $k[1]) { $type |= self::EXCLUDE_VIRTUAL & $filter; } elseif ('+' === $k[1]) { $type |= self::EXCLUDE_DYNAMIC & $filter; } elseif ('*' === $k[1]) { $type |= self::EXCLUDE_PROTECTED & $filter; } else { $type |= self::EXCLUDE_PRIVATE & $filter; } if ((self::EXCLUDE_STRICT & $filter) ? $type === $filter : $type) { unset($a[$k]); ++$count; } } return $a; } public static function castPhpIncompleteClass(\__PHP_Incomplete_Class $c, array $a, Stub $stub, $isNested) { if (isset($a['__PHP_Incomplete_Class_Name'])) { $stub->class .= '('.$a['__PHP_Incomplete_Class_Name'].')'; unset($a['__PHP_Incomplete_Class_Name']); } return $a; } }
jrodriguezwebb/3enRaya
vendor/symfony/symfony/src/Symfony/Component/VarDumper/Caster/Caster.php
PHP
mit
5,764
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["VueMaterial"] = factory(); else root["VueMaterial"] = factory(); })(this, (function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmony imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 469); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { /* globals __VUE_SSR_CONTEXT__ */ // this module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle module.exports = function normalizeComponent ( rawScriptExports, compiledTemplate, injectStyles, scopeId, moduleIdentifier /* server only */ ) { var esModule var scriptExports = rawScriptExports = rawScriptExports || {} // ES6 modules interop var type = typeof rawScriptExports.default if (type === 'object' || type === 'function') { esModule = rawScriptExports scriptExports = rawScriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (compiledTemplate) { options.render = compiledTemplate.render options.staticRenderFns = compiledTemplate.staticRenderFns } // scopedId if (scopeId) { options._scopeId = scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = injectStyles } if (hook) { var functional = options.functional var existing = functional ? options.render : options.beforeCreate if (!functional) { // inject component registration as beforeCreate hook options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } else { // register for functioal component in vue file options.render = function renderWithStyleInjection (h, context) { hook.call(context) return existing(h, context) } } } return { esModule: esModule, exports: scriptExports, options: options } } /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Theme mixin // Grab the closest ancestor component's `md-theme` attribute OR grab the // `md-name` attribute from an `<md-theme>` component. function getAncestorThemeName(component) { if (!component) { return null; } var name = component.mdTheme; if (!name && component.$options._componentTag === 'md-theme') { name = component.mdName; } return name || getAncestorThemeName(component.$parent); } exports.default = { props: { mdTheme: String }, computed: { mdEffectiveTheme: function mdEffectiveTheme() { return getAncestorThemeName(this) || this.$material.currentTheme; }, themeClass: function themeClass() { return this.$material.prefix + this.mdEffectiveTheme; } }, watch: { mdTheme: function mdTheme(value) { this.$material.useTheme(value); } }, beforeMount: function beforeMount() { var localTheme = this.mdTheme; this.$material.useTheme(localTheme ? localTheme : 'default'); } }; module.exports = exports['default']; /***/ }), /***/ 102: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = install; var _mdSidenav = __webpack_require__(348); var _mdSidenav2 = _interopRequireDefault(_mdSidenav); var _mdSidenav3 = __webpack_require__(285); var _mdSidenav4 = _interopRequireDefault(_mdSidenav3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function install(Vue) { Vue.component('md-sidenav', _mdSidenav2.default); Vue.material.styles.push(_mdSidenav4.default); } module.exports = exports['default']; /***/ }), /***/ 178: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _mixin = __webpack_require__(1); var _mixin2 = _interopRequireDefault(_mixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'md-sidenav', data: function data() { return { mdVisible: false }; }, mixins: [_mixin2.default], props: { mdSwipeable: Boolean, mdSwipeThreshold: { type: Number, default: 15 }, mdSwipeDistance: { type: Number, default: 100 } }, computed: { classes: function classes() { return this.mdVisible && 'md-active'; } }, methods: { show: function show() { this.open(); }, open: function open() { this.mdVisible = true; this.$el.focus(); this.$emit('open'); }, close: function close() { this.mdVisible = false; this.$el.blur(); this.$emit('close'); }, toggle: function toggle() { if (this.mdVisible) { this.close(); } else { this.open(); } }, isHorizontallyInside: function isHorizontallyInside(positionX) { return positionX > 0 && positionX < this.mountedRect.left + this.mountedRect.width; }, isVerticallyInside: function isVerticallyInside(positionY) { return positionY > 0 && positionY < this.mountedRect.top + this.mountedRect.height; }, isFromStartWhenClosed: function isFromStartWhenClosed(positionX) { if (this.mdVisible) { return true; } return positionX < this.mdSwipeThreshold; }, handleTouchStart: function handleTouchStart(event) { var positionX = event.touches[0].clientX - this.mountedRect.left; var positionY = event.touches[0].clientY - this.mountedRect.top; if (!this.isHorizontallyInside(positionX) || !this.isVerticallyInside(positionY) || !this.isFromStartWhenClosed(positionX)) { return; } this.initialTouchPosition = positionX; this.canMove = true; }, handleTouchEnd: function handleTouchEnd() { this.canMove = false; this.initialTouchPosition = null; }, handleTouchMove: function handleTouchMove(event) { if (!this.canMove) { return; } var positionX = event.touches[0].clientX; var difference = this.mdVisible ? this.initialTouchPosition - positionX : positionX - this.initialTouchPosition; var action = this.mdVisible ? 'close' : 'open'; if (difference > this.mdSwipeDistance) { this[action](); } } }, mounted: function mounted() { if (!this.mdSwipeable) { return; } this.mountedRect = this.$refs.backdrop.$el.getBoundingClientRect(); this.initialTouchPosition = null; this.canMove = false; document.addEventListener('touchstart', this.handleTouchStart); document.addEventListener('touchend', this.handleTouchEnd); document.addEventListener('touchmove', this.handleTouchMove); }, beforeDestroy: function beforeDestroy() { if (!this.mdSwipeable) { return; } document.removeEventListener('touchstart', this.handleTouchStart); document.removeEventListener('touchend', this.handleTouchEnd); document.removeEventListener('touchmove', this.handleTouchMove); } }; // // // // // // // // // // // // module.exports = exports['default']; /***/ }), /***/ 249: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 285: /***/ (function(module, exports) { module.exports = ".THEME_NAME.md-sidenav .md-sidenav-content {\n background-color: BACKGROUND-COLOR;\n color: BACKGROUND-CONTRAST; }\n" /***/ }), /***/ 348: /***/ (function(module, exports, __webpack_require__) { var disposed = false function injectStyle (ssrContext) { if (disposed) return __webpack_require__(249) } var Component = __webpack_require__(0)( /* script */ __webpack_require__(178), /* template */ __webpack_require__(415), /* styles */ injectStyle, /* scopeId */ null, /* moduleIdentifier (server only) */ null ) Component.options.__file = "/Users/pablohpsilva/Code/vue-material/src/components/mdSidenav/mdSidenav.vue" if (Component.esModule && Object.keys(Component.esModule).some((function (key) {return key !== "default" && key.substr(0, 2) !== "__"}))) {console.error("named exports are not supported in *.vue files.")} if (Component.options.functional) {console.error("[vue-loader] mdSidenav.vue: functional components are not supported with templates, they should use render functions.")} /* hot reload */ if (false) {(function () { var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), false) if (!hotAPI.compatible) return module.hot.accept() if (!module.hot.data) { hotAPI.createRecord("data-v-52912130", Component.options) } else { hotAPI.reload("data-v-52912130", Component.options) } module.hot.dispose((function (data) { disposed = true })) })()} module.exports = Component.exports /***/ }), /***/ 415: /***/ (function(module, exports, __webpack_require__) { module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; return _c('div', { staticClass: "md-sidenav", class: [_vm.themeClass, _vm.classes], attrs: { "tabindex": "0" }, on: { "keyup": function($event) { if (!('button' in $event) && _vm._k($event.keyCode, "esc", 27)) { return null; } _vm.close($event) } } }, [_c('div', { staticClass: "md-sidenav-content" }, [_vm._t("default")], 2), _vm._v(" "), _c('md-backdrop', { ref: "backdrop", staticClass: "md-sidenav-backdrop", on: { "close": _vm.close } })], 1) },staticRenderFns: []} module.exports.render._withStripped = true if (false) { module.hot.accept() if (module.hot.data) { require("vue-hot-reload-api").rerender("data-v-52912130", module.exports) } } /***/ }), /***/ 469: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(102); /***/ }) /******/ }); }));
sufuf3/cdnjs
ajax/libs/vue-material/0.7.4/components/mdSidenav/index.debug.js
JavaScript
mit
13,482
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["VueMaterial"] = factory(); else root["VueMaterial"] = factory(); })(this, (function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmony imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 478); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { /* globals __VUE_SSR_CONTEXT__ */ // this module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle module.exports = function normalizeComponent ( rawScriptExports, compiledTemplate, injectStyles, scopeId, moduleIdentifier /* server only */ ) { var esModule var scriptExports = rawScriptExports = rawScriptExports || {} // ES6 modules interop var type = typeof rawScriptExports.default if (type === 'object' || type === 'function') { esModule = rawScriptExports scriptExports = rawScriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (compiledTemplate) { options.render = compiledTemplate.render options.staticRenderFns = compiledTemplate.staticRenderFns } // scopedId if (scopeId) { options._scopeId = scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = injectStyles } if (hook) { var functional = options.functional var existing = functional ? options.render : options.beforeCreate if (!functional) { // inject component registration as beforeCreate hook options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } else { // register for functioal component in vue file options.render = function renderWithStyleInjection (h, context) { hook.call(context) return existing(h, context) } } } return { esModule: esModule, exports: scriptExports, options: options } } /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Theme mixin // Grab the closest ancestor component's `md-theme` attribute OR grab the // `md-name` attribute from an `<md-theme>` component. function getAncestorThemeName(component) { if (!component) { return null; } var name = component.mdTheme; if (!name && component.$options._componentTag === 'md-theme') { name = component.mdName; } return name || getAncestorThemeName(component.$parent); } exports.default = { props: { mdTheme: String }, computed: { mdEffectiveTheme: function mdEffectiveTheme() { return getAncestorThemeName(this) || this.$material.currentTheme; }, themeClass: function themeClass() { return this.$material.prefix + this.mdEffectiveTheme; } }, watch: { mdTheme: function mdTheme(value) { this.$material.useTheme(value); } }, beforeMount: function beforeMount() { var localTheme = this.mdTheme; this.$material.useTheme(localTheme ? localTheme : 'default'); } }; module.exports = exports['default']; /***/ }), /***/ 111: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = install; var _mdToolbar = __webpack_require__(367); var _mdToolbar2 = _interopRequireDefault(_mdToolbar); var _mdToolbar3 = __webpack_require__(294); var _mdToolbar4 = _interopRequireDefault(_mdToolbar3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function install(Vue) { Vue.component('md-toolbar', _mdToolbar2.default); Vue.material.styles.push(_mdToolbar4.default); } module.exports = exports['default']; /***/ }), /***/ 197: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _mixin = __webpack_require__(1); var _mixin2 = _interopRequireDefault(_mixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { name: 'md-toolbar', mixins: [_mixin2.default] }; // // // // // // // // module.exports = exports['default']; /***/ }), /***/ 243: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 294: /***/ (function(module, exports) { module.exports = ".THEME_NAME.md-toolbar {\n background-color: PRIMARY-COLOR;\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar .md-input-container.md-input-focused input,\n .THEME_NAME.md-toolbar .md-input-container.md-input-focused textarea {\n color: PRIMARY-CONTRAST;\n text-shadow: 0 0 0 PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar .md-input-container.md-input-focused label,\n .THEME_NAME.md-toolbar .md-input-container.md-input-focused .md-icon:not(.md-icon-delete) {\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar .md-input-container:after {\n background-color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar .md-input-container input,\n .THEME_NAME.md-toolbar .md-input-container textarea {\n color: PRIMARY-CONTRAST;\n text-shadow: 0 0 0 PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar .md-input-container input::-webkit-input-placeholder,\n .THEME_NAME.md-toolbar .md-input-container textarea::-webkit-input-placeholder {\n color: PRIMARY-CONTRAST-0.54; }\n .THEME_NAME.md-toolbar .md-input-container label,\n .THEME_NAME.md-toolbar .md-input-container .md-icon:not(.md-icon-delete) {\n color: PRIMARY-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent {\n background-color: ACCENT-COLOR;\n color: ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container.md-input-focused input,\n .THEME_NAME.md-toolbar.md-accent .md-input-container.md-input-focused textarea {\n color: ACCENT-CONTRAST;\n text-shadow: 0 0 0 ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container.md-input-focused label,\n .THEME_NAME.md-toolbar.md-accent .md-input-container.md-input-focused .md-icon:not(.md-icon-delete) {\n color: ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container:after {\n background-color: ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container input,\n .THEME_NAME.md-toolbar.md-accent .md-input-container textarea {\n color: ACCENT-CONTRAST;\n text-shadow: 0 0 0 ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container input::-webkit-input-placeholder,\n .THEME_NAME.md-toolbar.md-accent .md-input-container textarea::-webkit-input-placeholder {\n color: ACCENT-CONTRAST-0.54; }\n .THEME_NAME.md-toolbar.md-accent .md-input-container label,\n .THEME_NAME.md-toolbar.md-accent .md-input-container .md-icon:not(.md-icon-delete) {\n color: ACCENT-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn {\n background-color: WARN-COLOR;\n color: WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container.md-input-focused input,\n .THEME_NAME.md-toolbar.md-warn .md-input-container.md-input-focused textarea {\n color: WARN-CONTRAST;\n text-shadow: 0 0 0 WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container.md-input-focused label,\n .THEME_NAME.md-toolbar.md-warn .md-input-container.md-input-focused .md-icon:not(.md-icon-delete) {\n color: WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container:after {\n background-color: WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container input,\n .THEME_NAME.md-toolbar.md-warn .md-input-container textarea {\n color: WARN-CONTRAST;\n text-shadow: 0 0 0 WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container input::-webkit-input-placeholder,\n .THEME_NAME.md-toolbar.md-warn .md-input-container textarea::-webkit-input-placeholder {\n color: WARN-CONTRAST-0.54; }\n .THEME_NAME.md-toolbar.md-warn .md-input-container label,\n .THEME_NAME.md-toolbar.md-warn .md-input-container .md-icon:not(.md-icon-delete) {\n color: WARN-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent {\n background-color: transparent;\n color: BACKGROUND-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container.md-input-focused input,\n .THEME_NAME.md-toolbar.md-transparent .md-input-container.md-input-focused textarea {\n color: BACKGROUND-CONTRAST;\n text-shadow: 0 0 0 BACKGROUND-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container.md-input-focused label,\n .THEME_NAME.md-toolbar.md-transparent .md-input-container.md-input-focused .md-icon:not(.md-icon-delete) {\n color: BACKGROUND-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container:after {\n background-color: BACKGROUND-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container input,\n .THEME_NAME.md-toolbar.md-transparent .md-input-container textarea {\n color: BACKGROUND-CONTRAST;\n text-shadow: 0 0 0 BACKGROUND-CONTRAST; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container input::-webkit-input-placeholder,\n .THEME_NAME.md-toolbar.md-transparent .md-input-container textarea::-webkit-input-placeholder {\n color: BACKGROUND-CONTRAST-0.54; }\n .THEME_NAME.md-toolbar.md-transparent .md-input-container label,\n .THEME_NAME.md-toolbar.md-transparent .md-input-container .md-icon:not(.md-icon-delete) {\n color: BACKGROUND-CONTRAST; }\n" /***/ }), /***/ 367: /***/ (function(module, exports, __webpack_require__) { var disposed = false function injectStyle (ssrContext) { if (disposed) return __webpack_require__(243) } var Component = __webpack_require__(0)( /* script */ __webpack_require__(197), /* template */ __webpack_require__(405), /* styles */ injectStyle, /* scopeId */ null, /* moduleIdentifier (server only) */ null ) Component.options.__file = "/Users/pablohpsilva/Code/vue-material/src/components/mdToolbar/mdToolbar.vue" if (Component.esModule && Object.keys(Component.esModule).some((function (key) {return key !== "default" && key.substr(0, 2) !== "__"}))) {console.error("named exports are not supported in *.vue files.")} if (Component.options.functional) {console.error("[vue-loader] mdToolbar.vue: functional components are not supported with templates, they should use render functions.")} /* hot reload */ if (false) {(function () { var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), false) if (!hotAPI.compatible) return module.hot.accept() if (!module.hot.data) { hotAPI.createRecord("data-v-44d8bce4", Component.options) } else { hotAPI.reload("data-v-44d8bce4", Component.options) } module.hot.dispose((function (data) { disposed = true })) })()} module.exports = Component.exports /***/ }), /***/ 405: /***/ (function(module, exports, __webpack_require__) { module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; return _c('div', { staticClass: "md-toolbar", class: [_vm.themeClass] }, [_vm._t("default")], 2) },staticRenderFns: []} module.exports.render._withStripped = true if (false) { module.hot.accept() if (module.hot.data) { require("vue-hot-reload-api").rerender("data-v-44d8bce4", module.exports) } } /***/ }), /***/ 478: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(111); /***/ }) /******/ }); }));
sufuf3/cdnjs
ajax/libs/vue-material/0.7.4/components/mdToolbar/index.debug.js
JavaScript
mit
15,057
import * as t from "../../../types"; /** * [Please add a description.] */ function buildAssert(node, file) { return t.callExpression( file.addHelper("temporal-assert-defined"), [node, t.literal(node.name), file.addHelper("temporal-undefined")] ); } /** * [Please add a description.] */ function references(node, scope, state) { var declared = state.letRefs[node.name]; if (!declared) return false; // declared node is different in this scope return scope.getBindingIdentifier(node.name) === declared; } /** * [Please add a description.] */ var refVisitor = { /** * [Please add a description.] */ ReferencedIdentifier(node, parent, scope, state) { if (t.isFor(parent) && parent.left === node) return; if (!references(node, scope, state)) return; var assert = buildAssert(node, state.file); this.skip(); if (t.isUpdateExpression(parent)) { if (parent._ignoreBlockScopingTDZ) return; this.parentPath.replaceWith(t.sequenceExpression([assert, parent])); } else { return t.logicalExpression("&&", assert, node); } }, /** * [Please add a description.] */ AssignmentExpression: { exit(node, parent, scope, state) { if (node._ignoreBlockScopingTDZ) return; var nodes = []; var ids = this.getBindingIdentifiers(); for (var name in ids) { var id = ids[name]; if (references(id, scope, state)) { nodes.push(buildAssert(id, state.file)); } } if (nodes.length) { node._ignoreBlockScopingTDZ = true; nodes.push(node); return nodes.map(t.expressionStatement); } } } }; export var metadata = { optional: true, group: "builtin-advanced" }; /** * [Please add a description.] */ export var visitor = { /** * [Please add a description.] */ "Program|Loop|BlockStatement": { exit(node, parent, scope, file) { var letRefs = node._letReferences; if (!letRefs) return; this.traverse(refVisitor, { letRefs: letRefs, file: file }); } } };
megawac/babel
packages/babel/src/transformation/transformers/es6/spec.block-scoping.js
JavaScript
mit
2,110
/*! Deck JS - deck.core Copyright (c) 2011-2013 Caleb Troughton Dual licensed under the MIT license. https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt */ /* The deck.core module provides all the basic functionality for creating and moving through a deck. It does so by applying classes to indicate the state of the deck and its slides, allowing CSS to take care of the visual representation of each state. It also provides methods for navigating the deck and inspecting its state, as well as basic key bindings for going to the next and previous slides. More functionality is provided by wholly separate extension modules that use the API provided by core. */ (function($, undefined) { var slides, currentIndex, $container; var events = { /* This event fires at the beginning of a slide change, before the actual change occurs. Its purpose is to give extension authors a way to prevent the slide change from occuring. This is done by calling preventDefault on the event object within this event. If that is done, the deck.change event will never be fired and the slide will not change. */ beforeChange: 'deck.beforeChange', /* This event fires whenever the current slide changes, whether by way of next, prev, or go. The callback function is passed two parameters, from and to, equal to the indices of the old slide and the new slide respectively. If preventDefault is called on the event within this handler the slide change does not occur. $(document).bind('deck.change', function(event, from, to) { alert('Moving from slide ' + from + ' to ' + to); }); */ change: 'deck.change', /* This event fires at the beginning of deck initialization, after the options are set but before the slides array is created. This event makes a good hook for preprocessing extensions looking to modify the deck. */ beforeInitialize: 'deck.beforeInit', /* This event fires at the end of deck initialization. Extensions should implement any code that relies on user extensible options (key bindings, element selectors, classes) within a handler for this event. Native events associated with Deck JS should be scoped under a .deck event namespace, as with the example below: var $d = $(document); $.deck.defaults.keys.myExtensionKeycode = 70; // 'h' $d.bind('deck.init', function() { $d.bind('keydown.deck', function(event) { if (event.which === $.deck.getOptions().keys.myExtensionKeycode) { // Rock out } }); }); */ initialize: 'deck.init' }; var options = {}; var $document = $(document); var stopPropagation = function(event) { event.stopPropagation(); }; var updateContainerState = function() { var oldIndex = $container.data('onSlide'); $container.removeClass(options.classes.onPrefix + oldIndex); $container.addClass(options.classes.onPrefix + currentIndex); $container.data('onSlide', currentIndex); }; var updateChildCurrent = function() { var $oldCurrent = $('.' + options.classes.current); var $oldParents = $oldCurrent.parentsUntil(options.selectors.container); var $newCurrent = slides[currentIndex]; var $newParents = $newCurrent.parentsUntil(options.selectors.container); $oldParents.removeClass(options.classes.childCurrent); $newParents.addClass(options.classes.childCurrent); }; var removeOldSlideStates = function() { var $all = $(); $.each(slides, function(i, el) { $all = $all.add(el); }); $all.removeClass([ options.classes.before, options.classes.previous, options.classes.current, options.classes.next, options.classes.after ].join(' ')); }; var addNewSlideStates = function() { slides[currentIndex].addClass(options.classes.current); if (currentIndex > 0) { slides[currentIndex-1].addClass(options.classes.previous); } if (currentIndex + 1 < slides.length) { slides[currentIndex+1].addClass(options.classes.next); } if (currentIndex > 1) { $.each(slides.slice(0, currentIndex - 1), function(i, $slide) { $slide.addClass(options.classes.before); }); } if (currentIndex + 2 < slides.length) { $.each(slides.slice(currentIndex+2), function(i, $slide) { $slide.addClass(options.classes.after); }); } }; var updateStates = function() { updateContainerState(); updateChildCurrent(); removeOldSlideStates(); addNewSlideStates(); }; var initSlidesArray = function(elements) { if ($.isArray(elements)) { $.each(elements, function(i, element) { slides.push($(element)); }); } else { $(elements).each(function(i, element) { slides.push($(element)); }); } }; var bindKeyEvents = function() { var editables = [ 'input', 'textarea', 'select', 'button', 'meter', 'progress', '[contentEditable]' ].join(', '); $document.unbind('keydown.deck').bind('keydown.deck', function(event) { var isNext = event.which === options.keys.next; var isPrev = event.which === options.keys.previous; isNext = isNext || $.inArray(event.which, options.keys.next) > -1; isPrev = isPrev || $.inArray(event.which, options.keys.previous) > -1; if (isNext) { methods.next(); event.preventDefault(); } else if (isPrev) { methods.prev(); event.preventDefault(); } }); $document.undelegate(editables, 'keydown.deck', stopPropagation); $document.delegate(editables, 'keydown.deck', stopPropagation); }; var bindTouchEvents = function() { var startTouch; $container.unbind('touchstart.deck'); $container.bind('touchstart.deck', function(event) { if (!startTouch) { startTouch = $.extend({}, event.originalEvent.targetTouches[0]); } }); $container.unbind('touchmove.deck'); $container.bind('touchmove.deck', function(event) { $.each(event.originalEvent.changedTouches, function(i, touch) { if (!startTouch || touch.identifier !== startTouch.identifier) { return true; } var xDistance = touch.screenX - startTouch.screenX; var yDistance = touch.screenY - startTouch.screenY; var swipedLeftToRight = xDistance > options.touch.swipeTolerance; var swipedRightToLeft = xDistance < -options.touch.swipeTolerance; var swipedTopToBottom = yDistance > options.touch.swipeTolerance; var swipedBottomToTop = yDistance < -options.touch.swipeTolerance; if (swipedLeftToRight || swipedTopToBottom) { $.deck('prev'); startTouch = undefined; } else if (swipedRightToLeft || swipedBottomToTop) { $.deck('next'); startTouch = undefined; } return false; }); event.preventDefault(); }); $container.unbind('touchend.deck'); $container.bind('touchend.deck', function(event) { $.each(event.originalEvent.changedTouches, function(i, touch) { if (startTouch && touch.identifier === startTouch.identifier) { startTouch = undefined; } }); }); }; /* Kick iframe videos, which dont like to redraw w/ transforms. Remove this if Webkit ever fixes it. */ var hackWebkitIframes = function() { $.each(slides, function(i, $slide) { $slide.unbind('webkitTransitionEnd.deck'); $slide.bind('webkitTransitionEnd.deck', function(event) { if ($el.hasClass($.deck('getOptions').classes.current)) { var embeds = $(this).find('iframe').css('opacity', 0); window.setTimeout(function() { embeds.css('opacity', 1); }, 100); } }); }); }; var indexInBounds = function(index) { return typeof index === 'number' && index >=0 && index < slides.length; }; /* Methods exposed in the jQuery.deck namespace */ var methods = { /* jQuery.deck(selector, options) selector: string | jQuery | array options: object, optional Initializes the deck, using each element matched by selector as a slide. May also be passed an array of string selectors or jQuery objects, in which case each selector in the array is considered a slide. The second parameter is an optional options object which will extend the default values. $.deck('.slide'); or $.deck([ '#first-slide', '#second-slide', '#etc' ]); */ init: function(elements, opts) { options = $.extend(true, {}, $.deck.defaults, opts); slides = []; currentIndex = 0; $container = $(options.selectors.container); tolerance = options.touch.swipeTolerance; // Pre init event for preprocessing hooks $document.trigger(events.beforeInitialize); // Hide the deck while states are being applied to kill transitions $container.addClass(options.classes.loading); initSlidesArray(elements); bindKeyEvents(); bindTouchEvents(); // hackWebkitIframes(); $container.scrollLeft(0).scrollTop(0); if (slides.length) { updateStates(); } // Show deck again now that slides are in place $container.removeClass(options.classes.loading); $document.trigger(events.initialize); }, /* jQuery.deck('go', index) index: integer | string Moves to the slide at the specified index if index is a number. Index is 0-based, so $.deck('go', 0); will move to the first slide. If index is a string this will move to the slide with the specified id. If index is out of bounds or doesn't match a slide id the call is ignored. */ go: function(indexOrId) { var beforeChangeEvent = $.Event(events.beforeChange); var index; /* Number index, easy. */ if (indexInBounds(indexOrId)) { index = indexOrId; } /* Id string index, search for it and set integer index */ else if (typeof indexOrId === 'string') { $.each(slides, function(i, $slide) { if ($slide.attr('id') === indexOrId) { index = i; return false; } }); } if (typeof index === 'undefined') { return; } /* Trigger beforeChange. If nothing prevents the change, trigger the slide change. */ $document.trigger(beforeChangeEvent, [currentIndex, index]); if (!beforeChangeEvent.isDefaultPrevented()) { $document.trigger(events.change, [currentIndex, index]); currentIndex = index; updateStates(); } }, /* jQuery.deck('next') Moves to the next slide. If the last slide is already active, the call is ignored. */ next: function() { methods.go(currentIndex+1); }, /* jQuery.deck('prev') Moves to the previous slide. If the first slide is already active, the call is ignored. */ prev: function() { methods.go(currentIndex-1); }, /* jQuery.deck('getSlide', index) index: integer, optional Returns a jQuery object containing the slide at index. If index is not specified, the current slide is returned. */ getSlide: function(index) { index = typeof index !== 'undefined' ? index : currentIndex; if (!indexInBounds(index)) { return null; } return slides[index]; }, /* jQuery.deck('getSlides') Returns all slides as an array of jQuery objects. */ getSlides: function() { return slides; }, /* jQuery.deck('getContainer') Returns a jQuery object containing the deck container as defined by the container option. */ getContainer: function() { return $container; }, /* jQuery.deck('getOptions') Returns the options object for the deck, including any overrides that were defined at initialization. */ getOptions: function() { return options; }, /* jQuery.deck('extend', name, method) name: string method: function Adds method to the deck namespace with the key of name. This doesn’t give access to any private member data — public methods must still be used within method — but lets extension authors piggyback on the deck namespace rather than pollute jQuery. $.deck('extend', 'alert', function(msg) { alert(msg); }); // Alerts 'boom' $.deck('alert', 'boom'); */ extend: function(name, method) { methods[name] = method; } }; /* jQuery extension */ $.deck = function(method, arg) { var args = Array.prototype.slice.call(arguments, 1); if (methods[method]) { return methods[method].apply(this, args); } else { return methods.init(method, arg); } }; /* The default settings object for a deck. All deck extensions should extend this object to add defaults for any of their options. options.classes.after This class is added to all slides that appear after the 'next' slide. options.classes.before This class is added to all slides that appear before the 'previous' slide. options.classes.childCurrent This class is added to all elements in the DOM tree between the 'current' slide and the deck container. For standard slides, this is mostly seen and used for nested slides. options.classes.current This class is added to the current slide. options.classes.loading This class is applied to the deck container during loading phases and is primarily used as a way to short circuit transitions between states where such transitions are distracting or unwanted. For example, this class is applied during deck initialization and then removed to prevent all the slides from appearing stacked and transitioning into place on load. options.classes.next This class is added to the slide immediately following the 'current' slide. options.classes.onPrefix This prefix, concatenated with the current slide index, is added to the deck container as you change slides. options.classes.previous This class is added to the slide immediately preceding the 'current' slide. options.selectors.container Elements matched by this CSS selector will be considered the deck container. The deck container is used to scope certain states of the deck, as with the onPrefix option, or with extensions such as deck.goto and deck.menu. options.keys.next The numeric keycode used to go to the next slide. options.keys.previous The numeric keycode used to go to the previous slide. options.touch.swipeTolerance The number of pixels the users finger must travel to produce a swipe gesture. */ $.deck.defaults = { classes: { after: 'deck-after', before: 'deck-before', childCurrent: 'deck-child-current', current: 'deck-current', loading: 'deck-loading', next: 'deck-next', onPrefix: 'on-slide-', previous: 'deck-previous' }, selectors: { container: '.deck-container' }, keys: { // enter, space, page down, right arrow, down arrow, next: [13, 32, 34, 39, 40], // backspace, page up, left arrow, up arrow previous: [8, 33, 37, 38] }, touch: { swipeTolerance: 60 } }; $document.ready(function() { $('html').addClass('ready'); }); })(jQuery);
rivanvx/cdnjs
ajax/libs/deck.js/1.0.0/core/deck.core.js
JavaScript
mit
15,638
body,html{margin:0;padding:0;overflow:hidden;-webkit-tap-highlight-color:transparent}#superContainer{height:100%;position:relative;-ms-touch-action:none;touch-action:none}.fp-section{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fp-slide{float:left}.fp-slide,.fp-slidesContainer{height:100%;display:block}.fp-slides{z-index:1;height:100%;overflow:hidden;position:relative;-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.fp-section.fp-table,.fp-slide.fp-table{display:table;width:100%}.fp-tableCell{display:table-cell;vertical-align:middle;width:100%;height:100%}.fp-slidesContainer{float:left;position:relative}.fp-controlArrow{position:absolute;z-index:4;top:50%;cursor:pointer;width:0;height:0;border-style:solid;margin-top:-38px}.fp-controlArrow.fp-prev{left:15px;width:0;border-width:38.5px 34px 38.5px 0;border-color:transparent #fff transparent transparent}.fp-controlArrow.fp-next{right:15px;border-width:38.5px 0 38.5px 34px;border-color:transparent transparent transparent #fff}.fp-scrollable{overflow:scroll}.fp-notransition{-webkit-transition:none!important;transition:none!important}#fp-nav{position:fixed;z-index:100;margin-top:-32px;top:50%;opacity:1}#fp-nav.right{right:17px}#fp-nav.left{left:17px}.fp-slidesNav{position:absolute;z-index:4;left:50%;opacity:1}.fp-slidesNav.bottom{bottom:17px}.fp-slidesNav.top{top:17px}#fp-nav ul,.fp-slidesNav ul{margin:0;padding:0}#fp-nav li,.fp-slidesNav li{display:block;width:14px;height:13px;margin:7px;position:relative}.fp-slidesNav li{display:inline-block}#fp-nav li a,.fp-slidesNav li a{display:block;position:relative;z-index:1;width:100%;height:100%;cursor:pointer;text-decoration:none}#fp-nav li .active span,.fp-slidesNav .active span{background:#333}#fp-nav span,.fp-slidesNav span{top:2px;left:2px;width:8px;height:8px;border:1px solid #000;background:0 0;border-radius:50%;position:absolute;z-index:1}.fp-tooltip{position:absolute;top:-2px;color:#fff;font-size:14px;font-family:arial,helvetica,sans-serif;white-space:nowrap;max-width:220px}.fp-tooltip.right{right:20px}.fp-tooltip.left{left:20px}
jakubfiala/cdnjs
ajax/libs/fullPage.js/2.4.3/jquery.fullPage.min.css
CSS
mit
2,130
ace.define("ace/theme/dawn",["require","exports","module","ace/lib/dom"], function(require, exports, module) { exports.isDark = false; exports.cssClass = "ace-dawn"; exports.cssText = ".ace-dawn .ace_gutter {\ background: #ebebeb;\ color: #333\ }\ .ace-dawn .ace_print-margin {\ width: 1px;\ background: #e8e8e8\ }\ .ace-dawn {\ background-color: #F9F9F9;\ color: #080808\ }\ .ace-dawn .ace_cursor {\ color: #000000\ }\ .ace-dawn .ace_marker-layer .ace_selection {\ background: rgba(39, 95, 255, 0.30)\ }\ .ace-dawn.ace_multiselect .ace_selection.ace_start {\ box-shadow: 0 0 3px 0px #F9F9F9;\ }\ .ace-dawn .ace_marker-layer .ace_step {\ background: rgb(255, 255, 0)\ }\ .ace-dawn .ace_marker-layer .ace_bracket {\ margin: -1px 0 0 -1px;\ border: 1px solid rgba(75, 75, 126, 0.50)\ }\ .ace-dawn .ace_marker-layer .ace_active-line {\ background: rgba(36, 99, 180, 0.12)\ }\ .ace-dawn .ace_gutter-active-line {\ background-color : #dcdcdc\ }\ .ace-dawn .ace_marker-layer .ace_selected-word {\ border: 1px solid rgba(39, 95, 255, 0.30)\ }\ .ace-dawn .ace_invisible {\ color: rgba(75, 75, 126, 0.50)\ }\ .ace-dawn .ace_keyword,\ .ace-dawn .ace_meta {\ color: #794938\ }\ .ace-dawn .ace_constant,\ .ace-dawn .ace_constant.ace_character,\ .ace-dawn .ace_constant.ace_character.ace_escape,\ .ace-dawn .ace_constant.ace_other {\ color: #811F24\ }\ .ace-dawn .ace_invalid.ace_illegal {\ text-decoration: underline;\ font-style: italic;\ color: #F8F8F8;\ background-color: #B52A1D\ }\ .ace-dawn .ace_invalid.ace_deprecated {\ text-decoration: underline;\ font-style: italic;\ color: #B52A1D\ }\ .ace-dawn .ace_support {\ color: #691C97\ }\ .ace-dawn .ace_support.ace_constant {\ color: #B4371F\ }\ .ace-dawn .ace_fold {\ background-color: #794938;\ border-color: #080808\ }\ .ace-dawn .ace_list,\ .ace-dawn .ace_markup.ace_list,\ .ace-dawn .ace_support.ace_function {\ color: #693A17\ }\ .ace-dawn .ace_storage {\ font-style: italic;\ color: #A71D5D\ }\ .ace-dawn .ace_string {\ color: #0B6125\ }\ .ace-dawn .ace_string.ace_regexp {\ color: #CF5628\ }\ .ace-dawn .ace_comment {\ font-style: italic;\ color: #5A525F\ }\ .ace-dawn .ace_heading,\ .ace-dawn .ace_markup.ace_heading {\ color: #19356D\ }\ .ace-dawn .ace_variable {\ color: #234A97\ }\ .ace-dawn .ace_indent-guide {\ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y\ }"; var dom = require("../lib/dom"); dom.importCssString(exports.cssText, exports.cssClass); });
Ventajou/angular-win
demo/bower/ace-builds/src-noconflict/theme-dawn.js
JavaScript
mit
2,522
/*! ============================================================ * bootstrapSwitch v1.7 by Larentis Mattia @SpiritualGuru * http://www.larentis.eu/ * * Enhanced for radiobuttons by Stein, Peter @BdMdesigN * http://www.bdmdesign.org/ * * Project site: * http://www.larentis.eu/switch/ * ============================================================ * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * ============================================================ */ !function($){"use strict";$.fn['bootstrapSwitch']=function(method){var inputSelector='input[type!="hidden"]';var methods={init:function(){return this.each(function(){var $element=$(this),$div,$switchLeft,$switchRight,$label,$form=$element.closest('form'),myClasses="",classes=$element.attr('class'),color,moving,onLabel="ON",offLabel="OFF",icon=false;$.each(['switch-mini','switch-small','switch-large'],function(i,el){if(classes.indexOf(el)>=0)myClasses=el});$element.addClass('has-switch');if($element.data('on')!==undefined)color="switch-"+$element.data('on');if($element.data('on-label')!==undefined)onLabel=$element.data('on-label');if($element.data('off-label')!==undefined)offLabel=$element.data('off-label');if($element.data('icon')!==undefined)icon=$element.data('icon');$switchLeft=$('<span>').addClass("switch-left").addClass(myClasses).addClass(color).html(onLabel);color='';if($element.data('off')!==undefined)color="switch-"+$element.data('off');$switchRight=$('<span>').addClass("switch-right").addClass(myClasses).addClass(color).html(offLabel);$label=$('<label>').html("&nbsp;").addClass(myClasses).attr('for',$element.find(inputSelector).attr('id'));if(icon){$label.html('<i class="icon icon-'+icon+'"></i>')}$div=$element.find(inputSelector).wrap($('<div>')).parent().data('animated',false);if($element.data('animated')!==false)$div.addClass('switch-animate').data('animated',true);$div.append($switchLeft).append($label).append($switchRight);$element.find('>div').addClass($element.find(inputSelector).is(':checked')?'switch-on':'switch-off');if($element.find(inputSelector).is(':disabled'))$(this).addClass('deactivate');var changeStatus=function($this){$this.siblings('label').trigger('mousedown').trigger('mouseup').trigger('click')};$element.on('keydown',function(e){if(e.keyCode===32){e.stopImmediatePropagation();e.preventDefault();changeStatus($(e.target).find('span:first'))}});$switchLeft.on('click',function(e){changeStatus($(this))});$switchRight.on('click',function(e){changeStatus($(this))});$element.find(inputSelector).on('change',function(e,skipOnChange){var $this=$(this),$element=$this.parent(),thisState=$this.is(':checked'),state=$element.is('.switch-off');e.preventDefault();$element.css('left','');if(state===thisState){if(thisState)$element.removeClass('switch-off').addClass('switch-on');else $element.removeClass('switch-on').addClass('switch-off');if($element.data('animated')!==false)$element.addClass("switch-animate");if(typeof skipOnChange==='boolean'&&skipOnChange)return;$element.parent().trigger('switch-change',{'el':$this,'value':thisState})}});$element.find('label').on('mousedown touchstart',function(e){var $this=$(this);moving=false;e.preventDefault();e.stopImmediatePropagation();$this.closest('div').removeClass('switch-animate');if($this.closest('.has-switch').is('.deactivate')){$this.unbind('click')}else if($this.closest('.switch-on').parent().is('.radio-no-uncheck')){$this.unbind('click')}else{$this.on('mousemove touchmove',function(e){var $element=$(this).closest('.make-switch'),relativeX=(e.pageX||e.originalEvent.targetTouches[0].pageX)-$element.offset().left,percent=(relativeX/$element.width())*100,left=25,right=75;moving=true;if(percent<left)percent=left;else if(percent>right)percent=right;$element.find('>div').css('left',(percent-right)+"%")});$this.on('click touchend',function(e){var $this=$(this),$target=$(e.target),$myRadioCheckBox=$target.siblings('input');e.stopImmediatePropagation();e.preventDefault();$this.unbind('mouseleave');if(moving)$myRadioCheckBox.prop('checked',!(parseInt($this.parent().css('left'))<-25));else $myRadioCheckBox.prop("checked",!$myRadioCheckBox.is(":checked"));moving=false;$myRadioCheckBox.trigger('change')});$this.on('mouseleave',function(e){var $this=$(this),$myInputBox=$this.siblings('input');e.preventDefault();e.stopImmediatePropagation();$this.unbind('mouseleave');$this.trigger('mouseup');$myInputBox.prop('checked',!(parseInt($this.parent().css('left'))<-25)).trigger('change')});$this.on('mouseup',function(e){e.stopImmediatePropagation();e.preventDefault();$(this).unbind('mousemove')})}});if($form.data('bootstrapSwitch')!=='injected'){$form.bind('reset',function(){setTimeout(function(){$form.find('.make-switch').each(function(){var $input=$(this).find(inputSelector);$input.prop('checked',$input.is(':checked')).trigger('change')})},1)});$form.data('bootstrapSwitch','injected')}})},toggleActivation:function(){var $this=$(this);$this.toggleClass('deactivate');$this.find(inputSelector).prop('disabled',$this.is('.deactivate'))},isActive:function(){return!$(this).hasClass('deactivate')},setActive:function(active){var $this=$(this);if(active){$this.removeClass('deactivate');$this.find(inputSelector).removeAttr('disabled')}else{$this.addClass('deactivate');$this.find(inputSelector).attr('disabled','disabled')}},toggleState:function(skipOnChange){var $input=$(this).find(':checkbox');$input.prop('checked',!$input.is(':checked')).trigger('change',skipOnChange)},toggleRadioState:function(skipOnChange){var $radioinput=$(this).find(':radio');$radioinput.not(':checked').prop('checked',!$radioinput.is(':checked')).trigger('change',skipOnChange)},toggleRadioStateAllowUncheck:function(uncheck,skipOnChange){var $radioinput=$(this).find(':radio');if(uncheck){$radioinput.not(':checked').trigger('change',skipOnChange)}else{$radioinput.not(':checked').prop('checked',!$radioinput.is(':checked')).trigger('change',skipOnChange)}},setState:function(value,skipOnChange){$(this).find(inputSelector).prop('checked',value).trigger('change',skipOnChange)},setOnLabel:function(value){var $switchLeft=$(this).find(".switch-left");$switchLeft.html(value)},setOffLabel:function(value){var $switchRight=$(this).find(".switch-right");$switchRight.html(value)},setOnClass:function(value){var $switchLeft=$(this).find(".switch-left");var color='';if(value!==undefined){if($(this).attr('data-on')!==undefined){color="switch-"+$(this).attr('data-on')}$switchLeft.removeClass(color);color="switch-"+value;$switchLeft.addClass(color)}},setOffClass:function(value){var $switchRight=$(this).find(".switch-right");var color='';if(value!==undefined){if($(this).attr('data-off')!==undefined){color="switch-"+$(this).attr('data-off')}$switchRight.removeClass(color);color="switch-"+value;$switchRight.addClass(color)}},setAnimated:function(value){var $element=$(this).find('inputSelector').parent();if(value===undefined)value=false;$element.data('animated',value);$element.attr('data-animated',value);if($element.data('animated')!==false){$element.addClass("switch-animate")}else{$element.removeClass("switch-animate")}},setSizeClass:function(value){var $element=$(this);var $switchLeft=$element.find(".switch-left");var $switchRight=$element.find(".switch-right");var $label=$element.find("label");$.each(['switch-mini','switch-small','switch-large'],function(i,el){if(el!==value){$switchLeft.removeClass(el)$switchRight.removeClass(el);$label.removeClass(el)}else{$switchLeft.addClass(el);$switchRight.addClass(el);$label.addClass(el)}})},status:function(){return $(this).find(inputSelector).is(':checked')},destroy:function(){var $element=$(this),$div=$element.find('div'),$form=$element.closest('form'),$inputbox;$div.find(':not(inputSelector)').remove();$inputbox=$div.children();$inputbox.unwrap().unwrap();$inputbox.unbind('change');if($form){$form.unbind('reset');$form.removeData('bootstrapSwitch')}return $inputbox}};if(methods[method])return methods[method].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof method==='object'||!method)return methods.init.apply(this,arguments);else $.error('Method '+method+' does not exist!')}}(jQuery);(function($){$(function(){$('.make-switch')['bootstrapSwitch']()})})(jQuery);
altmind/cdnjs
ajax/libs/bootstrap-switch/1.7/js/bootstrap-switch.min.js
JavaScript
mit
8,270
/* * JSFace Object Oriented Programming Library - Ready plugin * https://github.com/tnhu/jsface * * Copyright (c) 2009-2012 Tan Nhu * Licensed under MIT license (https://github.com/tnhu/jsface/blob/master/LICENSE.txt) */ (function(context) { var jsface = context.jsface || require("./jsface"), Class = jsface.Class, functionOrNil = jsface.functionOrNil, readyFns = [], readyCount = 0; Class.plugins.$ready = function invoke(clazz, parent, api, loop) { var r = api.$ready, len = parent ? parent.length : 0, count = len, _super = len && parent[0].$super, pa, i, entry; // find and invoke $ready from parent(s) while (len--) { for (i = 0; i < readyCount; i++) { entry = readyFns[i]; pa = parent[len]; if (pa === entry[0]) { entry[1].call(pa, clazz, parent, api); count--; } if ( !count) { break; } } } // call $ready from grandparent(s), if any if (_super) { invoke(clazz, [ _super ], api, true); } // in an environment where there are a lot of class creating/removing (rarely) // this implementation might cause a leak (saving pointers to clazz and $ready) if ( !loop && functionOrNil(r)) { r.call(clazz, clazz, parent, api); // invoke ready from current class readyFns.push([ clazz, r ]); readyCount++; } }; })(this);
kellyselden/cdnjs
ajax/libs/jsface/2.2.0/jsface.ready.js
JavaScript
mit
1,472
/**@constructor*/ function ChainNode(object, link) { this.value = object; this.link = link; // describes this node's relationship to the previous node } /**@constructor*/ function Chain(valueLinks) { this.nodes = []; this.cursor = -1; if (valueLinks && valueLinks.length > 0) { this.push(valueLinks[0], "//"); for (var i = 1, l = valueLinks.length; i < l; i+=2) { this.push(valueLinks[i+1], valueLinks[i]); } } } Chain.prototype.push = function(o, link) { if (this.nodes.length > 0 && link) this.nodes.push(new ChainNode(o, link)); else this.nodes.push(new ChainNode(o)); } Chain.prototype.unshift = function(o, link) { if (this.nodes.length > 0 && link) this.nodes[0].link = link; this.nodes.unshift(new ChainNode(o)); this.cursor++; } Chain.prototype.get = function() { if (this.cursor < 0 || this.cursor > this.nodes.length-1) return null; return this.nodes[this.cursor]; } Chain.prototype.first = function() { this.cursor = 0; return this.get(); } Chain.prototype.last = function() { this.cursor = this.nodes.length-1; return this.get(); } Chain.prototype.next = function() { this.cursor++; return this.get(); } Chain.prototype.prev = function() { this.cursor--; return this.get(); } Chain.prototype.toString = function() { var string = ""; for (var i = 0, l = this.nodes.length; i < l; i++) { if (this.nodes[i].link) string += " -("+this.nodes[i].link+")-> "; string += this.nodes[i].value.toString(); } return string; } Chain.prototype.joinLeft = function() { var result = ""; for (var i = 0, l = this.cursor; i < l; i++) { if (result && this.nodes[i].link) result += this.nodes[i].link; result += this.nodes[i].value.toString(); } return result; } /* USAGE: var path = "one/two/three.four/five-six"; var pathChain = new Chain(path.split(/([\/.-])/)); print(pathChain); var lineage = new Chain(); lineage.push("Port"); lineage.push("Les", "son"); lineage.push("Dawn", "daughter"); lineage.unshift("Purdie", "son"); print(lineage); // walk left for (var node = lineage.last(); node !== null; node = lineage.prev()) { print("< "+node.value); } // walk right var node = lineage.first() while (node !== null) { print(node.value); node = lineage.next(); if (node && node.link) print("had a "+node.link+" named"); } */
bobellis/ghost_blog
node_modules/grunt-jscs/node_modules/jscs/node_modules/jsonlint/node_modules/JSV/jsdoc-toolkit/app/frame/Chain.js
JavaScript
mit
2,288
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Language Class &mdash; CodeIgniter 3.0.0 documentation</title> <link rel="shortcut icon" href="../_static/ci-icon.ico"/> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="top" title="CodeIgniter 3.0.0 documentation" href="../index.html"/> <link rel="up" title="Libraries" href="index.html"/> <link rel="next" title="Loader Class" href="loader.html"/> <link rel="prev" title="Javascript Class" href="javascript.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../index.html" class="fa fa-home"> CodeIgniter</a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/index.html">General Topics</a><ul> <li class="toctree-l2"><a class="reference internal" href="../general/urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/cli.html">Running via the CLI</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/managing_apps.html">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Libraries</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="javascript.html">Javascript Class</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Database Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/results.html">Generating Query Results</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/helpers.html">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">CodeIgniter</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="index.html">Libraries</a> &raquo;</li> <li>Language Class</li> <li class="wy-breadcrumbs-aside"> </li> </ul> <hr/> </div> <div role="main" class="document"> <div class="section" id="language-class"> <h1>Language Class<a class="headerlink" href="#language-class" title="Permalink to this headline">¶</a></h1> <p>The Language Class provides functions to retrieve language files and lines of text for purposes of internationalization.</p> <p>In your CodeIgniter <strong>system</strong> folder, you will find a <strong>language</strong> sub-directory containing a set of language files for the <strong>english</strong> idiom. The files in this directory (<strong>system/language/english/</strong>) define the regular messages, error messages, and other generally output terms or expressions, for the different parts of the CodeIgniter framework.</p> <p>You can create or incorporate your own language files, as needed, in order to provide application-specific error and other messages, or to provide translations of the core messages into other languages. These translations or additional messages would go inside your <strong>application/language/</strong> directory, with separate sub-directories for each idiom (for instance, &#8216;french&#8217; or &#8216;german&#8217;).</p> <p>The CodeIgniter framework comes with a set of language files for the &#8220;english&#8221; idiom. Additional approved translations for different idioms may be found in the <a class="reference external" href="https://github.com/bcit-ci/codeigniter3-translations">CodeIgniter 3 Translations repositories</a>. Each repository deals with a single idiom.</p> <p>When CodeIgniter loads language files, it will load the one in <strong>system/language/</strong> first and will then look for an override in your <strong>application/language/</strong> directory.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Each language should be stored in its own folder. For example, the English files are located at: system/language/english</p> </div> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#handling-multiple-languages" id="id1">Handling Multiple Languages</a><ul> <li><a class="reference internal" href="#sample-language-files" id="id2">Sample Language Files</a></li> <li><a class="reference internal" href="#example-of-switching-languages" id="id3">Example of switching languages</a></li> </ul> </li> <li><a class="reference internal" href="#internationalization" id="id4">Internationalization</a></li> <li><a class="reference internal" href="#using-the-language-class" id="id5">Using the Language Class</a><ul> <li><a class="reference internal" href="#creating-language-files" id="id6">Creating Language Files</a></li> <li><a class="reference internal" href="#loading-a-language-file" id="id7">Loading A Language File</a></li> <li><a class="reference internal" href="#fetching-a-line-of-text" id="id8">Fetching a Line of Text</a><ul> <li><a class="reference internal" href="#using-language-lines-as-form-labels" id="id9">Using language lines as form labels</a></li> </ul> </li> <li><a class="reference internal" href="#auto-loading-languages" id="id10">Auto-loading Languages</a></li> </ul> </li> <li><a class="reference internal" href="#class-reference" id="id11">Class Reference</a></li> </ul> </div> <div class="custom-index container"></div><div class="section" id="handling-multiple-languages"> <h2><a class="toc-backref" href="#id1">Handling Multiple Languages</a><a class="headerlink" href="#handling-multiple-languages" title="Permalink to this headline">¶</a></h2> <p>If you want to support multiple languages in your application, you would provide folders inside your <strong>application/language/</strong> directory for each of them, and you would specify the default language in your <strong>application/config/config.php</strong>.</p> <p>The <strong>application/language/english/</strong> directory would contain any additional language files needed by your application, for instance for error messages.</p> <p>Each of the other idiom-specific directories would contain the core language files that you obtained from the translations repositories, or that you translated yourself, as well as any additional ones needed by your application.</p> <p>You would store the language you are currently using, for instance in a session variable.</p> <div class="section" id="sample-language-files"> <h3><a class="toc-backref" href="#id2">Sample Language Files</a><a class="headerlink" href="#sample-language-files" title="Permalink to this headline">¶</a></h3> <div class="highlight-ci"><div class="highlight"><pre><span class="nb">system</span><span class="o">/</span> <span class="nx">language</span><span class="o">/</span> <span class="nx">english</span><span class="o">/</span> <span class="o">...</span> <span class="nx">email_lang</span><span class="o">.</span><span class="nx">php</span> <span class="nx">form_validation_lang</span><span class="o">.</span><span class="nx">php</span> <span class="o">...</span> <span class="nx">application</span><span class="o">/</span> <span class="nx">language</span><span class="o">/</span> <span class="nx">english</span><span class="o">/</span> <span class="nx">error_messages_lang</span><span class="o">.</span><span class="nx">php</span> <span class="nx">french</span><span class="o">/</span> <span class="o">...</span> <span class="nx">email_lang</span><span class="o">.</span><span class="nx">php</span> <span class="nx">error_messages_lang</span><span class="o">.</span><span class="nx">php</span> <span class="nx">form_validation_lang</span><span class="o">.</span><span class="nx">php</span> <span class="o">...</span> </pre></div> </div> </div> <div class="section" id="example-of-switching-languages"> <h3><a class="toc-backref" href="#id3">Example of switching languages</a><a class="headerlink" href="#example-of-switching-languages" title="Permalink to this headline">¶</a></h3> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$idiom</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">session</span><span class="o">-&gt;</span><span class="na">get_userdata</span><span class="p">(</span><span class="s1">&#39;language&#39;</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">load</span><span class="p">(</span><span class="s1">&#39;error_messages&#39;</span><span class="p">,</span> <span class="nv">$idiom</span><span class="p">);</span> <span class="nv">$oops</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">line</span><span class="p">(</span><span class="s1">&#39;message_key&#39;</span><span class="p">);</span> </pre></div> </div> </div> </div> <div class="section" id="internationalization"> <h2><a class="toc-backref" href="#id4">Internationalization</a><a class="headerlink" href="#internationalization" title="Permalink to this headline">¶</a></h2> <p>The Language class in CodeIgniter is meant to provide an easy and lightweight way to support multiplelanguages in your application. It is not meant to be a full implementation of what is commonly called <a class="reference external" href="http://en.wikipedia.org/wiki/Internationalization_and_localization">internationalization and localization</a>.</p> <p>We use the term &#8220;idiom&#8221; to refer to a language using its common name, rather than using any of the international standards, such as &#8220;en&#8221;, &#8220;en-US&#8221;, or &#8220;en-CA-x-ca&#8221; for English and some of its variants.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">There is nothing to prevent you from using those abbreviations in your application!</p> </div> </div> <div class="section" id="using-the-language-class"> <h2><a class="toc-backref" href="#id5">Using the Language Class</a><a class="headerlink" href="#using-the-language-class" title="Permalink to this headline">¶</a></h2> <div class="section" id="creating-language-files"> <h3><a class="toc-backref" href="#id6">Creating Language Files</a><a class="headerlink" href="#creating-language-files" title="Permalink to this headline">¶</a></h3> <p>Language files must be named with <strong>_lang.php</strong> as the filename extension. For example, let&#8217;s say you want to create a file containing error messages. You might name it: error_lang.php</p> <p>Within the file you will assign each line of text to an array called <tt class="docutils literal"><span class="pre">$lang</span></tt> with this prototype:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$lang</span><span class="p">[</span><span class="s1">&#39;language_key&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;The actual message to be shown&#39;</span><span class="p">;</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">It&#8217;s a good practice to use a common prefix for all messages in a given file to avoid collisions with similarly named items in other files. For example, if you are creating error messages you might prefix them with error_</p> </div> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$lang</span><span class="p">[</span><span class="s1">&#39;error_email_missing&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;You must submit an email address&#39;</span><span class="p">;</span> <span class="nv">$lang</span><span class="p">[</span><span class="s1">&#39;error_url_missing&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;You must submit a URL&#39;</span><span class="p">;</span> <span class="nv">$lang</span><span class="p">[</span><span class="s1">&#39;error_username_missing&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;You must submit a username&#39;</span><span class="p">;</span> </pre></div> </div> </div> <div class="section" id="loading-a-language-file"> <h3><a class="toc-backref" href="#id7">Loading A Language File</a><a class="headerlink" href="#loading-a-language-file" title="Permalink to this headline">¶</a></h3> <p>In order to fetch a line from a particular file you must load the file first. Loading a language file is done with the following code:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">load</span><span class="p">(</span><span class="s1">&#39;filename&#39;</span><span class="p">,</span> <span class="s1">&#39;language&#39;</span><span class="p">);</span> </pre></div> </div> <p>Where filename is the name of the file you wish to load (without the file extension), and language is the language set containing it (ie, english). If the second parameter is missing, the default language set in your <strong>application/config/config.php</strong> file will be used.</p> <p>You can also load multiple language files at the same time by passing an array of language files as first parameter.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">load</span><span class="p">(</span><span class="k">array</span><span class="p">(</span><span class="s1">&#39;filename1&#39;</span><span class="p">,</span> <span class="s1">&#39;filename2&#39;</span><span class="p">));</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">The <em>language</em> parameter can only consist of letters.</p> </div> </div> <div class="section" id="fetching-a-line-of-text"> <h3><a class="toc-backref" href="#id8">Fetching a Line of Text</a><a class="headerlink" href="#fetching-a-line-of-text" title="Permalink to this headline">¶</a></h3> <p>Once your desired language file is loaded you can access any line of text using this function:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">line</span><span class="p">(</span><span class="s1">&#39;language_key&#39;</span><span class="p">);</span> </pre></div> </div> <p>Where <em>language_key</em> is the array key corresponding to the line you wish to show.</p> <p>You can optionally pass FALSE as the second argument of that method to disable error logging, in case you&#8217;re not sure if the line exists:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">lang</span><span class="o">-&gt;</span><span class="na">line</span><span class="p">(</span><span class="s1">&#39;misc_key&#39;</span><span class="p">,</span> <span class="k">FALSE</span><span class="p">);</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">This method simply returns the line. It does not echo it.</p> </div> <div class="section" id="using-language-lines-as-form-labels"> <h4><a class="toc-backref" href="#id9">Using language lines as form labels</a><a class="headerlink" href="#using-language-lines-as-form-labels" title="Permalink to this headline">¶</a></h4> <p>This feature has been deprecated from the language library and moved to the <a class="reference internal" href="../helpers/language_helper.html#lang" title="lang"><tt class="xref php php-func docutils literal"><span class="pre">lang()</span></tt></a> function of the <a class="reference internal" href="../helpers/language_helper.html"><em>Language Helper</em></a>.</p> </div> </div> <div class="section" id="auto-loading-languages"> <h3><a class="toc-backref" href="#id10">Auto-loading Languages</a><a class="headerlink" href="#auto-loading-languages" title="Permalink to this headline">¶</a></h3> <p>If you find that you need a particular language globally throughout your application, you can tell CodeIgniter to <a class="reference internal" href="../general/autoloader.html"><em>auto-load</em></a> it during system initialization. This is done by opening the <strong>application/config/autoload.php</strong> file and adding the language(s) to the autoload array.</p> </div> </div> <div class="section" id="class-reference"> <h2><a class="toc-backref" href="#id11">Class Reference</a><a class="headerlink" href="#class-reference" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="CI_Lang"> <em class="property">class </em><tt class="descname">CI_Lang</tt><a class="headerlink" href="#CI_Lang" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="CI_Lang::load"> <tt class="descname">load</tt><big>(</big><em>$langfile</em><span class="optional">[</span>, <em>$idiom = ''</em><span class="optional">[</span>, <em>$return = FALSE</em><span class="optional">[</span>, <em>$add_suffix = TRUE</em><span class="optional">[</span>, <em>$alt_path = ''</em><span class="optional">]</span><span class="optional">]</span><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_Lang::load" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$langfile</strong> (<em>mixed</em>) &#8211; Language file to load or array with multiple files</li> <li><strong>$idiom</strong> (<em>string</em>) &#8211; Language name (i.e. &#8216;english&#8217;)</li> <li><strong>$return</strong> (<em>bool</em>) &#8211; Whether to return the loaded array of translations</li> <li><strong>$add_suffix</strong> (<em>bool</em>) &#8211; Whether to add the &#8216;_lang&#8217; suffix to the language file name</li> <li><strong>$alt_path</strong> (<em>string</em>) &#8211; An alternative path to look in for the language file</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Array of language lines if $return is set to TRUE, otherwise void</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">mixed</p> </td> </tr> </tbody> </table> <p>Loads a language file.</p> </dd></dl> <dl class="method"> <dt id="CI_Lang::line"> <tt class="descname">line</tt><big>(</big><em>$line</em><span class="optional">[</span>, <em>$log_errors = TRUE</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_Lang::line" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$line</strong> (<em>string</em>) &#8211; Language line key name</li> <li><strong>$log_errors</strong> (<em>bool</em>) &#8211; Whether to log an error if the line isn&#8217;t found</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Language line string or FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>Fetches a single translation line from the already loaded language files, based on the line&#8217;s name.</p> </dd></dl> </dd></dl> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="loader.html" class="btn btn-neutral float-right" title="Loader Class">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="javascript.html" class="btn btn-neutral" title="Javascript Class"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2014 - 2015, British Columbia Institute of Technology. Last updated on Mar 30, 2015. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'3.0.0', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
yourdesignbuddy/CI_sandbox
user_guide/libraries/language.html
HTML
mit
35,702
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FTP Class &mdash; CodeIgniter 3.0.0 documentation</title> <link rel="shortcut icon" href="../_static/ci-icon.ico"/> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="top" title="CodeIgniter 3.0.0 documentation" href="../index.html"/> <link rel="up" title="Libraries" href="index.html"/> <link rel="next" title="Image Manipulation Class" href="image_lib.html"/> <link rel="prev" title="Form Validation" href="form_validation.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../index.html" class="fa fa-home"> CodeIgniter</a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/index.html">General Topics</a><ul> <li class="toctree-l2"><a class="reference internal" href="../general/urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/cli.html">Running via the CLI</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/managing_apps.html">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Libraries</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="form_validation.html">Form Validation</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Database Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/results.html">Generating Query Results</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/helpers.html">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">CodeIgniter</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="index.html">Libraries</a> &raquo;</li> <li>FTP Class</li> <li class="wy-breadcrumbs-aside"> </li> </ul> <hr/> </div> <div role="main" class="document"> <div class="section" id="ftp-class"> <h1>FTP Class<a class="headerlink" href="#ftp-class" title="Permalink to this headline">¶</a></h1> <p>CodeIgniter&#8217;s FTP Class permits files to be transfered to a remote server. Remote files can also be moved, renamed, and deleted. The FTP class also includes a &#8220;mirroring&#8221; function that permits an entire local directory to be recreated remotely via FTP.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">SFTP and SSL FTP protocols are not supported, only standard FTP.</p> </div> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#working-with-the-ftp-class" id="id1">Working with the FTP Class</a><ul> <li><a class="reference internal" href="#initializing-the-class" id="id2">Initializing the Class</a></li> <li><a class="reference internal" href="#usage-examples" id="id3">Usage Examples</a></li> </ul> </li> <li><a class="reference internal" href="#class-reference" id="id4">Class Reference</a></li> </ul> </div> <div class="custom-index container"></div><div class="section" id="working-with-the-ftp-class"> <h2><a class="toc-backref" href="#id1">Working with the FTP Class</a><a class="headerlink" href="#working-with-the-ftp-class" title="Permalink to this headline">¶</a></h2> <div class="section" id="initializing-the-class"> <h3><a class="toc-backref" href="#id2">Initializing the Class</a><a class="headerlink" href="#initializing-the-class" title="Permalink to this headline">¶</a></h3> <p>Like most other classes in CodeIgniter, the FTP class is initialized in your controller using the $this-&gt;load-&gt;library function:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">library</span><span class="p">(</span><span class="s1">&#39;ftp&#39;</span><span class="p">);</span> </pre></div> </div> <p>Once loaded, the FTP object will be available using: $this-&gt;ftp</p> </div> <div class="section" id="usage-examples"> <h3><a class="toc-backref" href="#id3">Usage Examples</a><a class="headerlink" href="#usage-examples" title="Permalink to this headline">¶</a></h3> <p>In this example a connection is opened to the FTP server, and a local file is read and uploaded in ASCII mode. The file permissions are set to 755.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">library</span><span class="p">(</span><span class="s1">&#39;ftp&#39;</span><span class="p">);</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;hostname&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;ftp.example.com&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;username&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-username&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;password&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-password&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;debug&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">TRUE</span><span class="p">;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">connect</span><span class="p">(</span><span class="nv">$config</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">upload</span><span class="p">(</span><span class="s1">&#39;/local/path/to/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;ascii&#39;</span><span class="p">,</span> <span class="mo">0775</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">close</span><span class="p">();</span> </pre></div> </div> <p>In this example a list of files is retrieved from the server.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">library</span><span class="p">(</span><span class="s1">&#39;ftp&#39;</span><span class="p">);</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;hostname&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;ftp.example.com&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;username&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-username&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;password&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-password&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;debug&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">TRUE</span><span class="p">;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">connect</span><span class="p">(</span><span class="nv">$config</span><span class="p">);</span> <span class="nv">$list</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">list_files</span><span class="p">(</span><span class="s1">&#39;/public_html/&#39;</span><span class="p">);</span> <span class="nb">print_r</span><span class="p">(</span><span class="nv">$list</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">close</span><span class="p">();</span> </pre></div> </div> <p>In this example a local directory is mirrored on the server.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">library</span><span class="p">(</span><span class="s1">&#39;ftp&#39;</span><span class="p">);</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;hostname&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;ftp.example.com&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;username&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-username&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;password&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-password&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;debug&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">TRUE</span><span class="p">;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">connect</span><span class="p">(</span><span class="nv">$config</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">mirror</span><span class="p">(</span><span class="s1">&#39;/path/to/myfolder/&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/myfolder/&#39;</span><span class="p">);</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">close</span><span class="p">();</span> </pre></div> </div> </div> </div> <div class="section" id="class-reference"> <h2><a class="toc-backref" href="#id4">Class Reference</a><a class="headerlink" href="#class-reference" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="CI_FTP"> <em class="property">class </em><tt class="descname">CI_FTP</tt><a class="headerlink" href="#CI_FTP" title="Permalink to this definition">¶</a></dt> <dd><dl class="method"> <dt id="CI_FTP::connect"> <tt class="descname">connect</tt><big>(</big><span class="optional">[</span><em>$config = array()</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::connect" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$config</strong> (<em>array</em>) &#8211; Connection values</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Connects and logs into to the FTP server. Connection preferences are set by passing an array to the function, or you can store them in a config file.</p> <p>Here is an example showing how you set preferences manually:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">library</span><span class="p">(</span><span class="s1">&#39;ftp&#39;</span><span class="p">);</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;hostname&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;ftp.example.com&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;username&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-username&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;password&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;your-password&#39;</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;port&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">21</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;passive&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">FALSE</span><span class="p">;</span> <span class="nv">$config</span><span class="p">[</span><span class="s1">&#39;debug&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">TRUE</span><span class="p">;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">connect</span><span class="p">(</span><span class="nv">$config</span><span class="p">);</span> </pre></div> </div> <p><strong>Setting FTP Preferences in a Config File</strong></p> <p>If you prefer you can store your FTP preferences in a config file. Simply create a new file called the ftp.php, add the $config array in that file. Then save the file at <em>application/config/ftp.php</em> and it will be used automatically.</p> <p><strong>Available connection options</strong></p> <table border="1" class="docutils"> <colgroup> <col width="13%" /> <col width="14%" /> <col width="73%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Option name</th> <th class="head">Default value</th> <th class="head">Description</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td><strong>hostname</strong></td> <td>n/a</td> <td>FTP hostname (usually something like: ftp.example.com)</td> </tr> <tr class="row-odd"><td><strong>username</strong></td> <td>n/a</td> <td>FTP username</td> </tr> <tr class="row-even"><td><strong>password</strong></td> <td>n/a</td> <td>FTP password</td> </tr> <tr class="row-odd"><td><strong>port</strong></td> <td>21</td> <td>FTP server port number</td> </tr> <tr class="row-even"><td><strong>debug</strong></td> <td>FALSE</td> <td>TRUE/FALSE (boolean): Whether to enable debugging to display error messages</td> </tr> <tr class="row-odd"><td><strong>passive</strong></td> <td>TRUE</td> <td>TRUE/FALSE (boolean): Whether to use passive mode</td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="CI_FTP::upload"> <tt class="descname">upload</tt><big>(</big><em>$locpath</em>, <em>$rempath</em><span class="optional">[</span>, <em>$mode = 'auto'</em><span class="optional">[</span>, <em>$permissions = NULL</em><span class="optional">]</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::upload" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$locpath</strong> (<em>string</em>) &#8211; Local file path</li> <li><strong>$rempath</strong> (<em>string</em>) &#8211; Remote file path</li> <li><strong>$mode</strong> (<em>string</em>) &#8211; FTP mode, defaults to &#8216;auto&#8217; (options are: &#8216;auto&#8217;, &#8216;binary&#8217;, &#8216;ascii&#8217;)</li> <li><strong>$permissions</strong> (<em>int</em>) &#8211; File permissions (octal)</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Uploads a file to your server. You must supply the local path and the remote path, and you can optionally set the mode and permissions. Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">upload</span><span class="p">(</span><span class="s1">&#39;/local/path/to/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;ascii&#39;</span><span class="p">,</span> <span class="mo">0775</span><span class="p">);</span> </pre></div> </div> <p>If &#8216;auto&#8217; mode is used it will base the mode on the file extension of the source file.</p> <p>If set, permissions have to be passed as an octal value.</p> </dd></dl> <dl class="method"> <dt id="CI_FTP::download"> <tt class="descname">download</tt><big>(</big><em>$rempath</em>, <em>$locpath</em><span class="optional">[</span>, <em>$mode = 'auto'</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::download" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$rempath</strong> (<em>string</em>) &#8211; Remote file path</li> <li><strong>$locpath</strong> (<em>string</em>) &#8211; Local file path</li> <li><strong>$mode</strong> (<em>string</em>) &#8211; FTP mode, defaults to &#8216;auto&#8217; (options are: &#8216;auto&#8217;, &#8216;binary&#8217;, &#8216;ascii&#8217;)</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Downloads a file from your server. You must supply the remote path and the local path, and you can optionally set the mode. Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">download</span><span class="p">(</span><span class="s1">&#39;/public_html/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/local/path/to/myfile.html&#39;</span><span class="p">,</span> <span class="s1">&#39;ascii&#39;</span><span class="p">);</span> </pre></div> </div> <p>If &#8216;auto&#8217; mode is used it will base the mode on the file extension of the source file.</p> <p>Returns FALSE if the download does not execute successfully (including if PHP does not have permission to write the local file).</p> </dd></dl> <dl class="method"> <dt id="CI_FTP::rename"> <tt class="descname">rename</tt><big>(</big><em>$old_file</em>, <em>$new_file</em><span class="optional">[</span>, <em>$move = FALSE</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::rename" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$old_file</strong> (<em>string</em>) &#8211; Old file name</li> <li><strong>$new_file</strong> (<em>string</em>) &#8211; New file name</li> <li><strong>$move</strong> (<em>bool</em>) &#8211; Whether a move is being performed</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Permits you to rename a file. Supply the source file name/path and the new file name/path.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="c1">// Renames green.html to blue.html</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">rename</span><span class="p">(</span><span class="s1">&#39;/public_html/foo/green.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/foo/blue.html&#39;</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::move"> <tt class="descname">move</tt><big>(</big><em>$old_file</em>, <em>$new_file</em><big>)</big><a class="headerlink" href="#CI_FTP::move" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$old_file</strong> (<em>string</em>) &#8211; Old file name</li> <li><strong>$new_file</strong> (<em>string</em>) &#8211; New file name</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Lets you move a file. Supply the source and destination paths:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="c1">// Moves blog.html from &quot;joe&quot; to &quot;fred&quot;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">move</span><span class="p">(</span><span class="s1">&#39;/public_html/joe/blog.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/fred/blog.html&#39;</span><span class="p">);</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">If the destination file name is different the file will be renamed.</p> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::delete_file"> <tt class="descname">delete_file</tt><big>(</big><em>$filepath</em><big>)</big><a class="headerlink" href="#CI_FTP::delete_file" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$filepath</strong> (<em>string</em>) &#8211; Path to file to delete</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Lets you delete a file. Supply the source path with the file name.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">delete_file</span><span class="p">(</span><span class="s1">&#39;/public_html/joe/blog.html&#39;</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::delete_dir"> <tt class="descname">delete_dir</tt><big>(</big><em>$filepath</em><big>)</big><a class="headerlink" href="#CI_FTP::delete_dir" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$filepath</strong> (<em>string</em>) &#8211; Path to directory to delete</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Lets you delete a directory and everything it contains. Supply the source path to the directory with a trailing slash.</p> <div class="admonition important"> <p class="first admonition-title">Important</p> <p class="last">Be VERY careful with this method! It will recursively delete <strong>everything</strong> within the supplied path, including sub-folders and all files. Make absolutely sure your path is correct. Try using <tt class="docutils literal"><span class="pre">list_files()</span></tt> first to verify that your path is correct.</p> </div> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">delete_dir</span><span class="p">(</span><span class="s1">&#39;/public_html/path/to/folder/&#39;</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::list_files"> <tt class="descname">list_files</tt><big>(</big><span class="optional">[</span><em>$path = '.'</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::list_files" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$path</strong> (<em>string</em>) &#8211; Directory path</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">An array list of files or FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">array</p> </td> </tr> </tbody> </table> <p>Permits you to retrieve a list of files on your server returned as an array. You must supply the path to the desired directory.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$list</span> <span class="o">=</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">list_files</span><span class="p">(</span><span class="s1">&#39;/public_html/&#39;</span><span class="p">);</span> <span class="nb">print_r</span><span class="p">(</span><span class="nv">$list</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::mirror"> <tt class="descname">mirror</tt><big>(</big><em>$locpath</em>, <em>$rempath</em><big>)</big><a class="headerlink" href="#CI_FTP::mirror" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$locpath</strong> (<em>string</em>) &#8211; Local path</li> <li><strong>$rempath</strong> (<em>string</em>) &#8211; Remote path</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Recursively reads a local folder and everything it contains (including sub-folders) and creates a mirror via FTP based on it. Whatever the directory structure of the original file path will be recreated on the server. You must supply a source path and a destination path:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">mirror</span><span class="p">(</span><span class="s1">&#39;/path/to/myfolder/&#39;</span><span class="p">,</span> <span class="s1">&#39;/public_html/myfolder/&#39;</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::mkdir"> <tt class="descname">mkdir</tt><big>(</big><em>$path</em><span class="optional">[</span>, <em>$permissions = NULL</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::mkdir" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$path</strong> (<em>string</em>) &#8211; Path to directory to create</li> <li><strong>$permissions</strong> (<em>int</em>) &#8211; Permissions (octal)</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Lets you create a directory on your server. Supply the path ending in the folder name you wish to create, with a trailing slash.</p> <p>Permissions can be set by passing an octal value in the second parameter.</p> <div class="highlight-ci"><div class="highlight"><pre><span class="c1">// Creates a folder named &quot;bar&quot;</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">mkdir</span><span class="p">(</span><span class="s1">&#39;/public_html/foo/bar/&#39;</span><span class="p">,</span> <span class="mo">0755</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::chmod"> <tt class="descname">chmod</tt><big>(</big><em>$path</em>, <em>$perm</em><big>)</big><a class="headerlink" href="#CI_FTP::chmod" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$path</strong> (<em>string</em>) &#8211; Path to alter permissions for</li> <li><strong>$perm</strong> (<em>int</em>) &#8211; Permissions (octal)</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Permits you to set file permissions. Supply the path to the file or directory you wish to alter permissions on:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="c1">// Chmod &quot;bar&quot; to 755</span> <span class="nv">$this</span><span class="o">-&gt;</span><span class="na">ftp</span><span class="o">-&gt;</span><span class="na">chmod</span><span class="p">(</span><span class="s1">&#39;/public_html/foo/bar/&#39;</span><span class="p">,</span> <span class="mo">0755</span><span class="p">);</span> </pre></div> </div> </dd></dl> <dl class="method"> <dt id="CI_FTP::changedir"> <tt class="descname">changedir</tt><big>(</big><em>$path</em><span class="optional">[</span>, <em>$suppress_debug = FALSE</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#CI_FTP::changedir" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$path</strong> (<em>string</em>) &#8211; Directory path</li> <li><strong>$suppress_debug</strong> (<em>bool</em>) &#8211; Whether to turn off debug messages for this command</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">TRUE on success, FALSE on failure</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p> </td> </tr> </tbody> </table> <p>Changes the current working directory to the specified path.</p> <p>The <tt class="docutils literal"><span class="pre">$suppress_debug</span></tt> parameter is useful in case you want to use this method as an <tt class="docutils literal"><span class="pre">is_dir()</span></tt> alternative for FTP.</p> </dd></dl> <dl class="method"> <dt id="CI_FTP::close"> <tt class="descname">close</tt><big>(</big><big>)</big><a class="headerlink" href="#CI_FTP::close" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">TRUE on success, FALSE on failure</td> </tr> <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">bool</td> </tr> </tbody> </table> <p>Closes the connection to your server. It&#8217;s recommended that you use this when you are finished uploading.</p> </dd></dl> </dd></dl> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="image_lib.html" class="btn btn-neutral float-right" title="Image Manipulation Class">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="form_validation.html" class="btn btn-neutral" title="Form Validation"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2014 - 2015, British Columbia Institute of Technology. Last updated on Mar 30, 2015. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'3.0.0', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
ligles/beta
user_guide/libraries/ftp.html
HTML
mit
50,286
/* $Id: aes_helper.c 220 2010-06-09 09:21:50Z tp $ */ /* * AES tables. This file is not meant to be compiled by itself; it * is included by some hash function implementations. It contains * the precomputed tables and helper macros for evaluating an AES * round, optionally with a final XOR with a subkey. * * By default, this file defines the tables and macros for little-endian * processing (i.e. it is assumed that the input bytes have been read * from memory and assembled with the little-endian convention). If * the 'AES_BIG_ENDIAN' macro is defined (to a non-zero integer value) * when this file is included, then the tables and macros for big-endian * processing are defined instead. The big-endian tables and macros have * names distinct from the little-endian tables and macros, hence it is * possible to have both simultaneously, by including this file twice * (with and without the AES_BIG_ENDIAN macro). * * ==========================(LICENSE BEGIN)============================ * * Copyright (c) 2007-2010 Projet RNRT SAPHIR * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * ===========================(LICENSE END)============================= * * @author Thomas Pornin <thomas.pornin@cryptolog.com> */ #include "sph_types.h" #ifdef __cplusplus extern "C"{ #endif #if AES_BIG_ENDIAN #define AESx(x) ( ((SPH_C32(x) >> 24) & SPH_C32(0x000000FF)) \ | ((SPH_C32(x) >> 8) & SPH_C32(0x0000FF00)) \ | ((SPH_C32(x) << 8) & SPH_C32(0x00FF0000)) \ | ((SPH_C32(x) << 24) & SPH_C32(0xFF000000))) #define AES0 AES0_BE #define AES1 AES1_BE #define AES2 AES2_BE #define AES3 AES3_BE #define AES_ROUND_BE(X0, X1, X2, X3, K0, K1, K2, K3, Y0, Y1, Y2, Y3) do { \ (Y0) = AES0[((X0) >> 24) & 0xFF] \ ^ AES1[((X1) >> 16) & 0xFF] \ ^ AES2[((X2) >> 8) & 0xFF] \ ^ AES3[(X3) & 0xFF] ^ (K0); \ (Y1) = AES0[((X1) >> 24) & 0xFF] \ ^ AES1[((X2) >> 16) & 0xFF] \ ^ AES2[((X3) >> 8) & 0xFF] \ ^ AES3[(X0) & 0xFF] ^ (K1); \ (Y2) = AES0[((X2) >> 24) & 0xFF] \ ^ AES1[((X3) >> 16) & 0xFF] \ ^ AES2[((X0) >> 8) & 0xFF] \ ^ AES3[(X1) & 0xFF] ^ (K2); \ (Y3) = AES0[((X3) >> 24) & 0xFF] \ ^ AES1[((X0) >> 16) & 0xFF] \ ^ AES2[((X1) >> 8) & 0xFF] \ ^ AES3[(X2) & 0xFF] ^ (K3); \ } while (0) #define AES_ROUND_NOKEY_BE(X0, X1, X2, X3, Y0, Y1, Y2, Y3) \ AES_ROUND_BE(X0, X1, X2, X3, 0, 0, 0, 0, Y0, Y1, Y2, Y3) #else #define AESx(x) SPH_C32(x) #define AES0 AES0_LE #define AES1 AES1_LE #define AES2 AES2_LE #define AES3 AES3_LE #define AES_ROUND_LE(X0, X1, X2, X3, K0, K1, K2, K3, Y0, Y1, Y2, Y3) do { \ (Y0) = AES0[(X0) & 0xFF] \ ^ AES1[((X1) >> 8) & 0xFF] \ ^ AES2[((X2) >> 16) & 0xFF] \ ^ AES3[((X3) >> 24) & 0xFF] ^ (K0); \ (Y1) = AES0[(X1) & 0xFF] \ ^ AES1[((X2) >> 8) & 0xFF] \ ^ AES2[((X3) >> 16) & 0xFF] \ ^ AES3[((X0) >> 24) & 0xFF] ^ (K1); \ (Y2) = AES0[(X2) & 0xFF] \ ^ AES1[((X3) >> 8) & 0xFF] \ ^ AES2[((X0) >> 16) & 0xFF] \ ^ AES3[((X1) >> 24) & 0xFF] ^ (K2); \ (Y3) = AES0[(X3) & 0xFF] \ ^ AES1[((X0) >> 8) & 0xFF] \ ^ AES2[((X1) >> 16) & 0xFF] \ ^ AES3[((X2) >> 24) & 0xFF] ^ (K3); \ } while (0) #define AES_ROUND_NOKEY_LE(X0, X1, X2, X3, Y0, Y1, Y2, Y3) \ AES_ROUND_LE(X0, X1, X2, X3, 0, 0, 0, 0, Y0, Y1, Y2, Y3) #endif /* * The AES*[] tables allow us to perform a fast evaluation of an AES * round; table AESi[] combines SubBytes for a byte at row i, and * MixColumns for the column where that byte goes after ShiftRows. */ static const sph_u32 AES0[256] = { AESx(0xA56363C6), AESx(0x847C7CF8), AESx(0x997777EE), AESx(0x8D7B7BF6), AESx(0x0DF2F2FF), AESx(0xBD6B6BD6), AESx(0xB16F6FDE), AESx(0x54C5C591), AESx(0x50303060), AESx(0x03010102), AESx(0xA96767CE), AESx(0x7D2B2B56), AESx(0x19FEFEE7), AESx(0x62D7D7B5), AESx(0xE6ABAB4D), AESx(0x9A7676EC), AESx(0x45CACA8F), AESx(0x9D82821F), AESx(0x40C9C989), AESx(0x877D7DFA), AESx(0x15FAFAEF), AESx(0xEB5959B2), AESx(0xC947478E), AESx(0x0BF0F0FB), AESx(0xECADAD41), AESx(0x67D4D4B3), AESx(0xFDA2A25F), AESx(0xEAAFAF45), AESx(0xBF9C9C23), AESx(0xF7A4A453), AESx(0x967272E4), AESx(0x5BC0C09B), AESx(0xC2B7B775), AESx(0x1CFDFDE1), AESx(0xAE93933D), AESx(0x6A26264C), AESx(0x5A36366C), AESx(0x413F3F7E), AESx(0x02F7F7F5), AESx(0x4FCCCC83), AESx(0x5C343468), AESx(0xF4A5A551), AESx(0x34E5E5D1), AESx(0x08F1F1F9), AESx(0x937171E2), AESx(0x73D8D8AB), AESx(0x53313162), AESx(0x3F15152A), AESx(0x0C040408), AESx(0x52C7C795), AESx(0x65232346), AESx(0x5EC3C39D), AESx(0x28181830), AESx(0xA1969637), AESx(0x0F05050A), AESx(0xB59A9A2F), AESx(0x0907070E), AESx(0x36121224), AESx(0x9B80801B), AESx(0x3DE2E2DF), AESx(0x26EBEBCD), AESx(0x6927274E), AESx(0xCDB2B27F), AESx(0x9F7575EA), AESx(0x1B090912), AESx(0x9E83831D), AESx(0x742C2C58), AESx(0x2E1A1A34), AESx(0x2D1B1B36), AESx(0xB26E6EDC), AESx(0xEE5A5AB4), AESx(0xFBA0A05B), AESx(0xF65252A4), AESx(0x4D3B3B76), AESx(0x61D6D6B7), AESx(0xCEB3B37D), AESx(0x7B292952), AESx(0x3EE3E3DD), AESx(0x712F2F5E), AESx(0x97848413), AESx(0xF55353A6), AESx(0x68D1D1B9), AESx(0x00000000), AESx(0x2CEDEDC1), AESx(0x60202040), AESx(0x1FFCFCE3), AESx(0xC8B1B179), AESx(0xED5B5BB6), AESx(0xBE6A6AD4), AESx(0x46CBCB8D), AESx(0xD9BEBE67), AESx(0x4B393972), AESx(0xDE4A4A94), AESx(0xD44C4C98), AESx(0xE85858B0), AESx(0x4ACFCF85), AESx(0x6BD0D0BB), AESx(0x2AEFEFC5), AESx(0xE5AAAA4F), AESx(0x16FBFBED), AESx(0xC5434386), AESx(0xD74D4D9A), AESx(0x55333366), AESx(0x94858511), AESx(0xCF45458A), AESx(0x10F9F9E9), AESx(0x06020204), AESx(0x817F7FFE), AESx(0xF05050A0), AESx(0x443C3C78), AESx(0xBA9F9F25), AESx(0xE3A8A84B), AESx(0xF35151A2), AESx(0xFEA3A35D), AESx(0xC0404080), AESx(0x8A8F8F05), AESx(0xAD92923F), AESx(0xBC9D9D21), AESx(0x48383870), AESx(0x04F5F5F1), AESx(0xDFBCBC63), AESx(0xC1B6B677), AESx(0x75DADAAF), AESx(0x63212142), AESx(0x30101020), AESx(0x1AFFFFE5), AESx(0x0EF3F3FD), AESx(0x6DD2D2BF), AESx(0x4CCDCD81), AESx(0x140C0C18), AESx(0x35131326), AESx(0x2FECECC3), AESx(0xE15F5FBE), AESx(0xA2979735), AESx(0xCC444488), AESx(0x3917172E), AESx(0x57C4C493), AESx(0xF2A7A755), AESx(0x827E7EFC), AESx(0x473D3D7A), AESx(0xAC6464C8), AESx(0xE75D5DBA), AESx(0x2B191932), AESx(0x957373E6), AESx(0xA06060C0), AESx(0x98818119), AESx(0xD14F4F9E), AESx(0x7FDCDCA3), AESx(0x66222244), AESx(0x7E2A2A54), AESx(0xAB90903B), AESx(0x8388880B), AESx(0xCA46468C), AESx(0x29EEEEC7), AESx(0xD3B8B86B), AESx(0x3C141428), AESx(0x79DEDEA7), AESx(0xE25E5EBC), AESx(0x1D0B0B16), AESx(0x76DBDBAD), AESx(0x3BE0E0DB), AESx(0x56323264), AESx(0x4E3A3A74), AESx(0x1E0A0A14), AESx(0xDB494992), AESx(0x0A06060C), AESx(0x6C242448), AESx(0xE45C5CB8), AESx(0x5DC2C29F), AESx(0x6ED3D3BD), AESx(0xEFACAC43), AESx(0xA66262C4), AESx(0xA8919139), AESx(0xA4959531), AESx(0x37E4E4D3), AESx(0x8B7979F2), AESx(0x32E7E7D5), AESx(0x43C8C88B), AESx(0x5937376E), AESx(0xB76D6DDA), AESx(0x8C8D8D01), AESx(0x64D5D5B1), AESx(0xD24E4E9C), AESx(0xE0A9A949), AESx(0xB46C6CD8), AESx(0xFA5656AC), AESx(0x07F4F4F3), AESx(0x25EAEACF), AESx(0xAF6565CA), AESx(0x8E7A7AF4), AESx(0xE9AEAE47), AESx(0x18080810), AESx(0xD5BABA6F), AESx(0x887878F0), AESx(0x6F25254A), AESx(0x722E2E5C), AESx(0x241C1C38), AESx(0xF1A6A657), AESx(0xC7B4B473), AESx(0x51C6C697), AESx(0x23E8E8CB), AESx(0x7CDDDDA1), AESx(0x9C7474E8), AESx(0x211F1F3E), AESx(0xDD4B4B96), AESx(0xDCBDBD61), AESx(0x868B8B0D), AESx(0x858A8A0F), AESx(0x907070E0), AESx(0x423E3E7C), AESx(0xC4B5B571), AESx(0xAA6666CC), AESx(0xD8484890), AESx(0x05030306), AESx(0x01F6F6F7), AESx(0x120E0E1C), AESx(0xA36161C2), AESx(0x5F35356A), AESx(0xF95757AE), AESx(0xD0B9B969), AESx(0x91868617), AESx(0x58C1C199), AESx(0x271D1D3A), AESx(0xB99E9E27), AESx(0x38E1E1D9), AESx(0x13F8F8EB), AESx(0xB398982B), AESx(0x33111122), AESx(0xBB6969D2), AESx(0x70D9D9A9), AESx(0x898E8E07), AESx(0xA7949433), AESx(0xB69B9B2D), AESx(0x221E1E3C), AESx(0x92878715), AESx(0x20E9E9C9), AESx(0x49CECE87), AESx(0xFF5555AA), AESx(0x78282850), AESx(0x7ADFDFA5), AESx(0x8F8C8C03), AESx(0xF8A1A159), AESx(0x80898909), AESx(0x170D0D1A), AESx(0xDABFBF65), AESx(0x31E6E6D7), AESx(0xC6424284), AESx(0xB86868D0), AESx(0xC3414182), AESx(0xB0999929), AESx(0x772D2D5A), AESx(0x110F0F1E), AESx(0xCBB0B07B), AESx(0xFC5454A8), AESx(0xD6BBBB6D), AESx(0x3A16162C) }; static const sph_u32 AES1[256] = { AESx(0x6363C6A5), AESx(0x7C7CF884), AESx(0x7777EE99), AESx(0x7B7BF68D), AESx(0xF2F2FF0D), AESx(0x6B6BD6BD), AESx(0x6F6FDEB1), AESx(0xC5C59154), AESx(0x30306050), AESx(0x01010203), AESx(0x6767CEA9), AESx(0x2B2B567D), AESx(0xFEFEE719), AESx(0xD7D7B562), AESx(0xABAB4DE6), AESx(0x7676EC9A), AESx(0xCACA8F45), AESx(0x82821F9D), AESx(0xC9C98940), AESx(0x7D7DFA87), AESx(0xFAFAEF15), AESx(0x5959B2EB), AESx(0x47478EC9), AESx(0xF0F0FB0B), AESx(0xADAD41EC), AESx(0xD4D4B367), AESx(0xA2A25FFD), AESx(0xAFAF45EA), AESx(0x9C9C23BF), AESx(0xA4A453F7), AESx(0x7272E496), AESx(0xC0C09B5B), AESx(0xB7B775C2), AESx(0xFDFDE11C), AESx(0x93933DAE), AESx(0x26264C6A), AESx(0x36366C5A), AESx(0x3F3F7E41), AESx(0xF7F7F502), AESx(0xCCCC834F), AESx(0x3434685C), AESx(0xA5A551F4), AESx(0xE5E5D134), AESx(0xF1F1F908), AESx(0x7171E293), AESx(0xD8D8AB73), AESx(0x31316253), AESx(0x15152A3F), AESx(0x0404080C), AESx(0xC7C79552), AESx(0x23234665), AESx(0xC3C39D5E), AESx(0x18183028), AESx(0x969637A1), AESx(0x05050A0F), AESx(0x9A9A2FB5), AESx(0x07070E09), AESx(0x12122436), AESx(0x80801B9B), AESx(0xE2E2DF3D), AESx(0xEBEBCD26), AESx(0x27274E69), AESx(0xB2B27FCD), AESx(0x7575EA9F), AESx(0x0909121B), AESx(0x83831D9E), AESx(0x2C2C5874), AESx(0x1A1A342E), AESx(0x1B1B362D), AESx(0x6E6EDCB2), AESx(0x5A5AB4EE), AESx(0xA0A05BFB), AESx(0x5252A4F6), AESx(0x3B3B764D), AESx(0xD6D6B761), AESx(0xB3B37DCE), AESx(0x2929527B), AESx(0xE3E3DD3E), AESx(0x2F2F5E71), AESx(0x84841397), AESx(0x5353A6F5), AESx(0xD1D1B968), AESx(0x00000000), AESx(0xEDEDC12C), AESx(0x20204060), AESx(0xFCFCE31F), AESx(0xB1B179C8), AESx(0x5B5BB6ED), AESx(0x6A6AD4BE), AESx(0xCBCB8D46), AESx(0xBEBE67D9), AESx(0x3939724B), AESx(0x4A4A94DE), AESx(0x4C4C98D4), AESx(0x5858B0E8), AESx(0xCFCF854A), AESx(0xD0D0BB6B), AESx(0xEFEFC52A), AESx(0xAAAA4FE5), AESx(0xFBFBED16), AESx(0x434386C5), AESx(0x4D4D9AD7), AESx(0x33336655), AESx(0x85851194), AESx(0x45458ACF), AESx(0xF9F9E910), AESx(0x02020406), AESx(0x7F7FFE81), AESx(0x5050A0F0), AESx(0x3C3C7844), AESx(0x9F9F25BA), AESx(0xA8A84BE3), AESx(0x5151A2F3), AESx(0xA3A35DFE), AESx(0x404080C0), AESx(0x8F8F058A), AESx(0x92923FAD), AESx(0x9D9D21BC), AESx(0x38387048), AESx(0xF5F5F104), AESx(0xBCBC63DF), AESx(0xB6B677C1), AESx(0xDADAAF75), AESx(0x21214263), AESx(0x10102030), AESx(0xFFFFE51A), AESx(0xF3F3FD0E), AESx(0xD2D2BF6D), AESx(0xCDCD814C), AESx(0x0C0C1814), AESx(0x13132635), AESx(0xECECC32F), AESx(0x5F5FBEE1), AESx(0x979735A2), AESx(0x444488CC), AESx(0x17172E39), AESx(0xC4C49357), AESx(0xA7A755F2), AESx(0x7E7EFC82), AESx(0x3D3D7A47), AESx(0x6464C8AC), AESx(0x5D5DBAE7), AESx(0x1919322B), AESx(0x7373E695), AESx(0x6060C0A0), AESx(0x81811998), AESx(0x4F4F9ED1), AESx(0xDCDCA37F), AESx(0x22224466), AESx(0x2A2A547E), AESx(0x90903BAB), AESx(0x88880B83), AESx(0x46468CCA), AESx(0xEEEEC729), AESx(0xB8B86BD3), AESx(0x1414283C), AESx(0xDEDEA779), AESx(0x5E5EBCE2), AESx(0x0B0B161D), AESx(0xDBDBAD76), AESx(0xE0E0DB3B), AESx(0x32326456), AESx(0x3A3A744E), AESx(0x0A0A141E), AESx(0x494992DB), AESx(0x06060C0A), AESx(0x2424486C), AESx(0x5C5CB8E4), AESx(0xC2C29F5D), AESx(0xD3D3BD6E), AESx(0xACAC43EF), AESx(0x6262C4A6), AESx(0x919139A8), AESx(0x959531A4), AESx(0xE4E4D337), AESx(0x7979F28B), AESx(0xE7E7D532), AESx(0xC8C88B43), AESx(0x37376E59), AESx(0x6D6DDAB7), AESx(0x8D8D018C), AESx(0xD5D5B164), AESx(0x4E4E9CD2), AESx(0xA9A949E0), AESx(0x6C6CD8B4), AESx(0x5656ACFA), AESx(0xF4F4F307), AESx(0xEAEACF25), AESx(0x6565CAAF), AESx(0x7A7AF48E), AESx(0xAEAE47E9), AESx(0x08081018), AESx(0xBABA6FD5), AESx(0x7878F088), AESx(0x25254A6F), AESx(0x2E2E5C72), AESx(0x1C1C3824), AESx(0xA6A657F1), AESx(0xB4B473C7), AESx(0xC6C69751), AESx(0xE8E8CB23), AESx(0xDDDDA17C), AESx(0x7474E89C), AESx(0x1F1F3E21), AESx(0x4B4B96DD), AESx(0xBDBD61DC), AESx(0x8B8B0D86), AESx(0x8A8A0F85), AESx(0x7070E090), AESx(0x3E3E7C42), AESx(0xB5B571C4), AESx(0x6666CCAA), AESx(0x484890D8), AESx(0x03030605), AESx(0xF6F6F701), AESx(0x0E0E1C12), AESx(0x6161C2A3), AESx(0x35356A5F), AESx(0x5757AEF9), AESx(0xB9B969D0), AESx(0x86861791), AESx(0xC1C19958), AESx(0x1D1D3A27), AESx(0x9E9E27B9), AESx(0xE1E1D938), AESx(0xF8F8EB13), AESx(0x98982BB3), AESx(0x11112233), AESx(0x6969D2BB), AESx(0xD9D9A970), AESx(0x8E8E0789), AESx(0x949433A7), AESx(0x9B9B2DB6), AESx(0x1E1E3C22), AESx(0x87871592), AESx(0xE9E9C920), AESx(0xCECE8749), AESx(0x5555AAFF), AESx(0x28285078), AESx(0xDFDFA57A), AESx(0x8C8C038F), AESx(0xA1A159F8), AESx(0x89890980), AESx(0x0D0D1A17), AESx(0xBFBF65DA), AESx(0xE6E6D731), AESx(0x424284C6), AESx(0x6868D0B8), AESx(0x414182C3), AESx(0x999929B0), AESx(0x2D2D5A77), AESx(0x0F0F1E11), AESx(0xB0B07BCB), AESx(0x5454A8FC), AESx(0xBBBB6DD6), AESx(0x16162C3A) }; static const sph_u32 AES2[256] = { AESx(0x63C6A563), AESx(0x7CF8847C), AESx(0x77EE9977), AESx(0x7BF68D7B), AESx(0xF2FF0DF2), AESx(0x6BD6BD6B), AESx(0x6FDEB16F), AESx(0xC59154C5), AESx(0x30605030), AESx(0x01020301), AESx(0x67CEA967), AESx(0x2B567D2B), AESx(0xFEE719FE), AESx(0xD7B562D7), AESx(0xAB4DE6AB), AESx(0x76EC9A76), AESx(0xCA8F45CA), AESx(0x821F9D82), AESx(0xC98940C9), AESx(0x7DFA877D), AESx(0xFAEF15FA), AESx(0x59B2EB59), AESx(0x478EC947), AESx(0xF0FB0BF0), AESx(0xAD41ECAD), AESx(0xD4B367D4), AESx(0xA25FFDA2), AESx(0xAF45EAAF), AESx(0x9C23BF9C), AESx(0xA453F7A4), AESx(0x72E49672), AESx(0xC09B5BC0), AESx(0xB775C2B7), AESx(0xFDE11CFD), AESx(0x933DAE93), AESx(0x264C6A26), AESx(0x366C5A36), AESx(0x3F7E413F), AESx(0xF7F502F7), AESx(0xCC834FCC), AESx(0x34685C34), AESx(0xA551F4A5), AESx(0xE5D134E5), AESx(0xF1F908F1), AESx(0x71E29371), AESx(0xD8AB73D8), AESx(0x31625331), AESx(0x152A3F15), AESx(0x04080C04), AESx(0xC79552C7), AESx(0x23466523), AESx(0xC39D5EC3), AESx(0x18302818), AESx(0x9637A196), AESx(0x050A0F05), AESx(0x9A2FB59A), AESx(0x070E0907), AESx(0x12243612), AESx(0x801B9B80), AESx(0xE2DF3DE2), AESx(0xEBCD26EB), AESx(0x274E6927), AESx(0xB27FCDB2), AESx(0x75EA9F75), AESx(0x09121B09), AESx(0x831D9E83), AESx(0x2C58742C), AESx(0x1A342E1A), AESx(0x1B362D1B), AESx(0x6EDCB26E), AESx(0x5AB4EE5A), AESx(0xA05BFBA0), AESx(0x52A4F652), AESx(0x3B764D3B), AESx(0xD6B761D6), AESx(0xB37DCEB3), AESx(0x29527B29), AESx(0xE3DD3EE3), AESx(0x2F5E712F), AESx(0x84139784), AESx(0x53A6F553), AESx(0xD1B968D1), AESx(0x00000000), AESx(0xEDC12CED), AESx(0x20406020), AESx(0xFCE31FFC), AESx(0xB179C8B1), AESx(0x5BB6ED5B), AESx(0x6AD4BE6A), AESx(0xCB8D46CB), AESx(0xBE67D9BE), AESx(0x39724B39), AESx(0x4A94DE4A), AESx(0x4C98D44C), AESx(0x58B0E858), AESx(0xCF854ACF), AESx(0xD0BB6BD0), AESx(0xEFC52AEF), AESx(0xAA4FE5AA), AESx(0xFBED16FB), AESx(0x4386C543), AESx(0x4D9AD74D), AESx(0x33665533), AESx(0x85119485), AESx(0x458ACF45), AESx(0xF9E910F9), AESx(0x02040602), AESx(0x7FFE817F), AESx(0x50A0F050), AESx(0x3C78443C), AESx(0x9F25BA9F), AESx(0xA84BE3A8), AESx(0x51A2F351), AESx(0xA35DFEA3), AESx(0x4080C040), AESx(0x8F058A8F), AESx(0x923FAD92), AESx(0x9D21BC9D), AESx(0x38704838), AESx(0xF5F104F5), AESx(0xBC63DFBC), AESx(0xB677C1B6), AESx(0xDAAF75DA), AESx(0x21426321), AESx(0x10203010), AESx(0xFFE51AFF), AESx(0xF3FD0EF3), AESx(0xD2BF6DD2), AESx(0xCD814CCD), AESx(0x0C18140C), AESx(0x13263513), AESx(0xECC32FEC), AESx(0x5FBEE15F), AESx(0x9735A297), AESx(0x4488CC44), AESx(0x172E3917), AESx(0xC49357C4), AESx(0xA755F2A7), AESx(0x7EFC827E), AESx(0x3D7A473D), AESx(0x64C8AC64), AESx(0x5DBAE75D), AESx(0x19322B19), AESx(0x73E69573), AESx(0x60C0A060), AESx(0x81199881), AESx(0x4F9ED14F), AESx(0xDCA37FDC), AESx(0x22446622), AESx(0x2A547E2A), AESx(0x903BAB90), AESx(0x880B8388), AESx(0x468CCA46), AESx(0xEEC729EE), AESx(0xB86BD3B8), AESx(0x14283C14), AESx(0xDEA779DE), AESx(0x5EBCE25E), AESx(0x0B161D0B), AESx(0xDBAD76DB), AESx(0xE0DB3BE0), AESx(0x32645632), AESx(0x3A744E3A), AESx(0x0A141E0A), AESx(0x4992DB49), AESx(0x060C0A06), AESx(0x24486C24), AESx(0x5CB8E45C), AESx(0xC29F5DC2), AESx(0xD3BD6ED3), AESx(0xAC43EFAC), AESx(0x62C4A662), AESx(0x9139A891), AESx(0x9531A495), AESx(0xE4D337E4), AESx(0x79F28B79), AESx(0xE7D532E7), AESx(0xC88B43C8), AESx(0x376E5937), AESx(0x6DDAB76D), AESx(0x8D018C8D), AESx(0xD5B164D5), AESx(0x4E9CD24E), AESx(0xA949E0A9), AESx(0x6CD8B46C), AESx(0x56ACFA56), AESx(0xF4F307F4), AESx(0xEACF25EA), AESx(0x65CAAF65), AESx(0x7AF48E7A), AESx(0xAE47E9AE), AESx(0x08101808), AESx(0xBA6FD5BA), AESx(0x78F08878), AESx(0x254A6F25), AESx(0x2E5C722E), AESx(0x1C38241C), AESx(0xA657F1A6), AESx(0xB473C7B4), AESx(0xC69751C6), AESx(0xE8CB23E8), AESx(0xDDA17CDD), AESx(0x74E89C74), AESx(0x1F3E211F), AESx(0x4B96DD4B), AESx(0xBD61DCBD), AESx(0x8B0D868B), AESx(0x8A0F858A), AESx(0x70E09070), AESx(0x3E7C423E), AESx(0xB571C4B5), AESx(0x66CCAA66), AESx(0x4890D848), AESx(0x03060503), AESx(0xF6F701F6), AESx(0x0E1C120E), AESx(0x61C2A361), AESx(0x356A5F35), AESx(0x57AEF957), AESx(0xB969D0B9), AESx(0x86179186), AESx(0xC19958C1), AESx(0x1D3A271D), AESx(0x9E27B99E), AESx(0xE1D938E1), AESx(0xF8EB13F8), AESx(0x982BB398), AESx(0x11223311), AESx(0x69D2BB69), AESx(0xD9A970D9), AESx(0x8E07898E), AESx(0x9433A794), AESx(0x9B2DB69B), AESx(0x1E3C221E), AESx(0x87159287), AESx(0xE9C920E9), AESx(0xCE8749CE), AESx(0x55AAFF55), AESx(0x28507828), AESx(0xDFA57ADF), AESx(0x8C038F8C), AESx(0xA159F8A1), AESx(0x89098089), AESx(0x0D1A170D), AESx(0xBF65DABF), AESx(0xE6D731E6), AESx(0x4284C642), AESx(0x68D0B868), AESx(0x4182C341), AESx(0x9929B099), AESx(0x2D5A772D), AESx(0x0F1E110F), AESx(0xB07BCBB0), AESx(0x54A8FC54), AESx(0xBB6DD6BB), AESx(0x162C3A16) }; static const sph_u32 AES3[256] = { AESx(0xC6A56363), AESx(0xF8847C7C), AESx(0xEE997777), AESx(0xF68D7B7B), AESx(0xFF0DF2F2), AESx(0xD6BD6B6B), AESx(0xDEB16F6F), AESx(0x9154C5C5), AESx(0x60503030), AESx(0x02030101), AESx(0xCEA96767), AESx(0x567D2B2B), AESx(0xE719FEFE), AESx(0xB562D7D7), AESx(0x4DE6ABAB), AESx(0xEC9A7676), AESx(0x8F45CACA), AESx(0x1F9D8282), AESx(0x8940C9C9), AESx(0xFA877D7D), AESx(0xEF15FAFA), AESx(0xB2EB5959), AESx(0x8EC94747), AESx(0xFB0BF0F0), AESx(0x41ECADAD), AESx(0xB367D4D4), AESx(0x5FFDA2A2), AESx(0x45EAAFAF), AESx(0x23BF9C9C), AESx(0x53F7A4A4), AESx(0xE4967272), AESx(0x9B5BC0C0), AESx(0x75C2B7B7), AESx(0xE11CFDFD), AESx(0x3DAE9393), AESx(0x4C6A2626), AESx(0x6C5A3636), AESx(0x7E413F3F), AESx(0xF502F7F7), AESx(0x834FCCCC), AESx(0x685C3434), AESx(0x51F4A5A5), AESx(0xD134E5E5), AESx(0xF908F1F1), AESx(0xE2937171), AESx(0xAB73D8D8), AESx(0x62533131), AESx(0x2A3F1515), AESx(0x080C0404), AESx(0x9552C7C7), AESx(0x46652323), AESx(0x9D5EC3C3), AESx(0x30281818), AESx(0x37A19696), AESx(0x0A0F0505), AESx(0x2FB59A9A), AESx(0x0E090707), AESx(0x24361212), AESx(0x1B9B8080), AESx(0xDF3DE2E2), AESx(0xCD26EBEB), AESx(0x4E692727), AESx(0x7FCDB2B2), AESx(0xEA9F7575), AESx(0x121B0909), AESx(0x1D9E8383), AESx(0x58742C2C), AESx(0x342E1A1A), AESx(0x362D1B1B), AESx(0xDCB26E6E), AESx(0xB4EE5A5A), AESx(0x5BFBA0A0), AESx(0xA4F65252), AESx(0x764D3B3B), AESx(0xB761D6D6), AESx(0x7DCEB3B3), AESx(0x527B2929), AESx(0xDD3EE3E3), AESx(0x5E712F2F), AESx(0x13978484), AESx(0xA6F55353), AESx(0xB968D1D1), AESx(0x00000000), AESx(0xC12CEDED), AESx(0x40602020), AESx(0xE31FFCFC), AESx(0x79C8B1B1), AESx(0xB6ED5B5B), AESx(0xD4BE6A6A), AESx(0x8D46CBCB), AESx(0x67D9BEBE), AESx(0x724B3939), AESx(0x94DE4A4A), AESx(0x98D44C4C), AESx(0xB0E85858), AESx(0x854ACFCF), AESx(0xBB6BD0D0), AESx(0xC52AEFEF), AESx(0x4FE5AAAA), AESx(0xED16FBFB), AESx(0x86C54343), AESx(0x9AD74D4D), AESx(0x66553333), AESx(0x11948585), AESx(0x8ACF4545), AESx(0xE910F9F9), AESx(0x04060202), AESx(0xFE817F7F), AESx(0xA0F05050), AESx(0x78443C3C), AESx(0x25BA9F9F), AESx(0x4BE3A8A8), AESx(0xA2F35151), AESx(0x5DFEA3A3), AESx(0x80C04040), AESx(0x058A8F8F), AESx(0x3FAD9292), AESx(0x21BC9D9D), AESx(0x70483838), AESx(0xF104F5F5), AESx(0x63DFBCBC), AESx(0x77C1B6B6), AESx(0xAF75DADA), AESx(0x42632121), AESx(0x20301010), AESx(0xE51AFFFF), AESx(0xFD0EF3F3), AESx(0xBF6DD2D2), AESx(0x814CCDCD), AESx(0x18140C0C), AESx(0x26351313), AESx(0xC32FECEC), AESx(0xBEE15F5F), AESx(0x35A29797), AESx(0x88CC4444), AESx(0x2E391717), AESx(0x9357C4C4), AESx(0x55F2A7A7), AESx(0xFC827E7E), AESx(0x7A473D3D), AESx(0xC8AC6464), AESx(0xBAE75D5D), AESx(0x322B1919), AESx(0xE6957373), AESx(0xC0A06060), AESx(0x19988181), AESx(0x9ED14F4F), AESx(0xA37FDCDC), AESx(0x44662222), AESx(0x547E2A2A), AESx(0x3BAB9090), AESx(0x0B838888), AESx(0x8CCA4646), AESx(0xC729EEEE), AESx(0x6BD3B8B8), AESx(0x283C1414), AESx(0xA779DEDE), AESx(0xBCE25E5E), AESx(0x161D0B0B), AESx(0xAD76DBDB), AESx(0xDB3BE0E0), AESx(0x64563232), AESx(0x744E3A3A), AESx(0x141E0A0A), AESx(0x92DB4949), AESx(0x0C0A0606), AESx(0x486C2424), AESx(0xB8E45C5C), AESx(0x9F5DC2C2), AESx(0xBD6ED3D3), AESx(0x43EFACAC), AESx(0xC4A66262), AESx(0x39A89191), AESx(0x31A49595), AESx(0xD337E4E4), AESx(0xF28B7979), AESx(0xD532E7E7), AESx(0x8B43C8C8), AESx(0x6E593737), AESx(0xDAB76D6D), AESx(0x018C8D8D), AESx(0xB164D5D5), AESx(0x9CD24E4E), AESx(0x49E0A9A9), AESx(0xD8B46C6C), AESx(0xACFA5656), AESx(0xF307F4F4), AESx(0xCF25EAEA), AESx(0xCAAF6565), AESx(0xF48E7A7A), AESx(0x47E9AEAE), AESx(0x10180808), AESx(0x6FD5BABA), AESx(0xF0887878), AESx(0x4A6F2525), AESx(0x5C722E2E), AESx(0x38241C1C), AESx(0x57F1A6A6), AESx(0x73C7B4B4), AESx(0x9751C6C6), AESx(0xCB23E8E8), AESx(0xA17CDDDD), AESx(0xE89C7474), AESx(0x3E211F1F), AESx(0x96DD4B4B), AESx(0x61DCBDBD), AESx(0x0D868B8B), AESx(0x0F858A8A), AESx(0xE0907070), AESx(0x7C423E3E), AESx(0x71C4B5B5), AESx(0xCCAA6666), AESx(0x90D84848), AESx(0x06050303), AESx(0xF701F6F6), AESx(0x1C120E0E), AESx(0xC2A36161), AESx(0x6A5F3535), AESx(0xAEF95757), AESx(0x69D0B9B9), AESx(0x17918686), AESx(0x9958C1C1), AESx(0x3A271D1D), AESx(0x27B99E9E), AESx(0xD938E1E1), AESx(0xEB13F8F8), AESx(0x2BB39898), AESx(0x22331111), AESx(0xD2BB6969), AESx(0xA970D9D9), AESx(0x07898E8E), AESx(0x33A79494), AESx(0x2DB69B9B), AESx(0x3C221E1E), AESx(0x15928787), AESx(0xC920E9E9), AESx(0x8749CECE), AESx(0xAAFF5555), AESx(0x50782828), AESx(0xA57ADFDF), AESx(0x038F8C8C), AESx(0x59F8A1A1), AESx(0x09808989), AESx(0x1A170D0D), AESx(0x65DABFBF), AESx(0xD731E6E6), AESx(0x84C64242), AESx(0xD0B86868), AESx(0x82C34141), AESx(0x29B09999), AESx(0x5A772D2D), AESx(0x1E110F0F), AESx(0x7BCBB0B0), AESx(0xA8FC5454), AESx(0x6DD6BBBB), AESx(0x2C3A1616) }; #ifdef __cplusplus } #endif
coinkeeper/2015-06-22_18-57_navajo
src/aes_helper.c
C
mit
23,455
(function($){ (function () { if($.event.special.mousewheel){return;} var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'], toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'], slice = Array.prototype.slice, nullLowestDeltaTimeout, lowestDelta; if ( $.event.fixHooks ) { for ( var i = toFix.length; i; ) { $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks; } } $.event.special.mousewheel = { version: '3.1.6', setup: function() { if ( this.addEventListener ) { for ( var i = toBind.length; i; ) { this.addEventListener( toBind[--i], handler, false ); } } else { this.onmousewheel = handler; } }, teardown: function() { if ( this.removeEventListener ) { for ( var i = toBind.length; i; ) { this.removeEventListener( toBind[--i], handler, false ); } } else { this.onmousewheel = null; } } }; $.fn.extend({ mousewheel: function(fn) { return fn ? this.on('mousewheel', fn) : this.trigger('mousewheel'); }, unmousewheel: function(fn) { return this.off('mousewheel', fn); } }); function handler(event) { var orgEvent = event || window.event, args = slice.call(arguments, 1), delta = 0, deltaX = 0, deltaY = 0, absDelta = 0; event = $.event.fix(orgEvent); event.type = 'mousewheel'; // Old school scrollwheel delta if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; } if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; } if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; } if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; } // Firefox < 17 horizontal scrolling related to DOMMouseScroll event if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) { deltaX = deltaY * -1; deltaY = 0; } // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy delta = deltaY === 0 ? deltaX : deltaY; // New school wheel delta (wheel event) if ( 'deltaY' in orgEvent ) { deltaY = orgEvent.deltaY * -1; delta = deltaY; } if ( 'deltaX' in orgEvent ) { deltaX = orgEvent.deltaX; if ( deltaY === 0 ) { delta = deltaX * -1; } } // No change actually happened, no reason to go any further if ( deltaY === 0 && deltaX === 0 ) { return; } // Store lowest absolute delta to normalize the delta values absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) ); if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; } // Get a whole, normalized value for the deltas delta = Math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestDelta); deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta); deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta); // Add information to the event object event.deltaX = deltaX; event.deltaY = deltaY; event.deltaFactor = lowestDelta; // Add event and delta to the front of the arguments args.unshift(event, delta, deltaX, deltaY); // Clearout lowestDelta after sometime to better // handle multiple device types that give different // a different lowestDelta // Ex: trackpad = 3 and mouse wheel = 120 if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); } nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200); return ($.event.dispatch || $.event.handle).apply(this, args); } function nullLowestDelta() { lowestDelta = null; } })(); (function(){ if($.event.special.mwheelIntent){return;} var mwheelI = { pos: [-260, -260] }, minDif = 3, doc = document, root = doc.documentElement, body = doc.body, longDelay, shortDelay ; if(!body){ $(function(){ body = doc.body; }); } function unsetPos(){ if(this === mwheelI.elem){ mwheelI.pos = [-260, -260]; mwheelI.elem = false; minDif = 3; } } $.event.special.mwheelIntent = { setup: function(){ var jElm = $(this).on('mousewheel', $.event.special.mwheelIntent.handler); if( this !== doc && this !== root && this !== body ){ jElm.on('mouseleave', unsetPos); } jElm = null; return true; }, teardown: function(){ $(this) .off('mousewheel', $.event.special.mwheelIntent.handler) .off('mouseleave', unsetPos) ; return true; }, handler: function(e, d){ var pos = [e.clientX, e.clientY]; if( this === mwheelI.elem || Math.abs(mwheelI.pos[0] - pos[0]) > minDif || Math.abs(mwheelI.pos[1] - pos[1]) > minDif ){ mwheelI.elem = this; mwheelI.pos = pos; minDif = 250; clearTimeout(shortDelay); shortDelay = setTimeout(function(){ minDif = 10; }, 200); clearTimeout(longDelay); longDelay = setTimeout(function(){ minDif = 3; }, 1500); e = $.extend({}, e, {type: 'mwheelIntent'}); return ($.event.dispatch || $.event.handle).apply(this, arguments); } } }; $.fn.extend({ mwheelIntent: function(fn) { return fn ? this.on("mwheelIntent", fn) : this.trigger("mwheelIntent"); }, unmwheelIntent: function(fn) { return this.off("mwheelIntent", fn); } }); $(function(){ body = doc.body; //assume that document is always scrollable, doesn't hurt if not $(doc).on('mwheelIntent.mwheelIntentDefault', $.noop); }); })(); (function(){ if($.event.special.mousepress){return;} var removeTimer = function(elem, full){ var timer = elem.data('mousepresstimer'); if(timer){ clearTimeout(timer); } if(full){ elem.off('mouseup.mousepressext mouseleave.mousepressext'); } elem = null; }; $.event.special.mousepress = { setup: function(){ var timer; $(this).on('mousedown.mousepressext', function(e){ var elem = $(this); var startIntervall = function(delay){ var steps = 0; removeTimer(elem); elem.data('mousepresstimer', setInterval(function(){ $.event.special.mousepress.handler(elem[0], e); steps++; if(steps > 3 && delay > 45){ startIntervall(delay - 40); } }, delay)); }; var target = $(e.target).trigger('mousepressstart', [e]); removeTimer(elem); elem.data('mousepresstimer', setTimeout(function(){ startIntervall(180); }, 200)); elem.on('mouseup.mousepressext mouseleave.mousepressext', function(e){ removeTimer(elem, true); target.trigger('mousepressend', [e]); elem = null; target = null; }); }); }, teardown: function(){ removeTimer($(this).off('.mousepressext'), true); }, handler: function(elem, e){ return $.event.dispatch.call(elem, {type: 'mousepress', target: e.target, pageX: e.pageX, pageY: e.pageY}); } }; })(); })(webshims.$); webshims.register('forms-picker', function($, webshims, window, document, undefined, options){ "use strict"; var picker = webshims.picker; var actions = picker._actions; var moduleOpts = options; var getDateArray = function(date){ var ret = [date.getFullYear(), moduleOpts.addZero(date.getMonth() + 1), moduleOpts.addZero(date.getDate())]; ret.month = ret[0]+'-'+ret[1]; ret.date = ret[0]+'-'+ret[1]+'-'+ret[2]; ret.time = moduleOpts.addZero(date.getHours()) +':'+ moduleOpts.addZero(date.getMinutes()); ret['datetime-local'] = ret.date +'T'+ ret.time; return ret; }; var today = getDateArray(new Date()); var _setFocus = function(element, _noFocus){ element = $(element || this.activeButton); this.activeButton.attr({tabindex: '-1', 'aria-selected': 'false'}); this.activeButton = element.attr({tabindex: '0', 'aria-selected': 'true'}); this.index = this.buttons.index(this.activeButton[0]); clearTimeout(this.timer); picker._genericSetFocus.apply(this, arguments); }; var _initialFocus = function(){ var sel; if(this.popover.navedInitFocus){ sel = this.popover.navedInitFocus.sel || this.popover.navedInitFocus; if((!this.activeButton || !this.activeButton[0]) && this.buttons[sel]){ this.activeButton = this.buttons[sel](); } else if(sel){ this.activeButton = $(sel, this.element); } if(!this.activeButton[0] && this.popover.navedInitFocus.alt){ this.activeButton = this.buttons[this.popover.navedInitFocus.alt](); } } if(!this.activeButton || !this.activeButton[0]){ this.activeButton = this.buttons.filter('.checked-value'); } if(!this.activeButton[0]){ this.activeButton = this.buttons.filter('.this-value'); } if(!this.activeButton[0]){ this.activeButton = this.buttons.eq(0); } this.setFocus(this.activeButton, this.opts.noFocus); }; var formcfg = webshims.formcfg; var curCfg = formcfg.__active || formcfg['']; var stopPropagation = function(e){ e.stopImmediatePropagation(); }; var steps = options.steps; var mousePress = function(e){ $(this)[e.type == 'mousepressstart' ? 'addClass' : 'removeClass']('mousepress-ui'); }; var getMonthNameHTML = function(index, year, prefix){ var dateCfg = curCfg.date; var str = []; if(!prefix){ prefix = ''; } $.each({monthNames: 'monthname', monthDigits: 'month-digit', monthNamesShort: 'monthname-short'}, function(prop, cName){ var name = [prefix + dateCfg[prop][index]]; if(year){ name.push(year); if(dateCfg.showMonthAfterYear){ name.reverse(); } } str.push('<span class="'+ cName +'">'+ name.join(' ') +'</span>'); }); return str.join(''); }; var setJump = ('inputMode' in document.createElement('input')) || !((/ipad|iphone/i).test(navigator.userAgent)); var widgetProtos = { _addBindings: function(){ var isFocused; var that = this; var o = this.options; var eventTimer = (function(){ var events = {}; return { init: function(name, curVal, fn){ if (!events[name]) { events[name] = { fn: fn }; $(that.orig).on(name, function(){ events[name].val = $.prop(that.orig, 'value'); }); } events[name].val = curVal; }, call: function(name, val){ if (events[name] && events[name].val != val) { clearTimeout(events[name].timer); events[name].val = val; events[name].fn(val, that); } } }; })(); var initChangeEvents = function(){ eventTimer.init('input', $.prop(that.orig, 'value'), that.options.input); eventTimer.init('change', $.prop(that.orig, 'value'), that.options.change); }; var step = {}; var preventBlur = function(e){ if (preventBlur.prevent) { e.preventDefault(); $(isFocused || that.element.getShadowFocusElement()).trigger('focus'); stopPropagation(e); return true; } }; (function(){ var timer; var call = function(e){ var val; clearTimeout(timer); val = that.parseValue(); if (that.type == 'color') { that.inputElements.val(val); } $.prop(that.orig, 'value', val); eventTimer.call('input', val); if (!e || e.type != 'wsupdatevalue') { eventTimer.call('change', val); } }; var onFocus = function(e){ clearTimeout(timer); $(e.target).trigger('wswidgetfocusin'); }; var onBlur = function(e){ clearTimeout(timer); timer = setTimeout(call, 0); $(e.target).trigger('wswidgetfocusout'); if (e.type == 'ws__change') { stopPropagation(e); if (!o.splitInput) { call(); } } }; that.element.on('wsupdatevalue', call); that.inputElements.add(that.buttonWrapper).add(that.element).on({ 'ws__focusin': onFocus, 'ws__blur ws__focusout ws__change': onBlur }); setTimeout(function(){ if (that.popover) { that.popover.element.on('wspopoverhide', onBlur); that.popover.element.children().on({ 'focusin': onFocus, 'focusout': onBlur }); } }, 0); })(); var spinEvents = {}; var spinElement = o.splitInput ? this.inputElements.filter('.ws-spin') : this.inputElements.eq(0); var elementEvts = { ws__blur: function(e){ if (!preventBlur(e) && !o.disabled && !o.readonly) { if (!preventBlur.prevent) { isFocused = false; } } stopPropagation(e); }, ws__focus: function(e){ if (!isFocused) { initChangeEvents(); isFocused = this; } }, keypress: function(e){ if (e.isDefaultPrevented()) { return; } var chr; var stepped = true; var code = e.keyCode; if (!e.ctrlKey && !e.metaKey && curCfg[that.type + 'Signs']) { chr = String.fromCharCode(e.charCode == null ? code : e.charCode); stepped = !(chr < " " || (curCfg[that.type + 'Signs'] + '0123456789').indexOf(chr) > -1); } else { stepped = false; } if (stepped) { e.preventDefault(); } }, ws__input: (this.type == 'color' && this.isValid) ? $.noop : (function(){ var timer; var delay = that.type == 'number' && !o.nogrouping ? 99 : 199; var check = function(){ var val = that.parseValue(true); if (val && that.isValid(val)) { that.setInput(val, true); } }; return function(){ clearTimeout(timer); timer = setTimeout(check, delay); }; })(), 'ws__input keydown keypress': (function(){ var timer; var isStopped = false; var releaseTab = function(){ if (isStopped === true) { isStopped = 'semi'; timer = setTimeout(releaseTab, 250); } else { isStopped = false; } }; var stopTab = function(){ isStopped = true; clearTimeout(timer); timer = setTimeout(releaseTab, 300); }; var select = function(){ var elem = this; setTimeout(function(){ elem.focus(); if(elem.select){ elem.select(); } }, 4); stopTab(); }; return function(e){ if (o.splitInput && o.jumpInputs) { if (e.type == 'ws__input') { if ($.prop(this, 'value').length === $.prop(this, 'maxLength')) { try { $(this).next().next('input, select').each(select); } catch (er) {} } } else if (!e.shiftKey && !e.crtlKey && e.keyCode == 9 && (isStopped === true || (isStopped && !$.prop(this, 'value')))) { e.preventDefault(); } } }; })() }; var mouseDownInit = function(){ if (!o.disabled && !isFocused) { that.element.getShadowFocusElement().trigger('focus'); } preventBlur.set(); return false; }; preventBlur.set = (function(){ var timer; var reset = function(){ preventBlur.prevent = false; }; return function(){ clearTimeout(timer); preventBlur.prevent = true; setTimeout(reset, 9); }; })(); if(o.splitInput && setJump && o.jumpInputs == null){ o.jumpInputs = true; } this.buttonWrapper.on('mousedown', mouseDownInit); this.setInput = function(value, isLive){ that.value(value, false, isLive); eventTimer.call('input', value); }; this.setChange = function(value){ that.setInput(value); eventTimer.call('change', value); }; this.inputElements.on(elementEvts); if (steps[this.type]) { ['stepUp', 'stepDown'].forEach(function(name){ step[name] = function(factor){ if (!o.disabled && !o.readonly) { if (!isFocused) { mouseDownInit(); } var ret = false; if (!factor) { factor = 1; } if(o.stepfactor){ factor *= o.stepfactor; } if(factor > 0 && !isNaN(that.minAsNumber) && (isNaN(that.valueAsNumber) || that.valueAsNumber < that.minAsNumber) && that.elemHelper.prop('valueAsNumber') <= that.minAsNumber){ ret = that.asValue(that.minAsNumber); } else if(factor < 0 && !isNaN(that.maxAsNumber) && (isNaN(that.valueAsNumber) || that.valueAsNumber > that.minAsNumber) && that.elemHelper.prop('valueAsNumber') <= that.maxAsNumber){ ret = that.asValue(that.maxAsNumber); } if(ret === false){ try { that.elemHelper[name](factor); ret = that.elemHelper.prop('value'); } catch (er) { if (!o.value && that.maxAsNumber >= that.minAsNumber) { ret = o.defValue; } } } if (ret !== false && o.value != ret) { that.value(ret); if(o.toFixed && o.type == 'number'){ that.element[0].value = that.toFixed(that.element[0].value, true); } eventTimer.call('input', ret); } return ret; } }; }); if (!o.noSpinbtn) { spinEvents.mwheelIntent = function(e, delta){ if (delta && isFocused && !o.disabled) { step[delta > 0 ? 'stepUp' : 'stepDown'](); e.preventDefault(); } }; spinEvents.keydown = function(e){ if (o.list || e.isDefaultPrevented() || (e.altKey && e.keyCode == 40) || $.attr(this, 'list')) { return; } var stepped = true; var code = e.keyCode; if (code == 38) { step.stepUp(); } else if (code == 40) { step.stepDown(); } else { stepped = false; } if (stepped) { e.preventDefault(); } }; spinElement.on(spinEvents); } $(this.buttonWrapper) .on('mousepressstart mousepressend', '.step-up, .step-down', mousePress) .on('mousedown mousepress', '.step-up', function(e){ step.stepUp(); }) .on('mousedown mousepress', '.step-down', function(e){ step.stepDown(); }) ; initChangeEvents(); } }, _getSelectionEnd: function(val){ var oldVal, selectionEnd; if((oldVal = this.element[0].value) && this.element.is(':focus') && (selectionEnd = this.element.prop('selectionEnd')) < oldVal.length){ if(this.type == 'number'){ oldVal = oldVal.substr(0, selectionEnd).split(curCfg.numberFormat[',']); val = val.substr(0, selectionEnd).split(curCfg.numberFormat[',']); if(oldVal.length < val.length){ selectionEnd++; } else if(oldVal.length > val.length){ selectionEnd--; } } return selectionEnd; } }, initDataList: function(){ var listTimer; var that = this; var updateList = function(){ $(that.orig) .jProp('list') .off('updateDatalist', updateList) .on('updateDatalist', updateList) ; clearTimeout(listTimer); listTimer = setTimeout(function(){ if(that.list){ that.list(); } }, 9); }; $(this.orig).onTrigger('listdatalistchange', updateList); }, getOptions: function(){ var options = {}; var datalist = $(this.orig).jProp('list'); datalist.find('option').each(function(){ options[$.prop(this, 'value')] = $.prop(this, 'label'); }); return [options, datalist.data('label')]; } }; $.extend($.fn.wsBaseWidget.wsProto, widgetProtos); $.extend($.fn.spinbtnUI.wsProto, widgetProtos); $(formcfg).on('change', function(e, data){ curCfg = formcfg.__active; }); webshims.ListBox = function (element, popover, opts){ this.element = $('ul', element); this.popover = popover; this.opts = opts || {}; this.buttons = $('button:not(:disabled)', this.element); this.ons(this); this._initialFocus(); }; webshims.ListBox.prototype = { setFocus: _setFocus, _initialFocus: _initialFocus, prev: function(){ var index = this.index - 1; if(index < 0){ if(this.opts.prev){ this.popover.navedInitFocus = 'last'; this.popover.actionFn(this.opts.prev); this.popover.navedInitFocus = false; } } else { this.setFocus(this.buttons.eq(index)); } }, next: function(){ var index = this.index + 1; if(index >= this.buttons.length){ if(this.opts.next){ this.popover.navedInitFocus = 'first'; this.popover.actionFn(this.opts.next); this.popover.navedInitFocus = false; } } else { this.setFocus(this.buttons.eq(index)); } }, ons: function(that){ this.element .on({ 'keydown': function(e){ var handled; var key = e.keyCode; if(e.ctrlKey){return;} if(key == 36 || key == 33){ that.setFocus(that.buttons.eq(0)); handled = true; } else if(key == 34 || key == 35){ that.setFocus(that.buttons.eq(that.buttons.length - 1)); handled = true; } else if(key == 38 || key == 37){ that.prev(); handled = true; } else if(key == 40 || key == 39){ that.next(); handled = true; } if(handled){ return false; } } }) ; } }; webshims.Grid = function (element, popover, opts){ this.element = $('tbody', element); this.popover = popover; this.opts = opts || {}; this.buttons = $('button:not(:disabled):not(.othermonth)', this.element); this.ons(this); this._initialFocus(); if(this.popover.openedByFocus){ this.popover.activeElement = this.activeButton; } }; webshims.Grid.prototype = { setFocus: _setFocus, _initialFocus: _initialFocus, first: function(){ this.setFocus(this.buttons.eq(0)); }, last: function(){ this.setFocus(this.buttons.eq(this.buttons.length - 1)); }, upPage: function(){ $('.ws-picker-header > button:not(:disabled)', this.popover.element).trigger('click'); }, downPage: function(){ this.activeButton.filter(':not([data-action="changeInput"])').trigger('click'); }, ons: function(that){ this.element .on({ 'keydown': function(e){ var handled, sKey; var key = e.keyCode; if(e.shiftKey){return;} sKey = e.ctrlKey || e.altKey; //|| e.metaKey if((sKey && key == 40)){ handled = 'downPage'; } else if((sKey && key == 38)){ handled = 'upPage'; } else if(key == 33 || (sKey && key == 37)){ handled = 'prevPage'; } else if(key == 34 || (sKey && key == 39)){ handled = 'nextPage'; } else if(e.keyCode == 36 || e.keyCode == 33){ handled = 'first'; } else if(e.keyCode == 35){ handled = 'last'; } else if(e.keyCode == 38){ handled = 'up'; } else if(e.keyCode == 37){ handled = 'prev'; } else if(e.keyCode == 40){ handled = 'down'; } else if(e.keyCode == 39){ handled = 'next'; } if(handled){ that[handled](); return false; } } }) ; } }; $.each({ prevPage: {get: 'last', action: 'prev'}, nextPage: {get: 'first', action: 'next'} }, function(name, val){ webshims.Grid.prototype[name] = function(){ if(this.opts[val.action]){ this.popover.navedInitFocus = { sel: 'button[data-id="'+ this.activeButton.attr('data-id') +'"]:not(:disabled,.othermonth)', alt: val.get }; this.popover.actionFn(this.opts[val.action]); this.popover.navedInitFocus = false; } }; }); $.each({ up: {traverse: 'prevAll', get: 'last', action: 'prev', reverse: true}, down: {traverse: 'nextAll', get: 'first', action: 'next'} }, function(name, val){ webshims.Grid.prototype[name] = function(){ var cellIndex = this.activeButton.closest('td').prop('cellIndex'); var sel = 'td:nth-child('+(cellIndex + 1)+') button:not(:disabled,.othermonth)'; var button = this.activeButton.closest('tr')[val.traverse](); if(val.reverse){ button = $(button.get().reverse()); } button = button.find(sel)[val.get](); if(!button[0]){ if(this.opts[val.action]){ this.popover.navedInitFocus = sel+':'+val.get; this.popover.actionFn(this.opts[val.action]); this.popover.navedInitFocus = false; } } else { this.setFocus(button.eq(0)); } }; }); $.each({ prev: {traverse: 'prevAll',get: 'last', reverse: true}, next: {traverse: 'nextAll', get: 'first'} }, function(name, val){ webshims.Grid.prototype[name] = function(){ var sel = 'button:not(:disabled,.othermonth)'; var button = this.activeButton.closest('td')[val.traverse]('td'); if(val.reverse){ button = $(button.get().reverse()); } button = button.find(sel)[val.get](); if(!button[0]){ button = this.activeButton.closest('tr')[val.traverse]('tr'); if(val.reverse){ button = $(button.get().reverse()); } button = button.find(sel)[val.get](); } if(!button[0]){ if(this.opts[name]){ this.popover.navedInitFocus = val.get; this.popover.actionFn(this.opts[name]); this.popover.navedInitFocus = false; } } else { this.setFocus(button.eq(0)); } }; }); //taken from jquery ui picker.getWeek = function(date){ var time; var checkDate = new Date(date.getTime()); checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); time = checkDate.getTime(); checkDate.setMonth(0); checkDate.setDate(1); return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1; }; picker.getYearList = function(value, data){ var j, i, val, disabled, lis, prevDisabled, nextDisabled, classStr, classArray, start; var o = data.options; var size = o.size; var max = o.max.split('-'); var min = o.min.split('-'); var cols = o.cols || 4; var currentValue = o.value.split('-'); var xthCorrect = 0; var enabled = 0; var str = ''; var rowNum = 0; var triggerValueValidation = (data.orig && ('validatevalue' in $.data(data.orig))); if(!data.options.useDecadeBase){ if(!max[0] && min[0]){ data.options.useDecadeBase = 'min'; } else if(max[0] && !min[0]){ data.options.useDecadeBase = 'max'; } } if(data.options.useDecadeBase == 'max' && max[0]){ xthCorrect = 11 - (max[0] % 12); } else if(data.options.useDecadeBase == 'min' && min[0]){ xthCorrect = 0 - (min[0] % 12); } value = value[0] * 1; start = value - ((value + xthCorrect) % (12 * size)); for(j = 0; j < size; j++){ if(j){ start += 12; } else { prevDisabled = picker.isInRange([start-1], max, min) ? {'data-action': 'setYearList','value': start-1} : false; } str += '<div class="year-list picker-list ws-index-'+ j +'"><div class="ws-picker-header"><select data-action="setYearList" class="decade-select">'+ picker.createYearSelect(value, max, min, '', {start: start, step: 12 * size, label: start+' – '+(start + 11)}).join('') +'</select><button disabled="disabled"><span>'+ start +' – '+(start + 11)+'</span></button></div>'; lis = []; for(i = 0; i < 12; i++){ val = start + i ; classArray = []; if( !picker.isInRange([val], max, min) || (triggerValueValidation && $(data.orig).triggerHandler('validatevalue', [{value: val, valueAsDate: null, isPartial: [val]}]))){ disabled = ' disabled=""'; } else { disabled = ''; enabled++; } if(val == today[0]){ classArray.push('this-value'); } if(currentValue[0] == val){ classArray.push('checked-value'); } classStr = classArray.length ? ' class="'+ (classArray.join(' ')) +'"' : ''; if(i && !(i % cols)){ rowNum++; lis.push('</tr><tr class="ws-row-'+ rowNum +'">'); } lis.push('<td class="ws-item-'+ i +'" role="presentation"><button data-id="year-'+ i +'" type="button"'+ disabled + classStr +' data-action="setMonthList" value="'+val+'" tabindex="-1" role="gridcell">'+val+'</button></td>'); } if(j == size - 1){ nextDisabled = picker.isInRange([val+1], max, min) ? {'data-action': 'setYearList','value': val+1} : false; } str += '<div class="picker-grid"><table role="grid" aria-label="'+ start +' – '+(start + 11)+'"><tbody><tr class="ws-row-0">'+ (lis.join(''))+ '</tr></tbody></table></div></div>'; } return { enabled: enabled, main: str, next: nextDisabled, prev: prevDisabled, type: 'Grid' }; }; picker.getMonthList = function(value, data){ var j, i, name, val, disabled, lis, prevDisabled, nextDisabled, classStr, classArray; var o = data.options; var size = o.size; var max = o.maxS; var min = o.minS; var cols = o.cols || 4; var currentValue = o.value.split('-'); var enabled = 0; var rowNum = 0; var str = ''; var action = data.type == 'month' ? 'changeInput' : 'setDayList' ; var triggerValueValidation = (data.orig && ('validatevalue' in $.data(data.orig))); var isPartial = action != 'changeInput'; value = value[0] - Math.floor((size - 1) / 2); for(j = 0; j < size; j++){ if(j){ value++; } else { prevDisabled = picker.isInRange([value-1], max, min) ? {'data-action': 'setMonthList','value': value-1} : false; } if(j == size - 1){ nextDisabled = picker.isInRange([value+1], max, min) ? {'data-action': 'setMonthList','value': value+1} : false; } lis = []; if( !picker.isInRange([value, '01'], max, min) && !picker.isInRange([value, '12'], max, min)){ disabled = ' disabled=""'; } else { disabled = ''; } if(o.minView >= 1){ disabled = ' disabled=""'; } str += '<div class="month-list picker-list ws-index-'+ j +'"><div class="ws-picker-header">'; str += '<select data-action="setMonthList" class="year-select">'+ picker.createYearSelect(value, max, min).join('') +'</select> <button data-action="setYearList"'+disabled+' value="'+ value +'" tabindex="-1"><span>'+ value +'</span></button>'; str += '</div>'; for(i = 0; i < 12; i++){ val = curCfg.date.monthkeys[i+1]; name = getMonthNameHTML(i); classArray = []; if(!picker.isInRange([value, val], max, min) || (triggerValueValidation && $(data.orig).triggerHandler('validatevalue', [{value: value+'-'+val, valueAsDate: data.asDate(value+'-'+val), isPartial: isPartial && [value, val]}]))){ disabled = ' disabled=""'; } else { disabled = ''; enabled++; } if(value == today[0] && today[1] == val){ classArray.push('this-value'); } if(currentValue[0] == value && currentValue[1] == val){ classArray.push('checked-value'); } classStr = (classArray.length) ? ' class="'+ (classArray.join(' ')) +'"' : ''; if(i && !(i % cols)){ rowNum++; lis.push('</tr><tr class="ws-row-'+ rowNum +'">'); } lis.push('<td class="ws-item-'+ i +'" role="presentation"><button data-id="month-'+ i +'" type="button"'+ disabled + classStr +' data-action="'+ action +'" value="'+value+'-'+val+'" tabindex="-1" role="gridcell" aria-label="'+ curCfg.date.monthNames[i] +'">'+name+'</button></td>'); } str += '<div class="picker-grid"><table role="grid" aria-label="'+value+'"><tbody><tr class="ws-row-0">'+ (lis.join(''))+ '</tr></tbody></table></div></div>'; } return { enabled: enabled, main: str, prev: prevDisabled, next: nextDisabled, type: 'Grid' }; }; picker.getDayList = function(value, data){ var j, i, k, day, nDay, disabled, prevDisabled, nextDisabled, yearNext, yearPrev, addTr, week, rowNum; var lastMonth, curMonth, otherMonth, dateArray, monthName, fullMonthName, buttonStr, date2, classArray; var o = data.options; var size = o.size; var max = o.maxS; var min = o.minS; var currentValue = o.value.split('T')[0].split('-'); var dateCfg = curCfg.date; var str = []; var date = new Date(value[0], value[1] - 1, 1); var action = (data.type == 'datetime-local') ? 'setTimeList' : 'changeInput'; var triggerValueValidation = (data.orig && ('validatevalue' in $.data(data.orig))); var isPartial = action != 'changeInput'; date.setMonth(date.getMonth() - Math.floor((size - 1) / 2)); yearNext = [ (value[0] * 1) + 1, value[1] ]; yearNext = picker.isInRange(yearNext, max, min) ? {'data-action': 'setDayList','value': yearNext.join('-')} : false; yearPrev = [ (value[0] * 1) - 1, value[1] ]; yearPrev = picker.isInRange(yearPrev, max, min) ? {'data-action': 'setDayList','value': yearPrev.join('-')} : false; for(j = 0; j < size; j++){ date.setDate(1); lastMonth = date.getMonth(); rowNum = 0; if(!j){ date2 = new Date(date.getTime()); date2.setDate(-1); dateArray = getDateArray(date2); prevDisabled = picker.isInRange(dateArray, max, min) ? {'data-action': 'setDayList','value': dateArray[0]+'-'+dateArray[1]} : false; } dateArray = getDateArray(date); str.push('<div class="day-list picker-list ws-index-'+ j +'"><div class="ws-picker-header">'); monthName = ['<select data-action="setDayList" class="month-select" tabindex="0">'+ picker.createMonthSelect(dateArray, max, min).join('') +'</select>', '<select data-action="setDayList" class="year-select" tabindex="0">'+ picker.createYearSelect(dateArray[0], max, min, '-'+dateArray[1]).join('') +'</select>']; if(curCfg.date.showMonthAfterYear){ monthName.reverse(); } str.push( monthName.join(' ') ); fullMonthName = [dateCfg.monthNames[(dateArray[1] * 1) - 1], dateArray[0]]; if(dateCfg.showMonthAfterYear){ fullMonthName.reverse(); } str.push( '<button data-action="setMonthList"'+ (o.minView >= 2 ? ' disabled="" ' : '') +' value="'+ dateArray.date +'" tabindex="-1">'+ getMonthNameHTML((dateArray[1] * 1) - 1, dateArray[0]) +'</button>' ); str.push('</div><div class="picker-grid"><table role="grid" aria-label="'+ fullMonthName.join(' ') +'"><thead><tr>'); str.push('<th class="week-header ws-week">'+ dateCfg.weekHeader +'</th>'); for(k = dateCfg.firstDay; k < dateCfg.dayNamesShort.length; k++){ str.push('<th class="day-'+ k +'"><abbr title="'+ dateCfg.dayNames[k] +'">'+ dateCfg.dayNamesShort[k] +'</abbr></th>'); } k = dateCfg.firstDay; while(k--){ str.push('<th class="day-'+ k +'"><abbr title="'+ dateCfg.dayNames[k] +'">'+ dateCfg.dayNamesShort[k] +'</abbr></th>'); } str.push('</tr></thead><tbody><tr class="ws-row-0">'); week = picker.getWeek(date); str.push('<td class="week-cell ws-week" role="gridcell" aria-disabled="true">'+ week +'</td>'); for (i = 0; i < 99; i++) { addTr = (i && !(i % 7)); curMonth = date.getMonth(); otherMonth = lastMonth != curMonth; day = date.getDay(); classArray = []; if(addTr && otherMonth && rowNum >= 5){ str.push('</tr>'); break; } if(addTr){ rowNum++; str.push('</tr><tr class="ws-row-'+ rowNum + ((otherMonth) ? ' other-month-row' : '')+'">'); week++; if(week > 52){ week = picker.getWeek(date); } str.push('<td class="week-cell ws-week" role="gridcell" aria-disabled="true">'+ week +'</td>'); } if(!i){ if(day != curCfg.date.firstDay){ nDay = day - curCfg.date.firstDay; if(nDay < 0){ nDay += 7; } date.setDate(date.getDate() - nDay); day = date.getDay(); curMonth = date.getMonth(); otherMonth = lastMonth != curMonth; } } dateArray = getDateArray(date); buttonStr = '<td role="presentation" class="day-'+ day +'"><button data-id="day-'+ date.getDate() +'" role="gridcell" data-action="'+action+'" value="'+ (dateArray.join('-')) +'" type="button"'; if(otherMonth){ classArray.push('othermonth'); } else { classArray.push('day-'+date.getDate()); } if(dateArray[0] == today[0] && today[1] == dateArray[1] && today[2] == dateArray[2]){ classArray.push('this-value'); } if(currentValue[0] == dateArray[0] && dateArray[1] == currentValue[1] && dateArray[2] == currentValue[2]){ classArray.push('checked-value'); } if(classArray.length){ buttonStr += ' class="'+ classArray.join(' ') +'"'; } if(!picker.isInRange(dateArray, max, min) || (triggerValueValidation && $(data.orig).triggerHandler('validatevalue', [{value: dateArray.join('-'), valueAsDate: date, isPartial: isPartial && dateArray}]))){ buttonStr += ' disabled=""'; } str.push(buttonStr+' tabindex="-1">'+ date.getDate() +'</button></td>'); date.setDate(date.getDate() + 1); } str.push('</tbody></table></div></div>'); if(j == size - 1){ dateArray = getDateArray(date); dateArray[2] = 1; nextDisabled = picker.isInRange(dateArray, max, min) ? {'data-action': 'setDayList','value': dateArray.date} : false; } } return { enabled: 9, main: str.join(''), prev: prevDisabled, next: nextDisabled, yearPrev: yearPrev, yearNext: yearNext, type: 'Grid' }; }; // var createDatimeValue = picker.getTimeList = function(value, data){ var label, tmpValue, iVal, hVal, valPrefix; var str = '<div class="time-list picker-list ws-index-0">'; var i = 0; var rowNum = 0; var len = 23; var attrs = { min: $.prop(data.orig, 'min'), max: $.prop(data.orig, 'max'), step: $.prop(data.orig, 'step') }; var triggerValueValidation = (data.orig && ('validatevalue' in $.data(data.orig))); var gridLabel = ''; if(data.type == 'time'){ label = '<button type="button" disabled="">'+ $.trim($(data.orig).jProp('labels').text() || '').replace(/[\:\*]/g, '')+'</button>'; } else { tmpValue = value[2].split('T'); value[2] = tmpValue[0]; if(tmpValue[1]){ value[3] = tmpValue[1]; } gridLabel = ' aria-label="'+ value[2] +'. '+ (curCfg.date.monthNames[(value[1] * 1) - 1]) +' '+ value[0] +'"'; label = getMonthNameHTML((value[1] * 1) - 1, value[0], value[2] +'. '); label = '<button tabindex="-1" data-action="setDayList" value="'+value[0]+'-'+value[1]+'-'+value[2]+'" type="button">'+label+'</button>'; valPrefix = value[0] +'-'+value[1]+'-'+value[2]+'T'; } str += '<div class="ws-picker-header">'+label+'</div>'; str += '<div class="picker-grid"><table role="grid"'+ gridLabel +'><tbody><tr>'; for(; i <= len; i++){ iVal = moduleOpts.addZero(''+i) +':00'; hVal = valPrefix ? valPrefix+iVal : iVal ; if(i && !(i % 4)){ rowNum++; str += '</tr><tr class="ws-row-'+ rowNum +'">'; } str += '<td role="presentation"><button role="gridcell" data-action="changeInput" value="'+ hVal +'" type="button" tabindex="-1"'; if(!data.isValid(hVal, attrs) || (triggerValueValidation && $(data.orig).triggerHandler('validatevalue', [{value: hVal, valueAsDate: data.asDate(hVal), partial: false}]))){ str += ' disabled=""'; } if(value == iVal){ str += ' class="checked-value"'; } str += '>'+ webshims._format.time(iVal) +'</button></td>'; } str += '</tr></tbody></table></div></div>'; return { enabled: 9, main: str, prev: false, next: false, type: 'Grid' }; }; picker.isInRange = function(values, max, min){ var i; var ret = true; for(i = 0; i < values.length; i++){ if(min[i] && min[i] > values[i]){ ret = false; break; } else if( !(min[i] && min[i] == values[i]) ){ break; } } if(ret){ for(i = 0; i < values.length; i++){ if((max[i] && max[i] < values[i])){ ret = false; break; } else if( !(max[i] && max[i] == values[i]) ){ break; } } } return ret; }; picker.createMonthSelect = function(value, max, min, monthNames){ if(!monthNames){ monthNames = curCfg.date.monthNames; } var selected; var i = 0; var options = []; var tempVal = value[1]-1; for(; i < monthNames.length; i++){ selected = tempVal == i ? ' selected=""' : ''; if(selected || picker.isInRange([value[0], i+1], max, min)){ options.push('<option value="'+ value[0]+'-'+moduleOpts.addZero(i+1) + '"'+selected+'>'+ monthNames[i] +'</option>'); } } return options; }; (function(){ var retNames = function(name){ return 'get'+name+'List'; }; var retSetNames = function(name){ return 'set'+name+'List'; }; var stops = { date: 'Day', week: 'Day', month: 'Month', 'datetime-local': 'Time', time: 'Time' }; var setDirButtons = function(content, popover, dir){ if(content[dir]){ //set content and idl attribute (content for css + idl for IE8-) popover[dir+'Element'] .attr(content[dir]) .prop({disabled: false}) .prop(content[dir]) ; } else { popover[dir+'Element'] .removeAttr('data-action') .prop({disabled: true}) ; } }; $.each({'setYearList' : ['Year', 'Month', 'Day', 'Time'], 'setMonthList': ['Month', 'Day', 'Time'], 'setDayList': ['Day', 'Time'], 'setTimeList': ['Time']}, function(setName, names){ var getNames = names.map(retNames); var setNames = names.map(retSetNames); actions[setName] = function(val, popover, data, startAt){ val = ''+val; var o = data.options; var values = val.split('-'); if(!startAt){ startAt = 0; } $.each(getNames, function(i, item){ if(i >= startAt){ var content = picker[item](values, data); if( values.length < 2 || content.enabled > 1 || content.prev || content.next || stops[data.type] === names[i]){ popover.element .attr({'data-currentview': setNames[i]}) .addClass('ws-size-'+o.size) .data('pickercontent', { data: data, content: content, values: values }) ; popover.bodyElement.html(content.main); setDirButtons(content, popover, 'prev'); setDirButtons(content, popover, 'next'); setDirButtons(content, popover, 'yearPrev'); setDirButtons(content, popover, 'yearNext'); $(o.orig).trigger('pickerchange'); if(webshims[content.type]){ new webshims[content.type](popover.bodyElement.children(), popover, content); } popover.element .filter('[data-vertical="bottom"]') .triggerHandler('pospopover') ; return false; } } }); }; }); })(); picker.showPickerContent = function(data, popover){ var options = data.options; var init = data._popoverinit; data._popoverinit = true; if(!init){ picker.commonInit(data, popover); picker.commonDateInit(data, popover); } popover.element.triggerHandler('updatepickercontent'); if(!init || options.restartView) { actions.setYearList( options.defValue || options.value, popover, data, options.startView); } else { actions[popover.element.attr('data-currentview') || 'setYearList']( options.defValue || options.value, popover, data, 0); } data._popoverinit = true; }; picker.commonDateInit = function(data, popover){ if(data._commonDateInit){return;} data._commonDateInit = true; var o = data.options; var actionfn = function(e){ if(!$(this).is('.othermonth') || $(this).css('cursor') == 'pointer'){ popover.actionFn({ 'data-action': $.attr(this, 'data-action'), value: $(this).val() || $.attr(this, 'value') }); } return false; }; var id = new Date().getTime(); var generateList = function(o, max, min){ var options = []; var label = ''; var labelId = ''; o.options = data.getOptions() || {}; $('div.ws-options', popover.contentElement).remove(); $.each(o.options[0], function(val, label){ var disabled = picker.isInRange(val.split('-'), o.maxS, o.minS) ? '' : ' disabled="" ' ; if(label){ label = ' <span class="ws-label">'+ label +'</span>'; } options.push('<li role="presentation"><button value="'+ val +'" '+disabled+' data-action="changeInput" tabindex="-1" role="option"><span class="ws-value">'+ data.formatValue(val, false) +'</span>'+ label +'</button></li>'); }); if(options.length){ id++; if(o.options[1]){ labelId = 'datalist-'+id; label = '<h5 id="'+labelId+'">'+ o.options[1] +'</h5>'; labelId = ' aria-labelledbyid="'+ labelId +'" '; } new webshims.ListBox($('<div class="ws-options">'+label+'<ul role="listbox" '+ labelId +'>'+ options.join('') +'</div>').insertAfter(popover.bodyElement)[0], popover, {noFocus: true}); } }; var updateContent = function(){ var tmpMinMax; if(popover.isDirty){ popover.isDirty = false; tmpMinMax = o.max.split('T'); o.maxS = tmpMinMax[0].split('-'); if(tmpMinMax[1]){ o.maxS.push(tmpMinMax[1]); } tmpMinMax = o.min.split('T'); o.minS = tmpMinMax[0].split('-'); if(tmpMinMax[1]){ o.minS.push(tmpMinMax[1]); } $('button', popover.buttonRow).each(function(){ var text; if($(this).is('.ws-empty')){ text = curCfg.date.clear; if(!text){ text = formcfg[''].date.clear || 'clear'; webshims.warn("could not get clear text from form cfg"); } } else if($(this).is('.ws-current')){ text = (curCfg[data.type] || {}).currentText; if(!text){ text = (formcfg[''][[data.type]] || {}).currentText || (curCfg.date || {}).currentText || 'current'; webshims.warn("could not get currentText from form cfg for "+data.type); } if(today[data.type] && data.type != 'time'){ $.prop(this, 'disabled', (!picker.isInRange(today[data.type].split('-'), o.maxS, o.minS) || !!$(data.orig).triggerHandler('validatevalue', [{value: today[data.type], valueAsDate: new Date(), isPartial: false}]))); } } if(text){ $(this).text(text).attr({'aria-label': text}); } }); popover.nextElement .attr({'aria-label': curCfg.date.nextText}) ; popover.prevElement .attr({'aria-label': curCfg.date.prevText}) ; popover.yearNextElement .attr({'aria-label': curCfg.date.nextText}) ; popover.yearPrevElement .attr({'aria-label': curCfg.date.prevText}) ; popover.contentElement.attr({ dir: curCfg.date.isRTL ? 'rtl' : 'ltr', lang: webshims.formcfg.__activeName }); generateList(o, o.maxS, o.minS); if(popover.isVisible){ picker.showPickerContent(data, popover); } } $('button.ws-empty', popover.buttonRow).prop('disabled', $.prop(data.orig, 'required')); popover.isDirty = false; }; if(data.type == 'time'){ o.minView = 3; o.startView = 3; } if(!o.minView){ o.minView = 0; } if(o.startView < o.minView){ o.startView = o.minView; webshims.warn("wrong config for minView/startView."); } if(!o.size){ o.size = 1; } popover.actionFn = function(obj){ if(actions[obj['data-action']]){ actions[obj['data-action']](obj.value, popover, data, 0); } else { webshims.warn('no action for '+ obj['data-action']); } }; popover.contentElement.html('<div class="prev-controls ws-picker-controls"><button class="ws-super-prev ws-year-btn" tabindex="0" type="button"></button><button class="ws-prev" tabindex="0" type="button"></button></div> <div class="next-controls ws-picker-controls"><button class="ws-next" tabindex="0" type="button"></button><button class="ws-super-next ws-year-btn" tabindex="0" type="button"></button></div><div class="ws-picker-body"></div><div class="ws-button-row"><button type="button" class="ws-current" data-action="changeInput" value="'+today[data.type]+'" tabindex="0"></button> <button type="button" data-action="changeInput" value="" class="ws-empty" tabindex="0"></button></div>'); popover.nextElement = $('button.ws-next', popover.contentElement); popover.prevElement = $('button.ws-prev', popover.contentElement); popover.yearNextElement = $('button.ws-super-next', popover.contentElement); popover.yearPrevElement = $('button.ws-super-prev', popover.contentElement); popover.bodyElement = $('div.ws-picker-body', popover.contentElement); popover.buttonRow = $('div.ws-button-row', popover.contentElement); popover.element.on('updatepickercontent', updateContent); popover.contentElement .wsTouchClick('button[data-action]', actionfn) .on('change', 'select[data-action]', actionfn) ; $(o.orig).on('input', function(){ var currentView; if(o.updateOnInput && popover.isVisible && o.value && (currentView = popover.element.attr('data-currentview'))){ actions[currentView]( data.options.value , popover, data, 0); } }); $(document).onTrigger('wslocalechange', data._propertyChange); if(o.updateOnInput == null && (o.inlinePicker || o.noChangeDismiss)){ o.updateOnInput = true; } if(o.inlinePicker){ popover.element.attr('data-class', $.prop(data.orig, 'className')); popover.element.attr('data-id', $.prop(data.orig, 'id')); } $(o.orig).trigger('pickercreated'); }; });
gasolin/cdnjs
ajax/libs/webshim/1.14.2/dev/shims/forms-picker.js
JavaScript
mit
49,152
jQuery.keyboard.layouts["ms-Ukrainian"]={name:"ms-Ukrainian",lang:["uk"],normal:["ё 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} й ц у к е н г ш щ з х ї \\","ф і в а п р о л д ж є {enter}","{shift} ґ я ч с м и т ь б ю / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['Ё ! " № ; % : ? * ( ) _ + {bksp}',"{tab} Й Ц У К Е Н Г Ш Щ З Х Ї /","Ф І В А П Р О Л Д Ж Є {enter}","{shift} Ґ Я Ч С М И Т Ь Б Ю / {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} ґ {empty} {empty} {empty} {empty} {empty} {empty}","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {enter}","{shift} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"],"alt-shift":["{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} Ґ {empty} {empty} {empty} {empty} {empty} {empty}","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {enter}","{shift} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]},jQuery.keyboard.layouts["ms-Ukrainian (Enhanced)"]={name:"ms-Ukrainian (Enhanced)",lang:["uk"],normal:["' 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} й ц у к е н г ш щ з х ї \\","ф і в а п р о л д ж є {enter}","{shift} ґ я ч с м и т ь б ю / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['₴ ! " № ; % : ? * ( ) _ + {bksp}',"{tab} Й Ц У К Е Н Г Ш Щ З Х Ї /","Ф І В А П Р О Л Д Ж Є {enter}","{shift} Ґ Я Ч С М И Т Ь Б Ю / {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} ґ {empty} {empty} {empty} {empty} {empty} {empty}","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {enter}","{shift} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"],"alt-shift":["{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} Ґ {empty} {empty} {empty} {empty} {empty} {empty}","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {enter}","{shift} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]};
sufuf3/cdnjs
ajax/libs/virtual-keyboard/1.26.19/layouts/ms-Ukrainian.min.js
JavaScript
mit
2,966
/** * Module dependencies. */ var crypto = require('crypto'); /** * Sign the given `val` with `secret`. * * @param {String} val * @param {String} secret * @return {String} * @api private */ exports.sign = function(val, secret){ if ('string' != typeof val) throw new TypeError('cookie required'); if ('string' != typeof secret) throw new TypeError('secret required'); return val + '.' + crypto .createHmac('sha256', secret) .update(val) .digest('base64') .replace(/\=+$/, ''); }; /** * Unsign and decode the given `val` with `secret`, * returning `false` if the signature is invalid. * * @param {String} val * @param {String} secret * @return {String|Boolean} * @api private */ exports.unsign = function(val, secret){ if ('string' != typeof val) throw new TypeError('cookie required'); if ('string' != typeof secret) throw new TypeError('secret required'); var str = val.slice(0, val.lastIndexOf('.')) , mac = exports.sign(str, secret); return sha1(mac) == sha1(val) ? str : false; }; /** * Private */ function sha1(str){ return crypto.createHash('sha1').update(str).digest('hex'); }
hz001/websocket-chat
node_modules/express/node_modules/cookie-signature/index.js
JavaScript
mit
1,148
jQuery.keyboard.layouts["ms-Norwegian"]={name:"ms-Norwegian",lang:["no"],normal:["| 1 2 3 4 5 6 7 8 9 0 + \\ {bksp}","{tab} q w e r t y u i o p å ¨","a s d f g h j k l ø æ ' {enter}","{shift} < z x c v b n m , . - {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['§ ! " # ¤ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Y U I O P Å ^","A S D F G H J K L Ø Æ * {enter}","{shift} > Z X C V B N M ; : _ {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["{empty} {empty} @ £ $ € {empty} { [ ] } {empty} ´ {bksp}","{tab} {empty} {empty} € {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} ~","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {enter}","{shift} {empty} {empty} {empty} {empty} {empty} {empty} {empty} µ {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]},jQuery.keyboard.layouts["ms-Norwegian with Sami"]={name:"ms-Norwegian with Sami",lang:["no"],normal:["| 1 2 3 4 5 6 7 8 9 0 + \\ {bksp}","{tab} q w e r t y u i o p å ¨ '","a s d f g h j k l ø æ {enter}","{shift} < z x c v b n m , . / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['§ ! " # ¤ % & / ( ) = ? ` {bksp}',"{tab} Q W E R T Y U I O P Å ^ *","A S D F G H J K L Ø Æ {enter}","{shift} > Z X C V B N M ; : / {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["{empty} {empty} @ £ $ € {empty} { [ ] } {empty} ´ {bksp}","{tab} â {empty} € {empty} ŧ {empty} {empty} ï õ {empty} {empty} ~ {empty}","á š đ ǥ ǧ ȟ {empty} ǩ {empty} ö ä {enter}","{shift} {empty} ž {empty} č ǯ ʒ ŋ µ {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"],"alt-shift":["{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {bksp}","{tab} Â {empty} {empty} {empty} Ŧ {empty} {empty} Ï Õ {empty} {empty} {empty} {empty}","Á Š Đ Ǥ Ǧ Ȟ {empty} Ǩ {empty} Ö Ä {enter}","{shift} {empty} Ž {empty} Č Ǯ Ʒ Ŋ {empty} {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]};
x112358/cdnjs
ajax/libs/virtual-keyboard/1.26.16/layouts/ms-Norwegian.min.js
JavaScript
mit
2,069
jQuery.keyboard.layouts["ms-Canadian French"]={name:"ms-Canadian French",lang:["fr-ca"],normal:["# 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p ^ ¸ <","a s d f g h j k l ; ` {enter}","{shift} « z x c v b n m , . / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['| ! " / $ % ? & * ( ) _ + {bksp}',"{tab} Q W E R T Y U I O P ^ ¨ >","A S D F G H J K L : ` {enter}","{shift} » Z X C V B N M ' . / {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["\\ ± @ £ ¢ ¤ ¬ ¦ ² ³ ¼ ½ ¾ {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} § ¶ [ ] }","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} ~ { {enter}","{shift} ° {empty} {empty} {empty} {empty} {empty} {empty} µ ¯ ­ {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]},jQuery.keyboard.layouts["ms-Canadian French (Legacy)"]={name:"ms-Canadian French (Legacy)",lang:["fr-ca"],normal:["° 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p ^ ç à","a s d f g h j k l ; è {enter}","{shift} ù z x c v b n m , . / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:['° ! " # $ % ? & * ( ) _ + {bksp}',"{tab} Q W E R T Y U I O P ^ Ç À","A S D F G H J K L : È {enter}","{shift} Ù Z X C V B N M ' . / {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["¬ ¹ @ ³ ¼ ½ ¾ { [ ] } | ¸ {bksp}","{tab} {empty} {empty} {empty} ¶ {empty} ¥ {empty} {empty} ø þ ° ~ {empty}","æ ß ð ª {empty} {empty} {empty} {empty} {empty} ´ {empty} {enter}","{shift} \\ « » ¢ {empty} {empty} {empty} µ < > {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"],"alt-shift":["{empty} ¡ ² £ ¤ {empty} {empty} {empty} {empty} ± {empty} ¿ {empty} {bksp}","{tab} {empty} {empty} {empty} ® {empty} {empty} {empty} {empty} Ø Þ {empty} ¨ {empty}","Æ § Ð {empty} {empty} {empty} {empty} {empty} {empty} ´ {empty} {enter}","{shift} | {empty} {empty} © {empty} {empty} {empty} º {empty} {empty} {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]},jQuery.keyboard.layouts["ms-Canadian Multilingual Standard"]={name:"ms-Canadian Multilingual Standard",lang:["en-ca"],normal:["/ 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p ^ ç {enter}","a s d f g h j k l ; è à ","{shift} ù z x c v b n m , . é {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:["\\ ! @ # $ % ? & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P ¨ Ç {enter}","A S D F G H J K L : È À ","{shift} Ù Z X C V B N M ' \" É {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["| {empty} {empty} {empty} {empty} {empty} {empty} { } [ ] {empty} ¬ {bksp}","{tab} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} ` ~ {enter}","{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} ° {empty} {empty} ","{shift} {empty} « » {empty} {empty} {empty} {empty} {empty} < > {empty} {shift}","{accept} {alt} {space} {alt} {cancel}"]};
sashberd/cdnjs
ajax/libs/virtual-keyboard/1.25.6/layouts/ms-Canadian.min.js
JavaScript
mit
2,940
/* * blueimp Gallery Vimeo Video Factory JS 1.1.0 * https://github.com/blueimp/Gallery * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document, location, $f */ (function (factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // Register as an anonymous AMD module: define([ './blueimp-helper', './blueimp-gallery-video' ], factory); } else { // Browser globals: factory( window.blueimp.helper || window.jQuery, window.blueimp.Gallery ); } }(function ($, Gallery) { 'use strict'; if (!window.postMessage) { return Gallery; } $.extend(Gallery.prototype.options, { // The list object property (or data attribute) with the Vimeo video id: vimeoVideoIdProperty: 'vimeo', // The URL for the Vimeo video player, can be extended with custom parameters: // https://developer.vimeo.com/player/embedding vimeoPlayerUrl: '//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID', // The prefix for the Vimeo video player ID: vimeoPlayerIdPrefix: 'vimeo-player-', // Require a click on the native Vimeo player for the initial playback: vimeoClickToPlay: true }); var textFactory = Gallery.prototype.textFactory || Gallery.prototype.imageFactory, VimeoPlayer = function (url, videoId, playerId, clickToPlay) { this.url = url; this.videoId = videoId; this.playerId = playerId; this.clickToPlay = clickToPlay; this.element = document.createElement('div'); this.listeners = {}; }, counter = 0; $.extend(VimeoPlayer.prototype, { canPlayType: function () { return true; }, on: function (type, func) { this.listeners[type] = func; return this; }, loadAPI: function () { var that = this, apiUrl = '//' + (location.protocol === 'https' ? 'secure-' : '') + 'a.vimeocdn.com/js/froogaloop2.min.js', scriptTags = document.getElementsByTagName('script'), i = scriptTags.length, scriptTag, called, callback = function () { if (!called && that.playOnReady) { that.play(); } called = true; }; while (i) { i -= 1; if (scriptTags[i].src === apiUrl) { scriptTag = scriptTags[i]; break; } } if (!scriptTag) { scriptTag = document.createElement('script'); scriptTag.src = apiUrl; } $(scriptTag).on('load', callback); scriptTags[0].parentNode.insertBefore(scriptTag, scriptTags[0]); // Fix for cached scripts on IE 8: if (/loaded|complete/.test(scriptTag.readyState)) { callback(); } }, onReady: function () { var that = this; this.ready = true; this.player.addEvent('play', function () { that.hasPlayed = true; that.onPlaying(); }); this.player.addEvent('pause', function () { that.onPause(); }); this.player.addEvent('finish', function () { that.onPause(); }); if (this.playOnReady) { this.play(); } }, onPlaying: function () { if (this.playStatus < 2) { this.listeners.playing(); this.playStatus = 2; } }, onPause: function () { this.listeners.pause(); delete this.playStatus; }, insertIframe: function () { var iframe = document.createElement('iframe'); iframe.src = this.url .replace('VIDEO_ID', this.videoId) .replace('PLAYER_ID', this.playerId); iframe.id = this.playerId; this.element.parentNode.replaceChild(iframe, this.element); this.element = iframe; }, play: function () { var that = this; if (!this.playStatus) { this.listeners.play(); this.playStatus = 1; } if (this.ready) { if (!this.hasPlayed && (this.clickToPlay || (window.navigator && /iP(hone|od|ad)/.test(window.navigator.platform)))) { // Manually trigger the playing callback if clickToPlay // is enabled and to workaround a limitation in iOS, // which requires synchronous user interaction to start // the video playback: this.onPlaying(); } else { this.player.api('play'); } } else { this.playOnReady = true; if (!window.$f) { this.loadAPI(); } else if (!this.player) { this.insertIframe(); this.player = $f(this.element); this.player.addEvent('ready', function () { that.onReady(); }); } } }, pause: function () { if (this.ready) { this.player.api('pause'); } else if (this.playStatus) { delete this.playOnReady; this.listeners.pause(); delete this.playStatus; } } }); $.extend(Gallery.prototype, { VimeoPlayer: VimeoPlayer, textFactory: function (obj, callback) { var videoId = this.getItemProperty(obj, this.options.vimeoVideoIdProperty); if (videoId) { counter += 1; return this.videoFactory( obj, callback, new VimeoPlayer( this.options.vimeoPlayerUrl, videoId, this.options.vimeoPlayerIdPrefix + counter, this.options.vimeoClickToPlay ) ); } return textFactory.call(this, obj, callback); } }); return Gallery; }));
him2him2/cdnjs
ajax/libs/blueimp-gallery/2.13.1/js/blueimp-gallery-vimeo.js
JavaScript
mit
6,771
/*! * jReject (jQuery Browser Rejection Plugin) * Version 1.1.x * URL: http://jreject.turnwheel.com/ * Description: jReject is a easy method of rejecting specific browsers on your site * Author: Steven Bower (TurnWheel Designs) http://turnwheel.com/ * Copyright: Copyright (c) 2009-2014 Steven Bower under dual MIT/GPLv2 license. */ (function($) { $.reject = function(options) { var opts = $.extend(true, { // Specifies which browsers/versions will be blocked reject : { all: false, // Covers Everything (Nothing blocked) msie: 6 // Covers MSIE <= 6 (Blocked by default) /* * Many possible combinations. * You can specify browser (msie, chrome, firefox) * You can specify rendering engine (geko, trident) * You can specify OS (Win, Mac, Linux, Solaris, iPhone, iPad) * * You can specify versions of each. * Examples: msie9: true, firefox8: true, * * You can specify the highest number to reject. * Example: msie: 9 (9 and lower are rejected. * * There is also "unknown" that covers what isn't detected * Example: unknown: true */ }, display: [], // What browsers to display and their order (default set below) browserShow: true, // Should the browser options be shown? browserInfo: { // Settings for which browsers to display chrome: { // Text below the icon text: 'Google Chrome', // URL For icon/text link url: 'http://www.google.com/chrome/' // (Optional) Use "allow" to customized when to show this option // Example: to show chrome only for IE users // allow: { all: false, msie: true } }, firefox: { text: 'Mozilla Firefox', url: 'http://www.mozilla.com/firefox/' }, safari: { text: 'Safari', url: 'http://www.apple.com/safari/download/' }, opera: { text: 'Opera', url: 'http://www.opera.com/download/' }, msie: { text: 'Internet Explorer', url: 'http://www.microsoft.com/windows/Internet-explorer/' } }, // Pop-up Window Text header: 'Did you know that your Internet Browser is out of date?', paragraph1: 'Your browser is out of date, and may not be compatible with '+ 'our website. A list of the most popular web browsers can be '+ 'found below.', paragraph2: 'Just click on the icons to get to the download page', // Allow closing of window close: true, // Message displayed below closing link closeMessage: 'By closing this window you acknowledge that your experience '+ 'on this website may be degraded', closeLink: 'Close This Window', closeURL: '#', // Allows closing of window with esc key closeESC: true, // Use cookies to remmember if window was closed previously? closeCookie: false, // Cookie settings are only used if closeCookie is true cookieSettings: { // Path for the cookie to be saved on // Should be root domain in most cases path: '/', // Expiration Date (in seconds) // 0 (default) means it ends with the current session expires: 0 }, // Path where images are located imagePath: './images/', // Background color for overlay overlayBgColor: '#000', // Background transparency (0-1) overlayOpacity: 0.8, // Fade in time on open ('slow','medium','fast' or integer in ms) fadeInTime: 'fast', // Fade out time on close ('slow','medium','fast' or integer in ms) fadeOutTime: 'fast', // Google Analytics Link Tracking (Optional) // Set to true to enable // Note: Analytics tracking code must be added separately analytics: false }, options); // Set default browsers to display if not already defined if (opts.display.length < 1) { opts.display = [ 'chrome','firefox','safari','opera','msie' ]; } // beforeRject: Customized Function if ($.isFunction(opts.beforeReject)) { opts.beforeReject(); } // Disable 'closeESC' if closing is disabled (mutually exclusive) if (!opts.close) { opts.closeESC = false; } // This function parses the advanced browser options var browserCheck = function(settings) { // Check 1: Look for 'all' forced setting // Check 2: Browser+major version (optional) (eg. 'firefox','msie','{msie: 6}') // Check 3: Browser+major version (eg. 'firefox3','msie7','chrome4') // Check 4: Rendering engine+version (eg. 'webkit', 'gecko', '{webkit: 537.36}') // Check 5: Operating System (eg. 'win','mac','linux','solaris','iphone') var layout = settings[$.layout.name], browser = settings[$.browser.name]; return !!(settings['all'] || (browser && (browser === true || $.browser.versionNumber <= browser)) || settings[$.browser.className] || (layout && (layout === true || $.layout.versionNumber <= layout)) || settings[$.os.name]); }; // Determine if we need to display rejection for this browser, or exit if (!browserCheck(opts.reject)) { // onFail: Optional Callback if ($.isFunction(opts.onFail)) { opts.onFail(); } return false; } // If user can close and set to remmember close, initiate cookie functions if (opts.close && opts.closeCookie) { // Local global setting for the name of the cookie used var COOKIE_NAME = 'jreject-close'; // Cookies Function: Handles creating/retrieving/deleting cookies // Cookies are only used for opts.closeCookie parameter functionality var _cookie = function(name, value) { // Save cookie if (typeof value != 'undefined') { var expires = ''; // Check if we need to set an expiration date if (opts.cookieSettings.expires !== 0) { var date = new Date(); date.setTime(date.getTime()+(opts.cookieSettings.expires*1000)); expires = "; expires="+date.toGMTString(); } // Get path from settings var path = opts.cookieSettings.path || '/'; // Set Cookie with parameters document.cookie = name+'='+ encodeURIComponent((!value) ? '' : value)+expires+ '; path='+path; return true; } // Get cookie else { var cookie,val = null; if (document.cookie && document.cookie !== '') { var cookies = document.cookie.split(';'); // Loop through all cookie values var clen = cookies.length; for (var i = 0; i < clen; ++i) { cookie = $.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0,name.length+1) == (name+'=')) { var len = name.length; val = decodeURIComponent(cookie.substring(len+1)); break; } } } // Returns cookie value return val; } }; // If cookie is set, return false and don't display rejection if (_cookie(COOKIE_NAME)) { return false; } } // Load background overlay (jr_overlay) + Main wrapper (jr_wrap) + // Inner Wrapper (jr_inner) w/ opts.header (jr_header) + // opts.paragraph1/opts.paragraph2 if set var html = '<div id="jr_overlay"></div><div id="jr_wrap"><div id="jr_inner">'+ '<h1 id="jr_header">'+opts.header+'</h1>'+ (opts.paragraph1 === '' ? '' : '<p>'+opts.paragraph1+'</p>')+ (opts.paragraph2 === '' ? '' : '<p>'+opts.paragraph2+'</p>'); var displayNum = 0; if (opts.browserShow) { html += '<ul>'; // Generate the browsers to display for (var x in opts.display) { var browser = opts.display[x]; // Current Browser var info = opts.browserInfo[browser] || false; // Browser Information // If no info exists for this browser // or if this browser is not suppose to display to this user // based on "allow" flag if (!info || (info['allow'] != undefined && !browserCheck(info['allow']))) { continue; } var url = info.url || '#'; // URL to link text/icon to // Generate HTML for this browser option html += '<li id="jr_'+browser+'"><div class="jr_icon"></div>'+ '<div><a href="'+url+'">'+(info.text || 'Unknown')+'</a>'+ '</div></li>'; ++displayNum; } html += '</ul>'; } // Close list and #jr_list html += '<div id="jr_close">'+ // Display close links/message if set (opts.close ? '<a href="'+opts.closeURL+'">'+opts.closeLink+'</a>'+ '<p>'+opts.closeMessage+'</p>' : '')+'</div>'+ // Close #jr_inner and #jr_wrap '</div></div>'; var element = $('<div>'+html+'</div>'); // Create element var size = _pageSize(); // Get page size var scroll = _scrollSize(); // Get page scroll // This function handles closing this reject window // When clicked, fadeOut and remove all elements element.bind('closejr', function() { // Make sure the permission to close is granted if (!opts.close) { return false; } // Customized Function if ($.isFunction(opts.beforeClose)) { opts.beforeClose(); } // Remove binding function so it // doesn't get called more than once $(this).unbind('closejr'); // Fade out background and modal wrapper $('#jr_overlay,#jr_wrap').fadeOut(opts.fadeOutTime,function() { $(this).remove(); // Remove element from DOM // afterClose: Customized Function if ($.isFunction(opts.afterClose)) { opts.afterClose(); } }); // Show elements that were hidden for layering issues var elmhide = 'embed.jr_hidden, object.jr_hidden, select.jr_hidden, applet.jr_hidden'; $(elmhide).show().removeClass('jr_hidden'); // Set close cookie for next run if (opts.closeCookie) { _cookie(COOKIE_NAME, 'true'); } return true; }); // Tracks clicks in Google Analytics (category 'External Links') // only if opts.analytics is enabled var analytics = function(url) { if (!opts.analytics) { return false; } // Get just the hostname var host = url.split(/\/+/g)[1]; // Send external link event to Google Analaytics // Attempts both versions of analytics code. (Newest first) try { // Newest analytics code ga('send', 'event', 'External', 'Click', host, url); } catch (e) { try { _gaq.push([ '_trackEvent', 'External Links', host, url ]); } catch (e) { } } }; // Called onClick for browser links (and icons) // Opens link in new window var openBrowserLinks = function(url) { // Send link to analytics if enabled analytics(url); // Open window, generate random id value window.open(url, 'jr_'+ Math.round(Math.random()*11)); return false; }; /* * Trverse through element DOM and apply JS variables * All CSS elements that do not require JS will be in * css/jquery.jreject.css */ // Creates 'background' (div) element.find('#jr_overlay').css({ width: size[0], height: size[1], background: opts.overlayBgColor, opacity: opts.overlayOpacity }); // Wrapper for our pop-up (div) element.find('#jr_wrap').css({ top: scroll[1]+(size[3]/4), left: scroll[0] }); // Wrapper for inner centered content (div) element.find('#jr_inner').css({ minWidth: displayNum*100, maxWidth: displayNum*140, // min/maxWidth not supported by IE width: $.layout.name == 'trident' ? displayNum*155 : 'auto' }); element.find('#jr_inner li').css({ // Browser list items (li) background: 'transparent url("'+opts.imagePath+'background_browser.gif") '+ 'no-repeat scroll left top' }); element.find('#jr_inner li .jr_icon').each(function() { // Dynamically sets the icon background image var self = $(this); self.css('background','transparent url('+opts.imagePath+'browser_'+ (self.parent('li').attr('id').replace(/jr_/,''))+'.gif)'+ ' no-repeat scroll left top'); // Send link clicks to openBrowserLinks self.click(function () { var url = $(this).next('div').children('a').attr('href'); openBrowserLinks(url); }); }); element.find('#jr_inner li a').click(function() { openBrowserLinks($(this).attr('href')); return false; }); // Bind closing event to trigger closejr // to be consistant with ESC key close function element.find('#jr_close a').click(function() { $(this).trigger('closejr'); // If plain anchor is set, return false so there is no page jump if (opts.closeURL === '#') { return false; } }); // Set focus (fixes ESC key issues with forms and other focus bugs) $('#jr_overlay').focus(); // Hide elements that won't display properly $('embed, object, select, applet').each(function() { if ($(this).is(':visible')) { $(this).hide().addClass('jr_hidden'); } }); // Append element to body of document to display $('body').append(element.hide().fadeIn(opts.fadeInTime)); // Handle window resize/scroll events and update overlay dimensions $(window).bind('resize scroll',function() { var size = _pageSize(); // Get size // Update overlay dimensions based on page size $('#jr_overlay').css({ width: size[0], height: size[1] }); var scroll = _scrollSize(); // Get page scroll // Update modal position based on scroll $('#jr_wrap').css({ top: scroll[1] + (size[3]/4), left: scroll[0] }); }); // Add optional ESC Key functionality if (opts.closeESC) { $(document).bind('keydown',function(event) { // ESC = Keycode 27 if (event.keyCode == 27) { element.trigger('closejr'); } }); } // afterReject: Customized Function if ($.isFunction(opts.afterReject)) { opts.afterReject(); } return true; }; // Based on compatibility data from quirksmode.com // This is used to help calculate exact center of the page var _pageSize = function() { var xScroll = window.innerWidth && window.scrollMaxX ? window.innerWidth + window.scrollMaxX : (document.body.scrollWidth > document.body.offsetWidth ? document.body.scrollWidth : document.body.offsetWidth); var yScroll = window.innerHeight && window.scrollMaxY ? window.innerHeight + window.scrollMaxY : (document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight); var windowWidth = window.innerWidth ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth); var windowHeight = window.innerHeight ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight); return [ xScroll < windowWidth ? xScroll : windowWidth, // Page Width yScroll < windowHeight ? windowHeight : yScroll, // Page Height windowWidth,windowHeight ]; }; // Based on compatibility data from quirksmode.com var _scrollSize = function() { return [ // scrollSize X window.pageXOffset ? window.pageXOffset : (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollLeft : document.body.scrollLeft), // scrollSize Y window.pageYOffset ? window.pageYOffset : (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) ]; }; })(jQuery); /* * jQuery Browser Plugin * Version 2.4 / jReject 1.0.x * URL: http://jquery.thewikies.com/browser * Description: jQuery Browser Plugin extends browser detection capabilities and * can assign browser selectors to CSS classes. * Author: Nate Cavanaugh, Minhchau Dang, Jonathan Neal, & Gregory Waxman * Updated By: Steven Bower for use with jReject plugin * Copyright: Copyright (c) 2008 Jonathan Neal under dual MIT/GPL license. */ (function ($) { $.browserTest = function (a, z) { var u = 'unknown', x = 'X', m = function (r, h) { for (var i = 0; i < h.length; i = i + 1) { r = r.replace(h[i][0], h[i][1]); } return r; }, c = function (i, a, b, c) { var r = { name: m((a.exec(i) || [u, u])[1], b) }; r[r.name] = true; if (!r.opera) { r.version = (c.exec(i) || [x, x, x, x])[3]; } else { r.version = window.opera.version(); } if (/safari/.test(r.name)) { var safariversion = /(safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/; var res = safariversion.exec(i); if (res && res[3] && res[3] < 400) { r.version = '2.0'; } } else if (r.name === 'presto') { r.version = ($.browser.version > 9.27) ? 'futhark' : 'linear_b'; } if (/msie/.test(r.name) && r.version === x) { var ieVersion = /rv:(\d+\.\d+)/.exec(i); r.version = ieVersion[1]; } r.versionNumber = parseFloat(r.version, 10) || 0; var minorStart = 1; if (r.versionNumber < 100 && r.versionNumber > 9) { minorStart = 2; } r.versionX = (r.version !== x) ? r.version.substr(0, minorStart) : x; r.className = r.name + r.versionX; return r; }; a = (/Opera|Navigator|Minefield|KHTML|Chrome|CriOS/.test(a) ? m(a, [ [/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/, ''], ['Chrome Safari', 'Chrome'], ['CriOS', 'Chrome'], ['KHTML', 'Konqueror'], ['Minefield', 'Firefox'], ['Navigator', 'Netscape'] ]) : a).toLowerCase(); $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|crios|firefox|netscape|konqueror|lynx|msie|trident|opera|safari)/, [ ['trident', 'msie'] ], /(camino|chrome|crios|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|rv|safari)(:|\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/)); $.layout = c(a, /(gecko|konqueror|msie|trident|opera|webkit)/, [ ['konqueror', 'khtml'], ['msie', 'trident'], ['opera', 'presto'] ], /(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/); $.os = { name: (/(win|mac|linux|sunos|solaris|iphone|ipad)/. exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris') }; if (!z) { $('html').addClass([$.os.name, $.browser.name, $.browser.className, $.layout.name, $.layout.className].join(' ')); } }; $.browserTest(navigator.userAgent); }(jQuery));
CyrusSUEN/cdnjs
ajax/libs/jReject/1.1.4/js/jquery.reject.js
JavaScript
mit
17,575
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react")):"function"==typeof define&&define.amd?define(["mobx","react"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react")):e.mobxReact=t(e.mobx,e.React)}(this,function(e,t){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PropTypes=t.propTypes=t.inject=t.Provider=t.useStaticRendering=t.trackComponents=t.componentByNodeRegistery=t.renderReporter=t.Observer=t.observer=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=r(1);Object.defineProperty(t,"observer",{enumerable:!0,get:function(){return a.observer}}),Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return a.Observer}}),Object.defineProperty(t,"renderReporter",{enumerable:!0,get:function(){return a.renderReporter}}),Object.defineProperty(t,"componentByNodeRegistery",{enumerable:!0,get:function(){return a.componentByNodeRegistery}}),Object.defineProperty(t,"trackComponents",{enumerable:!0,get:function(){return a.trackComponents}}),Object.defineProperty(t,"useStaticRendering",{enumerable:!0,get:function(){return a.useStaticRendering}});var s=r(8);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return o(s).default}});var u=r(6);Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return o(u).default}});var c=r(2),f=n(c),l=r(3),p=o(l),d=(r(4),r(4),r(9)),b=n(d),y=void 0;if(y="mobx-react/custom",!f)throw new Error(y+" requires the MobX package");if(!p.default)throw new Error(y+" requires React to be available");t.propTypes=b,t.PropTypes=b,t.default=e.exports,"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":i(__MOBX_DEVTOOLS_GLOBAL_HOOK__))&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(e.exports,f)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return h.default?h.default.findDOMNode(e):null}function i(e){var t=o(e);t&&S&&S.set(t,e),M.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function a(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");_||(_=!0)}function s(e){w=e}function u(e,t){var r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],n=e[t],o=R[t];n?e[t]=r===!0?function(){o.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),o.apply(this,arguments)}:e[t]=o}function c(e,t){if(null==e||null==t||"object"!==("undefined"==typeof e?"undefined":p(e))||"object"!==("undefined"==typeof t?"undefined":p(t)))return e!==t;var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(var n=void 0,o=r.length-1;n=r[o];o--)if(t[n]!==e[n])return!0;return!1}function f(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return P||(P=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?x.default.apply(null,e)(f(t)):function(t){return f(e,t)};var r=e;if(r.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof r||r.prototype&&r.prototype.render||r.isReactClass||v.default.Component.isPrototypeOf(r)))return f(v.default.createClass({displayName:r.displayName||r.name,propTypes:r.propTypes,contextTypes:r.contextTypes,getDefaultProps:function(){return r.defaultProps},render:function(){return r.call(this,this.props,this.context)}}));if(!r)throw new Error("Please pass a valid component to 'observer'");var n=r.prototype||r;return l(n),r.isMobXReactObserver=!0,r}function l(e){u(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){u(e,t)}),e.shouldComponentUpdate||(e.shouldComponentUpdate=R.shouldComponentUpdate)}Object.defineProperty(t,"__esModule",{value:!0}),t.Observer=t.renderReporter=t.componentByNodeRegistery=void 0;var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.trackComponents=a,t.useStaticRendering=s,t.observer=f;var d=r(2),b=n(d),y=r(3),v=n(y),m=r(4),h=n(m),O=r(5),g=n(O),j=r(6),x=n(j),_=!1,w=!1,P=!1,S=t.componentByNodeRegistery="undefined"!=typeof WeakMap?new WeakMap:void 0,M=t.renderReporter=new g.default,R={componentWillMount:function(){function e(e){var t=this[e],r=new b.default.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){!i&&c(t,e)?(t=e,o=!0,r.reportChanged(),o=!1):t=e}})}var t=this;if(w!==!0){var r=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",n=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,o=!1,i=!1;e.call(this,"props"),e.call(this,"state");var a=this.render.bind(this),s=null,u=!1,f=function(){return s=new b.default.Reaction(r+"#"+n+".render()",function(){if(!u&&(u=!0,"function"==typeof t.componentWillReact&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var e=!0;try{i=!0,o||v.default.Component.prototype.forceUpdate.call(t),e=!1}finally{i=!1,e&&s.dispose()}}}),l.$mobx=s,t.render=l,l()},l=function(){u=!1;var e=void 0;return s.track(function(){_&&(t.__$mobRenderStart=Date.now()),e=b.default.extras.allowStateChanges(!1,a),_&&(t.__$mobRenderEnd=Date.now())}),e};this.render=f}},componentWillUnmount:function(){if(w!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,_)){var e=o(this);e&&S&&S.delete(e),M.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){_&&i(this)},componentDidUpdate:function(){_&&i(this)},shouldComponentUpdate:function(e,t){return w&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||c(this.props,e)}},T=t.Observer=f(function(e){var t=e.children;return t()});T.propTypes={children:v.default.PropTypes.func.isRequired}},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=null},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(){r(this,e),this.listeners=[]}return n(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var r=t.listeners.indexOf(e);r!==-1&&t.listeners.splice(r,1)}}},{key:"emit",value:function(e){this.listeners.forEach(function(t){return t(e)})}}]),e}();t.default=o},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r){var n="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");r&&(n+="-with-"+r);var o=c.default.createClass({displayName:n,storeRef:function(e){this.wrappedInstance=e},render:function(){var r={};for(var n in this.props)this.props.hasOwnProperty(n)&&(r[n]=this.props[n]);var o=e(this.context.mobxStores||{},r,this.context)||{};for(var i in o)r[i]=o[i];return r.ref=this.storeRef,c.default.createElement(t,r)}});return(0,l.default)(o,t),o.wrappedComponent=t,Object.defineProperties(o,b),o}function i(e){return function(t,r){return e.forEach(function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX observer: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}}),r}}function a(){var e=arguments,t=void 0;if("function"==typeof arguments[0])return t=arguments[0],function(e){var r=o(t,e);return r.isMobxInjector=!1,r=(0,p.observer)(r),r.isMobxInjector=!0,r};var r=function(){for(var r=[],n=0;n<e.length;n++)r[n]=e[n];return t=i(r),{v:function(e){return o(t,e,r.join("-"))}}}();return"object"===("undefined"==typeof r?"undefined":s(r))?r.v:void 0}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.default=a;var u=r(3),c=n(u),f=r(7),l=n(f),p=r(1),d={mobxStores:u.PropTypes.object};Object.seal(d);var b={contextTypes:{get:function(){return d},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}}},function(e,t){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,i){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;++s)if(!(r[a[s]]||n[a[s]]||i&&i[a[s]]))try{e[a[s]]=t[a[s]]}catch(e){}}return e}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),f=r(3),l=n(f),p={children:!0,key:!0,ref:!0},d=(u=s=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){return l.default.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var r in t)e[r]=t[r];for(var n in this.props)p[n]||(e[n]=this.props[n]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children");for(var t in e)p[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(f.Component),s.contextTypes={mobxStores:f.PropTypes.object},s.childContextTypes={mobxStores:f.PropTypes.object.isRequired},u);t.default=d},function(e,t,r){"use strict";function n(e){function t(t,r,n,o,i,a){for(var s=arguments.length,u=Array(s>6?s-6:0),c=6;c<s;c++)u[c-6]=arguments[c];return(0,f.untracked)(function(){if(o=o||"<<anonymous>>",a=a||n,null==r[n]){if(t){var s=null===r[n]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[r,n,o,i,a].concat(u))})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function o(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function i(e){var t="undefined"==typeof e?"undefined":c(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":o(t,e)?"symbol":t}function a(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function s(e,t){return n(function(r,n,o,s,u){return(0,f.untracked)(function(){if(e&&i(r[n])===t.toLowerCase())return null;var s=void 0;switch(t){case"Array":s=f.isObservableArray;break;case"Object":s=f.isObservableObject;break;case"Map":s=f.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=r[n];if(!s(c)){var l=a(c),p=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+p+".")}return null})})}function u(e,t){return n(function(r,n,o,i,a){for(var u=arguments.length,c=Array(u>5?u-5:0),l=5;l<u;l++)c[l-5]=arguments[l];return(0,f.untracked)(function(){if("function"!=typeof t)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var u=s(e,"Array")(r,n,o);if(u instanceof Error)return u;for(var f=r[n],l=0;l<f.length;l++)if(u=t.apply(void 0,[f,l,o,i,a+"["+l+"]"].concat(c)),u instanceof Error)return u;return null})})}Object.defineProperty(t,"__esModule",{value:!0}),t.objectOrObservableObject=t.arrayOrObservableArrayOf=t.arrayOrObservableArray=t.observableObject=t.observableMap=t.observableArrayOf=t.observableArray=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=r(2);t.observableArray=s(!1,"Array"),t.observableArrayOf=u.bind(null,!1),t.observableMap=s(!1,"Map"),t.observableObject=s(!1,"Object"),t.arrayOrObservableArray=s(!0,"Array"),t.arrayOrObservableArrayOf=u.bind(null,!0),t.objectOrObservableObject=s(!0,"Object")}])}); //# sourceMappingURL=custom.min.js.map
brix/cdnjs
ajax/libs/mobx-react/4.0.3-rc/custom.min.js
JavaScript
mit
14,816
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js * * Copyright (c) 2009-2014 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_SansSerif={directory:"SansSerif/Regular",family:"MathJax_SansSerif",testString:"MathJax SansSerif ^ _",Ranges:[[0,127,"BasicLatin"],[128,65535,"Other"],[768,879,"CombDiacritMarks"]]};MathJax.Callback.Queue(["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_SansSerif"],["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/SansSerif/Regular/Main.js"]);
redmunds/cdnjs
ajax/libs/mathjax/2.4.0/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js
JavaScript
mit
1,119
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Tests\Acl\Domain; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; use Symfony\Component\Security\Acl\Domain\Acl; use Symfony\Component\Security\Acl\Domain\DoctrineAclCache; use Doctrine\Common\Cache\ArrayCache; class DoctrineAclCacheTest extends \PHPUnit_Framework_TestCase { protected $permissionGrantingStrategy; /** * @expectedException \InvalidArgumentException * @dataProvider getEmptyValue */ public function testConstructorDoesNotAcceptEmptyPrefix($empty) { new DoctrineAclCache(new ArrayCache(), $this->getPermissionGrantingStrategy(), $empty); } public function getEmptyValue() { return array( array(null), array(false), array(''), ); } public function test() { $cache = $this->getCache(); $aclWithParent = $this->getAcl(1); $acl = $this->getAcl(); $cache->putInCache($aclWithParent); $cache->putInCache($acl); $cachedAcl = $cache->getFromCacheByIdentity($acl->getObjectIdentity()); $this->assertEquals($acl->getId(), $cachedAcl->getId()); $this->assertNull($acl->getParentAcl()); $cachedAclWithParent = $cache->getFromCacheByIdentity($aclWithParent->getObjectIdentity()); $this->assertEquals($aclWithParent->getId(), $cachedAclWithParent->getId()); $this->assertNotNull($cachedParentAcl = $cachedAclWithParent->getParentAcl()); $this->assertEquals($aclWithParent->getParentAcl()->getId(), $cachedParentAcl->getId()); } protected function getAcl($depth = 0) { static $id = 1; $acl = new Acl($id, new ObjectIdentity($id, 'foo'), $this->getPermissionGrantingStrategy(), array(), $depth > 0); // insert some ACEs $sid = new UserSecurityIdentity('johannes', 'Foo'); $acl->insertClassAce($sid, 1); $acl->insertClassFieldAce('foo', $sid, 1); $acl->insertObjectAce($sid, 1); $acl->insertObjectFieldAce('foo', $sid, 1); $id++; if ($depth > 0) { $acl->setParentAcl($this->getAcl($depth - 1)); } return $acl; } protected function getPermissionGrantingStrategy() { if (null === $this->permissionGrantingStrategy) { $this->permissionGrantingStrategy = new PermissionGrantingStrategy(); } return $this->permissionGrantingStrategy; } protected function getCache($cacheDriver = null, $prefix = DoctrineAclCache::PREFIX) { if (null === $cacheDriver) { $cacheDriver = new ArrayCache(); } return new DoctrineAclCache($cacheDriver, $this->getPermissionGrantingStrategy(), $prefix); } protected function setUp() { if (!class_exists('Doctrine\DBAL\DriverManager')) { $this->markTestSkipped('The Doctrine2 DBAL is required for this test'); } } }
nwisniewski/blog
vendor/symfony/symfony/src/Symfony/Component/Security/Tests/Acl/Domain/DoctrineAclCacheTest.php
PHP
mit
3,342
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) * @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License * @link https://codeigniter.com * @since Version 3.0.0 * @filesource */ defined('BASEPATH') OR exit('No direct script access allowed'); /** * PDO MySQL Database Adapter Class * * Note: _DB is an extender class that the app controller * creates dynamically based on whether the query builder * class is being used or not. * * @package CodeIgniter * @subpackage Drivers * @category Database * @author EllisLab Dev Team * @link https://codeigniter.com/user_guide/database/ */ class CI_DB_pdo_mysql_driver extends CI_DB_pdo_driver { /** * Sub-driver * * @var string */ public $subdriver = 'mysql'; /** * Compression flag * * @var bool */ public $compress = FALSE; /** * Strict ON flag * * Whether we're running in strict SQL mode. * * @var bool */ public $stricton; // -------------------------------------------------------------------- /** * Identifier escape character * * @var string */ protected $_escape_char = '`'; // -------------------------------------------------------------------- /** * Class constructor * * Builds the DSN if not already set. * * @param array $params * @return void */ public function __construct($params) { parent::__construct($params); if (empty($this->dsn)) { $this->dsn = 'mysql:host='.(empty($this->hostname) ? '127.0.0.1' : $this->hostname); empty($this->port) OR $this->dsn .= ';port='.$this->port; empty($this->database) OR $this->dsn .= ';dbname='.$this->database; empty($this->char_set) OR $this->dsn .= ';charset='.$this->char_set; } elseif ( ! empty($this->char_set) && strpos($this->dsn, 'charset=', 6) === FALSE && is_php('5.3.6')) { $this->dsn .= ';charset='.$this->char_set; } } // -------------------------------------------------------------------- /** * Database connection * * @param bool $persistent * @return object */ public function db_connect($persistent = FALSE) { /* Prior to PHP 5.3.6, even if the charset was supplied in the DSN * on connect - it was ignored. This is a work-around for the issue. * * Reference: http://www.php.net/manual/en/ref.pdo-mysql.connection.php */ if ( ! is_php('5.3.6') && ! empty($this->char_set)) { $this->options[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES '.$this->char_set .(empty($this->dbcollat) ? '' : ' COLLATE '.$this->dbcollat); } if (isset($this->stricton)) { if ($this->stricton) { $sql = 'CONCAT(@@sql_mode, ",", "STRICT_ALL_TABLES")'; } else { $sql = 'REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( @@sql_mode, "STRICT_ALL_TABLES,", ""), ",STRICT_ALL_TABLES", ""), "STRICT_ALL_TABLES", ""), "STRICT_TRANS_TABLES,", ""), ",STRICT_TRANS_TABLES", ""), "STRICT_TRANS_TABLES", "")'; } if ( ! empty($sql)) { if (empty($this->options[PDO::MYSQL_ATTR_INIT_COMMAND])) { $this->options[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET SESSION sql_mode = '.$sql; } else { $this->options[PDO::MYSQL_ATTR_INIT_COMMAND] .= ', @@session.sql_mode = '.$sql; } } } if ($this->compress === TRUE) { $this->options[PDO::MYSQL_ATTR_COMPRESS] = TRUE; } // SSL support was added to PDO_MYSQL in PHP 5.3.7 if (is_array($this->encrypt) && is_php('5.3.7')) { $ssl = array(); empty($this->encrypt['ssl_key']) OR $ssl[PDO::MYSQL_ATTR_SSL_KEY] = $this->encrypt['ssl_key']; empty($this->encrypt['ssl_cert']) OR $ssl[PDO::MYSQL_ATTR_SSL_CERT] = $this->encrypt['ssl_cert']; empty($this->encrypt['ssl_ca']) OR $ssl[PDO::MYSQL_ATTR_SSL_CA] = $this->encrypt['ssl_ca']; empty($this->encrypt['ssl_capath']) OR $ssl[PDO::MYSQL_ATTR_SSL_CAPATH] = $this->encrypt['ssl_capath']; empty($this->encrypt['ssl_cipher']) OR $ssl[PDO::MYSQL_ATTR_SSL_CIPHER] = $this->encrypt['ssl_cipher']; // DO NOT use array_merge() here! // It re-indexes numeric keys and the PDO_MYSQL_ATTR_SSL_* constants are integers. empty($ssl) OR $this->options += $ssl; } // Prior to version 5.7.3, MySQL silently downgrades to an unencrypted connection if SSL setup fails if ( ($pdo = parent::db_connect($persistent)) !== FALSE && ! empty($ssl) && version_compare($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION), '5.7.3', '<=') && empty($pdo->query("SHOW STATUS LIKE 'ssl_cipher'")->fetchObject()->Value) ) { $message = 'PDO_MYSQL was configured for an SSL connection, but got an unencrypted connection instead!'; log_message('error', $message); return ($this->db->db_debug) ? $this->db->display_error($message, '', TRUE) : FALSE; } return $pdo; } // -------------------------------------------------------------------- /** * Select the database * * @param string $database * @return bool */ public function db_select($database = '') { if ($database === '') { $database = $this->database; } if (FALSE !== $this->simple_query('USE '.$this->escape_identifiers($database))) { $this->database = $database; return TRUE; } return FALSE; } // -------------------------------------------------------------------- /** * Show table query * * Generates a platform-specific query string so that the table names can be fetched * * @param bool $prefix_limit * @return string */ protected function _list_tables($prefix_limit = FALSE) { $sql = 'SHOW TABLES'; if ($prefix_limit === TRUE && $this->dbprefix !== '') { return $sql." LIKE '".$this->escape_like_str($this->dbprefix)."%'"; } return $sql; } // -------------------------------------------------------------------- /** * Show column query * * Generates a platform-specific query string so that the column names can be fetched * * @param string $table * @return string */ protected function _list_columns($table = '') { return 'SHOW COLUMNS FROM '.$this->protect_identifiers($table, TRUE, NULL, FALSE); } // -------------------------------------------------------------------- /** * Returns an object with field data * * @param string $table * @return array */ public function field_data($table) { if (($query = $this->query('SHOW COLUMNS FROM '.$this->protect_identifiers($table, TRUE, NULL, FALSE))) === FALSE) { return FALSE; } $query = $query->result_object(); $retval = array(); for ($i = 0, $c = count($query); $i < $c; $i++) { $retval[$i] = new stdClass(); $retval[$i]->name = $query[$i]->Field; sscanf($query[$i]->Type, '%[a-z](%d)', $retval[$i]->type, $retval[$i]->max_length ); $retval[$i]->default = $query[$i]->Default; $retval[$i]->primary_key = (int) ($query[$i]->Key === 'PRI'); } return $retval; } // -------------------------------------------------------------------- /** * Truncate statement * * Generates a platform-specific truncate string from the supplied data * * If the database does not support the TRUNCATE statement, * then this method maps to 'DELETE FROM table' * * @param string $table * @return string */ protected function _truncate($table) { return 'TRUNCATE '.$table; } // -------------------------------------------------------------------- /** * FROM tables * * Groups tables in FROM clauses if needed, so there is no confusion * about operator precedence. * * @return string */ protected function _from_tables() { if ( ! empty($this->qb_join) && count($this->qb_from) > 1) { return '('.implode(', ', $this->qb_from).')'; } return implode(', ', $this->qb_from); } }
Paull/CI_Admin
system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php
PHP
mit
9,404
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * <http://www.doctrine-project.org>. */ namespace Doctrine\DBAL\Driver\OCI8; use PDO; use IteratorAggregate; use Doctrine\DBAL\Driver\Statement; /** * The OCI8 implementation of the Statement interface. * * @since 2.0 * @author Roman Borschel <roman@code-factory.org> */ class OCI8Statement implements \IteratorAggregate, Statement { /** * @var resource */ protected $_dbh; /** * @var resource */ protected $_sth; /** * @var \Doctrine\DBAL\Driver\OCI8\OCI8Connection */ protected $_conn; /** * @var string */ protected static $_PARAM = ':param'; /** * @var array */ protected static $fetchModeMap = array( PDO::FETCH_BOTH => OCI_BOTH, PDO::FETCH_ASSOC => OCI_ASSOC, PDO::FETCH_NUM => OCI_NUM, PDO::FETCH_COLUMN => OCI_NUM, ); /** * @var integer */ protected $_defaultFetchMode = PDO::FETCH_BOTH; /** * @var array */ protected $_paramMap = array(); /** * Creates a new OCI8Statement that uses the given connection handle and SQL statement. * * @param resource $dbh The connection handle. * @param string $statement The SQL statement. * @param \Doctrine\DBAL\Driver\OCI8\OCI8Connection $conn */ public function __construct($dbh, $statement, OCI8Connection $conn) { list($statement, $paramMap) = self::convertPositionalToNamedPlaceholders($statement); $this->_sth = oci_parse($dbh, $statement); $this->_dbh = $dbh; $this->_paramMap = $paramMap; $this->_conn = $conn; } /** * Converts positional (?) into named placeholders (:param<num>). * * Oracle does not support positional parameters, hence this method converts all * positional parameters into artificially named parameters. Note that this conversion * is not perfect. All question marks (?) in the original statement are treated as * placeholders and converted to a named parameter. * * The algorithm uses a state machine with two possible states: InLiteral and NotInLiteral. * Question marks inside literal strings are therefore handled correctly by this method. * This comes at a cost, the whole sql statement has to be looped over. * * @todo extract into utility class in Doctrine\DBAL\Util namespace * @todo review and test for lost spaces. we experienced missing spaces with oci8 in some sql statements. * * @param string $statement The SQL statement to convert. * * @return string */ static public function convertPositionalToNamedPlaceholders($statement) { $count = 1; $inLiteral = false; // a valid query never starts with quotes $stmtLen = strlen($statement); $paramMap = array(); for ($i = 0; $i < $stmtLen; $i++) { if ($statement[$i] == '?' && !$inLiteral) { // real positional parameter detected $paramMap[$count] = ":param$count"; $len = strlen($paramMap[$count]); $statement = substr_replace($statement, ":param$count", $i, 1); $i += $len-1; // jump ahead $stmtLen = strlen($statement); // adjust statement length ++$count; } else if ($statement[$i] == "'" || $statement[$i] == '"') { $inLiteral = ! $inLiteral; // switch state! } } return array($statement, $paramMap); } /** * {@inheritdoc} */ public function bindValue($param, $value, $type = null) { return $this->bindParam($param, $value, $type, null); } /** * {@inheritdoc} */ public function bindParam($column, &$variable, $type = null, $length = null) { $column = isset($this->_paramMap[$column]) ? $this->_paramMap[$column] : $column; if ($type == \PDO::PARAM_LOB) { $lob = oci_new_descriptor($this->_dbh, OCI_D_LOB); $lob->writeTemporary($variable, OCI_TEMP_BLOB); return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB); } else if ($length !== null) { return oci_bind_by_name($this->_sth, $column, $variable, $length); } return oci_bind_by_name($this->_sth, $column, $variable); } /** * {@inheritdoc} */ public function closeCursor() { return oci_free_statement($this->_sth); } /** * {@inheritdoc} */ public function columnCount() { return oci_num_fields($this->_sth); } /** * {@inheritdoc} */ public function errorCode() { $error = oci_error($this->_sth); if ($error !== false) { $error = $error['code']; } return $error; } /** * {@inheritdoc} */ public function errorInfo() { return oci_error($this->_sth); } /** * {@inheritdoc} */ public function execute($params = null) { if ($params) { $hasZeroIndex = array_key_exists(0, $params); foreach ($params as $key => $val) { if ($hasZeroIndex && is_numeric($key)) { $this->bindValue($key + 1, $val); } else { $this->bindValue($key, $val); } } } $ret = @oci_execute($this->_sth, $this->_conn->getExecuteMode()); if ( ! $ret) { throw OCI8Exception::fromErrorInfo($this->errorInfo()); } return $ret; } /** * {@inheritdoc} */ public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) { $this->_defaultFetchMode = $fetchMode; return true; } /** * {@inheritdoc} */ public function getIterator() { $data = $this->fetchAll(); return new \ArrayIterator($data); } /** * {@inheritdoc} */ public function fetch($fetchMode = null) { $fetchMode = $fetchMode ?: $this->_defaultFetchMode; if ( ! isset(self::$fetchModeMap[$fetchMode])) { throw new \InvalidArgumentException("Invalid fetch style: " . $fetchMode); } return oci_fetch_array($this->_sth, self::$fetchModeMap[$fetchMode] | OCI_RETURN_NULLS | OCI_RETURN_LOBS); } /** * {@inheritdoc} */ public function fetchAll($fetchMode = null) { $fetchMode = $fetchMode ?: $this->_defaultFetchMode; if ( ! isset(self::$fetchModeMap[$fetchMode])) { throw new \InvalidArgumentException("Invalid fetch style: " . $fetchMode); } $result = array(); if (self::$fetchModeMap[$fetchMode] === OCI_BOTH) { while ($row = $this->fetch($fetchMode)) { $result[] = $row; } } else { $fetchStructure = OCI_FETCHSTATEMENT_BY_ROW; if ($fetchMode == PDO::FETCH_COLUMN) { $fetchStructure = OCI_FETCHSTATEMENT_BY_COLUMN; } oci_fetch_all($this->_sth, $result, 0, -1, self::$fetchModeMap[$fetchMode] | OCI_RETURN_NULLS | $fetchStructure | OCI_RETURN_LOBS); if ($fetchMode == PDO::FETCH_COLUMN) { $result = $result[0]; } } return $result; } /** * {@inheritdoc} */ public function fetchColumn($columnIndex = 0) { $row = oci_fetch_array($this->_sth, OCI_NUM | OCI_RETURN_NULLS | OCI_RETURN_LOBS); return isset($row[$columnIndex]) ? $row[$columnIndex] : false; } /** * {@inheritdoc} */ public function rowCount() { return oci_num_rows($this->_sth); } }
hugosoltys/ephemit
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
PHP
mit
8,820
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Selectable - Serialize</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.6.2.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> <script src="../../ui/jquery.ui.mouse.js"></script> <script src="../../ui/jquery.ui.selectable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> #feedback { font-size: 1.4em; } #selectable .ui-selecting { background: #FECA40; } #selectable .ui-selected { background: #F39814; color: white; } #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } </style> <script> $(function() { $( "#selectable" ).selectable({ stop: function() { var result = $( "#select-result" ).empty(); $( ".ui-selected", this ).each(function() { var index = $( "#selectable li" ).index( this ); result.append( " #" + ( index + 1 ) ); }); } }); }); </script> </head> <body> <div class="demo"> <p id="feedback"> <span>You've selected:</span> <span id="select-result">none</span>. </p> <ol id="selectable"> <li class="ui-widget-content">Item 1</li> <li class="ui-widget-content">Item 2</li> <li class="ui-widget-content">Item 3</li> <li class="ui-widget-content">Item 4</li> <li class="ui-widget-content">Item 5</li> <li class="ui-widget-content">Item 6</li> </ol> </div><!-- End demo --> <div class="demo-description"> <p>Write a function that fires on the <code>stop</code> event to collect the index values of selected items. Present values as feedback, or pass as a data string.</p> </div><!-- End demo-description --> </body> </html>
jdeal/doctor
view/default/jquery-ui/development-bundle/demos/selectable/serialize.html
HTML
mit
1,821
//lcov_reporter (function (){ //takes the option: toHTML {boolean} var body = document.body; var appendHtml = function ( filename,data,toHTML) { var str=""; str += 'SF:' + filename + '\n'; data.source.forEach(function(line, num) { // increase the line number, as JS arrays are zero-based num++; if (data[num] !== undefined) { str += 'DA:' + num + ',' + data[num] + '\n'; } }); str += 'end_of_record\n'; if (toHTML){ var div = document.createElement('div'); div.className = "blanket_lcov_reporter"; div.innerText = str; body.appendChild(div); }else{ window._$blanket_LCOV = str; } }; blanket.customReporter=function(coverageData,options){ var toHTML=true; if (typeof options !== 'undefined' && typeof options.toHTML !== 'undefined'){ toHTML = options.toHTML; } for (var filename in coverageData.files) { var data = coverageData.files[filename]; appendHtml(filename,data,toHTML); } }; })();
squarewave24/rafalbuch.com
node_modules/blanket/src/reporters/lcov_reporter.js
JavaScript
mit
1,164
//! moment.js locale configuration //! locale : German [de] //! author : lluchs : https://github.com/lluchs //! author: Menelion Elensúle: https://github.com/Oire //! author : Mikolaj Dadela : https://github.com/mik01aj ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; function processRelativeTime(number, withoutSuffix, key, isFuture) { var format = { 'm': ['eine Minute', 'einer Minute'], 'h': ['eine Stunde', 'einer Stunde'], 'd': ['ein Tag', 'einem Tag'], 'dd': [number + ' Tage', number + ' Tagen'], 'M': ['ein Monat', 'einem Monat'], 'MM': [number + ' Monate', number + ' Monaten'], 'y': ['ein Jahr', 'einem Jahr'], 'yy': [number + ' Jahre', number + ' Jahren'] }; return withoutSuffix ? format[key][0] : format[key][1]; } var de = moment.defineLocale('de', { months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), monthsParseExact : true, weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT: 'HH:mm', LTS: 'HH:mm:ss', L : 'DD.MM.YYYY', LL : 'D. MMMM YYYY', LLL : 'D. MMMM YYYY HH:mm', LLLL : 'dddd, D. MMMM YYYY HH:mm' }, calendar : { sameDay: '[heute um] LT [Uhr]', sameElse: 'L', nextDay: '[morgen um] LT [Uhr]', nextWeek: 'dddd [um] LT [Uhr]', lastDay: '[gestern um] LT [Uhr]', lastWeek: '[letzten] dddd [um] LT [Uhr]' }, relativeTime : { future : 'in %s', past : 'vor %s', s : 'ein paar Sekunden', ss : '%d Sekunden', m : processRelativeTime, mm : '%d Minuten', h : processRelativeTime, hh : '%d Stunden', d : processRelativeTime, dd : processRelativeTime, M : processRelativeTime, MM : processRelativeTime, y : processRelativeTime, yy : processRelativeTime }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. doy : 4 // The week that contains Jan 4th is the first week of the year. } }); return de; })));
jniltinho/go-samba4
dist/static/bower_components/moment/locale/de.js
JavaScript
mit
2,755
/** * ReactDOMServer v15.0.0-rc.1 * * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ // Based off https://github.com/ForbesLindesay/umd/blob/master/template.js ;(function(f) { // CommonJS if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(require('react')); // RequireJS } else if (typeof define === "function" && define.amd) { define(['react'], f); // <script> } else { var g; if (typeof window !== "undefined") { g = window; } else if (typeof global !== "undefined") { g = global; } else if (typeof self !== "undefined") { g = self; } else { // works providing we're not in "use strict"; // needed for Java 8 Nashorn // see https://github.com/facebook/react/issues/3037 g = this; } g.ReactDOMServer = f(g.React); } })(function(React) { return React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; });
cdnjs/cdnjs
ajax/libs/react/15.0.0-rc.1/react-dom-server.js
JavaScript
mit
1,198
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Xunit; using System; using System.Xml; using System.Xml.XPath; using XPathTests.Common; namespace XPathTests.FunctionalTests.Location.Paths.Axes.ComplexExpressions { /// <summary> /// Location Paths - Axes (Complex expressions) (matches) /// </summary> public static partial class MatchesTests { /// <summary> /// Context node has a ancestor 'publication' so matches should return true /// node()[starts-with(string(name()),'p')]//node()[local-name()=""] /// </summary> [Fact] public static void MatchesTest41() { var xml = "books.xml"; var startingNodePath = "/bookstore/book[3]/author/publication/first.name/text()"; var testExpression = @"node()[starts-with(string(name()),'p')]//node()[local-name()=""""]"; var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, startingNodePath: startingNodePath); } /// <summary> /// Expected: true /// node()//node()[local-name()=""] /// </summary> [Fact] public static void MatchesTest42() { var xml = "books.xml"; var startingNodePath = "/bookstore/book[3]/author/publication/first.name/text()"; var testExpression = @"node()//node()[local-name()=""""]"; var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, startingNodePath: startingNodePath); } /// <summary> /// Uses namespace /// my:* /// </summary> [Fact] public static void MatchesTest43() { var xml = "books.xml"; var startingNodePath = "/bookstore/*[13]"; var testExpression = @"my:*"; var namespaceManager = new XmlNamespaceManager(new NameTable()); namespaceManager.AddNamespace("my", "urn:http//www.placeholder-name-here.com/schema/"); var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, namespaceManager: namespaceManager, startingNodePath: startingNodePath); } /// <summary> /// Expected: true /// bookstore//articles[story1[details]]//node() /// </summary> [Fact] public static void MatchesTest44() { var xml = "books.xml"; var startingNodePath = "/bookstore/magazine[3]/articles/story2/stock/node()"; var testExpression = @"bookstore//articles[story1[details]]//node()"; var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, startingNodePath: startingNodePath); } /// <summary> /// Expected: true /// @dt:dt[name()="dt:dt"][namespace-uri()="urn:uuid:C2F41010-65B3-11d1-A29F-00AA00C14882/"][local-name()="dt"] /// </summary> [Fact] public static void MatchesTest45() { var xml = "books.xml"; var startingNodePath = "/bookstore/magazine[3]/articles/story2/date/@*"; var testExpression = @"@dt:dt[name()=""dt:dt""][namespace-uri()=""urn:uuid:C2F41010-65B3-11d1-A29F-00AA00C14882/""][local-name()=""dt""]"; var namespaceManager = new XmlNamespaceManager(new NameTable()); namespaceManager.AddNamespace("dt", "urn:uuid:C2F41010-65B3-11d1-A29F-00AA00C14882/"); var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, namespaceManager: namespaceManager, startingNodePath: startingNodePath); } /// <summary> /// book[3]//node() /// </summary> [Fact] public static void MatchesTest46() { var xml = "books.xml"; var startingNodePath = "/bookstore/book[3]/author/publication/first.name/text()"; var testExpression = @"book[3]//node()"; var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, startingNodePath: startingNodePath); } /// <summary> /// //book[3]//node()//text() /// </summary> [Fact] public static void MatchesTest47() { var xml = "books.xml"; var startingNodePath = "/bookstore/book[3]/author/publication/first.name/text()"; var testExpression = @"//book[3]//node()//text()"; var expected = true; Utils.XPathMatchTest(xml, testExpression, expected, startingNodePath: startingNodePath); } } }
zhangwenquan/corefx
src/Common/tests/System.Xml.XPath/FuncLocation/PathAxeComplexExprMatchesTests.cs
C#
mit
4,760
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: # Documentation: # https://www.payfast.co.za/s/std/integration-guide module PayFast autoload :Return, File.dirname(__FILE__) + '/pay_fast/return.rb' autoload :Helper, File.dirname(__FILE__) + '/pay_fast/helper.rb' autoload :Notification, File.dirname(__FILE__) + '/pay_fast/notification.rb' autoload :Common, File.dirname(__FILE__) + '/pay_fast/common.rb' # Overwrite this if you want to change the PayFast sandbox url mattr_accessor :process_test_url self.process_test_url = 'https://sandbox.payfast.co.za/eng/process' # Overwrite this if you want to change the PayFast production url mattr_accessor :process_production_url self.process_production_url = 'https://www.payfast.co.za/eng/process' # Overwrite this if you want to change the PayFast sandbox url mattr_accessor :validate_test_url self.validate_test_url = 'https://sandbox.payfast.co.za/eng/query/validate' # Overwrite this if you want to change the PayFast production url mattr_accessor :validate_production_url self.validate_production_url = 'https://www.payfast.co.za/eng/query/validate' mattr_accessor :signature_parameter_name self.signature_parameter_name = 'signature' def self.service_url mode = ActiveMerchant::Billing::Base.integration_mode case mode when :production self.process_production_url when :test self.process_test_url else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end def self.validate_service_url mode = ActiveMerchant::Billing::Base.integration_mode case mode when :production self.validate_production_url when :test self.validate_test_url else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end def self.helper(order, account, options = {}) Helper.new(order, account, options) end def self.notification(query_string, options = {}) Notification.new(query_string, options) end def self.return(post, options = {}) Return.new(post, options) end end end end end
AirPOS/active_merchant
lib/active_merchant/billing/integrations/pay_fast.rb
Ruby
mit
2,493
/*! (C) WebReflection Mit Style License */ (function(e,t,n,r){"use strict";function rt(e,t){for(var n=0,r=e.length;n<r;n++)dt(e[n],t)}function it(e){for(var t=0,n=e.length,r;t<n;t++)r=e[t],tt(r,b[ot(r)])}function st(e){return function(t){j(t)&&(dt(t,e),rt(t.querySelectorAll(w),e))}}function ot(e){var t=e.getAttribute("is"),n=e.nodeName.toUpperCase(),r=S.call(y,t?v+t.toUpperCase():d+n);return t&&-1<r&&!ut(n,t)?-1:r}function ut(e,t){return-1<w.indexOf(e+'[is="'+t+'"]')}function at(e){var t=e.currentTarget,n=e.attrChange,r=e.prevValue,i=e.newValue;nt&&t.attributeChangedCallback&&e.attrName!=="style"&&t.attributeChangedCallback(e.attrName,n===e[a]?null:r,n===e[l]?null:i)}function ft(e){var t=st(e);return function(e){X.push(t,e.target)}}function lt(e){K&&(K=!1,e.currentTarget.removeEventListener(h,lt)),rt((e.target||t).querySelectorAll(w),e.detail===o?o:s),B&&pt()}function ct(e,t){var n=this;q.call(n,e,t),Q.call(n,{target:n})}function ht(e,t){D(e,t),Z?Z.observe(e,z):(J&&(e.setAttribute=ct,e[i]=Y(e),e.addEventListener(p,Q)),e.addEventListener(c,at)),e.createdCallback&&nt&&(e.created=!0,e.createdCallback(),e.created=!1)}function pt(){for(var e,t=0,n=F.length;t<n;t++)e=F[t],E.contains(e)||(F.splice(t,1),dt(e,o))}function dt(e,t){var n,r=ot(e);-1<r&&(et(e,b[r]),r=0,t===s&&!e[s]?(e[o]=!1,e[s]=!0,r=1,B&&S.call(F,e)<0&&F.push(e)):t===o&&!e[o]&&(e[s]=!1,e[o]=!0,r=1),r&&(n=e[t+"Callback"])&&n.call(e))}if(r in t)return;var i="__"+r+(Math.random()*1e5>>0),s="attached",o="detached",u="extends",a="ADDITION",f="MODIFICATION",l="REMOVAL",c="DOMAttrModified",h="DOMContentLoaded",p="DOMSubtreeModified",d="<",v="=",m=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,g=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],y=[],b=[],w="",E=t.documentElement,S=y.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},x=n.prototype,T=x.hasOwnProperty,N=x.isPrototypeOf,C=n.defineProperty,k=n.getOwnPropertyDescriptor,L=n.getOwnPropertyNames,A=n.getPrototypeOf,O=n.setPrototypeOf,M=!!n.__proto__,_=n.create||function vt(e){return e?(vt.prototype=e,new vt):this},D=O||(M?function(e,t){return e.__proto__=t,e}:L&&k?function(){function e(e,t){for(var n,r=L(t),i=0,s=r.length;i<s;i++)n=r[i],T.call(e,n)||C(e,n,k(t,n))}return function(t,n){do e(t,n);while((n=A(n))&&!N.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),P=e.MutationObserver||e.WebKitMutationObserver,H=(e.HTMLElement||e.Element||e.Node).prototype,B=!N.call(H,E),j=B?function(e){return e.nodeType===1}:function(e){return N.call(H,e)},F=B&&[],I=H.cloneNode,q=H.setAttribute,R=H.removeAttribute,U=t.createElement,z=P&&{attributes:!0,characterData:!0,attributeOldValue:!0},W=P||function(e){J=!1,E.removeEventListener(c,W)},X,V=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,10)},$=!1,J=!0,K=!0,Q,G,Y,Z,et,tt,nt;O||M?(et=function(e,t){N.call(t,e)||ht(e,t)},tt=ht):(et=function(e,t){e[i]||(e[i]=n(!0),ht(e,t))},tt=et),B?(J=!1,function(){var e=k(H,"addEventListener"),t=e.value,n=function(e){var t=new CustomEvent(c,{bubbles:!0});t.attrName=e,t.prevValue=this.getAttribute(e),t.newValue=null,t[l]=t.attrChange=2,R.call(this,e),this.dispatchEvent(t)},r=function(e,t){var n=this.hasAttribute(e),r=n&&this.getAttribute(e),i=new CustomEvent(c,{bubbles:!0});q.call(this,e,t),i.attrName=e,i.prevValue=n?r:null,i.newValue=t,n?i[f]=i.attrChange=1:i[a]=i.attrChange=0,this.dispatchEvent(i)},s=function(e){var t=e.currentTarget,n=t[i],r=e.propertyName,s;n.hasOwnProperty(r)&&(n=n[r],s=new CustomEvent(c,{bubbles:!0}),s.attrName=n.name,s.prevValue=n.value||null,s.newValue=n.value=t[r]||null,s.prevValue==null?s[a]=s.attrChange=0:s[f]=s.attrChange=1,t.dispatchEvent(s))};e.value=function(e,o,u){e===c&&this.attributeChangedCallback&&this.setAttribute!==r&&(this[i]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",s)),t.call(this,e,o,u)},C(H,"addEventListener",e)}()):P||(E.addEventListener(c,W),E.setAttribute(i,1),E.removeAttribute(i),J&&(Q=function(e){var t=this,n,r,s;if(t===e.target){n=t[i],t[i]=r=Y(t);for(s in r){if(!(s in n))return G(0,t,s,n[s],r[s],a);if(r[s]!==n[s])return G(1,t,s,n[s],r[s],f)}for(s in n)if(!(s in r))return G(2,t,s,n[s],r[s],l)}},G=function(e,t,n,r,i,s){var o={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:i};o[s]=e,at(o)},Y=function(e){for(var t,n,r={},i=e.attributes,s=0,o=i.length;s<o;s++)t=i[s],n=t.name,n!=="setAttribute"&&(r[n]=t.value);return r})),t[r]=function(n,r){p=n.toUpperCase(),$||($=!0,P?(Z=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new P(function(r){for(var i,s,o=0,u=r.length;o<u;o++)i=r[o],i.type==="childList"?(n(i.addedNodes,e),n(i.removedNodes,t)):(s=i.target,nt&&s.attributeChangedCallback&&i.attributeName!=="style"&&s.attributeChangedCallback(i.attributeName,i.oldValue,s.getAttribute(i.attributeName)))})}(st(s),st(o)),Z.observe(t,{childList:!0,subtree:!0})):(X=[],V(function E(){while(X.length)X.shift().call(null,X.shift());V(E)}),t.addEventListener("DOMNodeInserted",ft(s)),t.addEventListener("DOMNodeRemoved",ft(o))),t.addEventListener(h,lt),t.addEventListener("readystatechange",lt),t.createElement=function(e,n){var r=U.apply(t,arguments),i=""+e,s=S.call(y,(n?v:d)+(n||i).toUpperCase()),o=-1<s;return n&&(r.setAttribute("is",n=n.toLowerCase()),o&&(o=ut(i.toUpperCase(),n))),nt=!t.createElement.innerHTMLHelper,o&&tt(r,b[s]),r},H.cloneNode=function(e){var t=I.call(this,!!e),n=ot(t);return-1<n&&tt(t,b[n]),e&&it(t.querySelectorAll(w)),t});if(-2<S.call(y,v+p)+S.call(y,d+p))throw new Error("A "+n+" type is already registered");if(!m.test(p)||-1<S.call(g,p))throw new Error("The type "+n+" is invalid");var i=function(){return f?t.createElement(l,p):t.createElement(l)},a=r||x,f=T.call(a,u),l=f?r[u].toUpperCase():p,c=y.push((f?v:d)+p)-1,p;return w=w.concat(w.length?",":"",f?l+'[is="'+n.toLowerCase()+'"]':l),i.prototype=b[c]=T.call(a,"prototype")?a.prototype:_(H),rt(t.querySelectorAll(w),s),i}})(window,document,Object,"registerElement");
vetruvet/cdnjs
ajax/libs/document-register-element/0.4.1/document-register-element.js
JavaScript
mit
6,156
(function(){var t;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){var e;return e=function(e,r){return function(n,a){var o,i,l,h,s,u,g,d,c,p,f,v,C,w,A,m,y,j,b,S,x,z,T,k,F,q,D,L,N,W,B;if(d={localeStrings:{vs:"vs",by:"by"},gchart:{}},a=t.extend(!0,d,a),null==(i=a.gchart).width&&(i.width=window.innerWidth/1.4),null==(l=a.gchart).height&&(l.height=window.innerHeight/1.4),k=n.getRowKeys(),0===k.length&&k.push([]),s=n.getColKeys(),0===s.length&&s.push([]),c=n.aggregatorName,n.valAttrs.length&&(c+="("+n.valAttrs.join(", ")+")"),C=function(){var t,e,r;for(r=[],t=0,e=k.length;e>t;t++)f=k[t],r.push(f.join("-"));return r}(),C.unshift(""),j=0,"ScatterChart"===e){u=[],S=n.tree;for(B in S){q=S[B];for(W in q)o=q[W],u.push([parseFloat(W),parseFloat(B),c+": \n"+o.format(o.value())])}g=new google.visualization.DataTable,g.addColumn("number",n.colAttrs.join("-")),g.addColumn("number",n.rowAttrs.join("-")),g.addColumn({type:"string",role:"tooltip"}),g.addRows(u),v=n.colAttrs.join("-"),D=n.rowAttrs.join("-"),F=""}else{for(u=[C],w=0,m=s.length;m>w;w++){for(h=s[w],z=[h.join("-")],j+=z[0].length,A=0,y=k.length;y>A;A++)T=k[A],o=n.getAggregator(T,h),null!=o.value()?(L=o.value(),t.isNumeric(L)?1>L?z.push(parseFloat(L.toPrecision(3))):z.push(parseFloat(L.toFixed(3))):z.push(L)):z.push(null);u.push(z)}g=google.visualization.arrayToDataTable(u),F=D=c,v=n.colAttrs.join("-"),""!==v&&(F+=" "+a.localeStrings.vs+" "+v),p=n.rowAttrs.join("-"),""!==p&&(F+=" "+a.localeStrings.by+" "+p)}return b={title:F,hAxis:{title:v,slantedText:j>50},vAxis:{title:D},tooltip:{textStyle:{fontName:"Arial",fontSize:12}}},"ColumnChart"===e&&(b.vAxis.minValue=0),"ScatterChart"===e?(b.legend={position:"none"},b.chartArea={width:"80%",height:"80%"}):2===u[0].length&&""===u[0][1]&&(b.legend={position:"none"}),t.extend(b,a.gchart,r),x=t("<div>").css({width:"100%",height:"100%"}),N=new google.visualization.ChartWrapper({dataTable:g,chartType:e,options:b}),N.draw(x[0]),x.bind("dblclick",function(){var t;return t=new google.visualization.ChartEditor,google.visualization.events.addListener(t,"ok",function(){return t.getChartWrapper().draw(x[0])}),t.openDialog(N)}),x}},t.pivotUtilities.gchart_renderers={"Line Chart":e("LineChart"),"Bar Chart":e("ColumnChart"),"Stacked Bar Chart":e("ColumnChart",{isStacked:!0}),"Area Chart":e("AreaChart",{isStacked:!0}),"Scatter Chart":e("ScatterChart")}})}).call(this); //# sourceMappingURL=gchart_renderers.min.js.map
BenjaminVanRyseghem/cdnjs
ajax/libs/pivottable/2.3.0/gchart_renderers.min.js
JavaScript
mit
2,553
/*! handlebars v2.0.0-alpha.2 Copyright (C) 2011-2014 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @license */ define("handlebars/safe-string",["exports"],function(a){function b(a){this.string=a}b.prototype.toString=function(){return""+this.string},a["default"]=b}),define("handlebars/utils",["./safe-string","exports"],function(a,b){function c(a){return i[a]||"&amp;"}function d(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function e(a){return a instanceof h?a.toString():a||0===a?(a=""+a,k.test(a)?a.replace(j,c):a):""}function f(a){return a||0===a?n(a)&&0===a.length?!0:!1:!0}function g(a,b){return(a?a+".":"")+b}var h=a["default"],i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;b.extend=d;var l=Object.prototype.toString;b.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;b.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};b.isArray=n,b.escapeExpression=e,b.isEmpty=f,b.appendContextPath=g}),define("handlebars/exception",["exports"],function(a){function b(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<c.length;f++)this[c[f]]=e[c[f]];d&&(this.lineNumber=d,this.column=b.firstColumn)}var c=["description","fileName","lineNumber","message","name","number","stack"];b.prototype=new Error,a["default"]=b}),define("handlebars/base",["./utils","./exception","exports"],function(a,b,c){function d(a,b){this.helpers=a||{},this.partials=b||{},e(this)}function e(a){a.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new h("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse||function(){},e=c.fn;if(m(b)&&(b=b.call(this)),b===!0)return e(this);if(b===!1||null==b)return d(this);if(l(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var f=q(c.data);f.contextPath=g.appendContextPath(c.data.contextPath,c.name),c={data:f}}return e(b,c)}),a.registerHelper("each",function(a,b){b||(b=a,a=this);var c,d,e=b.fn,f=b.inverse,h=0,i="";if(b.data&&b.ids&&(d=g.appendContextPath(b.data.contextPath,b.ids[0])+"."),m(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(l(a))for(var j=a.length;j>h;h++)c&&(c.index=h,c.first=0===h,c.last=h===a.length-1,d&&(c.contextPath=d+h)),i+=e(a[h],{data:c});else for(var k in a)a.hasOwnProperty(k)&&(c&&(c.key=k,c.index=h,c.first=0===h,d&&(c.contextPath=d+k)),i+=e(a[k],{data:c}),h++);return 0===h&&(i=f(this)),i}),a.registerHelper("if",function(a,b){return m(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||g.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){m(a)&&(a=a.call(this));var c=b.fn;if(!g.isEmpty(a)){if(b.data&&b.ids){var d=q(b.data);d.contextPath=g.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}function f(a,b){p.log(a,b)}var g=a,h=b["default"],i="2.0.0-alpha.2";c.VERSION=i;var j=5;c.COMPILER_REVISION=j;var k={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:">= 2.0.0"};c.REVISION_CHANGES=k;var l=g.isArray,m=g.isFunction,n=g.toString,o="[object Object]";c.HandlebarsEnvironment=d,d.prototype={constructor:d,logger:p,log:f,registerHelper:function(a,b,c){if(n.call(a)===o){if(c||b)throw new h("Arg not supported with multiple helpers");g.extend(this.helpers,a)}else c&&(b.not=c),this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){n.call(a)===o?g.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var p={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(p.level<=a){var c=p.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};c.logger=p,c.log=f;var q=function(a){var b=g.extend({},a);return b._parent=a,b};c.createFrame=q}),define("handlebars/runtime",["./utils","./exception","./base","exports"],function(a,b,c,d){function e(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function f(a,b){if(!b)throw new l("No environment passed to template");b.VM.checkRevision(a.compiler);var c=function(a,c,d,e,f,g,h){e&&(d=k.extend({},d,e));var i=b.VM.invokePartial.call(this,a,c,d,f,g,h);if(null!=i)return i;if(b.compile){var j={helpers:f,partials:g,data:h};return g[c]=b.compile(a,{data:void 0!==h},b),g[c](d,j)}throw new l("The partial "+c+" could not be compiled when running in runtime-only mode")},d={escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b){var c=this.programs[a],d=this.fn(a);return b?c=h(this,a,d,b):c||(c=this.programs[a]=h(this,a,d)),c},programWithDepth:b.VM.programWithDepth,initData:function(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(c,e){e=e||{};var f,g,h=e.partial?e:b,i=e.data;return e.partial?(f=d.helpers=e.helpers,g=d.partials=e.partials):(f=d.helpers=d.merge(e.helpers,h.helpers),a.usePartial&&(g=d.partials=d.merge(e.partials,h.partials)),a.useData&&(i=d.initData(c,i))),a.main.call(d,c,f,g,i)};return e.child=function(a){return d.programWithDepth(a)},e}function g(a,b){var c=Array.prototype.slice.call(arguments,2),d=this,e=d.fn(a),f=function(a,f){return f=f||{},e.apply(d,[a,d.helpers,d.partials,f.data||b].concat(c))};return f.program=a,f.depth=c.length,f}function h(a,b,c,d){var e=function(b,e){return e=e||{},c.call(a,b,a.helpers,a.partials,e.data||d)};return e.program=b,e.depth=0,e}function i(a,b,c,d,e,f){var g={partial:!0,helpers:d,partials:e,data:f};if(void 0===a)throw new l("The partial "+b+" could not be found");return a instanceof Function?a(c,g):void 0}function j(){return""}var k=a,l=b["default"],m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;d.checkRevision=e,d.template=f,d.programWithDepth=g,d.program=h,d.invokePartial=i,d.noop=j}),define("handlebars.runtime",["./handlebars/base","./handlebars/safe-string","./handlebars/exception","./handlebars/utils","./handlebars/runtime","exports"],function(a,b,c,d,e,f){var g=a,h=b["default"],i=c["default"],j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();m.create=l,f["default"]=m});
johngerome/cdnjs
ajax/libs/handlebars.js/2.0.0-alpha.2/handlebars.runtime.amd.min.js
JavaScript
mit
8,409
/* Lazy Load XT 0.8.2 | MIT License */ !function(a,b){function c(b,c){c.trigger("lazy"+b);var d=p["on"+b];d&&(a.isFunction(d)?d.call(c[0]):c.addClass(d.addClass).removeClass(d.removeClass)),j()}function d(b,d){var e=a(d||b);e.data("lazied")||(e.data("lazied",1).removeClass(p.classNojs),p.blankImage&&"IMG"===e[0].tagName&&!e.attr("src")&&e.attr("src",p.blankImage),c("init",e),r.unshift(e))}function e(){var a=q.scrollTop(),c=b.pageXOffset||0,d=p.edgeX,e=p.edgeY;l=a-e,m=a+(b.innerHeight||q.height())+e,n=c-d,o=c+(b.innerWidth||q.width())+d}function f(){c("load",a(this))}function g(){c("error",a(this))}function h(){if(r.length){s=1/0,e();for(var b=r.length-1,d=p.srcAttr,h=a.isFunction(d);b>=0;b--){var i=r[b],j=i[0];if(j.parentNode){if(!p.visibleOnly||j.offsetWidth>0||j.offsetHeight>0){var k=i.offset(),q=k.top,t=k.left;if(m>q&&q+i.height()>l&&o>t&&t+i.width()>n){c("show",i);var u=h?d(i):i.attr(d);u&&i.on("load",f).on("error",g).attr("src",u),r.splice(b,1)}else s>q&&(s=q)}}else r.splice(b,1)}}}function i(){t>1?(h(),setTimeout(i,p.throttle),t=1):t=0}function j(a){r.length&&(e(),a&&"scroll"===a.type&&s>=m||(t?t=2:(t=2,i())))}function k(){q.lazyLoadXT()}var l,m,n,o,p={autoInit:!0,selector:"img",srcAttr:"data-src",classNojs:"lazy",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",edgeX:0,edgeY:0,throttle:99,visibleOnly:!0,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll",oninit:null,onshow:null,onload:null,onerror:null},q=a(b),r=[],s=0,t=0;a.lazyLoadXT=a.extend(p,a.lazyLoadXT),a.fn.lazyLoadXT=function(c){return c=c||p.selector,this.each(function(){"src"in this?d(this):this===b?a(c).each(d):a(this).find(c).each(d)}),j(),this},a(document).ready(function(){q.bind(p.loadEvent,k),q.bind(p.updateEvent,j),p.autoInit&&k()})}(window.jQuery||window.Zepto,window),function(a){a.lazyLoadXT.selector="img,video,iframe[data-src]",a(document).on("lazyshow","video",function(){var b=a(this);b.attr("poster",b.attr("data-poster")).removeAttr("data-poster").children().each(function(){if(/source|track/i.test(this.tagName)){var b=a(this);b.attr("src",b.attr("data-src")).removeAttr("data-src")}}),this.load()})}(window.jQuery||window.Zepto);
agraebe/cdnjs
ajax/libs/jquery.lazyloadxt/0.8.2/jquery.lazyloadxt.extra.min.js
JavaScript
mit
2,206
ace.define("ace/keyboard/vim",["require","exports","module","ace/keyboard/vim/commands","ace/keyboard/vim/maps/util","ace/lib/useragent"],function(e,t,n){var r=e("./vim/commands"),i=r.coreCommands,s=e("./vim/maps/util"),o=e("../lib/useragent"),u={i:{command:i.start},I:{command:i.startBeginning},a:{command:i.append},A:{command:i.appendEnd},"ctrl-f":{command:"gotopagedown"},"ctrl-b":{command:"gotopageup"}};t.handler={$id:"ace/keyboard/vim",handleMacRepeat:function(e,t,n){if(t==-1)e.inputChar=n,e.lastEvent="input";else if(e.inputChar&&e.$lastHash==t&&e.$lastKey==n){if(e.lastEvent=="input")e.lastEvent="input1";else if(e.lastEvent=="input1")return!0}else e.$lastHash=t,e.$lastKey=n,e.lastEvent="keypress"},updateMacCompositionHandlers:function(e,t){var n=function(e){if(s.currentMode!=="insert"){var t=this.textInput.getElement();t.blur(),t.focus(),t.value=e}else this.onCompositionUpdateOrig(e)},r=function(e){s.currentMode==="insert"&&this.onCompositionStartOrig(e)};t?e.onCompositionUpdateOrig||(e.onCompositionUpdateOrig=e.onCompositionUpdate,e.onCompositionUpdate=n,e.onCompositionStartOrig=e.onCompositionStart,e.onCompositionStart=r):e.onCompositionUpdateOrig&&(e.onCompositionUpdate=e.onCompositionUpdateOrig,e.onCompositionUpdateOrig=null,e.onCompositionStart=e.onCompositionStartOrig,e.onCompositionStartOrig=null)},handleKeyboard:function(e,t,n,s,a){if(t!=0&&(n==""||n=="\0"))return null;var f=e.editor;t==1&&(n="ctrl-"+n);if(n=="ctrl-c")return!o.isMac&&f.getCopyText()?(f.once("copy",function(){e.state=="start"?i.stop.exec(f):f.selection.clearSelection()}),{command:"null",passEvent:!0}):{command:i.stop};if(n=="esc"&&t==0||n=="ctrl-[")return{command:i.stop};if(e.state=="start"){o.isMac&&this.handleMacRepeat(e,t,n)&&(t=-1,n=e.inputChar);if(t==-1||t==1||t==0&&n.length>1)return r.inputBuffer.idle&&u[n]?u[n]:(r.inputBuffer.push(f,n),{command:"null",passEvent:!1});if(n.length==1&&(t==0||t==4))return{command:"null",passEvent:!0};if(n=="esc"&&t==0)return{command:i.stop}}else if(n=="ctrl-w")return{command:"removewordleft"}},attach:function(e){e.on("click",t.onCursorMove),s.currentMode!=="insert"&&r.coreCommands.stop.exec(e),e.$vimModeHandler=this,this.updateMacCompositionHandlers(e,!0)},detach:function(e){e.removeListener("click",t.onCursorMove),s.noMode(e),s.currentMode="normal",this.updateMacCompositionHandlers(e,!1)},actions:r.actions,getStatusText:function(){return s.currentMode=="insert"?"INSERT":s.onVisualMode?(s.onVisualLineMode?"VISUAL LINE ":"VISUAL ")+r.inputBuffer.status:r.inputBuffer.status}},t.onCursorMove=function(e){r.onCursorMove(e.editor,e),t.onCursorMove.scheduled=!1}}),ace.define("ace/keyboard/vim/commands",["require","exports","module","ace/lib/lang","ace/keyboard/vim/maps/util","ace/keyboard/vim/maps/motions","ace/keyboard/vim/maps/operators","ace/keyboard/vim/maps/aliases","ace/keyboard/vim/registers"],function(e,t,n){"never use strict";function y(e){g.previous={action:{action:{fn:e}}}}var r=e("../../lib/lang"),i=e("./maps/util"),s=e("./maps/motions"),o=e("./maps/operators"),u=e("./maps/aliases"),a=e("./registers"),f=1,l=2,c=3,h=4,p=8,d=function(t,n,r){while(0<n--)t.apply(this,r)},v=function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),r=n.top,i=p*t.layerConfig.lineHeight;2*i>t.$size.scrollerHeight&&(i=t.$size.scrollerHeight/2),t.scrollTop>r-i&&t.session.setScrollTop(r-i),t.scrollTop+t.$size.scrollerHeight<r+i+t.lineHeight&&t.session.setScrollTop(r+i+t.lineHeight-t.$size.scrollerHeight)},m=t.actions={z:{param:!0,fn:function(e,t,n,r){switch(r){case"z":e.renderer.alignCursor(null,.5);break;case"t":e.renderer.alignCursor(null,0);break;case"b":e.renderer.alignCursor(null,1);break;case"c":e.session.onFoldWidgetClick(t.start.row,{domEvent:{target:{}}});break;case"o":e.session.onFoldWidgetClick(t.start.row,{domEvent:{target:{}}});break;case"C":e.session.foldAll();break;case"O":e.session.unfold()}}},r:{param:!0,fn:function(e,t,n,r){r&&r.length&&(r.length>1&&(r=r=="return"?"\n":r=="tab"?" ":r),d(function(){e.insert(r)},n||1),e.navigateLeft())}},R:{fn:function(e,t,n,r){i.insertMode(e),e.setOverwrite(!0)}},"~":{fn:function(e,t,n){d(function(){var t=e.selection.getRange();t.isEmpty()&&t.end.column++;var n=e.session.getTextRange(t),r=n.toUpperCase();r==n?e.navigateRight():e.session.replace(t,r)},n||1)}},"*":{fn:function(e,t,n,r){e.selection.selectWord(),e.findNext(),v(e);var i=e.selection.getRange();e.selection.setSelectionRange(i,!0)}},"#":{fn:function(e,t,n,r){e.selection.selectWord(),e.findPrevious(),v(e);var i=e.selection.getRange();e.selection.setSelectionRange(i,!0)}},m:{param:!0,fn:function(e,t,n,r){var i=e.session,s=i.vimMarkers||(i.vimMarkers={}),o=e.getCursorPosition();s[r]||(s[r]=e.session.doc.createAnchor(o)),s[r].setPosition(o.row,o.column,!0)}},n:{fn:function(e,t,n,r){var i=e.getLastSearchOptions();i.backwards=!1,e.selection.moveCursorRight(),e.selection.clearSelection(),e.findNext(i),v(e);var s=e.selection.getRange();s.end.row=s.start.row,s.end.column=s.start.column,e.selection.setSelectionRange(s,!0)}},N:{fn:function(e,t,n,r){var i=e.getLastSearchOptions();i.backwards=!0,e.findPrevious(i),v(e);var s=e.selection.getRange();s.end.row=s.start.row,s.end.column=s.start.column,e.selection.setSelectionRange(s,!0)}},v:{fn:function(e,t,n,r){e.selection.selectRight(),i.visualMode(e,!1)},acceptsMotion:!0},V:{fn:function(e,t,n,r){var s=e.getCursorPosition().row;e.selection.clearSelection(),e.selection.moveCursorTo(s,0),e.selection.selectLineEnd(),e.selection.visualLineStart=s,i.visualMode(e,!0)},acceptsMotion:!0},Y:{fn:function(e,t,n,r){i.copyLine(e)}},p:{fn:function(e,t,n,i){var s=a._default;e.setOverwrite(!1);if(s.isLine){var o=e.getCursorPosition();o.column=e.session.getLine(o.row).length;var u=r.stringRepeat("\n"+s.text,n||1);e.session.insert(o,u),e.moveCursorTo(o.row+1,0)}else e.navigateRight(),e.insert(r.stringRepeat(s.text,n||1)),e.navigateLeft();e.setOverwrite(!0),e.selection.clearSelection()}},P:{fn:function(e,t,n,i){var s=a._default;e.setOverwrite(!1);if(s.isLine){var o=e.getCursorPosition();o.column=0;var u=r.stringRepeat(s.text+"\n",n||1);e.session.insert(o,u),e.moveCursorToPosition(o)}else e.insert(r.stringRepeat(s.text,n||1));e.setOverwrite(!0),e.selection.clearSelection()}},J:{fn:function(e,t,n,r){var i=e.session;t=e.getSelectionRange();var s={row:t.start.row,column:t.start.column};n=n||t.end.row-t.start.row;var o=Math.min(s.row+(n||1),i.getLength()-1);t.start.column=i.getLine(s.row).length,t.end.column=i.getLine(o).length,t.end.row=o;var u="";for(var a=s.row;a<o;a++){var f=i.getLine(a+1);u+=" "+/^\s*(.*)$/.exec(f)[1]||""}i.replace(t,u),e.moveCursorTo(s.row,s.column)}},u:{fn:function(e,t,n,r){n=parseInt(n||1,10);for(var i=0;i<n;i++)e.undo();e.selection.clearSelection()}},"ctrl-r":{fn:function(e,t,n,r){n=parseInt(n||1,10);for(var i=0;i<n;i++)e.redo();e.selection.clearSelection()}},":":{fn:function(e,t,n,r){var i=":";n>1&&(i=".,.+"+n+i),e.showCommandLine&&e.showCommandLine(i)}},"/":{fn:function(e,t,n,r){e.showCommandLine&&e.showCommandLine("/")}},"?":{fn:function(e,t,n,r){e.showCommandLine&&e.showCommandLine("?")}},".":{fn:function(e,t,n,r){i.onInsertReplaySequence=g.lastInsertCommands;var s=g.previous;s&&g.exec(e,s.action,s.param)}},"ctrl-x":{fn:function(e,t,n,r){e.modifyNumber(-(n||1))}},"ctrl-a":{fn:function(e,t,n,r){e.modifyNumber(n||1)}}},g=t.inputBuffer={accepting:[f,l,c,h],currentCmd:null,currentCount:"",status:"",operator:null,motion:null,lastInsertCommands:[],push:function(e,t,n){var r=this.status,i=!0;this.idle=!1;var a=this.waitingForParam;/^numpad\d+$/i.test(t)&&(t=t.substr(6));if(a)this.exec(e,a,t);else if(t==="0"&&!this.currentCount.length||!/^\d+$/.test(t)||!this.isAccepting(f))if(!this.operator&&this.isAccepting(l)&&o[t])this.operator={ch:t,count:this.getCount()},this.currentCmd=l,this.accepting=[f,c,h],this.exec(e,{operator:this.operator});else if(s[t]&&this.isAccepting(c)){this.currentCmd=c;var p={operator:this.operator,motion:{ch:t,count:this.getCount()}};s[t].param?this.waitForParam(p):this.exec(e,p)}else if(u[t]&&this.isAccepting(c))u[t].operator.count=this.getCount(),this.exec(e,u[t]);else if(m[t]&&this.isAccepting(h)){var d={action:{fn:m[t].fn,count:this.getCount()}};m[t].param?this.waitForParam(d):this.exec(e,d),m[t].acceptsMotion&&(this.idle=!1)}else this.operator?(this.operator.count=this.getCount(),this.exec(e,{operator:this.operator},t)):(i=t.length==1,this.reset());else this.currentCount+=t,this.currentCmd=f,this.accepting=[f,l,c,h];return this.waitingForParam||this.motion||this.operator?this.status+=t:this.currentCount?this.status=this.currentCount:this.status&&(this.status=""),this.status!=r&&e._emit("changeStatus"),i},waitForParam:function(e){this.waitingForParam=e},getCount:function(){var e=this.currentCount;return this.currentCount="",e&&parseInt(e,10)},exec:function(e,t,n){var r=t.motion,u=t.operator,a=t.action;n||(n=t.param),u&&(this.previous={action:t,param:n});if(u&&!e.selection.isEmpty()){o[u.ch].selFn&&(o[u.ch].selFn(e,e.getSelectionRange(),u.count,n),this.reset());return}if(!r&&!a&&u&&n)o[u.ch].fn(e,null,u.count,n),this.reset();else if(r){var f=function(t){t&&typeof t=="function"&&(r.count&&!l.handlesCount?d(t,r.count,[e,null,r.count,n]):t(e,null,r.count,n))},l=s[r.ch],c=l.sel;u?c&&d(function(){f(l.sel),o[u.ch].fn(e,e.getSelectionRange(),u.count,n)},u.count||1):(i.onVisualMode||i.onVisualLineMode)&&c?f(l.sel):f(l.nav),this.reset()}else a&&(a.fn(e,e.getSelectionRange(),a.count,n),this.reset());b(e)},isAccepting:function(e){return this.accepting.indexOf(e)!==-1},reset:function(){this.operator=null,this.motion=null,this.currentCount="",this.status="",this.accepting=[f,l,c,h],this.idle=!0,this.waitingForParam=null}};t.coreCommands={start:{exec:function w(e){i.insertMode(e),y(w)}},startBeginning:{exec:function E(e){e.navigateLineStart(),i.insertMode(e),y(E)}},stop:{exec:function(t){g.reset(),i.onVisualMode=!1,i.onVisualLineMode=!1,g.lastInsertCommands=i.normalMode(t)}},append:{exec:function S(e){var t=e.getCursorPosition(),n=e.session.getLine(t.row).length;n&&e.navigateRight(),i.insertMode(e),y(S)}},appendEnd:{exec:function x(e){e.navigateLineEnd(),i.insertMode(e),y(x)}}};var b=t.onCursorMove=function(e,t){if(i.currentMode==="insert"||b.running)return;if(!e.selection.isEmpty()){b.running=!0;if(i.onVisualLineMode){var n=e.selection.visualLineStart,r=e.getCursorPosition().row;if(n<=r){var s=e.session.getLine(r);e.selection.clearSelection(),e.selection.moveCursorTo(n,0),e.selection.selectTo(r,s.length)}else{var s=e.session.getLine(n);e.selection.clearSelection(),e.selection.moveCursorTo(n,s.length),e.selection.selectTo(r,0)}}b.running=!1;return}t&&(i.onVisualLineMode||i.onVisualMode)&&(e.selection.clearSelection(),i.normalMode(e)),b.running=!0;var o=e.getCursorPosition(),u=e.session.getLine(o.row).length;u&&o.column===u&&e.navigateLeft(),b.running=!1}}),ace.define("ace/keyboard/vim/maps/util",["require","exports","module","ace/keyboard/vim/registers","ace/lib/dom"],function(e,t,n){var r=e("../registers"),i=e("../../../lib/dom");i.importCssString(".insert-mode .ace_cursor{ border-left: 2px solid #333333;}.ace_dark.insert-mode .ace_cursor{ border-left: 2px solid #eeeeee;}.normal-mode .ace_cursor{ border: 0!important; background-color: red; opacity: 0.5;}","vimMode"),n.exports={onVisualMode:!1,onVisualLineMode:!1,currentMode:"normal",noMode:function(e){e.unsetStyle("insert-mode"),e.unsetStyle("normal-mode"),e.commands.recording&&e.commands.toggleRecording(e),e.setOverwrite(!1)},insertMode:function(e){this.currentMode="insert",e.setStyle("insert-mode"),e.unsetStyle("normal-mode"),e.setOverwrite(!1),e.keyBinding.$data.buffer="",e.keyBinding.$data.state="insertMode",this.onVisualMode=!1,this.onVisualLineMode=!1,this.onInsertReplaySequence?(e.commands.macro=this.onInsertReplaySequence,e.commands.replay(e),this.onInsertReplaySequence=null,this.normalMode(e)):(e._emit("changeStatus"),e.commands.recording||e.commands.toggleRecording(e))},normalMode:function(e){this.currentMode="normal",e.unsetStyle("insert-mode"),e.setStyle("normal-mode"),e.clearSelection();var t;return e.getOverwrite()||(t=e.getCursorPosition(),t.column>0&&e.navigateLeft()),e.setOverwrite(!0),e.keyBinding.$data.buffer="",e.keyBinding.$data.state="start",this.onVisualMode=!1,this.onVisualLineMode=!1,e._emit("changeStatus"),e.commands.recording?(e.commands.toggleRecording(e),e.commands.macro):[]},visualMode:function(e,t){if(this.onVisualLineMode&&t||this.onVisualMode&&!t){this.normalMode(e);return}e.setStyle("insert-mode"),e.unsetStyle("normal-mode"),e._emit("changeStatus"),t?this.onVisualLineMode=!0:(this.onVisualMode=!0,this.onVisualLineMode=!1)},getRightNthChar:function(e,t,n,r){var i=e.getSession().getLine(t.row),s=i.substr(t.column+1).split(n);return r<s.length?s.slice(0,r).join(n).length:null},getLeftNthChar:function(e,t,n,r){var i=e.getSession().getLine(t.row),s=i.substr(0,t.column).split(n);return r<s.length?s.slice(-1*r).join(n).length:null},toRealChar:function(e){return e.length===1?e:/^shift-./.test(e)?e[e.length-1].toUpperCase():""},copyLine:function(e){var t=e.getCursorPosition();e.selection.clearSelection(),e.moveCursorTo(t.row,t.column),e.selection.selectLine(),r._default.isLine=!0,r._default.text=e.getCopyText().replace(/\n$/,""),e.selection.clearSelection(),e.moveCursorTo(t.row,t.column)}}}),ace.define("ace/keyboard/vim/registers",["require","exports","module"],function(e,t,n){"never use strict";n.exports={_default:{text:"",isLine:!1}}}),ace.define("ace/keyboard/vim/maps/motions",["require","exports","module","ace/keyboard/vim/maps/util","ace/search","ace/range"],function(e,t,n){function s(e){if(typeof e=="function"){var t=e;e=this}else var t=e.getPos;return e.nav=function(e,n,r,i){var s=t(e,n,r,i,!1);if(!s)return;e.clearSelection(),e.moveCursorTo(s.row,s.column)},e.sel=function(e,n,r,i){var s=t(e,n,r,i,!0);if(!s)return;e.selection.selectTo(s.row,s.column)},e}function h(e,t,n){return c.$options.needle=t,c.$options.backwards=n==-1,c.find(e.session)}var r=e("./util"),i=function(e,t){var n=e.renderer.getScrollTopRow(),r=e.getCursorPosition().row,i=r-n;t&&t.call(e),e.renderer.scrollToRow(e.getCursorPosition().row-i)},o=/[\s.\/\\()\"'-:,.;<>~!@#$%^&*|+=\[\]{}`~?]/,u=/[.\/\\()\"'-:,.;<>~!@#$%^&*|+=\[\]{}`~?]/,a=/\s/,f=function(e,t){var n=e.selection;this.range=n.getRange(),t=t||n.selectionLead,this.row=t.row,this.col=t.column;var r=e.session.getLine(this.row),i=e.session.getLength();this.ch=r[this.col]||"\n",this.skippedLines=0,this.next=function(){return this.ch=r[++this.col]||this.handleNewLine(1),this.ch},this.prev=function(){return this.ch=r[--this.col]||this.handleNewLine(-1),this.ch},this.peek=function(t){var n=r[this.col+t];return n?n:t==-1?"\n":this.col==r.length-1?"\n":e.session.getLine(this.row+1)[0]||"\n"},this.handleNewLine=function(t){if(t==1)return this.col==r.length?"\n":this.row==i-1?"":(this.col=0,this.row++,r=e.session.getLine(this.row),this.skippedLines++,r[0]||"\n");if(t==-1)return this.row===0?"":(this.row--,r=e.session.getLine(this.row),this.col=r.length,this.skippedLines--,"\n")},this.debug=function(){console.log(r.substring(0,this.col)+"|"+this.ch+"'"+this.col+"'"+r.substr(this.col+1))}},l=e("../../../search").Search,c=new l,p=e("../../../range").Range,d={};n.exports={w:new s(function(e){var t=new f(e);if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.next();else while(t.ch&&!o.test(t.ch))t.next();while(t.ch&&a.test(t.ch)&&t.skippedLines<2)t.next();return t.skippedLines==2&&t.prev(),{column:t.col,row:t.row}}),W:new s(function(e){var t=new f(e);while(t.ch&&(!a.test(t.ch)||!!a.test(t.peek(1)))&&t.skippedLines<2)t.next();return t.skippedLines==2?t.prev():t.next(),{column:t.col,row:t.row}}),b:new s(function(e){var t=new f(e);t.prev();while(t.ch&&a.test(t.ch)&&t.skippedLines>-2)t.prev();if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.prev();else while(t.ch&&!o.test(t.ch))t.prev();return t.ch&&t.next(),{column:t.col,row:t.row}}),B:new s(function(e){var t=new f(e);t.prev();while(t.ch&&(!!a.test(t.ch)||!a.test(t.peek(-1)))&&t.skippedLines>-2)t.prev();return t.skippedLines==-2&&t.next(),{column:t.col,row:t.row}}),e:new s(function(e){var t=new f(e);t.next();while(t.ch&&a.test(t.ch))t.next();if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.next();else while(t.ch&&!o.test(t.ch))t.next();return t.ch&&t.prev(),{column:t.col,row:t.row}}),E:new s(function(e){var t=new f(e);t.next();while(t.ch&&(!!a.test(t.ch)||!a.test(t.peek(1))))t.next();return{column:t.col,row:t.row}}),l:{nav:function(e){var t=e.getCursorPosition(),n=t.column,r=e.session.getLine(t.row).length;r&&n!==r&&e.navigateRight()},sel:function(e){var t=e.getCursorPosition(),n=t.column,r=e.session.getLine(t.row).length;r&&n!==r&&e.selection.selectRight()}},h:{nav:function(e){var t=e.getCursorPosition();t.column>0&&e.navigateLeft()},sel:function(e){var t=e.getCursorPosition();t.column>0&&e.selection.selectLeft()}},H:{nav:function(e){var t=e.renderer.getScrollTopRow();e.moveCursorTo(t)},sel:function(e){var t=e.renderer.getScrollTopRow();e.selection.selectTo(t)}},M:{nav:function(e){var t=e.renderer.getScrollTopRow(),n=e.renderer.getScrollBottomRow(),r=t+(n-t)/2;e.moveCursorTo(r)},sel:function(e){var t=e.renderer.getScrollTopRow(),n=e.renderer.getScrollBottomRow(),r=t+(n-t)/2;e.selection.selectTo(r)}},L:{nav:function(e){var t=e.renderer.getScrollBottomRow();e.moveCursorTo(t)},sel:function(e){var t=e.renderer.getScrollBottomRow();e.selection.selectTo(t)}},k:{nav:function(e){e.navigateUp()},sel:function(e){e.selection.selectUp()}},j:{nav:function(e){e.navigateDown()},sel:function(e){e.selection.selectDown()}},i:{param:!0,sel:function(e,t,n,r){switch(r){case"w":e.selection.selectWord();break;case"W":e.selection.selectAWord();break;case"(":case"{":case"[":var i=e.getCursorPosition(),s=e.session.$findClosingBracket(r,i,/paren/);if(!s)return;var o=e.session.$findOpeningBracket(e.session.$brackets[r],i,/paren/);if(!o)return;o.column++,e.selection.setSelectionRange(p.fromPoints(o,s));break;case"'":case'"':case"/":var s=h(e,r,1);if(!s)return;var o=h(e,r,-1);if(!o)return;e.selection.setSelectionRange(p.fromPoints(o.end,s.start))}}},a:{param:!0,sel:function(e,t,n,r){switch(r){case"w":e.selection.selectAWord();break;case"W":e.selection.selectAWord();break;case"(":case"{":case"[":var i=e.getCursorPosition(),s=e.session.$findClosingBracket(r,i,/paren/);if(!s)return;var o=e.session.$findOpeningBracket(e.session.$brackets[r],i,/paren/);if(!o)return;s.column++,e.selection.setSelectionRange(p.fromPoints(o,s));break;case"'":case'"':case"/":var s=h(e,r,1);if(!s)return;var o=h(e,r,-1);if(!o)return;s.column++,e.selection.setSelectionRange(p.fromPoints(o.start,s.end))}}},f:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"f",param:i});var u=e.getCursorPosition(),a=r.getRightNthChar(e,u,i,n||1);if(typeof a=="number")return u.column+=a+(s?2:1),u}}),F:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"F",param:i});var u=e.getCursorPosition(),a=r.getLeftNthChar(e,u,i,n||1);if(typeof a=="number")return u.column-=a+1,u}}),t:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"t",param:i});var u=e.getCursorPosition(),a=r.getRightNthChar(e,u,i,n||1);if(o&&a==0&&!(n>1))var a=r.getRightNthChar(e,u,i,2);if(typeof a=="number")return u.column+=a+(s?1:0),u}}),T:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"T",param:i});var u=e.getCursorPosition(),a=r.getLeftNthChar(e,u,i,n||1);if(o&&a==0&&!(n>1))var a=r.getLeftNthChar(e,u,i,2);if(typeof a=="number")return u.column-=a,u}}),";":new s({handlesCount:!0,getPos:function(e,t,r,i,s){var o=d.ch;if(!o)return;return n.exports[o].getPos(e,t,r,d.param,s,!0)}}),",":new s({handlesCount:!0,getPos:function(e,t,r,i,s){var o=d.ch;if(!o)return;var u=o.toUpperCase();return o=o===u?o.toLowerCase():u,n.exports[o].getPos(e,t,r,d.param,s,!0)}}),"^":{nav:function(e){e.navigateLineStart()},sel:function(e){e.selection.selectLineStart()}},$:{nav:function(e){e.navigateLineEnd()},sel:function(e){e.selection.selectLineEnd()}},0:new s(function(e){return{row:e.selection.lead.row,column:0}}),G:{nav:function(e,t,n,r){!n&&n!==0&&(n=e.session.getLength()),e.gotoLine(n)},sel:function(e,t,n,r){!n&&n!==0&&(n=e.session.getLength()),e.selection.selectTo(n,0)}},g:{param:!0,nav:function(e,t,n,r){switch(r){case"m":console.log("Middle line");break;case"e":console.log("End of prev word");break;case"g":e.gotoLine(n||0);case"u":e.gotoLine(n||0);case"U":e.gotoLine(n||0)}},sel:function(e,t,n,r){switch(r){case"m":console.log("Middle line");break;case"e":console.log("End of prev word");break;case"g":e.selection.selectTo(n||0,0)}}},o:{nav:function(e,t,n,i){n=n||1;var s="";while(0<n--)s+="\n";s.length&&(e.navigateLineEnd(),e.insert(s),r.insertMode(e))}},O:{nav:function(e,t,n,i){var s=e.getCursorPosition().row;n=n||1;var o="";while(0<n--)o+="\n";o.length&&(s>0?(e.navigateUp(),e.navigateLineEnd(),e.insert(o)):(e.session.insert({row:0,column:0},o),e.navigateUp()),r.insertMode(e))}},"%":new s(function(e){var t=/[\[\]{}()]/g,n=e.getCursorPosition(),r=e.session.getLine(n.row)[n.column];if(!t.test(r)){var i=h(e,t);if(!i)return;n=i.start}var s=e.session.findMatchingBracket({row:n.row,column:n.column+1});return s}),"{":new s(function(e){var t=e.session,n=t.selection.lead.row;while(n>0&&!/\S/.test(t.getLine(n)))n--;while(/\S/.test(t.getLine(n)))n--;return{column:0,row:n}}),"}":new s(function(e){var t=e.session,n=t.getLength(),r=t.selection.lead.row;while(r<n&&!/\S/.test(t.getLine(r)))r++;while(/\S/.test(t.getLine(r)))r++;return{column:0,row:r}}),"ctrl-d":{nav:function(e,t,n,r){e.selection.clearSelection(),i(e,e.gotoPageDown)},sel:function(e,t,n,r){i(e,e.selectPageDown)}},"ctrl-u":{nav:function(e,t,n,r){e.selection.clearSelection(),i(e,e.gotoPageUp)},sel:function(e,t,n,r){i(e,e.selectPageUp)}},"`":new s({param:!0,handlesCount:!0,getPos:function(e,t,n,r,i){var s=e.session,o=s.vimMarkers&&s.vimMarkers[r];if(o)return o.getPosition()}}),"'":new s({param:!0,handlesCount:!0,getPos:function(e,t,n,r,i){var s=e.session,o=s.vimMarkers&&s.vimMarkers[r];if(o){var u=o.getPosition(),a=e.session.getLine(u.row);return u.column=a.search(/\S/),u.column==-1&&(u.column=a.length),u}}})},n.exports.backspace=n.exports.left=n.exports.h,n.exports.space=n.exports["return"]=n.exports.right=n.exports.l,n.exports.up=n.exports.k,n.exports.down=n.exports.j,n.exports.pagedown=n.exports["ctrl-d"],n.exports.pageup=n.exports["ctrl-u"]}),ace.define("ace/keyboard/vim/maps/operators",["require","exports","module","ace/keyboard/vim/maps/util","ace/keyboard/vim/registers"],function(e,t,n){var r=e("./util"),i=e("../registers");n.exports={d:{selFn:function(e,t,n,s){i._default.text=e.getCopyText(),i._default.isLine=r.onVisualLineMode,r.onVisualLineMode?e.removeLines():e.session.remove(t),r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"d":i._default.text="",i._default.isLine=!0;for(var s=0;s<n;s++){e.selection.selectLine(),i._default.text+=e.getCopyText();var o=e.getSelectionRange();if(!o.isMultiLine()){var u=o.start.row-1,a=e.session.getLine(u).length;o.setStart(u,a),e.session.remove(o),e.selection.clearSelection();break}e.session.remove(o),e.selection.clearSelection()}i._default.text=i._default.text.replace(/\n$/,"");break;default:t&&(e.selection.setSelectionRange(t),i._default.text=e.getCopyText(),i._default.isLine=!1,e.session.remove(t),e.selection.clearSelection())}}},c:{selFn:function(e,t,n,i){e.session.remove(t),r.insertMode(e)},fn:function(e,t,n,i){n=n||1;switch(i){case"c":for(var s=0;s<n;s++)e.removeLines(),r.insertMode(e);break;default:t&&(e.session.remove(t),r.insertMode(e))}}},y:{selFn:function(e,t,n,s){i._default.text=e.getCopyText(),i._default.isLine=r.onVisualLineMode,e.selection.clearSelection(),r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"y":var s=e.getCursorPosition();e.selection.selectLine();for(var o=0;o<n-1;o++)e.selection.moveCursorDown();i._default.text=e.getCopyText().replace(/\n$/,""),e.selection.clearSelection(),i._default.isLine=!0,e.moveCursorToPosition(s);break;default:if(t){var s=e.getCursorPosition();e.selection.setSelectionRange(t),i._default.text=e.getCopyText(),i._default.isLine=!1,e.selection.clearSelection(),e.moveCursorTo(s.row,s.column)}}}},">":{selFn:function(e,t,n,i){n=n||1;for(var s=0;s<n;s++)e.indent();r.normalMode(e)},fn:function(e,t,n,r){n=parseInt(n||1,10);switch(r){case">":var i=e.getCursorPosition();e.selection.selectLine();for(var s=0;s<n-1;s++)e.selection.moveCursorDown();e.indent(),e.selection.clearSelection(),e.moveCursorToPosition(i),e.navigateLineEnd(),e.navigateLineStart()}}},"<":{selFn:function(e,t,n,i){n=n||1;for(var s=0;s<n;s++)e.blockOutdent();r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"<":var i=e.getCursorPosition();e.selection.selectLine();for(var s=0;s<n-1;s++)e.selection.moveCursorDown();e.blockOutdent(),e.selection.clearSelection(),e.moveCursorToPosition(i),e.navigateLineEnd(),e.navigateLineStart()}}}}}),"use strict",ace.define("ace/keyboard/vim/maps/aliases",["require","exports","module"],function(e,t,n){n.exports={x:{operator:{ch:"d",count:1},motion:{ch:"l",count:1}},X:{operator:{ch:"d",count:1},motion:{ch:"h",count:1}},D:{operator:{ch:"d",count:1},motion:{ch:"$",count:1}},C:{operator:{ch:"c",count:1},motion:{ch:"$",count:1}},s:{operator:{ch:"c",count:1},motion:{ch:"l",count:1}},S:{operator:{ch:"c",count:1},param:"c"}}})
billybonz1/cdnjs
ajax/libs/ace/1.1.2/keybinding-vim.js
JavaScript
mit
25,302
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLayers/Console.js * @requires OpenLayers/Lang.js */ /** * Class: OpenLayers.Pixel * This class represents a screen coordinate, in x and y coordinates */ OpenLayers.Pixel = OpenLayers.Class({ /** * APIProperty: x * {Number} The x coordinate */ x: 0.0, /** * APIProperty: y * {Number} The y coordinate */ y: 0.0, /** * Constructor: OpenLayers.Pixel * Create a new OpenLayers.Pixel instance * * Parameters: * x - {Number} The x coordinate * y - {Number} The y coordinate * * Returns: * An instance of OpenLayers.Pixel */ initialize: function(x, y) { this.x = parseFloat(x); this.y = parseFloat(y); }, /** * Method: toString * Cast this object into a string * * Returns: * {String} The string representation of Pixel. ex: "x=200.4,y=242.2" */ toString:function() { return ("x=" + this.x + ",y=" + this.y); }, /** * APIMethod: clone * Return a clone of this pixel object * * Returns: * {<OpenLayers.Pixel>} A clone pixel */ clone:function() { return new OpenLayers.Pixel(this.x, this.y); }, /** * APIMethod: equals * Determine whether one pixel is equivalent to another * * Parameters: * px - {<OpenLayers.Pixel>} * * Returns: * {Boolean} The point passed in as parameter is equal to this. Note that * if px passed in is null, returns false. */ equals:function(px) { var equals = false; if (px != null) { equals = ((this.x == px.x && this.y == px.y) || (isNaN(this.x) && isNaN(this.y) && isNaN(px.x) && isNaN(px.y))); } return equals; }, /** * APIMethod: distanceTo * Returns the distance to the pixel point passed in as a parameter. * * Parameters: * px - {<OpenLayers.Pixel>} * * Returns: * {Float} The pixel point passed in as parameter to calculate the * distance to. */ distanceTo:function(px) { return Math.sqrt( Math.pow(this.x - px.x, 2) + Math.pow(this.y - px.y, 2) ); }, /** * APIMethod: add * * Parameters: * x - {Integer} * y - {Integer} * * Returns: * {<OpenLayers.Pixel>} A new Pixel with this pixel's x&y augmented by the * values passed in. */ add:function(x, y) { if ( (x == null) || (y == null) ) { var msg = OpenLayers.i18n("pixelAddError"); OpenLayers.Console.error(msg); return null; } return new OpenLayers.Pixel(this.x + x, this.y + y); }, /** * APIMethod: offset * * Parameters * px - {<OpenLayers.Pixel>} * * Returns: * {<OpenLayers.Pixel>} A new Pixel with this pixel's x&y augmented by the * x&y values of the pixel passed in. */ offset:function(px) { var newPx = this.clone(); if (px) { newPx = this.add(px.x, px.y); } return newPx; }, CLASS_NAME: "OpenLayers.Pixel" });
andersem/cdnjs
ajax/libs/openlayers/2.11/lib/OpenLayers/BaseTypes/Pixel.js
JavaScript
mit
3,543
ace.define("ace/keyboard/vim",["require","exports","module","ace/keyboard/vim/commands","ace/keyboard/vim/maps/util","ace/lib/useragent"],function(e,t,n){var r=e("./vim/commands"),i=r.coreCommands,s=e("./vim/maps/util"),o=e("../lib/useragent"),u={i:{command:i.start},I:{command:i.startBeginning},a:{command:i.append},A:{command:i.appendEnd},"ctrl-f":{command:"gotopagedown"},"ctrl-b":{command:"gotopageup"}};t.handler={$id:"ace/keyboard/vim",handleMacRepeat:function(e,t,n){if(t==-1)e.inputChar=n,e.lastEvent="input";else if(e.inputChar&&e.$lastHash==t&&e.$lastKey==n){if(e.lastEvent=="input")e.lastEvent="input1";else if(e.lastEvent=="input1")return!0}else e.$lastHash=t,e.$lastKey=n,e.lastEvent="keypress"},updateMacCompositionHandlers:function(e,t){var n=function(e){if(s.currentMode!=="insert"){var t=this.textInput.getElement();t.blur(),t.focus(),t.value=e}else this.onCompositionUpdateOrig(e)},r=function(e){s.currentMode==="insert"&&this.onCompositionStartOrig(e)};t?e.onCompositionUpdateOrig||(e.onCompositionUpdateOrig=e.onCompositionUpdate,e.onCompositionUpdate=n,e.onCompositionStartOrig=e.onCompositionStart,e.onCompositionStart=r):e.onCompositionUpdateOrig&&(e.onCompositionUpdate=e.onCompositionUpdateOrig,e.onCompositionUpdateOrig=null,e.onCompositionStart=e.onCompositionStartOrig,e.onCompositionStartOrig=null)},handleKeyboard:function(e,t,n,s,a){if(t!=0&&(n==""||n=="\0"))return null;var f=e.editor;t==1&&(n="ctrl-"+n);if(n=="ctrl-c")return!o.isMac&&f.getCopyText()?(f.once("copy",function(){e.state=="start"?i.stop.exec(f):f.selection.clearSelection()}),{command:"null",passEvent:!0}):{command:i.stop};if(n=="esc"&&t==0||n=="ctrl-[")return{command:i.stop};if(e.state=="start"){o.isMac&&this.handleMacRepeat(e,t,n)&&(t=-1,n=e.inputChar);if(t==-1||t==1||t==0&&n.length>1)return r.inputBuffer.idle&&u[n]?u[n]:(r.inputBuffer.push(f,n),{command:"null",passEvent:!1});if(n.length==1&&(t==0||t==4))return{command:"null",passEvent:!0};if(n=="esc"&&t==0)return{command:i.stop}}else if(n=="ctrl-w")return{command:"removewordleft"}},attach:function(e){e.on("click",t.onCursorMove),s.currentMode!=="insert"&&r.coreCommands.stop.exec(e),e.$vimModeHandler=this,this.updateMacCompositionHandlers(e,!0)},detach:function(e){e.removeListener("click",t.onCursorMove),s.noMode(e),s.currentMode="normal",this.updateMacCompositionHandlers(e,!1)},actions:r.actions,getStatusText:function(){return s.currentMode=="insert"?"INSERT":s.onVisualMode?(s.onVisualLineMode?"VISUAL LINE ":"VISUAL ")+r.inputBuffer.status:r.inputBuffer.status}},t.onCursorMove=function(e){r.onCursorMove(e.editor,e),t.onCursorMove.scheduled=!1}}),ace.define("ace/keyboard/vim/commands",["require","exports","module","ace/lib/lang","ace/keyboard/vim/maps/util","ace/keyboard/vim/maps/motions","ace/keyboard/vim/maps/operators","ace/keyboard/vim/maps/aliases","ace/keyboard/vim/registers"],function(e,t,n){"never use strict";function y(e){g.previous={action:{action:{fn:e}}}}var r=e("../../lib/lang"),i=e("./maps/util"),s=e("./maps/motions"),o=e("./maps/operators"),u=e("./maps/aliases"),a=e("./registers"),f=1,l=2,c=3,h=4,p=8,d=function(t,n,r){while(0<n--)t.apply(this,r)},v=function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),r=n.top,i=p*t.layerConfig.lineHeight;2*i>t.$size.scrollerHeight&&(i=t.$size.scrollerHeight/2),t.scrollTop>r-i&&t.session.setScrollTop(r-i),t.scrollTop+t.$size.scrollerHeight<r+i+t.lineHeight&&t.session.setScrollTop(r+i+t.lineHeight-t.$size.scrollerHeight)},m=t.actions={z:{param:!0,fn:function(e,t,n,r){switch(r){case"z":e.renderer.alignCursor(null,.5);break;case"t":e.renderer.alignCursor(null,0);break;case"b":e.renderer.alignCursor(null,1);break;case"c":e.session.onFoldWidgetClick(t.start.row,{domEvent:{target:{}}});break;case"o":e.session.onFoldWidgetClick(t.start.row,{domEvent:{target:{}}});break;case"C":e.session.foldAll();break;case"O":e.session.unfold()}}},r:{param:!0,fn:function(e,t,n,r){r&&r.length&&(r.length>1&&(r=r=="return"?"\n":r=="tab"?" ":r),d(function(){e.insert(r)},n||1),e.navigateLeft())}},R:{fn:function(e,t,n,r){i.insertMode(e),e.setOverwrite(!0)}},"~":{fn:function(e,t,n){d(function(){var t=e.selection.getRange();t.isEmpty()&&t.end.column++;var n=e.session.getTextRange(t),r=n.toUpperCase();r==n?e.navigateRight():e.session.replace(t,r)},n||1)}},"*":{fn:function(e,t,n,r){e.selection.selectWord(),e.findNext(),v(e);var i=e.selection.getRange();e.selection.setSelectionRange(i,!0)}},"#":{fn:function(e,t,n,r){e.selection.selectWord(),e.findPrevious(),v(e);var i=e.selection.getRange();e.selection.setSelectionRange(i,!0)}},m:{param:!0,fn:function(e,t,n,r){var i=e.session,s=i.vimMarkers||(i.vimMarkers={}),o=e.getCursorPosition();s[r]||(s[r]=e.session.doc.createAnchor(o)),s[r].setPosition(o.row,o.column,!0)}},n:{fn:function(e,t,n,r){var i=e.getLastSearchOptions();i.backwards=!1,e.selection.moveCursorRight(),e.selection.clearSelection(),e.findNext(i),v(e);var s=e.selection.getRange();s.end.row=s.start.row,s.end.column=s.start.column,e.selection.setSelectionRange(s,!0)}},N:{fn:function(e,t,n,r){var i=e.getLastSearchOptions();i.backwards=!0,e.findPrevious(i),v(e);var s=e.selection.getRange();s.end.row=s.start.row,s.end.column=s.start.column,e.selection.setSelectionRange(s,!0)}},v:{fn:function(e,t,n,r){e.selection.selectRight(),i.visualMode(e,!1)},acceptsMotion:!0},V:{fn:function(e,t,n,r){var s=e.getCursorPosition().row;e.selection.clearSelection(),e.selection.moveCursorTo(s,0),e.selection.selectLineEnd(),e.selection.visualLineStart=s,i.visualMode(e,!0)},acceptsMotion:!0},Y:{fn:function(e,t,n,r){i.copyLine(e)}},p:{fn:function(e,t,n,i){var s=a._default;e.setOverwrite(!1);if(s.isLine){var o=e.getCursorPosition();o.column=e.session.getLine(o.row).length;var u=r.stringRepeat("\n"+s.text,n||1);e.session.insert(o,u),e.moveCursorTo(o.row+1,0)}else e.navigateRight(),e.insert(r.stringRepeat(s.text,n||1)),e.navigateLeft();e.setOverwrite(!0),e.selection.clearSelection()}},P:{fn:function(e,t,n,i){var s=a._default;e.setOverwrite(!1);if(s.isLine){var o=e.getCursorPosition();o.column=0;var u=r.stringRepeat(s.text+"\n",n||1);e.session.insert(o,u),e.moveCursorToPosition(o)}else e.insert(r.stringRepeat(s.text,n||1));e.setOverwrite(!0),e.selection.clearSelection()}},J:{fn:function(e,t,n,r){var i=e.session;t=e.getSelectionRange();var s={row:t.start.row,column:t.start.column};n=n||t.end.row-t.start.row;var o=Math.min(s.row+(n||1),i.getLength()-1);t.start.column=i.getLine(s.row).length,t.end.column=i.getLine(o).length,t.end.row=o;var u="";for(var a=s.row;a<o;a++){var f=i.getLine(a+1);u+=" "+/^\s*(.*)$/.exec(f)[1]||""}i.replace(t,u),e.moveCursorTo(s.row,s.column)}},u:{fn:function(e,t,n,r){n=parseInt(n||1,10);for(var i=0;i<n;i++)e.undo();e.selection.clearSelection()}},"ctrl-r":{fn:function(e,t,n,r){n=parseInt(n||1,10);for(var i=0;i<n;i++)e.redo();e.selection.clearSelection()}},":":{fn:function(e,t,n,r){var i=":";n>1&&(i=".,.+"+n+i),e.showCommandLine&&e.showCommandLine(i)}},"/":{fn:function(e,t,n,r){e.showCommandLine&&e.showCommandLine("/")}},"?":{fn:function(e,t,n,r){e.showCommandLine&&e.showCommandLine("?")}},".":{fn:function(e,t,n,r){i.onInsertReplaySequence=g.lastInsertCommands;var s=g.previous;s&&g.exec(e,s.action,s.param)}},"ctrl-x":{fn:function(e,t,n,r){e.modifyNumber(-(n||1))}},"ctrl-a":{fn:function(e,t,n,r){e.modifyNumber(n||1)}}},g=t.inputBuffer={accepting:[f,l,c,h],currentCmd:null,currentCount:"",status:"",operator:null,motion:null,lastInsertCommands:[],push:function(e,t,n){var r=this.status,i=!0;this.idle=!1;var a=this.waitingForParam;/^numpad\d+$/i.test(t)&&(t=t.substr(6));if(a)this.exec(e,a,t);else if(t==="0"&&!this.currentCount.length||!/^\d+$/.test(t)||!this.isAccepting(f))if(!this.operator&&this.isAccepting(l)&&o[t])this.operator={ch:t,count:this.getCount()},this.currentCmd=l,this.accepting=[f,c,h],this.exec(e,{operator:this.operator});else if(s[t]&&this.isAccepting(c)){this.currentCmd=c;var p={operator:this.operator,motion:{ch:t,count:this.getCount()}};s[t].param?this.waitForParam(p):this.exec(e,p)}else if(u[t]&&this.isAccepting(c))u[t].operator.count=this.getCount(),this.exec(e,u[t]);else if(m[t]&&this.isAccepting(h)){var d={action:{fn:m[t].fn,count:this.getCount()}};m[t].param?this.waitForParam(d):this.exec(e,d),m[t].acceptsMotion&&(this.idle=!1)}else this.operator?(this.operator.count=this.getCount(),this.exec(e,{operator:this.operator},t)):(i=t.length==1,this.reset());else this.currentCount+=t,this.currentCmd=f,this.accepting=[f,l,c,h];return this.waitingForParam||this.motion||this.operator?this.status+=t:this.currentCount?this.status=this.currentCount:this.status&&(this.status=""),this.status!=r&&e._emit("changeStatus"),i},waitForParam:function(e){this.waitingForParam=e},getCount:function(){var e=this.currentCount;return this.currentCount="",e&&parseInt(e,10)},exec:function(e,t,n){var r=t.motion,u=t.operator,a=t.action;n||(n=t.param),u&&(this.previous={action:t,param:n});if(u&&!e.selection.isEmpty()){o[u.ch].selFn&&(o[u.ch].selFn(e,e.getSelectionRange(),u.count,n),this.reset());return}if(!r&&!a&&u&&n)o[u.ch].fn(e,null,u.count,n),this.reset();else if(r){var f=function(t){t&&typeof t=="function"&&(r.count&&!l.handlesCount?d(t,r.count,[e,null,r.count,n]):t(e,null,r.count,n))},l=s[r.ch],c=l.sel;u?c&&d(function(){f(l.sel),o[u.ch].fn(e,e.getSelectionRange(),u.count,n)},u.count||1):(i.onVisualMode||i.onVisualLineMode)&&c?f(l.sel):f(l.nav),this.reset()}else a&&(a.fn(e,e.getSelectionRange(),a.count,n),this.reset());b(e)},isAccepting:function(e){return this.accepting.indexOf(e)!==-1},reset:function(){this.operator=null,this.motion=null,this.currentCount="",this.status="",this.accepting=[f,l,c,h],this.idle=!0,this.waitingForParam=null}};t.coreCommands={start:{exec:function w(e){i.insertMode(e),y(w)}},startBeginning:{exec:function E(e){e.navigateLineStart(),i.insertMode(e),y(E)}},stop:{exec:function(t){g.reset(),i.onVisualMode=!1,i.onVisualLineMode=!1,g.lastInsertCommands=i.normalMode(t)}},append:{exec:function S(e){var t=e.getCursorPosition(),n=e.session.getLine(t.row).length;n&&e.navigateRight(),i.insertMode(e),y(S)}},appendEnd:{exec:function x(e){e.navigateLineEnd(),i.insertMode(e),y(x)}}};var b=t.onCursorMove=function(e,t){if(i.currentMode==="insert"||b.running)return;if(!e.selection.isEmpty()){b.running=!0;if(i.onVisualLineMode){var n=e.selection.visualLineStart,r=e.getCursorPosition().row;if(n<=r){var s=e.session.getLine(r);e.selection.clearSelection(),e.selection.moveCursorTo(n,0),e.selection.selectTo(r,s.length)}else{var s=e.session.getLine(n);e.selection.clearSelection(),e.selection.moveCursorTo(n,s.length),e.selection.selectTo(r,0)}}b.running=!1;return}t&&(i.onVisualLineMode||i.onVisualMode)&&(e.selection.clearSelection(),i.normalMode(e)),b.running=!0;var o=e.getCursorPosition(),u=e.session.getLine(o.row).length;u&&o.column===u&&e.navigateLeft(),b.running=!1}}),ace.define("ace/keyboard/vim/maps/util",["require","exports","module","ace/keyboard/vim/registers","ace/lib/dom"],function(e,t,n){var r=e("../registers"),i=e("../../../lib/dom");i.importCssString(".insert-mode .ace_cursor{ border-left: 2px solid #333333;}.ace_dark.insert-mode .ace_cursor{ border-left: 2px solid #eeeeee;}.normal-mode .ace_cursor{ border: 0!important; background-color: red; opacity: 0.5;}","vimMode"),n.exports={onVisualMode:!1,onVisualLineMode:!1,currentMode:"normal",noMode:function(e){e.unsetStyle("insert-mode"),e.unsetStyle("normal-mode"),e.commands.recording&&e.commands.toggleRecording(e),e.setOverwrite(!1)},insertMode:function(e){this.currentMode="insert",e.setStyle("insert-mode"),e.unsetStyle("normal-mode"),e.setOverwrite(!1),e.keyBinding.$data.buffer="",e.keyBinding.$data.state="insertMode",this.onVisualMode=!1,this.onVisualLineMode=!1,this.onInsertReplaySequence?(e.commands.macro=this.onInsertReplaySequence,e.commands.replay(e),this.onInsertReplaySequence=null,this.normalMode(e)):(e._emit("changeStatus"),e.commands.recording||e.commands.toggleRecording(e))},normalMode:function(e){this.currentMode="normal",e.unsetStyle("insert-mode"),e.setStyle("normal-mode"),e.clearSelection();var t;return e.getOverwrite()||(t=e.getCursorPosition(),t.column>0&&e.navigateLeft()),e.setOverwrite(!0),e.keyBinding.$data.buffer="",e.keyBinding.$data.state="start",this.onVisualMode=!1,this.onVisualLineMode=!1,e._emit("changeStatus"),e.commands.recording?(e.commands.toggleRecording(e),e.commands.macro):[]},visualMode:function(e,t){if(this.onVisualLineMode&&t||this.onVisualMode&&!t){this.normalMode(e);return}e.setStyle("insert-mode"),e.unsetStyle("normal-mode"),e._emit("changeStatus"),t?this.onVisualLineMode=!0:(this.onVisualMode=!0,this.onVisualLineMode=!1)},getRightNthChar:function(e,t,n,r){var i=e.getSession().getLine(t.row),s=i.substr(t.column+1).split(n);return r<s.length?s.slice(0,r).join(n).length:null},getLeftNthChar:function(e,t,n,r){var i=e.getSession().getLine(t.row),s=i.substr(0,t.column).split(n);return r<s.length?s.slice(-1*r).join(n).length:null},toRealChar:function(e){return e.length===1?e:/^shift-./.test(e)?e[e.length-1].toUpperCase():""},copyLine:function(e){var t=e.getCursorPosition();e.selection.clearSelection(),e.moveCursorTo(t.row,t.column),e.selection.selectLine(),r._default.isLine=!0,r._default.text=e.getCopyText().replace(/\n$/,""),e.selection.clearSelection(),e.moveCursorTo(t.row,t.column)}}}),ace.define("ace/keyboard/vim/registers",["require","exports","module"],function(e,t,n){"never use strict";n.exports={_default:{text:"",isLine:!1}}}),ace.define("ace/keyboard/vim/maps/motions",["require","exports","module","ace/keyboard/vim/maps/util","ace/search","ace/range"],function(e,t,n){function s(e){if(typeof e=="function"){var t=e;e=this}else var t=e.getPos;return e.nav=function(e,n,r,i){var s=t(e,n,r,i,!1);if(!s)return;e.clearSelection(),e.moveCursorTo(s.row,s.column)},e.sel=function(e,n,r,i){var s=t(e,n,r,i,!0);if(!s)return;e.selection.selectTo(s.row,s.column)},e}function h(e,t,n){return c.$options.needle=t,c.$options.backwards=n==-1,c.find(e.session)}var r=e("./util"),i=function(e,t){var n=e.renderer.getScrollTopRow(),r=e.getCursorPosition().row,i=r-n;t&&t.call(e),e.renderer.scrollToRow(e.getCursorPosition().row-i)},o=/[\s.\/\\()\"'-:,.;<>~!@#$%^&*|+=\[\]{}`~?]/,u=/[.\/\\()\"'-:,.;<>~!@#$%^&*|+=\[\]{}`~?]/,a=/\s/,f=function(e,t){var n=e.selection;this.range=n.getRange(),t=t||n.selectionLead,this.row=t.row,this.col=t.column;var r=e.session.getLine(this.row),i=e.session.getLength();this.ch=r[this.col]||"\n",this.skippedLines=0,this.next=function(){return this.ch=r[++this.col]||this.handleNewLine(1),this.ch},this.prev=function(){return this.ch=r[--this.col]||this.handleNewLine(-1),this.ch},this.peek=function(t){var n=r[this.col+t];return n?n:t==-1?"\n":this.col==r.length-1?"\n":e.session.getLine(this.row+1)[0]||"\n"},this.handleNewLine=function(t){if(t==1)return this.col==r.length?"\n":this.row==i-1?"":(this.col=0,this.row++,r=e.session.getLine(this.row),this.skippedLines++,r[0]||"\n");if(t==-1)return this.row===0?"":(this.row--,r=e.session.getLine(this.row),this.col=r.length,this.skippedLines--,"\n")},this.debug=function(){console.log(r.substring(0,this.col)+"|"+this.ch+"'"+this.col+"'"+r.substr(this.col+1))}},l=e("../../../search").Search,c=new l,p=e("../../../range").Range,d={};n.exports={w:new s(function(e){var t=new f(e);if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.next();else while(t.ch&&!o.test(t.ch))t.next();while(t.ch&&a.test(t.ch)&&t.skippedLines<2)t.next();return t.skippedLines==2&&t.prev(),{column:t.col,row:t.row}}),W:new s(function(e){var t=new f(e);while(t.ch&&(!a.test(t.ch)||!!a.test(t.peek(1)))&&t.skippedLines<2)t.next();return t.skippedLines==2?t.prev():t.next(),{column:t.col,row:t.row}}),b:new s(function(e){var t=new f(e);t.prev();while(t.ch&&a.test(t.ch)&&t.skippedLines>-2)t.prev();if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.prev();else while(t.ch&&!o.test(t.ch))t.prev();return t.ch&&t.next(),{column:t.col,row:t.row}}),B:new s(function(e){var t=new f(e);t.prev();while(t.ch&&(!!a.test(t.ch)||!a.test(t.peek(-1)))&&t.skippedLines>-2)t.prev();return t.skippedLines==-2&&t.next(),{column:t.col,row:t.row}}),e:new s(function(e){var t=new f(e);t.next();while(t.ch&&a.test(t.ch))t.next();if(t.ch&&u.test(t.ch))while(t.ch&&u.test(t.ch))t.next();else while(t.ch&&!o.test(t.ch))t.next();return t.ch&&t.prev(),{column:t.col,row:t.row}}),E:new s(function(e){var t=new f(e);t.next();while(t.ch&&(!!a.test(t.ch)||!a.test(t.peek(1))))t.next();return{column:t.col,row:t.row}}),l:{nav:function(e){var t=e.getCursorPosition(),n=t.column,r=e.session.getLine(t.row).length;r&&n!==r&&e.navigateRight()},sel:function(e){var t=e.getCursorPosition(),n=t.column,r=e.session.getLine(t.row).length;r&&n!==r&&e.selection.selectRight()}},h:{nav:function(e){var t=e.getCursorPosition();t.column>0&&e.navigateLeft()},sel:function(e){var t=e.getCursorPosition();t.column>0&&e.selection.selectLeft()}},H:{nav:function(e){var t=e.renderer.getScrollTopRow();e.moveCursorTo(t)},sel:function(e){var t=e.renderer.getScrollTopRow();e.selection.selectTo(t)}},M:{nav:function(e){var t=e.renderer.getScrollTopRow(),n=e.renderer.getScrollBottomRow(),r=t+(n-t)/2;e.moveCursorTo(r)},sel:function(e){var t=e.renderer.getScrollTopRow(),n=e.renderer.getScrollBottomRow(),r=t+(n-t)/2;e.selection.selectTo(r)}},L:{nav:function(e){var t=e.renderer.getScrollBottomRow();e.moveCursorTo(t)},sel:function(e){var t=e.renderer.getScrollBottomRow();e.selection.selectTo(t)}},k:{nav:function(e){e.navigateUp()},sel:function(e){e.selection.selectUp()}},j:{nav:function(e){e.navigateDown()},sel:function(e){e.selection.selectDown()}},i:{param:!0,sel:function(e,t,n,r){switch(r){case"w":e.selection.selectWord();break;case"W":e.selection.selectAWord();break;case"(":case"{":case"[":var i=e.getCursorPosition(),s=e.session.$findClosingBracket(r,i,/paren/);if(!s)return;var o=e.session.$findOpeningBracket(e.session.$brackets[r],i,/paren/);if(!o)return;o.column++,e.selection.setSelectionRange(p.fromPoints(o,s));break;case"'":case'"':case"/":var s=h(e,r,1);if(!s)return;var o=h(e,r,-1);if(!o)return;e.selection.setSelectionRange(p.fromPoints(o.end,s.start))}}},a:{param:!0,sel:function(e,t,n,r){switch(r){case"w":e.selection.selectAWord();break;case"W":e.selection.selectAWord();break;case"(":case"{":case"[":var i=e.getCursorPosition(),s=e.session.$findClosingBracket(r,i,/paren/);if(!s)return;var o=e.session.$findOpeningBracket(e.session.$brackets[r],i,/paren/);if(!o)return;s.column++,e.selection.setSelectionRange(p.fromPoints(o,s));break;case"'":case'"':case"/":var s=h(e,r,1);if(!s)return;var o=h(e,r,-1);if(!o)return;s.column++,e.selection.setSelectionRange(p.fromPoints(o.start,s.end))}}},f:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"f",param:i});var u=e.getCursorPosition(),a=r.getRightNthChar(e,u,i,n||1);if(typeof a=="number")return u.column+=a+(s?2:1),u}}),F:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"F",param:i});var u=e.getCursorPosition(),a=r.getLeftNthChar(e,u,i,n||1);if(typeof a=="number")return u.column-=a+1,u}}),t:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"t",param:i});var u=e.getCursorPosition(),a=r.getRightNthChar(e,u,i,n||1);if(o&&a==0&&!(n>1))var a=r.getRightNthChar(e,u,i,2);if(typeof a=="number")return u.column+=a+(s?1:0),u}}),T:new s({param:!0,handlesCount:!0,getPos:function(e,t,n,i,s,o){o||(d={ch:"T",param:i});var u=e.getCursorPosition(),a=r.getLeftNthChar(e,u,i,n||1);if(o&&a==0&&!(n>1))var a=r.getLeftNthChar(e,u,i,2);if(typeof a=="number")return u.column-=a,u}}),";":new s({handlesCount:!0,getPos:function(e,t,r,i,s){var o=d.ch;if(!o)return;return n.exports[o].getPos(e,t,r,d.param,s,!0)}}),",":new s({handlesCount:!0,getPos:function(e,t,r,i,s){var o=d.ch;if(!o)return;var u=o.toUpperCase();return o=o===u?o.toLowerCase():u,n.exports[o].getPos(e,t,r,d.param,s,!0)}}),"^":{nav:function(e){e.navigateLineStart()},sel:function(e){e.selection.selectLineStart()}},$:{nav:function(e){e.navigateLineEnd()},sel:function(e){e.selection.selectLineEnd()}},0:new s(function(e){return{row:e.selection.lead.row,column:0}}),G:{nav:function(e,t,n,r){!n&&n!==0&&(n=e.session.getLength()),e.gotoLine(n)},sel:function(e,t,n,r){!n&&n!==0&&(n=e.session.getLength()),e.selection.selectTo(n,0)}},g:{param:!0,nav:function(e,t,n,r){switch(r){case"m":console.log("Middle line");break;case"e":console.log("End of prev word");break;case"g":e.gotoLine(n||0);case"u":e.gotoLine(n||0);case"U":e.gotoLine(n||0)}},sel:function(e,t,n,r){switch(r){case"m":console.log("Middle line");break;case"e":console.log("End of prev word");break;case"g":e.selection.selectTo(n||0,0)}}},o:{nav:function(e,t,n,i){n=n||1;var s="";while(0<n--)s+="\n";s.length&&(e.navigateLineEnd(),e.insert(s),r.insertMode(e))}},O:{nav:function(e,t,n,i){var s=e.getCursorPosition().row;n=n||1;var o="";while(0<n--)o+="\n";o.length&&(s>0?(e.navigateUp(),e.navigateLineEnd(),e.insert(o)):(e.session.insert({row:0,column:0},o),e.navigateUp()),r.insertMode(e))}},"%":new s(function(e){var t=/[\[\]{}()]/g,n=e.getCursorPosition(),r=e.session.getLine(n.row)[n.column];if(!t.test(r)){var i=h(e,t);if(!i)return;n=i.start}var s=e.session.findMatchingBracket({row:n.row,column:n.column+1});return s}),"{":new s(function(e){var t=e.session,n=t.selection.lead.row;while(n>0&&!/\S/.test(t.getLine(n)))n--;while(/\S/.test(t.getLine(n)))n--;return{column:0,row:n}}),"}":new s(function(e){var t=e.session,n=t.getLength(),r=t.selection.lead.row;while(r<n&&!/\S/.test(t.getLine(r)))r++;while(/\S/.test(t.getLine(r)))r++;return{column:0,row:r}}),"ctrl-d":{nav:function(e,t,n,r){e.selection.clearSelection(),i(e,e.gotoPageDown)},sel:function(e,t,n,r){i(e,e.selectPageDown)}},"ctrl-u":{nav:function(e,t,n,r){e.selection.clearSelection(),i(e,e.gotoPageUp)},sel:function(e,t,n,r){i(e,e.selectPageUp)}},"`":new s({param:!0,handlesCount:!0,getPos:function(e,t,n,r,i){var s=e.session,o=s.vimMarkers&&s.vimMarkers[r];if(o)return o.getPosition()}}),"'":new s({param:!0,handlesCount:!0,getPos:function(e,t,n,r,i){var s=e.session,o=s.vimMarkers&&s.vimMarkers[r];if(o){var u=o.getPosition(),a=e.session.getLine(u.row);return u.column=a.search(/\S/),u.column==-1&&(u.column=a.length),u}}})},n.exports.backspace=n.exports.left=n.exports.h,n.exports.space=n.exports["return"]=n.exports.right=n.exports.l,n.exports.up=n.exports.k,n.exports.down=n.exports.j,n.exports.pagedown=n.exports["ctrl-d"],n.exports.pageup=n.exports["ctrl-u"]}),ace.define("ace/keyboard/vim/maps/operators",["require","exports","module","ace/keyboard/vim/maps/util","ace/keyboard/vim/registers"],function(e,t,n){var r=e("./util"),i=e("../registers");n.exports={d:{selFn:function(e,t,n,s){i._default.text=e.getCopyText(),i._default.isLine=r.onVisualLineMode,r.onVisualLineMode?e.removeLines():e.session.remove(t),r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"d":i._default.text="",i._default.isLine=!0;for(var s=0;s<n;s++){e.selection.selectLine(),i._default.text+=e.getCopyText();var o=e.getSelectionRange();if(!o.isMultiLine()){var u=o.start.row-1,a=e.session.getLine(u).length;o.setStart(u,a),e.session.remove(o),e.selection.clearSelection();break}e.session.remove(o),e.selection.clearSelection()}i._default.text=i._default.text.replace(/\n$/,"");break;default:t&&(e.selection.setSelectionRange(t),i._default.text=e.getCopyText(),i._default.isLine=!1,e.session.remove(t),e.selection.clearSelection())}}},c:{selFn:function(e,t,n,i){e.session.remove(t),r.insertMode(e)},fn:function(e,t,n,i){n=n||1;switch(i){case"c":for(var s=0;s<n;s++)e.removeLines(),r.insertMode(e);break;default:t&&(e.session.remove(t),r.insertMode(e))}}},y:{selFn:function(e,t,n,s){i._default.text=e.getCopyText(),i._default.isLine=r.onVisualLineMode,e.selection.clearSelection(),r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"y":var s=e.getCursorPosition();e.selection.selectLine();for(var o=0;o<n-1;o++)e.selection.moveCursorDown();i._default.text=e.getCopyText().replace(/\n$/,""),e.selection.clearSelection(),i._default.isLine=!0,e.moveCursorToPosition(s);break;default:if(t){var s=e.getCursorPosition();e.selection.setSelectionRange(t),i._default.text=e.getCopyText(),i._default.isLine=!1,e.selection.clearSelection(),e.moveCursorTo(s.row,s.column)}}}},">":{selFn:function(e,t,n,i){n=n||1;for(var s=0;s<n;s++)e.indent();r.normalMode(e)},fn:function(e,t,n,r){n=parseInt(n||1,10);switch(r){case">":var i=e.getCursorPosition();e.selection.selectLine();for(var s=0;s<n-1;s++)e.selection.moveCursorDown();e.indent(),e.selection.clearSelection(),e.moveCursorToPosition(i),e.navigateLineEnd(),e.navigateLineStart()}}},"<":{selFn:function(e,t,n,i){n=n||1;for(var s=0;s<n;s++)e.blockOutdent();r.normalMode(e)},fn:function(e,t,n,r){n=n||1;switch(r){case"<":var i=e.getCursorPosition();e.selection.selectLine();for(var s=0;s<n-1;s++)e.selection.moveCursorDown();e.blockOutdent(),e.selection.clearSelection(),e.moveCursorToPosition(i),e.navigateLineEnd(),e.navigateLineStart()}}}}}),"use strict",ace.define("ace/keyboard/vim/maps/aliases",["require","exports","module"],function(e,t,n){n.exports={x:{operator:{ch:"d",count:1},motion:{ch:"l",count:1}},X:{operator:{ch:"d",count:1},motion:{ch:"h",count:1}},D:{operator:{ch:"d",count:1},motion:{ch:"$",count:1}},C:{operator:{ch:"c",count:1},motion:{ch:"$",count:1}},s:{operator:{ch:"c",count:1},motion:{ch:"l",count:1}},S:{operator:{ch:"c",count:1},param:"c"}}})
stomita/cdnjs
ajax/libs/ace/1.1.2/keybinding-vim.js
JavaScript
mit
25,302
/*! * jQuery JavaScript Library v1.10.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-24T18:39Z */ (function( window, undefined ) { // Can't do this because several apps including ASP.NET trace // the stack via arguments.caller.callee and Firefox dies if // you try to trace through "use strict" call chains. (#13335) // Support: Firefox 18+ //"use strict"; var // The deferred used on DOM ready readyList, // A central reference to the root jQuery(document) rootjQuery, // Support: IE<10 // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` core_strundefined = typeof undefined, // Use the correct document accordingly with window argument (sandbox) location = window.location, document = window.document, docElem = document.documentElement, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // [[Class]] -> type pairs class2type = {}, // List of deleted data cache ids, so we can reuse them core_deletedIds = [], core_version = "1.10.0", // Save a reference to some core methods core_concat = core_deletedIds.concat, core_push = core_deletedIds.push, core_slice = core_deletedIds.slice, core_indexOf = core_deletedIds.indexOf, core_toString = class2type.toString, core_hasOwn = class2type.hasOwnProperty, core_trim = core_version.trim, // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); }, // Used for matching numbers core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, // Used for splitting on whitespace core_rnotwhite = /\S+/g, // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, // JSON RegExp rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return letter.toUpperCase(); }, // The ready event handler completed = function( event ) { // readyState === "complete" is good enough for us to call the dom ready in oldIE if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { detach(); jQuery.ready(); } }, // Clean-up method for dom ready events detach = function() { if ( document.addEventListener ) { document.removeEventListener( "DOMContentLoaded", completed, false ); window.removeEventListener( "load", completed, false ); } else { document.detachEvent( "onreadystatechange", completed ); window.detachEvent( "onload", completed ); } }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: core_version, constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Handle HTML strings if ( typeof selector === "string" ) { if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; // scripts is true for back-compat jQuery.merge( this, jQuery.parseHTML( match[1], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( jQuery.isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The default length of a jQuery object is 0 length: 0, toArray: function() { return core_slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }, slice: function() { return this.pushStack( core_slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: core_push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ // Unique for each copy of jQuery on the page // Non-digits removed to match rinlinejQuery expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), noConflict: function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready ); } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { jQuery( document ).trigger("ready").off("ready"); } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, isWindow: function( obj ) { /* jshint eqeqeq: false */ return obj != null && obj == obj.window; }, isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }, type: function( obj ) { if ( obj == null ) { return String( obj ); } return typeof obj === "object" || typeof obj === "function" ? class2type[ core_toString.call(obj) ] || "object" : typeof obj; }, isPlainObject: function( obj ) { var key; // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } try { // Not own constructor property must be Object if ( obj.constructor && !core_hasOwn.call(obj, "constructor") && !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } } catch ( e ) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Support: IE<9 // Handle iteration over inherited properties before own properties. if ( jQuery.support.ownLast ) { for ( key in obj ) { return core_hasOwn.call( obj, key ); } } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. for ( key in obj ) {} return key === undefined || core_hasOwn.call( obj, key ); }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, error: function( msg ) { throw new Error( msg ); }, // data: string of html // context (optional): If specified, the fragment will be created in this context, defaults to document // keepScripts (optional): If true, will include scripts passed in the html string parseHTML: function( data, context, keepScripts ) { if ( !data || typeof data !== "string" ) { return null; } if ( typeof context === "boolean" ) { keepScripts = context; context = false; } context = context || document; var parsed = rsingleTag.exec( data ), scripts = !keepScripts && []; // Single tag if ( parsed ) { return [ context.createElement( parsed[1] ) ]; } parsed = jQuery.buildFragment( [ data ], context, scripts ); if ( scripts ) { jQuery( scripts ).remove(); } return jQuery.merge( [], parsed.childNodes ); }, parseJSON: function( data ) { // Attempt to parse using the native JSON parser first if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); } if ( data === null ) { return data; } if ( typeof data === "string" ) { // Make sure leading/trailing whitespace is removed (IE can't handle it) data = jQuery.trim( data ); if ( data ) { // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( rvalidchars.test( data.replace( rvalidescape, "@" ) .replace( rvalidtokens, "]" ) .replace( rvalidbraces, "")) ) { return ( new Function( "return " + data ) )(); } } } jQuery.error( "Invalid JSON: " + data ); }, // Cross-browser xml parsing parseXML: function( data ) { var xml, tmp; if ( !data || typeof data !== "string" ) { return null; } try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML( data ); } } catch( e ) { xml = undefined; } if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }, noop: function() {}, // Evaluates a script in a global context // Workarounds based on findings by Jim Driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globalEval: function( data ) { if ( data && jQuery.trim( data ) ) { // We use execScript on Internet Explorer // We use an anonymous function so that context is window // rather than jQuery in Firefox ( window.execScript || function( data ) { window[ "eval" ].call( window, data ); } )( data ); } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only each: function( obj, callback, args ) { var value, i = 0, length = obj.length, isArray = isArraylike( obj ); if ( args ) { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } } return obj; }, // Use native String.trim function wherever possible trim: core_trim && !core_trim.call("\uFEFF\xA0") ? function( text ) { return text == null ? "" : core_trim.call( text ); } : // Otherwise use our own trimming functionality function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArraylike( Object(arr) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { core_push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { var len; if ( arr ) { if ( core_indexOf ) { return core_indexOf.call( arr, elem, i ); } len = arr.length; i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { // Skip accessing in sparse arrays if ( i in arr && arr[ i ] === elem ) { return i; } } } return -1; }, merge: function( first, second ) { var l = second.length, i = first.length, j = 0; if ( typeof l === "number" ) { for ( ; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var retVal, ret = [], i = 0, length = elems.length; inv = !!inv; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { retVal = !!callback( elems[ i ], i ); if ( inv !== retVal ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, i = 0, length = elems.length, isArray = isArraylike( elems ), ret = []; // Go through the array, translating each of the items to their if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } } // Flatten any nested arrays return core_concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var args, proxy, tmp; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = core_slice.call( arguments, 2 ); proxy = function() { return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function access: function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, length = elems.length, bulk = key == null; // Sets many values if ( jQuery.type( key ) === "object" ) { chainable = true; for ( i in key ) { jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !jQuery.isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < length; i++ ) { fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); } } } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }, now: function() { return ( new Date() ).getTime(); }, // A method for quickly swapping in/out CSS properties to get correct calculations. // Note: this method belongs to the css module but it's needed here for the support module. // If support gets modularized, this method should be moved back to the css module. swap: function( elem, options, callback, args ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.apply( elem, args || [] ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; } }); jQuery.ready.promise = function( obj ) { if ( !readyList ) { readyList = jQuery.Deferred(); // Catch cases where $(document).ready() is called after the browser event has already occurred. // we once tried to use readyState "interactive" here, but it caused issues like the one // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready setTimeout( jQuery.ready ); // Standards-based browsers support DOMContentLoaded } else if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed, false ); // If IE event model is used } else { // Ensure firing before onload, maybe late but safe also for iframes document.attachEvent( "onreadystatechange", completed ); // A fallback to window.onload, that will always work window.attachEvent( "onload", completed ); // If IE and not a frame // continually check to see if the document is ready var top = false; try { top = window.frameElement == null && document.documentElement; } catch(e) {} if ( top && top.doScroll ) { (function doScrollCheck() { if ( !jQuery.isReady ) { try { // Use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, 50 ); } // detach all dom ready events detach(); // and execute any waiting functions jQuery.ready(); } })(); } } } return readyList.promise( obj ); }; // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); function isArraylike( obj ) { var length = obj.length, type = jQuery.type( obj ); if ( jQuery.isWindow( obj ) ) { return false; } if ( obj.nodeType === 1 && length ) { return true; } return type === "array" || type !== "function" && ( length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj ); } // All jQuery objects should point back to these rootjQuery = jQuery(document); /*! * Sizzle CSS Selector Engine v1.9.4-pre * http://sizzlejs.com/ * * Copyright 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-15 */ (function( window, undefined ) { var i, support, cachedruns, Expr, getText, isXML, compile, outermostContext, sortInput, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + -(new Date()), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), hasDuplicate = false, sortOrder = function() { return 0; }, // General-purpose constants strundefined = typeof undefined, MAX_NEGATIVE = 1 << 31, // Instance methods hasOwn = ({}).hasOwnProperty, arr = [], pop = arr.pop, push_native = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf if we can't use a native one indexOf = arr.indexOf || function( elem ) { var i = 0, len = this.length; for ( ; i < len; i++ ) { if ( this[i] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // http://www.w3.org/TR/css3-syntax/#characters characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", // Loosely modeled on CSS identifier characters // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier identifier = characterEncoding.replace( "w", "w#" ), // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", // Prefer arguments quoted, // then not containing pseudos/brackets, // then attribute selectors/non-parenthetical expressions, // then anything else // These preferences are here to reduce the number of selectors // needing tokenize in the PSEUDO preFilter pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rsibling = new RegExp( whitespace + "*[+~]" ), rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + characterEncoding + ")" ), "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rescape = /'|\\/g, // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), funescape = function( _, escaped, escapedWhitespace ) { var high = "0x" + escaped - 0x10000; // NaN means non-codepoint // Support: Firefox // Workaround erroneous numeric interpretation of +"0x" return high !== high || escapedWhitespace ? escaped : // BMP codepoint high < 0 ? String.fromCharCode( high + 0x10000 ) : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }; // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call( preferredDoc.childNodes )), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { push_native.apply( target, slice.call(els) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( (target[j++] = els[i++]) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var match, elem, m, nodeType, // QSA vars i, groups, old, nid, newContext, newSelector; if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; results = results || []; if ( !selector || typeof selector !== "string" ) { return results; } if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { return []; } if ( documentIsHTML && !seed ) { // Shortcuts if ( (match = rquickExpr.exec( selector )) ) { // Speed-up: Sizzle("#ID") if ( (m = match[1]) ) { if ( nodeType === 9 ) { elem = context.getElementById( m ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE, Opera, and Webkit return items // by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } } else { // Context is not a document if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Speed-up: Sizzle("TAG") } else if ( match[2] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Speed-up: Sizzle(".CLASS") } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // QSA path if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { nid = old = expando; newContext = context; newSelector = nodeType === 9 && selector; // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { groups = tokenize( selector ); if ( (old = context.getAttribute("id")) ) { nid = old.replace( rescape, "\\$&" ); } else { context.setAttribute( "id", nid ); } nid = "[id='" + nid + "'] "; i = groups.length; while ( i-- ) { groups[i] = nid + toSelector( groups[i] ); } newContext = rsibling.test( selector ) && context.parentNode || context; newSelector = groups.join(","); } if ( newSelector ) { try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch(qsaError) { } finally { if ( !old ) { context.removeAttribute("id"); } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * For feature detection * @param {Function} fn The function to test for native support */ function isNative( fn ) { return rnative.test( fn + "" ); } /** * Create key-value caches of limited size * @returns {Function(string, Object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key += " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return (cache[ key ] = value); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created div and expects a boolean result */ function assert( fn ) { var div = document.createElement("div"); try { return !!fn( div ); } catch (e) { return false; } finally { // Remove from its parent by default if ( div.parentNode ) { div.parentNode.removeChild( div ); } // release memory in IE div = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied if the test fails * @param {Boolean} test The result of a test. If true, null will be set as the handler in leiu of the specified handler */ function addHandle( attrs, handler, test ) { attrs = attrs.split("|"); var current, i = attrs.length, setHandle = test ? null : handler; while ( i-- ) { // Don't override a user's handler if ( !(current = Expr.attrHandle[ attrs[i] ]) || current === handler ) { Expr.attrHandle[ attrs[i] ] = setHandle; } } } /** * Fetches boolean attributes by node * @param {Element} elem * @param {String} name */ function boolHandler( elem, name ) { // XML does not need to be checked as this will not be assigned for XML documents var val = elem.getAttributeNode( name ); return val && val.specified ? val.value : elem[ name ] === true ? name.toLowerCase() : null; } /** * Fetches attributes without interpolation * http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx * @param {Element} elem * @param {String} name */ function interpolationHandler( elem, name ) { // XML does not need to be checked as this will not be assigned for XML documents return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } /** * Uses defaultValue to retrieve value in IE6/7 * @param {Element} elem * @param {String} name */ function valueHandler( elem ) { // Ignore the value *property* on inputs by using defaultValue // Fallback to Sizzle.attr by returning undefined where appropriate // XML does not need to be checked as this will not be assigned for XML documents if ( elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns Returns -1 if a precedes b, 1 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE ); // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( (cur = cur.nextSibling) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ (j = matchIndexes[i]) ] ) { seed[j] = !(matches[j] = seed[j]); } } }); }); } /** * Detect xml * @param {Element|Object} elem An element or a document */ isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; // Expose support vars for convenience support = Sizzle.support = {}; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var doc = node ? node.ownerDocument || node : preferredDoc; // If no document and documentElement is available, return if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Set our document document = doc; docElem = doc.documentElement; // Support tests documentIsHTML = !isXML( doc ); /* Attributes ---------------------------------------------------------------------- */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) support.attributes = assert(function( div ) { // Support: IE<8 // Prevent attribute/property "interpolation" div.innerHTML = "<a href='#'></a>"; addHandle( "type|href|height|width", interpolationHandler, div.firstChild.getAttribute("href") === "#" ); // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies addHandle( booleans, boolHandler, div.getAttribute("disabled") == null ); div.className = "i"; return !div.getAttribute("className"); }); // Support: IE<9 // Retrieving value should defer to defaultValue support.input = assert(function( div ) { div.innerHTML = "<input>"; div.firstChild.setAttribute( "value", "" ); return div.firstChild.getAttribute( "value" ) === ""; }); // IE6/7 still return empty string for value, // but are actually retrieving the property addHandle( "value", valueHandler, support.attributes && support.input ); /* getElement(s)By* ---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert(function( div ) { div.appendChild( doc.createComment("") ); return !div.getElementsByTagName("*").length; }); // Check if getElementsByClassName can be trusted support.getElementsByClassName = assert(function( div ) { div.innerHTML = "<div class='a'></div><div class='a i'></div>"; // Support: Safari<4 // Catch class over-caching div.firstChild.className = "i"; // Support: Opera<10 // Catch gEBCN failure to find non-leading classes return div.getElementsByClassName("i").length === 2; }); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( div ) { docElem.appendChild( div ).id = expando; return !doc.getElementsByName || !doc.getElementsByName( expando ).length; }); // ID find and filter if ( support.getById ) { Expr.find["ID"] = function( id, context ) { if ( typeof context.getElementById !== strundefined && documentIsHTML ) { var m = context.getElementById( id ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [m] : []; } }; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute("id") === attrId; }; }; } else { // Support: IE6/7 // getElementById is not reliable as a find shortcut delete Expr.find["ID"]; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === attrId; }; }; } // Tag Expr.find["TAG"] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== strundefined ) { return context.getElementsByTagName( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( (elem = results[i++]) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector ---------------------------------------------------------------------- */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See http://bugs.jquery.com/ticket/13378 rbuggyQSA = []; if ( (support.qsa = isNative(doc.querySelectorAll)) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( div ) { // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // http://bugs.jquery.com/ticket/12359 div.innerHTML = "<select><option selected=''></option></select>"; // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !div.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } }); assert(function( div ) { // Support: Opera 10-12/IE8 // ^= $= *= and empty values // Should not select anything // Support: Windows 8 Native Apps // The type attribute is restricted during .innerHTML assignment var input = doc.createElement("input"); input.setAttribute( "type", "hidden" ); div.appendChild( input ).setAttribute( "t", "" ); if ( div.querySelectorAll("[t^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":enabled").length ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Opera 10-11 does not throw on post-comma invalid pseudos div.querySelectorAll("*,:x"); rbuggyQSA.push(",.*:"); }); } if ( (support.matchesSelector = isNative( (matches = docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector) )) ) { assert(function( div ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( div, "div" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( div, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); }); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); /* Contains ---------------------------------------------------------------------- */ // Element contains another // Purposefully does not implement inclusive descendent // As in, an element does not contain itself contains = isNative(docElem.contains) || docElem.compareDocumentPosition ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 )); } : function( a, b ) { if ( b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting ---------------------------------------------------------------------- */ // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert(function( div1 ) { // Should return 1, but returns 4 (following) return div1.compareDocumentPosition( doc.createElement("div") ) & 1; }); // Document order sorting sortOrder = docElem.compareDocumentPosition ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); if ( compare ) { // Disconnected nodes if ( compare & 1 || (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { // Choose the first element that is related to our preferred document if ( a === doc || contains(preferredDoc, a) ) { return -1; } if ( b === doc || contains(preferredDoc, b) ) { return 1; } // Maintain original order return sortInput ? ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } // Not directly comparable, sort on existence of method return a.compareDocumentPosition ? -1 : 1; } : function( a, b ) { var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; // Parentless nodes are either documents or disconnected } else if ( !aup || !bup ) { return a === doc ? -1 : b === doc ? 1 : aup ? -1 : bup ? 1 : sortInput ? ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( (cur = cur.parentNode) ) { ap.unshift( cur ); } cur = b; while ( (cur = cur.parentNode) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[i] === bp[i] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[i], bp[i] ) : // Otherwise nodes in our document sort first ap[i] === preferredDoc ? -1 : bp[i] === preferredDoc ? 1 : 0; }; return doc; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); if ( support.matchesSelector && documentIsHTML && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch(e) {} } return Sizzle( expr, document, null, [elem] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed if ( ( context.ownerDocument || context ) !== document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = ( fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined ); return val === undefined ? support.attributes || !documentIsHTML ? elem.getAttribute( name ) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null : val; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( (elem = results[i++]) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array for ( ; (node = elem[i]); i++ ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (see #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[3] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); // other types prohibit arguments } else if ( match[3] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[5] && match[2]; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } // Accept quoted arguments as-is if ( match[3] && match[4] !== undefined ) { match[2] = match[4]; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) (excess = tokenize( unquoted, true )) && // advance to the next closing parenthesis (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { // excess is a negative index match[0] = match[0].slice( 0, excess ); match[2] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); }); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; }; }, "CHILD": function( type, what, argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, context, xml ) { var cache, outerCache, node, diff, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( (node = node[ dir ]) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index outerCache = parent[ expando ] || (parent[ expando ] = {}); cache = outerCache[ type ] || []; nodeIndex = cache[0] === dirruns && cache[1]; diff = cache[0] === dirruns && cache[2]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( (node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start (diff = nodeIndex = 0) || start.pop()) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { outerCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } // Use previously-cached element index if available } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { diff = cache[1]; // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) } else { // Use the same loop as above to seek `elem` from the start while ( (node = ++nodeIndex && node && node[ dir ] || (diff = nodeIndex = 0) || start.pop()) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction(function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf.call( seed, matched[i] ); seed[ idx ] = !( matches[ idx ] = matched[i] ); } }) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction(function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction(function( seed, matches, context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( (elem = unmatched[i]) ) { seed[i] = !(matches[i] = elem); } } }) : function( elem, context, xml ) { input[0] = elem; matcher( input, null, xml, results ); return !results.pop(); }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "contains": markFunction(function( text ) { return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // http://www.w3.org/TR/selectors/#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test(lang || "") ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); return false; }; }), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); }, // Boolean properties "enabled": function( elem ) { return elem.disabled === false; }, "disabled": function( elem ) { return elem.disabled === true; }, "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), // not comment, processing instructions, or others // Thanks to Diego Perini for the nodeName shortcut // Greater than "@" means alpha characters (specifically not starting with "#" or "?") for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) // use getAttribute instead to test this case return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); }, // Position-in-collection "first": createPositionalPseudo(function() { return [ 0 ]; }), "last": createPositionalPseudo(function( matchIndexes, length ) { return [ length - 1 ]; }), "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; }), "even": createPositionalPseudo(function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "odd": createPositionalPseudo(function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; }), "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; }) } }; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } function tokenize( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || (match = rcomma.exec( soFar )) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[0].length ) || soFar; } groups.push( tokens = [] ); } matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { matched = match.shift(); tokens.push({ value: matched, // Cast descendant combinators to space type: match[0].replace( rtrim, " " ) }); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match ))) ) { matched = match.shift(); tokens.push({ value: matched, type: type, matches: match }); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); } function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[i].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, checkNonElements = base && dir === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var data, cache, outerCache, dirkey = dirruns + " " + doneName; // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching if ( xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || (elem[ expando ] = {}); if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { if ( (data = cache[1]) === true || data === cachedruns ) { return data === true; } } else { cache = outerCache[ dir ] = [ dirkey ]; cache[1] = matcher( elem, context, xml ) || cachedruns; if ( cache[1] === true ) { return true; } } } } } }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[i]( elem, context, xml ) ) { return false; } } return true; } : matchers[0]; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( (elem = unmatched[i]) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction(function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( (elem = temp[i]) ) { matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) ) { // Restore matcherIn since elem is not yet a final match temp.push( (matcherIn[i] = elem) ); } } postFinder( null, (matcherOut = []), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) && (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { seed[temp] = !(results[temp] = elem); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } }); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[0].type ], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf.call( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( (checkContext = context).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); } ]; for ( ; i < len; i++ ) { if ( (matcher = Expr.relative[ tokens[i].type ]) ) { matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; } else { matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[j].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { // A counter to specify which element is currently being matched var matcherCachedRuns = 0, bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, expandContext ) { var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = expandContext != null, contextBackup = outermostContext, // We must always have either seed elements or context elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); if ( outermost ) { outermostContext = context !== document && context; cachedruns = matcherCachedRuns; } // Add elements passing elementMatchers directly to results // Keep `i` a string if there are no elements so `matchedCount` will be "00" below for ( ; (elem = elems[i]) != null; i++ ) { if ( byElement && elem ) { j = 0; while ( (matcher = elementMatchers[j++]) ) { if ( matcher( elem, context, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; cachedruns = ++matcherCachedRuns; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( (elem = !matcher && elem) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // Apply set filters to unmatched elements matchedCount += i; if ( bySet && i !== matchedCount ) { j = 0; while ( (matcher = setMatchers[j++]) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !(unmatched[i] || setMatched[i]) ) { setMatched[i] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !group ) { group = tokenize( selector ); } i = group.length; while ( i-- ) { cached = matcherFromTokens( group[i] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); } return cached; }; function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; } function select( selector, context, results, seed ) { var i, tokens, token, type, find, match = tokenize( selector ); if ( !seed ) { // Try to minimize operations if there is only one group if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID tokens = match[0] = match[0].slice( 0 ); if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && support.getById && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; if ( !context ) { return results; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[i]; // Abort if we hit a combinator if ( Expr.relative[ (type = token.type) ] ) { break; } if ( (find = Expr.find[ type ]) ) { // Search, expanding context for leading sibling combinators if ( (seed = find( token.matches[0].replace( runescape, funescape ), rsibling.test( tokens[0].type ) && context.parentNode || context )) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } } // Compile and execute a filtering function // Provide `match` to avoid retokenization if we modified the selector above compile( selector, match )( seed, context, !documentIsHTML, results, rsibling.test( selector ) ); return results; } // Deprecated Expr.pseudos["nth"] = Expr.pseudos["eq"]; // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); // One-time assignments // Sort stability support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; // Initialize against the default document setDocument(); // Support: Chrome<<14 // Always assume duplicates if they aren't passed to the comparison function [0, 0].sort( sortOrder ); support.detectDuplicates = hasDuplicate; jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; })( window ); // String to Object options format cache var optionsCache = {}; // Convert String-formatted options into Object-formatted ones and store in cache function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { object[ flag ] = true; }); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? ( optionsCache[ options ] || createOptions( options ) ) : jQuery.extend( {}, options ); var // Flag to know if list is currently firing firing, // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // First callback to fire (used internally by add and fireWith) firingStart, // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = !options.once && [], // Fire callbacks fire = function( data ) { memory = options.memory && data; fired = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; firing = true; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { memory = false; // To prevent further calls using add break; } } firing = false; if ( list ) { if ( stack ) { if ( stack.length ) { fire( stack.shift() ); } } else if ( memory ) { list = []; } else { self.disable(); } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // First, we save the current length var start = list.length; (function add( args ) { jQuery.each( args, function( _, arg ) { var type = jQuery.type( arg ); if ( type === "function" ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && type !== "string" ) { // Inspect recursively add( arg ); } }); })( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away } else if ( memory ) { firingStart = start; fire( memory ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { jQuery.each( arguments, function( _, arg ) { var index; while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( firing ) { if ( index <= firingLength ) { firingLength--; } if ( index <= firingIndex ) { firingIndex--; } } } }); } return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); }, // Remove all callbacks from the list empty: function() { list = []; firingLength = 0; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; if ( list && ( !fired || stack ) ) { if ( firing ) { stack.push( args ); } else { fire( args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], [ "notify", "progress", jQuery.Callbacks("memory") ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, then: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred(function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var action = tuple[ 0 ], fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; // deferred[ done | fail | progress ] for forwarding actions to newDefer deferred[ tuple[1] ](function() { var returned = fn && fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .done( newDefer.resolve ) .fail( newDefer.reject ) .progress( newDefer.notify ); } else { newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); } }); }); fns = null; }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Keep pipe for back-compat promise.pipe = promise.then; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 3 ]; // promise[ done | fail | progress ] = list.add promise[ tuple[1] ] = list.add; // Handle state if ( stateString ) { list.add(function() { // state = [ resolved | rejected ] state = stateString; // [ reject_list | resolve_list ].disable; progress_list.lock }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); } // deferred[ resolve | reject | notify ] deferred[ tuple[0] ] = function() { deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); return this; }; deferred[ tuple[0] + "With" ] = list.fireWith; }); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( subordinate /* , ..., subordinateN */ ) { var i = 0, resolveValues = core_slice.call( arguments ), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; if( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !( --remaining ) ) { deferred.resolveWith( contexts, values ); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if ( length > 1 ) { progressValues = new Array( length ); progressContexts = new Array( length ); resolveContexts = new Array( length ); for ( ; i < length; i++ ) { if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { resolveValues[ i ].promise() .done( updateFunc( i, resolveContexts, resolveValues ) ) .fail( deferred.reject ) .progress( updateFunc( i, progressContexts, progressValues ) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if ( !remaining ) { deferred.resolveWith( resolveContexts, resolveValues ); } return deferred.promise(); } }); jQuery.support = (function( support ) { var all, a, input, select, fragment, opt, eventName, isSupported, i, div = document.createElement("div"); // Setup div.setAttribute( "className", "t" ); div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; // Finish early in limited (non-browser) environments all = div.getElementsByTagName("*") || []; a = div.getElementsByTagName("a")[ 0 ]; if ( !a || !a.style || !all.length ) { return support; } // First batch of tests select = document.createElement("select"); opt = select.appendChild( document.createElement("option") ); input = div.getElementsByTagName("input")[ 0 ]; a.style.cssText = "top:1px;float:left;opacity:.5"; // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) support.getSetAttribute = div.className !== "t"; // IE strips leading whitespace when .innerHTML is used support.leadingWhitespace = div.firstChild.nodeType === 3; // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables support.tbody = !div.getElementsByTagName("tbody").length; // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE support.htmlSerialize = !!div.getElementsByTagName("link").length; // Get the style information from getAttribute // (IE uses .cssText instead) support.style = /top/.test( a.getAttribute("style") ); // Make sure that URLs aren't manipulated // (IE normalizes it by default) support.hrefNormalized = a.getAttribute("href") === "/a"; // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 support.opacity = /^0.5/.test( a.style.opacity ); // Verify style float existence // (IE uses styleFloat instead of cssFloat) support.cssFloat = !!a.style.cssFloat; // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) support.checkOn = !!input.value; // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) support.optSelected = opt.selected; // Tests for enctype support on a form (#6743) support.enctype = !!document.createElement("form").enctype; // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>"; // Will be defined later support.inlineBlockNeedsLayout = false; support.shrinkWrapBlocks = false; support.pixelPosition = false; support.deleteExpando = true; support.noCloneEvent = true; support.reliableMarginRight = true; support.boxSizingReliable = true; // Make sure checked status is properly cloned input.checked = true; support.noCloneChecked = input.cloneNode( true ).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Support: IE<9 try { delete div.test; } catch( e ) { support.deleteExpando = false; } // Check if we can trust getAttribute("value") input = document.createElement("input"); input.setAttribute( "value", "" ); support.input = input.getAttribute( "value" ) === ""; // Check if an input maintains its value after becoming a radio input.value = "t"; input.setAttribute( "type", "radio" ); support.radioValue = input.value === "t"; // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute( "checked", "t" ); input.setAttribute( "name", "t" ); fragment = document.createDocumentFragment(); fragment.appendChild( input ); // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) support.appendChecked = input.checked; // WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: IE<9 // Opera does not clone events (and typeof div.attachEvent === undefined). // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() if ( div.attachEvent ) { div.attachEvent( "onclick", function() { support.noCloneEvent = false; }); div.cloneNode( true ).click(); } // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) for ( i in { submit: true, change: true, focusin: true }) { div.setAttribute( eventName = "on" + i, "t" ); support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; } div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; // Support: IE<9 // Iteration over object's inherited properties before its own. for ( i in jQuery( support ) ) { break; } support.ownLast = i !== "0"; // Run tests that need a body at doc ready jQuery(function() { var container, marginDiv, tds, divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", body = document.getElementsByTagName("body")[0]; if ( !body ) { // Return for frameset docs that don't have a body return; } container = document.createElement("div"); container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; body.appendChild( container ).appendChild( div ); // Support: IE8 // Check if table cells still have offsetWidth/Height when they are set // to display:none and there are still other visible table cells in a // table row; if so, offsetWidth/Height are not reliable for use when // determining if an element has been hidden directly using // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; tds = div.getElementsByTagName("td"); tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; isSupported = ( tds[ 0 ].offsetHeight === 0 ); tds[ 0 ].style.display = ""; tds[ 1 ].style.display = "none"; // Support: IE8 // Check if empty table cells still have offsetWidth/Height support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); // Check box-sizing and margin behavior. div.innerHTML = ""; div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; // Workaround failing boxSizing test due to offsetWidth returning wrong value // with some non-1 values of body zoom, ticket #13543 jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { support.boxSizing = div.offsetWidth === 4; }); // Use window.getComputedStyle because jsdom on node.js will break without it. if ( window.getComputedStyle ) { support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. (#3333) // Fails in WebKit before Feb 2011 nightlies // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right marginDiv = div.appendChild( document.createElement("div") ); marginDiv.style.cssText = div.style.cssText = divReset; marginDiv.style.marginRight = marginDiv.style.width = "0"; div.style.width = "1px"; support.reliableMarginRight = !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); } if ( typeof div.style.zoom !== core_strundefined ) { // Support: IE<8 // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout div.innerHTML = ""; div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); // Support: IE6 // Check if elements with layout shrink-wrap their children div.style.display = "block"; div.innerHTML = "<div></div>"; div.firstChild.style.width = "5px"; support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); if ( support.inlineBlockNeedsLayout ) { // Prevent IE 6 from affecting layout for positioned elements #11048 // Prevent IE from shrinking the body in IE 7 mode #12869 // Support: IE<8 body.style.zoom = 1; } } body.removeChild( container ); // Null elements to avoid leaks in IE container = div = tds = marginDiv = null; }); // Null elements to avoid leaks in IE all = select = fragment = opt = a = input = null; return support; })({}); var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g; function internalData( elem, name, data, pvt /* Internal Use Only */ ){ if ( !jQuery.acceptData( elem ) ) { return; } var ret, thisCache, internalKey = jQuery.expando, // We have to handle DOM nodes and JS objects differently because IE6-7 // can't GC object references properly across the DOM-JS boundary isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is // attached directly to the object so GC can occur automatically cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows // the code to shortcut on the same path as a DOM node with no cache id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; // Avoid doing any more work than we need to when trying to get data on an // object that has no data at all if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { return; } if ( !id ) { // Only DOM nodes need a new unique ID for each element since their data // ends up in the global cache if ( isNode ) { id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; } else { id = internalKey; } } if ( !cache[ id ] ) { // Avoid exposing jQuery metadata on plain JS objects when the object // is serialized using JSON.stringify cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; } // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } } thisCache = cache[ id ]; // jQuery data() is stored in a separate object inside the object's internal data // cache in order to avoid key collisions between internal data and user-defined // data. if ( !pvt ) { if ( !thisCache.data ) { thisCache.data = {}; } thisCache = thisCache.data; } if ( data !== undefined ) { thisCache[ jQuery.camelCase( name ) ] = data; } // Check for both converted-to-camel and non-converted data property names // If a data property was specified if ( typeof name === "string" ) { // First Try to find as-is property data ret = thisCache[ name ]; // Test for null|undefined property data if ( ret == null ) { // Try to find the camelCased property ret = thisCache[ jQuery.camelCase( name ) ]; } } else { ret = thisCache; } return ret; } function internalRemoveData( elem, name, pvt ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, i, isNode = elem.nodeType, // See jQuery.data for more information cache = isNode ? jQuery.cache : elem, id = isNode ? elem[ jQuery.expando ] : jQuery.expando; // If there is already no cache entry for this object, there is no // purpose in continuing if ( !cache[ id ] ) { return; } if ( name ) { thisCache = pvt ? cache[ id ] : cache[ id ].data; if ( thisCache ) { // Support array or space separated string names for data keys if ( !jQuery.isArray( name ) ) { // try the string as a key before any manipulation if ( name in thisCache ) { name = [ name ]; } else { // split the camel cased version by spaces unless a key with the spaces exists name = jQuery.camelCase( name ); if ( name in thisCache ) { name = [ name ]; } else { name = name.split(" "); } } } else { // If "name" is an array of keys... // When data is initially created, via ("key", "val") signature, // keys will be converted to camelCase. // Since there is no way to tell _how_ a key was added, remove // both plain key and camelCase key. #12786 // This will only penalize the array argument path. name = name.concat( jQuery.map( name, jQuery.camelCase ) ); } i = name.length; while ( i-- ) { delete thisCache[ name[i] ]; } // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { return; } } } // See jQuery.data for more information if ( !pvt ) { delete cache[ id ].data; // Don't destroy the parent cache unless the internal data object // had been the only thing left in it if ( !isEmptyDataObject( cache[ id ] ) ) { return; } } // Destroy the cache if ( isNode ) { jQuery.cleanData( [ elem ], true ); // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) /* jshint eqeqeq: false */ } else if ( jQuery.support.deleteExpando || cache != cache.window ) { /* jshint eqeqeq: true */ delete cache[ id ]; // When all else fails, null } else { cache[ id ] = null; } } jQuery.extend({ cache: {}, // The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "applet": true, "embed": true, // Ban all objects except for Flash (which handle expandos) "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" }, hasData: function( elem ) { elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; return !!elem && !isEmptyDataObject( elem ); }, data: function( elem, name, data ) { return internalData( elem, name, data ); }, removeData: function( elem, name ) { return internalRemoveData( elem, name ); }, // For internal use only. _data: function( elem, name, data ) { return internalData( elem, name, data, true ); }, _removeData: function( elem, name ) { return internalRemoveData( elem, name, true ); }, // A method for determining if a DOM node can handle the data expando acceptData: function( elem ) { // Do not set data on non-element because it will not be cleared (#8335). if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { return false; } var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; // nodes accept data unless otherwise specified; rejection can be conditional return !noData || noData !== true && elem.getAttribute("classid") === noData; } }); jQuery.fn.extend({ data: function( key, value ) { var attrs, name, data = null, i = 0, elem = this[0]; // Special expections of .data basically thwart jQuery.access, // so implement the relevant behavior ourselves // Gets all values if ( key === undefined ) { if ( this.length ) { data = jQuery.data( elem ); if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { attrs = elem.attributes; for ( ; i < attrs.length; i++ ) { name = attrs[i].name; if ( name.indexOf("data-") === 0 ) { name = jQuery.camelCase( name.slice(5) ); dataAttr( elem, name, data[ name ] ); } } jQuery._data( elem, "parsedAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } return arguments.length > 1 ? // Sets one value this.each(function() { jQuery.data( this, key, value ); }) : // Gets one value // Try to fetch any internally stored data first elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); function dataAttr( elem, key, data ) { // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later jQuery.data( elem, key, data ); } else { data = undefined; } } return data; } // checks a cache object for emptiness function isEmptyDataObject( obj ) { var name; for ( name in obj ) { // if the public data object is empty, the private is still empty if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { continue; } if ( name !== "toJSON" ) { return false; } } return true; } jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = jQuery._data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray(data) ) { queue = jQuery._data( elem, type, jQuery.makeArray(data) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } hooks.cur = fn; if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // not intended for public consumption - generates a queueHooks object, or returns the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return jQuery._data( elem, key ) || jQuery._data( elem, key, { empty: jQuery.Callbacks("once memory").add(function() { jQuery._removeData( elem, type + "queue" ); jQuery._removeData( elem, key ); }) }); } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); // ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while( i-- ) { tmp = jQuery._data( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } }); var nodeHook, boolHook, rclass = /[\t\r\n\f]/g, rreturn = /\r/g, rfocusable = /^(?:input|select|textarea|button|object)$/i, rclickable = /^(?:a|area)$/i, ruseDefault = /^(?:checked|selected)$/i, getSetAttribute = jQuery.support.getSetAttribute, getSetInput = jQuery.support.input; jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each(function() { jQuery.removeAttr( this, name ); }); }, prop: function( name, value ) { return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { name = jQuery.propFix[ name ] || name; return this.each(function() { // try/catch handles cases where IE balks (such as removing a property on window) try { this[ name ] = undefined; delete this[ name ]; } catch( e ) {} }); }, addClass: function( value ) { var classes, elem, cur, clazz, j, i = 0, len = this.length, proceed = typeof value === "string" && value; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).addClass( value.call( this, j, this.className ) ); }); } if ( proceed ) { // The disjunction here is for better compressibility (see removeClass) classes = ( value || "" ).match( core_rnotwhite ) || []; for ( ; i < len; i++ ) { elem = this[ i ]; cur = elem.nodeType === 1 && ( elem.className ? ( " " + elem.className + " " ).replace( rclass, " " ) : " " ); if ( cur ) { j = 0; while ( (clazz = classes[j++]) ) { if ( cur.indexOf( " " + clazz + " " ) < 0 ) { cur += clazz + " "; } } elem.className = jQuery.trim( cur ); } } } return this; }, removeClass: function( value ) { var classes, elem, cur, clazz, j, i = 0, len = this.length, proceed = arguments.length === 0 || typeof value === "string" && value; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).removeClass( value.call( this, j, this.className ) ); }); } if ( proceed ) { classes = ( value || "" ).match( core_rnotwhite ) || []; for ( ; i < len; i++ ) { elem = this[ i ]; // This expression is here for better compressibility (see addClass) cur = elem.nodeType === 1 && ( elem.className ? ( " " + elem.className + " " ).replace( rclass, " " ) : "" ); if ( cur ) { j = 0; while ( (clazz = classes[j++]) ) { // Remove *all* instances while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { cur = cur.replace( " " + clazz + " ", " " ); } } elem.className = value ? jQuery.trim( cur ) : ""; } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isBool = typeof stateVal === "boolean"; if ( jQuery.isFunction( value ) ) { return this.each(function( i ) { jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery( this ), state = stateVal, classNames = value.match( core_rnotwhite ) || []; while ( (className = classNames[ i++ ]) ) { // check each className given, space separated list state = isBool ? state : !self.hasClass( className ); self[ state ? "addClass" : "removeClass" ]( className ); } // Toggle whole class name } else if ( type === core_strundefined || type === "boolean" ) { if ( this.className ) { // store className if set jQuery._data( this, "__className__", this.className ); } // If the element has a class name or if we're passed "false", // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " ", i = 0, l = this.length; for ( ; i < l; i++ ) { if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { return true; } } return false; }, val: function( value ) { var ret, hooks, isFunction, elem = this[0]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { return ret; } ret = elem.value; return typeof ret === "string" ? // handle most common string cases ret.replace(rreturn, "") : // handle cases where value is null/undef or number ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each(function( i ) { var val; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map(val, function ( value ) { return value == null ? "" : value + ""; }); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } }); } }); jQuery.extend({ valHooks: { option: { get: function( elem ) { // Use proper attribute retrieval(#6932, #12072) var val = jQuery.find.attr( elem, "value" ); return val != null ? val : elem.text; } }, select: { get: function( elem ) { var value, option, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one" || index < 0, values = one ? null : [], max = one ? index + 1 : options.length, i = index < 0 ? max : one ? index : 0; // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // oldIE doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var optionSet, option, options = elem.options, values = jQuery.makeArray( value ), i = options.length; while ( i-- ) { option = options[ i ]; if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { optionSet = true; } } // force browsers to behave consistently when non-matching value is set if ( !optionSet ) { elem.selectedIndex = -1; } return values; } } }, attr: function( elem, name, value ) { var hooks, ret, nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === core_strundefined ) { return jQuery.prop( elem, name, value ); } // All attributes are lowercase // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { elem.setAttribute( name, value + "" ); return value; } } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { ret = jQuery.find.attr( elem, name ); // Non-existent attributes return null, we normalize to undefined return ret == null ? undefined : ret; } }, removeAttr: function( elem, value ) { var name, propName, i = 0, attrNames = value && value.match( core_rnotwhite ); if ( attrNames && elem.nodeType === 1 ) { while ( (name = attrNames[i++]) ) { propName = jQuery.propFix[ name ] || name; // Boolean attributes get special treatment (#10870) if ( jQuery.expr.match.bool.test( name ) ) { // Set corresponding property to false if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { elem[ propName ] = false; // Support: IE<9 // Also clear defaultChecked/defaultSelected (if appropriate) } else { elem[ jQuery.camelCase( "default-" + name ) ] = elem[ propName ] = false; } // See #9699 for explanation of this approach (setting first, then removal) } else { jQuery.attr( elem, name, "" ); } elem.removeAttribute( getSetAttribute ? name : propName ); } } }, attrHooks: { type: { set: function( elem, value ) { if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 // Reset value to default in case type is set after value during creation var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } } }, propFix: { "for": "htmlFor", "class": "className" }, prop: function( elem, name, value ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set properties on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); if ( notxml ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? ret : ( elem[ name ] = value ); } else { return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? ret : elem[ name ]; } }, propHooks: { tabIndex: { get: function( elem ) { // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ // Use proper attribute retrieval(#12072) var tabindex = jQuery.find.attr( elem, "tabindex" ); return tabindex ? parseInt( tabindex, 10 ) : rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? 0 : -1; } } } }); // Hooks for boolean attributes boolHook = { set: function( elem, value, name ) { if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { // IE<8 needs the *property* name elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); // Use defaultChecked and defaultSelected for oldIE } else { elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; } return name; } }; jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? function( elem, name, isXML ) { var fn = jQuery.expr.attrHandle[ name ], ret = isXML ? undefined : /* jshint eqeqeq: false */ (jQuery.expr.attrHandle[ name ] = undefined) != getter( elem, name, isXML ) ? name.toLowerCase() : null; jQuery.expr.attrHandle[ name ] = fn; return ret; } : function( elem, name, isXML ) { return isXML ? undefined : elem[ jQuery.camelCase( "default-" + name ) ] ? name.toLowerCase() : null; }; }); // fix oldIE attroperties if ( !getSetInput || !getSetAttribute ) { jQuery.attrHooks.value = { set: function( elem, value, name ) { if ( jQuery.nodeName( elem, "input" ) ) { // Does not return so that setAttribute is also used elem.defaultValue = value; } else { // Use nodeHook if defined (#1954); otherwise setAttribute is fine return nodeHook && nodeHook.set( elem, value, name ); } } }; } // IE6/7 do not support getting/setting some attributes with get/setAttribute if ( !getSetAttribute ) { // Use this for any attribute in IE6/7 // This fixes almost every IE6/7 issue nodeHook = { set: function( elem, value, name ) { // Set the existing or create a new attribute node var ret = elem.getAttributeNode( name ); if ( !ret ) { elem.setAttributeNode( (ret = elem.ownerDocument.createAttribute( name )) ); } ret.value = value += ""; // Break association with cloned elements by also using setAttribute (#9646) return name === "value" || value === elem.getAttribute( name ) ? value : undefined; } }; jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = // Some attributes are constructed with empty-string values when not defined function( elem, name, isXML ) { var ret; return isXML ? undefined : (ret = elem.getAttributeNode( name )) && ret.value !== "" ? ret.value : null; }; jQuery.valHooks.button = { get: function( elem, name ) { var ret = elem.getAttributeNode( name ); return ret && ret.specified ? ret.value : undefined; }, set: nodeHook.set }; // Set contenteditable to false on removals(#10429) // Setting to empty string throws an error as an invalid value jQuery.attrHooks.contenteditable = { set: function( elem, value, name ) { nodeHook.set( elem, value === "" ? false : value, name ); } }; // Set width and height to auto instead of 0 on empty string( Bug #8150 ) // This is for removals jQuery.each([ "width", "height" ], function( i, name ) { jQuery.attrHooks[ name ] = { set: function( elem, value ) { if ( value === "" ) { elem.setAttribute( name, "auto" ); return value; } } }; }); } // Some attributes require a special call on IE // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx if ( !jQuery.support.hrefNormalized ) { // href/src property should get the full normalized URL (#10299/#12915) jQuery.each([ "href", "src" ], function( i, name ) { jQuery.propHooks[ name ] = { get: function( elem ) { return elem.getAttribute( name, 4 ); } }; }); } if ( !jQuery.support.style ) { jQuery.attrHooks.style = { get: function( elem ) { // Return undefined in the case of empty string // Note: IE uppercases css property names, but if we were to .toLowerCase() // .cssText, that would destroy case senstitivity in URL's, like in "background" return elem.style.cssText || undefined; }, set: function( elem, value ) { return ( elem.style.cssText = value + "" ); } }; } // Safari mis-reports the default selected property of an option // Accessing the parent's selectedIndex property fixes it if ( !jQuery.support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } return null; } }; } jQuery.each([ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { jQuery.propFix[ this.toLowerCase() ] = this; }); // IE6/7 call enctype encoding if ( !jQuery.support.enctype ) { jQuery.propFix.enctype = "encoding"; } // Radios and checkboxes getter/setter jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); } } }; if ( !jQuery.support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { // Support: Webkit // "" is returned instead of "on" if a value isn't specified return elem.getAttribute("value") === null ? "on" : elem.value; }; } }); var rformElems = /^(?:input|select|textarea)$/i, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; function returnTrue() { return true; } function returnFalse() { return false; } function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var tmp, events, t, handleObjIn, special, eventHandle, handleObj, handlers, type, namespaces, origType, elemData = jQuery._data( elem ); // Don't attach events to noData or text/comment nodes (but allow plain objects) if ( !elemData ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !(events = elemData.events) ) { events = elemData.events = {}; } if ( !(eventHandle = elemData.handle) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space types = ( types || "" ).match( core_rnotwhite ) || [""]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first if ( !(handlers = events[ type ]) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener/attachEvent if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, handleObj, tmp, origCount, t, events, special, handlers, type, namespaces, origType, elemData = jQuery.hasData( elem ) && jQuery._data( elem ); if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( core_rnotwhite ) || [""]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { delete elemData.handle; // removeData also checks for emptiness and clears the expando if empty // so use it instead of delete jQuery._removeData( elem, "events" ); } }, trigger: function( event, data, elem, onlyHandlers ) { var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [ elem || document ], type = core_hasOwn.call( event, "type" ) ? event.type : event, namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; cur = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf(".") >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf(":") < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join("."); event.namespace_re = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === (elem.ownerDocument || document) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { event.preventDefault(); } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Can't use an .isFunction() check here because IE6/7 fails that test. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; try { elem[ type ](); } catch ( e ) { // IE<9 dies on focus/blur to hidden element (#1486,#12518) // only reproducible on winXP IE8 native, not IE9 in IE8 mode } jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event ); var i, ret, handleObj, matched, j, handlerQueue = [], args = core_slice.call( arguments ), handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { // Triggered event must either 1) have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { if ( (event.result = ret) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var sel, handleObj, matches, i, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers // Black-hole SVG <use> instance trees (#13180) // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { /* jshint eqeqeq: false */ for ( ; cur != this; cur = cur.parentNode || this ) { /* jshint eqeqeq: true */ // Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { matches = []; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matches[ sel ] === undefined ) { matches[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) >= 0 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matches[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, handlers: matches }); } } } } // Add the remaining (directly-bound) handlers if ( delegateCount < handlers.length ) { handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); } return handlerQueue; }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, copy, type = event.type, originalEvent = event, fixHook = this.fixHooks[ type ]; if ( !fixHook ) { this.fixHooks[ type ] = fixHook = rmouseEvent.test( type ) ? this.mouseHooks : rkeyEvent.test( type ) ? this.keyHooks : {}; } copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = new jQuery.Event( originalEvent ); i = copy.length; while ( i-- ) { prop = copy[ i ]; event[ prop ] = originalEvent[ prop ]; } // Support: IE<9 // Fix target property (#1925) if ( !event.target ) { event.target = originalEvent.srcElement || document; } // Support: Chrome 23+, Safari? // Target should not be a text node (#504, #13143) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // Support: IE<9 // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) event.metaKey = !!event.metaKey; return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; }, // Includes some event props shared by KeyEvent and MouseEvent 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( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var body, eventDoc, doc, button = original.button, fromElement = original.fromElement; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add relatedTarget, if necessary if ( !event.relatedTarget && fromElement ) { event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { // Fire native event if possible so blur/focus sequence is correct trigger: function() { if ( this !== safeActiveElement() && this.focus ) { try { this.focus(); return false; } catch ( e ) { // Support: IE<9 // If we error on focus to hidden element (#1486, #12518), // let .trigger() run the handlers } } }, delegateType: "focusin" }, blur: { trigger: function() { if ( this === safeActiveElement() && this.blur ) { this.blur(); return false; } }, delegateType: "focusout" }, click: { // For checkbox, fire native event so checked state will be right trigger: function() { if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { this.click(); return false; } }, // For cross-browser consistency, don't fire native .click() on links _default: function( event ) { return jQuery.nodeName( event.target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Even when returnValue equals to undefined Firefox will still show alert if ( event.result !== undefined ) { event.originalEvent.returnValue = event.result; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; jQuery.removeEvent = document.removeEventListener ? function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } } : function( elem, type, handle ) { var name = "on" + type; if ( elem.detachEvent ) { // #8545, #7054, preventing memory leaks for custom events in IE6-8 // detachEvent needed property on element, by name of that event, to properly expose it to GC if ( typeof elem[ name ] === core_strundefined ) { elem[ name ] = null; } elem.detachEvent( name, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( !e ) { return; } // If preventDefault exists, run it on the original event if ( e.preventDefault ) { e.preventDefault(); // Support: IE // Otherwise set the returnValue property of the original event to false } else { e.returnValue = false; } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( !e ) { return; } // If stopPropagation exists, run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // Support: IE // Set the cancelBubble property of the original event to true e.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); } }; // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // IE submit delegation if ( !jQuery.support.submitBubbles ) { jQuery.event.special.submit = { setup: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Lazy-add a submit handler when a descendant form may potentially be submitted jQuery.event.add( this, "click._submit keypress._submit", function( e ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; if ( form && !jQuery._data( form, "submitBubbles" ) ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); jQuery._data( form, "submitBubbles", true ); } }); // return undefined since we don't need an event listener }, postDispatch: function( event ) { // If form was submitted by the user, bubble the event up the tree if ( event._submit_bubble ) { delete event._submit_bubble; if ( this.parentNode && !event.isTrigger ) { jQuery.event.simulate( "submit", this.parentNode, event, true ); } } }, teardown: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Remove delegated handlers; cleanData eventually reaps submit handlers attached above jQuery.event.remove( this, "._submit" ); } }; } // IE change delegation and checkbox/radio fix if ( !jQuery.support.changeBubbles ) { jQuery.event.special.change = { setup: function() { if ( rformElems.test( this.nodeName ) ) { // IE doesn't fire change on a check/radio until blur; trigger it on click // after a propertychange. Eat the blur-change in special.change.handle. // This still fires onchange a second time for check/radio after blur. if ( this.type === "checkbox" || this.type === "radio" ) { jQuery.event.add( this, "propertychange._change", function( event ) { if ( event.originalEvent.propertyName === "checked" ) { this._just_changed = true; } }); jQuery.event.add( this, "click._change", function( event ) { if ( this._just_changed && !event.isTrigger ) { this._just_changed = false; } // Allow triggered, simulated change events (#11500) jQuery.event.simulate( "change", this, event, true ); }); } return false; } // Delegated event; lazy-add a change handler on descendant inputs jQuery.event.add( this, "beforeactivate._change", function( e ) { var elem = e.target; if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { jQuery.event.add( elem, "change._change", function( event ) { if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { jQuery.event.simulate( "change", this.parentNode, event, true ); } }); jQuery._data( elem, "changeBubbles", true ); } }); }, handle: function( event ) { var elem = event.target; // Swallow native change events from checkbox/radio, we already triggered them above if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { return event.handleObj.handler.apply( this, arguments ); } }, teardown: function() { jQuery.event.remove( this, "._change" ); return !rformElems.test( this.nodeName ); } }; } // Create "bubbling" focus and blur events if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler while someone wants focusin/focusout var attaches = 0, handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { if ( attaches++ === 0 ) { document.addEventListener( orig, handler, true ); } }, teardown: function() { if ( --attaches === 0 ) { document.removeEventListener( orig, handler, true ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var type, origFn; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { var elem = this[0]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } }); var isSimple = /^.[^:#\[\.,]*$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, rneedsContext = jQuery.expr.match.needsContext, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend({ find: function( selector ) { var i, ret = [], self = this, len = self.length; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }) ); } for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } // Needed because $( selector, context ) becomes $( context ).find( selector ) ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); ret.selector = this.selector ? this.selector + " " + selector : selector; return ret; }, has: function( target ) { var i, targets = jQuery( target, this ), len = targets.length; return this.filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector || [], true) ); }, filter: function( selector ) { return this.pushStack( winnow(this, selector || [], false) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, ret = [], pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : 0; for ( ; i < l; i++ ) { for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && (pos ? pos.index(cur) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors)) ) { cur = ret.push( cur ); break; } } } return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return jQuery.inArray( this[0], jQuery( elem ) ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context ) : jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( jQuery.unique(all) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter(selector) ); } }); function sibling( cur, dir ) { do { cur = cur[ dir ]; } while ( cur && cur.nodeType !== 1 ); return cur; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { ret = jQuery.unique( ret ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { ret = ret.reverse(); } } return this.pushStack( ret ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 && elem.nodeType === 1 ? jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; })); }, dir: function( elem, dir, until ) { var matched = [], cur = elem[ dir ]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { if ( cur.nodeType === 1 ) { matched.push( cur ); } cur = cur[dir]; } return matched; }, sibling: function( n, elem ) { var r = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { r.push( n ); } } return r; } }); // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { /* jshint -W018 */ return !!qualifier.call( elem, i, elem ) !== not; }); } if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; }); } if ( typeof qualifier === "string" ) { if ( isSimple.test( qualifier ) ) { return jQuery.filter( qualifier, elements, not ); } qualifier = jQuery.filter( qualifier, elements ); } return jQuery.grep( elements, function( elem ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; }); } function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; } var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /<tbody/i, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, manipulation_rcheckableType = /^(?:checkbox|radio)$/i, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /^$|\/(?:java|ecma)script/i, rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, // We have to close these tags to support XHTML (#13200) wrapMap = { 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>" ], // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, // unless wrapped in a div with non-breaking characters in front of it. _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ] }, safeFragment = createSafeFragment( document ), fragmentDiv = safeFragment.appendChild( document.createElement("div") ); wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; jQuery.fn.extend({ text: function( value ) { return jQuery.access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); }, null, value, arguments.length ); }, append: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } }); }, prepend: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } }); }, before: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } }); }, after: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } }); }, // keepData is for internal use only--do not document remove: function( selector, keepData ) { var elem, elems = selector ? jQuery.filter( selector, this ) : this, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { if ( !keepData && elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem ) ); } if ( elem.parentNode ) { if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { setGlobalEval( getAll( elem, "script" ) ); } elem.parentNode.removeChild( elem ); } } return this; }, empty: function() { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); } // Remove any remaining nodes while ( elem.firstChild ) { elem.removeChild( elem.firstChild ); } // If this is a select, ensure that it displays empty (#12336) // Support: IE<9 if ( elem.options && jQuery.nodeName( elem, "select" ) ) { elem.options.length = 0; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function () { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); }); }, html: function( value ) { return jQuery.access( this, function( value ) { var elem = this[0] || {}, i = 0, l = this.length; if ( value === undefined ) { return elem.nodeType === 1 ? elem.innerHTML.replace( rinlinejQuery, "" ) : undefined; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1></$2>" ); try { for (; i < l; i++ ) { // Remove element nodes and prevent memory leaks elem = this[i] || {}; if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch(e) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var // Snapshot the DOM in case .domManip sweeps something relevant into its fragment args = jQuery.map( this, function( elem ) { return [ elem.nextSibling, elem.parentNode ]; }), i = 0; // Make the changes, replacing each context element with the new content this.domManip( arguments, function( elem ) { var next = args[ i++ ], parent = args[ i++ ]; if ( parent ) { // Don't use the snapshot next if it has moved (#13810) if ( next && next.parentNode !== parent ) { next = this.nextSibling; } jQuery( this ).remove(); parent.insertBefore( elem, next ); } // Allow new content to include elements from the context set }, true ); // Force removal if there was no new content (e.g., from empty arguments) return i ? this : this.remove(); }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, callback, allowIntersection ) { // Flatten any nested arrays args = core_concat.apply( [], args ); var first, node, hasScripts, scripts, doc, fragment, i = 0, l = this.length, set = this, iNoClone = l - 1, value = args[0], isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { args[0] = value.call( this, index, self.html() ); } self.domManip( args, callback, allowIntersection ); }); } if ( l ) { fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } if ( first ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( this[i], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src ) { // Hope ajax is available... jQuery._evalUrl( node.src ); } else { jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); } } } } // Fix #11809: Avoid leaking memory fragment = first = null; } } return this; } }); // Support: IE<8 // Manipulating tables requires a tbody function manipulationTarget( elem, content ) { return jQuery.nodeName( elem, "table" ) && jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? elem.getElementsByTagName("tbody")[0] || elem.appendChild( elem.ownerDocument.createElement("tbody") ) : elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; return elem; } function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[1]; } else { elem.removeAttribute("type"); } return elem; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var elem, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); } } function cloneCopyEvent( src, dest ) { if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { return; } var type, i, l, oldData = jQuery._data( src ), curData = jQuery._data( dest, oldData ), events = oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } // make the cloned public data object a copy from the original if ( curData.data ) { curData.data = jQuery.extend( {}, curData.data ); } } function fixCloneNodeIssues( src, dest ) { var nodeName, e, data; // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } nodeName = dest.nodeName.toLowerCase(); // IE6-8 copies events bound via attachEvent when using cloneNode. if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { data = jQuery._data( dest ); for ( e in data.events ) { jQuery.removeEvent( dest, e, data.handle ); } // Event data gets referenced instead of copied if the expando gets copied too dest.removeAttribute( jQuery.expando ); } // IE blanks contents when cloning scripts, and tries to evaluate newly-set text if ( nodeName === "script" && dest.text !== src.text ) { disableScript( dest ).text = src.text; restoreScript( dest ); // IE6-10 improperly clones children of object elements using classid. // IE10 throws NoModificationAllowedError if parent is null, #12132. } else if ( nodeName === "object" ) { if ( dest.parentNode ) { dest.outerHTML = src.outerHTML; } // This path appears unavoidable for IE9. When cloning an object // element in IE9, the outerHTML strategy above is not sufficient. // If the src has innerHTML and the destination does not, // copy the src.innerHTML into the dest.innerHTML. #10324 if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { dest.innerHTML = src.innerHTML; } } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { // IE6-8 fails to persist the checked state of a cloned checkbox // or radio button. Worse, IE6-7 fail to give the cloned element // a checked appearance if the defaultChecked value isn't also set dest.defaultChecked = dest.checked = src.checked; // IE6-7 get confused and end up setting the value of a cloned // checkbox/radio button to an empty string instead of "on" if ( dest.value !== src.value ) { dest.value = src.value; } // IE6-8 fails to return the selected option to the default selected // state when cloning options } else if ( nodeName === "option" ) { dest.defaultSelected = dest.selected = src.defaultSelected; // IE6-8 fails to set the defaultValue to the correct value when // cloning other types of input fields } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, i = 0, ret = [], insert = jQuery( selector ), last = insert.length - 1; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone(true); jQuery( insert[i] )[ original ]( elems ); // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() core_push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; }); function getAll( context, tag ) { var elems, elem, i = 0, found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : undefined; if ( !found ) { for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { if ( !tag || jQuery.nodeName( elem, tag ) ) { found.push( elem ); } else { jQuery.merge( found, getAll( elem, tag ) ); } } } return tag === undefined || tag && jQuery.nodeName( context, tag ) ? jQuery.merge( [ context ], found ) : found; } // Used in buildFragment, fixes the defaultChecked property function fixDefaultChecked( elem ) { if ( manipulation_rcheckableType.test( elem.type ) ) { elem.defaultChecked = elem.checked; } } jQuery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents ) { var destElements, node, clone, i, srcElements, inPage = jQuery.contains( elem.ownerDocument, elem ); if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { clone = elem.cloneNode( true ); // IE<=8 does not properly clone detached, unknown element nodes } else { fragmentDiv.innerHTML = elem.outerHTML; fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); } if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); // Fix all IE cloning issues for ( i = 0; (node = srcElements[i]) != null; ++i ) { // Ensure that the destination node is not null; Fixes #9587 if ( destElements[i] ) { fixCloneNodeIssues( node, destElements[i] ); } } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0; (node = srcElements[i]) != null; i++ ) { cloneCopyEvent( node, destElements[i] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } destElements = srcElements = node = null; // Return the cloned set return clone; }, buildFragment: function( elems, context, scripts, selection ) { var j, elem, contains, tmp, tag, tbody, wrap, l = elems.length, // Ensure a safe fragment safe = createSafeFragment( context ), nodes = [], i = 0; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery.type( elem ) === "object" ) { jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || safe.appendChild( context.createElement("div") ); // Deserialize a standard representation tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2]; // Descend through wrappers to the right content j = wrap[0]; while ( j-- ) { tmp = tmp.lastChild; } // Manually add leading whitespace removed by IE if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); } // Remove IE's autoinserted <tbody> from table fragments if ( !jQuery.support.tbody ) { // String was a <table>, *may* have spurious <tbody> elem = tag === "table" && !rtbody.test( elem ) ? tmp.firstChild : // String was a bare <thead> or <tfoot> wrap[1] === "<table>" && !rtbody.test( elem ) ? tmp : 0; j = elem && elem.childNodes.length; while ( j-- ) { if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { elem.removeChild( tbody ); } } } jQuery.merge( nodes, tmp.childNodes ); // Fix #12392 for WebKit and IE > 9 tmp.textContent = ""; // Fix #12392 for oldIE while ( tmp.firstChild ) { tmp.removeChild( tmp.firstChild ); } // Remember the top-level container for proper cleanup tmp = safe.lastChild; } } } // Fix #11356: Clear elements from fragment if ( tmp ) { safe.removeChild( tmp ); } // Reset defaultChecked for any radios and checkboxes // about to be appended to the DOM in IE 6/7 (#8060) if ( !jQuery.support.appendChecked ) { jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); } i = 0; while ( (elem = nodes[ i++ ]) ) { // #4087 - If origin and destination elements are the same, and this is // that element, do not do anything if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { continue; } contains = jQuery.contains( elem.ownerDocument, elem ); // Append to fragment tmp = getAll( safe.appendChild( elem ), "script" ); // Preserve script evaluation history if ( contains ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( (elem = tmp[ j++ ]) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } tmp = null; return safe; }, cleanData: function( elems, /* internal */ acceptData ) { var elem, type, id, data, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = jQuery.support.deleteExpando, special = jQuery.event.special; for ( ; (elem = elems[i]) != null; i++ ) { if ( acceptData || jQuery.acceptData( elem ) ) { id = elem[ internalKey ]; data = id && cache[ id ]; if ( data ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Remove cache only if it was not already removed by jQuery.event.remove if ( cache[ id ] ) { delete cache[ id ]; // IE does not allow us to delete expando properties from nodes, // nor does it have a removeAttribute function on Document nodes; // we must handle all of these cases if ( deleteExpando ) { delete elem[ internalKey ]; } else if ( typeof elem.removeAttribute !== core_strundefined ) { elem.removeAttribute( internalKey ); } else { elem[ internalKey ] = null; } core_deletedIds.push( id ); } } } } }, _evalUrl: function( url ) { return jQuery.ajax({ url: url, type: "GET", dataType: "script", async: false, global: false, "throws": true }); } }); jQuery.fn.extend({ wrapAll: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapAll( html.call(this, i) ); }); } if ( this[0] ) { // The elements to wrap the target around var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); if ( this[0].parentNode ) { wrap.insertBefore( this[0] ); } wrap.map(function() { var elem = this; while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { elem = elem.firstChild; } return elem; }).append( this ); } return this; }, wrapInner: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function(i) { jQuery(this).wrapInner( html.call(this, i) ); }); } return this.each(function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } }); }, wrap: function( html ) { var isFunction = jQuery.isFunction( html ); return this.each(function(i) { jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); }); }, unwrap: function() { return this.parent().each(function() { if ( !jQuery.nodeName( this, "body" ) ) { jQuery( this ).replaceWith( this.childNodes ); } }).end(); } }); var iframe, getStyles, curCSS, ralpha = /alpha\([^)]*\)/i, ropacity = /opacity\s*=\s*([^)]*)/, rposition = /^(top|right|bottom|left)$/, // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), elemdisplay = { BODY: "block" }, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: 0, fontWeight: 400 }, cssExpand = [ "Top", "Right", "Bottom", "Left" ], cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; // return a css property mapped to a potentially vendor prefixed property function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = name.charAt(0).toUpperCase() + name.slice(1), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in style ) { return name; } } return origName; } function isHidden( elem, el ) { // isHidden might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); } function showHide( elements, show ) { var display, elem, hidden, values = [], index = 0, length = elements.length; for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } values[ index ] = jQuery._data( elem, "olddisplay" ); display = elem.style.display; if ( show ) { // Reset the inline display of this element to learn if it is // being hidden by cascaded rules or not if ( !values[ index ] && display === "none" ) { elem.style.display = ""; } // Set elements which have been overridden with display: none // in a stylesheet to whatever the default browser style is // for such an element if ( elem.style.display === "" && isHidden( elem ) ) { values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); } } else { if ( !values[ index ] ) { hidden = isHidden( elem ); if ( display && display !== "none" || !hidden ) { jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); } } } } // Set the display of most of the elements in a second loop // to avoid the constant reflow for ( index = 0; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } if ( !show || elem.style.display === "none" || elem.style.display === "" ) { elem.style.display = show ? values[ index ] || "" : "none"; } } return elements; } jQuery.fn.extend({ css: function( name, value ) { return jQuery.access( this, function( elem, name, value ) { var len, styles, map = {}, i = 0; if ( jQuery.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); }, show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { var bool = typeof state === "boolean"; return this.each(function() { if ( bool ? state : isHidden( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } }); } }); jQuery.extend({ // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "columnCount": true, "fillOpacity": true, "fontWeight": true, "lineHeight": true, "opacity": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: { // normalize float css property "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" }, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = jQuery.camelCase( name ), style = elem.style; name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // convert relative number strings (+= or -=) to relative numbers. #7345 if ( type === "string" && (ret = rrelNum.exec( value )) ) { value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); // Fixes bug #9237 type = "number"; } // Make sure that NaN and null values aren't set. See: #7116 if ( value == null || type === "number" && isNaN( value ) ) { return; } // If a number was passed in, add 'px' to the (except for certain CSS properties) if ( type === "number" && !jQuery.cssNumber[ origName ] ) { value += "px"; } // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, // but it would mean to define eight (for every problematic property) identical functions if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { // Wrapped to prevent IE from throwing errors when 'invalid' values are provided // Fixes bug #5509 try { style[ name ] = value; } catch(e) {} } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var num, val, hooks, origName = jQuery.camelCase( name ); // Make sure that we're working with the right name name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } //convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Return, converting to number if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; } return val; } }); // NOTE: we've included the "window" in window.getComputedStyle // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { getStyles = function( elem ) { return window.getComputedStyle( elem, null ); }; curCSS = function( elem, name, _computed ) { var width, minWidth, maxWidth, computed = _computed || getStyles( elem ), // getPropertyValue is only needed for .css('filter') in IE9, see #12537 ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, style = elem.style; if ( computed ) { if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } // A tribute to the "awesome hack by Dean Edwards" // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { // Remember the original values width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; // Put in the new values to get a computed value out style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; // Revert the changed values style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret; }; } else if ( document.documentElement.currentStyle ) { getStyles = function( elem ) { return elem.currentStyle; }; curCSS = function( elem, name, _computed ) { var left, rs, rsLeft, computed = _computed || getStyles( elem ), ret = computed ? computed[ name ] : undefined, style = elem.style; // Avoid setting ret to empty string here // so we don't default to auto if ( ret == null && style && style[ name ] ) { ret = style[ name ]; } // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 // If we're not dealing with a regular pixel number // but a number that has a weird ending, we need to convert it to pixels // but not position css attributes, as those are proportional to the parent element instead // and we can't measure the parent instead because it might trigger a "stacking dolls" problem if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { // Remember the original values left = style.left; rs = elem.runtimeStyle; rsLeft = rs && rs.left; // Put in the new values to get a computed value out if ( rsLeft ) { rs.left = elem.currentStyle.left; } style.left = name === "fontSize" ? "1em" : ret; ret = style.pixelLeft + "px"; // Revert the changed values style.left = left; if ( rsLeft ) { rs.left = rsLeft; } } return ret === "" ? "auto" : ret; }; } function setPositiveNumber( elem, value, subtract ) { var matches = rnumsplit.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : value; } function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i = extra === ( isBorderBox ? "border" : "content" ) ? // If we already have the right measurement, avoid augmentation 4 : // Otherwise initialize for horizontal or vertical properties name === "width" ? 1 : 0, val = 0; for ( ; i < 4; i += 2 ) { // both box models exclude margin, so add it if we want it if ( extra === "margin" ) { val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); } if ( isBorderBox ) { // border-box includes padding, so remove it if we want content if ( extra === "content" ) { val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // at this point, extra isn't border nor margin, so remove border if ( extra !== "margin" ) { val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } else { // at this point, extra isn't content, so add padding val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // at this point, extra isn't content nor padding, so add border if ( extra !== "padding" ) { val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } return val; } function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var valueIsBorderBox = true, val = name === "width" ? elem.offsetWidth : elem.offsetHeight, styles = getStyles( elem ), isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // some non-html elements return undefined for offsetWidth, so check for null/undefined // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 if ( val <= 0 || val == null ) { // Fall back to computed then uncomputed css if necessary val = curCSS( elem, name, styles ); if ( val < 0 || val == null ) { val = elem.style[ name ]; } // Computed unit is not pixels. Stop here and return. if ( rnumnonpx.test(val) ) { return val; } // we need the check for style in case a browser which returns unreliable values // for getComputedStyle silently falls back to the reliable elem.style valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); // Normalize "", auto, and prepare for extra val = parseFloat( val ) || 0; } // use the active box-sizing model to add/subtract irrelevant styles return ( val + augmentWidthOrHeight( elem, name, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles ) ) + "px"; } // Try to determine the default display value of an element function css_defaultDisplay( nodeName ) { var doc = document, display = elemdisplay[ nodeName ]; if ( !display ) { display = actualDisplay( nodeName, doc ); // If the simple way fails, read from inside an iframe if ( display === "none" || !display ) { // Use the already-created iframe if possible iframe = ( iframe || jQuery("<iframe frameborder='0' width='0' height='0'/>") .css( "cssText", "display:block !important" ) ).appendTo( doc.documentElement ); // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document; doc.write("<!doctype html><html><body>"); doc.close(); display = actualDisplay( nodeName, doc ); iframe.detach(); } // Store the correct default display elemdisplay[ nodeName ] = display; } return display; } // Called ONLY from within css_defaultDisplay function actualDisplay( name, doc ) { var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), display = jQuery.css( elem[0], "display" ); elem.remove(); return display; } jQuery.each([ "height", "width" ], function( i, name ) { jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { // certain elements can have dimension info if we invisibly show them // however, it must have a current display style that would benefit from this return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ? jQuery.swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); }) : getWidthOrHeight( elem, name, extra ); } }, set: function( elem, value, extra ) { var styles = extra && getStyles( elem ); return setPositiveNumber( elem, value, extra ? augmentWidthOrHeight( elem, name, extra, jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", styles ) : 0 ); } }; }); if ( !jQuery.support.opacity ) { jQuery.cssHooks.opacity = { get: function( elem, computed ) { // IE uses filters for opacity return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ? ( 0.01 * parseFloat( RegExp.$1 ) ) + "" : computed ? "1" : ""; }, set: function( elem, value ) { var style = elem.style, currentStyle = elem.currentStyle, opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "", filter = currentStyle && currentStyle.filter || style.filter || ""; // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level style.zoom = 1; // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652 // if value === "", then remove inline opacity #12685 if ( ( value >= 1 || value === "" ) && jQuery.trim( filter.replace( ralpha, "" ) ) === "" && style.removeAttribute ) { // Setting style.filter to null, "" & " " still leave "filter:" in the cssText // if "filter:" is present at all, clearType is disabled, we want to avoid this // style.removeAttribute is IE Only, but so apparently is this code path... style.removeAttribute( "filter" ); // if there is no filter style applied in a css rule or unset inline opacity, we are done if ( value === "" || currentStyle && !currentStyle.filter ) { return; } } // otherwise, set new filter values style.filter = ralpha.test( filter ) ? filter.replace( ralpha, opacity ) : filter + " " + opacity; } }; } // These hooks cannot be added until DOM ready because the support test // for it is not run until after DOM ready jQuery(function() { if ( !jQuery.support.reliableMarginRight ) { jQuery.cssHooks.marginRight = { get: function( elem, computed ) { if ( computed ) { // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right // Work around by temporarily setting element display to inline-block return jQuery.swap( elem, { "display": "inline-block" }, curCSS, [ elem, "marginRight" ] ); } } }; } // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 // getComputedStyle returns percent when specified for top/left/bottom/right // rather than make the css module depend on the offset module, we just check for it here if ( !jQuery.support.pixelPosition && jQuery.fn.position ) { jQuery.each( [ "top", "left" ], function( i, prop ) { jQuery.cssHooks[ prop ] = { get: function( elem, computed ) { if ( computed ) { computed = curCSS( elem, prop ); // if curCSS returns percentage, fallback to offset return rnumnonpx.test( computed ) ? jQuery( elem ).position()[ prop ] + "px" : computed; } } }; }); } }); if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { // Support: Opera <= 12.12 // Opera reports offsetWidths and offsetHeights less than zero on some elements return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none"); }; jQuery.expr.filters.visible = function( elem ) { return !jQuery.expr.filters.hidden( elem ); }; } // These hooks are used by animate to expand properties jQuery.each({ margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // assumes a single number if not a string parts = typeof value === "string" ? value.split(" ") : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( !rmargin.test( prefix ) ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } }); var r20 = /%20/g, rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i; jQuery.fn.extend({ serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map(function(){ // Can add propHook for "elements" to filter or add form elements var elements = jQuery.prop( this, "elements" ); return elements ? jQuery.makeArray( elements ) : this; }) .filter(function(){ var type = this.type; // Use .is(":disabled") so that fieldset[disabled] works return this.name && !jQuery( this ).is( ":disabled" ) && rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && ( this.checked || !manipulation_rcheckableType.test( type ) ); }) .map(function( i, elem ){ var val = jQuery( this ).val(); return val == null ? null : jQuery.isArray( val ) ? jQuery.map( val, function( val ){ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }) : { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }).get(); } }); //Serialize an array of form elements or a set of //key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }; // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; } // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ).replace( r20, "+" ); }; function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar (array or object), encode its numeric index. buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); } }); } else if ( !traditional && jQuery.type( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } jQuery.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( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; }); jQuery.fn.extend({ hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); }, bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); } }); var // Document location ajaxLocParts, ajaxLocation, ajax_nonce = jQuery.now(), ajax_rquery = /\?/, rhash = /#.*$/, rts = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, // Keep a copy of the old load method _load = jQuery.fn.load, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = "*/".concat("*"); // #8138, IE may throw an exception when accessing // a field from window.location if document.domain has been set try { ajaxLocation = location.href; } catch( e ) { // Use the href attribute of an A element // since IE will modify it given document.location ajaxLocation = document.createElement( "a" ); ajaxLocation.href = ""; ajaxLocation = ajaxLocation.href; } // Segment location into parts ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || []; if ( jQuery.isFunction( func ) ) { // For each dataType in the dataTypeExpression while ( (dataType = dataTypes[i++]) ) { // Prepend if requested if ( dataType[0] === "+" ) { dataType = dataType.slice( 1 ) || "*"; (structure[ dataType ] = structure[ dataType ] || []).unshift( func ); // Otherwise append } else { (structure[ dataType ] = structure[ dataType ] || []).push( func ); } } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { options.dataTypes.unshift( dataTypeOrTransport ); inspect( dataTypeOrTransport ); return false; } else if ( seekingTransport ) { return !( selected = dataTypeOrTransport ); } }); return selected; } return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var deep, key, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } return target; } jQuery.fn.load = function( url, params, callback ) { if ( typeof url !== "string" && _load ) { return _load.apply( this, arguments ); } var selector, response, type, self = this, off = url.indexOf(" "); if ( off >= 0 ) { selector = url.slice( off, url.length ); url = url.slice( 0, off ); } // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // If we have elements to modify, make the request if ( self.length > 0 ) { jQuery.ajax({ url: url, // if "type" variable is undefined, then "GET" method will be used type: type, dataType: "html", data: params }).done(function( responseText ) { // Save response for use in complete callback response = arguments; self.html( selector ? // If a selector was specified, locate the right elements in a dummy div // Exclude scripts to avoid IE 'Permission Denied' errors jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) : // Otherwise use the full result responseText ); }).complete( callback && function( jqXHR, status ) { self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); }); } return this; }; // Attach a bunch of functions for handling common AJAX events jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){ jQuery.fn[ type ] = function( fn ){ return this.on( type, fn ); }; }); jQuery.extend({ // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajaxSettings: { url: ajaxLocation, type: "GET", isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), global: true, processData: true, async: true, contentType: "application/x-www-form-urlencoded; charset=UTF-8", /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { "*": allTypes, 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" }, // Data converters // Keys separate source (or catchall "*") and destination types with a single space converters: { // Convert anything to text "* text": String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": jQuery.parseJSON, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { url: true, context: true } }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { return settings ? // Building a settings object ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : // Extending ajaxSettings ajaxExtend( jQuery.ajaxSettings, target ); }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var // Cross-domain detection vars parts, // Loop variable i, // URL without anti-cache param cacheURL, // Response headers as string responseHeadersString, // timeout handle timeoutTimer, // To know if global events are to be dispatched fireGlobals, transport, // Response headers responseHeaders, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events is callbackContext if it is a DOM node or jQuery collection globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks("once memory"), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // The jqXHR state state = 0, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( state === 2 ) { if ( !responseHeaders ) { responseHeaders = {}; while ( (match = rheaders.exec( responseHeadersString )) ) { responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; } } match = responseHeaders[ key.toLowerCase() ]; } return match == null ? null : match; }, // Raw string getAllResponseHeaders: function() { return state === 2 ? responseHeadersString : null; }, // Caches the header setRequestHeader: function( name, value ) { var lname = name.toLowerCase(); if ( !state ) { name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; requestHeaders[ name ] = value; } return this; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( !state ) { s.mimeType = type; } return this; }, // Status-dependent callbacks statusCode: function( map ) { var code; if ( map ) { if ( state < 2 ) { for ( code in map ) { // Lazy-add the new callback in a way that preserves old ones statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; } } else { // Execute the appropriate callbacks jqXHR.always( map[ jqXHR.status ] ); } } return this; }, // Cancel the request abort: function( statusText ) { var finalText = statusText || strAbort; if ( transport ) { transport.abort( finalText ); } done( 0, finalText ); return this; } }; // Attach deferreds deferred.promise( jqXHR ).complete = completeDeferred.add; jqXHR.success = jqXHR.done; jqXHR.error = jqXHR.fail; // Remove hash character (#7531: and string promotion) // Add protocol if not provided (#5866: IE7 issue with protocol-less urls) // Handle falsy url in the settings object (#10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Alias method option to type as per ticket #12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""]; // A cross-domain request is in order when we have a protocol:host:port mismatch if ( s.crossDomain == null ) { parts = rurl.exec( s.url.toLowerCase() ); s.crossDomain = !!( parts && ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !== ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) ) ); } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( state === 2 ) { return jqXHR; } // We can fire global events as of now if asked to fireGlobals = s.global; // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger("ajaxStart"); } // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Save the URL in case we're toying with the If-Modified-Since // and/or If-None-Match header later on cacheURL = s.url; // More options handling for requests with no content if ( !s.hasContent ) { // If data is available, append data to url if ( s.data ) { cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data ); // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Add anti-cache in url if needed if ( s.cache === false ) { s.url = rts.test( cacheURL ) ? // If there is already a '_' parameter, set its value cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) : // Otherwise add one to the end cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++; } } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[ cacheURL ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); } if ( jQuery.etag[ cacheURL ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { // Abort if not done already and return return jqXHR.abort(); } // aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds for ( i in { success: 1, error: 1, complete: 1 } ) { jqXHR[ i ]( s[ i ] ); } // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = setTimeout(function() { jqXHR.abort("timeout"); }, s.timeout ); } try { state = 1; transport.send( requestHeaders, done ); } catch ( e ) { // Propagate exception as error if not done if ( state < 2 ) { done( -1, e ); // Simply rethrow otherwise } else { throw e; } } } // Callback for when everything is done function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Called once if ( state === 2 ) { return; } // State is "done" now state = 2; // Clear timeout if it exists if ( timeoutTimer ) { clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Determine if successful isSuccess = status >= 200 && status < 300 || status === 304; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // Convert no matter what (that way responseXXX fields are always set) response = ajaxConvert( s, response, jqXHR, isSuccess ); // If successful, handle type chaining if ( isSuccess ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader("Last-Modified"); if ( modified ) { jQuery.lastModified[ cacheURL ] = modified; } modified = jqXHR.getResponseHeader("etag"); if ( modified ) { jQuery.etag[ cacheURL ] = modified; } } // if no content if ( status === 204 || s.type === "HEAD" ) { statusText = "nocontent"; // if not modified } else if ( status === 304 ) { statusText = "notmodified"; // If we have data, let's convert it } else { statusText = response.state; success = response.data; error = response.error; isSuccess = !error; } } else { // We extract error from statusText // then normalize statusText and status for non-aborts error = statusText; if ( status || !statusText ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger("ajaxStop"); } } } return jqXHR; }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); } }); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // shift arguments if data argument was omitted if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } return jQuery.ajax({ url: url, type: method, dataType: type, data: data, success: callback }); }; }); /* Handles responses to an ajax request: * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var firstDataType, ct, finalDataType, type, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader("Content-Type"); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } /* Chain conversions given the request and the original response * Also sets the responseXXX fields on the jqXHR instance */ function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } current = dataTypes.shift(); // Convert to each sequential dataType while ( current ) { if ( s.responseFields[ current ] ) { jqXHR[ s.responseFields[ current ] ] = response; } // Apply the dataFilter if provided if ( !prev && isSuccess && s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } prev = current; current = dataTypes.shift(); if ( current ) { // There's only work to do if current dataType is non-auto if ( current === "*" ) { current = prev; // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split( " " ); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.unshift( tmp[ 1 ] ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s[ "throws" ] ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } } } return { state: "success", data: response }; } // Install script dataType jQuery.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /(?:java|ecma)script/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } }); // Handle cache's special case and global jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; s.global = false; } }); // Bind script tag hack transport jQuery.ajaxTransport( "script", function(s) { // This transport only deals with cross domain requests if ( s.crossDomain ) { var script, head = document.head || jQuery("head")[0] || document.documentElement; return { send: function( _, callback ) { script = document.createElement("script"); script.async = true; if ( s.scriptCharset ) { script.charset = s.scriptCharset; } script.src = s.url; // Attach handlers for all browsers script.onload = script.onreadystatechange = function( _, isAbort ) { if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) { // Handle memory leak in IE script.onload = script.onreadystatechange = null; // Remove the script if ( script.parentNode ) { script.parentNode.removeChild( script ); } // Dereference the script script = null; // Callback if not abort if ( !isAbort ) { callback( 200, "success" ); } } }; // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending // Use native DOM manipulation to avoid our domManip AJAX trickery head.insertBefore( script, head.firstChild ); }, abort: function() { if ( script ) { script.onload( undefined, true ); } } }; } }); var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/; // Default jsonp settings jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) ); this[ callback ] = true; return callback; } }); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? "url" : typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data" ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; // Insert callback into url or form data if ( jsonProp ) { s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); } else if ( s.jsonp !== false ) { s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters["script json"] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // force json dataType s.dataTypes[ 0 ] = "json"; // Install callback overwritten = window[ callbackName ]; window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always(function() { // Restore preexisting value window[ callbackName ] = overwritten; // Save back as free if ( s[ callbackName ] ) { // make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && jQuery.isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; }); // Delegate to script return "script"; } }); var xhrCallbacks, xhrSupported, xhrId = 0, // #5280: Internet Explorer will keep connections alive if we don't abort on unload xhrOnUnloadAbort = window.ActiveXObject && function() { // Abort all pending requests var key; for ( key in xhrCallbacks ) { xhrCallbacks[ key ]( undefined, true ); } }; // Functions to create xhrs function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch( e ) {} } function createActiveXHR() { try { return new window.ActiveXObject("Microsoft.XMLHTTP"); } catch( e ) {} } // Create the request object // (This is still attached to ajaxSettings for backward compatibility) jQuery.ajaxSettings.xhr = window.ActiveXObject ? /* Microsoft failed to properly * implement the XMLHttpRequest in IE7 (can't request local files), * so we use the ActiveXObject when it is available * Additionally XMLHttpRequest can be disabled in IE7/IE8 so * we need a fallback. */ function() { return !this.isLocal && createStandardXHR() || createActiveXHR(); } : // For all other browsers, use the standard XMLHttpRequest object createStandardXHR; // Determine support properties xhrSupported = jQuery.ajaxSettings.xhr(); jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); xhrSupported = jQuery.support.ajax = !!xhrSupported; // Create transport if the browser can provide an xhr if ( xhrSupported ) { jQuery.ajaxTransport(function( s ) { // Cross domain only allowed if supported through XMLHttpRequest if ( !s.crossDomain || jQuery.support.cors ) { var callback; return { send: function( headers, complete ) { // Get a new xhr var handle, i, xhr = s.xhr(); // Open the socket // Passing null username, generates a login popup on Opera (#2865) if ( s.username ) { xhr.open( s.type, s.url, s.async, s.username, s.password ); } else { xhr.open( s.type, s.url, s.async ); } // Apply custom fields if provided if ( s.xhrFields ) { for ( i in s.xhrFields ) { xhr[ i ] = s.xhrFields[ i ]; } } // Override mime type if needed if ( s.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( s.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !s.crossDomain && !headers["X-Requested-With"] ) { headers["X-Requested-With"] = "XMLHttpRequest"; } // Need an extra try/catch for cross domain requests in Firefox 3 try { for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } } catch( err ) {} // Do send the request // This may raise an exception which is actually // handled in jQuery.ajax (so no try/catch here) xhr.send( ( s.hasContent && s.data ) || null ); // Listener callback = function( _, isAbort ) { var status, responseHeaders, statusText, responses; // Firefox throws exceptions when accessing properties // of an xhr when a network error occurred // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) try { // Was never called and is aborted or complete if ( callback && ( isAbort || xhr.readyState === 4 ) ) { // Only called once callback = undefined; // Do not keep as active anymore if ( handle ) { xhr.onreadystatechange = jQuery.noop; if ( xhrOnUnloadAbort ) { delete xhrCallbacks[ handle ]; } } // If it's an abort if ( isAbort ) { // Abort it manually if needed if ( xhr.readyState !== 4 ) { xhr.abort(); } } else { responses = {}; status = xhr.status; responseHeaders = xhr.getAllResponseHeaders(); // When requesting binary data, IE6-9 will throw an exception // on any attempt to access responseText (#11426) if ( typeof xhr.responseText === "string" ) { responses.text = xhr.responseText; } // Firefox throws an exception when accessing // statusText for faulty cross-domain requests try { statusText = xhr.statusText; } catch( e ) { // We normalize with Webkit giving an empty statusText statusText = ""; } // Filter status for non standard behaviors // If the request is local and we have data: assume a success // (success with no data won't get notified, that's the best we // can do given current implementations) if ( !status && s.isLocal && !s.crossDomain ) { status = responses.text ? 200 : 404; // IE - #1450: sometimes returns 1223 when it should be 204 } else if ( status === 1223 ) { status = 204; } } } } catch( firefoxAccessException ) { if ( !isAbort ) { complete( -1, firefoxAccessException ); } } // Call complete if needed if ( responses ) { complete( status, statusText, responses, responseHeaders ); } }; if ( !s.async ) { // if we're in sync mode we fire the callback callback(); } else if ( xhr.readyState === 4 ) { // (IE6 & IE7) if it's in cache and has been // retrieved directly we need to fire the callback setTimeout( callback ); } else { handle = ++xhrId; if ( xhrOnUnloadAbort ) { // Create the active xhrs callbacks list if needed // and attach the unload handler if ( !xhrCallbacks ) { xhrCallbacks = {}; jQuery( window ).unload( xhrOnUnloadAbort ); } // Add to list of active xhrs callbacks xhrCallbacks[ handle ] = callback; } xhr.onreadystatechange = callback; } }, abort: function() { if ( callback ) { callback( undefined, true ); } } }; } }); } var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ), rrun = /queueHooks$/, animationPrefilters = [ defaultPrefilter ], tweeners = { "*": [function( prop, value ) { var tween = this.createTween( prop, value ), target = tween.cur(), parts = rfxnum.exec( value ), unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) && rfxnum.exec( jQuery.css( tween.elem, prop ) ), scale = 1, maxIterations = 20; if ( start && start[ 3 ] !== unit ) { // Trust units reported by jQuery.css unit = unit || start[ 3 ]; // Make sure we update the tween properties later on parts = parts || []; // Iteratively approximate from a nonzero starting point start = +target || 1; do { // If previous iteration zeroed out, double until we get *something* // Use a string for doubling factor so we don't accidentally see scale as unchanged below scale = scale || ".5"; // Adjust and apply start = start / scale; jQuery.style( tween.elem, prop, start + unit ); // Update scale, tolerating zero or NaN from tween.cur() // And breaking the loop if scale is unchanged or perfect, or if we've just had enough } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); } // Update tween properties if ( parts ) { tween.unit = unit; tween.start = +start || +target || 0; // If a +=/-= token was provided, we're doing a relative animation tween.end = parts[ 1 ] ? start + ( parts[ 1 ] + 1 ) * parts[ 2 ] : +parts[ 2 ]; } return tween; }] }; // Animations created synchronously will run synchronously function createFxNow() { setTimeout(function() { fxNow = undefined; }); return ( fxNow = jQuery.now() ); } function createTween( value, prop, animation ) { var tween, collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( (tween = collection[ index ].call( animation, prop, value )) ) { // we're done with this property return tween; } } } function Animation( elem, properties, options ) { var result, stopped, index = 0, length = animationPrefilters.length, deferred = jQuery.Deferred().always( function() { // don't match elem in the :animated selector delete tick.elem; }), tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ]); if ( percent < 1 && length ) { return remaining; } else { deferred.resolveWith( elem, [ animation ] ); return false; } }, animation = deferred.promise({ elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {} }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // if we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; if ( stopped ) { return this; } stopped = true; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( 1 ); } // resolve when we played the last frame // otherwise, reject if ( gotoEnd ) { deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } }), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length ; index++ ) { result = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { return result; } } jQuery.map( props, createTween, animation ); if ( jQuery.isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } jQuery.fx.timer( jQuery.extend( tick, { elem: elem, anim: animation, queue: animation.opts.queue }) ); // attach callbacks from options return animation.progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // not quite $.extend, this wont overwrite keys already present. // also - reusing 'index' from above because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } jQuery.Animation = jQuery.extend( Animation, { tweener: function( props, callback ) { if ( jQuery.isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.split(" "); } var prop, index = 0, length = props.length; for ( ; index < length ; index++ ) { prop = props[ index ]; tweeners[ prop ] = tweeners[ prop ] || []; tweeners[ prop ].unshift( callback ); } }, prefilter: function( callback, prepend ) { if ( prepend ) { animationPrefilters.unshift( callback ); } else { animationPrefilters.push( callback ); } } }); function defaultPrefilter( elem, props, opts ) { /* jshint validthis: true */ var prop, value, toggle, tween, hooks, oldfire, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHidden( elem ), dataShow = jQuery._data( elem, "fxshow" ); // handle queue: false promises if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always(function() { // doing this makes sure that the complete handler will be called // before this completes anim.always(function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } }); }); } // height/width overflow pass if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { // Make sure that nothing sneaks out // Record all 3 overflow attributes because IE does not // change the overflow attribute when overflowX and // overflowY are set to the same value opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Set display property to inline-block for height/width // animations on inline elements that are having width/height animated if ( jQuery.css( elem, "display" ) === "inline" && jQuery.css( elem, "float" ) === "none" ) { // inline-level elements accept inline-block; // block-level elements need to be inline with layout if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) { style.display = "inline-block"; } else { style.zoom = 1; } } } if ( opts.overflow ) { style.overflow = "hidden"; if ( !jQuery.support.shrinkWrapBlocks ) { anim.always(function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; }); } } // show/hide pass for ( prop in props ) { value = props[ prop ]; if ( rfxtypes.exec( value ) ) { delete props[ prop ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { continue; } orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); } } if ( !jQuery.isEmptyObject( orig ) ) { if ( dataShow ) { if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } } else { dataShow = jQuery._data( elem, "fxshow", {} ); } // store state if its toggle - enables .stop().toggle() to "reverse" if ( toggle ) { dataShow.hidden = !hidden; } if ( hidden ) { jQuery( elem ).show(); } else { anim.done(function() { jQuery( elem ).hide(); }); } anim.done(function() { var prop; jQuery._removeData( elem, "fxshow" ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } }); for ( prop in orig ) { tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = tween.start; if ( hidden ) { tween.end = tween.start; tween.start = prop === "width" || prop === "height" ? 1 : 0; } } } } } function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || "swing"; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; if ( tween.elem[ tween.prop ] != null && (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) { return tween.elem[ tween.prop ]; } // passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails // so, simple values such as "10px" are parsed to Float. // complex values such as "rotate(1rad)" are returned as is. result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // use step hook for back compat - use cssHook if its there - use .style if its // available and use plain properties where available if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Support: IE <=9 // Panic based approach to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; }); jQuery.fn.extend({ fadeTo: function( speed, to, easing, callback ) { // show any hidden elements after setting opacity to 0 return this.filter( isHidden ).css( "opacity", 0 ).show() // animate to the value specified .end().animate({ opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); doAnimation.finish = function() { anim.stop( true ); }; // Empty animations, or finishing resolves immediately if ( empty || jQuery._data( this, "finish" ) ) { anim.stop( true ); } }; doAnimation.finish = doAnimation; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue && type !== false ) { this.queue( type || "fx", [] ); } return this.each(function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = jQuery._data( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // start the next in the queue if the last step wasn't forced // timers currently will call their complete callbacks, which will dequeue // but only if they were gotoEnd if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } }); }, finish: function( type ) { if ( type !== false ) { type = type || "fx"; } return this.each(function() { var index, data = jQuery._data( this ), queue = data[ type + "queue" ], hooks = data[ type + "queueHooks" ], timers = jQuery.timers, length = queue ? queue.length : 0; // enable finishing flag on private data data.finish = true; // empty the queue first jQuery.queue( this, type, [] ); if ( hooks && hooks.cur && hooks.cur.finish ) { hooks.cur.finish.call( this ); } // look for any active animations, and finish them for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && timers[ index ].queue === type ) { timers[ index ].anim.stop( true ); timers.splice( index, 1 ); } } // look for any animations in the old queue and finish them for ( index = 0; index < length; index++ ) { if ( queue[ index ] && queue[ index ].finish ) { queue[ index ].finish.call( this ); } } // turn off finishing flag delete data.finish; }); } }); // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, attrs = { height: type }, i = 0; // if we include width, step value is 1 to do all cssExpand values, // if we don't include width, step value is 2 to skip over Left and Right includeWidth = includeWidth? 1 : 0; for( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } // Generate shortcuts for custom animations jQuery.each({ slideDown: genFx("show"), slideUp: genFx("hide"), slideToggle: genFx("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; }); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; // normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( jQuery.isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p*Math.PI ) / 2; } }; jQuery.timers = []; jQuery.fx = Tween.prototype.init; jQuery.fx.tick = function() { var timer, timers = jQuery.timers, i = 0; fxNow = jQuery.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Checks the timer has not already been removed if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { if ( timer() && jQuery.timers.push( timer ) ) { jQuery.fx.start(); } }; jQuery.fx.interval = 13; jQuery.fx.start = function() { if ( !timerId ) { timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval ); } }; jQuery.fx.stop = function() { clearInterval( timerId ); timerId = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Back Compat <1.8 extension point jQuery.fx.step = {}; if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.animated = function( elem ) { return jQuery.grep(jQuery.timers, function( fn ) { return elem === fn.elem; }).length; }; } jQuery.fn.offset = function( options ) { if ( arguments.length ) { return options === undefined ? this : this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); } var docElem, win, box = { top: 0, left: 0 }, elem = this[ 0 ], doc = elem && elem.ownerDocument; if ( !doc ) { return; } docElem = doc.documentElement; // Make sure it's not a disconnected DOM node if ( !jQuery.contains( docElem, elem ) ) { return box; } // If we don't have gBCR, just use 0,0 rather than error // BlackBerry 5, iOS 3 (original iPhone) if ( typeof elem.getBoundingClientRect !== core_strundefined ) { box = elem.getBoundingClientRect(); } win = getWindow( doc ); return { top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 ) }; }; jQuery.offset = { setOffset: function( elem, options, i ) { var position = jQuery.css( elem, "position" ); // set position first, in-case top/left are set even on static elem if ( position === "static" ) { elem.style.position = "relative"; } var curElem = jQuery( elem ), curOffset = curElem.offset(), curCSSTop = jQuery.css( elem, "top" ), curCSSLeft = jQuery.css( elem, "left" ), calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1, props = {}, curPosition = {}, curTop, curLeft; // need to be able to calculate position if either top or left is auto and position is either absolute or fixed if ( calculatePosition ) { curPosition = curElem.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { curTop = parseFloat( curCSSTop ) || 0; curLeft = parseFloat( curCSSLeft ) || 0; } if ( jQuery.isFunction( options ) ) { options = options.call( elem, i, curOffset ); } if ( options.top != null ) { props.top = ( options.top - curOffset.top ) + curTop; } if ( options.left != null ) { props.left = ( options.left - curOffset.left ) + curLeft; } if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend({ position: function() { if ( !this[ 0 ] ) { return; } var offsetParent, offset, parentOffset = { top: 0, left: 0 }, elem = this[ 0 ]; // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent if ( jQuery.css( elem, "position" ) === "fixed" ) { // we assume that getBoundingClientRect is available when computed position is fixed offset = elem.getBoundingClientRect(); } else { // Get *real* offsetParent offsetParent = this.offsetParent(); // Get correct offsets offset = this.offset(); if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) { parentOffset = offsetParent.offset(); } // Add offsetParent borders parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); } // Subtract parent offsets and element margins // note: when an element has margin: auto the offsetLeft and marginLeft // are the same in Safari causing offset.left to incorrectly be 0 return { top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true) }; }, offsetParent: function() { return this.map(function() { var offsetParent = this.offsetParent || docElem; while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) { offsetParent = offsetParent.offsetParent; } return offsetParent || docElem; }); } }); // Create scrollLeft and scrollTop methods jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) { var top = /Y/.test( prop ); jQuery.fn[ method ] = function( val ) { return jQuery.access( this, function( elem, method, val ) { var win = getWindow( elem ); if ( val === undefined ) { return win ? (prop in win) ? win[ prop ] : win.document.documentElement[ method ] : elem[ method ]; } if ( win ) { win.scrollTo( !top ? val : jQuery( win ).scrollLeft(), top ? val : jQuery( win ).scrollTop() ); } else { elem[ method ] = val; } }, method, val, arguments.length, null ); }; }); function getWindow( elem ) { return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false; } // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { // margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); return jQuery.access( this, function( elem, type, value ) { var doc; if ( jQuery.isWindow( elem ) ) { // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there // isn't a whole lot we can do. See pull request at this URL for discussion: // https://github.com/jquery/jquery/pull/764 return elem.document.documentElement[ "client" + name ]; } // Get document width or height if ( elem.nodeType === 9 ) { doc = elem.documentElement; // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it. return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], doc[ "client" + name ] ); } return value === undefined ? // Get width or height on the element, requesting but not forcing parseFloat jQuery.css( elem, type, extra ) : // Set width or height on the element jQuery.style( elem, type, value, extra ); }, type, chainable ? margin : undefined, chainable, null ); }; }); }); // Limit scope pollution from any deprecated API // (function() { // The number of elements contained in the matched element set jQuery.fn.size = function() { return this.length; }; jQuery.fn.andSelf = jQuery.fn.addBack; // })(); if ( typeof module === "object" && typeof module.exports === "object" ) { // Expose jQuery as module.exports in loaders that implement the Node // module pattern (including browserify). Do not create the global, since // the user will be storing it themselves locally, and globals are frowned // upon in the Node module world. module.exports = jQuery; } else { // Otherwise expose jQuery to the global object as usual window.jQuery = window.$ = jQuery; // Register as a named AMD module, since jQuery can be concatenated with other // files that may use define, but not via a proper concatenation script that // understands anonymous AMD modules. A named AMD is safest and most robust // way to register. Lowercase jquery is used because AMD module names are // derived from file names, and jQuery is normally delivered in a lowercase // file name. Do this after creating the global so that if an AMD module wants // to call noConflict to hide this version of jQuery, it will work. if ( typeof define === "function" && define.amd ) { define( "jquery", [], function () { return jQuery; } ); } } })( window );
Kingside/jsdelivr
files/jquery/1.10.0/jquery.js
JavaScript
mit
273,810
(function(){ var _ = require('./lang'); var browsers = require('./browsers'); var tpl = require('./template/string'); var console = this.console = this.console || {}, origin_console = { log: console.log, info: console.info, warn: console.warn, error: console.error }, RE_CODE = /^function[^(]*\([^)]*\)[^{]*\{([.\s\S]*)\}$/; console._ccBuffer = []; console.config = function(opt){ if (opt.output) { this._ccOutput = opt.output; this._ccOutput.innerHTML = this._ccBuffer.join(''); } if (opt.record !== undefined) { this._recording = opt.record; if (!opt.record) { console.cc(); } } return this; }; console.enable = function(){ for (var i in origin_console) { console[i] = console_api(i); } console.run = run; return this; }; console.disable = function(){ for (var i in origin_console) { console[i] = origin_console[i]; } console.run = console.log; return this; }; console.cc = function(newlog){ if (newlog === undefined) { return this._ccBuffer.join(''); } else { this._ccBuffer.push(newlog); var result = this._ccBuffer.join(''); if (!this._recording) { //if (!this._ccOutput) { //this._ccOutput = default_output(); //} if (this._ccOutput) { this._ccOutput.innerHTML = result; } } return result; } }; function run(fn, opt){ opt = opt || {}; var code = fn.toString().trim() .match(RE_CODE)[1] .trim() .replace(/return\s+/, '') .replace(/;$/, ''); console.info('run `' + code + '`'); try { console.info(fn()); } catch(ex) { console.error(opt.showStack ? ex : ex.message); } } function console_api(method){ return function(){ if (_.isFunction(origin_console[method])) { origin_console[method].apply(console, arguments); } console.cc('<p>' + '<span class="type type-' + method + '"></span>' + '<span class="log">' + Array.prototype.slice.call(arguments) .map(escape_log, method).join('</span><span class="log">') + '</span></p>'); }; } //function default_output(){ //var output = document.createElement('DIV'); //output.setAttribute('id', 'console'); //document.body.insertBefore(output, document.body.firstChild); //return output; //} function escape_log(text){ var method = this; if (text instanceof Error) { text = text.stack ? text.stack.split(/at\s/) : [text.message]; return text.map(function(msg){ return escape_log('at ' + msg, method); }).join('<br>'); } else if (method.toString() !== 'log' && text && typeof text === 'object' && (!browsers.aosp || text.nodeType !== 1)) { text = [ '<span class="obj-start">' + tpl.escapeHTML('{') + '</span>', Object.keys(text).map(function(key){ var v; try { v = this[key]; } catch(ex) { v = ex.message; } if (typeof v === 'string') { v = '"' + v + '"'; } else { v = String(v); } return '<span class="obj-item">' + '<span class="obj-k">' + escape_log(key, method) + ': </span><span class="obj-v">' + (typeof v === 'string' ? tpl.escapeHTML(v) : v) + '</span>,</span>'; }, text).join(''), '<span class="obj-end">' + tpl.escapeHTML('}') + '</span>' ].join(''); return '<span class="obj-wrap"><span class="obj-overview">' + text + '</span><span class="obj-end">...}</span><span class="obj-detail">' + text + '</span></span></span>'; } text = String(text); return typeof text === 'string' ? tpl.escapeHTML(text) : text; } module.exports = console; })();
contolini/cdnjs
ajax/libs/mo/1.7.2/console.js
JavaScript
mit
4,761
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode('tiki', function(config) { function inBlock(style, terminator, returnTokenizer) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { state.tokenize = inText; break; } stream.next(); } if (returnTokenizer) state.tokenize = returnTokenizer; return style; }; } function inLine(style) { return function(stream, state) { while(!stream.eol()) { stream.next(); } state.tokenize = inText; return style; }; } function inText(stream, state) { function chain(parser) { state.tokenize = parser; return parser(stream, state); } var sol = stream.sol(); var ch = stream.next(); //non start of line switch (ch) { //switch is generally much faster than if, so it is used here case "{": //plugin stream.eat("/"); stream.eatSpace(); var tagName = ""; var c; while ((c = stream.eat(/[^\s\u00a0=\"\'\/?(}]/))) tagName += c; state.tokenize = inPlugin; return "tag"; break; case "_": //bold if (stream.eat("_")) { return chain(inBlock("strong", "__", inText)); } break; case "'": //italics if (stream.eat("'")) { // Italic text return chain(inBlock("em", "''", inText)); } break; case "(":// Wiki Link if (stream.eat("(")) { return chain(inBlock("variable-2", "))", inText)); } break; case "[":// Weblink return chain(inBlock("variable-3", "]", inText)); break; case "|": //table if (stream.eat("|")) { return chain(inBlock("comment", "||")); } break; case "-": if (stream.eat("=")) {//titleBar return chain(inBlock("header string", "=-", inText)); } else if (stream.eat("-")) {//deleted return chain(inBlock("error tw-deleted", "--", inText)); } break; case "=": //underline if (stream.match("==")) { return chain(inBlock("tw-underline", "===", inText)); } break; case ":": if (stream.eat(":")) { return chain(inBlock("comment", "::")); } break; case "^": //box return chain(inBlock("tw-box", "^")); break; case "~": //np if (stream.match("np~")) { return chain(inBlock("meta", "~/np~")); } break; } //start of line types if (sol) { switch (ch) { case "!": //header at start of line if (stream.match('!!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!!')) { return chain(inLine("header string")); } else if (stream.match('!!!')) { return chain(inLine("header string")); } else if (stream.match('!!')) { return chain(inLine("header string")); } else { return chain(inLine("header string")); } break; case "*": //unordered list line item, or <li /> at start of line case "#": //ordered list line item, or <li /> at start of line case "+": //ordered list line item, or <li /> at start of line return chain(inLine("tw-listitem bracket")); break; } } //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki return null; } var indentUnit = config.indentUnit; // Return variables for tokenizers var pluginName, type; function inPlugin(stream, state) { var ch = stream.next(); var peek = stream.peek(); if (ch == "}") { state.tokenize = inText; //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin return "tag"; } else if (ch == "(" || ch == ")") { return "bracket"; } else if (ch == "=") { type = "equals"; if (peek == ">") { ch = stream.next(); peek = stream.peek(); } //here we detect values directly after equal character with no quotes if (!/[\'\"]/.test(peek)) { state.tokenize = inAttributeNoQuote(); } //end detect values return "operator"; } else if (/[\'\"]/.test(ch)) { state.tokenize = inAttribute(ch); return state.tokenize(stream, state); } else { stream.eatWhile(/[^\s\u00a0=\"\'\/?]/); return "keyword"; } } function inAttribute(quote) { return function(stream, state) { while (!stream.eol()) { if (stream.next() == quote) { state.tokenize = inPlugin; break; } } return "string"; }; } function inAttributeNoQuote() { return function(stream, state) { while (!stream.eol()) { var ch = stream.next(); var peek = stream.peek(); if (ch == " " || ch == "," || /[ )}]/.test(peek)) { state.tokenize = inPlugin; break; } } return "string"; }; } var curState, setStyle; function pass() { for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); } function cont() { pass.apply(null, arguments); return true; } function pushContext(pluginName, startOfLine) { var noIndent = curState.context && curState.context.noIndent; curState.context = { prev: curState.context, pluginName: pluginName, indent: curState.indented, startOfLine: startOfLine, noIndent: noIndent }; } function popContext() { if (curState.context) curState.context = curState.context.prev; } function element(type) { if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));} else if (type == "closePlugin") { var err = false; if (curState.context) { err = curState.context.pluginName != pluginName; popContext(); } else { err = true; } if (err) setStyle = "error"; return cont(endcloseplugin(err)); } else if (type == "string") { if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); if (curState.tokenize == inText) popContext(); return cont(); } else return cont(); } function endplugin(startOfLine) { return function(type) { if ( type == "selfclosePlugin" || type == "endPlugin" ) return cont(); if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();} return cont(); }; } function endcloseplugin(err) { return function(type) { if (err) setStyle = "error"; if (type == "endPlugin") return cont(); return pass(); }; } function attributes(type) { if (type == "keyword") {setStyle = "attribute"; return cont(attributes);} if (type == "equals") return cont(attvalue, attributes); return pass(); } function attvalue(type) { if (type == "keyword") {setStyle = "string"; return cont();} if (type == "string") return cont(attvaluemaybe); return pass(); } function attvaluemaybe(type) { if (type == "string") return cont(attvaluemaybe); else return pass(); } return { startState: function() { return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null}; }, token: function(stream, state) { if (stream.sol()) { state.startOfLine = true; state.indented = stream.indentation(); } if (stream.eatSpace()) return null; setStyle = type = pluginName = null; var style = state.tokenize(stream, state); if ((style || type) && style != "comment") { curState = state; while (true) { var comb = state.cc.pop() || element; if (comb(type || style)) break; } } state.startOfLine = false; return setStyle || style; }, indent: function(state, textAfter) { var context = state.context; if (context && context.noIndent) return 0; if (context && /^{\//.test(textAfter)) context = context.prev; while (context && !context.startOfLine) context = context.prev; if (context) return context.indent + indentUnit; else return 0; }, electricChars: "/" }; }); CodeMirror.defineMIME("text/tiki", "tiki"); });
lucasls/cdnjs
ajax/libs/codemirror/4.4.0/mode/tiki/tiki.js
JavaScript
mit
8,655
var mkdirp = require('../').mkdirp; var path = require('path'); var fs = require('fs'); var test = require('tap').test; var ps = [ '', 'tmp' ]; for (var i = 0; i < 25; i++) { var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); ps.push(dir); } var file = ps.join('/'); test('chmod-pre', function (t) { var mode = 0744 mkdirp(file, mode, function (er) { t.ifError(er, 'should not error'); fs.stat(file, function (er, stat) { t.ifError(er, 'should exist'); t.ok(stat && stat.isDirectory(), 'should be directory'); t.equal(stat && stat.mode & 0777, mode, 'should be 0744'); t.end(); }); }); }); test('chmod', function (t) { var mode = 0755 mkdirp(file, mode, function (er) { t.ifError(er, 'should not error'); fs.stat(file, function (er, stat) { t.ifError(er, 'should exist'); t.ok(stat && stat.isDirectory(), 'should be directory'); t.end(); }); }); });
fdzh/fdzh.github.io
node_modules/gulp-sass/node_modules/node-sass/node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/chmod.js
JavaScript
mit
1,035
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['de']={"editor":"WYSIWYG-Editor","editorPanel":"WYSIWYG-Editor-Leiste","common":{"editorHelp":"Drücken Sie ALT 0 für Hilfe","browseServer":"Server durchsuchen","url":"URL","protocol":"Protokoll","upload":"Hochladen","uploadSubmit":"Zum Server senden","image":"Bild","flash":"Flash","form":"Formular","checkbox":"Kontrollbox","radio":"Optionsfeld","textField":"Textfeld","textarea":"Textfeld","hiddenField":"Verstecktes Feld","button":"Schaltfläche","select":"Auswahlfeld","imageButton":"Bildschaltfläche","notSet":"<nicht festgelegt>","id":"Kennung","name":"Name","langDir":"Schreibrichtung","langDirLtr":"Links nach Rechts (LTR)","langDirRtl":"Rechts nach Links (RTL)","langCode":"Sprachcode","longDescr":"Langbeschreibungs-URL","cssClass":"Formatvorlagenklassen","advisoryTitle":"Titel Beschreibung","cssStyle":"Stil","ok":"OK","cancel":"Abbrechen","close":"Schließen","preview":"Vorschau","resize":"Größe ändern","generalTab":"Allgemein","advancedTab":"Erweitert","validateNumberFailed":"Dieser Wert ist keine Nummer.","confirmNewPage":"Alle nicht gespeicherten Änderungen gehen verlohren. Sind Sie sicher die neue Seite zu laden?","confirmCancel":"Einige Optionen wurden geändert. Wollen Sie den Dialog dennoch schließen?","options":"Optionen","target":"Zielseite","targetNew":"Neues Fenster (_blank)","targetTop":"Oberstes Fenster (_top)","targetSelf":"Gleiches Fenster (_self)","targetParent":"Oberes Fenster (_parent)","langDirLTR":"Links nach Rechts (LNR)","langDirRTL":"Rechts nach Links (RNL)","styles":"Style","cssClasses":"Stylesheet Klasse","width":"Breite","height":"Höhe","align":"Ausrichtung","alignLeft":"Links","alignRight":"Rechts","alignCenter":"Zentriert","alignJustify":"Blocksatz","alignTop":"Oben","alignMiddle":"Mitte","alignBottom":"Unten","alignNone":"Keine","invalidValue":"Ungültiger Wert.","invalidHeight":"Höhe muss eine Zahl sein.","invalidWidth":"Breite muss eine Zahl sein.","invalidCssLength":"Wert spezifiziert für \"%1\" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).","invalidHtmlLength":"Wert spezifiziert für \"%1\" Feld muss ein positiver numerischer Wert sein mit oder ohne korrekte HTML Messeinheit (px oder %).","invalidInlineStyle":"Wert spezifiziert für inline Stilart muss enthalten ein oder mehr Tupels mit dem Format \"Name : Wert\" getrennt mit Semikolons.","cssLengthTooltip":"Gebe eine Zahl ein für ein Wert in pixels oder eine Zahl mit einer korrekten CSS Messeinheit (px, %, in, cm, mm, em, ex, pt oder pc).","unavailable":"%1<span class=\"cke_accessibility\">, nicht verfügbar</span>","keyboard":{"8":"Rücktaste","13":"Eingabe","16":"Umschalt","17":"Strg","18":"Alt","32":"Leer","35":"Ende","36":"Pos1","46":"Entfernen","224":"Befehl"},"keyboardShortcut":"Tastaturkürzel"},"about":{"copy":"Copyright &copy; $1. Alle Rechte vorbehalten.","dlgTitle":"Über CKEditor","help":"Prüfen Sie $1 für Hilfe.","moreInfo":"Für Informationen über unsere Lizenzbestimmungen besuchen sie bitte unsere Webseite:","title":"Über CKEditor","userGuide":"CKEditor Benutzerhandbuch"},"basicstyles":{"bold":"Fett","italic":"Kursiv","strike":"Durchgestrichen","subscript":"Tiefgestellt","superscript":"Hochgestellt","underline":"Unterstrichen"},"bidi":{"ltr":"Leserichtung von Links nach Rechts","rtl":"Leserichtung von Rechts nach Links"},"blockquote":{"toolbar":"Zitatblock"},"clipboard":{"copy":"Kopieren","copyError":"Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).","cut":"Ausschneiden","cutError":"Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).","paste":"Einfügen","pasteArea":"Einfügebereich","pasteMsg":"Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit <STRONG>Strg+V</STRONG>) ein und bestätigen Sie mit <STRONG>OK</STRONG>.","securityMsg":"Aufgrund von Sicherheitsbeschränkungen Ihres Browsers kann der Editor nicht direkt auf die Zwischenablage zugreifen. Bitte fügen Sie den Inhalt erneut in diesem Fenster ein.","title":"Einfügen"},"button":{"selectedLabel":"%1 (Ausgewählt)"},"colorbutton":{"auto":"Automatisch","bgColorTitle":"Hintergrundfarbe","colors":{"000":"Schwarz","800000":"Kastanienbraun","8B4513":"Braun","2F4F4F":"Dunkles Schiefergrau","008080":"Blaugrün","000080":"Marineblau","4B0082":"Indigo","696969":"Dunkelgrau","B22222":"Ziegelrot","A52A2A":"Braun","DAA520":"Goldgelb","006400":"Dunkelgrün","40E0D0":"Türkis","0000CD":"Mittelblau","800080":"Lila","808080":"Grau","F00":"Rot","FF8C00":"Dunkelorange","FFD700":"Gold","008000":"Grün","0FF":"Cyan","00F":"Blau","EE82EE":"Violett","A9A9A9":"Dunkelgrau","FFA07A":"Helles Lachsrosa","FFA500":"Orange","FFFF00":"Gelb","00FF00":"Lime","AFEEEE":"Blasstürkis","ADD8E6":"Hellblau","DDA0DD":"Pflaumenblau","D3D3D3":"Hellgrau","FFF0F5":"Lavendel","FAEBD7":"Antik Weiß","FFFFE0":"Hellgelb","F0FFF0":"Honigtau","F0FFFF":"Azurblau","F0F8FF":"Alice Blau","E6E6FA":"Lavendel","FFF":"Weiß","1ABC9C":"Strong Cyan","2ECC71":"Emerald","3498DB":"Bright Blue","9B59B6":"Amethyst","4E5F70":"Grayish Blue","F1C40F":"Vivid Yellow","16A085":"Dark Cyan","27AE60":"Dark Emerald","2980B9":"Strong Blue","8E44AD":"Dark Violet","2C3E50":"Desaturated Blue","F39C12":"Orange","E67E22":"Carrot","E74C3C":"Pale Red","ECF0F1":"Bright Silver","95A5A6":"Light Grayish Cyan","DDD":"Light Gray","D35400":"Pumpkin","C0392B":"Strong Red","BDC3C7":"Silver","7F8C8D":"Grayish Cyan","999":"Dark Gray"},"more":"Weitere Farben...","panelTitle":"Farben","textColorTitle":"Textfarbe"},"colordialog":{"clear":"Entfernen","highlight":"Hervorheben","options":"Farboptionen","selected":"Ausgewählte Farbe","title":"Farbe auswählen"},"templates":{"button":"Vorlagen","emptyListMsg":"(Keine Vorlagen definiert)","insertOption":"Aktuelle Inhalte ersetzen","options":"Vorlagenoptionen","selectPromptMsg":"Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen","title":"Inhaltsvorlagen"},"contextmenu":{"options":"Kontextmenüoptionen"},"copyformatting":{"label":"Copy Formatting","notification":{"copied":"Formatting copied","applied":"Formatting applied","canceled":"Formatting canceled","failed":"Formatting failed. You cannot apply styles without copying them first."}},"div":{"IdInputLabel":"Kennung","advisoryTitleInputLabel":"Tooltip","cssClassInputLabel":"Formatvorlagenklasse","edit":"Div bearbeiten","inlineStyleInputLabel":"Inline Stil","langDirLTRLabel":"Links nach Rechs (LTR)","langDirLabel":"Sprachrichtung","langDirRTLLabel":"Rechs nach Links (RTL)","languageCodeInputLabel":"Sprachcode","remove":"Div entfernen","styleSelectLabel":"Stil","title":"Div Container erzeugen","toolbar":"Div Container erzeugen"},"toolbar":{"toolbarCollapse":"Werkzeugleiste einklappen","toolbarExpand":"Werkzeugleiste ausklappen","toolbarGroups":{"document":"Dokument","clipboard":"Zwischenablage/Rückgängig","editing":"Editieren","forms":"Formulare","basicstyles":"Grundstile","paragraph":"Absatz","links":"Links","insert":"Einfügen","styles":"Stile","colors":"Farben","tools":"Werkzeuge"},"toolbars":"Editor Werkzeugleisten"},"elementspath":{"eleLabel":"Elementepfad","eleTitle":"%1 Element"},"find":{"find":"Suchen","findOptions":"Suchoptionen","findWhat":"Suchen nach:","matchCase":"Groß-/Kleinschreibung beachten","matchCyclic":"Zyklische Suche","matchWord":"Nur ganzes Wort suchen","notFoundMsg":"Der angegebene Text wurde nicht gefunden.","replace":"Ersetzen","replaceAll":"Alle ersetzen","replaceSuccessMsg":"%1 Vorkommen ersetzt.","replaceWith":"Ersetzen mit:","title":"Suchen und Ersetzen"},"fakeobjects":{"anchor":"Anker","flash":"Flash-Animation","hiddenfield":"Verstecktes Feld","iframe":"IFrame","unknown":"Unbekanntes Objekt"},"flash":{"access":"Skriptzugriff","accessAlways":"Immer","accessNever":"Nie","accessSameDomain":"Gleiche Domain","alignAbsBottom":"Abs Unten","alignAbsMiddle":"Abs Mitte","alignBaseline":"Basislinie","alignTextTop":"Text oben","bgcolor":"Hintergrundfarbe","chkFull":"Vollbildmodus erlauben","chkLoop":"Endlosschleife","chkMenu":"Flash-Menü aktivieren","chkPlay":"Automatisch Abspielen","flashvars":"Variablen für Flash","hSpace":"Horizontal-Abstand","properties":"Flash-Eigenschaften","propertiesTab":"Eigenschaften","quality":"Qualität","qualityAutoHigh":"Auto Hoch","qualityAutoLow":"Auto Niedrig","qualityBest":"Beste","qualityHigh":"Hoch","qualityLow":"Niedrig","qualityMedium":"Mittel","scale":"Skalierung","scaleAll":"Alles anzeigen","scaleFit":"Passgenau","scaleNoBorder":"Ohne Rand","title":"Flash-Eigenschaften","vSpace":"Vertikal-Abstand","validateHSpace":"HSpace muss eine Zahl sein.","validateSrc":"URL darf nicht leer sein.","validateVSpace":"VSpace muss eine Zahl sein.","windowMode":"Fenstermodus","windowModeOpaque":"Deckend","windowModeTransparent":"Transparent","windowModeWindow":"Fenster"},"font":{"fontSize":{"label":"Größe","voiceLabel":"Schrifgröße","panelTitle":"Schriftgröße"},"label":"Schriftart","panelTitle":"Schriftartname","voiceLabel":"Schriftart"},"forms":{"button":{"title":"Schaltflächeneigenschaften","text":"Text (Wert)","type":"Typ","typeBtn":"Button","typeSbm":"Absenden","typeRst":"Zurücksetzen"},"checkboxAndRadio":{"checkboxTitle":"Kontrollboxeigenschaften","radioTitle":"Optionsfeldeigenschaften","value":"Wert","selected":"Ausgewählt","required":"Erforderlich"},"form":{"title":"Formulareigenschaften","menu":"Formulareigenschaften","action":"Aktion","method":"Methode","encoding":"Kodierung"},"hidden":{"title":"Versteckte Feldeigenschaften","name":"Name","value":"Wert"},"select":{"title":"Auswahlfeldeigenschaften","selectInfo":"Info auswählen","opAvail":"Verfügbare Optionen","value":"Wert","size":"Größe","lines":"Linien","chkMulti":"Mehrfachauswahl erlauben","required":"Erforderlich","opText":"Text","opValue":"Wert","btnAdd":"Hinzufügen","btnModify":"Ändern","btnUp":"Hoch","btnDown":"Runter","btnSetValue":"Als ausgewählten Wert festlegen","btnDelete":"Entfernen"},"textarea":{"title":"Textfeldeigenschaften","cols":"Spalten","rows":"Reihen"},"textfield":{"title":"Textfeldeigenschaften","name":"Name","value":"Wert","charWidth":"Zeichenbreite","maxChars":"Max. Zeichen","required":"Erforderlich","type":"Typ","typeText":"Text","typePass":"Passwort","typeEmail":"E-mail","typeSearch":"Suche","typeTel":"Telefonnummer","typeUrl":"URL"}},"format":{"label":"Format","panelTitle":"Absatzformat","tag_address":"Adresse","tag_div":"Normal (DIV)","tag_h1":"Überschrift 1","tag_h2":"Überschrift 2","tag_h3":"Überschrift 3","tag_h4":"Überschrift 4","tag_h5":"Überschrift 5","tag_h6":"Überschrift 6","tag_p":"Normal","tag_pre":"Formatiert"},"horizontalrule":{"toolbar":"Horizontale Linie einfügen"},"iframe":{"border":"Rahmen anzeigen","noUrl":"Bitte geben Sie die IFrame-URL an","scrolling":"Rollbalken anzeigen","title":"IFrame-Eigenschaften","toolbar":"IFrame"},"image":{"alt":"Alternativer Text","border":"Rahmen","btnUpload":"Zum Server senden","button2Img":"Möchten Sie die ausgewählte Bildschaltfläche in ein einfaches Bild umwandeln?","hSpace":"Horizontal-Abstand","img2Button":"Möchten Sie das ausgewählte Bild in eine Bildschaltfläche umwandeln?","infoTab":"Bildinfo","linkTab":"Link","lockRatio":"Größenverhältnis beibehalten","menu":"Bildeigenschaften","resetSize":"Größe zurücksetzen","title":"Bildeigenschaften","titleButton":"Bildschaltflächeneigenschaften","upload":"Hochladen","urlMissing":"Bildquellen-URL fehlt.","vSpace":"Vertikal-Abstand","validateBorder":"Rahmen muss eine ganze Zahl sein.","validateHSpace":"Horizontal-Abstand muss eine ganze Zahl sein.","validateVSpace":"Vertikal-Abstand muss eine ganze Zahl sein."},"indent":{"indent":"Einzug erhöhen","outdent":"Einzug verringern"},"smiley":{"options":"Smiley-Optionen","title":"Smiley auswählen","toolbar":"Smiley"},"justify":{"block":"Blocksatz","center":"Zentriert","left":"Linksbündig","right":"Rechtsbündig"},"language":{"button":"Sprache festlegen","remove":"Sprache entfernen"},"link":{"acccessKey":"Zugriffstaste","advanced":"Erweitert","advisoryContentType":"Inhaltstyp","advisoryTitle":"Titel Beschreibung","anchor":{"toolbar":"Anker","menu":"Anker bearbeiten","title":"Ankereigenschaften","name":"Ankername","errorName":"Bitte geben Sie den Namen des Ankers ein","remove":"Anker entfernen"},"anchorId":"Nach Elementkennung","anchorName":"Nach Ankername","charset":"Verknüpfter Ressourcenzeichensatz","cssClasses":"Formatvorlagenklasse","download":"Herunterladen erzwingen","displayText":"Anzeigetext","emailAddress":"E-Mail-Adresse","emailBody":"Nachrichtentext","emailSubject":"Betreffzeile","id":"Kennung","info":"Linkinfo","langCode":"Sprachcode","langDir":"Schreibrichtung","langDirLTR":"Links nach Rechts (LTR)","langDirRTL":"Rechts nach Links (RTL)","menu":"Link bearbeiten","name":"Name","noAnchors":"(Keine Anker im Dokument vorhanden)","noEmail":"Bitte geben Sie E-Mail-Adresse an","noUrl":"Bitte geben Sie die Link-URL an","other":"<andere>","popupDependent":"Abhängig (Netscape)","popupFeatures":"Pop-up Fenstereigenschaften","popupFullScreen":"Vollbild (IE)","popupLeft":"Linke Position","popupLocationBar":"Adressleiste","popupMenuBar":"Menüleiste","popupResizable":"Größe änderbar","popupScrollBars":"Rollbalken","popupStatusBar":"Statusleiste","popupToolbar":"Werkzeugleiste","popupTop":"Obere Position","rel":"Beziehung","selectAnchor":"Anker auswählen","styles":"Style","tabIndex":"Tab-Index","target":"Zielseite","targetFrame":"<Frame>","targetFrameName":"Ziel-Fenster-Name","targetPopup":"<Pop-up Fenster>","targetPopupName":"Pop-up Fenster-Name","title":"Link","toAnchor":"Anker in dieser Seite","toEmail":"E-Mail","toUrl":"URL","toolbar":"Link einfügen/editieren","type":"Link-Typ","unlink":"Link entfernen","upload":"Hochladen"},"list":{"bulletedlist":"Liste","numberedlist":"Nummerierte Liste einfügen/entfernen"},"liststyle":{"armenian":"Armenische Nummerierung","bulletedTitle":"Aufzählungslisteneigenschaften","circle":"Ring","decimal":"Dezimal (1, 2, 3, etc.)","decimalLeadingZero":"Dezimal mit führender Null (01, 02, 03, usw.)","disc":"Kreis","georgian":"Georgische Nummerierung (an, ban, gan, usw.)","lowerAlpha":"Klein Alpha (a, b, c, d, e, usw.)","lowerGreek":"Klein griechisch (alpha, beta, gamma, usw.)","lowerRoman":"Klein römisch (i, ii, iii, iv, v, usw.)","none":"Keine","notset":"<nicht festgelegt>","numberedTitle":"Nummerierte Listeneigenschaften","square":"Quadrat","start":"Start","type":"Typ","upperAlpha":"Groß alpha (A, B, C, D, E, etc.)","upperRoman":"Groß römisch (I, II, III, IV, V, usw.)","validateStartNumber":"Listenstartnummer muss eine ganze Zahl sein."},"magicline":{"title":"Absatz hier einfügen"},"maximize":{"maximize":"Maximieren","minimize":"Minimieren"},"newpage":{"toolbar":"Neue Seite"},"pagebreak":{"alt":"Seitenumbruch","toolbar":"Seitenumbruch zum Drucken einfügen"},"pastetext":{"button":"Als Klartext einfügen","title":"Als Klartext einfügen"},"pastefromword":{"confirmCleanup":"Der Text, den Sie einfügen möchten, scheint aus MS-Word kopiert zu sein. Möchten Sie ihn zuvor bereinigen lassen?","error":"Aufgrund eines internen Fehlers war es nicht möglich die eingefügten Daten zu bereinigen","title":"Aus Word einfügen","toolbar":"Aus Word einfügen"},"preview":{"preview":"Vorschau"},"print":{"toolbar":"Drucken"},"removeformat":{"toolbar":"Formatierung entfernen"},"save":{"toolbar":"Speichern"},"selectall":{"toolbar":"Alles auswählen"},"showblocks":{"toolbar":"Blöcke anzeigen"},"sourcearea":{"toolbar":"Quellcode"},"specialchar":{"options":"Sonderzeichenoptionen","title":"Sonderzeichen auswählen","toolbar":"Sonderzeichen einfügen"},"scayt":{"btn_about":"Über SCAYT","btn_dictionaries":"Wörterbücher","btn_disable":"SCAYT ausschalten","btn_enable":"SCAYT einschalten","btn_langs":"Sprachen","btn_options":"Optionen","text_title":"Rechtschreibprüfung während der Texteingabe (SCAYT)"},"stylescombo":{"label":"Stil","panelTitle":"Formatierungsstile","panelTitle1":"Blockstile","panelTitle2":"Inline Stilart","panelTitle3":"Objektstile"},"table":{"border":"Rahmengröße","caption":"Überschrift","cell":{"menu":"Zelle","insertBefore":"Zelle davor einfügen","insertAfter":"Zelle danach einfügen","deleteCell":"Zelle löschen","merge":"Zellen verbinden","mergeRight":"Nach rechts verbinden","mergeDown":"Nach unten verbinden","splitHorizontal":"Zelle horizontal teilen","splitVertical":"Zelle vertikal teilen","title":"Zelleneigenschaften","cellType":"Zellart","rowSpan":"Anzahl Zeilen verbinden","colSpan":"Anzahl Spalten verbinden","wordWrap":"Zeilenumbruch","hAlign":"Horizontale Ausrichtung","vAlign":"Vertikale Ausrichtung","alignBaseline":"Grundlinie","bgColor":"Hintergrundfarbe","borderColor":"Rahmenfarbe","data":"Daten","header":"Überschrift","yes":"Ja","no":"Nein","invalidWidth":"Zellenbreite muss eine Zahl sein.","invalidHeight":"Zellenhöhe muss eine Zahl sein.","invalidRowSpan":"\"Anzahl Zeilen verbinden\" muss eine Ganzzahl sein.","invalidColSpan":"\"Anzahl Spalten verbinden\" muss eine Ganzzahl sein.","chooseColor":"Wählen"},"cellPad":"Zellenabstand innen","cellSpace":"Zellenabstand außen","column":{"menu":"Spalte","insertBefore":"Spalte links davor einfügen","insertAfter":"Spalte rechts danach einfügen","deleteColumn":"Spalte löschen"},"columns":"Spalte","deleteTable":"Tabelle löschen","headers":"Kopfzeile","headersBoth":"Beide","headersColumn":"Erste Spalte","headersNone":"Keine","headersRow":"Erste Zeile","invalidBorder":"Die Rahmenbreite muß eine Zahl sein.","invalidCellPadding":"Der Zellenabstand innen muß eine positive Zahl sein.","invalidCellSpacing":"Der Zellenabstand außen muß eine positive Zahl sein.","invalidCols":"Die Anzahl der Spalten muß größer als 0 sein..","invalidHeight":"Die Tabellenbreite muß eine Zahl sein.","invalidRows":"Die Anzahl der Zeilen muß größer als 0 sein.","invalidWidth":"Die Tabellenbreite muss eine Zahl sein.","menu":"Tabellen-Eigenschaften","row":{"menu":"Zeile","insertBefore":"Zeile oberhalb einfügen","insertAfter":"Zeile unterhalb einfügen","deleteRow":"Zeile entfernen"},"rows":"Zeile","summary":"Inhaltsübersicht","title":"Tabellen-Eigenschaften","toolbar":"Tabelle","widthPc":"%","widthPx":"Pixel","widthUnit":"Breite Einheit"},"undo":{"redo":"Wiederherstellen","undo":"Rückgängig"},"wsc":{"btnIgnore":"Ignorieren","btnIgnoreAll":"Alle Ignorieren","btnReplace":"Ersetzen","btnReplaceAll":"Alle Ersetzen","btnUndo":"Rückgängig","changeTo":"Ändern in","errorLoading":"Fehler beim laden des Dienstanbieters: %s.","ieSpellDownload":"Rechtschreibprüfung nicht installiert. Möchten Sie sie jetzt herunterladen?","manyChanges":"Rechtschreibprüfung abgeschlossen - %1 Wörter geändert","noChanges":"Rechtschreibprüfung abgeschlossen - keine Worte geändert","noMispell":"Rechtschreibprüfung abgeschlossen - keine Fehler gefunden","noSuggestions":" - keine Vorschläge - ","notAvailable":"Entschuldigung, aber dieser Dienst steht im Moment nicht zur Verfügung.","notInDic":"Nicht im Wörterbuch","oneChange":"Rechtschreibprüfung abgeschlossen - ein Wort geändert","progress":"Rechtschreibprüfung läuft...","title":"Rechtschreibprüfung","toolbar":"Rechtschreibprüfung"}};
haspel-sign/br
booking/ckeditor/lang/de.js
JavaScript
mit
19,528
"use strict";angular.module("ngLocale",[],["$provide",function(e){var m={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],MONTH:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],SHORTDAY:["dom.","lun.","mar.","mié.","jue.","vie.","sáb."],SHORTMONTH:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"es-us",pluralCat:function(e,o){return 1==e?m.ONE:m.OTHER}})}]);
ahocevar/cdnjs
ajax/libs/angular-i18n/1.2.31/angular-locale_es-us.min.js
JavaScript
mit
1,081
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.3-master-471c225 */md-input-container:not([md-no-float]) .md-select-placeholder span:first-child{-webkit-transition:-webkit-transform .4s cubic-bezier(.25,.8,.25,1);transition:-webkit-transform .4s cubic-bezier(.25,.8,.25,1);transition:transform .4s cubic-bezier(.25,.8,.25,1);transition:transform .4s cubic-bezier(.25,.8,.25,1),-webkit-transform .4s cubic-bezier(.25,.8,.25,1);-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] md-input-container:not([md-no-float]) .md-select-placeholder span:first-child{-webkit-transform-origin:right top;transform-origin:right top}md-input-container.md-input-focused:not([md-no-float]) .md-select-placeholder span:first-child{-webkit-transform:translateY(-22px) translateX(-2px) scale(.75);transform:translateY(-22px) translateX(-2px) scale(.75)}.md-select-menu-container{position:fixed;left:0;top:0;z-index:90;opacity:0;display:none;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.md-select-menu-container:not(.md-clickable){pointer-events:none}.md-select-menu-container md-progress-circular{display:table;margin:24px auto!important}.md-select-menu-container.md-active{display:block;opacity:1}.md-select-menu-container.md-active md-select-menu{-webkit-transition:all .4s cubic-bezier(.25,.8,.25,1);transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transition-duration:.15s;transition-duration:.15s}.md-select-menu-container.md-active md-select-menu>*{opacity:1;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.15s;transition-duration:.15s;-webkit-transition-delay:.1s;transition-delay:.1s}.md-select-menu-container.md-leave{opacity:0;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.25s;transition-duration:.25s}md-input-container>md-select{margin:0;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}md-input-container:not(.md-input-has-value) md-select.ng-required:not(.md-no-asterisk) .md-select-value span:first-child:after,md-input-container:not(.md-input-has-value) md-select[required]:not(.md-no-asterisk) .md-select-value span:first-child:after{content:" *";font-size:13px;vertical-align:top}md-input-container.md-input-invalid md-select .md-select-value{border-bottom-style:solid;padding-bottom:1px}md-select{display:-webkit-box;display:-webkit-flex;display:flex;margin:20px 0 26px}md-select.ng-required.ng-invalid:not(.md-no-asterisk) .md-select-value span:first-child:after,md-select[required].ng-invalid:not(.md-no-asterisk) .md-select-value span:first-child:after{content:" *";font-size:13px;vertical-align:top}md-select[disabled] .md-select-value{background-position:0 bottom;background-size:4px 1px;background-repeat:repeat-x;margin-bottom:-1px}md-select:focus{outline:none}md-select[disabled]:hover{cursor:default}md-select:not([disabled]):hover{cursor:pointer}md-select:not([disabled]).ng-invalid.ng-touched .md-select-value{border-bottom-style:solid;padding-bottom:1px}md-select:not([disabled]):focus .md-select-value{border-bottom-width:2px;border-bottom-style:solid;padding-bottom:0}md-select:not([disabled]):focus.ng-invalid.ng-touched .md-select-value{padding-bottom:0}md-input-container.md-input-has-value .md-select-value>span:not(.md-select-icon){-webkit-transform:translate3d(0,1px,0);transform:translate3d(0,1px,0)}.md-select-value{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:2px 2px 1px;border-bottom-width:1px;border-bottom-style:solid;background-color:transparent;position:relative;box-sizing:content-box;min-width:64px;min-height:26px;-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.md-select-value>span:not(.md-select-icon){max-width:100%;-webkit-box-flex:1;-webkit-flex:1 1 auto;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.md-select-value>span:not(.md-select-icon) .md-text{display:inline}.md-select-value .md-select-icon{display:block;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;text-align:end;width:24px;margin:0 4px;-webkit-transform:translate3d(0,-2px,0);transform:translate3d(0,-2px,0);font-size:1.2rem}.md-select-value .md-select-icon:after{display:block;content:"\25BC";position:relative;top:2px;speak:none;font-size:13px;-webkit-transform:scaleY(.5) scaleX(1);transform:scaleY(.5) scaleX(1)}.md-select-value.md-select-placeholder{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-ordinal-group:2;-webkit-order:1;order:1;pointer-events:none;-webkit-font-smoothing:antialiased;padding-left:2px;z-index:1}md-select-menu{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);max-height:256px;min-height:48px;overflow-y:hidden;-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(1);transform:scale(1)}md-select-menu.md-reverse{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}md-select-menu:not(.md-overflow) md-content{padding-top:8px;padding-bottom:8px}[dir=rtl] md-select-menu{-webkit-transform-origin:right top;transform-origin:right top}md-select-menu md-content{min-width:136px;min-height:48px;max-height:256px;overflow-y:auto}md-select-menu>*{opacity:0}md-option{cursor:pointer;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:auto;-webkit-transition:background .15s linear;transition:background .15s linear;padding:0 16px;height:48px}md-option[disabled]{cursor:default}md-option:focus{outline:none}md-option .md-text{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}md-optgroup{display:block}md-optgroup label{display:block;font-size:14px;text-transform:uppercase;padding:16px;font-weight:500}md-optgroup md-option{padding-left:32px;padding-right:32px}@media screen and (-ms-high-contrast:active){.md-select-backdrop{background-color:transparent}md-select-menu{border:1px solid #fff}}md-select-menu[multiple] md-option.md-checkbox-enabled{padding-left:40px;padding-right:16px}[dir=rtl] md-select-menu[multiple] md-option.md-checkbox-enabled{padding-left:16px;padding-right:40px}md-select-menu[multiple] md-option.md-checkbox-enabled .md-container{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);box-sizing:border-box;display:inline-block;width:20px;height:20px;left:0;right:auto}[dir=rtl] md-select-menu[multiple] md-option.md-checkbox-enabled .md-container{left:auto;right:0}md-select-menu[multiple] md-option.md-checkbox-enabled .md-container:before{box-sizing:border-box;background-color:transparent;border-radius:50%;content:"";position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;-webkit-transition:all .5s;transition:all .5s;width:auto}md-select-menu[multiple] md-option.md-checkbox-enabled .md-container:after{box-sizing:border-box;content:"";position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}md-select-menu[multiple] md-option.md-checkbox-enabled .md-container .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-15px;top:-15px;right:-15px;bottom:-15px}md-select-menu[multiple] md-option.md-checkbox-enabled .md-icon{box-sizing:border-box;-webkit-transition:.24s;transition:.24s;position:absolute;top:0;left:0;width:20px;height:20px;border-width:2px;border-style:solid;border-radius:2px}md-select-menu[multiple] md-option.md-checkbox-enabled[selected] .md-icon{border-color:transparent}md-select-menu[multiple] md-option.md-checkbox-enabled[selected] .md-icon:after{box-sizing:border-box;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;left:4.66667px;top:.22222px;display:table;width:6.66667px;height:13.33333px;border-width:2px;border-style:solid;border-top:0;border-left:0;content:""}md-select-menu[multiple] md-option.md-checkbox-enabled[disabled]{cursor:default}md-select-menu[multiple] md-option.md-checkbox-enabled.md-indeterminate .md-icon:after{box-sizing:border-box;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:table;width:12px;height:2px;border-width:2px;border-style:solid;border-top:0;border-left:0;content:""}md-select-menu[multiple] md-option.md-checkbox-enabled .md-container{margin-left:10.66667px;margin-right:auto}[dir=rtl] md-select-menu[multiple] md-option.md-checkbox-enabled .md-container{margin-left:auto;margin-right:10.66667px}
humanityroad/humanity-road
WebApp/bower_components/angular-material/modules/closure/select/select.min.css
CSS
mit
8,951
@charset "UTF-8"; /*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}main{display:block}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}input{overflow:visible}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;display:table;max-width:100%;padding:0;color:inherit;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}details{display:block}summary{display:list-item}menu{display:block}canvas{display:inline-block}[hidden],template{display:none}.foundation-mq{font-family:"small=0em&medium=40em&large=64em&xlarge=75em&xxlarge=90em"}html{box-sizing:border-box;font-size:100%}*,:after,:before{box-sizing:inherit}body{margin:0;padding:0;background:#fefefe;font-family:Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-weight:400;line-height:1.5;color:#0a0a0a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle;max-width:100%;height:auto;-ms-interpolation-mode:bicubic}textarea{height:auto;min-height:50px;border-radius:0}select{box-sizing:border-box;width:100%;border-radius:0}.map_canvas embed,.map_canvas img,.map_canvas object,.mqa-display embed,.mqa-display img,.mqa-display object{max-width:none!important}button{padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:0;background:transparent;line-height:1}[data-whatinput=mouse] button{outline:0}pre{overflow:auto}.is-visible{display:block!important}.is-hidden{display:none!important}.row{max-width:75rem;margin-right:auto;margin-left:auto}.row:after,.row:before{display:table;content:" "}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-right:0;padding-left:0}.row .row{margin-right:-.625rem;margin-left:-.625rem}@media print,screen and (min-width:40em){.row .row{margin-right:-.9375rem;margin-left:-.9375rem}}@media print,screen and (min-width:64em){.row .row{margin-right:-.9375rem;margin-left:-.9375rem}}.row .row.collapse{margin-right:0;margin-left:0}.row.expanded{max-width:none}.row.expanded .row{margin-right:auto;margin-left:auto}.row:not(.expanded) .row{max-width:none}.row.gutter-small>.column,.row.gutter-small>.columns{padding-right:.625rem;padding-left:.625rem}.row.gutter-medium>.column,.row.gutter-medium>.columns{padding-right:.9375rem;padding-left:.9375rem}.column,.columns{width:100%;float:right;padding-right:.625rem;padding-left:.625rem}@media print,screen and (min-width:40em){.column,.columns{padding-right:.9375rem;padding-left:.9375rem}}.column:last-child:not(:first-child),.columns:last-child:not(:first-child){float:left}.column.end:last-child:last-child,.end.columns:last-child:last-child{float:right}.column.row.row,.row.row.columns{float:none}.row .column.row.row,.row .row.row.columns{margin-right:0;margin-left:0;padding-right:0;padding-left:0}.small-1{width:8.33333%}.small-push-1{position:relative;right:8.33333%}.small-pull-1{position:relative;right:-8.33333%}.small-offset-0{margin-right:0}.small-2{width:16.66667%}.small-push-2{position:relative;right:16.66667%}.small-pull-2{position:relative;right:-16.66667%}.small-offset-1{margin-right:8.33333%}.small-3{width:25%}.small-push-3{position:relative;right:25%}.small-pull-3{position:relative;right:-25%}.small-offset-2{margin-right:16.66667%}.small-4{width:33.33333%}.small-push-4{position:relative;right:33.33333%}.small-pull-4{position:relative;right:-33.33333%}.small-offset-3{margin-right:25%}.small-5{width:41.66667%}.small-push-5{position:relative;right:41.66667%}.small-pull-5{position:relative;right:-41.66667%}.small-offset-4{margin-right:33.33333%}.small-6{width:50%}.small-push-6{position:relative;right:50%}.small-pull-6{position:relative;right:-50%}.small-offset-5{margin-right:41.66667%}.small-7{width:58.33333%}.small-push-7{position:relative;right:58.33333%}.small-pull-7{position:relative;right:-58.33333%}.small-offset-6{margin-right:50%}.small-8{width:66.66667%}.small-push-8{position:relative;right:66.66667%}.small-pull-8{position:relative;right:-66.66667%}.small-offset-7{margin-right:58.33333%}.small-9{width:75%}.small-push-9{position:relative;right:75%}.small-pull-9{position:relative;right:-75%}.small-offset-8{margin-right:66.66667%}.small-10{width:83.33333%}.small-push-10{position:relative;right:83.33333%}.small-pull-10{position:relative;right:-83.33333%}.small-offset-9{margin-right:75%}.small-11{width:91.66667%}.small-push-11{position:relative;right:91.66667%}.small-pull-11{position:relative;right:-91.66667%}.small-offset-10{margin-right:83.33333%}.small-12{width:100%}.small-offset-11{margin-right:91.66667%}.small-up-1>.column,.small-up-1>.columns{float:right;width:100%}.small-up-1>.column:nth-of-type(1n),.small-up-1>.columns:nth-of-type(1n){clear:none}.small-up-1>.column:nth-of-type(1n+1),.small-up-1>.columns:nth-of-type(1n+1){clear:both}.small-up-1>.column:last-child,.small-up-1>.columns:last-child{float:right}.small-up-2>.column,.small-up-2>.columns{float:right;width:50%}.small-up-2>.column:nth-of-type(1n),.small-up-2>.columns:nth-of-type(1n){clear:none}.small-up-2>.column:nth-of-type(2n+1),.small-up-2>.columns:nth-of-type(2n+1){clear:both}.small-up-2>.column:last-child,.small-up-2>.columns:last-child{float:right}.small-up-3>.column,.small-up-3>.columns{float:right;width:33.33333%}.small-up-3>.column:nth-of-type(1n),.small-up-3>.columns:nth-of-type(1n){clear:none}.small-up-3>.column:nth-of-type(3n+1),.small-up-3>.columns:nth-of-type(3n+1){clear:both}.small-up-3>.column:last-child,.small-up-3>.columns:last-child{float:right}.small-up-4>.column,.small-up-4>.columns{float:right;width:25%}.small-up-4>.column:nth-of-type(1n),.small-up-4>.columns:nth-of-type(1n){clear:none}.small-up-4>.column:nth-of-type(4n+1),.small-up-4>.columns:nth-of-type(4n+1){clear:both}.small-up-4>.column:last-child,.small-up-4>.columns:last-child{float:right}.small-up-5>.column,.small-up-5>.columns{float:right;width:20%}.small-up-5>.column:nth-of-type(1n),.small-up-5>.columns:nth-of-type(1n){clear:none}.small-up-5>.column:nth-of-type(5n+1),.small-up-5>.columns:nth-of-type(5n+1){clear:both}.small-up-5>.column:last-child,.small-up-5>.columns:last-child{float:right}.small-up-6>.column,.small-up-6>.columns{float:right;width:16.66667%}.small-up-6>.column:nth-of-type(1n),.small-up-6>.columns:nth-of-type(1n){clear:none}.small-up-6>.column:nth-of-type(6n+1),.small-up-6>.columns:nth-of-type(6n+1){clear:both}.small-up-6>.column:last-child,.small-up-6>.columns:last-child{float:right}.small-up-7>.column,.small-up-7>.columns{float:right;width:14.28571%}.small-up-7>.column:nth-of-type(1n),.small-up-7>.columns:nth-of-type(1n){clear:none}.small-up-7>.column:nth-of-type(7n+1),.small-up-7>.columns:nth-of-type(7n+1){clear:both}.small-up-7>.column:last-child,.small-up-7>.columns:last-child{float:right}.small-up-8>.column,.small-up-8>.columns{float:right;width:12.5%}.small-up-8>.column:nth-of-type(1n),.small-up-8>.columns:nth-of-type(1n){clear:none}.small-up-8>.column:nth-of-type(8n+1),.small-up-8>.columns:nth-of-type(8n+1){clear:both}.small-up-8>.column:last-child,.small-up-8>.columns:last-child{float:right}.small-collapse>.column,.small-collapse>.columns{padding-right:0;padding-left:0}.expanded.row .small-collapse.row,.small-collapse .row{margin-right:0;margin-left:0}.small-uncollapse>.column,.small-uncollapse>.columns{padding-right:.625rem;padding-left:.625rem}.small-centered{margin-right:auto;margin-left:auto}.small-centered,.small-centered:last-child:not(:first-child){float:none;clear:both}.small-pull-0,.small-push-0,.small-uncentered{position:static;float:left;margin-right:0;margin-left:0}@media print,screen and (min-width:40em){.medium-1{width:8.33333%}.medium-push-1{position:relative;right:8.33333%}.medium-pull-1{position:relative;right:-8.33333%}.medium-offset-0{margin-right:0}.medium-2{width:16.66667%}.medium-push-2{position:relative;right:16.66667%}.medium-pull-2{position:relative;right:-16.66667%}.medium-offset-1{margin-right:8.33333%}.medium-3{width:25%}.medium-push-3{position:relative;right:25%}.medium-pull-3{position:relative;right:-25%}.medium-offset-2{margin-right:16.66667%}.medium-4{width:33.33333%}.medium-push-4{position:relative;right:33.33333%}.medium-pull-4{position:relative;right:-33.33333%}.medium-offset-3{margin-right:25%}.medium-5{width:41.66667%}.medium-push-5{position:relative;right:41.66667%}.medium-pull-5{position:relative;right:-41.66667%}.medium-offset-4{margin-right:33.33333%}.medium-6{width:50%}.medium-push-6{position:relative;right:50%}.medium-pull-6{position:relative;right:-50%}.medium-offset-5{margin-right:41.66667%}.medium-7{width:58.33333%}.medium-push-7{position:relative;right:58.33333%}.medium-pull-7{position:relative;right:-58.33333%}.medium-offset-6{margin-right:50%}.medium-8{width:66.66667%}.medium-push-8{position:relative;right:66.66667%}.medium-pull-8{position:relative;right:-66.66667%}.medium-offset-7{margin-right:58.33333%}.medium-9{width:75%}.medium-push-9{position:relative;right:75%}.medium-pull-9{position:relative;right:-75%}.medium-offset-8{margin-right:66.66667%}.medium-10{width:83.33333%}.medium-push-10{position:relative;right:83.33333%}.medium-pull-10{position:relative;right:-83.33333%}.medium-offset-9{margin-right:75%}.medium-11{width:91.66667%}.medium-push-11{position:relative;right:91.66667%}.medium-pull-11{position:relative;right:-91.66667%}.medium-offset-10{margin-right:83.33333%}.medium-12{width:100%}.medium-offset-11{margin-right:91.66667%}.medium-up-1>.column,.medium-up-1>.columns{float:right;width:100%}.medium-up-1>.column:nth-of-type(1n),.medium-up-1>.columns:nth-of-type(1n){clear:none}.medium-up-1>.column:nth-of-type(1n+1),.medium-up-1>.columns:nth-of-type(1n+1){clear:both}.medium-up-1>.column:last-child,.medium-up-1>.columns:last-child{float:right}.medium-up-2>.column,.medium-up-2>.columns{float:right;width:50%}.medium-up-2>.column:nth-of-type(1n),.medium-up-2>.columns:nth-of-type(1n){clear:none}.medium-up-2>.column:nth-of-type(2n+1),.medium-up-2>.columns:nth-of-type(2n+1){clear:both}.medium-up-2>.column:last-child,.medium-up-2>.columns:last-child{float:right}.medium-up-3>.column,.medium-up-3>.columns{float:right;width:33.33333%}.medium-up-3>.column:nth-of-type(1n),.medium-up-3>.columns:nth-of-type(1n){clear:none}.medium-up-3>.column:nth-of-type(3n+1),.medium-up-3>.columns:nth-of-type(3n+1){clear:both}.medium-up-3>.column:last-child,.medium-up-3>.columns:last-child{float:right}.medium-up-4>.column,.medium-up-4>.columns{float:right;width:25%}.medium-up-4>.column:nth-of-type(1n),.medium-up-4>.columns:nth-of-type(1n){clear:none}.medium-up-4>.column:nth-of-type(4n+1),.medium-up-4>.columns:nth-of-type(4n+1){clear:both}.medium-up-4>.column:last-child,.medium-up-4>.columns:last-child{float:right}.medium-up-5>.column,.medium-up-5>.columns{float:right;width:20%}.medium-up-5>.column:nth-of-type(1n),.medium-up-5>.columns:nth-of-type(1n){clear:none}.medium-up-5>.column:nth-of-type(5n+1),.medium-up-5>.columns:nth-of-type(5n+1){clear:both}.medium-up-5>.column:last-child,.medium-up-5>.columns:last-child{float:right}.medium-up-6>.column,.medium-up-6>.columns{float:right;width:16.66667%}.medium-up-6>.column:nth-of-type(1n),.medium-up-6>.columns:nth-of-type(1n){clear:none}.medium-up-6>.column:nth-of-type(6n+1),.medium-up-6>.columns:nth-of-type(6n+1){clear:both}.medium-up-6>.column:last-child,.medium-up-6>.columns:last-child{float:right}.medium-up-7>.column,.medium-up-7>.columns{float:right;width:14.28571%}.medium-up-7>.column:nth-of-type(1n),.medium-up-7>.columns:nth-of-type(1n){clear:none}.medium-up-7>.column:nth-of-type(7n+1),.medium-up-7>.columns:nth-of-type(7n+1){clear:both}.medium-up-7>.column:last-child,.medium-up-7>.columns:last-child{float:right}.medium-up-8>.column,.medium-up-8>.columns{float:right;width:12.5%}.medium-up-8>.column:nth-of-type(1n),.medium-up-8>.columns:nth-of-type(1n){clear:none}.medium-up-8>.column:nth-of-type(8n+1),.medium-up-8>.columns:nth-of-type(8n+1){clear:both}.medium-up-8>.column:last-child,.medium-up-8>.columns:last-child{float:right}.medium-collapse>.column,.medium-collapse>.columns{padding-right:0;padding-left:0}.expanded.row .medium-collapse.row,.medium-collapse .row{margin-right:0;margin-left:0}.medium-uncollapse>.column,.medium-uncollapse>.columns{padding-right:.9375rem;padding-left:.9375rem}.medium-centered{margin-right:auto;margin-left:auto}.medium-centered,.medium-centered:last-child:not(:first-child){float:none;clear:both}.medium-pull-0,.medium-push-0,.medium-uncentered{position:static;float:left;margin-right:0;margin-left:0}}@media print,screen and (min-width:64em){.large-1{width:8.33333%}.large-push-1{position:relative;right:8.33333%}.large-pull-1{position:relative;right:-8.33333%}.large-offset-0{margin-right:0}.large-2{width:16.66667%}.large-push-2{position:relative;right:16.66667%}.large-pull-2{position:relative;right:-16.66667%}.large-offset-1{margin-right:8.33333%}.large-3{width:25%}.large-push-3{position:relative;right:25%}.large-pull-3{position:relative;right:-25%}.large-offset-2{margin-right:16.66667%}.large-4{width:33.33333%}.large-push-4{position:relative;right:33.33333%}.large-pull-4{position:relative;right:-33.33333%}.large-offset-3{margin-right:25%}.large-5{width:41.66667%}.large-push-5{position:relative;right:41.66667%}.large-pull-5{position:relative;right:-41.66667%}.large-offset-4{margin-right:33.33333%}.large-6{width:50%}.large-push-6{position:relative;right:50%}.large-pull-6{position:relative;right:-50%}.large-offset-5{margin-right:41.66667%}.large-7{width:58.33333%}.large-push-7{position:relative;right:58.33333%}.large-pull-7{position:relative;right:-58.33333%}.large-offset-6{margin-right:50%}.large-8{width:66.66667%}.large-push-8{position:relative;right:66.66667%}.large-pull-8{position:relative;right:-66.66667%}.large-offset-7{margin-right:58.33333%}.large-9{width:75%}.large-push-9{position:relative;right:75%}.large-pull-9{position:relative;right:-75%}.large-offset-8{margin-right:66.66667%}.large-10{width:83.33333%}.large-push-10{position:relative;right:83.33333%}.large-pull-10{position:relative;right:-83.33333%}.large-offset-9{margin-right:75%}.large-11{width:91.66667%}.large-push-11{position:relative;right:91.66667%}.large-pull-11{position:relative;right:-91.66667%}.large-offset-10{margin-right:83.33333%}.large-12{width:100%}.large-offset-11{margin-right:91.66667%}.large-up-1>.column,.large-up-1>.columns{float:right;width:100%}.large-up-1>.column:nth-of-type(1n),.large-up-1>.columns:nth-of-type(1n){clear:none}.large-up-1>.column:nth-of-type(1n+1),.large-up-1>.columns:nth-of-type(1n+1){clear:both}.large-up-1>.column:last-child,.large-up-1>.columns:last-child{float:right}.large-up-2>.column,.large-up-2>.columns{float:right;width:50%}.large-up-2>.column:nth-of-type(1n),.large-up-2>.columns:nth-of-type(1n){clear:none}.large-up-2>.column:nth-of-type(2n+1),.large-up-2>.columns:nth-of-type(2n+1){clear:both}.large-up-2>.column:last-child,.large-up-2>.columns:last-child{float:right}.large-up-3>.column,.large-up-3>.columns{float:right;width:33.33333%}.large-up-3>.column:nth-of-type(1n),.large-up-3>.columns:nth-of-type(1n){clear:none}.large-up-3>.column:nth-of-type(3n+1),.large-up-3>.columns:nth-of-type(3n+1){clear:both}.large-up-3>.column:last-child,.large-up-3>.columns:last-child{float:right}.large-up-4>.column,.large-up-4>.columns{float:right;width:25%}.large-up-4>.column:nth-of-type(1n),.large-up-4>.columns:nth-of-type(1n){clear:none}.large-up-4>.column:nth-of-type(4n+1),.large-up-4>.columns:nth-of-type(4n+1){clear:both}.large-up-4>.column:last-child,.large-up-4>.columns:last-child{float:right}.large-up-5>.column,.large-up-5>.columns{float:right;width:20%}.large-up-5>.column:nth-of-type(1n),.large-up-5>.columns:nth-of-type(1n){clear:none}.large-up-5>.column:nth-of-type(5n+1),.large-up-5>.columns:nth-of-type(5n+1){clear:both}.large-up-5>.column:last-child,.large-up-5>.columns:last-child{float:right}.large-up-6>.column,.large-up-6>.columns{float:right;width:16.66667%}.large-up-6>.column:nth-of-type(1n),.large-up-6>.columns:nth-of-type(1n){clear:none}.large-up-6>.column:nth-of-type(6n+1),.large-up-6>.columns:nth-of-type(6n+1){clear:both}.large-up-6>.column:last-child,.large-up-6>.columns:last-child{float:right}.large-up-7>.column,.large-up-7>.columns{float:right;width:14.28571%}.large-up-7>.column:nth-of-type(1n),.large-up-7>.columns:nth-of-type(1n){clear:none}.large-up-7>.column:nth-of-type(7n+1),.large-up-7>.columns:nth-of-type(7n+1){clear:both}.large-up-7>.column:last-child,.large-up-7>.columns:last-child{float:right}.large-up-8>.column,.large-up-8>.columns{float:right;width:12.5%}.large-up-8>.column:nth-of-type(1n),.large-up-8>.columns:nth-of-type(1n){clear:none}.large-up-8>.column:nth-of-type(8n+1),.large-up-8>.columns:nth-of-type(8n+1){clear:both}.large-up-8>.column:last-child,.large-up-8>.columns:last-child{float:right}.large-collapse>.column,.large-collapse>.columns{padding-right:0;padding-left:0}.expanded.row .large-collapse.row,.large-collapse .row{margin-right:0;margin-left:0}.large-uncollapse>.column,.large-uncollapse>.columns{padding-right:.9375rem;padding-left:.9375rem}.large-centered{margin-right:auto;margin-left:auto}.large-centered,.large-centered:last-child:not(:first-child){float:none;clear:both}.large-pull-0,.large-push-0,.large-uncentered{position:static;float:left;margin-right:0;margin-left:0}}.column-block{margin-bottom:1.25rem}.column-block>:last-child{margin-bottom:0}@media print,screen and (min-width:40em){.column-block{margin-bottom:1.875rem}.column-block>:last-child{margin-bottom:0}}blockquote,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,li,ol,p,pre,td,th,ul{margin:0;padding:0}p{margin-bottom:1rem;font-size:inherit;line-height:1.6;text-rendering:optimizeLegibility}em,i{font-style:italic}b,em,i,strong{line-height:inherit}b,strong{font-weight:700}small{font-size:80%;line-height:inherit}h1,h2,h3,h4,h5,h6{font-family:Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:400;color:inherit;text-rendering:optimizeLegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{line-height:0;color:#cacaca}h1{font-size:1.5rem}h1,h2{line-height:1.4;margin-top:0;margin-bottom:.5rem}h2{font-size:1.25rem}h3{font-size:1.1875rem}h3,h4{line-height:1.4;margin-top:0;margin-bottom:.5rem}h4{font-size:1.125rem}h5{font-size:1.0625rem}h5,h6{line-height:1.4;margin-top:0;margin-bottom:.5rem}h6{font-size:1rem}@media print,screen and (min-width:40em){h1{font-size:3rem}h2{font-size:2.5rem}h3{font-size:1.9375rem}h4{font-size:1.5625rem}h5{font-size:1.25rem}h6{font-size:1rem}}a{line-height:inherit;color:#1779ba;text-decoration:none;cursor:pointer}a:focus,a:hover{color:#1468a0}a img{border:0}hr{clear:both;max-width:75rem;height:0;margin:1.25rem auto;border-top:0;border-right:0;border-bottom:1px solid #cacaca;border-left:0}dl,ol,ul{margin-bottom:1rem;list-style-position:outside;line-height:1.6}li{font-size:inherit}ul{list-style-type:disc}ol,ul{margin-right:1.25rem}ol ol,ol ul,ul ol,ul ul{margin-right:1.25rem;margin-bottom:0}dl{margin-bottom:1rem}dl dt{margin-bottom:.3rem;font-weight:700}blockquote{margin:0 0 1rem;padding:.5625rem 1.25rem 0 1.1875rem;border-right:1px solid #cacaca}blockquote,blockquote p{line-height:1.6;color:#8a8a8a}cite{display:block;font-size:.8125rem;color:#8a8a8a}cite:before{content:"— "}abbr{border-bottom:1px dotted #0a0a0a;color:#0a0a0a;cursor:help}figure{margin:0}code{padding:.125rem .3125rem .0625rem;border:1px solid #cacaca;font-weight:400}code,kbd{background-color:#e6e6e6;font-family:Consolas,Liberation Mono,Courier,monospace;color:#0a0a0a}kbd{margin:0;padding:.125rem .25rem 0}.subheader{margin-top:.2rem;margin-bottom:.5rem;font-weight:400;line-height:1.4;color:#8a8a8a}.lead{font-size:125%;line-height:1.6}.stat{font-size:2.5rem;line-height:1}p+.stat{margin-top:-1rem}.no-bullet{margin-right:0;list-style:none}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}@media print,screen and (min-width:40em){.medium-text-left{text-align:left}.medium-text-right{text-align:right}.medium-text-center{text-align:center}.medium-text-justify{text-align:justify}}@media print,screen and (min-width:64em){.large-text-left{text-align:left}.large-text-right{text-align:right}.large-text-center{text-align:center}.large-text-justify{text-align:justify}}.show-for-print{display:none!important}@media print{*{background:transparent!important;box-shadow:none!important;color:#000!important;text-shadow:none!important}.show-for-print{display:block!important}.hide-for-print{display:none!important}table.show-for-print{display:table!important}thead.show-for-print{display:table-header-group!important}tbody.show-for-print{display:table-row-group!important}tr.show-for-print{display:table-row!important}td.show-for-print,th.show-for-print{display:table-cell!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}abbr[title]:after{content:" (" attr(title) ")"}blockquote,pre{border:1px solid #8a8a8a;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}}[type=color],[type=date],[type=datetime-local],[type=datetime],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],textarea{display:block;box-sizing:border-box;width:100%;height:2.4375rem;margin:0 0 1rem;padding:.5rem;border:1px solid #cacaca;border-radius:0;background-color:#fefefe;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);font-family:inherit;font-size:1rem;font-weight:400;color:#0a0a0a;-webkit-transition:border-color .25s ease-in-out,-webkit-box-shadow .5s;transition:box-shadow .5s,border-color .25s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}[type=color]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=datetime]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,textarea:focus{outline:none;border:1px solid #8a8a8a;background-color:#fefefe;box-shadow:0 0 5px #cacaca;-webkit-transition:border-color .25s ease-in-out,-webkit-box-shadow .5s;transition:box-shadow .5s,border-color .25s ease-in-out}textarea{max-width:100%}textarea[rows]{height:auto}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#cacaca}input::-moz-placeholder,textarea::-moz-placeholder{color:#cacaca}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#cacaca}input::placeholder,textarea::placeholder{color:#cacaca}input:disabled,input[readonly],textarea:disabled,textarea[readonly]{background-color:#e6e6e6;cursor:not-allowed}[type=button],[type=submit]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0}input[type=search]{box-sizing:border-box}[type=checkbox],[type=file],[type=radio]{margin:0 0 1rem}[type=checkbox]+label,[type=radio]+label{display:inline-block;vertical-align:baseline;margin-right:.5rem;margin-left:1rem;margin-bottom:0}[type=checkbox]+label[for],[type=radio]+label[for]{cursor:pointer}label>[type=checkbox],label>[type=radio]{margin-left:.5rem}[type=file]{width:100%}label{display:block;margin:0;font-size:.875rem;font-weight:400;line-height:1.8;color:#0a0a0a}label.middle{margin:0 0 1rem;padding:.5625rem 0}.help-text{margin-top:-.5rem;font-size:.8125rem;font-style:italic;color:#0a0a0a}.input-group{display:table;width:100%;margin-bottom:1rem}.input-group>:first-child,.input-group>:last-child>*{border-radius:0 0 0 0}.input-group-button,.input-group-button a,.input-group-button button,.input-group-button input,.input-group-button label,.input-group-field,.input-group-label{margin:0;white-space:nowrap;display:table-cell;vertical-align:middle}.input-group-label{padding:0 1rem;border:1px solid #cacaca;background:#e6e6e6;color:#0a0a0a;text-align:center;white-space:nowrap;width:1%;height:100%}.input-group-label:first-child{border-left:0}.input-group-label:last-child{border-right:0}.input-group-field{border-radius:0;height:2.5rem}.input-group-button{padding-top:0;padding-bottom:0;text-align:center;width:1%;height:100%}.input-group-button a,.input-group-button button,.input-group-button input,.input-group-button label{height:2.5rem;padding-top:0;padding-bottom:0;font-size:1rem}.input-group .input-group-button{display:table-cell}fieldset{margin:0;padding:0;border:0}legend{max-width:100%;margin-bottom:.5rem}.fieldset{margin:1.125rem 0;padding:1.25rem;border:1px solid #cacaca}.fieldset legend{margin:0;margin-right:-.1875rem;padding:0 .1875rem;background:#fefefe}select{height:2.4375rem;margin:0 0 1rem;padding:.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #cacaca;border-radius:0;background-color:#fefefe;font-family:inherit;font-size:1rem;line-height:normal;color:#0a0a0a;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");background-origin:content-box;background-position:left -1rem center;background-repeat:no-repeat;background-size:9px 6px;padding-left:1.5rem;-webkit-transition:border-color .25s ease-in-out,-webkit-box-shadow .5s;transition:box-shadow .5s,border-color .25s ease-in-out}@media screen and (min-width:0\0){select{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg==")}}select:focus{outline:none;border:1px solid #8a8a8a;background-color:#fefefe;box-shadow:0 0 5px #cacaca;-webkit-transition:border-color .25s ease-in-out,-webkit-box-shadow .5s;transition:box-shadow .5s,border-color .25s ease-in-out}select:disabled{background-color:#e6e6e6;cursor:not-allowed}select::-ms-expand{display:none}select[multiple]{height:auto;background-image:none}.is-invalid-input:not(:focus){border-color:#cc4b37;background-color:#f9ecea}.is-invalid-input:not(:focus)::-webkit-input-placeholder{color:#cc4b37}.is-invalid-input:not(:focus)::-moz-placeholder{color:#cc4b37}.is-invalid-input:not(:focus):-ms-input-placeholder{color:#cc4b37}.form-error,.is-invalid-input:not(:focus)::placeholder,.is-invalid-label{color:#cc4b37}.form-error{display:none;margin-top:-.5rem;margin-bottom:1rem;font-size:.75rem;font-weight:700}.form-error.is-visible{display:block}.button{display:inline-block;vertical-align:middle;margin:0 0 1rem;padding:.85em 1em;-webkit-appearance:none;border:1px solid transparent;border-radius:0;-webkit-transition:background-color .25s ease-out,color .25s ease-out;transition:background-color .25s ease-out,color .25s ease-out;font-size:.9rem;line-height:1;text-align:center;cursor:pointer;background-color:#1779ba;color:#fefefe}[data-whatinput=mouse] .button{outline:0}.button:focus,.button:hover{background-color:#14679e;color:#fefefe}.button.tiny{font-size:.6rem}.button.small{font-size:.75rem}.button.large{font-size:1.25rem}.button.expanded{display:block;width:100%;margin-right:0;margin-left:0}.button.primary{background-color:#1779ba;color:#fefefe}.button.primary:focus,.button.primary:hover{background-color:#126195;color:#fefefe}.button.secondary{background-color:#767676;color:#fefefe}.button.secondary:focus,.button.secondary:hover{background-color:#5e5e5e;color:#fefefe}.button.success{background-color:#3adb76;color:#0a0a0a}.button.success:focus,.button.success:hover{background-color:#22bb5b;color:#0a0a0a}.button.warning{background-color:#ffae00;color:#0a0a0a}.button.warning:focus,.button.warning:hover{background-color:#cc8b00;color:#0a0a0a}.button.alert{background-color:#cc4b37;color:#fefefe}.button.alert:focus,.button.alert:hover{background-color:#a53b2a;color:#fefefe}.button.hollow{border:1px solid #1779ba;color:#1779ba}.button.hollow,.button.hollow:focus,.button.hollow:hover{background-color:transparent}.button.hollow:focus,.button.hollow:hover{border-color:#0c3d5d;color:#0c3d5d}.button.hollow.primary{border:1px solid #1779ba;color:#1779ba}.button.hollow.primary:focus,.button.hollow.primary:hover{border-color:#0c3d5d;color:#0c3d5d}.button.hollow.secondary{border:1px solid #767676;color:#767676}.button.hollow.secondary:focus,.button.hollow.secondary:hover{border-color:#3b3b3b;color:#3b3b3b}.button.hollow.success{border:1px solid #3adb76;color:#3adb76}.button.hollow.success:focus,.button.hollow.success:hover{border-color:#157539;color:#157539}.button.hollow.warning{border:1px solid #ffae00;color:#ffae00}.button.hollow.warning:focus,.button.hollow.warning:hover{border-color:#805700;color:#805700}.button.hollow.alert{border:1px solid #cc4b37;color:#cc4b37}.button.hollow.alert:focus,.button.hollow.alert:hover{border-color:#67251a;color:#67251a}.button.disabled,.button[disabled]{opacity:.25;cursor:not-allowed}.button.disabled,.button.disabled:focus,.button.disabled:hover,.button[disabled],.button[disabled]:focus,.button[disabled]:hover{background-color:#1779ba;color:#fefefe}.button.disabled.primary,.button[disabled].primary{opacity:.25;cursor:not-allowed}.button.disabled.primary,.button.disabled.primary:focus,.button.disabled.primary:hover,.button[disabled].primary,.button[disabled].primary:focus,.button[disabled].primary:hover{background-color:#1779ba;color:#fefefe}.button.disabled.secondary,.button[disabled].secondary{opacity:.25;cursor:not-allowed}.button.disabled.secondary,.button.disabled.secondary:focus,.button.disabled.secondary:hover,.button[disabled].secondary,.button[disabled].secondary:focus,.button[disabled].secondary:hover{background-color:#767676;color:#fefefe}.button.disabled.success,.button[disabled].success{opacity:.25;cursor:not-allowed}.button.disabled.success,.button.disabled.success:focus,.button.disabled.success:hover,.button[disabled].success,.button[disabled].success:focus,.button[disabled].success:hover{background-color:#3adb76;color:#0a0a0a}.button.disabled.warning,.button[disabled].warning{opacity:.25;cursor:not-allowed}.button.disabled.warning,.button.disabled.warning:focus,.button.disabled.warning:hover,.button[disabled].warning,.button[disabled].warning:focus,.button[disabled].warning:hover{background-color:#ffae00;color:#0a0a0a}.button.disabled.alert,.button[disabled].alert{opacity:.25;cursor:not-allowed}.button.disabled.alert,.button.disabled.alert:focus,.button.disabled.alert:hover,.button[disabled].alert,.button[disabled].alert:focus,.button[disabled].alert:hover{background-color:#cc4b37;color:#fefefe}.button.dropdown:after{display:block;width:0;height:0;border:.4em inset;content:"";border-bottom-width:0;border-top-style:solid;border-color:#fefefe transparent transparent;position:relative;top:.4em;display:inline-block;float:left;margin-right:1em}.button.arrow-only:after{top:-.1em;float:none;margin-right:0}.accordion{margin-right:0;background:#fefefe;list-style-type:none}.accordion-item:first-child>:first-child,.accordion-item:last-child>:last-child{border-radius:0 0 0 0}.accordion-title{position:relative;display:block;padding:1.25rem 1rem;border:1px solid #e6e6e6;border-bottom:0;font-size:.75rem;line-height:1;color:#1779ba}:last-child:not(.is-active)>.accordion-title{border-bottom:1px solid #e6e6e6;border-radius:0 0 0 0}.accordion-title:focus,.accordion-title:hover{background-color:#e6e6e6}.accordion-title:before{position:absolute;top:50%;left:1rem;margin-top:-.5rem;content:"+"}.is-active>.accordion-title:before{content:"\2013"}.accordion-content{display:none;padding:1rem;border:1px solid #e6e6e6;border-bottom:0;background-color:#fefefe;color:#0a0a0a}:last-child>.accordion-content:last-child{border-bottom:1px solid #e6e6e6}.is-accordion-submenu-parent>a{position:relative}.is-accordion-submenu-parent>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-bottom-width:0;border-top-style:solid;border-color:#1779ba transparent transparent;position:absolute;top:50%;margin-top:-3px;left:1rem}.is-accordion-submenu-parent[aria-expanded=true]>a:after{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.badge{display:inline-block;min-width:2.1em;padding:.3em;border-radius:50%;font-size:.6rem;text-align:center}.badge,.badge.primary{background:#1779ba;color:#fefefe}.badge.secondary{background:#767676;color:#fefefe}.badge.success{background:#3adb76;color:#0a0a0a}.badge.warning{background:#ffae00;color:#0a0a0a}.badge.alert{background:#cc4b37;color:#fefefe}.breadcrumbs{margin:0 0 1rem;list-style:none}.breadcrumbs:after,.breadcrumbs:before{display:table;content:" "}.breadcrumbs:after{clear:both}.breadcrumbs li{float:right;font-size:.6875rem;color:#0a0a0a;cursor:default;text-transform:uppercase}.breadcrumbs li:not(:last-child):after{position:relative;top:1px;margin:0 .75rem;opacity:1;content:"\\";color:#cacaca}.breadcrumbs a{color:#1779ba}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs .disabled{color:#cacaca;cursor:not-allowed}.button-group{margin-bottom:1rem;font-size:0}.button-group:after,.button-group:before{display:table;content:" "}.button-group:after{clear:both}.button-group .button{margin:0;margin-left:1px;margin-bottom:1px;font-size:.9rem}.button-group .button:last-child{margin-left:0}.button-group.tiny .button{font-size:.6rem}.button-group.small .button{font-size:.75rem}.button-group.large .button{font-size:1.25rem}.button-group.expanded{margin-left:-1px}.button-group.expanded:after,.button-group.expanded:before{display:none}.button-group.expanded .button:first-child:last-child{width:100%}.button-group.expanded .button:first-child:nth-last-child(2),.button-group.expanded .button:first-child:nth-last-child(2):first-child:nth-last-child(2)~.button{display:inline-block;width:calc(50% - 1px);margin-left:1px}.button-group.expanded .button:first-child:nth-last-child(2):first-child:nth-last-child(2)~.button:last-child,.button-group.expanded .button:first-child:nth-last-child(2):last-child{margin-left:-6px}.button-group.expanded .button:first-child:nth-last-child(3),.button-group.expanded .button:first-child:nth-last-child(3):first-child:nth-last-child(3)~.button{display:inline-block;width:calc(33.33333% - 1px);margin-left:1px}.button-group.expanded .button:first-child:nth-last-child(3):first-child:nth-last-child(3)~.button:last-child,.button-group.expanded .button:first-child:nth-last-child(3):last-child{margin-left:-6px}.button-group.expanded .button:first-child:nth-last-child(4),.button-group.expanded .button:first-child:nth-last-child(4):first-child:nth-last-child(4)~.button{display:inline-block;width:calc(25% - 1px);margin-left:1px}.button-group.expanded .button:first-child:nth-last-child(4):first-child:nth-last-child(4)~.button:last-child,.button-group.expanded .button:first-child:nth-last-child(4):last-child{margin-left:-6px}.button-group.expanded .button:first-child:nth-last-child(5),.button-group.expanded .button:first-child:nth-last-child(5):first-child:nth-last-child(5)~.button{display:inline-block;width:calc(20% - 1px);margin-left:1px}.button-group.expanded .button:first-child:nth-last-child(5):first-child:nth-last-child(5)~.button:last-child,.button-group.expanded .button:first-child:nth-last-child(5):last-child{margin-left:-6px}.button-group.expanded .button:first-child:nth-last-child(6),.button-group.expanded .button:first-child:nth-last-child(6):first-child:nth-last-child(6)~.button{display:inline-block;width:calc(16.66667% - 1px);margin-left:1px}.button-group.expanded .button:first-child:nth-last-child(6):first-child:nth-last-child(6)~.button:last-child,.button-group.expanded .button:first-child:nth-last-child(6):last-child{margin-left:-6px}.button-group.primary .button{background-color:#1779ba;color:#fefefe}.button-group.primary .button:focus,.button-group.primary .button:hover{background-color:#126195;color:#fefefe}.button-group.secondary .button{background-color:#767676;color:#fefefe}.button-group.secondary .button:focus,.button-group.secondary .button:hover{background-color:#5e5e5e;color:#fefefe}.button-group.success .button{background-color:#3adb76;color:#0a0a0a}.button-group.success .button:focus,.button-group.success .button:hover{background-color:#22bb5b;color:#0a0a0a}.button-group.warning .button{background-color:#ffae00;color:#0a0a0a}.button-group.warning .button:focus,.button-group.warning .button:hover{background-color:#cc8b00;color:#0a0a0a}.button-group.alert .button{background-color:#cc4b37;color:#fefefe}.button-group.alert .button:focus,.button-group.alert .button:hover{background-color:#a53b2a;color:#fefefe}.button-group.stacked-for-medium .button,.button-group.stacked-for-small .button,.button-group.stacked .button{width:100%}.button-group.stacked-for-medium .button:last-child,.button-group.stacked-for-small .button:last-child,.button-group.stacked .button:last-child{margin-bottom:0}@media print,screen and (min-width:40em){.button-group.stacked-for-small .button{width:auto;margin-bottom:0}}@media print,screen and (min-width:64em){.button-group.stacked-for-medium .button{width:auto;margin-bottom:0}}@media screen and (max-width:39.9375em){.button-group.stacked-for-small.expanded{display:block}.button-group.stacked-for-small.expanded .button{display:block;margin-left:0}}.callout{position:relative;margin:0 0 1rem;padding:1rem;border:1px solid hsla(0,0%,4%,.25);border-radius:0;background-color:#fff;color:#0a0a0a}.callout>:first-child{margin-top:0}.callout>:last-child{margin-bottom:0}.callout.primary{background-color:#d7ecfa;color:#0a0a0a}.callout.secondary{background-color:#eaeaea;color:#0a0a0a}.callout.success{background-color:#e1faea;color:#0a0a0a}.callout.warning{background-color:#fff3d9;color:#0a0a0a}.callout.alert{background-color:#f7e4e1;color:#0a0a0a}.callout.small{padding:.5rem}.callout.large{padding:3rem}.card{margin-bottom:1rem;border:1px solid #e6e6e6;border-radius:0;background:#fefefe;box-shadow:none;overflow:hidden;color:#0a0a0a}.card>:last-child{margin-bottom:0}.card-divider{padding:1rem;background:#e6e6e6}.card-divider>:last-child{margin-bottom:0}.card-section{padding:1rem}.card-section>:last-child{margin-bottom:0}.close-button{position:absolute;color:#8a8a8a;cursor:pointer}[data-whatinput=mouse] .close-button{outline:0}.close-button:focus,.close-button:hover{color:#0a0a0a}.close-button.small{right:.66rem;top:.33em;font-size:1.5em;line-height:1}.close-button,.close-button.medium{right:1rem;top:.5rem;font-size:2em;line-height:1}.menu{margin:0;list-style-type:none}.menu>li{display:table-cell;vertical-align:middle}[data-whatinput=mouse] .menu>li{outline:0}.menu>li>a{display:block;padding:.7rem 1rem;line-height:1}.menu a,.menu button,.menu input,.menu select{margin-bottom:0}.menu>li>a i,.menu>li>a i+span,.menu>li>a img,.menu>li>a img+span,.menu>li>a svg,.menu>li>a svg+span{vertical-align:middle}.menu>li>a i,.menu>li>a img,.menu>li>a svg{margin-left:.25rem;display:inline-block}.menu.horizontal>li,.menu>li{display:table-cell}.menu.expanded{display:table;width:100%;table-layout:fixed}.menu.expanded>li:first-child:last-child{width:100%}.menu.vertical>li{display:block}@media print,screen and (min-width:40em){.menu.medium-horizontal>li{display:table-cell}.menu.medium-expanded{display:table;width:100%;table-layout:fixed}.menu.medium-expanded>li:first-child:last-child{width:100%}.menu.medium-vertical>li{display:block}}@media print,screen and (min-width:64em){.menu.large-horizontal>li{display:table-cell}.menu.large-expanded{display:table;width:100%;table-layout:fixed}.menu.large-expanded>li:first-child:last-child{width:100%}.menu.large-vertical>li{display:block}}.menu.simple li{display:inline-block;vertical-align:top;line-height:1}.menu.simple a{padding:0}.menu.simple li{margin-right:0;margin-left:1rem}.menu.simple.align-left li{margin-left:0;margin-right:1rem}.menu.align-left:after,.menu.align-left:before{display:table;content:" "}.menu.align-left:after{clear:both}.menu.align-left>li{float:left}.menu.icon-top>li>a{text-align:center}.menu.icon-top>li>a i,.menu.icon-top>li>a img,.menu.icon-top>li>a svg{display:block;margin:0 auto .25rem}.menu.icon-top.vertical a>span{margin:auto}.menu.nested{margin-right:1rem}.menu .active>a{background:#1779ba;color:#fefefe}.menu.menu-bordered li{border:1px solid #e6e6e6}.menu.menu-bordered li:not(:first-child){border-top:0}.menu.menu-hover li:hover{background-color:#e6e6e6}.menu-text{padding-top:0;padding-bottom:0;padding:.7rem 1rem;font-weight:700;line-height:1;color:inherit}.menu-centered{text-align:center}.menu-centered>.menu{display:inline-block;vertical-align:top}.no-js [data-responsive-menu] ul{display:none}.menu-icon{position:relative;display:inline-block;vertical-align:middle;width:20px;height:16px;cursor:pointer}.menu-icon:after{position:absolute;top:0;left:0;display:block;width:100%;height:2px;background:#fefefe;box-shadow:0 7px 0 #fefefe,0 14px 0 #fefefe;content:""}.menu-icon:hover:after{background:#cacaca;box-shadow:0 7px 0 #cacaca,0 14px 0 #cacaca}.menu-icon.dark{position:relative;display:inline-block;vertical-align:middle;width:20px;height:16px;cursor:pointer}.menu-icon.dark:after{position:absolute;top:0;left:0;display:block;width:100%;height:2px;background:#0a0a0a;box-shadow:0 7px 0 #0a0a0a,0 14px 0 #0a0a0a;content:""}.menu-icon.dark:hover:after{background:#8a8a8a;box-shadow:0 7px 0 #8a8a8a,0 14px 0 #8a8a8a}.is-drilldown{position:relative;overflow:hidden}.is-drilldown li{display:block}.is-drilldown.animate-height{-webkit-transition:height .5s;transition:height .5s}.is-drilldown-submenu{position:absolute;top:0;right:100%;z-index:-1;width:100%;background:#fefefe;-webkit-transition:-webkit-transform .15s linear;transition:-webkit-transform .15s linear;transition:transform .15s linear;transition:transform .15s linear,-webkit-transform .15s linear}.is-drilldown-submenu.is-active{z-index:1;display:block;-webkit-transform:translateX(100%);transform:translateX(100%)}.is-drilldown-submenu.is-closing{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.drilldown-submenu-cover-previous{min-height:100%}.is-drilldown-submenu-parent>a{position:relative}.is-drilldown-submenu-parent>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-left-width:0;border-right-style:solid;border-color:transparent #1779ba transparent transparent;position:absolute;top:50%;margin-top:-6px;left:1rem}.js-drilldown-back>a:before{display:block;width:0;height:0;border:6px inset;content:"";border-left-style:solid;border-color:transparent transparent transparent #1779ba;display:inline-block;vertical-align:middle;margin-left:.75rem;border-right-width:0}.dropdown-pane{position:absolute;z-index:10;display:block;width:300px;padding:1rem;visibility:hidden;border:1px solid #cacaca;border-radius:0;background-color:#fefefe;font-size:1rem}.dropdown-pane.is-open{visibility:visible}.dropdown-pane.tiny{width:100px}.dropdown-pane.small{width:200px}.dropdown-pane.large{width:400px}.dropdown.menu>li.opens-left>.is-dropdown-submenu{top:100%;right:0;left:auto}.dropdown.menu>li.opens-right>.is-dropdown-submenu{top:100%;right:auto;left:0}.dropdown.menu>li.is-dropdown-submenu-parent>a{position:relative;padding-left:1.5rem}.dropdown.menu>li.is-dropdown-submenu-parent>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-bottom-width:0;border-top-style:solid;border-color:#1779ba transparent transparent;left:5px;margin-top:-3px}[data-whatinput=mouse] .dropdown.menu a{outline:0}.no-js .dropdown.menu ul{display:none}.dropdown.menu.vertical>li .is-dropdown-submenu{top:0}.dropdown.menu.vertical>li.opens-left>.is-dropdown-submenu{right:100%;left:auto}.dropdown.menu.vertical>li.opens-right>.is-dropdown-submenu{right:auto;left:100%}.dropdown.menu.vertical>li>a:after{left:14px}.dropdown.menu.vertical>li.opens-left>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-left-width:0;border-right-style:solid;border-color:transparent #1779ba transparent transparent}.dropdown.menu.vertical>li.opens-right>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-right-width:0;border-left-style:solid;border-color:transparent transparent transparent #1779ba}@media print,screen and (min-width:40em){.dropdown.menu.medium-horizontal>li.opens-left>.is-dropdown-submenu{top:100%;right:0;left:auto}.dropdown.menu.medium-horizontal>li.opens-right>.is-dropdown-submenu{top:100%;right:auto;left:0}.dropdown.menu.medium-horizontal>li.is-dropdown-submenu-parent>a{position:relative;padding-left:1.5rem}.dropdown.menu.medium-horizontal>li.is-dropdown-submenu-parent>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-bottom-width:0;border-top-style:solid;border-color:#1779ba transparent transparent;left:5px;margin-top:-3px}.dropdown.menu.medium-vertical>li .is-dropdown-submenu{top:0}.dropdown.menu.medium-vertical>li.opens-left>.is-dropdown-submenu{right:100%;left:auto}.dropdown.menu.medium-vertical>li.opens-right>.is-dropdown-submenu{right:auto;left:100%}.dropdown.menu.medium-vertical>li>a:after{left:14px}.dropdown.menu.medium-vertical>li.opens-left>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-left-width:0;border-right-style:solid;border-color:transparent #1779ba transparent transparent}.dropdown.menu.medium-vertical>li.opens-right>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-right-width:0;border-left-style:solid;border-color:transparent transparent transparent #1779ba}}@media print,screen and (min-width:64em){.dropdown.menu.large-horizontal>li.opens-left>.is-dropdown-submenu{top:100%;right:0;left:auto}.dropdown.menu.large-horizontal>li.opens-right>.is-dropdown-submenu{top:100%;right:auto;left:0}.dropdown.menu.large-horizontal>li.is-dropdown-submenu-parent>a{position:relative;padding-left:1.5rem}.dropdown.menu.large-horizontal>li.is-dropdown-submenu-parent>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-bottom-width:0;border-top-style:solid;border-color:#1779ba transparent transparent;left:5px;margin-top:-3px}.dropdown.menu.large-vertical>li .is-dropdown-submenu{top:0}.dropdown.menu.large-vertical>li.opens-left>.is-dropdown-submenu{right:100%;left:auto}.dropdown.menu.large-vertical>li.opens-right>.is-dropdown-submenu{right:auto;left:100%}.dropdown.menu.large-vertical>li>a:after{left:14px}.dropdown.menu.large-vertical>li.opens-left>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-left-width:0;border-right-style:solid;border-color:transparent #1779ba transparent transparent}.dropdown.menu.large-vertical>li.opens-right>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-right-width:0;border-left-style:solid;border-color:transparent transparent transparent #1779ba}}.dropdown.menu.align-right .is-dropdown-submenu.first-sub{top:100%;right:0;left:auto}.is-dropdown-menu.vertical{width:100px}.is-dropdown-menu.vertical.align-right{float:right}.is-dropdown-submenu-parent{position:relative}.is-dropdown-submenu-parent a:after{position:absolute;top:50%;left:5px;margin-top:-6px}.is-dropdown-submenu-parent.opens-inner>.is-dropdown-submenu{top:100%;right:auto}.is-dropdown-submenu-parent.opens-left>.is-dropdown-submenu{right:100%;left:auto}.is-dropdown-submenu-parent.opens-right>.is-dropdown-submenu{right:auto;left:100%}.is-dropdown-submenu{position:absolute;top:0;right:100%;z-index:1;display:none;min-width:200px;border:1px solid #cacaca;background:#fefefe}.is-dropdown-submenu .is-dropdown-submenu-parent>a:after{left:14px}.is-dropdown-submenu .is-dropdown-submenu-parent.opens-left>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-left-width:0;border-right-style:solid;border-color:transparent #1779ba transparent transparent}.is-dropdown-submenu .is-dropdown-submenu-parent.opens-right>a:after{display:block;width:0;height:0;border:6px inset;content:"";border-right-width:0;border-left-style:solid;border-color:transparent transparent transparent #1779ba}.is-dropdown-submenu .is-dropdown-submenu{margin-top:-1px}.is-dropdown-submenu>li{width:100%}.is-dropdown-submenu.js-dropdown-active{display:block}.flex-video,.responsive-embed{position:relative;height:0;margin-bottom:1rem;padding-bottom:75%;overflow:hidden}.flex-video embed,.flex-video iframe,.flex-video object,.flex-video video,.responsive-embed embed,.responsive-embed iframe,.responsive-embed object,.responsive-embed video{position:absolute;top:0;right:0;width:100%;height:100%}.flex-video.widescreen,.responsive-embed.widescreen{padding-bottom:56.25%}.label{display:inline-block;padding:.33333rem .5rem;border-radius:0;font-size:.8rem;line-height:1;white-space:nowrap;cursor:default}.label,.label.primary{background:#1779ba;color:#fefefe}.label.secondary{background:#767676;color:#fefefe}.label.success{background:#3adb76;color:#0a0a0a}.label.warning{background:#ffae00;color:#0a0a0a}.label.alert{background:#cc4b37;color:#fefefe}.media-object{display:block;margin-bottom:1rem}.media-object img{max-width:none}@media screen and (max-width:39.9375em){.media-object.stack-for-small .media-object-section{padding:0;padding-bottom:1rem;display:block}.media-object.stack-for-small .media-object-section img{width:100%}}.media-object-section{display:table-cell;vertical-align:top}.media-object-section:first-child{padding-left:1rem}.media-object-section:last-child:not(:nth-child(2)){padding-right:1rem}.media-object-section>:last-child{margin-bottom:0}.media-object-section.middle{vertical-align:middle}.media-object-section.bottom{vertical-align:bottom}.is-off-canvas-open{overflow:hidden}.js-off-canvas-overlay{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transition:opacity .5s ease,visibility .5s ease;transition:opacity .5s ease,visibility .5s ease;background:hsla(0,0%,100%,.25);opacity:0;visibility:hidden;overflow:hidden}.js-off-canvas-overlay.is-visible{opacity:1;visibility:visible}.js-off-canvas-overlay.is-closable{cursor:pointer}.js-off-canvas-overlay.is-overlay-absolute{position:absolute}.js-off-canvas-overlay.is-overlay-fixed{position:fixed}.off-canvas-wrapper{position:relative;overflow:hidden}.off-canvas{position:fixed;z-index:1;-webkit-transition:-webkit-transform .5s ease;transition:-webkit-transform .5s ease;transition:transform .5s ease;transition:transform .5s ease,-webkit-transform .5s ease;-webkit-backface-visibility:hidden;backface-visibility:hidden;background:#e6e6e6}[data-whatinput=mouse] .off-canvas{outline:0}.off-canvas.is-transition-overlap{z-index:10}.off-canvas.is-transition-overlap.is-open{box-shadow:0 0 10px hsla(0,0%,4%,.7)}.off-canvas.is-open{-webkit-transform:translate(0);transform:translate(0)}.off-canvas-absolute{position:absolute;z-index:1;-webkit-transition:-webkit-transform .5s ease;transition:-webkit-transform .5s ease;transition:transform .5s ease;transition:transform .5s ease,-webkit-transform .5s ease;-webkit-backface-visibility:hidden;backface-visibility:hidden;background:#e6e6e6}[data-whatinput=mouse] .off-canvas-absolute{outline:0}.off-canvas-absolute.is-transition-overlap{z-index:10}.off-canvas-absolute.is-transition-overlap.is-open{box-shadow:0 0 10px hsla(0,0%,4%,.7)}.off-canvas-absolute.is-open{-webkit-transform:translate(0);transform:translate(0)}.position-left{top:0;left:0;width:250px;height:100%;-webkit-transform:translateX(-250px);transform:translateX(-250px);overflow-y:auto}.position-left.is-open~.off-canvas-content{-webkit-transform:translateX(250px);transform:translateX(250px)}.position-left.is-transition-push:after{position:absolute;top:0;right:0;height:100%;width:1px;box-shadow:0 0 10px hsla(0,0%,4%,.7);content:" "}.position-left.is-transition-overlap.is-open~.off-canvas-content{-webkit-transform:none;transform:none}.position-right{top:0;right:0;width:250px;height:100%;-webkit-transform:translateX(250px);transform:translateX(250px);overflow-y:auto}.position-right.is-open~.off-canvas-content{-webkit-transform:translateX(-250px);transform:translateX(-250px)}.position-right.is-transition-push:after{position:absolute;top:0;left:0;height:100%;width:1px;box-shadow:0 0 10px hsla(0,0%,4%,.7);content:" "}.position-right.is-transition-overlap.is-open~.off-canvas-content{-webkit-transform:none;transform:none}.position-top{top:0;left:0;width:100%;height:250px;-webkit-transform:translateY(-250px);transform:translateY(-250px);overflow-x:auto}.position-top.is-open~.off-canvas-content{-webkit-transform:translateY(250px);transform:translateY(250px)}.position-top.is-transition-push:after{position:absolute;bottom:0;left:0;height:1px;width:100%;box-shadow:0 0 10px hsla(0,0%,4%,.7);content:" "}.position-top.is-transition-overlap.is-open~.off-canvas-content{-webkit-transform:none;transform:none}.position-bottom{bottom:0;left:0;width:100%;height:250px;-webkit-transform:translateY(250px);transform:translateY(250px);overflow-x:auto}.position-bottom.is-open~.off-canvas-content{-webkit-transform:translateY(-250px);transform:translateY(-250px)}.position-bottom.is-transition-push:after{position:absolute;top:0;left:0;height:1px;width:100%;box-shadow:0 0 10px hsla(0,0%,4%,.7);content:" "}.position-bottom.is-transition-overlap.is-open~.off-canvas-content{-webkit-transform:none;transform:none}.off-canvas-content{-webkit-transition:-webkit-transform .5s ease;transition:-webkit-transform .5s ease;transition:transform .5s ease;transition:transform .5s ease,-webkit-transform .5s ease;-webkit-backface-visibility:hidden;backface-visibility:hidden}@media print,screen and (min-width:40em){.position-left.reveal-for-medium{-webkit-transform:none;transform:none;z-index:1}.position-left.reveal-for-medium~.off-canvas-content{margin-left:250px}.position-right.reveal-for-medium{-webkit-transform:none;transform:none;z-index:1}.position-right.reveal-for-medium~.off-canvas-content{margin-right:250px}.position-top.reveal-for-medium{-webkit-transform:none;transform:none;z-index:1}.position-top.reveal-for-medium~.off-canvas-content{margin-top:250px}.position-bottom.reveal-for-medium{-webkit-transform:none;transform:none;z-index:1}.position-bottom.reveal-for-medium~.off-canvas-content{margin-bottom:250px}}@media print,screen and (min-width:64em){.position-left.reveal-for-large{-webkit-transform:none;transform:none;z-index:1}.position-left.reveal-for-large~.off-canvas-content{margin-left:250px}.position-right.reveal-for-large{-webkit-transform:none;transform:none;z-index:1}.position-right.reveal-for-large~.off-canvas-content{margin-right:250px}.position-top.reveal-for-large{-webkit-transform:none;transform:none;z-index:1}.position-top.reveal-for-large~.off-canvas-content{margin-top:250px}.position-bottom.reveal-for-large{-webkit-transform:none;transform:none;z-index:1}.position-bottom.reveal-for-large~.off-canvas-content{margin-bottom:250px}}.orbit,.orbit-container{position:relative}.orbit-container{height:0;margin:0;list-style:none;overflow:hidden}.orbit-slide{width:100%}.orbit-slide.no-motionui.is-active{top:0;left:0}.orbit-figure{margin:0}.orbit-image{width:100%;max-width:100%;margin:0}.orbit-caption{bottom:0;width:100%;margin-bottom:0;background-color:hsla(0,0%,4%,.5)}.orbit-caption,.orbit-next,.orbit-previous{position:absolute;padding:1rem;color:#fefefe}.orbit-next,.orbit-previous{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:10}[data-whatinput=mouse] .orbit-next,[data-whatinput=mouse] .orbit-previous{outline:0}.orbit-next:active,.orbit-next:focus,.orbit-next:hover,.orbit-previous:active,.orbit-previous:focus,.orbit-previous:hover{background-color:hsla(0,0%,4%,.5)}.orbit-previous{right:0}.orbit-next{right:auto;left:0}.orbit-bullets{position:relative;margin-top:.8rem;margin-bottom:.8rem;text-align:center}[data-whatinput=mouse] .orbit-bullets{outline:0}.orbit-bullets button{width:1.2rem;height:1.2rem;margin:.1rem;border-radius:50%;background-color:#cacaca}.orbit-bullets button.is-active,.orbit-bullets button:hover{background-color:#8a8a8a}.pagination{margin-right:0;margin-bottom:1rem}.pagination:after,.pagination:before{display:table;content:" "}.pagination:after{clear:both}.pagination li{margin-left:.0625rem;border-radius:0;font-size:.875rem;display:none}.pagination li:first-child,.pagination li:last-child{display:inline-block}@media print,screen and (min-width:40em){.pagination li{display:inline-block}}.pagination a,.pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#0a0a0a}.pagination a:hover,.pagination button:hover{background:#e6e6e6}.pagination .current{padding:.1875rem .625rem;background:#1779ba;color:#fefefe;cursor:default}.pagination .disabled{padding:.1875rem .625rem;color:#cacaca;cursor:not-allowed}.pagination .disabled:hover{background:transparent}.pagination .ellipsis:after{padding:.1875rem .625rem;content:"\2026";color:#0a0a0a}.pagination-previous.disabled:before,.pagination-previous a:before{display:inline-block;margin-left:.5rem;content:"\00ab"}.pagination-next.disabled:after,.pagination-next a:after{display:inline-block;margin-right:.5rem;content:"\00bb"}.progress{height:1rem;margin-bottom:1rem;border-radius:0;background-color:#cacaca}.progress.primary .progress-meter{background-color:#1779ba}.progress.secondary .progress-meter{background-color:#767676}.progress.success .progress-meter{background-color:#3adb76}.progress.warning .progress-meter{background-color:#ffae00}.progress.alert .progress-meter{background-color:#cc4b37}.progress-meter{position:relative;display:block;width:0;height:100%;background-color:#1779ba}.progress-meter-text{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;margin:0;font-size:.75rem;font-weight:700;color:#fefefe;white-space:nowrap}.slider{position:relative;height:.5rem;margin-top:1.25rem;margin-bottom:2.25rem;background-color:#e6e6e6;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none}.slider-fill{position:absolute;top:0;left:0;display:inline-block;max-width:100%;height:.5rem;background-color:#cacaca;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.slider-fill.is-dragging{-webkit-transition:all 0s linear;transition:all 0s linear}.slider-handle{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);position:absolute;left:0;z-index:1;display:inline-block;width:1.4rem;height:1.4rem;border-radius:0;background-color:#1779ba;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-ms-touch-action:manipulation;touch-action:manipulation}[data-whatinput=mouse] .slider-handle{outline:0}.slider-handle:hover{background-color:#14679e}.slider-handle.is-dragging{-webkit-transition:all 0s linear;transition:all 0s linear}.slider.disabled,.slider[disabled]{opacity:.25;cursor:not-allowed}.slider.vertical{display:inline-block;width:.5rem;height:12.5rem;margin:0 1.25rem;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.slider.vertical .slider-fill{top:0;width:.5rem;max-height:100%}.slider.vertical .slider-handle{position:absolute;top:0;left:50%;width:1.4rem;height:1.4rem;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.slider:not(.vertical){-webkit-transform:scaleX(-1);transform:scaleX(-1)}.sticky,.sticky-container{position:relative}.sticky{z-index:0;-webkit-transform:translateZ(0);transform:translateZ(0)}.sticky.is-stuck{position:fixed;z-index:5}.sticky.is-stuck.is-at-top{top:0}.sticky.is-stuck.is-at-bottom{bottom:0}.sticky.is-anchored{position:relative;right:auto;left:auto}.sticky.is-anchored.is-at-bottom{bottom:0}body.is-reveal-open{overflow:hidden}html.is-reveal-open,html.is-reveal-open body{min-height:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reveal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1005;display:none;background-color:hsla(0,0%,4%,.45);overflow-y:scroll}.reveal{z-index:1006;-webkit-backface-visibility:hidden;backface-visibility:hidden;display:none;padding:1rem;border:1px solid #cacaca;border-radius:0;background-color:#fefefe;position:relative;top:100px;margin-right:auto;margin-left:auto;overflow-y:auto}[data-whatinput=mouse] .reveal{outline:0}@media print,screen and (min-width:40em){.reveal{min-height:0}}.reveal .column,.reveal .columns{min-width:0}.reveal>:last-child{margin-bottom:0}@media print,screen and (min-width:40em){.reveal{width:600px;max-width:75rem}}@media print,screen and (min-width:40em){.reveal .reveal{right:auto;left:auto;margin:0 auto}}.reveal.collapse{padding:0}@media print,screen and (min-width:40em){.reveal.tiny{width:30%;max-width:75rem}}@media print,screen and (min-width:40em){.reveal.small{width:50%;max-width:75rem}}@media print,screen and (min-width:40em){.reveal.large{width:90%;max-width:75rem}}.reveal.full{top:0;left:0;width:100%;max-width:none;height:100%;height:100vh;min-height:100vh;margin-left:0;border:0;border-radius:0}@media screen and (max-width:39.9375em){.reveal{top:0;left:0;width:100%;max-width:none;height:100%;height:100vh;min-height:100vh;margin-left:0;border:0;border-radius:0}}.reveal.without-overlay{position:fixed}.switch{height:2rem;position:relative;margin-bottom:1rem;outline:0;font-size:.875rem;font-weight:700;color:#fefefe;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.switch-input{position:absolute;margin-bottom:0;opacity:0}.switch-paddle{position:relative;display:block;width:4rem;height:2rem;border-radius:0;background:#cacaca;-webkit-transition:all .25s ease-out;transition:all .25s ease-out;font-weight:inherit;color:inherit;cursor:pointer}input+.switch-paddle{margin:0}.switch-paddle:after{position:absolute;top:.25rem;right:.25rem;display:block;width:1.5rem;height:1.5rem;-webkit-transform:translateZ(0);transform:translateZ(0);border-radius:0;background:#fefefe;-webkit-transition:all .25s ease-out;transition:all .25s ease-out;content:""}input:checked~.switch-paddle{background:#1779ba}input:checked~.switch-paddle:after{right:2.25rem}[data-whatinput=mouse] input:focus~.switch-paddle{outline:0}.switch-active,.switch-inactive{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.switch-active{right:8%;display:none}input:checked+label>.switch-active{display:block}.switch-inactive{left:15%}input:checked+label>.switch-inactive{display:none}.switch.tiny{height:1.5rem}.switch.tiny .switch-paddle{width:3rem;height:1.5rem;font-size:.625rem}.switch.tiny .switch-paddle:after{top:.25rem;right:.25rem;width:1rem;height:1rem}.switch.tiny input:checked~.switch-paddle:after{right:1.75rem}.switch.small{height:1.75rem}.switch.small .switch-paddle{width:3.5rem;height:1.75rem;font-size:.75rem}.switch.small .switch-paddle:after{top:.25rem;right:.25rem;width:1.25rem;height:1.25rem}.switch.small input:checked~.switch-paddle:after{right:2rem}.switch.large{height:2.5rem}.switch.large .switch-paddle{width:5rem;height:2.5rem;font-size:1rem}.switch.large .switch-paddle:after{top:.25rem;right:.25rem;width:2rem;height:2rem}.switch.large input:checked~.switch-paddle:after{right:2.75rem}table{width:100%;margin-bottom:1rem;border-radius:0}table tbody,table tfoot,table thead{border:1px solid #f1f1f1;background-color:#fefefe}table caption{padding:.5rem .625rem .625rem;font-weight:700}table thead{background:#f8f8f8;color:#0a0a0a}table tfoot{background:#f1f1f1;color:#0a0a0a}table tfoot tr,table thead tr{background:transparent}table tfoot td,table tfoot th,table thead td,table thead th{padding:.5rem .625rem .625rem;font-weight:700;text-align:right}table tbody td,table tbody th{padding:.5rem .625rem .625rem}table tbody tr:nth-child(even){border-bottom:0;background-color:#f1f1f1}table.unstriped tbody{background-color:#fefefe}table.unstriped tbody tr{border-bottom:0;border-bottom:1px solid #f1f1f1;background-color:#fefefe}@media screen and (max-width:63.9375em){table.stack tfoot,table.stack thead{display:none}table.stack td,table.stack th,table.stack tr{display:block}table.stack td{border-top:0}}table.scroll{display:block;width:100%;overflow-x:auto}table.hover thead tr:hover{background-color:#f3f3f3}table.hover tfoot tr:hover{background-color:#ececec}table.hover tbody tr:hover{background-color:#f9f9f9}table.hover:not(.unstriped) tr:nth-of-type(even):hover{background-color:#ececec}.table-scroll{overflow-x:auto}.table-scroll table{width:auto}.tabs{margin:0;border:1px solid #e6e6e6;background:#fefefe;list-style-type:none}.tabs:after,.tabs:before{display:table;content:" "}.tabs:after{clear:both}.tabs.vertical>li{display:block;float:none;width:auto}.tabs.simple>li>a{padding:0}.tabs.simple>li>a:hover{background:transparent}.tabs.primary{background:#1779ba}.tabs.primary>li>a{color:#fefefe}.tabs.primary>li>a:focus,.tabs.primary>li>a:hover{background:#1673b1}.tabs-title{float:right}.tabs-title>a{display:block;padding:1.25rem 1.5rem;font-size:.75rem;line-height:1;color:#1779ba}.tabs-title>a:hover{background:#fefefe;color:#1468a0}.tabs-title>a:focus,.tabs-title>a[aria-selected=true]{background:#e6e6e6;color:#1779ba}.tabs-content{border:1px solid #e6e6e6;border-top:0;background:#fefefe;color:#0a0a0a;-webkit-transition:all .5s ease;transition:all .5s ease}.tabs-content.vertical{border:1px solid #e6e6e6;border-right:0}.tabs-panel{display:none;padding:1rem}.tabs-panel[aria-hidden=false]{display:block}.thumbnail{display:inline-block;max-width:100%;margin-bottom:1rem;border:4px solid #fefefe;border-radius:0;box-shadow:0 0 0 1px hsla(0,0%,4%,.2);line-height:0}a.thumbnail{-webkit-transition:-webkit-box-shadow .2s ease-out;transition:box-shadow .2s ease-out}a.thumbnail:focus,a.thumbnail:hover{box-shadow:0 0 6px 1px rgba(23,121,186,.5)}a.thumbnail image{box-shadow:none}.title-bar{padding:.5rem;background:#0a0a0a;color:#fefefe}.title-bar:after,.title-bar:before{display:table;content:" "}.title-bar:after{clear:both}.title-bar .menu-icon{margin-right:.25rem;margin-left:.25rem}.title-bar-left{float:left}.title-bar-right{float:right;text-align:right}.title-bar-title{vertical-align:middle}.has-tip,.title-bar-title{display:inline-block;font-weight:700}.has-tip{position:relative;border-bottom:1px dotted #8a8a8a;cursor:help}.tooltip{position:absolute;top:calc(100% + .6495rem);z-index:1200;max-width:10rem;padding:.75rem;border-radius:0;background-color:#0a0a0a;font-size:80%;color:#fefefe}.tooltip:before{border:.75rem inset;border-top-width:0;border-bottom-style:solid;border-color:transparent transparent #0a0a0a;position:absolute;bottom:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.tooltip.top:before,.tooltip:before{display:block;width:0;height:0;content:""}.tooltip.top:before{border:.75rem inset;border-bottom-width:0;border-top-style:solid;border-color:#0a0a0a transparent transparent;top:100%;bottom:auto}.tooltip.left:before{border:.75rem inset;border-right-width:0;border-left-style:solid;border-color:transparent transparent transparent #0a0a0a;left:100%}.tooltip.left:before,.tooltip.right:before{display:block;width:0;height:0;content:"";top:50%;bottom:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.tooltip.right:before{border:.75rem inset;border-left-width:0;border-right-style:solid;border-color:transparent #0a0a0a transparent transparent;right:100%;left:auto}.top-bar{padding:.5rem}.top-bar:after,.top-bar:before{display:table;content:" "}.top-bar:after{clear:both}.top-bar,.top-bar ul{background-color:#e6e6e6}.top-bar input{max-width:200px;margin-left:1rem}.top-bar .input-group-field{width:100%;margin-left:0}.top-bar input.button{width:auto}.top-bar .top-bar-left,.top-bar .top-bar-right{width:100%}@media print,screen and (min-width:40em){.top-bar .top-bar-left,.top-bar .top-bar-right{width:auto}}@media screen and (max-width:63.9375em){.top-bar.stacked-for-medium .top-bar-left,.top-bar.stacked-for-medium .top-bar-right{width:100%}}@media screen and (max-width:74.9375em){.top-bar.stacked-for-large .top-bar-left,.top-bar.stacked-for-large .top-bar-right{width:100%}}.top-bar-title{display:inline-block;float:left;padding:.5rem 1rem .5rem 0}.top-bar-title .menu-icon{bottom:2px}.top-bar-left{float:left}.top-bar-right{float:right}.hide{display:none!important}.invisible{visibility:hidden}@media screen and (max-width:39.9375em){.hide-for-small-only{display:none!important}}@media screen and (max-width:0em),screen and (min-width:40em){.show-for-small-only{display:none!important}}@media print,screen and (min-width:40em){.hide-for-medium{display:none!important}}@media screen and (max-width:39.9375em){.show-for-medium{display:none!important}}@media screen and (min-width:40em) and (max-width:63.9375em){.hide-for-medium-only{display:none!important}}@media screen and (max-width:39.9375em),screen and (min-width:64em){.show-for-medium-only{display:none!important}}@media print,screen and (min-width:64em){.hide-for-large{display:none!important}}@media screen and (max-width:63.9375em){.show-for-large{display:none!important}}@media screen and (min-width:64em) and (max-width:74.9375em){.hide-for-large-only{display:none!important}}@media screen and (max-width:63.9375em),screen and (min-width:75em){.show-for-large-only{display:none!important}}.show-for-sr,.show-on-focus{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.show-on-focus:active,.show-on-focus:focus{position:static!important;width:auto;height:auto;overflow:visible;clip:auto}.hide-for-portrait,.show-for-landscape{display:block!important}@media screen and (orientation:landscape){.hide-for-portrait,.show-for-landscape{display:block!important}}@media screen and (orientation:portrait){.hide-for-portrait,.show-for-landscape{display:none!important}}.hide-for-landscape,.show-for-portrait{display:none!important}@media screen and (orientation:landscape){.hide-for-landscape,.show-for-portrait{display:none!important}}@media screen and (orientation:portrait){.hide-for-landscape,.show-for-portrait{display:block!important}}.float-left{float:left!important}.float-right{float:right!important}.float-center{display:block;margin-right:auto;margin-left:auto}.clearfix:after,.clearfix:before{display:table;content:" "}.clearfix:after{clear:both}
cdnjs/cdnjs
ajax/libs/foundation/6.3.1/css/foundation-rtl.min.css
CSS
mit
72,157
import * as webdriver from "./index"; import * as remote from "./remote"; declare namespace chrome { /** * Creates a new WebDriver client for Chrome. * * @extends {webdriver.WebDriver} */ class Driver extends webdriver.WebDriver { /** * @param {(webdriver.Capabilities|Options)=} opt_config The configuration * options. * @param {remote.DriverService=} opt_service The session to use; will use * the {@link getDefaultService default service} by default. * @param {webdriver.promise.ControlFlow=} opt_flow The control flow to use, or * {@code null} to use the currently active flow. * @constructor */ constructor(opt_config?: Options | webdriver.Capabilities, opt_service?: remote.DriverService, opt_flow?: webdriver.promise.ControlFlow); } interface IOptionsValues { args: string[]; binary?: string; detach: boolean; extensions: string[]; localState?: any; logFile?: string; prefs?: any; } interface IPerfLoggingPrefs { enableNetwork: boolean; enablePage: boolean; enableTimeline: boolean; tracingCategories: string; bufferUsageReportingInterval: number; } /** * Class for managing ChromeDriver specific options. */ class Options { /** * @constructor */ constructor(); /** * Extracts the ChromeDriver specific options from the given capabilities * object. * @param {!webdriver.Capabilities} capabilities The capabilities object. * @return {!Options} The ChromeDriver options. */ static fromCapabilities(capabilities: webdriver.Capabilities): Options; /** * Add additional command line arguments to use when launching the Chrome * browser. Each argument may be specified with or without the "--" prefix * (e.g. "--foo" and "foo"). Arguments with an associated value should be * delimited by an "=": "foo=bar". * @param {...(string|!Array.<string>)} var_args The arguments to add. * @return {!Options} A self reference. */ addArguments(...var_args: string[]): Options; /** * List of Chrome command line switches to exclude that ChromeDriver by default * passes when starting Chrome. Do not prefix switches with "--". * * @param {...(string|!Array<string>)} var_args The switches to exclude. * @return {!Options} A self reference. */ excludeSwitches(...var_args: string[]): Options; /** * Add additional extensions to install when launching Chrome. Each extension * should be specified as the path to the packed CRX file, or a Buffer for an * extension. * @param {...(string|!Buffer|!Array.<(string|!Buffer)>)} var_args The * extensions to add. * @return {!Options} A self reference. */ addExtensions(...var_args: any[]): Options; /** * Sets the path to the Chrome binary to use. On Mac OS X, this path should * reference the actual Chrome executable, not just the application binary * (e.g. "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"). * * The binary path be absolute or relative to the chromedriver server * executable, but it must exist on the machine that will launch Chrome. * * @param {string} path The path to the Chrome binary to use. * @return {!Options} A self reference. */ setChromeBinaryPath(path: string): Options; /** * Sets whether to leave the started Chrome browser running if the controlling * ChromeDriver service is killed before {@link webdriver.WebDriver#quit()} is * called. * @param {boolean} detach Whether to leave the browser running if the * chromedriver service is killed before the session. * @return {!Options} A self reference. */ detachDriver(detach: boolean): Options; /** * Sets the user preferences for Chrome's user profile. See the "Preferences" * file in Chrome's user data directory for examples. * @param {!Object} prefs Dictionary of user preferences to use. * @return {!Options} A self reference. */ setUserPreferences(prefs: any): Options; /** * Sets the logging preferences for the new session. * @param {!webdriver.logging.Preferences} prefs The logging preferences. * @return {!Options} A self reference. */ setLoggingPrefs(prefs: webdriver.logging.Preferences): Options; /** * Sets the performance logging preferences. Options include: * * - `enableNetwork`: Whether or not to collect events from Network domain. * - `enablePage`: Whether or not to collect events from Page domain. * - `enableTimeline`: Whether or not to collect events from Timeline domain. * Note: when tracing is enabled, Timeline domain is implicitly disabled, * unless `enableTimeline` is explicitly set to true. * - `tracingCategories`: A comma-separated string of Chrome tracing categories * for which trace events should be collected. An unspecified or empty * string disables tracing. * - `bufferUsageReportingInterval`: The requested number of milliseconds * between DevTools trace buffer usage events. For example, if 1000, then * once per second, DevTools will report how full the trace buffer is. If a * report indicates the buffer usage is 100%, a warning will be issued. * * @param {{enableNetwork: boolean, * enablePage: boolean, * enableTimeline: boolean, * tracingCategories: string, * bufferUsageReportingInterval: number}} prefs The performance * logging preferences. * @return {!Options} A self reference. */ setPerfLoggingPrefs(prefs: IPerfLoggingPrefs): Options; /** * Sets preferences for the "Local State" file in Chrome's user data * directory. * @param {!Object} state Dictionary of local state preferences. * @return {!Options} A self reference. */ setLocalState(state: any): Options; /** * Sets the name of the activity hosting a Chrome-based Android WebView. This * option must be set to connect to an [Android WebView]( * https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-started---android) * * @param {string} name The activity name. * @return {!Options} A self reference. */ androidActivity(name: string): Options; /** * Sets the device serial number to connect to via ADB. If not specified, the * ChromeDriver will select an unused device at random. An error will be * returned if all devices already have active sessions. * * @param {string} serial The device serial number to connect to. * @return {!Options} A self reference. */ androidDeviceSerial(serial: string): Options; /** * Configures the ChromeDriver to launch Chrome on Android via adb. This * function is shorthand for * {@link #androidPackage options.androidPackage('com.android.chrome')}. * @return {!Options} A self reference. */ androidChrome(): Options; /** * Sets the package name of the Chrome or WebView app. * * @param {?string} pkg The package to connect to, or `null` to disable Android * and switch back to using desktop Chrome. * @return {!Options} A self reference. */ androidPackage(pkg: string): Options; /** * Sets the process name of the Activity hosting the WebView (as given by `ps`). * If not specified, the process name is assumed to be the same as * {@link #androidPackage}. * * @param {string} processName The main activity name. * @return {!Options} A self reference. */ androidProcess(processName: string): Options; /** * Sets whether to connect to an already-running instead of the specified * {@linkplain #androidProcess app} instead of launching the app with a clean * data directory. * * @param {boolean} useRunning Whether to connect to a running instance. * @return {!Options} A self reference. */ androidUseRunningApp(useRunning: boolean): Options; /** * Sets the path to Chrome's log file. This path should exist on the machine * that will launch Chrome. * @param {string} path Path to the log file to use. * @return {!Options} A self reference. */ setChromeLogFile(path: string): Options; /** * Sets the directory to store Chrome minidumps in. This option is only * supported when ChromeDriver is running on Linux. * @param {string} path The directory path. * @return {!Options} A self reference. */ setChromeMinidumpPath(path: string): Options; /** * Configures Chrome to emulate a mobile device. For more information, refer * to the ChromeDriver project page on [mobile emulation][em]. Configuration * options include: * * - `deviceName`: The name of a pre-configured [emulated device][devem] * - `width`: screen width, in pixels * - `height`: screen height, in pixels * - `pixelRatio`: screen pixel ratio * * __Example 1: Using a Pre-configured Device__ * * let options = new chrome.Options().setMobileEmulation( * {deviceName: 'Google Nexus 5'}); * * let driver = new chrome.Driver(options); * * __Example 2: Using Custom Screen Configuration__ * * let options = new chrome.Options().setMobileEmulation({ * width: 360, * height: 640, * pixelRatio: 3.0 * }); * * let driver = new chrome.Driver(options); * * * [em]: https://sites.google.com/a/chromium.org/chromedriver/mobile-emulation * [devem]: https://developer.chrome.com/devtools/docs/device-mode * * @param {?({deviceName: string}| * {width: number, height: number, pixelRatio: number})} config The * mobile emulation configuration, or `null` to disable emulation. * @return {!Options} A self reference. */ setMobileEmulation(config: any): Options; /** * Sets the proxy settings for the new session. * @param {webdriver.ProxyConfig} proxy The proxy configuration to use. * @return {!Options} A self reference. */ setProxy(proxy: webdriver.ProxyConfig): Options; /** * Converts this options instance to a {@link webdriver.Capabilities} object. * @param {webdriver.Capabilities=} opt_capabilities The capabilities to merge * these options into, if any. * @return {!webdriver.Capabilities} The capabilities. */ toCapabilities(opt_capabilities?: webdriver.Capabilities): webdriver.Capabilities; } /** * Creates {@link remote.DriverService} instances that manage a ChromeDriver * server. */ class ServiceBuilder { /** * @param {string=} opt_exe Path to the server executable to use. If omitted, * the builder will attempt to locate the chromedriver on the current * PATH. * @throws {Error} If provided executable does not exist, or the chromedriver * cannot be found on the PATH. * @constructor */ constructor(opt_exe?: string); /** * Sets the port to start the ChromeDriver on. * @param {number} port The port to use, or 0 for any free port. * @return {!ServiceBuilder} A self reference. * @throws {Error} If the port is invalid. */ usingPort(port: number): ServiceBuilder; /** * Sets which port adb is listening to. _The ChromeDriver will connect to adb * if an {@linkplain Options#androidPackage Android session} is requested, but * adb **must** be started beforehand._ * * @param {number} port Which port adb is running on. * @return {!ServiceBuilder} A self reference. */ setAdbPort(port: number): ServiceBuilder; /** * Sets the path of the log file the driver should log to. If a log file is * not specified, the driver will log to stderr. * @param {string} path Path of the log file to use. * @return {!ServiceBuilder} A self reference. */ loggingTo(path: string): ServiceBuilder; /** * Enables verbose logging. * @return {!ServiceBuilder} A self reference. */ enableVerboseLogging(): ServiceBuilder; /** * Sets the number of threads the driver should use to manage HTTP requests. * By default, the driver will use 4 threads. * @param {number} n The number of threads to use. * @return {!ServiceBuilder} A self reference. */ setNumHttpThreads(n: number): ServiceBuilder; /** * Sets the base path for WebDriver REST commands (e.g. "/wd/hub"). * By default, the driver will accept commands relative to "/". * @param {string} path The base path to use. * @return {!ServiceBuilder} A self reference. */ setUrlBasePath(path: string): ServiceBuilder; /** * Defines the stdio configuration for the driver service. See * {@code child_process.spawn} for more information. * @param {(string|!Array.<string|number|!Stream|null|undefined>)} config The * configuration to use. * @return {!ServiceBuilder} A self reference. */ setStdio(config: string | Array<string | number | any>): ServiceBuilder; /** * Defines the environment to start the server under. This settings will be * inherited by every browser session started by the server. * @param {!Object.<string, string>} env The environment to use. * @return {!ServiceBuilder} A self reference. */ withEnvironment(env: { [key: string]: string }): ServiceBuilder; /** * Creates a new DriverService using this instance's current configuration. * @return {remote.DriverService} A new driver service using this instance's * current configuration. * @throws {Error} If the driver exectuable was not specified and a default * could not be found on the current PATH. */ build(): remote.DriverService; } /** * Returns the default ChromeDriver service. If such a service has not been * configured, one will be constructed using the default configuration for * a ChromeDriver executable found on the system PATH. * @return {!remote.DriverService} The default ChromeDriver service. */ function getDefaultService(): remote.DriverService; /** * Sets the default service to use for new ChromeDriver instances. * @param {!remote.DriverService} service The service to use. * @throws {Error} If the default service is currently running. */ function setDefaultService(service: remote.DriverService): void; } export = chrome;
arindamangular/ShopNow
node_modules/@types/selenium-webdriver/chrome.d.ts
TypeScript
mit
16,584
var util = require('util'), Match = require ('../match'); /** * Binary search implementation (recursive) */ function binarySearch(arr, searchValue) { function find(arr, searchValue, left, right) { if (right < left) return -1; /* int mid = mid = (left + right) / 2; There is a bug in the above line; Joshua Bloch suggests the following replacement: */ var mid = Math.floor((left + right) >>> 1); if (searchValue > arr[mid]) return find(arr, searchValue, mid + 1, right); if (searchValue < arr[mid]) return find(arr, searchValue, left, mid - 1); return mid; }; return find(arr, searchValue, 0, arr.length - 1); }; // 'Character' iterated character class. // Recognizers for specific mbcs encodings make their 'characters' available // by providing a nextChar() function that fills in an instance of iteratedChar // with the next char from the input. // The returned characters are not converted to Unicode, but remain as the raw // bytes (concatenated into an int) from the codepage data. // // For Asian charsets, use the raw input rather than the input that has been // stripped of markup. Detection only considers multi-byte chars, effectively // stripping markup anyway, and double byte chars do occur in markup too. // function IteratedChar() { this.charValue = 0; // 1-4 bytes from the raw input data this.index = 0; this.nextIndex = 0; this.error = false; this.done = false; this.reset = function() { this.charValue = 0; this.index = -1; this.nextIndex = 0; this.error = false; this.done = false; }; this.nextByte = function(det) { if (this.nextIndex >= det.fRawLength) { this.done = true; return -1; } var byteValue = det.fRawInput[this.nextIndex++] & 0x00ff; return byteValue; }; }; /** * Asian double or multi-byte - charsets. * Match is determined mostly by the input data adhering to the * encoding scheme for the charset, and, optionally, * frequency-of-occurence of characters. */ function mbcs() {}; /** * Test the match of this charset with the input text data * which is obtained via the CharsetDetector object. * * @param det The CharsetDetector, which contains the input text * to be checked for being in this charset. * @return Two values packed into one int (Damn java, anyhow) * bits 0-7: the match confidence, ranging from 0-100 * bits 8-15: The match reason, an enum-like value. */ mbcs.prototype.match = function(det) { var singleByteCharCount = 0, //TODO Do we really need this? doubleByteCharCount = 0, commonCharCount = 0, badCharCount = 0, totalCharCount = 0, confidence = 0; var iter = new IteratedChar(); detectBlock: { for (iter.reset(); this.nextChar(iter, det);) { totalCharCount++; if (iter.error) { badCharCount++; } else { var cv = iter.charValue & 0xFFFFFFFF; if (cv <= 0xff) { singleByteCharCount++; } else { doubleByteCharCount++; if (this.commonChars != null) { // NOTE: This assumes that there are no 4-byte common chars. if (binarySearch(this.commonChars, cv) >= 0) { commonCharCount++; } } } } if (badCharCount >= 2 && badCharCount * 5 >= doubleByteCharCount) { // console.log('its here!') // Bail out early if the byte data is not matching the encoding scheme. break detectBlock; } } if (doubleByteCharCount <= 10 && badCharCount== 0) { // Not many multi-byte chars. if (doubleByteCharCount == 0 && totalCharCount < 10) { // There weren't any multibyte sequences, and there was a low density of non-ASCII single bytes. // We don't have enough data to have any confidence. // Statistical analysis of single byte non-ASCII charcters would probably help here. confidence = 0; } else { // ASCII or ISO file? It's probably not our encoding, // but is not incompatible with our encoding, so don't give it a zero. confidence = 10; } break detectBlock; } // // No match if there are too many characters that don't fit the encoding scheme. // (should we have zero tolerance for these?) // if (doubleByteCharCount < 20 * badCharCount) { confidence = 0; break detectBlock; } if (this.commonChars == null) { // We have no statistics on frequently occuring characters. // Assess confidence purely on having a reasonable number of // multi-byte characters (the more the better confidence = 30 + doubleByteCharCount - 20 * badCharCount; if (confidence > 100) { confidence = 100; } } else { // // Frequency of occurence statistics exist. // var maxVal = Math.log(parseFloat(doubleByteCharCount) / 4); var scaleFactor = 90.0 / maxVal; confidence = Math.floor(Math.log(commonCharCount + 1) * scaleFactor + 10); confidence = Math.min(confidence, 100); } } // end of detectBlock: return confidence == 0 ? null : new Match(det, this, confidence); }; /** * Get the next character (however many bytes it is) from the input data * Subclasses for specific charset encodings must implement this function * to get characters according to the rules of their encoding scheme. * * This function is not a method of class iteratedChar only because * that would require a lot of extra derived classes, which is awkward. * @param it The iteratedChar 'struct' into which the returned char is placed. * @param det The charset detector, which is needed to get at the input byte data * being iterated over. * @return True if a character was returned, false at end of input. */ mbcs.prototype.nextChar = function(iter, det) {}; /** * Shift-JIS charset recognizer. */ module.exports.sjis = function() { this.name = function() { return 'Shift-JIS'; }; this.language = function() { return 'ja'; }; // TODO: This set of data comes from the character frequency- // of-occurence analysis tool. The data needs to be moved // into a resource and loaded from there. this.commonChars = [ 0x8140, 0x8141, 0x8142, 0x8145, 0x815b, 0x8169, 0x816a, 0x8175, 0x8176, 0x82a0, 0x82a2, 0x82a4, 0x82a9, 0x82aa, 0x82ab, 0x82ad, 0x82af, 0x82b1, 0x82b3, 0x82b5, 0x82b7, 0x82bd, 0x82be, 0x82c1, 0x82c4, 0x82c5, 0x82c6, 0x82c8, 0x82c9, 0x82cc, 0x82cd, 0x82dc, 0x82e0, 0x82e7, 0x82e8, 0x82e9, 0x82ea, 0x82f0, 0x82f1, 0x8341, 0x8343, 0x834e, 0x834f, 0x8358, 0x835e, 0x8362, 0x8367, 0x8375, 0x8376, 0x8389, 0x838a, 0x838b, 0x838d, 0x8393, 0x8e96, 0x93fa, 0x95aa ]; this.nextChar = function(iter, det) { iter.index = iter.nextIndex; iter.error = false; var firstByte; firstByte = iter.charValue = iter.nextByte(det); if (firstByte < 0) return false; if (firstByte <= 0x7f || (firstByte > 0xa0 && firstByte <= 0xdf)) return true; var secondByte = iter.nextByte(det); if (secondByte < 0) return false; iter.charValue = (firstByte << 8) | secondByte; if (! ((secondByte >= 0x40 && secondByte <= 0x7f) || (secondByte >= 0x80 && secondByte <= 0xff))) { // Illegal second byte value. iter.error = true; } return true; }; }; util.inherits(module.exports.sjis, mbcs); /** * Big5 charset recognizer. */ module.exports.big5 = function() { this.name = function() { return 'Big5'; }; this.language = function() { return 'zh'; }; // TODO: This set of data comes from the character frequency- // of-occurence analysis tool. The data needs to be moved // into a resource and loaded from there. this.commonChars = [ 0xa140, 0xa141, 0xa142, 0xa143, 0xa147, 0xa149, 0xa175, 0xa176, 0xa440, 0xa446, 0xa447, 0xa448, 0xa451, 0xa454, 0xa457, 0xa464, 0xa46a, 0xa46c, 0xa477, 0xa4a3, 0xa4a4, 0xa4a7, 0xa4c1, 0xa4ce, 0xa4d1, 0xa4df, 0xa4e8, 0xa4fd, 0xa540, 0xa548, 0xa558, 0xa569, 0xa5cd, 0xa5e7, 0xa657, 0xa661, 0xa662, 0xa668, 0xa670, 0xa6a8, 0xa6b3, 0xa6b9, 0xa6d3, 0xa6db, 0xa6e6, 0xa6f2, 0xa740, 0xa751, 0xa759, 0xa7da, 0xa8a3, 0xa8a5, 0xa8ad, 0xa8d1, 0xa8d3, 0xa8e4, 0xa8fc, 0xa9c0, 0xa9d2, 0xa9f3, 0xaa6b, 0xaaba, 0xaabe, 0xaacc, 0xaafc, 0xac47, 0xac4f, 0xacb0, 0xacd2, 0xad59, 0xaec9, 0xafe0, 0xb0ea, 0xb16f, 0xb2b3, 0xb2c4, 0xb36f, 0xb44c, 0xb44e, 0xb54c, 0xb5a5, 0xb5bd, 0xb5d0, 0xb5d8, 0xb671, 0xb7ed, 0xb867, 0xb944, 0xbad8, 0xbb44, 0xbba1, 0xbdd1, 0xc2c4, 0xc3b9, 0xc440, 0xc45f ]; this.nextChar = function(iter, det) { iter.index = iter.nextIndex; iter.error = false; var firstByte = iter.charValue = iter.nextByte(det); if (firstByte < 0) return false; // single byte character. if (firstByte <= 0x7f || firstByte == 0xff) return true; var secondByte = iter.nextByte(det); if (secondByte < 0) return false; iter.charValue = (iter.charValue << 8) | secondByte; if (secondByte < 0x40 || secondByte == 0x7f || secondByte == 0xff) iter.error = true; return true; }; }; util.inherits(module.exports.big5, mbcs); /** * EUC charset recognizers. One abstract class that provides the common function * for getting the next character according to the EUC encoding scheme, * and nested derived classes for EUC_KR, EUC_JP, EUC_CN. * * Get the next character value for EUC based encodings. * Character 'value' is simply the raw bytes that make up the character * packed into an int. */ function eucNextChar(iter, det) { iter.index = iter.nextIndex; iter.error = false; var firstByte = 0; var secondByte = 0; var thirdByte = 0; //int fourthByte = 0; buildChar: { firstByte = iter.charValue = iter.nextByte(det); if (firstByte < 0) { // Ran off the end of the input data iter.done = true; break buildChar; } if (firstByte <= 0x8d) { // single byte char break buildChar; } secondByte = iter.nextByte(det); iter.charValue = (iter.charValue << 8) | secondByte; if (firstByte >= 0xA1 && firstByte <= 0xfe) { // Two byte Char if (secondByte < 0xa1) { iter.error = true; } break buildChar; } if (firstByte == 0x8e) { // Code Set 2. // In EUC-JP, total char size is 2 bytes, only one byte of actual char value. // In EUC-TW, total char size is 4 bytes, three bytes contribute to char value. // We don't know which we've got. // Treat it like EUC-JP. If the data really was EUC-TW, the following two // bytes will look like a well formed 2 byte char. if (secondByte < 0xa1) { iter.error = true; } break buildChar; } if (firstByte == 0x8f) { // Code set 3. // Three byte total char size, two bytes of actual char value. thirdByte = iter.nextByte(det); iter.charValue = (iter.charValue << 8) | thirdByte; if (thirdByte < 0xa1) { iter.error = true; } } } return iter.done == false; }; /** * The charset recognize for EUC-JP. A singleton instance of this class * is created and kept by the public CharsetDetector class */ module.exports.euc_jp = function() { this.name = function() { return 'EUC-JP'; }; this.language = function() { return 'ja'; }; // TODO: This set of data comes from the character frequency- // of-occurence analysis tool. The data needs to be moved // into a resource and loaded from there. this.commonChars = [ 0xa1a1, 0xa1a2, 0xa1a3, 0xa1a6, 0xa1bc, 0xa1ca, 0xa1cb, 0xa1d6, 0xa1d7, 0xa4a2, 0xa4a4, 0xa4a6, 0xa4a8, 0xa4aa, 0xa4ab, 0xa4ac, 0xa4ad, 0xa4af, 0xa4b1, 0xa4b3, 0xa4b5, 0xa4b7, 0xa4b9, 0xa4bb, 0xa4bd, 0xa4bf, 0xa4c0, 0xa4c1, 0xa4c3, 0xa4c4, 0xa4c6, 0xa4c7, 0xa4c8, 0xa4c9, 0xa4ca, 0xa4cb, 0xa4ce, 0xa4cf, 0xa4d0, 0xa4de, 0xa4df, 0xa4e1, 0xa4e2, 0xa4e4, 0xa4e8, 0xa4e9, 0xa4ea, 0xa4eb, 0xa4ec, 0xa4ef, 0xa4f2, 0xa4f3, 0xa5a2, 0xa5a3, 0xa5a4, 0xa5a6, 0xa5a7, 0xa5aa, 0xa5ad, 0xa5af, 0xa5b0, 0xa5b3, 0xa5b5, 0xa5b7, 0xa5b8, 0xa5b9, 0xa5bf, 0xa5c3, 0xa5c6, 0xa5c7, 0xa5c8, 0xa5c9, 0xa5cb, 0xa5d0, 0xa5d5, 0xa5d6, 0xa5d7, 0xa5de, 0xa5e0, 0xa5e1, 0xa5e5, 0xa5e9, 0xa5ea, 0xa5eb, 0xa5ec, 0xa5ed, 0xa5f3, 0xb8a9, 0xb9d4, 0xbaee, 0xbbc8, 0xbef0, 0xbfb7, 0xc4ea, 0xc6fc, 0xc7bd, 0xcab8, 0xcaf3, 0xcbdc, 0xcdd1 ]; this.nextChar = eucNextChar; }; util.inherits(module.exports.euc_jp, mbcs); /** * The charset recognize for EUC-KR. A singleton instance of this class * is created and kept by the public CharsetDetector class */ module.exports.euc_kr = function() { this.name = function() { return 'EUC-KR'; }; this.language = function() { return 'ko'; }; // TODO: This set of data comes from the character frequency- // of-occurence analysis tool. The data needs to be moved // into a resource and loaded from there. this.commonChars = [ 0xb0a1, 0xb0b3, 0xb0c5, 0xb0cd, 0xb0d4, 0xb0e6, 0xb0ed, 0xb0f8, 0xb0fa, 0xb0fc, 0xb1b8, 0xb1b9, 0xb1c7, 0xb1d7, 0xb1e2, 0xb3aa, 0xb3bb, 0xb4c2, 0xb4cf, 0xb4d9, 0xb4eb, 0xb5a5, 0xb5b5, 0xb5bf, 0xb5c7, 0xb5e9, 0xb6f3, 0xb7af, 0xb7c2, 0xb7ce, 0xb8a6, 0xb8ae, 0xb8b6, 0xb8b8, 0xb8bb, 0xb8e9, 0xb9ab, 0xb9ae, 0xb9cc, 0xb9ce, 0xb9fd, 0xbab8, 0xbace, 0xbad0, 0xbaf1, 0xbbe7, 0xbbf3, 0xbbfd, 0xbcad, 0xbcba, 0xbcd2, 0xbcf6, 0xbdba, 0xbdc0, 0xbdc3, 0xbdc5, 0xbec6, 0xbec8, 0xbedf, 0xbeee, 0xbef8, 0xbefa, 0xbfa1, 0xbfa9, 0xbfc0, 0xbfe4, 0xbfeb, 0xbfec, 0xbff8, 0xc0a7, 0xc0af, 0xc0b8, 0xc0ba, 0xc0bb, 0xc0bd, 0xc0c7, 0xc0cc, 0xc0ce, 0xc0cf, 0xc0d6, 0xc0da, 0xc0e5, 0xc0fb, 0xc0fc, 0xc1a4, 0xc1a6, 0xc1b6, 0xc1d6, 0xc1df, 0xc1f6, 0xc1f8, 0xc4a1, 0xc5cd, 0xc6ae, 0xc7cf, 0xc7d1, 0xc7d2, 0xc7d8, 0xc7e5, 0xc8ad ]; this.nextChar = eucNextChar; }; util.inherits(module.exports.euc_kr, mbcs); /** * GB-18030 recognizer. Uses simplified Chinese statistics. */ module.exports.gb_18030 = function() { this.name = function() { return 'GB18030'; }; this.language = function() { return 'zh'; }; /* * Get the next character value for EUC based encodings. * Character 'value' is simply the raw bytes that make up the character * packed into an int. */ this.nextChar = function(iter, det) { iter.index = iter.nextIndex; iter.error = false; var firstByte = 0; var secondByte = 0; var thirdByte = 0; var fourthByte = 0; buildChar: { firstByte = iter.charValue = iter.nextByte(det); if (firstByte < 0) { // Ran off the end of the input data iter.done = true; break buildChar; } if (firstByte <= 0x80) { // single byte char break buildChar; } secondByte = iter.nextByte(det); iter.charValue = (iter.charValue << 8) | secondByte; if (firstByte >= 0x81 && firstByte <= 0xFE) { // Two byte Char if ((secondByte >= 0x40 && secondByte <= 0x7E) || (secondByte >=80 && secondByte <= 0xFE)) { break buildChar; } // Four byte char if (secondByte >= 0x30 && secondByte <= 0x39) { thirdByte = iter.nextByte(det); if (thirdByte >= 0x81 && thirdByte <= 0xFE) { fourthByte = iter.nextByte(det); if (fourthByte >= 0x30 && fourthByte <= 0x39) { iter.charValue = (iter.charValue << 16) | (thirdByte << 8) | fourthByte; break buildChar; } } } iter.error = true; break buildChar; } } return iter.done == false; }; // TODO: This set of data comes from the character frequency- // of-occurence analysis tool. The data needs to be moved // into a resource and loaded from there. this.commonChars = [ 0xa1a1, 0xa1a2, 0xa1a3, 0xa1a4, 0xa1b0, 0xa1b1, 0xa1f1, 0xa1f3, 0xa3a1, 0xa3ac, 0xa3ba, 0xb1a8, 0xb1b8, 0xb1be, 0xb2bb, 0xb3c9, 0xb3f6, 0xb4f3, 0xb5bd, 0xb5c4, 0xb5e3, 0xb6af, 0xb6d4, 0xb6e0, 0xb7a2, 0xb7a8, 0xb7bd, 0xb7d6, 0xb7dd, 0xb8b4, 0xb8df, 0xb8f6, 0xb9ab, 0xb9c9, 0xb9d8, 0xb9fa, 0xb9fd, 0xbacd, 0xbba7, 0xbbd6, 0xbbe1, 0xbbfa, 0xbcbc, 0xbcdb, 0xbcfe, 0xbdcc, 0xbecd, 0xbedd, 0xbfb4, 0xbfc6, 0xbfc9, 0xc0b4, 0xc0ed, 0xc1cb, 0xc2db, 0xc3c7, 0xc4dc, 0xc4ea, 0xc5cc, 0xc6f7, 0xc7f8, 0xc8ab, 0xc8cb, 0xc8d5, 0xc8e7, 0xc9cf, 0xc9fa, 0xcab1, 0xcab5, 0xcac7, 0xcad0, 0xcad6, 0xcaf5, 0xcafd, 0xccec, 0xcdf8, 0xceaa, 0xcec4, 0xced2, 0xcee5, 0xcfb5, 0xcfc2, 0xcfd6, 0xd0c2, 0xd0c5, 0xd0d0, 0xd0d4, 0xd1a7, 0xd2aa, 0xd2b2, 0xd2b5, 0xd2bb, 0xd2d4, 0xd3c3, 0xd3d0, 0xd3fd, 0xd4c2, 0xd4da, 0xd5e2, 0xd6d0 ]; }; util.inherits(module.exports.gb_18030, mbcs);
InlineIo/www
node_modules/chardet/encoding/mbcs.js
JavaScript
mit
17,001
/** * @fileoverview Rule to flag consistent return values * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = require("../ast-utils"); //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ /** * Checks whether or not a given node is an `Identifier` node which was named a given name. * @param {ASTNode} node - A node to check. * @param {string} name - An expected name of the node. * @returns {boolean} `true` if the node is an `Identifier` node which was named as expected. */ function isIdentifier(node, name) { return node.type === "Identifier" && node.name === name; } /** * Checks whether or not a given code path segment is unreachable. * @param {CodePathSegment} segment - A CodePathSegment to check. * @returns {boolean} `true` if the segment is unreachable. */ function isUnreachable(segment) { return !segment.reachable; } //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "require `return` statements to either always or never specify values", category: "Best Practices", recommended: false }, schema: [{ type: "object", properties: { treatUndefinedAsUnspecified: { type: "boolean" } }, additionalProperties: false }] }, create(context) { const options = context.options[0] || {}; const treatUndefinedAsUnspecified = options.treatUndefinedAsUnspecified === true; let funcInfo = null; /** * Checks whether of not the implicit returning is consistent if the last * code path segment is reachable. * * @param {ASTNode} node - A program/function node to check. * @returns {void} */ function checkLastSegment(node) { let loc, type; /* * Skip if it expected no return value or unreachable. * When unreachable, all paths are returned or thrown. */ if (!funcInfo.hasReturnValue || funcInfo.codePath.currentSegments.every(isUnreachable) || astUtils.isES5Constructor(node) ) { return; } // Adjust a location and a message. if (node.type === "Program") { // The head of program. loc = {line: 1, column: 0}; type = "program"; } else if (node.type === "ArrowFunctionExpression") { // `=>` token loc = context.getSourceCode().getTokenBefore(node.body).loc.start; type = "function"; } else if ( node.parent.type === "MethodDefinition" || (node.parent.type === "Property" && node.parent.method) ) { // Method name. loc = node.parent.key.loc.start; type = "method"; } else { // Function name or `function` keyword. loc = (node.id || node).loc.start; type = "function"; } // Reports. context.report({ node, loc, message: "Expected to return a value at the end of this {{type}}.", data: {type} }); } return { // Initializes/Disposes state of each code path. onCodePathStart(codePath) { funcInfo = { upper: funcInfo, codePath, hasReturn: false, hasReturnValue: false, message: "" }; }, onCodePathEnd() { funcInfo = funcInfo.upper; }, // Reports a given return statement if it's inconsistent. ReturnStatement(node) { const argument = node.argument; let hasReturnValue = Boolean(argument); if (treatUndefinedAsUnspecified && hasReturnValue) { hasReturnValue = !isIdentifier(argument, "undefined") && argument.operator !== "void"; } if (!funcInfo.hasReturn) { funcInfo.hasReturn = true; funcInfo.hasReturnValue = hasReturnValue; funcInfo.message = "Expected {{which}} return value."; funcInfo.data = { which: hasReturnValue ? "a" : "no" }; } else if (funcInfo.hasReturnValue !== hasReturnValue) { context.report({ node, message: funcInfo.message, data: funcInfo.data }); } }, // Reports a given program/function if the implicit returning is not consistent. "Program:exit": checkLastSegment, "FunctionDeclaration:exit": checkLastSegment, "FunctionExpression:exit": checkLastSegment, "ArrowFunctionExpression:exit": checkLastSegment }; } };
TimurKastemirov/skb3
node_modules/eslint/lib/rules/consistent-return.js
JavaScript
mit
5,685
require File.expand_path('../boot', __FILE__) # OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE require 'rails/all' # If you have a Gemfile, require the gems listed there, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) if defined?(Bundler) module Store class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] # Activate observers that should always be running. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # JavaScript files you want as :defaults (application.js is always included). # config.action_view.javascript_expansions[:defaults] = %w(jquery rails) # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] end end
dixonadair/railscasts-episodes
episode-255/store/config/application.rb
Ruby
mit
1,978
angular.module("mobile-angular-ui.directives.capture", []).run([ "CaptureService", "$rootScope", function(CaptureService, $rootScope) { return $rootScope.$on('$routeChangeStart', function() { return CaptureService.resetAll(); }); } ]).factory("CaptureService", [ "$compile", function($compile) { var yielders; yielders = {}; return { resetAll: function() { var name, yielder, _results; _results = []; for (name in yielders) { yielder = yielders[name]; _results.push(this.resetYielder(name)); } return _results; }, resetYielder: function(name) { var b; b = yielders[name]; return this.setContentFor(name, b.defaultContent, b.defaultScope); }, putYielder: function(name, element, defaultScope, defaultContent) { var yielder; yielder = yielders[name] = {}; yielder.name = name; yielder.element = element; yielder.defaultContent = defaultContent || ""; return yielder.defaultScope = defaultScope; }, getYielder: function(name) { return yielders[name]; }, removeYielder: function(name) { return delete yielders[name]; }, setContentFor: function(name, content, scope) { var b; b = yielders[name]; if (!b) { return; } b.element.html(content); return $compile(b.element.contents())(scope); } }; } ]).directive("contentFor", [ "CaptureService", function(CaptureService) { return { link: function(scope, elem, attrs) { CaptureService.setContentFor(attrs.contentFor, elem.html(), scope); if (attrs.duplicate == null) { return elem.remove(); } else { return elem; } } }; } ]).directive("yieldTo", [ "$compile", "CaptureService", function($compile, CaptureService) { return { link: function(scope, element, attr) { CaptureService.putYielder(attr.yieldTo, element, scope, element.html()); return element.contents().remove(); } }; } ]); angular.module('mobile-angular-ui.directives.carousel', []).run([ "$rootScope", function($rootScope) { var carouselItems, findActiveItemIndex; $rootScope.carouselPrev = function(id) { return $rootScope.$emit("mobile-angular-ui.carousel.prev", id); }; $rootScope.carouselNext = function(id) { return $rootScope.$emit("mobile-angular-ui.carousel.next", id); }; carouselItems = function(id) { var elem; elem = angular.element(document.getElementById(id)); return angular.element(elem.children()[0]).children(); }; findActiveItemIndex = function(items) { var found, idx, item, _i, _len; idx = -1; found = false; for (_i = 0, _len = items.length; _i < _len; _i++) { item = items[_i]; idx += 1; if (angular.element(item).hasClass('active')) { found = true; break; } } if (found) { return idx; } else { return -1; } }; $rootScope.$on("mobile-angular-ui.carousel.prev", function(e, id) { var idx, items, lastIdx; items = carouselItems(id); idx = findActiveItemIndex(items); lastIdx = items.length - 1; if (idx !== -1) { angular.element(items[idx]).removeClass("active"); } if (idx <= 0) { return angular.element(items[lastIdx]).addClass("active"); } else { return angular.element(items[idx - 1]).addClass("active"); } }); return $rootScope.$on("mobile-angular-ui.carousel.next", function(e, id) { var idx, items, lastIdx; items = carouselItems(id); idx = findActiveItemIndex(items); lastIdx = items.length - 1; if (idx !== -1) { angular.element(items[idx]).removeClass("active"); } if (idx === lastIdx) { return angular.element(items[0]).addClass("active"); } else { return angular.element(items[idx + 1]).addClass("active"); } }); } ]); angular.module('mobile-angular-ui.directives.forms', []).directive("bsInput", function() { return { replace: true, require: "ngModel", link: function(scope, elem, attrs) { var ll, w1, w2, w3, _ref; if (attrs.id == null) { attrs.id = attrs.ngModel.replace(".", "_") + "_input"; } if ((_ref = attrs.type) !== "checkbox" && _ref !== "radio") { elem.addClass("form-control"); } ll = angular.element("<label for=\"" + attrs.id + "\" class=\"control-label col-sm-2\">" + attrs.label + "</label>"); w1 = angular.element("<div class=\"form-group container-fluid\"></div>"); w2 = angular.element("<div class=\"row\"></div>"); w3 = angular.element("<div class=\"col-sm-10\"></div>"); elem.wrap(w1).wrap(w2).wrap(w3); return w2.prepend(ll); } }; }).directive("switch", function() { return { restrict: "EA", replace: true, scope: { model: "=ngModel", disabled: "@" }, template: "<div class=\"switch\" ng-click=\"toggle()\" ng-class=\"{ 'active': model }\">\n <div class=\"switch-handle\"></div>\n</div>", link: function(scope, elem, attrs) { var toggle; scope.toggle = toggle = function() { if (attrs.disabled == null) { return scope.model = !scope.model; } }; return setTimeout((function() { return elem.addClass('switch-transition-enabled'); }), 200); } }; }); angular.module('mobile-angular-ui.directives.navbars', []).directive('navbarAbsoluteTop', function() { return { replace: false, restrict: "C", link: function(scope, elem, attrs) { return elem.parent().addClass('has-navbar-top'); } }; }).directive('navbarAbsoluteBottom', function() { return { replace: false, restrict: "C", link: function(scope, elem, attrs) { return elem.parent().addClass('has-navbar-bottom'); } }; }); angular.module('mobile-angular-ui.directives.overlay', []).directive('overlay', [ "$compile", function($compile) { return { link: function(scope, elem, attrs) { var active, body, html, id, sameId; body = elem.html(); id = attrs.overlay; if (attrs["default"] != null) { active = "default='" + attrs["default"] + "'"; } html = "<div class=\"overlay\" id=\"" + id + "\" toggleable " + active + " parent-active-class=\"overlay-in\" active-class=\"overlay-show\">\n <div class=\"overlay-inner\">\n <div class=\"overlay-background\"></div>\n <a href=\"#" + id + "\" toggle=\"off\" class=\"overlay-dismiss\">\n <i class=\"fa fa-times-circle-o\"></i>\n </a>\n <div class=\"overlay-content\">\n <div class=\"overlay-body\">\n " + body + "\n </div>\n </div>\n </div>\n</div>"; elem.remove(); sameId = angular.element(document.getElementById(id)); if (sameId.length > 0 && sameId.hasClass('overlay')) { sameId.remove(); } body = angular.element(document.body); body.prepend($compile(html)(scope)); if (attrs["default"] === "active") { return body.addClass('overlay-in'); } } }; } ]); angular.module("mobile-angular-ui.directives.panels", []).directive("bsPanel", function() { return { restrict: 'EA', replace: true, scope: false, transclude: true, link: function(scope, elem, attrs) { return elem.removeAttr('title'); }, template: function(elems, attrs) { var heading; heading = ""; if (attrs.title) { heading = "<div class=\"panel-heading\">\n <h2 class=\"panel-title\">\n " + attrs.title + "\n </h2>\n</div>"; } return "<div class=\"panel\">\n " + heading + "\n <div class=\"panel-body\">\n <div ng-transclude></div>\n </div>\n</div>"; } }; }); angular.module('mobile-angular-ui.directives.sidebars', []).directive('sidebarLeft', function() { return { replace: false, restrict: "C", link: function(scope, elem, attrs) { return elem.parent().addClass('has-sidebar-left'); } }; }).directive('sidebarRight', function() { return { replace: false, restrict: "C", link: function(scope, elem, attrs) { return elem.parent().addClass('has-sidebar-right'); } }; }); (function() { var Toggle, Toggleable, Toggler; Toggle = { moduleName: "mobile-angular-ui.directives.toggle", events: { toggle: "mobile-angular-ui.toggle.toggle", toggleByClass: "mobile-angular-ui.toggle.toggleByClass", togglerLinked: "mobile-angular-ui.toggle.linked", toggleableToggled: "mobile-angular-ui.toggle.toggled" }, commands: { alternate: "toggle", activate: "on", deactivate: "off" }, helpers: { updateElemClasses: function(elem, attrs, active) { var parent; if (active) { if (attrs.activeClass) { elem.addClass(attrs.activeClass); } if (attrs.inactiveClass) { elem.removeClass(attrs.inactiveClass); } parent = elem.parent(); if (attrs.parentActiveClass) { parent.addClass(attrs.parentActiveClass); } if (attrs.parentInactiveClass) { return parent.removeClass(attrs.parentInactiveClass); } } else { if (attrs.inactiveClass) { elem.addClass(attrs.inactiveClass); } if (attrs.activeClass) { elem.removeClass(attrs.activeClass); } parent = elem.parent(); if (attrs.parentInactiveClass) { parent.addClass(attrs.parentInactiveClass); } if (attrs.parentActiveClass) { return parent.removeClass(attrs.parentActiveClass); } } } } }; Toggler = (function() { function Toggler(scope, elem, attrs) { var _ref; this.scope = scope; this.elem = elem; this.attrs = attrs; this.command = this.attrs.toggle || Toggle.commands.alternate; this.target = this.attrs.target; this.targetClass = this.attrs.targetClass; this.rootScope = this.scope; this.bubble = (_ref = this.attrs.bubble) === "true" || _ref === "1" || _ref === 1 || _ref === "" || _ref === "bubble"; if ((!this.target) && this.attrs.href) { this.target = this.attrs.href.slice(1); } if (!(this.target || this.targetClass)) { throw "'target' or 'target-class' attribute required with 'toggle'"; } } Toggler.prototype.toggle = function() { return this.rootScope.toggle(this.target, this.command); }; Toggler.prototype.toggleByClass = function() { return this.rootScope.toggleByClass(this.targetClass, this.command); }; Toggler.prototype.hasTarget = function() { return !!this.target; }; Toggler.prototype.hasTargetClass = function() { return !!this.targetClass; }; Toggler.prototype.fireTogglerLinked = function() { if (this.hasTarget()) { return this.rootScope.$emit(Toggle.events.togglerLinked, this.target); } }; Toggler.prototype.link = function() { var _this = this; this.elem.on("click tap", function(e) { if (!_this.elem.hasClass("disabled")) { if (_this.hasTarget()) { _this.toggle(); } if (_this.hasTargetClass()) { _this.toggleByClass(); } if (!_this.bubble) { e.preventDefault(); return false; } else { return true; } } }); this.scope.$on(Toggle.events.toggleableToggled, function(e, id, newState) { if (id === _this.target) { return Toggle.helpers.updateElemClasses(_this.elem, _this.attrs, newState); } }); return this.fireTogglerLinked(); }; return Toggler; })(); Toggleable = (function() { function Toggleable(scope, elem, attrs) { this.scope = scope; this.elem = elem; this.attrs = attrs; this.id = this.attrs.id; this.exclusionGroup = this.attrs.exclusionGroup; this.toggleState = false; this["default"] = this.attrs["default"]; this.rootScope = this.scope.$root; } Toggleable.prototype.setToggleState = function(value) { if (value !== this.toggleState) { return this.toggleState = value; } }; Toggleable.prototype.getToggleState = function() { return !!this.toggleState; }; Toggleable.prototype.notifyToggleState = function() { return this.rootScope.$emit(Toggle.events.toggleableToggled, this.id, this.getToggleState(), this.exclusionGroup); }; Toggleable.prototype.toggleStateChanged = function() { Toggle.helpers.updateElemClasses(this.elem, this.attrs, this.getToggleState()); return this.notifyToggleState(); }; Toggleable.prototype.runCommand = function(command) { var oldState; oldState = this.getToggleState(); switch (command) { case Toggle.commands.activate: this.setToggleState(true); break; case Toggle.commands.deactivate: this.setToggleState(false); break; case Toggle.commands.alternate: this.setToggleState(!this.getToggleState()); } if (oldState !== this.getToggleState()) { return this.toggleStateChanged(); } }; Toggleable.prototype.link = function() { var _this = this; if (this["default"]) { switch (this["default"]) { case "active": this.setToggleState(true); break; case "inactive": this.setToggleState(false); } this.toggleStateChanged(); } this.scope.$on(Toggle.events.toggle, function(e, target, command) { if (target === _this.id) { return _this.runCommand(command); } }); this.scope.$on(Toggle.events.toggleByClass, function(e, targetClass, command) { if (_this.elem.hasClass(targetClass)) { return _this.runCommand(command); } }); this.scope.$on(Toggle.events.toggleableToggled, function(e, target, newState, sameGroup) { if (newState && (_this.id !== target) && (_this.exclusionGroup === sameGroup) && (_this.exclusionGroup != null)) { _this.setToggleState(false); return _this.toggleStateChanged(); } }); return this.scope.$on(Toggle.events.togglerLinked, function(e, target) { if (_this.id === target) { return _this.notifyToggleState(); } }); }; return Toggleable; })(); return angular.module(Toggle.moduleName, []).run([ "$rootScope", function($rootScope) { $rootScope.toggle = function(target, command) { if (command == null) { command = "toggle"; } return $rootScope.$emit(Toggle.events.toggle, target, command); }; return $rootScope.toggleByClass = function(targetClass, command) { if (command == null) { command = "toggle"; } return $rootScope.$emit(Toggle.events.toggleByClass, targetClass, command); }; } ]).directive('toggle', [ "$rootScope", function($rootScope) { return { restrict: "A", link: function(scope, elem, attrs) { var toggler; toggler = new Toggler($rootScope, elem, attrs); return toggler.link(); } }; } ]).directive('toggleable', [ "$rootScope", function($rootScope) { return { restrict: "A", link: function(scope, elem, attrs) { var toggleable; toggleable = new Toggleable($rootScope, elem, attrs); return toggleable.link(); } }; } ]); })(); angular.module("mobile-angular-ui.active-links", []).run([ "$rootScope", function($rootScope) { return angular.forEach(["$locationChangeSuccess", "$includeContentLoaded"], function(evtName) { return $rootScope.$on(evtName, function() { var newPath; newPath = window.location.href; return angular.forEach(document.links, function(domLink) { var link; link = angular.element(domLink); if (domLink.href === newPath) { return link.addClass("active"); } else { return link.removeClass("active"); } }); }); }); } ]); angular.module('mobile-angular-ui.pointer-events', []).run([ '$document', function($document) { return angular.element($document).on("click tap", function(e) { var target; target = angular.element(e.target); if (target.hasClass("disabled")) { e.preventDefault(); e.stopPropagation(); return false; } else { return true; } }); } ]); angular.module("mobile-angular-ui", ['mobile-angular-ui.pointer-events', 'mobile-angular-ui.active-links', 'mobile-angular-ui.directives.toggle', 'mobile-angular-ui.directives.overlay', 'mobile-angular-ui.directives.forms', 'mobile-angular-ui.directives.panels', 'mobile-angular-ui.directives.capture', 'mobile-angular-ui.directives.sidebars', 'mobile-angular-ui.directives.navbars', 'mobile-angular-ui.directives.carousel']);
dc-js/cdnjs
ajax/libs/mobile-angular-ui/1.1.0-beta.15/js/mobile-angular-ui.js
JavaScript
mit
17,541
/* Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ import { Syntax } from 'estraverse'; import esrecurse from 'esrecurse'; import Reference from './reference'; import Variable from './variable'; import PatternVisitor from './pattern-visitor'; import { ParameterDefinition, Definition } from './definition'; import assert from 'assert'; function traverseIdentifierInPattern(options, rootPattern, referencer, callback) { // Call the callback at left hand identifier nodes, and Collect right hand nodes. var visitor = new PatternVisitor(options, rootPattern, callback); visitor.visit(rootPattern); // Process the right hand nodes recursively. if (referencer != null) { visitor.rightHandNodes.forEach(referencer.visit, referencer); } } // Importing ImportDeclaration. // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-moduledeclarationinstantiation // https://github.com/estree/estree/blob/master/es6.md#importdeclaration // FIXME: Now, we don't create module environment, because the context is // implementation dependent. class Importer extends esrecurse.Visitor { constructor(declaration, referencer) { super(null, referencer.options); this.declaration = declaration; this.referencer = referencer; } visitImport(id, specifier) { this.referencer.visitPattern(id, (pattern) => { this.referencer.currentScope().__define(pattern, new Definition( Variable.ImportBinding, pattern, specifier, this.declaration, null, null )); }); } ImportNamespaceSpecifier(node) { let local = (node.local || node.id); if (local) { this.visitImport(local, node); } } ImportDefaultSpecifier(node) { let local = (node.local || node.id); this.visitImport(local, node); } ImportSpecifier(node) { let local = (node.local || node.id); if (node.name) { this.visitImport(node.name, node); } else { this.visitImport(local, node); } } } // Referencing variables and creating bindings. export default class Referencer extends esrecurse.Visitor { constructor(options, scopeManager) { super(null, options); this.options = options; this.scopeManager = scopeManager; this.parent = null; this.isInnerMethodDefinition = false; } currentScope() { return this.scopeManager.__currentScope; } close(node) { while (this.currentScope() && node === this.currentScope().block) { this.scopeManager.__currentScope = this.currentScope().__close(this.scopeManager); } } pushInnerMethodDefinition(isInnerMethodDefinition) { var previous = this.isInnerMethodDefinition; this.isInnerMethodDefinition = isInnerMethodDefinition; return previous; } popInnerMethodDefinition(isInnerMethodDefinition) { this.isInnerMethodDefinition = isInnerMethodDefinition; } materializeTDZScope(node, iterationNode) { // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-forin-div-ofexpressionevaluation-abstract-operation // TDZ scope hides the declaration's names. this.scopeManager.__nestTDZScope(node, iterationNode); this.visitVariableDeclaration(this.currentScope(), Variable.TDZ, iterationNode.left, 0, true); } materializeIterationScope(node) { // Generate iteration scope for upper ForIn/ForOf Statements. var letOrConstDecl; this.scopeManager.__nestForScope(node); letOrConstDecl = node.left; this.visitVariableDeclaration(this.currentScope(), Variable.Variable, letOrConstDecl, 0); this.visitPattern(letOrConstDecl.declarations[0].id, (pattern) => { this.currentScope().__referencing(pattern, Reference.WRITE, node.right, null, true, true); }); } referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { const scope = this.currentScope(); assignments.forEach(assignment => { scope.__referencing( pattern, Reference.WRITE, assignment.right, maybeImplicitGlobal, pattern !== assignment.left, init); }); } visitPattern(node, options, callback) { if (typeof options === 'function') { callback = options; options = {processRightHandNodes: false} } traverseIdentifierInPattern( this.options, node, options.processRightHandNodes ? this : null, callback); } visitFunction(node) { var i, iz; // FunctionDeclaration name is defined in upper scope // NOTE: Not referring variableScope. It is intended. // Since // in ES5, FunctionDeclaration should be in FunctionBody. // in ES6, FunctionDeclaration should be block scoped. if (node.type === Syntax.FunctionDeclaration) { // id is defined in upper scope this.currentScope().__define(node.id, new Definition( Variable.FunctionName, node.id, node, null, null, null )); } // FunctionExpression with name creates its special scope; // FunctionExpressionNameScope. if (node.type === Syntax.FunctionExpression && node.id) { this.scopeManager.__nestFunctionExpressionNameScope(node); } // Consider this function is in the MethodDefinition. this.scopeManager.__nestFunctionScope(node, this.isInnerMethodDefinition); // Process parameter declarations. for (i = 0, iz = node.params.length; i < iz; ++i) { this.visitPattern(node.params[i], {processRightHandNodes: true}, (pattern, info) => { this.currentScope().__define(pattern, new ParameterDefinition( pattern, node, i, info.rest )); this.referencingDefaultValue(pattern, info.assignments, null, true); }); } // if there's a rest argument, add that if (node.rest) { this.visitPattern({ type: 'RestElement', argument: node.rest }, (pattern) => { this.currentScope().__define(pattern, new ParameterDefinition( pattern, node, node.params.length, true )); }); } // Skip BlockStatement to prevent creating BlockStatement scope. if (node.body.type === Syntax.BlockStatement) { this.visitChildren(node.body); } else { this.visit(node.body); } this.close(node); } visitClass(node) { if (node.type === Syntax.ClassDeclaration) { this.currentScope().__define(node.id, new Definition( Variable.ClassName, node.id, node, null, null, null )); } // FIXME: Maybe consider TDZ. this.visit(node.superClass); this.scopeManager.__nestClassScope(node); if (node.id) { this.currentScope().__define(node.id, new Definition( Variable.ClassName, node.id, node )); } this.visit(node.body); this.close(node); } visitProperty(node) { var previous, isMethodDefinition; if (node.computed) { this.visit(node.key); } isMethodDefinition = node.type === Syntax.MethodDefinition; if (isMethodDefinition) { previous = this.pushInnerMethodDefinition(true); } this.visit(node.value); if (isMethodDefinition) { this.popInnerMethodDefinition(previous); } } visitForIn(node) { if (node.left.type === Syntax.VariableDeclaration && node.left.kind !== 'var') { this.materializeTDZScope(node.right, node); this.visit(node.right); this.close(node.right); this.materializeIterationScope(node); this.visit(node.body); this.close(node); } else { if (node.left.type === Syntax.VariableDeclaration) { this.visit(node.left); this.visitPattern(node.left.declarations[0].id, (pattern) => { this.currentScope().__referencing(pattern, Reference.WRITE, node.right, null, true, true); }); } else { this.visitPattern(node.left, {processRightHandNodes: true}, (pattern, info) => { var maybeImplicitGlobal = null; if (!this.currentScope().isStrict) { maybeImplicitGlobal = { pattern: pattern, node: node }; } this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, true, false); }); } this.visit(node.right); this.visit(node.body); } } visitVariableDeclaration(variableTargetScope, type, node, index, fromTDZ) { // If this was called to initialize a TDZ scope, this needs to make definitions, but doesn't make references. var decl, init; decl = node.declarations[index]; init = decl.init; this.visitPattern(decl.id, {processRightHandNodes: !fromTDZ}, (pattern, info) => { variableTargetScope.__define(pattern, new Definition( type, pattern, decl, node, index, node.kind )); if (!fromTDZ) { this.referencingDefaultValue(pattern, info.assignments, null, true); } if (init) { this.currentScope().__referencing(pattern, Reference.WRITE, init, null, !info.topLevel, true); } }); } AssignmentExpression(node) { if (PatternVisitor.isPattern(node.left)) { if (node.operator === '=') { this.visitPattern(node.left, {processRightHandNodes: true}, (pattern, info) => { var maybeImplicitGlobal = null; if (!this.currentScope().isStrict) { maybeImplicitGlobal = { pattern: pattern, node: node }; } this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); this.currentScope().__referencing(pattern, Reference.WRITE, node.right, maybeImplicitGlobal, !info.topLevel, false); }); } else { this.currentScope().__referencing(node.left, Reference.RW, node.right); } } else { this.visit(node.left); } this.visit(node.right); } CatchClause(node) { this.scopeManager.__nestCatchScope(node); this.visitPattern(node.param, {processRightHandNodes: true}, (pattern, info) => { this.currentScope().__define(pattern, new Definition( Variable.CatchClause, node.param, node, null, null, null )); this.referencingDefaultValue(pattern, info.assignments, null, true); }); this.visit(node.body); this.close(node); } Program(node) { this.scopeManager.__nestGlobalScope(node); if (this.scopeManager.__isNodejsScope()) { // Force strictness of GlobalScope to false when using node.js scope. this.currentScope().isStrict = false; this.scopeManager.__nestFunctionScope(node, false); } if (this.scopeManager.__isES6() && this.scopeManager.isModule()) { this.scopeManager.__nestModuleScope(node); } if (this.scopeManager.isStrictModeSupported() && this.scopeManager.isImpliedStrict()) { this.currentScope().isStrict = true; } this.visitChildren(node); this.close(node); } Identifier(node) { this.currentScope().__referencing(node); } UpdateExpression(node) { if (PatternVisitor.isPattern(node.argument)) { this.currentScope().__referencing(node.argument, Reference.RW, null); } else { this.visitChildren(node); } } MemberExpression(node) { this.visit(node.object); if (node.computed) { this.visit(node.property); } } Property(node) { this.visitProperty(node); } MethodDefinition(node) { this.visitProperty(node); } BreakStatement() {} ContinueStatement() {} LabeledStatement(node) { this.visit(node.body); } ForStatement(node) { // Create ForStatement declaration. // NOTE: In ES6, ForStatement dynamically generates // per iteration environment. However, escope is // a static analyzer, we only generate one scope for ForStatement. if (node.init && node.init.type === Syntax.VariableDeclaration && node.init.kind !== 'var') { this.scopeManager.__nestForScope(node); } this.visitChildren(node); this.close(node); } ClassExpression(node) { this.visitClass(node); } ClassDeclaration(node) { this.visitClass(node); } CallExpression(node) { // Check this is direct call to eval if (!this.scopeManager.__ignoreEval() && node.callee.type === Syntax.Identifier && node.callee.name === 'eval') { // NOTE: This should be `variableScope`. Since direct eval call always creates Lexical environment and // let / const should be enclosed into it. Only VariableDeclaration affects on the caller's environment. this.currentScope().variableScope.__detectEval(); } this.visitChildren(node); } BlockStatement(node) { if (this.scopeManager.__isES6()) { this.scopeManager.__nestBlockScope(node); } this.visitChildren(node); this.close(node); } ThisExpression() { this.currentScope().variableScope.__detectThis(); } WithStatement(node) { this.visit(node.object); // Then nest scope for WithStatement. this.scopeManager.__nestWithScope(node); this.visit(node.body); this.close(node); } VariableDeclaration(node) { var variableTargetScope, i, iz, decl; variableTargetScope = (node.kind === 'var') ? this.currentScope().variableScope : this.currentScope(); for (i = 0, iz = node.declarations.length; i < iz; ++i) { decl = node.declarations[i]; this.visitVariableDeclaration(variableTargetScope, Variable.Variable, node, i); if (decl.init) { this.visit(decl.init); } } } // sec 13.11.8 SwitchStatement(node) { var i, iz; this.visit(node.discriminant); if (this.scopeManager.__isES6()) { this.scopeManager.__nestSwitchScope(node); } for (i = 0, iz = node.cases.length; i < iz; ++i) { this.visit(node.cases[i]); } this.close(node); } FunctionDeclaration(node) { this.visitFunction(node); } FunctionExpression(node) { this.visitFunction(node); } ForOfStatement(node) { this.visitForIn(node); } ForInStatement(node) { this.visitForIn(node); } ArrowFunctionExpression(node) { this.visitFunction(node); } ImportDeclaration(node) { var importer; assert(this.scopeManager.__isES6() && this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); importer = new Importer(node, this); importer.visit(node); } visitExportDeclaration(node) { if (node.source) { return; } if (node.declaration) { this.visit(node.declaration); return; } this.visitChildren(node); } ExportDeclaration(node) { this.visitExportDeclaration(node); } ExportNamedDeclaration(node) { this.visitExportDeclaration(node); } ExportSpecifier(node) { let local = (node.id || node.local); this.visit(local); } MetaProperty() { // do nothing. } } /* vim: set sw=4 ts=4 et tw=80 : */
evah/HealthyWebCrawler-T14
Xing_scripts/node_modules/react-token-autocomplete/node_modules/peters-toolbelt/node_modules/eslint/node_modules/escope/src/referencer.js
JavaScript
mit
19,052
CKEDITOR.plugins.setLang("a11yhelp","cs",{title:"Instrukce pro přístupnost",contents:"Obsah nápovědy. Pro uzavření tohoto dialogu stiskněte klávesu ESC.",legend:[{name:"Obecné",items:[{name:"Panel nástrojů editoru",legend:"Stiskněte${toolbarFocus} k procházení panelu nástrojů. Přejděte na další a předchozí skupiny pomocí TAB a SHIFT-TAB. Přechod na další a předchozí tlačítko panelu nástrojů je pomocí ŠIPKA VPRAVO nebo ŠIPKA VLEVO. Stisknutím mezerníku nebo klávesy ENTER tlačítko aktivujete."},{name:"Dialogové okno editoru",legend:"Uvnitř dialogového okna stiskněte TAB pro přesunutí na další pole, stiskněte SHIFT + TAB pro přesun na předchozí pole, stiskněte ENTER pro odeslání dialogu, stiskněte ESC pro jeho zrušení. Pro dialogová okna, která mají mnoho karet stiskněte ALT + F10 pr oprocházení seznamu karet. Pak se přesuňte na další kartu pomocí TAB nebo ŠIPKA VPRAVO. Pro přesun na předchozí stiskněte SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání stránky karet."},{name:"Kontextové menu editoru",legend:"Stiskněte ${contextMenu} nebo klávesu APPLICATION k otevření kontextového menu. Pak se přesuňte na další možnost menu pomocí TAB nebo ŠIPKY DOLŮ. Přesuňte se na předchozí možnost pomocí SHIFT+TAB nebo ŠIPKY NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti menu. Podmenu současné možnosti otevřete pomocí MEZERNÍKU nebo ENTER či ŠIPKY DOLEVA. Kontextové menu uzavřete stiskem ESC."},{name:"Rámeček seznamu editoru",legend:"Uvnitř rámečku seznamu se přesunete na další položku menu pomocí TAB nebo ŠIPKA DOLŮ. Na předchozí položku se přesunete SHIFT + TAB nebo ŠIPKA NAHORU. Stiskněte MEZERNÍK nebo ENTER pro zvolení možnosti seznamu. Stiskněte ESC pro uzavření seznamu."},{name:"Lišta cesty prvku v editoru",legend:"Stiskněte ${elementsPathFocus} pro procházení lišty cesty prvku. Na další tlačítko prvku se přesunete pomocí TAB nebo ŠIPKA VPRAVO. Na předchozí položku se přesunete pomocí SHIFT + TAB nebo ŠIPKA VLEVO. Stiskněte MEZERNÍK nebo ENTER pro vybrání prvku v editoru."}]},{name:"Příkazy",items:[{name:" Příkaz Zpět",legend:"Stiskněte ${undo}"},{name:" Příkaz Znovu",legend:"Stiskněte ${redo}"},{name:" Příkaz Tučné",legend:"Stiskněte ${bold}"},{name:" Příkaz Kurzíva",legend:"Stiskněte ${italic}"},{name:" Příkaz Podtržení",legend:"Stiskněte ${underline}"},{name:" Příkaz Odkaz",legend:"Stiskněte ${link}"},{name:" Příkaz Skrýt panel nástrojů",legend:"Stiskněte ${toolbarCollapse}"},{name:"Příkaz pro přístup k předchozímu prostoru zaměření",legend:"Stiskněte ${accessPreviousSpace} pro přístup k nejbližšímu nedosažitelnému prostoru zaměření před stříškou, například: dva přilehlé prvky HR. Pro dosažení vzdálených prostorů zaměření tuto kombinaci kláves opakujte."},{name:"Příkaz pro přístup k dalšímu prostoru zaměření",legend:"Stiskněte ${accessNextSpace} pro přístup k nejbližšímu nedosažitelnému prostoru zaměření po stříšce, například: dva přilehlé prvky HR. Pro dosažení vzdálených prostorů zaměření tuto kombinaci kláves opakujte."},{name:" Nápověda přístupnosti",legend:"Stiskněte ${a11yHelp}"}]}]});
matt-h/cdnjs
ajax/libs/ckeditor/4.2/plugins/a11yhelp/dialogs/lang/cs.min.js
JavaScript
mit
3,344
/** * bootbox.js v2.3.0 * * The MIT License * * Copyright (C) 2011-2012 by Nick Payne <nick@kurai.co.uk> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE */ var bootbox=window.bootbox||function(){function j(b,a){null==a&&(a=k);return"string"==typeof h[a][b]?h[a][b]:a!=l?j(b,l):b}var k="en",l="en",o=!0,g={},f={},h={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},ru:{OK:"OK",CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430", CONFIRM:"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}};f.setLocale=function(b){for(var a in h)if(a==b){k=b;return}throw Error("Invalid locale: "+b);};f.addLocale=function(b,a){"undefined"==typeof h[b]&&(h[b]={});for(var c in a)h[b][c]=a[c]};f.setIcons=function(b){g=b;if("object"!==typeof g||null==g)g={}};f.alert=function(){var b="",a=j("OK"),c=null;switch(arguments.length){case 1:b=arguments[0];break;case 2:b=arguments[0];"function"==typeof arguments[1]?c=arguments[1]:a=arguments[1];break; case 3:b=arguments[0];a=arguments[1];c=arguments[2];break;default:throw Error("Incorrect number of arguments: expected 1-3");}return f.dialog(b,{label:a,icon:g.OK,callback:c},{onEscape:c})};f.confirm=function(){var b="",a=j("CANCEL"),c=j("CONFIRM"),e=null;switch(arguments.length){case 1:b=arguments[0];break;case 2:b=arguments[0];"function"==typeof arguments[1]?e=arguments[1]:a=arguments[1];break;case 3:b=arguments[0];a=arguments[1];"function"==typeof arguments[2]?e=arguments[2]:c=arguments[2];break; case 4:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];break;default:throw Error("Incorrect number of arguments: expected 1-4");}return f.dialog(b,[{label:a,icon:g.CANCEL,callback:function(){"function"==typeof e&&e(!1)}},{label:c,icon:g.CONFIRM,callback:function(){"function"==typeof e&&e(!0)}}])};f.prompt=function(){var b="",a=j("CANCEL"),c=j("CONFIRM"),e=null;switch(arguments.length){case 1:b=arguments[0];break;case 2:b=arguments[0];"function"==typeof arguments[1]?e=arguments[1]:a=arguments[1]; break;case 3:b=arguments[0];a=arguments[1];"function"==typeof arguments[2]?e=arguments[2]:c=arguments[2];break;case 4:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];break;default:throw Error("Incorrect number of arguments: expected 1-4");}var m=$("<form></form>");m.append("<input type=text />");var h=f.dialog(m,[{label:a,icon:g.CANCEL,callback:function(){"function"==typeof e&&e(null)}},{label:c,icon:g.CONFIRM,callback:function(){"function"==typeof e&&e(m.find("input[type=text]").val())}}], {header:b});m.on("submit",function(a){a.preventDefault();h.find(".btn-primary").click()});return h};f.modal=function(){var b,a,c,e={onEscape:null,keyboard:!0,backdrop:!0};switch(arguments.length){case 1:b=arguments[0];break;case 2:b=arguments[0];"object"==typeof arguments[1]?c=arguments[1]:a=arguments[1];break;case 3:b=arguments[0];a=arguments[1];c=arguments[2];break;default:throw Error("Incorrect number of arguments: expected 1-3");}e.header=a;c="object"==typeof c?$.extend(e,c):e;return f.dialog(b, [],c)};f.dialog=function(b,a,c){var e=null,f="",h=[],c=c||{};null==a?a=[]:"undefined"==typeof a.length&&(a=[a]);for(var d=a.length;d--;){var g=null,j=null,k="",l=null;if("undefined"==typeof a[d].label&&"undefined"==typeof a[d]["class"]&&"undefined"==typeof a[d].callback){var g=0,p=null,n;for(n in a[d])if(p=n,1<++g)break;1==g&&"function"==typeof a[d][n]&&(a[d].label=p,a[d].callback=a[d][n])}"function"==typeof a[d].callback&&(l=a[d].callback);a[d]["class"]?j=a[d]["class"]:d==a.length-1&&2>=a.length&& (j="btn-primary");g=a[d].label?a[d].label:"Option "+(d+1);a[d].icon&&(k="<i class='"+a[d].icon+"'></i> ");f+="<a data-handler='"+d+"' class='btn "+j+"' href='#'>"+k+""+g+"</a>";h[d]=l}a=["<div class='bootbox modal'>"];if(c.header){d="";if("undefined"==typeof c.headerCloseButton||c.headerCloseButton)d="<a href='#' class='close'>&times;</a>";a.push("<div class='modal-header'>"+d+"<h3>"+c.header+"</h3></div>")}a.push("<div class='modal-body'></div>");f&&a.push("<div class='modal-footer'>"+f+"</div>"); a.push("</div>");var i=$(a.join("\n"));("undefined"===typeof c.animate?o:c.animate)&&i.addClass("fade");$(".modal-body",i).html(b);i.bind("hidden",function(){i.remove()});i.bind("hide",function(){if("escape"==e&&"function"==typeof c.onEscape)c.onEscape()});$(document).bind("keyup.modal",function(a){27==a.which&&(e="escape")});i.bind("shown",function(){$("a.btn-primary:last",i).focus()});i.on("click",".modal-footer a, a.close",function(a){var b=$(this).data("handler"),b=h[b],c=null;"function"==typeof b&& (c=b());!1!==c&&(a.preventDefault(),e="button",i.modal("hide"))});null==c.keyboard&&(c.keyboard="function"==typeof c.onEscape);$("body").append(i);i.modal({backdrop:c.backdrop||!0,keyboard:c.keyboard});return i};f.hideAll=function(){$(".bootbox").modal("hide")};f.animate=function(b){o=b};return f}();
NBZ4live/cdnjs
ajax/libs/bootbox.js/2.3.0/bootbox.min.js
JavaScript
mit
6,055
(function(){"use strict";function e(e,n,r,i){function u(t){var r=s(e,n);if(!r||r.to.line-r.from.line<o)return null;var u=e.findMarksAt(r.from);for(var a=0;a<u.length;++a)if(u[a].__isFold&&i!=="fold"){if(!t)return null;r.cleared=!0,u[a].clear()}return r}var s=r&&(r.call?r:r.rangeFinder);s||(s=CodeMirror.fold.auto),typeof n=="number"&&(n=CodeMirror.Pos(n,0));var o=r&&r.minFoldSize||0,a=u(!0);if(r&&r.scanUp)while(!a&&n.line>e.firstLine())n=CodeMirror.Pos(n.line-1,0),a=u(!1);if(!a||a.cleared||i==="unfold")return;var f=t(r);CodeMirror.on(f,"mousedown",function(){l.clear()});var l=e.markText(a.from,a.to,{replacedWith:f,clearOnEnter:!0,__isFold:!0});l.on("clear",function(t,n){CodeMirror.signal(e,"unfold",e,t,n)}),CodeMirror.signal(e,"fold",e,a.from,a.to)}function t(e){var t=e&&e.widget||"↔";if(typeof t=="string"){var n=document.createTextNode(t);t=document.createElement("span"),t.appendChild(n),t.className="CodeMirror-foldmarker"}return t}CodeMirror.newFoldFunction=function(t,n){return function(r,i){e(r,i,{rangeFinder:t,widget:n})}},CodeMirror.defineExtension("foldCode",function(t,n,r){e(this,t,n,r)}),CodeMirror.commands.fold=function(e){e.foldCode(e.getCursor())},CodeMirror.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),CodeMirror.registerHelper("fold","auto",function(e,t){var n=e.getHelpers(t,"fold");for(var r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}})})();
DSpeichert/cdnjs
ajax/libs/codemirror/3.21.0/addon/fold/foldcode.min.js
JavaScript
mit
1,509
(function(){"use strict";function r(e){var t=e.doc.modeOption;return t==="sql"&&(t="text/x-sql"),CodeMirror.resolveMode(t).keywords}function i(e,t){var n=e.length,r=t.substr(0,n);return e.toUpperCase()===r.toUpperCase()}function s(e,t,n,r){for(var s in n){if(!n.hasOwnProperty(s))continue;Array.isArray(n)&&(s=n[s]),i(t,s)&&e.push(r(s))}}function o(t,n){var r=n.getCursor(),i=n.getTokenAt(r),o=i.string.substr(1),u=CodeMirror.Pos(r.line,i.start),a=n.getTokenAt(u).string;e.hasOwnProperty(a)||(a=l(a,n));var f=e[a];if(!f)return;s(t,o,f,function(e){return"."+e})}function u(e,t){if(!e)return;var n=/[,;]/g,r=e.split(" ");for(var i=0;i<r.length;i++)t(r[i]?r[i].replace(n,""):"")}function a(e){return e.line+e.ch/Math.pow(10,6)}function f(e){return CodeMirror.Pos(Math.floor(e),+e.toString().split(".").pop())}function l(t,r){var i=r.doc,s=i.getValue(),o=t.toUpperCase(),l="",c="",h=[],p={start:CodeMirror.Pos(0,0),end:CodeMirror.Pos(r.lastLine(),r.getLineHandle(r.lastLine()).length)},d=s.indexOf(n.QUERY_DIV);while(d!=-1)h.push(i.posFromIndex(d)),d=s.indexOf(n.QUERY_DIV,d+1);h.unshift(CodeMirror.Pos(0,0)),h.push(CodeMirror.Pos(r.lastLine(),r.getLineHandle(r.lastLine()).text.length));var v=0,m=a(r.getCursor());for(var g=0;g<h.length;g++){var y=a(h[g]);if(m>v&&m<=y){p={start:f(v),end:f(y)};break}v=y}var b=i.getRange(p.start,p.end,!1);for(var g=0;g<b.length;g++){var w=b[g];u(w,function(t){var r=t.toUpperCase();r===o&&e.hasOwnProperty(l)&&(c=l),r!==n.ALIAS_KEYWORD&&(l=t)});if(c)break}return c}function c(n,i){e=i&&i.tables||{},t=t||r(n);var u=n.getCursor(),a=n.getTokenAt(u),f=[],l=a.string.trim();return s(f,l,t,function(e){return e.toUpperCase()}),s(f,l,e,function(e){return e}),l.lastIndexOf(".")===0&&o(f,n),{list:f,from:CodeMirror.Pos(u.line,a.start),to:CodeMirror.Pos(u.line,a.end)}}var e,t,n={QUERY_DIV:";",ALIAS_KEYWORD:"AS"};CodeMirror.registerHelper("hint","sql",c)})();
rndme/cdnjs
ajax/libs/codemirror/3.21.0/addon/hint/sql-hint.min.js
JavaScript
mit
1,883
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Security Helper &mdash; CodeIgniter 3.0.0 documentation</title> <link rel="shortcut icon" href="../_static/ci-icon.ico"/> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="top" title="CodeIgniter 3.0.0 documentation" href="../index.html"/> <link rel="up" title="Helpers" href="index.html"/> <link rel="next" title="Smiley Helper" href="smiley_helper.html"/> <link rel="prev" title="Path Helper" href="path_helper.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../index.html" class="fa fa-home"> CodeIgniter</a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../general/index.html">General Topics</a><ul> <li class="toctree-l2"><a class="reference internal" href="../general/urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/cli.html">Running via the CLI</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/managing_apps.html">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="../general/styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../libraries/index.html">Libraries</a><ul> <li class="toctree-l2"><a class="reference internal" href="../libraries/benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Database Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/results.html">Generating Query Results</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/helpers.html">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Helpers</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="path_helper.html">Path Helper</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="xml_helper.html">XML Helper</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">CodeIgniter</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="index.html">Helpers</a> &raquo;</li> <li>Security Helper</li> <li class="wy-breadcrumbs-aside"> </li> </ul> <hr/> </div> <div role="main" class="document"> <div class="section" id="security-helper"> <h1>Security Helper<a class="headerlink" href="#security-helper" title="Permalink to this headline">¶</a></h1> <p>The Security Helper file contains security related functions.</p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#loading-this-helper" id="id1">Loading this Helper</a></li> <li><a class="reference internal" href="#available-functions" id="id2">Available Functions</a></li> </ul> </div> <div class="custom-index container"></div><div class="section" id="loading-this-helper"> <h2><a class="toc-backref" href="#id1">Loading this Helper</a><a class="headerlink" href="#loading-this-helper" title="Permalink to this headline">¶</a></h2> <p>This helper is loaded using the following code:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$this</span><span class="o">-&gt;</span><span class="na">load</span><span class="o">-&gt;</span><span class="na">helper</span><span class="p">(</span><span class="s1">&#39;security&#39;</span><span class="p">);</span> </pre></div> </div> </div> <div class="section" id="available-functions"> <h2><a class="toc-backref" href="#id2">Available Functions</a><a class="headerlink" href="#available-functions" title="Permalink to this headline">¶</a></h2> <p>The following functions are available:</p> <dl class="function"> <dt id="xss_clean"> <tt class="descname">xss_clean</tt><big>(</big><em>$str</em><span class="optional">[</span>, <em>$is_image = FALSE</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#xss_clean" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$str</strong> (<em>string</em>) &#8211; Input data</li> <li><strong>$is_image</strong> (<em>bool</em>) &#8211; Whether we&#8217;re dealing with an image</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">XSS-clean string</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>Provides Cross Site Script Hack filtering.</p> <p>This function is an alias for <tt class="docutils literal"><span class="pre">CI_Input::xss_clean()</span></tt>. For more info, please see the <a class="reference internal" href="../libraries/input.html"><em>Input Library</em></a> documentation.</p> </dd></dl> <dl class="function"> <dt id="sanitize_filename"> <tt class="descname">sanitize_filename</tt><big>(</big><em>$filename</em><big>)</big><a class="headerlink" href="#sanitize_filename" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$filename</strong> (<em>string</em>) &#8211; Filename</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Sanitized file name</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>Provides protection against directory traversal.</p> <p>This function is an alias for <tt class="docutils literal"><span class="pre">CI_Security::sanitize_filename()</span></tt>. For more info, please see the <a class="reference internal" href="../libraries/security.html"><em>Security Library</em></a> documentation.</p> </dd></dl> <dl class="function"> <dt id="do_hash"> <tt class="descname">do_hash</tt><big>(</big><em>$str</em><span class="optional">[</span>, <em>$type = 'sha1'</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#do_hash" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$str</strong> (<em>string</em>) &#8211; Input</li> <li><strong>$type</strong> (<em>string</em>) &#8211; Algorithm</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Hex-formatted hash</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>Permits you to create one way hashes suitable for encrypting passwords. Will use SHA1 by default.</p> <p>See <a class="reference external" href="http://php.net/function.hash_algos">hash_algos()</a> for a full list of supported algorithms.</p> <p>Examples:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$str</span> <span class="o">=</span> <span class="nx">do_hash</span><span class="p">(</span><span class="nv">$str</span><span class="p">);</span> <span class="c1">// SHA1</span> <span class="nv">$str</span> <span class="o">=</span> <span class="nx">do_hash</span><span class="p">(</span><span class="nv">$str</span><span class="p">,</span> <span class="s1">&#39;md5&#39;</span><span class="p">);</span> <span class="c1">// MD5</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">This function was formerly named <tt class="docutils literal"><span class="pre">dohash()</span></tt>, which has been removed in favor of <tt class="docutils literal"><span class="pre">do_hash()</span></tt>.</p> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">This function is DEPRECATED. Use the native <tt class="docutils literal"><span class="pre">hash()</span></tt> instead.</p> </div> </dd></dl> <dl class="function"> <dt id="strip_image_tags"> <tt class="descname">strip_image_tags</tt><big>(</big><em>$str</em><big>)</big><a class="headerlink" href="#strip_image_tags" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$str</strong> (<em>string</em>) &#8211; Input string</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The input string with no image tags</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>This is a security function that will strip image tags from a string. It leaves the image URL as plain text.</p> <p>Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$string</span> <span class="o">=</span> <span class="nx">strip_image_tags</span><span class="p">(</span><span class="nv">$string</span><span class="p">);</span> </pre></div> </div> <p>This function is an alias for <tt class="docutils literal"><span class="pre">CI_Security::strip_image_tags()</span></tt>. For more info, please see the <a class="reference internal" href="../libraries/security.html"><em>Security Library</em></a> documentation.</p> </dd></dl> <dl class="function"> <dt id="encode_php_tags"> <tt class="descname">encode_php_tags</tt><big>(</big><em>$str</em><big>)</big><a class="headerlink" href="#encode_php_tags" title="Permalink to this definition">¶</a></dt> <dd><table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> <li><strong>$str</strong> (<em>string</em>) &#8211; Input string</li> </ul> </td> </tr> <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Safely formatted string</p> </td> </tr> <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p> </td> </tr> </tbody> </table> <p>This is a security function that converts PHP tags to entities.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last"><a class="reference internal" href="#xss_clean" title="xss_clean"><tt class="xref php php-func docutils literal"><span class="pre">xss_clean()</span></tt></a> does this automatically, if you use it.</p> </div> <p>Example:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$string</span> <span class="o">=</span> <span class="nx">encode_php_tags</span><span class="p">(</span><span class="nv">$string</span><span class="p">);</span> </pre></div> </div> </dd></dl> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="smiley_helper.html" class="btn btn-neutral float-right" title="Smiley Helper">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="path_helper.html" class="btn btn-neutral" title="Path Helper"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2014 - 2015, British Columbia Institute of Technology. Last updated on Mar 30, 2015. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'3.0.0', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
Andersonbk17/GPPEX
user_guide/helpers/security_helper.html
HTML
mit
26,962
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reflection.Emit; /// <summary> /// OpCodes.Ldelem_I4 [v-minch] /// </summary> public class OpCodesLdelem_I4 { public static int Main() { OpCodesLdelem_I4 test = new OpCodesLdelem_I4(); TestLibrary.TestFramework.BeginTestCase("Test for the field of OpCodes.Ldelem_I4"); if (test.RunTests()) { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("PASS"); return 100; } else { TestLibrary.TestFramework.EndTestCase(); TestLibrary.TestFramework.LogInformation("FAIL"); return 0; } } public bool RunTests() { bool retVal = true; TestLibrary.TestFramework.LogInformation("[Positive]"); retVal = PosTest1() && retVal; return retVal; } #region PositiveTest public bool PosTest1() { bool retVal = true; TestLibrary.TestFramework.BeginScenario("PosTest1: Verify OpCodes Ldelem_I4 field value"); try { retVal = VerificationHelper(OpCodes.Ldelem_I4, "ldelem.i4", StackBehaviour.Popref_popi, StackBehaviour.Pushi, OperandType.InlineNone, OpCodeType.Objmodel, 1, (byte)0xff, (byte)0x94, FlowControl.Next, "001.", "Ldelem_I4") && retVal; } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); TestLibrary.TestFramework.LogInformation(e.StackTrace); retVal = false; } return retVal; } #endregion #region Private Methods private bool VerificationHelper(OpCode code, string name, StackBehaviour pop, StackBehaviour push, OperandType oprandType, OpCodeType type, int size, byte s1, byte s2, FlowControl ctrl, string errorno, string errordesp) { bool retVal = true; string actualName = code.Name; if (actualName != name) { TestLibrary.TestFramework.LogError(errorno + ".0", "Name returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualName = " + actualName + ", name = " + name); retVal = false; } StackBehaviour actualPop = code.StackBehaviourPop; if (actualPop != pop) { TestLibrary.TestFramework.LogError(errorno + ".1", "StackBehaviourPop returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualPop = " + actualPop + ", pop = " + pop); retVal = false; } StackBehaviour actualPush = code.StackBehaviourPush; if (actualPush != push) { TestLibrary.TestFramework.LogError(errorno + ".2", "StackBehaviourPush returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualPush = " + actualPush + ", push = " + push); retVal = false; } OperandType actualOperandType = code.OperandType; if (actualOperandType != oprandType) { TestLibrary.TestFramework.LogError(errorno + ".3", "OperandType returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualOperandType = " + actualOperandType + ", oprandType = " + oprandType); retVal = false; } OpCodeType actualOpCodeType = code.OpCodeType; if (actualOpCodeType != type) { TestLibrary.TestFramework.LogError(errorno + ".4", "OpCodeType returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualOpCodeType = " + actualOpCodeType + ", type = " + type); retVal = false; } int actualSize = code.Size; if (actualSize != size) { TestLibrary.TestFramework.LogError(errorno + ".5", "Size returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualSize = " + actualSize + ", size = " + size); retVal = false; } short expectedValue = 0; if (size == 2) expectedValue = (short)(s1 << 8 | s2); else expectedValue = (short)s2; short actualValue = code.Value; if (actualValue != expectedValue) { TestLibrary.TestFramework.LogError(errorno + ".6", "Value returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualValue = " + actualValue + ", s1 = " + s1 + ", s2 = " + s2 + ", expectedValue = " + expectedValue); retVal = false; } FlowControl actualCtrl = code.FlowControl; if (actualCtrl != ctrl) { TestLibrary.TestFramework.LogError(errorno + ".7", "FlowControl returns wrong value for OpCode " + errordesp); TestLibrary.TestFramework.LogInformation("WARNING [LOCAL VARIABLE] actualCtrl = " + actualCtrl + ", ctrl = " + ctrl); retVal = false; } return retVal; } #endregion }
dpodder/coreclr
tests/src/CoreMangLib/cti/system/reflection/emit/opcodes/opcodesldelem_i4.cs
C#
mit
5,749
<?php namespace Illuminate\Database\Eloquent\Relations; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\Expression; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\ModelNotFoundException; class BelongsToMany extends Relation { /** * The intermediate table for the relation. * * @var string */ protected $table; /** * The foreign key of the parent model. * * @var string */ protected $foreignKey; /** * The associated key of the relation. * * @var string */ protected $otherKey; /** * The "name" of the relationship. * * @var string */ protected $relationName; /** * The pivot table columns to retrieve. * * @var array */ protected $pivotColumns = array(); /** * Any pivot table restrictions. * * @var array */ protected $pivotWheres = []; /** * Create a new has many relationship instance. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Model $parent * @param string $table * @param string $foreignKey * @param string $otherKey * @param string $relationName * @return void */ public function __construct(Builder $query, Model $parent, $table, $foreignKey, $otherKey, $relationName = null) { $this->table = $table; $this->otherKey = $otherKey; $this->foreignKey = $foreignKey; $this->relationName = $relationName; parent::__construct($query, $parent); } /** * Get the results of the relationship. * * @return mixed */ public function getResults() { return $this->get(); } /** * Set a where clause for a pivot table column. * * @param string $column * @param string $operator * @param mixed $value * @param string $boolean * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function wherePivot($column, $operator = null, $value = null, $boolean = 'and') { $this->pivotWheres[] = func_get_args(); return $this->where($this->table.'.'.$column, $operator, $value, $boolean); } /** * Set an or where clause for a pivot table column. * * @param string $column * @param string $operator * @param mixed $value * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function orWherePivot($column, $operator = null, $value = null) { return $this->wherePivot($column, $operator, $value, 'or'); } /** * Execute the query and get the first result. * * @param array $columns * @return mixed */ public function first($columns = array('*')) { $results = $this->take(1)->get($columns); return count($results) > 0 ? $results->first() : null; } /** * Execute the query and get the first result or throw an exception. * * @param array $columns * @return \Illuminate\Database\Eloquent\Model|static * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException */ public function firstOrFail($columns = array('*')) { if ( ! is_null($model = $this->first($columns))) return $model; throw new ModelNotFoundException; } /** * Execute the query as a "select" statement. * * @param array $columns * @return \Illuminate\Database\Eloquent\Collection */ public function get($columns = array('*')) { // First we'll add the proper select columns onto the query so it is run with // the proper columns. Then, we will get the results and hydrate out pivot // models with the result of those columns as a separate model relation. $columns = $this->query->getQuery()->columns ? array() : $columns; $select = $this->getSelectColumns($columns); $models = $this->query->addSelect($select)->getModels(); $this->hydratePivotRelation($models); // If we actually found models we will also eager load any relationships that // have been specified as needing to be eager loaded. This will solve the // n + 1 query problem for the developer and also increase performance. if (count($models) > 0) { $models = $this->query->eagerLoadRelations($models); } return $this->related->newCollection($models); } /** * Get a paginator for the "select" statement. * * @param int $perPage * @param array $columns * @return \Illuminate\Pagination\Paginator */ public function paginate($perPage = null, $columns = array('*')) { $this->query->addSelect($this->getSelectColumns($columns)); // When paginating results, we need to add the pivot columns to the query and // then hydrate into the pivot objects once the results have been gathered // from the database since this isn't performed by the Eloquent builder. $pager = $this->query->paginate($perPage, $columns); $this->hydratePivotRelation($pager->getItems()); return $pager; } /** * Hydrate the pivot table relationship on the models. * * @param array $models * @return void */ protected function hydratePivotRelation(array $models) { // To hydrate the pivot relationship, we will just gather the pivot attributes // and create a new Pivot model, which is basically a dynamic model that we // will set the attributes, table, and connections on so it they be used. foreach ($models as $model) { $pivot = $this->newExistingPivot($this->cleanPivotAttributes($model)); $model->setRelation('pivot', $pivot); } } /** * Get the pivot attributes from a model. * * @param \Illuminate\Database\Eloquent\Model $model * @return array */ protected function cleanPivotAttributes(Model $model) { $values = array(); foreach ($model->getAttributes() as $key => $value) { // To get the pivots attributes we will just take any of the attributes which // begin with "pivot_" and add those to this arrays, as well as unsetting // them from the parent's models since they exist in a different table. if (strpos($key, 'pivot_') === 0) { $values[substr($key, 6)] = $value; unset($model->$key); } } return $values; } /** * Set the base constraints on the relation query. * * @return void */ public function addConstraints() { $this->setJoin(); if (static::$constraints) $this->setWhere(); } /** * Add the constraints for a relationship count query. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parent * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationCountQuery(Builder $query, Builder $parent) { if ($parent->getQuery()->from == $query->getQuery()->from) { return $this->getRelationCountQueryForSelfJoin($query, $parent); } $this->setJoin($query); return parent::getRelationCountQuery($query, $parent); } /** * Add the constraints for a relationship count query on the same table. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parent * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationCountQueryForSelfJoin(Builder $query, Builder $parent) { $query->select(new Expression('count(*)')); $tablePrefix = $this->query->getQuery()->getConnection()->getTablePrefix(); $query->from($this->table.' as '.$tablePrefix.$hash = $this->getRelationCountHash()); $key = $this->wrap($this->getQualifiedParentKeyName()); return $query->where($hash.'.'.$this->foreignKey, '=', new Expression($key)); } /** * Get a relationship join table hash. * * @return string */ public function getRelationCountHash() { return 'self_'.md5(microtime(true)); } /** * Set the select clause for the relation query. * * @param array $columns * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ protected function getSelectColumns(array $columns = array('*')) { if ($columns == array('*')) { $columns = array($this->related->getTable().'.*'); } return array_merge($columns, $this->getAliasedPivotColumns()); } /** * Get the pivot columns for the relation. * * @return array */ protected function getAliasedPivotColumns() { $defaults = array($this->foreignKey, $this->otherKey); // We need to alias all of the pivot columns with the "pivot_" prefix so we // can easily extract them out of the models and put them into the pivot // relationships when they are retrieved and hydrated into the models. $columns = array(); foreach (array_merge($defaults, $this->pivotColumns) as $column) { $columns[] = $this->table.'.'.$column.' as pivot_'.$column; } return array_unique($columns); } /** * Determine whether the given column is defined as a pivot column. * * @param string $column * @return bool */ protected function hasPivotColumn($column) { return in_array($column, $this->pivotColumns); } /** * Set the join clause for the relation query. * * @param \Illuminate\Database\Eloquent\Builder|null * @return $this */ protected function setJoin($query = null) { $query = $query ?: $this->query; // We need to join to the intermediate table on the related model's primary // key column with the intermediate table's foreign key for the related // model instance. Then we can set the "where" for the parent models. $baseTable = $this->related->getTable(); $key = $baseTable.'.'.$this->related->getKeyName(); $query->join($this->table, $key, '=', $this->getOtherKey()); return $this; } /** * Set the where clause for the relation query. * * @return $this */ protected function setWhere() { $foreign = $this->getForeignKey(); $this->query->where($foreign, '=', $this->parent->getKey()); return $this; } /** * Set the constraints for an eager load of the relation. * * @param array $models * @return void */ public function addEagerConstraints(array $models) { $this->query->whereIn($this->getForeignKey(), $this->getKeys($models)); } /** * Initialize the relation on a set of models. * * @param array $models * @param string $relation * @return array */ public function initRelation(array $models, $relation) { foreach ($models as $model) { $model->setRelation($relation, $this->related->newCollection()); } return $models; } /** * Match the eagerly loaded results to their parents. * * @param array $models * @param \Illuminate\Database\Eloquent\Collection $results * @param string $relation * @return array */ public function match(array $models, Collection $results, $relation) { $dictionary = $this->buildDictionary($results); // Once we have an array dictionary of child objects we can easily match the // children back to their parent using the dictionary and the keys on the // the parent models. Then we will return the hydrated models back out. foreach ($models as $model) { if (isset($dictionary[$key = $model->getKey()])) { $collection = $this->related->newCollection($dictionary[$key]); $model->setRelation($relation, $collection); } } return $models; } /** * Build model dictionary keyed by the relation's foreign key. * * @param \Illuminate\Database\Eloquent\Collection $results * @return array */ protected function buildDictionary(Collection $results) { $foreign = $this->foreignKey; // First we will build a dictionary of child models keyed by the foreign key // of the relation so that we will easily and quickly match them to their // parents without having a possibly slow inner loops for every models. $dictionary = array(); foreach ($results as $result) { $dictionary[$result->pivot->$foreign][] = $result; } return $dictionary; } /** * Touch all of the related models for the relationship. * * E.g.: Touch all roles associated with this user. * * @return void */ public function touch() { $key = $this->getRelated()->getKeyName(); $columns = $this->getRelatedFreshUpdate(); // If we actually have IDs for the relation, we will run the query to update all // the related model's timestamps, to make sure these all reflect the changes // to the parent models. This will help us keep any caching synced up here. $ids = $this->getRelatedIds(); if (count($ids) > 0) { $this->getRelated()->newQuery()->whereIn($key, $ids)->update($columns); } } /** * Get all of the IDs for the related models. * * @return array */ public function getRelatedIds() { $related = $this->getRelated(); $fullKey = $related->getQualifiedKeyName(); return $this->getQuery()->select($fullKey)->lists($related->getKeyName()); } /** * Save a new model and attach it to the parent model. * * @param \Illuminate\Database\Eloquent\Model $model * @param array $joining * @param bool $touch * @return \Illuminate\Database\Eloquent\Model */ public function save(Model $model, array $joining = array(), $touch = true) { $model->save(array('touch' => false)); $this->attach($model->getKey(), $joining, $touch); return $model; } /** * Save an array of new models and attach them to the parent model. * * @param array $models * @param array $joinings * @return array */ public function saveMany(array $models, array $joinings = array()) { foreach ($models as $key => $model) { $this->save($model, (array) array_get($joinings, $key), false); } $this->touchIfTouching(); return $models; } /** * Create a new instance of the related model. * * @param array $attributes * @param array $joining * @param bool $touch * @return \Illuminate\Database\Eloquent\Model */ public function create(array $attributes, array $joining = array(), $touch = true) { $instance = $this->related->newInstance($attributes); // Once we save the related model, we need to attach it to the base model via // through intermediate table so we'll use the existing "attach" method to // accomplish this which will insert the record and any more attributes. $instance->save(array('touch' => false)); $this->attach($instance->getKey(), $joining, $touch); return $instance; } /** * Create an array of new instances of the related models. * * @param array $records * @param array $joinings * @return \Illuminate\Database\Eloquent\Model */ public function createMany(array $records, array $joinings = array()) { $instances = array(); foreach ($records as $key => $record) { $instances[] = $this->create($record, (array) array_get($joinings, $key), false); } $this->touchIfTouching(); return $instances; } /** * Sync the intermediate tables with a list of IDs or collection of models. * * @param array $ids * @param bool $detaching * @return array */ public function sync($ids, $detaching = true) { $changes = array( 'attached' => array(), 'detached' => array(), 'updated' => array() ); if ($ids instanceof Collection) $ids = $ids->modelKeys(); // First we need to attach any of the associated models that are not currently // in this joining table. We'll spin through the given IDs, checking to see // if they exist in the array of current ones, and if not we will insert. $current = $this->newPivotQuery()->lists($this->otherKey); $records = $this->formatSyncList($ids); $detach = array_diff($current, array_keys($records)); // Next, we will take the differences of the currents and given IDs and detach // all of the entities that exist in the "current" array but are not in the // the array of the IDs given to the method which will complete the sync. if ($detaching && count($detach) > 0) { $this->detach($detach); $changes['detached'] = (array) array_map(function($v) { return (int) $v; }, $detach); } // Now we are finally ready to attach the new records. Note that we'll disable // touching until after the entire operation is complete so we don't fire a // ton of touch operations until we are totally done syncing the records. $changes = array_merge( $changes, $this->attachNew($records, $current, false) ); if (count($changes['attached']) || count($changes['updated'])) { $this->touchIfTouching(); } return $changes; } /** * Format the sync list so that it is keyed by ID. * * @param array $records * @return array */ protected function formatSyncList(array $records) { $results = array(); foreach ($records as $id => $attributes) { if ( ! is_array($attributes)) { list($id, $attributes) = array($attributes, array()); } $results[$id] = $attributes; } return $results; } /** * Attach all of the IDs that aren't in the current array. * * @param array $records * @param array $current * @param bool $touch * @return array */ protected function attachNew(array $records, array $current, $touch = true) { $changes = array('attached' => array(), 'updated' => array()); foreach ($records as $id => $attributes) { // If the ID is not in the list of existing pivot IDs, we will insert a new pivot // record, otherwise, we will just update this existing record on this joining // table, so that the developers will easily update these records pain free. if ( ! in_array($id, $current)) { $this->attach($id, $attributes, $touch); $changes['attached'][] = (int) $id; } // Now we'll try to update an existing pivot record with the attributes that were // given to the method. If the model is actually updated we will add it to the // list of updated pivot records so we return them back out to the consumer. elseif (count($attributes) > 0 && $this->updateExistingPivot($id, $attributes, $touch)) { $changes['updated'][] = (int) $id; } } return $changes; } /** * Update an existing pivot record on the table. * * @param mixed $id * @param array $attributes * @param bool $touch * @return void */ public function updateExistingPivot($id, array $attributes, $touch = true) { if (in_array($this->updatedAt(), $this->pivotColumns)) { $attributes = $this->setTimestampsOnAttach($attributes, true); } $updated = $this->newPivotStatementForId($id)->update($attributes); if ($touch) $this->touchIfTouching(); return $updated; } /** * Attach a model to the parent. * * @param mixed $id * @param array $attributes * @param bool $touch * @return void */ public function attach($id, array $attributes = array(), $touch = true) { if ($id instanceof Model) $id = $id->getKey(); $query = $this->newPivotStatement(); $query->insert($this->createAttachRecords((array) $id, $attributes)); if ($touch) $this->touchIfTouching(); } /** * Create an array of records to insert into the pivot table. * * @param array $ids * @param array $attributes * @return array */ protected function createAttachRecords($ids, array $attributes) { $records = array(); $timed = ($this->hasPivotColumn($this->createdAt()) || $this->hasPivotColumn($this->updatedAt())); // To create the attachment records, we will simply spin through the IDs given // and create a new record to insert for each ID. Each ID may actually be a // key in the array, with extra attributes to be placed in other columns. foreach ($ids as $key => $value) { $records[] = $this->attacher($key, $value, $attributes, $timed); } return $records; } /** * Create a full attachment record payload. * * @param int $key * @param mixed $value * @param array $attributes * @param bool $timed * @return array */ protected function attacher($key, $value, $attributes, $timed) { list($id, $extra) = $this->getAttachId($key, $value, $attributes); // To create the attachment records, we will simply spin through the IDs given // and create a new record to insert for each ID. Each ID may actually be a // key in the array, with extra attributes to be placed in other columns. $record = $this->createAttachRecord($id, $timed); return array_merge($record, $extra); } /** * Get the attach record ID and extra attributes. * * @param mixed $key * @param mixed $value * @param array $attributes * @return array */ protected function getAttachId($key, $value, array $attributes) { if (is_array($value)) { return array($key, array_merge($value, $attributes)); } return array($value, $attributes); } /** * Create a new pivot attachment record. * * @param int $id * @param bool $timed * @return array */ protected function createAttachRecord($id, $timed) { $record[$this->foreignKey] = $this->parent->getKey(); $record[$this->otherKey] = $id; // If the record needs to have creation and update timestamps, we will make // them by calling the parent model's "freshTimestamp" method which will // provide us with a fresh timestamp in this model's preferred format. if ($timed) { $record = $this->setTimestampsOnAttach($record); } return $record; } /** * Set the creation and update timestamps on an attach record. * * @param array $record * @param bool $exists * @return array */ protected function setTimestampsOnAttach(array $record, $exists = false) { $fresh = $this->parent->freshTimestamp(); if ( ! $exists && $this->hasPivotColumn($this->createdAt())) { $record[$this->createdAt()] = $fresh; } if ($this->hasPivotColumn($this->updatedAt())) { $record[$this->updatedAt()] = $fresh; } return $record; } /** * Detach models from the relationship. * * @param int|array $ids * @param bool $touch * @return int */ public function detach($ids = array(), $touch = true) { if ($ids instanceof Model) $ids = (array) $ids->getKey(); $query = $this->newPivotQuery(); // If associated IDs were passed to the method we will only delete those // associations, otherwise all of the association ties will be broken. // We'll return the numbers of affected rows when we do the deletes. $ids = (array) $ids; if (count($ids) > 0) { $query->whereIn($this->otherKey, (array) $ids); } if ($touch) $this->touchIfTouching(); // Once we have all of the conditions set on the statement, we are ready // to run the delete on the pivot table. Then, if the touch parameter // is true, we will go ahead and touch all related models to sync. $results = $query->delete(); return $results; } /** * If we're touching the parent model, touch. * * @return void */ public function touchIfTouching() { if ($this->touchingParent()) $this->getParent()->touch(); if ($this->getParent()->touches($this->relationName)) $this->touch(); } /** * Determine if we should touch the parent on sync. * * @return bool */ protected function touchingParent() { return $this->getRelated()->touches($this->guessInverseRelation()); } /** * Attempt to guess the name of the inverse of the relation. * * @return string */ protected function guessInverseRelation() { return camel_case(str_plural(class_basename($this->getParent()))); } /** * Create a new query builder for the pivot table. * * @return \Illuminate\Database\Query\Builder */ protected function newPivotQuery() { $query = $this->newPivotStatement(); foreach ($this->pivotWheres as $whereArgs) { call_user_func_array([$query, 'where'], $whereArgs); } return $query->where($this->foreignKey, $this->parent->getKey()); } /** * Get a new plain query builder for the pivot table. * * @return \Illuminate\Database\Query\Builder */ public function newPivotStatement() { return $this->query->getQuery()->newQuery()->from($this->table); } /** * Get a new pivot statement for a given "other" ID. * * @param mixed $id * @return \Illuminate\Database\Query\Builder */ public function newPivotStatementForId($id) { return $this->newPivotQuery()->where($this->otherKey, $id); } /** * Create a new pivot model instance. * * @param array $attributes * @param bool $exists * @return \Illuminate\Database\Eloquent\Relations\Pivot */ public function newPivot(array $attributes = array(), $exists = false) { $pivot = $this->related->newPivot($this->parent, $attributes, $this->table, $exists); return $pivot->setPivotKeys($this->foreignKey, $this->otherKey); } /** * Create a new existing pivot model instance. * * @param array $attributes * @return \Illuminate\Database\Eloquent\Relations\Pivot */ public function newExistingPivot(array $attributes = array()) { return $this->newPivot($attributes, true); } /** * Set the columns on the pivot table to retrieve. * * @param mixed $columns * @return $this */ public function withPivot($columns) { $columns = is_array($columns) ? $columns : func_get_args(); $this->pivotColumns = array_merge($this->pivotColumns, $columns); return $this; } /** * Specify that the pivot table has creation and update timestamps. * * @param mixed $createdAt * @param mixed $updatedAt * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function withTimestamps($createdAt = null, $updatedAt = null) { return $this->withPivot($createdAt ?: $this->createdAt(), $updatedAt ?: $this->updatedAt()); } /** * Get the related model's updated at column name. * * @return string */ public function getRelatedFreshUpdate() { return array($this->related->getUpdatedAtColumn() => $this->related->freshTimestamp()); } /** * Get the key for comparing against the parent key in "has" query. * * @return string */ public function getHasCompareKey() { return $this->getForeignKey(); } /** * Get the fully qualified foreign key for the relation. * * @return string */ public function getForeignKey() { return $this->table.'.'.$this->foreignKey; } /** * Get the fully qualified "other key" for the relation. * * @return string */ public function getOtherKey() { return $this->table.'.'.$this->otherKey; } /** * Get the intermediate table for the relationship. * * @return string */ public function getTable() { return $this->table; } /** * Get the relationship name for the relationship. * * @return string */ public function getRelationName() { return $this->relationName; } }
macfisher/laravel-crud-template
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
PHP
mit
26,373
/* @flow */ import { tip, hasOwn, isDef, isUndef, hyphenate, formatComponentName } from 'core/util/index' export function extractPropsFromVNodeData ( data: VNodeData, Ctor: Class<Component>, tag?: string ): ?Object { // we are only extracting raw values here. // validation and default values are handled in the child // component itself. const propOptions = Ctor.options.props if (isUndef(propOptions)) { return } const res = {} const { attrs, props } = data if (isDef(attrs) || isDef(props)) { for (const key in propOptions) { const altKey = hyphenate(key) if (process.env.NODE_ENV !== 'production') { const keyInLowerCase = key.toLowerCase() if ( key !== keyInLowerCase && attrs && hasOwn(attrs, keyInLowerCase) ) { tip( `Prop "${keyInLowerCase}" is passed to component ` + `${formatComponentName(tag || Ctor)}, but the declared prop name is` + ` "${key}". ` + `Note that HTML attributes are case-insensitive and camelCased ` + `props need to use their kebab-case equivalents when using in-DOM ` + `templates. You should probably use "${altKey}" instead of "${key}".` ) } } checkProp(res, props, key, altKey, true) || checkProp(res, attrs, key, altKey, false) } } return res } function checkProp ( res: Object, hash: ?Object, key: string, altKey: string, preserve: boolean ): boolean { if (isDef(hash)) { if (hasOwn(hash, key)) { res[key] = hash[key] if (!preserve) { delete hash[key] } return true } else if (hasOwn(hash, altKey)) { res[key] = hash[altKey] if (!preserve) { delete hash[altKey] } return true } } return false }
lizhiyao/vue
src/core/vdom/helpers/extract-props.js
JavaScript
mit
1,852
/* jquery.nicescroll 3.6.5 InuYaksa*2015 MIT http://nicescroll.areaaperta.com */(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):"object"===typeof exports?module.exports=f(require("jquery")):f(jQuery)})(function(f){var A=!1,E=!1,O=0,P=2E3,z=0,I=["webkit","ms","moz","o"],u=window.requestAnimationFrame||!1,v=window.cancelAnimationFrame||!1;if(!u)for(var Q in I){var F=I[Q];u||(u=window[F+"RequestAnimationFrame"]);v||(v=window[F+"CancelAnimationFrame"]||window[F+"CancelRequestAnimationFrame"])}var x=window.MutationObserver||window.WebKitMutationObserver|| !1,J={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0}, disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var f=document.getElementsByTagName("script"),f=f.length?f[f.length- 1].src.split("?")[0]:"";return 0<f.split("/").length?f.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0},G=!1,R=function(){if(G)return G;var f=document.createElement("DIV"),c=f.style,l=navigator.userAgent,n=navigator.platform,e={haspointerlock:"pointerLockElement"in document||"webkitPointerLockElement"in document||"mozPointerLockElement"in document};e.isopera="opera"in window;e.isopera12=e.isopera&&"getUserMedia"in navigator;e.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini); e.isie="all"in document&&"attachEvent"in f&&!e.isopera;e.isieold=e.isie&&!("msInterpolationMode"in c);e.isie7=e.isie&&!e.isieold&&(!("documentMode"in document)||7==document.documentMode);e.isie8=e.isie&&"documentMode"in document&&8==document.documentMode;e.isie9=e.isie&&"performance"in window&&9<=document.documentMode;e.isie10=e.isie&&"performance"in window&&10==document.documentMode;e.isie11="msRequestFullscreen"in f&&11<=document.documentMode;e.isie9mobile=/iemobile.9/i.test(l);e.isie9mobile&&(e.isie9= !1);e.isie7mobile=!e.isie9mobile&&e.isie7&&/iemobile/i.test(l);e.ismozilla="MozAppearance"in c;e.iswebkit="WebkitAppearance"in c;e.ischrome="chrome"in window;e.ischrome22=e.ischrome&&e.haspointerlock;e.ischrome26=e.ischrome&&"transition"in c;e.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window;e.hasmstouch=window.MSPointerEvent||!1;e.hasw3ctouch=window.PointerEvent||!1;e.ismac=/^mac$/i.test(n);e.isios=e.cantouch&&/iphone|ipad|ipod/i.test(n);e.isios4=e.isios&&!("seal"in Object); e.isios7=e.isios&&"webkitHidden"in document;e.isandroid=/android/i.test(l);e.haseventlistener="addEventListener"in f;e.trstyle=!1;e.hastransform=!1;e.hastranslate3d=!1;e.transitionstyle=!1;e.hastransition=!1;e.transitionend=!1;n=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(l=0;l<n.length;l++)if("undefined"!=typeof c[n[l]]){e.trstyle=n[l];break}e.hastransform=!!e.trstyle;e.hastransform&&(c[e.trstyle]="translate3d(1px,2px,3px)",e.hastranslate3d=/translate3d/.test(c[e.trstyle])); e.transitionstyle=!1;e.prefixstyle="";e.transitionend=!1;for(var n="transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),p=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),q="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),l=0;l<n.length;l++)if(n[l]in c){e.transitionstyle=n[l];e.prefixstyle=p[l];e.transitionend=q[l];break}e.ischrome26&&(e.prefixstyle=p[1]);e.hastransition= e.transitionstyle;a:{l=["-webkit-grab","-moz-grab","grab"];if(e.ischrome&&!e.ischrome22||e.isie)l=[];for(n=0;n<l.length;n++)if(p=l[n],c.cursor=p,c.cursor==p){c=p;break a}c="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}e.cursorgrabvalue=c;e.hasmousecapture="setCapture"in f;e.hasMutationObserver=!1!==x;return G=e},S=function(h,c){function l(){var b=a.doc.css(d.trstyle);return b&&"matrix"==b.substr(0,6)?b.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function n(){var b= a.win;if("zIndex"in b)return b.zIndex();for(;0<b.length&&9!=b[0].nodeType;){var g=b.css("zIndex");if(!isNaN(g)&&0!=g)return parseInt(g);b=b.parent()}return!1}function e(b,g,k){g=b.css(g);b=parseFloat(g);return isNaN(b)?(b=y[g]||0,k=3==b?k?a.win.outerHeight()-a.win.innerHeight():a.win.outerWidth()-a.win.innerWidth():1,a.isie8&&b&&(b+=1),k?b:0):b}function p(b,g,k,c){a._bind(b,g,function(a){a=a?a:window.event;var c={original:a,target:a.target||a.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"== a.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){a.preventDefault?a.preventDefault():a.returnValue=!1;return!1},stopImmediatePropagation:function(){a.stopImmediatePropagation?a.stopImmediatePropagation():a.cancelBubble=!0}};"mousewheel"==g?(c.deltaY=-.025*a.wheelDelta,a.wheelDeltaX&&(c.deltaX=-.025*a.wheelDeltaX)):c.deltaY=a.detail;return k.call(b,c)},c)}function q(b,g,c){var e,d;0==b.deltaMode?(e=-Math.floor(a.opt.mousescrollstep/54*b.deltaX),d=-Math.floor(a.opt.mousescrollstep/54*b.deltaY)): 1==b.deltaMode&&(e=-Math.floor(b.deltaX*a.opt.mousescrollstep),d=-Math.floor(b.deltaY*a.opt.mousescrollstep));g&&a.opt.oneaxismousemode&&0==e&&d&&(e=d,d=0,c&&(0>e?a.getScrollLeft()>=a.page.maxw:0>=a.getScrollLeft())&&(d=e,e=0));e&&(a.scrollmom&&a.scrollmom.stop(),a.lastdeltax+=e,a.debounced("mousewheelx",function(){var b=a.lastdeltax;a.lastdeltax=0;a.rail.drag||a.doScrollLeftBy(b)},15));if(d){if(a.opt.nativeparentscrolling&&c&&!a.ispage&&!a.zoomactive)if(0>d){if(a.getScrollTop()>=a.page.maxh)return!0}else if(0>= a.getScrollTop())return!0;a.scrollmom&&a.scrollmom.stop();a.lastdeltay+=d;a.debounced("mousewheely",function(){var b=a.lastdeltay;a.lastdeltay=0;a.rail.drag||a.doScrollBy(b)},15)}b.stopImmediatePropagation();return b.preventDefault()}var a=this;this.version="3.6.5";this.name="nicescroll";this.me=c;this.opt={doc:f("body"),win:!1};f.extend(this.opt,J);this.opt.snapbackspeed=80;if(h)for(var H in a.opt)"undefined"!=typeof h[H]&&(a.opt[H]=h[H]);this.iddoc=(this.doc=a.opt.doc)&&this.doc[0]?this.doc[0].id|| "":"";this.ispage=/^BODY|HTML/.test(a.opt.win?a.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==a.opt.win;this.win=a.opt.win||(this.ispage?f(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?f(window):this.win;this.body=f("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=a.opt.autohidemode;this.page= this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning= !1;do this.id="ascrail"+P++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=a.opt.overflowx;this.overflowy=a.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0; this.detected=R();var d=f.extend({},this.detected);this.ishwscroll=(this.canhwscroll=d.hastransform&&a.opt.hwacceleration)&&a.haswrapper;this.hasreversehr=this.isrtlmode&&!d.iswebkit;this.istouchcapable=!1;!d.cantouch||d.isios||d.isandroid||!d.iswebkit&&!d.ismozilla||(this.istouchcapable=!0,d.cantouch=!1);a.opt.enablemouselockapi||(d.hasmousecapture=!1,d.haspointerlock=!1);this.debounced=function(b,g,c){var e=a.delaylist[b];a.delaylist[b]=g;e||(a.debouncedelayed=setTimeout(function(){var g=a.delaylist[b]; a.delaylist[b]=!1;g.call(a)},c))};var t=!1;this.synched=function(b,g){a.synclist[b]=g;(function(){t||(u(function(){t=!1;for(var b in a.synclist){var g=a.synclist[b];g&&g.call(a);a.synclist[b]=!1}}),t=!0)})();return b};this.unsynched=function(b){a.synclist[b]&&(a.synclist[b]=!1)};this.css=function(b,g){for(var c in g)a.saved.css.push([b,c,b.css(c)]),b.css(c,g[c])};this.scrollTop=function(b){return"undefined"==typeof b?a.getScrollTop():a.setScrollTop(b)};this.scrollLeft=function(b){return"undefined"== typeof b?a.getScrollLeft():a.setScrollLeft(b)};var B=function(a,g,c,e,d,f,l){this.st=a;this.ed=g;this.spd=c;this.p1=e||0;this.p2=d||1;this.p3=f||0;this.p4=l||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};B.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=1-((new Date).getTime()-this.ts)/this.spd,g=this.B2(a)+this.B3(a)+this.B4(a);return 0>a?this.ed:this.st+Math.round(this.df*g)},update:function(a, g){this.st=this.getNow();this.ed=a;this.spd=g;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};d.hastranslate3d&&d.isios&&this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(b){if(!b){if(b=l())return 16==b.length?-b[13]:-b[5];if(a.timerscroll&&a.timerscroll.bz)return a.timerscroll.bz.getNow()}return a.doc.translate.y};this.getScrollLeft=function(b){if(!b){if(b=l())return 16==b.length?-b[12]: -b[4];if(a.timerscroll&&a.timerscroll.bh)return a.timerscroll.bh.getNow()}return a.doc.translate.x};this.notifyScrollEvent=function(a){var g=document.createEvent("UIEvents");g.initUIEvent("scroll",!1,!0,window,1);g.niceevent=!0;a.dispatchEvent(g)};var L=this.isrtlmode?1:-1;d.hastranslate3d&&a.opt.enabletranslate3d?(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(d.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])}, this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*L+"px";a.doc.css(d.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])}):(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(d.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*L+"px";a.doc.css(d.trstyle,"translate("+ a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])})}else this.getScrollTop=function(){return a.docscroll.scrollTop()},this.setScrollTop=function(b){return setTimeout(function(){a.docscroll.scrollTop(b)},1)},this.getScrollLeft=function(){return a.detected.ismozilla&&a.isrtlmode?Math.abs(a.docscroll.scrollLeft()):a.docscroll.scrollLeft()},this.setScrollLeft=function(b){return setTimeout(function(){a.docscroll.scrollLeft(a.detected.ismozilla&&a.isrtlmode?-b:b)},1)};this.getTarget= function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1};this.hasParent=function(a,g){if(!a)return!1;for(var c=a.target||a.srcElement||a||!1;c&&c.id!=g;)c=c.parentNode||!1;return!1!==c};var y={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(a.isfixed){var b=a.win.offset(),g=a.getDocumentScrollOffset();b.top-=g.top; b.left-=g.left;return b}b=a.win.offset();if(!a.viewport)return b;g=a.viewport.offset();return{top:b.top-g.top,left:b.left-g.left}};this.updateScrollBar=function(b){if(a.ishwscroll)a.rail.css({height:a.win.innerHeight()-(a.opt.railpadding.top+a.opt.railpadding.bottom)}),a.railh&&a.railh.css({width:a.win.innerWidth()-(a.opt.railpadding.left+a.opt.railpadding.right)});else{var g=a.getOffset(),c=g.top,d=g.left-(a.opt.railpadding.left+a.opt.railpadding.right),c=c+e(a.win,"border-top-width",!0),d=d+(a.rail.align? a.win.outerWidth()-e(a.win,"border-right-width")-a.rail.width:e(a.win,"border-left-width")),f=a.opt.railoffset;f&&(f.top&&(c+=f.top),f.left&&(d+=f.left));a.railslocked||a.rail.css({top:c,left:d,height:(b?b.h:a.win.innerHeight())-(a.opt.railpadding.top+a.opt.railpadding.bottom)});a.zoom&&a.zoom.css({top:c+1,left:1==a.rail.align?d-20:d+a.rail.width+4});if(a.railh&&!a.railslocked){c=g.top;d=g.left;if(f=a.opt.railhoffset)f.top&&(c+=f.top),f.left&&(d+=f.left);b=a.railh.align?c+e(a.win,"border-top-width", !0)+a.win.innerHeight()-a.railh.height:c+e(a.win,"border-top-width",!0);d+=e(a.win,"border-left-width");a.railh.css({top:b-(a.opt.railpadding.top+a.opt.railpadding.bottom),left:d,width:a.railh.width})}}};this.doRailClick=function(b,g,c){var d;a.railslocked||(a.cancelEvent(b),g?(g=c?a.doScrollLeft:a.doScrollTop,d=c?(b.pageX-a.railh.offset().left-a.cursorwidth/2)*a.scrollratio.x:(b.pageY-a.rail.offset().top-a.cursorheight/2)*a.scrollratio.y,g(d)):(g=c?a.doScrollLeftBy:a.doScrollBy,d=c?a.scroll.x:a.scroll.y, b=c?b.pageX-a.railh.offset().left:b.pageY-a.rail.offset().top,c=c?a.view.w:a.view.h,g(d>=b?c:-c)))};a.hasanimationframe=u;a.hascancelanimationframe=v;a.hasanimationframe?a.hascancelanimationframe||(v=function(){a.cancelAnimationFrame=!0}):(u=function(a){return setTimeout(a,15-Math.floor(+new Date/1E3)%16)},v=clearInterval);this.init=function(){a.saved.css=[];if(d.isie7mobile||d.isoperamini)return!0;d.hasmstouch&&a.css(a.ispage?f("html"):a.win,{"-ms-touch-action":"none"});a.zindex="auto";a.zindex= a.ispage||"auto"!=a.opt.zindex?a.opt.zindex:n()||"auto";!a.ispage&&"auto"!=a.zindex&&a.zindex>z&&(z=a.zindex);a.isie&&0==a.zindex&&"auto"==a.opt.zindex&&(a.zindex="auto");if(!a.ispage||!d.cantouch&&!d.isieold&&!d.isie9mobile){var b=a.docscroll;a.ispage&&(b=a.haswrapper?a.win:a.doc);d.isie9mobile||a.css(b,{"overflow-y":"hidden"});a.ispage&&d.isie7&&("BODY"==a.doc[0].nodeName?a.css(f("html"),{"overflow-y":"hidden"}):"HTML"==a.doc[0].nodeName&&a.css(f("body"),{"overflow-y":"hidden"}));!d.isios||a.ispage|| a.haswrapper||a.css(f("body"),{"-webkit-overflow-scrolling":"touch"});var c=f(document.createElement("div"));c.css({position:"relative",top:0,"float":"right",width:a.opt.cursorwidth,height:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});c.hborder=parseFloat(c.outerHeight()-c.innerHeight());c.addClass("nicescroll-cursors"); a.cursor=c;var k=f(document.createElement("div"));k.attr("id",a.id);k.addClass("nicescroll-rails nicescroll-rails-vr");var e,l,h=["left","right","top","bottom"],K;for(K in h)l=h[K],(e=a.opt.railpadding[l])?k.css("padding-"+l,e+"px"):a.opt.railpadding[l]=0;k.append(c);k.width=Math.max(parseFloat(a.opt.cursorwidth),c.outerWidth());k.css({width:k.width+"px",zIndex:a.zindex,background:a.opt.background,cursor:"default"});k.visibility=!0;k.scrollable=!0;k.align="left"==a.opt.railalign?0:1;a.rail=k;c=a.rail.drag= !1;!a.opt.boxzoom||a.ispage||d.isieold||(c=document.createElement("div"),a.bind(c,"click",a.doZoom),a.bind(c,"mouseenter",function(){a.zoom.css("opacity",a.opt.cursoropacitymax)}),a.bind(c,"mouseleave",function(){a.zoom.css("opacity",a.opt.cursoropacitymin)}),a.zoom=f(c),a.zoom.css({cursor:"pointer","z-index":a.zindex,backgroundImage:"url("+a.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),a.opt.dblclickzoom&&a.bind(a.win,"dblclick",a.doZoom),d.cantouch&&a.opt.gesturezoom&& (a.ongesturezoom=function(b){1.5<b.scale&&a.doZoomIn(b);.8>b.scale&&a.doZoomOut(b);return a.cancelEvent(b)},a.bind(a.win,"gestureend",a.ongesturezoom)));a.railh=!1;var m;a.opt.horizrailenabled&&(a.css(b,{"overflow-x":"hidden"}),c=f(document.createElement("div")),c.css({position:"absolute",top:0,height:a.opt.cursorwidth,width:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius, "border-radius":a.opt.cursorborderradius}),d.isieold&&c.css({overflow:"hidden"}),c.wborder=parseFloat(c.outerWidth()-c.innerWidth()),c.addClass("nicescroll-cursors"),a.cursorh=c,m=f(document.createElement("div")),m.attr("id",a.id+"-hr"),m.addClass("nicescroll-rails nicescroll-rails-hr"),m.height=Math.max(parseFloat(a.opt.cursorwidth),c.outerHeight()),m.css({height:m.height+"px",zIndex:a.zindex,background:a.opt.background}),m.append(c),m.visibility=!0,m.scrollable=!0,m.align="top"==a.opt.railvalign? 0:1,a.railh=m,a.railh.drag=!1);a.ispage?(k.css({position:"fixed",top:"0px",height:"100%"}),k.align?k.css({right:"0px"}):k.css({left:"0px"}),a.body.append(k),a.railh&&(m.css({position:"fixed",left:"0px",width:"100%"}),m.align?m.css({bottom:"0px"}):m.css({top:"0px"}),a.body.append(m))):(a.ishwscroll?("static"==a.win.css("position")&&a.css(a.win,{position:"relative"}),b="HTML"==a.win[0].nodeName?a.body:a.win,f(b).scrollTop(0).scrollLeft(0),a.zoom&&(a.zoom.css({position:"absolute",top:1,right:0,"margin-right":k.width+ 4}),b.append(a.zoom)),k.css({position:"absolute",top:0}),k.align?k.css({right:0}):k.css({left:0}),b.append(k),m&&(m.css({position:"absolute",left:0,bottom:0}),m.align?m.css({bottom:0}):m.css({top:0}),b.append(m))):(a.isfixed="fixed"==a.win.css("position"),b=a.isfixed?"fixed":"absolute",a.isfixed||(a.viewport=a.getViewport(a.win[0])),a.viewport&&(a.body=a.viewport,0==/fixed|absolute/.test(a.viewport.css("position"))&&a.css(a.viewport,{position:"relative"})),k.css({position:b}),a.zoom&&a.zoom.css({position:b}), a.updateScrollBar(),a.body.append(k),a.zoom&&a.body.append(a.zoom),a.railh&&(m.css({position:b}),a.body.append(m))),d.isios&&a.css(a.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),d.isie&&a.opt.disableoutline&&a.win.attr("hideFocus","true"),d.iswebkit&&a.opt.disableoutline&&a.win.css({outline:"none"}));!1===a.opt.autohidemode?(a.autohidedom=!1,a.rail.css({opacity:a.opt.cursoropacitymax}),a.railh&&a.railh.css({opacity:a.opt.cursoropacitymax})):!0===a.opt.autohidemode|| "leave"===a.opt.autohidemode?(a.autohidedom=f().add(a.rail),d.isie8&&(a.autohidedom=a.autohidedom.add(a.cursor)),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh)),a.railh&&d.isie8&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"scroll"==a.opt.autohidemode?(a.autohidedom=f().add(a.rail),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh))):"cursor"==a.opt.autohidemode?(a.autohidedom=f().add(a.cursor),a.railh&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"hidden"==a.opt.autohidemode&&(a.autohidedom= !1,a.hide(),a.railslocked=!1);if(d.isie9mobile)a.scrollmom=new M(a),a.onmangotouch=function(){var b=a.getScrollTop(),c=a.getScrollLeft();if(b==a.scrollmom.lastscrolly&&c==a.scrollmom.lastscrollx)return!0;var g=b-a.mangotouch.sy,d=c-a.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(d,2)+Math.pow(g,2)))){var k=0>g?-1:1,e=0>d?-1:1,f=+new Date;a.mangotouch.lazy&&clearTimeout(a.mangotouch.lazy);80<f-a.mangotouch.tm||a.mangotouch.dry!=k||a.mangotouch.drx!=e?(a.scrollmom.stop(),a.scrollmom.reset(c,b), a.mangotouch.sy=b,a.mangotouch.ly=b,a.mangotouch.sx=c,a.mangotouch.lx=c,a.mangotouch.dry=k,a.mangotouch.drx=e,a.mangotouch.tm=f):(a.scrollmom.stop(),a.scrollmom.update(a.mangotouch.sx-d,a.mangotouch.sy-g),a.mangotouch.tm=f,g=Math.max(Math.abs(a.mangotouch.ly-b),Math.abs(a.mangotouch.lx-c)),a.mangotouch.ly=b,a.mangotouch.lx=c,2<g&&(a.mangotouch.lazy=setTimeout(function(){a.mangotouch.lazy=!1;a.mangotouch.dry=0;a.mangotouch.drx=0;a.mangotouch.tm=0;a.scrollmom.doMomentum(30)},100)))}},k=a.getScrollTop(), m=a.getScrollLeft(),a.mangotouch={sy:k,ly:k,dry:0,sx:m,lx:m,drx:0,lazy:!1,tm:0},a.bind(a.docscroll,"scroll",a.onmangotouch);else{if(d.cantouch||a.istouchcapable||a.opt.touchbehavior||d.hasmstouch){a.scrollmom=new M(a);a.ontouchstart=function(b){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;a.hasmoving=!1;if(!a.railslocked){var c;if(d.hasmstouch)for(c=b.target?b.target:!1;c;){var g=f(c).getNiceScroll();if(0<g.length&&g[0].me==a.me)break;if(0<g.length)return!1;if("DIV"==c.nodeName&& c.id==a.id)break;c=c.parentNode?c.parentNode:!1}a.cancelScroll();if((c=a.getTarget(b))&&/INPUT/i.test(c.nodeName)&&/range/i.test(c.type))return a.stopPropagation(b);!("clientX"in b)&&"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);a.forcescreen&&(g=b,b={original:b.original?b.original:b},b.clientX=g.screenX,b.clientY=g.screenY);a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,st:a.getScrollTop(),sl:a.getScrollLeft(),pt:2,dl:!1};if(a.ispage|| !a.opt.directionlockdeadzone)a.rail.drag.dl="f";else{var g=f(window).width(),k=f(window).height(),k=Math.max(0,Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)-k),g=Math.max(0,Math.max(document.body.scrollWidth,document.documentElement.scrollWidth)-g);a.rail.drag.ck=!a.rail.scrollable&&a.railh.scrollable?0<k?"v":!1:a.rail.scrollable&&!a.railh.scrollable?0<g?"h":!1:!1;a.rail.drag.ck||(a.rail.drag.dl="f")}a.opt.touchbehavior&&a.isiframe&&d.isie&&(g=a.win.position(),a.rail.drag.x+= g.left,a.rail.drag.y+=g.top);a.hasmoving=!1;a.lastmouseup=!1;a.scrollmom.reset(b.clientX,b.clientY);if(!d.cantouch&&!this.istouchcapable&&!b.pointerType){if(!c||!/INPUT|SELECT|TEXTAREA/i.test(c.nodeName))return!a.ispage&&d.hasmousecapture&&c.setCapture(),a.opt.touchbehavior?(c.onclick&&!c._onclick&&(c._onclick=c.onclick,c.onclick=function(b){if(a.hasmoving)return!1;c._onclick.call(this,b)}),a.cancelEvent(b)):a.stopPropagation(b);/SUBMIT|CANCEL|BUTTON/i.test(f(c).attr("type"))&&(pc={tg:c,click:!1}, a.preventclick=pc)}}};a.ontouchend=function(b){if(!a.rail.drag)return!0;if(2==a.rail.drag.pt){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;a.scrollmom.doMomentum();a.rail.drag=!1;if(a.hasmoving&&(a.lastmouseup=!0,a.hideCursor(),d.hasmousecapture&&document.releaseCapture(),!d.cantouch))return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmouseup(b)};var p=a.opt.touchbehavior&&a.isiframe&&!d.hasmousecapture;a.ontouchmove=function(b,c){if(!a.rail.drag||b.targetTouches&& a.opt.preventmultitouchscrolling&&1<b.targetTouches.length||b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;if(2==a.rail.drag.pt){if(d.cantouch&&d.isios&&"undefined"==typeof b.original)return!0;a.hasmoving=!0;a.preventclick&&!a.preventclick.click&&(a.preventclick.click=a.preventclick.tg.onclick||!1,a.preventclick.tg.onclick=a.onpreventclick);b=f.extend({original:b},b);"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);if(a.forcescreen){var g= b;b={original:b.original?b.original:b};b.clientX=g.screenX;b.clientY=g.screenY}var k,g=k=0;p&&!c&&(k=a.win.position(),g=-k.left,k=-k.top);var e=b.clientY+k;k=e-a.rail.drag.y;var l=b.clientX+g,w=l-a.rail.drag.x,h=a.rail.drag.st-k;a.ishwscroll&&a.opt.bouncescroll?0>h?h=Math.round(h/2):h>a.page.maxh&&(h=a.page.maxh+Math.round((h-a.page.maxh)/2)):(0>h&&(e=h=0),h>a.page.maxh&&(h=a.page.maxh,e=0));var r;a.railh&&a.railh.scrollable&&(r=a.isrtlmode?w-a.rail.drag.sl:a.rail.drag.sl-w,a.ishwscroll&&a.opt.bouncescroll? 0>r?r=Math.round(r/2):r>a.page.maxw&&(r=a.page.maxw+Math.round((r-a.page.maxw)/2)):(0>r&&(l=r=0),r>a.page.maxw&&(r=a.page.maxw,l=0)));g=!1;if(a.rail.drag.dl)g=!0,"v"==a.rail.drag.dl?r=a.rail.drag.sl:"h"==a.rail.drag.dl&&(h=a.rail.drag.st);else{k=Math.abs(k);var w=Math.abs(w),m=a.opt.directionlockdeadzone;if("v"==a.rail.drag.ck){if(k>m&&w<=.3*k)return a.rail.drag=!1,!0;w>m&&(a.rail.drag.dl="f",f("body").scrollTop(f("body").scrollTop()))}else if("h"==a.rail.drag.ck){if(w>m&&k<=.3*w)return a.rail.drag= !1,!0;k>m&&(a.rail.drag.dl="f",f("body").scrollLeft(f("body").scrollLeft()))}}a.synched("touchmove",function(){a.rail.drag&&2==a.rail.drag.pt&&(a.prepareTransition&&a.prepareTransition(0),a.rail.scrollable&&a.setScrollTop(h),a.scrollmom.update(l,e),a.railh&&a.railh.scrollable?(a.setScrollLeft(r),a.showCursor(h,r)):a.showCursor(h),d.isie10&&document.selection.clear())});d.ischrome&&a.istouchcapable&&(g=!1);if(g)return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmousemove(b)}}a.onmousedown= function(b,c){if(!a.rail.drag||1==a.rail.drag.pt){if(a.railslocked)return a.cancelEvent(b);a.cancelScroll();a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,pt:1,hr:!!c};var g=a.getTarget(b);!a.ispage&&d.hasmousecapture&&g.setCapture();a.isiframe&&!d.hasmousecapture&&(a.saved.csspointerevents=a.doc.css("pointer-events"),a.css(a.doc,{"pointer-events":"none"}));a.hasmoving=!1;return a.cancelEvent(b)}};a.onmouseup=function(b){if(a.rail.drag){if(1!=a.rail.drag.pt)return!0;d.hasmousecapture&& document.releaseCapture();a.isiframe&&!d.hasmousecapture&&a.doc.css("pointer-events",a.saved.csspointerevents);a.rail.drag=!1;a.hasmoving&&a.triggerScrollEnd();return a.cancelEvent(b)}};a.onmousemove=function(b){if(a.rail.drag){if(1==a.rail.drag.pt){if(d.ischrome&&0==b.which)return a.onmouseup(b);a.cursorfreezed=!0;a.hasmoving=!0;if(a.rail.drag.hr){a.scroll.x=a.rail.drag.sx+(b.clientX-a.rail.drag.x);0>a.scroll.x&&(a.scroll.x=0);var c=a.scrollvaluemaxw;a.scroll.x>c&&(a.scroll.x=c)}else a.scroll.y= a.rail.drag.sy+(b.clientY-a.rail.drag.y),0>a.scroll.y&&(a.scroll.y=0),c=a.scrollvaluemax,a.scroll.y>c&&(a.scroll.y=c);a.synched("mousemove",function(){a.rail.drag&&1==a.rail.drag.pt&&(a.showCursor(),a.rail.drag.hr?a.hasreversehr?a.doScrollLeft(a.scrollvaluemaxw-Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollLeft(Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollTop(Math.round(a.scroll.y*a.scrollratio.y),a.opt.cursordragspeed))});return a.cancelEvent(b)}}else a.checkarea= 0};if(d.cantouch||a.opt.touchbehavior)a.onpreventclick=function(b){if(a.preventclick)return a.preventclick.tg.onclick=a.preventclick.click,a.preventclick=!1,a.cancelEvent(b)},a.bind(a.win,"mousedown",a.ontouchstart),a.onclick=d.isios?!1:function(b){return a.lastmouseup?(a.lastmouseup=!1,a.cancelEvent(b)):!0},a.opt.grabcursorenabled&&d.cursorgrabvalue&&(a.css(a.ispage?a.doc:a.win,{cursor:d.cursorgrabvalue}),a.css(a.rail,{cursor:d.cursorgrabvalue}));else{var q=function(b){if(a.selectiondrag){if(b){var c= a.win.outerHeight();b=b.pageY-a.selectiondrag.top;0<b&&b<c&&(b=0);b>=c&&(b-=c);a.selectiondrag.df=b}0!=a.selectiondrag.df&&(a.doScrollBy(2*-Math.floor(a.selectiondrag.df/6)),a.debounced("doselectionscroll",function(){q()},50))}};a.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};a.onselectionstart=function(b){a.ispage||(a.selectiondrag=a.win.offset())};a.onselectionend= function(b){a.selectiondrag=!1};a.onselectiondrag=function(b){a.selectiondrag&&a.hasTextSelected()&&a.debounced("selectionscroll",function(){q(b)},250)}}d.hasw3ctouch?(a.css(a.rail,{"touch-action":"none"}),a.css(a.cursor,{"touch-action":"none"}),a.bind(a.win,"pointerdown",a.ontouchstart),a.bind(document,"pointerup",a.ontouchend),a.bind(document,"pointermove",a.ontouchmove)):d.hasmstouch?(a.css(a.rail,{"-ms-touch-action":"none"}),a.css(a.cursor,{"-ms-touch-action":"none"}),a.bind(a.win,"MSPointerDown", a.ontouchstart),a.bind(document,"MSPointerUp",a.ontouchend),a.bind(document,"MSPointerMove",a.ontouchmove),a.bind(a.cursor,"MSGestureHold",function(a){a.preventDefault()}),a.bind(a.cursor,"contextmenu",function(a){a.preventDefault()})):this.istouchcapable&&(a.bind(a.win,"touchstart",a.ontouchstart),a.bind(document,"touchend",a.ontouchend),a.bind(document,"touchcancel",a.ontouchend),a.bind(document,"touchmove",a.ontouchmove));if(a.opt.cursordragontouch||!d.cantouch&&!a.opt.touchbehavior)a.rail.css({cursor:"default"}), a.railh&&a.railh.css({cursor:"default"}),a.jqbind(a.rail,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.rail,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.rail,"click",function(b){a.doRailClick(b,!1,!1)}),a.bind(a.rail,"dblclick",function(b){a.doRailClick(b,!0,!1)}),a.bind(a.cursor,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursor,"dblclick",function(b){a.cancelEvent(b)})), a.railh&&(a.jqbind(a.railh,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.railh,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.railh,"click",function(b){a.doRailClick(b,!1,!0)}),a.bind(a.railh,"dblclick",function(b){a.doRailClick(b,!0,!0)}),a.bind(a.cursorh,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursorh,"dblclick",function(b){a.cancelEvent(b)}))); d.cantouch||a.opt.touchbehavior?(a.bind(d.hasmousecapture?a.win:document,"mouseup",a.ontouchend),a.bind(document,"mousemove",a.ontouchmove),a.onclick&&a.bind(document,"click",a.onclick),a.opt.cursordragontouch&&(a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.cursorh&&a.bind(a.cursorh,"mousedown",function(b){a.onmousedown(b,!0)}),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onmouseup))):(a.bind(d.hasmousecapture?a.win:document,"mouseup",a.onmouseup),a.bind(document, "mousemove",a.onmousemove),a.onclick&&a.bind(document,"click",a.onclick),a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.railh&&(a.bind(a.cursorh,"mousedown",function(b){a.onmousedown(b,!0)}),a.bind(a.cursorh,"mouseup",a.onmouseup)),!a.ispage&&a.opt.enablescrollonselection&&(a.bind(a.win[0],"mousedown",a.onselectionstart),a.bind(document,"mouseup",a.onselectionend),a.bind(a.cursor,"mouseup",a.onselectionend),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onselectionend), a.bind(document,"mousemove",a.onselectiondrag)),a.zoom&&(a.jqbind(a.zoom,"mouseenter",function(){a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.zoom,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()})));a.opt.enablemousewheel&&(a.isiframe||a.bind(d.isie&&a.ispage?document:a.win,"mousewheel",a.onmousewheel),a.bind(a.rail,"mousewheel",a.onmousewheel),a.railh&&a.bind(a.railh,"mousewheel",a.onmousewheelhr));a.ispage||d.cantouch||/HTML|^BODY/.test(a.win[0].nodeName)|| (a.win.attr("tabindex")||a.win.attr({tabindex:O++}),a.jqbind(a.win,"focus",function(b){A=a.getTarget(b).id||!0;a.hasfocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"blur",function(b){A=!1;a.hasfocus=!1}),a.jqbind(a.win,"mouseenter",function(b){E=a.getTarget(b).id||!0;a.hasmousefocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"mouseleave",function(){E=!1;a.hasmousefocus=!1;a.rail.drag||a.hideCursor()}))}a.onkeypress=function(b){if(a.railslocked&&0==a.page.maxh)return!0; b=b?b:window.e;var c=a.getTarget(b);if(c&&/INPUT|TEXTAREA|SELECT|OPTION/.test(c.nodeName)&&(!c.getAttribute("type")&&!c.type||!/submit|button|cancel/i.tp)||f(c).attr("contenteditable"))return!0;if(a.hasfocus||a.hasmousefocus&&!A||a.ispage&&!A&&!E){c=b.keyCode;if(a.railslocked&&27!=c)return a.cancelEvent(b);var g=b.ctrlKey||!1,k=b.shiftKey||!1,d=!1;switch(c){case 38:case 63233:a.doScrollBy(72);d=!0;break;case 40:case 63235:a.doScrollBy(-72);d=!0;break;case 37:case 63232:a.railh&&(g?a.doScrollLeft(0): a.doScrollLeftBy(72),d=!0);break;case 39:case 63234:a.railh&&(g?a.doScrollLeft(a.page.maxw):a.doScrollLeftBy(-72),d=!0);break;case 33:case 63276:a.doScrollBy(a.view.h);d=!0;break;case 34:case 63277:a.doScrollBy(-a.view.h);d=!0;break;case 36:case 63273:a.railh&&g?a.doScrollPos(0,0):a.doScrollTo(0);d=!0;break;case 35:case 63275:a.railh&&g?a.doScrollPos(a.page.maxw,a.page.maxh):a.doScrollTo(a.page.maxh);d=!0;break;case 32:a.opt.spacebarenabled&&(k?a.doScrollBy(a.view.h):a.doScrollBy(-a.view.h),d=!0); break;case 27:a.zoomactive&&(a.doZoom(),d=!0)}if(d)return a.cancelEvent(b)}};a.opt.enablekeyboard&&a.bind(document,d.isopera&&!d.isopera12?"keypress":"keydown",a.onkeypress);a.bind(document,"keydown",function(b){b.ctrlKey&&(a.wheelprevented=!0)});a.bind(document,"keyup",function(b){b.ctrlKey||(a.wheelprevented=!1)});a.bind(window,"blur",function(b){a.wheelprevented=!1});a.bind(window,"resize",a.lazyResize);a.bind(window,"orientationchange",a.lazyResize);a.bind(window,"load",a.lazyResize);if(d.ischrome&& !a.ispage&&!a.haswrapper){var t=a.win.attr("style"),k=parseFloat(a.win.css("width"))+1;a.win.css("width",k);a.synched("chromefix",function(){a.win.attr("style",t)})}a.onAttributeChange=function(b){a.lazyResize(a.isieold?250:30)};!1!==x&&(a.observerbody=new x(function(b){b.forEach(function(b){if("attributes"==b.type)return f("body").hasClass("modal-open")&&!f.contains(f(".modal-dialog")[0],a.doc[0])?a.hide():a.show()});if(document.body.scrollHeight!=a.page.maxh)return a.lazyResize(30)}),a.observerbody.observe(document.body, {childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));a.ispage||a.haswrapper||(!1!==x?(a.observer=new x(function(b){b.forEach(a.onAttributeChange)}),a.observer.observe(a.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),a.observerremover=new x(function(b){b.forEach(function(b){if(0<b.removedNodes.length)for(var c in b.removedNodes)if(a&&b.removedNodes[c]==a.win[0])return a.remove()})}),a.observerremover.observe(a.win[0].parentNode,{childList:!0,characterData:!1, attributes:!1,subtree:!1})):(a.bind(a.win,d.isie&&!d.isie9?"propertychange":"DOMAttrModified",a.onAttributeChange),d.isie9&&a.win[0].attachEvent("onpropertychange",a.onAttributeChange),a.bind(a.win,"DOMNodeRemoved",function(b){b.target==a.win[0]&&a.remove()})));!a.ispage&&a.opt.boxzoom&&a.bind(window,"resize",a.resizeZoom);a.istextarea&&(a.bind(a.win,"keydown",a.lazyResize),a.bind(a.win,"mouseup",a.lazyResize));a.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var N=function(){a.iframexd=!1;var b; try{b="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(c){a.iframexd=!0,b=!1}if(a.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;a.forcescreen=!0;a.isiframe&&(a.iframe={doc:f(b),html:a.doc.contents().find("html")[0],body:a.doc.contents().find("body")[0]},a.getContentSize=function(){return{w:Math.max(a.iframe.html.scrollWidth,a.iframe.body.scrollWidth),h:Math.max(a.iframe.html.scrollHeight,a.iframe.body.scrollHeight)}}, a.docscroll=f(a.iframe.body));if(!d.isios&&a.opt.iframeautoresize&&!a.isiframe){a.win.scrollTop(0);a.doc.height("");var g=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);a.doc.height(g)}a.lazyResize(30);d.isie7&&a.css(f(a.iframe.html),{"overflow-y":"hidden"});a.css(f(a.iframe.body),{"overflow-y":"hidden"});d.isios&&a.haswrapper&&a.css(f(b.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in this?a.bind(this.contentWindow,"scroll",a.onscroll):a.bind(b,"scroll", a.onscroll);a.opt.enablemousewheel&&a.bind(b,"mousewheel",a.onmousewheel);a.opt.enablekeyboard&&a.bind(b,d.isopera?"keypress":"keydown",a.onkeypress);if(d.cantouch||a.opt.touchbehavior)a.bind(b,"mousedown",a.ontouchstart),a.bind(b,"mousemove",function(b){return a.ontouchmove(b,!0)}),a.opt.grabcursorenabled&&d.cursorgrabvalue&&a.css(f(b.body),{cursor:d.cursorgrabvalue});a.bind(b,"mouseup",a.ontouchend);a.zoom&&(a.opt.dblclickzoom&&a.bind(b,"dblclick",a.doZoom),a.ongesturezoom&&a.bind(b,"gestureend", a.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){N.call(a.doc[0],!1)},500);a.bind(this.doc,"load",N)}};this.showCursor=function(b,c){a.cursortimeout&&(clearTimeout(a.cursortimeout),a.cursortimeout=0);if(a.rail){a.autohidedom&&(a.autohidedom.stop().css({opacity:a.opt.cursoropacitymax}),a.cursoractive=!0);a.rail.drag&&1==a.rail.drag.pt||("undefined"!=typeof b&&!1!==b&&(a.scroll.y=Math.round(1*b/a.scrollratio.y)),"undefined"!=typeof c&&(a.scroll.x= Math.round(1*c/a.scrollratio.x)));a.cursor.css({height:a.cursorheight,top:a.scroll.y});if(a.cursorh){var k=a.hasreversehr?a.scrollvaluemaxw-a.scroll.x:a.scroll.x;!a.rail.align&&a.rail.visibility?a.cursorh.css({width:a.cursorwidth,left:k+a.rail.width}):a.cursorh.css({width:a.cursorwidth,left:k});a.cursoractive=!0}a.zoom&&a.zoom.stop().css({opacity:a.opt.cursoropacitymax})}};this.hideCursor=function(b){a.cursortimeout||!a.rail||!a.autohidedom||a.hasmousefocus&&"leave"==a.opt.autohidemode||(a.cursortimeout= setTimeout(function(){a.rail.active&&a.showonmouseevent||(a.autohidedom.stop().animate({opacity:a.opt.cursoropacitymin}),a.zoom&&a.zoom.stop().animate({opacity:a.opt.cursoropacitymin}),a.cursoractive=!1);a.cursortimeout=0},b||a.opt.hidecursordelay))};this.noticeCursor=function(b,c,k){a.showCursor(c,k);a.rail.active||a.hideCursor(b)};this.getContentSize=a.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}: a.haswrapper?function(){return{w:a.doc.outerWidth()+parseInt(a.win.css("paddingLeft"))+parseInt(a.win.css("paddingRight")),h:a.doc.outerHeight()+parseInt(a.win.css("paddingTop"))+parseInt(a.win.css("paddingBottom"))}}:function(){return{w:a.docscroll[0].scrollWidth,h:a.docscroll[0].scrollHeight}};this.onResize=function(b,c){if(!a||!a.win)return!1;if(!a.haswrapper&&!a.ispage){if("none"==a.win.css("display"))return a.visibility&&a.hideRail().hideRailHr(),!1;a.hidden||a.visibility||a.showRail().showRailHr()}var k= a.page.maxh,d=a.page.maxw,e=a.view.h,f=a.view.w;a.view={w:a.ispage?a.win.width():parseInt(a.win[0].clientWidth),h:a.ispage?a.win.height():parseInt(a.win[0].clientHeight)};a.page=c?c:a.getContentSize();a.page.maxh=Math.max(0,a.page.h-a.view.h);a.page.maxw=Math.max(0,a.page.w-a.view.w);if(a.page.maxh==k&&a.page.maxw==d&&a.view.w==f&&a.view.h==e){if(a.ispage)return a;k=a.win.offset();if(a.lastposition&&(d=a.lastposition,d.top==k.top&&d.left==k.left))return a;a.lastposition=k}0==a.page.maxh?(a.hideRail(), a.scrollvaluemax=0,a.scroll.y=0,a.scrollratio.y=0,a.cursorheight=0,a.setScrollTop(0),a.rail.scrollable=!1):(a.page.maxh-=a.opt.railpadding.top+a.opt.railpadding.bottom,a.rail.scrollable=!0);0==a.page.maxw?(a.hideRailHr(),a.scrollvaluemaxw=0,a.scroll.x=0,a.scrollratio.x=0,a.cursorwidth=0,a.setScrollLeft(0),a.railh&&(a.railh.scrollable=!1)):(a.page.maxw-=a.opt.railpadding.left+a.opt.railpadding.right,a.railh&&(a.railh.scrollable=!0));a.railslocked=a.locked||0==a.page.maxh&&0==a.page.maxw;if(a.railslocked)return a.ispage|| a.updateScrollBar(a.view),!1;a.hidden||a.visibility?a.hidden||a.railh.visibility||a.showRailHr():a.showRail().showRailHr();a.istextarea&&a.win.css("resize")&&"none"!=a.win.css("resize")&&(a.view.h-=20);a.cursorheight=Math.min(a.view.h,Math.round(a.view.h/a.page.h*a.view.h));a.cursorheight=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorheight);a.cursorwidth=Math.min(a.view.w,Math.round(a.view.w/a.page.w*a.view.w));a.cursorwidth=a.opt.cursorfixedheight?a.opt.cursorfixedheight: Math.max(a.opt.cursorminheight,a.cursorwidth);a.scrollvaluemax=a.view.h-a.cursorheight-a.cursor.hborder-(a.opt.railpadding.top+a.opt.railpadding.bottom);a.railh&&(a.railh.width=0<a.page.maxh?a.view.w-a.rail.width:a.view.w,a.scrollvaluemaxw=a.railh.width-a.cursorwidth-a.cursorh.wborder-(a.opt.railpadding.left+a.opt.railpadding.right));a.ispage||a.updateScrollBar(a.view);a.scrollratio={x:a.page.maxw/a.scrollvaluemaxw,y:a.page.maxh/a.scrollvaluemax};a.getScrollTop()>a.page.maxh?a.doScrollTop(a.page.maxh): (a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y)),a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)),a.cursoractive&&a.noticeCursor());a.scroll.y&&0==a.getScrollTop()&&a.doScrollTo(Math.floor(a.scroll.y*a.scrollratio.y));return a};this.resize=a.onResize;this.lazyResize=function(b){b=isNaN(b)?30:b;a.debounced("resize",a.resize,b);return a};this.jqbind=function(b,c,d){a.events.push({e:b,n:c,f:d,q:!0});f(b).bind(c,d)};this.bind=function(b,c,k,e){var f="jquery"in b?b[0]:b;"mousewheel"== c?window.addEventListener||"onwheel"in document?a._bind(f,"wheel",k,e||!1):(b="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",p(f,b,k,e||!1),"DOMMouseScroll"==b&&p(f,"MozMousePixelScroll",k,e||!1)):f.addEventListener?(d.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&a._bind(f,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(a){if(a.touches){if(2>a.touches.length){var b=a.touches.length?a.touches[0]:a;b.original=a;k.call(this,b)}}else a.changedTouches&& (b=a.changedTouches[0],b.original=a,k.call(this,b))},e||!1),a._bind(f,c,k,e||!1),d.cantouch&&"mouseup"==c&&a._bind(f,"touchcancel",k,e||!1)):a._bind(f,c,function(b){(b=b||window.event||!1)&&b.srcElement&&(b.target=b.srcElement);"pageY"in b||(b.pageX=b.clientX+document.documentElement.scrollLeft,b.pageY=b.clientY+document.documentElement.scrollTop);return!1===k.call(f,b)||!1===e?a.cancelEvent(b):!0})};d.haseventlistener?(this._bind=function(b,c,d,e){a.events.push({e:b,n:c,f:d,b:e,q:!1});b.addEventListener(c, d,e||!1)},this.cancelEvent=function(a){if(!a)return!1;a=a.original?a.original:a;a.preventDefault();a.stopPropagation();a.preventManipulation&&a.preventManipulation();return!1},this.stopPropagation=function(a){if(!a)return!1;a=a.original?a.original:a;a.stopPropagation();return!1},this._unbind=function(a,c,d,e){a.removeEventListener(c,d,e)}):(this._bind=function(b,c,d,e){a.events.push({e:b,n:c,f:d,b:e,q:!1});b.attachEvent?b.attachEvent("on"+c,d):b["on"+c]=d},this.cancelEvent=function(a){a=window.event|| !1;if(!a)return!1;a.cancelBubble=!0;a.cancel=!0;return a.returnValue=!1},this.stopPropagation=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;return!1},this._unbind=function(a,c,d,e){a.detachEvent?a.detachEvent("on"+c,d):a["on"+c]=!1});this.unbindAll=function(){for(var b=0;b<a.events.length;b++){var c=a.events[b];c.q?c.e.unbind(c.n,c.f):a._unbind(c.e,c.n,c.f,c.b)}};this.showRail=function(){0==a.page.maxh||!a.ispage&&"none"==a.win.css("display")||(a.visibility=!0,a.rail.visibility= !0,a.rail.css("display","block"));return a};this.showRailHr=function(){if(!a.railh)return a;0==a.page.maxw||!a.ispage&&"none"==a.win.css("display")||(a.railh.visibility=!0,a.railh.css("display","block"));return a};this.hideRail=function(){a.visibility=!1;a.rail.visibility=!1;a.rail.css("display","none");return a};this.hideRailHr=function(){if(!a.railh)return a;a.railh.visibility=!1;a.railh.css("display","none");return a};this.show=function(){a.hidden=!1;a.railslocked=!1;return a.showRail().showRailHr()}; this.hide=function(){a.hidden=!0;a.railslocked=!0;return a.hideRail().hideRailHr()};this.toggle=function(){return a.hidden?a.show():a.hide()};this.remove=function(){a.stop();a.cursortimeout&&clearTimeout(a.cursortimeout);a.debouncedelayed&&clearTimeout(a.debouncedelayed);a.doZoomOut();a.unbindAll();d.isie9&&a.win[0].detachEvent("onpropertychange",a.onAttributeChange);!1!==a.observer&&a.observer.disconnect();!1!==a.observerremover&&a.observerremover.disconnect();!1!==a.observerbody&&a.observerbody.disconnect(); a.events=null;a.cursor&&a.cursor.remove();a.cursorh&&a.cursorh.remove();a.rail&&a.rail.remove();a.railh&&a.railh.remove();a.zoom&&a.zoom.remove();for(var b=0;b<a.saved.css.length;b++){var c=a.saved.css[b];c[0].css(c[1],"undefined"==typeof c[2]?"":c[2])}a.saved=!1;a.me.data("__nicescroll","");var e=f.nicescroll;e.each(function(b){if(this&&this.id===a.id){delete e[b];for(var c=++b;c<e.length;c++,b++)e[b]=e[c];e.length--;e.length&&delete e[e.length]}});for(var l in a)a[l]=null,delete a[l];a=null};this.scrollstart= function(b){this.onscrollstart=b;return a};this.scrollend=function(b){this.onscrollend=b;return a};this.scrollcancel=function(b){this.onscrollcancel=b;return a};this.zoomin=function(b){this.onzoomin=b;return a};this.zoomout=function(b){this.onzoomout=b;return a};this.isScrollable=function(a){a=a.target?a.target:a;if("OPTION"==a.nodeName)return!0;for(;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a),c=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(c))return a.clientHeight!= a.scrollHeight;a=a.parentNode?a.parentNode:!1}return!1};this.getViewport=function(a){for(a=a&&a.parentNode?a.parentNode:!1;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a);if(/fixed|absolute/.test(c.css("position")))return c;var d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d)&&a.clientHeight!=a.scrollHeight||0<c.getNiceScroll().length)return c;a=a.parentNode?a.parentNode:!1}return!1};this.triggerScrollEnd=function(){if(a.onscrollend){var b=a.getScrollLeft(), c=a.getScrollTop();a.onscrollend.call(a,{type:"scrollend",current:{x:b,y:c},end:{x:b,y:c}})}};this.onmousewheel=function(b){if(!a.wheelprevented){if(a.railslocked)return a.debounced("checkunlock",a.resize,250),!0;if(a.rail.drag)return a.cancelEvent(b);"auto"==a.opt.oneaxismousemode&&0!=b.deltaX&&(a.opt.oneaxismousemode=!1);if(a.opt.oneaxismousemode&&0==b.deltaX&&!a.rail.scrollable)return a.railh&&a.railh.scrollable?a.onmousewheelhr(b):!0;var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+ 600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;if(a.nativescrollingarea)return!0;if(b=q(b,!1,d))a.checkarea=0;return b}};this.onmousewheelhr=function(b){if(!a.wheelprevented){if(a.railslocked||!a.railh.scrollable)return!0;if(a.rail.drag)return a.cancelEvent(b);var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;return a.nativescrollingarea?!0:a.railslocked?a.cancelEvent(b):q(b,!0,d)}};this.stop=function(){a.cancelScroll(); a.scrollmon&&a.scrollmon.stop();a.cursorfreezed=!1;a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.noticeCursor();return a};this.getTransitionSpeed=function(b){b=Math.min(Math.round(10*a.opt.scrollspeed),Math.round(b/20*a.opt.scrollspeed));return 20<b?b:0};a.opt.smoothscroll?a.ishwscroll&&d.hastransition&&a.opt.usetransition&&a.opt.smoothscroll?(this.prepareTransition=function(b,c){var e=c?20<b?b:0:a.getTransitionSpeed(b),f=e?d.prefixstyle+"transform "+e+"ms ease-out":"";a.lasttransitionstyle&& a.lasttransitionstyle==f||(a.lasttransitionstyle=f,a.doc.css(d.transitionstyle,f));return e},this.doScrollLeft=function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,e){var f=a.getScrollTop(),l=a.getScrollLeft();(0>(a.newscrolly-f)*(c-f)||0>(a.newscrollx-l)*(b-l))&&a.cancelScroll();0==a.opt.bouncescroll&&(0>c?c=0:c>a.page.maxh&&(c= a.page.maxh),0>b?b=0:b>a.page.maxw&&(b=a.page.maxw));if(a.scrollrunning&&b==a.newscrollx&&c==a.newscrolly)return!1;a.newscrolly=c;a.newscrollx=b;a.newscrollspeed=e||!1;if(a.timer)return!1;a.timer=setTimeout(function(){var e=a.getScrollTop(),f=a.getScrollLeft(),k=Math.round(Math.sqrt(Math.pow(b-f,2)+Math.pow(c-e,2))),k=a.newscrollspeed&&1<a.newscrollspeed?a.newscrollspeed:a.getTransitionSpeed(k);a.newscrollspeed&&1>=a.newscrollspeed&&(k*=a.newscrollspeed);a.prepareTransition(k,!0);a.timerscroll&&a.timerscroll.tm&& clearInterval(a.timerscroll.tm);0<k&&(!a.scrollrunning&&a.onscrollstart&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:f,y:e},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:k}),d.transitionend?a.scrollendtrapped||(a.scrollendtrapped=!0,a.bind(a.doc,d.transitionend,a.onScrollTransitionEnd,!1)):(a.scrollendtrapped&&clearTimeout(a.scrollendtrapped),a.scrollendtrapped=setTimeout(a.onScrollTransitionEnd,k)),a.timerscroll={bz:new B(e,a.newscrolly,k,0,0,.58,1),bh:new B(f,a.newscrollx, k,0,0,.58,1)},a.cursorfreezed||(a.timerscroll.tm=setInterval(function(){a.showCursor(a.getScrollTop(),a.getScrollLeft())},60)));a.synched("doScroll-set",function(){a.timer=0;a.scrollendtrapped&&(a.scrollrunning=!0);a.setScrollTop(a.newscrolly);a.setScrollLeft(a.newscrollx);if(!a.scrollendtrapped)a.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!a.scrollendtrapped)return!0;var b=a.getScrollTop(),c=a.getScrollLeft();a.scrollrunning=!1;d.transitionend||clearTimeout(d.transitionend); a.scrollendtrapped=!1;a._unbind(a.doc[0],d.transitionend,a.onScrollTransitionEnd);a.prepareTransition(0);a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;a.cursorfreezed=!1;a.showCursor(b,c);return a},this.onScrollTransitionEnd=function(){a.scrollendtrapped&&a._unbind(a.doc[0],d.transitionend,a.onScrollTransitionEnd);a.scrollendtrapped=!1;a.prepareTransition(0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm); a.timerscroll=!1;var b=a.getScrollTop(),c=a.getScrollLeft();a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.noticeCursor(!1,b,c);a.cursorfreezed=!1;0>b?b=0:b>a.page.maxh&&(b=a.page.maxh);0>c?c=0:c>a.page.maxw&&(c=a.page.maxw);if(b!=a.newscrolly||c!=a.newscrollx)return a.doScrollPos(c,b,a.opt.snapbackspeed);a.onscrollend&&a.scrollrunning&&a.triggerScrollEnd();a.scrollrunning=!1}):(this.doScrollLeft=function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop= function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){function e(){if(a.cancelAnimationFrame)return!0;a.scrollrunning=!0;if(q=1-q)return a.timer=u(e)||1;var b=0,c,d,f=d=a.getScrollTop();if(a.dst.ay){f=a.bzscroll?a.dst.py+a.bzscroll.getNow()*a.dst.ay:a.newscrolly;c=f-d;if(0>c&&f<a.newscrolly||0<c&&f>a.newscrolly)f=a.newscrolly;a.setScrollTop(f);f==a.newscrolly&&(b=1)}else b=1;d=c=a.getScrollLeft();if(a.dst.ax){d=a.bzscroll?a.dst.px+ a.bzscroll.getNow()*a.dst.ax:a.newscrollx;c=d-c;if(0>c&&d<a.newscrollx||0<c&&d>a.newscrollx)d=a.newscrollx;a.setScrollLeft(d);d==a.newscrollx&&(b+=1)}else b+=1;2==b?(a.timer=0,a.cursorfreezed=!1,a.bzscroll=!1,a.scrollrunning=!1,0>f?f=0:f>a.page.maxh&&(f=a.page.maxh),0>d?d=0:d>a.page.maxw&&(d=a.page.maxw),d!=a.newscrollx||f!=a.newscrolly?a.doScrollPos(d,f):a.onscrollend&&a.triggerScrollEnd()):a.timer=u(e)||1}c="undefined"==typeof c||!1===c?a.getScrollTop(!0):c;if(a.timer&&a.newscrolly==c&&a.newscrollx== b)return!0;a.timer&&v(a.timer);a.timer=0;var f=a.getScrollTop(),l=a.getScrollLeft();(0>(a.newscrolly-f)*(c-f)||0>(a.newscrollx-l)*(b-l))&&a.cancelScroll();a.newscrolly=c;a.newscrollx=b;a.bouncescroll&&a.rail.visibility||(0>a.newscrolly?a.newscrolly=0:a.newscrolly>a.page.maxh&&(a.newscrolly=a.page.maxh));a.bouncescroll&&a.railh.visibility||(0>a.newscrollx?a.newscrollx=0:a.newscrollx>a.page.maxw&&(a.newscrollx=a.page.maxw));a.dst={};a.dst.x=b-l;a.dst.y=c-f;a.dst.px=l;a.dst.py=f;var h=Math.round(Math.sqrt(Math.pow(a.dst.x, 2)+Math.pow(a.dst.y,2)));a.dst.ax=a.dst.x/h;a.dst.ay=a.dst.y/h;var n=0,p=h;0==a.dst.x?(n=f,p=c,a.dst.ay=1,a.dst.py=0):0==a.dst.y&&(n=l,p=b,a.dst.ax=1,a.dst.px=0);h=a.getTransitionSpeed(h);d&&1>=d&&(h*=d);a.bzscroll=0<h?a.bzscroll?a.bzscroll.update(p,h):new B(n,p,h,0,1,0,1):!1;if(!a.timer){(f==a.page.maxh&&c>=a.page.maxh||l==a.page.maxw&&b>=a.page.maxw)&&a.checkContentSize();var q=1;a.cancelAnimationFrame=!1;a.timer=1;a.onscrollstart&&!a.scrollrunning&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:l, y:f},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:h});e();(f==a.page.maxh&&c>=f||l==a.page.maxw&&b>=l)&&a.checkContentSize();a.noticeCursor()}},this.cancelScroll=function(){a.timer&&v(a.timer);a.timer=0;a.bzscroll=!1;a.scrollrunning=!1;return a}):(this.doScrollLeft=function(b,c){var d=a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var e=b>a.page.maxw?a.page.maxw:b;0>e&&(e=0);var f= c>a.page.maxh?a.page.maxh:c;0>f&&(f=0);a.synched("scroll",function(){a.setScrollTop(f);a.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.y-b)*a.scrollratio.y):(a.timer?a.newscrolly:a.getScrollTop(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.h/2);d<-e?d=-e:d>a.page.maxh+e&&(d=a.page.maxh+e)}a.cursorfreezed=!1;e=a.getScrollTop(!0);if(0>d&&0>=e)return a.noticeCursor();if(d>a.page.maxh&&e>=a.page.maxh)return a.checkContentSize(), a.noticeCursor();a.doScrollTop(d)};this.doScrollLeftBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.x-b)*a.scrollratio.x):(a.timer?a.newscrollx:a.getScrollLeft(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.w/2);d<-e?d=-e:d>a.page.maxw+e&&(d=a.page.maxw+e)}a.cursorfreezed=!1;e=a.getScrollLeft(!0);if(0>d&&0>=e||d>a.page.maxw&&e>=a.page.maxw)return a.noticeCursor();a.doScrollLeft(d)};this.doScrollTo=function(b,c){a.cursorfreezed=!1;a.doScrollTop(b)};this.checkContentSize=function(){var b=a.getContentSize(); b.h==a.page.h&&b.w==a.page.w||a.resize(!1,b)};a.onscroll=function(b){a.rail.drag||a.cursorfreezed||a.synched("scroll",function(){a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.railh&&(a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)));a.noticeCursor()})};a.bind(a.docscroll,"scroll",a.onscroll);this.doZoomIn=function(b){if(!a.zoomactive){a.zoomactive=!0;a.zoomrestore={style:{}};var c="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "), e=a.win[0].style,l;for(l in c){var h=c[l];a.zoomrestore.style[h]="undefined"!=typeof e[h]?e[h]:""}a.zoomrestore.style.width=a.win.css("width");a.zoomrestore.style.height=a.win.css("height");a.zoomrestore.padding={w:a.win.outerWidth()-a.win.width(),h:a.win.outerHeight()-a.win.height()};d.isios4&&(a.zoomrestore.scrollTop=f(window).scrollTop(),f(window).scrollTop(0));a.win.css({position:d.isios4?"absolute":"fixed",top:0,left:0,"z-index":z+100,margin:"0px"});c=a.win.css("backgroundColor");(""==c||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(c))&& a.win.css("backgroundColor","#fff");a.rail.css({"z-index":z+101});a.zoom.css({"z-index":z+102});a.zoom.css("backgroundPosition","0px -18px");a.resizeZoom();a.onzoomin&&a.onzoomin.call(a);return a.cancelEvent(b)}};this.doZoomOut=function(b){if(a.zoomactive)return a.zoomactive=!1,a.win.css("margin",""),a.win.css(a.zoomrestore.style),d.isios4&&f(window).scrollTop(a.zoomrestore.scrollTop),a.rail.css({"z-index":a.zindex}),a.zoom.css({"z-index":a.zindex}),a.zoomrestore=!1,a.zoom.css("backgroundPosition", "0px 0px"),a.onResize(),a.onzoomout&&a.onzoomout.call(a),a.cancelEvent(b)};this.doZoom=function(b){return a.zoomactive?a.doZoomOut(b):a.doZoomIn(b)};this.resizeZoom=function(){if(a.zoomactive){var b=a.getScrollTop();a.win.css({width:f(window).width()-a.zoomrestore.padding.w+"px",height:f(window).height()-a.zoomrestore.padding.h+"px"});a.onResize();a.setScrollTop(Math.min(a.page.maxh,b))}};this.init();f.nicescroll.push(this)},M=function(f){var c=this;this.nc=f;this.steptime=this.lasttime=this.speedy= this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(f,h){c.stop();var e=c.time();c.steptime=0;c.lasttime=e;c.speedx=0;c.speedy=0;c.lastx=f;c.lasty=h;c.lastscrollx=-1;c.lastscrolly=-1};this.update=function(f,h){var e=c.time();c.steptime=e-c.lasttime;c.lasttime=e;var e=h-c.lasty,p=f-c.lastx,q=c.nc.getScrollTop(),a=c.nc.getScrollLeft(),q=q+ e,a=a+p;c.snapx=0>a||a>c.nc.page.maxw;c.snapy=0>q||q>c.nc.page.maxh;c.speedx=p;c.speedy=e;c.lastx=f;c.lasty=h};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(f,h){var e=!1;0>h?(h=0,e=!0):h>c.nc.page.maxh&&(h=c.nc.page.maxh,e=!0);0>f?(f=0,e=!0):f>c.nc.page.maxw&&(f=c.nc.page.maxw,e=!0);e?c.nc.doScrollPos(f,h,c.nc.opt.snapbackspeed):c.nc.triggerScrollEnd()};this.doMomentum=function(f){var h=c.time(), e=f?h+f:c.lasttime;f=c.nc.getScrollLeft();var p=c.nc.getScrollTop(),q=c.nc.page.maxh,a=c.nc.page.maxw;c.speedx=0<a?Math.min(60,c.speedx):0;c.speedy=0<q?Math.min(60,c.speedy):0;e=e&&60>=h-e;if(0>p||p>q||0>f||f>a)e=!1;f=c.speedx&&e?c.speedx:!1;if(c.speedy&&e&&c.speedy||f){var u=Math.max(16,c.steptime);50<u&&(f=u/50,c.speedx*=f,c.speedy*=f,u=50);c.demulxy=0;c.lastscrollx=c.nc.getScrollLeft();c.chkx=c.lastscrollx;c.lastscrolly=c.nc.getScrollTop();c.chky=c.lastscrolly;var d=c.lastscrollx,t=c.lastscrolly, v=function(){var e=600<c.time()-h?.04:.02;c.speedx&&(d=Math.floor(c.lastscrollx-c.speedx*(1-c.demulxy)),c.lastscrollx=d,0>d||d>a)&&(e=.1);c.speedy&&(t=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=t,0>t||t>q)&&(e=.1);c.demulxy=Math.min(1,c.demulxy+e);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=c.chkx&&c.stop(),c.chkx=d,c.nc.setScrollLeft(d));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=t,c.nc.setScrollTop(t));c.timer||(c.nc.hideCursor(),c.doSnapy(d, t))});1>c.demulxy?c.timer=setTimeout(v,u):(c.stop(),c.nc.hideCursor(),c.doSnapy(d,t))};v()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},y=f.fn.scrollTop;f.cssHooks.pageYOffset={get:function(h,c,l){return(c=f.data(h,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():y.call(h)},set:function(h,c){var l=f.data(h,"__nicescroll")||!1;l&&l.ishwscroll?l.setScrollTop(parseInt(c)):y.call(h,c);return this}};f.fn.scrollTop=function(h){if("undefined"==typeof h){var c=this[0]?f.data(this[0],"__nicescroll")|| !1:!1;return c&&c.ishwscroll?c.getScrollTop():y.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(h)):y.call(f(this),h)})};var C=f.fn.scrollLeft;f.cssHooks.pageXOffset={get:function(h,c,l){return(c=f.data(h,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollLeft():C.call(h)},set:function(h,c){var l=f.data(h,"__nicescroll")||!1;l&&l.ishwscroll?l.setScrollLeft(parseInt(c)):C.call(h,c);return this}};f.fn.scrollLeft=function(h){if("undefined"== typeof h){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():C.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(h)):C.call(f(this),h)})};var D=function(h){var c=this;this.length=0;this.name="nicescrollarray";this.each=function(e){for(var f=0,h=0;f<c.length;f++)e.call(c[f],h++);return c};this.push=function(e){c[c.length]=e;c.length++};this.eq=function(e){return c[e]};if(h)for(var l=0;l<h.length;l++){var n= f.data(h[l],"__nicescroll")||!1;n&&(this[this.length]=n,this.length++)}return this};(function(f,c,l){for(var n=0;n<c.length;n++)l(f,c[n])})(D.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(f,c){f[c]=function(){var f=arguments;return this.each(function(){this[c].apply(this,f)})}});f.fn.getNiceScroll=function(h){return"undefined"==typeof h?new D(this):this[h]&&f.data(this[h],"__nicescroll")||!1};f.extend(f.expr[":"],{nicescroll:function(h){return f.data(h,"__nicescroll")? !0:!1}});f.fn.niceScroll=function(h,c){"undefined"!=typeof c||"object"!=typeof h||"jquery"in h||(c=h,h=!1);c=f.extend({},c);var l=new D;"undefined"==typeof c&&(c={});h&&(c.doc=f(h),c.win=f(this));var n=!("doc"in c);n||"win"in c||(c.win=f(this));this.each(function(){var e=f(this).data("__nicescroll")||!1;e||(c.doc=n?f(this):c.doc,e=new S(c,f(this)),f(this).data("__nicescroll",e));l.push(e)});return 1==l.length?l[0]:l};window.NiceScroll={getjQuery:function(){return f}};f.nicescroll||(f.nicescroll=new D, f.nicescroll.options=J)});
CyrusSUEN/cdnjs
ajax/libs/jquery.nicescroll/3.6.5/jquery.nicescroll.min.js
JavaScript
mit
60,403
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.9.6 - 2015-01-12T20:24:40.589Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: 18, PAGE_UP: 33, PAGE_DOWN: 34, HOME: 36, END: 35, BACKSPACE: 8, DELETE: 46, COMMAND: 91, MAP: { 91 : "COMMAND", 8 : "BACKSPACE" , 9 : "TAB" , 13 : "ENTER" , 16 : "SHIFT" , 17 : "CTRL" , 18 : "ALT" , 19 : "PAUSEBREAK" , 20 : "CAPSLOCK" , 27 : "ESC" , 32 : "SPACE" , 33 : "PAGE_UP", 34 : "PAGE_DOWN" , 35 : "END" , 36 : "HOME" , 37 : "LEFT" , 38 : "UP" , 39 : "RIGHT" , 40 : "DOWN" , 43 : "+" , 44 : "PRINTSCREEN" , 45 : "INSERT" , 46 : "DELETE", 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 59 : ";", 61 : "=" , 65 : "A" , 66 : "B" , 67 : "C" , 68 : "D" , 69 : "E" , 70 : "F" , 71 : "G" , 72 : "H" , 73 : "I" , 74 : "J" , 75 : "K" , 76 : "L", 77 : "M" , 78 : "N" , 79 : "O" , 80 : "P" , 81 : "Q" , 82 : "R" , 83 : "S" , 84 : "T" , 85 : "U" , 86 : "V" , 87 : "W" , 88 : "X" , 89 : "Y" , 90 : "Z", 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9", 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/", 112 : "F1" , 113 : "F2" , 114 : "F3" , 115 : "F4" , 116 : "F5" , 117 : "F6" , 118 : "F7" , 119 : "F8" , 120 : "F9" , 121 : "F10" , 122 : "F11" , 123 : "F12", 144 : "NUMLOCK" , 145 : "SCROLLLOCK" , 186 : ";" , 187 : "=" , 188 : "," , 189 : "-" , 190 : "." , 191 : "/" , 192 : "`" , 219 : "[" , 220 : "\\" , 221 : "]" , 222 : "'" }, isControl: function (e) { var k = e.which; switch (k) { case KEY.COMMAND: case KEY.SHIFT: case KEY.CTRL: case KEY.ALT: return true; } if (e.metaKey) return true; return false; }, isFunctionKey: function (k) { k = k.which ? k.which : k; return k >= 112 && k <= 123; }, isVerticalMovement: function (k){ return ~[KEY.UP, KEY.DOWN].indexOf(k); }, isHorizontalMovement: function (k){ return ~[KEY.LEFT,KEY.RIGHT,KEY.BACKSPACE,KEY.DELETE].indexOf(k); } }; /** * Add querySelectorAll() to jqLite. * * jqLite find() is limited to lookups by tag name. * TODO This will change with future versions of AngularJS, to be removed when this happens * * See jqLite.find - why not use querySelectorAll? https://github.com/angular/angular.js/issues/3586 * See feat(jqLite): use querySelectorAll instead of getElementsByTagName in jqLite.find https://github.com/angular/angular.js/pull/3598 */ if (angular.element.prototype.querySelectorAll === undefined) { angular.element.prototype.querySelectorAll = function(selector) { return angular.element(this[0].querySelectorAll(selector)); }; } /** * Add closest() to jqLite. */ if (angular.element.prototype.closest === undefined) { angular.element.prototype.closest = function( selector) { var elem = this[0]; var matchesSelector = elem.matches || elem.webkitMatchesSelector || elem.mozMatchesSelector || elem.msMatchesSelector; while (elem) { if (matchesSelector.bind(elem)(selector)) { return elem; } else { elem = elem.parentElement; } } return false; }; } angular.module('ui.select', []) .constant('uiSelectConfig', { theme: 'bootstrap', searchEnabled: true, placeholder: '', // Empty by default, like HTML tag <select> refreshDelay: 1000, // In milliseconds closeOnSelect: true }) // See Rename minErr and make it accessible from outside https://github.com/angular/angular.js/issues/6913 .service('uiSelectMinErr', function() { var minErr = angular.$$minErr('ui.select'); return function() { var error = minErr.apply(this, arguments); var message = error.message.replace(new RegExp('\nhttp://errors.angularjs.org/.*'), ''); return new Error(message); }; }) /** * Parses "repeat" attribute. * * Taken from AngularJS ngRepeat source code * See https://github.com/angular/angular.js/blob/v1.2.15/src/ng/directive/ngRepeat.js#L211 * * Original discussion about parsing "repeat" attribute instead of fully relying on ng-repeat: * https://github.com/angular-ui/ui-select/commit/5dd63ad#commitcomment-5504697 */ .service('RepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinErr, $parse) { var self = this; /** * Example: * expression = "address in addresses | filter: {street: $select.search} track by $index" * itemName = "address", * source = "addresses | filter: {street: $select.search}", * trackByExp = "$index", */ self.parse = function(expression) { var match = expression.match(/^\s*(?:([\s\S]+?)\s+as\s+)?([\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/); if (!match) { throw uiSelectMinErr('iexp', "Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.", expression); } return { itemName: match[2], // (lhs) Left-hand side, source: $parse(match[3]), trackByExp: match[4], modelMapper: $parse(match[1] || match[2]) }; }; self.getGroupNgRepeatExpression = function() { return '$group in $select.groups'; }; self.getNgRepeatExpression = function(itemName, source, trackByExp, grouped) { var expression = itemName + ' in ' + (grouped ? '$group.items' : source); if (trackByExp) { expression += ' track by ' + trackByExp; } return expression; }; }]) /** * Contains ui-select "intelligence". * * The goal is to limit dependency on the DOM whenever possible and * put as much logic in the controller (instead of the link functions) as possible so it can be easily tested. */ .controller('uiSelectCtrl', ['$scope', '$element', '$timeout', '$filter', 'RepeatParser', 'uiSelectMinErr', 'uiSelectConfig', function($scope, $element, $timeout, $filter, RepeatParser, uiSelectMinErr, uiSelectConfig) { var ctrl = this; var EMPTY_SEARCH = ''; ctrl.placeholder = undefined; ctrl.search = EMPTY_SEARCH; ctrl.activeIndex = 0; ctrl.activeMatchIndex = -1; ctrl.items = []; ctrl.selected = undefined; ctrl.open = false; ctrl.focus = false; ctrl.focusser = undefined; //Reference to input element used to handle focus events ctrl.disabled = undefined; // Initialized inside uiSelect directive link function ctrl.searchEnabled = undefined; // Initialized inside uiSelect directive link function ctrl.resetSearchInput = undefined; // Initialized inside uiSelect directive link function ctrl.refreshDelay = undefined; // Initialized inside uiSelectChoices directive link function ctrl.multiple = false; // Initialized inside uiSelect directive link function ctrl.disableChoiceExpression = undefined; // Initialized inside uiSelect directive link function ctrl.tagging = {isActivated: false, fct: undefined}; ctrl.taggingTokens = {isActivated: false, tokens: undefined}; ctrl.lockChoiceExpression = undefined; // Initialized inside uiSelect directive link function ctrl.closeOnSelect = true; // Initialized inside uiSelect directive link function ctrl.clickTriggeredSelect = false; ctrl.$filter = $filter; ctrl.isEmpty = function() { return angular.isUndefined(ctrl.selected) || ctrl.selected === null || ctrl.selected === ''; }; var _searchInput = $element.querySelectorAll('input.ui-select-search'); if (_searchInput.length !== 1) { throw uiSelectMinErr('searchInput', "Expected 1 input.ui-select-search but got '{0}'.", _searchInput.length); } // Most of the time the user does not want to empty the search input when in typeahead mode function _resetSearchInput() { if (ctrl.resetSearchInput || (ctrl.resetSearchInput === undefined && uiSelectConfig.resetSearchInput)) { ctrl.search = EMPTY_SEARCH; //reset activeIndex if (ctrl.selected && ctrl.items.length && !ctrl.multiple) { ctrl.activeIndex = ctrl.items.indexOf(ctrl.selected); } } } // When the user clicks on ui-select, displays the dropdown list ctrl.activate = function(initSearchValue, avoidReset) { if (!ctrl.disabled && !ctrl.open) { if(!avoidReset) _resetSearchInput(); ctrl.focusser.prop('disabled', true); //Will reactivate it on .close() ctrl.open = true; ctrl.activeMatchIndex = -1; ctrl.activeIndex = ctrl.activeIndex >= ctrl.items.length ? 0 : ctrl.activeIndex; // ensure that the index is set to zero for tagging variants // that where first option is auto-selected if ( ctrl.activeIndex === -1 && ctrl.taggingLabel !== false ) { ctrl.activeIndex = 0; } // Give it time to appear before focus $timeout(function() { ctrl.search = initSearchValue || ctrl.search; _searchInput[0].focus(); }); } }; ctrl.findGroupByName = function(name) { return ctrl.groups && ctrl.groups.filter(function(group) { return group.name === name; })[0]; }; ctrl.parseRepeatAttr = function(repeatAttr, groupByExp) { function updateGroups(items) { ctrl.groups = []; angular.forEach(items, function(item) { var groupFn = $scope.$eval(groupByExp); var groupName = angular.isFunction(groupFn) ? groupFn(item) : item[groupFn]; var group = ctrl.findGroupByName(groupName); if(group) { group.items.push(item); } else { ctrl.groups.push({name: groupName, items: [item]}); } }); ctrl.items = []; ctrl.groups.forEach(function(group) { ctrl.items = ctrl.items.concat(group.items); }); } function setPlainItems(items) { ctrl.items = items; } var setItemsFn = groupByExp ? updateGroups : setPlainItems; ctrl.parserResult = RepeatParser.parse(repeatAttr); ctrl.isGrouped = !!groupByExp; ctrl.itemProperty = ctrl.parserResult.itemName; // See https://github.com/angular/angular.js/blob/v1.2.15/src/ng/directive/ngRepeat.js#L259 $scope.$watchCollection(ctrl.parserResult.source, function(items) { if (items === undefined || items === null) { // If the user specifies undefined or null => reset the collection // Special case: items can be undefined if the user did not initialized the collection on the scope // i.e $scope.addresses = [] is missing ctrl.items = []; } else { if (!angular.isArray(items)) { throw uiSelectMinErr('items', "Expected an array but got '{0}'.", items); } else { if (ctrl.multiple){ //Remove already selected items (ex: while searching) var filteredItems = items.filter(function(i) {return ctrl.selected.indexOf(i) < 0;}); setItemsFn(filteredItems); }else{ setItemsFn(items); } ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters } } }); if (ctrl.multiple){ //Remove already selected items $scope.$watchCollection('$select.selected', function(selectedItems){ var data = ctrl.parserResult.source($scope); if (!selectedItems.length) { setItemsFn(data); }else{ if ( data !== undefined ) { var filteredItems = data.filter(function(i) {return selectedItems.indexOf(i) < 0;}); setItemsFn(filteredItems); } } ctrl.sizeSearchInput(); }); } }; var _refreshDelayPromise; /** * Typeahead mode: lets the user refresh the collection using his own function. * * See Expose $select.search for external / remote filtering https://github.com/angular-ui/ui-select/pull/31 */ ctrl.refresh = function(refreshAttr) { if (refreshAttr !== undefined) { // Debounce // See https://github.com/angular-ui/bootstrap/blob/0.10.0/src/typeahead/typeahead.js#L155 // FYI AngularStrap typeahead does not have debouncing: https://github.com/mgcrea/angular-strap/blob/v2.0.0-rc.4/src/typeahead/typeahead.js#L177 if (_refreshDelayPromise) { $timeout.cancel(_refreshDelayPromise); } _refreshDelayPromise = $timeout(function() { $scope.$eval(refreshAttr); }, ctrl.refreshDelay); } }; ctrl.setActiveItem = function(item) { ctrl.activeIndex = ctrl.items.indexOf(item); }; ctrl.isActive = function(itemScope) { if ( !ctrl.open ) { return false; } var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]); var isActive = itemIndex === ctrl.activeIndex; if ( !isActive || ( itemIndex < 0 && ctrl.taggingLabel !== false ) ||( itemIndex < 0 && ctrl.taggingLabel === false) ) { return false; } if (isActive && !angular.isUndefined(ctrl.onHighlightCallback)) { itemScope.$eval(ctrl.onHighlightCallback); } return isActive; }; ctrl.isDisabled = function(itemScope) { if (!ctrl.open) return; var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]); var isDisabled = false; var item; if (itemIndex >= 0 && !angular.isUndefined(ctrl.disableChoiceExpression)) { item = ctrl.items[itemIndex]; isDisabled = !!(itemScope.$eval(ctrl.disableChoiceExpression)); // force the boolean value item._uiSelectChoiceDisabled = isDisabled; // store this for later reference } return isDisabled; }; // When the user selects an item with ENTER or clicks the dropdown ctrl.select = function(item, skipFocusser, $event) { if (item === undefined || !item._uiSelectChoiceDisabled) { if ( ! ctrl.items && ! ctrl.search ) return; if (!item || !item._uiSelectChoiceDisabled) { if(ctrl.tagging.isActivated) { // if taggingLabel is disabled, we pull from ctrl.search val if ( ctrl.taggingLabel === false ) { if ( ctrl.activeIndex < 0 ) { item = ctrl.tagging.fct !== undefined ? ctrl.tagging.fct(ctrl.search) : ctrl.search; if ( angular.equals( ctrl.items[0], item ) ) { return; } } else { // keyboard nav happened first, user selected from dropdown item = ctrl.items[ctrl.activeIndex]; } } else { // tagging always operates at index zero, taggingLabel === false pushes // the ctrl.search value without having it injected if ( ctrl.activeIndex === 0 ) { // ctrl.tagging pushes items to ctrl.items, so we only have empty val // for `item` if it is a detected duplicate if ( item === undefined ) return; // create new item on the fly if we don't already have one; // use tagging function if we have one if ( ctrl.tagging.fct !== undefined && typeof item === 'string' ) { item = ctrl.tagging.fct(ctrl.search); // if item type is 'string', apply the tagging label } else if ( typeof item === 'string' ) { // trim the trailing space item = item.replace(ctrl.taggingLabel,'').trim(); } } } // search ctrl.selected for dupes potentially caused by tagging and return early if found if ( ctrl.selected && ctrl.selected.filter( function (selection) { return angular.equals(selection, item); }).length > 0 ) { ctrl.close(skipFocusser); return; } } var locals = {}; locals[ctrl.parserResult.itemName] = item; if(ctrl.multiple) { ctrl.selected.push(item); ctrl.sizeSearchInput(); } else { ctrl.selected = item; } $timeout(function(){ ctrl.onSelectCallback($scope, { $item: item, $model: ctrl.parserResult.modelMapper($scope, locals) }); }); if (!ctrl.multiple || ctrl.closeOnSelect) { ctrl.close(skipFocusser); } if ($event && $event.type === 'click') { ctrl.clickTriggeredSelect = true; } } } }; // Closes the dropdown ctrl.close = function(skipFocusser) { if (!ctrl.open) return; _resetSearchInput(); ctrl.open = false; if (!ctrl.multiple){ $timeout(function(){ ctrl.focusser.prop('disabled', false); if (!skipFocusser) ctrl.focusser[0].focus(); },0,false); } }; // Toggle dropdown ctrl.toggle = function(e) { if (ctrl.open) { ctrl.close(); e.preventDefault(); e.stopPropagation(); } else { ctrl.activate(); } }; ctrl.isLocked = function(itemScope, itemIndex) { var isLocked, item = ctrl.selected[itemIndex]; if (item && !angular.isUndefined(ctrl.lockChoiceExpression)) { isLocked = !!(itemScope.$eval(ctrl.lockChoiceExpression)); // force the boolean value item._uiSelectChoiceLocked = isLocked; // store this for later reference } return isLocked; }; // Remove item from multiple select ctrl.removeChoice = function(index){ var removedChoice = ctrl.selected[index]; // if the choice is locked, can't remove it if(removedChoice._uiSelectChoiceLocked) return; var locals = {}; locals[ctrl.parserResult.itemName] = removedChoice; ctrl.selected.splice(index, 1); ctrl.activeMatchIndex = -1; ctrl.sizeSearchInput(); // Give some time for scope propagation. $timeout(function(){ ctrl.onRemoveCallback($scope, { $item: removedChoice, $model: ctrl.parserResult.modelMapper($scope, locals) }); }); }; ctrl.getPlaceholder = function(){ //Refactor single? if(ctrl.multiple && ctrl.selected.length) return; return ctrl.placeholder; }; var containerSizeWatch; ctrl.sizeSearchInput = function(){ var input = _searchInput[0], container = _searchInput.parent().parent()[0]; _searchInput.css('width','10px'); var calculate = function(){ var newWidth = container.clientWidth - input.offsetLeft - 10; if(newWidth < 50) newWidth = container.clientWidth; _searchInput.css('width',newWidth+'px'); }; $timeout(function(){ //Give tags time to render correctly if (container.clientWidth === 0 && !containerSizeWatch){ containerSizeWatch = $scope.$watch(function(){ return container.clientWidth;}, function(newValue){ if (newValue !== 0){ calculate(); containerSizeWatch(); containerSizeWatch = null; } }); }else if (!containerSizeWatch) { calculate(); } }, 0, false); }; function _handleDropDownSelection(key) { var processed = true; switch (key) { case KEY.DOWN: if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode else if (ctrl.activeIndex < ctrl.items.length - 1) { ctrl.activeIndex++; } break; case KEY.UP: if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode else if (ctrl.activeIndex > 0 || (ctrl.search.length === 0 && ctrl.tagging.isActivated)) { ctrl.activeIndex--; } break; case KEY.TAB: if (!ctrl.multiple || ctrl.open) ctrl.select(ctrl.items[ctrl.activeIndex], true); break; case KEY.ENTER: if(ctrl.open){ ctrl.select(ctrl.items[ctrl.activeIndex]); } else { ctrl.activate(false, true); //In case its the search input in 'multiple' mode } break; case KEY.ESC: ctrl.close(); break; default: processed = false; } return processed; } // Handles selected options in "multiple" mode function _handleMatchSelection(key){ var caretPosition = _getCaretPosition(_searchInput[0]), length = ctrl.selected.length, // none = -1, first = 0, last = length-1, curr = ctrl.activeMatchIndex, next = ctrl.activeMatchIndex+1, prev = ctrl.activeMatchIndex-1, newIndex = curr; if(caretPosition > 0 || (ctrl.search.length && key == KEY.RIGHT)) return false; ctrl.close(); function getNewActiveMatchIndex(){ switch(key){ case KEY.LEFT: // Select previous/first item if(~ctrl.activeMatchIndex) return prev; // Select last item else return last; break; case KEY.RIGHT: // Open drop-down if(!~ctrl.activeMatchIndex || curr === last){ ctrl.activate(); return false; } // Select next/last item else return next; break; case KEY.BACKSPACE: // Remove selected item and select previous/first if(~ctrl.activeMatchIndex){ ctrl.removeChoice(curr); return prev; } // Select last item else return last; break; case KEY.DELETE: // Remove selected item and select next item if(~ctrl.activeMatchIndex){ ctrl.removeChoice(ctrl.activeMatchIndex); return curr; } else return false; } } newIndex = getNewActiveMatchIndex(); if(!ctrl.selected.length || newIndex === false) ctrl.activeMatchIndex = -1; else ctrl.activeMatchIndex = Math.min(last,Math.max(first,newIndex)); return true; } // Bind to keyboard shortcuts _searchInput.on('keydown', function(e) { var key = e.which; // if(~[KEY.ESC,KEY.TAB].indexOf(key)){ // //TODO: SEGURO? // ctrl.close(); // } $scope.$apply(function() { var processed = false; var tagged = false; if(ctrl.multiple && KEY.isHorizontalMovement(key)){ processed = _handleMatchSelection(key); } if (!processed && (ctrl.items.length > 0 || ctrl.tagging.isActivated)) { processed = _handleDropDownSelection(key); if ( ctrl.taggingTokens.isActivated ) { for (var i = 0; i < ctrl.taggingTokens.tokens.length; i++) { if ( ctrl.taggingTokens.tokens[i] === KEY.MAP[e.keyCode] ) { // make sure there is a new value to push via tagging if ( ctrl.search.length > 0 ) { tagged = true; } } } if ( tagged ) { $timeout(function() { _searchInput.triggerHandler('tagged'); var newItem = ctrl.search.replace(KEY.MAP[e.keyCode],'').trim(); if ( ctrl.tagging.fct ) { newItem = ctrl.tagging.fct( newItem ); } ctrl.select( newItem, true); }); } } } if (processed && key != KEY.TAB) { //TODO Check si el tab selecciona aun correctamente //Crear test e.preventDefault(); e.stopPropagation(); } }); if(KEY.isVerticalMovement(key) && ctrl.items.length > 0){ _ensureHighlightVisible(); } }); _searchInput.on('keyup', function(e) { if ( ! KEY.isVerticalMovement(e.which) ) { $scope.$evalAsync( function () { ctrl.activeIndex = ctrl.taggingLabel === false ? -1 : 0; }); } // Push a "create new" item into array if there is a search string if ( ctrl.tagging.isActivated && ctrl.search.length > 0 ) { // return early with these keys if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || KEY.isVerticalMovement(e.which) ) { return; } // always reset the activeIndex to the first item when tagging ctrl.activeIndex = ctrl.taggingLabel === false ? -1 : 0; // taggingLabel === false bypasses all of this if (ctrl.taggingLabel === false) return; var items = angular.copy( ctrl.items ); var stashArr = angular.copy( ctrl.items ); var newItem; var item; var hasTag = false; var dupeIndex = -1; var tagItems; var tagItem; // case for object tagging via transform `ctrl.tagging.fct` function if ( ctrl.tagging.fct !== undefined) { tagItems = ctrl.$filter('filter')(items,{'isTag': true}); if ( tagItems.length > 0 ) { tagItem = tagItems[0]; } // remove the first element, if it has the `isTag` prop we generate a new one with each keyup, shaving the previous if ( items.length > 0 && tagItem ) { hasTag = true; items = items.slice(1,items.length); stashArr = stashArr.slice(1,stashArr.length); } newItem = ctrl.tagging.fct(ctrl.search); newItem.isTag = true; // verify the the tag doesn't match the value of an existing item if ( stashArr.filter( function (origItem) { return angular.equals( origItem, ctrl.tagging.fct(ctrl.search) ); } ).length > 0 ) { return; } // handle newItem string and stripping dupes in tagging string context } else { // find any tagging items already in the ctrl.items array and store them tagItems = ctrl.$filter('filter')(items,function (item) { return item.match(ctrl.taggingLabel); }); if ( tagItems.length > 0 ) { tagItem = tagItems[0]; } item = items[0]; // remove existing tag item if found (should only ever be one tag item) if ( item !== undefined && items.length > 0 && tagItem ) { hasTag = true; items = items.slice(1,items.length); stashArr = stashArr.slice(1,stashArr.length); } newItem = ctrl.search+' '+ctrl.taggingLabel; if ( _findApproxDupe(ctrl.selected, ctrl.search) > -1 ) { return; } // verify the the tag doesn't match the value of an existing item from // the searched data set or the items already selected if ( _findCaseInsensitiveDupe(stashArr.concat(ctrl.selected)) ) { // if there is a tag from prev iteration, strip it / queue the change // and return early if ( hasTag ) { items = stashArr; $scope.$evalAsync( function () { ctrl.activeIndex = 0; ctrl.items = items; }); } return; } if ( _findCaseInsensitiveDupe(stashArr) ) { // if there is a tag from prev iteration, strip it if ( hasTag ) { ctrl.items = stashArr.slice(1,stashArr.length); } return; } } if ( hasTag ) dupeIndex = _findApproxDupe(ctrl.selected, newItem); // dupe found, shave the first item if ( dupeIndex > -1 ) { items = items.slice(dupeIndex+1,items.length-1); } else { items = []; items.push(newItem); items = items.concat(stashArr); } $scope.$evalAsync( function () { ctrl.activeIndex = 0; ctrl.items = items; }); } }); _searchInput.on('tagged', function() { $timeout(function() { _resetSearchInput(); }); }); _searchInput.on('blur', function() { $timeout(function() { ctrl.activeMatchIndex = -1; }); }); function _findCaseInsensitiveDupe(arr) { if ( arr === undefined || ctrl.search === undefined ) { return false; } var hasDupe = arr.filter( function (origItem) { if ( ctrl.search.toUpperCase() === undefined ) { return false; } return origItem.toUpperCase() === ctrl.search.toUpperCase(); }).length > 0; return hasDupe; } function _findApproxDupe(haystack, needle) { var tempArr = angular.copy(haystack); var dupeIndex = -1; for (var i = 0; i <tempArr.length; i++) { // handle the simple string version of tagging if ( ctrl.tagging.fct === undefined ) { // search the array for the match if ( tempArr[i]+' '+ctrl.taggingLabel === needle ) { dupeIndex = i; } // handle the object tagging implementation } else { var mockObj = tempArr[i]; mockObj.isTag = true; if ( angular.equals(mockObj, needle) ) { dupeIndex = i; } } } return dupeIndex; } function _getCaretPosition(el) { if(angular.isNumber(el.selectionStart)) return el.selectionStart; // selectionStart is not supported in IE8 and we don't want hacky workarounds so we compromise else return el.value.length; } // See https://github.com/ivaynberg/select2/blob/3.4.6/select2.js#L1431 function _ensureHighlightVisible() { var container = $element.querySelectorAll('.ui-select-choices-content'); var choices = container.querySelectorAll('.ui-select-choices-row'); if (choices.length < 1) { throw uiSelectMinErr('choices', "Expected multiple .ui-select-choices-row but got '{0}'.", choices.length); } var highlighted = choices[ctrl.activeIndex]; var posY = highlighted.offsetTop + highlighted.clientHeight - container[0].scrollTop; var height = container[0].offsetHeight; if (posY > height) { container[0].scrollTop += posY - height; } else if (posY < highlighted.clientHeight) { if (ctrl.isGrouped && ctrl.activeIndex === 0) container[0].scrollTop = 0; //To make group header visible when going all the way up else container[0].scrollTop -= highlighted.clientHeight - posY; } } $scope.$on('$destroy', function() { _searchInput.off('keyup keydown tagged blur'); }); }]) .directive('uiSelect', ['$document', 'uiSelectConfig', 'uiSelectMinErr', '$compile', '$parse', function($document, uiSelectConfig, uiSelectMinErr, $compile, $parse) { return { restrict: 'EA', templateUrl: function(tElement, tAttrs) { var theme = tAttrs.theme || uiSelectConfig.theme; return theme + (angular.isDefined(tAttrs.multiple) ? '/select-multiple.tpl.html' : '/select.tpl.html'); }, replace: true, transclude: true, require: ['uiSelect', 'ngModel'], scope: true, controller: 'uiSelectCtrl', controllerAs: '$select', link: function(scope, element, attrs, ctrls, transcludeFn) { var $select = ctrls[0]; var ngModel = ctrls[1]; var searchInput = element.querySelectorAll('input.ui-select-search'); $select.multiple = angular.isDefined(attrs.multiple) && ( attrs.multiple === '' || attrs.multiple.toLowerCase() === 'multiple' || attrs.multiple.toLowerCase() === 'true' ); $select.closeOnSelect = function() { if (angular.isDefined(attrs.closeOnSelect)) { return $parse(attrs.closeOnSelect)(); } else { return uiSelectConfig.closeOnSelect; } }(); $select.onSelectCallback = $parse(attrs.onSelect); $select.onRemoveCallback = $parse(attrs.onRemove); //From view --> model ngModel.$parsers.unshift(function (inputValue) { var locals = {}, result; if ($select.multiple){ var resultMultiple = []; for (var j = $select.selected.length - 1; j >= 0; j--) { locals = {}; locals[$select.parserResult.itemName] = $select.selected[j]; result = $select.parserResult.modelMapper(scope, locals); resultMultiple.unshift(result); } return resultMultiple; }else{ locals = {}; locals[$select.parserResult.itemName] = inputValue; result = $select.parserResult.modelMapper(scope, locals); return result; } }); //From model --> view ngModel.$formatters.unshift(function (inputValue) { var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search locals = {}, result; if (data){ if ($select.multiple){ var resultMultiple = []; var checkFnMultiple = function(list, value){ if (!list || !list.length) return; for (var p = list.length - 1; p >= 0; p--) { locals[$select.parserResult.itemName] = list[p]; result = $select.parserResult.modelMapper(scope, locals); if (result == value){ resultMultiple.unshift(list[p]); return true; } } return false; }; if (!inputValue) return resultMultiple; //If ngModel was undefined for (var k = inputValue.length - 1; k >= 0; k--) { if (!checkFnMultiple($select.selected, inputValue[k])){ checkFnMultiple(data, inputValue[k]); } } return resultMultiple; }else{ var checkFnSingle = function(d){ locals[$select.parserResult.itemName] = d; result = $select.parserResult.modelMapper(scope, locals); return result == inputValue; }; //If possible pass same object stored in $select.selected if ($select.selected && checkFnSingle($select.selected)) { return $select.selected; } for (var i = data.length - 1; i >= 0; i--) { if (checkFnSingle(data[i])) return data[i]; } } } return inputValue; }); //Set reference to ngModel from uiSelectCtrl $select.ngModel = ngModel; $select.choiceGrouped = function(group){ return $select.isGrouped && group && group.name; }; //Idea from: https://github.com/ivaynberg/select2/blob/79b5bf6db918d7560bdd959109b7bcfb47edaf43/select2.js#L1954 var focusser = angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' aria-haspopup='true' role='button' />"); if(attrs.tabindex){ //tabindex might be an expression, wait until it contains the actual value before we set the focusser tabindex attrs.$observe('tabindex', function(value) { //If we are using multiple, add tabindex to the search input if($select.multiple){ searchInput.attr("tabindex", value); } else { focusser.attr("tabindex", value); } //Remove the tabindex on the parent so that it is not focusable element.removeAttr("tabindex"); }); } $compile(focusser)(scope); $select.focusser = focusser; if (!$select.multiple){ element.append(focusser); focusser.bind("focus", function(){ scope.$evalAsync(function(){ $select.focus = true; }); }); focusser.bind("blur", function(){ scope.$evalAsync(function(){ $select.focus = false; }); }); focusser.bind("keydown", function(e){ if (e.which === KEY.BACKSPACE) { e.preventDefault(); e.stopPropagation(); $select.select(undefined); scope.$apply(); return; } if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC) { return; } if (e.which == KEY.DOWN || e.which == KEY.UP || e.which == KEY.ENTER || e.which == KEY.SPACE){ e.preventDefault(); e.stopPropagation(); $select.activate(); } scope.$digest(); }); focusser.bind("keyup input", function(e){ if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) { return; } $select.activate(focusser.val()); //User pressed some regular key, so we pass it to the search input focusser.val(''); scope.$digest(); }); } scope.$watch('searchEnabled', function() { var searchEnabled = scope.$eval(attrs.searchEnabled); $select.searchEnabled = searchEnabled !== undefined ? searchEnabled : uiSelectConfig.searchEnabled; }); attrs.$observe('disabled', function() { // No need to use $eval() (thanks to ng-disabled) since we already get a boolean instead of a string $select.disabled = attrs.disabled !== undefined ? attrs.disabled : false; }); attrs.$observe('resetSearchInput', function() { // $eval() is needed otherwise we get a string instead of a boolean var resetSearchInput = scope.$eval(attrs.resetSearchInput); $select.resetSearchInput = resetSearchInput !== undefined ? resetSearchInput : true; }); attrs.$observe('tagging', function() { if(attrs.tagging !== undefined) { // $eval() is needed otherwise we get a string instead of a boolean var taggingEval = scope.$eval(attrs.tagging); $select.tagging = {isActivated: true, fct: taggingEval !== true ? taggingEval : undefined}; } else { $select.tagging = {isActivated: false, fct: undefined}; } }); attrs.$observe('taggingLabel', function() { if(attrs.tagging !== undefined ) { // check eval for FALSE, in this case, we disable the labels // associated with tagging if ( attrs.taggingLabel === 'false' ) { $select.taggingLabel = false; } else { $select.taggingLabel = attrs.taggingLabel !== undefined ? attrs.taggingLabel : '(new)'; } } }); attrs.$observe('taggingTokens', function() { if (attrs.tagging !== undefined) { var tokens = attrs.taggingTokens !== undefined ? attrs.taggingTokens.split('|') : [',','ENTER']; $select.taggingTokens = {isActivated: true, tokens: tokens }; } }); if ($select.multiple){ scope.$watchCollection(function(){ return ngModel.$modelValue; }, function(newValue, oldValue) { if (oldValue != newValue) ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters }); $select.firstPass = true; // so the form doesn't get dirty as soon as it loads scope.$watchCollection('$select.selected', function() { if (!$select.firstPass) { ngModel.$setViewValue(Date.now()); //Set timestamp as a unique string to force changes } else { $select.firstPass = false; } }); focusser.prop('disabled', true); //Focusser isn't needed if multiple }else{ scope.$watch('$select.selected', function(newValue) { if (ngModel.$viewValue !== newValue) { ngModel.$setViewValue(newValue); } }); } ngModel.$render = function() { if($select.multiple){ // Make sure that model value is array if(!angular.isArray(ngModel.$viewValue)){ // Have tolerance for null or undefined values if(angular.isUndefined(ngModel.$viewValue) || ngModel.$viewValue === null){ $select.selected = []; } else { throw uiSelectMinErr('multiarr', "Expected model value to be array but got '{0}'", ngModel.$viewValue); } } } $select.selected = ngModel.$viewValue; }; function onDocumentClick(e) { var contains = false; if (window.jQuery) { // Firefox 3.6 does not support element.contains() // See Node.contains https://developer.mozilla.org/en-US/docs/Web/API/Node.contains contains = window.jQuery.contains(element[0], e.target); } else { contains = element[0].contains(e.target); } if (!contains && !$select.clickTriggeredSelect) { $select.close(angular.element(e.target).closest('.ui-select-container.open').length > 0); // Skip focusser if the target is another select scope.$digest(); } $select.clickTriggeredSelect = false; } // See Click everywhere but here event http://stackoverflow.com/questions/12931369 $document.on('click', onDocumentClick); scope.$on('$destroy', function() { $document.off('click', onDocumentClick); }); // Move transcluded elements to their correct position in main template transcludeFn(scope, function(clone) { // See Transclude in AngularJS http://blog.omkarpatil.com/2012/11/transclude-in-angularjs.html // One day jqLite will be replaced by jQuery and we will be able to write: // var transcludedElement = clone.filter('.my-class') // instead of creating a hackish DOM element: var transcluded = angular.element('<div>').append(clone); var transcludedMatch = transcluded.querySelectorAll('.ui-select-match'); transcludedMatch.removeAttr('ui-select-match'); //To avoid loop in case directive as attr if (transcludedMatch.length !== 1) { throw uiSelectMinErr('transcluded', "Expected 1 .ui-select-match but got '{0}'.", transcludedMatch.length); } element.querySelectorAll('.ui-select-match').replaceWith(transcludedMatch); var transcludedChoices = transcluded.querySelectorAll('.ui-select-choices'); transcludedChoices.removeAttr('ui-select-choices'); //To avoid loop in case directive as attr if (transcludedChoices.length !== 1) { throw uiSelectMinErr('transcluded', "Expected 1 .ui-select-choices but got '{0}'.", transcludedChoices.length); } element.querySelectorAll('.ui-select-choices').replaceWith(transcludedChoices); }); } }; }]) .directive('uiSelectChoices', ['uiSelectConfig', 'RepeatParser', 'uiSelectMinErr', '$compile', function(uiSelectConfig, RepeatParser, uiSelectMinErr, $compile) { return { restrict: 'EA', require: '^uiSelect', replace: true, transclude: true, templateUrl: function(tElement) { // Gets theme attribute from parent (ui-select) var theme = tElement.parent().attr('theme') || uiSelectConfig.theme; return theme + '/choices.tpl.html'; }, compile: function(tElement, tAttrs) { if (!tAttrs.repeat) throw uiSelectMinErr('repeat', "Expected 'repeat' expression."); return function link(scope, element, attrs, $select, transcludeFn) { // var repeat = RepeatParser.parse(attrs.repeat); var groupByExp = attrs.groupBy; $select.parseRepeatAttr(attrs.repeat, groupByExp); //Result ready at $select.parserResult $select.disableChoiceExpression = attrs.uiDisableChoice; $select.onHighlightCallback = attrs.onHighlight; if(groupByExp) { var groups = element.querySelectorAll('.ui-select-choices-group'); if (groups.length !== 1) throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-group but got '{0}'.", groups.length); groups.attr('ng-repeat', RepeatParser.getGroupNgRepeatExpression()); } var choices = element.querySelectorAll('.ui-select-choices-row'); if (choices.length !== 1) { throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-row but got '{0}'.", choices.length); } choices.attr('ng-repeat', RepeatParser.getNgRepeatExpression($select.parserResult.itemName, '$select.items', $select.parserResult.trackByExp, groupByExp)) .attr('ng-if', '$select.open') //Prevent unnecessary watches when dropdown is closed .attr('ng-mouseenter', '$select.setActiveItem('+$select.parserResult.itemName +')') .attr('ng-click', '$select.select(' + $select.parserResult.itemName + ',false,$event)'); var rowsInner = element.querySelectorAll('.ui-select-choices-row-inner'); if (rowsInner.length !== 1) throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-row-inner but got '{0}'.", rowsInner.length); rowsInner.attr('uis-transclude-append', ''); //Adding uisTranscludeAppend directive to row element after choices element has ngRepeat $compile(element, transcludeFn)(scope); //Passing current transcludeFn to be able to append elements correctly from uisTranscludeAppend scope.$watch('$select.search', function(newValue) { if(newValue && !$select.open && $select.multiple) $select.activate(false, true); $select.activeIndex = $select.tagging.isActivated ? -1 : 0; $select.refresh(attrs.refresh); }); attrs.$observe('refreshDelay', function() { // $eval() is needed otherwise we get a string instead of a number var refreshDelay = scope.$eval(attrs.refreshDelay); $select.refreshDelay = refreshDelay !== undefined ? refreshDelay : uiSelectConfig.refreshDelay; }); }; } }; }]) // Recreates old behavior of ng-transclude. Used internally. .directive('uisTranscludeAppend', function () { return { link: function (scope, element, attrs, ctrl, transclude) { transclude(scope, function (clone) { element.append(clone); }); } }; }) .directive('uiSelectMatch', ['uiSelectConfig', function(uiSelectConfig) { return { restrict: 'EA', require: '^uiSelect', replace: true, transclude: true, templateUrl: function(tElement) { // Gets theme attribute from parent (ui-select) var theme = tElement.parent().attr('theme') || uiSelectConfig.theme; var multi = tElement.parent().attr('multiple'); return theme + (multi ? '/match-multiple.tpl.html' : '/match.tpl.html'); }, link: function(scope, element, attrs, $select) { $select.lockChoiceExpression = attrs.uiLockChoice; attrs.$observe('placeholder', function(placeholder) { $select.placeholder = placeholder !== undefined ? placeholder : uiSelectConfig.placeholder; }); $select.allowClear = (angular.isDefined(attrs.allowClear)) ? (attrs.allowClear === '') ? true : (attrs.allowClear.toLowerCase() === 'true') : false; if($select.multiple){ $select.sizeSearchInput(); } } }; }]) /** * Highlights text that matches $select.search. * * Taken from AngularUI Bootstrap Typeahead * See https://github.com/angular-ui/bootstrap/blob/0.10.0/src/typeahead/typeahead.js#L340 */ .filter('highlight', function() { function escapeRegexp(queryToEscape) { return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'); } return function(matchItem, query) { return query && matchItem ? matchItem.replace(new RegExp(escapeRegexp(query), 'gi'), '<span class="ui-select-highlight">$&</span>') : matchItem; }; }); }()); angular.module("ui.select").run(["$templateCache", function($templateCache) {$templateCache.put("bootstrap/choices.tpl.html","<ul class=\"ui-select-choices ui-select-choices-content dropdown-menu\" role=\"menu\" aria-labelledby=\"dLabel\" ng-show=\"$select.items.length > 0\"><li class=\"ui-select-choices-group\"><div class=\"divider\" ng-show=\"$select.isGrouped && $index > 0\"></div><div ng-show=\"$select.isGrouped\" class=\"ui-select-choices-group-label dropdown-header\" ng-bind-html=\"$group.name\"></div><div class=\"ui-select-choices-row\" ng-class=\"{active: $select.isActive(this), disabled: $select.isDisabled(this)}\"><a href=\"javascript:void(0)\" class=\"ui-select-choices-row-inner\"></a></div></li></ul>"); $templateCache.put("bootstrap/match-multiple.tpl.html","<span class=\"ui-select-match\"><span ng-repeat=\"$item in $select.selected\"><span style=\"margin-right: 3px;\" class=\"ui-select-match-item btn btn-default btn-xs\" tabindex=\"-1\" type=\"button\" ng-disabled=\"$select.disabled\" ng-click=\"$select.activeMatchIndex = $index;\" ng-class=\"{\'btn-primary\':$select.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}\"><span class=\"close ui-select-match-close\" ng-hide=\"$select.disabled\" ng-click=\"$select.removeChoice($index)\">&nbsp;&times;</span> <span uis-transclude-append=\"\"></span></span></span></span>"); $templateCache.put("bootstrap/match.tpl.html","<div class=\"ui-select-match\" ng-hide=\"$select.open\" ng-disabled=\"$select.disabled\" ng-class=\"{\'btn-default-focus\':$select.focus}\"><button type=\"button\" class=\"btn btn-default btn-block ui-select-toggle\" tabindex=\"-1\" ;=\"\" ng-disabled=\"$select.disabled\" ng-click=\"$select.activate()\"><span ng-show=\"$select.isEmpty()\" class=\"ui-select-placeholder text-muted\">{{$select.placeholder}}</span> <span ng-hide=\"$select.isEmpty()\" class=\"ui-select-match-text\" ng-class=\"{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}\" ng-transclude=\"\"></span> <i class=\"caret pull-right\" ng-click=\"$select.toggle($event)\"></i></button> <button type=\"button\" class=\"ui-select-clear\" ng-if=\"$select.allowClear && !$select.isEmpty()\" ng-click=\"$select.select(undefined)\"><i class=\"glyphicon glyphicon-remove\"></i></button></div>"); $templateCache.put("bootstrap/select-multiple.tpl.html","<div class=\"ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control\" ng-class=\"{open: $select.open}\"><div><div class=\"ui-select-match\"></div><input type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"ui-select-search input-xs\" placeholder=\"{{$select.getPlaceholder()}}\" ng-disabled=\"$select.disabled\" ng-hide=\"$select.disabled\" ng-click=\"$select.activate()\" ng-model=\"$select.search\"></div><div class=\"ui-select-choices\"></div></div>"); $templateCache.put("bootstrap/select.tpl.html","<div class=\"ui-select-container ui-select-bootstrap dropdown\" ng-class=\"{open: $select.open}\"><div class=\"ui-select-match\"></div><input type=\"text\" autocomplete=\"off\" tabindex=\"-1\" class=\"form-control ui-select-search\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-show=\"$select.searchEnabled && $select.open\"><div class=\"ui-select-choices\"></div></div>"); $templateCache.put("select2/choices.tpl.html","<ul class=\"ui-select-choices ui-select-choices-content select2-results\"><li class=\"ui-select-choices-group\" ng-class=\"{\'select2-result-with-children\': $select.choiceGrouped($group) }\"><div ng-show=\"$select.choiceGrouped($group)\" class=\"ui-select-choices-group-label select2-result-label\" ng-bind-html=\"$group.name\"></div><ul ng-class=\"{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }\"><li class=\"ui-select-choices-row\" ng-class=\"{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}\"><div class=\"select2-result-label ui-select-choices-row-inner\"></div></li></ul></li></ul>"); $templateCache.put("select2/match-multiple.tpl.html","<span class=\"ui-select-match\"><li class=\"ui-select-match-item select2-search-choice\" ng-repeat=\"$item in $select.selected\" ng-class=\"{\'select2-search-choice-focus\':$select.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}\"><span uis-transclude-append=\"\"></span> <a href=\"javascript:;\" class=\"ui-select-match-close select2-search-choice-close\" ng-click=\"$select.removeChoice($index)\" tabindex=\"-1\"></a></li></span>"); $templateCache.put("select2/match.tpl.html","<a class=\"select2-choice ui-select-match\" ng-class=\"{\'select2-default\': $select.isEmpty()}\" ng-click=\"$select.activate()\"><span ng-show=\"$select.isEmpty()\" class=\"select2-chosen\">{{$select.placeholder}}</span> <span ng-hide=\"$select.isEmpty()\" class=\"select2-chosen\" ng-transclude=\"\"></span> <abbr ng-if=\"$select.allowClear && !$select.isEmpty()\" class=\"select2-search-choice-close\" ng-click=\"$select.select(undefined)\"></abbr> <span class=\"select2-arrow ui-select-toggle\" ng-click=\"$select.toggle($event)\"><b></b></span></a>"); $templateCache.put("select2/select-multiple.tpl.html","<div class=\"ui-select-container ui-select-multiple select2 select2-container select2-container-multi\" ng-class=\"{\'select2-container-active select2-dropdown-open open\': $select.open,\n \'select2-container-disabled\': $select.disabled}\"><ul class=\"select2-choices\"><span class=\"ui-select-match\"></span><li class=\"select2-search-field\"><input type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"select2-input ui-select-search\" placeholder=\"{{$select.getPlaceholder()}}\" ng-disabled=\"$select.disabled\" ng-hide=\"$select.disabled\" ng-model=\"$select.search\" ng-click=\"$select.activate()\" style=\"width: 34px;\"></li></ul><div class=\"select2-drop select2-with-searchbox select2-drop-active\" ng-class=\"{\'select2-display-none\': !$select.open}\"><div class=\"ui-select-choices\"></div></div></div>"); $templateCache.put("select2/select.tpl.html","<div class=\"ui-select-container select2 select2-container\" ng-class=\"{\'select2-container-active select2-dropdown-open open\': $select.open,\n \'select2-container-disabled\': $select.disabled,\n \'select2-container-active\': $select.focus, \n \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}\"><div class=\"ui-select-match\"></div><div class=\"select2-drop select2-with-searchbox select2-drop-active\" ng-class=\"{\'select2-display-none\': !$select.open}\"><div class=\"select2-search\" ng-show=\"$select.searchEnabled\"><input type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"ui-select-search select2-input\" ng-model=\"$select.search\"></div><div class=\"ui-select-choices\"></div></div></div>"); $templateCache.put("selectize/choices.tpl.html","<div ng-show=\"$select.open\" class=\"ui-select-choices selectize-dropdown single\"><div class=\"ui-select-choices-content selectize-dropdown-content\"><div class=\"ui-select-choices-group optgroup\"><div ng-show=\"$select.isGrouped\" class=\"ui-select-choices-group-label optgroup-header\" ng-bind-html=\"$group.name\"></div><div class=\"ui-select-choices-row\" ng-class=\"{active: $select.isActive(this), disabled: $select.isDisabled(this)}\"><div class=\"option ui-select-choices-row-inner\" data-selectable=\"\"></div></div></div></div></div>"); $templateCache.put("selectize/match.tpl.html","<div ng-hide=\"($select.open || $select.isEmpty())\" class=\"ui-select-match\" ng-transclude=\"\"></div>"); $templateCache.put("selectize/select.tpl.html","<div class=\"ui-select-container selectize-control single\" ng-class=\"{\'open\': $select.open}\"><div class=\"selectize-input\" ng-class=\"{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}\" ng-click=\"$select.activate()\"><div class=\"ui-select-match\"></div><input type=\"text\" autocomplete=\"off\" tabindex=\"-1\" class=\"ui-select-search ui-select-toggle\" ng-click=\"$select.toggle($event)\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-hide=\"!$select.searchEnabled || ($select.selected && !$select.open)\" ng-disabled=\"$select.disabled\"></div><div class=\"ui-select-choices\"></div></div>");}]);
emijrp/cdnjs
ajax/libs/angular-ui-select/0.9.6/select.js
JavaScript
mit
57,873
html{height:100%;width:100%}body{position:absolute;top:0;right:0;left:0;bottom:0;padding:0;margin:0;-webkit-text-size-adjust:100%}*:not(input):not(textarea):not(select){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}input:active,input:focus,textarea:active,textarea:focus,select:active,select:focus{outline:0}h1{font-size:36px}h2{font-size:30px}h3{font-size:24px}h4,h5,h6{font-size:18px}.page{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;background-color:#f9f9f9;position:absolute;top:0;left:0;right:0;bottom:0;overflow:visible;font-size:17px;color:#1f1f21}.page::-webkit-scrollbar{display:none}.page__content{background-color:#f9f9f9;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.page__background{background-color:#f9f9f9;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.content-padded{padding:8px}.page--material{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased}.page--material__content{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;font-weight:400}.page--material__content h1,.page--material__content h2,.page--material__content h3,.page--material__content h4,.page--material__content h5{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;font-weight:400}.switch{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;position:relative;overflow:hidden;font-size:17px;padding:0 20px;border:0;overflow:visible;width:51px;height:32px;z-index:0;text-align:left}.switch__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none;width:51px;height:44px;margin-top:-6px;top:0;left:0;-webkit-transition:all .2s linear;-moz-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear}.switch__toggle{background-color:#ddd;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-border-radius:30px;border-radius:30px;-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-duration:.35s;-moz-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.switch__toggle:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;position:absolute;content:'';-webkit-border-radius:28px;border-radius:28px;height:28px;width:28px;background-color:#fff;left:2px;top:2px;-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-duration:.35s;-moz-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-timing-function:cubic-bezier(0.5,1.6,0.5,1);-moz-transition-timing-function:cubic-bezier(0.5,1.6,0.5,1);-o-transition-timing-function:cubic-bezier(0.5,1.6,0.5,1);transition-timing-function:cubic-bezier(0.5,1.6,0.5,1)}.switch__input:checked+.switch__toggle{background-color:#5198db}.switch__input:checked+.switch__toggle:before{-webkit-transform:translateX(18px);-moz-transform:translateX(18px);-ms-transform:translateX(18px);-o-transform:translateX(18px);transform:translateX(18px)}.switch__input:not(:checked)+.switch__toggle:before{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.switch__input:disabled+.switch__toggle{opacity:.3;cursor:default;pointer-events:none}.switch--material{width:36px;height:20px;padding:0 10px}.switch--material__toggle{background-color:#bdbdbd;margin-top:5px;height:14px}.switch--material__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none}.switch--material__input:checked+.switch--material__toggle:before{-webkit-transform:translateX(16px);-moz-transform:translateX(16px);-ms-transform:translateX(16px);-o-transform:translateX(16px);transform:translateX(16px)}.switch--material__toggle:before{background-color:#5198db;left:0;margin-top:-5px;width:20px;height:20px;-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.4);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.4)}.switch--material__input:checked+.switch--material__toggle{background-color:rgba(81,152,219,0.5)}.switch--material__input:not(:checked)+.switch--material__toggle:before{background-color:#f1f1f1;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.switch--material__input:disabled+.switch--material__toggle{opacity:.3;cursor:default;pointer-events:none}.range{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;-webkit-appearance:none;-webkit-border-radius:4px;border-radius:4px;border:0;height:2px;-webkit-border-radius:0;border-radius:0;-webkit-border-radius:3px;border-radius:3px;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ddd));background-image:-webkit-linear-gradient(#ddd,#ddd);background-image:-moz-linear-gradient(#ddd,#ddd);background-image:-o-linear-gradient(#ddd,#ddd);background-image:linear-gradient(#ddd,#ddd);background-position:left center;-webkit-background-size:100% 2px;background-size:100% 2px;background-repeat:no-repeat;overflow:hidden;height:31px}.range::-moz-range-track{position:relative;border:0;background-color:#ddd;height:2px;border-radius:30px;box-shadow:none;top:0;margin:0;padding:0}.range::-webkit-slider-thumb{cursor:pointer;-webkit-appearance:none;position:relative;height:29px;width:29px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:30px;border-radius:30px;-webkit-box-shadow:none;box-shadow:none;top:0;margin:0;padding:0}.range::-moz-range-thumb{cursor:pointer;position:relative;height:29px;width:29px;background-color:#fff;border:1px solid #ddd;border-radius:30px;box-shadow:none;margin:0;padding:0}.range::-webkit-slider-thumb:before{position:absolute;top:13px;right:0;left:-1024px;width:1024px;height:2px;background-color:rgba(24,103,194,0.81);content:'';margin:0;padding:0}.range:disabled{opacity:.3;cursor:default;pointer-events:none}.range--material{background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ddd));background-image:-webkit-linear-gradient(#ddd,#ddd);background-image:-moz-linear-gradient(#ddd,#ddd);background-image:-o-linear-gradient(#ddd,#ddd);background-image:linear-gradient(#ddd,#ddd);background-position:center;-webkit-background-size:100% 2px;background-size:100% 2px;overflow:visible}.range--material::-webkit-slider-thumb{top:1px;border:3px solid #ddd;height:12px;width:12px;-webkit-border-radius:100%;border-radius:100%;border-color:#25a6d9;background-color:#25a6d9;margin-top:-1px}.range--material::-moz-range-thumb{top:1px;border:3px solid #ddd;height:12px;width:12px;border-radius:100%;border-color:#25a6d9;background-color:#25a6d9}.range--material:focus::-webkit-slider-thumb{border-color:#25a6d9;background-color:#25a6d9}.range--material:focus::-moz-range-thumb{border-color:#25a6d9;background-color:#25a6d9}.range--material::-moz-range-thumb:before{display:none}.range--material::-webkit-slider-thumb:before{display:none}.range--material::-moz-range-thumb:after{content:'';display:block;border:0;border-radius:100%;margin-top:-3px;margin-left:-3px;height:12px;width:12px;background-color:#25a6d9;opacity:.2;-moz-transition:-moz-transform .1s linear;transition:transform .1s linear}.range--material::-webkit-slider-thumb:after{content:'';display:block;border:0;-webkit-border-radius:100%;border-radius:100%;margin-top:-3px;margin-left:-3px;height:12px;width:12px;background-color:#25a6d9;opacity:.2;-webkit-transition:-webkit-transform .1s linear;transition:transform .1s linear}.range--material:active::-webkit-slider-thumb:after{-webkit-transform:scale(2.5);transform:scale(2.5)}.range--material:active::-moz-range-thumb:after{-moz-transform:scale(2.5);transform:scale(2.5)}.navigation-bar{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;overflow:hidden;word-spacing:0;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2;display:block;height:44px;padding-left:0;padding-right:0;background:#fff;color:#1f1f21;-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid #ddd;font-weight:400;width:100%;white-space:nowrap;overflow:visible}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.navigation-bar{border-bottom:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:bottom;background-image:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:-moz-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:-o-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:linear-gradient(0,#ddd,#ddd 50%,transparent 50%)}}.navigation-bar__line-height{line-height:44px;padding-bottom:0;padding-top:0}.navigation-bar__bg{background:#fff}.navigation-bar__item,.navigation-bar__left,.navigation-bar__right,.navigation-bar__center{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;height:44px;vertical-align:top;overflow:visible;display:block;vertical-align:middle;float:left}.navigation-bar__left{max-width:50%;width:27%;text-align:left}.navigation-bar__right{max-width:50%;width:27%;text-align:right}.navigation-bar__center{width:46%;text-align:center;line-height:44px;font-size:17px;font-weight:500;color:#1f1f21}.navigation-bar__title{line-height:44px;font-size:17px;font-weight:500;color:#1f1f21;margin:0;padding:0;overflow:visible}.navigation-bar__center:first-child:last-child{width:100%}.navigation-bar--android__left{float:left;text-align:left;width:auto;min-width:10px}.navigation-bar--android__center{float:left;text-align:left;width:auto;max-width:50%}.navigation-bar--android__right{float:right;text-align:right;width:auto}.navigation-bar--android__center:first-child:last-child{padding-left:10px}.navigation-bar--transparent{background-color:transparent;background-image:none;border:0}.navigation-bar--transparent{background-color:transparent;background-image:none;border:0}.bottom-bar{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;overflow:hidden;word-spacing:0;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2;display:block;height:44px;padding-left:0;padding-right:0;background:#fff;color:#1f1f21;-webkit-box-shadow:none;box-shadow:none;font-weight:400;border-bottom:0;border-top:1px solid #ddd;position:absolute;bottom:0;right:0;left:0}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.bottom-bar{border-top:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:top;background-image:-webkit-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-moz-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-o-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:linear-gradient(180deg,#ddd,#ddd 50%,transparent 50%)}}.bottom-bar__line-height{line-height:44px;padding-bottom:0;padding-top:0}.bottom-bar--transparent{background-color:transparent;background-image:none;border:0}.navigation-bar--material{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:56px;border-bottom:0;-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.3);box-shadow:0 1px 5px rgba(0,0,0,0.3);padding:0 16px}.navigation-bar--material__left{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;font-size:20px;font-weight:500;height:56px;width:auto;line-height:56px}.navigation-bar--material__center{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;font-size:20px;font-weight:500;height:56px;width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;padding-left:34px;line-height:56px}.navigation-bar--material__right{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;font-size:20px;font-weight:500;height:56px;width:auto;line-height:56px}.button{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button:active{background-color:rgba(24,103,194,0.81);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2}.button:focus{outline:0}.button:disabled,.button[disabled]{opacity:.3;cursor:default;pointer-events:none}.button--outline{background-color:transparent;border:1px solid rgba(24,103,194,0.81);color:rgba(24,103,194,0.81)}.button--outline:active{background-color:rgba(24,103,194,0.2);border:1px solid rgba(24,103,194,0.81);color:rgba(24,103,194,0.81);opacity:1}.button--outline:hover{border:1px solid rgba(24,103,194,0.81);-webkit-transition:0;-moz-transition:0;-o-transition:0;transition:0}.button--light{background-color:transparent;color:rgba(0,0,0,0.4);border:1px solid rgba(0,0,0,0.2)}.button--light:active{background-color:rgba(0,0,0,0.05);color:rgba(0,0,0,0.4);border:1px solid rgba(0,0,0,0.2);opacity:1}.button--quiet{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;background:transparent;border:1px solid transparent;-webkit-box-shadow:none;box-shadow:none;background:transparent;color:rgba(24,103,194,0.81);border:0}.button--quiet:disabled,.button--quiet[disabled]{opacity:.3;cursor:default;pointer-events:none;border:0}.button--quiet:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--quiet:focus{outline:0}.button--quiet:active{background-color:transparent;border:0;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2;color:rgba(24,103,194,0.81)}.button--cta{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;border:0;background-color:#25a6d9;color:#fff}.button--cta:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--cta:focus{outline:0}.button--cta:active{color:var-button-cat-color;background-color:#25a6d9;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2}.button--cta:disabled,.button--cta[disabled]{opacity:.3;cursor:default;pointer-events:none}.button--large{font-size:17px;font-weight:500;line-height:36px;padding:4px 12px;display:block;width:100%;text-align:center}.button--large:active{background-color:rgba(24,103,194,0.81);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--large:disabled,.button--large[disabled]{opacity:.3;cursor:default;pointer-events:none}.button--large:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--large:focus{outline:0}.button--large--quiet{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;font-size:17px;font-weight:500;line-height:36px;padding:4px 12px;display:block;width:100%;background:transparent;border:1px solid transparent;-webkit-box-shadow:none;box-shadow:none;color:rgba(24,103,194,0.81);text-align:center}.button--large--quiet:active{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2;color:rgba(24,103,194,0.81);background:transparent;border:1px solid transparent;-webkit-box-shadow:none;box-shadow:none}.button--large--quiet:disabled,.button--large--quiet[disabled]{opacity:.3;cursor:default;pointer-events:none}.button--large--quiet:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--large--quiet:focus{outline:0}.button--large--cta{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;border:0;background-color:#25a6d9;color:#fff;font-size:17px;font-weight:500;line-height:36px;padding:4px 12px;width:100%;text-align:center;display:block}.button--large--cta:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button--large--cta:focus{outline:0}.button--large--cta:active{color:#fff;background-color:#25a6d9;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2}.button--large--cta:disabled,.button--large--cta[disabled]{opacity:.3;cursor:default;pointer-events:none}.button--material{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);min-height:36px;line-height:36px;padding:0 16px;-webkit-transition:-webkit-box-shadow .2s ease;-moz-transition:box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;text-align:center;font-size:14px;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);text-transform:uppercase;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased}.button--material:active{-webkit-box-shadow:0 6px 10px 0 rgba(0,0,0,0.14),0 1px 18px 0 rgba(0,0,0,0.12),0 3px 5px -1px rgba(0,0,0,0.4);box-shadow:0 6px 10px 0 rgba(0,0,0,0.14),0 1px 18px 0 rgba(0,0,0,0.12),0 3px 5px -1px rgba(0,0,0,0.4);background-color:rgba(24,103,194,0.81);opacity:1}.button--material:focus{outline:0}.button--material:disabled,.button--material[disabled]{background:#eaeaea;color:#a8a8a8;opacity:1;-webkit-box-shadow:none;box-shadow:none}.button--material--flat{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:auto;text-decoration:none;padding:4px 10px;font-size:17px;line-height:32px;letter-spacing:0;color:#fff;vertical-align:middle;background-color:rgba(24,103,194,0.81);border:0 solid currentColor;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);min-height:36px;line-height:36px;padding:0 16px;-webkit-transition:-webkit-box-shadow .2s ease;-moz-transition:box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;text-align:center;font-size:14px;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);text-transform:uppercase;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:rgba(24,103,194,0.81)}.button--material--flat:active{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:rgba(24,103,194,0.81);opacity:1;border:0}.button--material--flat:focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:rgba(24,103,194,0.81);opacity:1;border:0}.button--material--flat:disabled,.button--material--flat[disabled]{background:#eaeaea;color:#a8a8a8;opacity:1;-webkit-box-shadow:none;box-shadow:none}.button-bar{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;display:table;table-layout:fixed;white-space:nowrap;margin:0;padding:0;position:relative;margin:0;border:0}.button-bar__item{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;display:table-cell;width:auto;-webkit-border-radius:0;border-radius:0;position:relative;position:relative;overflow:hidden;padding:0;position:relative;overflow:hidden}.button-bar__item>input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none}.button-bar__item:first-child>.button-bar__button{border-left:1px solid rgba(18,114,224,0.77);border-right:1px solid rgba(18,114,224,0.77);-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.button-bar__item:last-child>.button-bar__button{border-right:1px solid rgba(18,114,224,0.77);-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.button-bar__button{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;-webkit-border-radius:inherit;border-radius:inherit;background-color:transparent;color:rgba(18,114,224,0.77);border:0 solid rgba(18,114,224,0.77);border-top:1px solid rgba(18,114,224,0.77);border-bottom:1px solid rgba(18,114,224,0.77);border-right:1px solid rgba(18,114,224,0.77);font-weight:400;padding:0 8px;height:27px;line-height:27px;font-size:13px;width:100%;-webkit-transition:background-color .2s linear,color .2s linear;-moz-transition:background-color .2s linear,color .2s linear;-o-transition:background-color .2s linear,color .2s linear;transition:background-color .2s linear,color .2s linear;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.button-bar__button:active,:active+.button-bar__button{background-color:rgba(18,114,224,0.2);border:0 solid rgba(18,114,224,0.77);border-top:1px solid rgba(18,114,224,0.77);border-bottom:1px solid rgba(18,114,224,0.77);border-right:1px solid rgba(18,114,224,0.77);height:27px;line-height:27px;font-size:13px;width:100%;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button-bar__item.active>.button-bar__button,:checked+.button-bar__button{background-color:rgba(18,114,224,0.77);color:#fff;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button-bar__button:disabled{opacity:.3;cursor:default;pointer-events:none}.button-bar__button:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.button-bar__button:focus{outline:0}.tab-bar{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;display:table;table-layout:fixed;position:absolute;bottom:0;left:0;right:0;white-space:nowrap;margin:0;padding:0;height:49px;background-color:#222;border-top:1px solid rgba(0,0,0,0);width:100%}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.tab-bar{border-top:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:top;background-image:-webkit-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-moz-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-o-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%)}}.tab-bar__item{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:relative;overflow:hidden;display:table-cell;width:auto;-webkit-border-radius:0;border-radius:0}.tab-bar__item>input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none}.tab-bar__button{position:relative;display:inline-block;vertical-align:top;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-decoration:none;padding:0;height:49px;letter-spacing:0;color:#999;text-shadow:0 1px none;vertical-align:top;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;border-top:0;width:100%;font-weight:400;line-height:49px}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.tab-bar__button{border-top:0}}.tab-bar__icon{font-size:24px;padding:0;margin:0;line-height:32px;display:block;height:32px}.tab-bar__label{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px}.tab-bar__icon+.tab-bar__label{font-size:10px;line-height:1;margin:0;font-weight:400}.tab-bar__label:first-child{font-size:16px;line-height:49px;margin:0;padding:0}.tab-bar__button{color:#999}:checked+.tab-bar__button{color:#7abfff;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;border-top:0}:checked+.tab-bar__button>.tab-bar__icon{color:#7abfff}.tab-bar__button:disabled{opacity:.3;cursor:default;pointer-events:none}.tab-bar__button:focus{z-index:1;border-top:0;-webkit-box-shadow:none;box-shadow:none;outline:0}.tab-bar__content{position:absolute;top:0;left:0;right:0;bottom:49px;z-index:0}.tab-bar--top{position:relative;top:0;left:0;right:0;bottom:auto;border-top:0;border-bottom:1px solid rgba(0,0,0,0)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.tab-bar--top{border-bottom:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:bottom;background-image:-webkit-linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-moz-linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-o-linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:linear-gradient(0,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%)}}.tab-bar--top__content{top:49px;left:0;right:0;bottom:0;z-index:0}.tab-bar--top-border__button{background-color:transparent;border-bottom:4px solid transparent}:checked+.tab-bar--top-border__button{background-color:transparent;border-bottom:4px solid #7abfff}.notification{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-decoration:none;padding:0 4px;width:auto;height:19px;-webkit-border-radius:19px;border-radius:19px;background-color:#dc5236;color:#fff;text-align:center;font-size:16px;min-width:19px;line-height:19px;font-weight:400}.notification:empty{display:none}.toolbar-button,.toolbar-button--outline,.toolbar-button--quiet{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;padding:4px 10px;letter-spacing:0;color:rgba(38,100,171,0.81);text-shadow:0 1px none;vertical-align:baseline;background-color:rgba(0,0,0,0);-webkit-border-radius:2px;border-radius:2px;border:1px solid transparent;font-weight:400;font-size:17px;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;vertical-align:middle}.toolbar-button:active,.toolbar-button--outline:active,.toolbar-button--quiet:active{background-color:rgba(0,0,0,0);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;opacity:.2}.toolbar-button:disabled,.toolbar-button[disabled]{opacity:.3;cursor:default;pointer-events:none}.toolbar-button:focus,.toolbar-button--outline:focus,.toolbar-button--quiet:focus{outline:0;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.toolbar-button:hover,.toolbar-button--outline:hover,.toolbar-button--quiet:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.toolbar-button--outline{border:1px solid rgba(38,100,171,0.81);margin:auto 8px;padding-left:6px;padding-right:6px}.toolbar-button--material{font-size:21px;padding:0}.toolbar-button--material:not(:last-child){margin-right:10px}.checkbox{position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;line-height:24px;margin:10px 0}.checkbox__checkmark{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:relative;overflow:hidden;height:24px;pointer-events:none}.checkbox__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none;height:0;width:0}.checkbox__input:checked{background:rgba(24,103,194,0.81)}.checkbox__input:checked+.checkbox__checkmark:before{background:rgba(24,103,194,0.81);border:1px solid rgba(24,103,194,0.81)}.checkbox__input:checked+.checkbox__checkmark:after{opacity:1}.checkbox__checkmark:before{content:'';position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;width:24px;height:24px;background:transparent;border:1px solid rgba(24,103,194,0.81);-webkit-border-radius:16px;border-radius:16px;-webkit-box-shadow:none;box-shadow:none;left:0}.checkbox__checkmark{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:relative;overflow:hidden;width:24px;height:24px}.checkbox__checkmark:after{content:'';position:absolute;top:6px;left:5px;width:12px;height:6px;background:transparent;border:3px solid #fff;border-width:2px;border-top:0;border-right:0;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}.checkbox__input:focus+.checkbox__checkmark:before{-webkit-box-shadow:none;box-shadow:none}.checkbox__input:disabled+.checkbox__checkmark{opacity:.3;cursor:default;pointer-events:none}.checkbox__input:disabled:active+.checkbox__checkmark:before{background:transparent;-webkit-box-shadow:none;box-shadow:none}.checkbox--noborder__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none}.checkbox--noborder{position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;line-height:24px;margin:10px 0;position:relative;overflow:hidden}.checkbox--noborder__checkmark{position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;height:24px;background:transparent}.checkbox--noborder__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none;height:0;width:0}.checkbox--noborder__input:checked+.checkbox--noborder__checkmark:before{background:transparent;border:0}.checkbox--noborder__input:checked+.checkbox--noborder__checkmark:after{opacity:1}.checkbox--noborder__checkmark:before{content:'';position:absolute;width:24px;height:24px;background:transparent;border:0;-webkit-border-radius:16px;border-radius:16px;left:0}.checkbox--noborder__checkmark{position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;width:24px;height:24px;border:0}.checkbox--noborder__checkmark:after{content:'';position:absolute;top:6px;left:5px;opacity:0;width:12px;height:6px;background:transparent;border:3px solid rgba(24,103,194,0.81);border-width:2px;border-top:0;border-right:0;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.checkbox--noborder__input:focus+.checkbox--noborder__checkmark:before{border:0;-webkit-box-shadow:none;box-shadow:none}.checkbox--noborder__input:disabled+.checkbox--noborder__checkmark{opacity:.3;cursor:default;pointer-events:none}.checkbox--noborder__input:disabled:active+.checkbox--noborder__checkmark:before{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0}.checkbox--material{line-height:18px;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased}.checkbox--material__checkmark{width:18px;height:18px}.checkbox--material__checkmark:before{border:2px solid rgba(0,0,0,0.5)}.checkbox--material__input:checked+.checkbox--material__checkmark:before{border:0}.checkbox--material__input+.checkbox--material__checkmark:after{-webkit-transition:-webkit-transform .3s ease;-moz-transition:-moz-transform .3s ease;-o-transition:-o-transform .3s ease;transition:transform .3s ease;width:10px;height:5px;top:4px;left:3px;-webkit-transform:scale(0) rotate(-45deg);-moz-transform:scale(0) rotate(-45deg);-ms-transform:scale(0) rotate(-45deg);-o-transform:scale(0) rotate(-45deg);transform:scale(0) rotate(-45deg)}.checkbox--material__input:checked+.checkbox--material__checkmark:after{top:4px;left:3px;-webkit-transform:scale(1) rotate(-45deg);-moz-transform:scale(1) rotate(-45deg);-ms-transform:scale(1) rotate(-45deg);-o-transform:scale(1) rotate(-45deg);transform:scale(1) rotate(-45deg)}.checkbox--material__input:disabled:checked+.checkbox--material__checkmark:before{background-color:#000}.checkbox--material__input:disabled:checked:active+.checkbox--material__checkmark:before{background-color:#000}.checkbox--material__checkmark:before{-webkit-border-radius:2px;border-radius:2px;border-color:#5a5a5a;width:18px;height:18px}.radio-button__input{position:absolute;overflow:hidden;right:0;top:0;left:0;bottom:0;padding:0;border:0;opacity:.001;z-index:1;vertical-align:top;outline:0;width:100%;height:100%;margin:0;-webkit-appearance:none;appearance:none;height:0;width:0}.radio-button__input:active,.radio-button__input:focus{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.radio-button__input:checked+.radio-button__checkmark:after{opacity:1}.radio-button__input:checked+.radio-button__checkmark:before{background:transparent;border:0}.radio-button{position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;overflow:hidden;line-height:24px;text-align:left;margin:10px 0}.radio-button__checkmark:before{content:'';position:absolute;-webkit-border-radius:100%;border-radius:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;width:24px;height:24px;background:transparent;border:0;-webkit-border-radius:16px;border-radius:16px;left:0}.radio-button__checkmark{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;position:relative;display:inline-block;vertical-align:top;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:relative;overflow:hidden;position:relative;width:24px;height:24px;background:transparent;pointer-events:none}.radio-button__input:checked+.radio-button__checkmark{background:rgba(0,0,0,0)}.radio-button__checkmark:after{content:'';position:absolute;-webkit-border-radius:100%;border-radius:100%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:6px;left:5px;opacity:0;width:12px;height:6px;background:transparent;border:3px solid rgba(24,103,194,0.81);border-width:2px;border-top:0;border-right:0;-webkit-border-radius:0;border-radius:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.radio-button__input:disabled+.radio-button__checkmark{opacity:.3;cursor:default;pointer-events:none}.radio-button--material{line-height:20px;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased}.radio-button--material__checkmark{width:20px;height:20px}.radio-button--material__checkmark:before{background:transparent;border:2px solid #5a5a5a;-webkit-border-radius:50%;border-radius:50%;width:20px;height:20px;-webkit-transition:border .2s ease;-moz-transition:border .2s ease;-o-transition:border .2s ease;transition:border .2s ease}.radio-button--material__checkmark:after{-webkit-transition:background .2s ease,-webkit-transform .2s ease;-moz-transition:background .2s ease,-moz-transform .2s ease;-o-transition:background .2s ease,-o-transform .2s ease;transition:background .2s ease,transform .2s ease;top:5px;left:5px;width:10px;height:10px;border:0;-webkit-border-radius:50%;border-radius:50%;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}.radio-button--material__input:checked+.radio-button__checkmark:before{background:transparent;border:2px solid rgba(24,103,194,0.81)}.radio-button--material__input+.radio-button__checkmark:after{background:#696969;opacity:1;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}.radio-button--material__input:checked+.radio-button__checkmark:after{opacity:1;background:rgba(24,103,194,0.81);-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.list--noborder{border-top:0;border-bottom:0}.list__header{margin:0;padding:0;list-style:none;text-align:left;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 10px;font-size:15px;font-weight:500;background-color:#eee;color:#1f1f21;text-shadow:none;border-top:0;border-bottom:0;min-height:24px;line-height:24px}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.list__header:first-child{border-top:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:top;background-image:-webkit-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-moz-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:-o-linear-gradient(270deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%);background-image:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,0) 50%,transparent 50%)}}.list{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;padding:0;margin:0;list-style-type:none;text-align:left;overflow:auto;display:block;-webkit-overflow-scrolling:touch;padding:0;background-color:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.list{border:0;-webkit-background-size:100% 1px,100% 1px;background-size:100% 1px,100% 1px;background-repeat:no-repeat;background-position:bottom,top;background-image:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%),-webkit-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-moz-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%),-moz-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-o-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%),-o-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:linear-gradient(0,#ddd,#ddd 50%,transparent 50%),linear-gradient(180deg,#ddd,#ddd 50%,transparent 50%)}}.list:first-child{border-top:0}.list+.list{border-top:0}.list__item{margin:0;padding:0;position:relative;list-style:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 10px 0 10px;margin:0;border-top:0;border-bottom:1px solid #ddd;color:#1f1f21;background-color:transparent;min-height:44px;line-height:44px}.list__item--no-padding{padding:0}.list__item__line-height,.list__item--line-height{line-height:44px}.list__item_active:active{background-color:#d9d9d9;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item:first-child{border-top:0;border-bottom:1px solid #ddd}.list__item:last-child{border-bottom:0}.list__item:first-child:last-child{border-top:0;border-bottom:0}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.list__item:not(:last-child){border-bottom:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:bottom;background-image:-webkit-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:-moz-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:-o-linear-gradient(90deg,#ddd,#ddd 50%,transparent 50%);background-image:linear-gradient(0,#ddd,#ddd 50%,transparent 50%)}}.list--noborder{background-color:#fff;border-top:0;border-bottom:0;background-image:none}.list__item--tight{-webkit-transition:background-color .2s linear;-moz-transition:background-color .2s linear;-o-transition:background-color .2s linear;transition:background-color .2s linear;min-height:inherit;line-height:inherit}.list__item--tight:active{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item--tight:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item--tappable{-webkit-transition:background-color .2s linear;-moz-transition:background-color .2s linear;-o-transition:background-color .2s linear;transition:background-color .2s linear}.list__item--tappable:active{background-color:#d9d9d9;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item--tappable:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.switch--list-item{float:right;margin-top:6px;margin-right:10px}.list__item--chevron{-webkit-transition:background-color .2s linear;-moz-transition:background-color .2s linear;-o-transition:background-color .2s linear;transition:background-color .2s linear;overflow:hidden}.list__item--chevron:active{background-color:#d9d9d9;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item--chevron:hover{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.list__item--chevron:before{position:absolute;right:16px;top:50%;color:#ddd;line-height:28px;height:28px;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);font-size:28px;font-family:FontAwesome;font-style:normal;font-weight:normal;content:"\f105"}.list--inset{margin-left:8px;margin-right:8px;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px;background-image:none}.list--inset__item:not(:last-child){border-bottom:1px solid #ddd;background-image:none}.radio-button--list-item{width:100%;height:100%;padding:0;margin:0;line-height:44px}.radio-button--list-item__checkmark{margin-top:10px}.checkbox--list-item{width:100%;height:100%;padding:0;margin:0;line-height:44px}.checkbox--list-item__checkmark{margin-top:10px}.list__right-label{font-size:14px;padding-right:8px;float:right}.list--material{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;border:0}.list__item--material{border:0;min-height:initial;padding:14px 16px;line-height:normal}.list__item--material:first-child{border:0}.list__header--material{background:0;font-size:14px;margin:0 0 2px 0;color:#6c6c6c;font-weight:500;padding:12px 16px}.list__header--material:not(:first-of-type){border-top:1px solid #ececec;margin-top:16px}input[type="search"].search-input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}.search-input{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;-webkit-appearance:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;height:31px;font-size:15px;border:1px solid #ddd;background-color:#f9f9f9;-webkit-box-shadow:none;box-shadow:none;color:#1f1f21;padding:4px 0 0 28px;-webkit-border-radius:4px;border-radius:4px;background-image:url("data:image/svg+xml;utf8,<svgwidth='41px'height='40px'viewBox='004140'version='1.1'xmlns='http://www.w3.org/2000/svg'xmlns:xlink='http://www.w3.org/1999/xlink'xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'><title>Slice1</title><description>CreatedwithSketch(http://www.bohemiancoding.com/sketch)</description><defs></defs><gid='Page1'stroke='none'stroke-width='1'fill='none'fill-rule='evenodd'><gid='search'fill='#C6C8C8'><pathd='M0.504,16.338C0.504,25.0857.635,32.16516.444,32.165C25.24,32.16532.382,25.08532.382,16.338C32.382,7.59125.24,0.516.444,0.5C7.635,0.50.504,7.5910.504,16.338L0.504,16.338ZM5.555,16.338C5.555,10.35910.423,5.52116.445,5.521C22.455,5.52127.333,10.3627.333,16.338C27.333,22.31722.455,27.15616.445,27.156C10.423,27.1565.555,22.3165.555,16.338L5.555,16.338ZM27.666,30.861L34.521,38.67C35.625,39.77236.338,39.78137.46,38.67L39.661,36.489C40.743,35.40840.811,34.71139.661,33.568L31.765,26.793L27.666,30.861L27.666,30.861ZM27.666,30.861'id='Shape'></path></g></g></svg>");background-position:8px center;background-repeat:no-repeat;-webkit-background-size:17px;background-size:17px;font-weight:400;display:block;width:100%}.search-input:focus{background-color:#f9f9f9;color:#1f1f21;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none}.search-input::-webkit-search-cancel-button,.search-input::-webkit-search-decoration{margin-right:0}.search-input::-webkit-input-placeholder,.search-input::-moz-placeholder,.search-input::-ms-input-placeholder{color:#999}.search-input:disabled{opacity:.3;cursor:default;pointer-events:none}.text-input{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;letter-spacing:0;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px;background-color:#f9f9f9;-webkit-box-shadow:none;box-shadow:none;color:#1f1f21;padding:4px 8px 0 8px;margin:0;font-size:15px;height:31px;font-weight:400;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.text-input::-webkit-input-placeholder,.text-input::-moz-placeholder,.text-input::-ms-input-placeholder{color:#999}.text-input:disabled{opacity:.3;cursor:default;pointer-events:none}.text-input:disabled::-webkit-input-placeholder,.text-input:disabled::-moz-placeholder,.text-input:disabled:-ms-input-placeholder{color:#999}.text-input:invalid{border:1px solid #ddd;color:#1f1f21}.text-input--transparent{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;letter-spacing:0;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px;background-color:#f9f9f9;-webkit-box-shadow:none;box-shadow:none;color:#1f1f21;padding:4px 8px 0 8px;margin:0;font-size:15px;height:31px;font-weight:400;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0;background-color:transparent;padding-left:0;padding-right:0}.text-input--transparent:disabled{opacity:.3;cursor:default;pointer-events:none;border:0;background-color:transparent}.text-input--transparent:disabled::-webkit-input-placeholder,.text-input--transparent:disabled::-moz-placeholder,.text-input--transparent:disabled:-ms-input-placeholder{color:#999;border:0;background-color:transparent}.text-input--transparent:invalid{border:1px solid #ddd;color:#1f1f21;border:0;background-color:transparent}.text-input--underbar{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;letter-spacing:0;border:1px solid #ddd;-webkit-border-radius:4px;border-radius:4px;background-color:#f9f9f9;-webkit-box-shadow:none;box-shadow:none;color:#1f1f21;padding:4px 8px 0 8px;margin:0;font-size:15px;height:31px;font-weight:400;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0;background-color:transparent;border-bottom:1px solid #ddd;-webkit-border-radius:0;border-radius:0}.text-input--underbar:disabled{opacity:.3;cursor:default;pointer-events:none;border:0;background-color:transparent;border-bottom:1px solid #ddd}.text-input--underbar:disabled::-webkit-input-placeholder,.text-input--underbar:disabled::-moz-placeholder,.text-input--underbar:disabled:-ms-input-placeholder{color:#999;border:0;background-color:transparent}.text-input--underbar:invalid{border:1px solid #ddd;color:#1f1f21;border:0;background-color:transparent;border-bottom:1px solid #ddd}.text-input--material{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;vertical-align:top;outline:0;line-height:1;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ddd));background-image:-webkit-linear-gradient(#ddd,#ddd);background-image:-moz-linear-gradient(#ddd,#ddd);background-image:-o-linear-gradient(#ddd,#ddd);background-image:linear-gradient(#ddd,#ddd);-webkit-background-size:100% 2px;background-size:100% 2px;background-repeat:no-repeat;background-position:center bottom;background-color:transparent;font-size:16px;font-weight:400;border:0;padding-bottom:2px;-webkit-border-radius:0;border-radius:0;-webkit-transform:translate3d(0,0,0)}.text-input--material__label{color:rgba(24,103,194,0.81)}.text-input--material:focus{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(24,103,194,0.81)),to(rgba(24,103,194,0.81))),-webkit-gradient(linear,left top,left bottom,from(#ddd),to(#ddd));background-image:-webkit-linear-gradient(rgba(24,103,194,0.81),rgba(24,103,194,0.81)),-webkit-linear-gradient(#ddd,#ddd);background-image:-moz-linear-gradient(rgba(24,103,194,0.81),rgba(24,103,194,0.81)),-moz-linear-gradient(#ddd,#ddd);background-image:-o-linear-gradient(rgba(24,103,194,0.81),rgba(24,103,194,0.81)),-o-linear-gradient(#ddd,#ddd);background-image:linear-gradient(rgba(24,103,194,0.81),rgba(24,103,194,0.81)),linear-gradient(#ddd,#ddd);-webkit-animation:material-input-animate .3s forwards;-moz-animation:material-input-animate .3s forwards;-o-animation:material-input-animate .3s forwards;animation:material-input-animate .3s forwards;-webkit-background-size:0 2px;background-size:0 2px}.text-input--material::-webkit-input-placeholder{color:#999}.text-input--material::-moz-placeholder{color:#999}.text-input--material::-ms-input-placeholder{color:#999}@-moz-keyframes material-input-animate{0{background-size:0 2px,100% 2px}100%{background-size:100% 2px,100% 2px}}@-webkit-keyframes material-input-animate{0{-webkit-background-size:0 2px,100% 2px;background-size:0 2px,100% 2px}100%{-webkit-background-size:100% 2px,100% 2px;background-size:100% 2px,100% 2px}}@-o-keyframes material-input-animate{0{background-size:0 2px,100% 2px}100%{background-size:100% 2px,100% 2px}}@keyframes material-input-animate{0{-webkit-background-size:0 2px,100% 2px;background-size:0 2px,100% 2px}100%{-webkit-background-size:100% 2px,100% 2px;background-size:100% 2px,100% 2px}}.textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;vertical-align:top;resize:none;outline:0;padding:5px 5px 5px 5px;font-size:15px;font-weight:400;-webkit-border-radius:4px;border-radius:4px;border:1px solid #ddd;background-color:#f9f9f9;color:#1f1f21;letter-spacing:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.textarea:disabled{opacity:.3;cursor:default;pointer-events:none}.textarea::-webkit-input-placeholder,.textarea::-moz-placeholder,.textarea:-ms-input-placeholder{color:#999}.textarea--transparent{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;vertical-align:top;resize:none;outline:0;padding:5px 5px 5px 5px;padding-left:0;padding-right:0;font-size:15px;font-weight:400;-webkit-border-radius:4px;border-radius:4px;border:0;background-color:transparent;color:#1f1f21;letter-spacing:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.textarea--transparent:disabled{opacity:.3;cursor:default;pointer-events:none}.textarea--transparent::-webkit-input-placeholder,.textarea--transparent::-moz-placeholder,.textarea--transparent:-ms-input-placeholder{color:#999}.dialog{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);margin:auto auto;background-color:rgba(255,255,255,0.92);-webkit-box-shadow:0 2px 12px rgba(0,0,0,0.07);box-shadow:0 2px 12px rgba(0,0,0,0.07);overflow:hidden;min-width:270px;min-height:100px;text-align:left;-webkit-border-radius:4px;border-radius:4px}.dialog-mask{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,0.2)}.dialog--material{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -5px rgba(0,0,0,0.4);box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -5px rgba(0,0,0,0.4);font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;-webkit-border-radius:2px;border-radius:2px;text-align:left}.alert-dialog{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:270px;margin:auto auto;background-color:rgba(255,255,255,0.92);-webkit-box-shadow:0 2px 12px rgba(0,0,0,0.07);box-shadow:0 2px 12px rgba(0,0,0,0.07);-webkit-border-radius:8px;border-radius:8px;overflow:hidden;padding:16px 0 0 0;max-width:95%;color:#1f1f21}.alert-dialog-title{font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;font-size:17px;font-weight:500;padding:0 8px 0 8px;text-align:center;color:#1f1f21}.alert-dialog-content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:4px 12px 8px 12px;font-size:14px;min-height:36px;text-align:center;color:#1f1f21}.alert-dialog-footer{width:100%}.alert-dialog-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-decoration:none;letter-spacing:0;vertical-align:middle;border:0;border-top:1px solid #ddd;font-size:16px;padding:0 8px;margin:0;display:block;width:100%;background-color:transparent;text-align:center;height:44px;line-height:44px;outline:0;color:rgba(24,103,194,0.81)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.alert-dialog-button{border-top:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:top;background-image:-webkit-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-moz-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:-o-linear-gradient(270deg,#ddd,#ddd 50%,transparent 50%);background-image:linear-gradient(180deg,#ddd,#ddd 50%,transparent 50%)}}.alert-dialog-button:active{background-color:rgba(0,0,0,0.05)}.alert-dialog-button--primal{font-weight:500}.alert-dialog-footer--one{white-space:nowrap;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-dialog-button--one{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-moz-flex:1;-ms-flex:1;flex:1;display:block;width:100%;border-left:1px solid #ddd}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.alert-dialog-button--one{border-top:0;border-left:0;-webkit-background-size:100% 1px,1px 100%;background-size:100% 1px,1px 100%;background-repeat:no-repeat;background-position:top,left;background-image:-webkit-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%),-webkit-linear-gradient(0,transparent,transparent 50%,#ddd 50%);background-image:-moz-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%),-moz-linear-gradient(0,transparent,transparent 50%,#ddd 50%);background-image:-o-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%),-o-linear-gradient(0,transparent,transparent 50%,#ddd 50%);background-image:linear-gradient(0,transparent,transparent 50%,#ddd 50%),linear-gradient(90deg,transparent,transparent 50%,#ddd 50%)}}.alert-dialog-button--one:first-child{border-left:0}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.alert-dialog-button--one:first-child{border-top:0;-webkit-background-size:100% 1px;background-size:100% 1px;background-repeat:no-repeat;background-position:top,left;background-image:-webkit-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%);background-image:-moz-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%);background-image:-o-linear-gradient(90deg,transparent,transparent 50%,#ddd 50%);background-image:linear-gradient(0,transparent,transparent 50%,#ddd 50%)}}.alert-dialog-mask{padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,0.2)}.alert-dialog--android{-webkit-border-radius:2px;border-radius:2px;padding:0;-webkit-box-shadow:none;box-shadow:none}.alert-dialog-title--android{border-bottom:1px solid #ddd;height:52px;line-height:52px;padding:0 12px;margin-bottom:8px;text-align:left}.alert-dialog-content--android{text-align:left;padding:8px 12px}.alert-dialog--material{-webkit-border-radius:2px;border-radius:2px;padding-top:22px;-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -5px rgba(0,0,0,0.4);box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -5px rgba(0,0,0,0.4)}.alert-dialog-title--material{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;text-align:left;font-size:20px;font-weight:500;padding:0 24px}.alert-dialog-content--material{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;text-align:left;font-size:14px;font-weight:400;line-height:20px;padding:0 24px;margin:24px 0 10px 0;min-height:0}.alert-dialog-footer--material{display:inline-block;padding:0 8px 0 24px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.alert-dialog-button--material{font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;text-transform:uppercase;display:inline-block;width:auto;min-width:70px;float:right;background:0;border-top:0;font-size:14px;font-weight:400;outline:0}.alert-dialog-button--material:active{background-color:initial}.alert-dialog-button--one--material{border:0}.alert-dialog-button--primal--material{font-weight:500}.popover-mask{position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,0.1)}.popover{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;position:absolute;display:block;width:220px;min-height:100px}.popover__content{background-color:#fff;-webkit-border-radius:8px;border-radius:8px;-webkit-box-shadow:0 2px 16px rgba(0,0,0,0.1);box-shadow:0 2px 16px rgba(0,0,0,0.1);color:#1f1f21;overflow:hidden;min-height:100px;height:100%}.popover__content>*{overflow:hidden}.popover__bottom-arrow{content:'';position:absolute;width:18px;height:18px;-webkit-transform-origin:50% 50% 0;-moz-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;-o-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent;background-image:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-moz-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-o-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 50%);-webkit-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);bottom:0;left:50%;margin-left:-9px;margin-bottom:-9px}.popover__top-arrow{content:'';position:absolute;width:18px;height:18px;-webkit-transform-origin:50% 50% 0;-moz-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;-o-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent;background-image:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-moz-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-o-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 50%);-webkit-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg);top:0;left:50%;margin-left:-9px;margin-top:-9px}.popover__left-arrow{content:'';position:absolute;width:18px;height:18px;-webkit-transform-origin:50% 50% 0;-moz-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;-o-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent;background-image:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-moz-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-o-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 50%);-webkit-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);top:50%;left:0;margin-left:-9px;margin-top:-9px}.popover__right-arrow{content:'';position:absolute;width:18px;height:18px;-webkit-transform-origin:50% 50% 0;-moz-transform-origin:50% 50% 0;-ms-transform-origin:50% 50% 0;-o-transform-origin:50% 50% 0;transform-origin:50% 50% 0;background-color:transparent;background-image:-webkit-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-moz-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:-o-linear-gradient(45deg,#fff,#fff 50%,transparent 50%);background-image:linear-gradient(45deg,#fff,#fff 50%,transparent 50%);-webkit-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-transform:rotate(225deg);-moz-transform:rotate(225deg);-ms-transform:rotate(225deg);-o-transform:rotate(225deg);transform:rotate(225deg);top:50%;right:0;margin-right:-9px;margin-top:-9px}.popover__content--android{-webkit-border-radius:2px;border-radius:2px}.modal{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;overflow:hidden;word-spacing:0;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;overflow:hidden;background-color:rgba(0,0,0,0.7);position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;display:table;z-index:2147483647}.modal__content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;white-space:nowrap;overflow:hidden;word-spacing:0;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;display:table-cell;vertical-align:middle;text-align:center;color:#fff;white-space:normal}.progress-bar{position:relative;height:4px;display:block;width:100%;background-color:#e0e0e0;-webkit-background-clip:padding-box;background-clip:padding-box;margin:0;overflow:hidden}.progress-bar--determinate>.progress-bar__primary,.progress-bar--determinate>.progress-bar__secondary{position:absolute;background-color:#1867c2;top:0;bottom:0;-webkit-transition:width .3s linear;-moz-transition:width .3s linear;-o-transition:width .3s linear;transition:width .3s linear;z-index:100}.progress-bar--determinate>.progress-bar__secondary{background-color:#25a6d9;z-index:0}.progress-bar--indeterminate:before{content:'';position:absolute;background-color:#1867c2;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:progress-bar__indeterminate 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;-moz-animation:progress-bar__indeterminate 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;-o-animation:progress-bar__indeterminate 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;animation:progress-bar__indeterminate 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite}.progress-bar--indeterminate:after{content:'';position:absolute;background-color:#1867c2;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:progress-bar__indeterminate-short 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite;-moz-animation:progress-bar__indeterminate-short 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite;-o-animation:progress-bar__indeterminate-short 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite;animation:progress-bar__indeterminate-short 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite;-webkit-animation-delay:1.15s;-moz-animation-delay:1.15s;-o-animation-delay:1.15s;animation-delay:1.15s}@-moz-keyframes progress-bar__indeterminate{0{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-webkit-keyframes progress-bar__indeterminate{0{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-o-keyframes progress-bar__indeterminate{0{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes progress-bar__indeterminate{0{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-moz-keyframes progress-bar__indeterminate-short{0{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@-webkit-keyframes progress-bar__indeterminate-short{0{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@-o-keyframes progress-bar__indeterminate-short{0{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@keyframes progress-bar__indeterminate-short{0{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}.progress-circular{-webkit-animation:progress__rotate 2s linear infinite;-moz-animation:progress__rotate 2s linear infinite;-o-animation:progress__rotate 2s linear infinite;animation:progress__rotate 2s linear infinite;height:80px;position:relative;width:80px}.progress-circular__primary{stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-animation:progress__dash 1.5s ease-in-out infinite;-moz-animation:progress__dash 1.5s ease-in-out infinite;-o-animation:progress__dash 1.5s ease-in-out infinite;animation:progress__dash 1.5s ease-in-out infinite;stroke:#1867c2;-webkit-transition:all 1s cubic-bezier(0.4,0,0.2,1);-moz-transition:all 1s cubic-bezier(0.4,0,0.2,1);-o-transition:all 1s cubic-bezier(0.4,0,0.2,1);transition:all 1s cubic-bezier(0.4,0,0.2,1)}.progress-circular--determinate{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg);-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}.progress-circular--determinate>.progress-circular__primary{-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}.progress-circular--determinate>.progress-circular__secondary{-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none;stroke:#e0e0e0}@-moz-keyframes progress__rotate{100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes progress__rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes progress__rotate{100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes progress__rotate{100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes progress__dash{0{stroke-dasharray:10%,241.32%;stroke-dashoffset:0}50%{stroke-dasharray:201%,50.322%;stroke-dashoffset:-100%}100%{stroke-dasharray:10%,241.32%;stroke-dashoffset:-251.32%}}@-webkit-keyframes progress__dash{0{stroke-dasharray:10%,241.32%;stroke-dashoffset:0}50%{stroke-dasharray:201%,50.322%;stroke-dashoffset:-100%}100%{stroke-dasharray:10%,241.32%;stroke-dashoffset:-251.32%}}@-o-keyframes progress__dash{0{stroke-dasharray:10%,241.32%;stroke-dashoffset:0}50%{stroke-dasharray:201%,50.322%;stroke-dashoffset:-100%}100%{stroke-dasharray:10%,241.32%;stroke-dashoffset:-251.32%}}@keyframes progress__dash{0{stroke-dasharray:10%,241.32%;stroke-dashoffset:0}50%{stroke-dasharray:201%,50.322%;stroke-dashoffset:-100%}100%{stroke-dasharray:10%,241.32%;stroke-dashoffset:-251.32%}}.fab{position:relative;display:inline-block;vertical-align:top;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-background-clip:padding-box;background-clip:padding-box;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border:0;line-height:normal;font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:17px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:'Roboto','Noto',sans-serif;-webkit-font-smoothing:antialiased;width:56px;height:56px;text-decoration:none;font-size:17px;line-height:56px;letter-spacing:0;color:#fff;vertical-align:middle;text-align:center;background-color:#1867c2;border:0 solid currentColor;-webkit-border-radius:50%;border-radius:50%;-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.4);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.4);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.fab:active{-webkit-box-shadow:0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.4);box-shadow:0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.4);background-color:#1867c2;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.fab:focus{outline:0}.fab__icon{position:relative;overflow:hidden;height:100%;width:100%;display:block;-webkit-border-radius:100%;border-radius:100%;padding:0;z-index:100;line-height:56px}.fab:disabled,.fab[disabled]{background-color:rgba(0,0,0,0.5);-webkit-box-shadow:none;box-shadow:none;opacity:.3;cursor:default;pointer-events:none}.fab--top__right{top:20px;bottom:auto;right:20px;left:auto;position:fixed}.fab--bottom__right{top:auto;bottom:20px;right:20px;left:auto;position:fixed}.fab--top__left{top:20px;bottom:auto;right:auto;left:20px;position:fixed}.fab--bottom__left{top:auto;bottom:20px;right:auto;left:20px;position:fixed}.fab--top__center{top:20px;bottom:auto;margin-left:-28px;left:50%;right:auto;position:fixed}.fab--bottom__center{top:auto;bottom:20px;margin-left:-28px;left:50%;right:auto;position:fixed}.fab--mini{width:40px;height:40px;line-height:40px}.fab--mini .fab__icon{line-height:40px}.speed-dial__item{position:absolute;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}
dakshshah96/cdnjs
ajax/libs/onsen/2.0.0-alpha.2/css/onsen-css-components-default.min.css
CSS
mit
87,693
CKEDITOR.plugins.setLang("a11yhelp","el",{title:"Οδηγίες Προσβασιμότητας",contents:"Περιεχόμενα Βοήθειας. Πατήστε ESC για κλείσιμο.",legend:[{name:"Γενικά",items:[{name:"Εργαλειοθήκη Επεξεργαστή",legend:"Πατήστε ${toolbarFocus} για να περιηγηθείτε στην γραμμή εργαλείων. Μετακινηθείτε ανάμεσα στις ομάδες της γραμμής εργαλείων με TAB και SHIFT-TAB. Μετακινηθείτε ανάμεσα στα κουμπιά εργαλείων με το ΔΕΞΙ ή ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Πατήστε ΔΙΑΣΤΗΜΑ ή ENTER για να ενεργοποιήσετε το ενεργό κουμπί εργαλείου."},{name:"Παράθυρο Διαλόγου Επεξεργαστή",legend:"Μέσα σε ένα παράθυρο διαλόγου, πατήστε TAB για να μεταβείτε στο επόμενο πεδίο ή SHIFT + TAB για να μεταβείτε στο προηγούμενο. Πατήστε ENTER για να υποβάλετε την φόρμα. Πατήστε ESC για να ακυρώσετε την διαδικασία της φόρμας. Για παράθυρα διαλόγων που έχουν πολλές σελίδες σε καρτέλες πατήστε ALT + F10 για να μεταβείτε στην λίστα των καρτελών. Στην συνέχεια μπορείτε να μεταβείτε στην επόμενη καρτέλα πατώντας το TAB ή το ΔΕΞΙ ΒΕΛΑΚΙ. Μπορείτε να μεταβείτε στην προηγούμενη καρτέλα πατώντας SHIFT + TAB ή το ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Πατήστε ΔΙΑΣΤΗΜΑ ή ENTER για να επιλέξτε την καρτέλα για προβολή."},{name:"Αναδυόμενο Μενού Επεξεργαστή",legend:"Πατήστε ${contextMenu} ή APPLICATION KEY για να ανοίξετε το αναδυόμενο μενού. Μετά μετακινηθείτε στην επόμενη επιλογή του μενού με TAB ή ΚΑΤΩ ΒΕΛΑΚΙ. Μετακινηθείτε στην προηγούμενη επιλογή με SHIFT+TAB ή το ΠΑΝΩ ΒΕΛΑΚΙ. Πατήστε ΔΙΑΣΤΗΜΑ ή ENTER για να επιλέξτε το τρέχων στοιχείο. Ανοίξτε το αναδυόμενο μενού της τρέχουσας επιλογής με ΔΙΑΣΤΗΜΑ ή ENTER ή το ΔΕΞΙ ΒΕΛΑΚΙ. Μεταβείτε πίσω στο αρχικό στοιχείο μενού με το ESC ή το ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Κλείστε το αναδυόμενο μενού με ESC."},{name:"Κουτί Λίστας Επεξεργαστών",legend:"Μέσα σε ένα κουτί λίστας, μετακινηθείτε στο επόμενο στοιχείο με TAB ή ΚΑΤΩ ΒΕΛΑΚΙ. Μετακινηθείτε στο προηγούμενο στοιχείο με SHIFT + TAB ή το ΠΑΝΩ ΒΕΛΑΚΙ. Πατήστε ΔΙΑΣΤΗΜΑ ή ENTER για να επιλέξετε ένα στοιχείο. Πατήστε ESC για να κλείσετε το κουτί της λίστας."},{name:"Μπάρα Διαδρομών Στοιχείων Επεξεργαστή",legend:"Πατήστε ${elementsPathFocus} για να περιηγηθείτε στην μπάρα διαδρομών στοιχείων του επεξεργαστή. Μετακινηθείτε στο κουμπί του επόμενου στοιχείου με το TAB ή το ΔΕΞΙ ΒΕΛΑΚΙ. Μετακινηθείτε στο κουμπί του προηγούμενου στοιχείου με το SHIFT+TAB ή το ΑΡΙΣΤΕΡΟ ΒΕΛΑΚΙ. Πατήστε ΔΙΑΣΤΗΜΑ ή ENTER για να επιλέξετε το στοιχείο στον επεξεργαστή."}]},{name:"Εντολές",items:[{name:"Εντολή αναίρεσης",legend:"Πατήστε ${undo}"},{name:"Εντολή επανάληψης",legend:"Πατήστε ${redo}"},{name:"Εντολή έντονης γραφής",legend:"Πατήστε ${bold}"},{name:"Εντολή πλάγιας γραφής",legend:"Πατήστε ${italic}"},{name:"Εντολή υπογράμμισης",legend:"Πατήστε ${underline}"},{name:"Εντολή συνδέσμου",legend:"Πατήστε ${link}"},{name:"Εντολή Σύμπτηξης Εργαλειοθήκης",legend:"Πατήστε ${toolbarCollapse}"},{name:"Πρόσβαση στην προηγούμενη εντολή του χώρου εστίασης ",legend:"Πατήστε ${accessPreviousSpace} για να έχετε πρόσβαση στον πιο κοντινό χώρο εστίασης πριν το δρομέα, για παράδειγμα: δύο παρακείμενα στοιχεία ΥΕ. Επαναλάβετε το συνδυασμό πλήκτρων για να φθάσετε στους χώρους μακρινής εστίασης. "},{name:"Πρόσβαση στην επόμενη εντολή του χώρου εστίασης",legend:"Πατήστε ${accessNextSpace} για να έχετε πρόσβαση στον πιο κοντινό χώρο εστίασης μετά το δρομέα, για παράδειγμα: δύο παρακείμενα στοιχεία ΥΕ. Επαναλάβετε το συνδυασμό πλήκτρων για τους χώρους μακρινής εστίασης. "},{name:"Βοήθεια Προσβασιμότητας",legend:"Πατήστε ${a11yHelp}"}]}],backspace:"Backspace",tab:"Tab",enter:"Enter",shift:"Shift",ctrl:"Ctrl",alt:"Alt",pause:"Pause",capslock:"Caps Lock",escape:"Escape",pageUp:"Page Up",pageDown:"Page Down",end:"End",home:"Home",leftArrow:"Αριστερό Βέλος",upArrow:"Πάνω Βέλος",rightArrow:"Δεξί Βέλος",downArrow:"Κάτω Βέλος",insert:"Insert","delete":"Delete",leftWindowKey:"Αριστερό Πλήκτρο Windows",rightWindowKey:"Δεξί Πλήκτρος Windows",selectKey:"Επιλέξτε πλήκτρο",numpad0:"Αριθμητικό Πληκτρολόγιο 0",numpad1:"Αριθμητικό Πληκτρολόγιο 1",numpad2:"Αριθμητικό Πληκτρολόγιο 2",numpad3:"Αριθμητικό Πληκτρολόγιο 3",numpad4:"Αριθμητικό Πληκτρολόγιο 4",numpad5:"Αριθμητικό Πληκτρολόγιο 5",numpad6:"Αριθμητικό Πληκτρολόγιο 6",numpad7:"Αριθμητικό Πληκτρολόγιο 7",numpad8:"Αριθμητικό Πληκτρολόγιο 8",numpad9:"Αριθμητικό Πληκτρολόγιο 9",multiply:"Πολλαπλασιάστε",add:"Add",subtract:"Αφαιρέστε",decimalPoint:"Υποδιαστολή",divide:"Διαιρέστε",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"6",f7:"7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",f12:"F12",numLock:"Num Lock",scrollLock:"Scroll Lock",semiColon:"Ερωτηματικό",equalSign:"Σύμβολο Ισότητας",comma:"Κόμμα",dash:"Παύλα",period:"Τελεία",forwardSlash:"Κάθετος",graveAccent:"Βαρεία",openBracket:"Άνοιγμα Παρένθεσης",backSlash:"Ανάστροφη Κάθετος",closeBracket:"Κλείσιμο Παρένθεσης",singleQuote:"Απόστροφος"});
pcarrier/cdnjs
ajax/libs/ckeditor/4.3.2/plugins/a11yhelp/dialogs/lang/el.min.js
JavaScript
mit
7,452
/* Copyright 2012 Igor Vaynberg Version: 3.4.4 Timestamp: Thu Oct 24 13:23:11 PDT 2013 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License. You may obtain a copy of the Apache License and the GPL License at: http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License. */ (function ($) { if(typeof $.fn.each2 == "undefined") { $.extend($.fn, { /* * 4-10 times faster .each replacement * use it carefully, as it overrides jQuery context of element on each iteration */ each2 : function (c) { var j = $([0]), i = -1, l = this.length; while ( ++i < l && (j.context = j[0] = this[i]) && c.call(j[0], i, j) !== false //"this"=DOM, i=index, j=jQuery object ); return this; } }); } })(jQuery); (function ($, undefined) { "use strict"; /*global document, window, jQuery, console */ if (window.Select2 !== undefined) { return; } var KEY, AbstractSelect2, SingleSelect2, MultiSelect2, nextUid, sizer, lastMousePosition={x:0,y:0}, $document, scrollBarDimensions, KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: 18, PAGE_UP: 33, PAGE_DOWN: 34, HOME: 36, END: 35, BACKSPACE: 8, DELETE: 46, isArrow: function (k) { k = k.which ? k.which : k; switch (k) { case KEY.LEFT: case KEY.RIGHT: case KEY.UP: case KEY.DOWN: return true; } return false; }, isControl: function (e) { var k = e.which; switch (k) { case KEY.SHIFT: case KEY.CTRL: case KEY.ALT: return true; } if (e.metaKey) return true; return false; }, isFunctionKey: function (k) { k = k.which ? k.which : k; return k >= 112 && k <= 123; } }, MEASURE_SCROLLBAR_TEMPLATE = "<div class='select2-measure-scrollbar'></div>", DIACRITICS = {"\u24B6":"A","\uFF21":"A","\u00C0":"A","\u00C1":"A","\u00C2":"A","\u1EA6":"A","\u1EA4":"A","\u1EAA":"A","\u1EA8":"A","\u00C3":"A","\u0100":"A","\u0102":"A","\u1EB0":"A","\u1EAE":"A","\u1EB4":"A","\u1EB2":"A","\u0226":"A","\u01E0":"A","\u00C4":"A","\u01DE":"A","\u1EA2":"A","\u00C5":"A","\u01FA":"A","\u01CD":"A","\u0200":"A","\u0202":"A","\u1EA0":"A","\u1EAC":"A","\u1EB6":"A","\u1E00":"A","\u0104":"A","\u023A":"A","\u2C6F":"A","\uA732":"AA","\u00C6":"AE","\u01FC":"AE","\u01E2":"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B","\uFF22":"B","\u1E02":"B","\u1E04":"B","\u1E06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24B8":"C","\uFF23":"C","\u0106":"C","\u0108":"C","\u010A":"C","\u010C":"C","\u00C7":"C","\u1E08":"C","\u0187":"C","\u023B":"C","\uA73E":"C","\u24B9":"D","\uFF24":"D","\u1E0A":"D","\u010E":"D","\u1E0C":"D","\u1E10":"D","\u1E12":"D","\u1E0E":"D","\u0110":"D","\u018B":"D","\u018A":"D","\u0189":"D","\uA779":"D","\u01F1":"DZ","\u01C4":"DZ","\u01F2":"Dz","\u01C5":"Dz","\u24BA":"E","\uFF25":"E","\u00C8":"E","\u00C9":"E","\u00CA":"E","\u1EC0":"E","\u1EBE":"E","\u1EC4":"E","\u1EC2":"E","\u1EBC":"E","\u0112":"E","\u1E14":"E","\u1E16":"E","\u0114":"E","\u0116":"E","\u00CB":"E","\u1EBA":"E","\u011A":"E","\u0204":"E","\u0206":"E","\u1EB8":"E","\u1EC6":"E","\u0228":"E","\u1E1C":"E","\u0118":"E","\u1E18":"E","\u1E1A":"E","\u0190":"E","\u018E":"E","\u24BB":"F","\uFF26":"F","\u1E1E":"F","\u0191":"F","\uA77B":"F","\u24BC":"G","\uFF27":"G","\u01F4":"G","\u011C":"G","\u1E20":"G","\u011E":"G","\u0120":"G","\u01E6":"G","\u0122":"G","\u01E4":"G","\u0193":"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H","\uFF28":"H","\u0124":"H","\u1E22":"H","\u1E26":"H","\u021E":"H","\u1E24":"H","\u1E28":"H","\u1E2A":"H","\u0126":"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I","\uFF29":"I","\u00CC":"I","\u00CD":"I","\u00CE":"I","\u0128":"I","\u012A":"I","\u012C":"I","\u0130":"I","\u00CF":"I","\u1E2E":"I","\u1EC8":"I","\u01CF":"I","\u0208":"I","\u020A":"I","\u1ECA":"I","\u012E":"I","\u1E2C":"I","\u0197":"I","\u24BF":"J","\uFF2A":"J","\u0134":"J","\u0248":"J","\u24C0":"K","\uFF2B":"K","\u1E30":"K","\u01E8":"K","\u1E32":"K","\u0136":"K","\u1E34":"K","\u0198":"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L","\uFF2C":"L","\u013F":"L","\u0139":"L","\u013D":"L","\u1E36":"L","\u1E38":"L","\u013B":"L","\u1E3C":"L","\u1E3A":"L","\u0141":"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L","\u01C7":"LJ","\u01C8":"Lj","\u24C2":"M","\uFF2D":"M","\u1E3E":"M","\u1E40":"M","\u1E42":"M","\u2C6E":"M","\u019C":"M","\u24C3":"N","\uFF2E":"N","\u01F8":"N","\u0143":"N","\u00D1":"N","\u1E44":"N","\u0147":"N","\u1E46":"N","\u0145":"N","\u1E4A":"N","\u1E48":"N","\u0220":"N","\u019D":"N","\uA790":"N","\uA7A4":"N","\u01CA":"NJ","\u01CB":"Nj","\u24C4":"O","\uFF2F":"O","\u00D2":"O","\u00D3":"O","\u00D4":"O","\u1ED2":"O","\u1ED0":"O","\u1ED6":"O","\u1ED4":"O","\u00D5":"O","\u1E4C":"O","\u022C":"O","\u1E4E":"O","\u014C":"O","\u1E50":"O","\u1E52":"O","\u014E":"O","\u022E":"O","\u0230":"O","\u00D6":"O","\u022A":"O","\u1ECE":"O","\u0150":"O","\u01D1":"O","\u020C":"O","\u020E":"O","\u01A0":"O","\u1EDC":"O","\u1EDA":"O","\u1EE0":"O","\u1EDE":"O","\u1EE2":"O","\u1ECC":"O","\u1ED8":"O","\u01EA":"O","\u01EC":"O","\u00D8":"O","\u01FE":"O","\u0186":"O","\u019F":"O","\uA74A":"O","\uA74C":"O","\u01A2":"OI","\uA74E":"OO","\u0222":"OU","\u24C5":"P","\uFF30":"P","\u1E54":"P","\u1E56":"P","\u01A4":"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q","\uFF31":"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R","\uFF32":"R","\u0154":"R","\u1E58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1E5A":"R","\u1E5C":"R","\u0156":"R","\u1E5E":"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S","\uFF33":"S","\u1E9E":"S","\u015A":"S","\u1E64":"S","\u015C":"S","\u1E60":"S","\u0160":"S","\u1E66":"S","\u1E62":"S","\u1E68":"S","\u0218":"S","\u015E":"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T","\uFF34":"T","\u1E6A":"T","\u0164":"T","\u1E6C":"T","\u021A":"T","\u0162":"T","\u1E70":"T","\u1E6E":"T","\u0166":"T","\u01AC":"T","\u01AE":"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U","\uFF35":"U","\u00D9":"U","\u00DA":"U","\u00DB":"U","\u0168":"U","\u1E78":"U","\u016A":"U","\u1E7A":"U","\u016C":"U","\u00DC":"U","\u01DB":"U","\u01D7":"U","\u01D5":"U","\u01D9":"U","\u1EE6":"U","\u016E":"U","\u0170":"U","\u01D3":"U","\u0214":"U","\u0216":"U","\u01AF":"U","\u1EEA":"U","\u1EE8":"U","\u1EEE":"U","\u1EEC":"U","\u1EF0":"U","\u1EE4":"U","\u1E72":"U","\u0172":"U","\u1E76":"U","\u1E74":"U","\u0244":"U","\u24CB":"V","\uFF36":"V","\u1E7C":"V","\u1E7E":"V","\u01B2":"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W","\uFF37":"W","\u1E80":"W","\u1E82":"W","\u0174":"W","\u1E86":"W","\u1E84":"W","\u1E88":"W","\u2C72":"W","\u24CD":"X","\uFF38":"X","\u1E8A":"X","\u1E8C":"X","\u24CE":"Y","\uFF39":"Y","\u1EF2":"Y","\u00DD":"Y","\u0176":"Y","\u1EF8":"Y","\u0232":"Y","\u1E8E":"Y","\u0178":"Y","\u1EF6":"Y","\u1EF4":"Y","\u01B3":"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z","\uFF3A":"Z","\u0179":"Z","\u1E90":"Z","\u017B":"Z","\u017D":"Z","\u1E92":"Z","\u1E94":"Z","\u01B5":"Z","\u0224":"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a","\uFF41":"a","\u1E9A":"a","\u00E0":"a","\u00E1":"a","\u00E2":"a","\u1EA7":"a","\u1EA5":"a","\u1EAB":"a","\u1EA9":"a","\u00E3":"a","\u0101":"a","\u0103":"a","\u1EB1":"a","\u1EAF":"a","\u1EB5":"a","\u1EB3":"a","\u0227":"a","\u01E1":"a","\u00E4":"a","\u01DF":"a","\u1EA3":"a","\u00E5":"a","\u01FB":"a","\u01CE":"a","\u0201":"a","\u0203":"a","\u1EA1":"a","\u1EAD":"a","\u1EB7":"a","\u1E01":"a","\u0105":"a","\u2C65":"a","\u0250":"a","\uA733":"aa","\u00E6":"ae","\u01FD":"ae","\u01E3":"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b","\uFF42":"b","\u1E03":"b","\u1E05":"b","\u1E07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24D2":"c","\uFF43":"c","\u0107":"c","\u0109":"c","\u010B":"c","\u010D":"c","\u00E7":"c","\u1E09":"c","\u0188":"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d","\uFF44":"d","\u1E0B":"d","\u010F":"d","\u1E0D":"d","\u1E11":"d","\u1E13":"d","\u1E0F":"d","\u0111":"d","\u018C":"d","\u0256":"d","\u0257":"d","\uA77A":"d","\u01F3":"dz","\u01C6":"dz","\u24D4":"e","\uFF45":"e","\u00E8":"e","\u00E9":"e","\u00EA":"e","\u1EC1":"e","\u1EBF":"e","\u1EC5":"e","\u1EC3":"e","\u1EBD":"e","\u0113":"e","\u1E15":"e","\u1E17":"e","\u0115":"e","\u0117":"e","\u00EB":"e","\u1EBB":"e","\u011B":"e","\u0205":"e","\u0207":"e","\u1EB9":"e","\u1EC7":"e","\u0229":"e","\u1E1D":"e","\u0119":"e","\u1E19":"e","\u1E1B":"e","\u0247":"e","\u025B":"e","\u01DD":"e","\u24D5":"f","\uFF46":"f","\u1E1F":"f","\u0192":"f","\uA77C":"f","\u24D6":"g","\uFF47":"g","\u01F5":"g","\u011D":"g","\u1E21":"g","\u011F":"g","\u0121":"g","\u01E7":"g","\u0123":"g","\u01E5":"g","\u0260":"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h","\uFF48":"h","\u0125":"h","\u1E23":"h","\u1E27":"h","\u021F":"h","\u1E25":"h","\u1E29":"h","\u1E2B":"h","\u1E96":"h","\u0127":"h","\u2C68":"h","\u2C76":"h","\u0265":"h","\u0195":"hv","\u24D8":"i","\uFF49":"i","\u00EC":"i","\u00ED":"i","\u00EE":"i","\u0129":"i","\u012B":"i","\u012D":"i","\u00EF":"i","\u1E2F":"i","\u1EC9":"i","\u01D0":"i","\u0209":"i","\u020B":"i","\u1ECB":"i","\u012F":"i","\u1E2D":"i","\u0268":"i","\u0131":"i","\u24D9":"j","\uFF4A":"j","\u0135":"j","\u01F0":"j","\u0249":"j","\u24DA":"k","\uFF4B":"k","\u1E31":"k","\u01E9":"k","\u1E33":"k","\u0137":"k","\u1E35":"k","\u0199":"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l","\uFF4C":"l","\u0140":"l","\u013A":"l","\u013E":"l","\u1E37":"l","\u1E39":"l","\u013C":"l","\u1E3D":"l","\u1E3B":"l","\u017F":"l","\u0142":"l","\u019A":"l","\u026B":"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l","\u01C9":"lj","\u24DC":"m","\uFF4D":"m","\u1E3F":"m","\u1E41":"m","\u1E43":"m","\u0271":"m","\u026F":"m","\u24DD":"n","\uFF4E":"n","\u01F9":"n","\u0144":"n","\u00F1":"n","\u1E45":"n","\u0148":"n","\u1E47":"n","\u0146":"n","\u1E4B":"n","\u1E49":"n","\u019E":"n","\u0272":"n","\u0149":"n","\uA791":"n","\uA7A5":"n","\u01CC":"nj","\u24DE":"o","\uFF4F":"o","\u00F2":"o","\u00F3":"o","\u00F4":"o","\u1ED3":"o","\u1ED1":"o","\u1ED7":"o","\u1ED5":"o","\u00F5":"o","\u1E4D":"o","\u022D":"o","\u1E4F":"o","\u014D":"o","\u1E51":"o","\u1E53":"o","\u014F":"o","\u022F":"o","\u0231":"o","\u00F6":"o","\u022B":"o","\u1ECF":"o","\u0151":"o","\u01D2":"o","\u020D":"o","\u020F":"o","\u01A1":"o","\u1EDD":"o","\u1EDB":"o","\u1EE1":"o","\u1EDF":"o","\u1EE3":"o","\u1ECD":"o","\u1ED9":"o","\u01EB":"o","\u01ED":"o","\u00F8":"o","\u01FF":"o","\u0254":"o","\uA74B":"o","\uA74D":"o","\u0275":"o","\u01A3":"oi","\u0223":"ou","\uA74F":"oo","\u24DF":"p","\uFF50":"p","\u1E55":"p","\u1E57":"p","\u01A5":"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q","\uFF51":"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r","\uFF52":"r","\u0155":"r","\u1E59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1E5B":"r","\u1E5D":"r","\u0157":"r","\u1E5F":"r","\u024D":"r","\u027D":"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s","\uFF53":"s","\u00DF":"s","\u015B":"s","\u1E65":"s","\u015D":"s","\u1E61":"s","\u0161":"s","\u1E67":"s","\u1E63":"s","\u1E69":"s","\u0219":"s","\u015F":"s","\u023F":"s","\uA7A9":"s","\uA785":"s","\u1E9B":"s","\u24E3":"t","\uFF54":"t","\u1E6B":"t","\u1E97":"t","\u0165":"t","\u1E6D":"t","\u021B":"t","\u0163":"t","\u1E71":"t","\u1E6F":"t","\u0167":"t","\u01AD":"t","\u0288":"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u","\uFF55":"u","\u00F9":"u","\u00FA":"u","\u00FB":"u","\u0169":"u","\u1E79":"u","\u016B":"u","\u1E7B":"u","\u016D":"u","\u00FC":"u","\u01DC":"u","\u01D8":"u","\u01D6":"u","\u01DA":"u","\u1EE7":"u","\u016F":"u","\u0171":"u","\u01D4":"u","\u0215":"u","\u0217":"u","\u01B0":"u","\u1EEB":"u","\u1EE9":"u","\u1EEF":"u","\u1EED":"u","\u1EF1":"u","\u1EE5":"u","\u1E73":"u","\u0173":"u","\u1E77":"u","\u1E75":"u","\u0289":"u","\u24E5":"v","\uFF56":"v","\u1E7D":"v","\u1E7F":"v","\u028B":"v","\uA75F":"v","\u028C":"v","\uA761":"vy","\u24E6":"w","\uFF57":"w","\u1E81":"w","\u1E83":"w","\u0175":"w","\u1E87":"w","\u1E85":"w","\u1E98":"w","\u1E89":"w","\u2C73":"w","\u24E7":"x","\uFF58":"x","\u1E8B":"x","\u1E8D":"x","\u24E8":"y","\uFF59":"y","\u1EF3":"y","\u00FD":"y","\u0177":"y","\u1EF9":"y","\u0233":"y","\u1E8F":"y","\u00FF":"y","\u1EF7":"y","\u1E99":"y","\u1EF5":"y","\u01B4":"y","\u024F":"y","\u1EFF":"y","\u24E9":"z","\uFF5A":"z","\u017A":"z","\u1E91":"z","\u017C":"z","\u017E":"z","\u1E93":"z","\u1E95":"z","\u01B6":"z","\u0225":"z","\u0240":"z","\u2C6C":"z","\uA763":"z"}; $document = $(document); nextUid=(function() { var counter=1; return function() { return counter++; }; }()); function stripDiacritics(str) { var ret, i, l, c; if (!str || str.length < 1) return str; ret = ""; for (i = 0, l = str.length; i < l; i++) { c = str.charAt(i); ret += DIACRITICS[c] || c; } return ret; } function indexOf(value, array) { var i = 0, l = array.length; for (; i < l; i = i + 1) { if (equal(value, array[i])) return i; } return -1; } function measureScrollbar () { var $template = $( MEASURE_SCROLLBAR_TEMPLATE ); $template.appendTo('body'); var dim = { width: $template.width() - $template[0].clientWidth, height: $template.height() - $template[0].clientHeight }; $template.remove(); return dim; } /** * Compares equality of a and b * @param a * @param b */ function equal(a, b) { if (a === b) return true; if (a === undefined || b === undefined) return false; if (a === null || b === null) return false; // Check whether 'a' or 'b' is a string (primitive or object). // The concatenation of an empty string (+'') converts its argument to a string's primitive. if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object return false; } /** * Splits the string into an array of values, trimming each value. An empty array is returned for nulls or empty * strings * @param string * @param separator */ function splitVal(string, separator) { var val, i, l; if (string === null || string.length < 1) return []; val = string.split(separator); for (i = 0, l = val.length; i < l; i = i + 1) val[i] = $.trim(val[i]); return val; } function getSideBorderPadding(element) { return element.outerWidth(false) - element.width(); } function installKeyUpChangeEvent(element) { var key="keyup-change-value"; element.on("keydown", function () { if ($.data(element, key) === undefined) { $.data(element, key, element.val()); } }); element.on("keyup", function () { var val= $.data(element, key); if (val !== undefined && element.val() !== val) { $.removeData(element, key); element.trigger("keyup-change"); } }); } $document.on("mousemove", function (e) { lastMousePosition.x = e.pageX; lastMousePosition.y = e.pageY; }); /** * filters mouse events so an event is fired only if the mouse moved. * * filters out mouse events that occur when mouse is stationary but * the elements under the pointer are scrolled. */ function installFilteredMouseMove(element) { element.on("mousemove", function (e) { var lastpos = lastMousePosition; if (lastpos === undefined || lastpos.x !== e.pageX || lastpos.y !== e.pageY) { $(e.target).trigger("mousemove-filtered", e); } }); } /** * Debounces a function. Returns a function that calls the original fn function only if no invocations have been made * within the last quietMillis milliseconds. * * @param quietMillis number of milliseconds to wait before invoking fn * @param fn function to be debounced * @param ctx object to be used as this reference within fn * @return debounced version of fn */ function debounce(quietMillis, fn, ctx) { ctx = ctx || undefined; var timeout; return function () { var args = arguments; window.clearTimeout(timeout); timeout = window.setTimeout(function() { fn.apply(ctx, args); }, quietMillis); }; } /** * A simple implementation of a thunk * @param formula function used to lazily initialize the thunk * @return {Function} */ function thunk(formula) { var evaluated = false, value; return function() { if (evaluated === false) { value = formula(); evaluated = true; } return value; }; }; function installDebouncedScroll(threshold, element) { var notify = debounce(threshold, function (e) { element.trigger("scroll-debounced", e);}); element.on("scroll", function (e) { if (indexOf(e.target, element.get()) >= 0) notify(e); }); } function focus($el) { if ($el[0] === document.activeElement) return; /* set the focus in a 0 timeout - that way the focus is set after the processing of the current event has finished - which seems like the only reliable way to set focus */ window.setTimeout(function() { var el=$el[0], pos=$el.val().length, range; $el.focus(); /* make sure el received focus so we do not error out when trying to manipulate the caret. sometimes modals or others listeners may steal it after its set */ if ($el.is(":visible") && el === document.activeElement) { /* after the focus is set move the caret to the end, necessary when we val() just before setting focus */ if(el.setSelectionRange) { el.setSelectionRange(pos, pos); } else if (el.createTextRange) { range = el.createTextRange(); range.collapse(false); range.select(); } } }, 0); } function getCursorInfo(el) { el = $(el)[0]; var offset = 0; var length = 0; if ('selectionStart' in el) { offset = el.selectionStart; length = el.selectionEnd - offset; } else if ('selection' in document) { el.focus(); var sel = document.selection.createRange(); length = document.selection.createRange().text.length; sel.moveStart('character', -el.value.length); offset = sel.text.length - length; } return { offset: offset, length: length }; } function killEvent(event) { event.preventDefault(); event.stopPropagation(); } function killEventImmediately(event) { event.preventDefault(); event.stopImmediatePropagation(); } function measureTextWidth(e) { if (!sizer){ var style = e[0].currentStyle || window.getComputedStyle(e[0], null); sizer = $(document.createElement("div")).css({ position: "absolute", left: "-10000px", top: "-10000px", display: "none", fontSize: style.fontSize, fontFamily: style.fontFamily, fontStyle: style.fontStyle, fontWeight: style.fontWeight, letterSpacing: style.letterSpacing, textTransform: style.textTransform, whiteSpace: "nowrap" }); sizer.attr("class","select2-sizer"); $("body").append(sizer); } sizer.text(e.val()); return sizer.width(); } function syncCssClasses(dest, src, adapter) { var classes, replacements = [], adapted; classes = dest.attr("class"); if (classes) { classes = '' + classes; // for IE which returns object $(classes.split(" ")).each2(function() { if (this.indexOf("select2-") === 0) { replacements.push(this); } }); } classes = src.attr("class"); if (classes) { classes = '' + classes; // for IE which returns object $(classes.split(" ")).each2(function() { if (this.indexOf("select2-") !== 0) { adapted = adapter(this); if (adapted) { replacements.push(adapted); } } }); } dest.attr("class", replacements.join(" ")); } function markMatch(text, term, markup, escapeMarkup) { var match=stripDiacritics(text.toUpperCase()).indexOf(stripDiacritics(term.toUpperCase())), tl=term.length; if (match<0) { markup.push(escapeMarkup(text)); return; } markup.push(escapeMarkup(text.substring(0, match))); markup.push("<span class='select2-match'>"); markup.push(escapeMarkup(text.substring(match, match + tl))); markup.push("</span>"); markup.push(escapeMarkup(text.substring(match + tl, text.length))); } function defaultEscapeMarkup(markup) { var replace_map = { '\\': '&#92;', '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;', "/": '&#47;' }; return String(markup).replace(/[&<>"'\/\\]/g, function (match) { return replace_map[match]; }); } /** * Produces an ajax-based query function * * @param options object containing configuration paramters * @param options.params parameter map for the transport ajax call, can contain such options as cache, jsonpCallback, etc. see $.ajax * @param options.transport function that will be used to execute the ajax request. must be compatible with parameters supported by $.ajax * @param options.url url for the data * @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url. * @param options.dataType request data type: ajax, jsonp, other datatatypes supported by jQuery's $.ajax function or the transport function if specified * @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often * @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2. * The expected format is an object containing the following keys: * results array of objects that will be used as choices * more (optional) boolean indicating whether there are more results available * Example: {results:[{id:1, text:'Red'},{id:2, text:'Blue'}], more:true} */ function ajax(options) { var timeout, // current scheduled but not yet executed request handler = null, quietMillis = options.quietMillis || 100, ajaxUrl = options.url, self = this; return function (query) { window.clearTimeout(timeout); timeout = window.setTimeout(function () { var data = options.data, // ajax data function url = ajaxUrl, // ajax url string or function transport = options.transport || $.fn.select2.ajaxDefaults.transport, // deprecated - to be removed in 4.0 - use params instead deprecated = { type: options.type || 'GET', // set type of request (GET or POST) cache: options.cache || false, jsonpCallback: options.jsonpCallback||undefined, dataType: options.dataType||"json" }, params = $.extend({}, $.fn.select2.ajaxDefaults.params, deprecated); data = data ? data.call(self, query.term, query.page, query.context) : null; url = (typeof url === 'function') ? url.call(self, query.term, query.page, query.context) : url; if (handler) { handler.abort(); } if (options.params) { if ($.isFunction(options.params)) { $.extend(params, options.params.call(self)); } else { $.extend(params, options.params); } } $.extend(params, { url: url, dataType: options.dataType, data: data, success: function (data) { // TODO - replace query.page with query so users have access to term, page, etc. var results = options.results(data, query.page); query.callback(results); } }); handler = transport.call(self, params); }, quietMillis); }; } /** * Produces a query function that works with a local array * * @param options object containing configuration parameters. The options parameter can either be an array or an * object. * * If the array form is used it is assumed that it contains objects with 'id' and 'text' keys. * * If the object form is used ti is assumed that it contains 'data' and 'text' keys. The 'data' key should contain * an array of objects that will be used as choices. These objects must contain at least an 'id' key. The 'text' * key can either be a String in which case it is expected that each element in the 'data' array has a key with the * value of 'text' which will be used to match choices. Alternatively, text can be a function(item) that can extract * the text. */ function local(options) { var data = options, // data elements dataText, tmp, text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search if ($.isArray(data)) { tmp = data; data = { results: tmp }; } if ($.isFunction(data) === false) { tmp = data; data = function() { return tmp; }; } var dataItem = data(); if (dataItem.text) { text = dataItem.text; // if text is not a function we assume it to be a key name if (!$.isFunction(text)) { dataText = dataItem.text; // we need to store this in a separate variable because in the next step data gets reset and data.text is no longer available text = function (item) { return item[dataText]; }; } } return function (query) { var t = query.term, filtered = { results: [] }, process; if (t === "") { query.callback(data()); return; } process = function(datum, collection) { var group, attr; datum = datum[0]; if (datum.children) { group = {}; for (attr in datum) { if (datum.hasOwnProperty(attr)) group[attr]=datum[attr]; } group.children=[]; $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); }); if (group.children.length || query.matcher(t, text(group), datum)) { collection.push(group); } } else { if (query.matcher(t, text(datum), datum)) { collection.push(datum); } } }; $(data().results).each2(function(i, datum) { process(datum, filtered.results); }); query.callback(filtered); }; } // TODO javadoc function tags(data) { var isFunc = $.isFunction(data); return function (query) { var t = query.term, filtered = {results: []}; $(isFunc ? data() : data).each(function () { var isObject = this.text !== undefined, text = isObject ? this.text : this; if (t === "" || query.matcher(t, text)) { filtered.results.push(isObject ? this : {id: this, text: this}); } }); query.callback(filtered); }; } /** * Checks if the formatter function should be used. * * Throws an error if it is not a function. Returns true if it should be used, * false if no formatting should be performed. * * @param formatter */ function checkFormatter(formatter, formatterName) { if ($.isFunction(formatter)) return true; if (!formatter) return false; throw new Error(formatterName +" must be a function or a falsy value"); } function evaluate(val) { return $.isFunction(val) ? val() : val; } function countResults(results) { var count = 0; $.each(results, function(i, item) { if (item.children) { count += countResults(item.children); } else { count++; } }); return count; } /** * Default tokenizer. This function uses breaks the input on substring match of any string from the * opts.tokenSeparators array and uses opts.createSearchChoice to create the choice object. Both of those * two options have to be defined in order for the tokenizer to work. * * @param input text user has typed so far or pasted into the search field * @param selection currently selected choices * @param selectCallback function(choice) callback tho add the choice to selection * @param opts select2's opts * @return undefined/null to leave the current input unchanged, or a string to change the input to the returned value */ function defaultTokenizer(input, selection, selectCallback, opts) { var original = input, // store the original so we can compare and know if we need to tell the search to update its text dupe = false, // check for whether a token we extracted represents a duplicate selected choice token, // token index, // position at which the separator was found i, l, // looping variables separator; // the matched separator if (!opts.createSearchChoice || !opts.tokenSeparators || opts.tokenSeparators.length < 1) return undefined; while (true) { index = -1; for (i = 0, l = opts.tokenSeparators.length; i < l; i++) { separator = opts.tokenSeparators[i]; index = input.indexOf(separator); if (index >= 0) break; } if (index < 0) break; // did not find any token separator in the input string, bail token = input.substring(0, index); input = input.substring(index + separator.length); if (token.length > 0) { token = opts.createSearchChoice.call(this, token, selection); if (token !== undefined && token !== null && opts.id(token) !== undefined && opts.id(token) !== null) { dupe = false; for (i = 0, l = selection.length; i < l; i++) { if (equal(opts.id(token), opts.id(selection[i]))) { dupe = true; break; } } if (!dupe) selectCallback(token); } } } if (original!==input) return input; } /** * Creates a new class * * @param superClass * @param methods */ function clazz(SuperClass, methods) { var constructor = function () {}; constructor.prototype = new SuperClass; constructor.prototype.constructor = constructor; constructor.prototype.parent = SuperClass.prototype; constructor.prototype = $.extend(constructor.prototype, methods); return constructor; } AbstractSelect2 = clazz(Object, { // abstract bind: function (func) { var self = this; return function () { func.apply(self, arguments); }; }, // abstract init: function (opts) { var results, search, resultsSelector = ".select2-results"; // prepare options this.opts = opts = this.prepareOpts(opts); this.id=opts.id; // destroy if called on an existing component if (opts.element.data("select2") !== undefined && opts.element.data("select2") !== null) { opts.element.data("select2").destroy(); } this.container = this.createContainer(); this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid()); this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1'); this.container.attr("id", this.containerId); // cache the body so future lookups are cheap this.body = thunk(function() { return opts.element.closest("body"); }); syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass); this.container.attr("style", opts.element.attr("style")); this.container.css(evaluate(opts.containerCss)); this.container.addClass(evaluate(opts.containerCssClass)); this.elementTabIndex = this.opts.element.attr("tabindex"); // swap container for the element this.opts.element .data("select2", this) .attr("tabindex", "-1") .before(this.container) .on("click.select2", killEvent); // do not leak click events this.container.data("select2", this); this.dropdown = this.container.find(".select2-drop"); syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass); this.dropdown.addClass(evaluate(opts.dropdownCssClass)); this.dropdown.data("select2", this); this.dropdown.on("click", killEvent); this.results = results = this.container.find(resultsSelector); this.search = search = this.container.find("input.select2-input"); this.queryCount = 0; this.resultsPage = 0; this.context = null; // initialize the container this.initContainer(); this.container.on("click", killEvent); installFilteredMouseMove(this.results); this.dropdown.on("mousemove-filtered touchstart touchmove touchend", resultsSelector, this.bind(this.highlightUnderEvent)); installDebouncedScroll(80, this.results); this.dropdown.on("scroll-debounced", resultsSelector, this.bind(this.loadMoreIfNeeded)); // do not propagate change event from the search field out of the component $(this.container).on("change", ".select2-input", function(e) {e.stopPropagation();}); $(this.dropdown).on("change", ".select2-input", function(e) {e.stopPropagation();}); // if jquery.mousewheel plugin is installed we can prevent out-of-bounds scrolling of results via mousewheel if ($.fn.mousewheel) { results.mousewheel(function (e, delta, deltaX, deltaY) { var top = results.scrollTop(); if (deltaY > 0 && top - deltaY <= 0) { results.scrollTop(0); killEvent(e); } else if (deltaY < 0 && results.get(0).scrollHeight - results.scrollTop() + deltaY <= results.height()) { results.scrollTop(results.get(0).scrollHeight - results.height()); killEvent(e); } }); } installKeyUpChangeEvent(search); search.on("keyup-change input paste", this.bind(this.updateResults)); search.on("focus", function () { search.addClass("select2-focused"); }); search.on("blur", function () { search.removeClass("select2-focused");}); this.dropdown.on("mouseup", resultsSelector, this.bind(function (e) { if ($(e.target).closest(".select2-result-selectable").length > 0) { this.highlightUnderEvent(e); this.selectHighlighted(e); } })); // trap all mouse events from leaving the dropdown. sometimes there may be a modal that is listening // for mouse events outside of itself so it can close itself. since the dropdown is now outside the select2's // dom it will trigger the popup close, which is not what we want this.dropdown.on("click mouseup mousedown", function (e) { e.stopPropagation(); }); if ($.isFunction(this.opts.initSelection)) { // initialize selection based on the current value of the source element this.initSelection(); // if the user has provided a function that can set selection based on the value of the source element // we monitor the change event on the element and trigger it, allowing for two way synchronization this.monitorSource(); } if (opts.maximumInputLength !== null) { this.search.attr("maxlength", opts.maximumInputLength); } var disabled = opts.element.prop("disabled"); if (disabled === undefined) disabled = false; this.enable(!disabled); var readonly = opts.element.prop("readonly"); if (readonly === undefined) readonly = false; this.readonly(readonly); // Calculate size of scrollbar scrollBarDimensions = scrollBarDimensions || measureScrollbar(); this.autofocus = opts.element.prop("autofocus"); opts.element.prop("autofocus", false); if (this.autofocus) this.focus(); this.nextSearchTerm = undefined; }, // abstract destroy: function () { var element=this.opts.element, select2 = element.data("select2"); this.close(); if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; } if (select2 !== undefined) { select2.container.remove(); select2.dropdown.remove(); element .removeClass("select2-offscreen") .removeData("select2") .off(".select2") .prop("autofocus", this.autofocus || false); if (this.elementTabIndex) { element.attr({tabindex: this.elementTabIndex}); } else { element.removeAttr("tabindex"); } element.show(); } }, // abstract optionToData: function(element) { if (element.is("option")) { return { id:element.prop("value"), text:element.text(), element: element.get(), css: element.attr("class"), disabled: element.prop("disabled"), locked: equal(element.attr("locked"), "locked") || equal(element.data("locked"), true) }; } else if (element.is("optgroup")) { return { text:element.attr("label"), children:[], element: element.get(), css: element.attr("class") }; } }, // abstract prepareOpts: function (opts) { var element, select, idKey, ajaxUrl, self = this; element = opts.element; if (element.get(0).tagName.toLowerCase() === "select") { this.select = select = opts.element; } if (select) { // these options are not allowed when attached to a select because they are picked up off the element itself $.each(["id", "multiple", "ajax", "query", "createSearchChoice", "initSelection", "data", "tags"], function () { if (this in opts) { throw new Error("Option '" + this + "' is not allowed for Select2 when attached to a <select> element."); } }); } opts = $.extend({}, { populateResults: function(container, results, query) { var populate, id=this.opts.id; populate=function(results, container, depth) { var i, l, result, selectable, disabled, compound, node, label, innerContainer, formatted; results = opts.sortResults(results, container, query); for (i = 0, l = results.length; i < l; i = i + 1) { result=results[i]; disabled = (result.disabled === true); selectable = (!disabled) && (id(result) !== undefined); compound=result.children && result.children.length > 0; node=$("<li></li>"); node.addClass("select2-results-dept-"+depth); node.addClass("select2-result"); node.addClass(selectable ? "select2-result-selectable" : "select2-result-unselectable"); if (disabled) { node.addClass("select2-disabled"); } if (compound) { node.addClass("select2-result-with-children"); } node.addClass(self.opts.formatResultCssClass(result)); label=$(document.createElement("div")); label.addClass("select2-result-label"); formatted=opts.formatResult(result, label, query, self.opts.escapeMarkup); if (formatted!==undefined) { label.html(formatted); } node.append(label); if (compound) { innerContainer=$("<ul></ul>"); innerContainer.addClass("select2-result-sub"); populate(result.children, innerContainer, depth+1); node.append(innerContainer); } node.data("select2-data", result); container.append(node); } }; populate(results, container, 0); } }, $.fn.select2.defaults, opts); if (typeof(opts.id) !== "function") { idKey = opts.id; opts.id = function (e) { return e[idKey]; }; } if ($.isArray(opts.element.data("select2Tags"))) { if ("tags" in opts) { throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id"); } opts.tags=opts.element.data("select2Tags"); } if (select) { opts.query = this.bind(function (query) { var data = { results: [], more: false }, term = query.term, children, placeholderOption, process; process=function(element, collection) { var group; if (element.is("option")) { if (query.matcher(term, element.text(), element)) { collection.push(self.optionToData(element)); } } else if (element.is("optgroup")) { group=self.optionToData(element); element.children().each2(function(i, elm) { process(elm, group.children); }); if (group.children.length>0) { collection.push(group); } } }; children=element.children(); // ignore the placeholder option if there is one if (this.getPlaceholder() !== undefined && children.length > 0) { placeholderOption = this.getPlaceholderOption(); if (placeholderOption) { children=children.not(placeholderOption); } } children.each2(function(i, elm) { process(elm, data.results); }); query.callback(data); }); // this is needed because inside val() we construct choices from options and there id is hardcoded opts.id=function(e) { return e.id; }; opts.formatResultCssClass = function(data) { return data.css; }; } else { if (!("query" in opts)) { if ("ajax" in opts) { ajaxUrl = opts.element.data("ajax-url"); if (ajaxUrl && ajaxUrl.length > 0) { opts.ajax.url = ajaxUrl; } opts.query = ajax.call(opts.element, opts.ajax); } else if ("data" in opts) { opts.query = local(opts.data); } else if ("tags" in opts) { opts.query = tags(opts.tags); if (opts.createSearchChoice === undefined) { opts.createSearchChoice = function (term) { return {id: $.trim(term), text: $.trim(term)}; }; } if (opts.initSelection === undefined) { opts.initSelection = function (element, callback) { var data = []; $(splitVal(element.val(), opts.separator)).each(function () { var obj = { id: this, text: this }, tags = opts.tags; if ($.isFunction(tags)) tags=tags(); $(tags).each(function() { if (equal(this.id, obj.id)) { obj = this; return false; } }); data.push(obj); }); callback(data); }; } } } } if (typeof(opts.query) !== "function") { throw "query function not defined for Select2 " + opts.element.attr("id"); } return opts; }, /** * Monitor the original element for changes and update select2 accordingly */ // abstract monitorSource: function () { var el = this.opts.element, sync, observer; el.on("change.select2", this.bind(function (e) { if (this.opts.element.data("select2-change-triggered") !== true) { this.initSelection(); } })); sync = this.bind(function () { // sync enabled state var disabled = el.prop("disabled"); if (disabled === undefined) disabled = false; this.enable(!disabled); var readonly = el.prop("readonly"); if (readonly === undefined) readonly = false; this.readonly(readonly); syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass); this.container.addClass(evaluate(this.opts.containerCssClass)); syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass); this.dropdown.addClass(evaluate(this.opts.dropdownCssClass)); }); // IE8-10 el.on("propertychange.select2", sync); // hold onto a reference of the callback to work around a chromium bug if (this.mutationCallback === undefined) { this.mutationCallback = function (mutations) { mutations.forEach(sync); } } // safari, chrome, firefox, IE11 observer = window.MutationObserver || window.WebKitMutationObserver|| window.MozMutationObserver; if (observer !== undefined) { if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; } this.propertyObserver = new observer(this.mutationCallback); this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false }); } }, // abstract triggerSelect: function(data) { var evt = $.Event("select2-selecting", { val: this.id(data), object: data }); this.opts.element.trigger(evt); return !evt.isDefaultPrevented(); }, /** * Triggers the change event on the source element */ // abstract triggerChange: function (details) { details = details || {}; details= $.extend({}, details, { type: "change", val: this.val() }); // prevents recursive triggering this.opts.element.data("select2-change-triggered", true); this.opts.element.trigger(details); this.opts.element.data("select2-change-triggered", false); // some validation frameworks ignore the change event and listen instead to keyup, click for selects // so here we trigger the click event manually this.opts.element.click(); // ValidationEngine ignorea the change event and listens instead to blur // so here we trigger the blur event manually if so desired if (this.opts.blurOnChange) this.opts.element.blur(); }, //abstract isInterfaceEnabled: function() { return this.enabledInterface === true; }, // abstract enableInterface: function() { var enabled = this._enabled && !this._readonly, disabled = !enabled; if (enabled === this.enabledInterface) return false; this.container.toggleClass("select2-container-disabled", disabled); this.close(); this.enabledInterface = enabled; return true; }, // abstract enable: function(enabled) { if (enabled === undefined) enabled = true; if (this._enabled === enabled) return; this._enabled = enabled; this.opts.element.prop("disabled", !enabled); this.enableInterface(); }, // abstract disable: function() { this.enable(false); }, // abstract readonly: function(enabled) { if (enabled === undefined) enabled = false; if (this._readonly === enabled) return false; this._readonly = enabled; this.opts.element.prop("readonly", enabled); this.enableInterface(); return true; }, // abstract opened: function () { return this.container.hasClass("select2-dropdown-open"); }, // abstract positionDropdown: function() { var $dropdown = this.dropdown, offset = this.container.offset(), height = this.container.outerHeight(false), width = this.container.outerWidth(false), dropHeight = $dropdown.outerHeight(false), $window = $(window), windowWidth = $window.width(), windowHeight = $window.height(), viewPortRight = $window.scrollLeft() + windowWidth, viewportBottom = $window.scrollTop() + windowHeight, dropTop = offset.top + height, dropLeft = offset.left, enoughRoomBelow = dropTop + dropHeight <= viewportBottom, enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(), dropWidth = $dropdown.outerWidth(false), enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight, aboveNow = $dropdown.hasClass("select2-drop-above"), bodyOffset, above, changeDirection, css, resultsListNode; // always prefer the current above/below alignment, unless there is not enough room if (aboveNow) { above = true; if (!enoughRoomAbove && enoughRoomBelow) { changeDirection = true; above = false; } } else { above = false; if (!enoughRoomBelow && enoughRoomAbove) { changeDirection = true; above = true; } } //if we are changing direction we need to get positions when dropdown is hidden; if (changeDirection) { $dropdown.hide(); offset = this.container.offset(); height = this.container.outerHeight(false); width = this.container.outerWidth(false); dropHeight = $dropdown.outerHeight(false); viewPortRight = $window.scrollLeft() + windowWidth; viewportBottom = $window.scrollTop() + windowHeight; dropTop = offset.top + height; dropLeft = offset.left; dropWidth = $dropdown.outerWidth(false); enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight; $dropdown.show(); } if (this.opts.dropdownAutoWidth) { resultsListNode = $('.select2-results', $dropdown)[0]; $dropdown.addClass('select2-drop-auto-width'); $dropdown.css('width', ''); // Add scrollbar width to dropdown if vertical scrollbar is present dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width); dropWidth > width ? width = dropWidth : dropWidth = width; enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight; } else { this.container.removeClass('select2-drop-auto-width'); } //console.log("below/ droptop:", dropTop, "dropHeight", dropHeight, "sum", (dropTop+dropHeight)+" viewport bottom", viewportBottom, "enough?", enoughRoomBelow); //console.log("above/ offset.top", offset.top, "dropHeight", dropHeight, "top", (offset.top-dropHeight), "scrollTop", this.body().scrollTop(), "enough?", enoughRoomAbove); // fix positioning when body has an offset and is not position: static if (this.body().css('position') !== 'static') { bodyOffset = this.body().offset(); dropTop -= bodyOffset.top; dropLeft -= bodyOffset.left; } if (!enoughRoomOnRight) { dropLeft = offset.left + width - dropWidth; } css = { left: dropLeft, width: width }; if (above) { css.bottom = windowHeight - offset.top; css.top = 'auto'; this.container.addClass("select2-drop-above"); $dropdown.addClass("select2-drop-above"); } else { css.top = dropTop; css.bottom = 'auto'; this.container.removeClass("select2-drop-above"); $dropdown.removeClass("select2-drop-above"); } css = $.extend(css, evaluate(this.opts.dropdownCss)); $dropdown.css(css); }, // abstract shouldOpen: function() { var event; if (this.opened()) return false; if (this._enabled === false || this._readonly === true) return false; event = $.Event("select2-opening"); this.opts.element.trigger(event); return !event.isDefaultPrevented(); }, // abstract clearDropdownAlignmentPreference: function() { // clear the classes used to figure out the preference of where the dropdown should be opened this.container.removeClass("select2-drop-above"); this.dropdown.removeClass("select2-drop-above"); }, /** * Opens the dropdown * * @return {Boolean} whether or not dropdown was opened. This method will return false if, for example, * the dropdown is already open, or if the 'open' event listener on the element called preventDefault(). */ // abstract open: function () { if (!this.shouldOpen()) return false; this.opening(); return true; }, /** * Performs the opening of the dropdown */ // abstract opening: function() { var cid = this.containerId, scroll = "scroll." + cid, resize = "resize."+cid, orient = "orientationchange."+cid, mask; this.container.addClass("select2-dropdown-open").addClass("select2-container-active"); this.clearDropdownAlignmentPreference(); if(this.dropdown[0] !== this.body().children().last()[0]) { this.dropdown.detach().appendTo(this.body()); } // create the dropdown mask if doesnt already exist mask = $("#select2-drop-mask"); if (mask.length == 0) { mask = $(document.createElement("div")); mask.attr("id","select2-drop-mask").attr("class","select2-drop-mask"); mask.hide(); mask.appendTo(this.body()); mask.on("mousedown touchstart click", function (e) { var dropdown = $("#select2-drop"), self; if (dropdown.length > 0) { self=dropdown.data("select2"); if (self.opts.selectOnBlur) { self.selectHighlighted({noFocus: true}); } self.close({focus:true}); e.preventDefault(); e.stopPropagation(); } }); } // ensure the mask is always right before the dropdown if (this.dropdown.prev()[0] !== mask[0]) { this.dropdown.before(mask); } // move the global id to the correct dropdown $("#select2-drop").removeAttr("id"); this.dropdown.attr("id", "select2-drop"); // show the elements mask.show(); this.positionDropdown(); this.dropdown.show(); this.positionDropdown(); this.dropdown.addClass("select2-drop-active"); // attach listeners to events that can change the position of the container and thus require // the position of the dropdown to be updated as well so it does not come unglued from the container var that = this; this.container.parents().add(window).each(function () { $(this).on(resize+" "+scroll+" "+orient, function (e) { that.positionDropdown(); }); }); }, // abstract close: function () { if (!this.opened()) return; var cid = this.containerId, scroll = "scroll." + cid, resize = "resize."+cid, orient = "orientationchange."+cid; // unbind event listeners this.container.parents().add(window).each(function () { $(this).off(scroll).off(resize).off(orient); }); this.clearDropdownAlignmentPreference(); $("#select2-drop-mask").hide(); this.dropdown.removeAttr("id"); // only the active dropdown has the select2-drop id this.dropdown.hide(); this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"); this.results.empty(); this.clearSearch(); this.search.removeClass("select2-active"); this.opts.element.trigger($.Event("select2-close")); }, /** * Opens control, sets input value, and updates results. */ // abstract externalSearch: function (term) { this.open(); this.search.val(term); this.updateResults(false); }, // abstract clearSearch: function () { }, //abstract getMaximumSelectionSize: function() { return evaluate(this.opts.maximumSelectionSize); }, // abstract ensureHighlightVisible: function () { var results = this.results, children, index, child, hb, rb, y, more; index = this.highlight(); if (index < 0) return; if (index == 0) { // if the first element is highlighted scroll all the way to the top, // that way any unselectable headers above it will also be scrolled // into view results.scrollTop(0); return; } children = this.findHighlightableChoices().find('.select2-result-label'); child = $(children[index]); hb = child.offset().top + child.outerHeight(true); // if this is the last child lets also make sure select2-more-results is visible if (index === children.length - 1) { more = results.find("li.select2-more-results"); if (more.length > 0) { hb = more.offset().top + more.outerHeight(true); } } rb = results.offset().top + results.outerHeight(true); if (hb > rb) { results.scrollTop(results.scrollTop() + (hb - rb)); } y = child.offset().top - results.offset().top; // make sure the top of the element is visible if (y < 0 && child.css('display') != 'none' ) { results.scrollTop(results.scrollTop() + y); // y is negative } }, // abstract findHighlightableChoices: function() { return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)"); }, // abstract moveHighlight: function (delta) { var choices = this.findHighlightableChoices(), index = this.highlight(); while (index > -1 && index < choices.length) { index += delta; var choice = $(choices[index]); if (choice.hasClass("select2-result-selectable") && !choice.hasClass("select2-disabled") && !choice.hasClass("select2-selected")) { this.highlight(index); break; } } }, // abstract highlight: function (index) { var choices = this.findHighlightableChoices(), choice, data; if (arguments.length === 0) { return indexOf(choices.filter(".select2-highlighted")[0], choices.get()); } if (index >= choices.length) index = choices.length - 1; if (index < 0) index = 0; this.removeHighlight(); choice = $(choices[index]); choice.addClass("select2-highlighted"); this.ensureHighlightVisible(); data = choice.data("select2-data"); if (data) { this.opts.element.trigger({ type: "select2-highlight", val: this.id(data), choice: data }); } }, removeHighlight: function() { this.results.find(".select2-highlighted").removeClass("select2-highlighted"); }, // abstract countSelectableResults: function() { return this.findHighlightableChoices().length; }, // abstract highlightUnderEvent: function (event) { var el = $(event.target).closest(".select2-result-selectable"); if (el.length > 0 && !el.is(".select2-highlighted")) { var choices = this.findHighlightableChoices(); this.highlight(choices.index(el)); } else if (el.length == 0) { // if we are over an unselectable item remove all highlights this.removeHighlight(); } }, // abstract loadMoreIfNeeded: function () { var results = this.results, more = results.find("li.select2-more-results"), below, // pixels the element is below the scroll fold, below==0 is when the element is starting to be visible page = this.resultsPage + 1, self=this, term=this.search.val(), context=this.context; if (more.length === 0) return; below = more.offset().top - results.offset().top - results.height(); if (below <= this.opts.loadMorePadding) { more.addClass("select2-active"); this.opts.query({ element: this.opts.element, term: term, page: page, context: context, matcher: this.opts.matcher, callback: this.bind(function (data) { // ignore a response if the select2 has been closed before it was received if (!self.opened()) return; self.opts.populateResults.call(this, results, data.results, {term: term, page: page, context:context}); self.postprocessResults(data, false, false); if (data.more===true) { more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1)); window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10); } else { more.remove(); } self.positionDropdown(); self.resultsPage = page; self.context = data.context; this.opts.element.trigger({ type: "select2-loaded", items: data }); })}); } }, /** * Default tokenizer function which does nothing */ tokenize: function() { }, /** * @param initial whether or not this is the call to this method right after the dropdown has been opened */ // abstract updateResults: function (initial) { var search = this.search, results = this.results, opts = this.opts, data, self = this, input, term = search.val(), lastTerm = $.data(this.container, "select2-last-term"), // sequence number used to drop out-of-order responses queryNumber; // prevent duplicate queries against the same term if (initial !== true && lastTerm && equal(term, lastTerm)) return; $.data(this.container, "select2-last-term", term); // if the search is currently hidden we do not alter the results if (initial !== true && (this.showSearchInput === false || !this.opened())) { return; } function postRender() { search.removeClass("select2-active"); self.positionDropdown(); } function render(html) { results.html(html); postRender(); } queryNumber = ++this.queryCount; var maxSelSize = this.getMaximumSelectionSize(); if (maxSelSize >=1) { data = this.data(); if ($.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) { render("<li class='select2-selection-limit'>" + opts.formatSelectionTooBig(maxSelSize) + "</li>"); return; } } if (search.val().length < opts.minimumInputLength) { if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) { render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>"); } else { render(""); } if (initial && this.showSearch) this.showSearch(true); return; } if (opts.maximumInputLength && search.val().length > opts.maximumInputLength) { if (checkFormatter(opts.formatInputTooLong, "formatInputTooLong")) { render("<li class='select2-no-results'>" + opts.formatInputTooLong(search.val(), opts.maximumInputLength) + "</li>"); } else { render(""); } return; } if (opts.formatSearching && this.findHighlightableChoices().length === 0) { render("<li class='select2-searching'>" + opts.formatSearching() + "</li>"); } search.addClass("select2-active"); this.removeHighlight(); // give the tokenizer a chance to pre-process the input input = this.tokenize(); if (input != undefined && input != null) { search.val(input); } this.resultsPage = 1; opts.query({ element: opts.element, term: search.val(), page: this.resultsPage, context: null, matcher: opts.matcher, callback: this.bind(function (data) { var def; // default choice // ignore old responses if (queryNumber != this.queryCount) { return; } // ignore a response if the select2 has been closed before it was received if (!this.opened()) { this.search.removeClass("select2-active"); return; } // save context, if any this.context = (data.context===undefined) ? null : data.context; // create a default choice and prepend it to the list if (this.opts.createSearchChoice && search.val() !== "") { def = this.opts.createSearchChoice.call(self, search.val(), data.results); if (def !== undefined && def !== null && self.id(def) !== undefined && self.id(def) !== null) { if ($(data.results).filter( function () { return equal(self.id(this), self.id(def)); }).length === 0) { data.results.unshift(def); } } } if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) { render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>"); return; } results.empty(); self.opts.populateResults.call(this, results, data.results, {term: search.val(), page: this.resultsPage, context:null}); if (data.more === true && checkFormatter(opts.formatLoadMore, "formatLoadMore")) { results.append("<li class='select2-more-results'>" + self.opts.escapeMarkup(opts.formatLoadMore(this.resultsPage)) + "</li>"); window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10); } this.postprocessResults(data, initial); postRender(); this.opts.element.trigger({ type: "select2-loaded", items: data }); })}); }, // abstract cancel: function () { this.close(); }, // abstract blur: function () { // if selectOnBlur == true, select the currently highlighted option if (this.opts.selectOnBlur) this.selectHighlighted({noFocus: true}); this.close(); this.container.removeClass("select2-container-active"); // synonymous to .is(':focus'), which is available in jquery >= 1.6 if (this.search[0] === document.activeElement) { this.search.blur(); } this.clearSearch(); this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); }, // abstract focusSearch: function () { focus(this.search); }, // abstract selectHighlighted: function (options) { var index=this.highlight(), highlighted=this.results.find(".select2-highlighted"), data = highlighted.closest('.select2-result').data("select2-data"); if (data) { this.highlight(index); this.onSelect(data, options); } else if (options && options.noFocus) { this.close(); } }, // abstract getPlaceholder: function () { var placeholderOption; return this.opts.element.attr("placeholder") || this.opts.element.attr("data-placeholder") || // jquery 1.4 compat this.opts.element.data("placeholder") || this.opts.placeholder || ((placeholderOption = this.getPlaceholderOption()) !== undefined ? placeholderOption.text() : undefined); }, // abstract getPlaceholderOption: function() { if (this.select) { var firstOption = this.select.children('option').first(); if (this.opts.placeholderOption !== undefined ) { //Determine the placeholder option based on the specified placeholderOption setting return (this.opts.placeholderOption === "first" && firstOption) || (typeof this.opts.placeholderOption === "function" && this.opts.placeholderOption(this.select)); } else if (firstOption.text() === "" && firstOption.val() === "") { //No explicit placeholder option specified, use the first if it's blank return firstOption; } } }, /** * Get the desired width for the container element. This is * derived first from option `width` passed to select2, then * the inline 'style' on the original element, and finally * falls back to the jQuery calculated element width. */ // abstract initContainerWidth: function () { function resolveContainerWidth() { var style, attrs, matches, i, l, attr; if (this.opts.width === "off") { return null; } else if (this.opts.width === "element"){ return this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px'; } else if (this.opts.width === "copy" || this.opts.width === "resolve") { // check if there is inline style on the element that contains width style = this.opts.element.attr('style'); if (style !== undefined) { attrs = style.split(';'); for (i = 0, l = attrs.length; i < l; i = i + 1) { attr = attrs[i].replace(/\s/g, ''); matches = attr.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i); if (matches !== null && matches.length >= 1) return matches[1]; } } if (this.opts.width === "resolve") { // next check if css('width') can resolve a width that is percent based, this is sometimes possible // when attached to input type=hidden or elements hidden via css style = this.opts.element.css('width'); if (style.indexOf("%") > 0) return style; // finally, fallback on the calculated width of the element return (this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px'); } return null; } else if ($.isFunction(this.opts.width)) { return this.opts.width(); } else { return this.opts.width; } }; var width = resolveContainerWidth.call(this); if (width !== null) { this.container.css("width", width); } } }); SingleSelect2 = clazz(AbstractSelect2, { // single createContainer: function () { var container = $(document.createElement("div")).attr({ "class": "select2-container" }).html([ "<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>", " <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>", " <span class='select2-arrow'><b></b></span>", "</a>", "<input class='select2-focusser select2-offscreen' type='text'/>", "<div class='select2-drop select2-display-none'>", " <div class='select2-search'>", " <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>", " </div>", " <ul class='select2-results'>", " </ul>", "</div>"].join("")); return container; }, // single enableInterface: function() { if (this.parent.enableInterface.apply(this, arguments)) { this.focusser.prop("disabled", !this.isInterfaceEnabled()); } }, // single opening: function () { var el, range, len; if (this.opts.minimumResultsForSearch >= 0) { this.showSearch(true); } this.parent.opening.apply(this, arguments); if (this.showSearchInput !== false) { // IE appends focusser.val() at the end of field :/ so we manually insert it at the beginning using a range // all other browsers handle this just fine this.search.val(this.focusser.val()); } this.search.focus(); // move the cursor to the end after focussing, otherwise it will be at the beginning and // new text will appear *before* focusser.val() el = this.search.get(0); if (el.createTextRange) { range = el.createTextRange(); range.collapse(false); range.select(); } else if (el.setSelectionRange) { len = this.search.val().length; el.setSelectionRange(len, len); } // initializes search's value with nextSearchTerm (if defined by user) // ignore nextSearchTerm if the dropdown is opened by the user pressing a letter if(this.search.val() === "") { if(this.nextSearchTerm != undefined){ this.search.val(this.nextSearchTerm); this.search.select(); } } this.focusser.prop("disabled", true).val(""); this.updateResults(true); this.opts.element.trigger($.Event("select2-open")); }, // single close: function (params) { if (!this.opened()) return; this.parent.close.apply(this, arguments); params = params || {focus: true}; this.focusser.removeAttr("disabled"); if (params.focus) { this.focusser.focus(); } }, // single focus: function () { if (this.opened()) { this.close(); } else { this.focusser.removeAttr("disabled"); this.focusser.focus(); } }, // single isFocused: function () { return this.container.hasClass("select2-container-active"); }, // single cancel: function () { this.parent.cancel.apply(this, arguments); this.focusser.removeAttr("disabled"); this.focusser.focus(); }, // single destroy: function() { $("label[for='" + this.focusser.attr('id') + "']") .attr('for', this.opts.element.attr("id")); this.parent.destroy.apply(this, arguments); }, // single initContainer: function () { var selection, container = this.container, dropdown = this.dropdown; if (this.opts.minimumResultsForSearch < 0) { this.showSearch(false); } else { this.showSearch(true); } this.selection = selection = container.find(".select2-choice"); this.focusser = container.find(".select2-focusser"); // rewrite labels from original element to focusser this.focusser.attr("id", "s2id_autogen"+nextUid()); $("label[for='" + this.opts.element.attr("id") + "']") .attr('for', this.focusser.attr('id')); this.focusser.attr("tabindex", this.elementTabIndex); this.search.on("keydown", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) { // prevent the page from scrolling killEvent(e); return; } switch (e.which) { case KEY.UP: case KEY.DOWN: this.moveHighlight((e.which === KEY.UP) ? -1 : 1); killEvent(e); return; case KEY.ENTER: this.selectHighlighted(); killEvent(e); return; case KEY.TAB: this.selectHighlighted({noFocus: true}); return; case KEY.ESC: this.cancel(e); killEvent(e); return; } })); this.search.on("blur", this.bind(function(e) { // a workaround for chrome to keep the search field focussed when the scroll bar is used to scroll the dropdown. // without this the search field loses focus which is annoying if (document.activeElement === this.body().get(0)) { window.setTimeout(this.bind(function() { this.search.focus(); }), 0); } })); this.focusser.on("keydown", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC) { return; } if (this.opts.openOnEnter === false && e.which === KEY.ENTER) { killEvent(e); return; } if (e.which == KEY.DOWN || e.which == KEY.UP || (e.which == KEY.ENTER && this.opts.openOnEnter)) { if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) return; this.open(); killEvent(e); return; } if (e.which == KEY.DELETE || e.which == KEY.BACKSPACE) { if (this.opts.allowClear) { this.clear(); } killEvent(e); return; } })); installKeyUpChangeEvent(this.focusser); this.focusser.on("keyup-change input", this.bind(function(e) { if (this.opts.minimumResultsForSearch >= 0) { e.stopPropagation(); if (this.opened()) return; this.open(); } })); selection.on("mousedown", "abbr", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; this.clear(); killEventImmediately(e); this.close(); this.selection.focus(); })); selection.on("mousedown", this.bind(function (e) { if (!this.container.hasClass("select2-container-active")) { this.opts.element.trigger($.Event("select2-focus")); } if (this.opened()) { this.close(); } else if (this.isInterfaceEnabled()) { this.open(); } killEvent(e); })); dropdown.on("mousedown", this.bind(function() { this.search.focus(); })); selection.on("focus", this.bind(function(e) { killEvent(e); })); this.focusser.on("focus", this.bind(function(){ if (!this.container.hasClass("select2-container-active")) { this.opts.element.trigger($.Event("select2-focus")); } this.container.addClass("select2-container-active"); })).on("blur", this.bind(function() { if (!this.opened()) { this.container.removeClass("select2-container-active"); this.opts.element.trigger($.Event("select2-blur")); } })); this.search.on("focus", this.bind(function(){ if (!this.container.hasClass("select2-container-active")) { this.opts.element.trigger($.Event("select2-focus")); } this.container.addClass("select2-container-active"); })); this.initContainerWidth(); this.opts.element.addClass("select2-offscreen"); this.setPlaceholder(); }, // single clear: function(triggerChange) { var data=this.selection.data("select2-data"); if (data) { // guard against queued quick consecutive clicks var evt = $.Event("select2-clearing"); this.opts.element.trigger(evt); if (evt.isDefaultPrevented()) { return; } var placeholderOption = this.getPlaceholderOption(); this.opts.element.val(placeholderOption ? placeholderOption.val() : ""); this.selection.find(".select2-chosen").empty(); this.selection.removeData("select2-data"); this.setPlaceholder(); if (triggerChange !== false){ this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data }); this.triggerChange({removed:data}); } } }, /** * Sets selection based on source element's value */ // single initSelection: function () { var selected; if (this.isPlaceholderOptionSelected()) { this.updateSelection(null); this.close(); this.setPlaceholder(); } else { var self = this; this.opts.initSelection.call(null, this.opts.element, function(selected){ if (selected !== undefined && selected !== null) { self.updateSelection(selected); self.close(); self.setPlaceholder(); } }); } }, isPlaceholderOptionSelected: function() { var placeholderOption; if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.prop("selected")) || (this.opts.element.val() === "") || (this.opts.element.val() === undefined) || (this.opts.element.val() === null); }, // single prepareOpts: function () { var opts = this.parent.prepareOpts.apply(this, arguments), self=this; if (opts.element.get(0).tagName.toLowerCase() === "select") { // install the selection initializer opts.initSelection = function (element, callback) { var selected = element.find("option").filter(function() { return this.selected }); // a single select box always has a value, no need to null check 'selected' callback(self.optionToData(selected)); }; } else if ("data" in opts) { // install default initSelection when applied to hidden input and data is local opts.initSelection = opts.initSelection || function (element, callback) { var id = element.val(); //search in data by id, storing the actual matching item var match = null; opts.query({ matcher: function(term, text, el){ var is_match = equal(id, opts.id(el)); if (is_match) { match = el; } return is_match; }, callback: !$.isFunction(callback) ? $.noop : function() { callback(match); } }); }; } return opts; }, // single getPlaceholder: function() { // if a placeholder is specified on a single select without a valid placeholder option ignore it if (this.select) { if (this.getPlaceholderOption() === undefined) { return undefined; } } return this.parent.getPlaceholder.apply(this, arguments); }, // single setPlaceholder: function () { var placeholder = this.getPlaceholder(); if (this.isPlaceholderOptionSelected() && placeholder !== undefined) { // check for a placeholder option if attached to a select if (this.select && this.getPlaceholderOption() === undefined) return; this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(placeholder)); this.selection.addClass("select2-default"); this.container.removeClass("select2-allowclear"); } }, // single postprocessResults: function (data, initial, noHighlightUpdate) { var selected = 0, self = this, showSearchInput = true; // find the selected element in the result list this.findHighlightableChoices().each2(function (i, elm) { if (equal(self.id(elm.data("select2-data")), self.opts.element.val())) { selected = i; return false; } }); // and highlight it if (noHighlightUpdate !== false) { if (initial === true && selected >= 0) { this.highlight(selected); } else { this.highlight(0); } } // hide the search box if this is the first we got the results and there are enough of them for search if (initial === true) { var min = this.opts.minimumResultsForSearch; if (min >= 0) { this.showSearch(countResults(data.results) >= min); } } }, // single showSearch: function(showSearchInput) { if (this.showSearchInput === showSearchInput) return; this.showSearchInput = showSearchInput; this.dropdown.find(".select2-search").toggleClass("select2-search-hidden", !showSearchInput); this.dropdown.find(".select2-search").toggleClass("select2-offscreen", !showSearchInput); //add "select2-with-searchbox" to the container if search box is shown $(this.dropdown, this.container).toggleClass("select2-with-searchbox", showSearchInput); }, // single onSelect: function (data, options) { if (!this.triggerSelect(data)) { return; } var old = this.opts.element.val(), oldData = this.data(); this.opts.element.val(this.id(data)); this.updateSelection(data); this.opts.element.trigger({ type: "select2-selected", val: this.id(data), choice: data }); this.nextSearchTerm = this.opts.nextSearchTerm(data, this.search.val()); this.close(); if (!options || !options.noFocus) this.focusser.focus(); if (!equal(old, this.id(data))) { this.triggerChange({added:data,removed:oldData}); } }, // single updateSelection: function (data) { var container=this.selection.find(".select2-chosen"), formatted, cssClass; this.selection.data("select2-data", data); container.empty(); if (data !== null) { formatted=this.opts.formatSelection(data, container, this.opts.escapeMarkup); } if (formatted !== undefined) { container.append(formatted); } cssClass=this.opts.formatSelectionCssClass(data, container); if (cssClass !== undefined) { container.addClass(cssClass); } this.selection.removeClass("select2-default"); if (this.opts.allowClear && this.getPlaceholder() !== undefined) { this.container.addClass("select2-allowclear"); } }, // single val: function () { var val, triggerChange = false, data = null, self = this, oldData = this.data(); if (arguments.length === 0) { return this.opts.element.val(); } val = arguments[0]; if (arguments.length > 1) { triggerChange = arguments[1]; } if (this.select) { this.select .val(val) .find("option").filter(function() { return this.selected }).each2(function (i, elm) { data = self.optionToData(elm); return false; }); this.updateSelection(data); this.setPlaceholder(); if (triggerChange) { this.triggerChange({added: data, removed:oldData}); } } else { // val is an id. !val is true for [undefined,null,'',0] - 0 is legal if (!val && val !== 0) { this.clear(triggerChange); return; } if (this.opts.initSelection === undefined) { throw new Error("cannot call val() if initSelection() is not defined"); } this.opts.element.val(val); this.opts.initSelection(this.opts.element, function(data){ self.opts.element.val(!data ? "" : self.id(data)); self.updateSelection(data); self.setPlaceholder(); if (triggerChange) { self.triggerChange({added: data, removed:oldData}); } }); } }, // single clearSearch: function () { this.search.val(""); this.focusser.val(""); }, // single data: function(value) { var data, triggerChange = false; if (arguments.length === 0) { data = this.selection.data("select2-data"); if (data == undefined) data = null; return data; } else { if (arguments.length > 1) { triggerChange = arguments[1]; } if (!value) { this.clear(triggerChange); } else { data = this.data(); this.opts.element.val(!value ? "" : this.id(value)); this.updateSelection(value); if (triggerChange) { this.triggerChange({added: value, removed:data}); } } } } }); MultiSelect2 = clazz(AbstractSelect2, { // multi createContainer: function () { var container = $(document.createElement("div")).attr({ "class": "select2-container select2-container-multi" }).html([ "<ul class='select2-choices'>", " <li class='select2-search-field'>", " <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>", " </li>", "</ul>", "<div class='select2-drop select2-drop-multi select2-display-none'>", " <ul class='select2-results'>", " </ul>", "</div>"].join("")); return container; }, // multi prepareOpts: function () { var opts = this.parent.prepareOpts.apply(this, arguments), self=this; // TODO validate placeholder is a string if specified if (opts.element.get(0).tagName.toLowerCase() === "select") { // install sthe selection initializer opts.initSelection = function (element, callback) { var data = []; element.find("option").filter(function() { return this.selected }).each2(function (i, elm) { data.push(self.optionToData(elm)); }); callback(data); }; } else if ("data" in opts) { // install default initSelection when applied to hidden input and data is local opts.initSelection = opts.initSelection || function (element, callback) { var ids = splitVal(element.val(), opts.separator); //search in data by array of ids, storing matching items in a list var matches = []; opts.query({ matcher: function(term, text, el){ var is_match = $.grep(ids, function(id) { return equal(id, opts.id(el)); }).length; if (is_match) { matches.push(el); } return is_match; }, callback: !$.isFunction(callback) ? $.noop : function() { // reorder matches based on the order they appear in the ids array because right now // they are in the order in which they appear in data array var ordered = []; for (var i = 0; i < ids.length; i++) { var id = ids[i]; for (var j = 0; j < matches.length; j++) { var match = matches[j]; if (equal(id, opts.id(match))) { ordered.push(match); matches.splice(j, 1); break; } } } callback(ordered); } }); }; } return opts; }, selectChoice: function (choice) { var selected = this.container.find(".select2-search-choice-focus"); if (selected.length && choice && choice[0] == selected[0]) { } else { if (selected.length) { this.opts.element.trigger("choice-deselected", selected); } selected.removeClass("select2-search-choice-focus"); if (choice && choice.length) { this.close(); choice.addClass("select2-search-choice-focus"); this.opts.element.trigger("choice-selected", choice); } } }, // multi destroy: function() { $("label[for='" + this.search.attr('id') + "']") .attr('for', this.opts.element.attr("id")); this.parent.destroy.apply(this, arguments); }, // multi initContainer: function () { var selector = ".select2-choices", selection; this.searchContainer = this.container.find(".select2-search-field"); this.selection = selection = this.container.find(selector); var _this = this; this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) { //killEvent(e); _this.search[0].focus(); _this.selectChoice($(this)); }); // rewrite labels from original element to focusser this.search.attr("id", "s2id_autogen"+nextUid()); $("label[for='" + this.opts.element.attr("id") + "']") .attr('for', this.search.attr('id')); this.search.on("input paste", this.bind(function() { if (!this.isInterfaceEnabled()) return; if (!this.opened()) { this.open(); } })); this.search.attr("tabindex", this.elementTabIndex); this.keydowns = 0; this.search.on("keydown", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; ++this.keydowns; var selected = selection.find(".select2-search-choice-focus"); var prev = selected.prev(".select2-search-choice:not(.select2-locked)"); var next = selected.next(".select2-search-choice:not(.select2-locked)"); var pos = getCursorInfo(this.search); if (selected.length && (e.which == KEY.LEFT || e.which == KEY.RIGHT || e.which == KEY.BACKSPACE || e.which == KEY.DELETE || e.which == KEY.ENTER)) { var selectedChoice = selected; if (e.which == KEY.LEFT && prev.length) { selectedChoice = prev; } else if (e.which == KEY.RIGHT) { selectedChoice = next.length ? next : null; } else if (e.which === KEY.BACKSPACE) { this.unselect(selected.first()); this.search.width(10); selectedChoice = prev.length ? prev : next; } else if (e.which == KEY.DELETE) { this.unselect(selected.first()); this.search.width(10); selectedChoice = next.length ? next : null; } else if (e.which == KEY.ENTER) { selectedChoice = null; } this.selectChoice(selectedChoice); killEvent(e); if (!selectedChoice || !selectedChoice.length) { this.open(); } return; } else if (((e.which === KEY.BACKSPACE && this.keydowns == 1) || e.which == KEY.LEFT) && (pos.offset == 0 && !pos.length)) { this.selectChoice(selection.find(".select2-search-choice:not(.select2-locked)").last()); killEvent(e); return; } else { this.selectChoice(null); } if (this.opened()) { switch (e.which) { case KEY.UP: case KEY.DOWN: this.moveHighlight((e.which === KEY.UP) ? -1 : 1); killEvent(e); return; case KEY.ENTER: this.selectHighlighted(); killEvent(e); return; case KEY.TAB: this.selectHighlighted({noFocus:true}); this.close(); return; case KEY.ESC: this.cancel(e); killEvent(e); return; } } if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.BACKSPACE || e.which === KEY.ESC) { return; } if (e.which === KEY.ENTER) { if (this.opts.openOnEnter === false) { return; } else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) { return; } } this.open(); if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) { // prevent the page from scrolling killEvent(e); } if (e.which === KEY.ENTER) { // prevent form from being submitted killEvent(e); } })); this.search.on("keyup", this.bind(function (e) { this.keydowns = 0; this.resizeSearch(); }) ); this.search.on("blur", this.bind(function(e) { this.container.removeClass("select2-container-active"); this.search.removeClass("select2-focused"); this.selectChoice(null); if (!this.opened()) this.clearSearch(); e.stopImmediatePropagation(); this.opts.element.trigger($.Event("select2-blur")); })); this.container.on("click", selector, this.bind(function (e) { if (!this.isInterfaceEnabled()) return; if ($(e.target).closest(".select2-search-choice").length > 0) { // clicked inside a select2 search choice, do not open return; } this.selectChoice(null); this.clearPlaceholder(); if (!this.container.hasClass("select2-container-active")) { this.opts.element.trigger($.Event("select2-focus")); } this.open(); this.focusSearch(); e.preventDefault(); })); this.container.on("focus", selector, this.bind(function () { if (!this.isInterfaceEnabled()) return; if (!this.container.hasClass("select2-container-active")) { this.opts.element.trigger($.Event("select2-focus")); } this.container.addClass("select2-container-active"); this.dropdown.addClass("select2-drop-active"); this.clearPlaceholder(); })); this.initContainerWidth(); this.opts.element.addClass("select2-offscreen"); // set the placeholder if necessary this.clearSearch(); }, // multi enableInterface: function() { if (this.parent.enableInterface.apply(this, arguments)) { this.search.prop("disabled", !this.isInterfaceEnabled()); } }, // multi initSelection: function () { var data; if (this.opts.element.val() === "" && this.opts.element.text() === "") { this.updateSelection([]); this.close(); // set the placeholder if necessary this.clearSearch(); } if (this.select || this.opts.element.val() !== "") { var self = this; this.opts.initSelection.call(null, this.opts.element, function(data){ if (data !== undefined && data !== null) { self.updateSelection(data); self.close(); // set the placeholder if necessary self.clearSearch(); } }); } }, // multi clearSearch: function () { var placeholder = this.getPlaceholder(), maxWidth = this.getMaxSearchWidth(); if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) { this.search.val(placeholder).addClass("select2-default"); // stretch the search box to full width of the container so as much of the placeholder is visible as possible // we could call this.resizeSearch(), but we do not because that requires a sizer and we do not want to create one so early because of a firefox bug, see #944 this.search.width(maxWidth > 0 ? maxWidth : this.container.css("width")); } else { this.search.val("").width(10); } }, // multi clearPlaceholder: function () { if (this.search.hasClass("select2-default")) { this.search.val("").removeClass("select2-default"); } }, // multi opening: function () { this.clearPlaceholder(); // should be done before super so placeholder is not used to search this.resizeSearch(); this.parent.opening.apply(this, arguments); this.focusSearch(); this.updateResults(true); this.search.focus(); this.opts.element.trigger($.Event("select2-open")); }, // multi close: function () { if (!this.opened()) return; this.parent.close.apply(this, arguments); }, // multi focus: function () { this.close(); this.search.focus(); }, // multi isFocused: function () { return this.search.hasClass("select2-focused"); }, // multi updateSelection: function (data) { var ids = [], filtered = [], self = this; // filter out duplicates $(data).each(function () { if (indexOf(self.id(this), ids) < 0) { ids.push(self.id(this)); filtered.push(this); } }); data = filtered; this.selection.find(".select2-search-choice").remove(); $(data).each(function () { self.addSelectedChoice(this); }); self.postprocessResults(); }, // multi tokenize: function() { var input = this.search.val(); input = this.opts.tokenizer.call(this, input, this.data(), this.bind(this.onSelect), this.opts); if (input != null && input != undefined) { this.search.val(input); if (input.length > 0) { this.open(); } } }, // multi onSelect: function (data, options) { if (!this.triggerSelect(data)) { return; } this.addSelectedChoice(data); this.opts.element.trigger({ type: "selected", val: this.id(data), choice: data }); if (this.select || !this.opts.closeOnSelect) this.postprocessResults(data, false, this.opts.closeOnSelect===true); if (this.opts.closeOnSelect) { this.close(); this.search.width(10); } else { if (this.countSelectableResults()>0) { this.search.width(10); this.resizeSearch(); if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) { // if we reached max selection size repaint the results so choices // are replaced with the max selection reached message this.updateResults(true); } this.positionDropdown(); } else { // if nothing left to select close this.close(); this.search.width(10); } } // since its not possible to select an element that has already been // added we do not need to check if this is a new element before firing change this.triggerChange({ added: data }); if (!options || !options.noFocus) this.focusSearch(); }, // multi cancel: function () { this.close(); this.focusSearch(); }, addSelectedChoice: function (data) { var enableChoice = !data.locked, enabledItem = $( "<li class='select2-search-choice'>" + " <div></div>" + " <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" + "</li>"), disabledItem = $( "<li class='select2-search-choice select2-locked'>" + "<div></div>" + "</li>"); var choice = enableChoice ? enabledItem : disabledItem, id = this.id(data), val = this.getVal(), formatted, cssClass; formatted=this.opts.formatSelection(data, choice.find("div"), this.opts.escapeMarkup); if (formatted != undefined) { choice.find("div").replaceWith("<div>"+formatted+"</div>"); } cssClass=this.opts.formatSelectionCssClass(data, choice.find("div")); if (cssClass != undefined) { choice.addClass(cssClass); } if(enableChoice){ choice.find(".select2-search-choice-close") .on("mousedown", killEvent) .on("click dblclick", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){ this.unselect($(e.target)); this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); this.close(); this.focusSearch(); })).dequeue(); killEvent(e); })).on("focus", this.bind(function () { if (!this.isInterfaceEnabled()) return; this.container.addClass("select2-container-active"); this.dropdown.addClass("select2-drop-active"); })); } choice.data("select2-data", data); choice.insertBefore(this.searchContainer); val.push(id); this.setVal(val); }, // multi unselect: function (selected) { var val = this.getVal(), data, index; selected = selected.closest(".select2-search-choice"); if (selected.length === 0) { throw "Invalid argument: " + selected + ". Must be .select2-search-choice"; } data = selected.data("select2-data"); if (!data) { // prevent a race condition when the 'x' is clicked really fast repeatedly the event can be queued // and invoked on an element already removed return; } while((index = indexOf(this.id(data), val)) >= 0) { val.splice(index, 1); this.setVal(val); if (this.select) this.postprocessResults(); } var evt = $.Event("select2-removing"); evt.val = this.id(data); evt.choice = data; this.opts.element.trigger(evt); if (evt.isDefaultPrevented()) { return; } this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data }); this.triggerChange({ removed: data }); }, // multi postprocessResults: function (data, initial, noHighlightUpdate) { var val = this.getVal(), choices = this.results.find(".select2-result"), compound = this.results.find(".select2-result-with-children"), self = this; choices.each2(function (i, choice) { var id = self.id(choice.data("select2-data")); if (indexOf(id, val) >= 0) { choice.addClass("select2-selected"); // mark all children of the selected parent as selected choice.find(".select2-result-selectable").addClass("select2-selected"); } }); compound.each2(function(i, choice) { // hide an optgroup if it doesnt have any selectable children if (!choice.is('.select2-result-selectable') && choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) { choice.addClass("select2-selected"); } }); if (this.highlight() == -1 && noHighlightUpdate !== false){ self.highlight(0); } //If all results are chosen render formatNoMAtches if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){ if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) { if (checkFormatter(self.opts.formatNoMatches, "formatNoMatches")) { this.results.append("<li class='select2-no-results'>" + self.opts.formatNoMatches(self.search.val()) + "</li>"); } } } }, // multi getMaxSearchWidth: function() { return this.selection.width() - getSideBorderPadding(this.search); }, // multi resizeSearch: function () { var minimumWidth, left, maxWidth, containerLeft, searchWidth, sideBorderPadding = getSideBorderPadding(this.search); minimumWidth = measureTextWidth(this.search) + 10; left = this.search.offset().left; maxWidth = this.selection.width(); containerLeft = this.selection.offset().left; searchWidth = maxWidth - (left - containerLeft) - sideBorderPadding; if (searchWidth < minimumWidth) { searchWidth = maxWidth - sideBorderPadding; } if (searchWidth < 40) { searchWidth = maxWidth - sideBorderPadding; } if (searchWidth <= 0) { searchWidth = minimumWidth; } this.search.width(Math.floor(searchWidth)); }, // multi getVal: function () { var val; if (this.select) { val = this.select.val(); return val === null ? [] : val; } else { val = this.opts.element.val(); return splitVal(val, this.opts.separator); } }, // multi setVal: function (val) { var unique; if (this.select) { this.select.val(val); } else { unique = []; // filter out duplicates $(val).each(function () { if (indexOf(this, unique) < 0) unique.push(this); }); this.opts.element.val(unique.length === 0 ? "" : unique.join(this.opts.separator)); } }, // multi buildChangeDetails: function (old, current) { var current = current.slice(0), old = old.slice(0); // remove intersection from each array for (var i = 0; i < current.length; i++) { for (var j = 0; j < old.length; j++) { if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) { current.splice(i, 1); i--; old.splice(j, 1); j--; } } } return {added: current, removed: old}; }, // multi val: function (val, triggerChange) { var oldData, self=this; if (arguments.length === 0) { return this.getVal(); } oldData=this.data(); if (!oldData.length) oldData=[]; // val is an id. !val is true for [undefined,null,'',0] - 0 is legal if (!val && val !== 0) { this.opts.element.val(""); this.updateSelection([]); this.clearSearch(); if (triggerChange) { this.triggerChange({added: this.data(), removed: oldData}); } return; } // val is a list of ids this.setVal(val); if (this.select) { this.opts.initSelection(this.select, this.bind(this.updateSelection)); if (triggerChange) { this.triggerChange(this.buildChangeDetails(oldData, this.data())); } } else { if (this.opts.initSelection === undefined) { throw new Error("val() cannot be called if initSelection() is not defined"); } this.opts.initSelection(this.opts.element, function(data){ var ids=$.map(data, self.id); self.setVal(ids); self.updateSelection(data); self.clearSearch(); if (triggerChange) { self.triggerChange(self.buildChangeDetails(oldData, self.data())); } }); } this.clearSearch(); }, // multi onSortStart: function() { if (this.select) { throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead."); } // collapse search field into 0 width so its container can be collapsed as well this.search.width(0); // hide the container this.searchContainer.hide(); }, // multi onSortEnd:function() { var val=[], self=this; // show search and move it to the end of the list this.searchContainer.show(); // make sure the search container is the last item in the list this.searchContainer.appendTo(this.searchContainer.parent()); // since we collapsed the width in dragStarted, we resize it here this.resizeSearch(); // update selection this.selection.find(".select2-search-choice").each(function() { val.push(self.opts.id($(this).data("select2-data"))); }); this.setVal(val); this.triggerChange(); }, // multi data: function(values, triggerChange) { var self=this, ids, old; if (arguments.length === 0) { return this.selection .find(".select2-search-choice") .map(function() { return $(this).data("select2-data"); }) .get(); } else { old = this.data(); if (!values) { values = []; } ids = $.map(values, function(e) { return self.opts.id(e); }); this.setVal(ids); this.updateSelection(values); this.clearSearch(); if (triggerChange) { this.triggerChange(this.buildChangeDetails(old, this.data())); } } } }); $.fn.select2 = function () { var args = Array.prototype.slice.call(arguments, 0), opts, select2, method, value, multiple, allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "dropdown", "onSortStart", "onSortEnd", "enable", "disable", "readonly", "positionDropdown", "data", "search"], valueMethods = ["opened", "isFocused", "container", "dropdown"], propertyMethods = ["val", "data"], methodsMap = { search: "externalSearch" }; this.each(function () { if (args.length === 0 || typeof(args[0]) === "object") { opts = args.length === 0 ? {} : $.extend({}, args[0]); opts.element = $(this); if (opts.element.get(0).tagName.toLowerCase() === "select") { multiple = opts.element.prop("multiple"); } else { multiple = opts.multiple || false; if ("tags" in opts) {opts.multiple = multiple = true;} } select2 = multiple ? new MultiSelect2() : new SingleSelect2(); select2.init(opts); } else if (typeof(args[0]) === "string") { if (indexOf(args[0], allowedMethods) < 0) { throw "Unknown method: " + args[0]; } value = undefined; select2 = $(this).data("select2"); if (select2 === undefined) return; method=args[0]; if (method === "container") { value = select2.container; } else if (method === "dropdown") { value = select2.dropdown; } else { if (methodsMap[method]) method = methodsMap[method]; value = select2[method].apply(select2, args.slice(1)); } if (indexOf(args[0], valueMethods) >= 0 || (indexOf(args[0], propertyMethods) && args.length == 1)) { return false; // abort the iteration, ready to return first matched value } } else { throw "Invalid arguments to select2 plugin: " + args; } }); return (value === undefined) ? this : value; }; // plugin defaults, accessible to users $.fn.select2.defaults = { width: "copy", loadMorePadding: 0, closeOnSelect: true, openOnEnter: true, containerCss: {}, dropdownCss: {}, containerCssClass: "", dropdownCssClass: "", formatResult: function(result, container, query, escapeMarkup) { var markup=[]; markMatch(result.text, query.term, markup, escapeMarkup); return markup.join(""); }, formatSelection: function (data, container, escapeMarkup) { return data ? escapeMarkup(data.text) : undefined; }, sortResults: function (results, container, query) { return results; }, formatResultCssClass: function(data) {return undefined;}, formatSelectionCssClass: function(data, container) {return undefined;}, formatNoMatches: function () { return "No matches found"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatLoadMore: function (pageNumber) { return "Loading more results..."; }, formatSearching: function () { return "Searching..."; }, minimumResultsForSearch: 0, minimumInputLength: 0, maximumInputLength: null, maximumSelectionSize: 0, id: function (e) { return e.id; }, matcher: function(term, text) { return stripDiacritics(''+text).toUpperCase().indexOf(stripDiacritics(''+term).toUpperCase()) >= 0; }, separator: ",", tokenSeparators: [], tokenizer: defaultTokenizer, escapeMarkup: defaultEscapeMarkup, blurOnChange: false, selectOnBlur: false, adaptContainerCssClass: function(c) { return c; }, adaptDropdownCssClass: function(c) { return null; }, nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; } }; $.fn.select2.ajaxDefaults = { transport: $.ajax, params: { type: "GET", cache: false, dataType: "json" } }; // exports window.Select2 = { query: { ajax: ajax, local: local, tags: tags }, util: { debounce: debounce, markMatch: markMatch, escapeMarkup: defaultEscapeMarkup, stripDiacritics: stripDiacritics }, "class": { "abstract": AbstractSelect2, "single": SingleSelect2, "multi": MultiSelect2 } }; }(jQuery));
whardier/cdnjs
ajax/libs/select2/3.4.4/select2.js
JavaScript
mit
135,567
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","pt-br",{title:"Instruções de Acessibilidade",contents:"Conteúdo da Ajuda. Para fechar este diálogo pressione ESC.",legend:[{name:"Geral",items:[{name:"Barra de Ferramentas do Editor",legend:"Pressione ${toolbarFocus} para navegar para a barra de ferramentas. Mova para o anterior ou próximo grupo de ferramentas com TAB e SHIFT-TAB. Mova para o anterior ou próximo botão com SETA PARA DIREITA or SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para ativar o botão da barra de ferramentas."}, {name:"Diálogo do Editor",legend:"Dentro de um diálogo, pressione TAB para navegar para o próximo campo, pressione SHIFT + TAB para mover para o campo anterior, pressione ENTER para enviar o diálogo, pressione ESC para cancelar o diálogo. Para diálogos que tem múltiplas abas, pressione ALT + F10 para navegar para a lista de abas, então mova para a próxima aba com SHIFT + TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar a aba."},{name:"Menu de Contexto do Editor",legend:"Pressione ${contextMenu} ou TECLA DE MENU para abrir o menu de contexto, então mova para a próxima opção com TAB ou SETA PARA BAIXO. Mova para a anterior com SHIFT+TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar a opção do menu. Abra o submenu da opção atual com ESPAÇO ou ENTER ou SETA PARA DIREITA. Volte para o menu pai com ESC ou SETA PARA ESQUERDA. Feche o menu de contexto com ESC."}, {name:"Caixa de Lista do Editor",legend:"Dentro de uma caixa de lista, mova para o próximo item com TAB ou SETA PARA BAIXO. Mova para o item anterior com SHIFT + TAB ou SETA PARA CIMA. Pressione ESPAÇO ou ENTER para selecionar uma opção na lista. Pressione ESC para fechar a caixa de lista."},{name:"Barra de Caminho do Elementos do Editor",legend:"Pressione ${elementsPathFocus} para a barra de caminho dos elementos. Mova para o próximo botão de elemento com TAB ou SETA PARA DIREITA. Mova para o botão anterior com SHIFT+TAB ou SETA PARA ESQUERDA. Pressione ESPAÇO ou ENTER para selecionar o elemento no editor."}]}, {name:"Comandos",items:[{name:" Comando Desfazer",legend:"Pressione ${undo}"},{name:" Comando Refazer",legend:"Pressione ${redo}"},{name:" Comando Negrito",legend:"Pressione ${bold}"},{name:" Comando Itálico",legend:"Pressione ${italic}"},{name:" Comando Sublinhado",legend:"Pressione ${underline}"},{name:" Comando Link",legend:"Pressione ${link}"},{name:" Comando Fechar Barra de Ferramentas",legend:"Pressione ${toolbarCollapse}"},{name:" Access previous focus space command",legend:"Press ${accessPreviousSpace} to access the closest unreachable focus space before the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."}, {name:" Access next focus space command",legend:"Press ${accessNextSpace} to access the closest unreachable focus space after the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."},{name:" Ajuda de Acessibilidade",legend:"Pressione ${a11yHelp}"}]}]});
inlineblock/cdnjs
ajax/libs/ckeditor/4.0.1/plugins/a11yhelp/dialogs/lang/pt-br.js
JavaScript
mit
3,225
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = function(src, name, line){ var coverage = _yuitest_coverage[src], funcId = name + ":" + line; if (!coverage.functions[funcId]){ coverage.calledFunctions++; } coverage.functions[funcId]++; }; } _yuitest_coverage["build/datatable-table/datatable-table.js"] = { lines: {}, functions: {}, coveredLines: 0, calledLines: 0, coveredFunctions: 0, calledFunctions: 0, path: "build/datatable-table/datatable-table.js", code: [] }; _yuitest_coverage["build/datatable-table/datatable-table.js"].code=["YUI.add('datatable-table', function (Y, NAME) {","","/**","View class responsible for rendering a `<table>` from provided data. Used as","the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes.","","@module datatable","@submodule datatable-table","@since 3.6.0","**/","var toArray = Y.Array,"," YLang = Y.Lang,"," fromTemplate = YLang.sub,",""," isArray = YLang.isArray,"," isFunction = YLang.isFunction;","","/**","View class responsible for rendering a `<table>` from provided data. Used as","the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes.","","","","@class TableView","@namespace DataTable","@extends View","@since 3.6.0","**/","Y.namespace('DataTable').TableView = Y.Base.create('table', Y.View, [], {",""," /**"," The HTML template used to create the caption Node if the `caption`"," attribute is set.",""," @property CAPTION_TEMPLATE"," @type {HTML}"," @default '<caption class=\"{className}\"/>'"," @since 3.6.0"," **/"," CAPTION_TEMPLATE: '<caption class=\"{className}\"/>',",""," /**"," The HTML template used to create the table Node.",""," @property TABLE_TEMPLATE"," @type {HTML}"," @default '<table cellspacing=\"0\" class=\"{className}\"/>'"," @since 3.6.0"," **/"," TABLE_TEMPLATE : '<table cellspacing=\"0\" class=\"{className}\"/>',",""," /**"," The object or instance of the class assigned to `bodyView` that is"," responsible for rendering and managing the table's `<tbody>`(s) and its"," content.",""," @property body"," @type {Object}"," @default undefined (initially unset)"," @since 3.5.0"," **/"," //body: null,",""," /**"," The object or instance of the class assigned to `footerView` that is"," responsible for rendering and managing the table's `<tfoot>` and its"," content.",""," @property foot"," @type {Object}"," @default undefined (initially unset)"," @since 3.5.0"," **/"," //foot: null,",""," /**"," The object or instance of the class assigned to `headerView` that is"," responsible for rendering and managing the table's `<thead>` and its"," content.",""," @property head"," @type {Object}"," @default undefined (initially unset)"," @since 3.5.0"," **/"," //head: null,",""," //-----------------------------------------------------------------------//"," // Public methods"," //-----------------------------------------------------------------------//",""," /**"," Returns the `<td>` Node from the given row and column index. Alternately,"," the `seed` can be a Node. If so, the nearest ancestor cell is returned."," If the `seed` is a cell, it is returned. If there is no cell at the given"," coordinates, `null` is returned.",""," Optionally, include an offset array or string to return a cell near the"," cell identified by the `seed`. The offset can be an array containing the"," number of rows to shift followed by the number of columns to shift, or one"," of \"above\", \"below\", \"next\", or \"previous\".",""," <pre><code>// Previous cell in the previous row"," var cell = table.getCell(e.target, [-1, -1]);",""," // Next cell"," var cell = table.getCell(e.target, 'next');"," var cell = table.getCell(e.taregt, [0, 1];</pre></code>",""," This is actually just a pass through to the `bodyView` instance's method"," by the same name.",""," @method getCell"," @param {Number[]|Node} seed Array of row and column indexes, or a Node that"," is either the cell itself or a descendant of one."," @param {Number[]|String} [shift] Offset by which to identify the returned"," cell Node"," @return {Node}"," @since 3.5.0"," **/"," getCell: function (seed, shift) {"," return this.body && this.body.getCell &&"," this.body.getCell.apply(this.body, arguments);"," },",""," /**"," Returns the generated CSS classname based on the input. If the `host`"," attribute is configured, it will attempt to relay to its `getClassName`"," or use its static `NAME` property as a string base."," "," If `host` is absent or has neither method nor `NAME`, a CSS classname"," will be generated using this class's `NAME`.",""," @method getClassName"," @param {String} token* Any number of token strings to assemble the"," classname from."," @return {String}"," @protected"," **/"," getClassName: function () {"," // TODO: add attr with setter for host?"," var host = this.host,"," NAME = (host && host.constructor.NAME) ||"," this.constructor.NAME;",""," if (host && host.getClassName) {"," return host.getClassName.apply(host, arguments);"," } else {"," return Y.ClassNameManager.getClassName"," .apply(Y.ClassNameManager,"," [NAME].concat(toArray(arguments, 0, true)));"," }"," },",""," /**"," Relays call to the `bodyView`'s `getRecord` method if it has one.",""," @method getRecord"," @param {String|Node} seed Node or identifier for a row or child element"," @return {Model}"," @since 3.6.0"," **/"," getRecord: function () {"," return this.body && this.body.getRecord &&"," this.body.getRecord.apply(this.body, arguments);"," },",""," /**"," Returns the `<tr>` Node from the given row index, Model, or Model's"," `clientId`. If the rows haven't been rendered yet, or if the row can't be"," found by the input, `null` is returned.",""," This is actually just a pass through to the `bodyView` instance's method"," by the same name.",""," @method getRow"," @param {Number|String|Model} id Row index, Model instance, or clientId"," @return {Node}"," @since 3.5.0"," **/"," getRow: function (id) {"," return this.body && this.body.getRow &&"," this.body.getRow.apply(this.body, arguments);"," },","",""," //-----------------------------------------------------------------------//"," // Protected and private methods"," //-----------------------------------------------------------------------//"," /**"," Updates the table's `summary` attribute.",""," @method _afterSummaryChange"," @param {EventHandle} e The change event"," @protected"," @since 3.6.0"," **/"," _afterSummaryChange: function (e) {"," this._uiSetSummary(e.newVal);"," },",""," /**"," Updates the table's `<caption>`.",""," @method _afterCaptionChange"," @param {EventHandle} e The change event"," @protected"," @since 3.6.0"," **/"," _afterCaptionChange: function (e) {"," this._uiSetCaption(e.newVal);"," },",""," /**"," Updates the table's width.",""," @method _afterWidthChange"," @param {EventHandle} e The change event"," @protected"," @since 3.6.0"," **/"," _afterWidthChange: function (e) {"," this._uiSetWidth(e.newVal);"," },",""," /**"," Attaches event subscriptions to relay attribute changes to the child Views.",""," @method _bindUI"," @protected"," @since 3.6.0"," **/"," _bindUI: function () {"," var relay;",""," if (!this._eventHandles) {"," relay = Y.bind('_relayAttrChange', this);",""," this._eventHandles = this.after({"," columnsChange : relay,"," modelListChange: relay,"," summaryChange : Y.bind('_afterSummaryChange', this),"," captionChange : Y.bind('_afterCaptionChange', this),"," widthChange : Y.bind('_afterWidthChange', this)"," });"," }"," },",""," /**"," Creates the `<table>`.",""," @method _createTable"," @return {Node} The `<table>` node"," @protected"," @since 3.5.0"," **/"," _createTable: function () {"," return Y.Node.create(fromTemplate(this.TABLE_TEMPLATE, {"," className: this.getClassName('table')"," })).empty();"," },",""," /**"," Calls `render()` on the `bodyView` class instance.",""," @method _defRenderBodyFn"," @param {EventFacade} e The renderBody event"," @protected"," @since 3.5.0"," **/"," _defRenderBodyFn: function (e) {"," e.view.render();"," },",""," /**"," Calls `render()` on the `footerView` class instance.",""," @method _defRenderFooterFn"," @param {EventFacade} e The renderFooter event"," @protected"," @since 3.5.0"," **/"," _defRenderFooterFn: function (e) {"," e.view.render();"," },",""," /**"," Calls `render()` on the `headerView` class instance.",""," @method _defRenderHeaderFn"," @param {EventFacade} e The renderHeader event"," @protected"," @since 3.5.0"," **/"," _defRenderHeaderFn: function (e) {"," e.view.render();"," },",""," /**"," Renders the `<table>` and, if there are associated Views, the `<thead>`,"," `<tfoot>`, and `<tbody>` (empty until `syncUI`).",""," Assigns the generated table nodes to the `tableNode`, `_theadNode`,"," `_tfootNode`, and `_tbodyNode` properties. Assigns the instantiated Views"," to the `head`, `foot`, and `body` properties.","",""," @method _defRenderTableFn"," @param {EventFacade} e The renderTable event"," @protected"," @since 3.5.0"," **/"," _defRenderTableFn: function (e) {"," var container = this.get('container'),"," attrs = this.getAttrs();",""," if (!this.tableNode) {"," this.tableNode = this._createTable();"," }",""," attrs.host = this.get('host') || this;"," attrs.table = this;"," attrs.container = this.tableNode;",""," this._uiSetCaption(this.get('caption'));"," this._uiSetSummary(this.get('summary'));"," this._uiSetWidth(this.get('width'));",""," if (this.head || e.headerView) {"," if (!this.head) {"," this.head = new e.headerView(Y.merge(attrs, e.headerConfig));"," }",""," this.fire('renderHeader', { view: this.head });"," }",""," if (this.foot || e.footerView) {"," if (!this.foot) {"," this.foot = new e.footerView(Y.merge(attrs, e.footerConfig));"," }",""," this.fire('renderFooter', { view: this.foot });"," }",""," attrs.columns = this.displayColumns;",""," if (this.body || e.bodyView) {"," if (!this.body) {"," this.body = new e.bodyView(Y.merge(attrs, e.bodyConfig));"," }",""," this.fire('renderBody', { view: this.body });"," }",""," if (!container.contains(this.tableNode)) {"," container.append(this.tableNode);"," }",""," this._bindUI();"," },",""," /**"," Cleans up state, destroys child views, etc.",""," @method destructor"," @protected"," **/"," destructor: function () {"," if (this.head && this.head.destroy) {"," this.head.destroy();"," }"," delete this.head;",""," if (this.foot && this.foot.destroy) {"," this.foot.destroy();"," }"," delete this.foot;",""," if (this.body && this.body.destroy) {"," this.body.destroy();"," }"," delete this.body;",""," if (this._eventHandles) {"," this._eventHandles.detach();"," delete this._eventHandles;"," }",""," if (this.tableNode) {"," this.tableNode.remove().destroy(true);"," }"," },",""," /**"," Processes the full column array, distilling the columns down to those that"," correspond to cell data columns.",""," @method _extractDisplayColumns"," @protected"," **/"," _extractDisplayColumns: function () {"," var columns = this.get('columns'),"," displayColumns = [];",""," function process(cols) {"," var i, len, col;",""," for (i = 0, len = cols.length; i < len; ++i) {"," col = cols[i];",""," if (isArray(col.children)) {"," process(col.children);"," } else {"," displayColumns.push(col);"," }"," }"," }",""," process(columns);",""," /**"," Array of the columns that correspond to those with value cells in the"," data rows. Excludes colspan header columns (configured with `children`).",""," @property displayColumns"," @type {Object[]}"," @since 3.6.0"," **/"," this.displayColumns = displayColumns;"," },",""," /**"," Publishes core events.",""," @method _initEvents"," @protected"," @since 3.5.0"," **/"," _initEvents: function () {"," this.publish({"," // Y.bind used to allow late binding for method override support"," renderTable : { defaultFn: Y.bind('_defRenderTableFn', this) },"," renderHeader: { defaultFn: Y.bind('_defRenderHeaderFn', this) },"," renderBody : { defaultFn: Y.bind('_defRenderBodyFn', this) },"," renderFooter: { defaultFn: Y.bind('_defRenderFooterFn', this) }"," });"," },",""," /**"," Constructor logic.",""," @method intializer"," @param {Object} config Configuration object passed to the constructor"," @protected"," @since 3.6.0"," **/"," initializer: function (config) {"," this.host = config.host;",""," this._initEvents();",""," this._extractDisplayColumns();",""," this.after('columnsChange', this._extractDisplayColumns, this);"," },",""," /**"," Relays attribute changes to the child Views.",""," @method _relayAttrChange"," @param {EventHandle} e The change event"," @protected"," @since 3.6.0"," **/"," _relayAttrChange: function (e) {"," var attr = e.attrName,"," val = e.newVal;",""," if (this.head) {"," this.head.set(attr, val);"," }",""," if (this.foot) {"," this.foot.set(attr, val);"," }",""," if (this.body) {"," if (attr === 'columns') {"," val = this.displayColumns;"," }",""," this.body.set(attr, val);"," }"," },",""," /**"," Creates the UI in the configured `container`.",""," @method render"," @return {TableView}"," @chainable"," **/"," render: function () {"," if (this.get('container')) {"," this.fire('renderTable', {"," headerView : this.get('headerView'),"," headerConfig: this.get('headerConfig'),",""," bodyView : this.get('bodyView'),"," bodyConfig : this.get('bodyConfig'),",""," footerView : this.get('footerView'),"," footerConfig: this.get('footerConfig')"," });"," }",""," return this;"," },",""," /**"," Creates, removes, or updates the table's `<caption>` element per the input"," value. Empty values result in the caption being removed.",""," @method _uiSetCaption"," @param {HTML} htmlContent The content to populate the table caption"," @protected"," @since 3.5.0"," **/"," _uiSetCaption: function (htmlContent) {"," var table = this.tableNode,"," caption = this.captionNode;",""," if (htmlContent) {"," if (!caption) {"," this.captionNode = caption = Y.Node.create("," fromTemplate(this.CAPTION_TEMPLATE, {"," className: this.getClassName('caption')"," }));",""," table.prepend(this.captionNode);"," }",""," caption.setHTML(htmlContent);",""," } else if (caption) {"," caption.remove(true);",""," delete this.captionNode;"," }"," },",""," /**"," Updates the table's `summary` attribute with the input value.",""," @method _uiSetSummary"," @protected"," @since 3.5.0"," **/"," _uiSetSummary: function (summary) {"," if (summary) {"," this.tableNode.setAttribute('summary', summary);"," } else {"," this.tableNode.removeAttribute('summary');"," }"," },",""," /**"," Sets the `boundingBox` and table width per the input value.",""," @method _uiSetWidth"," @param {Number|String} width The width to make the table"," @protected"," @since 3.5.0"," **/"," _uiSetWidth: function (width) {"," var table = this.tableNode;",""," // Table width needs to account for borders"," table.setStyle('width', !width ? '' :"," (this.get('container').get('offsetWidth') -"," (parseInt(table.getComputedStyle('borderLeftWidth'), 10)|0) -"," (parseInt(table.getComputedStyle('borderLeftWidth'), 10)|0)) +"," 'px');",""," table.setStyle('width', width);"," },",""," /**"," Ensures that the input is a View class or at least has a `render` method.",""," @method _validateView"," @param {View|Function} val The View class"," @return {Boolean}"," @protected"," **/"," _validateView: function (val) {"," return isFunction(val) && val.prototype.render;"," }","}, {"," ATTRS: {"," /**"," Content for the `<table summary=\"ATTRIBUTE VALUE HERE\">`. Values"," assigned to this attribute will be HTML escaped for security.",""," @attribute summary"," @type {String}"," @default '' (empty string)"," @since 3.5.0"," **/"," //summary: {},",""," /**"," HTML content of an optional `<caption>` element to appear above the"," table. Leave this config unset or set to a falsy value to remove the"," caption.",""," @attribute caption"," @type HTML"," @default undefined (initially unset)"," @since 3.6.0"," **/"," //caption: {},",""," /**"," Columns to include in the rendered table.",""," This attribute takes an array of objects. Each object is considered a"," data column or header cell to be rendered. How the objects are"," translated into markup is delegated to the `headerView`, `bodyView`,"," and `footerView`.",""," The raw value is passed to the `headerView` and `footerView`. The"," `bodyView` receives the instance's `displayColumns` array, which is"," parsed from the columns array. If there are no nested columns (columns"," configured with a `children` array), the `displayColumns` is the same"," as the raw value."," "," @attribute columns"," @type {Object[]}"," @since 3.6.0"," **/"," columns: {"," validator: isArray"," },",""," /**"," Width of the table including borders. This value requires units, so"," `200` is invalid, but `'200px'` is valid. Setting the empty string"," (the default) will allow the browser to set the table width.",""," @attribute width"," @type {String}"," @default ''"," @since 3.6.0"," **/"," width: {"," value: '',"," validator: YLang.isString"," },",""," /**"," An instance of this class is used to render the contents of the"," `<thead>`&mdash;the column headers for the table."," "," The instance of this View will be assigned to the instance's `head`"," property.",""," It is not strictly necessary that the class function assigned here be"," a View subclass. It must however have a `render()` method.",""," @attribute headerView"," @type {Function|Object}"," @default Y.DataTable.HeaderView"," @since 3.6.0"," **/"," headerView: {"," value: Y.DataTable.HeaderView,"," validator: '_validateView'"," },",""," /**"," Configuration overrides used when instantiating the `headerView`"," instance.",""," @attribute headerConfig"," @type {Object}"," @since 3.6.0"," **/"," //headerConfig: {},",""," /**"," An instance of this class is used to render the contents of the"," `<tfoot>` (if appropriate)."," "," The instance of this View will be assigned to the instance's `foot`"," property.",""," It is not strictly necessary that the class function assigned here be"," a View subclass. It must however have a `render()` method.",""," @attribute footerView"," @type {Function|Object}"," @since 3.6.0"," **/"," footerView: {"," validator: '_validateView'"," },",""," /**"," Configuration overrides used when instantiating the `footerView`"," instance.",""," @attribute footerConfig"," @type {Object}"," @since 3.6.0"," **/"," //footerConfig: {},",""," /**"," An instance of this class is used to render the contents of the table's"," `<tbody>`&mdash;the data cells in the table."," "," The instance of this View will be assigned to the instance's `body`"," property.",""," It is not strictly necessary that the class function assigned here be"," a View subclass. It must however have a `render()` method.",""," @attribute bodyView"," @type {Function|Object}"," @default Y.DataTable.BodyView"," @since 3.6.0"," **/"," bodyView: {"," value: Y.DataTable.BodyView,"," validator: '_validateView'"," }",""," /**"," Configuration overrides used when instantiating the `bodyView`"," instance.",""," @attribute bodyConfig"," @type {Object}"," @since 3.6.0"," **/"," //bodyConfig: {}"," }","});","","","","","}, '@VERSION@', {\"requires\": [\"datatable-core\", \"datatable-head\", \"datatable-body\", \"view\", \"classnamemanager\"]});"]; _yuitest_coverage["build/datatable-table/datatable-table.js"].lines = {"1":0,"11":0,"29":0,"122":0,"142":0,"146":0,"147":0,"149":0,"164":0,"182":0,"199":0,"211":0,"223":0,"234":0,"236":0,"237":0,"239":0,"258":0,"272":0,"284":0,"296":0,"314":0,"317":0,"318":0,"321":0,"322":0,"323":0,"325":0,"326":0,"327":0,"329":0,"330":0,"331":0,"334":0,"337":0,"338":0,"339":0,"342":0,"345":0,"347":0,"348":0,"349":0,"352":0,"355":0,"356":0,"359":0,"369":0,"370":0,"372":0,"374":0,"375":0,"377":0,"379":0,"380":0,"382":0,"384":0,"385":0,"386":0,"389":0,"390":0,"402":0,"405":0,"406":0,"408":0,"409":0,"411":0,"412":0,"414":0,"419":0,"429":0,"440":0,"458":0,"460":0,"462":0,"464":0,"476":0,"479":0,"480":0,"483":0,"484":0,"487":0,"488":0,"489":0,"492":0,"504":0,"505":0,"517":0,"530":0,"533":0,"534":0,"535":0,"540":0,"543":0,"545":0,"546":0,"548":0,"560":0,"561":0,"563":0,"576":0,"579":0,"585":0,"597":0}; _yuitest_coverage["build/datatable-table/datatable-table.js"].functions = {"getCell:121":0,"getClassName:140":0,"getRecord:163":0,"getRow:181":0,"_afterSummaryChange:198":0,"_afterCaptionChange:210":0,"_afterWidthChange:222":0,"_bindUI:233":0,"_createTable:257":0,"_defRenderBodyFn:271":0,"_defRenderFooterFn:283":0,"_defRenderHeaderFn:295":0,"_defRenderTableFn:313":0,"destructor:368":0,"process:405":0,"_extractDisplayColumns:401":0,"_initEvents:439":0,"initializer:457":0,"_relayAttrChange:475":0,"render:503":0,"_uiSetCaption:529":0,"_uiSetSummary:559":0,"_uiSetWidth:575":0,"_validateView:596":0,"(anonymous 1):1":0}; _yuitest_coverage["build/datatable-table/datatable-table.js"].coveredLines = 103; _yuitest_coverage["build/datatable-table/datatable-table.js"].coveredFunctions = 25; _yuitest_coverline("build/datatable-table/datatable-table.js", 1); YUI.add('datatable-table', function (Y, NAME) { /** View class responsible for rendering a `<table>` from provided data. Used as the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-table @since 3.6.0 **/ _yuitest_coverfunc("build/datatable-table/datatable-table.js", "(anonymous 1)", 1); _yuitest_coverline("build/datatable-table/datatable-table.js", 11); var toArray = Y.Array, YLang = Y.Lang, fromTemplate = YLang.sub, isArray = YLang.isArray, isFunction = YLang.isFunction; /** View class responsible for rendering a `<table>` from provided data. Used as the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes. @class TableView @namespace DataTable @extends View @since 3.6.0 **/ _yuitest_coverline("build/datatable-table/datatable-table.js", 29); Y.namespace('DataTable').TableView = Y.Base.create('table', Y.View, [], { /** The HTML template used to create the caption Node if the `caption` attribute is set. @property CAPTION_TEMPLATE @type {HTML} @default '<caption class="{className}"/>' @since 3.6.0 **/ CAPTION_TEMPLATE: '<caption class="{className}"/>', /** The HTML template used to create the table Node. @property TABLE_TEMPLATE @type {HTML} @default '<table cellspacing="0" class="{className}"/>' @since 3.6.0 **/ TABLE_TEMPLATE : '<table cellspacing="0" class="{className}"/>', /** The object or instance of the class assigned to `bodyView` that is responsible for rendering and managing the table's `<tbody>`(s) and its content. @property body @type {Object} @default undefined (initially unset) @since 3.5.0 **/ //body: null, /** The object or instance of the class assigned to `footerView` that is responsible for rendering and managing the table's `<tfoot>` and its content. @property foot @type {Object} @default undefined (initially unset) @since 3.5.0 **/ //foot: null, /** The object or instance of the class assigned to `headerView` that is responsible for rendering and managing the table's `<thead>` and its content. @property head @type {Object} @default undefined (initially unset) @since 3.5.0 **/ //head: null, //-----------------------------------------------------------------------// // Public methods //-----------------------------------------------------------------------// /** Returns the `<td>` Node from the given row and column index. Alternately, the `seed` can be a Node. If so, the nearest ancestor cell is returned. If the `seed` is a cell, it is returned. If there is no cell at the given coordinates, `null` is returned. Optionally, include an offset array or string to return a cell near the cell identified by the `seed`. The offset can be an array containing the number of rows to shift followed by the number of columns to shift, or one of "above", "below", "next", or "previous". <pre><code>// Previous cell in the previous row var cell = table.getCell(e.target, [-1, -1]); // Next cell var cell = table.getCell(e.target, 'next'); var cell = table.getCell(e.taregt, [0, 1];</pre></code> This is actually just a pass through to the `bodyView` instance's method by the same name. @method getCell @param {Number[]|Node} seed Array of row and column indexes, or a Node that is either the cell itself or a descendant of one. @param {Number[]|String} [shift] Offset by which to identify the returned cell Node @return {Node} @since 3.5.0 **/ getCell: function (seed, shift) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "getCell", 121); _yuitest_coverline("build/datatable-table/datatable-table.js", 122); return this.body && this.body.getCell && this.body.getCell.apply(this.body, arguments); }, /** Returns the generated CSS classname based on the input. If the `host` attribute is configured, it will attempt to relay to its `getClassName` or use its static `NAME` property as a string base. If `host` is absent or has neither method nor `NAME`, a CSS classname will be generated using this class's `NAME`. @method getClassName @param {String} token* Any number of token strings to assemble the classname from. @return {String} @protected **/ getClassName: function () { // TODO: add attr with setter for host? _yuitest_coverfunc("build/datatable-table/datatable-table.js", "getClassName", 140); _yuitest_coverline("build/datatable-table/datatable-table.js", 142); var host = this.host, NAME = (host && host.constructor.NAME) || this.constructor.NAME; _yuitest_coverline("build/datatable-table/datatable-table.js", 146); if (host && host.getClassName) { _yuitest_coverline("build/datatable-table/datatable-table.js", 147); return host.getClassName.apply(host, arguments); } else { _yuitest_coverline("build/datatable-table/datatable-table.js", 149); return Y.ClassNameManager.getClassName .apply(Y.ClassNameManager, [NAME].concat(toArray(arguments, 0, true))); } }, /** Relays call to the `bodyView`'s `getRecord` method if it has one. @method getRecord @param {String|Node} seed Node or identifier for a row or child element @return {Model} @since 3.6.0 **/ getRecord: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "getRecord", 163); _yuitest_coverline("build/datatable-table/datatable-table.js", 164); return this.body && this.body.getRecord && this.body.getRecord.apply(this.body, arguments); }, /** Returns the `<tr>` Node from the given row index, Model, or Model's `clientId`. If the rows haven't been rendered yet, or if the row can't be found by the input, `null` is returned. This is actually just a pass through to the `bodyView` instance's method by the same name. @method getRow @param {Number|String|Model} id Row index, Model instance, or clientId @return {Node} @since 3.5.0 **/ getRow: function (id) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "getRow", 181); _yuitest_coverline("build/datatable-table/datatable-table.js", 182); return this.body && this.body.getRow && this.body.getRow.apply(this.body, arguments); }, //-----------------------------------------------------------------------// // Protected and private methods //-----------------------------------------------------------------------// /** Updates the table's `summary` attribute. @method _afterSummaryChange @param {EventHandle} e The change event @protected @since 3.6.0 **/ _afterSummaryChange: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_afterSummaryChange", 198); _yuitest_coverline("build/datatable-table/datatable-table.js", 199); this._uiSetSummary(e.newVal); }, /** Updates the table's `<caption>`. @method _afterCaptionChange @param {EventHandle} e The change event @protected @since 3.6.0 **/ _afterCaptionChange: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_afterCaptionChange", 210); _yuitest_coverline("build/datatable-table/datatable-table.js", 211); this._uiSetCaption(e.newVal); }, /** Updates the table's width. @method _afterWidthChange @param {EventHandle} e The change event @protected @since 3.6.0 **/ _afterWidthChange: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_afterWidthChange", 222); _yuitest_coverline("build/datatable-table/datatable-table.js", 223); this._uiSetWidth(e.newVal); }, /** Attaches event subscriptions to relay attribute changes to the child Views. @method _bindUI @protected @since 3.6.0 **/ _bindUI: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_bindUI", 233); _yuitest_coverline("build/datatable-table/datatable-table.js", 234); var relay; _yuitest_coverline("build/datatable-table/datatable-table.js", 236); if (!this._eventHandles) { _yuitest_coverline("build/datatable-table/datatable-table.js", 237); relay = Y.bind('_relayAttrChange', this); _yuitest_coverline("build/datatable-table/datatable-table.js", 239); this._eventHandles = this.after({ columnsChange : relay, modelListChange: relay, summaryChange : Y.bind('_afterSummaryChange', this), captionChange : Y.bind('_afterCaptionChange', this), widthChange : Y.bind('_afterWidthChange', this) }); } }, /** Creates the `<table>`. @method _createTable @return {Node} The `<table>` node @protected @since 3.5.0 **/ _createTable: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_createTable", 257); _yuitest_coverline("build/datatable-table/datatable-table.js", 258); return Y.Node.create(fromTemplate(this.TABLE_TEMPLATE, { className: this.getClassName('table') })).empty(); }, /** Calls `render()` on the `bodyView` class instance. @method _defRenderBodyFn @param {EventFacade} e The renderBody event @protected @since 3.5.0 **/ _defRenderBodyFn: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_defRenderBodyFn", 271); _yuitest_coverline("build/datatable-table/datatable-table.js", 272); e.view.render(); }, /** Calls `render()` on the `footerView` class instance. @method _defRenderFooterFn @param {EventFacade} e The renderFooter event @protected @since 3.5.0 **/ _defRenderFooterFn: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_defRenderFooterFn", 283); _yuitest_coverline("build/datatable-table/datatable-table.js", 284); e.view.render(); }, /** Calls `render()` on the `headerView` class instance. @method _defRenderHeaderFn @param {EventFacade} e The renderHeader event @protected @since 3.5.0 **/ _defRenderHeaderFn: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_defRenderHeaderFn", 295); _yuitest_coverline("build/datatable-table/datatable-table.js", 296); e.view.render(); }, /** Renders the `<table>` and, if there are associated Views, the `<thead>`, `<tfoot>`, and `<tbody>` (empty until `syncUI`). Assigns the generated table nodes to the `tableNode`, `_theadNode`, `_tfootNode`, and `_tbodyNode` properties. Assigns the instantiated Views to the `head`, `foot`, and `body` properties. @method _defRenderTableFn @param {EventFacade} e The renderTable event @protected @since 3.5.0 **/ _defRenderTableFn: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_defRenderTableFn", 313); _yuitest_coverline("build/datatable-table/datatable-table.js", 314); var container = this.get('container'), attrs = this.getAttrs(); _yuitest_coverline("build/datatable-table/datatable-table.js", 317); if (!this.tableNode) { _yuitest_coverline("build/datatable-table/datatable-table.js", 318); this.tableNode = this._createTable(); } _yuitest_coverline("build/datatable-table/datatable-table.js", 321); attrs.host = this.get('host') || this; _yuitest_coverline("build/datatable-table/datatable-table.js", 322); attrs.table = this; _yuitest_coverline("build/datatable-table/datatable-table.js", 323); attrs.container = this.tableNode; _yuitest_coverline("build/datatable-table/datatable-table.js", 325); this._uiSetCaption(this.get('caption')); _yuitest_coverline("build/datatable-table/datatable-table.js", 326); this._uiSetSummary(this.get('summary')); _yuitest_coverline("build/datatable-table/datatable-table.js", 327); this._uiSetWidth(this.get('width')); _yuitest_coverline("build/datatable-table/datatable-table.js", 329); if (this.head || e.headerView) { _yuitest_coverline("build/datatable-table/datatable-table.js", 330); if (!this.head) { _yuitest_coverline("build/datatable-table/datatable-table.js", 331); this.head = new e.headerView(Y.merge(attrs, e.headerConfig)); } _yuitest_coverline("build/datatable-table/datatable-table.js", 334); this.fire('renderHeader', { view: this.head }); } _yuitest_coverline("build/datatable-table/datatable-table.js", 337); if (this.foot || e.footerView) { _yuitest_coverline("build/datatable-table/datatable-table.js", 338); if (!this.foot) { _yuitest_coverline("build/datatable-table/datatable-table.js", 339); this.foot = new e.footerView(Y.merge(attrs, e.footerConfig)); } _yuitest_coverline("build/datatable-table/datatable-table.js", 342); this.fire('renderFooter', { view: this.foot }); } _yuitest_coverline("build/datatable-table/datatable-table.js", 345); attrs.columns = this.displayColumns; _yuitest_coverline("build/datatable-table/datatable-table.js", 347); if (this.body || e.bodyView) { _yuitest_coverline("build/datatable-table/datatable-table.js", 348); if (!this.body) { _yuitest_coverline("build/datatable-table/datatable-table.js", 349); this.body = new e.bodyView(Y.merge(attrs, e.bodyConfig)); } _yuitest_coverline("build/datatable-table/datatable-table.js", 352); this.fire('renderBody', { view: this.body }); } _yuitest_coverline("build/datatable-table/datatable-table.js", 355); if (!container.contains(this.tableNode)) { _yuitest_coverline("build/datatable-table/datatable-table.js", 356); container.append(this.tableNode); } _yuitest_coverline("build/datatable-table/datatable-table.js", 359); this._bindUI(); }, /** Cleans up state, destroys child views, etc. @method destructor @protected **/ destructor: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "destructor", 368); _yuitest_coverline("build/datatable-table/datatable-table.js", 369); if (this.head && this.head.destroy) { _yuitest_coverline("build/datatable-table/datatable-table.js", 370); this.head.destroy(); } _yuitest_coverline("build/datatable-table/datatable-table.js", 372); delete this.head; _yuitest_coverline("build/datatable-table/datatable-table.js", 374); if (this.foot && this.foot.destroy) { _yuitest_coverline("build/datatable-table/datatable-table.js", 375); this.foot.destroy(); } _yuitest_coverline("build/datatable-table/datatable-table.js", 377); delete this.foot; _yuitest_coverline("build/datatable-table/datatable-table.js", 379); if (this.body && this.body.destroy) { _yuitest_coverline("build/datatable-table/datatable-table.js", 380); this.body.destroy(); } _yuitest_coverline("build/datatable-table/datatable-table.js", 382); delete this.body; _yuitest_coverline("build/datatable-table/datatable-table.js", 384); if (this._eventHandles) { _yuitest_coverline("build/datatable-table/datatable-table.js", 385); this._eventHandles.detach(); _yuitest_coverline("build/datatable-table/datatable-table.js", 386); delete this._eventHandles; } _yuitest_coverline("build/datatable-table/datatable-table.js", 389); if (this.tableNode) { _yuitest_coverline("build/datatable-table/datatable-table.js", 390); this.tableNode.remove().destroy(true); } }, /** Processes the full column array, distilling the columns down to those that correspond to cell data columns. @method _extractDisplayColumns @protected **/ _extractDisplayColumns: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_extractDisplayColumns", 401); _yuitest_coverline("build/datatable-table/datatable-table.js", 402); var columns = this.get('columns'), displayColumns = []; _yuitest_coverline("build/datatable-table/datatable-table.js", 405); function process(cols) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "process", 405); _yuitest_coverline("build/datatable-table/datatable-table.js", 406); var i, len, col; _yuitest_coverline("build/datatable-table/datatable-table.js", 408); for (i = 0, len = cols.length; i < len; ++i) { _yuitest_coverline("build/datatable-table/datatable-table.js", 409); col = cols[i]; _yuitest_coverline("build/datatable-table/datatable-table.js", 411); if (isArray(col.children)) { _yuitest_coverline("build/datatable-table/datatable-table.js", 412); process(col.children); } else { _yuitest_coverline("build/datatable-table/datatable-table.js", 414); displayColumns.push(col); } } } _yuitest_coverline("build/datatable-table/datatable-table.js", 419); process(columns); /** Array of the columns that correspond to those with value cells in the data rows. Excludes colspan header columns (configured with `children`). @property displayColumns @type {Object[]} @since 3.6.0 **/ _yuitest_coverline("build/datatable-table/datatable-table.js", 429); this.displayColumns = displayColumns; }, /** Publishes core events. @method _initEvents @protected @since 3.5.0 **/ _initEvents: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_initEvents", 439); _yuitest_coverline("build/datatable-table/datatable-table.js", 440); this.publish({ // Y.bind used to allow late binding for method override support renderTable : { defaultFn: Y.bind('_defRenderTableFn', this) }, renderHeader: { defaultFn: Y.bind('_defRenderHeaderFn', this) }, renderBody : { defaultFn: Y.bind('_defRenderBodyFn', this) }, renderFooter: { defaultFn: Y.bind('_defRenderFooterFn', this) } }); }, /** Constructor logic. @method intializer @param {Object} config Configuration object passed to the constructor @protected @since 3.6.0 **/ initializer: function (config) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "initializer", 457); _yuitest_coverline("build/datatable-table/datatable-table.js", 458); this.host = config.host; _yuitest_coverline("build/datatable-table/datatable-table.js", 460); this._initEvents(); _yuitest_coverline("build/datatable-table/datatable-table.js", 462); this._extractDisplayColumns(); _yuitest_coverline("build/datatable-table/datatable-table.js", 464); this.after('columnsChange', this._extractDisplayColumns, this); }, /** Relays attribute changes to the child Views. @method _relayAttrChange @param {EventHandle} e The change event @protected @since 3.6.0 **/ _relayAttrChange: function (e) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_relayAttrChange", 475); _yuitest_coverline("build/datatable-table/datatable-table.js", 476); var attr = e.attrName, val = e.newVal; _yuitest_coverline("build/datatable-table/datatable-table.js", 479); if (this.head) { _yuitest_coverline("build/datatable-table/datatable-table.js", 480); this.head.set(attr, val); } _yuitest_coverline("build/datatable-table/datatable-table.js", 483); if (this.foot) { _yuitest_coverline("build/datatable-table/datatable-table.js", 484); this.foot.set(attr, val); } _yuitest_coverline("build/datatable-table/datatable-table.js", 487); if (this.body) { _yuitest_coverline("build/datatable-table/datatable-table.js", 488); if (attr === 'columns') { _yuitest_coverline("build/datatable-table/datatable-table.js", 489); val = this.displayColumns; } _yuitest_coverline("build/datatable-table/datatable-table.js", 492); this.body.set(attr, val); } }, /** Creates the UI in the configured `container`. @method render @return {TableView} @chainable **/ render: function () { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "render", 503); _yuitest_coverline("build/datatable-table/datatable-table.js", 504); if (this.get('container')) { _yuitest_coverline("build/datatable-table/datatable-table.js", 505); this.fire('renderTable', { headerView : this.get('headerView'), headerConfig: this.get('headerConfig'), bodyView : this.get('bodyView'), bodyConfig : this.get('bodyConfig'), footerView : this.get('footerView'), footerConfig: this.get('footerConfig') }); } _yuitest_coverline("build/datatable-table/datatable-table.js", 517); return this; }, /** Creates, removes, or updates the table's `<caption>` element per the input value. Empty values result in the caption being removed. @method _uiSetCaption @param {HTML} htmlContent The content to populate the table caption @protected @since 3.5.0 **/ _uiSetCaption: function (htmlContent) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_uiSetCaption", 529); _yuitest_coverline("build/datatable-table/datatable-table.js", 530); var table = this.tableNode, caption = this.captionNode; _yuitest_coverline("build/datatable-table/datatable-table.js", 533); if (htmlContent) { _yuitest_coverline("build/datatable-table/datatable-table.js", 534); if (!caption) { _yuitest_coverline("build/datatable-table/datatable-table.js", 535); this.captionNode = caption = Y.Node.create( fromTemplate(this.CAPTION_TEMPLATE, { className: this.getClassName('caption') })); _yuitest_coverline("build/datatable-table/datatable-table.js", 540); table.prepend(this.captionNode); } _yuitest_coverline("build/datatable-table/datatable-table.js", 543); caption.setHTML(htmlContent); } else {_yuitest_coverline("build/datatable-table/datatable-table.js", 545); if (caption) { _yuitest_coverline("build/datatable-table/datatable-table.js", 546); caption.remove(true); _yuitest_coverline("build/datatable-table/datatable-table.js", 548); delete this.captionNode; }} }, /** Updates the table's `summary` attribute with the input value. @method _uiSetSummary @protected @since 3.5.0 **/ _uiSetSummary: function (summary) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_uiSetSummary", 559); _yuitest_coverline("build/datatable-table/datatable-table.js", 560); if (summary) { _yuitest_coverline("build/datatable-table/datatable-table.js", 561); this.tableNode.setAttribute('summary', summary); } else { _yuitest_coverline("build/datatable-table/datatable-table.js", 563); this.tableNode.removeAttribute('summary'); } }, /** Sets the `boundingBox` and table width per the input value. @method _uiSetWidth @param {Number|String} width The width to make the table @protected @since 3.5.0 **/ _uiSetWidth: function (width) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_uiSetWidth", 575); _yuitest_coverline("build/datatable-table/datatable-table.js", 576); var table = this.tableNode; // Table width needs to account for borders _yuitest_coverline("build/datatable-table/datatable-table.js", 579); table.setStyle('width', !width ? '' : (this.get('container').get('offsetWidth') - (parseInt(table.getComputedStyle('borderLeftWidth'), 10)|0) - (parseInt(table.getComputedStyle('borderLeftWidth'), 10)|0)) + 'px'); _yuitest_coverline("build/datatable-table/datatable-table.js", 585); table.setStyle('width', width); }, /** Ensures that the input is a View class or at least has a `render` method. @method _validateView @param {View|Function} val The View class @return {Boolean} @protected **/ _validateView: function (val) { _yuitest_coverfunc("build/datatable-table/datatable-table.js", "_validateView", 596); _yuitest_coverline("build/datatable-table/datatable-table.js", 597); return isFunction(val) && val.prototype.render; } }, { ATTRS: { /** Content for the `<table summary="ATTRIBUTE VALUE HERE">`. Values assigned to this attribute will be HTML escaped for security. @attribute summary @type {String} @default '' (empty string) @since 3.5.0 **/ //summary: {}, /** HTML content of an optional `<caption>` element to appear above the table. Leave this config unset or set to a falsy value to remove the caption. @attribute caption @type HTML @default undefined (initially unset) @since 3.6.0 **/ //caption: {}, /** Columns to include in the rendered table. This attribute takes an array of objects. Each object is considered a data column or header cell to be rendered. How the objects are translated into markup is delegated to the `headerView`, `bodyView`, and `footerView`. The raw value is passed to the `headerView` and `footerView`. The `bodyView` receives the instance's `displayColumns` array, which is parsed from the columns array. If there are no nested columns (columns configured with a `children` array), the `displayColumns` is the same as the raw value. @attribute columns @type {Object[]} @since 3.6.0 **/ columns: { validator: isArray }, /** Width of the table including borders. This value requires units, so `200` is invalid, but `'200px'` is valid. Setting the empty string (the default) will allow the browser to set the table width. @attribute width @type {String} @default '' @since 3.6.0 **/ width: { value: '', validator: YLang.isString }, /** An instance of this class is used to render the contents of the `<thead>`&mdash;the column headers for the table. The instance of this View will be assigned to the instance's `head` property. It is not strictly necessary that the class function assigned here be a View subclass. It must however have a `render()` method. @attribute headerView @type {Function|Object} @default Y.DataTable.HeaderView @since 3.6.0 **/ headerView: { value: Y.DataTable.HeaderView, validator: '_validateView' }, /** Configuration overrides used when instantiating the `headerView` instance. @attribute headerConfig @type {Object} @since 3.6.0 **/ //headerConfig: {}, /** An instance of this class is used to render the contents of the `<tfoot>` (if appropriate). The instance of this View will be assigned to the instance's `foot` property. It is not strictly necessary that the class function assigned here be a View subclass. It must however have a `render()` method. @attribute footerView @type {Function|Object} @since 3.6.0 **/ footerView: { validator: '_validateView' }, /** Configuration overrides used when instantiating the `footerView` instance. @attribute footerConfig @type {Object} @since 3.6.0 **/ //footerConfig: {}, /** An instance of this class is used to render the contents of the table's `<tbody>`&mdash;the data cells in the table. The instance of this View will be assigned to the instance's `body` property. It is not strictly necessary that the class function assigned here be a View subclass. It must however have a `render()` method. @attribute bodyView @type {Function|Object} @default Y.DataTable.BodyView @since 3.6.0 **/ bodyView: { value: Y.DataTable.BodyView, validator: '_validateView' } /** Configuration overrides used when instantiating the `bodyView` instance. @attribute bodyConfig @type {Object} @since 3.6.0 **/ //bodyConfig: {} } }); }, '@VERSION@', {"requires": ["datatable-core", "datatable-head", "datatable-body", "view", "classnamemanager"]});
zimbatm/cdnjs
ajax/libs/yui/3.7.0/datatable-table/datatable-table-coverage.js
JavaScript
mit
54,694
YUI.add('node-base', function (Y, NAME) { /** * @module node * @submodule node-base */ var methods = [ /** * Determines whether each node has the given className. * @method hasClass * @for Node * @param {String} className the class name to search for * @return {Boolean} Whether or not the element has the specified class */ 'hasClass', /** * Adds a class name to each node. * @method addClass * @param {String} className the class name to add to the node's class attribute * @chainable */ 'addClass', /** * Removes a class name from each node. * @method removeClass * @param {String} className the class name to remove from the node's class attribute * @chainable */ 'removeClass', /** * Replace a class with another class for each node. * If no oldClassName is present, the newClassName is simply added. * @method replaceClass * @param {String} oldClassName the class name to be replaced * @param {String} newClassName the class name that will be replacing the old class name * @chainable */ 'replaceClass', /** * If the className exists on the node it is removed, if it doesn't exist it is added. * @method toggleClass * @param {String} className the class name to be toggled * @param {Boolean} force Option to force adding or removing the class. * @chainable */ 'toggleClass' ]; Y.Node.importMethod(Y.DOM, methods); /** * Determines whether each node has the given className. * @method hasClass * @see Node.hasClass * @for NodeList * @param {String} className the class name to search for * @return {Array} An array of booleans for each node bound to the NodeList. */ /** * Adds a class name to each node. * @method addClass * @see Node.addClass * @param {String} className the class name to add to the node's class attribute * @chainable */ /** * Removes a class name from each node. * @method removeClass * @see Node.removeClass * @param {String} className the class name to remove from the node's class attribute * @chainable */ /** * Replace a class with another class for each node. * If no oldClassName is present, the newClassName is simply added. * @method replaceClass * @see Node.replaceClass * @param {String} oldClassName the class name to be replaced * @param {String} newClassName the class name that will be replacing the old class name * @chainable */ /** * If the className exists on the node it is removed, if it doesn't exist it is added. * @method toggleClass * @see Node.toggleClass * @param {String} className the class name to be toggled * @chainable */ Y.NodeList.importMethod(Y.Node.prototype, methods); /** * @module node * @submodule node-base */ var Y_Node = Y.Node, Y_DOM = Y.DOM; /** * Returns a new dom node using the provided markup string. * @method create * @static * @param {String} html The markup used to create the element * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @param {HTMLDocument} doc An optional document context * @return {Node} A Node instance bound to a DOM node or fragment * @for Node */ Y_Node.create = function(html, doc) { if (doc && doc._node) { doc = doc._node; } return Y.one(Y_DOM.create(html, doc)); }; Y.mix(Y_Node.prototype, { /** * Creates a new Node using the provided markup string. * @method create * @param {String} html The markup used to create the element. * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @param {HTMLDocument} doc An optional document context * @return {Node} A Node instance bound to a DOM node or fragment */ create: Y_Node.create, /** * Inserts the content before the reference node. * @method insert * @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @param {Int | Node | HTMLElement | String} where The position to insert at. * Possible "where" arguments * <dl> * <dt>Y.Node</dt> * <dd>The Node to insert before</dd> * <dt>HTMLElement</dt> * <dd>The element to insert before</dd> * <dt>Int</dt> * <dd>The index of the child element to insert before</dd> * <dt>"replace"</dt> * <dd>Replaces the existing HTML</dd> * <dt>"before"</dt> * <dd>Inserts before the existing HTML</dd> * <dt>"before"</dt> * <dd>Inserts content before the node</dd> * <dt>"after"</dt> * <dd>Inserts content after the node</dd> * </dl> * @chainable */ insert: function(content, where) { this._insert(content, where); return this; }, _insert: function(content, where) { var node = this._node, ret = null; if (typeof where == 'number') { // allow index where = this._node.childNodes[where]; } else if (where && where._node) { // Node where = where._node; } if (content && typeof content != 'string') { // allow Node or NodeList/Array instances content = content._node || content._nodes || content; } ret = Y_DOM.addHTML(node, content, where); return ret; }, /** * Inserts the content as the firstChild of the node. * @method prepend * @param {String | Node | HTMLElement} content The content to insert * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @chainable */ prepend: function(content) { return this.insert(content, 0); }, /** * Inserts the content as the lastChild of the node. * @method append * @param {String | Node | HTMLElement} content The content to insert * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @chainable */ append: function(content) { return this.insert(content, null); }, /** * @method appendChild * @param {String | HTMLElement | Node} node Node to be appended * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @return {Node} The appended node */ appendChild: function(node) { return Y_Node.scrubVal(this._insert(node)); }, /** * @method insertBefore * @param {String | HTMLElement | Node} newNode Node to be appended * @param {HTMLElement | Node} refNode Node to be inserted before * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content. * @return {Node} The inserted node */ insertBefore: function(newNode, refNode) { return Y.Node.scrubVal(this._insert(newNode, refNode)); }, /** * Appends the node to the given node. * @method appendTo * @param {Node | HTMLElement} node The node to append to * @chainable */ appendTo: function(node) { Y.one(node).append(this); return this; }, /** * Replaces the node's current content with the content. * Note that this passes to innerHTML and is not escaped. * Use <a href="../classes/Escape.html#method_html">`Y.Escape.html()`</a> * to escape html content or `set('text')` to add as text. * @method setContent * @deprecated Use setHTML * @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert * @chainable */ setContent: function(content) { this._insert(content, 'replace'); return this; }, /** * Returns the node's current content (e.g. innerHTML) * @method getContent * @deprecated Use getHTML * @return {String} The current content */ getContent: function(content) { return this.get('innerHTML'); } }); /** * Replaces the node's current html content with the content provided. * Note that this passes to innerHTML and is not escaped. * Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text. * @method setHTML * @param {String | HTML | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert * @chainable */ Y.Node.prototype.setHTML = Y.Node.prototype.setContent; /** * Returns the node's current html content (e.g. innerHTML) * @method getHTML * @return {String} The html content */ Y.Node.prototype.getHTML = Y.Node.prototype.getContent; Y.NodeList.importMethod(Y.Node.prototype, [ /** * Called on each Node instance * @for NodeList * @method append * @see Node.append */ 'append', /** * Called on each Node instance * @for NodeList * @method insert * @see Node.insert */ 'insert', /** * Called on each Node instance * @for NodeList * @method appendChild * @see Node.appendChild */ 'appendChild', /** * Called on each Node instance * @for NodeList * @method insertBefore * @see Node.insertBefore */ 'insertBefore', /** * Called on each Node instance * @for NodeList * @method prepend * @see Node.prepend */ 'prepend', /** * Called on each Node instance * Note that this passes to innerHTML and is not escaped. * Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text. * @for NodeList * @method setContent * @deprecated Use setHTML */ 'setContent', /** * Called on each Node instance * @for NodeList * @method getContent * @deprecated Use getHTML */ 'getContent', /** * Called on each Node instance * Note that this passes to innerHTML and is not escaped. * Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text. * @for NodeList * @method setHTML * @see Node.setHTML */ 'setHTML', /** * Called on each Node instance * @for NodeList * @method getHTML * @see Node.getHTML */ 'getHTML' ]); /** * @module node * @submodule node-base */ var Y_Node = Y.Node, Y_DOM = Y.DOM; /** * Static collection of configuration attributes for special handling * @property ATTRS * @static * @type object */ Y_Node.ATTRS = { /** * Allows for getting and setting the text of an element. * Formatting is preserved and special characters are treated literally. * @config text * @type String */ text: { getter: function() { return Y_DOM.getText(this._node); }, setter: function(content) { Y_DOM.setText(this._node, content); return content; } }, /** * Allows for getting and setting the text of an element. * Formatting is preserved and special characters are treated literally. * @config for * @type String */ 'for': { getter: function() { return Y_DOM.getAttribute(this._node, 'for'); }, setter: function(val) { Y_DOM.setAttribute(this._node, 'for', val); return val; } }, 'options': { getter: function() { return this._node.getElementsByTagName('option'); } }, /** * Returns a NodeList instance of all HTMLElement children. * @readOnly * @config children * @type NodeList */ 'children': { getter: function() { var node = this._node, children = node.children, childNodes, i, len; if (!children) { childNodes = node.childNodes; children = []; for (i = 0, len = childNodes.length; i < len; ++i) { if (childNodes[i].tagName) { children[children.length] = childNodes[i]; } } } return Y.all(children); } }, value: { getter: function() { return Y_DOM.getValue(this._node); }, setter: function(val) { Y_DOM.setValue(this._node, val); return val; } } }; Y.Node.importMethod(Y.DOM, [ /** * Allows setting attributes on DOM nodes, normalizing in some cases. * This passes through to the DOM node, allowing for custom attributes. * @method setAttribute * @for Node * @for NodeList * @chainable * @param {string} name The attribute name * @param {string} value The value to set */ 'setAttribute', /** * Allows getting attributes on DOM nodes, normalizing in some cases. * This passes through to the DOM node, allowing for custom attributes. * @method getAttribute * @for Node * @for NodeList * @param {string} name The attribute name * @return {string} The attribute value */ 'getAttribute' ]); /** * @module node * @submodule node-base */ var Y_Node = Y.Node; var Y_NodeList = Y.NodeList; /** * List of events that route to DOM events * @static * @property DOM_EVENTS * @for Node */ Y_Node.DOM_EVENTS = { abort: 1, beforeunload: 1, blur: 1, change: 1, click: 1, close: 1, command: 1, contextmenu: 1, dblclick: 1, DOMMouseScroll: 1, drag: 1, dragstart: 1, dragenter: 1, dragover: 1, dragleave: 1, dragend: 1, drop: 1, error: 1, focus: 1, key: 1, keydown: 1, keypress: 1, keyup: 1, load: 1, message: 1, mousedown: 1, mouseenter: 1, mouseleave: 1, mousemove: 1, mousemultiwheel: 1, mouseout: 1, mouseover: 1, mouseup: 1, mousewheel: 1, orientationchange: 1, reset: 1, resize: 1, select: 1, selectstart: 1, submit: 1, scroll: 1, textInput: 1, unload: 1 }; // Add custom event adaptors to this list. This will make it so // that delegate, key, available, contentready, etc all will // be available through Node.on Y.mix(Y_Node.DOM_EVENTS, Y.Env.evt.plugins); Y.augment(Y_Node, Y.EventTarget); Y.mix(Y_Node.prototype, { /** * Removes event listeners from the node and (optionally) its subtree * @method purge * @param {Boolean} recurse (optional) Whether or not to remove listeners from the * node's subtree * @param {String} type (optional) Only remove listeners of the specified type * @chainable * */ purge: function(recurse, type) { Y.Event.purgeElement(this._node, recurse, type); return this; } }); Y.mix(Y.NodeList.prototype, { _prepEvtArgs: function(type, fn, context) { // map to Y.on/after signature (type, fn, nodes, context, arg1, arg2, etc) var args = Y.Array(arguments, 0, true); if (args.length < 2) { // type only (event hash) just add nodes args[2] = this._nodes; } else { args.splice(2, 0, this._nodes); } args[3] = context || this; // default to NodeList instance as context return args; }, /** Subscribe a callback function for each `Node` in the collection to execute in response to a DOM event. NOTE: Generally, the `on()` method should be avoided on `NodeLists`, in favor of using event delegation from a parent Node. See the Event user guide for details. Most DOM events are associated with a preventable default behavior, such as link clicks navigating to a new page. Callbacks are passed a `DOMEventFacade` object as their first argument (usually called `e`) that can be used to prevent this default behavior with `e.preventDefault()`. See the `DOMEventFacade` API for all available properties and methods on the object. By default, the `this` object will be the `NodeList` that the subscription came from, <em>not the `Node` that received the event</em>. Use `e.currentTarget` to refer to the `Node`. Returning `false` from a callback is supported as an alternative to calling `e.preventDefault(); e.stopPropagation();`. However, it is recommended to use the event methods. @example Y.all(".sku").on("keydown", function (e) { if (e.keyCode === 13) { e.preventDefault(); // Use e.currentTarget to refer to the individual Node var item = Y.MyApp.searchInventory( e.currentTarget.get('value') ); // etc ... } }); @method on @param {String} type The name of the event @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [arg*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching that subscription @for NodeList **/ on: function(type, fn, context) { return Y.on.apply(Y, this._prepEvtArgs.apply(this, arguments)); }, /** * Applies an one-time event listener to each Node bound to the NodeList. * @method once * @param {String} type The event being listened for * @param {Function} fn The handler to call when the event fires * @param {Object} context The context to call the handler with. * Default is the NodeList instance. * @return {EventHandle} A subscription handle capable of detaching that * subscription * @for NodeList */ once: function(type, fn, context) { return Y.once.apply(Y, this._prepEvtArgs.apply(this, arguments)); }, /** * Applies an event listener to each Node bound to the NodeList. * The handler is called only after all on() handlers are called * and the event is not prevented. * @method after * @param {String} type The event being listened for * @param {Function} fn The handler to call when the event fires * @param {Object} context The context to call the handler with. * Default is the NodeList instance. * @return {EventHandle} A subscription handle capable of detaching that * subscription * @for NodeList */ after: function(type, fn, context) { return Y.after.apply(Y, this._prepEvtArgs.apply(this, arguments)); }, /** * Applies an one-time event listener to each Node bound to the NodeList * that will be called only after all on() handlers are called and the * event is not prevented. * * @method onceAfter * @param {String} type The event being listened for * @param {Function} fn The handler to call when the event fires * @param {Object} context The context to call the handler with. * Default is the NodeList instance. * @return {EventHandle} A subscription handle capable of detaching that * subscription * @for NodeList */ onceAfter: function(type, fn, context) { return Y.onceAfter.apply(Y, this._prepEvtArgs.apply(this, arguments)); } }); Y_NodeList.importMethod(Y.Node.prototype, [ /** * Called on each Node instance * @method detach * @see Node.detach * @for NodeList */ 'detach', /** Called on each Node instance * @method detachAll * @see Node.detachAll * @for NodeList */ 'detachAll' ]); /** Subscribe a callback function to execute in response to a DOM event or custom event. Most DOM events are associated with a preventable default behavior such as link clicks navigating to a new page. Callbacks are passed a `DOMEventFacade` object as their first argument (usually called `e`) that can be used to prevent this default behavior with `e.preventDefault()`. See the `DOMEventFacade` API for all available properties and methods on the object. If the event name passed as the first parameter is not a whitelisted DOM event, it will be treated as a custom event subscriptions, allowing `node.fire('customEventName')` later in the code. Refer to the Event user guide for the full DOM event whitelist. By default, the `this` object in the callback will refer to the subscribed `Node`. Returning `false` from a callback is supported as an alternative to calling `e.preventDefault(); e.stopPropagation();`. However, it is recommended to use the event methods. @example Y.one("#my-form").on("submit", function (e) { e.preventDefault(); // proceed with ajax form submission instead... }); @method on @param {String} type The name of the event @param {Function} fn The callback to execute in response to the event @param {Object} [context] Override `this` object in callback @param {Any} [arg*] 0..n additional arguments to supply to the subscriber @return {EventHandle} A subscription handle capable of detaching that subscription @for Node **/ Y.mix(Y.Node.ATTRS, { offsetHeight: { setter: function(h) { Y.DOM.setHeight(this._node, h); return h; }, getter: function() { return this._node.offsetHeight; } }, offsetWidth: { setter: function(w) { Y.DOM.setWidth(this._node, w); return w; }, getter: function() { return this._node.offsetWidth; } } }); Y.mix(Y.Node.prototype, { sizeTo: function(w, h) { var node; if (arguments.length < 2) { node = Y.one(w); w = node.get('offsetWidth'); h = node.get('offsetHeight'); } this.setAttrs({ offsetWidth: w, offsetHeight: h }); } }); /** * @module node * @submodule node-base */ var Y_Node = Y.Node; Y.mix(Y_Node.prototype, { /** * Makes the node visible. * If the "transition" module is loaded, show optionally * animates the showing of the node using either the default * transition effect ('fadeIn'), or the given named effect. * @method show * @for Node * @param {String} name A named Transition effect to use as the show effect. * @param {Object} config Options to use with the transition. * @param {Function} callback An optional function to run after the transition completes. * @chainable */ show: function(callback) { callback = arguments[arguments.length - 1]; this.toggleView(true, callback); return this; }, /** * The implementation for showing nodes. * Default is to toggle the style.display property. * @method _show * @protected * @chainable */ _show: function() { this.setStyle('display', ''); }, _isHidden: function() { return Y.DOM.getStyle(this._node, 'display') === 'none'; }, /** * Displays or hides the node. * If the "transition" module is loaded, toggleView optionally * animates the toggling of the node using either the default * transition effect ('fadeIn'), or the given named effect. * @method toggleView * @for Node * @param {Boolean} [on] An optional boolean value to force the node to be shown or hidden * @param {Function} [callback] An optional function to run after the transition completes. * @chainable */ toggleView: function(on, callback) { this._toggleView.apply(this, arguments); return this; }, _toggleView: function(on, callback) { callback = arguments[arguments.length - 1]; // base on current state if not forcing if (typeof on != 'boolean') { on = (this._isHidden()) ? 1 : 0; } if (on) { this._show(); } else { this._hide(); } if (typeof callback == 'function') { callback.call(this); } return this; }, /** * Hides the node. * If the "transition" module is loaded, hide optionally * animates the hiding of the node using either the default * transition effect ('fadeOut'), or the given named effect. * @method hide * @param {String} name A named Transition effect to use as the show effect. * @param {Object} config Options to use with the transition. * @param {Function} callback An optional function to run after the transition completes. * @chainable */ hide: function(callback) { callback = arguments[arguments.length - 1]; this.toggleView(false, callback); return this; }, /** * The implementation for hiding nodes. * Default is to toggle the style.display property. * @method _hide * @protected * @chainable */ _hide: function() { this.setStyle('display', 'none'); } }); Y.NodeList.importMethod(Y.Node.prototype, [ /** * Makes each node visible. * If the "transition" module is loaded, show optionally * animates the showing of the node using either the default * transition effect ('fadeIn'), or the given named effect. * @method show * @param {String} name A named Transition effect to use as the show effect. * @param {Object} config Options to use with the transition. * @param {Function} callback An optional function to run after the transition completes. * @for NodeList * @chainable */ 'show', /** * Hides each node. * If the "transition" module is loaded, hide optionally * animates the hiding of the node using either the default * transition effect ('fadeOut'), or the given named effect. * @method hide * @param {String} name A named Transition effect to use as the show effect. * @param {Object} config Options to use with the transition. * @param {Function} callback An optional function to run after the transition completes. * @chainable */ 'hide', /** * Displays or hides each node. * If the "transition" module is loaded, toggleView optionally * animates the toggling of the nodes using either the default * transition effect ('fadeIn'), or the given named effect. * @method toggleView * @param {Boolean} [on] An optional boolean value to force the nodes to be shown or hidden * @param {Function} [callback] An optional function to run after the transition completes. * @chainable */ 'toggleView' ]); if (!Y.config.doc.documentElement.hasAttribute) { // IE < 8 Y.Node.prototype.hasAttribute = function(attr) { if (attr === 'value') { if (this.get('value') !== "") { // IE < 8 fails to populate specified when set in HTML return true; } } return !!(this._node.attributes[attr] && this._node.attributes[attr].specified); }; } // IE throws an error when calling focus() on an element that's invisible, not // displayed, or disabled. Y.Node.prototype.focus = function () { try { this._node.focus(); } catch (e) { } return this; }; // IE throws error when setting input.type = 'hidden', // input.setAttribute('type', 'hidden') and input.attributes.type.value = 'hidden' Y.Node.ATTRS.type = { setter: function(val) { if (val === 'hidden') { try { this._node.type = 'hidden'; } catch(e) { this.setStyle('display', 'none'); this._inputType = 'hidden'; } } else { try { // IE errors when changing the type from "hidden' this._node.type = val; } catch (e) { } } return val; }, getter: function() { return this._inputType || this._node.type; }, _bypassProxy: true // don't update DOM when using with Attribute }; if (Y.config.doc.createElement('form').elements.nodeType) { // IE: elements collection is also FORM node which trips up scrubVal. Y.Node.ATTRS.elements = { getter: function() { return this.all('input, textarea, button, select'); } }; } /** * Provides methods for managing custom Node data. * * @module node * @main node * @submodule node-data */ Y.mix(Y.Node.prototype, { _initData: function() { if (! ('_data' in this)) { this._data = {}; } }, /** * @method getData * @for Node * @description Retrieves arbitrary data stored on a Node instance. * If no data is associated with the Node, it will attempt to retrieve * a value from the corresponding HTML data attribute. (e.g. node.getData('foo') * will check node.getAttribute('data-foo')). * @param {string} name Optional name of the data field to retrieve. * If no name is given, all data is returned. * @return {any | Object} Whatever is stored at the given field, * or an object hash of all fields. */ getData: function(name) { this._initData(); var data = this._data, ret = data; if (arguments.length) { // single field if (name in data) { ret = data[name]; } else { // initialize from HTML attribute ret = this._getDataAttribute(name); } } else if (typeof data == 'object' && data !== null) { // all fields ret = {}; Y.Object.each(data, function(v, n) { ret[n] = v; }); ret = this._getDataAttributes(ret); } return ret; }, _getDataAttributes: function(ret) { ret = ret || {}; var i = 0, attrs = this._node.attributes, len = attrs.length, prefix = this.DATA_PREFIX, prefixLength = prefix.length, name; while (i < len) { name = attrs[i].name; if (name.indexOf(prefix) === 0) { name = name.substr(prefixLength); if (!(name in ret)) { // only merge if not already stored ret[name] = this._getDataAttribute(name); } } i += 1; } return ret; }, _getDataAttribute: function(name) { var name = this.DATA_PREFIX + name, node = this._node, attrs = node.attributes, data = attrs && attrs[name] && attrs[name].value; return data; }, /** * @method setData * @for Node * @description Stores arbitrary data on a Node instance. * This is not stored with the DOM node. * @param {string} name The name of the field to set. If no val * is given, name is treated as the data and overrides any existing data. * @param {any} val The value to be assigned to the field. * @chainable */ setData: function(name, val) { this._initData(); if (arguments.length > 1) { this._data[name] = val; } else { this._data = name; } return this; }, /** * @method clearData * @for Node * @description Clears internally stored data. * @param {string} name The name of the field to clear. If no name * is given, all data is cleared. * @chainable */ clearData: function(name) { if ('_data' in this) { if (typeof name != 'undefined') { delete this._data[name]; } else { delete this._data; } } return this; } }); Y.mix(Y.NodeList.prototype, { /** * @method getData * @for NodeList * @description Retrieves arbitrary data stored on each Node instance * bound to the NodeList. * @see Node * @param {string} name Optional name of the data field to retrieve. * If no name is given, all data is returned. * @return {Array} An array containing all of the data for each Node instance. * or an object hash of all fields. */ getData: function(name) { var args = (arguments.length) ? [name] : []; return this._invoke('getData', args, true); }, /** * @method setData * @for NodeList * @description Stores arbitrary data on each Node instance bound to the * NodeList. This is not stored with the DOM node. * @param {string} name The name of the field to set. If no name * is given, name is treated as the data and overrides any existing data. * @param {any} val The value to be assigned to the field. * @chainable */ setData: function(name, val) { var args = (arguments.length > 1) ? [name, val] : [name]; return this._invoke('setData', args); }, /** * @method clearData * @for NodeList * @description Clears data on all Node instances bound to the NodeList. * @param {string} name The name of the field to clear. If no name * is given, all data is cleared. * @chainable */ clearData: function(name) { var args = (arguments.length) ? [name] : []; return this._invoke('clearData', [name]); } }); }, '@VERSION@', {"requires": ["event-base", "node-core", "dom-base"]});
sarmadsangi/cdnjs
ajax/libs/yui/3.7.1/node-base/node-base.js
JavaScript
mit
33,352
YUI.add('datatype-date-math', function (Y, NAME) { /** * Date Math submodule. * * @module datatype-date * @submodule datatype-date-math * @for Date */ var LANG = Y.Lang; Y.mix(Y.namespace("Date"), { /** * Checks whether a native JavaScript Date contains a valid value. * @for Date * @method isValidDate * @param oDate {Date} Date in the month for which the number of days is desired. * @return {Boolean} True if the date argument contains a valid value. */ isValidDate : function (oDate) { if(LANG.isDate(oDate) && (isFinite(oDate)) && (oDate != "Invalid Date") && !isNaN(oDate) && (oDate != null)) { return true; } else { return false; } }, /** * Checks whether two dates correspond to the same date and time. * @for Date * @method areEqual * @param aDate {Date} The first date to compare. * @param bDate {Date} The second date to compare. * @return {Boolean} True if the two dates correspond to the same * date and time. */ areEqual : function (aDate, bDate) { return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() == bDate.getTime())); }, /** * Checks whether the first date comes later than the second. * @for Date * @method isGreater * @param aDate {Date} The first date to compare. * @param bDate {Date} The second date to compare. * @return {Boolean} True if the first date is later than the second. */ isGreater : function (aDate, bDate) { return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() > bDate.getTime())); }, /** * Checks whether the first date comes later than or is the same as * the second. * @for Date * @method isGreaterOrEqual * @param aDate {Date} The first date to compare. * @param bDate {Date} The second date to compare. * @return {Boolean} True if the first date is later than or * the same as the second. */ isGreaterOrEqual : function (aDate, bDate) { return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() >= bDate.getTime())); }, /** * Checks whether the date is between two other given dates. * @for Date * @method isInRange * @param aDate {Date} The date to check * @param bDate {Date} Lower bound of the range. * @param cDate {Date} Higher bound of the range. * @return {Boolean} True if the date is between the two other given dates. */ isInRange : function (aDate, bDate, cDate) { return (this.isGreaterOrEqual(aDate, bDate) && this.isGreaterOrEqual(cDate, aDate)); }, /** * Adds a specified number of days to the given date. * @for Date * @method addDays * @param oDate {Date} The date to add days to. * @param numMonths {Number} The number of days to add (can be negative) * @return {Date} A new Date with the specified number of days * added to the original date. */ addDays : function (oDate, numDays) { return new Date(oDate.getTime() + 86400000*numDays); }, /** * Adds a specified number of months to the given date. * @for Date * @method addMonths * @param oDate {Date} The date to add months to. * @param numMonths {Number} The number of months to add (can be negative) * @return {Date} A new Date with the specified number of months * added to the original date. */ addMonths : function (oDate, numMonths) { var newYear = oDate.getFullYear(); var newMonth = oDate.getMonth() + numMonths; newYear = Math.floor(newYear + newMonth / 12); newMonth = (newMonth % 12 + 12) % 12; var newDate = new Date (oDate.getTime()); newDate.setFullYear(newYear); newDate.setMonth(newMonth); return newDate; }, /** * Adds a specified number of years to the given date. * @for Date * @method addYears * @param oDate {Date} The date to add years to. * @param numYears {Number} The number of years to add (can be negative) * @return {Date} A new Date with the specified number of years * added to the original date. */ addYears : function (oDate, numYears) { var newYear = oDate.getFullYear() + numYears; var newDate = new Date(oDate.getTime()); newDate.setFullYear(newYear); return newDate; }, /** * Lists all dates in a given month. * @for Date * @method listOfDatesInMonth * @param oDate {Date} The date corresponding to the month for * which a list of dates is required. * @return {Array} An `Array` of `Date`s from a given month. */ listOfDatesInMonth : function (oDate) { if (!this.isValidDate(oDate)) { return []; } var daysInMonth = this.daysInMonth(oDate), year = oDate.getFullYear(), month = oDate.getMonth(), output = []; for (var day = 1; day <= daysInMonth; day++) { output.push(new Date(year, month, day, 12, 0, 0)); } return output; }, /** * Takes a native JavaScript Date and returns the number of days * in the month that the given date belongs to. * @for Date * @method daysInMonth * @param oDate {Date} Date in the month for which the number * of days is desired. * @return {Number} A number (either 28, 29, 30 or 31) of days * in the given month. */ daysInMonth : function (oDate) { if (!this.isValidDate(oDate)) { return 0; } var mon = oDate.getMonth(); var lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; if (mon != 1) { return lengths[mon]; } else { var year = oDate.getFullYear(); if (year%400 === 0) { return 29; } else if (year%100 === 0) { return 28; } else if (year%4 === 0) { return 29; } else { return 28; } } } }); Y.namespace("DataType"); Y.DataType.Date = Y.Date; }, '@VERSION@', {"requires": ["yui-base"]});
Blueprint-Marketing/cdnjs
ajax/libs/yui/3.8.0/datatype-date-math/datatype-date-math.js
JavaScript
mit
5,826
var es = require('event-stream') var combine = require('..') var test = require('tape') test('do not duplicate errors', function (test) { var errors = 0; var pipe = combine( es.through(function(data) { return this.emit('data', data); }), es.through(function(data) { return this.emit('error', new Error(data)); }) ) pipe.on('error', function(err) { errors++ test.ok(errors, 'expected error count') process.nextTick(function () { return test.end(); }) }) return pipe.write('meh'); }) test('3 pipe do not duplicate errors', function (test) { var errors = 0; var pipe = combine( es.through(function(data) { return this.emit('data', data); }), es.through(function(data) { return this.emit('error', new Error(data)); }), es.through() ) pipe.on('error', function(err) { errors++ test.ok(errors, 'expected error count') process.nextTick(function () { return test.end(); }) }) return pipe.write('meh'); })
FnK-Lap/Social-tracker
node_modules/grunt-contrib-imagemin/node_modules/image-min/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/decompress/node_modules/stream-combiner/test/index.js
JavaScript
mit
1,047
/*! Roman numeral parsers * code modified from both: * Steven Levithan @ http://blog.stevenlevithan.com/archives/javascript-roman-numeral-converter * Jonathan Snook comment @ http://blog.stevenlevithan.com/archives/javascript-roman-numeral-converter#comment-16140 */ /*jshint jquery:true, unused:false */ ;(function($){ "use strict"; // allow lower case roman numerals, since lists use i, ii, iii, etc. var validator = /^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/i, matcher = /\b([MCDLXVI]+\b)/gi, lookup = { I:1, V:5, X:10, L:50, C:100, D:500, M:1000 }; $.tablesorter.addParser({ id: 'roman', is: function(){ return false; }, format: function(s) { var val, roman = s.toUpperCase().split(''), num = 0; // roman numerals not found! if ( !(s && validator.test(s)) ) { return s; } while (roman.length) { val = lookup[roman.shift()]; num += val * (val < lookup[roman[0]] ? -1 : 1); } return num; }, type: "numeric" }); $.tablesorter.addParser({ id: 'roman-ignore', is: function(){ return false; }, format: function(s, table, cell, column) { var val, orig, c = table.config, ignore = $.isArray(c.roman_ignore) ? c.roman_ignore[column] : 0, // find roman numerals roman = ( isNaN(ignore) ? // ignore can be a regex or string $.trim( s.replace(ignore, '') ) : // or a number to ignore the last x letters... $.trim( s.substring(0, s.length - ignore) ) ).match(matcher), v = validator.test(roman), num = 0; // roman numerals not found! if ( !(v) ) { return s; } // save roman numeral for replacement orig = roman[0]; roman = orig.toUpperCase().split(''); while (roman.length) { val = lookup[roman.shift()]; // ignore non-roman numerals if (val) { num += val * (val < lookup[roman[0]] ? -1 : 1); } } return num ? s.replace(orig, num) : s; }, type: "text" }); $.tablesorter.addParser({ id: 'roman-extract', is: function(){ return false; }, format: function(s) { var val, // find roman numerals roman = $.grep(s.split(/\b/), function(v, i){ return validator.test(v) ? v : ''; }).join('').match(matcher), v = roman ? validator.test(roman) : 0, num = 0; // roman numerals not found! if ( !(v) ) { return s; } // save roman numeral for replacement roman = roman[0].toUpperCase().split(''); while (roman.length) { val = lookup[roman.shift()]; // ignore non-roman numerals if (val) { num += val * (val < lookup[roman[0]] ? -1 : 1); } } return num ? num : s; }, type: "numeric" }); })(jQuery);
brunoksato/cdnjs
ajax/libs/jquery.tablesorter/2.18.4/js/parsers/parser-roman.js
JavaScript
mit
2,691
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.keyboardJS = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ var Keyboard = require('./lib/keyboard'); var Locale = require('./lib/locale'); var KeyCombo = require('./lib/key-combo'); var keyboard = new Keyboard(); keyboard.setLocale('us', require('./locales/us')); exports = module.exports = keyboard; exports.Keyboard = Keyboard; exports.Locale = Locale; exports.KeyCombo = KeyCombo; },{"./lib/key-combo":2,"./lib/keyboard":3,"./lib/locale":4,"./locales/us":5}],2:[function(require,module,exports){ function KeyCombo(keyComboStr) { this.sourceStr = keyComboStr; this.subCombos = KeyCombo.parseComboStr(keyComboStr); this.keyNames = this.subCombos.reduce(function(memo, nextSubCombo) { return memo.concat(nextSubCombo); }); } // TODO: Add support for key combo sequences KeyCombo.sequenceDeliminator = '>>'; KeyCombo.comboDeliminator = '>'; KeyCombo.keyDeliminator = '+'; KeyCombo.parseComboStr = function(keyComboStr) { var subComboStrs = KeyCombo._splitStr(keyComboStr, KeyCombo.comboDeliminator); var combo = []; for (var i = 0 ; i < subComboStrs.length; i += 1) { combo.push(KeyCombo._splitStr(subComboStrs[i], KeyCombo.keyDeliminator)); } return combo; }; KeyCombo.prototype.check = function(pressedKeyNames) { var startingKeyNameIndex = 0; for (var i = 0; i < this.subCombos.length; i += 1) { startingKeyNameIndex = this._checkSubCombo( this.subCombos[i], startingKeyNameIndex, pressedKeyNames ); if (startingKeyNameIndex === -1) { return false; } } return true; }; KeyCombo.prototype.isEqual = function(otherKeyCombo) { if ( !otherKeyCombo || typeof otherKeyCombo !== 'string' && typeof otherKeyCombo !== 'object' ) { return false; } if (typeof otherKeyCombo === 'string') { otherKeyCombo = new KeyCombo(otherKeyCombo); } if (this.subCombos.length !== otherKeyCombo.subCombos.length) { return false; } for (var i = 0; i < this.subCombos.length; i += 1) { if (this.subCombos[i].length !== otherKeyCombo.subCombos[i].length) { return false; } } for (var i = 0; i < this.subCombos.length; i += 1) { var subCombo = this.subCombos[i]; var otherSubCombo = otherKeyCombo.subCombos[i].slice(0); for (var j = 0; j < subCombo.length; j += 1) { var keyName = subCombo[j]; var index = otherSubCombo.indexOf(keyName); if (index > -1) { otherSubCombo.splice(index, 1); } } if (otherSubCombo.length !== 0) { return false; } } return true; }; KeyCombo._splitStr = function(str, deliminator) { var s = str; var d = deliminator; var c = ''; var ca = []; for (var ci = 0; ci < s.length; ci += 1) { if (ci > 0 && s[ci] === d && s[ci - 1] !== '\\') { ca.push(c.trim()); c = ''; ci += 1; } c += s[ci]; } if (c) { ca.push(c.trim()); } return ca; }; KeyCombo.prototype._checkSubCombo = function(subCombo, startingKeyNameIndex, pressedKeyNames) { subCombo = subCombo.slice(0); pressedKeyNames = pressedKeyNames.slice(startingKeyNameIndex); var endIndex = startingKeyNameIndex; for (var i = 0; i < subCombo.length; i += 1) { var keyName = subCombo[i]; if (keyName[0] === '\\') { var escapedKeyName = keyName.slice(1); if ( escapedKeyName === KeyCombo.comboDeliminator || escapedKeyName === KeyCombo.keyDeliminator ) { keyName = escapedKeyName; } } var index = pressedKeyNames.indexOf(keyName); if (index > -1) { subCombo.splice(i, 1); i -= 1; if (index > endIndex) { endIndex = index; } if (subCombo.length === 0) { return endIndex; } } } return -1; }; module.exports = KeyCombo; },{}],3:[function(require,module,exports){ (function (global){ var Locale = require('./locale'); var KeyCombo = require('./key-combo'); function Keyboard(targetWindow, targetElement, platform, userAgent) { this._locale = null; this._currentContext = null; this._contexts = {}; this._listeners = []; this._appliedListeners = []; this._locales = {}; this._targetElement = null; this._targetWindow = null; this._targetPlatform = ''; this._targetUserAgent = ''; this._isModernBrowser = false; this._targetKeyDownBinding = null; this._targetKeyUpBinding = null; this._targetResetBinding = null; this._paused = false; this.setContext('global'); this.watch(targetWindow, targetElement, platform, userAgent); } Keyboard.prototype.setLocale = function(localeName, localeBuilder) { var locale = null; if (typeof localeName === 'string') { if (localeBuilder) { locale = new Locale(localeName); localeBuilder(locale, this._targetPlatform, this._targetUserAgent); } else { locale = this._locales[localeName] || null; } } else { locale = localeName; localeName = locale._localeName; } this._locale = locale; this._locales[localeName] = locale; if (locale) { this._locale.pressedKeys = locale.pressedKeys; } }; Keyboard.prototype.getLocale = function(localName) { localName || (localName = this._locale.localeName); return this._locales[localName] || null; }; Keyboard.prototype.bind = function(keyComboStr, pressHandler, releaseHandler, preventRepeatByDefault) { if (keyComboStr === null || typeof keyComboStr === 'function') { preventRepeatByDefault = releaseHandler; releaseHandler = pressHandler; pressHandler = keyComboStr; keyComboStr = null; } if ( keyComboStr && typeof keyComboStr === 'object' && typeof keyComboStr.length === 'number' ) { for (var i = 0; i < keyComboStr.length; i += 1) { this.bind(keyComboStr[i], pressHandler, releaseHandler); } return; } this._listeners.push({ keyCombo : keyComboStr ? new KeyCombo(keyComboStr) : null, pressHandler : pressHandler || null, releaseHandler : releaseHandler || null, preventRepeat : preventRepeatByDefault || false, preventRepeatByDefault : preventRepeatByDefault || false }); }; Keyboard.prototype.addListener = Keyboard.prototype.bind; Keyboard.prototype.on = Keyboard.prototype.bind; Keyboard.prototype.unbind = function(keyComboStr, pressHandler, releaseHandler) { if (keyComboStr === null || typeof keyComboStr === 'function') { releaseHandler = pressHandler; pressHandler = keyComboStr; keyComboStr = null; } if ( keyComboStr && typeof keyComboStr === 'object' && typeof keyComboStr.length === 'number' ) { for (var i = 0; i < keyComboStr.length; i += 1) { this.unbind(keyComboStr[i], pressHandler, releaseHandler); } return; } for (var i = 0; i < this._listeners.length; i += 1) { var listener = this._listeners[i]; var comboMatches = !keyComboStr && !listener.keyCombo || listener.keyCombo.isEqual(keyComboStr); var pressHandlerMatches = !pressHandler && !releaseHandler || !pressHandler && !listener.pressHandler || pressHandler === listener.pressHandler; var releaseHandlerMatches = !pressHandler && !releaseHandler || !releaseHandler && !listener.releaseHandler || releaseHandler === listener.releaseHandler; if (comboMatches && pressHandlerMatches && releaseHandlerMatches) { this._listeners.splice(i, 1); i -= 1; } } }; Keyboard.prototype.removeListener = Keyboard.prototype.unbind; Keyboard.prototype.off = Keyboard.prototype.unbind; Keyboard.prototype.setContext = function(contextName) { if(this._locale) { this.releaseAllKeys(); } if (!this._contexts[contextName]) { this._contexts[contextName] = []; } this._listeners = this._contexts[contextName]; this._currentContext = contextName; }; Keyboard.prototype.getContext = function() { return this._currentContext; }; Keyboard.prototype.withContext = function(contextName, callback) { var previousContextName = this.getContext(); this.setContext(contextName); callback(); this.setContext(previousContextName); }; Keyboard.prototype.watch = function(targetWindow, targetElement, targetPlatform, targetUserAgent) { var _this = this; this.stop(); if (!targetWindow) { if (!global.addEventListener && !global.attachEvent) { throw new Error('Cannot find global functions addEventListener or attachEvent.'); } targetWindow = global; } if (typeof targetWindow.nodeType === 'number') { targetUserAgent = targetPlatform; targetPlatform = targetElement; targetElement = targetWindow; targetWindow = global; } if (!targetWindow.addEventListener && !targetWindow.attachEvent) { throw new Error('Cannot find addEventListener or attachEvent methods on targetWindow.'); } this._isModernBrowser = !!targetWindow.addEventListener; var userAgent = targetWindow.navigator && targetWindow.navigator.userAgent || ''; var platform = targetWindow.navigator && targetWindow.navigator.platform || ''; targetElement && targetElement !== null || (targetElement = targetWindow.document); targetPlatform && targetPlatform !== null || (targetPlatform = platform); targetUserAgent && targetUserAgent !== null || (targetUserAgent = userAgent); this._targetKeyDownBinding = function(event) { _this.pressKey(event.keyCode, event); }; this._targetKeyUpBinding = function(event) { _this.releaseKey(event.keyCode, event); }; this._targetResetBinding = function(event) { _this.releaseAllKeys(event) }; this._bindEvent(targetElement, 'keydown', this._targetKeyDownBinding); this._bindEvent(targetElement, 'keyup', this._targetKeyUpBinding); this._bindEvent(targetWindow, 'focus', this._targetResetBinding); this._bindEvent(targetWindow, 'blur', this._targetResetBinding); this._targetElement = targetElement; this._targetWindow = targetWindow; this._targetPlatform = targetPlatform; this._targetUserAgent = targetUserAgent; }; Keyboard.prototype.stop = function() { var _this = this; if (!this._targetElement || !this._targetWindow) { return; } this._unbindEvent(this._targetElement, 'keydown', this._targetKeyDownBinding); this._unbindEvent(this._targetElement, 'keyup', this._targetKeyUpBinding); this._unbindEvent(this._targetWindow, 'focus', this._targetResetBinding); this._unbindEvent(this._targetWindow, 'blur', this._targetResetBinding); this._targetWindow = null; this._targetElement = null; }; Keyboard.prototype.pressKey = function(keyCode, event) { if (this._paused) { return; } if (!this._locale) { throw new Error('Locale not set'); } this._locale.pressKey(keyCode); this._applyBindings(event); }; Keyboard.prototype.releaseKey = function(keyCode, event) { if (this._paused) { return; } if (!this._locale) { throw new Error('Locale not set'); } this._locale.releaseKey(keyCode); this._clearBindings(event); }; Keyboard.prototype.releaseAllKeys = function(event) { if (this._paused) { return; } if (!this._locale) { throw new Error('Locale not set'); } this._locale.pressedKeys.length = 0; this._clearBindings(event); }; Keyboard.prototype.pause = function() { if (this._paused) { return; } if (this._locale) { this.releaseAllKeys(); } this._paused = true; }; Keyboard.prototype.resume = function() { this._paused = false; }; Keyboard.prototype.reset = function() { this.releaseAllKeys(); this._listeners.length = 0; }; Keyboard.prototype._bindEvent = function(targetElement, eventName, handler) { return this._isModernBrowser ? targetElement.addEventListener(eventName, handler, false) : targetElement.attachEvent('on' + eventName, handler); }; Keyboard.prototype._unbindEvent = function(targetElement, eventName, handler) { return this._isModernBrowser ? targetElement.removeEventListener(eventName, handler, false) : targetElement.detachEvent('on' + eventName, handler); }; Keyboard.prototype._getGroupedListeners = function() { var listenerGroups = []; var listenerGroupMap = []; var listeners = this._listeners; if (this._currentContext !== 'global') { listeners = [].concat(listeners, this._contexts.global); } listeners.sort(function(a, b) { return b.keyCombo.keyNames.length - a.keyCombo.keyNames.length; }).forEach(function(l) { var mapIndex = -1; for (var i = 0; i < listenerGroupMap.length; i += 1) { if (listenerGroupMap[i].isEqual(l.keyCombo)) { mapIndex = i; } } if (mapIndex === -1) { mapIndex = listenerGroupMap.length; listenerGroupMap.push(l.keyCombo); } if (!listenerGroups[mapIndex]) { listenerGroups[mapIndex] = []; } listenerGroups[mapIndex].push(l); }); return listenerGroups; }; Keyboard.prototype._applyBindings = function(event) { var preventRepeat = false; event || (event = {}); event.preventRepeat = function() { preventRepeat = true; }; event.pressedKeys = this._locale.pressedKeys.slice(0); var pressedKeys = this._locale.pressedKeys.slice(0); var listenerGroups = this._getGroupedListeners(); for (var i = 0; i < listenerGroups.length; i += 1) { var listeners = listenerGroups[i]; var keyCombo = listeners[0].keyCombo; if (keyCombo === null || keyCombo.check(pressedKeys)) { for (var j = 0; j < listeners.length; j += 1) { var listener = listeners[j]; if (keyCombo === null) { listener = { keyCombo : new KeyCombo(pressedKeys.join('+')), pressHandler : listener.pressHandler, releaseHandler : listener.releaseHandler, preventRepeat : listener.preventRepeat, preventRepeatByDefault : listener.preventRepeatByDefault }; } if (listener.pressHandler && !listener.preventRepeat) { listener.pressHandler.call(this, event); if (preventRepeat) { listener.preventRepeat = preventRepeat; preventRepeat = false; } } if (listener.releaseHandler && this._appliedListeners.indexOf(listener) === -1) { this._appliedListeners.push(listener); } } if (keyCombo) { for (var j = 0; j < keyCombo.keyNames.length; j += 1) { var index = pressedKeys.indexOf(keyCombo.keyNames[j]); if (index !== -1) { pressedKeys.splice(index, 1); j -= 1; } } } } } }; Keyboard.prototype._clearBindings = function(event) { event || (event = {}); for (var i = 0; i < this._appliedListeners.length; i += 1) { var listener = this._appliedListeners[i]; var keyCombo = listener.keyCombo; if (keyCombo === null || !keyCombo.check(this._locale.pressedKeys)) { listener.preventRepeat = listener.preventRepeatByDefault; listener.releaseHandler.call(this, event); this._appliedListeners.splice(i, 1); i -= 1; } } }; module.exports = Keyboard; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./key-combo":2,"./locale":4}],4:[function(require,module,exports){ var KeyCombo = require('./key-combo'); function Locale(name) { this.localeName = name; this.pressedKeys = []; this._appliedMacros = []; this._keyMap = {}; this._killKeyCodes = []; this._macros = []; } Locale.prototype.bindKeyCode = function(keyCode, keyNames) { if (typeof keyNames === 'string') { keyNames = [keyNames]; } this._keyMap[keyCode] = keyNames; }; Locale.prototype.bindMacro = function(keyComboStr, keyNames) { if (typeof keyNames === 'string') { keyNames = [ keyNames ]; } var handler = null; if (typeof keyNames === 'function') { handler = keyNames; keyNames = null; } var macro = { keyCombo : new KeyCombo(keyComboStr), keyNames : keyNames, handler : handler }; this._macros.push(macro); }; Locale.prototype.getKeyCodes = function(keyName) { var keyCodes = []; for (var keyCode in this._keyMap) { var index = this._keyMap[keyCode].indexOf(keyName); if (index > -1) { keyCodes.push(keyCode|0); } } return keyCodes; }; Locale.prototype.getKeyNames = function(keyCode) { return this._keyMap[keyCode] || []; }; Locale.prototype.setKillKey = function(keyCode) { if (typeof keyCode === 'string') { var keyCodes = this.getKeyCodes(keyCode); for (var i = 0; i < keyCodes.length; i += 1) { this.setKillKey(keyCodes[i]); } return; } this._killKeyCodes.push(keyCode); }; Locale.prototype.pressKey = function(keyCode) { if (typeof keyCode === 'string') { var keyCodes = this.getKeyCodes(keyCode); for (var i = 0; i < keyCodes.length; i += 1) { this.pressKey(keyCodes[i]); } return; } var keyNames = this.getKeyNames(keyCode); for (var i = 0; i < keyNames.length; i += 1) { if (this.pressedKeys.indexOf(keyNames[i]) === -1) { this.pressedKeys.push(keyNames[i]); } } this._applyMacros(); }; Locale.prototype.releaseKey = function(keyCode) { if (typeof keyCode === 'string') { var keyCodes = this.getKeyCodes(keyCode); for (var i = 0; i < keyCodes.length; i += 1) { this.releaseKey(keyCodes[i]); } } else { var keyNames = this.getKeyNames(keyCode); var killKeyCodeIndex = this._killKeyCodes.indexOf(keyCode); if (killKeyCodeIndex > -1) { this.pressedKeys.length = 0; } else { for (var i = 0; i < keyNames.length; i += 1) { var index = this.pressedKeys.indexOf(keyNames[i]); if (index > -1) { this.pressedKeys.splice(index, 1); } } } this._clearMacros(); } }; Locale.prototype._applyMacros = function() { var macros = this._macros.slice(0); for (var i = 0; i < macros.length; i += 1) { var macro = macros[i]; if (macro.keyCombo.check(this.pressedKeys)) { if (macro.handler) { macro.keyNames = macro.handler(this.pressedKeys); } for (var j = 0; j < macro.keyNames.length; j += 1) { if (this.pressedKeys.indexOf(macro.keyNames[j]) === -1) { this.pressedKeys.push(macro.keyNames[j]); } } this._appliedMacros.push(macro); } } }; Locale.prototype._clearMacros = function() { for (var i = 0; i < this._appliedMacros.length; i += 1) { var macro = this._appliedMacros[i]; if (!macro.keyCombo.check(this.pressedKeys)) { for (var j = 0; j < macro.keyNames.length; j += 1) { var index = this.pressedKeys.indexOf(macro.keyNames[j]); if (index > -1) { this.pressedKeys.splice(index, 1); } } if (macro.handler) { macro.keyNames = null; } this._appliedMacros.splice(i, 1); i -= 1; } } }; module.exports = Locale; },{"./key-combo":2}],5:[function(require,module,exports){ module.exports = function(locale, platform, userAgent) { // general locale.bindKeyCode(3, ['cancel']); locale.bindKeyCode(8, ['backspace']); locale.bindKeyCode(9, ['tab']); locale.bindKeyCode(12, ['clear']); locale.bindKeyCode(13, ['enter']); locale.bindKeyCode(16, ['shift']); locale.bindKeyCode(17, ['ctrl']); locale.bindKeyCode(18, ['alt', 'menu']); locale.bindKeyCode(19, ['pause', 'break']); locale.bindKeyCode(20, ['capslock']); locale.bindKeyCode(27, ['escape', 'esc']); locale.bindKeyCode(32, ['space', 'spacebar']); locale.bindKeyCode(33, ['pageup']); locale.bindKeyCode(34, ['pagedown']); locale.bindKeyCode(35, ['end']); locale.bindKeyCode(36, ['home']); locale.bindKeyCode(37, ['left']); locale.bindKeyCode(38, ['up']); locale.bindKeyCode(39, ['right']); locale.bindKeyCode(40, ['down']); locale.bindKeyCode(41, ['select']); locale.bindKeyCode(42, ['printscreen']); locale.bindKeyCode(43, ['execute']); locale.bindKeyCode(44, ['snapshot']); locale.bindKeyCode(45, ['insert', 'ins']); locale.bindKeyCode(46, ['delete', 'del']); locale.bindKeyCode(47, ['help']); locale.bindKeyCode(145, ['scrolllock', 'scroll']); locale.bindKeyCode(187, ['equal', 'equalsign', '=']); locale.bindKeyCode(188, ['comma', ',']); locale.bindKeyCode(190, ['period', '.']); locale.bindKeyCode(191, ['slash', 'forwardslash', '/']); locale.bindKeyCode(192, ['graveaccent', '`']); locale.bindKeyCode(219, ['openbracket', '[']); locale.bindKeyCode(220, ['backslash', '\\']); locale.bindKeyCode(221, ['closebracket', ']']); locale.bindKeyCode(222, ['apostrophe', '\'']); // 0-9 locale.bindKeyCode(48, ['zero', '0']); locale.bindKeyCode(49, ['one', '1']); locale.bindKeyCode(50, ['two', '2']); locale.bindKeyCode(51, ['three', '3']); locale.bindKeyCode(52, ['four', '4']); locale.bindKeyCode(53, ['five', '5']); locale.bindKeyCode(54, ['six', '6']); locale.bindKeyCode(55, ['seven', '7']); locale.bindKeyCode(56, ['eight', '8']); locale.bindKeyCode(57, ['nine', '9']); // numpad locale.bindKeyCode(96, ['numzero', 'num0']); locale.bindKeyCode(97, ['numone', 'num1']); locale.bindKeyCode(98, ['numtwo', 'num2']); locale.bindKeyCode(99, ['numthree', 'num3']); locale.bindKeyCode(100, ['numfour', 'num4']); locale.bindKeyCode(101, ['numfive', 'num5']); locale.bindKeyCode(102, ['numsix', 'num6']); locale.bindKeyCode(103, ['numseven', 'num7']); locale.bindKeyCode(104, ['numeight', 'num8']); locale.bindKeyCode(105, ['numnine', 'num9']); locale.bindKeyCode(106, ['nummultiply', 'num*']); locale.bindKeyCode(107, ['numadd', 'num+']); locale.bindKeyCode(108, ['numenter']); locale.bindKeyCode(109, ['numsubtract', 'num-']); locale.bindKeyCode(110, ['numdecimal', 'num.']); locale.bindKeyCode(111, ['numdivide', 'num/']); locale.bindKeyCode(144, ['numlock', 'num']); // function keys locale.bindKeyCode(112, ['f1']); locale.bindKeyCode(113, ['f2']); locale.bindKeyCode(114, ['f3']); locale.bindKeyCode(115, ['f4']); locale.bindKeyCode(116, ['f5']); locale.bindKeyCode(117, ['f6']); locale.bindKeyCode(118, ['f7']); locale.bindKeyCode(119, ['f8']); locale.bindKeyCode(120, ['f9']); locale.bindKeyCode(121, ['f10']); locale.bindKeyCode(122, ['f11']); locale.bindKeyCode(123, ['f12']); // secondary key symbols locale.bindMacro('shift + `', ['tilde', '~']); locale.bindMacro('shift + 1', ['exclamation', 'exclamationpoint', '!']); locale.bindMacro('shift + 2', ['at', '@']); locale.bindMacro('shift + 3', ['number', '#']); locale.bindMacro('shift + 4', ['dollar', 'dollars', 'dollarsign', '$']); locale.bindMacro('shift + 5', ['percent', '%']); locale.bindMacro('shift + 6', ['caret', '^']); locale.bindMacro('shift + 7', ['ampersand', 'and', '&']); locale.bindMacro('shift + 8', ['asterisk', '*']); locale.bindMacro('shift + 9', ['openparen', '(']); locale.bindMacro('shift + 0', ['closeparen', ')']); locale.bindMacro('shift + -', ['underscore', '_']); locale.bindMacro('shift + =', ['plus', '+']); locale.bindMacro('shift + [', ['opencurlybrace', 'opencurlybracket', '{']); locale.bindMacro('shift + ]', ['closecurlybrace', 'closecurlybracket', '}']); locale.bindMacro('shift + \\', ['verticalbar', '|']); locale.bindMacro('shift + ;', ['colon', ':']); locale.bindMacro('shift + \'', ['quotationmark', '\'']); locale.bindMacro('shift + !,', ['openanglebracket', '<']); locale.bindMacro('shift + .', ['closeanglebracket', '>']); locale.bindMacro('shift + /', ['questionmark', '?']); //a-z and A-Z for (var keyCode = 65; keyCode <= 90; keyCode += 1) { var keyName = String.fromCharCode(keyCode + 32); var capitalKeyName = String.fromCharCode(keyCode); locale.bindKeyCode(keyCode, keyName); locale.bindMacro('shift + ' + keyName, capitalKeyName); locale.bindMacro('capslock + ' + keyName, capitalKeyName); } // browser caveats var semicolonKeyCode = userAgent.match('Firefox') ? 59 : 186; var dashKeyCode = userAgent.match('Firefox') ? 173 : 189; var leftCommandKeyCode; var rightCommandKeyCode; if (platform.match('Mac') && (userAgent.match('Safari') || userAgent.match('Chrome'))) { leftCommandKeyCode = 91; rightCommandKeyCode = 93; } else if(platform.match('Mac') && userAgent.match('Opera')) { leftCommandKeyCode = 17; rightCommandKeyCode = 17; } else if(platform.match('Mac') && userAgent.match('Firefox')) { leftCommandKeyCode = 224; rightCommandKeyCode = 224; } locale.bindKeyCode(semicolonKeyCode, ['semicolon', ';']); locale.bindKeyCode(dashKeyCode, ['dash', '-']); locale.bindKeyCode(leftCommandKeyCode, ['command', 'windows', 'win', 'super', 'leftcommand', 'leftwindows', 'leftwin', 'leftsuper']); locale.bindKeyCode(rightCommandKeyCode, ['command', 'windows', 'win', 'super', 'rightcommand', 'rightwindows', 'rightwin', 'rightsuper']); // kill keys locale.setKillKey('command'); }; },{}]},{},[1])(1) }); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJpbmRleC5qcyIsImxpYi9rZXktY29tYm8uanMiLCJsaWIva2V5Ym9hcmQuanMiLCJsaWIvbG9jYWxlLmpzIiwibG9jYWxlcy91cy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FDYkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUNuSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQzVXQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQ3ZKQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gZSh0LG4scil7ZnVuY3Rpb24gcyhvLHUpe2lmKCFuW29dKXtpZighdFtvXSl7dmFyIGE9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIrbytcIidcIik7dGhyb3cgZi5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGZ9dmFyIGw9bltvXT17ZXhwb3J0czp7fX07dFtvXVswXS5jYWxsKGwuZXhwb3J0cyxmdW5jdGlvbihlKXt2YXIgbj10W29dWzFdW2VdO3JldHVybiBzKG4/bjplKX0sbCxsLmV4cG9ydHMsZSx0LG4scil9cmV0dXJuIG5bb10uZXhwb3J0c312YXIgaT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2Zvcih2YXIgbz0wO288ci5sZW5ndGg7bysrKXMocltvXSk7cmV0dXJuIHN9KSIsIlxudmFyIEtleWJvYXJkID0gcmVxdWlyZSgnLi9saWIva2V5Ym9hcmQnKTtcbnZhciBMb2NhbGUgICA9IHJlcXVpcmUoJy4vbGliL2xvY2FsZScpO1xudmFyIEtleUNvbWJvID0gcmVxdWlyZSgnLi9saWIva2V5LWNvbWJvJyk7XG5cbnZhciBrZXlib2FyZCA9IG5ldyBLZXlib2FyZCgpO1xuXG5rZXlib2FyZC5zZXRMb2NhbGUoJ3VzJywgcmVxdWlyZSgnLi9sb2NhbGVzL3VzJykpO1xuXG5leHBvcnRzICAgICAgICAgID0gbW9kdWxlLmV4cG9ydHMgPSBrZXlib2FyZDtcbmV4cG9ydHMuS2V5Ym9hcmQgPSBLZXlib2FyZDtcbmV4cG9ydHMuTG9jYWxlICAgPSBMb2NhbGU7XG5leHBvcnRzLktleUNvbWJvID0gS2V5Q29tYm87XG4iLCJcbmZ1bmN0aW9uIEtleUNvbWJvKGtleUNvbWJvU3RyKSB7XG4gIHRoaXMuc291cmNlU3RyID0ga2V5Q29tYm9TdHI7XG4gIHRoaXMuc3ViQ29tYm9zID0gS2V5Q29tYm8ucGFyc2VDb21ib1N0cihrZXlDb21ib1N0cik7XG4gIHRoaXMua2V5TmFtZXMgID0gdGhpcy5zdWJDb21ib3MucmVkdWNlKGZ1bmN0aW9uKG1lbW8sIG5leHRTdWJDb21ibykge1xuICAgIHJldHVybiBtZW1vLmNvbmNhdChuZXh0U3ViQ29tYm8pO1xuICB9KTtcbn1cblxuLy8gVE9ETzogQWRkIHN1cHBvcnQgZm9yIGtleSBjb21ibyBzZXF1ZW5jZXNcbktleUNvbWJvLnNlcXVlbmNlRGVsaW1pbmF0b3IgPSAnPj4nO1xuS2V5Q29tYm8uY29tYm9EZWxpbWluYXRvciAgICA9ICc+JztcbktleUNvbWJvLmtleURlbGltaW5hdG9yICAgICAgPSAnKyc7XG5cbktleUNvbWJvLnBhcnNlQ29tYm9TdHIgPSBmdW5jdGlvbihrZXlDb21ib1N0cikge1xuICB2YXIgc3ViQ29tYm9TdHJzID0gS2V5Q29tYm8uX3NwbGl0U3RyKGtleUNvbWJvU3RyLCBLZXlDb21iby5jb21ib0RlbGltaW5hdG9yKTtcbiAgdmFyIGNvbWJvICAgICAgICA9IFtdO1xuXG4gIGZvciAodmFyIGkgPSAwIDsgaSA8IHN1YkNvbWJvU3Rycy5sZW5ndGg7IGkgKz0gMSkge1xuICAgIGNvbWJvLnB1c2goS2V5Q29tYm8uX3NwbGl0U3RyKHN1YkNvbWJvU3Ryc1tpXSwgS2V5Q29tYm8ua2V5RGVsaW1pbmF0b3IpKTtcbiAgfVxuICByZXR1cm4gY29tYm87XG59O1xuXG5LZXlDb21iby5wcm90b3R5cGUuY2hlY2sgPSBmdW5jdGlvbihwcmVzc2VkS2V5TmFtZXMpIHtcbiAgdmFyIHN0YXJ0aW5nS2V5TmFtZUluZGV4ID0gMDtcbiAgZm9yICh2YXIgaSA9IDA7IGkgPCB0aGlzLnN1YkNvbWJvcy5sZW5ndGg7IGkgKz0gMSkge1xuICAgIHN0YXJ0aW5nS2V5TmFtZUluZGV4ID0gdGhpcy5fY2hlY2tTdWJDb21ibyhcbiAgICAgIHRoaXMuc3ViQ29tYm9zW2ldLFxuICAgICAgc3RhcnRpbmdLZXlOYW1lSW5kZXgsXG4gICAgICBwcmVzc2VkS2V5TmFtZXNcbiAgICApO1xuICAgIGlmIChzdGFydGluZ0tleU5hbWVJbmRleCA9PT0gLTEpIHsgcmV0dXJuIGZhbHNlOyB9XG4gIH1cbiAgcmV0dXJuIHRydWU7XG59O1xuXG5LZXlDb21iby5wcm90b3R5cGUuaXNFcXVhbCA9IGZ1bmN0aW9uKG90aGVyS2V5Q29tYm8pIHtcbiAgaWYgKFxuICAgICFvdGhlcktleUNvbWJvIHx8XG4gICAgdHlwZW9mIG90aGVyS2V5Q29tYm8gIT09ICdzdHJpbmcnICYmXG4gICAgdHlwZW9mIG90aGVyS2V5Q29tYm8gIT09ICdvYmplY3QnXG4gICkgeyByZXR1cm4gZmFsc2U7IH1cblxuICBpZiAodHlwZW9mIG90aGVyS2V5Q29tYm8gPT09ICdzdHJpbmcnKSB7XG4gICAgb3RoZXJLZXlDb21ibyA9IG5ldyBLZXlDb21ibyhvdGhlcktleUNvbWJvKTtcbiAgfVxuXG4gIGlmICh0aGlzLnN1YkNvbWJvcy5sZW5ndGggIT09IG90aGVyS2V5Q29tYm8uc3ViQ29tYm9zLmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuICBmb3IgKHZhciBpID0gMDsgaSA8IHRoaXMuc3ViQ29tYm9zLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKHRoaXMuc3ViQ29tYm9zW2ldLmxlbmd0aCAhPT0gb3RoZXJLZXlDb21iby5zdWJDb21ib3NbaV0ubGVuZ3RoKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgZm9yICh2YXIgaSA9IDA7IGkgPCB0aGlzLnN1YkNvbWJvcy5sZW5ndGg7IGkgKz0gMSkge1xuICAgIHZhciBzdWJDb21ibyAgICAgID0gdGhpcy5zdWJDb21ib3NbaV07XG4gICAgdmFyIG90aGVyU3ViQ29tYm8gPSBvdGhlcktleUNvbWJvLnN1YkNvbWJvc1tpXS5zbGljZSgwKTtcblxuICAgIGZvciAodmFyIGogPSAwOyBqIDwgc3ViQ29tYm8ubGVuZ3RoOyBqICs9IDEpIHtcbiAgICAgIHZhciBrZXlOYW1lID0gc3ViQ29tYm9bal07XG4gICAgICB2YXIgaW5kZXggICA9IG90aGVyU3ViQ29tYm8uaW5kZXhPZihrZXlOYW1lKTtcblxuICAgICAgaWYgKGluZGV4ID4gLTEpIHtcbiAgICAgICAgb3RoZXJTdWJDb21iby5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgfVxuICAgIH1cbiAgICBpZiAob3RoZXJTdWJDb21iby5sZW5ndGggIT09IDApIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdHJ1ZTtcbn07XG5cbktleUNvbWJvLl9zcGxpdFN0ciA9IGZ1bmN0aW9uKHN0ciwgZGVsaW1pbmF0b3IpIHtcbiAgdmFyIHMgID0gc3RyO1xuICB2YXIgZCAgPSBkZWxpbWluYXRvcjtcbiAgdmFyIGMgID0gJyc7XG4gIHZhciBjYSA9IFtdO1xuXG4gIGZvciAodmFyIGNpID0gMDsgY2kgPCBzLmxlbmd0aDsgY2kgKz0gMSkge1xuICAgIGlmIChjaSA+IDAgJiYgc1tjaV0gPT09IGQgJiYgc1tjaSAtIDFdICE9PSAnXFxcXCcpIHtcbiAgICAgIGNhLnB1c2goYy50cmltKCkpO1xuICAgICAgYyA9ICcnO1xuICAgICAgY2kgKz0gMTtcbiAgICB9XG4gICAgYyArPSBzW2NpXTtcbiAgfVxuICBpZiAoYykgeyBjYS5wdXNoKGMudHJpbSgpKTsgfVxuXG4gIHJldHVybiBjYTtcbn07XG5cbktleUNvbWJvLnByb3RvdHlwZS5fY2hlY2tTdWJDb21ibyA9IGZ1bmN0aW9uKHN1YkNvbWJvLCBzdGFydGluZ0tleU5hbWVJbmRleCwgcHJlc3NlZEtleU5hbWVzKSB7XG4gIHN1YkNvbWJvID0gc3ViQ29tYm8uc2xpY2UoMCk7XG4gIHByZXNzZWRLZXlOYW1lcyA9IHByZXNzZWRLZXlOYW1lcy5zbGljZShzdGFydGluZ0tleU5hbWVJbmRleCk7XG5cbiAgdmFyIGVuZEluZGV4ID0gc3RhcnRpbmdLZXlOYW1lSW5kZXg7XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgc3ViQ29tYm8ubGVuZ3RoOyBpICs9IDEpIHtcblxuICAgIHZhciBrZXlOYW1lID0gc3ViQ29tYm9baV07XG4gICAgaWYgKGtleU5hbWVbMF0gPT09ICdcXFxcJykge1xuICAgICAgdmFyIGVzY2FwZWRLZXlOYW1lID0ga2V5TmFtZS5zbGljZSgxKTtcbiAgICAgIGlmIChcbiAgICAgICAgZXNjYXBlZEtleU5hbWUgPT09IEtleUNvbWJvLmNvbWJvRGVsaW1pbmF0b3IgfHxcbiAgICAgICAgZXNjYXBlZEtleU5hbWUgPT09IEtleUNvbWJvLmtleURlbGltaW5hdG9yXG4gICAgICApIHtcbiAgICAgICAga2V5TmFtZSA9IGVzY2FwZWRLZXlOYW1lO1xuICAgICAgfVxuICAgIH1cblxuICAgIHZhciBpbmRleCA9IHByZXNzZWRLZXlOYW1lcy5pbmRleE9mKGtleU5hbWUpO1xuICAgIGlmIChpbmRleCA+IC0xKSB7XG4gICAgICBzdWJDb21iby5zcGxpY2UoaSwgMSk7XG4gICAgICBpIC09IDE7XG4gICAgICBpZiAoaW5kZXggPiBlbmRJbmRleCkge1xuICAgICAgICBlbmRJbmRleCA9IGluZGV4O1xuICAgICAgfVxuICAgICAgaWYgKHN1YkNvbWJvLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICByZXR1cm4gZW5kSW5kZXg7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiAtMTtcbn07XG5cblxubW9kdWxlLmV4cG9ydHMgPSBLZXlDb21ibztcbiIsIlxudmFyIExvY2FsZSA9IHJlcXVpcmUoJy4vbG9jYWxlJyk7XG52YXIgS2V5Q29tYm8gPSByZXF1aXJlKCcuL2tleS1jb21ibycpO1xuXG5cbmZ1bmN0aW9uIEtleWJvYXJkKHRhcmdldFdpbmRvdywgdGFyZ2V0RWxlbWVudCwgcGxhdGZvcm0sIHVzZXJBZ2VudCkge1xuICB0aGlzLl9sb2NhbGUgICAgICAgICAgICAgICA9IG51bGw7XG4gIHRoaXMuX2N1cnJlbnRDb250ZXh0ICAgICAgID0gbnVsbDtcbiAgdGhpcy5fY29udGV4dHMgICAgICAgICAgICAgPSB7fTtcbiAgdGhpcy5fbGlzdGVuZXJzICAgICAgICAgICAgPSBbXTtcbiAgdGhpcy5fYXBwbGllZExpc3RlbmVycyAgICAgPSBbXTtcbiAgdGhpcy5fbG9jYWxlcyAgICAgICAgICAgICAgPSB7fTtcbiAgdGhpcy5fdGFyZ2V0RWxlbWVudCAgICAgICAgPSBudWxsO1xuICB0aGlzLl90YXJnZXRXaW5kb3cgICAgICAgICA9IG51bGw7XG4gIHRoaXMuX3RhcmdldFBsYXRmb3JtICAgICAgID0gJyc7XG4gIHRoaXMuX3RhcmdldFVzZXJBZ2VudCAgICAgID0gJyc7XG4gIHRoaXMuX2lzTW9kZXJuQnJvd3NlciAgICAgID0gZmFsc2U7XG4gIHRoaXMuX3RhcmdldEtleURvd25CaW5kaW5nID0gbnVsbDtcbiAgdGhpcy5fdGFyZ2V0S2V5VXBCaW5kaW5nICAgPSBudWxsO1xuICB0aGlzLl90YXJnZXRSZXNldEJpbmRpbmcgICA9IG51bGw7XG4gIHRoaXMuX3BhdXNlZCAgICAgICAgICAgICAgID0gZmFsc2U7XG5cbiAgdGhpcy5zZXRDb250ZXh0KCdnbG9iYWwnKTtcbiAgdGhpcy53YXRjaCh0YXJnZXRXaW5kb3csIHRhcmdldEVsZW1lbnQsIHBsYXRmb3JtLCB1c2VyQWdlbnQpO1xufVxuXG5LZXlib2FyZC5wcm90b3R5cGUuc2V0TG9jYWxlID0gZnVuY3Rpb24obG9jYWxlTmFtZSwgbG9jYWxlQnVpbGRlcikge1xuICB2YXIgbG9jYWxlID0gbnVsbDtcbiAgaWYgKHR5cGVvZiBsb2NhbGVOYW1lID09PSAnc3RyaW5nJykge1xuXG4gICAgaWYgKGxvY2FsZUJ1aWxkZXIpIHtcbiAgICAgIGxvY2FsZSA9IG5ldyBMb2NhbGUobG9jYWxlTmFtZSk7XG4gICAgICBsb2NhbGVCdWlsZGVyKGxvY2FsZSwgdGhpcy5fdGFyZ2V0UGxhdGZvcm0sIHRoaXMuX3RhcmdldFVzZXJBZ2VudCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGxvY2FsZSA9IHRoaXMuX2xvY2FsZXNbbG9jYWxlTmFtZV0gfHwgbnVsbDtcbiAgICB9XG4gIH0gZWxzZSB7XG4gICAgbG9jYWxlICAgICA9IGxvY2FsZU5hbWU7XG4gICAgbG9jYWxlTmFtZSA9IGxvY2FsZS5fbG9jYWxlTmFtZTtcbiAgfVxuXG4gIHRoaXMuX2xvY2FsZSAgICAgICAgICAgICAgPSBsb2NhbGU7XG4gIHRoaXMuX2xvY2FsZXNbbG9jYWxlTmFtZV0gPSBsb2NhbGU7XG4gIGlmIChsb2NhbGUpIHtcbiAgICB0aGlzLl9sb2NhbGUucHJlc3NlZEtleXMgPSBsb2NhbGUucHJlc3NlZEtleXM7XG4gIH1cbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5nZXRMb2NhbGUgPSBmdW5jdGlvbihsb2NhbE5hbWUpIHtcbiAgbG9jYWxOYW1lIHx8IChsb2NhbE5hbWUgPSB0aGlzLl9sb2NhbGUubG9jYWxlTmFtZSk7XG4gIHJldHVybiB0aGlzLl9sb2NhbGVzW2xvY2FsTmFtZV0gfHwgbnVsbDtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5iaW5kID0gZnVuY3Rpb24oa2V5Q29tYm9TdHIsIHByZXNzSGFuZGxlciwgcmVsZWFzZUhhbmRsZXIsIHByZXZlbnRSZXBlYXRCeURlZmF1bHQpIHtcbiAgaWYgKGtleUNvbWJvU3RyID09PSBudWxsIHx8IHR5cGVvZiBrZXlDb21ib1N0ciA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIHByZXZlbnRSZXBlYXRCeURlZmF1bHQgPSByZWxlYXNlSGFuZGxlcjtcbiAgICByZWxlYXNlSGFuZGxlciAgICAgICAgID0gcHJlc3NIYW5kbGVyO1xuICAgIHByZXNzSGFuZGxlciAgICAgICAgICAgPSBrZXlDb21ib1N0cjtcbiAgICBrZXlDb21ib1N0ciAgICAgICAgICAgID0gbnVsbDtcbiAgfVxuXG4gIGlmIChcbiAgICBrZXlDb21ib1N0ciAmJlxuICAgIHR5cGVvZiBrZXlDb21ib1N0ciA9PT0gJ29iamVjdCcgJiZcbiAgICB0eXBlb2Yga2V5Q29tYm9TdHIubGVuZ3RoID09PSAnbnVtYmVyJ1xuICApIHtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGtleUNvbWJvU3RyLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgICB0aGlzLmJpbmQoa2V5Q29tYm9TdHJbaV0sIHByZXNzSGFuZGxlciwgcmVsZWFzZUhhbmRsZXIpO1xuICAgIH1cbiAgICByZXR1cm47XG4gIH1cblxuICB0aGlzLl9saXN0ZW5lcnMucHVzaCh7XG4gICAga2V5Q29tYm8gICAgICAgICAgICAgICA6IGtleUNvbWJvU3RyID8gbmV3IEtleUNvbWJvKGtleUNvbWJvU3RyKSA6IG51bGwsXG4gICAgcHJlc3NIYW5kbGVyICAgICAgICAgICA6IHByZXNzSGFuZGxlciAgICAgICAgICAgfHwgbnVsbCxcbiAgICByZWxlYXNlSGFuZGxlciAgICAgICAgIDogcmVsZWFzZUhhbmRsZXIgICAgICAgICB8fCBudWxsLFxuICAgIHByZXZlbnRSZXBlYXQgICAgICAgICAgOiBwcmV2ZW50UmVwZWF0QnlEZWZhdWx0IHx8IGZhbHNlLFxuICAgIHByZXZlbnRSZXBlYXRCeURlZmF1bHQgOiBwcmV2ZW50UmVwZWF0QnlEZWZhdWx0IHx8IGZhbHNlXG4gIH0pO1xufTtcbktleWJvYXJkLnByb3RvdHlwZS5hZGRMaXN0ZW5lciA9IEtleWJvYXJkLnByb3RvdHlwZS5iaW5kO1xuS2V5Ym9hcmQucHJvdG90eXBlLm9uICAgICAgICAgID0gS2V5Ym9hcmQucHJvdG90eXBlLmJpbmQ7XG5cbktleWJvYXJkLnByb3RvdHlwZS51bmJpbmQgPSBmdW5jdGlvbihrZXlDb21ib1N0ciwgcHJlc3NIYW5kbGVyLCByZWxlYXNlSGFuZGxlcikge1xuICBpZiAoa2V5Q29tYm9TdHIgPT09IG51bGwgfHwgdHlwZW9mIGtleUNvbWJvU3RyID09PSAnZnVuY3Rpb24nKSB7XG4gICAgcmVsZWFzZUhhbmRsZXIgPSBwcmVzc0hhbmRsZXI7XG4gICAgcHJlc3NIYW5kbGVyICAgPSBrZXlDb21ib1N0cjtcbiAgICBrZXlDb21ib1N0ciA9IG51bGw7XG4gIH1cblxuICBpZiAoXG4gICAga2V5Q29tYm9TdHIgJiZcbiAgICB0eXBlb2Yga2V5Q29tYm9TdHIgPT09ICdvYmplY3QnICYmXG4gICAgdHlwZW9mIGtleUNvbWJvU3RyLmxlbmd0aCA9PT0gJ251bWJlcidcbiAgKSB7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCBrZXlDb21ib1N0ci5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgdGhpcy51bmJpbmQoa2V5Q29tYm9TdHJbaV0sIHByZXNzSGFuZGxlciwgcmVsZWFzZUhhbmRsZXIpO1xuICAgIH1cbiAgICByZXR1cm47XG4gIH1cblxuICBmb3IgKHZhciBpID0gMDsgaSA8IHRoaXMuX2xpc3RlbmVycy5sZW5ndGg7IGkgKz0gMSkge1xuICAgIHZhciBsaXN0ZW5lciA9IHRoaXMuX2xpc3RlbmVyc1tpXTtcblxuICAgIHZhciBjb21ib01hdGNoZXMgICAgICAgICAgPSAha2V5Q29tYm9TdHIgJiYgIWxpc3RlbmVyLmtleUNvbWJvIHx8XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpc3RlbmVyLmtleUNvbWJvLmlzRXF1YWwoa2V5Q29tYm9TdHIpO1xuICAgIHZhciBwcmVzc0hhbmRsZXJNYXRjaGVzICAgPSAhcHJlc3NIYW5kbGVyICYmICFyZWxlYXNlSGFuZGxlciB8fFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAhcHJlc3NIYW5kbGVyICYmICFsaXN0ZW5lci5wcmVzc0hhbmRsZXIgfHxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJlc3NIYW5kbGVyID09PSBsaXN0ZW5lci5wcmVzc0hhbmRsZXI7XG4gICAgdmFyIHJlbGVhc2VIYW5kbGVyTWF0Y2hlcyA9ICFwcmVzc0hhbmRsZXIgJiYgIXJlbGVhc2VIYW5kbGVyIHx8XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICFyZWxlYXNlSGFuZGxlciAmJiAhbGlzdGVuZXIucmVsZWFzZUhhbmRsZXIgfHxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVsZWFzZUhhbmRsZXIgPT09IGxpc3RlbmVyLnJlbGVhc2VIYW5kbGVyO1xuXG4gICAgaWYgKGNvbWJvTWF0Y2hlcyAmJiBwcmVzc0hhbmRsZXJNYXRjaGVzICYmIHJlbGVhc2VIYW5kbGVyTWF0Y2hlcykge1xuICAgICAgdGhpcy5fbGlzdGVuZXJzLnNwbGljZShpLCAxKTtcbiAgICAgIGkgLT0gMTtcbiAgICB9XG4gIH1cbn07XG5LZXlib2FyZC5wcm90b3R5cGUucmVtb3ZlTGlzdGVuZXIgPSBLZXlib2FyZC5wcm90b3R5cGUudW5iaW5kO1xuS2V5Ym9hcmQucHJvdG90eXBlLm9mZiAgICAgICAgICAgID0gS2V5Ym9hcmQucHJvdG90eXBlLnVuYmluZDtcblxuS2V5Ym9hcmQucHJvdG90eXBlLnNldENvbnRleHQgPSBmdW5jdGlvbihjb250ZXh0TmFtZSkge1xuICBpZih0aGlzLl9sb2NhbGUpIHsgdGhpcy5yZWxlYXNlQWxsS2V5cygpOyB9XG5cbiAgaWYgKCF0aGlzLl9jb250ZXh0c1tjb250ZXh0TmFtZV0pIHtcbiAgICB0aGlzLl9jb250ZXh0c1tjb250ZXh0TmFtZV0gPSBbXTtcbiAgfVxuICB0aGlzLl9saXN0ZW5lcnMgICAgICA9IHRoaXMuX2NvbnRleHRzW2NvbnRleHROYW1lXTtcbiAgdGhpcy5fY3VycmVudENvbnRleHQgPSBjb250ZXh0TmFtZTtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5nZXRDb250ZXh0ID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiB0aGlzLl9jdXJyZW50Q29udGV4dDtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS53aXRoQ29udGV4dCA9IGZ1bmN0aW9uKGNvbnRleHROYW1lLCBjYWxsYmFjaykge1xuICB2YXIgcHJldmlvdXNDb250ZXh0TmFtZSA9IHRoaXMuZ2V0Q29udGV4dCgpO1xuICB0aGlzLnNldENvbnRleHQoY29udGV4dE5hbWUpO1xuXG4gIGNhbGxiYWNrKCk7XG5cbiAgdGhpcy5zZXRDb250ZXh0KHByZXZpb3VzQ29udGV4dE5hbWUpO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLndhdGNoID0gZnVuY3Rpb24odGFyZ2V0V2luZG93LCB0YXJnZXRFbGVtZW50LCB0YXJnZXRQbGF0Zm9ybSwgdGFyZ2V0VXNlckFnZW50KSB7XG4gIHZhciBfdGhpcyA9IHRoaXM7XG5cbiAgdGhpcy5zdG9wKCk7XG5cbiAgaWYgKCF0YXJnZXRXaW5kb3cpIHtcbiAgICBpZiAoIWdsb2JhbC5hZGRFdmVudExpc3RlbmVyICYmICFnbG9iYWwuYXR0YWNoRXZlbnQpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignQ2Fubm90IGZpbmQgZ2xvYmFsIGZ1bmN0aW9ucyBhZGRFdmVudExpc3RlbmVyIG9yIGF0dGFjaEV2ZW50LicpO1xuICAgIH1cbiAgICB0YXJnZXRXaW5kb3cgPSBnbG9iYWw7XG4gIH1cblxuICBpZiAodHlwZW9mIHRhcmdldFdpbmRvdy5ub2RlVHlwZSA9PT0gJ251bWJlcicpIHtcbiAgICB0YXJnZXRVc2VyQWdlbnQgPSB0YXJnZXRQbGF0Zm9ybTtcbiAgICB0YXJnZXRQbGF0Zm9ybSAgPSB0YXJnZXRFbGVtZW50O1xuICAgIHRhcmdldEVsZW1lbnQgICA9IHRhcmdldFdpbmRvdztcbiAgICB0YXJnZXRXaW5kb3cgICAgPSBnbG9iYWw7XG4gIH1cbiAgXG4gIGlmICghdGFyZ2V0V2luZG93LmFkZEV2ZW50TGlzdGVuZXIgJiYgIXRhcmdldFdpbmRvdy5hdHRhY2hFdmVudCkge1xuICAgIHRocm93IG5ldyBFcnJvcignQ2Fubm90IGZpbmQgYWRkRXZlbnRMaXN0ZW5lciBvciBhdHRhY2hFdmVudCBtZXRob2RzIG9uIHRhcmdldFdpbmRvdy4nKTtcbiAgfVxuICBcbiAgdGhpcy5faXNNb2Rlcm5Ccm93c2VyID0gISF0YXJnZXRXaW5kb3cuYWRkRXZlbnRMaXN0ZW5lcjtcblxuICB2YXIgdXNlckFnZW50ID0gdGFyZ2V0V2luZG93Lm5hdmlnYXRvciAmJiB0YXJnZXRXaW5kb3cubmF2aWdhdG9yLnVzZXJBZ2VudCB8fCAnJztcbiAgdmFyIHBsYXRmb3JtICA9IHRhcmdldFdpbmRvdy5uYXZpZ2F0b3IgJiYgdGFyZ2V0V2luZG93Lm5hdmlnYXRvci5wbGF0Zm9ybSAgfHwgJyc7XG5cbiAgdGFyZ2V0RWxlbWVudCAgICYmIHRhcmdldEVsZW1lbnQgICAhPT0gbnVsbCB8fCAodGFyZ2V0RWxlbWVudCAgID0gdGFyZ2V0V2luZG93LmRvY3VtZW50KTtcbiAgdGFyZ2V0UGxhdGZvcm0gICYmIHRhcmdldFBsYXRmb3JtICAhPT0gbnVsbCB8fCAodGFyZ2V0UGxhdGZvcm0gID0gcGxhdGZvcm0pO1xuICB0YXJnZXRVc2VyQWdlbnQgJiYgdGFyZ2V0VXNlckFnZW50ICE9PSBudWxsIHx8ICh0YXJnZXRVc2VyQWdlbnQgPSB1c2VyQWdlbnQpO1xuXG4gIHRoaXMuX3RhcmdldEtleURvd25CaW5kaW5nID0gZnVuY3Rpb24oZXZlbnQpIHtcbiAgICBfdGhpcy5wcmVzc0tleShldmVudC5rZXlDb2RlLCBldmVudCk7XG4gIH07XG4gIHRoaXMuX3RhcmdldEtleVVwQmluZGluZyA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgX3RoaXMucmVsZWFzZUtleShldmVudC5rZXlDb2RlLCBldmVudCk7XG4gIH07XG4gIHRoaXMuX3RhcmdldFJlc2V0QmluZGluZyA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgX3RoaXMucmVsZWFzZUFsbEtleXMoZXZlbnQpXG4gIH07XG5cbiAgdGhpcy5fYmluZEV2ZW50KHRhcmdldEVsZW1lbnQsICdrZXlkb3duJywgdGhpcy5fdGFyZ2V0S2V5RG93bkJpbmRpbmcpO1xuICB0aGlzLl9iaW5kRXZlbnQodGFyZ2V0RWxlbWVudCwgJ2tleXVwJywgICB0aGlzLl90YXJnZXRLZXlVcEJpbmRpbmcpO1xuICB0aGlzLl9iaW5kRXZlbnQodGFyZ2V0V2luZG93LCAgJ2ZvY3VzJywgICB0aGlzLl90YXJnZXRSZXNldEJpbmRpbmcpO1xuICB0aGlzLl9iaW5kRXZlbnQodGFyZ2V0V2luZG93LCAgJ2JsdXInLCAgICB0aGlzLl90YXJnZXRSZXNldEJpbmRpbmcpO1xuXG4gIHRoaXMuX3RhcmdldEVsZW1lbnQgICA9IHRhcmdldEVsZW1lbnQ7XG4gIHRoaXMuX3RhcmdldFdpbmRvdyAgICA9IHRhcmdldFdpbmRvdztcbiAgdGhpcy5fdGFyZ2V0UGxhdGZvcm0gID0gdGFyZ2V0UGxhdGZvcm07XG4gIHRoaXMuX3RhcmdldFVzZXJBZ2VudCA9IHRhcmdldFVzZXJBZ2VudDtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5zdG9wID0gZnVuY3Rpb24oKSB7XG4gIHZhciBfdGhpcyA9IHRoaXM7XG5cbiAgaWYgKCF0aGlzLl90YXJnZXRFbGVtZW50IHx8ICF0aGlzLl90YXJnZXRXaW5kb3cpIHsgcmV0dXJuOyB9XG5cbiAgdGhpcy5fdW5iaW5kRXZlbnQodGhpcy5fdGFyZ2V0RWxlbWVudCwgJ2tleWRvd24nLCB0aGlzLl90YXJnZXRLZXlEb3duQmluZGluZyk7XG4gIHRoaXMuX3VuYmluZEV2ZW50KHRoaXMuX3RhcmdldEVsZW1lbnQsICdrZXl1cCcsICAgdGhpcy5fdGFyZ2V0S2V5VXBCaW5kaW5nKTtcbiAgdGhpcy5fdW5iaW5kRXZlbnQodGhpcy5fdGFyZ2V0V2luZG93LCAgJ2ZvY3VzJywgICB0aGlzLl90YXJnZXRSZXNldEJpbmRpbmcpO1xuICB0aGlzLl91bmJpbmRFdmVudCh0aGlzLl90YXJnZXRXaW5kb3csICAnYmx1cicsICAgIHRoaXMuX3RhcmdldFJlc2V0QmluZGluZyk7XG5cbiAgdGhpcy5fdGFyZ2V0V2luZG93ICA9IG51bGw7XG4gIHRoaXMuX3RhcmdldEVsZW1lbnQgPSBudWxsO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLnByZXNzS2V5ID0gZnVuY3Rpb24oa2V5Q29kZSwgZXZlbnQpIHtcbiAgaWYgKHRoaXMuX3BhdXNlZCkgeyByZXR1cm47IH1cbiAgaWYgKCF0aGlzLl9sb2NhbGUpIHsgdGhyb3cgbmV3IEVycm9yKCdMb2NhbGUgbm90IHNldCcpOyB9XG5cbiAgdGhpcy5fbG9jYWxlLnByZXNzS2V5KGtleUNvZGUpO1xuICB0aGlzLl9hcHBseUJpbmRpbmdzKGV2ZW50KTtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5yZWxlYXNlS2V5ID0gZnVuY3Rpb24oa2V5Q29kZSwgZXZlbnQpIHtcbiAgaWYgKHRoaXMuX3BhdXNlZCkgeyByZXR1cm47IH1cbiAgaWYgKCF0aGlzLl9sb2NhbGUpIHsgdGhyb3cgbmV3IEVycm9yKCdMb2NhbGUgbm90IHNldCcpOyB9XG5cbiAgdGhpcy5fbG9jYWxlLnJlbGVhc2VLZXkoa2V5Q29kZSk7XG4gIHRoaXMuX2NsZWFyQmluZGluZ3MoZXZlbnQpO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLnJlbGVhc2VBbGxLZXlzID0gZnVuY3Rpb24oZXZlbnQpIHtcbiAgaWYgKHRoaXMuX3BhdXNlZCkgeyByZXR1cm47IH1cbiAgaWYgKCF0aGlzLl9sb2NhbGUpIHsgdGhyb3cgbmV3IEVycm9yKCdMb2NhbGUgbm90IHNldCcpOyB9XG5cbiAgdGhpcy5fbG9jYWxlLnByZXNzZWRLZXlzLmxlbmd0aCA9IDA7XG4gIHRoaXMuX2NsZWFyQmluZGluZ3MoZXZlbnQpO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLnBhdXNlID0gZnVuY3Rpb24oKSB7XG4gIGlmICh0aGlzLl9wYXVzZWQpIHsgcmV0dXJuOyB9XG4gIGlmICh0aGlzLl9sb2NhbGUpIHsgdGhpcy5yZWxlYXNlQWxsS2V5cygpOyB9XG4gIHRoaXMuX3BhdXNlZCA9IHRydWU7XG59O1xuXG5LZXlib2FyZC5wcm90b3R5cGUucmVzdW1lID0gZnVuY3Rpb24oKSB7XG4gIHRoaXMuX3BhdXNlZCA9IGZhbHNlO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLnJlc2V0ID0gZnVuY3Rpb24oKSB7XG4gIHRoaXMucmVsZWFzZUFsbEtleXMoKTtcbiAgdGhpcy5fbGlzdGVuZXJzLmxlbmd0aCA9IDA7XG59O1xuXG5LZXlib2FyZC5wcm90b3R5cGUuX2JpbmRFdmVudCA9IGZ1bmN0aW9uKHRhcmdldEVsZW1lbnQsIGV2ZW50TmFtZSwgaGFuZGxlcikge1xuICByZXR1cm4gdGhpcy5faXNNb2Rlcm5Ccm93c2VyID9cbiAgICB0YXJnZXRFbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoZXZlbnROYW1lLCBoYW5kbGVyLCBmYWxzZSkgOlxuICAgIHRhcmdldEVsZW1lbnQuYXR0YWNoRXZlbnQoJ29uJyArIGV2ZW50TmFtZSwgaGFuZGxlcik7XG59O1xuXG5LZXlib2FyZC5wcm90b3R5cGUuX3VuYmluZEV2ZW50ID0gZnVuY3Rpb24odGFyZ2V0RWxlbWVudCwgZXZlbnROYW1lLCBoYW5kbGVyKSB7XG4gIHJldHVybiB0aGlzLl9pc01vZGVybkJyb3dzZXIgP1xuICAgIHRhcmdldEVsZW1lbnQucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudE5hbWUsIGhhbmRsZXIsIGZhbHNlKSA6XG4gICAgdGFyZ2V0RWxlbWVudC5kZXRhY2hFdmVudCgnb24nICsgZXZlbnROYW1lLCBoYW5kbGVyKTtcbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5fZ2V0R3JvdXBlZExpc3RlbmVycyA9IGZ1bmN0aW9uKCkge1xuICB2YXIgbGlzdGVuZXJHcm91cHMgICA9IFtdO1xuICB2YXIgbGlzdGVuZXJHcm91cE1hcCA9IFtdO1xuXG4gIHZhciBsaXN0ZW5lcnMgPSB0aGlzLl9saXN0ZW5lcnM7XG4gIGlmICh0aGlzLl9jdXJyZW50Q29udGV4dCAhPT0gJ2dsb2JhbCcpIHtcbiAgICBsaXN0ZW5lcnMgPSBbXS5jb25jYXQobGlzdGVuZXJzLCB0aGlzLl9jb250ZXh0cy5nbG9iYWwpO1xuICB9XG5cbiAgbGlzdGVuZXJzLnNvcnQoZnVuY3Rpb24oYSwgYikge1xuICAgIHJldHVybiBiLmtleUNvbWJvLmtleU5hbWVzLmxlbmd0aCAtIGEua2V5Q29tYm8ua2V5TmFtZXMubGVuZ3RoO1xuICB9KS5mb3JFYWNoKGZ1bmN0aW9uKGwpIHtcbiAgICB2YXIgbWFwSW5kZXggPSAtMTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxpc3RlbmVyR3JvdXBNYXAubGVuZ3RoOyBpICs9IDEpIHtcbiAgICAgIGlmIChsaXN0ZW5lckdyb3VwTWFwW2ldLmlzRXF1YWwobC5rZXlDb21ibykpIHtcbiAgICAgICAgbWFwSW5kZXggPSBpO1xuICAgICAgfVxuICAgIH1cbiAgICBpZiAobWFwSW5kZXggPT09IC0xKSB7XG4gICAgICBtYXBJbmRleCA9IGxpc3RlbmVyR3JvdXBNYXAubGVuZ3RoO1xuICAgICAgbGlzdGVuZXJHcm91cE1hcC5wdXNoKGwua2V5Q29tYm8pO1xuICAgIH1cbiAgICBpZiAoIWxpc3RlbmVyR3JvdXBzW21hcEluZGV4XSkge1xuICAgICAgbGlzdGVuZXJHcm91cHNbbWFwSW5kZXhdID0gW107XG4gICAgfVxuICAgIGxpc3RlbmVyR3JvdXBzW21hcEluZGV4XS5wdXNoKGwpO1xuICB9KTtcbiAgcmV0dXJuIGxpc3RlbmVyR3JvdXBzO1xufTtcblxuS2V5Ym9hcmQucHJvdG90eXBlLl9hcHBseUJpbmRpbmdzID0gZnVuY3Rpb24oZXZlbnQpIHtcbiAgdmFyIHByZXZlbnRSZXBlYXQgPSBmYWxzZTtcblxuICBldmVudCB8fCAoZXZlbnQgPSB7fSk7XG4gIGV2ZW50LnByZXZlbnRSZXBlYXQgPSBmdW5jdGlvbigpIHsgcHJldmVudFJlcGVhdCA9IHRydWU7IH07XG4gIGV2ZW50LnByZXNzZWRLZXlzICAgPSB0aGlzLl9sb2NhbGUucHJlc3NlZEtleXMuc2xpY2UoMCk7XG5cbiAgdmFyIHByZXNzZWRLZXlzICAgID0gdGhpcy5fbG9jYWxlLnByZXNzZWRLZXlzLnNsaWNlKDApO1xuICB2YXIgbGlzdGVuZXJHcm91cHMgPSB0aGlzLl9nZXRHcm91cGVkTGlzdGVuZXJzKCk7XG5cblxuICBmb3IgKHZhciBpID0gMDsgaSA8IGxpc3RlbmVyR3JvdXBzLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgdmFyIGxpc3RlbmVycyA9IGxpc3RlbmVyR3JvdXBzW2ldO1xuICAgIHZhciBrZXlDb21ibyAgPSBsaXN0ZW5lcnNbMF0ua2V5Q29tYm87XG5cbiAgICBpZiAoa2V5Q29tYm8gPT09IG51bGwgfHwga2V5Q29tYm8uY2hlY2socHJlc3NlZEtleXMpKSB7XG4gICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGxpc3RlbmVycy5sZW5ndGg7IGogKz0gMSkge1xuICAgICAgICB2YXIgbGlzdGVuZXIgPSBsaXN0ZW5lcnNbal07XG5cbiAgICAgICAgaWYgKGtleUNvbWJvID09PSBudWxsKSB7XG4gICAgICAgICAgbGlzdGVuZXIgPSB7XG4gICAgICAgICAgICBrZXlDb21ibyAgICAgICAgICAgICAgIDogbmV3IEtleUNvbWJvKHByZXNzZWRLZXlzLmpvaW4oJysnKSksXG4gICAgICAgICAgICBwcmVzc0hhbmRsZXIgICAgICAgICAgIDogbGlzdGVuZXIucHJlc3NIYW5kbGVyLFxuICAgICAgICAgICAgcmVsZWFzZUhhbmRsZXIgICAgICAgICA6IGxpc3RlbmVyLnJlbGVhc2VIYW5kbGVyLFxuICAgICAgICAgICAgcHJldmVudFJlcGVhdCAgICAgICAgICA6IGxpc3RlbmVyLnByZXZlbnRSZXBlYXQsXG4gICAgICAgICAgICBwcmV2ZW50UmVwZWF0QnlEZWZhdWx0IDogbGlzdGVuZXIucHJldmVudFJlcGVhdEJ5RGVmYXVsdFxuICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobGlzdGVuZXIucHJlc3NIYW5kbGVyICYmICFsaXN0ZW5lci5wcmV2ZW50UmVwZWF0KSB7XG4gICAgICAgICAgbGlzdGVuZXIucHJlc3NIYW5kbGVyLmNhbGwodGhpcywgZXZlbnQpO1xuICAgICAgICAgIGlmIChwcmV2ZW50UmVwZWF0KSB7XG4gICAgICAgICAgICBsaXN0ZW5lci5wcmV2ZW50UmVwZWF0ID0gcHJldmVudFJlcGVhdDtcbiAgICAgICAgICAgIHByZXZlbnRSZXBlYXQgICAgICAgICAgPSBmYWxzZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobGlzdGVuZXIucmVsZWFzZUhhbmRsZXIgJiYgdGhpcy5fYXBwbGllZExpc3RlbmVycy5pbmRleE9mKGxpc3RlbmVyKSA9PT0gLTEpIHtcbiAgICAgICAgICB0aGlzLl9hcHBsaWVkTGlzdGVuZXJzLnB1c2gobGlzdGVuZXIpO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChrZXlDb21ibykge1xuICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGtleUNvbWJvLmtleU5hbWVzLmxlbmd0aDsgaiArPSAxKSB7XG4gICAgICAgICAgdmFyIGluZGV4ID0gcHJlc3NlZEtleXMuaW5kZXhPZihrZXlDb21iby5rZXlOYW1lc1tqXSk7XG4gICAgICAgICAgaWYgKGluZGV4ICE9PSAtMSkge1xuICAgICAgICAgICAgcHJlc3NlZEtleXMuc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgICAgICAgIGogLT0gMTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbn07XG5cbktleWJvYXJkLnByb3RvdHlwZS5fY2xlYXJCaW5kaW5ncyA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gIGV2ZW50IHx8IChldmVudCA9IHt9KTtcblxuICBmb3IgKHZhciBpID0gMDsgaSA8IHRoaXMuX2FwcGxpZWRMaXN0ZW5lcnMubGVuZ3RoOyBpICs9IDEpIHtcbiAgICB2YXIgbGlzdGVuZXIgPSB0aGlzLl9hcHBsaWVkTGlzdGVuZXJzW2ldO1xuICAgIHZhciBrZXlDb21ibyA9IGxpc3RlbmVyLmtleUNvbWJvO1xuICAgIGlmIChrZXlDb21ibyA9PT0gbnVsbCB8fCAha2V5Q29tYm8uY2hlY2sodGhpcy5fbG9jYWxlLnByZXNzZWRLZXlzKSkge1xuICAgICAgbGlzdGVuZXIucHJldmVudFJlcGVhdCA9IGxpc3RlbmVyLnByZXZlbnRSZXBlYXRCeURlZmF1bHQ7XG4gICAgICBsaXN0ZW5lci5yZWxlYXNlSGFuZGxlci5jYWxsKHRoaXMsIGV2ZW50KTtcbiAgICAgIHRoaXMuX2FwcGxpZWRMaXN0ZW5lcnMuc3BsaWNlKGksIDEpO1xuICAgICAgaSAtPSAxO1xuICAgIH1cbiAgfVxufTtcblxubW9kdWxlLmV4cG9ydHMgPSBLZXlib2FyZDtcbiIsIlxudmFyIEtleUNvbWJvID0gcmVxdWlyZSgnLi9rZXktY29tYm8nKTtcblxuXG5mdW5jdGlvbiBMb2NhbGUobmFtZSkge1xuICB0aGlzLmxvY2FsZU5hbWUgICAgID0gbmFtZTtcbiAgdGhpcy5wcmVzc2VkS2V5cyAgICA9IFtdO1xuICB0aGlzLl9hcHBsaWVkTWFjcm9zID0gW107XG4gIHRoaXMuX2tleU1hcCAgICAgICAgPSB7fTtcbiAgdGhpcy5fa2lsbEtleUNvZGVzICA9IFtdO1xuICB0aGlzLl9tYWNyb3MgICAgICAgID0gW107XG59XG5cbkxvY2FsZS5wcm90b3R5cGUuYmluZEtleUNvZGUgPSBmdW5jdGlvbihrZXlDb2RlLCBrZXlOYW1lcykge1xuICBpZiAodHlwZW9mIGtleU5hbWVzID09PSAnc3RyaW5nJykge1xuICAgIGtleU5hbWVzID0gW2tleU5hbWVzXTtcbiAgfVxuXG4gIHRoaXMuX2tleU1hcFtrZXlDb2RlXSA9IGtleU5hbWVzO1xufTtcblxuTG9jYWxlLnByb3RvdHlwZS5iaW5kTWFjcm8gPSBmdW5jdGlvbihrZXlDb21ib1N0ciwga2V5TmFtZXMpIHtcbiAgaWYgKHR5cGVvZiBrZXlOYW1lcyA9PT0gJ3N0cmluZycpIHtcbiAgICBrZXlOYW1lcyA9IFsga2V5TmFtZXMgXTtcbiAgfVxuXG4gIHZhciBoYW5kbGVyID0gbnVsbDtcbiAgaWYgKHR5cGVvZiBrZXlOYW1lcyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGhhbmRsZXIgPSBrZXlOYW1lcztcbiAgICBrZXlOYW1lcyA9IG51bGw7XG4gIH1cblxuICB2YXIgbWFjcm8gPSB7XG4gICAga2V5Q29tYm8gOiBuZXcgS2V5Q29tYm8oa2V5Q29tYm9TdHIpLFxuICAgIGtleU5hbWVzIDoga2V5TmFtZXMsXG4gICAgaGFuZGxlciAgOiBoYW5kbGVyXG4gIH07XG5cbiAgdGhpcy5fbWFjcm9zLnB1c2gobWFjcm8pO1xufTtcblxuTG9jYWxlLnByb3RvdHlwZS5nZXRLZXlDb2RlcyA9IGZ1bmN0aW9uKGtleU5hbWUpIHtcbiAgdmFyIGtleUNvZGVzID0gW107XG4gIGZvciAodmFyIGtleUNvZGUgaW4gdGhpcy5fa2V5TWFwKSB7XG4gICAgdmFyIGluZGV4ID0gdGhpcy5fa2V5TWFwW2tleUNvZGVdLmluZGV4T2Yoa2V5TmFtZSk7XG4gICAgaWYgKGluZGV4ID4gLTEpIHsga2V5Q29kZXMucHVzaChrZXlDb2RlfDApOyB9XG4gIH1cbiAgcmV0dXJuIGtleUNvZGVzO1xufTtcblxuTG9jYWxlLnByb3RvdHlwZS5nZXRLZXlOYW1lcyA9IGZ1bmN0aW9uKGtleUNvZGUpIHtcbiAgcmV0dXJuIHRoaXMuX2tleU1hcFtrZXlDb2RlXSB8fCBbXTtcbn07XG5cbkxvY2FsZS5wcm90b3R5cGUuc2V0S2lsbEtleSA9IGZ1bmN0aW9uKGtleUNvZGUpIHtcbiAgaWYgKHR5cGVvZiBrZXlDb2RlID09PSAnc3RyaW5nJykge1xuICAgIHZhciBrZXlDb2RlcyA9IHRoaXMuZ2V0S2V5Q29kZXMoa2V5Q29kZSk7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCBrZXlDb2Rlcy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgdGhpcy5zZXRLaWxsS2V5KGtleUNvZGVzW2ldKTtcbiAgICB9XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgdGhpcy5fa2lsbEtleUNvZGVzLnB1c2goa2V5Q29kZSk7XG59O1xuXG5Mb2NhbGUucHJvdG90eXBlLnByZXNzS2V5ID0gZnVuY3Rpb24oa2V5Q29kZSkge1xuICBpZiAodHlwZW9mIGtleUNvZGUgPT09ICdzdHJpbmcnKSB7XG4gICAgdmFyIGtleUNvZGVzID0gdGhpcy5nZXRLZXlDb2RlcyhrZXlDb2RlKTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGtleUNvZGVzLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgICB0aGlzLnByZXNzS2V5KGtleUNvZGVzW2ldKTtcbiAgICB9XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgdmFyIGtleU5hbWVzID0gdGhpcy5nZXRLZXlOYW1lcyhrZXlDb2RlKTtcbiAgZm9yICh2YXIgaSA9IDA7IGkgPCBrZXlOYW1lcy5sZW5ndGg7IGkgKz0gMSkge1xuICAgIGlmICh0aGlzLnByZXNzZWRLZXlzLmluZGV4T2Yoa2V5TmFtZXNbaV0pID09PSAtMSkge1xuICAgICAgdGhpcy5wcmVzc2VkS2V5cy5wdXNoKGtleU5hbWVzW2ldKTtcbiAgICB9XG4gIH1cblxuICB0aGlzLl9hcHBseU1hY3JvcygpO1xufTtcblxuTG9jYWxlLnByb3RvdHlwZS5yZWxlYXNlS2V5ID0gZnVuY3Rpb24oa2V5Q29kZSkge1xuICBpZiAodHlwZW9mIGtleUNvZGUgPT09ICdzdHJpbmcnKSB7XG4gICAgdmFyIGtleUNvZGVzID0gdGhpcy5nZXRLZXlDb2RlcyhrZXlDb2RlKTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGtleUNvZGVzLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgICB0aGlzLnJlbGVhc2VLZXkoa2V5Q29kZXNbaV0pO1xuICAgIH1cbiAgfVxuXG4gIGVsc2Uge1xuICAgIHZhciBrZXlOYW1lcyAgICAgICAgID0gdGhpcy5nZXRLZXlOYW1lcyhrZXlDb2RlKTtcbiAgICB2YXIga2lsbEtleUNvZGVJbmRleCA9IHRoaXMuX2tpbGxLZXlDb2Rlcy5pbmRleE9mKGtleUNvZGUpO1xuICAgIFxuICAgIGlmIChraWxsS2V5Q29kZUluZGV4ID4gLTEpIHtcbiAgICAgIHRoaXMucHJlc3NlZEtleXMubGVuZ3RoID0gMDtcbiAgICB9IGVsc2Uge1xuICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBrZXlOYW1lcy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgICB2YXIgaW5kZXggPSB0aGlzLnByZXNzZWRLZXlzLmluZGV4T2Yoa2V5TmFtZXNbaV0pO1xuICAgICAgICBpZiAoaW5kZXggPiAtMSkge1xuICAgICAgICAgIHRoaXMucHJlc3NlZEtleXMuc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHRoaXMuX2NsZWFyTWFjcm9zKCk7XG4gIH1cbn07XG5cbkxvY2FsZS5wcm90b3R5cGUuX2FwcGx5TWFjcm9zID0gZnVuY3Rpb24oKSB7XG4gIHZhciBtYWNyb3MgPSB0aGlzLl9tYWNyb3Muc2xpY2UoMCk7XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgbWFjcm9zLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgdmFyIG1hY3JvID0gbWFjcm9zW2ldO1xuICAgIGlmIChtYWNyby5rZXlDb21iby5jaGVjayh0aGlzLnByZXNzZWRLZXlzKSkge1xuICAgICAgaWYgKG1hY3JvLmhhbmRsZXIpIHtcbiAgICAgICAgbWFjcm8ua2V5TmFtZXMgPSBtYWNyby5oYW5kbGVyKHRoaXMucHJlc3NlZEtleXMpO1xuICAgICAgfVxuICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCBtYWNyby5rZXlOYW1lcy5sZW5ndGg7IGogKz0gMSkge1xuICAgICAgICBpZiAodGhpcy5wcmVzc2VkS2V5cy5pbmRleE9mKG1hY3JvLmtleU5hbWVzW2pdKSA9PT0gLTEpIHtcbiAgICAgICAgICB0aGlzLnByZXNzZWRLZXlzLnB1c2gobWFjcm8ua2V5TmFtZXNbal0pO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICB0aGlzLl9hcHBsaWVkTWFjcm9zLnB1c2gobWFjcm8pO1xuICAgIH1cbiAgfVxufTtcblxuTG9jYWxlLnByb3RvdHlwZS5fY2xlYXJNYWNyb3MgPSBmdW5jdGlvbigpIHtcbiAgZm9yICh2YXIgaSA9IDA7IGkgPCB0aGlzLl9hcHBsaWVkTWFjcm9zLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgdmFyIG1hY3JvID0gdGhpcy5fYXBwbGllZE1hY3Jvc1tpXTtcbiAgICBpZiAoIW1hY3JvLmtleUNvbWJvLmNoZWNrKHRoaXMucHJlc3NlZEtleXMpKSB7XG4gICAgICBmb3IgKHZhciBqID0gMDsgaiA8IG1hY3JvLmtleU5hbWVzLmxlbmd0aDsgaiArPSAxKSB7XG4gICAgICAgIHZhciBpbmRleCA9IHRoaXMucHJlc3NlZEtleXMuaW5kZXhPZihtYWNyby5rZXlOYW1lc1tqXSk7XG4gICAgICAgIGlmIChpbmRleCA+IC0xKSB7XG4gICAgICAgICAgdGhpcy5wcmVzc2VkS2V5cy5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBpZiAobWFjcm8uaGFuZGxlcikge1xuICAgICAgICBtYWNyby5rZXlOYW1lcyA9IG51bGw7XG4gICAgICB9XG4gICAgICB0aGlzLl9hcHBsaWVkTWFjcm9zLnNwbGljZShpLCAxKTtcbiAgICAgIGkgLT0gMTtcbiAgICB9XG4gIH1cbn07XG5cblxubW9kdWxlLmV4cG9ydHMgPSBMb2NhbGU7XG4iLCJcbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24obG9jYWxlLCBwbGF0Zm9ybSwgdXNlckFnZW50KSB7XG5cbiAgLy8gZ2VuZXJhbFxuICBsb2NhbGUuYmluZEtleUNvZGUoMywgICBbJ2NhbmNlbCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDgsICAgWydiYWNrc3BhY2UnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg5LCAgIFsndGFiJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTIsICBbJ2NsZWFyJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTMsICBbJ2VudGVyJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTYsICBbJ3NoaWZ0J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTcsICBbJ2N0cmwnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxOCwgIFsnYWx0JywgJ21lbnUnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxOSwgIFsncGF1c2UnLCAnYnJlYWsnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgyMCwgIFsnY2Fwc2xvY2snXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgyNywgIFsnZXNjYXBlJywgJ2VzYyddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDMyLCAgWydzcGFjZScsICdzcGFjZWJhciddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDMzLCAgWydwYWdldXAnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgzNCwgIFsncGFnZWRvd24nXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgzNSwgIFsnZW5kJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMzYsICBbJ2hvbWUnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgzNywgIFsnbGVmdCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDM4LCAgWyd1cCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDM5LCAgWydyaWdodCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDQwLCAgWydkb3duJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoNDEsICBbJ3NlbGVjdCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDQyLCAgWydwcmludHNjcmVlbiddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDQzLCAgWydleGVjdXRlJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoNDQsICBbJ3NuYXBzaG90J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoNDUsICBbJ2luc2VydCcsICdpbnMnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg0NiwgIFsnZGVsZXRlJywgJ2RlbCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDQ3LCAgWydoZWxwJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTQ1LCBbJ3Njcm9sbGxvY2snLCAnc2Nyb2xsJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTg3LCBbJ2VxdWFsJywgJ2VxdWFsc2lnbicsICc9J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTg4LCBbJ2NvbW1hJywgJywnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxOTAsIFsncGVyaW9kJywgJy4nXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxOTEsIFsnc2xhc2gnLCAnZm9yd2FyZHNsYXNoJywgJy8nXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxOTIsIFsnZ3JhdmVhY2NlbnQnLCAnYCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDIxOSwgWydvcGVuYnJhY2tldCcsICdbJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMjIwLCBbJ2JhY2tzbGFzaCcsICdcXFxcJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMjIxLCBbJ2Nsb3NlYnJhY2tldCcsICddJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMjIyLCBbJ2Fwb3N0cm9waGUnLCAnXFwnJ10pO1xuXG4gIC8vIDAtOVxuICBsb2NhbGUuYmluZEtleUNvZGUoNDgsIFsnemVybycsICcwJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoNDksIFsnb25lJywgJzEnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg1MCwgWyd0d28nLCAnMiddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDUxLCBbJ3RocmVlJywgJzMnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg1MiwgWydmb3VyJywgJzQnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg1MywgWydmaXZlJywgJzUnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg1NCwgWydzaXgnLCAnNiddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDU1LCBbJ3NldmVuJywgJzcnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg1NiwgWydlaWdodCcsICc4J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoNTcsIFsnbmluZScsICc5J10pO1xuXG4gIC8vIG51bXBhZFxuICBsb2NhbGUuYmluZEtleUNvZGUoOTYsIFsnbnVtemVybycsICdudW0wJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoOTcsIFsnbnVtb25lJywgJ251bTEnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSg5OCwgWydudW10d28nLCAnbnVtMiddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDk5LCBbJ251bXRocmVlJywgJ251bTMnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMDAsIFsnbnVtZm91cicsICdudW00J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTAxLCBbJ251bWZpdmUnLCAnbnVtNSddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDEwMiwgWydudW1zaXgnLCAnbnVtNiddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDEwMywgWydudW1zZXZlbicsICdudW03J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTA0LCBbJ251bWVpZ2h0JywgJ251bTgnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMDUsIFsnbnVtbmluZScsICdudW05J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTA2LCBbJ251bW11bHRpcGx5JywgJ251bSonXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMDcsIFsnbnVtYWRkJywgJ251bSsnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMDgsIFsnbnVtZW50ZXInXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMDksIFsnbnVtc3VidHJhY3QnLCAnbnVtLSddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDExMCwgWydudW1kZWNpbWFsJywgJ251bS4nXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMTEsIFsnbnVtZGl2aWRlJywgJ251bS8nXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxNDQsIFsnbnVtbG9jaycsICdudW0nXSk7XG5cbiAgLy8gZnVuY3Rpb24ga2V5c1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTEyLCBbJ2YxJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTEzLCBbJ2YyJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE0LCBbJ2YzJ10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE1LCBbJ2Y0J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE2LCBbJ2Y1J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE3LCBbJ2Y2J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE4LCBbJ2Y3J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTE5LCBbJ2Y4J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTIwLCBbJ2Y5J10pO1xuICBsb2NhbGUuYmluZEtleUNvZGUoMTIxLCBbJ2YxMCddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKDEyMiwgWydmMTEnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZSgxMjMsIFsnZjEyJ10pO1xuXG4gIC8vIHNlY29uZGFyeSBrZXkgc3ltYm9sc1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIGAnLCBbJ3RpbGRlJywgJ34nXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgMScsIFsnZXhjbGFtYXRpb24nLCAnZXhjbGFtYXRpb25wb2ludCcsICchJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDInLCBbJ2F0JywgJ0AnXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgMycsIFsnbnVtYmVyJywgJyMnXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgNCcsIFsnZG9sbGFyJywgJ2RvbGxhcnMnLCAnZG9sbGFyc2lnbicsICckJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDUnLCBbJ3BlcmNlbnQnLCAnJSddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyA2JywgWydjYXJldCcsICdeJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDcnLCBbJ2FtcGVyc2FuZCcsICdhbmQnLCAnJiddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyA4JywgWydhc3RlcmlzaycsICcqJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDknLCBbJ29wZW5wYXJlbicsICcoJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDAnLCBbJ2Nsb3NlcGFyZW4nLCAnKSddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyAtJywgWyd1bmRlcnNjb3JlJywgJ18nXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgPScsIFsncGx1cycsICcrJ10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIFsnLCBbJ29wZW5jdXJseWJyYWNlJywgJ29wZW5jdXJseWJyYWNrZXQnLCAneyddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyBdJywgWydjbG9zZWN1cmx5YnJhY2UnLCAnY2xvc2VjdXJseWJyYWNrZXQnLCAnfSddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyBcXFxcJywgWyd2ZXJ0aWNhbGJhcicsICd8J10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIDsnLCBbJ2NvbG9uJywgJzonXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgXFwnJywgWydxdW90YXRpb25tYXJrJywgJ1xcJyddKTtcbiAgbG9jYWxlLmJpbmRNYWNybygnc2hpZnQgKyAhLCcsIFsnb3BlbmFuZ2xlYnJhY2tldCcsICc8J10pO1xuICBsb2NhbGUuYmluZE1hY3JvKCdzaGlmdCArIC4nLCBbJ2Nsb3NlYW5nbGVicmFja2V0JywgJz4nXSk7XG4gIGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgLycsIFsncXVlc3Rpb25tYXJrJywgJz8nXSk7XG5cbiAgLy9hLXogYW5kIEEtWlxuICBmb3IgKHZhciBrZXlDb2RlID0gNjU7IGtleUNvZGUgPD0gOTA7IGtleUNvZGUgKz0gMSkge1xuICAgIHZhciBrZXlOYW1lID0gU3RyaW5nLmZyb21DaGFyQ29kZShrZXlDb2RlICsgMzIpO1xuICAgIHZhciBjYXBpdGFsS2V5TmFtZSA9IFN0cmluZy5mcm9tQ2hhckNvZGUoa2V5Q29kZSk7XG4gIFx0bG9jYWxlLmJpbmRLZXlDb2RlKGtleUNvZGUsIGtleU5hbWUpO1xuICBcdGxvY2FsZS5iaW5kTWFjcm8oJ3NoaWZ0ICsgJyArIGtleU5hbWUsIGNhcGl0YWxLZXlOYW1lKTtcbiAgXHRsb2NhbGUuYmluZE1hY3JvKCdjYXBzbG9jayArICcgKyBrZXlOYW1lLCBjYXBpdGFsS2V5TmFtZSk7XG4gIH1cblxuICAvLyBicm93c2VyIGNhdmVhdHNcbiAgdmFyIHNlbWljb2xvbktleUNvZGUgPSB1c2VyQWdlbnQubWF0Y2goJ0ZpcmVmb3gnKSA/IDU5ICA6IDE4NjtcbiAgdmFyIGRhc2hLZXlDb2RlICAgICAgPSB1c2VyQWdlbnQubWF0Y2goJ0ZpcmVmb3gnKSA/IDE3MyA6IDE4OTtcbiAgdmFyIGxlZnRDb21tYW5kS2V5Q29kZTtcbiAgdmFyIHJpZ2h0Q29tbWFuZEtleUNvZGU7XG4gIGlmIChwbGF0Zm9ybS5tYXRjaCgnTWFjJykgJiYgKHVzZXJBZ2VudC5tYXRjaCgnU2FmYXJpJykgfHwgdXNlckFnZW50Lm1hdGNoKCdDaHJvbWUnKSkpIHtcbiAgICBsZWZ0Q29tbWFuZEtleUNvZGUgID0gOTE7XG4gICAgcmlnaHRDb21tYW5kS2V5Q29kZSA9IDkzO1xuICB9IGVsc2UgaWYocGxhdGZvcm0ubWF0Y2goJ01hYycpICYmIHVzZXJBZ2VudC5tYXRjaCgnT3BlcmEnKSkge1xuICAgIGxlZnRDb21tYW5kS2V5Q29kZSAgPSAxNztcbiAgICByaWdodENvbW1hbmRLZXlDb2RlID0gMTc7XG4gIH0gZWxzZSBpZihwbGF0Zm9ybS5tYXRjaCgnTWFjJykgJiYgdXNlckFnZW50Lm1hdGNoKCdGaXJlZm94JykpIHtcbiAgICBsZWZ0Q29tbWFuZEtleUNvZGUgID0gMjI0O1xuICAgIHJpZ2h0Q29tbWFuZEtleUNvZGUgPSAyMjQ7XG4gIH1cbiAgbG9jYWxlLmJpbmRLZXlDb2RlKHNlbWljb2xvbktleUNvZGUsICAgIFsnc2VtaWNvbG9uJywgJzsnXSk7XG4gIGxvY2FsZS5iaW5kS2V5Q29kZShkYXNoS2V5Q29kZSwgICAgICAgICBbJ2Rhc2gnLCAnLSddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKGxlZnRDb21tYW5kS2V5Q29kZSwgIFsnY29tbWFuZCcsICd3aW5kb3dzJywgJ3dpbicsICdzdXBlcicsICdsZWZ0Y29tbWFuZCcsICdsZWZ0d2luZG93cycsICdsZWZ0d2luJywgJ2xlZnRzdXBlciddKTtcbiAgbG9jYWxlLmJpbmRLZXlDb2RlKHJpZ2h0Q29tbWFuZEtleUNvZGUsIFsnY29tbWFuZCcsICd3aW5kb3dzJywgJ3dpbicsICdzdXBlcicsICdyaWdodGNvbW1hbmQnLCAncmlnaHR3aW5kb3dzJywgJ3JpZ2h0d2luJywgJ3JpZ2h0c3VwZXInXSk7XG5cbiAgLy8ga2lsbCBrZXlzXG4gIGxvY2FsZS5zZXRLaWxsS2V5KCdjb21tYW5kJyk7XG59O1xuIl19
dakshshah96/cdnjs
ajax/libs/keyboardjs/2.3.2/keyboard.js
JavaScript
mit
66,871
<?php namespace Illuminate\Database\Eloquent\Relations; use Closure; use Illuminate\Support\Arr; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Traits\Macroable; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\Expression; use Illuminate\Database\Eloquent\Collection; abstract class Relation { use Macroable { __call as macroCall; } /** * The Eloquent query builder instance. * * @var \Illuminate\Database\Eloquent\Builder */ protected $query; /** * The parent model instance. * * @var \Illuminate\Database\Eloquent\Model */ protected $parent; /** * The related model instance. * * @var \Illuminate\Database\Eloquent\Model */ protected $related; /** * Indicates if the relation is adding constraints. * * @var bool */ protected static $constraints = true; /** * An array to map class names to their morph names in database. * * @var array */ protected static $morphMap = []; /** * Create a new relation instance. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Model $parent * @return void */ public function __construct(Builder $query, Model $parent) { $this->query = $query; $this->parent = $parent; $this->related = $query->getModel(); $this->addConstraints(); } /** * Run a callback with constraints disabled on the relation. * * @param \Closure $callback * @return mixed */ public static function noConstraints(Closure $callback) { $previous = static::$constraints; static::$constraints = false; // When resetting the relation where clause, we want to shift the first element // off of the bindings, leaving only the constraints that the developers put // as "extra" on the relationships, and not original relation constraints. try { return call_user_func($callback); } finally { static::$constraints = $previous; } } /** * Set the base constraints on the relation query. * * @return void */ abstract public function addConstraints(); /** * Set the constraints for an eager load of the relation. * * @param array $models * @return void */ abstract public function addEagerConstraints(array $models); /** * Initialize the relation on a set of models. * * @param array $models * @param string $relation * @return array */ abstract public function initRelation(array $models, $relation); /** * Match the eagerly loaded results to their parents. * * @param array $models * @param \Illuminate\Database\Eloquent\Collection $results * @param string $relation * @return array */ abstract public function match(array $models, Collection $results, $relation); /** * Get the results of the relationship. * * @return mixed */ abstract public function getResults(); /** * Get the relationship for eager loading. * * @return \Illuminate\Database\Eloquent\Collection */ public function getEager() { return $this->get(); } /** * Touch all of the related models for the relationship. * * @return void */ public function touch() { $column = $this->getRelated()->getUpdatedAtColumn(); $this->rawUpdate([$column => $this->getRelated()->freshTimestampString()]); } /** * Run a raw update against the base query. * * @param array $attributes * @return int */ public function rawUpdate(array $attributes = []) { return $this->query->update($attributes); } /** * Add the constraints for a relationship count query. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceCountQuery(Builder $query, Builder $parentQuery) { return $this->getRelationExistenceQuery( $query, $parentQuery, new Expression('count(*)') ); } /** * Add the constraints for an internal relationship existence query. * * Essentially, these queries compare on column names like whereColumn. * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery * @param array|mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) { return $query->select($columns)->whereColumn( $this->getQualifiedParentKeyName(), '=', $this->getExistenceCompareKey() ); } /** * Get all of the primary keys for an array of models. * * @param array $models * @param string $key * @return array */ protected function getKeys(array $models, $key = null) { return collect($models)->map(function ($value) use ($key) { return $key ? $value->getAttribute($key) : $value->getKey(); })->values()->unique()->sort()->all(); } /** * Get the underlying query for the relation. * * @return \Illuminate\Database\Eloquent\Builder */ public function getQuery() { return $this->query; } /** * Get the base query builder driving the Eloquent builder. * * @return \Illuminate\Database\Query\Builder */ public function getBaseQuery() { return $this->query->getQuery(); } /** * Get the parent model of the relation. * * @return \Illuminate\Database\Eloquent\Model */ public function getParent() { return $this->parent; } /** * Get the fully qualified parent key name. * * @return string */ public function getQualifiedParentKeyName() { return $this->parent->getQualifiedKeyName(); } /** * Get the related model of the relation. * * @return \Illuminate\Database\Eloquent\Model */ public function getRelated() { return $this->related; } /** * Get the name of the "created at" column. * * @return string */ public function createdAt() { return $this->parent->getCreatedAtColumn(); } /** * Get the name of the "updated at" column. * * @return string */ public function updatedAt() { return $this->parent->getUpdatedAtColumn(); } /** * Get the name of the related model's "updated at" column. * * @return string */ public function relatedUpdatedAt() { return $this->related->getUpdatedAtColumn(); } /** * Set or get the morph map for polymorphic relations. * * @param array|null $map * @param bool $merge * @return array */ public static function morphMap(array $map = null, $merge = true) { $map = static::buildMorphMapFromModels($map); if (is_array($map)) { static::$morphMap = $merge && static::$morphMap ? array_merge(static::$morphMap, $map) : $map; } return static::$morphMap; } /** * Builds a table-keyed array from model class names. * * @param string[]|null $models * @return array|null */ protected static function buildMorphMapFromModels(array $models = null) { if (is_null($models) || Arr::isAssoc($models)) { return $models; } return array_combine(array_map(function ($model) { return (new $model)->getTable(); }, $models), $models); } /** * Handle dynamic method calls to the relationship. * * @param string $method * @param array $parameters * @return mixed */ public function __call($method, $parameters) { if (static::hasMacro($method)) { return $this->macroCall($method, $parameters); } $result = call_user_func_array([$this->query, $method], $parameters); if ($result === $this->query) { return $this; } return $result; } /** * Force a clone of the underlying query builder when cloning. * * @return void */ public function __clone() { $this->query = clone $this->query; } }
bdsoha/framework
src/Illuminate/Database/Eloquent/Relations/Relation.php
PHP
mit
8,825
<?php namespace League\Flysystem\Plugin; class ListWith extends AbstractPlugin { /** * Get the method name. * * @return string */ public function getMethod() { return 'listWith'; } /** * List contents with metadata. * * @param array $keys * @param string $directory * @param bool $recursive * * @return array listing with metadata */ public function handle(array $keys = [], $directory = '', $recursive = false) { $contents = $this->filesystem->listContents($directory, $recursive); foreach ($contents as $index => $object) { if ($object['type'] === 'file') { $missingKeys = array_diff($keys, array_keys($object)); $contents[$index] = array_reduce($missingKeys, [$this, 'getMetadataByName'], $object); } } return $contents; } /** * Get a meta-data value by key name. * * @param array $object * @param $key * * @return array */ protected function getMetadataByName(array $object, $key) { $method = 'get'.ucfirst($key); if (! method_exists($this->filesystem, $method)) { throw new \InvalidArgumentException('Could not get meta-data for key: '.$key); } $object[$key] = $this->filesystem->{$method}($object['path']); return $object; } }
michaelpcorreale/BugSmart
vendor/league/flysystem/src/Plugin/ListWith.php
PHP
mit
1,442
/* * grunt * http://gruntjs.com/ * * Copyright (c) 2013 "Cowboy" Ben Alman * Licensed under the MIT license. * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT */ (function(exports) { 'use strict'; // Construct-o-rama. function Task() { // Information about the currently-running task. this.current = {}; // Tasks. this._tasks = {}; // Task queue. this._queue = []; // Queue placeholder (for dealing with nested tasks). this._placeholder = {placeholder: true}; // Queue marker (for clearing the queue programmatically). this._marker = {marker: true}; // Options. this._options = {}; // Is the queue running? this._running = false; // Success status of completed tasks. this._success = {}; } // Expose the constructor function. exports.Task = Task; // Create a new Task instance. exports.create = function() { return new Task(); }; // If the task runner is running or an error handler is not defined, throw // an exception. Otherwise, call the error handler directly. Task.prototype._throwIfRunning = function(obj) { if (this._running || !this._options.error) { // Throw an exception that the task runner will catch. throw obj; } else { // Not inside the task runner. Call the error handler and abort. this._options.error.call({name: null}, obj); } }; // Register a new task. Task.prototype.registerTask = function(name, info, fn) { // If optional "info" string is omitted, shuffle arguments a bit. if (fn == null) { fn = info; info = null; } // String or array of strings was passed instead of fn. var tasks; if (typeof fn !== 'function') { // Array of task names. tasks = this.parseArgs([fn]); // This task function just runs the specified tasks. fn = this.run.bind(this, fn); fn.alias = true; // Generate an info string if one wasn't explicitly passed. if (!info) { info = 'Alias for "' + tasks.join('", "') + '" task' + (tasks.length === 1 ? '' : 's') + '.'; } } else if (!info) { info = 'Custom task.'; } // Add task into cache. this._tasks[name] = {name: name, info: info, fn: fn}; // Make chainable! return this; }; // Is the specified task an alias? Task.prototype.isTaskAlias = function(name) { return !!this._tasks[name].fn.alias; }; // Rename a task. This might be useful if you want to override the default // behavior of a task, while retaining the old name. This is a billion times // easier to implement than some kind of in-task "super" functionality. Task.prototype.renameTask = function(oldname, newname) { // Rename task. this._tasks[newname] = this._tasks[oldname]; // Update name property of task. this._tasks[newname].name = newname; // Remove old name. delete this._tasks[oldname]; // Make chainable! return this; }; // Argument parsing helper. Supports these signatures: // fn('foo') // ['foo'] // fn('foo', 'bar', 'baz') // ['foo', 'bar', 'baz'] // fn(['foo', 'bar', 'baz']) // ['foo', 'bar', 'baz'] Task.prototype.parseArgs = function(args) { // Return the first argument if it's an array, otherwise return an array // of all arguments. return Array.isArray(args[0]) ? args[0] : [].slice.call(args); }; // Split a colon-delimited string into an array, unescaping (but not // splitting on) any \: escaped colons. Task.prototype.splitArgs = function(str) { if (!str) { return []; } // Store placeholder for \\ followed by \: str = str.replace(/\\\\/g, '\uFFFF').replace(/\\:/g, '\uFFFE'); // Split on : return str.split(':').map(function(s) { // Restore place-held : followed by \\ return s.replace(/\uFFFE/g, ':').replace(/\uFFFF/g, '\\'); }); }; // Given a task name, determine which actual task will be called, and what // arguments will be passed into the task callback. "foo" -> task "foo", no // args. "foo:bar:baz" -> task "foo:bar:baz" with no args (if "foo:bar:baz" // task exists), otherwise task "foo:bar" with arg "baz" (if "foo:bar" task // exists), otherwise task "foo" with args "bar" and "baz". Task.prototype._taskPlusArgs = function(name) { // Get task name / argument parts. var parts = this.splitArgs(name); // Start from the end, not the beginning! var i = parts.length; var task; do { // Get a task. task = this._tasks[parts.slice(0, i).join(':')]; // If the task doesn't exist, decrement `i`, and if `i` is greater than // 0, repeat. } while (!task && --i > 0); // Just the args. var args = parts.slice(i); // Maybe you want to use them as flags instead of as positional args? var flags = {}; args.forEach(function(arg) { flags[arg] = true; }); // The task to run and the args to run it with. return {task: task, nameArgs: name, args: args, flags: flags}; }; // Append things to queue in the correct spot. Task.prototype._push = function(things) { // Get current placeholder index. var index = this._queue.indexOf(this._placeholder); if (index === -1) { // No placeholder, add task+args objects to end of queue. this._queue = this._queue.concat(things); } else { // Placeholder exists, add task+args objects just before placeholder. [].splice.apply(this._queue, [index, 0].concat(things)); } }; // Enqueue a task. Task.prototype.run = function() { // Parse arguments into an array, returning an array of task+args objects. var things = this.parseArgs(arguments).map(this._taskPlusArgs, this); // Throw an exception if any tasks weren't found. var fails = things.filter(function(thing) { return !thing.task; }); if (fails.length > 0) { this._throwIfRunning(new Error('Task "' + fails[0].nameArgs + '" not found.')); return this; } // Append things to queue in the correct spot. this._push(things); // Make chainable! return this; }; // Add a marker to the queue to facilitate clearing it programmatically. Task.prototype.mark = function() { this._push(this._marker); // Make chainable! return this; }; // Run a task function, handling this.async / return value. Task.prototype.runTaskFn = function(context, fn, done) { // Async flag. var async = false; // Update the internal status object and run the next task. var complete = function(success) { var err = null; if (success === false) { // Since false was passed, the task failed generically. err = new Error('Task "' + context.nameArgs + '" failed.'); } else if (success instanceof Error || {}.toString.call(success) === '[object Error]') { // An error object was passed, so the task failed specifically. err = success; success = false; } else { // The task succeeded. success = true; } // The task has ended, reset the current task object. this.current = {}; // A task has "failed" only if it returns false (async) or if the // function returned by .async is passed false. this._success[context.nameArgs] = success; // If task failed, call error handler. if (!success && this._options.error) { this._options.error.call({name: context.name, nameArgs: context.nameArgs}, err); } done(err, success); }.bind(this); // When called, sets the async flag and returns a function that can // be used to continue processing the queue. context.async = function() { async = true; // The returned function should execute asynchronously in case // someone tries to do this.async()(); inside a task (WTF). return function(success) { setTimeout(function() { complete(success); }, 1); }; }; // Expose some information about the currently-running task. this.current = context; try { // Get the current task and run it, setting `this` inside the task // function to be something useful. var success = fn.call(context); // If the async flag wasn't set, process the next task in the queue. if (!async) { complete(success); } } catch (err) { complete(err); } }; // Begin task queue processing. Ie. run all tasks. Task.prototype.start = function() { // Abort if already running. if (this._running) { return false; } // Actually process the next task. var nextTask = function() { // Get next task+args object from queue. var thing; // Skip any placeholders or markers. do { thing = this._queue.shift(); } while (thing === this._placeholder || thing === this._marker); // If queue was empty, we're all done. if (!thing) { this._running = false; if (this._options.done) { this._options.done(); } return; } // Add a placeholder to the front of the queue. this._queue.unshift(this._placeholder); // Expose some information about the currently-running task. var context = { // The current task name plus args, as-passed. nameArgs: thing.nameArgs, // The current task name. name: thing.task.name, // The current task arguments. args: thing.args, // The current arguments, available as named flags. flags: thing.flags }; // Actually run the task function (handling this.async, etc) this.runTaskFn(context, function() { return thing.task.fn.apply(this, this.args); }, nextTask); }.bind(this); // Update flag. this._running = true; // Process the next task. nextTask(); }; // Clear remaining tasks from the queue. Task.prototype.clearQueue = function(options) { if (!options) { options = {}; } if (options.untilMarker) { this._queue.splice(0, this._queue.indexOf(this._marker) + 1); } else { this._queue = []; } // Make chainable! return this; }; // Test to see if all of the given tasks have succeeded. Task.prototype.requires = function() { this.parseArgs(arguments).forEach(function(name) { var success = this._success[name]; if (!success) { throw new Error('Required task "' + name + '" ' + (success === false ? 'failed' : 'must be run first') + '.'); } }.bind(this)); }; // Override default options. Task.prototype.options = function(options) { Object.keys(options).forEach(function(name) { this._options[name] = options[name]; }.bind(this)); }; }(typeof exports === 'object' && exports || this));
ahmedhawas/sizzle_ngbp
node_modules/grunt/lib/util/task.js
JavaScript
mit
10,811