/** * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ // Underscore.js 1.5.2 // http://underscorejs.org // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */ // (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org // humps is copyright © 2013 Dom Christie // Released under the MIT license. /* * screenfull * v1.2.0 - 2014-04-29 * (c) Sindre Sorhus; MIT License */ /*! Hammer.JS - v1.0.6 - 2014-01-02 * http://eightmedia.github.com/hammer.js * * Copyright (c) 2014 Jorik Tangelder ; * Licensed under the MIT license */ /** * @license RequireJS text 2.0.10 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ /* ---------------------------------------------------------------------------- pusher.color.js A color parsing and manipulation library ---------------------------------------------------------------------------- The MIT License (MIT). Copyright (c) 2013, Pusher Inc. */ /* * jquery.injectCSS.js - jquery css injection plugin * Copyright (C) 2013, Robert Kajic (robert@kajic.com) * http://kajic.com * * https://github.com/kajic/jquery-injectCSS * Allows for injection of CSS defined as javascript JSS objects. * * Based on JSS (http://jss-lang.org/). * * Licensed under the MIT License. * * Date: 2013-01-08 * Version: 0.1 */ /* * jPlayer Plugin for jQuery JavaScript Library * http://www.jplayer.org * * Copyright (c) 2009 - 2014 Happyworm Ltd * Licensed under the MIT license. * http://opensource.org/licenses/MIT * * Author: Mark J Panaghiston * Version: 2.9.2 * Date: 14th December 2014 */ /*! v2.9.0-0420f9cc, 2018-08-01T23:15:25Z */ /*! codem-isoboxer v0.3.5 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ /** * URI.js * * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. * @author Gary Court * @version 1.2 * @see http://github.com/garycourt/uri-js * @license URI.js v1.2 (c) 2010 Gary Court. License: http://github.com/garycourt/uri-js */ /** * Copyright 2010 Gary Court. 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. * * THIS SOFTWARE IS PROVIDED BY GARY COURT ``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 GARY COURT 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. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of Gary Court. */ /* * Copyright 2010 Gary Court. 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. * * THIS SOFTWARE IS PROVIDED BY GARY COURT ``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 GARY COURT 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. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of Gary Court or the JSON Schema specification. */ /* Copyright (c) 2012 Joshfire - MIT license */ !function(e,t){"function"==typeof define&&define.amd?define([],t):e.ViddlerEmbed=t()}(this,function(){var requirejs,require,define;return function(e){function t(e,t){return v.call(e,t)}function n(e,t){var n,i,r,a,o,s,l,u,d,c,f,h=t&&t.split("/"),p=m.map,g=p&&p["*"]||{};if(e&&"."===e.charAt(0))if(t){for(h=h.slice(0,h.length-1),e=e.split("/"),o=e.length-1,m.nodeIdCompat&&_.test(e[o])&&(e[o]=e[o].replace(_,"")),e=h.concat(e),d=0;d0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&p){for(n=e.split("/"),d=n.length;d>0;d-=1){if(i=n.slice(0,d).join("/"),h)for(c=h.length;c>0;c-=1)if(r=p[h.slice(0,c).join("/")],r&&(r=r[i])){a=r,s=d;break}if(a)break;!l&&g&&g[i]&&(l=g[i],u=d)}!a&&l&&(a=l,s=u),a&&(n.splice(0,s,a),e=n.join("/"))}return e}function i(t,n){return function(){return d.apply(e,y.call(arguments,0).concat([t,n]))}}function r(e){return function(t){return n(t,e)}}function a(e){return function(t){h[e]=t}}function o(n){if(t(p,n)){var i=p[n];delete p[n],g[n]=!0,u.apply(e,i)}if(!t(h,n)&&!t(g,n))throw new Error("No "+n);return h[n]}function s(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function l(e){return function(){return m&&m.config&&m.config[e]||{}}}var u,d,c,f,h={},p={},m={},g={},v=Object.prototype.hasOwnProperty,y=[].slice,_=/\.js$/;c=function(e,t){var i,a=s(e),l=a[0];return e=a[1],l&&(l=n(l,t),i=o(l)),l?e=i&&i.normalize?i.normalize(e,r(t)):n(e,t):(e=n(e,t),a=s(e),l=a[0],e=a[1],l&&(i=o(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:i}},f={require:function(e){return i(e)},exports:function(e){var t=h[e];return"undefined"!=typeof t?t:h[e]={}},module:function(e){return{id:e,uri:"",exports:h[e],config:l(e)}}},u=function(n,r,s,l){var u,d,m,v,y,_,b=[],E=typeof s;if(l=l||n,"undefined"===E||"function"===E){for(r=!r.length&&s.length?["require","exports","module"]:r,y=0;y2;if(null==e&&(e=[]),h&&e.reduce===h)return i&&(t=w.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(S(e,function(e,a,o){r?n=t.call(i,n,e,a,o):(n=e,r=!0)}),!r)throw new TypeError(x);return n},w.reduceRight=w.foldr=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),p&&e.reduceRight===p)return i&&(t=w.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var a=e.length;if(a!==+a){var o=w.keys(e);a=o.length}if(S(e,function(s,l,u){l=o?o[--a]:--a,r?n=t.call(i,n,e[l],l,u):(n=e[l],r=!0)}),!r)throw new TypeError(x);return n},w.find=w.detect=function(e,t,n){var i;return I(e,function(e,r,a){if(t.call(n,e,r,a))return i=e,!0}),i},w.filter=w.select=function(e,t,n){var i=[];return null==e?i:m&&e.filter===m?e.filter(t,n):(S(e,function(e,r,a){t.call(n,e,r,a)&&i.push(e)}),i)},w.reject=function(e,t,n){return w.filter(e,function(e,i,r){return!t.call(n,e,i,r)},n)},w.every=w.all=function(e,t,i){t||(t=w.identity);var r=!0;return null==e?r:g&&e.every===g?e.every(t,i):(S(e,function(e,a,o){if(!(r=r&&t.call(i,e,a,o)))return n}),!!r)};var I=w.some=w.any=function(e,t,i){t||(t=w.identity);var r=!1;return null==e?r:v&&e.some===v?e.some(t,i):(S(e,function(e,a,o){if(r||(r=t.call(i,e,a,o)))return n}),!!r)};w.contains=w.include=function(e,t){return null!=e&&(y&&e.indexOf===y?e.indexOf(t)!=-1:I(e,function(e){return e===t}))},w.invoke=function(e,t){var n=s.call(arguments,2),i=w.isFunction(t);return w.map(e,function(e){return(i?t:e[t]).apply(e,n)})},w.pluck=function(e,t){return w.map(e,function(e){return e[t]})},w.where=function(e,t,n){return w.isEmpty(t)?n?void 0:[]:w[n?"find":"filter"](e,function(e){for(var n in t)if(t[n]!==e[n])return!1;return!0})},w.findWhere=function(e,t){return w.where(e,t,!0)},w.max=function(e,t,n){if(!t&&w.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!t&&w.isEmpty(e))return-(1/0);var i={computed:-(1/0),value:-(1/0)};return S(e,function(e,r,a){var o=t?t.call(n,e,r,a):e;o>i.computed&&(i={value:e,computed:o})}),i.value},w.min=function(e,t,n){if(!t&&w.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!t&&w.isEmpty(e))return 1/0;var i={computed:1/0,value:1/0};return S(e,function(e,r,a){var o=t?t.call(n,e,r,a):e;oi||void 0===n)return 1;if(n>>1;n.call(i,e[s])=0})})},w.difference=function(e){var t=l.apply(i,s.call(arguments,1));return w.filter(e,function(e){return!w.contains(t,e)})},w.zip=function(){for(var e=w.max(w.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;n=0;n--)t=[e[n].apply(this,t)];return t[0]}},w.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},w.keys=E||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)w.has(e,n)&&t.push(n);return t},w.values=function(e){for(var t=w.keys(e),n=t.length,i=new Array(n),r=0;r":">",'"':""","'":"'"}};D.unescape=w.invert(D.escape);var k={escape:new RegExp("["+w.keys(D.escape).join("")+"]","g"),unescape:new RegExp("("+w.keys(D.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(e){w[e]=function(t){return null==t?"":(""+t).replace(k[e],function(t){return D[e][t]})}}),w.result=function(e,t){if(null!=e){var n=e[t];return w.isFunction(n)?n.call(e):n}},w.mixin=function(e){S(w.functions(e),function(t){var n=w[t]=e[t];w.prototype[t]=function(){var e=[this._wrapped];return o.apply(e,arguments),j.call(this,n.apply(w,e))}})};var N=0;w.uniqueId=function(e){var t=++N+"";return e?e+t:t},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var O=/(.)^/,L={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(e,t,n){var i;n=w.defaults({},n,w.templateSettings);var r=new RegExp([(n.escape||O).source,(n.interpolate||O).source,(n.evaluate||O).source].join("|")+"|$","g"),a=0,o="__p+='";e.replace(r,function(t,n,i,r,s){return o+=e.slice(a,s).replace(F,function(e){return"\\"+L[e]}),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),i&&(o+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),r&&(o+="';\n"+r+"\n__p+='"),a=s+t.length,t}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(n.variable||"obj","_",o)}catch(e){throw e.source=o,e}if(t)return i(t,w);var s=function(e){return i.call(this,e,w)};return s.source="function("+(n.variable||"obj")+"){\n"+o+"}",s},w.chain=function(e){return w(e).chain()};var j=function(e){return this._chain?w(e).chain():e};w.mixin(w),S(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];w.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],j.call(this,n)}}),S(["concat","join","slice"],function(e){var t=i[e];w.prototype[e]=function(){return j.call(this,t.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),define("underscore",function(e){return function(){var t;return t||e._}}(this)),function(e,t){function n(e){var t=e.length,n=de.type(e);return!de.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function i(e){var t=xe[e]={};return de.each(e.match(fe)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(de.acceptData(e)){var a,o,s=de.expando,l=e.nodeType,u=l?de.cache:e,d=l?e[s]:e[s]&&s;if(d&&u[d]&&(r||u[d].data)||i!==t||"string"!=typeof n)return d||(d=l?e[s]=te.pop()||de.guid++:s),u[d]||(u[d]=l?{}:{toJSON:de.noop}),("object"==typeof n||"function"==typeof n)&&(r?u[d]=de.extend(u[d],n):u[d].data=de.extend(u[d].data,n)),o=u[d],r||(o.data||(o.data={}),o=o.data),i!==t&&(o[de.camelCase(n)]=i),"string"==typeof n?(a=o[n],null==a&&(a=o[de.camelCase(n)])):a=o,a}}function a(e,t,n){if(de.acceptData(e)){var i,r,a=e.nodeType,o=a?de.cache:e,l=a?e[de.expando]:de.expando;if(o[l]){if(t&&(i=n?o[l]:o[l].data)){de.isArray(t)?t=t.concat(de.map(t,de.camelCase)):t in i?t=[t]:(t=de.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!s(i):!de.isEmptyObject(i))return}(n||(delete o[l].data,s(o[l])))&&(a?de.cleanData([e],!0):de.support.deleteExpando||o!=o.window?delete o[l]:o[l]=null)}}}function o(e,n,i){if(i===t&&1===e.nodeType){var r="data-"+n.replace(Ce,"-$1").toLowerCase();if(i=e.getAttribute(r),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Ie.test(i)?de.parseJSON(i):i)}catch(e){}de.data(e,n,i)}else i=t}return i}function s(e){var t;for(t in e)if(("data"!==t||!de.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function l(){return!0}function u(){return!1}function d(){try{return X.activeElement}catch(e){}}function c(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function f(e,t,n){if(de.isFunction(t))return de.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return de.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(qe.test(t))return de.filter(t,e,n);t=de.filter(t,e)}return de.grep(e,function(e){return de.inArray(e,t)>=0!==n})}function h(e){var t=Ye.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function p(e,t){return de.nodeName(e,"table")&&de.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function m(e){return e.type=(null!==de.find.attr(e,"type"))+"/"+e.type,e}function g(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function v(e,t){for(var n,i=0;null!=(n=e[i]);i++)de._data(n,"globalEval",!t||de._data(t[i],"globalEval"))}function y(e,t){if(1===t.nodeType&&de.hasData(e)){var n,i,r,a=de._data(e),o=de._data(t,a),s=a.events;if(s){delete o.handle,o.events={};for(n in s)for(i=0,r=s[n].length;r>i;i++)de.event.add(t,n,s[n][i])}o.data&&(o.data=de.extend({},o.data))}}function _(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!de.support.noCloneEvent&&t[de.expando]){r=de._data(t);for(i in r.events)de.removeEvent(t,i,r.handle);t.removeAttribute(de.expando)}"script"===n&&t.text!==e.text?(m(t).text=e.text,g(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),de.support.html5Clone&&e.innerHTML&&!de.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function b(e,n){var i,r,a=0,o=typeof e.getElementsByTagName!==K?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==K?e.querySelectorAll(n||"*"):t;if(!o)for(o=[],i=e.childNodes||e;null!=(r=i[a]);a++)!n||de.nodeName(r,n)?o.push(r):de.merge(o,b(r,n));return n===t||n&&de.nodeName(e,n)?de.merge([e],o):o}function E(e){tt.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=St.length;r--;)if(t=St[r]+n,t in e)return t;return i}function w(e,t){return e=t||e,"none"===de.css(e,"display")||!de.contains(e.ownerDocument,e)}function S(e,t){for(var n,i,r,a=[],o=0,s=e.length;s>o;o++)i=e[o],i.style&&(a[o]=de._data(i,"olddisplay"),n=i.style.display,t?(a[o]||"none"!==n||(i.style.display=""),""===i.style.display&&w(i)&&(a[o]=de._data(i,"olddisplay",A(i.nodeName)))):a[o]||(r=w(i),(n&&"none"!==n||!r)&&de._data(i,"olddisplay",r?n:de.css(i,"display"))));for(o=0;s>o;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?a[o]||"":"none"));return e}function x(e,t,n){var i=vt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function I(e,t,n,i,r){for(var a=n===(i?"border":"content")?4:"width"===t?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=de.css(e,n+wt[a],!0,r)),i?("content"===n&&(o-=de.css(e,"padding"+wt[a],!0,r)),"margin"!==n&&(o-=de.css(e,"border"+wt[a]+"Width",!0,r))):(o+=de.css(e,"padding"+wt[a],!0,r),"padding"!==n&&(o+=de.css(e,"border"+wt[a]+"Width",!0,r)));return o}function C(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,a=dt(e),o=de.support.boxSizing&&"border-box"===de.css(e,"boxSizing",!1,a);if(0>=r||null==r){if(r=ct(e,t,a),(0>r||null==r)&&(r=e.style[t]),yt.test(r))return r;i=o&&(de.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+I(e,t,n||(o?"border":"content"),i,a)+"px"}function A(e){var t=X,n=bt[e];return n||(n=M(e,t),"none"!==n&&n||(ut=(ut||de("