/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
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/io-base/io-base.js"] = {
    lines: {},
    functions: {},
    coveredLines: 0,
    calledLines: 0,
    coveredFunctions: 0,
    calledFunctions: 0,
    path: "build/io-base/io-base.js",
    code: []
};
_yuitest_coverage["build/io-base/io-base.js"].code=["YUI.add('io-base', function (Y, NAME) {","","/**","Base IO functionality. Provides basic XHR transport support.","","@module io","@submodule io-base","@for IO","**/","","var // List of events that comprise the IO event lifecycle.","    EVENTS = ['start', 'complete', 'end', 'success', 'failure', 'progress'],","","    // Whitelist of used XHR response object properties.","    XHR_PROPS = ['status', 'statusText', 'responseText', 'responseXML'],","","    win = Y.config.win,","    uid = 0;","","/**","The IO class is a utility that brokers HTTP requests through a simplified","interface.  Specifically, it allows JavaScript to make HTTP requests to","a resource without a page reload.  The underlying transport for making","same-domain requests is the XMLHttpRequest object.  IO can also use","Flash, if specified as a transport, for cross-domain requests.","","@class IO","@constructor","@param {Object} config Object of EventTarget's publish method configurations","                    used to configure IO's events.","**/","function IO (config) {","    var io = this;","","    io._uid = 'io:' + uid++;","    io._init(config);","    Y.io._map[io._uid] = io;","}","","IO.prototype = {","    //--------------------------------------","    //  Properties","    //--------------------------------------","","   /**","    * A counter that increments for each transaction.","    *","    * @property _id","    * @private","    * @type {Number}","    */","    _id: 0,","","   /**","    * Object of IO HTTP headers sent with each transaction.","    *","    * @property _headers","    * @private","    * @type {Object}","    */","    _headers: {","        'X-Requested-With' : 'XMLHttpRequest'","    },","","   /**","    * Object that stores timeout values for any transaction with a defined","    * \"timeout\" configuration property.","    *","    * @property _timeout","    * @private","    * @type {Object}","    */","    _timeout: {},","","    //--------------------------------------","    //  Methods","    //--------------------------------------","","    _init: function(config) {","        var io = this, i, len;","","        io.cfg = config || {};","","        Y.augment(io, Y.EventTarget);","        for (i = 0, len = EVENTS.length; i < len; ++i) {","            // Publish IO global events with configurations, if any.","            // IO global events are set to broadcast by default.","            // These events use the \"io:\" namespace.","            io.publish('io:' + EVENTS[i], Y.merge({ broadcast: 1 }, config));","            // Publish IO transaction events with configurations, if","            // any.  These events use the \"io-trn:\" namespace.","            io.publish('io-trn:' + EVENTS[i], config);","        }","    },","","   /**","    * Method that creates a unique transaction object for each request.","    *","    * @method _create","    * @private","    * @param {Object} cfg Configuration object subset to determine if","    *                 the transaction is an XDR or file upload,","    *                 requiring an alternate transport.","    * @param {Number} id Transaction id","    * @return {Object} The transaction object","    */","    _create: function(config, id) {","        var io = this,","            transaction = {","                id : Y.Lang.isNumber(id) ? id : io._id++,","                uid: io._uid","            },","            alt = config.xdr ? config.xdr.use : null,","            form = config.form && config.form.upload ? 'iframe' : null,","            use;","","        if (alt === 'native') {","            // Non-IE and IE >= 10  can use XHR level 2 and not rely on an","            // external transport.","            alt = Y.UA.ie && !SUPPORTS_CORS ? 'xdr' : null;","","            // Prevent \"pre-flight\" OPTIONS request by removing the","            // `X-Requested-With` HTTP header from CORS requests. This header","            // can be added back on a per-request basis, if desired.","            io.setHeader('X-Requested-With');","        }","","        use = alt || form;","        transaction = use ? Y.merge(Y.IO.customTransport(use), transaction) :","                            Y.merge(Y.IO.defaultTransport(), transaction);","","        if (transaction.notify) {","            config.notify = function (e, t, c) { io.notify(e, t, c); };","        }","","        if (!use) {","            if (win && win.FormData && config.data instanceof win.FormData) {","                transaction.c.upload.onprogress = function (e) {","                    io.progress(transaction, e, config);","                };","                transaction.c.onload = function (e) {","                    io.load(transaction, e, config);","                };","                transaction.c.onerror = function (e) {","                    io.error(transaction, e, config);","                };","                transaction.upload = true;","            }","        }","","        return transaction;","    },","","    _destroy: function(transaction) {","        if (win && !transaction.notify && !transaction.xdr) {","            if (XHR && !transaction.upload) {","                transaction.c.onreadystatechange = null;","            } else if (transaction.upload) {","                transaction.c.upload.onprogress = null;","                transaction.c.onload = null;","                transaction.c.onerror = null;","            } else if (Y.UA.ie && !transaction.e) {","                // IE, when using XMLHttpRequest as an ActiveX Object, will throw","                // a \"Type Mismatch\" error if the event handler is set to \"null\".","                transaction.c.abort();","            }","        }","","        transaction = transaction.c = null;","    },","","   /**","    * Method for creating and firing events.","    *","    * @method _evt","    * @private","    * @param {String} eventName Event to be published.","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration data subset for event subscription.","    */","    _evt: function(eventName, transaction, config) {","        var io          = this, params,","            args        = config['arguments'],","            emitFacade  = io.cfg.emitFacade,","            globalEvent = \"io:\" + eventName,","            trnEvent    = \"io-trn:\" + eventName;","","        // Workaround for #2532107","        this.detach(trnEvent);","","        if (transaction.e) {","            transaction.c = { status: 0, statusText: transaction.e };","        }","","        // Fire event with parameters or an Event Facade.","        params = [ emitFacade ?","            {","                id: transaction.id,","                data: transaction.c,","                cfg: config,","                'arguments': args","            } :","            transaction.id","        ];","","        if (!emitFacade) {","            if (eventName === EVENTS[0] || eventName === EVENTS[2]) {","                if (args) {","                    params.push(args);","                }","            } else {","                if (transaction.evt) {","                    params.push(transaction.evt);","                } else {","                    params.push(transaction.c);","                }","                if (args) {","                    params.push(args);","                }","            }","        }","","        params.unshift(globalEvent);","        // Fire global events.","        io.fire.apply(io, params);","        // Fire transaction events, if receivers are defined.","        if (config.on) {","            params[0] = trnEvent;","            io.once(trnEvent, config.on[eventName], config.context || Y);","            io.fire.apply(io, params);","        }","    },","","   /**","    * Fires event \"io:start\" and creates, fires a transaction-specific","    * start event, if `config.on.start` is defined.","    *","    * @method start","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration object for the transaction.","    */","    start: function(transaction, config) {","       /**","        * Signals the start of an IO request.","        * @event io:start","        */","        this._evt(EVENTS[0], transaction, config);","    },","","   /**","    * Fires event \"io:complete\" and creates, fires a","    * transaction-specific \"complete\" event, if config.on.complete is","    * defined.","    *","    * @method complete","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration object for the transaction.","    */","    complete: function(transaction, config) {","       /**","        * Signals the completion of the request-response phase of a","        * transaction. Response status and data are accessible, if","        * available, in this event.","        * @event io:complete","        */","        this._evt(EVENTS[1], transaction, config);","    },","","   /**","    * Fires event \"io:end\" and creates, fires a transaction-specific \"end\"","    * event, if config.on.end is defined.","    *","    * @method end","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration object for the transaction.","    */","    end: function(transaction, config) {","       /**","        * Signals the end of the transaction lifecycle.","        * @event io:end","        */","        this._evt(EVENTS[2], transaction, config);","        this._destroy(transaction);","    },","","   /**","    * Fires event \"io:success\" and creates, fires a transaction-specific","    * \"success\" event, if config.on.success is defined.","    *","    * @method success","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration object for the transaction.","    */","    success: function(transaction, config) {","       /**","        * Signals an HTTP response with status in the 2xx range.","        * Fires after io:complete.","        * @event io:success","        */","        this._evt(EVENTS[3], transaction, config);","        this.end(transaction, config);","    },","","   /**","    * Fires event \"io:failure\" and creates, fires a transaction-specific","    * \"failure\" event, if config.on.failure is defined.","    *","    * @method failure","    * @param {Object} transaction Transaction object.","    * @param {Object} config Configuration object for the transaction.","    */","    failure: function(transaction, config) {","       /**","        * Signals an HTTP response with status outside of the 2xx range.","        * Fires after io:complete.","        * @event io:failure","        */","        this._evt(EVENTS[4], transaction, config);","        this.end(transaction, config);","    },","","   /**","    * Fires event \"io:progress\" and creates, fires a transaction-specific","    * \"progress\" event -- for XMLHttpRequest file upload -- if","    * config.on.progress is defined.","    *","    * @method progress","    * @param {Object} transaction Transaction object.","    * @param {Object} progress event.","    * @param {Object} config Configuration object for the transaction.","    */","    progress: function(transaction, e, config) {","       /**","        * Signals the interactive state during a file upload transaction.","        * This event fires after io:start and before io:complete.","        * @event io:progress","        */","        transaction.evt = e;","        this._evt(EVENTS[5], transaction, config);","    },","","   /**","    * Fires event \"io:complete\" and creates, fires a transaction-specific","    * \"complete\" event -- for XMLHttpRequest file upload -- if","    * config.on.complete is defined.","    *","    * @method load","    * @param {Object} transaction Transaction object.","    * @param {Object} load event.","    * @param {Object} config Configuration object for the transaction.","    */","    load: function (transaction, e, config) {","        transaction.evt = e.target;","        this._evt(EVENTS[1], transaction, config);","    },","","   /**","    * Fires event \"io:failure\" and creates, fires a transaction-specific","    * \"failure\" event -- for XMLHttpRequest file upload -- if","    * config.on.failure is defined.","    *","    * @method error","    * @param {Object} transaction Transaction object.","    * @param {Object} error event.","    * @param {Object} config Configuration object for the transaction.","    */","    error: function (transaction, e, config) {","        transaction.evt = e;","        this._evt(EVENTS[4], transaction, config);","    },","","   /**","    * Retry an XDR transaction, using the Flash tranport, if the native","    * transport fails.","    *","    * @method _retry","    * @private","    * @param {Object} transaction Transaction object.","    * @param {String} uri Qualified path to transaction resource.","    * @param {Object} config Configuration object for the transaction.","    */","    _retry: function(transaction, uri, config) {","        this._destroy(transaction);","        config.xdr.use = 'flash';","        return this.send(uri, config, transaction.id);","    },","","   /**","    * Method that concatenates string data for HTTP GET transactions.","    *","    * @method _concat","    * @private","    * @param {String} uri URI or root data.","    * @param {String} data Data to be concatenated onto URI.","    * @return {String}","    */","    _concat: function(uri, data) {","        uri += (uri.indexOf('?') === -1 ? '?' : '&') + data;","        return uri;","    },","","   /**","    * Stores default client headers for all transactions. If a label is","    * passed with no value argument, the header will be deleted.","    *","    * @method setHeader","    * @param {String} name HTTP header","    * @param {String} value HTTP header value","    */","    setHeader: function(name, value) {","        if (value) {","            this._headers[name] = value;","        } else {","            delete this._headers[name];","        }","    },","","   /**","    * Method that sets all HTTP headers to be sent in a transaction.","    *","    * @method _setHeaders","    * @private","    * @param {Object} transaction - XHR instance for the specific transaction.","    * @param {Object} headers - HTTP headers for the specific transaction, as","    *                    defined in the configuration object passed to YUI.io().","    */","    _setHeaders: function(transaction, headers) {","        headers = Y.merge(this._headers, headers);","        Y.Object.each(headers, function(value, name) {","            if (value !== 'disable') {","                transaction.setRequestHeader(name, headers[name]);","            }","        });","    },","","   /**","    * Starts timeout count if the configuration object has a defined","    * timeout property.","    *","    * @method _startTimeout","    * @private","    * @param {Object} transaction Transaction object generated by _create().","    * @param {Object} timeout Timeout in milliseconds.","    */","    _startTimeout: function(transaction, timeout) {","        var io = this;","","        io._timeout[transaction.id] = setTimeout(function() {","            io._abort(transaction, 'timeout');","        }, timeout);","    },","","   /**","    * Clears the timeout interval started by _startTimeout().","    *","    * @method _clearTimeout","    * @private","    * @param {Number} id - Transaction id.","    */","    _clearTimeout: function(id) {","        clearTimeout(this._timeout[id]);","        delete this._timeout[id];","    },","","   /**","    * Method that determines if a transaction response qualifies as success","    * or failure, based on the response HTTP status code, and fires the","    * appropriate success or failure events.","    *","    * @method _result","    * @private","    * @static","    * @param {Object} transaction Transaction object generated by _create().","    * @param {Object} config Configuration object passed to io().","    */","    _result: function(transaction, config) {","        var status;","        // Firefox will throw an exception if attempting to access","        // an XHR object's status property, after a request is aborted.","        try {","            status = transaction.c.status;","        } catch(e) {","            status = 0;","        }","","        // IE reports HTTP 204 as HTTP 1223.","        if (status >= 200 && status < 300 || status === 304 || status === 1223) {","            this.success(transaction, config);","        } else {","            this.failure(transaction, config);","        }","    },","","   /**","    * Event handler bound to onreadystatechange.","    *","    * @method _rS","    * @private","    * @param {Object} transaction Transaction object generated by _create().","    * @param {Object} config Configuration object passed to YUI.io().","    */","    _rS: function(transaction, config) {","        var io = this;","","        if (transaction.c.readyState === 4) {","            if (config.timeout) {","                io._clearTimeout(transaction.id);","            }","","            // Yield in the event of request timeout or abort.","            setTimeout(function() {","                io.complete(transaction, config);","                io._result(transaction, config);","            }, 0);","        }","    },","","   /**","    * Terminates a transaction due to an explicit abort or timeout.","    *","    * @method _abort","    * @private","    * @param {Object} transaction Transaction object generated by _create().","    * @param {String} type Identifies timed out or aborted transaction.","    */","    _abort: function(transaction, type) {","        if (transaction && transaction.c) {","            transaction.e = type;","            transaction.c.abort();","        }","    },","","   /**","    * Requests a transaction. `send()` is implemented as `Y.io()`.  Each","    * transaction may include a configuration object.  Its properties are:","    *","    * <dl>","    *   <dt>method</dt>","    *     <dd>HTTP method verb (e.g., GET or POST). If this property is not","    *         not defined, the default value will be GET.</dd>","    *","    *   <dt>data</dt>","    *     <dd>This is the name-value string that will be sent as the","    *     transaction data. If the request is HTTP GET, the data become","    *     part of querystring. If HTTP POST, the data are sent in the","    *     message body.</dd>","    *","    *   <dt>xdr</dt>","    *     <dd>Defines the transport to be used for cross-domain requests.","    *     By setting this property, the transaction will use the specified","    *     transport instead of XMLHttpRequest. The properties of the","    *     transport object are:","    *     <dl>","    *       <dt>use</dt>","    *         <dd>The transport to be used: 'flash' or 'native'</dd>","    *       <dt>dataType</dt>","    *         <dd>Set the value to 'XML' if that is the expected response","    *         content type.</dd>","    *     </dl></dd>","    *","    *   <dt>form</dt>","    *     <dd>Form serialization configuration object.  Its properties are:","    *     <dl>","    *       <dt>id</dt>","    *         <dd>Node object or id of HTML form</dd>","    *       <dt>useDisabled</dt>","    *         <dd>`true` to also serialize disabled form field values","    *         (defaults to `false`)</dd>","    *     </dl></dd>","    *","    *   <dt>on</dt>","    *     <dd>Assigns transaction event subscriptions. Available events are:","    *     <dl>","    *       <dt>start</dt>","    *         <dd>Fires when a request is sent to a resource.</dd>","    *       <dt>complete</dt>","    *         <dd>Fires when the transaction is complete.</dd>","    *       <dt>success</dt>","    *         <dd>Fires when the HTTP response status is within the 2xx","    *         range.</dd>","    *       <dt>failure</dt>","    *         <dd>Fires when the HTTP response status is outside the 2xx","    *         range, if an exception occurs, if the transation is aborted,","    *         or if the transaction exceeds a configured `timeout`.</dd>","    *       <dt>end</dt>","    *         <dd>Fires at the conclusion of the transaction","    *            lifecycle, after `success` or `failure`.</dd>","    *     </dl>","    *","    *     <p>Callback functions for `start` and `end` receive the id of the","    *     transaction as a first argument. For `complete`, `success`, and","    *     `failure`, callbacks receive the id and the response object","    *     (usually the XMLHttpRequest instance).  If the `arguments`","    *     property was included in the configuration object passed to","    *     `Y.io()`, the configured data will be passed to all callbacks as","    *     the last argument.</p>","    *     </dd>","    *","    *   <dt>sync</dt>","    *     <dd>Pass `true` to make a same-domain transaction synchronous.","    *     <strong>CAVEAT</strong>: This will negatively impact the user","    *     experience. Have a <em>very</em> good reason if you intend to use","    *     this.</dd>","    *","    *   <dt>context</dt>","    *     <dd>The \"`this'\" object for all configured event handlers. If a","    *     specific context is needed for individual callbacks, bind the","    *     callback to a context using `Y.bind()`.</dd>","    *","    *   <dt>headers</dt>","    *     <dd>Object map of transaction headers to send to the server. The","    *     object keys are the header names and the values are the header","    *     values.</dd>","    *","    *   <dt>timeout</dt>","    *     <dd>Millisecond threshold for the transaction before being","    *     automatically aborted.</dd>","    *","    *   <dt>arguments</dt>","    *     <dd>User-defined data passed to all registered event handlers.","    *     This value is available as the second argument in the \"start\" and","    *     \"end\" event handlers. It is the third argument in the \"complete\",","    *     \"success\", and \"failure\" event handlers. <strong>Be sure to quote","    *     this property name in the transaction configuration as","    *     \"arguments\" is a reserved word in JavaScript</strong> (e.g.","    *     `Y.io({ ..., \"arguments\": stuff })`).</dd>","    * </dl>","    *","    * @method send","    * @public","    * @param {String} uri Qualified path to transaction resource.","    * @param {Object} config Configuration object for the transaction.","    * @param {Number} id Transaction id, if already set.","    * @return {Object}","    */","    send: function(uri, config, id) {","        var transaction, method, i, len, sync, data,","            io = this,","            u = uri,","            response = {};","","        config = config ? Y.Object(config) : {};","        transaction = io._create(config, id);","        method = config.method ? config.method.toUpperCase() : 'GET';","        sync = config.sync;","        data = config.data;","","        // Serialize a map object into a key-value string using","        // querystring-stringify-simple.","        if ((Y.Lang.isObject(data) && !data.nodeType) && !transaction.upload) {","            if (Y.QueryString && Y.QueryString.stringify) {","                config.data = data = Y.QueryString.stringify(data);","            } else {","            }","        }","","        if (config.form) {","            if (config.form.upload) {","                // This is a file upload transaction, calling","                // upload() in io-upload-iframe.","                return io.upload(transaction, uri, config);","            } else {","                // Serialize HTML form data into a key-value string.","                data = io._serialize(config.form, data);","            }","        }","","        // Convert falsy values to an empty string. This way IE can't be","        // rediculous and translate `undefined` to \"undefined\".","        data || (data = '');","","        if (data) {","            switch (method) {","                case 'GET':","                case 'HEAD':","                case 'DELETE':","                    u = io._concat(u, data);","                    data = '';","                    break;","                case 'POST':","                case 'PUT':","                    // If Content-Type is defined in the configuration object, or","                    // or as a default header, it will be used instead of","                    // 'application/x-www-form-urlencoded; charset=UTF-8'","                    config.headers = Y.merge({","                        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'","                    }, config.headers);","                    break;","            }","        }","","        if (transaction.xdr) {","            // Route data to io-xdr module for flash and XDomainRequest.","            return io.xdr(u, transaction, config);","        }","        else if (transaction.notify) {","            // Route data to custom transport","            return transaction.c.send(transaction, uri, config);","        }","","        if (!sync && !transaction.upload) {","            transaction.c.onreadystatechange = function() {","                io._rS(transaction, config);","            };","        }","","        try {","            // Determine if request is to be set as","            // synchronous or asynchronous.","            transaction.c.open(method, u, !sync, config.username || null, config.password || null);","            io._setHeaders(transaction.c, config.headers || {});","            io.start(transaction, config);","","            // Will work only in browsers that implement the","            // Cross-Origin Resource Sharing draft.","            if (config.xdr && config.xdr.credentials && SUPPORTS_CORS) {","                transaction.c.withCredentials = true;","            }","","            // Using \"null\" with HTTP POST will result in a request","            // with no Content-Length header defined.","            transaction.c.send(data);","","            if (sync) {","                // Create a response object for synchronous transactions,","                // mixing id and arguments properties with the xhr","                // properties whitelist.","                for (i = 0, len = XHR_PROPS.length; i < len; ++i) {","                    response[XHR_PROPS[i]] = transaction.c[XHR_PROPS[i]];","                }","","                response.getAllResponseHeaders = function() {","                    return transaction.c.getAllResponseHeaders();","                };","","                response.getResponseHeader = function(name) {","                    return transaction.c.getResponseHeader(name);","                };","","                io.complete(transaction, config);","                io._result(transaction, config);","","                return response;","            }","        } catch(e) {","            if (transaction.xdr) {","                // This exception is usually thrown by browsers","                // that do not support XMLHttpRequest Level 2.","                // Retry the request with the XDR transport set","                // to 'flash'.  If the Flash transport is not","                // initialized or available, the transaction","                // will resolve to a transport error.","                return io._retry(transaction, uri, config);","            } else {","                io.complete(transaction, config);","                io._result(transaction, config);","            }","        }","","        // If config.timeout is defined, and the request is standard XHR,","        // initialize timeout polling.","        if (config.timeout) {","            io._startTimeout(transaction, config.timeout);","        }","","        return {","            id: transaction.id,","            abort: function() {","                return transaction.c ? io._abort(transaction, 'abort') : false;","            },","            isInProgress: function() {","                return transaction.c ? (transaction.c.readyState % 4) : false;","            },","            io: io","        };","    }","};","","/**","Method for initiating an ajax call.  The first argument is the url end","point for the call.  The second argument is an object to configure the","transaction and attach event subscriptions.  The configuration object","supports the following properties:","","<dl>","  <dt>method</dt>","    <dd>HTTP method verb (e.g., GET or POST). If this property is not","        not defined, the default value will be GET.</dd>","","  <dt>data</dt>","    <dd>This is the name-value string that will be sent as the","    transaction data. If the request is HTTP GET, the data become","    part of querystring. If HTTP POST, the data are sent in the","    message body.</dd>","","  <dt>xdr</dt>","    <dd>Defines the transport to be used for cross-domain requests.","    By setting this property, the transaction will use the specified","    transport instead of XMLHttpRequest. The properties of the","    transport object are:","    <dl>","      <dt>use</dt>","        <dd>The transport to be used: 'flash' or 'native'</dd>","      <dt>dataType</dt>","        <dd>Set the value to 'XML' if that is the expected response","        content type.</dd>","    </dl></dd>","","  <dt>form</dt>","    <dd>Form serialization configuration object.  Its properties are:","    <dl>","      <dt>id</dt>","        <dd>Node object or id of HTML form</dd>","      <dt>useDisabled</dt>","        <dd>`true` to also serialize disabled form field values","        (defaults to `false`)</dd>","    </dl></dd>","","  <dt>on</dt>","    <dd>Assigns transaction event subscriptions. Available events are:","    <dl>","      <dt>start</dt>","        <dd>Fires when a request is sent to a resource.</dd>","      <dt>complete</dt>","        <dd>Fires when the transaction is complete.</dd>","      <dt>success</dt>","        <dd>Fires when the HTTP response status is within the 2xx","        range.</dd>","      <dt>failure</dt>","        <dd>Fires when the HTTP response status is outside the 2xx","        range, if an exception occurs, if the transation is aborted,","        or if the transaction exceeds a configured `timeout`.</dd>","      <dt>end</dt>","        <dd>Fires at the conclusion of the transaction","           lifecycle, after `success` or `failure`.</dd>","    </dl>","","    <p>Callback functions for `start` and `end` receive the id of the","    transaction as a first argument. For `complete`, `success`, and","    `failure`, callbacks receive the id and the response object","    (usually the XMLHttpRequest instance).  If the `arguments`","    property was included in the configuration object passed to","    `Y.io()`, the configured data will be passed to all callbacks as","    the last argument.</p>","    </dd>","","  <dt>sync</dt>","    <dd>Pass `true` to make a same-domain transaction synchronous.","    <strong>CAVEAT</strong>: This will negatively impact the user","    experience. Have a <em>very</em> good reason if you intend to use","    this.</dd>","","  <dt>context</dt>","    <dd>The \"`this'\" object for all configured event handlers. If a","    specific context is needed for individual callbacks, bind the","    callback to a context using `Y.bind()`.</dd>","","  <dt>headers</dt>","    <dd>Object map of transaction headers to send to the server. The","    object keys are the header names and the values are the header","    values.</dd>","","  <dt>timeout</dt>","    <dd>Millisecond threshold for the transaction before being","    automatically aborted.</dd>","","  <dt>arguments</dt>","    <dd>User-defined data passed to all registered event handlers.","    This value is available as the second argument in the \"start\" and","    \"end\" event handlers. It is the third argument in the \"complete\",","    \"success\", and \"failure\" event handlers. <strong>Be sure to quote","    this property name in the transaction configuration as","    \"arguments\" is a reserved word in JavaScript</strong> (e.g.","    `Y.io({ ..., \"arguments\": stuff })`).</dd>","</dl>","","@method io","@static","@param {String} url qualified path to transaction resource.","@param {Object} config configuration object for the transaction.","@return {Object}","@for YUI","**/","Y.io = function(url, config) {","    // Calling IO through the static interface will use and reuse","    // an instance of IO.","    var transaction = Y.io._map['io:0'] || new IO();","    return transaction.send.apply(transaction, [url, config]);","};","","/**","Method for setting and deleting IO HTTP headers to be sent with every","request.","","Hosted as a property on the `io` function (e.g. `Y.io.header`).","","@method header","@param {String} name HTTP header","@param {String} value HTTP header value","@static","**/","Y.io.header = function(name, value) {","    // Calling IO through the static interface will use and reuse","    // an instance of IO.","    var transaction = Y.io._map['io:0'] || new IO();","    transaction.setHeader(name, value);","};","","Y.IO = IO;","// Map of all IO instances created.","Y.io._map = {};","var XHR = win && win.XMLHttpRequest,","    XDR = win && win.XDomainRequest,","    AX = win && win.ActiveXObject,","","    // Checks for the presence of the `withCredentials` in an XHR instance","    // object, which will be present if the environment supports CORS.","    SUPPORTS_CORS = XHR && 'withCredentials' in (new XMLHttpRequest());","","","Y.mix(Y.IO, {","    /**","    * The ID of the default IO transport, defaults to `xhr`","    * @property _default","    * @type {String}","    * @static","    */","    _default: 'xhr',","    /**","    *","    * @method defaultTransport","    * @static","    * @param {String} [id] The transport to set as the default, if empty a new transport is created.","    * @return {Object} The transport object with a `send` method","    */","    defaultTransport: function(id) {","        if (id) {","            Y.IO._default = id;","        } else {","            var o = {","                c: Y.IO.transports[Y.IO._default](),","                notify: Y.IO._default === 'xhr' ? false : true","            };","            return o;","        }","    },","    /**","    * An object hash of custom transports available to IO","    * @property transports","    * @type {Object}","    * @static","    */","    transports: {","        xhr: function () {","            return XHR ? new XMLHttpRequest() :","                AX ? new ActiveXObject('Microsoft.XMLHTTP') : null;","        },","        xdr: function () {","            return XDR ? new XDomainRequest() : null;","        },","        iframe: function () { return {}; },","        flash: null,","        nodejs: null","    },","    /**","    * Create a custom transport of type and return it's object","    * @method customTransport","    * @param {String} id The id of the transport to create.","    * @static","    */","    customTransport: function(id) {","        var o = { c: Y.IO.transports[id]() };","","        o[(id === 'xdr' || id === 'flash') ? 'xdr' : 'notify'] = true;","        return o;","    }","});","","Y.mix(Y.IO.prototype, {","    /**","    * Fired from the notify method of the transport which in turn fires","    * the event on the IO object.","    * @method notify","    * @param {String} event The name of the event","    * @param {Object} transaction The transaction object","    * @param {Object} config The configuration object for this transaction","    */","    notify: function(event, transaction, config) {","        var io = this;","","        switch (event) {","            case 'timeout':","            case 'abort':","            case 'transport error':","                transaction.c = { status: 0, statusText: event };","                event = 'failure';","            default:","                io[event].apply(io, [transaction, config]);","        }","    }","});","","","","","}, '3.9.1', {\"requires\": [\"event-custom-base\", \"querystring-stringify-simple\"]});"];
_yuitest_coverage["build/io-base/io-base.js"].lines = {"1":0,"11":0,"32":0,"33":0,"35":0,"36":0,"37":0,"40":0,"80":0,"82":0,"84":0,"85":0,"89":0,"92":0,"108":0,"117":0,"120":0,"125":0,"128":0,"129":0,"132":0,"133":0,"136":0,"137":0,"138":0,"139":0,"141":0,"142":0,"144":0,"145":0,"147":0,"151":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"165":0,"169":0,"182":0,"189":0,"191":0,"192":0,"196":0,"206":0,"207":0,"208":0,"209":0,"212":0,"213":0,"215":0,"217":0,"218":0,"223":0,"225":0,"227":0,"228":0,"229":0,"230":0,"247":0,"266":0,"282":0,"283":0,"300":0,"301":0,"318":0,"319":0,"338":0,"339":0,"353":0,"354":0,"368":0,"369":0,"383":0,"384":0,"385":0,"398":0,"399":0,"411":0,"412":0,"414":0,"428":0,"429":0,"430":0,"431":0,"446":0,"448":0,"449":0,"461":0,"462":0,"477":0,"480":0,"481":0,"483":0,"487":0,"488":0,"490":0,"503":0,"505":0,"506":0,"507":0,"511":0,"512":0,"513":0,"527":0,"528":0,"529":0,"637":0,"642":0,"643":0,"644":0,"645":0,"646":0,"650":0,"651":0,"652":0,"657":0,"658":0,"661":0,"664":0,"670":0,"672":0,"673":0,"677":0,"678":0,"679":0,"685":0,"688":0,"692":0,"694":0,"696":0,"698":0,"701":0,"702":0,"703":0,"707":0,"710":0,"711":0,"712":0,"716":0,"717":0,"722":0,"724":0,"728":0,"729":0,"732":0,"733":0,"736":0,"737":0,"740":0,"741":0,"743":0,"746":0,"753":0,"755":0,"756":0,"762":0,"763":0,"766":0,"769":0,"772":0,"884":0,"887":0,"888":0,"902":0,"905":0,"906":0,"909":0,"911":0,"912":0,"921":0,"937":0,"938":0,"940":0,"944":0,"955":0,"959":0,"961":0,"972":0,"974":0,"975":0,"979":0,"989":0,"991":0,"995":0,"996":0,"998":0};
_yuitest_coverage["build/io-base/io-base.js"].functions = {"IO:32":0,"_init:79":0,"notify:133":0,"onprogress:138":0,"onload:141":0,"onerror:144":0,"_create:107":0,"_destroy:154":0,"_evt:181":0,"start:242":0,"complete:259":0,"end:277":0,"success:294":0,"failure:312":0,"progress:332":0,"load:352":0,"error:367":0,"_retry:382":0,"_concat:397":0,"setHeader:410":0,"(anonymous 2):429":0,"_setHeaders:427":0,"(anonymous 3):448":0,"_startTimeout:445":0,"_clearTimeout:460":0,"_result:476":0,"(anonymous 4):511":0,"_rS:502":0,"_abort:526":0,"onreadystatechange:702":0,"getAllResponseHeaders:732":0,"getResponseHeader:736":0,"abort:768":0,"isInProgress:771":0,"send:636":0,"io:884":0,"header:902":0,"defaultTransport:936":0,"xhr:954":0,"xdr:958":0,"iframe:961":0,"customTransport:971":0,"notify:988":0,"(anonymous 1):1":0};
_yuitest_coverage["build/io-base/io-base.js"].coveredLines = 190;
_yuitest_coverage["build/io-base/io-base.js"].coveredFunctions = 44;
_yuitest_coverline("build/io-base/io-base.js", 1);
YUI.add('io-base', function (Y, NAME) {

/**
Base IO functionality. Provides basic XHR transport support.

@module io
@submodule io-base
@for IO
**/

_yuitest_coverfunc("build/io-base/io-base.js", "(anonymous 1)", 1);
_yuitest_coverline("build/io-base/io-base.js", 11);
var // List of events that comprise the IO event lifecycle.
    EVENTS = ['start', 'complete', 'end', 'success', 'failure', 'progress'],

    // Whitelist of used XHR response object properties.
    XHR_PROPS = ['status', 'statusText', 'responseText', 'responseXML'],

    win = Y.config.win,
    uid = 0;

/**
The IO class is a utility that brokers HTTP requests through a simplified
interface.  Specifically, it allows JavaScript to make HTTP requests to
a resource without a page reload.  The underlying transport for making
same-domain requests is the XMLHttpRequest object.  IO can also use
Flash, if specified as a transport, for cross-domain requests.

@class IO
@constructor
@param {Object} config Object of EventTarget's publish method configurations
                    used to configure IO's events.
**/
_yuitest_coverline("build/io-base/io-base.js", 32);
function IO (config) {
    _yuitest_coverfunc("build/io-base/io-base.js", "IO", 32);
_yuitest_coverline("build/io-base/io-base.js", 33);
var io = this;

    _yuitest_coverline("build/io-base/io-base.js", 35);
io._uid = 'io:' + uid++;
    _yuitest_coverline("build/io-base/io-base.js", 36);
io._init(config);
    _yuitest_coverline("build/io-base/io-base.js", 37);
Y.io._map[io._uid] = io;
}

_yuitest_coverline("build/io-base/io-base.js", 40);
IO.prototype = {
    //--------------------------------------
    //  Properties
    //--------------------------------------

   /**
    * A counter that increments for each transaction.
    *
    * @property _id
    * @private
    * @type {Number}
    */
    _id: 0,

   /**
    * Object of IO HTTP headers sent with each transaction.
    *
    * @property _headers
    * @private
    * @type {Object}
    */
    _headers: {
        'X-Requested-With' : 'XMLHttpRequest'
    },

   /**
    * Object that stores timeout values for any transaction with a defined
    * "timeout" configuration property.
    *
    * @property _timeout
    * @private
    * @type {Object}
    */
    _timeout: {},

    //--------------------------------------
    //  Methods
    //--------------------------------------

    _init: function(config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_init", 79);
_yuitest_coverline("build/io-base/io-base.js", 80);
var io = this, i, len;

        _yuitest_coverline("build/io-base/io-base.js", 82);
io.cfg = config || {};

        _yuitest_coverline("build/io-base/io-base.js", 84);
Y.augment(io, Y.EventTarget);
        _yuitest_coverline("build/io-base/io-base.js", 85);
for (i = 0, len = EVENTS.length; i < len; ++i) {
            // Publish IO global events with configurations, if any.
            // IO global events are set to broadcast by default.
            // These events use the "io:" namespace.
            _yuitest_coverline("build/io-base/io-base.js", 89);
io.publish('io:' + EVENTS[i], Y.merge({ broadcast: 1 }, config));
            // Publish IO transaction events with configurations, if
            // any.  These events use the "io-trn:" namespace.
            _yuitest_coverline("build/io-base/io-base.js", 92);
io.publish('io-trn:' + EVENTS[i], config);
        }
    },

   /**
    * Method that creates a unique transaction object for each request.
    *
    * @method _create
    * @private
    * @param {Object} cfg Configuration object subset to determine if
    *                 the transaction is an XDR or file upload,
    *                 requiring an alternate transport.
    * @param {Number} id Transaction id
    * @return {Object} The transaction object
    */
    _create: function(config, id) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_create", 107);
_yuitest_coverline("build/io-base/io-base.js", 108);
var io = this,
            transaction = {
                id : Y.Lang.isNumber(id) ? id : io._id++,
                uid: io._uid
            },
            alt = config.xdr ? config.xdr.use : null,
            form = config.form && config.form.upload ? 'iframe' : null,
            use;

        _yuitest_coverline("build/io-base/io-base.js", 117);
if (alt === 'native') {
            // Non-IE and IE >= 10  can use XHR level 2 and not rely on an
            // external transport.
            _yuitest_coverline("build/io-base/io-base.js", 120);
alt = Y.UA.ie && !SUPPORTS_CORS ? 'xdr' : null;

            // Prevent "pre-flight" OPTIONS request by removing the
            // `X-Requested-With` HTTP header from CORS requests. This header
            // can be added back on a per-request basis, if desired.
            _yuitest_coverline("build/io-base/io-base.js", 125);
io.setHeader('X-Requested-With');
        }

        _yuitest_coverline("build/io-base/io-base.js", 128);
use = alt || form;
        _yuitest_coverline("build/io-base/io-base.js", 129);
transaction = use ? Y.merge(Y.IO.customTransport(use), transaction) :
                            Y.merge(Y.IO.defaultTransport(), transaction);

        _yuitest_coverline("build/io-base/io-base.js", 132);
if (transaction.notify) {
            _yuitest_coverline("build/io-base/io-base.js", 133);
config.notify = function (e, t, c) { _yuitest_coverfunc("build/io-base/io-base.js", "notify", 133);
io.notify(e, t, c); };
        }

        _yuitest_coverline("build/io-base/io-base.js", 136);
if (!use) {
            _yuitest_coverline("build/io-base/io-base.js", 137);
if (win && win.FormData && config.data instanceof win.FormData) {
                _yuitest_coverline("build/io-base/io-base.js", 138);
transaction.c.upload.onprogress = function (e) {
                    _yuitest_coverfunc("build/io-base/io-base.js", "onprogress", 138);
_yuitest_coverline("build/io-base/io-base.js", 139);
io.progress(transaction, e, config);
                };
                _yuitest_coverline("build/io-base/io-base.js", 141);
transaction.c.onload = function (e) {
                    _yuitest_coverfunc("build/io-base/io-base.js", "onload", 141);
_yuitest_coverline("build/io-base/io-base.js", 142);
io.load(transaction, e, config);
                };
                _yuitest_coverline("build/io-base/io-base.js", 144);
transaction.c.onerror = function (e) {
                    _yuitest_coverfunc("build/io-base/io-base.js", "onerror", 144);
_yuitest_coverline("build/io-base/io-base.js", 145);
io.error(transaction, e, config);
                };
                _yuitest_coverline("build/io-base/io-base.js", 147);
transaction.upload = true;
            }
        }

        _yuitest_coverline("build/io-base/io-base.js", 151);
return transaction;
    },

    _destroy: function(transaction) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_destroy", 154);
_yuitest_coverline("build/io-base/io-base.js", 155);
if (win && !transaction.notify && !transaction.xdr) {
            _yuitest_coverline("build/io-base/io-base.js", 156);
if (XHR && !transaction.upload) {
                _yuitest_coverline("build/io-base/io-base.js", 157);
transaction.c.onreadystatechange = null;
            } else {_yuitest_coverline("build/io-base/io-base.js", 158);
if (transaction.upload) {
                _yuitest_coverline("build/io-base/io-base.js", 159);
transaction.c.upload.onprogress = null;
                _yuitest_coverline("build/io-base/io-base.js", 160);
transaction.c.onload = null;
                _yuitest_coverline("build/io-base/io-base.js", 161);
transaction.c.onerror = null;
            } else {_yuitest_coverline("build/io-base/io-base.js", 162);
if (Y.UA.ie && !transaction.e) {
                // IE, when using XMLHttpRequest as an ActiveX Object, will throw
                // a "Type Mismatch" error if the event handler is set to "null".
                _yuitest_coverline("build/io-base/io-base.js", 165);
transaction.c.abort();
            }}}
        }

        _yuitest_coverline("build/io-base/io-base.js", 169);
transaction = transaction.c = null;
    },

   /**
    * Method for creating and firing events.
    *
    * @method _evt
    * @private
    * @param {String} eventName Event to be published.
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration data subset for event subscription.
    */
    _evt: function(eventName, transaction, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_evt", 181);
_yuitest_coverline("build/io-base/io-base.js", 182);
var io          = this, params,
            args        = config['arguments'],
            emitFacade  = io.cfg.emitFacade,
            globalEvent = "io:" + eventName,
            trnEvent    = "io-trn:" + eventName;

        // Workaround for #2532107
        _yuitest_coverline("build/io-base/io-base.js", 189);
this.detach(trnEvent);

        _yuitest_coverline("build/io-base/io-base.js", 191);
if (transaction.e) {
            _yuitest_coverline("build/io-base/io-base.js", 192);
transaction.c = { status: 0, statusText: transaction.e };
        }

        // Fire event with parameters or an Event Facade.
        _yuitest_coverline("build/io-base/io-base.js", 196);
params = [ emitFacade ?
            {
                id: transaction.id,
                data: transaction.c,
                cfg: config,
                'arguments': args
            } :
            transaction.id
        ];

        _yuitest_coverline("build/io-base/io-base.js", 206);
if (!emitFacade) {
            _yuitest_coverline("build/io-base/io-base.js", 207);
if (eventName === EVENTS[0] || eventName === EVENTS[2]) {
                _yuitest_coverline("build/io-base/io-base.js", 208);
if (args) {
                    _yuitest_coverline("build/io-base/io-base.js", 209);
params.push(args);
                }
            } else {
                _yuitest_coverline("build/io-base/io-base.js", 212);
if (transaction.evt) {
                    _yuitest_coverline("build/io-base/io-base.js", 213);
params.push(transaction.evt);
                } else {
                    _yuitest_coverline("build/io-base/io-base.js", 215);
params.push(transaction.c);
                }
                _yuitest_coverline("build/io-base/io-base.js", 217);
if (args) {
                    _yuitest_coverline("build/io-base/io-base.js", 218);
params.push(args);
                }
            }
        }

        _yuitest_coverline("build/io-base/io-base.js", 223);
params.unshift(globalEvent);
        // Fire global events.
        _yuitest_coverline("build/io-base/io-base.js", 225);
io.fire.apply(io, params);
        // Fire transaction events, if receivers are defined.
        _yuitest_coverline("build/io-base/io-base.js", 227);
if (config.on) {
            _yuitest_coverline("build/io-base/io-base.js", 228);
params[0] = trnEvent;
            _yuitest_coverline("build/io-base/io-base.js", 229);
io.once(trnEvent, config.on[eventName], config.context || Y);
            _yuitest_coverline("build/io-base/io-base.js", 230);
io.fire.apply(io, params);
        }
    },

   /**
    * Fires event "io:start" and creates, fires a transaction-specific
    * start event, if `config.on.start` is defined.
    *
    * @method start
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration object for the transaction.
    */
    start: function(transaction, config) {
       /**
        * Signals the start of an IO request.
        * @event io:start
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "start", 242);
_yuitest_coverline("build/io-base/io-base.js", 247);
this._evt(EVENTS[0], transaction, config);
    },

   /**
    * Fires event "io:complete" and creates, fires a
    * transaction-specific "complete" event, if config.on.complete is
    * defined.
    *
    * @method complete
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration object for the transaction.
    */
    complete: function(transaction, config) {
       /**
        * Signals the completion of the request-response phase of a
        * transaction. Response status and data are accessible, if
        * available, in this event.
        * @event io:complete
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "complete", 259);
_yuitest_coverline("build/io-base/io-base.js", 266);
this._evt(EVENTS[1], transaction, config);
    },

   /**
    * Fires event "io:end" and creates, fires a transaction-specific "end"
    * event, if config.on.end is defined.
    *
    * @method end
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration object for the transaction.
    */
    end: function(transaction, config) {
       /**
        * Signals the end of the transaction lifecycle.
        * @event io:end
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "end", 277);
_yuitest_coverline("build/io-base/io-base.js", 282);
this._evt(EVENTS[2], transaction, config);
        _yuitest_coverline("build/io-base/io-base.js", 283);
this._destroy(transaction);
    },

   /**
    * Fires event "io:success" and creates, fires a transaction-specific
    * "success" event, if config.on.success is defined.
    *
    * @method success
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration object for the transaction.
    */
    success: function(transaction, config) {
       /**
        * Signals an HTTP response with status in the 2xx range.
        * Fires after io:complete.
        * @event io:success
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "success", 294);
_yuitest_coverline("build/io-base/io-base.js", 300);
this._evt(EVENTS[3], transaction, config);
        _yuitest_coverline("build/io-base/io-base.js", 301);
this.end(transaction, config);
    },

   /**
    * Fires event "io:failure" and creates, fires a transaction-specific
    * "failure" event, if config.on.failure is defined.
    *
    * @method failure
    * @param {Object} transaction Transaction object.
    * @param {Object} config Configuration object for the transaction.
    */
    failure: function(transaction, config) {
       /**
        * Signals an HTTP response with status outside of the 2xx range.
        * Fires after io:complete.
        * @event io:failure
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "failure", 312);
_yuitest_coverline("build/io-base/io-base.js", 318);
this._evt(EVENTS[4], transaction, config);
        _yuitest_coverline("build/io-base/io-base.js", 319);
this.end(transaction, config);
    },

   /**
    * Fires event "io:progress" and creates, fires a transaction-specific
    * "progress" event -- for XMLHttpRequest file upload -- if
    * config.on.progress is defined.
    *
    * @method progress
    * @param {Object} transaction Transaction object.
    * @param {Object} progress event.
    * @param {Object} config Configuration object for the transaction.
    */
    progress: function(transaction, e, config) {
       /**
        * Signals the interactive state during a file upload transaction.
        * This event fires after io:start and before io:complete.
        * @event io:progress
        */
        _yuitest_coverfunc("build/io-base/io-base.js", "progress", 332);
_yuitest_coverline("build/io-base/io-base.js", 338);
transaction.evt = e;
        _yuitest_coverline("build/io-base/io-base.js", 339);
this._evt(EVENTS[5], transaction, config);
    },

   /**
    * Fires event "io:complete" and creates, fires a transaction-specific
    * "complete" event -- for XMLHttpRequest file upload -- if
    * config.on.complete is defined.
    *
    * @method load
    * @param {Object} transaction Transaction object.
    * @param {Object} load event.
    * @param {Object} config Configuration object for the transaction.
    */
    load: function (transaction, e, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "load", 352);
_yuitest_coverline("build/io-base/io-base.js", 353);
transaction.evt = e.target;
        _yuitest_coverline("build/io-base/io-base.js", 354);
this._evt(EVENTS[1], transaction, config);
    },

   /**
    * Fires event "io:failure" and creates, fires a transaction-specific
    * "failure" event -- for XMLHttpRequest file upload -- if
    * config.on.failure is defined.
    *
    * @method error
    * @param {Object} transaction Transaction object.
    * @param {Object} error event.
    * @param {Object} config Configuration object for the transaction.
    */
    error: function (transaction, e, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "error", 367);
_yuitest_coverline("build/io-base/io-base.js", 368);
transaction.evt = e;
        _yuitest_coverline("build/io-base/io-base.js", 369);
this._evt(EVENTS[4], transaction, config);
    },

   /**
    * Retry an XDR transaction, using the Flash tranport, if the native
    * transport fails.
    *
    * @method _retry
    * @private
    * @param {Object} transaction Transaction object.
    * @param {String} uri Qualified path to transaction resource.
    * @param {Object} config Configuration object for the transaction.
    */
    _retry: function(transaction, uri, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_retry", 382);
_yuitest_coverline("build/io-base/io-base.js", 383);
this._destroy(transaction);
        _yuitest_coverline("build/io-base/io-base.js", 384);
config.xdr.use = 'flash';
        _yuitest_coverline("build/io-base/io-base.js", 385);
return this.send(uri, config, transaction.id);
    },

   /**
    * Method that concatenates string data for HTTP GET transactions.
    *
    * @method _concat
    * @private
    * @param {String} uri URI or root data.
    * @param {String} data Data to be concatenated onto URI.
    * @return {String}
    */
    _concat: function(uri, data) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_concat", 397);
_yuitest_coverline("build/io-base/io-base.js", 398);
uri += (uri.indexOf('?') === -1 ? '?' : '&') + data;
        _yuitest_coverline("build/io-base/io-base.js", 399);
return uri;
    },

   /**
    * Stores default client headers for all transactions. If a label is
    * passed with no value argument, the header will be deleted.
    *
    * @method setHeader
    * @param {String} name HTTP header
    * @param {String} value HTTP header value
    */
    setHeader: function(name, value) {
        _yuitest_coverfunc("build/io-base/io-base.js", "setHeader", 410);
_yuitest_coverline("build/io-base/io-base.js", 411);
if (value) {
            _yuitest_coverline("build/io-base/io-base.js", 412);
this._headers[name] = value;
        } else {
            _yuitest_coverline("build/io-base/io-base.js", 414);
delete this._headers[name];
        }
    },

   /**
    * Method that sets all HTTP headers to be sent in a transaction.
    *
    * @method _setHeaders
    * @private
    * @param {Object} transaction - XHR instance for the specific transaction.
    * @param {Object} headers - HTTP headers for the specific transaction, as
    *                    defined in the configuration object passed to YUI.io().
    */
    _setHeaders: function(transaction, headers) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_setHeaders", 427);
_yuitest_coverline("build/io-base/io-base.js", 428);
headers = Y.merge(this._headers, headers);
        _yuitest_coverline("build/io-base/io-base.js", 429);
Y.Object.each(headers, function(value, name) {
            _yuitest_coverfunc("build/io-base/io-base.js", "(anonymous 2)", 429);
_yuitest_coverline("build/io-base/io-base.js", 430);
if (value !== 'disable') {
                _yuitest_coverline("build/io-base/io-base.js", 431);
transaction.setRequestHeader(name, headers[name]);
            }
        });
    },

   /**
    * Starts timeout count if the configuration object has a defined
    * timeout property.
    *
    * @method _startTimeout
    * @private
    * @param {Object} transaction Transaction object generated by _create().
    * @param {Object} timeout Timeout in milliseconds.
    */
    _startTimeout: function(transaction, timeout) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_startTimeout", 445);
_yuitest_coverline("build/io-base/io-base.js", 446);
var io = this;

        _yuitest_coverline("build/io-base/io-base.js", 448);
io._timeout[transaction.id] = setTimeout(function() {
            _yuitest_coverfunc("build/io-base/io-base.js", "(anonymous 3)", 448);
_yuitest_coverline("build/io-base/io-base.js", 449);
io._abort(transaction, 'timeout');
        }, timeout);
    },

   /**
    * Clears the timeout interval started by _startTimeout().
    *
    * @method _clearTimeout
    * @private
    * @param {Number} id - Transaction id.
    */
    _clearTimeout: function(id) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_clearTimeout", 460);
_yuitest_coverline("build/io-base/io-base.js", 461);
clearTimeout(this._timeout[id]);
        _yuitest_coverline("build/io-base/io-base.js", 462);
delete this._timeout[id];
    },

   /**
    * Method that determines if a transaction response qualifies as success
    * or failure, based on the response HTTP status code, and fires the
    * appropriate success or failure events.
    *
    * @method _result
    * @private
    * @static
    * @param {Object} transaction Transaction object generated by _create().
    * @param {Object} config Configuration object passed to io().
    */
    _result: function(transaction, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_result", 476);
_yuitest_coverline("build/io-base/io-base.js", 477);
var status;
        // Firefox will throw an exception if attempting to access
        // an XHR object's status property, after a request is aborted.
        _yuitest_coverline("build/io-base/io-base.js", 480);
try {
            _yuitest_coverline("build/io-base/io-base.js", 481);
status = transaction.c.status;
        } catch(e) {
            _yuitest_coverline("build/io-base/io-base.js", 483);
status = 0;
        }

        // IE reports HTTP 204 as HTTP 1223.
        _yuitest_coverline("build/io-base/io-base.js", 487);
if (status >= 200 && status < 300 || status === 304 || status === 1223) {
            _yuitest_coverline("build/io-base/io-base.js", 488);
this.success(transaction, config);
        } else {
            _yuitest_coverline("build/io-base/io-base.js", 490);
this.failure(transaction, config);
        }
    },

   /**
    * Event handler bound to onreadystatechange.
    *
    * @method _rS
    * @private
    * @param {Object} transaction Transaction object generated by _create().
    * @param {Object} config Configuration object passed to YUI.io().
    */
    _rS: function(transaction, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_rS", 502);
_yuitest_coverline("build/io-base/io-base.js", 503);
var io = this;

        _yuitest_coverline("build/io-base/io-base.js", 505);
if (transaction.c.readyState === 4) {
            _yuitest_coverline("build/io-base/io-base.js", 506);
if (config.timeout) {
                _yuitest_coverline("build/io-base/io-base.js", 507);
io._clearTimeout(transaction.id);
            }

            // Yield in the event of request timeout or abort.
            _yuitest_coverline("build/io-base/io-base.js", 511);
setTimeout(function() {
                _yuitest_coverfunc("build/io-base/io-base.js", "(anonymous 4)", 511);
_yuitest_coverline("build/io-base/io-base.js", 512);
io.complete(transaction, config);
                _yuitest_coverline("build/io-base/io-base.js", 513);
io._result(transaction, config);
            }, 0);
        }
    },

   /**
    * Terminates a transaction due to an explicit abort or timeout.
    *
    * @method _abort
    * @private
    * @param {Object} transaction Transaction object generated by _create().
    * @param {String} type Identifies timed out or aborted transaction.
    */
    _abort: function(transaction, type) {
        _yuitest_coverfunc("build/io-base/io-base.js", "_abort", 526);
_yuitest_coverline("build/io-base/io-base.js", 527);
if (transaction && transaction.c) {
            _yuitest_coverline("build/io-base/io-base.js", 528);
transaction.e = type;
            _yuitest_coverline("build/io-base/io-base.js", 529);
transaction.c.abort();
        }
    },

   /**
    * Requests a transaction. `send()` is implemented as `Y.io()`.  Each
    * transaction may include a configuration object.  Its properties are:
    *
    * <dl>
    *   <dt>method</dt>
    *     <dd>HTTP method verb (e.g., GET or POST). If this property is not
    *         not defined, the default value will be GET.</dd>
    *
    *   <dt>data</dt>
    *     <dd>This is the name-value string that will be sent as the
    *     transaction data. If the request is HTTP GET, the data become
    *     part of querystring. If HTTP POST, the data are sent in the
    *     message body.</dd>
    *
    *   <dt>xdr</dt>
    *     <dd>Defines the transport to be used for cross-domain requests.
    *     By setting this property, the transaction will use the specified
    *     transport instead of XMLHttpRequest. The properties of the
    *     transport object are:
    *     <dl>
    *       <dt>use</dt>
    *         <dd>The transport to be used: 'flash' or 'native'</dd>
    *       <dt>dataType</dt>
    *         <dd>Set the value to 'XML' if that is the expected response
    *         content type.</dd>
    *     </dl></dd>
    *
    *   <dt>form</dt>
    *     <dd>Form serialization configuration object.  Its properties are:
    *     <dl>
    *       <dt>id</dt>
    *         <dd>Node object or id of HTML form</dd>
    *       <dt>useDisabled</dt>
    *         <dd>`true` to also serialize disabled form field values
    *         (defaults to `false`)</dd>
    *     </dl></dd>
    *
    *   <dt>on</dt>
    *     <dd>Assigns transaction event subscriptions. Available events are:
    *     <dl>
    *       <dt>start</dt>
    *         <dd>Fires when a request is sent to a resource.</dd>
    *       <dt>complete</dt>
    *         <dd>Fires when the transaction is complete.</dd>
    *       <dt>success</dt>
    *         <dd>Fires when the HTTP response status is within the 2xx
    *         range.</dd>
    *       <dt>failure</dt>
    *         <dd>Fires when the HTTP response status is outside the 2xx
    *         range, if an exception occurs, if the transation is aborted,
    *         or if the transaction exceeds a configured `timeout`.</dd>
    *       <dt>end</dt>
    *         <dd>Fires at the conclusion of the transaction
    *            lifecycle, after `success` or `failure`.</dd>
    *     </dl>
    *
    *     <p>Callback functions for `start` and `end` receive the id of the
    *     transaction as a first argument. For `complete`, `success`, and
    *     `failure`, callbacks receive the id and the response object
    *     (usually the XMLHttpRequest instance).  If the `arguments`
    *     property was included in the configuration object passed to
    *     `Y.io()`, the configured data will be passed to all callbacks as
    *     the last argument.</p>
    *     </dd>
    *
    *   <dt>sync</dt>
    *     <dd>Pass `true` to make a same-domain transaction synchronous.
    *     <strong>CAVEAT</strong>: This will negatively impact the user
    *     experience. Have a <em>very</em> good reason if you intend to use
    *     this.</dd>
    *
    *   <dt>context</dt>
    *     <dd>The "`this'" object for all configured event handlers. If a
    *     specific context is needed for individual callbacks, bind the
    *     callback to a context using `Y.bind()`.</dd>
    *
    *   <dt>headers</dt>
    *     <dd>Object map of transaction headers to send to the server. The
    *     object keys are the header names and the values are the header
    *     values.</dd>
    *
    *   <dt>timeout</dt>
    *     <dd>Millisecond threshold for the transaction before being
    *     automatically aborted.</dd>
    *
    *   <dt>arguments</dt>
    *     <dd>User-defined data passed to all registered event handlers.
    *     This value is available as the second argument in the "start" and
    *     "end" event handlers. It is the third argument in the "complete",
    *     "success", and "failure" event handlers. <strong>Be sure to quote
    *     this property name in the transaction configuration as
    *     "arguments" is a reserved word in JavaScript</strong> (e.g.
    *     `Y.io({ ..., "arguments": stuff })`).</dd>
    * </dl>
    *
    * @method send
    * @public
    * @param {String} uri Qualified path to transaction resource.
    * @param {Object} config Configuration object for the transaction.
    * @param {Number} id Transaction id, if already set.
    * @return {Object}
    */
    send: function(uri, config, id) {
        _yuitest_coverfunc("build/io-base/io-base.js", "send", 636);
_yuitest_coverline("build/io-base/io-base.js", 637);
var transaction, method, i, len, sync, data,
            io = this,
            u = uri,
            response = {};

        _yuitest_coverline("build/io-base/io-base.js", 642);
config = config ? Y.Object(config) : {};
        _yuitest_coverline("build/io-base/io-base.js", 643);
transaction = io._create(config, id);
        _yuitest_coverline("build/io-base/io-base.js", 644);
method = config.method ? config.method.toUpperCase() : 'GET';
        _yuitest_coverline("build/io-base/io-base.js", 645);
sync = config.sync;
        _yuitest_coverline("build/io-base/io-base.js", 646);
data = config.data;

        // Serialize a map object into a key-value string using
        // querystring-stringify-simple.
        _yuitest_coverline("build/io-base/io-base.js", 650);
if ((Y.Lang.isObject(data) && !data.nodeType) && !transaction.upload) {
            _yuitest_coverline("build/io-base/io-base.js", 651);
if (Y.QueryString && Y.QueryString.stringify) {
                _yuitest_coverline("build/io-base/io-base.js", 652);
config.data = data = Y.QueryString.stringify(data);
            } else {
            }
        }

        _yuitest_coverline("build/io-base/io-base.js", 657);
if (config.form) {
            _yuitest_coverline("build/io-base/io-base.js", 658);
if (config.form.upload) {
                // This is a file upload transaction, calling
                // upload() in io-upload-iframe.
                _yuitest_coverline("build/io-base/io-base.js", 661);
return io.upload(transaction, uri, config);
            } else {
                // Serialize HTML form data into a key-value string.
                _yuitest_coverline("build/io-base/io-base.js", 664);
data = io._serialize(config.form, data);
            }
        }

        // Convert falsy values to an empty string. This way IE can't be
        // rediculous and translate `undefined` to "undefined".
        _yuitest_coverline("build/io-base/io-base.js", 670);
data || (data = '');

        _yuitest_coverline("build/io-base/io-base.js", 672);
if (data) {
            _yuitest_coverline("build/io-base/io-base.js", 673);
switch (method) {
                case 'GET':
                case 'HEAD':
                case 'DELETE':
                    _yuitest_coverline("build/io-base/io-base.js", 677);
u = io._concat(u, data);
                    _yuitest_coverline("build/io-base/io-base.js", 678);
data = '';
                    _yuitest_coverline("build/io-base/io-base.js", 679);
break;
                case 'POST':
                case 'PUT':
                    // If Content-Type is defined in the configuration object, or
                    // or as a default header, it will be used instead of
                    // 'application/x-www-form-urlencoded; charset=UTF-8'
                    _yuitest_coverline("build/io-base/io-base.js", 685);
config.headers = Y.merge({
                        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
                    }, config.headers);
                    _yuitest_coverline("build/io-base/io-base.js", 688);
break;
            }
        }

        _yuitest_coverline("build/io-base/io-base.js", 692);
if (transaction.xdr) {
            // Route data to io-xdr module for flash and XDomainRequest.
            _yuitest_coverline("build/io-base/io-base.js", 694);
return io.xdr(u, transaction, config);
        }
        else {_yuitest_coverline("build/io-base/io-base.js", 696);
if (transaction.notify) {
            // Route data to custom transport
            _yuitest_coverline("build/io-base/io-base.js", 698);
return transaction.c.send(transaction, uri, config);
        }}

        _yuitest_coverline("build/io-base/io-base.js", 701);
if (!sync && !transaction.upload) {
            _yuitest_coverline("build/io-base/io-base.js", 702);
transaction.c.onreadystatechange = function() {
                _yuitest_coverfunc("build/io-base/io-base.js", "onreadystatechange", 702);
_yuitest_coverline("build/io-base/io-base.js", 703);
io._rS(transaction, config);
            };
        }

        _yuitest_coverline("build/io-base/io-base.js", 707);
try {
            // Determine if request is to be set as
            // synchronous or asynchronous.
            _yuitest_coverline("build/io-base/io-base.js", 710);
transaction.c.open(method, u, !sync, config.username || null, config.password || null);
            _yuitest_coverline("build/io-base/io-base.js", 711);
io._setHeaders(transaction.c, config.headers || {});
            _yuitest_coverline("build/io-base/io-base.js", 712);
io.start(transaction, config);

            // Will work only in browsers that implement the
            // Cross-Origin Resource Sharing draft.
            _yuitest_coverline("build/io-base/io-base.js", 716);
if (config.xdr && config.xdr.credentials && SUPPORTS_CORS) {
                _yuitest_coverline("build/io-base/io-base.js", 717);
transaction.c.withCredentials = true;
            }

            // Using "null" with HTTP POST will result in a request
            // with no Content-Length header defined.
            _yuitest_coverline("build/io-base/io-base.js", 722);
transaction.c.send(data);

            _yuitest_coverline("build/io-base/io-base.js", 724);
if (sync) {
                // Create a response object for synchronous transactions,
                // mixing id and arguments properties with the xhr
                // properties whitelist.
                _yuitest_coverline("build/io-base/io-base.js", 728);
for (i = 0, len = XHR_PROPS.length; i < len; ++i) {
                    _yuitest_coverline("build/io-base/io-base.js", 729);
response[XHR_PROPS[i]] = transaction.c[XHR_PROPS[i]];
                }

                _yuitest_coverline("build/io-base/io-base.js", 732);
response.getAllResponseHeaders = function() {
                    _yuitest_coverfunc("build/io-base/io-base.js", "getAllResponseHeaders", 732);
_yuitest_coverline("build/io-base/io-base.js", 733);
return transaction.c.getAllResponseHeaders();
                };

                _yuitest_coverline("build/io-base/io-base.js", 736);
response.getResponseHeader = function(name) {
                    _yuitest_coverfunc("build/io-base/io-base.js", "getResponseHeader", 736);
_yuitest_coverline("build/io-base/io-base.js", 737);
return transaction.c.getResponseHeader(name);
                };

                _yuitest_coverline("build/io-base/io-base.js", 740);
io.complete(transaction, config);
                _yuitest_coverline("build/io-base/io-base.js", 741);
io._result(transaction, config);

                _yuitest_coverline("build/io-base/io-base.js", 743);
return response;
            }
        } catch(e) {
            _yuitest_coverline("build/io-base/io-base.js", 746);
if (transaction.xdr) {
                // This exception is usually thrown by browsers
                // that do not support XMLHttpRequest Level 2.
                // Retry the request with the XDR transport set
                // to 'flash'.  If the Flash transport is not
                // initialized or available, the transaction
                // will resolve to a transport error.
                _yuitest_coverline("build/io-base/io-base.js", 753);
return io._retry(transaction, uri, config);
            } else {
                _yuitest_coverline("build/io-base/io-base.js", 755);
io.complete(transaction, config);
                _yuitest_coverline("build/io-base/io-base.js", 756);
io._result(transaction, config);
            }
        }

        // If config.timeout is defined, and the request is standard XHR,
        // initialize timeout polling.
        _yuitest_coverline("build/io-base/io-base.js", 762);
if (config.timeout) {
            _yuitest_coverline("build/io-base/io-base.js", 763);
io._startTimeout(transaction, config.timeout);
        }

        _yuitest_coverline("build/io-base/io-base.js", 766);
return {
            id: transaction.id,
            abort: function() {
                _yuitest_coverfunc("build/io-base/io-base.js", "abort", 768);
_yuitest_coverline("build/io-base/io-base.js", 769);
return transaction.c ? io._abort(transaction, 'abort') : false;
            },
            isInProgress: function() {
                _yuitest_coverfunc("build/io-base/io-base.js", "isInProgress", 771);
_yuitest_coverline("build/io-base/io-base.js", 772);
return transaction.c ? (transaction.c.readyState % 4) : false;
            },
            io: io
        };
    }
};

/**
Method for initiating an ajax call.  The first argument is the url end
point for the call.  The second argument is an object to configure the
transaction and attach event subscriptions.  The configuration object
supports the following properties:

<dl>
  <dt>method</dt>
    <dd>HTTP method verb (e.g., GET or POST). If this property is not
        not defined, the default value will be GET.</dd>

  <dt>data</dt>
    <dd>This is the name-value string that will be sent as the
    transaction data. If the request is HTTP GET, the data become
    part of querystring. If HTTP POST, the data are sent in the
    message body.</dd>

  <dt>xdr</dt>
    <dd>Defines the transport to be used for cross-domain requests.
    By setting this property, the transaction will use the specified
    transport instead of XMLHttpRequest. The properties of the
    transport object are:
    <dl>
      <dt>use</dt>
        <dd>The transport to be used: 'flash' or 'native'</dd>
      <dt>dataType</dt>
        <dd>Set the value to 'XML' if that is the expected response
        content type.</dd>
    </dl></dd>

  <dt>form</dt>
    <dd>Form serialization configuration object.  Its properties are:
    <dl>
      <dt>id</dt>
        <dd>Node object or id of HTML form</dd>
      <dt>useDisabled</dt>
        <dd>`true` to also serialize disabled form field values
        (defaults to `false`)</dd>
    </dl></dd>

  <dt>on</dt>
    <dd>Assigns transaction event subscriptions. Available events are:
    <dl>
      <dt>start</dt>
        <dd>Fires when a request is sent to a resource.</dd>
      <dt>complete</dt>
        <dd>Fires when the transaction is complete.</dd>
      <dt>success</dt>
        <dd>Fires when the HTTP response status is within the 2xx
        range.</dd>
      <dt>failure</dt>
        <dd>Fires when the HTTP response status is outside the 2xx
        range, if an exception occurs, if the transation is aborted,
        or if the transaction exceeds a configured `timeout`.</dd>
      <dt>end</dt>
        <dd>Fires at the conclusion of the transaction
           lifecycle, after `success` or `failure`.</dd>
    </dl>

    <p>Callback functions for `start` and `end` receive the id of the
    transaction as a first argument. For `complete`, `success`, and
    `failure`, callbacks receive the id and the response object
    (usually the XMLHttpRequest instance).  If the `arguments`
    property was included in the configuration object passed to
    `Y.io()`, the configured data will be passed to all callbacks as
    the last argument.</p>
    </dd>

  <dt>sync</dt>
    <dd>Pass `true` to make a same-domain transaction synchronous.
    <strong>CAVEAT</strong>: This will negatively impact the user
    experience. Have a <em>very</em> good reason if you intend to use
    this.</dd>

  <dt>context</dt>
    <dd>The "`this'" object for all configured event handlers. If a
    specific context is needed for individual callbacks, bind the
    callback to a context using `Y.bind()`.</dd>

  <dt>headers</dt>
    <dd>Object map of transaction headers to send to the server. The
    object keys are the header names and the values are the header
    values.</dd>

  <dt>timeout</dt>
    <dd>Millisecond threshold for the transaction before being
    automatically aborted.</dd>

  <dt>arguments</dt>
    <dd>User-defined data passed to all registered event handlers.
    This value is available as the second argument in the "start" and
    "end" event handlers. It is the third argument in the "complete",
    "success", and "failure" event handlers. <strong>Be sure to quote
    this property name in the transaction configuration as
    "arguments" is a reserved word in JavaScript</strong> (e.g.
    `Y.io({ ..., "arguments": stuff })`).</dd>
</dl>

@method io
@static
@param {String} url qualified path to transaction resource.
@param {Object} config configuration object for the transaction.
@return {Object}
@for YUI
**/
_yuitest_coverline("build/io-base/io-base.js", 884);
Y.io = function(url, config) {
    // Calling IO through the static interface will use and reuse
    // an instance of IO.
    _yuitest_coverfunc("build/io-base/io-base.js", "io", 884);
_yuitest_coverline("build/io-base/io-base.js", 887);
var transaction = Y.io._map['io:0'] || new IO();
    _yuitest_coverline("build/io-base/io-base.js", 888);
return transaction.send.apply(transaction, [url, config]);
};

/**
Method for setting and deleting IO HTTP headers to be sent with every
request.

Hosted as a property on the `io` function (e.g. `Y.io.header`).

@method header
@param {String} name HTTP header
@param {String} value HTTP header value
@static
**/
_yuitest_coverline("build/io-base/io-base.js", 902);
Y.io.header = function(name, value) {
    // Calling IO through the static interface will use and reuse
    // an instance of IO.
    _yuitest_coverfunc("build/io-base/io-base.js", "header", 902);
_yuitest_coverline("build/io-base/io-base.js", 905);
var transaction = Y.io._map['io:0'] || new IO();
    _yuitest_coverline("build/io-base/io-base.js", 906);
transaction.setHeader(name, value);
};

_yuitest_coverline("build/io-base/io-base.js", 909);
Y.IO = IO;
// Map of all IO instances created.
_yuitest_coverline("build/io-base/io-base.js", 911);
Y.io._map = {};
_yuitest_coverline("build/io-base/io-base.js", 912);
var XHR = win && win.XMLHttpRequest,
    XDR = win && win.XDomainRequest,
    AX = win && win.ActiveXObject,

    // Checks for the presence of the `withCredentials` in an XHR instance
    // object, which will be present if the environment supports CORS.
    SUPPORTS_CORS = XHR && 'withCredentials' in (new XMLHttpRequest());


_yuitest_coverline("build/io-base/io-base.js", 921);
Y.mix(Y.IO, {
    /**
    * The ID of the default IO transport, defaults to `xhr`
    * @property _default
    * @type {String}
    * @static
    */
    _default: 'xhr',
    /**
    *
    * @method defaultTransport
    * @static
    * @param {String} [id] The transport to set as the default, if empty a new transport is created.
    * @return {Object} The transport object with a `send` method
    */
    defaultTransport: function(id) {
        _yuitest_coverfunc("build/io-base/io-base.js", "defaultTransport", 936);
_yuitest_coverline("build/io-base/io-base.js", 937);
if (id) {
            _yuitest_coverline("build/io-base/io-base.js", 938);
Y.IO._default = id;
        } else {
            _yuitest_coverline("build/io-base/io-base.js", 940);
var o = {
                c: Y.IO.transports[Y.IO._default](),
                notify: Y.IO._default === 'xhr' ? false : true
            };
            _yuitest_coverline("build/io-base/io-base.js", 944);
return o;
        }
    },
    /**
    * An object hash of custom transports available to IO
    * @property transports
    * @type {Object}
    * @static
    */
    transports: {
        xhr: function () {
            _yuitest_coverfunc("build/io-base/io-base.js", "xhr", 954);
_yuitest_coverline("build/io-base/io-base.js", 955);
return XHR ? new XMLHttpRequest() :
                AX ? new ActiveXObject('Microsoft.XMLHTTP') : null;
        },
        xdr: function () {
            _yuitest_coverfunc("build/io-base/io-base.js", "xdr", 958);
_yuitest_coverline("build/io-base/io-base.js", 959);
return XDR ? new XDomainRequest() : null;
        },
        iframe: function () { _yuitest_coverfunc("build/io-base/io-base.js", "iframe", 961);
_yuitest_coverline("build/io-base/io-base.js", 961);
return {}; },
        flash: null,
        nodejs: null
    },
    /**
    * Create a custom transport of type and return it's object
    * @method customTransport
    * @param {String} id The id of the transport to create.
    * @static
    */
    customTransport: function(id) {
        _yuitest_coverfunc("build/io-base/io-base.js", "customTransport", 971);
_yuitest_coverline("build/io-base/io-base.js", 972);
var o = { c: Y.IO.transports[id]() };

        _yuitest_coverline("build/io-base/io-base.js", 974);
o[(id === 'xdr' || id === 'flash') ? 'xdr' : 'notify'] = true;
        _yuitest_coverline("build/io-base/io-base.js", 975);
return o;
    }
});

_yuitest_coverline("build/io-base/io-base.js", 979);
Y.mix(Y.IO.prototype, {
    /**
    * Fired from the notify method of the transport which in turn fires
    * the event on the IO object.
    * @method notify
    * @param {String} event The name of the event
    * @param {Object} transaction The transaction object
    * @param {Object} config The configuration object for this transaction
    */
    notify: function(event, transaction, config) {
        _yuitest_coverfunc("build/io-base/io-base.js", "notify", 988);
_yuitest_coverline("build/io-base/io-base.js", 989);
var io = this;

        _yuitest_coverline("build/io-base/io-base.js", 991);
switch (event) {
            case 'timeout':
            case 'abort':
            case 'transport error':
                _yuitest_coverline("build/io-base/io-base.js", 995);
transaction.c = { status: 0, statusText: event };
                _yuitest_coverline("build/io-base/io-base.js", 996);
event = 'failure';
            default:
                _yuitest_coverline("build/io-base/io-base.js", 998);
io[event].apply(io, [transaction, config]);
        }
    }
});




}, '3.9.1', {"requires": ["event-custom-base", "querystring-stringify-simple"]});
